/* ═══════════════════════════════════════════════════════════════════════════
   gs2.css — Glideslope V2 design system  (see V2/_docs/DESIGN.md)

   1. Fonts (self-hosted)          6. Components
   2. Tokens (light / dark)           buttons · chips · sentiment · kicker ·
   3. Base (only inside body.gs2)     section head · cards · image frame ·
   4. Layout primitives               table · tabs · forms · sparkline ·
   5. Utilities                       heat grid · panel · skeleton · toast
                                   7. Site chrome (header, nav, drawer, footer)

   Every class is prefixed `gs2-` so it can sit on top of the old stylesheets
   without colliding. Base element styles apply only under `body.gs2` (pages
   rebuilt for V2); the chrome and components work on every page.
   Colours: ONLY through the tokens below. Blue = bullish, orange = bearish.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Fonts ──────────────────────────────────────────────────────────── */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/newsreader-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url('fonts/newsreader-latin-var-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/publicsans-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url('fonts/publicsans-latin-var-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibmplexmono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibmplexmono-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibmplexmono-latin-600.woff2') format('woff2'); }

/* ── 2. Tokens ─────────────────────────────────────────────────────────── */
/* Light (default). `.gs2-theme-light` forces light on any element subtree. */
:root, .gs2-theme-light {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F4F2EC;
  --ink: #17181C;
  --ink-2: #3E434C;
  --muted: #5E6470;
  --rule: #E3E0D8;
  --rule-strong: #17181C;
  --accent: #D62828;        /* brand red: kickers, live dots, the swoosh. Not for buttons. */
  --link: #1F5FBF;
  --pos: #1F5FBF;           /* bullish */
  --neg: #B4440E;           /* bearish */
  --neu: #5E6470;
  --pos-bg: #E6EEFA;
  --neg-bg: #F6E9E2;
  /* derived */
  --neu-bg: #EEECE6;
  --on-ink: #FBFAF7;        /* text on an --ink filled surface (primary button) */
  --on-accent: #FFFFFF;     /* text on an --accent fill (5.0:1) */
  --focus: #1F5FBF;
  --hover: rgba(23, 24, 28, .06);
  --overlay: rgba(10, 11, 14, .45);
  --shadow-1: 0 1px 2px rgba(23, 24, 28, .06), 0 1px 1px rgba(23, 24, 28, .04);
  --shadow-2: 0 10px 30px rgba(23, 24, 28, .14), 0 2px 6px rgba(23, 24, 28, .06);
  --skel: #ECE9E1;
  --skel-hi: #F7F5F0;
  --img-ground: #E9E6DE;
  color-scheme: light;
}
/* Dark, following the OS when the page has not chosen (no JS / first paint) … */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #07080A; --surface: #0C0E12; --surface-2: #11141A; --ink: #E9EAEE; --ink-2: #B4BAC5; --muted: #8B929E;
    --rule: #1B2029; --rule-strong: #E9EAEE; --accent: #FF5A4F; --link: #6EA3F5; --pos: #5B9BF0; --neg: #FF7A45;
    --neu: #8B929E; --pos-bg: #0F1D33; --neg-bg: #2A140A;
    --neu-bg: #161A21; --on-ink: #07080A; --on-accent: #07080A; --focus: #6EA3F5; --hover: rgba(233, 234, 238, .07);
    --overlay: rgba(0, 0, 0, .62); --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 14px 40px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
    --skel: #151921; --skel-hi: #1C212B; --img-ground: #12161D;
    color-scheme: dark;
  }
}
/* … and when the header toggle (or the OS via the no-flash snippet) chose dark.
   `.gs2-theme-dark` forces dark on any element subtree (style guide, WIC header). */
:root[data-theme=dark], .gs2-theme-dark {
  --bg: #07080A; --surface: #0C0E12; --surface-2: #11141A; --ink: #E9EAEE; --ink-2: #B4BAC5; --muted: #8B929E;
  --rule: #1B2029; --rule-strong: #E9EAEE; --accent: #FF5A4F; --link: #6EA3F5; --pos: #5B9BF0; --neg: #FF7A45;
  --neu: #8B929E; --pos-bg: #0F1D33; --neg-bg: #2A140A;
  --neu-bg: #161A21; --on-ink: #07080A; --on-accent: #07080A; --focus: #6EA3F5; --hover: rgba(233, 234, 238, .07);
  --overlay: rgba(0, 0, 0, .62); --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 14px 40px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
  --skel: #151921; --skel-hi: #1C212B; --img-ground: #12161D;
  color-scheme: dark;
}
.gs2-theme-light, .gs2-theme-dark { background: var(--bg); color: var(--ink); }

/* Theme-independent tokens */
:root {
  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  /* type scale (rem = 16px) */
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem; --fs-3xl: 2.25rem; --fs-4xl: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  /* spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --radius: 6px; --radius-lg: 10px; --radius-pill: 999px;
  --container: 1240px; --gutter: 16px;
  --tap: 44px;              /* minimum touch target */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-z: 1000;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ── 3. Base (V2 pages only: <body class="gs2">) ───────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body.gs2 {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-md)/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
:where(body.gs2) *, :where(body.gs2) *::before, :where(body.gs2) *::after { box-sizing: border-box; }
:where(body.gs2) :is(h1, h2, h3, h4) { font-family: var(--font-serif); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 var(--sp-3); text-wrap: balance; }
:where(body.gs2) h1 { font-size: var(--fs-4xl); font-weight: 700; }
:where(body.gs2) h2 { font-size: var(--fs-2xl); }
:where(body.gs2) h3 { font-size: var(--fs-xl); }
:where(body.gs2) h4 { font-size: var(--fs-lg); }
:where(body.gs2) p { margin: 0 0 var(--sp-4); }
:where(body.gs2) a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(body.gs2) a:hover { text-decoration-thickness: 2px; }
:where(body.gs2) img, :where(body.gs2) svg { max-width: 100%; }
:where(body.gs2) img { height: auto; }
:where(body.gs2) hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-5) 0; }
:where(body.gs2) :is(code, kbd, samp) { font-family: var(--font-mono); font-size: .9em; }
:where(body.gs2) ::selection { background: var(--pos-bg); color: var(--ink); }
.gs2-prose { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.65; color: var(--ink); max-width: 68ch; }
.gs2-prose p { margin: 0 0 1.1em; }

/* Focus ring: visible on every theme, every page (keyboard only) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* ── 4. Layout primitives ──────────────────────────────────────────────── */
.gs2-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.gs2-container--narrow { max-width: 760px; }
.gs2-container--wide { max-width: 1440px; }
/* auto-fit grid: set --min for the smallest column (default 260px) */
.gs2-grid { display: grid; gap: var(--gap, var(--sp-5)); grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); }
.gs2-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gs2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .gs2-grid--3, .gs2-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gs2-grid--2, .gs2-grid--3, .gs2-grid--4 { grid-template-columns: minmax(0, 1fr); } }
/* main + sidebar (sidebar drops below on narrow screens) */
.gs2-split { display: grid; gap: var(--gap, var(--sp-6)); grid-template-columns: minmax(0, 1fr) minmax(0, var(--aside, 340px)); align-items: start; }
@media (max-width: 960px) { .gs2-split { grid-template-columns: minmax(0, 1fr); } }
.gs2-stack { display: flex; flex-direction: column; gap: var(--gap, var(--sp-4)); }
.gs2-stack > * { margin-block: 0; }
.gs2-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--sp-2)); }
.gs2-row { display: flex; align-items: center; gap: var(--gap, var(--sp-3)); min-width: 0; }
.gs2-spacer { flex: 1 1 auto; }
.gs2-rule { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-5) 0; }
.gs2-rule--strong { border-top: 2px solid var(--rule-strong); }
.gs2-section { margin-block: var(--sp-7); }

/* ── 5. Utilities ──────────────────────────────────────────────────────── */
.gs2-sr, .gs2-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gs2-skip { position: absolute; left: 8px; top: -60px; z-index: 3000; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--radius); font: 600 14px/1 var(--font-sans); text-decoration: none; }
.gs2-skip:focus { top: 8px; }
.gs2-serif { font-family: var(--font-serif); }
.gs2-sans { font-family: var(--font-sans); }
.gs2-mono { font-family: var(--font-mono); }
.gs2-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gs2-muted { color: var(--muted); }
.gs2-ink2 { color: var(--ink-2); }
.gs2-pos { color: var(--pos) !important; } .gs2-neg { color: var(--neg) !important; } .gs2-neu { color: var(--neu) !important; }   /* utilities win over component colours */
.gs2-small { font-size: var(--fs-sm); }
.gs2-xs { font-size: var(--fs-xs); }
.gs2-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs2-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gs2-nowrap { white-space: nowrap; }
.gs2-hide-mobile { } @media (max-width: 899px) { .gs2-hide-mobile { display: none !important; } }
.gs2-hide-desktop { } @media (min-width: 900px) { .gs2-hide-desktop { display: none !important; } }

/* ── 6. Components ─────────────────────────────────────────────────────── */

/* 6.1 Buttons ─ .gs2-btn + --primary | --secondary | --ghost | --icon; size --sm | --lg */
.gs2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: var(--radius);
  font: 600 var(--fs-sm)/1 var(--font-sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  -webkit-tap-highlight-color: transparent; box-sizing: border-box; margin: 0;
}
.gs2-btn:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.gs2-btn svg { width: 18px; height: 18px; flex: none; }
.gs2-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.gs2-btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--on-ink); }
.gs2-btn--secondary { background: var(--surface); border-color: var(--rule-strong); color: var(--ink); }
.gs2-btn--secondary:hover { background: var(--surface-2); }
.gs2-btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.gs2-btn--ghost:hover { background: var(--hover); border-color: transparent; color: var(--ink); }
.gs2-btn--icon { width: var(--tap); padding: 0; background: transparent; border-color: transparent; color: var(--ink-2); }
.gs2-btn--icon:hover { background: var(--hover); border-color: transparent; color: var(--ink); }
.gs2-btn--sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-xs); }
.gs2-btn--icon.gs2-btn--sm { width: 36px; padding: 0; }
.gs2-btn--lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-md); }
.gs2-btn--block { display: flex; width: 100%; }
.gs2-btn[disabled], .gs2-btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; pointer-events: none; }
@media (pointer: coarse) { .gs2-btn--sm { min-height: var(--tap); } .gs2-btn--icon.gs2-btn--sm { width: var(--tap); } }

/* 6.2 Chips & tags ─ .gs2-chip (filter / topic), .gs2-tag (ticker, small mono) */
.gs2-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--surface);
  font: 500 var(--fs-sm)/1 var(--font-sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer;
}
a.gs2-chip:hover, button.gs2-chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.gs2-chip[aria-pressed=true], .gs2-chip[aria-selected=true], .gs2-chip--active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.gs2-chip__count { font: 500 var(--fs-xs)/1 var(--font-mono); color: inherit; opacity: .75; }
@media (pointer: coarse) { .gs2-chip { min-height: 40px; } }
.gs2-tag {
  display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--rule);
  font: 600 11px/1.1 var(--font-mono); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
a.gs2-tag:hover { color: var(--ink); border-color: var(--ink-2); text-decoration: none; }

/* 6.3 Sentiment ─ badge "Bullish +42" and score bar (−100 … +100) */
.gs2-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px;
  font: 600 var(--fs-xs)/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap;
  background: var(--neu-bg); color: var(--neu);
}
.gs2-badge__n { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.gs2-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.gs2-badge--pos { background: var(--pos-bg); color: var(--pos); }
.gs2-badge--neg { background: var(--neg-bg); color: var(--neg); }
.gs2-badge--neu { background: var(--neu-bg); color: var(--neu); }
.gs2-badge--none { background: transparent; color: var(--muted); border: 1px dashed var(--rule); }
.gs2-badge--none::before { display: none; }
.gs2-badge--lg { padding: 6px 10px; font-size: var(--fs-sm); }
.gs2-badge--plain { background: transparent; padding-inline: 0; }
/* Score bar: centre line at 0; fill grows from the centre. Set --l (left %) and --w (width %)
   — gs2_scorebar() in includes/gs2_ui.php computes them. */
.gs2-scorebar { position: relative; display: block; height: 6px; min-width: 60px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.gs2-scorebar::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--muted); opacity: .6; }
.gs2-scorebar__fill { position: absolute; top: 0; bottom: 0; left: var(--l, 50%); width: var(--w, 0%); background: var(--neu); border-radius: 3px; }
.gs2-scorebar--pos .gs2-scorebar__fill { background: var(--pos); }
.gs2-scorebar--neg .gs2-scorebar__fill { background: var(--neg); }
.gs2-scorebar--lg { height: 10px; border-radius: 5px; }
.gs2-score { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.gs2-score .gs2-scorebar { flex: 1 1 80px; }

/* 6.4 Kicker ─ small red label above a headline */
.gs2-kicker { display: inline-block; font: 700 11px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin: 0 0 6px; }
.gs2-kicker--muted { color: var(--muted); }
.gs2-kicker--live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: gs2-blink 1.6s ease-in-out infinite; }
@keyframes gs2-blink { 50% { opacity: .35; } }

/* 6.5 Section header ─ the newspaper rule (heavy rule over a thin one) */
.gs2-sechead { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; border-top: 3px solid var(--rule-strong); padding-top: 8px; margin: 0 0 var(--sp-4); position: relative; }
.gs2-sechead::after { content: ""; position: absolute; left: 0; right: 0; top: 1px; border-top: 1px solid var(--bg); }
.gs2-sechead__title { font: 700 var(--fs-xl)/1.2 var(--font-serif); color: var(--ink); margin: 0; letter-spacing: -.005em; }
.gs2-sechead__sub { font: 400 var(--fs-sm)/1.4 var(--font-sans); color: var(--muted); }
.gs2-sechead__more { margin-left: auto; font: 600 var(--fs-xs)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 8px 0; }
.gs2-sechead__more:hover { text-decoration: underline; }
.gs2-sechead--small .gs2-sechead__title { font: 700 12px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.gs2-sechead--thin { border-top-width: 1px; }

/* 6.6 Image frame ─ fixed aspect ratio, cover-cropped, tinted ground while loading */
.gs2-frame { position: relative; display: block; overflow: hidden; background: var(--img-ground); border-radius: var(--radius); aspect-ratio: 16 / 9; margin: 0; }
.gs2-frame--4x3 { aspect-ratio: 4 / 3; } .gs2-frame--3x2 { aspect-ratio: 3 / 2; } .gs2-frame--1x1 { aspect-ratio: 1 / 1; }
.gs2-frame--21x9 { aspect-ratio: 21 / 9; } .gs2-frame--square { aspect-ratio: 1 / 1; }
.gs2-frame--flat { border-radius: 0; }
.gs2-frame > img, .gs2-frame > picture > img, img.gs2-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
  border-radius: 0; margin: 0; background: var(--img-ground);
}
img.gs2-img--fallback { object-fit: cover; }
.gs2-frame__credit { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 3px; background: rgba(0, 0, 0, .55); color: #fff; font: 500 10px/1.3 var(--font-sans); }

/* 6.7 Story cards ─ .gs2-card + --lead | --medium | --row | --text  (whole card is clickable via the title link) */
.gs2-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--ink); }
.gs2-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs2-card__title { font: 650 var(--fs-lg)/1.25 var(--font-serif); color: var(--ink); margin: 0; letter-spacing: -.005em; text-wrap: pretty; }
.gs2-card__title a { color: inherit; text-decoration: none; }
.gs2-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* stretched link */
.gs2-card:hover .gs2-card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.gs2-card__dek { font: 400 var(--fs-sm)/1.5 var(--font-sans); color: var(--ink-2); margin: 0; }
.gs2-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font: 500 var(--fs-xs)/1.3 var(--font-sans); color: var(--muted); }
.gs2-card__meta .gs2-card__src { font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.gs2-card__meta > * + *:not(.gs2-badge)::before { content: "·"; margin-right: 10px; color: var(--muted); }
.gs2-card__meta .gs2-badge { position: relative; z-index: 2; }
.gs2-card a:not(.gs2-card__title a), .gs2-card button { position: relative; z-index: 2; }   /* secondary actions stay clickable */
.gs2-card .gs2-kicker { margin: 0; }
/* lead: the big image story at the top of a page */
.gs2-card--lead { gap: var(--sp-4); }
.gs2-card--lead .gs2-card__title { font-size: var(--fs-4xl); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; }
.gs2-card--lead .gs2-card__dek { font: 400 var(--fs-lg)/1.5 var(--font-serif); color: var(--ink-2); }
@media (min-width: 900px) {
  .gs2-card--lead-side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-5); align-items: center; }
}
/* medium: image on top, headline below */
.gs2-card--medium .gs2-card__title { font-size: var(--fs-xl); }
/* row: compact list row with a thumbnail on the right */
.gs2-card--row { flex-direction: row; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.gs2-card--row .gs2-card__body { flex: 1 1 auto; }
.gs2-card--row .gs2-frame { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 4px; order: 2; }
.gs2-card--row .gs2-card__title { font-size: var(--fs-md); line-height: 1.3; }
@media (max-width: 480px) { .gs2-card--row .gs2-frame { width: 92px; } }
/* text: headline-only list item (sector lists, “more” lists) */
.gs2-card--text { gap: 4px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.gs2-card--text .gs2-card__title { font-size: var(--fs-md); line-height: 1.3; }
.gs2-list > .gs2-card:last-child { border-bottom: 0; }
.gs2-list--numbered { counter-reset: gs2n; }
.gs2-list--numbered > .gs2-card { padding-left: 34px; }
.gs2-list--numbered > .gs2-card::before { counter-increment: gs2n; content: counter(gs2n, decimal-leading-zero); position: absolute; left: 0; top: var(--sp-3); font: 600 var(--fs-sm)/1.6 var(--font-mono); color: var(--accent); }

/* 6.8 Data table ─ wrap in .gs2-table-wrap for horizontal scroll on phones */
.gs2-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.gs2-table { width: 100%; border-collapse: collapse; font: 400 var(--fs-sm)/1.4 var(--font-sans); color: var(--ink); }
.gs2-table th { text-align: left; font: 600 11px/1.2 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; position: sticky; top: 0; }
.gs2-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.gs2-table tr:last-child td { border-bottom: 0; }
.gs2-table tbody tr:hover td { background: var(--hover); }
.gs2-table .num, .gs2-table td.num, .gs2-table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gs2-table--compact td, .gs2-table--compact th { padding: 6px 10px; }

/* 6.9 Tabs ─ role=tablist; .gs2-tab[aria-selected=true]; gs2.js wires keyboard + panels */
.gs2-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; margin: 0 0 var(--sp-4); }
.gs2-tabs::-webkit-scrollbar { display: none; }
.gs2-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: var(--tap); padding: 0 14px; font: 600 var(--fs-sm)/1 var(--font-sans); color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.gs2-tab:hover { color: var(--ink); }
.gs2-tab[aria-selected=true], .gs2-tab[aria-current=page], .gs2-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.gs2-tabs--pills { border-bottom: 0; gap: 6px; }
.gs2-tabs--pills .gs2-tab { min-height: 36px; border: 1px solid var(--rule); border-radius: var(--radius-pill); margin: 0; }
.gs2-tabs--pills .gs2-tab[aria-selected=true], .gs2-tabs--pills .gs2-tab.is-active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
[role=tabpanel][hidden] { display: none; }

/* 6.10 Forms ─ .gs2-field > label + .gs2-input | .gs2-select | .gs2-textarea ; .gs2-search */
.gs2-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs2-label { font: 600 var(--fs-sm)/1.3 var(--font-sans); color: var(--ink); }
.gs2-help { font: 400 var(--fs-xs)/1.4 var(--font-sans); color: var(--muted); }
.gs2-input, .gs2-select, .gs2-textarea {
  width: 100%; min-height: var(--tap); padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: 400 var(--fs-md)/1.3 var(--font-sans); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.gs2-textarea { padding: 10px 12px; min-height: 110px; line-height: 1.5; resize: vertical; }
.gs2-input::placeholder, .gs2-textarea::placeholder { color: var(--muted); opacity: 1; }
.gs2-input:hover, .gs2-select:hover, .gs2-textarea:hover { border-color: var(--muted); }
.gs2-input:focus, .gs2-select:focus, .gs2-textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.gs2-input[aria-invalid=true] { border-color: var(--neg); }
.gs2-check { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font: 400 var(--fs-sm)/1.3 var(--font-sans); color: var(--ink); cursor: pointer; }
.gs2-check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.gs2-search { position: relative; display: flex; align-items: center; min-width: 0; }
.gs2-search > svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.gs2-search .gs2-input { padding-left: 40px; border-radius: var(--radius-pill); -webkit-appearance: none; appearance: none; }
.gs2-search .gs2-input::-webkit-search-cancel-button { cursor: pointer; }
.gs2-search .gs2-btn { margin-left: 8px; }

/* 6.11 Sparkline ─ gs2_sparkline() prints an inline SVG; stroke follows the tone */
.gs2-spark { display: inline-block; width: var(--w, 96px); height: var(--h, 28px); color: var(--neu); vertical-align: middle; }
.gs2-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gs2-spark--pos { color: var(--pos); } .gs2-spark--neg { color: var(--neg); }
.gs2-spark__line { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gs2-spark__area { fill: currentColor; opacity: .12; }
.gs2-spark__zero { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.gs2-spark__dot { fill: currentColor; }

/* 6.12 Heat grid ─ sector mood tiles. gs2_heat_tile() sets --a (0…1 intensity) and the tone class */
.gs2-heat { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.gs2-heat__tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 76px; padding: 10px 12px;
  border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--tone, var(--neu)) calc(var(--a, 0) * 34%), var(--surface));
}
.gs2-heat__tile--pos { --tone: var(--pos); } .gs2-heat__tile--neg { --tone: var(--neg); } .gs2-heat__tile--neu { --tone: var(--neu); --a: .15; }
.gs2-heat__name { font: 600 var(--fs-sm)/1.2 var(--font-sans); color: var(--ink); }
.gs2-heat__score { font: 600 var(--fs-lg)/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.gs2-heat__meta { font: 500 var(--fs-xs)/1.2 var(--font-sans); color: var(--ink-2); }
a.gs2-heat__tile:hover { border-color: var(--ink); text-decoration: none; }

/* 6.13 Panel / box */
.gs2-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--sp-4); color: var(--ink); }
.gs2-panel__head { display: flex; align-items: center; gap: var(--sp-2); margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-4); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--rule); }
.gs2-panel__title { font: 700 12px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin: 0; }
.gs2-panel--flush { padding: 0; }
.gs2-panel--flush .gs2-panel__head { margin: 0; }
.gs2-box { background: var(--surface-2); border-radius: var(--radius); padding: var(--sp-4); color: var(--ink); }
.gs2-box--pos { background: var(--pos-bg); } .gs2-box--neg { background: var(--neg-bg); }
.gs2-callout { border-left: 3px solid var(--accent); padding: 4px 0 4px var(--sp-4); color: var(--ink-2); }
.gs2-stat { display: flex; flex-direction: column; gap: 4px; }
.gs2-stat__label { font: 600 11px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs2-stat__value { font: 600 var(--fs-2xl)/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.gs2-empty { padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--muted); font: 400 var(--fs-sm)/1.5 var(--font-sans); border: 1px dashed var(--rule); border-radius: var(--radius); }

/* 6.14 Skeleton loaders */
.gs2-skel { display: block; background: var(--skel); border-radius: 4px; position: relative; overflow: hidden; }
.gs2-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--skel-hi), transparent); animation: gs2-shimmer 1.4s infinite; }
@keyframes gs2-shimmer { to { transform: translateX(100%); } }
.gs2-skel--line { height: 12px; margin: 8px 0; }
.gs2-skel--line:last-child { width: 70%; }
.gs2-skel--title { height: 22px; width: 85%; margin: 8px 0 12px; }
.gs2-skel--img { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.gs2-skel--thumb { width: 112px; aspect-ratio: 4 / 3; flex: none; }
.gs2-skel--circle { width: 36px; height: 36px; border-radius: 50%; }

/* 6.15 Toasts ─ GS2.toast('Saved', 'ok' | 'err' | 'info') from gs2.js */
.gs2-toasts { position: fixed; z-index: 2500; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 899px) { .gs2-toasts { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.gs2-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-2); font: 500 var(--fs-sm)/1.35 var(--font-sans); animation: gs2-toast-in .2s var(--ease); max-width: 100%; }
.gs2-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-ink); opacity: .5; flex: none; }
.gs2-toast--ok::before { background: var(--pos-bg); opacity: 1; }
.gs2-toast--err { background: var(--neg); color: var(--on-accent); }
.gs2-toast--err::before { background: currentColor; opacity: .9; }
.gs2-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes gs2-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Menus (dropdowns) — used by the header "More" and account menus; reusable */
.gs2-menu { position: relative; }
.gs2-menu__list {
  position: absolute; z-index: calc(var(--head-z) + 5); top: calc(100% + 6px); right: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.gs2-menu__list[hidden] { display: none; }
.gs2-menu__list--left { right: auto; left: 0; }
.gs2-menu__list li { margin: 0; padding: 0; list-style: none; }
.gs2-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--font-sans); text-decoration: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.gs2-menu__item:hover, .gs2-menu__item:focus-visible { background: var(--hover); color: var(--ink); text-decoration: none; }
.gs2-menu__item[aria-current=page] { font-weight: 700; }
.gs2-menu__item svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.gs2-menu__sep { height: 1px; background: var(--rule); margin: 6px 4px; }
.gs2-menu__note { padding: 8px 12px 6px; font: 500 var(--fs-xs)/1.3 var(--font-sans); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 7. Site chrome ────────────────────────────────────────────────────── */
.gs2-chrome { font-family: var(--font-sans); color: var(--ink); background: var(--bg); position: relative; z-index: var(--head-z); }
:is(.gs2-chrome, .gs2-drawer, .gs2-bnav) *, :is(.gs2-chrome, .gs2-drawer, .gs2-bnav) *::before, :is(.gs2-chrome, .gs2-drawer, .gs2-bnav) *::after { box-sizing: border-box; }
:is(.gs2-chrome, .gs2-drawer, .gs2-bnav) a { text-decoration: none; }
:is(.gs2-chrome, .gs2-drawer, .gs2-bnav) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:is(.gs2-chrome, .gs2-drawer, .gs2-bnav) li { margin: 0; padding: 0; list-style: none; }
:is(.gs2-chrome, .gs2-drawer, .gs2-bnav) p { margin: 0; }
:is(.gs2-chrome, .gs2-drawer) img { border-radius: 0; }
:is(.gs2-chrome, .gs2-drawer, .gs2-bnav) button { font-family: var(--font-sans); }

/* 7.1 Utility bar */
.gs2-util { border-bottom: 1px solid var(--rule); background: var(--bg); font-size: var(--fs-xs); color: var(--ink-2); }
.gs2-util__in { display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; }
.gs2-util__date { font: 500 var(--fs-xs)/1 var(--font-sans); color: var(--ink-2); letter-spacing: .01em; white-space: nowrap; }
.gs2-util__right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
/* market mood pill */
.gs2-mood { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 10px 0 9px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 500 var(--fs-xs)/1 var(--font-sans); white-space: nowrap; text-decoration: none; }
a.gs2-mood:hover { border-color: var(--ink-2); text-decoration: none; color: var(--ink); }
@media (pointer: coarse) { .gs2-mood { position: relative; } .gs2-mood::after { content: ""; position: absolute; inset: -8px -2px; } }  /* 44px hit area */
.gs2-mood__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neu); flex: none; }
.gs2-mood__k { color: var(--muted); }
.gs2-mood__v { font-weight: 700; }
.gs2-mood__n { font: 600 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.gs2-mood--pos .gs2-mood__dot { background: var(--pos); } .gs2-mood--pos .gs2-mood__v, .gs2-mood--pos .gs2-mood__n { color: var(--pos); }
.gs2-mood--neg .gs2-mood__dot { background: var(--neg); } .gs2-mood--neg .gs2-mood__v, .gs2-mood--neg .gs2-mood__n { color: var(--neg); }
.gs2-util .gs2-btn--icon { width: 40px; min-height: 40px; }
.gs2-util .gs2-btn--ghost { min-height: 40px; padding: 0 10px; font-size: var(--fs-xs); }

/* theme toggle (sun shows in dark, moon in light) */
.gs2-theme-toggle .gs2-ico-sun { display: none; }
:root[data-theme=dark] .gs2-theme-toggle .gs2-ico-sun { display: block; }
:root[data-theme=dark] .gs2-theme-toggle .gs2-ico-moon { display: none; }
.gs2-theme-dark .gs2-theme-toggle .gs2-ico-sun { display: block; }
.gs2-theme-dark .gs2-theme-toggle .gs2-ico-moon { display: none; }

/* account button */
.gs2-acct__btn { gap: 8px; }
.gs2-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--on-ink); font: 700 12px/1 var(--font-sans); text-transform: uppercase; flex: none; }

/* Apex Labs app drawer mount (button is drawn by fw-apps.js) */
.gs-apps { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
.gs2-chrome .fwapps-btn { color: var(--ink-2); }
@media (pointer: coarse) { .gs2-chrome .fwapps-btn { width: 44px; height: 44px; } }

/* 7.2 Masthead */
.gs2-mast { background: var(--bg); }
.gs2-mast__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-5); padding-block: 18px 14px; }
.gs2-mast__left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gs2-mast__right { display: flex; justify-content: flex-end; min-width: 0; }
.gs2-mast__right .gs2-search { width: 100%; max-width: 300px; }
.gs2-mast__right .gs2-input { min-height: 40px; font-size: var(--fs-sm); background: var(--surface); }
.gs2-mast__tag { display: block; margin-top: 6px; text-align: center; font: 500 11px/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Wordmark: logo image when it loads, pure-type “Glideslope” + red swoosh when it does not.
   .gs2-wordmark--img is removed by the onerror handler (and never set when no image). */
.gs2-wordmark { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; line-height: 1; }
.gs2-wordmark:hover { text-decoration: none; color: var(--ink); }
.gs2-wordmark__img { display: none; height: 58px; width: auto; max-width: none; }
.gs2-wordmark__img--dark { display: none; }
.gs2-wordmark--img .gs2-wordmark__img--light { display: block; }
:root[data-theme=dark] .gs2-wordmark--img .gs2-wordmark__img--light, .gs2-theme-dark .gs2-wordmark--img .gs2-wordmark__img--light { display: none; }
:root[data-theme=dark] .gs2-wordmark--img .gs2-wordmark__img--dark, .gs2-theme-dark .gs2-wordmark--img .gs2-wordmark__img--dark { display: block; }
.gs2-wordmark--img .gs2-wordmark__type { display: none; }
.gs2-wordmark__type { position: relative; display: inline-block; font: 700 46px/1 var(--font-serif); letter-spacing: -.025em; color: var(--ink); padding-bottom: 8px; font-variation-settings: "opsz" 72; }
.gs2-wordmark__swoosh { position: absolute; left: 4%; bottom: -2px; width: 46%; height: 12px; color: var(--accent); overflow: visible; }
.gs2-wordmark--sm .gs2-wordmark__type { font-size: 26px; padding-bottom: 5px; }
.gs2-wordmark--sm .gs2-wordmark__swoosh { height: 8px; bottom: -2px; }
.gs2-wordmark--sm .gs2-wordmark__img { height: 30px; }

/* 7.3 Section nav (newspaper double rule) */
.gs2-secnav { background: var(--bg); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); box-shadow: inset 0 3px 0 -1px var(--bg), inset 0 4px 0 -1px var(--rule-strong); }
.gs2-secnav__in { display: flex; align-items: stretch; justify-content: center; gap: 2px; padding-top: 3px; }
.gs2-secnav__list { display: flex; align-items: stretch; flex-wrap: nowrap; }
.gs2-secnav__link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; font: 600 var(--fs-sm)/1 var(--font-sans); letter-spacing: .01em; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.gs2-secnav__link:hover { color: var(--ink); text-decoration: none; }
.gs2-secnav__link[aria-current=page] { color: var(--ink); border-bottom-color: var(--accent); }
.gs2-secnav__link svg { width: 12px; height: 12px; }
.gs2-secnav .gs2-menu__list { right: auto; left: 0; }

/* 7.4 Pulse ticker row */
.gs2-pulsebar { border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.gs2-pulsebar__in { display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; }
.gs2-pulsebar__label { display: inline-flex; align-items: center; gap: 7px; flex: none; font: 700 11px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.gs2-pulsebar__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: gs2-blink 1.8s ease-in-out infinite; }
.gs2-pulsebar__list { display: flex; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.gs2-pulsebar__list::-webkit-scrollbar { display: none; }
.gs2-pulsebar__item { display: inline-flex; align-items: center; gap: 8px; flex: none; max-width: 380px; min-height: 40px; padding: 0 14px; border-left: 1px solid var(--rule); color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--font-serif); text-decoration: none; }
.gs2-pulsebar__item:first-child { border-left: 0; padding-left: 4px; }
.gs2-pulsebar__item:hover { text-decoration: underline; color: var(--ink); }
.gs2-pulsebar__n { font: 600 11px/1 var(--font-mono); color: var(--muted); }
.gs2-pulsebar__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs2-pulsebar__brk { font: 700 9px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 3px 5px; border-radius: 3px; }
.gs2-pulsebar__item .gs2-badge { padding: 3px 6px; font-size: 10px; }
.gs2-pulsebar__all { flex: none; font: 600 var(--fs-xs)/1 var(--font-sans); color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; }
.gs2-pulsebar__all:hover { text-decoration: underline; }

/* 7.4b Breaking ticker (keywords_widget_tickertape.php — articles from the last 90 min).
   The old version was a fixed black bar; inside the chrome it is a calm row. */
.gs2-chrome .gs3-ticker { position: static; display: flex; align-items: stretch; height: 36px; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--rule); z-index: auto; }
.gs2-chrome .gs3-ticker__label { display: flex; align-items: center; gap: 7px; padding: 0 12px 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); flex: none; background: none; border: 0; color: var(--accent); font: 700 11px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.gs2-chrome .gs3-ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: gs2-blink 1.4s ease-in-out infinite; }
.gs2-chrome .gs3-ticker__scroll { flex: 1; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.gs2-chrome .gs3-ticker__track { display: flex; align-items: center; white-space: nowrap; width: max-content; animation: gs3-scroll 270s linear infinite; }
.gs2-chrome .gs3-ticker__track:hover, .gs2-chrome .gs3-ticker__track:focus-within { animation-play-state: paused; }
@keyframes gs3-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.gs2-chrome .gs3-ticker__item { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; color: var(--ink); text-decoration: none; background: none; }
.gs2-chrome .gs3-ticker__item:hover { background: var(--hover); }
.gs2-chrome .gs3-ticker__src { font: 600 10px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs2-chrome .gs3-ticker__ttl { font: 500 13px/1 var(--font-serif); color: var(--ink); }
.gs2-chrome .gs3-ticker__snt { font: 600 10px/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; }
.gs2-chrome .gs3-ticker__sep { display: none; }
@media (max-width: 899px) { .gs2-chrome .gs3-ticker__label { padding-left: 12px; } }

/* Old sentiment colour names, re-pointed so every page follows blue = bullish, orange = bearish */
:root {
  --sentiment-strong-bullish: var(--pos); --sentiment-bullish: var(--pos); --sentiment-optimistic: var(--pos);
  --sentiment-neutral: var(--neu);
  --sentiment-pessimistic: var(--neg); --sentiment-bearish: var(--neg); --sentiment-strong-bearish: var(--neg);
}

/* 7.5 Mobile top bar, bottom nav and drawer (< 900px) */
.gs2-mbar { display: none; }
.gs2-bnav { display: none; }
@media (max-width: 899px) {
  .gs2-util, .gs2-mast, .gs2-secnav { display: none; }
  .gs2-mbar { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 6px 0 4px; background: var(--bg); border-bottom: 1px solid var(--rule-strong); position: sticky; top: 0; z-index: var(--head-z); }
  .gs2-mbar .gs2-wordmark { margin-left: 2px; }
  .gs2-mbar__right { margin-left: auto; display: flex; align-items: center; gap: 0; }
  .gs2-mbar .gs2-mood { min-height: 28px; padding: 0 8px; gap: 6px; }
  .gs2-mbar .gs2-mood__k { display: none; }
  .gs2-mbar .gs2-wordmark { min-height: var(--tap); justify-content: center; }
  .gs2-pulsebar__in { padding-inline: 12px; }
  .gs2-pulsebar__all { display: none; }
  .gs2-pulsebar__item { max-width: 78vw; }
  .gs2-bnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--head-z);
    background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    padding-bottom: env(safe-area-inset-bottom); font-family: var(--font-sans);
  }
  .gs2-bnav__item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 0; background: none; border: 0; color: var(--muted); text-decoration: none; font: 600 10px/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .gs2-bnav__item svg { width: 22px; height: 22px; display: block; }
  .gs2-bnav__item:hover, .gs2-bnav__item[aria-current=page] { color: var(--ink); text-decoration: none; }
  .gs2-bnav__item[aria-current=page] svg { color: var(--accent); }
  body.gs2-has-bnav { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}
.gs2-drawer-backdrop { position: fixed; inset: 0; z-index: calc(var(--head-z) + 10); background: var(--overlay); opacity: 0; transition: opacity .2s var(--ease); }
.gs2-drawer-backdrop[hidden] { display: none; }
.gs2-drawer-backdrop.is-open { opacity: 1; }
.gs2-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: calc(var(--head-z) + 11); width: min(340px, 88vw);
  display: flex; flex-direction: column; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-2);
  transform: translateX(-102%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s linear .25s;
  font-family: var(--font-sans); overflow-y: auto; overscroll-behavior: contain;
}
.gs2-drawer.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
.gs2-drawer__head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.gs2-drawer__head .gs2-btn--icon { margin-left: auto; }
.gs2-drawer__body { padding: 12px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.gs2-drawer .gs2-drawer__sub { font: 700 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.gs2-drawer__list { display: flex; flex-direction: column; }
.gs2-drawer__link { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 8px; border-radius: var(--radius); color: var(--ink); font: 500 var(--fs-md)/1.2 var(--font-sans); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.gs2-drawer__link:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.gs2-drawer__link[aria-current=page] { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.gs2-drawer__link svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.gs2-drawer .gs2-mood { align-self: flex-start; }
body.gs2-lock { overflow: hidden; }

/* 7.6 Footer */
.gs2-foot { margin-top: var(--sp-8); border-top: 3px solid var(--rule-strong); background: var(--bg); color: var(--ink-2); font: 400 var(--fs-sm)/1.6 var(--font-sans); position: relative; }
.gs2-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; border-top: 1px solid var(--bg); }
.gs2-foot *, .gs2-foot *::before, .gs2-foot *::after { box-sizing: border-box; }
.gs2-foot__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); padding-block: var(--sp-6) var(--sp-7); }
.gs2-foot h2 { font: 700 11px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.gs2-foot ul { list-style: none; margin: 0; padding: 0; }
.gs2-foot li { margin: 0; }
.gs2-foot a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.gs2-foot a:hover { text-decoration: underline; }
.gs2-foot__about p { margin: 0 0 10px; }
.gs2-foot__fine { font-size: var(--fs-xs); line-height: 1.6; color: var(--muted); }
.gs2-foot__social { display: flex; gap: 8px; margin: 2px 0 10px; }
.gs2-foot__social a { width: var(--tap); height: var(--tap); justify-content: center; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.gs2-foot__social a:hover { border-color: var(--ink); }
.gs2-foot__social svg { width: 18px; height: 18px; }
.gs2-foot__base { border-top: 1px solid var(--rule); padding-block: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-xs); color: var(--muted); }
.gs2-foot__base a { min-height: 0; color: var(--muted); }
@media (max-width: 899px) {
  .gs2-foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); }
  .gs2-foot__about { grid-column: 1 / -1; }
  .gs2-foot a { min-height: var(--tap); }
}

/* World in Conflict keeps its own stylesheet; only drop the old fixed-ticker push-down (the ticker now sits in the chrome) */
body.gs2-wic { padding-top: 0 !important; }

/* Old full-screen / focus modes hide the chrome by these names */
body.wic-fs .gs2-chrome, body.wic-fs .gs2-foot, body.wic-fs .gs2-bnav,
body.gs-lists-focused .gs2-chrome, body.gs-lists-focused .gs2-bnav { display: none !important; }

/* ── Motion ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .gs2-skel::after { display: none; }
}
/* While the theme switches, suppress transitions so nothing animates colour */
:root.gs2-theming *, :root.gs2-theming *::before, :root.gs2-theming *::after { transition: none !important; }

@media print {
  .gs2-chrome, .gs2-bnav, .gs2-drawer, .gs2-foot, .gs2-toasts { display: none !important; }
  body.gs2 { background: #fff; color: #000; }
}
