/* ==========================================================================
   dx — Editorial
   Two selectable themes beside the atlas: Editorial light and Editorial dark.
   Loaded last; every rule is scoped to html[data-skin="editorial"], so the atlas
   (Atlas paper, Atlas ink) is untouched.

   The rules this layer keeps:
   - A newspaper page, not a chart table: flat white (or near-black) ground, no paper
     grain, no engraved frames, no navy rail. Rules do the dividing: a hairline between
     things, a heavy rule over a section.
   - One serif, Newsreader (self-hosted, OFL), for headlines and reading text, upright
     in headlines, italic only for decks, captions and notes. Instrument Sans for the
     furniture a newspaper sets in sans: kickers, labels, tabs, buttons, navigation.
     Mono stays inside instruments.
   - The innerpulse grounds: Paper for light, Carbon for dark, glass plates lit from above.
     Ember is the one highlight; the brand accents are kept for meaning (links, the key).

    1  Fonts        4  Rail & tab bar      7  Controls          10  Bench, Learn, Lookup
    2  Tokens       5  Masthead & strip    8  Now & the map     11  Footer & search
    3  Type         6  Page heads & tabs   9  Bands & Listen    12  Phones
   ========================================================================== */

/* ---------- 1. Fonts ---------------------------------------------------- */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../assets/fonts/newsreader.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(../assets/fonts/newsreader-italic.woff2) format("woff2");
}

/* ---------- 2. Tokens --------------------------------------------------- */
html[data-skin="editorial"] {
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --label: 700 11px/1.3 var(--sans);
  --label-track: .1em;
  --paper-image: none;
  --rad-sm: 2px; --rad-md: 2px; --rad-lg: 2px;
}
/* Editorial light wears the innerpulse Paper set, Editorial dark the Carbon set (innerpulse-brand
   references/themes.md). Ember is the highlight: the current tab, the rail slip, the index tick on a
   hero plate, focus rings and the one filled button. The brand accents carry meaning: cyan for links,
   ember for open paths, amber for marginal ones, mint for good. */
html[data-skin="editorial"][data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ec; --bg2: #efebe4; --panel: #f4f1ec; --panel-elevated: #efebe4; --panel-glass: #efebe4;
  --card: #efebe4; --card-bg: #efebe4; --surface-3: #e0dad0;
  --tint-subtle: #efebe4; --tint-hover: #e9e4db; --tint-active: #e0dad0;
  --txt: #14171c; --txt-bright: #0b0d10; --dim: #454b56; --dim-subtle: #575e6b;
  --line: rgba(20, 23, 28, .2); --line2: rgba(20, 23, 28, .11); --line-strong: #2b3037;
  --ink-red: #b42418; --route-ink: #b42418;
  --ink-blue: #09677e; --ink-green: #0d6d3d; --ink-ochre: #8b5109; --ink-violet: #6a3fd0; --ink-slate: #575e6b;
  --atlas-sea: #e9e4db; --atlas-land: #f4f1ec; --atlas-frame: #2b3037;
  --green: var(--ink-green); --amber: var(--ink-ochre); --red: #a3221a;
  --purple: var(--ink-violet); --indigo: #285fcd; --coral: #a83a18;
  --ink-accent: var(--ink-red); --cyan: var(--ink-blue);
  --ed-link: #09677e;
  --ed-strong: #2b3037; --ed-on-strong: #f4f1ec;
  --ed-hi: #b42418;                       /* ember as a line, a tick, a ring */
  --ember: #b42418; --ip-mark: #cf2a1c; --action: #d12c1e; --action-hover: #bd2417;
  --ed-sheen: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 38%);
  --ed-lip: inset 0 1px 0 rgba(255, 255, 255, .8);
  --ed-pane-shadow: 0 1px 2px rgba(20, 23, 28, .06), 0 10px 26px -16px rgba(20, 23, 28, .28);
  --scrollbar-thumb: rgba(20, 23, 28, .24);
  --desk-shadow: 0 14px 30px -20px rgba(20, 23, 28, .35), 0 1px 3px rgba(20, 23, 28, .08);
  --ins-mid: #e0dad0;
}
html[data-skin="editorial"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10; --bg2: #111317; --panel: #111317; --panel-elevated: #171a1f; --panel-glass: #171a1f;
  --card: #111317; --card-bg: #111317; --surface-3: #1f2329;
  --tint-subtle: #111317; --tint-hover: #171a1f; --tint-active: #1f2329;
  --txt: #e3e6e9; --txt-bright: #f4f6f8; --dim: #b9bdc3; --dim-subtle: #8f949b;
  --line: rgba(227, 230, 233, .16); --line2: rgba(227, 230, 233, .09); --line-strong: #8f949b;
  --ink-red: #f43a2a; --route-ink: #ff5a2e;
  --ink-blue: #52e3ff; --ink-green: #7dffb0; --ink-ochre: #ffb347; --ink-violet: #b38cff; --ink-slate: #8f949b;
  --atlas-sea: #111317; --atlas-land: #1f2329; --atlas-frame: #8f949b;
  --green: var(--ink-green); --amber: var(--ink-ochre); --red: #ff9a8f;
  --purple: var(--ink-violet); --indigo: #628dea; --coral: #ff7a59;
  --ink-accent: var(--ink-red); --cyan: var(--ink-blue);
  --ed-link: #52e3ff;
  --ed-strong: #e3e6e9; --ed-on-strong: #0b0d10;
  --ed-hi: #f43a2a;
  --ember: #f43a2a; --ip-mark: #f43a2a; --action: #d12c1e; --action-hover: #bd2417;
  --ed-sheen: linear-gradient(180deg, rgba(227, 230, 233, .05), rgba(227, 230, 233, 0) 40%);
  --ed-lip: inset 0 1px 0 rgba(227, 230, 233, .09);
  --ed-pane-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px -18px rgba(0, 0, 0, .85);
  --scrollbar-thumb: rgba(227, 230, 233, .2);
  --desk-shadow: 0 16px 34px -18px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .5);
  --ins-mid: #1f2329;
}
html[data-skin="editorial"] {
  --rail-paper: var(--bg2);
  --rail-text: var(--txt);
  --rail-dim: var(--dim);
  --rail-ember: var(--ed-hi);
}
html[data-skin="editorial"] body,
html[data-skin="editorial"] #topbar,
html[data-skin="editorial"] #kpiStrip { background: var(--bg); }
html[data-skin="editorial"] ::selection { background: color-mix(in srgb, var(--ed-link) 22%, transparent); color: inherit; }

/* ---------- 3. Type ----------------------------------------------------- */
html[data-skin="editorial"] body { font-optical-sizing: auto; }
html[data-skin="editorial"] #content { font-family: var(--display); }
html[data-skin="editorial"] :where(#content p:not(.mono), #content li:not(.mono)) { line-height: 1.55; }

/* headlines: upright, black, tight */
html[data-skin="editorial"] :is(#pagehead .ph-title, .now-verdict, .band-head h1, .exam-line h3) {
  font-style: normal; font-weight: 700; color: var(--txt-bright); letter-spacing: -.018em;
}
html[data-skin="editorial"] #pagehead .ph-title { font-size: clamp(34px, 4vw, 64px); line-height: 1.05; }
html[data-skin="editorial"] :is(
  .panel > h2, .card-head h2, .panel > .row:first-child > h2, .atlas-table-head h2,
  .band-cols .panel .card-head h2, .idx-card h3, .idx-card:has(.engraving) h3, .morse-plate .idx-card h3,
  .idx-group > h2, #content h3, .res-name, .colophon b, .bandcard b
) { font-style: normal; font-weight: 700; color: var(--txt-bright); letter-spacing: -.01em; }

/* decks and captions keep the italic, in grey */
html[data-skin="editorial"] :is(.ph-deck, .atlas-subtitle, .band-profile, .atlas-table-head p) { color: var(--dim); }
html[data-skin="editorial"] .lede, html[data-skin="editorial"] .panel .lede { font-size: 17px; line-height: 1.55; color: var(--txt); }

/* the sans furniture: kickers, labels, tabs, buttons, navigation, state words */
html[data-skin="editorial"] :is(
  .ph-kicker, .glyph-dropdown-header, .atlas-dateline, .atlas-caption h2, .dn-title, .subnav-area,
  .res-tag, .imgcard .cap .tag, .hs-title, .idx-group > h2, .rail-clock small, .sp-text small, #clockSub
) {
  font-family: var(--sans) !important; font-style: normal; font-weight: 700; letter-spacing: .1em !important; text-transform: uppercase;
}
html[data-skin="editorial"] .idx-group > h2 { font-size: 13px; color: var(--txt-bright); }
html[data-skin="editorial"] :is(
  .tabs button, .subnav a, #subnav a, .btn, .chip, .pill, .seg button, .more, .card-head .more, .now-cards .more, .idx-group > h2 a,
  .hours-key, .st[data-state], .hr-st[data-state], .hr-row .hr-st, .bandcard .st, .band-meter .bm-st,
  .band-pills a, #headerSearchInput, #topbar .top-glyph-btn, #qthChip, #qthGrid, #themeDropdown .theme-opt,
  #kpiMore, #kpiMoreLabel, .exam-action, .schedule-shortcuts summary, #content details > summary,
  #swTable .btn, #swTable .beacon-row.active .pill, .colophon a, .colophon-k, .idx-find, #benchFind, #content .idx-find, #content #benchFind,
  .gs-read, .hs-foot, #tabbar a, .diurnal-band-lbl, .hr-ticks span, .hr-band small, .fig-row dd small
) { font-family: var(--sans); font-style: normal; letter-spacing: 0; }

/* ---------- 4. Rail & tab bar -------------------------------------------- */
@media screen and (min-width: 921px) {
  html[data-skin="editorial"] .atlas-rail {
    background: var(--bg); color: var(--txt);
    border-right: 1px solid var(--line-strong); box-shadow: none;
    --ip-mark: #cf2a1c; --ember: var(--ed-hi);
  }
  html[data-skin="editorial"][data-theme="dark"] .atlas-rail { --ip-mark: #f43a2a; }
  /* the nameplate: mark and name on one line, the line under it set between two rules like a
     newspaper's dateline strip, an ember index tick on the heavy rule */
  html[data-skin="editorial"] .atlas-rail { padding-top: clamp(18px, 3vh, 28px); }
  html[data-skin="editorial"] #brand {
    position: relative; min-height: 0; height: auto; padding: 0; gap: 0 10px; align-items: center;
    border-bottom: 0;
  }
  html[data-skin="editorial"] #brand .ip-chrome-mark { width: clamp(30px, 2.4vw, 38px); margin-bottom: 0; }
  html[data-skin="editorial"] #brand .ip-chrome-word::before {
    color: var(--txt-bright); font-weight: 700; letter-spacing: -.035em; font-size: clamp(42px, 3.4vw, 54px); line-height: .9;
  }
  html[data-skin="editorial"] #brand .brand-text {
    position: relative; margin-top: 12px; padding: 7px 0 6px;
    border-top: 1px solid var(--line); border-bottom: 2px solid var(--line-strong);
  }
  html[data-skin="editorial"] #brand .brand-text::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 16px; height: 2px; background: var(--ed-hi);
  }
  html[data-skin="editorial"] #brand .brand-text b {
    font: 700 9.5px/1.5 var(--sans); letter-spacing: .16em; color: var(--dim);
  }
  html[data-skin="editorial"] #areanav[data-built] { margin-top: clamp(8px, 1.6vh, 16px); }
  html[data-skin="editorial"] .rail-ink {
    background: var(--tint-active) !important; border-left: 3px solid var(--ed-hi);
    box-shadow: none !important;
  }
  html[data-skin="editorial"][data-theme] #areanav[data-built] a.rail-area,
  html[data-skin="editorial"] #areanav a {
    color: var(--txt); font-family: var(--display); font-style: normal; font-weight: 500;
  }
  html[data-skin="editorial"][data-theme] #areanav[data-built] a.rail-area:hover { color: var(--txt-bright); }
  html[data-skin="editorial"][data-theme] #areanav[data-built] a.rail-area.active {
    color: var(--txt-bright); font-style: normal; font-weight: 700;
  }
  html[data-skin="editorial"][data-theme] #areanav[data-built] a.rail-area .ra-key,
  html[data-skin="editorial"][data-theme] #areanav[data-built] a.rail-area.active .ra-key { color: var(--dim-subtle); font-family: var(--sans); }
  html[data-skin="editorial"] #areanav a.active { background: var(--tint-active); border-color: var(--ed-hi); }
  html[data-skin="editorial"] .station-plate { border-top-color: var(--line); color: var(--txt); }
  html[data-skin="editorial"] #sealGrid, html[data-skin="editorial"] .rail-clock b { color: var(--txt-bright); font-weight: 700; }
  html[data-skin="editorial"] .station-plate:hover #sealGrid { color: var(--txt-bright); }
  html[data-skin="editorial"] .sp-rim { stroke: var(--line-strong); }
  html[data-skin="editorial"] .sp-rim2 { stroke: var(--line); opacity: 1; }
  html[data-skin="editorial"] .sp-sea { fill: var(--atlas-sea); }
  html[data-skin="editorial"] .sp-grat { stroke: color-mix(in srgb, var(--txt) 14%, transparent); }
  html[data-skin="editorial"] .sp-land { fill: var(--bg); fill-opacity: 1; stroke: var(--txt); stroke-opacity: .7; }
  html[data-skin="editorial"] .sp-dusk { fill: color-mix(in srgb, var(--txt) 7%, transparent); }
  html[data-skin="editorial"] .sp-night { fill: color-mix(in srgb, var(--txt) 20%, transparent); }
  html[data-skin="editorial"] .sp-term { stroke: var(--ink-ochre); }
  html[data-skin="editorial"] .sp-sun[data-state="grayline"] { color: var(--ink-ochre); }
  html[data-skin="editorial"] .sp-here circle { fill: var(--ink-red); stroke: var(--bg); }
  html[data-skin="editorial"] .sp-here .sp-ping { stroke: var(--ink-red); }
  html[data-skin="editorial"] .station-plate:focus-visible,
  html[data-skin="editorial"] #areanav[data-built] a:focus-visible { outline-color: var(--ember); }
}
@media screen and (max-width: 920px) {
  html[data-skin="editorial"] #tabbar {
    background: var(--bg); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 20px -16px rgba(0, 0, 0, .45);
  }
  html[data-skin="editorial"] #tabbar a { color: var(--dim); font: 600 12.5px/1 var(--sans); }
  html[data-skin="editorial"] #tabbar a.active { color: var(--txt-bright); }
  html[data-skin="editorial"] #tabbar a.active svg { color: var(--ed-hi); }
  html[data-skin="editorial"] .tab-ink { background: none; border-top: 3px solid var(--ed-hi); }
  html[data-skin="editorial"] #brand .ip-chrome-word::before { color: var(--txt-bright); }
}

/* ---------- 5. Masthead & conditions strip ------------------------------- */
html[data-skin="editorial"] #topbar { border-bottom: 1px solid var(--line); }
html[data-skin="editorial"] #headerSearchWrap { border-radius: 2px; background: var(--bg2); border-color: var(--line); }
html[data-skin="editorial"] #headerSearchInput,
html[data-skin="editorial"] #headerSearchInput:focus { font-size: 14.5px; }
html[data-skin="editorial"] #topbar .top-glyph-btn,
html[data-skin="editorial"] #qthChip { font-size: 13.5px; font-weight: 600; color: var(--txt); }
html[data-skin="editorial"] #qthGrid { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
html[data-skin="editorial"] #topbar .top-glyph-btn:hover,
html[data-skin="editorial"] #topbar .top-glyph-btn[aria-expanded="true"],
html[data-skin="editorial"] #qthChip:hover { color: var(--txt-bright); background: var(--tint-hover); }
html[data-skin="editorial"] .glyph-dropdown { background: var(--bg); border-color: var(--line-strong); border-radius: 2px; box-shadow: var(--desk-shadow); }
html[data-skin="editorial"] #themeDropdown .theme-opt { font-size: 14px; font-weight: 500; }
html[data-skin="editorial"] .theme-opt small { font: 500 11.5px var(--sans); color: var(--dim-subtle); }
html[data-skin="editorial"] .theme-opt.selected { background: var(--tint-active); font-weight: 700; }
html[data-skin="editorial"] .theme-opt.selected::after { background: var(--ed-hi); }
html[data-skin="editorial"] .theme-opt.selected .theme-ico { color: var(--txt-bright); }

html[data-skin="editorial"] #kpiStrip .kpi label { font: 700 10px/1.3 var(--sans); letter-spacing: .1em; color: var(--dim); }
html[data-skin="editorial"] #kpiStrip .kpi b,
html[data-skin="editorial"] #kpiStrip:not(.more-open) .kpi b { font: 700 14px/1 var(--sans); color: var(--txt-bright); }
html[data-skin="editorial"] #kpiStrip .kpi b small,
html[data-skin="editorial"] #kpiStrip .kpi b span { font: 500 12px var(--sans); color: var(--dim); }
html[data-skin="editorial"] #kpiStrip .scale { font: 700 10.5px/1.4 var(--sans); border-radius: 2px; padding: 1px 5px; }
html[data-skin="editorial"] #kpiMore,
html[data-skin="editorial"] #kpiMoreLabel { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--dim); }

/* ---------- 6. Page heads & view tabs ------------------------------------ */
html[data-skin="editorial"] #pagehead { border-bottom: 1px solid var(--line-strong); }
html[data-skin="editorial"] .ph-kicker { font-size: 11.5px; color: var(--ed-hi); }
html[data-skin="editorial"] .ph-kicker::before { display: none; }
html[data-skin="editorial"] #clock { font-family: var(--sans); font-weight: 600; }

html[data-skin="editorial"] .subnav { border-bottom-color: var(--line-strong); }
html[data-skin="editorial"] .subnav a { font-size: 15px; color: var(--dim); }
html[data-skin="editorial"] .subnav a.active { color: var(--txt-bright); font-weight: 700; }
html[data-skin="editorial"] .subnav a.active::after { background: var(--ed-hi); }
html[data-skin="editorial"][data-theme] #subnav { background: var(--bg); border-bottom: 1px solid var(--line-strong); }
html[data-skin="editorial"][data-theme] #subnav a { font: 500 15px/1.1 var(--sans); color: var(--dim); letter-spacing: 0; }
html[data-skin="editorial"][data-theme] #subnav a:hover { color: var(--txt-bright); }
html[data-skin="editorial"][data-theme] #subnav a.active { color: var(--txt-bright); }
html[data-skin="editorial"] .subnav-ink { background: var(--ed-hi); height: 3px; border-radius: 0; }
html[data-skin="editorial"] .subnav-area { color: var(--ed-hi); font-size: 11px; border-right-color: var(--line); }
html[data-skin="editorial"].is-scrolled #subnav,
html[data-skin="editorial"].is-scrolled #topbar { box-shadow: 0 8px 18px -16px rgba(0, 0, 0, .5); }
@media screen and (max-width: 920px) {
  html[data-skin="editorial"][data-theme] #subnav a { font-size: 15px; }
}

/* tool tab rows */
html[data-skin="editorial"] .tabs { border-bottom-color: var(--line); }
html[data-skin="editorial"] .tabs button { font-size: 14.5px; font-weight: 500; color: var(--dim); }
html[data-skin="editorial"] .tabs button:hover { color: var(--txt-bright); }
html[data-skin="editorial"] .tabs button.active { color: var(--txt-bright); font-weight: 700; border-bottom: 2px solid var(--ed-hi); }

/* ---------- 7. Controls, plates, links ----------------------------------- */
/* plates: a hairline box, or a heavy rule over the top for the one hero */
/* plates: innerpulse glass lit from above (a sheen through the top edge, a 1 px lip, one soft shadow),
   8 px panes; the hero plate carries the index tick, a 16 x 2 px ember bar at its top left */
html[data-skin="editorial"] :is(.panel, .idx-card) {
  background: var(--ed-sheen), var(--bg2); border: 1px solid var(--line2); border-radius: 8px; border-image: none;
  box-shadow: var(--ed-lip), var(--ed-pane-shadow);
}
html[data-skin="editorial"][data-theme] :is(.now-copy, .band-head, .idx-card:has(.engraving), body[data-view="shortwave"] .ph-main) {
  border: 1px solid var(--line2); border-image: none; border-radius: 8px;
  background: var(--ed-sheen), var(--bg2); box-shadow: var(--ed-lip), var(--ed-pane-shadow);
}
html[data-skin="editorial"] :is(.band-head, body[data-view="shortwave"] .ph-main) { position: relative; }
html[data-skin="editorial"] :is(.now-copy, .band-head, body[data-view="shortwave"] .ph-main)::before {
  content: ""; position: absolute; left: 18px; top: -1px; width: 16px; height: 2px; background: var(--ed-hi);
}
html[data-skin="editorial"] .card-head { border-bottom-color: var(--line); }
html[data-skin="editorial"] :is(.diurnal-matrix-wrap, body[data-view="shortwave"] .row:has(#swFreq)) { border: 1px solid var(--line); }
html[data-skin="editorial"] .atlas-table { border: 0; border-top: 2px solid var(--line-strong); border-bottom: 1px solid var(--line); }
/* Learn: the exam list and the Morse list are one glass plate each, rows inside it are plain lines */
html[data-skin="editorial"] body[data-area="learn"] .learn-grid:has(.exam-line) { padding: 0 22px; }
html[data-skin="editorial"] :is(.exam-line, .morse-plate .idx-card) {
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
html[data-skin="editorial"] .exam-line { padding: 16px 0; }
html[data-skin="editorial"] :is(.exam-line + .exam-line, .morse-plate .idx-card + .idx-card) { border-top: 1px solid var(--line2); }
html[data-skin="editorial"] .morse-plate .learn-grid {
  padding: 4px 22px; border: 1px solid var(--line2); border-radius: 8px;
  background: var(--ed-sheen), var(--bg2); box-shadow: var(--ed-lip), var(--ed-pane-shadow);
}
html[data-skin="editorial"] .morse-plate .idx-card { padding: 14px 0; }
html[data-skin="editorial"] .morse-plate .idx-card h3::after { color: var(--ed-hi); }
html[data-skin="editorial"] body[data-area="learn"] .learn-grid:has(.exam-line) { border: 1px solid var(--line2); border-radius: 8px; background: var(--ed-sheen), var(--bg2); box-shadow: var(--ed-lip), var(--ed-pane-shadow); }
html[data-skin="editorial"] body[data-area="learn"][data-view="overview"] #pagehead { border-bottom: 1px solid var(--line-strong); }
html[data-skin="editorial"] .chip.active { border-color: var(--ed-strong); background: var(--ed-strong); color: var(--ed-on-strong); font-weight: 600; }

html[data-skin="editorial"] :is(.more, .now-cards .more, .idx-group > h2 a, .card-head .more, .colophon a) {
  font-size: 13.5px; font-weight: 600; color: var(--ed-link);
}
html[data-skin="editorial"] #content details > summary { font-size: 14.5px; font-weight: 600; color: var(--ed-link); }
html[data-skin="editorial"] #content a:not(.btn):not(.idx-card):not(.hr-row):hover { text-decoration-color: currentColor; border-bottom-color: currentColor; }

html[data-skin="editorial"] .btn { font-size: 13.5px; font-weight: 600; border-radius: 2px; border-color: var(--line-strong); color: var(--txt-bright); background: transparent; }
html[data-skin="editorial"] .btn:hover { background: var(--tint-hover); }
html[data-skin="editorial"] .btn.sm { font-size: 12.5px; }
/* the one filled action: the brand's action red with white words, on both grounds */
html[data-skin="editorial"] :is(.btn.primary, body[data-view="shortwave"] #swGo, #btnStartExam, #cwPlayBtn) {
  background: var(--action) !important; border-color: var(--action) !important; color: #fff !important;
  font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: .02em; border-radius: 4px;
}
html[data-skin="editorial"] :is(.btn.primary, body[data-view="shortwave"] #swGo, #btnStartExam, #cwPlayBtn):hover {
  background: var(--action-hover) !important; border-color: var(--action-hover) !important;
}
html[data-skin="editorial"] .chip { font-size: 13px; font-weight: 500; border-radius: 2px; }
html[data-skin="editorial"] .pill { font-size: 12px; font-weight: 600; border-radius: 2px; }
html[data-skin="editorial"] .seg button { font-size: 13.5px; font-weight: 500; border-radius: 0; }
html[data-skin="editorial"][data-theme] .seg button.active { background: var(--ed-strong); color: var(--ed-on-strong); }
html[data-skin="editorial"] :is(input, select, textarea) { border-radius: 2px; }
html[data-skin="editorial"] :is(input:focus, select:focus, textarea:focus, #headerSearchWrap:focus-within, .idx-find:focus) {
  border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ed-link) 18%, transparent);
}
html[data-skin="editorial"] #headerSearchInput:focus { box-shadow: none; }

/* the conditions key and state words, set small in sans */
html[data-skin="editorial"] .hours-key { font-size: 13px; }
html[data-skin="editorial"] :is(.st, .hr-st)[data-state],
html[data-skin="editorial"] .hr-row .hr-st,
html[data-skin="editorial"] .bandcard .st,
html[data-skin="editorial"] .band-meter .bm-st { font-size: 14px; font-weight: 600; }
html[data-skin="editorial"] .hr-ticks span { font-size: 12px; font-variant-numeric: tabular-nums; }
html[data-skin="editorial"] .hr-band small { font-size: 13px; }

/* ---------- 8. Now & the map --------------------------------------------- */
/* the verdict is the page's headline, set above the map like a front page, not a card over it:
   the plate hid the Pacific, the frame and the longitude scale */
html[data-skin="editorial"][data-theme] body .now-hero > .now-copy {
  position: static; width: auto; max-width: none; margin: 4px 0 18px; padding: 0 0 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
}
html[data-skin="editorial"][data-theme] body .now-copy::before { display: none; }
html[data-skin="editorial"] .now-copy .now-verdict { grid-column: 1; font-size: clamp(38px, 4.2vw, 64px); }
html[data-skin="editorial"] .now-copy .atlas-subtitle { grid-column: 1; margin: 6px 0 0; font-size: clamp(17px, 1.3vw, 21px); }
html[data-skin="editorial"] .now-copy .atlas-dateline { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding: 0; border: 0; text-align: right; }
html[data-skin="editorial"] .atlas-dateline { border-top-color: var(--line); font-size: 11px; color: var(--dim); }
html[data-skin="editorial"] .atlas-caption h2 { font-size: 11px; color: var(--txt-bright); }
html[data-skin="editorial"] .atlas-caption .now-next { font-style: normal; font-weight: 500; }
html[data-skin="editorial"] #homeGlobe .atlas-sea,
html[data-skin="editorial"][data-theme="dark"] #homeGlobe .atlas-sea { fill: var(--atlas-sea); }
html[data-skin="editorial"] #homeGlobe .atlas-waterlines { display: none; }
html[data-skin="editorial"] #homeGlobe .g-land,
html[data-skin="editorial"][data-theme="dark"] #homeGlobe .g-land { fill: var(--atlas-land); fill-opacity: 1; stroke: var(--txt); stroke-width: .5; stroke-opacity: .55; }
html[data-skin="editorial"] #homeGlobe .g-graticule { stroke-dasharray: none; opacity: .14; }
html[data-skin="editorial"] #homeGlobe .atlas-night { opacity: .16; }
html[data-skin="editorial"] #homeGlobe .atlas-frame .f-keys { display: none; }
html[data-skin="editorial"] #homeGlobe .atlas-frame .f-outer { stroke-width: 1; }
html[data-skin="editorial"] #homeGlobe .atlas-frame .f-inner { stroke-width: .5; opacity: .5; }
html[data-skin="editorial"] #homeGlobe .atlas-frame .f-labels text { font: 500 10.5px var(--sans); fill: var(--dim); letter-spacing: 0; }
html[data-skin="editorial"] #homeGlobe .atlas-labels text { font: 700 9.5px var(--sans); letter-spacing: .18em; fill: var(--dim); }
html[data-skin="editorial"] #homeGlobe .atlas-labels text.sea { fill: var(--dim-subtle); font-weight: 500; }
html[data-skin="editorial"] #homeGlobe .atlas-compass { display: none; }
html[data-skin="editorial"] #homeGlobe .g-target text { font: 500 12.5px var(--sans); }
html[data-skin="editorial"] #homeGlobe .g-target text .b { font-weight: 700; }
html[data-skin="editorial"] #homeGlobe .atlas-origin text { font: 700 12.5px var(--sans); letter-spacing: .12em; }

/* ---------- 9. Bands & Listen -------------------------------------------- */
html[data-skin="editorial"] .band-pills a { font-size: 15px; font-weight: 600; border-radius: 0; color: var(--txt); }
html[data-skin="editorial"][data-theme] .band-pills a.active { background: var(--ed-strong); border-color: var(--ed-strong); color: var(--ed-on-strong); }
html[data-skin="editorial"] .band-pills a.active::after { background: var(--ed-hi); }
html[data-skin="editorial"] .band-head { padding-top: 18px; }
html[data-skin="editorial"] .band-head .range { font-style: normal; color: var(--dim); }
html[data-skin="editorial"] .band-cols > div:nth-child(2) > .panel:first-child::after { display: none; }
html[data-skin="editorial"] .band-cols .reach span:first-child { font-style: normal; font-weight: 600; }
html[data-skin="editorial"] .band-cols .freq-list b { color: var(--txt-bright); }
html[data-skin="editorial"] .exam-line h3 { color: var(--txt-bright); }
html[data-skin="editorial"][data-theme="light"] #swTable .beacon-row.active td { background: var(--tint-subtle); }
html[data-skin="editorial"] #swTable td:nth-child(4) { font-style: normal; font-size: 16px; }
html[data-skin="editorial"] #swTable .btn { color: var(--txt-bright); border-color: var(--line-strong); border-radius: 2px; }
html[data-skin="editorial"] #swTable .beacon-row.active .pill { color: var(--txt-bright); border-color: var(--txt-bright); }

/* engraved plates become halftone-grey illustrations; the receiver and key stay, quietly */
html[data-skin="editorial"][data-theme="light"] .morse-plate::before,
html[data-skin="editorial"][data-theme="light"] .idx-card .engraving,
html[data-skin="editorial"][data-theme="light"] body[data-area="listen"] #pagehead::after { filter: grayscale(1) contrast(1.08); opacity: .85; }
html[data-skin="editorial"][data-theme="dark"] .morse-plate::before,
html[data-skin="editorial"][data-theme="dark"] .idx-card .engraving,
html[data-skin="editorial"][data-theme="dark"] body[data-area="listen"] #pagehead::after { filter: invert(1) grayscale(1); mix-blend-mode: screen; opacity: .75; }

/* tables in one ink: rows had amber frequencies, cyan calls and green distances side by side,
   which read as three kinds of emphasis and none. Status pills and the selected row keep colour. */
html[data-skin="editorial"] #content table.dt td:is([style*="--amber"], [style*="--cyan"], [style*="--green"]),
html[data-skin="editorial"] #content table.dt td :is([style*="--amber"], [style*="--cyan"], [style*="--green"]) { color: var(--txt) !important; }

/* ---------- 10. Bench, Learn, Lookup ------------------------------------- */
html[data-skin="editorial"] .idx-card:has(.engraving) p { font-size: 16px; }
html[data-skin="editorial"] .exam-action { font-size: 14px; font-weight: 600; border-color: var(--line-strong); border-radius: 2px; }
html[data-skin="editorial"] .exam-line:hover .exam-action { background: var(--ed-strong); border-color: var(--ed-strong); color: var(--ed-on-strong); }
html[data-skin="editorial"] .bandcard.open { box-shadow: inset 0 3px 0 var(--st-open); }
html[data-skin="editorial"] .diurnal-hdr.now { color: var(--ed-hi); border-bottom-color: var(--ed-hi); }
html[data-skin="editorial"] .diurnal-cell.now-col { box-shadow: inset 2px 0 0 var(--ed-hi), inset -2px 0 0 var(--ed-hi) !important; }
html[data-skin="editorial"] .hs-name mark { color: var(--txt-bright); }
html[data-skin="editorial"] .hs-go { color: var(--dim); }
html[data-skin="editorial"] .hs-title { color: var(--ed-hi); }
html[data-skin="editorial"] :is(.res-tag, .imgcard .cap .tag) { color: var(--dim); }

/* ---------- 11. Footer & search ------------------------------------------ */
html[data-skin="editorial"] #sitefoot { border-top: 1px solid var(--line-strong); }
html[data-skin="editorial"] #sitefoot::before { display: none; }
html[data-skin="editorial"] #sitefoot .sf-note a { color: var(--ed-link); }
html[data-skin="editorial"] #sitefoot .sf-note,
html[data-skin="editorial"] #sitefoot .sf-credit span { font-family: var(--sans); font-style: normal; font-size: 13px; }

/* ---------- 12. Phones --------------------------------------------------- */
@media (max-width: 700px) {
  html[data-skin="editorial"] #pagehead .ph-title { font-size: clamp(30px, 8.5vw, 42px); }
  html[data-skin="editorial"][data-theme] body .now-hero > .now-copy { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  html[data-skin="editorial"] .now-copy .atlas-dateline { grid-column: 1; grid-row: auto; margin-top: 10px; text-align: left; }
}

/* ---------- 13. Design review, 2026-11-28 --------------------------------
   Four findings from a full-site review, applied to the editorial skin only:
   a. Labels were tracked all-caps everywhere (field labels, stat tiles, index heads, kickers, the
      conditions line). One quiet voice instead: sentence case, semibold sans, no tracking.
   b. The page head said the area and the view twice (tab row, then a breadcrumb kicker) and took
      ~220 px before any tool. On desk the kicker goes (the tab row already names both) and the head
      tightens, so every tool starts higher.
   c. Shortwave set its page title inside a glass plate, the only view to do so. It now uses the
      same open head as every other view.
   d. Stat tiles were boxes inside plates. They are now one ruled row: hairlines, not frames, and
      values in tabular sans so "5416 km" no longer wraps in mono. */
html[data-skin="editorial"] { --label: 600 12.5px/1.3 var(--sans); --label-track: 0; }

html[data-skin="editorial"] :is(
  .ph-kicker, .glyph-dropdown-header, .atlas-dateline, .atlas-caption h2, .dn-title, .subnav-area,
  .res-tag, .imgcard .cap .tag, .hs-title, .idx-group > h2, .rail-clock small, .sp-text small, #clockSub,
  #brand .brand-text b, #kpiStrip .kpi label, #kpiMore, #kpiMoreLabel, .stat > label, .stat label, .dxfield > span,
  .filter-chips .tag, .rx-k, .swg-f, .bn-label, .idx-card .k, #content .input-group > label, .bp-head,
  .guide-head .k, .guide-picker .k, .gs-facts h4, .gs-traps h4, .next small, .prev small, #content h4, #content label.row,
  .hr-axis span, .al time, .sf-credit, .sf-note, .tsig-h, .tsig-hour-h h3, .idx-card .k, .scale-card .sc-state,
  .now-key h2, #content dt, .learn-grid .k, .exam-line .k
) { text-transform: none !important; letter-spacing: 0 !important; }

html[data-skin="editorial"] :is(.ph-kicker, .atlas-dateline, .dn-title, .idx-group > h2, .hs-title, .rx-k, .guide-head .k, .guide-picker .k, .idx-card .k) {
  font: 600 13.5px/1.3 var(--sans) !important;
}
html[data-skin="editorial"] .idx-group > h2 { font-size: 15px !important; font-weight: 700 !important; color: var(--txt-bright); }
html[data-skin="editorial"] #kpiStrip .kpi label { font: 500 12px/1.3 var(--sans); color: var(--dim); }
html[data-skin="editorial"] #brand .brand-text b { font: italic 400 13.5px/1.25 var(--display) !important; color: var(--dim); }
html[data-skin="editorial"] .subnav-area { font: 700 13px/1 var(--sans) !important; }

@media (min-width: 921px) {
  html[data-skin="editorial"] #pagehead .ph-kicker { display: none; }
  html[data-skin="editorial"] #pagehead { padding-top: 26px; padding-bottom: 20px; margin-bottom: 22px; }
  html[data-skin="editorial"] #pagehead .ph-title { font-size: clamp(34px, 3.3vw, 52px); }
  html[data-skin="editorial"] #pagehead .ph-deck { margin-top: 6px; font-size: 19px; }
}

html[data-skin="editorial"][data-theme] body[data-view="shortwave"] .ph-main {
  background: none; border: 0; box-shadow: none; padding-left: 0; padding-right: 0;
}
html[data-skin="editorial"] body[data-view="shortwave"] .ph-main::before { display: none; }

html[data-skin="editorial"] #content .statcards { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-skin="editorial"] #content .statcards > .stat {
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 12px 16px 12px 0;
}
html[data-skin="editorial"] #content .statcards > .stat + .stat { border-left: 1px solid var(--line2); padding-left: 16px; }
html[data-skin="editorial"] #content .statcards > .stat::before { display: none; }
html[data-skin="editorial"] #content .stat > b { font: 600 17px/1.3 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: normal; color: var(--txt-bright); }
html[data-skin="editorial"] #content .stat > label { color: var(--dim); margin-bottom: 4px; display: block; }
#sealPlace:empty { display: none; }

/* ---------- 14. Design critique, 2026-11-28 ------------------------------
   e. Bands: the "Reach from" head kept 84 px clear on its right for an atlas ornament the editorial
      skin does not draw, so the heading broke in two beside its own link.
   f. Numbers: headings and stat tiles read in tabular sans; the reach list still switched to mono.
      One numeral voice for data in prose rows; mono stays inside the instruments (dials, axes).
   g. Touch: band keys were 32 px tall on phones; 44 px now. */
html[data-skin="editorial"] .band-cols > div:nth-child(2) > .panel:first-child .card-head { padding-right: 0; }
html[data-skin="editorial"] .band-cols .panel .card-head h2 { font-size: clamp(22px, 1.9vw, 30px); }
html[data-skin="editorial"] .card-head .more { margin-left: auto; white-space: nowrap; }
html[data-skin="editorial"] #content .reach .mono { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 14.5px; color: var(--dim); }
@media (max-width: 700px) {
  html[data-skin="editorial"] .band-pills a { min-height: 44px; align-items: center; }
}
