/* hamnet.gr brand, direction "Αιγαίο" (George, 7/11/2026).
   One file for every page: the Astro pages and the standalone pages
   (exams, tools, guides, emergency, FT8) all link /brand/hamnet.css.

   Colour rules:
     brand blue  = identity, links, primary buttons, selection
     green       = only "on air / live / correct"
     amber       = only "unverified / warning"
     red         = only "down / wrong"
   Type: Commissioner (by Greek designer Kostas Bartsokas) for everything,
   JetBrains Mono for callsigns, frequencies, locators and times.
   Frame: one width (1200 px) and one header and footer on every page.

   Everything here is namespaced (--hn-*, .hn-*) so it cannot collide with
   the page-level styles of the standalone pages. */

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/brand/fonts/commissioner-greek-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/brand/fonts/commissioner-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/brand/fonts/commissioner-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/brand/fonts/jetbrains-mono-greek-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/brand/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --hn-f-sans: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hn-f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --hn-maxw: 1200px;
  --hn-gutter: max(20px, env(safe-area-inset-left, 0px));
  --hn-gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --hn-top-h: 60px;
  --hn-r: 10px;
  --hn-r-s: 7px;

  /* light */
  --hn-bg: #f4f6f9;
  --hn-surface: #ffffff;
  --hn-surface-2: #edf1f7;
  --hn-line: #dbe1ea;
  --hn-line-strong: #c3ccd9;
  --hn-ink: #0b1a33;
  --hn-muted: #526076;
  --hn-faint: #687589;
  --hn-brand: #006ad0;
  --hn-brand-strong: #0052a8;
  --hn-on-brand: #ffffff;
  --hn-brand-soft: #e3effc;
  --hn-link: #0062c4;
  --hn-logo-ink: #002049;
  --hn-logo-sky: #008cf5;
  --hn-live: #12814a;
  --hn-live-ink: #ffffff;
  --hn-live-soft: #e1f3e9;
  --hn-down: #c0392b;
  --hn-down-soft: #fbe6e3;
  --hn-warn: #915f00;
  --hn-warn-soft: #faefd9;
  --hn-top-bg: rgba(255, 255, 255, 0.86);
  --hn-shadow: 0 10px 30px -12px rgba(15, 26, 43, 0.22), 0 2px 6px -2px rgba(15, 26, 43, 0.08);
  --hn-map-filter: none;
  --hn-c2: #7b52d6;
  --hn-c3: #c2417a;
  --hn-c4: #0e7490;
  --hn-c5: #64748b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --hn-bg: #0a1019;
    --hn-surface: #101926;
    --hn-surface-2: #162133;
    --hn-line: #213049;
    --hn-line-strong: #30425f;
    --hn-ink: #e7edf6;
    --hn-muted: #98a5b9;
    --hn-faint: #7f8ca2;
    --hn-brand: #3aa3ff;
    --hn-brand-strong: #6cb8ff;
    --hn-on-brand: #07101e;
    --hn-brand-soft: #0f2744;
    --hn-link: #6cb8ff;
    --hn-logo-ink: #eef3fa;
    --hn-logo-sky: #2b9dff;
    --hn-live: #4fd18b;
    --hn-live-ink: #04140b;
    --hn-live-soft: rgba(79, 209, 139, 0.13);
    --hn-down: #f27d70;
    --hn-down-soft: rgba(242, 125, 112, 0.13);
    --hn-warn: #e9b44f;
    --hn-warn-soft: rgba(233, 180, 79, 0.13);
    --hn-top-bg: rgba(10, 16, 25, 0.84);
    --hn-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
    --hn-map-filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.4);
    --hn-c2: #b49bff;
    --hn-c3: #f07cb0;
    --hn-c4: #5cc8e0;
    --hn-c5: #94a3b8;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --hn-bg: #0a1019;
  --hn-surface: #101926;
  --hn-surface-2: #162133;
  --hn-line: #213049;
  --hn-line-strong: #30425f;
  --hn-ink: #e7edf6;
  --hn-muted: #98a5b9;
  --hn-faint: #7f8ca2;
  --hn-brand: #3aa3ff;
  --hn-brand-strong: #6cb8ff;
  --hn-on-brand: #07101e;
  --hn-brand-soft: #0f2744;
  --hn-link: #6cb8ff;
  --hn-logo-ink: #eef3fa;
  --hn-logo-sky: #2b9dff;
  --hn-live: #4fd18b;
  --hn-live-ink: #04140b;
  --hn-live-soft: rgba(79, 209, 139, 0.13);
  --hn-down: #f27d70;
  --hn-down-soft: rgba(242, 125, 112, 0.13);
  --hn-warn: #e9b44f;
  --hn-warn-soft: rgba(233, 180, 79, 0.13);
  --hn-top-bg: rgba(10, 16, 25, 0.84);
  --hn-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --hn-map-filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.4);
  --hn-c2: #b49bff;
  --hn-c3: #f07cb0;
  --hn-c4: #5cc8e0;
  --hn-c5: #94a3b8;
  color-scheme: dark;
}

/* ---------- page base (safe for every page) ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hn-top-h) + 12px); }
body {
  margin: 0;
  background: var(--hn-bg);
  color: var(--hn-ink);
  font-family: var(--hn-f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--hn-brand-soft); color: var(--hn-ink); }

/* the shared frame width */
.hn-frame {
  max-width: var(--hn-maxw);
  margin-inline: auto;
  padding-left: var(--hn-gutter);
  padding-right: var(--hn-gutter-r);
  box-sizing: content-box;
}

/* ---------- logo ---------- */
.hn-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--hn-ink); flex: none; }
.hn-mark { height: 30px; width: auto; flex: none; display: block; overflow: visible; }
.hn-mark .hn-l-ink { fill: var(--hn-logo-ink); }
.hn-mark .hn-l-sky { fill: var(--hn-logo-sky); }
.hn-word { position: relative; padding-left: 12px; font: 800 italic 20px/1 var(--hn-f-sans); letter-spacing: -0.015em; white-space: nowrap; color: var(--hn-logo-ink); }
.hn-word::before { content: ''; position: absolute; left: 1px; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--hn-logo-ink); opacity: .85; transform: skewX(-14deg); }
.hn-word span { color: var(--hn-logo-sky); }
.hn-word span b { color: var(--hn-logo-ink); font-weight: inherit; }
@media (max-width: 420px) { .hn-mark { height: 28px; } .hn-word { font-size: 18px; padding-left: 11px; } }

/* ---------- header ---------- */
.hn-top, .hn-foot {
  font: 400 15px/1.5 var(--hn-f-sans);
  color: var(--hn-ink);
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.hn-top *, .hn-top *::before, .hn-top *::after,
.hn-foot *, .hn-foot *::before, .hn-foot *::after { box-sizing: border-box; }
.hn-top ul, .hn-foot ul { list-style: none; margin: 0; padding: 0; }
.hn-top a, .hn-foot a { color: inherit; text-decoration: none; }
.hn-top p, .hn-foot p { margin: 0; }

.hn-top {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: block;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 0;
  background: var(--hn-top-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border: 0;
  border-bottom: 1px solid var(--hn-line);
}
.hn-top-in { display: flex; align-items: center; gap: 22px; height: var(--hn-top-h); }

.hn-menu { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.hn-menu > li { position: relative; }
.hn-menu > li > a {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  border-radius: var(--hn-r-s);
  font-size: 14.5px; font-weight: 550; color: var(--hn-muted);
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.hn-menu > li > a .hn-caret { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.15s; }
.hn-menu > li:hover > a, .hn-menu > li:focus-within > a { color: var(--hn-ink); background: var(--hn-surface-2); }
.hn-menu > li:hover > a .hn-caret, .hn-menu > li:focus-within > a .hn-caret { transform: rotate(180deg); }
.hn-menu > li > a[aria-current='true'] { color: var(--hn-ink); }
.hn-menu > li > a[aria-current='true']::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px;
  border-radius: 2px; background: var(--hn-brand);
}

.hn-sub {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 280px;
  padding: 8px;
  background: var(--hn-surface);
  border: 1px solid var(--hn-line);
  border-radius: 12px;
  box-shadow: var(--hn-shadow);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s, transform 0.14s, visibility 0s linear 0.14s;
}
.hn-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.hn-menu > li:hover > .hn-sub, .hn-menu > li:focus-within > .hn-sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.hn-sub a { display: flex; align-items: flex-start; gap: 11px; padding: 9px 12px; border-radius: 8px; }
.hn-sub a > span { display: grid; gap: 1px; min-width: 0; }
.hn-sub a > .hn-ic { width: 20px; height: 20px; margin-top: 1px; color: var(--hn-brand); flex: none; }
.hn-sub-2 { grid-template-columns: repeat(2, minmax(250px, 1fr)); min-width: 540px; }
.hn-menu > li:nth-last-child(-n+2) > .hn-sub { left: auto; right: -8px; }
.hn-sub a:hover, .hn-sub a:focus-visible { background: var(--hn-surface-2); }
.hn-sub a b { font-weight: 600; font-size: 14.5px; color: var(--hn-ink); }
.hn-sub a small { font-size: 12.5px; color: var(--hn-muted); line-height: 1.35; }
.hn-sub a[aria-current='page'] { background: var(--hn-brand-soft); }
.hn-sub a[aria-current='page'] b { color: var(--hn-brand); }

.hn-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.hn-clock { font: 500 13px/1 var(--hn-f-mono); color: var(--hn-muted); white-space: nowrap; padding-right: 6px; }
.hn-clock small { font-size: 11px; color: var(--hn-faint); margin-left: 3px; }

.hn-btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; margin: 0;
  border: 1px solid var(--hn-line); border-radius: var(--hn-r-s);
  background: transparent; color: var(--hn-muted);
  font: inherit; cursor: pointer; list-style: none;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.hn-btn::-webkit-details-marker { display: none; }
.hn-lang { font: 600 12px/1 var(--hn-f-mono); letter-spacing: 0.04em; text-decoration: none; }
.hn-lang:hover { text-decoration: none; }
.hn-btn:hover { color: var(--hn-ink); background: var(--hn-surface-2); border-color: var(--hn-line-strong); }
.hn-btn svg { width: 18px; height: 18px; display: block; }
.hn-theme .hn-i-sun { display: none; }
:root[data-theme='dark'] .hn-theme .hn-i-sun { display: block; }
:root[data-theme='dark'] .hn-theme .hn-i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hn-theme .hn-i-sun { display: block; }
  :root:not([data-theme='light']) .hn-theme .hn-i-moon { display: none; }
}

.hn-top :focus-visible, .hn-foot :focus-visible { outline: 2px solid var(--hn-brand); outline-offset: 2px; }

/* mobile drawer */
.hn-burger { display: none; position: static; }
.hn-burger > summary .hn-i-x { display: none; }
.hn-burger[open] > summary .hn-i-x { display: block; }
.hn-burger[open] > summary .hn-i-bars { display: none; }
.hn-drawer {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100dvh - var(--hn-top-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--hn-surface);
  border-bottom: 1px solid var(--hn-line);
  box-shadow: var(--hn-shadow);
  padding: 8px var(--hn-gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--hn-gutter);
  display: grid; gap: 4px;
}
.hn-drawer section { padding: 12px 0 8px; border-top: 1px solid var(--hn-line); }
.hn-drawer section:first-child { border-top: 0; }
.hn-drawer p { display: flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--hn-f-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hn-faint); padding: 0 10px 8px; }
.hn-drawer ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hn-drawer p .hn-ic { width: 16px; height: 16px; color: var(--hn-brand); }
.hn-drawer a .hn-ic { width: 18px; height: 18px; color: var(--hn-muted); flex: none; }
.hn-drawer-search {
  appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; margin: 8px 0 4px;
  padding: 12px 14px; border: 1px solid var(--hn-line-strong); border-radius: 10px;
  background: var(--hn-surface-2); color: var(--hn-muted); font: 500 15px/1.2 var(--hn-f-sans); text-align: left; cursor: pointer;
}
.hn-drawer-search .hn-ic { width: 18px; height: 18px; flex: none; }
.hn-drawer a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font-weight: 550; font-size: 15px; }
.hn-drawer a:hover { background: var(--hn-surface-2); }
.hn-drawer a[aria-current='page'] { background: var(--hn-brand-soft); color: var(--hn-brand); }

@media (max-width: 1080px) {
  .hn-menu { display: none; }
  .hn-burger { display: block; }
}
/* desktop: the search button is an icon with its shortcut; the drawer has the big one */
.hn-search span { display: none; }
@media (max-width: 1080px) {
  .hn-search kbd { display: none; }
  .hn-search { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 420px) {
  .hn-clock { display: none; }
  .hn-drawer ul { grid-template-columns: 1fr; }
}

/* mid widths: the full menu fits next to the logo only if the header tightens */
@media (min-width: 1081px) {
  .hn-top-in { gap: 14px; }
  .hn-menu > li > a { padding: 0 7px; }
}
@media (min-width: 1081px) and (max-width: 1359px) {
  .hn-search kbd { display: none; }
  .hn-search { width: 36px; padding: 0; justify-content: center; }
}
@media (min-width: 1081px) and (max-width: 1239px) {
  .hn-word { display: none; }
}
@media (min-width: 1081px) and (max-width: 1159px) {
  .hn-clock { display: none; }
}

/* ---------- footer ---------- */
.hn-foot {
  display: block;
  max-width: none;
  margin: 72px 0 0;
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--hn-surface);
  border: 0;
  border-top: 1px solid var(--hn-line);
  color: var(--hn-muted);
  font-size: 14px;
}
.hn-foot-grid { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(6, minmax(0, 1fr)); gap: 36px 24px; }
.hn-foot-about { display: grid; gap: 14px; align-content: start; }
.hn-foot-about p { max-width: 34ch; line-height: 1.55; }
.hn-foot-73 { font-size: 13px; color: var(--hn-faint); }
.hn-foot-73 .hn-call { font-family: var(--hn-f-mono); color: var(--hn-muted); }
.hn-foot-links { display: inline-flex; gap: 18px; }
.hn-foot-col p a:hover { text-decoration: none; color: var(--hn-brand); }
.hn-foot-cols { display: contents; }
.hn-foot-col { display: grid; gap: 10px; align-content: start; }
.hn-foot-col p { font: 600 12px/1 var(--hn-f-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hn-ink); }
.hn-foot-col ul { display: grid; gap: 7px; }
.hn-foot a:hover { color: var(--hn-ink); text-decoration: underline; text-underline-offset: 3px; }
.hn-foot-base {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hn-line);
  font-size: 13px; color: var(--hn-faint);
}
.hn-foot-base a { color: var(--hn-muted); }
.hn-foot-base .hn-call { font-family: var(--hn-f-mono); font-weight: 500; color: var(--hn-muted); }
@media (max-width: 1080px) {
  .hn-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hn-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hn-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hn-sub, .hn-menu > li > a, .hn-menu > li > a svg, .hn-btn { transition: none; }
}
@media print {
  .hn-top, .hn-foot { display: none; }
}

.hn-top-in > nav { flex: 1; min-width: 0; }

/* ---------- icons (sprite in the header, see web/src/icons.js) ---------- */
.hn-ic { width: 1.25em; height: 1.25em; display: inline-block; flex: none; vertical-align: -0.25em; }

/* ---------- search button in the header ---------- */
.hn-search {
  appearance: none; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 8px 0 11px; margin: 0;
  border: 1px solid var(--hn-line); border-radius: var(--hn-r-s);
  background: var(--hn-surface); color: var(--hn-muted);
  font: 500 13.5px/1 var(--hn-f-sans); cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.hn-search:hover { color: var(--hn-ink); border-color: var(--hn-line-strong); }
.hn-search .hn-ic { width: 17px; height: 17px; }
.hn-search span { min-width: 7.5em; text-align: left; }
.hn-search kbd, .hn-pal kbd {
  font: 500 11px/1 var(--hn-f-mono); color: var(--hn-faint);
  padding: 4px 5px; border: 1px solid var(--hn-line); border-radius: 5px; background: var(--hn-surface-2);
}

/* ---------- search palette (Ctrl+K) ---------- */
.hn-pal {
  width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 120px));
  margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--hn-line); border-radius: 14px;
  background: var(--hn-surface); color: var(--hn-ink);
  box-shadow: var(--hn-shadow), 0 30px 80px -20px rgba(0, 0, 0, 0.35);
  font: 400 15px/1.45 var(--hn-f-sans);
  overflow: hidden;
}
.hn-pal[open] { display: flex; flex-direction: column; }
.hn-pal::backdrop { background: rgba(10, 16, 25, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hn-pal * { box-sizing: border-box; }
.hn-pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--hn-line); flex: none; }
.hn-pal-in .hn-ic { width: 20px; height: 20px; color: var(--hn-brand); }
.hn-pal-in input {
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--hn-ink);
  font: 500 17px/1 var(--hn-f-sans);
}
.hn-pal-in input:focus, .hn-pal-in input:focus-visible { outline: 0; box-shadow: none; }
.hn-pal-in input::-webkit-search-cancel-button { display: none; }
.hn-pal-in input::placeholder { color: var(--hn-faint); }
.hn-pal-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.hn-pal-group { padding: 10px 10px 4px; font: 600 11px/1 var(--hn-f-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hn-faint); }
.hn-pal-list a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px;
  color: var(--hn-ink); text-decoration: none;
}
.hn-pal-list a .hn-pal-ic {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--hn-surface-2); color: var(--hn-brand);
}
.hn-pal-list a .hn-pal-ic .hn-ic { width: 18px; height: 18px; }
.hn-pal-list a b { display: block; font-weight: 600; font-size: 15px; }
.hn-pal-list a small { display: block; font-size: 13px; color: var(--hn-muted); }
.hn-pal-list a .hn-pal-sec { margin-left: auto; font-size: 12px; color: var(--hn-faint); white-space: nowrap; padding-left: 8px; }
.hn-pal-list a[aria-selected='true'] { background: var(--hn-brand-soft); }
.hn-pal-list a[aria-selected='true'] .hn-pal-ic { background: var(--hn-brand); color: var(--hn-on-brand); }
.hn-pal-list .mono { font-family: var(--hn-f-mono); }
.hn-pal-empty { padding: 28px 16px; text-align: center; color: var(--hn-muted); font-size: 14px; }
.hn-pal-foot {
  display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--hn-line);
  font-size: 12px; color: var(--hn-faint); flex: none;
}
.hn-pal-foot span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 560px) {
  .hn-pal { margin-top: 8px; max-height: calc(100dvh - 16px); }
  .hn-pal-foot { display: none; }
  .hn-pal-list a .hn-pal-sec { display: none; }
}
