/* Redesign "ETHER" -- tokens and values from design_handoff_hamqth_redesign/README.md. */
:root {
  --hq-brand: #0064ff;          /* buttons, homepage */
  --hq-brand-hover: #0052d1;
  --hq-brand-green: #45812f;    /* logo "QTH", DONOR */
  --hq-accent: #1f5fae;         /* links, profile labels */
  --hq-accent-bg: #f2f7fc;
  --hq-accent-border: #cfe0f2;
  --hq-focus: #e3eefa;
  --hq-check: #3f8f2e;
  --hq-text: #1c2128;
  --hq-text-2: #3d444c;
  --hq-text-3: #6b7280;
  --hq-text-4: #8b929a;
  --hq-text-5: #9aa1a9;
  --hq-line: #eef0f2;
  --hq-line-2: #e6e8eb;
  --hq-input-line: #d5dae0;
  --hq-surface: #fff;
  --hq-page: #fff;              /* the 1100 px sheet */
  --hq-canvas: #eceef1;         /* around the sheet */
  --hq-field: #f4f5f7;
  --hq-tint: #fbfbfc;           /* profile sheet under the white data strip */
  --hq-danger: #b4472f;
  --hq-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Bootstrap on top of the tokens */
  --bs-body-font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --bs-font-monospace: var(--hq-mono);
  --bs-body-font-size: 14px;
  --bs-body-color: var(--hq-text);
  --bs-body-bg: var(--hq-page);
  --bs-secondary-color: var(--hq-text-4);
  --bs-primary: var(--hq-brand);
  --bs-primary-rgb: 0, 100, 255;
  --bs-link-color: var(--hq-accent);
  --bs-link-color-rgb: 31, 95, 174;
  --bs-link-hover-color: var(--hq-accent);
  --bs-link-hover-color-rgb: 31, 95, 174;
  --bs-border-color: var(--hq-line-2);
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 3px;
  --bs-border-radius-lg: 6px;
  --bs-focus-ring-color: var(--hq-focus);
}
/* reserve the scrollbar's space so centred pages don't jump sideways when it appears (e.g. dxcluster tabs) */
html { scrollbar-gutter: stable; }
body { background: var(--hq-canvas); -webkit-font-smoothing: antialiased; }
/* white sheet of the content width (1100 px + gutters) on the grey canvas, as in the mockup */
.page {
  max-width: 1180px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--hq-page);
  box-shadow: 0 0 0 1px var(--hq-line-2), 0 0 40px -12px rgba(28, 33, 40, .25);
}
main { flex: 1 0 auto; }
a { text-decoration: none; }
a:hover { opacity: .7; }
.hp-field { position: absolute; left: -10000px; } /* honeypot, invisible to people */

/* content 1100 px (station banners are 1100 px wide); the sheet is 1180 px, i.e. 40 px gutters, at least 24 px on narrow screens */
.container { max-width: 1180px; padding-left: max(24px, calc((100% - 1100px) / 2)); padding-right: max(24px, calc((100% - 1100px) / 2)); }

.btn { --bs-btn-font-weight: 500; }
.btn-primary {
  --bs-btn-bg: var(--hq-brand); --bs-btn-border-color: var(--hq-brand);
  --bs-btn-hover-bg: var(--hq-brand-hover); --bs-btn-hover-border-color: var(--hq-brand-hover);
  --bs-btn-active-bg: var(--hq-brand-hover); --bs-btn-active-border-color: var(--hq-brand-hover);
  --bs-btn-focus-shadow-rgb: 0, 100, 255;
}
.btn-outline-primary {
  --bs-btn-color: var(--hq-brand); --bs-btn-border-color: var(--hq-brand);
  --bs-btn-hover-bg: var(--hq-brand); --bs-btn-hover-border-color: var(--hq-brand);
  --bs-btn-active-bg: var(--hq-brand); --bs-btn-active-border-color: var(--hq-brand);
}
.btn:hover { opacity: 1; }
.form-control, .form-select { border-color: var(--hq-input-line); }
.form-control:focus, .form-select:focus { border-color: var(--hq-accent); box-shadow: 0 0 0 3px var(--hq-focus); }
.dropdown-menu {
  --bs-dropdown-border-color: var(--hq-line-2);
  --bs-dropdown-border-radius: 6px;
  --bs-dropdown-font-size: 14px;
  --bs-dropdown-link-color: var(--hq-text-2);
  --bs-dropdown-link-hover-bg: var(--hq-field);
  --bs-dropdown-link-active-color: var(--hq-text);
  --bs-dropdown-link-active-bg: var(--hq-accent-bg);
  box-shadow: 0 24px 48px -20px rgba(28, 33, 40, .35);
}
.dropdown-item:hover { opacity: 1; }
.label-mono { font-family: var(--hq-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--hq-text-5); }

/* ---- navbar ---- */
.hamqth-navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: var(--hq-text-3);
  --bs-navbar-hover-color: var(--hq-text);
  --bs-navbar-active-color: var(--hq-text);
  --bs-navbar-nav-link-padding-x: 0;
  --bs-navbar-brand-margin-end: 20px;
  --bs-navbar-toggler-border-color: var(--hq-line-2);
  --bs-navbar-toggler-focus-width: 3px;
  font-size: 14px;
  font-weight: 500; /* heavier than the mockup's 400: reads better, esp. for older users */
  white-space: nowrap;
}
.hamqth-navbar > .container { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hq-line-2); }
.hamqth-navbar .navbar-brand { padding: 0; }
.hamqth-navbar .navbar-brand img { height: 34px; width: auto; display: block; }
.hamqth-navbar .navbar-nav { gap: 0 15px; }
.hamqth-navbar .nav-link-strong { color: var(--hq-text); font-weight: 600; }
.hamqth-navbar .nav-link.active { color: var(--hq-text); font-weight: 500; } /* the page you are on (DX cluster handoff) */
.hamqth-navbar .dropdown-toggle::after { border-top-width: .28em; border-right-width: .28em; border-left-width: .28em; color: var(--hq-text-5); vertical-align: .2em; }
.navbar-search { display: flex; border: 1px solid var(--hq-line-2); border-radius: 4px; overflow: hidden; }
.navbar-search input {
  width: 112px; min-width: 0; border: 0; outline: 0; padding: 7px 12px;
  background: var(--hq-field); color: var(--hq-text);
  font-family: var(--hq-mono); font-size: 13px; text-transform: uppercase;
}
.navbar-search input::placeholder { color: var(--hq-text-5); text-transform: none; }
.navbar-search input:focus { background: var(--hq-surface); }
.navbar-search .btn { border-radius: 0; font-size: 13px; padding: 7px 14px; }
.nav-login { font-size: 14px; padding: 6px 14px; }
.navbar-divider { width: 1px; height: 20px; background: var(--hq-line-2); align-self: center; }

.hamqth-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--hq-focus); }
.account-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--hq-line-2); border-radius: 5px; color: var(--hq-text);
}
.account-chip:hover, .account-chip.show { opacity: 1; border-color: var(--hq-accent); background: var(--hq-accent-bg); }
.account-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--hq-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--hq-mono); font-size: 10px;
}
.callsign { font-family: var(--hq-mono); font-weight: 600; }
.account-chip .callsign { font-size: 13px; }

.account-menu { width: 264px; padding: 0; overflow: hidden; }
.account-menu-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px 8px; }
.account-menu-count { font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-5); }
.account-menu-filter { padding: 0 10px 8px; }
.account-menu-filter input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--hq-line); border-radius: 4px; outline: 0;
  background: var(--hq-field); font-family: var(--hq-mono); font-size: 13px; text-transform: uppercase;
}
.account-menu-filter input::placeholder { color: var(--hq-text-5); text-transform: none; }
.account-menu-filter input:focus { border-color: var(--hq-accent); background: var(--hq-surface); }
.account-menu-list { list-style: none; margin: 0; padding: 0 6px 6px; max-height: 196px; overflow: auto; }
.account-menu-list .dropdown-item { padding: 7px 10px; border-radius: 4px; font-family: var(--hq-mono); font-size: 13px; }
.account-menu-list .dropdown-item.active { font-weight: 600; display: flex; justify-content: space-between; }
.account-menu-list .dropdown-item.active::after { content: '✓'; color: var(--hq-brand); font-size: 12px; }
.account-menu-add { display: block; padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--hq-brand); border-top: 1px solid var(--hq-line); }
.account-menu-links { border-top: 1px solid var(--hq-line); padding: 6px 0; }
.account-menu-links .dropdown-item { padding: 8px 16px; }
.account-menu-links .account-menu-logout { color: var(--hq-danger); }

/* collapsed (below xl): one item per row */
@media (max-width: 1199.98px) {
  .hamqth-navbar .navbar-nav { gap: 0; padding: 8px 0; }
  .hamqth-navbar .nav-link { padding: 8px 0; }
  .navbar-search { margin: 8px 0; }
  .navbar-search input { flex: 1; width: auto; }
  .navbar-divider { display: none; }
  .account-chip { align-self: flex-start; margin-top: 8px; }
  .nav-login { display: inline-block; margin-top: 8px; }
}
@media (min-width: 1200px) {
  .hamqth-navbar .navbar-nav + .navbar-search { margin-left: 20px; }
  .hamqth-navbar .ms-xl-auto { padding-left: 16px; }
}

/* ---- homepage (handoff section 1) ---- */
.home { background: var(--hq-tint); display: flex; flex-direction: column; } /* page #fbfbfc under the hero and cards, as in the mockup */
/* the hero takes the spare height (content centred), so the cards always sit right on the footer */
.home-hero { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 88px 40px 96px; text-align: center; }
/* object-fit: below ~440 px max-width narrows the logo while height stays 110 -- keep its aspect */
.home-logo { display: block; height: 110px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 40px; }
.home-search { display: flex; gap: 10px; width: 100%; max-width: 640px; margin: 0 auto; } /* width: auto margins shrink a flex item to its content */
.home-search input {
  flex: 1; min-width: 0;
  font-family: var(--hq-mono); font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 18px; border: 1px solid var(--hq-input-line); border-radius: 5px;
  background: var(--hq-surface); color: var(--hq-text);
}
.home-search input:focus { outline: none; border-color: var(--hq-accent); box-shadow: 0 0 0 3px var(--hq-focus); }
.home-search .btn { font-size: 15px; font-weight: 600; padding: 0 28px; border-radius: 5px; }
.home-count { margin: 26px 0 0; font-family: var(--hq-mono); font-size: 13px; letter-spacing: .04em; color: var(--hq-text-5); }
.home-count strong { color: var(--hq-text); font-weight: 600; }
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hq-line); }
.home-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 32px; color: inherit; }
.home-card + .home-card { border-left: 1px solid var(--hq-line); }
.home-card-label { font-family: var(--hq-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--hq-brand); }
.home-card-title { font-size: 15px; font-weight: 500; color: var(--hq-text); }
.home-card-text { font-size: 13px; color: var(--hq-text-4); }
.home-card-text .callsign { font-family: var(--hq-mono); color: var(--hq-text-2); }
@media (max-width: 767.98px) {
  .home-hero { padding: 48px 16px 56px; }
  .home-search .btn { padding: 0 16px; }
  .home-cards { grid-template-columns: 1fr; }
  .home-card { padding: 20px 24px; }
  .home-card + .home-card { border-left: 0; border-top: 1px solid var(--hq-line); }
}

/* ---- footer (all pages): mono hairline strip as in the homepage mockup ---- */
.site-footer {
  margin-top: 24px; border-top: 1px solid var(--hq-line); background: var(--hq-surface);
  font-family: var(--hq-mono); font-size: 12px; color: var(--hq-text-5);
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-top: 18px; padding-bottom: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: inherit; }
.site-footer-social { display: inline-flex; align-items: center; gap: 5px; }
.home + .site-footer { margin-top: 0; } /* the cards' hairline row ends the homepage */

/* ---- callsign detail, layout "A -- columns" (handoff section 2; owner extras section 3) ---- */
.mono { font-family: var(--hq-mono); }
.profile { background: var(--hq-tint); }
.profile .container { position: relative; }
.profile-banner { position: relative; max-width: 1100px; height: 370px; overflow: hidden; background: var(--hq-field); }
.profile-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-banner-edit {
  position: absolute; top: 14px; right: 14px; padding: 6px 12px;
  font-size: 12px; font-weight: 500; color: var(--hq-text);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--hq-line-2); border-radius: 4px;
}

.profile-identity { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 14px 0 24px; }
.profile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.profile-title h1 { margin: 0; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; color: var(--hq-text); }
.profile-country, .profile-donor, .profile-owner-badge, .profile-silent-key, .profile-archive {
  font-family: var(--hq-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; border-radius: 3px; white-space: nowrap;
}
.profile-country { padding: 3px 8px; color: var(--hq-accent); background: var(--hq-accent-bg); border: 1px solid var(--hq-accent-border); }
.profile-donor { padding: 4px 9px; font-weight: 600; color: #fff; background: var(--hq-brand-green); }
.profile-archive { padding: 3px 8px; color: var(--hq-text-2); background: #f4f4f5; border: 1px solid #d4d4d8; }
.profile-silent-key { padding: 4px 9px; font-weight: 600; color: #fff; background: #3f3f46; }
.profile-owner-badge { padding: 3px 8px; font-size: 11px; color: var(--hq-check); background: #f1f8f2; border: 1px solid #cbe6cf; }
.profile-subline { margin-top: 6px; font-size: 17px; color: var(--hq-text-2); }
.profile-dot { margin: 0 6px; color: var(--hq-text-5); }
.profile-qth { color: var(--hq-text-4); }
.profile-grid { font-family: var(--hq-mono); font-size: 15px; color: var(--hq-accent); }
.profile-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.profile-owner-actions { display: flex; gap: 10px; }
.profile-owner-actions .btn { font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 5px; }
.profile-owner-actions .btn-outline-secondary {
  --bs-btn-color: var(--hq-text); --bs-btn-border-color: var(--hq-input-line);
  --bs-btn-hover-color: var(--hq-text); --bs-btn-hover-bg: var(--hq-field); --bs-btn-hover-border-color: var(--hq-input-line);
  font-weight: 500;
}
/* the owner's ?preview=public: a notice with the way back */
.profile-preview-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0; padding: 10px 16px;
  font-size: 14px; color: var(--hq-accent); background: var(--hq-accent-bg); border: 1px solid var(--hq-accent-border); border-radius: 6px;
}
.profile-preview-bar .btn { flex-shrink: 0; font-weight: 600; }
.profile-meta { font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-5); }

/* the strip's hairlines run across the whole sheet; the first column lines up with the callsign */
.profile-data { background: var(--hq-surface); border-top: 1px solid var(--hq-line); border-bottom: 1px solid var(--hq-line); }
.profile-data-row { display: flex; }
.profile-cell { position: relative; flex: 1 1 0; min-width: 0; padding: 20px 24px 22px; }
.profile-cell + .profile-cell { border-left: 1px solid var(--hq-line); }
.profile-cell:first-child { padding-left: 0; }
.profile-cell:last-child { padding-right: 0; }
.profile-address { flex-grow: 1; }
.profile-station { flex-grow: 1.5; }
.profile-qsl { flex-grow: .8; }
.profile-contact { flex-grow: 1.2; }
.profile-cell h2 { margin: 0 0 12px; font-weight: 400; }
.profile-address-lines { font-size: 14px; line-height: 1.5; }
.profile-station dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 0; }
.profile-station dl > div { display: flex; align-items: baseline; min-width: 0; }
.profile-station dl > .is-wide { grid-column: 1 / -1; }
.profile-station dt { flex: 0 0 64px; font-size: 12px; font-weight: 400; color: var(--hq-text-4); }
.profile-station dd { flex: 1; min-width: 0; margin: 0; font-size: 14px; overflow-wrap: break-word; }
.profile-qsl ul, .profile-contact ul { list-style: none; margin: 0; padding: 0; }
.profile-qsl li { font-size: 14px; line-height: 1.6; color: #b7bcc2; }
.profile-qsl li.is-used, .profile-qsl-via { color: var(--hq-text-2); }
.profile-qsl-mark { display: inline-block; width: 14px; color: #c9ced4; }
.profile-qsl .is-used .profile-qsl-mark { color: var(--hq-check); }
.profile-qsl-via a { font-family: var(--hq-mono); }
.profile-oqrs { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; }
.profile-contact li { font-family: var(--hq-mono); font-size: 13px; line-height: 1.8; color: var(--hq-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-social { display: flex; gap: 8px; margin-top: 14px; }
.profile-social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  color: var(--hq-text-3); border: 1px solid var(--hq-line-2); border-radius: 4px;
}

/* owner: an "Edit" button appears on the section under the pointer (always visible on touch screens) */
.profile-section-edit {
  position: absolute; top: 14px; right: 14px; padding: 3px 10px;
  font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-3);
  background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 4px;
  opacity: 0; transition: opacity .12s;
}
.profile-cell:last-child .profile-section-edit { right: 0; }
.profile-cell:hover .profile-section-edit, .profile-section-edit:focus-visible { opacity: 1; }
/* the same button beside the social icons (their own editor), not in the corner */
.profile-social .profile-social-edit {
  align-self: center; width: auto; height: auto; padding: 3px 10px;
  font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-3);
  background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 4px;
  opacity: 0; transition: opacity .12s;
}
.profile-cell:hover .profile-social-edit, .profile-social-edit:focus-visible { opacity: 1; }
.profile-cell:hover { background: #fcfdfe; }
@media (hover: none) { .profile-section-edit, .profile-social-edit { opacity: 1; } }
.profile-owner-hint {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 24px;
  border: 1px dashed #cfd6dd; border-radius: 6px;
}
.profile-owner-hint strong { font-size: 14px; font-weight: 600; }
.profile-owner-hint p { margin: 2px 0 0; font-size: 13px; color: var(--hq-text-4); }
.profile-owner-hint-links { display: flex; gap: 8px; flex-shrink: 0; }
.profile-owner-hint-links a {
  padding: 5px 10px; font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-3);
  border: 1px solid var(--hq-line-2); border-radius: 4px;
}

.profile-tabs { gap: 28px; margin-top: 24px; border-bottom: 1px solid var(--hq-line); }
.profile-tabs .nav-link {
  padding: 12px 0; margin-bottom: -1px; font-size: 14px; color: var(--hq-text-4);
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
}
.profile-tabs .nav-link:hover { color: var(--hq-text); }
.profile-tabs .nav-link.active { font-weight: 600; color: var(--hq-text); border-bottom-color: var(--hq-accent); }
.profile-tab-content { padding: 28px 0 48px; }
/* .profile-bio (the owner's rich text): styles/bio.css, shared with the O mně editor */
.profile-map { height: 460px; border: 1px solid var(--hq-line-2); border-radius: 6px; z-index: 0; }
.profile-map-note { margin: 8px 0 0; font-size: 12px; color: var(--hq-text-4); }
.profile-map-label { font-family: var(--hq-mono); font-size: 12px; font-weight: 600; color: var(--hq-text); }
.profile-log { display: block; width: 100%; height: 850px; border: 0; }

.profile-not-found h1 { font-size: 44px; letter-spacing: -.02em; }
.profile-not-found-dxcc > div { display: flex; gap: 12px; }
.profile-not-found-dxcc dt { flex: 0 0 100px; font-weight: 400; color: var(--hq-text-4); }
.profile-not-found-dxcc dd { margin: 0 0 4px; }
.profile-not-found-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.profile-not-found-heading { margin: 32px 0 12px; font-weight: 400; }
/* spots are fixed-width lines from the cluster: keep their columns */
.profile-activity .table { --bs-table-color: var(--hq-text-2); font-size: 13px; }
.profile-activity th { font-size: 12px; font-weight: 500; color: var(--hq-text-4); }
.profile-activity td { white-space: nowrap; }
.profile-activity-spot { font-family: var(--hq-mono); font-size: 12px; white-space: pre !important; }

@media (max-width: 991.98px) {
  .profile-banner { height: auto; aspect-ratio: 1100 / 370; }
  .profile-map { height: 340px; }
  .profile-identity { flex-direction: column; align-items: flex-start; }
  .profile-side { align-items: flex-start; text-align: left; }
  .profile-data-row { flex-wrap: wrap; }
  .profile-cell { flex: 1 1 50%; padding-left: 0; padding-right: 24px; }
  .profile-cell + .profile-cell { border-left: 0; }
  .profile-cell:nth-child(n+3) { border-top: 1px solid var(--hq-line); }
  .profile-section-edit { right: 24px; }
}
@media (max-width: 575.98px) {
  .profile-title h1 { font-size: 34px; }
  .profile-cell { flex-basis: 100%; }
  .profile-cell:nth-child(n+2) { border-top: 1px solid var(--hq-line); }
  .profile-cell { padding-right: 0; }
  .profile-section-edit, .profile-cell:last-child .profile-section-edit { right: 0; }
  .profile-owner-hint { flex-direction: column; align-items: flex-start; }
}

/* ---- Upravit profil hub (handoff section 4 / 2b) ---- */
.profile-edit-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  padding: 12px 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--hq-line);
}
.profile-edit-back { font-family: var(--hq-mono); font-size: 12px; color: var(--hq-text-4); }
.profile-edit-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; margin: 14px 0 0;
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--hq-text);
}
.profile-edit-dash { color: #c3c8ce; font-weight: 400; }
.profile-edit-title .callsign { color: var(--hq-accent); overflow-wrap: anywhere; }
.profile-edit-switch { display: flex; align-items: center; gap: 10px; }
.profile-edit-switch-label { font-size: 13px; color: var(--hq-text-4); white-space: nowrap; }
.profile-edit-switcher {
  display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 7px 12px;
  background: var(--hq-surface); color: var(--hq-text); border: 1px solid var(--hq-accent); border-radius: 5px;
}
.profile-edit-switcher:focus-visible, .profile-edit-switcher.show { outline: 0; box-shadow: 0 0 0 3px var(--hq-focus); }
.profile-edit-switcher .callsign { font-size: 13px; }
.profile-edit-switcher.dropdown-toggle::after { margin-left: auto; color: var(--hq-accent); }
.profile-edit-switcher.is-static { min-width: 0; border-color: var(--hq-line-2); }
.profile-edit-position { font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-5); }
.profile-edit-menu { width: 260px; }
.profile-edit-menu .account-menu-filter { padding-top: 10px; }
.profile-edit-menu .account-menu-list { max-height: 236px; }
.profile-edit-group + .profile-edit-group { margin-top: 28px; }
.profile-edit-group > h2 { margin: 0 0 12px; }
.profile-edit-release { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hq-line); }
.profile-edit-release .edit-note { margin-bottom: 10px; }
.profile-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-edit-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; color: var(--hq-text);
}
a.profile-edit-card:hover { opacity: 1; border-color: var(--hq-accent-border); background: var(--hq-accent-bg); }
.profile-edit-card-label { font-family: var(--hq-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--hq-accent); }
.profile-edit-card-title { font-size: 15px; font-weight: 600; }
.profile-edit-card-text { font-size: 13px; line-height: 1.5; color: var(--hq-text-4); }
.profile-edit-card.is-soon { background: var(--hq-tint); cursor: default; }
.profile-edit-card.is-soon .profile-edit-card-label,
.profile-edit-card.is-soon .profile-edit-card-title { color: var(--hq-text-5); }
.profile-edit-card.is-soon .profile-edit-card-text { color: #b7bcc2; }
.profile-edit-card-soon {
  align-self: flex-start; margin-top: 4px; padding: 2px 7px;
  font-family: var(--hq-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hq-text-4); border: 1px solid var(--hq-line-2); border-radius: 3px;
}
/* Editor pages (templates/profile_edit/_page.html.twig, _ui.html.twig): full width, a panel per group. */
.profile-edit-intro { margin: 6px 0 0; font-size: 14px; color: var(--hq-text-4); }
.profile-edit-intro:empty { display: none; }
.profile-edit-form .form-label { font-size: 13px; font-weight: 600; color: var(--hq-text-2); }
.profile-edit-form .form-text { font-size: 12px; color: var(--hq-text-4); }
.edit-page .label-mono { margin: 24px 0 10px; }
.edit-page > .label-mono:first-child, .edit-page > .edit-heading:first-child .label-mono { margin-top: 0; }
.edit-lead { margin: 0; }
.edit-page .form-control, .edit-page .form-select { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.edit-page .form-select { padding-right: 36px; }
.edit-page .form-check-input { float: none; width: 17px; height: 17px; margin: 0; flex: none; border-color: #c3c8ce; }
.edit-page .form-check-input:checked { background-color: var(--hq-brand); border-color: var(--hq-brand); }
.edit-page .form-check-input:focus { border-color: var(--hq-brand); box-shadow: 0 0 0 3px var(--hq-focus); }
.edit-page .form-check { display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0; padding: 0; }
.edit-page .form-check + .form-check { margin-top: 8px; }
.edit-page .form-check-label { font-size: 14px; color: var(--hq-text); }
.edit-panel { display: block; background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; }
.edit-panel-gap { margin-top: 14px; }
.edit-help { display: block; margin-top: 2px; font-size: 13px; color: var(--hq-text-4); }
.edit-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.edit-note { margin: 0; padding: 12px 20px; font-size: 13px; color: var(--hq-text-3); background: var(--hq-tint); border-top: 1px solid var(--hq-line); border-radius: 0 0 6px 6px; }
/* a row: label (or checkbox) on the left, its control on the right */
.edit-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 50px; padding: 8px 20px; }
.edit-row + .edit-row, .edit-row + .edit-note { border-top: 1px solid var(--hq-line); }
.edit-row-label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--hq-text); }
.edit-row > .invalid-feedback { flex-basis: 100%; margin: -4px 0 2px; }
.edit-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--hq-text-2); border: 1px solid var(--hq-line-2); border-radius: 4px; }
.edit-line .edit-row-label { flex: 0 0 170px; }
.edit-line-field { flex: 1 1 280px; }
.edit-row .form-control-color { width: 44px; height: 32px; padding: 3px; }
/* segmented control: radios (btn-check) with their labels as one strip */
.edit-segment { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--hq-input-line); border-radius: 5px; overflow: hidden; background: var(--hq-surface); }
.edit-segment > label { padding: 6px 14px; font-size: 13px; color: var(--hq-text-3); cursor: pointer; white-space: nowrap; }
.edit-segment > label + input + label { border-left: 1px solid var(--hq-line-2); }
.edit-segment > label:hover { background: var(--hq-field); }
.edit-segment > .btn-check:checked + label { background: var(--hq-accent-bg); color: var(--hq-brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--hq-brand); }
.edit-segment > .btn-check:focus-visible + label { outline: 2px solid var(--hq-brand); outline-offset: -2px; }
.edit-segment.is-invalid, .edit-row:has(> .invalid-feedback) .edit-segment { border-color: var(--bs-form-invalid-border-color); }
/* text fields: a grid inside the panel, .is-wide spans it */
.edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 18px 20px; }
.edit-fields.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edit-fields.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.edit-fields > .mb-3, .edit-fields > fieldset { margin: 0 !important; min-width: 0; }
.edit-fields > .is-wide { grid-column: 1 / -1; }
.edit-fields legend { font-size: 13px; font-weight: 600; color: var(--hq-text-2); }
/* checkbox grids (log columns, DX Cluster filters) */
.edit-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; padding: 18px 20px; }
.edit-checks.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.edit-checks.is-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.edit-checks .form-check + .form-check { margin-top: 0; }
.edit-page .btn, #log-search-delete .btn:not(.btn-close) { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 5px; }
.edit-page .btn-outline-secondary {
  --bs-btn-color: var(--hq-text); --bs-btn-border-color: var(--hq-input-line);
  --bs-btn-hover-color: var(--hq-text); --bs-btn-hover-bg: var(--hq-field); --bs-btn-hover-border-color: var(--hq-input-line);
}
.profile-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hq-line); }

/* Váš účet: each panel is its own form with its Save in the panel's footer */
.account-page .edit-page + .edit-page .label-mono:first-child, .account-page > .label-mono { margin-top: 28px; }
.edit-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--hq-line); background: var(--hq-tint); border-radius: 0 0 6px 6px; }
.account-callsigns .callsign { font-family: var(--hq-mono); font-weight: 600; }
.account-current-email { font-family: var(--hq-mono); font-size: 14px; }
.edit-panel > .edit-note + .edit-fields, .edit-panel > .edit-row + .edit-fields { border-top: 1px solid var(--hq-line); }
.edit-panel > .edit-note:not(:last-child) { border-radius: 0; }

/* O mně (templates/profile_edit/about.html.twig): TinyMCE fills the panel, the note is its footer */
.about-editor-panel tinymce-editor { display: block; }
.about-editor-panel .tox-tinymce { border: 0; border-radius: 6px 6px 0 0; }

/* Vyhledávání v logu (templates/profile_edit/log_search.html.twig) */
.log-search-master { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; margin: 0; cursor: pointer; }
.log-search-master .form-check-input { margin-top: 3px; }
.log-search-master-title { font-size: 16px; font-weight: 600; }
.log-search-body { transition: opacity .15s; }
.log-search-body.is-off { opacity: .45; }
.log-search-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.log-search-source {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; cursor: pointer;
  background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px;
}
.log-search-source .form-check-input { margin-top: 2px; }
.log-search-source.is-selected { background: var(--hq-accent-bg); border-color: var(--hq-brand); box-shadow: 0 0 0 3px var(--hq-focus); }
.log-search-source-title { font-size: 15px; font-weight: 600; }
.log-search-count { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--hq-text-4); }
.log-search-count .form-control { width: 72px; font-family: var(--hq-mono); }
.log-search-count.is-off { opacity: .5; }
.log-search-range { font-family: var(--hq-mono); font-size: 11px; color: var(--hq-text-5); }
.log-search-log { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 16px 20px; }
.log-search-stats { display: flex; gap: 36px; margin: 0; }
.log-search-stats dt { font-size: 12px; font-weight: 400; color: var(--hq-text-4); }
.log-search-stats dd { margin: 2px 0 0; font-family: var(--hq-mono); font-size: 17px; font-weight: 600; color: var(--hq-text); }
.log-search-log-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.log-search .btn-outline-danger, #log-search-delete .btn-danger { --bs-btn-color: var(--hq-danger); --bs-btn-border-color: #f0c9bf; --bs-btn-bg: #fdf3f0; }
.log-search .btn-outline-danger { --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--hq-danger); --bs-btn-hover-border-color: var(--hq-danger); }
#log-search-delete .btn-danger { --bs-btn-color: #fff; --bs-btn-bg: var(--hq-danger); --bs-btn-border-color: var(--hq-danger); --bs-btn-hover-bg: #9a3b26; --bs-btn-hover-border-color: #9a3b26; }
#log-search-delete .modal-title { font-size: 17px; font-weight: 600; }

@media (max-width: 991.98px) {
  .profile-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edit-checks.is-5, .edit-checks.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edit-fields.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .profile-edit-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-edit-title { font-size: 24px; }
  .profile-edit-switch { flex-wrap: wrap; }
  .edit-fields, .edit-fields.is-3, .edit-fields.is-4 { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .edit-checks, .edit-checks.is-5, .edit-checks.is-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .edit-row { padding: 10px 16px; }
  .edit-segment { display: flex; width: 100%; }
  .edit-segment > label { flex: 1 1 auto; text-align: center; padding: 7px 8px; white-space: normal; }
  .log-search-sources { grid-template-columns: minmax(0, 1fr); }
  .log-search-master, .log-search-source { padding: 16px; }
}

/* ---- info pages: O HamQTH, FAQ, Přispět, Statistiky, Kontakt, Bannery (templates/info/, contact/) ----
   No mockup of their own: the head of "Upravit profil" (2b), the homepage's hairline cells and the
   profile's "O mně" typography. */
.info-page { padding-top: 12px; padding-bottom: 56px; }
.info-head { padding: 12px 0 24px; margin-bottom: 32px; border-bottom: 1px solid var(--hq-line); }
.info-head h1 { margin: 14px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--hq-text); }
.info-lead { max-width: 720px; margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--hq-text-2); }
.info-prose { max-width: 720px; font-size: 15px; line-height: 1.7; color: var(--hq-text-2); }
.info-prose p { margin: 0 0 16px; }
.info-section { margin-top: 40px; }
/* section headings: the 10 px --hq-text-5 eyebrow was hard to read as a heading */
.info-page h2.label-mono { font-size: 12px; font-weight: 600; color: var(--hq-text-3); }
.info-section > h2.label-mono { margin: 0 0 14px; }
.info-muted { font-size: 13px; color: var(--hq-text-4); }
.info-more { margin: 32px 0 0; font-size: 14px; color: var(--hq-text-3); }

.info-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 920px; margin: 0; padding: 0; list-style: none; }
.info-features li { position: relative; padding: 10px 0 10px 24px; font-size: 14px; line-height: 1.5; color: var(--hq-text-2); border-top: 1px solid var(--hq-line); }
.info-features li::before { content: '✓'; position: absolute; left: 2px; color: var(--hq-check); }
.info-people { display: grid; gap: 16px; max-width: 720px; margin: 0; }
.info-people dt { font-size: 15px; font-weight: 600; color: var(--hq-text); }
.info-people dd { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--hq-text-2); }
.info-people-web { margin-left: 10px; font-family: var(--hq-mono); font-size: 12px; font-weight: 400; }
.info-team { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.info-signoff p { margin: 0 0 4px; font-size: 15px; color: var(--hq-text-2); }

.faq-list { max-width: 820px; margin: 0; padding: 0; list-style: none; counter-reset: faq; }
.faq-list li { position: relative; padding: 20px 0 20px 48px; border-top: 1px solid var(--hq-line); counter-increment: faq; }
.faq-list li:first-child { border-top: 0; padding-top: 0; }
.faq-list li::before {
  content: counter(faq, decimal-leading-zero); position: absolute; left: 0; top: 23px;
  font-family: var(--hq-mono); font-size: 11px; letter-spacing: .16em; color: var(--hq-brand);
}
.faq-list li:first-child::before { top: 3px; }
.faq-list h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--hq-text); }
.faq-list p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--hq-text-2); }

.stats-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -32px 0 0; border-bottom: 1px solid var(--hq-line); } /* sits right on the head's hairline */
.stats-figures > div { display: flex; flex-direction: column; padding: 22px 24px; }
.stats-figures > div:first-child { padding-left: 0; }
.stats-figures > div + div { border-left: 1px solid var(--hq-line); }
.stats-figures dd { order: -1; margin: 0; font-family: var(--hq-mono); font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--hq-text); }
.stats-figures dt { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--hq-text-4); }
.stats-logs { margin: 16px 0 0; font-size: 14px; color: var(--hq-text-3); }
.stats-logs strong { font-family: var(--hq-mono); font-weight: 600; color: var(--hq-text); }
.stats-lists { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 44px; }
.stats-lists h2.label-mono { margin: 0 0 12px; line-height: 1.5; }
.stats-table { --bs-table-color: var(--hq-text-2); --bs-table-border-color: var(--hq-line); font-size: 14px; }
.stats-table th { font-size: 12px; font-weight: 500; color: var(--hq-text-4); }
.stats-table .callsign { font-size: 13px; }
.stats-actions { font-size: 13px; }
.stats-actions a + a { margin-left: 16px; }
.stats-calls { margin: 0; padding: 0; list-style: none; }
.stats-calls li { padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--hq-line); }

.donate-ways { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; max-width: 920px; }
.donate-ways-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.donate-way { padding: 20px; background: var(--hq-surface); border: 1px solid var(--hq-line-2); border-radius: 6px; }
.donate-way h2.label-mono { margin: 0 0 14px; color: var(--hq-accent); }
.donate-way p { margin: 0 0 14px; font-size: 14px; color: var(--hq-text-2); }
.donate-paypal .form-label { font-size: 13px; font-weight: 600; color: var(--hq-text-2); }
.donate-paypal-row { display: flex; gap: 10px; }
.donate-paypal-row .form-control { flex: 1; min-width: 0; font-family: var(--hq-mono); text-transform: uppercase; letter-spacing: .04em; }
.donate-paypal-row .btn, .donate-patreon .btn { font-weight: 600; padding: 8px 18px; border-radius: 5px; white-space: nowrap; }
.donate-paypal .donate-help { margin: 8px 0 0; font-size: 12px; color: var(--hq-text-4); }
.donate-badge { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--hq-text-3); }
.donate-badge .profile-donor { font-family: var(--hq-mono); font-size: 12px; letter-spacing: .1em; border-radius: 3px; }
.donate-japan { max-width: 920px; margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: var(--hq-text-4); }
.donate-list { max-width: 920px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 56px; }
.contact-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.contact-form .form-label { font-size: 13px; font-weight: 600; color: var(--hq-text-2); }
.contact-form .form-control { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.contact-send { font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 5px; }
.contact-aside h2.label-mono { margin: 0 0 10px; }
.contact-aside p { margin: 0 0 12px; font-size: 14px; }

.banner-list { margin: 0; padding: 0; list-style: none; }
.banner-item { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--hq-line); }
.banner-item:first-child { border-top: 0; padding-top: 0; }
.banner-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.banner-preview img { max-width: 100%; height: auto; }
.banner-form { display: flex; gap: 6px; }
.banner-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font-size: 13px; color: var(--hq-text-4); }
.banner-meta .mono { font-size: 12px; color: var(--hq-text); }
.banner-copy { margin-left: auto; font-size: 12px; padding: 3px 10px; }
.banner-code pre {
  margin: 0; padding: 14px 16px; background: var(--hq-field); border: 1px solid var(--hq-line-2); border-radius: 4px;
  font-size: 12px; line-height: 1.6; color: var(--hq-text-2); white-space: pre-wrap; overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .stats-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-figures > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats-figures > div:nth-child(n+3) { border-top: 1px solid var(--hq-line); }
  .stats-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-not-found { grid-column: 1 / -1; }
  .banner-item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 575.98px) {
  .info-head h1 { font-size: 24px; }
  .info-lead { font-size: 15px; }
  .info-features, .donate-ways, .contact-pair { grid-template-columns: minmax(0, 1fr); }
  .stats-figures > div { padding: 16px 12px; }
  .stats-figures dd { font-size: 20px; }
  .stats-lists { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-list li { padding-left: 36px; }
  .donate-paypal-row { flex-wrap: wrap; }
  .donate-paypal-row .btn { flex: 1 1 100%; }
}

/* news, developers (English only), privacy, supported apps, translations */
.info-english-only { margin: -16px 0 24px; font-size: 13px; color: var(--hq-text-4); }
.news-list { max-width: 820px; }
.news-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--hq-line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-date { margin: 2px 0 0; font-family: var(--hq-mono); font-size: 12px; font-weight: 500; color: var(--hq-accent); }
.news-body { font-size: 14px; line-height: 1.6; color: var(--hq-text-2); }
.news-body ul { margin: 0; padding-left: 18px; }
.news-body li + li { margin-top: 4px; }
.doc-prose { max-width: 900px; font-size: 14px; line-height: 1.65; color: var(--hq-text-2); }
.doc-prose h2 { margin: 48px 0 12px; padding-top: 24px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--hq-text); border-top: 1px solid var(--hq-line); scroll-margin-top: 16px; }
.doc-prose h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; color: var(--hq-text); }
.doc-prose pre {
  margin: 8px 0 16px; padding: 12px 16px; background: var(--hq-field); border: 1px solid var(--hq-line-2); border-radius: 4px;
  font-size: 12px; line-height: 1.55; color: var(--hq-text-2); white-space: pre-wrap; overflow-wrap: anywhere;
}
.doc-prose table { margin: 6px 0 14px; border-collapse: collapse; }
.doc-prose td, .doc-prose th { padding: 4px 20px 4px 0; vertical-align: top; }
.doc-prose td:first-child b { font-family: var(--hq-mono); font-size: 13px; }
.doc-prose a { overflow-wrap: anywhere; }
.doc-note { margin: 16px 0; padding: 12px 16px; font-size: 13px; color: #7a2f1f; background: #fdf3f0; border: 1px solid #f0c9bf; border-radius: 4px; }
.doc-note p { margin: 0; }
.privacy-list { margin: 0 0 16px; padding-left: 20px; }
.privacy-list.is-required li { font-weight: 600; color: var(--hq-text); }
.privacy-source { margin-left: 6px; font-family: var(--hq-mono); font-size: 12px; }
.apps-table, .translate-table { max-width: 920px; }
.apps-name { font-weight: 600; color: var(--hq-text); }
.apps-web a { font-family: var(--hq-mono); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .news-item { grid-template-columns: minmax(0, 1fr); }
  .doc-prose h2 { font-size: 19px; }
}
.doc-note.is-info { color: #1a4a86; background: var(--hq-accent-bg); border-color: var(--hq-accent-border); }

/* ---- error pages (design_handoff_hamqth_errors/README.md); public/500.html repeats these by hand ---- */
.error-page-main { background: var(--hq-tint); }
.error-page {
  max-width: 1100px; margin: 0 auto; padding: 72px 40px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
}
.error-page-text { display: flex; flex-direction: column; gap: 28px; }
.error-page-label { margin: 0; font-family: var(--hq-mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hq-text-4); }
.error-page-lead { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.error-page-lead h1 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--hq-text); }
.error-page-lead p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hq-text-2); text-wrap: pretty; }
.error-page-search { display: flex; align-self: flex-start; max-width: 100%; border: 1px solid var(--hq-input-line); border-radius: 5px; overflow: hidden; background: var(--hq-surface); }
.error-page-search input {
  width: 260px; min-width: 0; padding: 11px 14px; border: 0; outline: 0;
  font-family: var(--hq-mono); font-size: 15px; text-transform: uppercase; color: var(--hq-text);
}
.error-page-search input::placeholder { text-transform: none; color: var(--hq-text-5); }
.error-page-search button { padding: 0 20px; border: 0; font-size: 14px; font-weight: 600; color: #fff; background: var(--hq-brand); }
.error-page-search button:hover { background: var(--hq-brand-hover); }
.error-page-search:focus-within { box-shadow: 0 0 0 3px var(--hq-focus); }
.error-page-image { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
@media (max-width: 760px) {
  .error-page { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 24px 64px; }
  .error-page-image { order: -1; max-width: 360px; margin: 0 auto; }
  .error-page-lead h1 { font-size: 30px; }
}
