/* ============================================================
   The Chesterfield Report, "heritage editorial"
   Loaded AFTER report-ds.css. Removing the one <link> to this file
   in render._TEMPLATE backs the whole redesign out.

   1. Token layer: re-points every variable report-ds.css reads, for
      light (default) and dark, and flattens every glow, ring,
      gradient and texture token.
   2. Base type and the old components, re-skinned through tokens so
      the pages that are not being rebuilt pick up the palette.
   3. The new page shell (hx- classes): utility bar, masthead, nav
      with dropdown panels, ticker, footer, phone header, phone menu.
   4. The homepage (hx- classes), and the feed card the topic pages
      and the Opinion section share with it.
   5. The story page (hx- classes), and the YouTube thumbnail fix the
      homepage shares with it.
   ============================================================ */


/* ============================================================
   1. TOKENS
   ============================================================ */
/* layout (theme independent, so the media queries below can override it) */
:root { --hx-max: 1296px; --hx-gutter: 32px; }

:root, :root[data-theme="light"] {
  /* ---- heritage roles (new names, used by the hx- shell) ---- */
  --hx-chrome: #0B1A24;          /* utility bar, ticker, footer */
  --hx-page: #F6F8F9;
  --hx-surface: #FFFFFF;         /* cards, masthead, inputs */
  --hx-raised: #FFFFFF;
  --hx-well: #EEF2F4;            /* quiet fill behind counts, wells */
  --hx-hair: #DBE1E6;
  --hx-field: #BCC6CC;           /* input borders */
  --hx-rule: #0B1A24;            /* 3px double / solid ink rules */
  --hx-head: #0B1A24;
  --hx-body: #2B3B43;
  --hx-muted: #5C6D75;
  --hx-green: #1F6B53;           /* river green as TEXT or link */
  --hx-green-fill: #1F6B53;      /* river green as a FILL, white text */
  --hx-green-fill-hover: #17533F;
  --hx-rust: #B5462F;            /* heron rust as TEXT (safety, alerts only) */
  --hx-rust-fill: #B5462F;
  --hx-rust-tint: #FBEFEC;
  --hx-gold: #D8A23A;            /* thin rules and small decoration ONLY */
  --hx-tint: #EDF3F0;            /* hover tint behind links, menu rows */
  --hx-inv-bg: #0B1A24;          /* inverted control: selected, current, search btn */
  --hx-inv-fg: #FFFFFF;
  --hx-on-chrome: #DDE6EA;
  --hx-on-chrome-strong: #FFFFFF;
  --hx-on-chrome-muted: #9FB0B8;
  --hx-chrome-line: #2A3B46;
  --hx-shadow-panel: 0 8px 20px rgba(11, 26, 36, 0.12);
  --hx-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hx-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hx-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ---- old raw scale, re-pointed ---- */
  --ink-900: #EEF2F4; --ink-800: #F6F8F9; --ink-700: #FFFFFF; --ink-600: #FFFFFF;
  --ink-500: #EEF2F4; --ink-400: #DBE1E6; --ink-300: #BCC6CC;
  --neon-teal: #1F6B53; --neon-teal-dim: #17533F; --neon-teal-deep: #1F6B53;
  --neon-magenta: #B5462F; --neon-magenta-dim: #9A3B27;
  --neon-amber: #1F6B53; --neon-amber-dim: #17533F;
  --neon-lime: #1F6B53;
  --river-green: #1F6B53; --heritage-gold: #D8A23A; --heron-rust: #B5462F;
  --reed: #1F6B53; --fog: #5C6D75;

  --text-strong: #0B1A24; --text-body: #2B3B43; --text-muted: #5C6D75;
  --text-faint: #5C6D75; --text-on-neon: #FFFFFF;

  /* ---- semantic aliases ---- */
  --bg-page: #F6F8F9; --bg-void: #EEF2F4;
  --surface-card: #FFFFFF; --surface-raised: #FFFFFF; --surface-well: #EEF2F4;
  --surface-sunken: #EDF3F0;
  --border-hair: #DBE1E6; --border-strong: #BCC6CC; --border-neon: #1F6B53; --border: #DBE1E6;
  --text-heading: #0B1A24; --text-default: #2B3B43; --text-secondary: #5C6D75; --text-disabled: #5C6D75;
  --accent: #1F6B53; --accent-pressed: #17533F; --link: #1F6B53;
  --breaking: #B5462F; --civic: #1F6B53; --positive: #1F6B53; --eco: #1F6B53;
  --focus-ring: #1F6B53;
  --selection-bg: rgba(31, 107, 83, 0.18);

  /* ---- washes, glows, rings, gradients, textures: flat ---- */
  --teal-wash: #EDF3F0; --magenta-wash: #FBEFEC; --amber-wash: #EDF3F0;
  --glow-teal: transparent; --glow-magenta: transparent; --glow-amber: transparent;
  --glow-sm-teal: none; --glow-md-teal: none; --glow-md-magenta: none; --glow-md-amber: none;
  --glow-text-teal: none; --glow-text-magenta: none;
  --ring: 0 0 0 2px #1F6B53;
  --grad-teal: none; --grad-magenta: none; --grad-civic: none; --grad-fog: none; --grad-panel: none;
  --tex-scanlines: none; --tex-grid: none; --tex-grid-size: auto;
  --shadow-sm: 0 1px 2px rgba(11, 26, 36, 0.06);
  --shadow-md: 0 2px 8px rgba(11, 26, 36, 0.08);
  --shadow-lg: 0 8px 20px rgba(11, 26, 36, 0.12);

  /* ---- type ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 6px;
  --radius-pill: 999px; --radius-card: 4px;

  /* ---- legacy aliases (board.py, maps.py, letters.py, ... inline styles) ---- */
  --bg: #F6F8F9; --bg2: #FFFFFF; --surface: #FFFFFF; --line: #DBE1E6;
  --ink: #0B1A24; --muted: #5C6D75;
  --neon: #1F6B53; --neon2: #1F6B53; --magenta: #B5462F; --gold: #1F6B53;
  --danger: #B5462F; --navy: #0B1A24; --brick: #1F6B53; --pine: #1F6B53;
  --cream: #F6F8F9; --paper: #FFFFFF;
  --serif: var(--font-display); --mono: var(--font-mono); --sans: var(--font-sans);
  --wrap: var(--container-max);
  /* names section-page <style> blocks read that the old sheet never defined */
  --text-primary: #0B1A24; --text-tertiary: #5C6D75; --text: #2B3B43; --ink-soft: #2B3B43;
  --surface-1: #FFFFFF; --surface-2: #FFFFFF; --fs-4xs: 10px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --hx-chrome: #06121A;
  --hx-page: #0B1A24;
  --hx-surface: #10232F;
  --hx-raised: #162C39;
  --hx-well: #162C39;
  --hx-hair: #263B4A;
  --hx-field: #3A5163;
  --hx-rule: #9FB0B8;
  --hx-head: #F2F5F7;
  --hx-body: #C9D5DA;
  --hx-muted: #9FB0B8;
  --hx-green: #6FC2A3;
  --hx-green-fill: #1F6B53;
  --hx-green-fill-hover: #26805F;
  --hx-rust: #EC8A72;
  --hx-rust-fill: #B5462F;
  --hx-rust-tint: rgba(236, 138, 114, 0.10);
  --hx-tint: #162C39;
  --hx-inv-bg: #F2F5F7;
  --hx-inv-fg: #0B1A24;
  --hx-shadow-panel: 0 8px 20px rgba(0, 0, 0, 0.35);

  --ink-900: #06121A; --ink-800: #0B1A24; --ink-700: #10232F; --ink-600: #162C39;
  --ink-500: #162C39; --ink-400: #263B4A; --ink-300: #3A5163;
  --neon-teal: #6FC2A3; --neon-teal-dim: #8FD3B9; --neon-teal-deep: #1F6B53;
  --neon-magenta: #EC8A72; --neon-magenta-dim: #B5462F;
  --neon-amber: #6FC2A3; --neon-amber-dim: #8FD3B9;
  --neon-lime: #6FC2A3;
  --river-green: #6FC2A3; --heron-rust: #EC8A72; --reed: #6FC2A3; --fog: #9FB0B8;

  --text-strong: #F2F5F7; --text-body: #C9D5DA; --text-muted: #9FB0B8;
  --text-faint: #9FB0B8; --text-on-neon: #0B1A24;

  --bg-page: #0B1A24; --bg-void: #06121A;
  --surface-card: #10232F; --surface-raised: #162C39; --surface-well: #162C39;
  --surface-sunken: #162C39;
  --border-hair: #263B4A; --border-strong: #3A5163; --border-neon: #6FC2A3; --border: #263B4A;
  --text-heading: #F2F5F7; --text-default: #C9D5DA; --text-secondary: #9FB0B8; --text-disabled: #9FB0B8;
  --accent: #6FC2A3; --accent-pressed: #8FD3B9; --link: #6FC2A3;
  --breaking: #EC8A72; --civic: #6FC2A3; --positive: #6FC2A3; --eco: #6FC2A3;
  --focus-ring: #6FC2A3;
  --selection-bg: rgba(111, 194, 163, 0.25);

  --teal-wash: #162C39; --magenta-wash: rgba(236, 138, 114, 0.10); --amber-wash: #162C39;
  --glow-teal: transparent; --glow-magenta: transparent; --glow-amber: transparent;
  --glow-sm-teal: none; --glow-md-teal: none; --glow-md-magenta: none; --glow-md-amber: none;
  --glow-text-teal: none; --glow-text-magenta: none;
  --ring: 0 0 0 2px #6FC2A3;
  --grad-teal: none; --grad-magenta: none; --grad-civic: none; --grad-fog: none; --grad-panel: none;
  --tex-scanlines: none; --tex-grid: none; --tex-grid-size: auto;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.35);

  --bg: #0B1A24; --bg2: #10232F; --surface: #10232F; --line: #263B4A;
  --ink: #F2F5F7; --muted: #9FB0B8;
  --neon: #6FC2A3; --neon2: #6FC2A3; --magenta: #EC8A72; --gold: #6FC2A3;
  --danger: #EC8A72; --navy: #06121A; --brick: #6FC2A3; --pine: #6FC2A3;
  --cream: #0B1A24; --paper: #10232F;
  --text-primary: #F2F5F7; --text-tertiary: #9FB0B8; --text: #C9D5DA; --ink-soft: #C9D5DA;
  --surface-1: #10232F; --surface-2: #10232F;

  color-scheme: dark;
}


/* ============================================================
   2. BASE TYPE AND OLD COMPONENTS (re-skin through tokens)
   ============================================================ */
html { background: var(--hx-chrome); }
body {
  background: var(--hx-page) !important;
  background-image: none !important;
  color: var(--hx-body);
  font-family: var(--hx-sans);
  font-size: 16px;
  line-height: 1.5;
}
::selection { background: var(--selection-bg); color: var(--hx-head); }
a { color: var(--hx-green); }
:focus-visible { outline: 2px solid var(--hx-green); outline-offset: 2px; box-shadow: none; }

/* App shell: let the document scroll (the old shell made <main> a scroller). */
.cr-app { height: auto !important; min-height: 100vh; display: flex; flex-direction: column; background: var(--hx-page); }
.cr-main { flex: 1 0 auto; overflow: visible !important; }
.cr-main__inner { max-width: var(--hx-max); padding: 32px var(--hx-gutter) 56px; }

/* Headings: Fraunces. The old sheet forces display font with !important;
   the token now resolves to Fraunces, these just set weight and color. */
h1, h2, h3, h4 { color: var(--hx-head); font-family: var(--hx-display); text-shadow: none !important; }
h1, .page-title { font-weight: 700; letter-spacing: -0.02em; }
h2, h3, h4 { font-weight: 600; letter-spacing: -0.012em; }
.page-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; color: var(--hx-head); }
.lead { color: var(--hx-body); }

/* Kickers, labels, meta: Space Mono (the editorial layer forced sans with !important). */
.cr-kicker, .cr-sechead__kicker, .cr-twrail__kicker, .cr-week__kicker, .cr-photo__cap,
.cr-badge, .cr-tag, .cr-meta, .cr-ticker__item, .cr-twrail__label, .cr-ticker__tag {
  font-family: var(--hx-mono) !important; letter-spacing: .08em;
}
.cr-kicker, .cr-sechead__kicker, .cr-twrail__kicker, .cr-week__kicker, .tw-kicker,
.cr-map__legendhead, .cr-nl__kicker {
  color: var(--hx-green) !important; letter-spacing: .12em;
}
:root[data-theme="dark"] .cr-kicker, :root[data-theme="dark"] .cr-sechead__kicker { color: var(--hx-green) !important; }
.tw-kicker::before { content: none; }
.meta { font-family: var(--hx-mono); color: var(--hx-muted); letter-spacing: .06em; }
.meta-source { color: var(--hx-green); }
.meta-dot { color: var(--hx-muted); }

/* Section heads: 3px double ink rule above, Space Mono kicker. */
.cr-sechead { border-top: 3px double var(--hx-rule); padding-top: 14px; }
.cr-sechead__title { color: var(--hx-head); font-weight: 700; }
.dg-sec h2 { border-bottom: 3px solid var(--hx-gold); }
.topic-h { border-bottom: 3px double var(--hx-rule); }

/* Cards and story cards */
.card, :root .cr-card, :root .cr-story, :root .cr-hero,
:root[data-theme="light"] .cr-card, :root[data-theme="light"] .cr-story, :root[data-theme="light"] .cr-hero,
:root[data-theme="dark"] .cr-card, :root[data-theme="dark"] .cr-story, :root[data-theme="dark"] .cr-hero {
  background: var(--hx-surface) !important;
  border: 1px solid var(--hx-hair) !important;
  border-radius: 4px; box-shadow: none !important;
}
.card { border-top: 1px solid var(--hx-hair) !important; }
.card::before, .cr-card--grad::before, .thisweek::after { content: none !important; background: none !important; }
.card:hover, .cr-card--interactive:hover { border-color: var(--hx-field) !important; box-shadow: var(--shadow-md) !important; transform: none; }
.cr-card--accent { border-top: 3px solid var(--hx-rule) !important; }
.card h2, a.card-headline h2, .cr-story__title, .cr-listrow__title { color: var(--hx-head); font-weight: 700; }
a.card-headline:hover h2, .dg-list a:hover { color: var(--hx-green); text-decoration: underline; text-underline-offset: 3px; }
.card a { color: var(--hx-green); text-decoration-color: currentColor; text-underline-offset: 3px; }
.card a:hover { text-decoration-color: currentColor; }
.card p, .card-summary, .cr-story__dek, .cr-listrow__dek { color: var(--hx-body); }

/* Chips, tags, badges: Space Mono, quiet. Green by default, rust for police/fire. */
.chip, .chip[data-cat], .op-chip {
  font-family: var(--hx-mono); color: var(--hx-green) !important;
  background: transparent !important; border: 1px solid var(--hx-hair) !important;
  border-radius: 2px; box-shadow: none !important;
}
.chip[data-cat="police"], .chip[data-cat="fire"] { color: var(--hx-rust) !important; }
a.chip:hover { background: var(--hx-tint) !important; box-shadow: none; text-decoration: underline; }
.tag, .topic-tag, .topic-link, .cr-tag {
  font-family: var(--hx-mono); color: var(--hx-body); background: var(--hx-surface);
  border: 1px solid var(--hx-field); border-radius: 2px; box-shadow: none !important;
}
a.tag:hover, .topic-tag:hover, .topic-link:hover, .cr-tag:hover {
  color: var(--hx-green); border-color: var(--hx-green); background: var(--hx-tint); box-shadow: none !important;
}
.cr-tag--active { background: var(--hx-inv-bg); color: var(--hx-inv-fg); border-color: var(--hx-inv-bg); box-shadow: none; }
.topic-tag__hash, .cr-tag__hash { color: var(--hx-green); }
.topic-count { background: var(--hx-tint); color: var(--hx-green); border: 1px solid var(--hx-hair); }
.cr-badge, .cr-badge--teal, .cr-badge--eco, .cr-badge--civic, .cr-badge--neutral {
  background: transparent !important; color: var(--hx-green) !important;
  border: 1px solid var(--hx-hair) !important; border-radius: 2px;
}
.cr-badge--breaking { color: var(--hx-rust) !important; }
.cr-badge--solid { background: var(--hx-green-fill) !important; color: #FFFFFF !important; border-color: var(--hx-green-fill) !important; }
.tw-cat, .tw-cat[data-cat] { color: var(--hx-green); border-color: var(--hx-hair); font-family: var(--hx-mono); }
.tw-cat[data-cat="police"], .tw-cat[data-cat="fire"] { color: var(--hx-rust); }
.tw-more { color: var(--hx-green); }

/* Filter chips: selected = inverted control */
.filter, .tw-filter {
  font-family: var(--hx-mono); color: var(--hx-body); background: var(--hx-surface);
  border: 1px solid var(--hx-field); border-radius: 2px; box-shadow: none !important;
}
.filter:hover, .tw-filter:hover { color: var(--hx-green); border-color: var(--hx-green); }
.filter.is-active, .tw-filter.is-active {
  background: var(--hx-inv-bg); color: var(--hx-inv-fg); border-color: var(--hx-inv-bg); box-shadow: none !important;
}
.filter .fcount, .tw-filter .fcount { background: var(--hx-well); color: var(--hx-body); }
.filter.is-active .fcount, .filter:hover .fcount, .tw-filter.is-active .fcount, .tw-filter:hover .fcount {
  background: var(--hx-surface); color: var(--hx-head);
}

/* Buttons: green fill with white text in both themes */
.cr-btn { font-family: var(--hx-sans); letter-spacing: 0; font-weight: 600; border-radius: 4px; box-shadow: none !important; }
.cr-btn--primary, .tip-btn, .footer-cta, .signup-form button {
  background: var(--hx-green-fill) !important; color: #FFFFFF !important;
  border: 1px solid var(--hx-green-fill) !important; box-shadow: none !important;
  font-family: var(--hx-sans); letter-spacing: 0;
}
.cr-btn--primary:hover, .tip-btn:hover, .footer-cta:hover, .signup-form button:hover {
  background: var(--hx-green-fill-hover) !important; border-color: var(--hx-green-fill-hover) !important;
}
/* a .cr-btn with no size modifier had no padding at all (17px tall) */
.cr-btn:not(.cr-btn--sm):not(.cr-btn--md):not(.cr-btn--lg) { min-height: 44px; padding: 0 18px; font-size: 15px; }
.cr-btn--secondary { background: var(--hx-surface); color: var(--hx-green); border-color: var(--hx-field); }
.cr-btn--secondary:hover { color: var(--hx-green); border-color: var(--hx-green); background: var(--hx-tint); }
.cr-btn--ghost:hover { background: var(--hx-tint); color: var(--hx-head); }
.cr-btn--danger { color: var(--hx-rust); border-color: var(--hx-rust); }
.cr-btn--civic { color: var(--hx-green); border-color: var(--hx-field); }
.cr-iconbtn { background: var(--hx-surface); border-color: var(--hx-field); color: var(--hx-head); }
.cr-iconbtn:hover { color: var(--hx-green); border-color: var(--hx-green); box-shadow: none; }

/* Inputs and selects */
.cr-input, .cr-select, .signup-form input[type=email], input[type="search"], input[type="text"],
input[type="email"], input[type="number"], input[type="tel"], input[type="url"], select, textarea {
  background: var(--hx-surface); color: var(--hx-head); border: 1px solid var(--hx-field);
  border-radius: 4px; box-shadow: none;
}
.cr-input::placeholder, input::placeholder, textarea::placeholder { color: var(--hx-muted); opacity: 1; }
.cr-input:focus, .cr-select:focus, .signup-form input[type=email]:focus {
  border-color: var(--hx-green); box-shadow: none; background: var(--hx-surface);
}
.cr-select-wrap__chevron { color: var(--hx-muted); }
.cr-select option { background: var(--hx-surface); color: var(--hx-head); }
.cr-field__label { font-family: var(--hx-mono); color: var(--hx-muted); }
.cr-switch input:checked + .cr-switch__track, .cr-check input:checked + .cr-check__box {
  background: var(--hx-green-fill); border-color: var(--hx-green-fill); box-shadow: none;
}
.cr-switch input:checked + .cr-switch__track .cr-switch__thumb { background: #FFFFFF; }
.cr-check__box svg { color: #FFFFFF; }

/* Tables */
table { border-collapse: collapse; }
th { font-family: var(--hx-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-muted); }
th, td { border-color: var(--hx-hair); }

/* Tabs */
.cr-tab { font-family: var(--hx-sans); letter-spacing: 0; color: var(--hx-muted); }
.cr-tab::after { background: var(--hx-green); box-shadow: none; }
.cr-tab[aria-selected="true"] { color: var(--hx-head); }

/* Stat readouts: no glow */
.cr-stat::before { background: var(--hx-gold); box-shadow: none; }
.cr-stat__value { color: var(--hx-head); text-shadow: none; }
.cr-stat__delta--up { color: var(--hx-green); }
.cr-stat__delta--down { color: var(--hx-rust); }
.cr-toast::before { content: none; }

/* Pagination: current page = inverted control */
.pagination { border-top: 1px solid var(--hx-rule); }
.pagination a, .pagination span {
  font-family: var(--hx-mono); color: var(--hx-head); background: var(--hx-surface);
  border: 1px solid var(--hx-field); border-radius: 2px; box-shadow: none !important;
}
.pagination a:hover { color: var(--hx-green); border-color: var(--hx-green); background: var(--hx-tint); }
.pagination .is-current { background: var(--hx-inv-bg); color: var(--hx-inv-fg); border-color: var(--hx-inv-bg); }

/* No scanlines or bracket corners on the old card components */
.cr-scanlines::after { display: none !important; }
.cr-card--bracket::before, .cr-card--bracket::after { display: none !important; }
.cr-wm__mark, .footer-brand img, .cr-footer__brand img, .cr-header__brand .cr-wm__mark { filter: none !important; }
.media.hero img { border-bottom: 1px solid var(--hx-hair); background: var(--hx-well); }
.media .playbadge { background: rgba(11, 26, 36, 0.82); color: #FFFFFF; border-color: #FFFFFF; box-shadow: none; }
.media.is-video:hover .playbadge { background: var(--hx-green-fill); }

/* newsletter box used in page bodies (story CTA, section pages); the homepage
   band (.hx-nl) is styled in section 4 */
.cr-su:not(.hx-nl) { background: var(--hx-surface) !important; border: 1px solid var(--hx-hair) !important; border-top: 3px solid var(--hx-green-fill) !important; border-radius: 4px !important; }
.cr-su:not(.hx-nl) input[type=email] { background: var(--hx-surface) !important; color: var(--hx-head) !important; border-color: var(--hx-field) !important; min-height: 44px; }
.cr-su:not(.hx-nl) .cr-btn { min-height: 44px; padding: 0 18px; }
.cr-su:not(.hx-nl) .cr-su-fine { color: var(--hx-muted) !important; }

/* List rows, rails, this-week band */
.cr-listrow { background: var(--hx-surface); border-color: var(--hx-hair); }
.cr-listrow:hover { background: var(--hx-tint); border-color: var(--hx-field); }
.cr-listrow__rail--breaking { background: var(--hx-rust-fill); box-shadow: none; }
.cr-listrow__rail--teal, .cr-listrow__rail--eco { background: var(--hx-green-fill); box-shadow: none; }
.cr-listrow__rail--civic { background: var(--hx-gold); box-shadow: none; }
.cr-listrow:hover .cr-listrow__go { color: var(--hx-green); }
.thisweek, .cr-week__hero, .tip-card {
  background: var(--hx-surface); border: 1px solid var(--hx-hair);
  border-left: 3px solid var(--hx-green-fill); box-shadow: none;
}
.cr-week__dayname { color: var(--hx-green); }

/* The old story-body pieces (TL;DR, quick facts, timeline, case boxes, drop
   caps, map embed, reactions, share row) were re-skinned here until the story
   page was rebuilt; section 5 styles the new markup and those rules are gone. */

/* Drop caps: Fraunces in green, no halo */
.cr-article__lead::first-letter {
  font-family: var(--hx-display); color: var(--hx-green); text-shadow: none;
}

.cr-mapcanvas { background: var(--hx-well) !important; border-color: var(--hx-hair); }
.cr-mapcanvas__county { border-color: var(--hx-field); background: transparent; }
.cr-mapcanvas__sweep { display: none; }
.cr-mapcanvas__readout { color: var(--hx-muted); }
.cr-pin { --pin: var(--hx-green-fill); }
.cr-pin__dot, .cr-pin--active .cr-pin__dot { box-shadow: 0 0 0 2px var(--hx-surface); }
.cr-pin__label { background: var(--hx-surface); color: var(--hx-head); }
.cr-map__legend li:hover, .cr-map__legend li.is-sel { background: var(--hx-tint); color: var(--hx-head); }

/* Prose pages, topics */
.prose-page a { color: var(--hx-green); }
.topic-beat { background: var(--hx-surface); border-color: var(--hx-hair); border-left-color: var(--hx-green-fill); }
.topic-beat:hover { border-color: var(--hx-field); box-shadow: var(--shadow-md); transform: none; }
.empty, .cr-topics__empty { color: var(--hx-muted); }

/* Hard-coded neon in inline <style> blocks of section pages (board.py, maps.py,
   meetings.py, letters.py, tip/subscribe). Those modules are not edited; these
   rules flatten their glows and neon tints. */
.bos-story { --accent: var(--hx-green-fill) !important; }
.bos-chip { color: var(--hx-green) !important; background: transparent !important; border-color: var(--hx-hair) !important; }
[style*="text-shadow"] { text-shadow: none !important; }
.cr-main [class] { text-shadow: none !important; }
.lg-dot { box-shadow: none !important; }
/* board.html */
.sup-card, .sup-card.is-lead { box-shadow: none !important; border-radius: 4px !important; }
.sup-card.is-lead { border-color: var(--hx-rule) !important; border-top-width: 3px !important; }
.sup-photo { box-shadow: none !important; border-radius: 2px !important; }
.sup-district { color: var(--hx-green) !important; }
.sup-fin-val { color: var(--hx-head) !important; }
.sup-party, .sup-party.dem, .sup-party.rep {
  background: transparent !important; border: 1px solid var(--hx-field) !important; color: var(--hx-body) !important;
}
/* map.html: the legend and filter buttons; the base map stays as it is */
#map { box-shadow: none !important; border-radius: 4px !important; border-color: var(--hx-hair) !important; }
.map-legend { box-shadow: none !important; border-radius: 4px !important; }
.map-legend h2 { color: var(--hx-green) !important; }
.lg-btn { background: var(--hx-surface) !important; color: var(--hx-head) !important; border: 1px solid var(--hx-field) !important; border-radius: 2px !important; }
.lg-btn:hover, .lg-btn.dev:hover { box-shadow: none !important; border-color: var(--hx-green) !important; color: var(--hx-green) !important; }
/* meetings.html */
.mtg-link { border-bottom-color: var(--hx-field) !important; }
.mtg-link:hover { border-bottom-color: var(--hx-green) !important; }
/* elections.html: filled button keeps the green fill in dark; party tags readable in both themes */
.el-btn { background: var(--hx-green-fill) !important; color: #FFFFFF !important; }
.el-btn.sec { background: var(--hx-surface) !important; color: var(--hx-green) !important; border-color: var(--hx-green) !important; }
:root[data-theme="dark"] .el-p-r { color: var(--hx-rust) !important; background: var(--hx-rust-tint) !important; }
/* data-centers.html fact / allegation tags */
.dc-tag--fact { color: var(--hx-green) !important; background: var(--hx-tint) !important; }
.dc-tag--alleg { color: var(--hx-head) !important; background: transparent !important; box-shadow: inset 0 0 0 1px var(--hx-gold); }
/* Leaflet.markercluster bubbles (library default is lime): green fill, white count */
.marker-cluster, .marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(31, 107, 83, .28) !important; }
.marker-cluster div { background: #1F6B53 !important; color: #FFFFFF !important; font-family: var(--hx-mono) !important; font-weight: 700; }
.marker-cluster span { color: #FFFFFF !important; }
/* schools.html level tags: the amber fill is too light for white text */
.sch-tag[style*="#c1820e"] { background: #8F6210 !important; }
.sup-lead, .sup-interim { border-color: var(--hx-field) !important; background: transparent !important; color: var(--hx-body) !important; }
/* selected filter chips on section pages: inverted control, as on the boards */
.cr-main button.is-on, .cr-main button[aria-pressed="true"] {
  background: var(--hx-inv-bg) !important; color: var(--hx-inv-fg) !important; border-color: var(--hx-inv-bg) !important;
}
/* party tags in dark: neutral, readable */
:root[data-theme="dark"] .el-p-r, :root[data-theme="dark"] .el-p-d, :root[data-theme="dark"] .el-p-i {
  color: var(--hx-head) !important; background: var(--hx-well) !important;
}
.dc-badge[style*="#e08a00"], .dc-badge[style*="224,138,0"], .dc-badge[style*="224, 138, 0"] { background: #8F6210 !important; }
/* map attributions: a light backing so they read over dark base maps too */
.leaflet-container .leaflet-control-attribution { background: rgba(255, 255, 255, .9) !important; color: #2B3B43 !important; }
.leaflet-container .leaflet-control-attribution a, :root[data-theme] .leaflet-control-attribution a { color: #1F6B53 !important; }
/* video play badge: opaque enough to read on any frame */
.media .playbadge { background: rgba(11, 26, 36, .9) !important; }

/* ---- sweep of the section pages (Stage D). Each rule below overrides an inline
   <style> block a page module emits, so it is tied to that module's class names:
   if the module renames a class, its old look comes back. ---- */
/* board.py: hover glows, teal hover borders, rounded cards */
.bos-link, .bos-vid, .bos-story { border-radius: 4px !important; box-shadow: none !important; }
.bos-link:hover { box-shadow: none !important; border-color: var(--hx-green) !important; }
.bos-vid:hover, .bos-story:hover { border-color: var(--hx-field) !important; }
.bos-disclaimer { margin: 0 0 32px !important; }
/* maps.py (and every Leaflet page): popup glow */
.leaflet-popup-content-wrapper { box-shadow: var(--shadow-md) !important; border-radius: 4px !important; }
/* letters.py: the submit button was a light teal fill with near-black text and a
   teal glow on hover; the guidelines box a teal wash */
.letter-btn { background: var(--hx-green-fill) !important; color: #FFFFFF !important; border: 1px solid var(--hx-green-fill) !important;
  border-radius: 4px !important; box-shadow: none !important; min-height: 44px; }
.letter-btn:hover { background: var(--hx-green-fill-hover) !important; box-shadow: none !important; }
.letter-guidelines { background: var(--hx-surface) !important; border-left-color: var(--hx-green-fill) !important; border-radius: 4px !important; }
/* meetings.py: amber washes and borders */
.mtg-notable { background: var(--hx-surface) !important; border-color: var(--hx-hair) !important; border-left: 3px solid var(--hx-gold) !important; }
.mtg-disclaimer { background: var(--hx-surface) !important; border-left-color: var(--hx-gold) !important; }
/* white text on var(--accent): in dark --accent is the light text green (2.1:1),
   so these filled badges and buttons take the green FILL in both themes
   (farmers.py .fm-new, school_board.py .sb-role.sb-lead, weekly.py .nl-tag,
   housing.py .ah-pop, elections.py .el-lk-form button, yard_sales.py .ys-cta) */
.fm-new, .sb-role.sb-lead, .nl-tag, .ah-pop, .el-lk-form button, .ys-cta {
  background: var(--hx-green-fill) !important; color: #FFFFFF !important; border-color: var(--hx-green-fill) !important;
}
.nl-tag.nl-tag--ev { background: #5C6D75 !important; border-color: #5C6D75 !important; }
.el-lk-form button:hover, .ys-cta:hover { background: var(--hx-green-fill-hover) !important; filter: none !important; }
/* events.py: category badges are white text on an inline background color; three of
   the colors fail 4.5:1 (keyed on the exact hex in the style attribute) */
.ev-cat[style*="#c1820e"] { background: #8F6210 !important; }
.ev-cat[style*="#3f8f5a"] { background: #2E6B43 !important; }
.ev-cat[style*="#b5731f"] { background: #8A5716 !important; }
/* parks.py: "Not county-run" flag, white on amber #e08a00 (2.7:1) */
.pk-flag { background: #8F6210 !important; color: #FFFFFF !important; }
/* events.py farmers-market box: a long "when" label ran into the market name */
.ev-fm li .ev-fm-when { margin-right: 12px; }
@media (max-width: 760px) { .cr-main .ev-fm li .ev-fm-when { display: block; margin-right: 0; } }
/* ceda.py: "Departed" flag was gold text on white (1.7:1); gold stays as the outline.
   Its bare <h1> sized like every other page title; 10px card radii to the site's 4px */
.ced-flag { color: var(--hx-head) !important; background: transparent !important; border-color: var(--hx-gold) !important; }
.cr-prose > h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin: 0 0 12px; }
.cr-prose .cr-standfirst { font-size: 18px; line-height: 1.5; color: var(--hx-body); max-width: 62em; margin: 0 0 24px; }
.ced-primer, .ced-card { border-radius: 4px !important; }
.ced-face, .ced-ini { border-radius: 2px !important; }
/* taxes.py: the three-column rates table ran 12px past a 390 screen; on phones the
   note drops under the name and rate */
@media (max-width: 760px) {
  .cr-main .tax-rates tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; border-top: 1px solid var(--hx-hair); }
  .cr-main .tax-rates th[scope=row], .cr-main .tax-rates td { border-top: 0; width: auto; }
  .cr-main .tax-rates td.tax-rate__note { grid-column: 1 / -1; padding: 0 0 .65rem; }
  .cr-main .tax-rates td.tax-rate__rate { padding-right: 0; text-align: right; }
}


/* ============================================================
   3. THE PAGE SHELL (hx-)
   ============================================================ */
.hx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hx-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 14px;
  background: var(--hx-inv-bg); color: var(--hx-inv-fg); font-weight: 600; border-radius: 4px; }
.hx-skip:focus { top: 12px; }
.hx-wrap { max-width: var(--hx-max); margin: 0 auto; padding: 0 var(--hx-gutter); box-sizing: border-box; }
.hx-shell { position: relative; z-index: 50; font-family: var(--hx-sans); }
.hx-shell a { text-decoration: none; }
.hx-shell svg { display: block; flex-shrink: 0; }

/* generic icon button */
.hx-iconbtn {
  width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 4px;
  background: transparent; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hx-iconbtn--boxed { border: 1px solid var(--hx-field); background: var(--hx-surface); color: var(--hx-head); }
.hx-iconbtn:hover { color: var(--hx-green); }
.hx-iconbtn--boxed:hover { border-color: var(--hx-green); background: var(--hx-tint); }

/* generic buttons */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; box-sizing: border-box; border-radius: 4px;
  font: 600 15px/1.2 var(--hx-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.hx-btn--green { background: var(--hx-green-fill); color: #FFFFFF !important; border: 1px solid var(--hx-green-fill); }
.hx-btn--green:hover { background: var(--hx-green-fill-hover); border-color: var(--hx-green-fill-hover); text-decoration: none; }
.hx-btn--block { display: flex; width: 100%; }

/* ---- utility bar ---- */
.hx-util { background: var(--hx-chrome); color: var(--hx-on-chrome); }
.hx-util__in {
  display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; justify-content: space-between;
  font: 400 12px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase;
}
.hx-util__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; padding: 6px 0; color: var(--hx-on-chrome); }
.hx-util__sep { color: var(--hx-gold); }
.hx-util__date:empty, .hx-util__date:empty + .hx-util__sep { display: none; }
.hx-util__datesm { display: none; }
.hx-util__tools { display: flex; gap: 4px; align-items: center; }
.hx-util__tools .hx-iconbtn { color: var(--hx-on-chrome); }
.hx-util__tools .hx-iconbtn:hover { color: var(--hx-on-chrome-strong); }
.hx-util__tip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--hx-on-chrome) !important; }
.hx-util__tip:hover { color: var(--hx-on-chrome-strong) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.hx-util :focus-visible { outline-color: var(--hx-on-chrome-strong); }

/* EN / ES switch (the .lang-toggle hook is rewritten by lang-toggle.js).
   The old sheet draws it as a teal pill; flatten that here. */
.lang-toggle.hx-lang { order: 0; margin: 0; padding: 0; border: 0; border-radius: 0; gap: 4px;
  display: inline-flex; align-items: center; font: inherit; letter-spacing: inherit; }
.lang-toggle.hx-lang .lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px;
  padding: 0 4px; box-sizing: border-box; color: var(--hx-on-chrome); text-transform: uppercase; text-decoration: none;
}
.lang-toggle.hx-lang .lang-link:hover { color: var(--hx-on-chrome-strong); text-decoration: none; }
.lang-toggle.hx-lang .lang-link.is-current { color: var(--hx-on-chrome-strong); font-weight: 700; box-shadow: inset 0 -3px 0 var(--hx-gold); }

/* ---- masthead ---- */
.hx-mast { background: var(--hx-surface); border-top: 3px solid var(--hx-gold); }
.hx-mast__in { padding-top: 26px; display: flex; flex-direction: column; gap: 22px; }
.hx-mast__row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.hx-brand { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--hx-head) !important; }
.hx-brand:hover { color: var(--hx-head); text-decoration: none; }
.hx-brand__seal { width: 78px; height: 78px; flex-shrink: 0; display: block; }
.hx-brand__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-brand__name {
  font-family: var(--hx-display); font-weight: 700; font-size: clamp(32px, 3.75vw, 54px);
  line-height: 1; letter-spacing: -0.022em; color: var(--hx-head);
}
.hx-brand__tag { font-family: var(--hx-display); font-style: italic; font-size: 17px; line-height: 1.3; color: var(--hx-muted); }
.hx-mast__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hx-mast__phone { display: none; }
/* desktop: brand, search and button stay on one row (the Spanish button label,
   and any width just over 1100, pushed the search under the brand); the search
   box gives up width first */
@media (min-width: 1101px) {
  .hx-mast__row { flex-wrap: nowrap; }
  .hx-mast .hx-brand { flex-shrink: 0; }
  .hx-mast__actions { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; }
  .hx-mast .hx-search { flex: 0 1 auto; min-width: 0; }
  .hx-mast .hx-search__input { flex: 0 1 230px; min-width: 120px; }
}

/* search form (masthead and phone menu) */
.hx-search { display: flex; align-items: center; margin: 0; }
.hx-search__input {
  height: 46px; width: 230px; box-sizing: border-box; margin: 0;
  border: 1px solid var(--hx-field) !important; border-right: 0 !important; border-radius: 4px 0 0 4px !important;
  padding: 0 12px; font: 400 15px/1 var(--hx-sans); background: var(--hx-surface); color: var(--hx-head);
  -webkit-appearance: none; appearance: none;
}
.hx-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hx-search__input:focus { outline: none; border-color: var(--hx-green) !important; box-shadow: inset 0 0 0 1px var(--hx-green); }
.hx-search__btn {
  width: 46px; height: 46px; padding: 0; margin: 0; border: 1px solid var(--hx-inv-bg); border-radius: 0 4px 4px 0;
  background: var(--hx-inv-bg); color: var(--hx-inv-fg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hx-search__btn:hover { background: var(--hx-green-fill); border-color: var(--hx-green-fill); color: #FFFFFF; }

/* ---- navigation ---- */
.hx-nav { border-top: 3px double var(--hx-rule); }
.hx-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; align-items: center; }
.hx-nav__item { position: relative; display: flex; }
.hx-nav__end { margin-left: auto; }
.hx-nav__link, .hx-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 50px; box-sizing: border-box;
  padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer;
  font: 600 15px/1.2 var(--hx-sans); color: var(--hx-head) !important; letter-spacing: 0; text-transform: none;
}
.hx-nav__link:hover, .hx-nav__trigger:hover { color: var(--hx-green) !important; text-decoration: none; }
.hx-nav__link[aria-current="page"], .hx-nav__trigger.is-current { box-shadow: inset 0 -3px 0 var(--hx-green-fill); }
:root[data-theme="dark"] .hx-nav__link[aria-current="page"], :root[data-theme="dark"] .hx-nav__trigger.is-current { box-shadow: inset 0 -3px 0 var(--hx-green); }
.hx-nav__trigger[aria-expanded="true"] {
  background: var(--hx-page); padding: 0 12px; margin: 0 -12px; box-shadow: inset 0 -3px 0 var(--hx-rule);
}
.hx-chev { transition: transform 120ms ease-out; }
[aria-expanded="true"] > .hx-chev { transform: rotate(180deg); }

/* dropdown panels */
.hx-panel {
  position: absolute; z-index: 60; top: calc(100% - 3px); left: -12px; box-sizing: border-box;
  background: var(--hx-surface); border: 1px solid var(--hx-hair); border-top: 3px solid var(--hx-rule);
  border-radius: 0 0 4px 4px; box-shadow: var(--hx-shadow-panel);
  max-width: calc(100vw - 32px);
}
.hx-panel[hidden] { display: none; }
.hx-panel--right { left: auto; right: -12px; }
.hx-panel--list { width: 248px; padding: 10px 12px; display: flex; flex-direction: column; }
.hx-panel--cols3 { width: 692px; padding: 22px 16px 16px; }
.hx-panel--cols2 { width: 520px; padding: 22px 16px 16px; }
.hx-panel--feature { width: 456px; padding: 12px; }
.hx-panel__grid { display: grid; gap: 0 20px; }
.hx-panel--cols3 .hx-panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-panel--cols2 .hx-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-panel__col { display: flex; flex-direction: column; gap: 22px; }
.hx-panel__group { display: flex; flex-direction: column; }
.hx-panel__head {
  display: block; padding: 0 12px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--hx-hair);
  font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green);
}
.hx-panel__link {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 3px;
  font: 500 15px/1.3 var(--hx-sans); color: var(--hx-head) !important;
}
.hx-panel__link:hover, .hx-panel__link:focus-visible {
  color: var(--hx-green) !important; background: var(--hx-tint); text-decoration: underline; text-underline-offset: 3px;
}
.hx-panel__link:focus-visible { outline: 2px solid var(--hx-green); outline-offset: -2px; }
.hx-panel__link[aria-current="page"] { color: var(--hx-green) !important; font-weight: 600; }

/* Investigations feature card (text-only: the Shoosmith page has no image of its own) */
.hx-feature {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 3px;
  color: var(--hx-head) !important;
}
.hx-feature:hover, .hx-feature:focus-visible { background: var(--hx-tint); text-decoration: none; }
.hx-feature:focus-visible { outline: 2px solid var(--hx-green); outline-offset: -2px; }
.hx-feature__kicker { font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green); }
.hx-feature__title { font: 700 21px/1.15 var(--hx-display); letter-spacing: -0.01em; color: var(--hx-head); }
.hx-feature:hover .hx-feature__title { color: var(--hx-green); text-decoration: underline; text-underline-offset: 3px; }
.hx-feature__dek { font: 400 14px/1.45 var(--hx-sans); color: var(--hx-body); }

/* ---- ticker (hooks: .cr-ticker__tag, .cr-ticker__track, .cr-ticker__item) ---- */
.hx-ticker { background: var(--hx-chrome); color: var(--hx-on-chrome); }
.hx-ticker__in { display: flex; align-items: stretch; }
.hx-ticker .cr-ticker__tag {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px;
  background: var(--hx-rust-fill); color: #FFFFFF; white-space: nowrap;
  font: 700 12px/1 var(--hx-mono) !important; letter-spacing: .12em !important; text-transform: uppercase;
}
.hx-ticker .cr-ticker__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; box-shadow: none;
  animation: hx-pulse 1.8s ease-in-out infinite;
}
.hx-ticker__viewport { flex: 1 1 320px; min-width: 0; overflow: hidden; display: flex; align-items: center; padding-left: 24px; }
.hx-ticker .cr-ticker__track {
  display: flex; flex-shrink: 0; gap: 0; white-space: nowrap; align-items: center;
  animation: hx-marquee 64s linear infinite;
  font: 400 12.5px/1 var(--hx-mono); letter-spacing: .02em;
}
.hx-ticker:hover .cr-ticker__track, .hx-ticker .cr-ticker__track:focus-within { animation-play-state: paused; }
.hx-ticker__half { display: flex; flex-shrink: 0; align-items: center; }
.hx-ticker .cr-ticker__item {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-right: 44px;
  font: 400 12.5px/1 var(--hx-mono) !important; letter-spacing: .02em !important; text-transform: uppercase;
  color: var(--hx-on-chrome) !important; text-decoration: none;
}
a.cr-ticker__item:hover { color: var(--hx-on-chrome-strong) !important; text-decoration: none; }
a.cr-ticker__item:hover .hx-tick__type { text-decoration: underline; text-underline-offset: 3px; }
.hx-ticker .cr-ticker__sep { color: var(--hx-gold); margin: 0; }
.hx-tick__lab {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px;
  background: var(--hx-green-fill); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
.hx-tick__lab--fire { background: var(--hx-rust-fill); }
.hx-tick__type { color: var(--hx-on-chrome-strong); font-weight: 700; }
.hx-tick__time { color: var(--hx-on-chrome-muted); }
.hx-ticker :focus-visible { outline-color: var(--hx-on-chrome-strong); outline-offset: -2px; }
@keyframes hx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .hx-ticker .cr-ticker__track, .hx-ticker .cr-ticker__dot { animation: none !important; }
  .hx-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .hx-ticker__viewport::-webkit-scrollbar { display: none; }
}

/* ---- footer (the old sheet styles bare <footer> with !important) ---- */
:root footer.hx-foot, :root[data-theme] footer.hx-foot {
  background: var(--hx-chrome) !important; color: var(--hx-body);
  border-top: 3px solid var(--hx-gold) !important; margin-top: 0;
}
.hx-foot { color: #C9D5DA; font-family: var(--hx-sans); }
.hx-foot__in { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.hx-foot__top { display: flex; flex-wrap: wrap; gap: 36px 48px; align-items: flex-start; }
.hx-foot__brand { flex: 1.3 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hx-foot__logo { display: flex; align-items: center; gap: 12px; color: #FFFFFF !important; }
.hx-foot__logo:hover { text-decoration: none; }
.hx-foot__logo img { width: 48px; height: 48px; flex-shrink: 0; display: block; }
.hx-foot__logo span { font: 600 22px/1.15 var(--hx-display); color: #FFFFFF; letter-spacing: -0.01em; }
.hx-foot__tag { display: none; margin: 0; font: italic 400 17px/1.35 var(--hx-display); color: #FFFFFF; max-width: 24ch; }
.hx-foot p { margin: 0; }
.hx-foot__about { font-size: 14.5px; line-height: 1.55; color: #C9D5DA; }
.hx-foot__signup { display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 16px 0 2px; border-top: 1px solid var(--hx-chrome-line); }
.hx-foot__signup strong { font: 600 16px/1.3 var(--hx-sans); color: #FFFFFF; }
.hx-foot__signup p { font-size: 14px; line-height: 1.5; color: #9FB0B8; }
.hx-foot__signup .hx-btn { margin-top: 6px; min-height: 44px; }
.hx-foot__social { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; font-weight: 600; }
.hx-foot__social a, .hx-foot__legal a {
  color: #FFFFFF !important; text-decoration: underline !important; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 32px;
}
.hx-foot__nav { flex: 4 1 600px; min-width: 0; display: flex; flex-wrap: wrap; gap: 36px 48px; }
.hx-foot__col { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; }
.hx-foot__col h2 {
  margin: 0 0 8px; font: 700 12px/1.4 var(--hx-mono) !important; letter-spacing: .12em;
  text-transform: uppercase; color: #FFFFFF;
}
.hx-foot__col a { padding: 5px 0; font-size: 14.5px; line-height: 1.5; color: #C9D5DA !important; }
.hx-foot__col a:hover { color: #FFFFFF !important; text-decoration: underline; text-underline-offset: 3px; }
.hx-foot__legal {
  border-top: 1px solid var(--hx-chrome-line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 1.55; color: #9FB0B8;
}
.hx-foot__legal p { max-width: 900px; color: #9FB0B8; font-size: 13px; }
.hx-foot__legal strong { color: #C9D5DA; }
.hx-foot__legal a { display: inline; min-height: 0; }
/* footer "En espanol" link: a .lang-toggle for lang-toggle.js, drawn as a plain link */
.lang-toggle.hx-foot__lang { display: contents; }
.hx-foot__lang .lang-link, .hx-foot__lang .lang-link.is-current {
  padding: 5px 0; font: 400 14.5px/1.5 var(--hx-sans); letter-spacing: 0; text-transform: none; color: #C9D5DA !important;
}
.hx-foot__lang .lang-link:hover { color: #FFFFFF !important; text-decoration: underline; text-underline-offset: 3px; }
.hx-foot__meta { font: 400 11.5px/1.6 var(--hx-mono) !important; letter-spacing: .06em; text-transform: uppercase; color: #9FB0B8 !important; }
.hx-foot__meta .footer-domain { color: #9FB0B8; font-weight: 400; }
.hx-foot :focus-visible { outline-color: #FFFFFF; }

/* ---- phone menu (full height dialog) ---- */
.hx-pmenu {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: var(--hx-surface); color: var(--hx-body); height: 100vh; height: 100dvh;
}
.hx-pmenu[hidden] { display: none; }
.hx-pmenu__top { flex-shrink: 0; border-top: 3px solid var(--hx-gold); border-bottom: 1px solid var(--hx-hair);
  padding: 10px 8px 10px 20px; display: flex; align-items: center; gap: 2px; }
.hx-brand--sm { flex: 1 1 0; gap: 10px; min-height: 44px; margin-right: 6px; }
.hx-brand--sm .hx-brand__seal { width: 40px; height: 40px; }
.hx-brand--sm .hx-brand__name { font-size: clamp(16px, calc(10vw - 20px), 21px); white-space: nowrap; letter-spacing: -0.02em; }
.hx-pmenu__scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 20px 24px; }
.hx-search--menu { padding: 12px 0 10px; }
.hx-search--menu .hx-search__input { flex: 1 1 0; min-width: 0; width: auto; height: 48px; font-size: 16px; padding: 0 14px; }
.hx-search--menu .hx-search__btn { width: 48px; height: 48px; }
.hx-pnav { display: flex; flex-direction: column; border-top: 3px double var(--hx-rule); font: 600 17px/1.3 var(--hx-sans); }
.hx-pnav__link, .hx-pnav__trigger {
  display: flex; align-items: center; gap: 10px; min-height: 48px; width: 100%; box-sizing: border-box;
  padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--hx-hair); background: transparent;
  font: inherit; color: var(--hx-head) !important; text-align: left; cursor: pointer;
}
.hx-pnav__trigger { justify-content: space-between; }
.hx-pnav__trigger[aria-expanded="true"] { border-bottom-color: transparent; }
.hx-pnav__link:hover, .hx-pnav__trigger:hover { color: var(--hx-green) !important; text-decoration: none; }
.hx-pnav__link[aria-current="page"] { color: var(--hx-green) !important; }
.hx-pnav__link[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hx-pnav__panel {
  margin: 0 -20px; padding: 0 20px 6px; background: var(--hx-page);
  border-top: 1px solid var(--hx-hair); border-bottom: 1px solid var(--hx-hair);
  display: flex; flex-direction: column; font: 500 15.5px/1.3 var(--hx-sans);
}
.hx-pnav__panel[hidden] { display: none; }
.hx-pnav__head {
  padding: 10px 0 0; font: 700 11px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-muted);
}
.hx-pnav__group + .hx-pnav__group { border-top: 1px solid var(--hx-hair); }
.hx-pnav__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.hx-pnav__grid a, .hx-pnav__one {
  display: flex; align-items: center; min-height: 48px; color: var(--hx-head) !important;
}
.hx-pnav__grid a:hover, .hx-pnav__one:hover { color: var(--hx-green) !important; text-decoration: underline; text-underline-offset: 3px; }
.hx-pnav__grid a[aria-current="page"] { color: var(--hx-green) !important; font-weight: 600; }
.hx-pmenu__bar {
  flex-shrink: 0; background: var(--hx-page); border-top: 1px solid var(--hx-field);
  padding: 4px 20px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px;
}
.hx-pmenu__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hx-pmenu__tip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px/1.2 var(--hx-sans); color: var(--hx-head) !important; }
.hx-pmenu__tip:hover { color: var(--hx-green) !important; }
.hx-pmenu__tools { display: flex; align-items: center; gap: 4px; font: 400 12px/1 var(--hx-mono); letter-spacing: .06em; }
.hx-pmenu__tools .hx-theme { margin-left: 6px; }
.lang-toggle.hx-lang--menu .lang-link { min-width: 40px; color: var(--hx-body); }
.lang-toggle.hx-lang--menu .lang-link:hover { color: var(--hx-green); }
.lang-toggle.hx-lang--menu .lang-link.is-current { color: var(--hx-head); box-shadow: inset 0 -3px 0 var(--hx-green-fill); }
:root[data-theme="dark"] .lang-toggle.hx-lang--menu .lang-link.is-current { box-shadow: inset 0 -3px 0 var(--hx-green); }
.hx-pmenu .hx-btn--green { min-height: 48px; font-size: 16px; }
html.hx-noscroll, html.hx-noscroll body { overflow: hidden !important; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
/* 761 to 1100: same shell, tighter */
@media (max-width: 1100px) {
  :root { --hx-gutter: 24px; }
  .hx-util__place, .hx-util__place + .hx-util__sep { display: none; }
  .hx-brand { flex: 0 0 auto; }
  .hx-brand__seal { width: 64px; height: 64px; }
  /* search + button share the row with the brand, and fill it once they wrap under it */
  .hx-mast__actions { flex: 1 1 380px; justify-content: flex-end; flex-wrap: nowrap; }
  .hx-search { flex: 1 1 200px; min-width: 0; }
  .hx-search__input { flex: 1 1 0; width: auto; min-width: 0; }
  .hx-nav__list { gap: 0 20px; }
  /* the green Weekly Report button beside the search box goes to the same page */
  .hx-nav__end { display: none; }
  .hx-panel--cols3 { width: min(692px, calc(100vw - 32px)); }
}
@media (max-width: 900px) {
  .hx-util__date { display: none; }
  .hx-util__datesm { display: inline; }
  .hx-util__datesm:empty, .hx-util__datesm:empty + .hx-util__sep { display: none; }
  .hx-nav__list { gap: 0 14px; }
  .hx-nav__link, .hx-nav__trigger { font-size: 14.5px; }
}
@media (max-width: 830px) {
  .hx-nav__list { gap: 0 12px; }
  .hx-nav__link, .hx-nav__trigger { font-size: 14px; gap: 4px; }
}
@media (max-width: 800px) {
  .hx-nav__list { gap: 0 9px; }
  .hx-nav__link, .hx-nav__trigger { font-size: 13.5px; gap: 3px; }
}

/* phone: 760 and below */
@media (max-width: 760px) {
  :root { --hx-gutter: 20px; }
  .hx-util__in { padding: 0 12px 0 20px; gap: 8px; flex-wrap: nowrap; font-size: 11px; letter-spacing: .04em; }
  .hx-util__meta { flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 0; line-height: 1.35; min-width: 0; }
  .hx-util__meta > * { white-space: nowrap; }
  .hx-util__sep, .hx-util__place { display: none; }
  .hx-util__date { display: none; }
  .hx-util__datesm { display: inline; color: var(--hx-on-chrome-strong); }
  .hx-util__datesm:empty { display: none; }
  .hx-util__upd { color: var(--hx-on-chrome-muted); }
  .hx-util__tip { display: none; }
  .hx-util__tools { flex-shrink: 0; gap: 0; }

  .hx-mast { border-bottom: 1px solid var(--hx-hair); }
  .hx-mast__in { padding: 10px 8px 10px 20px; gap: 0; }
  .hx-mast__row { flex-wrap: nowrap; gap: 2px; }
  .hx-mast .hx-brand { flex: 1 1 0; gap: 10px; min-height: 44px; margin-right: 6px; }
  .hx-mast .hx-brand__seal { width: 40px; height: 40px; }
  .hx-mast .hx-brand__name { font-size: clamp(16px, calc(10vw - 20px), 21px); white-space: nowrap; letter-spacing: -0.02em; }
  .hx-mast .hx-brand__tag { display: none; }
  .hx-mast__actions, .hx-nav { display: none; }
  .hx-mast__phone { display: inline-flex; color: var(--hx-head); }

  .hx-ticker__in { padding: 0; }
  .hx-ticker .cr-ticker__tag { min-height: 44px; padding: 0 12px 0 20px; gap: 8px; font-size: 11px !important; letter-spacing: .1em !important; }
  .hx-ticker__viewport { padding-left: 14px; }
  .hx-ticker .cr-ticker__item { min-height: 44px; margin-right: 36px; gap: 9px; font-size: 12px !important; }

  .cr-main__inner { padding: 20px var(--hx-gutter) 40px; }

  .hx-foot__in { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
  .hx-foot__tag { display: block; }
  .hx-foot__brand { flex-basis: 100%; }
  .hx-foot__nav { flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px;
    border-top: 1px solid var(--hx-chrome-line); padding-top: 28px; }
  .hx-foot__col a { display: flex; align-items: center; min-height: 44px; padding: 0; }

  /* old page-body controls: at least 44px tall on phones */
  .cr-main button:not(.leaflet-control *), .cr-main select,
  .cr-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]) { min-height: 44px; }
  .cr-main .cr-btn { padding-left: 16px; padding-right: 16px; }
  .lg-btn, .tw-filter, .filter { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; }
  .cr-main button:not(.leaflet-control *):not(.hx-iconbtn) { min-width: 44px; }
  /* a long bare URL in body copy (parks.html "How to register") ran off the screen */
  .cr-main :is(p, li, dd, td) a { overflow-wrap: anywhere; }
}
/* the old card padding drops to 16px at 640px and below; the photo bleed has to match */
@media (max-width: 640px) {
  .card > .media { margin: -16px -16px 16px; }
}
@media (min-width: 761px) {
  .hx-pmenu { display: none !important; }
}
/* under 360 the one-line nameplate runs into the search and menu buttons:
   it breaks after "Chesterfield" instead (measured clear of the buttons at 320) */
@media (max-width: 359px) {
  .hx-mast .hx-brand__name, .hx-brand--sm .hx-brand__name {
    white-space: normal; font-size: 17px; line-height: 1.04; overflow-wrap: normal;
  }
  /* the "Updated" stamp in the utility bar wraps rather than run under EN / ES */
  .hx-util__meta > * { white-space: normal; }
}


/* ============================================================
   4. HOMEPAGE (hx-)
   Lead and Also today, the Public Safety band with the dispatch
   board, Explore tiles, the feed with the This Week rail,
   Virginia and Region, the newsletter band, and the pager.
   .hx-card (the feed card) is also used on /topics/ pages and the
   Opinion section of /letters.html.
   Image boxes all carry a fixed aspect ratio so nothing jumps as
   photos arrive. A story without a photo is a text-only card.
   ============================================================ */
.hx-home [hidden], .hx-card[hidden] { display: none !important; }
.hx-home { display: flex; flex-direction: column; }
.hx-home a, .hx-card a { text-decoration: none; }

/* shared pieces */
.hx-home h2.hx-label, .hx-label {
  margin: 0; font: 700 12px/1.4 var(--hx-mono) !important; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hx-head);
}
.hx-home h2.hx-label--rust { color: var(--hx-rust); }
.hx-sec__title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--hx-head); }
.hx-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 600 14px/1.3 var(--hx-sans); color: var(--hx-green); white-space: nowrap;
}
.hx-home .hx-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx-kicker {
  margin: 0; display: flex; flex-wrap: wrap; gap: 0 8px;
  font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green);
}
.hx-kicker--rust { color: var(--hx-rust); }
.hx-meta {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
  font: 400 11.5px/1.5 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted);
}
.hx-meta svg { display: inline-block; }
.hx-empty { margin: 0; padding: 24px 0; color: var(--hx-muted); }

/* headline links: ink, green and underlined on hover */
.hx-lead__title a, .hx-tcard__title a, .hx-card__title a, .hx-srow__title, .hx-teaser__link,
.hx-wk__title, .hx-va__title { color: var(--hx-head); }
.hx-lead__title a:hover, .hx-tcard__title a:hover, .hx-card__title a:hover, .hx-srow__title:hover,
.hx-teaser__link:hover, .hx-wk__title:hover, .hx-va__title:hover {
  color: var(--hx-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.hx-lead__title a:hover { text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---- lead ---- */
.hx-top { display: flex; flex-direction: column; gap: 40px; padding-top: 8px; }
.hx-lead {
  display: grid; gap: 28px 44px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "text fig" "teaser fig";
}
.hx-lead__text { grid-area: text; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hx-lead__title {
  margin: 0; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.02em; color: var(--hx-head); text-wrap: balance;
}
.hx-lead__rule { display: block; width: 72px; height: 3px; background: var(--hx-gold); }
.hx-lead__dek { margin: 0; font-size: 19px; line-height: 1.55; color: var(--hx-body); text-wrap: pretty; }
.hx-lead__fig { grid-area: fig; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hx-lead__imglink { display: block; }
.hx-lead__img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 2px; background: var(--hx-well);
}
.hx-credit { font: 400 11.5px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); }
.hx-teaser {
  grid-area: teaser; align-self: end; min-width: 0;
  border-top: 1px solid var(--hx-hair); padding-top: 16px; display: flex; flex-direction: column; gap: 6px;
}
.hx-teaser__label { margin: 0; font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-head); }
.hx-teaser__link { font: 600 16px/1.35 var(--hx-sans); }
/* no photo: a wide text lead, the Earlier line in a column beside it */
.hx-lead--text { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "text teaser"; }
.hx-lead--text.hx-lead--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text"; }
.hx-lead--text .hx-lead__title { font-size: clamp(40px, 4.4vw, 62px); max-width: 21ch; }
.hx-lead--text .hx-lead__dek { font-size: 21px; max-width: 58ch; }
.hx-lead--text .hx-teaser { align-self: start; border-top: 3px double var(--hx-rule); padding-top: 14px; gap: 8px; }
.hx-lead--text .hx-teaser__link { font: 600 21px/1.25 var(--hx-display); letter-spacing: -0.005em; }
.hx-lead--img.hx-lead--solo { grid-template-areas: "text fig" ". fig"; }

/* ---- also today ---- */
.hx-also { border-top: 1px solid var(--hx-rule); padding-top: 14px; display: flex; flex-direction: column; gap: 18px; }
.hx-also__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
.hx-tcard {
  min-width: 0; display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "fig" "kick" "head" "dek" "meta";
}
.hx-tcard__fig { grid-area: fig; display: block; }
.hx-tcard__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: var(--hx-well); }
.hx-tcard .hx-kicker { grid-area: kick; }
.hx-tcard__title { grid-area: head; margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--hx-head); text-wrap: balance; }
.hx-tcard--text .hx-tcard__title { font-size: 26px; line-height: 1.16; }
.hx-tcard__dek { grid-area: dek; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--hx-body); }
.hx-tcard--text .hx-tcard__dek { font-size: 16px; }
.hx-tcard .hx-meta { grid-area: meta; }

/* ---- public safety band (full-bleed white band; box-shadow paints past the
   content column without adding to the page's scroll width) ---- */
.hx-safety {
  margin-top: 48px; padding: 1px 0;
  box-shadow: 0 0 0 100vmax var(--hx-hair); clip-path: inset(0 -100vmax);
}
.hx-safety__in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 48px; align-items: start;
  padding: 44px 0; background: var(--hx-surface);
  box-shadow: 0 0 0 100vmax var(--hx-surface); clip-path: inset(0 -100vmax);
}
.hx-safety--short .hx-safety__in { grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); }
.hx-safety__list { min-width: 0; border-top: 3px solid var(--hx-rust-fill); display: flex; flex-direction: column; }
.hx-safety__list .hx-label { padding: 13px 0; }
.hx-srows { list-style: none; margin: 0; padding: 0; }
.hx-srow {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 20px; align-items: start;
  grid-template-areas: "date title fig" "date src fig";
  padding: 18px 0; border-top: 1px solid var(--hx-hair);
}
.hx-srow__date {
  grid-area: date; padding-top: 4px;
  font: 400 12px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted);
}
.hx-srow__title { grid-area: title; font: 600 18px/1.35 var(--hx-sans); }
.hx-srow__src { grid-area: src; font: 400 12px/1.4 var(--hx-mono); letter-spacing: .02em; color: var(--hx-muted); }
.hx-srow__fig { grid-area: fig; width: 108px; display: block; }
.hx-srow__img { display: block; width: 108px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: var(--hx-well); }
.hx-safety__links {
  margin: 0; display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 4px; border-top: 1px solid var(--hx-hair);
}
.hx-safety__links a { display: inline-flex; align-items: center; min-height: 44px; font: 600 14px/1.3 var(--hx-sans); color: var(--hx-green); }
.hx-safety__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- dispatch board ---- */
.hx-dispatch {
  min-width: 0; box-sizing: border-box; padding: 28px; border-radius: 6px;
  background: var(--hx-chrome); color: var(--hx-on-chrome); border: 1px solid var(--hx-chrome);
  display: flex; flex-direction: column; gap: 18px;
}
:root[data-theme="dark"] .hx-dispatch { border-color: var(--hx-hair); }
.hx-dispatch p { margin: 0; }
.hx-dispatch__top {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  font: 400 12px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase;
}
.hx-dispatch__tags { display: flex; gap: 12px; align-items: center; }
.hx-dispatch__live {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 2px;
  background: var(--hx-rust-fill); color: #FFFFFF; font-weight: 700;
}
.hx-dispatch__dot { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; animation: hx-pulse 1.8s ease-in-out infinite; }
.hx-dispatch__kind { color: var(--hx-on-chrome-strong); font-weight: 700; }
.hx-dispatch__asof { color: var(--hx-on-chrome-muted); }
.hx-dispatch h2.hx-dispatch__title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; color: var(--hx-on-chrome-strong); }
.hx-dispatch__data { display: flex; flex-direction: column; gap: 14px; }
.hx-dispatch__counts {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hx-chrome-line); border-bottom: 1px solid var(--hx-chrome-line);
}
.hx-dispatch__counts > div { padding: 14px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.hx-dispatch__counts > div:first-child { padding-left: 0; }
.hx-dispatch__counts > div + div { border-left: 1px solid var(--hx-chrome-line); }
.hx-dispatch__counts dd { margin: 0; font: 700 40px/1 var(--hx-display); color: var(--hx-on-chrome-strong); }
.hx-dispatch__counts dt {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 11px/1.3 var(--hx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hx-on-chrome);
}
.hx-sq { width: 10px; height: 10px; flex-shrink: 0; box-sizing: border-box; border: 1px solid var(--hx-on-chrome); background: var(--hx-green-fill); }
.hx-sq--fire { background: var(--hx-rust-fill); }
.hx-sq--traffic { background: var(--hx-gold); }
.hx-dispatch__table {
  width: 100%; border-collapse: collapse; font: 400 12.5px/1.4 var(--hx-mono); color: var(--hx-on-chrome);
}
.hx-dispatch__table th {
  text-align: left; padding: 0 12px 8px 0; font: 400 11px/1.3 var(--hx-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--hx-on-chrome-muted); border-bottom: 1px solid var(--hx-chrome-line);
}
.hx-dispatch__table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--hx-chrome-line); vertical-align: middle; }
.hx-dispatch__table th:last-child, .hx-dispatch__table td:last-child { padding-right: 0; }
.hx-dispatch__time { white-space: nowrap; color: var(--hx-on-chrome); }
.hx-dispatch__call a { color: var(--hx-on-chrome-strong); font-weight: 700; text-transform: uppercase; }
.hx-dispatch__call a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx-dispatch__loc { text-transform: uppercase; }
.hx-dispatch__status { color: var(--hx-on-chrome); }
.hx-unit {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px; white-space: nowrap;
  background: var(--hx-green-fill); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hx-unit--fire { background: var(--hx-rust-fill); }
.hx-unit--traffic { background: var(--hx-gold); color: #0B1A24; }
.hx-dispatch__msg {
  padding: 16px 0; border-top: 1px solid var(--hx-chrome-line); border-bottom: 1px solid var(--hx-chrome-line);
  font: 400 15px/1.55 var(--hx-sans); color: var(--hx-on-chrome);
}
.hx-dispatch__more, .hx-dispatch__note { font: 400 13px/1.5 var(--hx-sans); color: var(--hx-on-chrome-muted); }
.hx-dispatch__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.hx-dispatch__links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 600 15px/1.3 var(--hx-sans); color: var(--hx-on-chrome-strong);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hx-on-chrome-muted);
}
.hx-dispatch__links a:hover { text-decoration-color: var(--hx-on-chrome-strong); }
.hx-dispatch :focus-visible { outline-color: var(--hx-on-chrome-strong); }
@media (prefers-reduced-motion: reduce) { .hx-dispatch__dot { animation: none; } }

/* ---- explore tiles ---- */
.hx-explore { padding-top: 52px; display: flex; flex-direction: column; gap: 18px; }
.hx-explore__head { display: flex; align-items: center; gap: 16px; }
.hx-explore__line { flex: 1 1 0; height: 1px; background: var(--hx-rule); }
.hx-explore__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hx-tile {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--hx-surface); border: 1px solid var(--hx-hair); border-radius: 4px;
}
.hx-tile:hover { border-color: var(--hx-field); }
.hx-tile__img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; background: var(--hx-well); }
.hx-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; }
.hx-tile__title { font: 600 21px/1.2 var(--hx-display); color: var(--hx-head); }
.hx-tile:hover .hx-tile__title { color: var(--hx-green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hx-tile__sub { font-size: 14.5px; line-height: 1.4; color: var(--hx-muted); }

/* ---- feed and rail ---- */
.hx-river { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.hx-feedsec { min-width: 0; display: flex; flex-direction: column; }
.hx-feedsec__head {
  border-top: 3px double var(--hx-rule); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; justify-content: space-between;
}
.hx-feedsec__head .hx-sec__title { margin-right: auto; }
.hx-feedsec__page { font: 400 12px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); }
.hx-home--list .hx-feedsec__head .hx-sec__title { font-size: 36px; }
.hx-chips.filterbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 0 18px; border: 0;
}
.hx-chips .filter.hx-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; box-sizing: border-box; margin: 0;
  border: 1px solid var(--hx-field) !important; border-radius: 999px; background: var(--hx-surface) !important;
  font: 600 14px/1.2 var(--hx-sans); letter-spacing: 0; text-transform: none; color: var(--hx-head); cursor: pointer;
}
.hx-chips .filter.hx-chip:hover { border-color: var(--hx-green) !important; color: var(--hx-green); background: var(--hx-tint) !important; }
.hx-chips .filter.hx-chip.is-active, .hx-chips .filter.hx-chip[aria-pressed="true"] {
  background: var(--hx-inv-bg) !important; border-color: var(--hx-inv-bg) !important; color: var(--hx-inv-fg) !important;
}
.hx-feed { display: flex; flex-direction: column; }
.hx-feed__more { margin: 0; padding-top: 6px; border-top: 1px solid var(--hx-rule); }

/* the feed card (also on /topics/ pages and /letters.html) */
.hx-card {
  min-width: 0; padding: 22px 0; border-top: 1px solid var(--hx-hair);
  display: grid; gap: 8px 28px; align-content: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kick" "head" "dek" "meta";
}
.hx-card--img {
  grid-template-columns: minmax(0, 1fr) 200px;
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "kick fig" "head fig" "dek fig" "meta fig";
}
.hx-card .hx-kicker { grid-area: kick; }
.hx-card__title { grid-area: head; margin: 0; font-size: 24px; line-height: 1.18; font-weight: 600; color: var(--hx-head); text-wrap: balance; }
.hx-card__dek { grid-area: dek; margin: 0; max-width: 640px; font-size: 15.5px; line-height: 1.5; color: var(--hx-body); }
.hx-card .hx-meta { grid-area: meta; align-self: start; }
.hx-card__fig { grid-area: fig; display: block; align-self: start; }
.hx-card__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: var(--hx-well); }
/* topic pages and /letters.html put these cards in the old .feed grid */
.feed:has(> .hx-card) { gap: 0; }
.feed > .hx-card:first-child { border-top-color: var(--hx-rule); }

/* pager */
.hx-pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 0; padding-top: 18px; border-top: 1px solid var(--hx-rule);
}
.hx-pager__of { margin-right: auto; font: 400 12px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); }
.hx-pager__num, .hx-pager__step {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--hx-field); border-radius: 4px; background: var(--hx-surface);
  font: 600 15px/1 var(--hx-sans); color: var(--hx-head);
}
.hx-pager__step { padding: 0 16px; }
.hx-pager__num:hover, .hx-pager__step:hover { border-color: var(--hx-green); color: var(--hx-green); background: var(--hx-tint); text-decoration: none; }
.hx-pager__num[aria-current="page"] { background: var(--hx-inv-bg); border-color: var(--hx-inv-bg); color: var(--hx-inv-fg); }
.hx-pager__gap { padding: 0 4px; color: var(--hx-muted); }

/* rail */
.hx-rail { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
/* beside a long feed the rail follows the reader, when the window is tall enough to
   show all of it: the shell script adds .hx-rail--stick when it fits (the rail's
   height depends on its headlines, so a media query on the window cannot tell) */
@media (min-width: 1101px) { .hx-rail.hx-rail--stick { position: sticky; top: 24px; } }
.hx-rail__sec { display: flex; flex-direction: column; border-top: 3px solid var(--hx-rule); }
.hx-rail__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 2px 0; }
.hx-wk-list { list-style: none; margin: 0; padding: 0; }
.hx-wk { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hx-hair); align-items: flex-start; }
.hx-wk__day { width: 44px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.hx-wk__dow { font: 400 11px/1.3 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-muted); }
.hx-wk__num { font: 700 22px/1 var(--hx-display); color: var(--hx-head); }
.hx-wk__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hx-wk .hx-kicker { font-size: 11px; }
.hx-wk__title { font: 600 17px/1.25 var(--hx-display); }
.hx-rail__sec--tags { gap: 14px; padding-top: 12px; }
.hx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-tag {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--hx-field); border-radius: 2px; background: var(--hx-surface);
  font: 600 13.5px/1.2 var(--hx-sans); color: var(--hx-head);
}
.hx-tag:hover { border-color: var(--hx-green); color: var(--hx-green); background: var(--hx-tint); text-decoration: none; }

/* ---- virginia and region ---- */
.hx-va { padding-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.hx-va__head {
  border-top: 3px double var(--hx-rule); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; justify-content: space-between;
}
.hx-va__sub { margin: 4px 0 0; font-size: 15px; color: var(--hx-muted); }
.hx-va__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.hx-va__item { min-width: 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--hx-hair); padding-top: 14px; }
.hx-va__src { margin: 0; font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green); }
.hx-va__title { font: 600 19px/1.22 var(--hx-display); text-wrap: balance; }

/* ---- newsletter band (the shared _signup_block form, as a band) ---- */
.hx-band { padding: 56px 0 8px; }
.cr-su.hx-nl {
  margin: 0; padding: 36px 32px; border: 0; border-radius: 4px; background: var(--hx-green-fill); color: #FFFFFF;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: center;
}
.cr-su.hx-nl > strong {
  grid-column: 1; margin: 0; font: 700 30px/1.15 var(--hx-display); letter-spacing: -0.01em; color: #FFFFFF;
}
.cr-su.hx-nl > p { grid-column: 1; margin: 0; font-size: 16px; line-height: 1.5; color: #E3EFEA; }
.cr-su.hx-nl .cr-su-form-wrap, .cr-su.hx-nl .cr-su-done { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.cr-su.hx-nl form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
/* the email label is visible here (the honeypot's stays hidden) */
.cr-su.hx-nl label.cr-su-hp[for$="-email"] {
  position: static; width: 100%; height: auto; overflow: visible; left: auto;
  font: 600 13px/1.4 var(--hx-sans); color: #E3EFEA;
}
.cr-su.hx-nl input[type=email] {
  flex: 1 1 220px; min-width: 0; height: 48px; box-sizing: border-box; padding: 0 14px;
  border: 0; border-radius: 4px; background: #FFFFFF; color: #0B1A24; font-size: 16px;
}
.cr-su.hx-nl input[type=email]::placeholder { color: #5C6D75; }
.cr-su.hx-nl input[type=email]:focus { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.cr-su.hx-nl button.cr-btn {
  flex: 0 0 auto; height: 48px; min-height: 48px; padding: 0 22px; border: 0 !important; border-radius: 4px;
  background: #0B1A24 !important; color: #FFFFFF !important; font: 700 16px/1 var(--hx-sans);
}
.cr-su.hx-nl button.cr-btn:hover { background: #06121A !important; }
.cr-su.hx-nl :focus-visible { outline-color: #FFFFFF; }
.cr-su.hx-nl .cr-su-fine { display: block; margin: 10px 0 0; font-size: 13px; color: #E3EFEA; }
.cr-su.hx-nl.is-err .cr-su-err { color: #FFFFFF; font-weight: 600; }
.cr-su.hx-nl .cr-su-done strong { font: 700 24px/1.2 var(--hx-display); color: #FFFFFF; }
.cr-su.hx-nl .cr-su-done p { color: #E3EFEA; }
.cr-su.hx-nl.is-done { grid-template-columns: minmax(0, 1fr); }
.cr-su.hx-nl.is-done .cr-su-done { grid-column: 1; grid-row: auto; }

/* ---- 761 to 1100: the rail and the board drop under the main column ---- */
@media (max-width: 1100px) {
  .hx-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 32px; }
  .hx-lead--text { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .hx-also__grid, .hx-explore__grid, .hx-va__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-safety__in, .hx-safety--short .hx-safety__in { grid-template-columns: minmax(0, 1fr); }
  .hx-river { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hx-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
  .cr-su.hx-nl { grid-template-columns: minmax(0, 1fr); }
  .cr-su.hx-nl .cr-su-form-wrap, .cr-su.hx-nl .cr-su-done { grid-column: 1; grid-row: auto; margin-top: 12px; }
}

/* ---- phone: 760 and below ---- */
@media (max-width: 760px) {
  .hx-top { gap: 32px; padding-top: 0; }
  .hx-lead, .hx-lead--text, .hx-lead--text.hx-lead--solo, .hx-lead--img.hx-lead--solo {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 18px;
    grid-template-areas: "fig" "text" "teaser";
  }
  .hx-lead__fig { margin: -20px calc(-1 * var(--hx-gutter)) 0; gap: 10px; }
  .hx-lead__img { aspect-ratio: 3 / 2; border-radius: 0; }
  .hx-credit { padding: 0 var(--hx-gutter); }
  .hx-lead__text { gap: 14px; }
  .hx-lead__title, .hx-lead--text .hx-lead__title { font-size: 34px; line-height: 1.06; max-width: none; }
  .hx-lead__dek, .hx-lead--text .hx-lead__dek { font-size: 18px; }
  .hx-lead--text .hx-teaser, .hx-teaser { align-self: start; border-top: 1px solid var(--hx-hair); padding-top: 14px; }
  .hx-lead--text .hx-teaser__link { font: 600 16px/1.35 var(--hx-sans); }

  .hx-also__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx-tcard { padding: 24px 0; border-top: 1px solid var(--hx-hair); }
  .hx-tcard:first-child { padding-top: 0; border-top: 0; }
  .hx-tcard__title, .hx-tcard--text .hx-tcard__title { font-size: 25px; }
  .hx-tcard__dek, .hx-tcard--text .hx-tcard__dek { font-size: 16px; }
  /* after the first, a photo becomes a thumbnail beside the headline */
  .hx-tcard--img:not(:first-child) {
    grid-template-columns: minmax(0, 1fr) 100px; column-gap: 16px;
    grid-template-areas: "kick fig" "head fig" "dek dek" "meta meta";
  }

  .hx-safety { margin-top: 40px; }
  .hx-safety__in { padding: 32px 0 0; gap: 32px; }
  .hx-srow {
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px;
    grid-template-areas: "title title fig" "date src fig";
  }
  .hx-srow__date { padding-top: 0; font-size: 11.5px; }
  .hx-srow__date::after { content: "\00B7"; margin-left: 10px; }
  .hx-srow__title { font-size: 17px; }
  .hx-srow__src { font-size: 11.5px; }
  .hx-srow__fig { width: 100px; margin-left: 6px; }
  .hx-srow__img { width: 100px; }
  .hx-safety__links { gap: 0 20px; }
  .hx-dispatch { margin: 0 calc(-1 * var(--hx-gutter)); padding: 28px var(--hx-gutter); border-radius: 0; border: 0; border-top: 3px solid var(--hx-gold); }
  .hx-dispatch h2.hx-dispatch__title { font-size: 25px; }
  .hx-dispatch__counts > div { padding: 12px 10px; }
  .hx-dispatch__counts dd { font-size: 32px; }
  .hx-dispatch__counts dt { font-size: 10.5px; letter-spacing: .06em; }
  /* the table becomes a stack of rows */
  .hx-dispatch__table, .hx-dispatch__table tbody { display: block; }
  .hx-dispatch__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hx-dispatch__table tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
    grid-template-areas: "unit time status" "call call call" "loc loc loc";
    padding: 14px 0; border-bottom: 1px solid var(--hx-chrome-line);
  }
  .hx-dispatch__table td { padding: 0; border: 0; }
  .hx-dispatch__unit { grid-area: unit; }
  .hx-dispatch__time { grid-area: time; }
  .hx-dispatch__status { grid-area: status; text-align: right; text-transform: uppercase; }
  .hx-dispatch__call { grid-area: call; font-size: 14px; }
  .hx-dispatch__loc { grid-area: loc; }
  .hx-dispatch__links { flex-direction: column; }
  .hx-dispatch__links li + li { border-top: 1px solid var(--hx-chrome-line); }
  .hx-dispatch__links a { display: flex; justify-content: space-between; width: 100%; }
  .hx-dispatch__links a svg { order: 2; }

  .hx-explore { padding-top: 40px; }
  .hx-explore__grid { gap: 12px; }
  .hx-tile__img { aspect-ratio: 3 / 2; }
  .hx-tile__body { padding: 10px 12px 12px; }
  .hx-tile__title { font-size: 17px; }
  .hx-tile__sub { font-size: 13px; }

  .hx-river { padding-top: 44px; gap: 44px; }
  .hx-sec__title { font-size: 27px; }
  .hx-home--list .hx-feedsec__head .hx-sec__title { font-size: 30px; }
  .hx-chips.filterbar {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--hx-gutter)); padding: 14px var(--hx-gutter) 18px;
    scrollbar-width: none;
  }
  .hx-chips.filterbar::-webkit-scrollbar { display: none; }
  .hx-chips .filter.hx-chip { flex-shrink: 0; white-space: nowrap; }
  .hx-card, .hx-card--img { padding: 20px 0; }
  .hx-card--img {
    grid-template-columns: minmax(0, 1fr) 100px; column-gap: 16px; grid-template-rows: auto;
    grid-template-areas: "kick fig" "head fig" "dek dek" "meta meta";
  }
  .hx-card__title { font-size: 22px; }
  .hx-card__dek { font-size: 16px; }
  .hx-pager { gap: 6px; }
  .hx-pager__of { flex-basis: 100%; margin-bottom: 4px; }
  .hx-pager__step { margin-left: auto; }
  .hx-rail { display: flex; }
  .hx-tag { min-height: 44px; padding: 0 14px; }

  .hx-va { padding-top: 44px; }
  .hx-va__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx-va__item { padding: 14px 0 16px; }
  .hx-va__head .hx-more { order: 3; }
  .hx-band { padding-top: 44px; }
  .cr-su.hx-nl { padding: 28px 20px; }
  .cr-su.hx-nl > strong { font-size: 27px; }
  .cr-su.hx-nl input[type=email], .cr-su.hx-nl button.cr-btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .hx-explore__grid { grid-template-columns: minmax(0, 1fr); }
  .hx-dispatch__counts dt { font-size: 10px; letter-spacing: .04em; }
}


/* ============================================================
   5. STORY PAGE (hx-)
   /story/<slug>.html and /es/story/<slug>.html (_hx_story_page in
   render.py). The article sits in a full-width white band: beats,
   headline, gold rule, source line, TL;DR, the one photo, then a
   reading column beside a reference rail (Quick facts on top), the
   Development timeline closing the reading column, the AI note,
   topics, share and reactions. Read next and the newsletter band follow on the page
   background. A story with nothing for the rail is one centered
   reading column (.hx-story--solo).
   ============================================================ */

/* ---- YouTube thumbnails (shared with the homepage) ----
   hqdefault / sddefault files are 4:3 with the 16:9 frame between black
   bars. In a box 16:9 or wider, object-fit: cover crops the bars exactly.
   In a narrower box the image is scaled up inside a clipping wrapper:
   3:2 needs 1 / (0.5625 * 1.5) = 1.186, 5:4 needs 4 / 3 = 1.334. */
img.hx-yt { object-fit: cover; object-position: 50% 50%; transform: scale(1.186); }
/* The lead keeps a thumbnail at its own 16:9 rather than zooming it to fill the 5:4 box:
   that zoom doubled a 480px file and cut a quarter off each side. */
.hx-lead__img.hx-yt { transform: none; aspect-ratio: 16 / 9; }
.hx-story__img.hx-yt, .hx-next__img.hx-yt { transform: none; }
.hx-lead__imglink, .hx-tcard__fig, .hx-card__fig, .hx-srow__fig, .hx-next__fig { overflow: hidden; border-radius: 2px; }

/* ---- the band ---- */
.hx-storyband {
  background: var(--hx-surface); margin-top: -32px;
  box-shadow: 0 0 0 100vmax var(--hx-surface); clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--hx-hair);
}
.hx-story {
  padding: 44px 0 56px; display: flex; flex-direction: column;
  color: var(--hx-body); font-family: var(--hx-sans);
}
.hx-story a { text-decoration: none; }
.hx-story svg { flex-shrink: 0; }

/* ---- header ---- */
.hx-story__head { display: flex; flex-direction: column; gap: 20px; max-width: 1000px; }
.hx-beats {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px;
  font: 700 12px/1.3 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase;
}
.hx-beats a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hx-green); }
.hx-beats--rust a { color: var(--hx-rust); }
.hx-beats a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx-beats__dot { color: var(--hx-muted); }
h1.hx-story__title {
  margin: -8px 0 0; font-family: var(--hx-display); font-weight: 700;
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1.03; letter-spacing: -0.022em;
  color: var(--hx-head); text-wrap: balance; overflow-wrap: break-word;
}
.hx-story__head .hx-lead__rule { margin: 0; }
.hx-src {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  font: 400 12.5px/1.5 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted);
}
.hx-src__name { color: var(--hx-head); font-weight: 700; }
.hx-src__corr, .hx-watch {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  color: var(--hx-head); font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px;
}
.hx-src__corr:hover, .hx-watch:hover { color: var(--hx-green); }
.hx-tldr {
  margin-top: 8px; max-width: 860px; box-sizing: border-box;
  background: var(--hx-page); border: 1px solid var(--hx-hair); border-radius: 4px;
  padding: 22px clamp(18px, 2vw, 28px) 24px; display: flex; flex-direction: column; gap: 10px;
}
h2.hx-tldr__label {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font: 700 12px/1.3 var(--hx-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green);
}
.hx-tldr__sq { width: 8px; height: 8px; background: var(--hx-gold); flex-shrink: 0; }
.hx-tldr__text {
  margin: 0; font-family: var(--hx-display); font-weight: 500; font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.42; color: var(--hx-head); text-wrap: pretty;
}
.hx-tldr__text a, .hx-story__col a, .hx-tl__text a, .hx-corr p a { color: var(--hx-green); text-decoration: underline; text-underline-offset: 3px; }

/* ---- the photo ---- */
.hx-story__fig { margin: 40px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hx-story__media { position: relative; display: block; overflow: hidden; border-radius: 2px; }
/* 2:1, not the board's 13:5. Most story images are link-preview pictures at 1.91:1 and
   many carry text (station graphics, county maps). 2:1 trims about 5% of those; 13:5
   cut off more than a quarter of the height. */
.hx-story__img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: 2px; background: var(--hx-well);
}
.hx-story__img.hx-yt { aspect-ratio: 16 / 9; }
/* A source image too small for the wide slot (the page's script marks it, see
   _HX_FIG_FIT in render.py): reading-column width at most, never more than 1.5x the
   file's own width, shown whole. Thumbnails keep their 16:9 crop so the black bars
   baked into the file stay hidden. */
.hx-story__fig--small { max-width: min(700px, calc(var(--hx-nat, 700px) * 1.5)); }
.hx-story__fig--small .hx-story__img { aspect-ratio: auto; object-fit: contain; background: none; }
.hx-story__fig--small .hx-story__img.hx-yt { aspect-ratio: 16 / 9; object-fit: cover; }
.hx-play {
  position: absolute; left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 26, 36, .9); color: #FFFFFF; border: 2px solid #FFFFFF;
}
.hx-play svg { fill: currentColor; margin-left: 3px; }
.hx-story__media:hover .hx-play { background: var(--hx-green-fill); }
.hx-story__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.hx-story__cap .hx-watch { font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; }
.hx-watch svg { fill: currentColor; }

/* ---- column and rail ---- */
.hx-story__body {
  margin-top: 44px; display: grid; column-gap: 64px; row-gap: 40px; align-items: start;
  grid-template-columns: minmax(0, 700px) minmax(0, 400px); justify-content: space-between;
  grid-template-rows: auto 1fr; grid-template-areas: "col facts" "col rail";
}
.hx-story__body--nofacts { grid-template-rows: auto; grid-template-areas: "col rail"; }
.hx-story__body--norail { grid-template-rows: auto; grid-template-areas: "col facts"; }
.hx-story__body--solo { grid-template-columns: minmax(0, 700px); grid-template-rows: auto; grid-template-areas: "col"; justify-content: center; }
.hx-story__col { grid-area: col; min-width: 0; display: flex; flex-direction: column; }
.hx-ref__sec--facts { grid-area: facts; }
.hx-ref { grid-area: rail; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

/* column sections: an ink hairline and a Space Mono label */
.hx-sec { margin: 0; display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--hx-rule); padding-top: 14px; }
.hx-sec + .hx-sec, .hx-sec + .hx-corrs, .hx-corrs + .hx-sec { margin-top: 40px; }
.hx-sec--loose { border-top: 0; padding-top: 0; }
.hx-sec + .hx-sec--loose { margin-top: 22px; }
.hx-sec--loose:first-child { border-top: 1px solid var(--hx-rule); padding-top: 22px; }
.hx-sec--players, .hx-sec--why { gap: 12px; }
.hx-story h2.hx-label { margin: 0; font: 700 12px/1.4 var(--hx-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-head); }
.hx-sec p, .hx-sec li { margin: 0; font-size: 19px; line-height: 1.68; color: var(--hx-body); text-wrap: pretty; overflow-wrap: break-word; }
.hx-sec strong { color: var(--hx-head); }
.hx-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.hx-players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.hx-sec .hx-player { display: flex; flex-direction: column; gap: 4px; }
.hx-player__name { font: 600 21px/1.25 var(--hx-display); color: var(--hx-head); }
.hx-sec .hx-player__role { font-size: 17px; line-height: 1.55; }
/* the case for and against: tinted boxes, green and rust */
.hx-case { border: 1px solid var(--hx-hair); border-left: 3px solid var(--hx-green-fill); border-radius: 0 4px 4px 0;
  padding: 18px 22px 20px; gap: 12px; background: var(--hx-tint); }
.hx-case--against { border-left-color: var(--hx-rust-fill); background: var(--hx-rust-tint); }
.hx-story .hx-case--for h2.hx-label { color: var(--hx-green); }
.hx-story .hx-case--against h2.hx-label { color: var(--hx-rust); }
.hx-case p, .hx-case li { font-size: 17.5px; line-height: 1.6; }

/* corrections */
.hx-corrs { display: flex; flex-direction: column; gap: 20px; }
.hx-corr {
  box-sizing: border-box; background: var(--hx-surface); border: 2px solid var(--hx-rule); border-radius: 4px;
  padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px;
}
.hx-story h2.hx-corr__head {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font: 700 12.5px/1.4 var(--hx-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-head);
}
.hx-corr__label { display: inline-flex; align-items: center; gap: 8px; }
.hx-corr__head time { font-weight: 400; color: var(--hx-muted); }
.hx-corr p { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--hx-head); text-wrap: pretty; }
.hx-corr__more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 14.5px/1.3 var(--hx-sans); color: var(--hx-green);
}
.hx-story__col a.hx-corr__more { text-decoration: none; }
.hx-story__col a.hx-corr__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* reference rail */
.hx-ref__sec { display: flex; flex-direction: column; border-top: 3px solid var(--hx-rule); min-width: 0; }
.hx-ref__sec--orig { border-top: 0; }
.hx-ref__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
.hx-ref__tag { font: 400 11px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); }
.hx-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hx-facts__row { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--hx-hair); font-size: 16px; line-height: 1.5; color: var(--hx-head); }
.hx-facts dt { font: 700 11.5px/1.4 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green); }
.hx-facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hx-head); overflow-wrap: break-word; }
.hx-kds, .hx-places, .hx-rels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hx-kd { display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--hx-hair); }
.hx-kd__date { font: 700 18px/1.25 var(--hx-display); color: var(--hx-head); overflow-wrap: break-word; }
.hx-kd__what { font-size: 15px; line-height: 1.5; color: var(--hx-body); }
.hx-places li, .hx-rels li { border-top: 1px solid var(--hx-hair); }
.hx-places li:last-child, .hx-rels li:last-child { border-bottom: 1px solid var(--hx-hair); }
.hx-place, .hx-rel {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 0; box-sizing: border-box;
  font: 600 16px/1.35 var(--hx-sans); color: var(--hx-head);
}
.hx-rel { justify-content: space-between; gap: 16px; }
.hx-place__pin { color: var(--hx-green); }
.hx-place__name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.hx-place > svg:last-child, .hx-rel > svg { color: var(--hx-muted); }
a.hx-place:hover, a.hx-rel:hover, .hx-src-link:hover { color: var(--hx-green); text-decoration: underline; text-underline-offset: 3px; }
.hx-place--plain, .hx-rel--plain { font-weight: 400; }
.hx-srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hx-srcs__row { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-top: 1px solid var(--hx-hair); }
.hx-srcs__row:last-child { border-bottom: 1px solid var(--hx-hair); }
.hx-srcs__n { padding-top: 3px; font: 700 12px/1.4 var(--hx-mono); color: var(--hx-muted); }
.hx-srcs__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hx-src-link, .hx-src-text { font: 600 15.5px/1.4 var(--hx-sans); color: var(--hx-head); overflow-wrap: break-word; }
.hx-src-text { font-weight: 400; }
.hx-src-host { font: 400 11px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); overflow-wrap: anywhere; }
.hx-orig {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 12px 18px; box-sizing: border-box; border-radius: 4px; line-height: 1.35;
  background: var(--hx-inv-bg); color: var(--hx-inv-fg) !important; font: 600 16px/1.35 var(--hx-sans);
}
.hx-orig span { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.hx-orig:hover { background: var(--hx-green-fill); color: #FFFFFF !important; }
.hx-ref__sec--orig .hx-orig, .hx-orig-wrap .hx-orig { margin-top: 0; }
.hx-orig-wrap { border-top: 0; padding-top: 0; }
.hx-orig-wrap .hx-orig { align-self: flex-start; }
.hx-story__col a.hx-orig { text-decoration: none; }
/* map */
.hx-map { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.hx-map__frame { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border: 1px solid var(--hx-hair); border-radius: 2px; background: var(--hx-well); }
.hx-map__cap { display: flex; align-items: flex-start; gap: 8px; font: 400 14px/1.45 var(--hx-sans); color: var(--hx-body); }
.hx-map__cap svg { color: var(--hx-green); margin-top: 1px; }
.hx-map__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 700 12px/1.3 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-head); text-decoration: underline !important; text-underline-offset: 3px; }
.hx-map__link:hover { color: var(--hx-green); }

/* ---- development timeline: a vertical list that closes the reading column ----
   Three parts per event, set on a grid: the date in a gutter on the left, the
   dot with the line running down to the next dot, then the headline, text and
   source. (Until 2026-11-13 this was a full-width row of cards below the
   column and rail. It only filled the row at exactly four events.) */
.hx-tl { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; border-top: 3px double var(--hx-rule); padding-top: 16px; }
.hx-story__col > .hx-tl:first-child { margin-top: 0; }
.hx-tl + .hx-sec, .hx-tl + .hx-corrs { margin-top: 40px; }
.hx-story .hx-tl .hx-sec__title { font-size: 28px; }
.hx-tl__head { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; justify-content: space-between; }
.hx-tl__legend { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font: 400 11.5px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); }
.hx-tl__key { display: inline-flex; align-items: center; gap: 8px; }
.hx-tl__key::before { content: ""; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--hx-green); border-radius: 50%; background: var(--hx-green); }
.hx-tl__key--plan::before { background: var(--hx-surface); }
.hx-tl__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hx-tl__ev { display: grid; grid-template-columns: 116px 16px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.hx-tl__when { grid-column: 1; grid-row: 1; margin: 0; padding-top: 5px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right;
  font: 700 12.5px/1.4 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-green); overflow-wrap: anywhere; }
.hx-tl__tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px; border: 1px solid var(--hx-field);
  font: 700 11px/1 var(--hx-mono); letter-spacing: .08em; color: var(--hx-muted); }
.hx-tl__mark { grid-column: 2; grid-row: 1; align-self: stretch; position: relative; display: block; }
.hx-tl__dot { display: block; margin-top: 5px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--hx-green); border: 2px solid var(--hx-green); }
/* the line runs from under this dot to the top of the next one */
.hx-tl__line { position: absolute; left: 7px; top: 21px; bottom: -5px; border-left: 2px solid var(--hx-green); }
.hx-tl__ev:last-child .hx-tl__line { display: none; }
.hx-tl__ev--plan .hx-tl__dot { background: var(--hx-surface); }
.hx-tl__ev--plan .hx-tl__line, .hx-tl__ev:has(+ .hx-tl__ev--plan) .hx-tl__line { border-left-style: dashed; border-left-color: var(--hx-field); }
.hx-tl__body { grid-column: 3; grid-row: 1; padding-bottom: 30px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hx-tl__ev:last-child .hx-tl__body { padding-bottom: 0; }
.hx-story h3.hx-tl__title { margin: 0; font: 600 21px/1.22 var(--hx-display); letter-spacing: 0; color: var(--hx-head); text-wrap: balance; overflow-wrap: break-word; }
.hx-tl__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--hx-body); overflow-wrap: break-word; }
.hx-tl__src, .hx-story__col a.hx-tl__src { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 700 12px/1.3 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-head);
  text-decoration: underline !important; text-underline-offset: 3px; }
.hx-tl__src:hover, .hx-story__col a.hx-tl__src:hover { color: var(--hx-green); }
.hx-tl__summary { margin: 0; font: italic 400 16px/1.55 var(--hx-sans); color: var(--hx-body); }

/* ---- foot: AI note, topics, share, reactions ---- */
.hx-story__foot { margin-top: 56px; border-top: 1px solid var(--hx-rule); padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 36px 48px; align-items: flex-start; justify-content: space-between; }
.hx-story__foot-main { flex: 999 1 560px; max-width: 700px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.hx-story__foot-side { flex: 1 1 320px; max-width: 484px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hx-story .ai-note {
  margin: 0; padding: 0 0 0 36px; border: 0; position: relative;
  font: 400 15px/1.6 var(--hx-sans); color: var(--hx-body);
}
.hx-story .ai-note::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; background: var(--hx-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hx-story .ai-note b { color: var(--hx-head); }
.hx-story .ai-note a { color: var(--hx-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hx-topics { display: flex; flex-direction: column; gap: 12px; }
.hx-topics__row { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-chiptag {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--hx-field); border-radius: 2px; background: var(--hx-surface);
  font: 600 14px/1.25 var(--hx-sans); color: var(--hx-head);
}
a.hx-chiptag:hover { border-color: var(--hx-green); color: var(--hx-green); background: var(--hx-tint); }
.hx-chiptag--plain { border-color: var(--hx-hair); background: var(--hx-page); font-weight: 400; color: var(--hx-muted); }
.hx-share, .hx-react { margin: 0; padding: 0; border: 0; background: none; display: flex; flex-direction: column; gap: 12px; }
.hx-share__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 8px; }
.hx-share .share-btn.hx-share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-height: 44px; padding: 0 14px;
  box-sizing: border-box; margin: 0; border: 1px solid var(--hx-field); border-radius: 4px; background: var(--hx-surface);
  font: 600 14px/1.2 var(--hx-sans); letter-spacing: 0; text-transform: none; color: var(--hx-head); cursor: pointer; white-space: nowrap;
}
.hx-share .share-btn.hx-share__btn[hidden] { display: none; }
.hx-share .share-btn.hx-share__btn:hover { border-color: var(--hx-green); color: var(--hx-green); background: var(--hx-tint); }
.hx-share .share-btn.hx-share__btn--native { background: var(--hx-inv-bg); border-color: var(--hx-inv-bg); color: var(--hx-inv-fg); }
.hx-share .share-btn.hx-share__btn--native:hover { background: var(--hx-green-fill); border-color: var(--hx-green-fill); color: #FFFFFF; }
.hx-react__row { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-react .react-btn.hx-react__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; min-height: 44px; padding: 0 14px 0 12px; box-sizing: border-box; margin: 0;
  border: 1px solid var(--hx-field); border-radius: 999px; background: var(--hx-surface);
  font: 600 14px/1.2 var(--hx-sans); letter-spacing: 0; text-transform: none; color: var(--hx-head); cursor: pointer;
}
.hx-react .react-icon { color: var(--hx-green); }
.hx-react .react-btn.hx-react__btn:hover { border-color: var(--hx-green); background: var(--hx-tint); }
.hx-react .react-btn.hx-react__btn.is-picked { background: var(--hx-inv-bg); border-color: var(--hx-inv-bg); color: var(--hx-inv-fg); }
.hx-react .react-btn.is-picked .react-icon { color: currentColor; }
.hx-react .react-count:not(:empty) {
  min-width: 20px; padding: 1px 6px; box-sizing: border-box; border-radius: 999px; text-align: center;
  background: var(--hx-well); color: var(--hx-head); font: 700 11.5px/1.4 var(--hx-mono);
}
.hx-react .react-btn.is-picked .react-count:not(:empty) { background: var(--hx-surface); color: var(--hx-head); }
.hx-back { margin: 28px 0 0; }
.hx-back__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px/1.3 var(--hx-sans); color: var(--hx-green); }
.hx-back__link:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---- read next ---- */
.hx-next { padding-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.hx-next a { text-decoration: none; }
.hx-next__head { border-top: 3px double var(--hx-rule); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.hx-next .hx-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx-next__grid { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: stretch; }
.hx-next__feat { flex: 1.2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hx-next__list { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.hx-next__item { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hx-next__list .hx-next__item { padding-bottom: 24px; }
.hx-next__list .hx-next__item + .hx-next__item { padding-top: 22px; border-top: 1px solid var(--hx-hair); }
.hx-next__grid--text .hx-next__item { flex: 1 1 300px; border-top: 1px solid var(--hx-hair); padding-top: 18px; }
.hx-next__fig { display: block; }
.hx-next__img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 2px; background: var(--hx-well); }
.hx-story h3.hx-next__title, .hx-next h3.hx-next__title { margin: 0; font: 600 26px/1.16 var(--hx-display); letter-spacing: 0; color: var(--hx-head); text-wrap: balance; }
.hx-next__title a { color: var(--hx-head); }
.hx-next__title a:hover { color: var(--hx-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hx-next__dek { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hx-body); }

/* ---- solo: one centered reading column ---- */
.hx-story--solo .hx-story__head, .hx-story--solo .hx-story__fig,
.hx-story--solo .hx-story__foot, .hx-story--solo .hx-back { width: 100%; max-width: 700px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.hx-story--solo .hx-story__fig { margin-top: 40px; }
.hx-story--solo .hx-story__foot { margin-top: 56px; }
.hx-story--solo .hx-back { margin-top: 28px; }
.hx-story--solo .hx-story__foot-main, .hx-story--solo .hx-story__foot-side { flex-basis: 100%; max-width: none; }
.hx-story--solo h1.hx-story__title { font-size: clamp(36px, 3.6vw, 52px); }

/* ---- 761 to 1100: the rail drops under the column ---- */
@media (max-width: 1100px) {
  .hx-story__body, .hx-story__body--nofacts, .hx-story__body--norail {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
    grid-template-areas: "facts" "col" "rail"; max-width: 720px; row-gap: 44px;
  }
  .hx-story__body--nofacts { grid-template-areas: "col" "rail"; }
  .hx-story__body--norail { grid-template-areas: "facts" "col"; }
  .hx-story__img { aspect-ratio: 16 / 9; }
  .hx-story__foot-main, .hx-story__foot-side { flex-basis: 100%; max-width: none; }
}

/* ---- phone: 760 and below ---- */
@media (max-width: 760px) {
  .hx-storyband { margin-top: -20px; }
  .hx-story { padding: 20px 0 40px; }
  .hx-story__head { gap: 16px; }
  .hx-beats { gap: 0 10px; font-size: 11.5px; }
  h1.hx-story__title, .hx-story--solo h1.hx-story__title { margin-top: -6px; font-size: 34px; line-height: 1.06; }
  .hx-src { font-size: 12px; gap: 2px 12px; }
  .hx-tldr { margin-top: 4px; padding: 18px; }
  .hx-tldr__text { font-size: 19px; }
  .hx-story__fig, .hx-story--solo .hx-story__fig { margin: 28px calc(-1 * var(--hx-gutter)) 0; width: auto; max-width: none; }
  .hx-story__img, .hx-story__media { border-radius: 0; }
  /* On a phone the photo spans the screen at its own shape, whole, up to a 5:6
     portrait. Thumbnails keep 16:9 so their baked-in black bars stay hidden. */
  .hx-story__img:not(.hx-yt) { aspect-ratio: auto; max-height: 120vw; }
  .hx-story__fig.hx-story__fig--small, .hx-story--solo .hx-story__fig.hx-story__fig--small {
    max-width: calc(var(--hx-nat, 700px) * 1.5); margin-left: auto; margin-right: auto;
  }
  .hx-story__cap { padding: 0 var(--hx-gutter); }
  .hx-story__cap .hx-credit { padding: 0; }
  .hx-play { width: 48px; height: 48px; left: 12px; bottom: 12px; }
  .hx-story__body { margin-top: 32px; row-gap: 40px; }
  .hx-sec { gap: 18px; }
  .hx-sec p, .hx-sec li { font-size: 18px; line-height: 1.65; }
  .hx-case { padding: 16px 16px 18px; }
  .hx-case p, .hx-case li, .hx-corr p { font-size: 17px; }
  .hx-corr { padding: 18px; }
  .hx-kd { grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; }
  .hx-kd__date { font-size: 16.5px; }
  .hx-tl { margin-top: 40px; gap: 22px; }
  .hx-story .hx-tl .hx-sec__title { font-size: 26px; }
  /* on a phone the date moves out of the gutter to sit above the headline */
  .hx-tl__ev { grid-template-columns: 16px minmax(0, 1fr); column-gap: 16px; }
  .hx-tl__mark { grid-column: 1; grid-row: 1 / span 2; }
  .hx-tl__dot { margin-top: 2px; }
  .hx-tl__line { top: 18px; bottom: -2px; }
  .hx-tl__when { grid-column: 2; grid-row: 1; padding: 2px 0 8px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; text-align: left; }
  .hx-tl__body { grid-column: 2; grid-row: 2; padding-bottom: 26px; }
  .hx-story h3.hx-tl__title { font-size: 19px; }
  .hx-tl__text { font-size: 16.5px; }
  .hx-story__foot { margin-top: 44px; gap: 32px; }
  .hx-share__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-next { padding-top: 44px; }
  .hx-next__feat, .hx-next__list, .hx-next__grid--text .hx-next__item { flex-basis: 100%; }
  .hx-next__img { aspect-ratio: 16 / 9; }
  .hx-story h3.hx-next__title, .hx-next h3.hx-next__title { font-size: 22px; }
  .hx-orig { font-size: 15.5px; }
}


/* ============================================================
   6. THE LISTEN PAGE (hx-listen)
   /listen.html and /es/escuchar.html, built by pipeline/audio/site.py
   inside the shared shell. The cover box has fixed dimensions, so a
   missing cover file (public/audio/ is not built locally) cannot
   collapse the layout.
   ============================================================ */
.hx-listen { max-width: 860px; display: flex; flex-direction: column; gap: 40px; }
.hx-listen__head { display: flex; flex-direction: column; gap: 10px; }
h1.hx-listen__title { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.06; }
.hx-listen__tag { margin: 0; font: italic 400 19px/1.4 var(--hx-display); color: var(--hx-muted); }
.hx-listen__other { margin: 0; }
.hx-listen__other a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 15px/1.2 var(--hx-sans); color: var(--hx-green); text-decoration: underline; text-underline-offset: 3px;
}
.hx-listen__hero {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start;
  padding: 28px; background: var(--hx-surface); border: 1px solid var(--hx-hair);
  border-top: 3px solid var(--hx-rule); border-radius: 4px;
}
.hx-listen__cover {
  display: block; width: 180px; height: 180px; flex-shrink: 0; object-fit: cover;
  border-radius: 4px; background: var(--hx-well); border: 1px solid var(--hx-hair); box-sizing: border-box;
  color: transparent;   /* no alt-text box while the file is missing */
}
.hx-listen__latest { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hx-listen__latest .hx-label { color: var(--hx-green); }
h3.hx-listen__eptitle { margin: 4px 0 0; font: 600 24px/1.2 var(--hx-display); letter-spacing: -0.01em; color: var(--hx-head); text-wrap: balance; }
.hx-listen__ep h3.hx-listen__eptitle { font-size: 21px; }
.hx-listen__player { display: block; width: 100%; height: 48px; margin: 8px 0 4px; }
.hx-listen__desc { margin: 0; font-size: 16px; line-height: 1.55; color: var(--hx-body); }
.hx-listen__subs { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 12px; }
.hx-listen__btn { background: var(--hx-surface); color: var(--hx-head) !important; border: 1px solid var(--hx-field); }
.hx-listen__btn:hover { border-color: var(--hx-green); color: var(--hx-green) !important; background: var(--hx-tint); text-decoration: none; }
.hx-listen__soon { font: 400 12px/1.4 var(--hx-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); }
.hx-listen__eps { display: flex; flex-direction: column; border-top: 3px double var(--hx-rule); padding-top: 16px; }
.hx-listen__list { list-style: none; margin: 8px 0 0; padding: 0; }
.hx-listen__ep { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid var(--hx-hair); }
.hx-listen__ep:first-child { border-top: 0; }
.hx-listen__disc { margin: 0; padding-top: 16px; border-top: 1px solid var(--hx-hair); font-size: 14.5px; font-style: italic; color: var(--hx-muted); }

@media (max-width: 760px) {
  .hx-listen { gap: 32px; }
  h1.hx-listen__title { font-size: 34px; }
  .hx-listen__tag { font-size: 17px; }
  .hx-listen__hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .hx-listen__cover { width: 120px; height: 120px; }
  h3.hx-listen__eptitle { font-size: 22px; }
  .hx-listen__subs .hx-btn { flex: 1 1 140px; }
}
