/* ==========================================================================
   RIDHU CMS — public site design system (assets/css/site.css)

   Plain minimalism, editorial layout. White surfaces, ink type, hairline
   rules, whitespace. No shadows, gradients, blur or decorative radii.
   One accent (--brand, set in Admin → Settings → Branding), red only for
   "Breaking"/destructive. Every size, space and colour below comes from
   the tokens in §1 — add a token rather than a one-off value.

   §1  Tokens                    §8   Home
   §2  Base: document & text     §9   Listings (category, search, tag)
   §3  Base: lists, tables,      §10  Article
       media, interactive        §11  Sidebar widgets, pager, share
   §4  Prose (rich text)         §12  Comments, notices, push prompt
   §5  Forms & buttons           §13  Pages: static, author, team, stories
   §6  Icons & primitives        §14  Footer, drawer, bottom nav
   §7  Header & navigation       §15  Responsive · reduced motion · print
                                 §18  Typography roles (editorial / interface)
                                 §19  Colour roles (Branding colours)

   Breakpoints (CSS variables can't be used inside @media, keep in sync with
   assets/js/main.js): xl ≤1200 · lg ≤1024 · md ≤768 (phone/tablet-portrait;
   nav becomes a scroll strip) · sm ≤480.
   ========================================================================== */

/* ==========================================================================
   §1  TOKENS
   ========================================================================== */
:root {
  /* --- colour --- */
  /* Branding colours (Admin → Settings → Branding, written by App\Theme as :root variables; these are the fallbacks).
     Five independent roles: none is derived from another. Components use the role variables (§19). */
  --color-primary: #1a3e8c;           /* accents, links, tags, category labels */
  --color-primary-dark: #152f69;
  --color-primary-soft: #e3e7ef;
  --color-button: #111111;            /* every button */
  --color-button-text: #ffffff;       /* text on a button (chosen for contrast) */
  --color-button-hover: #2e2e2e;
  --color-button-active: #454545;
  --color-button-ink: #111111;        /* the button colour as text / border on white (outline buttons), ≥ 4.5:1 */
  --color-icon: #2b2b2b;              /* social, share, contact and small icons */
  --color-heading: #111111;           /* headings and news titles */
  --color-footer: #ffffff;            /* footer background … */
  --color-footer-text: #555555;       /* … and the text colours that stay readable on it */
  --color-footer-strong: #111111;
  --color-footer-accent: #1a3e8c;
  --color-footer-line: #e5e5e5;
  --color-footer-line-2: #cfcfcf;
  --brand: var(--color-primary);      /* older name of the primary colour, used across this file */
  --red: #c8102e;                     /* breaking, destructive */
  --green: #067647;                   /* success */
  --amber: #b54708;                   /* warning */
  --ink: #111111;                     /* primary text, strong rules */
  --heading: var(--color-heading);
  --ink-2: #2b2b2b;                   /* body text */
  --muted: #555555;                   /* secondary text (7.5:1) */
  --faint: #6b6b6b;                   /* meta, captions (5.3:1) */
  --line: #e5e5e5;                    /* hairline separators */
  --line-2: #cfcfcf;                  /* decorative rules and card borders (not for form fields) */
  --control-border: #8a8a8a;          /* form-field borders: 3.4:1 on white (WCAG 1.4.11 needs 3:1) */
  --fill: #f5f5f5;                    /* image placeholder, code, hover row */
  --mark: #fff3b0;                    /* <mark> highlight */
  --bg: #ffffff;
  --link-visited: color-mix(in srgb, var(--brand) 62%, #4a1f7a);

  /* --- type ---
     Two roles (§18 TYPOGRAPHY): the interface font for the logo, menus, labels, buttons, dates, forms and footer, and
     the editorial font for headlines and article text. Admin → Appearance → Typography can choose other fonts; the
     Google Fonts request is built by App\Appearance::fontLink(). Each stack starts with a metric-matched local
     fallback (@font-face below) so text keeps its size and line breaks while the web font loads. */
  --font-ui: "Montserrat", "Montserrat Fallback", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-editorial: "Faustina", "Faustina Fallback", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --font: var(--font-ui);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* text scale (rem = 16px) */
  --fs-2xs: 0.6875rem;   /* 11 · eyebrow labels, ad labels (uppercase only) */
  --fs-xs:  0.75rem;     /* 12 · meta, timestamps, help text */
  --fs-sm:  0.8125rem;   /* 13 · secondary UI, breadcrumbs, captions */
  --fs-md:  0.875rem;    /* 14 · compact headlines, nav, buttons */
  --fs-base: 0.9375rem;  /* 15 · UI body, small headlines, inputs */
  --fs-lg:  1rem;        /* 16 · standfirst, footer about */
  --fs-xl:  1.125rem;    /* 18 · lede */
  --fs-prose: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);       /* 17→18 article text */
  /* heading scale (fluid) */
  --fs-h1: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);            /* 28→36 */
  --fs-h2: clamp(1.375rem, 1.15rem + 0.75vw, 1.75rem);         /* 22→28 */
  --fs-h3: clamp(1.1875rem, 1.07rem + 0.4vw, 1.375rem);        /* 19→22 */
  --fs-h4: 1.125rem;                                           /* 18 */
  --fs-h5: 1rem;                                               /* 16 */
  --fs-h6: 0.8125rem;                                          /* 13, caps */

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800;
  --fw-headline: 700;  /* editorial headlines (Appearance → Headline weight) */
  --lh-tight: 1.2;   /* display, h1 */
  --lh-snug: 1.3;    /* headings, headlines */
  --lh-normal: 1.5;  /* UI text */
  --lh-relaxed: 1.7; /* long-form reading */
  --ls-tight: -0.02em; --ls-snug: -0.01em; --ls-normal: 0; --ls-caps: 0.06em;

  /* --- spacing (4px base) --- */
  --sp-px: 2px;   /* micro offsets only */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px;

  /* --- borders & radius --- */
  --bw: 1px;            /* hairline */
  --bw-2: 2px;          /* section rules, nav underline */
  --bw-3: 3px;          /* active indicator, accents */
  --radius: 0;          /* everything is square … */
  --radius-round: 50%;  /* … except avatars */

  /* --- layout --- */
  --wrap: 1200px;       /* page container */
  --prose-w: 720px;     /* reading measure (~70 characters) */
  --pad: var(--sp-4);   /* container side padding */
  --gap: var(--sp-7);   /* column gap */
  --side-w: 300px;      /* right rail (IAB 300×250) */
  --nav-h: 48px;

  /* --- component dimensions --- */
  --ctl-h: 40px;        /* inputs, buttons */
  --ctl-h-sm: 32px;     /* compact buttons, share, pager */
  --ctl-px: var(--sp-3);/* input inner padding */
  --btn-px: var(--sp-4);
  --tap: 40px;          /* icon buttons (≥ WCAG 2.2 24px target) */
  --thumb-sm: 112px;    /* list thumbnail (phone) */
  --thumb-md: 168px;    /* list thumbnail (desktop rows) */
  --thumb-lg: 240px;    /* listing thumbnail */
  --avatar-sm: 36px; --avatar-md: 56px; --avatar-lg: 96px;

  /* --- icons --- */
  --icon-xs: 14px;      /* compact indicators */
  --icon-sm: 16px;      /* inline, buttons */
  --icon-md: 18px;      /* standard UI */
  --icon-lg: 20px;      /* navigation */
  --icon-xl: 24px;      /* primary actions */

  --focus: 2px solid var(--brand);
  --dur: 0.12s;         /* colour transitions only */
}

/* Metric-matched local fallbacks (size and vertical metrics of Montserrat / Faustina applied to Arial / Times): while
   the web fonts load, text already takes the same space, so headlines and menus do not reflow when they arrive. */
@font-face { font-family: "Montserrat Fallback"; font-weight: 100 500; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 112%; ascent-override: 86.4%; descent-override: 22.4%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arimo Bold");
  size-adjust: 109.2%; ascent-override: 88.6%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Faustina Fallback"; font-weight: 100 500; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"), local("Liberation Serif"), local("Tinos");
  size-adjust: 101.4%; ascent-override: 102.9%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Faustina Fallback"; font-weight: 600 900; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Times Bold"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 100.3%; ascent-override: 104%; descent-override: 21.6%; line-gap-override: 0%; }

/* ==========================================================================
   §2  BASE — document & text
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--sp-4)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main, header, footer, nav, section, article, aside, figure, details, summary { display: block; }
/* A closed <dialog> must stay hidden. (It used to be in the reset above, which made every closed dialog render as page content.) */
dialog:not([open]) { display: none; }
main { min-height: 50vh; }

/* headings: type only; spacing is set by the container (components / §4 prose) */
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-weight: var(--fw-bold); line-height: var(--lh-snug); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-snug); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-snug); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-h6); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; }

p, blockquote, figure, pre, address, dl, dd { margin: 0; }
small { font-size: var(--fs-sm); }
strong, b { font-weight: var(--fw-semibold); }
em, i, cite, var, dfn { font-style: italic; }
u { text-decoration: underline; text-underline-offset: 0.18em; }
s, del { text-decoration: line-through; color: var(--muted); }
ins { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 0.18em; }
mark { background: var(--mark); color: var(--ink); padding: 0 var(--sp-px); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.18em; cursor: help; }
sub, sup { position: relative; font-size: 0.75em; line-height: 0; vertical-align: baseline; }
sup { top: -0.5em; } sub { bottom: -0.25em; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; }
address { font-style: normal; }
time { font-variant-numeric: tabular-nums; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.875em; }
code, samp { padding: 0.1em 0.3em; background: var(--fill); }
kbd { padding: 0.1em 0.4em; border: var(--bw) solid var(--line-2); border-bottom-width: var(--bw-2); font-size: 0.8em; }
pre { overflow-x: auto; padding: var(--sp-4); background: var(--fill); border-left: var(--bw-3) solid var(--line-2); line-height: var(--lh-normal); tab-size: 2; }
pre code { padding: 0; background: none; font-size: inherit; }
hr { height: 0; margin: var(--sp-6) 0; border: 0; border-top: var(--bw) solid var(--line); }

/* links: plain text by default; underline on hover; prose links are underlined (§4) */
a { color: inherit; text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--brand); }
a:active { color: var(--ink); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }

/* ==========================================================================
   §3  BASE — lists, tables, media, interactive
   ========================================================================== */
/* lists: classless lists keep native markers; classed lists are components */
ul, ol { margin: 0; padding-left: 1.25em; }
li > ul, li > ol { margin-top: var(--sp-1); }
li + li { margin-top: var(--sp-1); }
li::marker { color: var(--faint); }
ul[class], ol[class] { padding: 0; list-style: none; }
ul[class] > li + li, ol[class] > li + li { margin-top: 0; }
dt { font-weight: var(--fw-semibold); color: var(--ink); }
dd { margin: 0 0 var(--sp-3); color: var(--ink-2); }
dd + dt { margin-top: var(--sp-3); }

/* tables: horizontal rules only */
table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
caption { padding-bottom: var(--sp-2); caption-side: top; text-align: left; font-size: var(--fs-sm); color: var(--faint); }
th, td { padding: var(--sp-3) var(--sp-4) var(--sp-3) 0; border-bottom: var(--bw) solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
thead th { border-bottom: var(--bw-2) solid var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink); vertical-align: bottom; }
tbody th { font-weight: var(--fw-semibold); }
tfoot td, tfoot th { border-bottom: 0; border-top: var(--bw-2) solid var(--ink); font-weight: var(--fw-semibold); }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* media: never wider than the container, no layout shift (width/height attrs + aspect boxes) */
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
img { border: 0; }
img[alt] { color: var(--faint); font-size: var(--fs-xs); }   /* broken-image alt text */
audio { width: 100%; }
iframe { max-width: 100%; border: 0; }
figure > img, figure > picture img { width: 100%; }
figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--faint); }

/* interactive */
button { cursor: pointer; }
button, input, select, textarea, optgroup { margin: 0; font: inherit; color: inherit; }
[disabled], [aria-disabled="true"] { cursor: not-allowed; }
details { border-top: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); }
details + details { border-top: 0; }
summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--tap); padding: var(--sp-2) 0; font-weight: var(--fw-semibold); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: var(--sp-2); height: var(--sp-2); margin-right: var(--sp-1); border-right: var(--bw-2) solid var(--faint); border-bottom: var(--bw-2) solid var(--faint); transform: translateY(-25%) rotate(45deg); }
details[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
details > :not(summary) { padding-bottom: var(--sp-4); }
dialog { max-width: min(560px, calc(100vw - 2 * var(--pad))); padding: var(--sp-6); border: var(--bw) solid var(--ink); background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(17, 17, 17, 0.4); }
progress, meter { width: 100%; height: var(--sp-2); accent-color: var(--ink); vertical-align: middle; }
output { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }

/* accessibility helpers */
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 1000; padding: var(--sp-2) var(--sp-4); background: var(--ink); color: #fff; font-weight: var(--fw-semibold); }
.skip-link:focus { top: var(--sp-2); color: #fff; }

/* ==========================================================================
   §4  PROSE — editor content (article body, About/Policy/Contact pages)
   Vertical rhythm lives here, so CMS HTML of any shape stays consistent.
   ========================================================================== */
.prose, .dyn-article-body, .page-body { font-size: var(--fs-prose); line-height: var(--lh-relaxed); color: var(--ink-2); overflow-wrap: break-word; }
:is(.prose, .dyn-article-body, .page-body) > * + * { margin-top: 1.1em; }
:is(.prose, .dyn-article-body, .page-body) :is(h2, h3, h4, h5, h6) { margin-top: 1.8em; margin-bottom: 0; color: var(--heading); }
:is(.prose, .dyn-article-body, .page-body) :is(h2, h3, h4, h5, h6) + * { margin-top: 0.5em; }
:is(.prose, .dyn-article-body, .page-body) > :first-child { margin-top: 0; }
:is(.prose, .dyn-article-body, .page-body) h2 { font-size: var(--fs-h2); }
:is(.prose, .dyn-article-body, .page-body) h3 { font-size: var(--fs-h3); }
:is(.prose, .dyn-article-body, .page-body) h4 { font-size: var(--fs-h4); }
:is(.prose, .dyn-article-body, .page-body) h5 { font-size: var(--fs-h5); }
:is(.prose, .dyn-article-body, .page-body) h6 { font-size: var(--fs-h6); }
:is(.prose, .dyn-article-body, .page-body) a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:is(.prose, .dyn-article-body, .page-body) a:visited { color: var(--link-visited); }
:is(.prose, .dyn-article-body, .page-body) a:hover { text-decoration-thickness: 2px; }
:is(.prose, .dyn-article-body, .page-body) :is(ul, ol):not([class]) { padding-left: 1.4em; }
:is(.prose, .dyn-article-body, .page-body) li + li { margin-top: 0.4em; }
:is(.prose, .dyn-article-body, .page-body) li > :is(ul, ol) { margin-top: 0.4em; }
:is(.prose, .dyn-article-body, .page-body) ul ul { list-style-type: circle; }
:is(.prose, .dyn-article-body, .page-body) ol ol { list-style-type: lower-alpha; }
:is(.prose, .dyn-article-body, .page-body) dl { display: grid; grid-template-columns: minmax(0, max-content) 1fr; gap: var(--sp-2) var(--sp-6); }
:is(.prose, .dyn-article-body, .page-body) dd { margin: 0; }
:is(.prose, .dyn-article-body, .page-body) dd + dt { margin-top: 0; }
:is(.prose, .dyn-article-body, .page-body) blockquote { padding-left: var(--sp-5); border-left: var(--bw-3) solid var(--ink); font-size: var(--fs-xl); line-height: var(--lh-normal); color: var(--ink); }
:is(.prose, .dyn-article-body, .page-body) blockquote p + p { margin-top: 0.6em; }
:is(.prose, .dyn-article-body, .page-body) blockquote cite { display: block; margin-top: var(--sp-2); font-size: var(--fs-md); font-style: normal; color: var(--faint); }
:is(.prose, .dyn-article-body, .page-body) blockquote cite::before { content: "\2014\00a0"; }
:is(.prose, .dyn-article-body, .page-body) table { font-size: var(--fs-md); line-height: var(--lh-normal); display: block; overflow-x: auto; }
:is(.prose, .dyn-article-body, .page-body) hr { margin: 2em 0; }
:is(.prose, .dyn-article-body, .page-body) img { height: auto; }
:is(.prose, .dyn-article-body, .page-body) :is(figure, .raw-html-embed) { margin-top: 1.6em; margin-bottom: 1.6em; }
:is(.prose, .dyn-article-body, .page-body)::after { content: ""; display: block; clear: both; }

/* CKEditor image / embed output */
.dyn-article-body figure.image { display: table; margin-inline: auto; }
.dyn-article-body figure.image img { display: block; }
.dyn-article-body figure.image-style-side, .dyn-article-body figure.image-style-align-right { float: right; max-width: 46%; margin: var(--sp-1) 0 var(--sp-4) var(--sp-6); }
.dyn-article-body figure.image-style-align-left { float: left; max-width: 46%; margin: var(--sp-1) var(--sp-6) var(--sp-4) 0; }
.dyn-article-body figure.image-style-block, .dyn-article-body figure.image-style-align-center { margin-inline: auto; }
.dyn-article-body .image_resized { max-width: 100%; }
.dyn-article-body .image_resized img { width: 100%; }
.dyn-article-body .raw-html-embed, .dyn-article-body figure.media { max-width: var(--prose-w); margin-inline: auto; text-align: center; font-size: var(--fs-base); }
.dyn-article-body iframe:is([src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="youtu.be"], [src*="player.vimeo.com"], [src*="dailymotion.com"]) { width: 100%; max-width: var(--prose-w); height: auto; aspect-ratio: 16 / 9; }
.dyn-article-body iframe[src*="instagram.com"] { width: 100%; max-width: 400px; }
.dyn-article-body :is(.twitter-tweet, .instagram-media, .tiktok-embed) { margin-inline: auto !important; }   /* embeds set inline margins */

/* ==========================================================================
   §5  FORMS & BUTTONS
   ========================================================================== */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; align-content: start; gap: var(--sp-1); min-width: 0; }
.field-label, label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink); }
.req { color: var(--red); font-weight: var(--fw-semibold); }
.field-help { font-size: var(--fs-xs); line-height: var(--lh-normal); color: var(--faint); }
.field-error { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); }
fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-6); min-width: 0; margin: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); border: var(--bw) solid var(--line); }
fieldset > legend { flex-basis: 100%; }
legend { padding: 0 var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

/* text-like controls */
.input,
input:not([type]), input:is([type="text"], [type="email"], [type="password"], [type="search"], [type="number"], [type="tel"], [type="url"], [type="date"], [type="datetime-local"], [type="time"], [type="month"]),
select, textarea {
  display: block; width: 100%; height: var(--ctl-h); padding: 0 var(--ctl-px);
  background: var(--bg); border: var(--bw) solid var(--control-border); border-radius: var(--radius);
  font-size: var(--fs-base); line-height: var(--lh-normal); color: var(--ink);
  appearance: none; transition: border-color var(--dur);
}
textarea, textarea.input { height: auto; min-height: calc(var(--ctl-h) * 3); padding: var(--sp-2) var(--ctl-px); resize: vertical; }
select { padding-right: calc(var(--ctl-px) + var(--icon-sm) + var(--sp-2)); cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right var(--ctl-px) center / var(--icon-sm); }
select[multiple] { height: auto; padding: var(--sp-1); background-image: none; }
optgroup { font-weight: var(--fw-semibold); }
option { font-weight: var(--fw-regular); }
input[type="search"]::-webkit-search-decoration { appearance: none; }
input[type="number"] { font-variant-numeric: tabular-nums; }
::placeholder { color: var(--faint); opacity: 1; }
:is(.input, input, select, textarea):hover:not(:disabled) { border-color: var(--faint); }
:is(.input, input, select, textarea):focus { border-color: var(--brand); outline: var(--focus); outline-offset: 1px; }
:is(.input, input, select, textarea):disabled { background: var(--fill); color: var(--faint); }
/* validation: server-side (aria-invalid) and after the user has interacted (:user-invalid) */
:is(.input, input, select, textarea):is([aria-invalid="true"], :user-invalid) { border-color: var(--red); }
:is(.input, input, select, textarea):is([aria-invalid="true"], :user-invalid):focus { outline-color: color-mix(in srgb, var(--red) 25%, transparent); }
.is-valid { border-color: var(--green) !important; }   /* opt-in success state */

/* file input */
input[type="file"] { display: block; width: 100%; font-size: var(--fs-md); color: var(--muted); }
input[type="file"]::file-selector-button { height: var(--ctl-h-sm); margin-right: var(--sp-3); padding: 0 var(--sp-3); border: var(--bw) solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }

/* checkbox · radio · switch */
input:is([type="checkbox"], [type="radio"]) { width: var(--icon-sm); height: var(--icon-sm); margin: 0; accent-color: var(--ink); vertical-align: middle; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--ctl-h-sm); font-size: var(--fs-base); font-weight: var(--fw-regular); cursor: pointer; }
input.switch, input[role="switch"] {
  appearance: none; position: relative; flex: none; width: 34px; height: var(--sp-5); padding: 0;
  border: var(--bw) solid var(--line-2); background: var(--fill); cursor: pointer; transition: background-color var(--dur), border-color var(--dur);
}
input.switch::before, input[role="switch"]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--faint); }
input.switch:checked, input[role="switch"]:checked { background: var(--ink); border-color: var(--ink); }
input.switch:checked::before, input[role="switch"]:checked::before { left: auto; right: 3px; background: #fff; }

/* buttons: one shape, variants change colour only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: var(--ctl-h); padding: 0 var(--btn-px);
  border: var(--bw) solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.btn .icon { width: var(--icon-sm); height: var(--icon-sm); }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { background: var(--fill); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:active { background: var(--ink); }
.btn-secondary { /* = .btn default: white, grey border */ }
.btn-outline { border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-text { height: auto; padding: 0; border: 0; background: none; color: var(--brand); }
.btn-text:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
.btn-text:active { background: none; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 82%, #000); border-color: color-mix(in srgb, var(--red) 82%, #000); color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: color-mix(in srgb, var(--green) 82%, #000); border-color: color-mix(in srgb, var(--green) 82%, #000); color: #fff; }
.btn-sm { height: var(--ctl-h-sm); padding: 0 var(--sp-3); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--fill); border-color: var(--line); color: var(--faint); pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: var(--icon-sm); height: var(--icon-sm); border: var(--bw-2) solid currentColor; border-color: var(--line-2) var(--line-2) var(--ink) var(--ink); border-radius: var(--radius-round); animation: spin 0.7s linear infinite; }
.btn-primary.is-loading::after { border-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.35) #fff #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   §6  ICONS & PRIMITIVES
   ========================================================================== */
/* Font Awesome 6 icon set (icon() in helpers.php, inline SVG): 1em by default, filled with the text colour */
.icon { flex: none; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; overflow: visible; }
.icon-xs { width: var(--icon-xs); height: var(--icon-xs); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }

/* icon-only button (header, drawer) */
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--ink); transition: color var(--dur); }
.icon-btn .icon { width: var(--icon-md); height: var(--icon-md); }
.icon-btn:hover { color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }

/* picture box: fixed ratio, cover-cropped, grey until loaded */
.media-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--fill); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* section eyebrow above a headline */
.kicker, .dyn-tag {
  /* 24 px tall tap target (WCAG 2.2 target size) without moving the text: padding offset by negative margin; stacked
     above the headline link that follows, so the overlap never covers the label's own target */
  position: relative; z-index: 1;
  display: inline-block; margin: calc(-1 * var(--sp-2)) 0 calc(var(--sp-1) - var(--sp-2)); padding-block: var(--sp-2);
  font-size: var(--fs-2xs); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--brand);
}
.kicker:hover, .kicker:focus-visible, .dyn-tag:hover, .dyn-tag:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }

.meta, .dyn-meta { margin-top: var(--sp-2); font-size: var(--fs-xs); line-height: var(--lh-normal); color: var(--faint); }
.dek { margin-top: var(--sp-2); font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* headline sizes used in lists (semantic level stays h2/h3; size is visual) */
.title-md { margin-top: var(--sp-3); font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }
.title-sm { font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: var(--ls-normal); }
/* every headline link: same hover — ink underline */
:is(.title-md, .title-sm, .story-row-title, .brief-title, .lead-title, .dyn-card-title, .headline-list, .grid3--text, .rank-list, .timeline, .dyn-rank, .dyn-list, .vs-title, .author-row-body h3) a:hover,
.author-row:hover h3, .vs-card:hover .vs-title, .wsx-card:hover .wsx-title { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* section heading: name + chevron over a black rule */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); padding-bottom: var(--sp-2); border-bottom: var(--bw) solid var(--ink); }
.sec-title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-snug); }
.sec-title a { display: inline-flex; align-items: center; gap: var(--sp-1); }
.sec-title .icon { width: var(--icon-xs); height: var(--icon-xs); }
.sec-title a:hover { color: var(--brand); }

/* ==========================================================================
   §7  HEADER & NAVIGATION
   ========================================================================== */
/* utility bar */
.util-bar { border-bottom: var(--bw) solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.util-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--ctl-h-sm); }
.util-list { display: flex; align-items: center; min-width: 0; }
.util-list > li { display: flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-3); border-left: var(--bw) solid var(--line); white-space: nowrap; }
.util-list > li:first-child { padding-left: 0; border-left: 0; }
.util-list a:hover, .util-signin:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.util-list a[aria-current] { color: var(--ink); font-weight: var(--fw-semibold); }
.util-signin { font-weight: var(--fw-medium); color: var(--ink-2); white-space: nowrap; }

/* masthead */
.site-header { background: var(--header-bg, var(--bg)); }
.masthead-inner { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; padding-block: var(--mast-py, var(--sp-6)); }
/* Admin → Appearance → Header layout */
.hd-left .tp-brand { grid-column: 1 / 3; justify-self: start; }
.hd-left .masthead-inner { grid-template-columns: 1fr var(--tap); }
.hd-left .tp-ham { display: none; }
.hd-compact .masthead { display: none; }
.hd-compact + .tp-nav .tp-nav-logo { display: flex; }
@media (max-width: 768px) { .hd-compact .masthead { display: block; } .hd-left .tp-ham { display: inline-grid; } .hd-left .masthead-inner { grid-template-columns: var(--tap) 1fr var(--tap); } .hd-left .tp-brand { grid-column: 2; justify-self: center; } }
.ap-preview-bar { padding: var(--sp-2) var(--pad); background: var(--ink); color: #fff; font-size: var(--fs-sm); text-align: center; }
.ap-preview-bar a { color: #fff; text-decoration: underline; }
.tp-brand { grid-column: 2; justify-self: center; display: block; }
.tp-brand .brand-word { width: auto; height: 46px; }
.brand-fallback { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.1; color: var(--ink); }
/* text wordmark: the site name, used wherever no logo image is configured */
.wordmark { display: inline-block; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.1; color: inherit; overflow-wrap: anywhere; }
.tp-nav-logo .wordmark { font-size: var(--fs-md); }
.ft-logo .wordmark { font-size: var(--fs-h3); color: var(--ft-strong, #fff); }
.drawer-head .wordmark { font-size: var(--fs-lg); }
.tp-ham, .mh-search { visibility: hidden; }        /* desktop uses the nav-bar icons */
.mh-search { justify-self: end; }

/* primary navigation */
.tp-nav { position: sticky; top: 0; z-index: 60; background: var(--ap-menu-bg, var(--bg)); border-top: var(--bw) solid var(--line); border-bottom: var(--bw-2) solid var(--ink); }
.tp-nav-inner { position: relative; display: flex; align-items: stretch; height: var(--nav-h); }
.tp-nav-logo { display: none; align-items: center; margin-right: var(--sp-3); padding-right: var(--sp-3); border-right: var(--bw) solid var(--line); }
.tp-nav-logo img { width: auto; height: 22px; }
.tp-nav.show-logo .tp-nav-logo { display: flex; }
.tp-menu { display: flex; flex: 1 1 auto; align-items: stretch; min-width: 0; white-space: nowrap; }
.tp-menu > li { position: relative; display: flex; }
.tp-menu > li > a, .tp-more-btn { position: relative; display: flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-3); font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--menu-fg, var(--ink-2)); }
.tp-menu > li:first-child > a { padding-left: 0; }
.tp-more-btn { border: 0; background: none; cursor: pointer; font-family: inherit; }
.tp-menu > li > a:hover, .tp-more-btn:hover { color: var(--ink); }
.tp-more.open > .drop { display: block; }
.tp-menu a.active, .tp-more.has-active > .tp-more-btn { color: var(--ink); font-weight: var(--fw-bold); }
.tp-menu > li > a.active::after, .tp-more.has-active > .tp-more-btn::after { content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: calc(-1 * var(--bw-2)); height: var(--bw-3); background: var(--brand); }
.tp-menu > li:first-child > a.active::after { left: 0; }
.tp-menu .cr { width: 10px; height: 10px; }
/* dropdowns: sub-sections and "More" */
.tp-menu .drop { position: absolute; top: 100%; left: 0; z-index: 70; display: none; min-width: 208px; margin-top: var(--bw-2); padding: var(--sp-2) 0; background: var(--bg); border: var(--bw) solid var(--line-2); }
.tp-menu li:hover > .drop, .tp-menu li:focus-within > .drop { display: block; }
.tp-more > .drop { left: auto; right: 0; max-height: 70vh; overflow-y: auto; }
.tp-menu .drop a, .tp-more .drop li > a { display: block; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--ink-2); }
.tp-menu .drop a:hover { background: var(--fill); color: var(--ink); }
.tp-more .drop li { display: block; }
.tp-more .drop .drop { display: none !important; }   /* no nested flyouts inside "More" */
.tp-more .drop a.active { color: var(--brand); }
.tp-nav-right { display: flex; align-items: center; margin-left: var(--sp-2); padding-left: var(--sp-2); border-left: var(--bw) solid var(--line); }
.tp-nav-arrow { display: none; }

/* secondary navigation: trending topics */
.sub-nav { border-bottom: var(--bw) solid var(--line); }
.sub-nav-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--ctl-h); overflow: hidden; }
.sub-nav-label { flex: none; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--red); }
.sub-nav-list { display: flex; gap: var(--sp-6); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.sub-nav-list::-webkit-scrollbar { display: none; }
.sub-nav-list a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); }
.sub-nav-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* breaking / latest ticker */
.bv-breaking { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--ctl-h); padding-block: var(--sp-2); overflow: hidden; border-bottom: var(--bw) solid var(--line); }
.bv-br-label { flex: none; padding-right: var(--sp-3); border-right: var(--bw) solid var(--line); font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink); }
.bv-breaking.is-live .bv-br-label { color: var(--red); }
.bv-br-view { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.bv-br-track { display: flex; width: max-content; animation: bv-ticker var(--bv-dur, 60s) linear infinite; }
.bv-br-view:hover .bv-br-track, .bv-br-view:focus-within .bv-br-track, .bv-breaking.is-paused .bv-br-track { animation-play-state: paused; }
.bv-br-pause { position: relative; z-index: 1; flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: var(--sp-2); border: var(--bw) solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 9px; cursor: pointer; }
.bv-br-pause:hover { border-color: var(--ink); }
.bv-br-pause .i-play, .bv-breaking.is-paused .bv-br-pause .i-pause { display: none; }
.bv-breaking.is-paused .bv-br-pause .i-play { display: inline; }
.bv-br-pause[hidden] { display: none; }
.bv-br-set { display: flex; }
.bv-br-set a, .bv-br-plain { display: inline-flex; align-items: center; min-height: 24px; padding-right: var(--sp-7); font-size: var(--fs-md); font-weight: var(--fw-medium); white-space: nowrap; color: var(--ink-2); }
.bv-br-set a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
@keyframes bv-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ad placements */
.tp-ad { margin-block: var(--sp-6); text-align: center; }
.tp-ad > .lbl, .ad-label, .ad-tag { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-2xs); letter-spacing: var(--ls-caps); text-transform: uppercase; text-align: center; color: var(--faint); }
.tp-ad img, .ad-box img, .ad-slot img { margin-inline: auto; }
.ad-box { margin-bottom: var(--sp-6); text-align: center; }
.ad-slider { position: relative; }
.ad-slide { display: none; }
.ad-slide.active { display: block; }

/* ==========================================================================
   §8  HOME
   ========================================================================== */
/* top band: left ≈20% · centre ≈55% · right 300px (≈25%) */
.hm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.75fr) var(--side-w); grid-template-areas: "left centre right";
  column-gap: var(--gap); padding-block: var(--sp-6) var(--sp-7); border-bottom: var(--bw) solid var(--line); }
.hm-left { grid-area: left; }
.hm-centre { grid-area: centre; min-width: 0; }
.hm-right { grid-area: right; min-width: 0; }

.brief { padding-block: var(--sp-4); border-bottom: var(--bw) solid var(--line); }
.brief:first-child { padding-top: 0; }
.brief:last-child { border-bottom: 0; }
.brief-title { font-size: var(--fs-base); font-weight: var(--fw-medium); line-height: var(--lh-snug); letter-spacing: var(--ls-normal); color: var(--ink); }
.brief-img { margin-top: var(--sp-3); }

.lead { padding-bottom: var(--sp-6); border-bottom: var(--bw) solid var(--line); }
.lead-title { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.lead-img { margin-top: var(--sp-4); }
.lead-dek { margin-top: var(--sp-3); font-size: var(--fs-lg); line-height: var(--lh-normal); color: var(--muted); }

.story-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-md); gap: var(--sp-6); align-items: start; padding-block: var(--sp-4); border-bottom: var(--bw) solid var(--line); }
.story-row:last-child { padding-bottom: 0; border-bottom: 0; }
.story-row-title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }

.widget { margin-bottom: var(--sp-7); }
.widget-title { margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: var(--bw) solid var(--ink); font-size: var(--fs-h5); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-snug); }
.timeline li { display: grid; gap: var(--sp-1); padding-block: var(--sp-3); border-bottom: var(--bw) solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.timeline time { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--faint); }
.timeline a { font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: var(--lh-snug); }

.hm-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); column-gap: var(--gap); align-items: start; padding-block: var(--sp-7); }
.hm-layout--full { grid-template-columns: minmax(0, 1fr); }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin: 0; padding: 0; list-style: none; }
.sec-list li { display: flex; flex-direction: column; gap: 2px; padding-block: var(--sp-3); border-bottom: var(--bw) solid var(--line); }
.sec-list a { font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
.sec-list a:hover { color: var(--brand); }
.sec-list time { font-size: var(--fs-xs); color: var(--faint); }
@media (max-width: 575px) { .sec-list { grid-template-columns: minmax(0, 1fr); } }
.hm-main, .hm-side { min-width: 0; }
.hm-sec { margin-bottom: var(--sp-9); }
.hm-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }

.sec-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); }
.headline-list li, .grid3--text li { padding-block: var(--sp-3); border-bottom: var(--bw) solid var(--line); }
.headline-list li:first-child { padding-top: 0; }
.headline-list li:last-child { border-bottom: 0; }
.headline-list a, .grid3--text a { font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.tile .title-sm { margin-top: var(--sp-3); }
.grid3--text { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: var(--bw) solid var(--line); }
.grid3--text li { padding: 0; border: 0; }

.sec-half-lead { padding-bottom: var(--sp-3); }
.mini-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-sm); gap: var(--sp-4); align-items: start; padding-block: var(--sp-3); border-top: var(--bw) solid var(--line); }

/* numbered "Most Read" */
.rank-list { counter-reset: rank; }
.rank-list li { display: grid; grid-template-columns: var(--sp-7) 1fr; gap: var(--sp-1); padding-block: var(--sp-3); border-bottom: var(--bw) solid var(--line); counter-increment: rank; }
.rank-list li:first-child { padding-top: 0; }
.rank-list li::before { content: counter(rank); font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-tight); font-variant-numeric: tabular-nums; color: var(--faint); }
.rank-list a { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }

/* web stories rail */
.vstories { padding-top: var(--sp-2); }
.vs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-3); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.vs-card { display: block; }
.vs-img, .wsx-img { aspect-ratio: 9 / 16; }
.vs-title { display: -webkit-box; margin-top: var(--sp-2); overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }

/* ==========================================================================
   §9  LISTINGS — category, search, tag
   ========================================================================== */
.dyn { padding-block: var(--sp-6) var(--sp-9); }
.dyn-breadcrumb { margin-bottom: var(--sp-3); font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--faint); }
.dyn-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) 0; margin: 0; padding: 0; list-style: none; }
.dyn-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; margin: 0; padding: 0; }
.dyn-breadcrumb li + li::before { content: "/"; margin: 0 var(--sp-2); color: var(--line-2); }
.dyn-breadcrumb a { color: var(--muted); }
.dyn-breadcrumb a:hover, .dyn-breadcrumb a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.dyn-breadcrumb [aria-current] { color: var(--ink-2); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
@media (max-width: 575px) { .dyn-breadcrumb [aria-current] { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } }
.page-body > .dyn-breadcrumb { font-size: var(--fs-sm); line-height: var(--lh-normal); }
.dyn-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); padding-bottom: var(--sp-3); border-bottom: var(--bw-2) solid var(--ink); }
.dyn-head h1 { font-size: var(--fs-h1); }
.dyn-head .more { font-size: var(--fs-sm); color: var(--faint); white-space: nowrap; }
.cat-subs { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: calc(-1 * var(--sp-3)) 0 var(--sp-6); padding-bottom: var(--sp-3); border-bottom: var(--bw) solid var(--line); }
.cat-subs a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); }
.cat-subs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.dyn-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); column-gap: var(--gap); align-items: start; }
.dyn-main { min-width: 0; }
.result-count { margin-bottom: var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }
.search-form { display: flex; gap: var(--sp-2); max-width: 640px; margin-bottom: var(--sp-6); }
.search-form .input { flex: 1 1 auto; min-width: 0; }   /* basis auto: in the stacked phone layout a 0 basis collapsed the field */

/* story row */
.dyn-grid { display: block; }
.dyn-card { display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-lg); gap: var(--sp-6); align-items: start; padding-block: var(--sp-6); border-bottom: var(--bw) solid var(--line); }
.dyn-grid > .dyn-card:first-child { padding-top: 0; }
.dyn-card-title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }
.dyn-card .thumb { position: relative; }
.dyn-card .play { position: absolute; left: var(--sp-2); bottom: var(--sp-2); display: grid; place-items: center; width: var(--ctl-h-sm); height: var(--ctl-h-sm); background: var(--ink); color: #fff; }
.dyn-card .play .icon { width: var(--icon-sm); height: var(--icon-sm); }
.card-foot { margin-top: var(--sp-3); }

.dyn-empty { padding: var(--sp-9) var(--sp-4); border-block: var(--bw) solid var(--line); text-align: center; }
.dyn-empty :is(h1, h2) { margin-bottom: var(--sp-2); font-size: var(--fs-h3); }
.dyn-empty p { color: var(--muted); }
.dyn-empty p + p { margin-top: var(--sp-4); }

/* ==========================================================================
   §10  ARTICLE
   ========================================================================== */
.dyn-article { min-width: 0; max-width: 760px; }
.dyn-tags { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.dyn-article h1 { font-size: var(--fs-h1); }
.dyn-article .lede { margin-top: var(--sp-3); font-size: var(--fs-xl); line-height: var(--lh-normal); color: var(--muted); }
.dyn-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-1) var(--sp-6); margin-top: var(--sp-4); padding-block: var(--sp-3); border-block: var(--bw) solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.dyn-byline .lbl { color: var(--faint); }
.dyn-byline .auth { font-weight: var(--fw-semibold); color: var(--ink); }
.dyn-byline a.auth:hover { color: var(--brand); }
/* Article header: categories, headline, dek, byline with avatar, dates, reading time, share */
.art-head { margin-bottom: var(--sp-2); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-5); padding-block: var(--sp-3); border-block: var(--bw) solid var(--line); }
.art-by { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.art-av { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--ink); color: #fff; font-weight: var(--fw-semibold); }
.art-av img { width: 100%; height: 100%; object-fit: cover; }
.art-by-tx { min-width: 0; }
.art-author { font-size: var(--fs-md); color: var(--ink-2); }
.art-author a { font-weight: var(--fw-semibold); color: var(--ink); }
.art-author a:hover { color: var(--brand); }
.art-desig { color: var(--muted); }
.art-dates { display: flex; flex-wrap: wrap; gap: 0 var(--sp-3); margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.art-dates > span { display: inline-flex; align-items: center; gap: var(--sp-1); }
.art-dates > span + span::before { content: ""; width: 3px; height: 3px; margin-right: var(--sp-2); border-radius: 50%; background: var(--line-2); }
.art-dates .icon { width: var(--icon-xs); height: var(--icon-xs); fill: currentColor; }
/* Reading progress (top of viewport, article pages) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) { .read-progress span { transition: transform .08s linear; } }
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }
/* Previous / next story */
.art-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: var(--bw) solid var(--line); }
.art-adjacent .adj { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; padding: var(--sp-4); border: var(--bw) solid var(--line); }
.art-adjacent a.adj:hover { border-color: var(--ink); }
.art-adjacent .adj-next { text-align: right; align-items: flex-end; }
.art-adjacent .adj-empty { border: 0; }
.adj-lbl { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.adj-lbl .icon { width: var(--icon-xs); height: var(--icon-xs); fill: currentColor; }
.adj-title { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
@media (max-width: 575px) { .art-adjacent { grid-template-columns: minmax(0, 1fr); } .art-adjacent .adj-empty { display: none; } }
/* Sidebar story lists with thumbnails */
.side-stories, .side-latest { margin: 0; padding: 0; list-style: none; }
.side-stories li + li, .side-latest li + li { border-top: var(--bw) solid var(--line); }
.side-stories a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-3); padding-block: var(--sp-3); }
.side-stories li:first-child a { padding-top: 0; }
.ss-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--fill); }
.ss-img img { width: 100%; height: 100%; object-fit: cover; }
.ss-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-cat { font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.ss-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
.side-stories a:hover .ss-title { color: var(--brand); }
.side-latest li { display: flex; flex-direction: column; gap: 2px; padding-block: var(--sp-3); }
.side-latest li:first-child { padding-top: 0; }
.side-latest a { font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
.side-latest a:hover { color: var(--brand); }
.side-latest time { font-size: var(--fs-xs); color: var(--faint); }
.ad-inline { margin-block: var(--sp-6); padding-block: var(--sp-3); border-block: var(--bw) solid var(--line); text-align: center; }
.dyn-figure { margin-top: var(--sp-6); }
.dyn-figure img { width: 100%; }
/* lead image without known dimensions (remote file): hold a 16:9 box until it loads, then use its real ratio */
.dyn-figure img:not([height]) { aspect-ratio: auto 16 / 9; height: auto; }
.dyn-video-link { margin-top: var(--sp-4); }
.dyn-figure .credit { color: var(--faint); white-space: nowrap; }
.dyn-toc { margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-5); border: var(--bw) solid var(--line); border-left: var(--bw-3) solid var(--ink); max-width: var(--prose-w); }
.dyn-toc-title { margin-bottom: var(--sp-2); font-size: var(--fs-h6); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.dyn-toc ol { padding-left: 1.25em; list-style: decimal; font-size: var(--fs-md); }
.dyn-toc li + li { margin-top: var(--sp-1); }
.dyn-toc a { color: var(--ink-2); }
.dyn-toc a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
.sec-more { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--brand); white-space: nowrap; }
.sec-more .icon { width: 10px; height: 10px; }
.sec-more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.dyn-article-body { max-width: var(--prose-w); margin-top: var(--sp-6); }

.dyn-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-7); }
.dyn-tags-lbl, .dyn-share-lbl { margin-right: var(--sp-2); font-size: var(--fs-h6); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink); }
.art-tag { display: inline-flex; align-items: center; height: var(--ctl-h-sm); padding: 0 var(--sp-3); border: var(--bw) solid var(--line-2); font-size: var(--fs-sm); color: var(--ink-2); }
.art-tag:hover { border-color: var(--ink); color: var(--ink); }
.dyn-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-6); padding-block: var(--sp-4); border-block: var(--bw) solid var(--line); }

.dyn-author { display: grid; grid-template-columns: var(--avatar-md) 1fr; gap: var(--sp-4); margin-top: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: var(--bw) solid var(--line); font-size: var(--fs-md); }
.dyn-author .av, .author-av, .team-av, .comment .avatar { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-round); background: var(--fill); font-weight: var(--fw-bold); color: var(--ink); }
.dyn-author .av { width: var(--avatar-md); height: var(--avatar-md); font-size: var(--fs-h4); }
:is(.dyn-author .av, .author-av, .team-av) img { width: 100%; height: 100%; object-fit: cover; }
.dyn-author b { font-weight: var(--fw-bold); color: var(--ink); }
.dyn-author-desig { font-size: var(--fs-sm); color: var(--faint); }
.dyn-author p { margin-top: var(--sp-1); line-height: var(--lh-normal); color: var(--muted); }
.author-more { display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--brand); }
.author-more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.bv-related { margin-top: var(--sp-7); }

/* ==========================================================================
   §11  SIDEBAR WIDGETS · PAGER · SHARE · FOLLOW
   ========================================================================== */
.dyn-side-col { min-width: 0; }
.dyn-widget { margin-bottom: var(--sp-7); }
.dyn-widget.ad-slot { text-align: center; }
.dyn-rank li, .dyn-list li { display: grid; gap: var(--sp-2); padding-block: var(--sp-3); border-bottom: var(--bw) solid var(--line); }
.dyn-rank li { grid-template-columns: var(--sp-6) 1fr; }
.dyn-rank li:first-child, .dyn-list li:first-child { padding-top: 0; }
.dyn-rank .n { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; color: var(--faint); }
.dyn-rank .icon.n { width: var(--icon-xs); height: var(--icon-xs); margin-top: var(--sp-px); }
.dyn-rank a, .dyn-list a { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.yt-live { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.yt-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.dyn-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-1); margin-top: var(--sp-7); }
.dyn-pager > .pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); min-width: var(--ctl-h-sm); height: var(--ctl-h-sm); padding: 0 var(--sp-3); border: var(--bw) solid var(--line-2); background: #fff; font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--ink-2); }
.dyn-pager > .pg-edge { padding: 0; }
.dyn-pager > a.pg-btn:hover, .dyn-pager > a.pg-btn:focus-visible { border-color: var(--ink); color: var(--ink); }
.dyn-pager > .is-current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: var(--fw-semibold); }
.dyn-pager > .is-disabled { border-color: var(--line); color: var(--line-2); cursor: default; }
.dyn-pager > .pg-gap { min-width: var(--sp-5); text-align: center; color: var(--faint); }
.dyn-pager .icon { width: var(--icon-sm); height: var(--icon-sm); fill: currentColor; }
@media (max-width: 575px) { .dyn-pager .pg-tx, .dyn-pager > .pg-edge { display: none; } .dyn-pager > .pg-step { padding: 0; } }
.pg-summary { margin-top: var(--sp-3); text-align: center; font-size: var(--fs-sm); color: var(--faint); }
.load-more { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-top: var(--sp-7); }
.load-more + .dyn-pager, .load-more[data-ready] ~ .dyn-pager { margin-top: var(--sp-4); }
.btn-more { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-width: 220px; height: var(--ctl-h); padding: 0 var(--sp-5); border: var(--bw) solid var(--ink); background: #fff; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer; }
.btn-more:hover, .btn-more:focus-visible { background: var(--ink); color: #fff; }
.btn-more[aria-busy="true"] { opacity: .6; cursor: progress; }
.lm-status.is-error { position: static !important; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: normal; color: var(--brand); font-size: var(--fs-sm); }

/* share buttons (cards + article) */
.card-share { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); }
.cs { display: inline-grid; place-items: center; width: var(--ctl-h-sm); height: var(--ctl-h-sm); padding: 0; border: var(--bw) solid var(--line); background: var(--bg); color: var(--ink-2); transition: border-color var(--dur), color var(--dur); }
.cs svg { width: var(--icon-sm); height: var(--icon-sm); }
.cs .icon { width: var(--icon-sm); height: var(--icon-sm); }
.cs:hover { border-color: var(--ink); color: var(--ink); }
.cs.copied { border-color: var(--brand); color: var(--brand); }
.card-stats { display: inline-flex; gap: var(--sp-3); }
.card-stats > * { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0; border: 0; background: none; font-size: var(--fs-xs); color: var(--faint); }
.card-stats .icon { width: var(--icon-xs); height: var(--icon-xs); }
.card-stats i { font-style: normal; }
.cs-like.liked { color: var(--red); }

/* follow icons: official brand glyphs, monochrome */
.dyn-follow { display: inline-flex; flex-wrap: wrap; gap: var(--sp-1); }
.dyn-follow .fl { display: inline-grid; place-items: center; width: var(--ctl-h-sm); height: var(--ctl-h-sm); color: var(--ink-2); transition: color var(--dur); }
.dyn-follow .fl svg { width: var(--icon-sm); height: var(--icon-sm); }
.dyn-follow .fl:hover { color: var(--brand); }
.dyn-follow.sm .fl { width: var(--sp-6); height: var(--sp-6); }
.dyn-follow.sm .fl svg { width: var(--icon-xs); height: var(--icon-xs); }

/* ==========================================================================
   §12  COMMENTS · NOTICES · PUSH PROMPT
   ========================================================================== */
.notice { margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: var(--bw) solid var(--line-2); border-left-width: var(--bw-3); font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--ink); }
.notice--ok { border-left-color: var(--green); }
.notice--err { border-left-color: var(--red); }
.notice--warn { border-left-color: var(--amber); }
.notice--bar { margin: 0; border-width: 0 0 var(--bw); text-align: center; }
.notice a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.comments { margin-top: var(--sp-7); }
.comments-title { margin-bottom: var(--sp-4); padding-bottom: var(--sp-2); border-bottom: var(--bw) solid var(--ink); font-size: var(--fs-h4); }
/* ---- comments: threaded discussion ---- */
.comments-title { display: flex; align-items: center; gap: var(--sp-2); }
.comments-title .icon { font-size: 0.9em; color: var(--muted); }
.cm-total { font-weight: var(--fw-medium); color: var(--muted); }
.comment-note { margin-top: 0; }
.cm-new { margin-bottom: var(--sp-6); padding: var(--sp-4); border: var(--bw) solid var(--line-2); }
.cm-form { display: grid; gap: var(--sp-3); }
.cm-form .field { display: grid; gap: var(--sp-1); }
.cm-form textarea { min-height: calc(var(--ctl-h) * 2); }
.cm-form-reply { margin-top: var(--sp-3); padding: var(--sp-3); border: var(--bw) solid var(--line-2); background: var(--bg); }
.cm-form-ctx { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.cm-count { font-size: var(--fs-xs); color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.cm-count.is-near { color: var(--ink); font-weight: var(--fw-semibold); }
.cm-count.is-over { color: var(--red); font-weight: var(--fw-semibold); }
.cm-as { font-size: var(--fs-sm); color: var(--muted); }
.cm-form .field-help { display: flex; align-items: center; gap: var(--sp-1); }
.cm-form .field-help .icon { color: var(--green); }
.cm-note { margin: 0; }
.cm-spin .icon { animation: cm-spin 0.9s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }
.cm-form-msg:empty { display: none; }
.cm-bar { display: flex; justify-content: flex-end; margin-bottom: var(--sp-2); }
.cm-bar[hidden], .cm-empty[hidden], .cm-pager[hidden], .cm-loading[hidden], .cm-error[hidden], .cm-menu[hidden] { display: none; }
.cm-sort { display: flex; align-items: center; gap: var(--sp-2); }
.cm-sort label { font-size: var(--fs-sm); color: var(--muted); }
.cm-sort select { width: auto; min-width: 9rem; height: var(--ctl-h-sm); padding-block: 0; }

.cm-list, .cm-kids { list-style: none; margin: 0; padding: 0; }
.cm-list > .cm { padding-block: var(--sp-4); border-top: var(--bw) solid var(--line); }
.cm-list > .cm:last-child { border-bottom: var(--bw) solid var(--line); }
.cm { --cm-av: var(--avatar-sm); }
.cm-body { display: grid; grid-template-columns: var(--cm-av) minmax(0, 1fr); gap: var(--sp-3); }
.cm-av { display: grid; place-items: center; width: var(--cm-av); height: var(--cm-av); border-radius: var(--radius-round); background: var(--fill); font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--ink); }
.cm-av .icon { font-size: 0.9rem; color: var(--faint); }
.cm-av-staff { background: var(--brand); color: #fff; }
.cm-main { min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-2); }
.cm-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--ink); overflow-wrap: anywhere; }
.cm-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px var(--sp-2); border: var(--bw) solid var(--brand); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--brand); line-height: 1.5; }
.cm-badge .icon { font-size: 0.7em; }
.cm-time { font-size: var(--fs-xs); color: var(--faint); }
.cm-time, .cm-ctx a { display: inline-flex; align-items: center; min-height: 24px; }
.cm-time:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.cm-edited { font-size: var(--fs-xs); color: var(--faint); font-style: italic; }
.cm-edited::before { content: "\00b7\00a0"; font-style: normal; }
.cm-ctx { display: flex; align-items: center; gap: var(--sp-1); margin-top: 2px; font-size: var(--fs-xs); color: var(--faint); }
.cm-ctx a { color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; }
.cm-ctx .icon { transform: scaleX(-1); font-size: 0.85em; }
.cm-text { margin-top: var(--sp-1); font-size: var(--fs-base); line-height: var(--lh-normal); color: var(--ink-2); overflow-wrap: anywhere; white-space: normal; }
.cm-removed { margin: 0; padding-block: var(--sp-2); font-size: var(--fs-md); font-style: italic; color: var(--faint); }
.cm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); margin-top: var(--sp-2); margin-left: calc(var(--sp-2) * -1); }
.cm-act, .cm-toggle, .cm-more-replies { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--ctl-h-sm); padding: 0 var(--sp-2); border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--muted); cursor: pointer; }
.cm-act:hover, .cm-toggle:hover, .cm-more-replies:hover { color: var(--ink); background: var(--fill); }
.cm-act .icon { font-size: 0.95em; }
.cm-like .i-on, .cm-like.is-on .i-off { display: none; }
.cm-like.is-on .i-on { display: inline-block; }
.cm-like.is-on { color: var(--red); }
.cm-body:focus { outline: none; }
.cm-body:focus-visible { outline: var(--focus); outline-offset: 4px; }
.cm-like.is-on:hover { color: var(--red); }
.cm-n { font-variant-numeric: tabular-nums; }
.cm-act[disabled] { opacity: 0.6; cursor: wait; }
.cm-menu-wrap { position: relative; }
.cm-menu { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 11rem; margin: 2px 0 0; padding: var(--sp-1) 0; list-style: none; border: var(--bw) solid var(--ink); background: var(--bg); }
.cm-menu button { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 36px; padding: 0 var(--sp-3); border: 0; background: none; font: inherit; font-size: var(--fs-md); color: var(--ink); text-align: left; cursor: pointer; }
.cm-menu button:hover, .cm-menu button:focus-visible { background: var(--fill); }
.cm-menu .icon { width: 1em; color: var(--muted); }
.cm-toggle { margin-top: var(--sp-1); margin-left: calc(var(--sp-2) * -1); color: var(--brand); }
.cm-toggle .icon { font-size: 0.75em; }
.cm-toggle[aria-expanded="false"] .icon { transform: rotate(180deg); }
.cm-kids { margin-top: var(--sp-2); margin-left: calc(var(--cm-av) / 2); padding-left: var(--sp-4); border-left: var(--bw) solid var(--line-2); }
.cm-kids:empty { display: none; margin: 0; padding: 0; border: 0; }
.cm-kids[hidden] { display: none; }
.cm-kids > .cm { padding-top: var(--sp-3); }
.cm-kids .cm { --cm-av: 32px; }
.cm-more-li { padding-top: var(--sp-2); }
.cm-more-replies { color: var(--brand); }
.cm.is-target > .cm-body { outline: var(--bw-2) solid var(--brand); outline-offset: 4px; }
.cm.is-new > .cm-body .cm-text { animation: cm-new 2.4s ease-out; }
@keyframes cm-new { from { background: color-mix(in srgb, var(--brand) 12%, transparent); } to { background: transparent; } }
.cm-slot:empty { display: none; }
.cm-inline-edit { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
.cm-empty { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-8) var(--sp-4); border: var(--bw) dashed var(--line-2); text-align: center; color: var(--muted); }
.cm-empty .icon { font-size: 1.75rem; color: var(--faint); }
.cm-empty-t { margin: 0; font-size: var(--fs-lg, 1.0625rem); font-weight: var(--fw-semibold); color: var(--ink); }
.cm-empty-s { margin: 0 0 var(--sp-2); font-size: var(--fs-md); }
.cm-loading, .cm-error { margin: var(--sp-4) 0 0; font-size: var(--fs-md); color: var(--muted); }
.cm-loading .icon { margin-right: var(--sp-2); animation: cm-spin 0.9s linear infinite; }
.cm-error { color: var(--red); font-weight: var(--fw-semibold); }
.cm-pager { display: flex; justify-content: center; margin-top: var(--sp-5); }
.cm-dialog { position: fixed; inset: 0; z-index: 1000; width: min(32rem, calc(100vw - 2 * var(--sp-4))); max-width: none; max-height: calc(100dvh - 2 * var(--sp-4)); margin: auto; padding: 0; overflow: hidden; border: var(--bw) solid var(--ink); background: var(--bg); color: var(--ink); }
.cm-dialog[open] { display: flex; flex-direction: column; }
.cm-dialog::backdrop { background: rgba(17, 17, 17, 0.5); }
.cm-dlg-box { display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.cm-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: var(--bw) solid var(--line); }
.cm-dlg-title { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-h5); line-height: var(--lh-tight, 1.3); }
.cm-dlg-title .icon { color: var(--muted); font-size: 0.9em; }
#cm-delete-dlg .cm-dlg-title .icon { color: var(--red); }
.cm-dlg-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: var(--bw) solid transparent; background: none; color: var(--muted); cursor: pointer; }
.cm-dlg-x:hover { border-color: var(--line-2); color: var(--ink); }
.cm-dlg-form { display: grid; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.cm-dlg-desc { margin: 0; font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--ink-2); }
.cm-dlg-quote { margin: 0; padding: var(--sp-2) var(--sp-3); border-left: var(--bw-3) solid var(--line-2); background: var(--fill); font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.cm-dlg-quote[hidden] { display: none; }
.cm-dlg-form .field { display: grid; gap: var(--sp-1); }
.cm-dlg-form textarea { min-height: calc(var(--ctl-h) * 2); }
.cm-opt { font-weight: var(--fw-regular); color: var(--muted); }
.cm-dlg-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cm-dlg-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
html.cm-modal-lock { overflow: hidden; }
html.cm-modal-lock body { padding-right: var(--cm-scrollbar, 0); }
.cm-reasons { display: grid; gap: 0; margin: 0; padding: 0; border: 0; min-width: 0; }
.cm-reasons legend { padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.cm-radio { display: flex; align-items: center; gap: var(--sp-3); min-height: 36px; padding-inline: var(--sp-2); margin-inline: calc(var(--sp-2) * -1); font-size: var(--fs-md); font-weight: var(--fw-regular, 400); cursor: pointer; }
.cm-radio:hover { background: var(--fill); }
.cm-radio input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--brand); }
.cm-live { position: absolute; }
@media (max-width: 575.98px) {
  .cm-new { padding: var(--sp-3); }
  .cm-body { gap: var(--sp-2); }
  .cm { --cm-av: 32px; }
  .cm-kids .cm { --cm-av: 28px; }
  .cm-kids { padding-left: var(--sp-3); }
  .cm-kids .cm-kids { margin-left: 4px; padding-left: var(--sp-2); }
  .cm-bar { justify-content: stretch; }
  .cm-sort { width: 100%; justify-content: space-between; }
  .cm-form-reply { padding: var(--sp-2); }
  .cm-dlg-head { padding: var(--sp-3) var(--sp-4); }
  .cm-dlg-form { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
  .cm-dlg-actions .btn { flex: 1 1 8rem; justify-content: center; }
}
@media (pointer: coarse) {
  .cm-act, .cm-toggle, .cm-more-replies { min-height: 44px; padding-inline: var(--sp-3); }
  .cm-menu button, .cm-radio { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-spin .icon, .cm-loading .icon, .cm.is-new > .cm-body .cm-text { animation: none; }
}

.push-ask { position: fixed; left: var(--sp-4); bottom: var(--sp-4); z-index: 90; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; max-width: 380px; padding: var(--sp-4); border: var(--bw) solid var(--ink); background: var(--bg); }
.push-ask-ic .icon { width: var(--icon-xl); height: var(--icon-xl); }
.push-ask-tx { display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--fs-md); line-height: var(--lh-normal); }
.push-ask-tx span { font-size: var(--fs-sm); color: var(--muted); }
.push-ask-bt { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--sp-2); }
.push-toast { position: fixed; left: 50%; bottom: var(--sp-6); z-index: 95; padding: var(--sp-3) var(--sp-4); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: var(--fs-md); }

/* ==========================================================================
   §13  PAGES — static, author, team, web stories
   ========================================================================== */
.page-body { max-width: calc(var(--prose-w) + 2 * var(--pad)); margin-inline: auto; padding: var(--sp-7) var(--pad) var(--sp-9); }
.page-h1, .page-body h1 { margin-bottom: var(--sp-6); padding-bottom: var(--sp-3); border-bottom: var(--bw-2) solid var(--ink); font-size: var(--fs-h1); color: var(--heading); }
.page-body .form { margin-top: var(--sp-4); font-size: var(--fs-base); line-height: var(--lh-normal); }

.author-page { max-width: 900px; padding-block: var(--sp-6) var(--sp-9); }
.author-label { font-size: var(--fs-h6); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--faint); }
.author-card { margin-top: var(--sp-3); padding-bottom: var(--sp-6); border-bottom: var(--bw-2) solid var(--ink); }
.author-card-top { display: flex; align-items: center; gap: var(--sp-6); }
.author-av { flex: none; width: var(--avatar-lg); height: var(--avatar-lg); font-size: var(--fs-h2); }
.author-desig { margin-top: var(--sp-1); font-size: var(--fs-md); color: var(--muted); }
.author-meta-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.author-meta-row a { color: var(--brand); }
.author-meta-row a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.author-card-bio { margin-top: var(--sp-4); font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--ink-2); }
.author-articles-head { margin: var(--sp-7) 0 var(--sp-2); font-size: var(--fs-h3); }
.author-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-lg); gap: var(--sp-6); padding-block: var(--sp-4); border-bottom: var(--bw) solid var(--line); }
.author-row-img { order: 2; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--fill); }
.author-row-img img { width: 100%; height: 100%; object-fit: cover; }
.author-row-body { display: block; }
.author-row-body h3 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
.author-row-body p { margin-top: var(--sp-2); font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--muted); }
.author-row-meta { display: block; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--faint); }

.team-section { padding-bottom: var(--sp-9); }
.team-head { padding-bottom: var(--sp-2); border-bottom: var(--bw) solid var(--ink); font-size: var(--fs-h3); }
.team-intro { margin-top: var(--sp-3); color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-6); }
.team-card { text-align: center; }
.team-av { width: 112px; height: 112px; margin: 0 auto; font-size: var(--fs-h2); }
.team-name { margin-top: var(--sp-3); font-size: var(--fs-h5); }
.team-desig { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--muted); }
.team-social { display: flex; justify-content: center; gap: var(--sp-1); margin-top: var(--sp-2); }
.team-social .ts { display: inline-grid; place-items: center; width: var(--ctl-h-sm); height: var(--ctl-h-sm); color: var(--ink-2); }
.team-social .ts .icon { width: var(--icon-sm); height: var(--icon-sm); }
.team-social .ts:hover { color: var(--brand); }

.wsx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--sp-6) var(--sp-4); }
.wsx-card { display: block; }
.wsx-body { display: block; margin-top: var(--sp-2); }
.wsx-title { display: block; font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--ink); }
.wsx-sub { display: block; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--faint); }

/* ==========================================================================
   §14  FOOTER · DRAWER · BOTTOM NAV
   ========================================================================== */
/* ---- Footer: brand · sections · company · contact, then a three-part bottom bar ----
   Background: Branding → Footer colour (--color-footer; Appearance → Footer background takes precedence when set).
   Text colours are chosen by App\Theme to stay readable on it; Appearance can still set text and link colours. */
.site-footer { --ink: var(--color-footer-strong); --muted: var(--color-footer-text); --faint: var(--color-footer-text); --line: var(--color-footer-line); --line-2: var(--color-footer-line-2);
  --ft-text: var(--ap-footer-text, var(--color-footer-text)); --ft-strong: var(--color-footer-strong); --ft-accent: var(--ap-footer-link, var(--color-footer-accent));
  margin-top: var(--sp-9); border-top: var(--bw-2) solid var(--ink); background: var(--color-footer); font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--ft-text); }
.ft-main { padding-block: var(--sp-9) var(--sp-8); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 1.1fr); gap: var(--sp-8) clamp(var(--sp-6), 3vw, var(--sp-9)); }
.ft-grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ft-col { min-width: 0; }
/* brand */
.ft-logo { display: inline-block; }
.ft-logo:focus-visible { outline: var(--focus); outline-offset: 4px; }
.ft-logo img { display: block; width: auto; height: 40px; max-width: 100%; }
.ft-about { margin: var(--sp-5) 0 0; max-width: 46ch; font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--ft-text); }
.ft-ident { display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-4) 0 0; padding-top: var(--sp-4); border-top: var(--bw) solid var(--line); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-normal); color: var(--ft-strong); }
.ft-ident .ft-ic { margin-top: 3px; color: var(--ft-accent); }
.ft-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ft-text); }
.ft-follow { margin-top: var(--sp-6); }
.ft-social { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ft-social .fl { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: var(--bw) solid var(--line-2); color: var(--ft-strong); transition: color var(--dur), border-color var(--dur); }
.ft-social .fl svg { width: var(--icon-sm); height: var(--icon-sm); fill: currentColor; }
.ft-social .fl:hover, .ft-social .fl:focus-visible { border-color: var(--ft-accent); color: var(--ft-accent); }
/* column headings and links */
.ft-h { margin: 0 0 var(--sp-5); padding-bottom: var(--sp-3); border-bottom: var(--bw) solid var(--line); font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ft-strong); }
.ft-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.site-footer .ft-links > li, .site-footer .ft-legal li { margin: 0; padding: 0; }
.ft-links a { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ft-strong); font-weight: var(--fw-medium); text-underline-offset: 0.22em; overflow-wrap: anywhere; }
.ft-links a:hover, .ft-links a:focus-visible, .ft-legal a:hover, .ft-legal a:focus-visible, .ft-credit a:hover, .ft-credit a:focus-visible, .ft-map:hover { color: var(--ft-accent); text-decoration: underline; }
.ft-links--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--sp-3) var(--sp-6); }
.ft-ic { flex: 0 0 auto; width: var(--icon-xs); height: var(--icon-xs); fill: currentColor; color: var(--ft-text); }
.ft-ext { width: 10px; height: 10px; fill: currentColor; opacity: .6; }
/* contact */
.ft-contact { font-style: normal; }
.ft-ci { display: flex; align-items: flex-start; gap: var(--sp-3); line-height: var(--lh-normal); color: var(--ft-text); }
.ft-ci .ft-ic { margin-top: 3px; }
.ft-ci > span, .ft-ci > a { min-width: 0; overflow-wrap: anywhere; }
.ft-ci a { display: inline; font-weight: var(--fw-medium); }
.ft-map { display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ft-strong); }
.ft-meta { display: grid; gap: var(--sp-2); margin: var(--sp-5) 0 0; padding-top: var(--sp-4); border-top: var(--bw) solid var(--line); font-size: var(--fs-sm); }
.ft-meta div { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); }
.ft-meta dt { color: var(--ft-text); }
.ft-meta dd { margin: 0; font-weight: var(--fw-semibold); color: var(--ft-strong); }
/* newsletter */
.ft-news { margin-top: var(--sp-6); }
.ft-col > .ft-news:first-child { margin-top: 0; }
.ft-news p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-normal); }
.ft-news-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.ft-news-row input[type="email"] { flex: 1 1 auto; min-width: 0; height: var(--ctl-h); padding: 0 var(--ctl-px); border: var(--bw) solid var(--control-border); background: #fff; color: #111; font: inherit; font-size: var(--fs-md); }
.ft-news-row button { flex: 0 0 auto; height: var(--ctl-h); padding: 0 var(--btn-px); border: var(--bw) solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer; }
.ft-news-row button:hover, .ft-news-row button:focus-visible { background: var(--ft-accent); border-color: var(--ft-accent); }
.ft-news-msg { margin-top: var(--sp-2); font-weight: var(--fw-semibold); color: var(--ft-strong); }
/* bottom bar */
.ft-bottom { border-top: var(--bw) solid var(--line); font-size: var(--fs-sm); color: var(--ft-text); }
.ft-bottom-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-3) var(--sp-6); padding-block: var(--sp-5); }
.ft-copy { margin: 0; }
.ft-legal ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-1) var(--sp-5); margin: 0; padding: 0; list-style: none; }
.ft-legal li { display: flex; }
.ft-legal a { color: var(--ft-text); text-underline-offset: 0.22em; }
.ft-credit { margin: 0; text-align: right; }
.ft-credit a { font-weight: var(--fw-semibold); color: var(--ft-strong); text-underline-offset: 0.22em; }
.site-footer a:focus-visible { outline: var(--focus); outline-offset: 2px; }
/* keep the fixed back-to-top button clear of the credit where the page is narrow */
@media (max-width: 1366px) { .ft-bottom-in { padding-right: calc(var(--pad) + var(--tap) + var(--sp-3)); } }
/* tablet: two columns, brand + sections on top */
@media (max-width: 1099px) {
  .ft-grid, .ft-grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-7); }
  .ft-main { padding-block: var(--sp-8) var(--sp-7); }
  .ft-bottom-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "legal legal" "copy credit"; }
  .ft-legal { grid-area: legal; }
  .ft-legal ul { justify-content: flex-start; }
  .ft-copy { grid-area: copy; }
  .ft-credit { grid-area: credit; }
}
/* phones: one column, larger tap targets, everything left-aligned */
@media (max-width: 767px) {
  .site-footer { margin-top: var(--sp-8); }
  .ft-main { padding-block: var(--sp-7) var(--sp-6); }
  .ft-grid, .ft-grid:not(:has(> :nth-child(4))) { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .ft-links--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); }
  .ft-links--cols li, .ft-company .ft-links li { padding-block: 0; }
  .ft-links { gap: 0; }
  .ft-links a { min-height: var(--tap); }
  .ft-company .ft-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); }
  .ft-ci { padding-block: var(--sp-2); }
  .ft-ci a { display: inline-block; min-height: 0; padding-block: 3px; }
  .ft-h { margin-bottom: var(--sp-3); }
  .ft-bottom-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "legal" "copy" "credit"; gap: var(--sp-3); padding-block: var(--sp-5) var(--sp-6); }
  .ft-legal ul { gap: 0 var(--sp-5); }
  .ft-legal a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .ft-credit { text-align: left; }
}

.drawer-overlay { position: fixed; inset: 0; z-index: 99; display: none; background: rgba(17, 17, 17, 0.35); }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 100; display: none; flex-direction: column; width: min(320px, 86vw); overflow-y: auto; border-right: var(--bw) solid var(--ink); background: var(--bg); }
.drawer.open { display: flex; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-4); border-bottom: var(--bw) solid var(--line); }
.drawer-head img { width: auto; height: 26px; }
.drawer-nav li { border-bottom: var(--bw) solid var(--line); }
.drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-4); font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--ink); }
.drawer-nav a:hover { background: var(--fill); color: var(--ink); }

.bottom-nav { display: none; }
.to-top { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 50; display: none; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: var(--bw) solid var(--ink); background: var(--bg); color: var(--ink); }
.to-top.show { display: grid; }
.to-top .icon { width: var(--icon-md); height: var(--icon-md); }
.to-top:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   §15  RESPONSIVE · REDUCED MOTION · PRINT
   ========================================================================== */
/* desktop: right rail follows the reader through long section stacks */
@media (min-width: 769px) {
  .hm-side, .dyn-side-col { position: sticky; top: calc(var(--nav-h) + var(--sp-6)); align-self: start; }
}

/* xl ≤1200: slimmer gutters */
@media (max-width: 1200px) {
  :root { --gap: var(--sp-6); }
}

/* lg ≤1024 (tablet landscape): centre + right; left headlines become a 2-column strip under the lead */
@media (max-width: 1024px) {
  :root { --side-w: 280px; --thumb-md: 144px; --thumb-lg: 200px; }
  .hm-top { grid-template-columns: minmax(0, 1fr) var(--side-w); grid-template-areas: "centre right" "left right"; }
  .hm-left { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: var(--gap); margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: var(--bw) solid var(--line); }
  .hm-left .brief:nth-child(-n+2) { padding-top: 0; }
  .hm-left .brief:nth-last-child(-n+2) { border-bottom: 0; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-lead { gap: var(--sp-6); }
}

/* md ≤768 (phones, tablet portrait): single column, content first, compact header */
@media (max-width: 768px) {
  :root { --pad: var(--sp-4); --gap: var(--sp-5); --nav-h: 44px; }
  body { padding-bottom: 60px; }                    /* room for the bottom nav */

  .util-hide-sm, .util-upd { display: none !important; }
  .util-list > li { padding: 0; border-left: 0; }
  .masthead-inner { padding-block: var(--sp-2); }
  .tp-brand .brand-word { height: 30px; }
  .tp-ham, .mh-search { visibility: visible; }
  .tp-nav { border-top: 0; }
  .tp-nav-right, .tp-nav-logo, .tp-nav.show-logo .tp-nav-logo { display: none; }
  .tp-menu { overflow-x: auto; scrollbar-width: none; }
  .tp-menu::-webkit-scrollbar { display: none; }
  .tp-menu .drop { display: none !important; }      /* phones: sections scroll sideways, no flyouts */
  .tp-menu > li > a { padding: 0 var(--sp-3); }
  .tp-nav-arrow { position: absolute; top: 0; bottom: 0; z-index: 2; display: none; place-items: center; width: var(--ctl-h-sm); padding: 0; border: 0; background: var(--bg); color: var(--ink); }
  .tp-nav-arrow.show { display: grid; }
  .tp-nav-arrow .icon { width: var(--icon-xs); height: var(--icon-xs); }
  .tp-nav-arrow-left { left: 0; border-right: var(--bw) solid var(--line); }
  .tp-nav-arrow-right { right: 0; border-left: var(--bw) solid var(--line); }
  .sub-nav-inner { min-height: var(--ctl-h-sm); }
  .sub-nav-list { gap: var(--sp-4); }

  .hm-top, .hm-layout, .dyn-layout { display: block; }
  .hm-top { padding-block: var(--sp-4) var(--sp-6); }
  .hm-left { grid-template-columns: 1fr; }
  .hm-left .brief:nth-child(2) { padding-top: var(--sp-4); }
  .hm-left .brief:nth-last-child(2) { border-bottom: var(--bw) solid var(--line); }
  .hm-right { margin-top: var(--sp-6); }
  .hm-side, .dyn-side-col { margin-top: var(--sp-7); }
  .hm-pair { grid-template-columns: 1fr; }
  .hm-sec { margin-bottom: var(--sp-7); }
  .lead-dek { font-size: var(--fs-base); }
  .story-row, .mini-row, .dyn-card, .author-row { grid-template-columns: minmax(0, 1fr) var(--thumb-sm); gap: var(--sp-3); padding-block: var(--sp-4); }
  .story-row-title, .dyn-card-title, .author-row-body h3 { font-size: var(--fs-lg); }
  .story-row .dek, .dyn-card .dek, .dyn-card .card-foot, .author-row-body p { display: none; }
  .sec-lead { grid-template-columns: 1fr; gap: var(--sp-4); }
  .grid3 { grid-template-columns: 1fr; gap: 0; }
  .grid3 .tile { padding-block: var(--sp-4); border-bottom: var(--bw) solid var(--line); }
  .grid3 .tile:first-child { padding-top: 0; }
  .grid3 .tile + .tile { display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb-sm); grid-template-areas: "t img" "m img"; column-gap: var(--sp-3); align-items: start; }
  .grid3 .tile + .tile .media-frame { grid-area: img; }
  .grid3 .tile + .tile .title-sm { grid-area: t; margin-top: 0; }
  .grid3 .tile + .tile .meta { grid-area: m; }
  .grid3--text { margin-top: 0; padding-top: 0; border-top: 0; }
  .grid3--text li { padding-block: var(--sp-3); border-bottom: var(--bw) solid var(--line); }
  .vs-rail { grid-auto-columns: 132px; }

  .dyn-article-body figure:is(.image-style-side, .image-style-align-right, .image-style-align-left) { float: none; max-width: 100%; margin: 0; }
  :is(.prose, .dyn-article-body, .page-body) dl { grid-template-columns: 1fr; gap: var(--sp-1); }
  :is(.prose, .dyn-article-body, .page-body) dd { margin-bottom: var(--sp-3); }
  .cf-row { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .author-card-top { gap: var(--sp-4); }
  .author-av { width: 64px; height: 64px; font-size: var(--fs-h3); }
  .wsx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-3); }


  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 80; display: block; padding-bottom: env(safe-area-inset-bottom); border-top: var(--bw) solid var(--line-2); background: var(--bg); }
  .bottom-nav-list { display: grid; grid-template-columns: repeat(5, 1fr); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); height: 56px; font-size: var(--fs-2xs); font-weight: var(--fw-medium); color: var(--muted); }
  .bottom-nav .icon { width: var(--icon-md); height: var(--icon-md); }
  .bottom-nav a.active { color: var(--ink); font-weight: var(--fw-bold); }
  .bottom-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  .to-top { right: var(--sp-3); bottom: 72px; }
  .push-ask { right: var(--sp-3); bottom: 72px; left: var(--sp-3); max-width: none; }
  .push-toast { bottom: 80px; }
}

/* sm ≤480 */
@media (max-width: 480px) {
  :root { --thumb-sm: 96px; }
}

.field-err { margin-top: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--red); }
.field-err:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .bv-br-view { overflow-x: auto; scrollbar-width: none; }
  .bv-br-set[aria-hidden] { display: none; }
}

@media print {
  .util-bar, .tp-nav, .sub-nav, .bv-breaking, .tp-ad, .ad-box, .dyn-side-col, .hm-side, .dyn-share, .comments,
  .site-footer, .bottom-nav, .to-top, .drawer, .drawer-overlay { display: none !important; }
  .dyn-layout { display: block; }
  :is(.prose, .dyn-article-body, .page-body) a[href^="http"]::after { content: " (" attr(href) ")"; font-size: var(--fs-xs); color: var(--faint); }
}

/* ---- error pages (App\ErrorPages) ---- */
.err-wrap { padding-block: var(--sp-9) var(--sp-10); }
.err { display: grid; gap: var(--sp-8); }
.err-main { max-width: 40rem; }
.err-ic { width: 44px; height: 44px; margin-bottom: var(--sp-3); color: var(--faint); }
.err-ic .icon { width: 100%; height: 100%; }
.err-img { display: block; max-width: min(320px, 100%); height: auto; margin-bottom: var(--sp-4); }
.err-code { margin: 0; font-size: clamp(4rem, 12vw, 6.5rem); font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.err-title { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-h2); }
.err-desc { margin: 0 0 var(--sp-6); max-width: 46ch; font-size: var(--fs-lg); line-height: var(--lh-normal); color: var(--ink-2); }
.err-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.err-actions .btn .icon { margin-right: var(--sp-1); }
.err-search { display: grid; gap: var(--sp-2); margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: var(--bw) solid var(--line); }
.err-search-row { display: flex; gap: var(--sp-2); }
.err-search-row .input { flex: 1 1 auto; min-width: 0; }   /* basis auto: a 0 basis collapsed the field in the stacked phone layout */
.err-links ul { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-6) 0 0; padding: 0; list-style: none; }
.err-links a { font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
.err-more { display: grid; gap: var(--sp-7); }
.err-h2 { margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: var(--bw) solid var(--ink); font-size: var(--fs-h5); }
.err-list { margin: 0; padding: 0; list-style: none; counter-reset: err; }
.err-list li { display: grid; grid-template-columns: 1.75rem 1fr; padding-block: var(--sp-2); border-bottom: var(--bw) solid var(--line); counter-increment: err; }
.err-list li::before { content: counter(err); font-weight: var(--fw-bold); color: var(--faint); }
.err-list a { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--ink); }
.err-list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 992px) { .err { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
@media (max-width: 575.98px) { .err-search-row { flex-direction: column; } .err-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---- live blog ---- */
.lb-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--muted); }
.lb-live { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 2px var(--sp-2); background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.lb-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lb-pulse 1.6s ease-in-out infinite; }
@keyframes lb-pulse { 50% { opacity: 0.25; } }
.lb-loc { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: var(--fw-medium); }
.lb-updated { font-weight: var(--fw-semibold); color: var(--ink); }
.lb { margin-top: var(--sp-7); }
.lb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4); padding-bottom: var(--sp-2); border-bottom: var(--bw-2) solid var(--ink); }
.lb-h { margin: 0; font-size: var(--fs-h4); }
.lb-count { font-weight: var(--fw-medium); color: var(--muted); }
.lb-order { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); }
.lb-order a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-weight: var(--fw-medium); }
.lb-order a[aria-current] { color: var(--ink); font-weight: var(--fw-bold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.lb-ended { margin: var(--sp-4) 0 0; }
.lb-new { position: sticky; top: calc(var(--nav-h) + var(--sp-2)); z-index: 5; display: flex; justify-content: center; margin-top: var(--sp-3); }
.lb-new[hidden] { display: none; }
.lb-new-btn .icon { margin-right: var(--sp-1); }
.lb-pinned { margin-top: var(--sp-4); border: var(--bw) solid var(--line-2); border-left: var(--bw-3) solid var(--brand); padding: 0 var(--sp-4); }
.lb-pinned[hidden] { display: none; }
.lb-feed { position: relative; margin-top: var(--sp-2); }
.lb-up { position: relative; padding: var(--sp-5) 0 var(--sp-5) var(--sp-5); border-left: var(--bw-2) solid var(--line); }
.lb-pinned .lb-up { padding-left: 0; border-left: 0; }
.lb-feed .lb-up::before { content: ""; position: absolute; left: -6px; top: calc(var(--sp-5) + 6px); width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: var(--bw-2) solid var(--faint); }
.lb-feed .lb-up.is-important::before, .lb-feed .lb-t-breaking::before { background: var(--red); border-color: var(--red); }
.lb-up + .lb-up { border-top: var(--bw) solid var(--line); }
.lb-up:focus { outline: none; }
.lb-up:focus-visible { outline: var(--focus); outline-offset: 4px; }
.lb-up.is-new { animation: lb-in 3s ease-out; }
@keyframes lb-in { from { background: color-mix(in srgb, var(--brand) 10%, transparent); } to { background: transparent; } }
.lb-up-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-2); }
.lb-up-time { display: inline-flex; align-items: center; min-height: 24px; font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--brand); font-variant-numeric: tabular-nums; }
.lb-up-time:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.lb-tz { font-weight: var(--fw-medium); color: var(--muted); }
.lb-up-date { font-size: var(--fs-xs); color: var(--faint); }
.lb-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px var(--sp-2); border: var(--bw) solid var(--line-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }
.lb-tag-breaking { border-color: var(--red); background: var(--red); color: #fff; }
.lb-tag-important, .lb-tag-correction { border-color: var(--red); color: var(--red); }
.lb-tag-pin { border-color: var(--brand); color: var(--brand); }
.lb-up.is-important .lb-up-title { color: var(--red); }
.lb-up-title { margin: 0 0 var(--sp-2); font-size: var(--fs-h5); line-height: var(--lh-snug, 1.3); }
.lb-up-body { font-size: var(--fs-base); }
.lb-up-body > :last-child { margin-bottom: 0; }
.lb-fig { margin: var(--sp-3) 0; }
.lb-fig img { display: block; width: 100%; height: auto; }
.lb-fig figcaption { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--muted); }
.lb-credit { color: var(--faint); }
.lb-video { position: relative; margin: var(--sp-3) 0; aspect-ratio: 16 / 9; background: var(--fill); }
.lb-video iframe, .lb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-up-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
.lb-up-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; }
.lb-src { display: inline-flex; align-items: center; gap: 4px; }
.lb-edited { font-style: italic; }
.lb-share { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 var(--sp-2); border: var(--bw) solid var(--line-2); background: var(--bg); font: inherit; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.lb-share:hover { border-color: var(--ink); color: var(--ink); }
.lb-empty, .lb-err { margin: var(--sp-5) 0; font-size: var(--fs-md); color: var(--muted); }
.lb-err { color: var(--red); font-weight: var(--fw-semibold); }
.lb-err[hidden], .lb-pager[hidden] { display: none; }
.lb-pager { display: flex; justify-content: center; margin-top: var(--sp-5); }
.lb-related { margin-top: var(--sp-7); }
.lb-related ul { margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.lb-related li { padding-block: var(--sp-2); border-bottom: var(--bw) solid var(--line); }
.lb-related a { font-weight: var(--fw-semibold); color: var(--ink); }
@media (max-width: 575.98px) {
  .lb-up { padding-left: var(--sp-4); }
  .lb-pinned { padding: 0 var(--sp-3); }
  .lb-head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .lb-dot, .lb-up.is-new { animation: none; } }

/* ---- web story player dialog and cards ---- */
.vs-card { position: relative; }
.vs-meta { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--faint); }
.vs-cat { font-weight: var(--fw-semibold); color: var(--brand); }
.wsx-cat { display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--brand); }
.vs-live { position: absolute; top: var(--sp-2); left: var(--sp-2); padding: 1px var(--sp-2); background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); }
.sp-dlg { position: fixed; inset: 0; z-index: 1000; width: min(420px, 100vw); height: min(780px, 100dvh); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: #000; overflow: hidden; }
.sp-dlg::backdrop { background: rgba(0, 0, 0, 0.8); }
.sp-host { position: absolute; inset: 0; }
.sp-host amp-story-player { display: block; width: 100%; height: 100%; }
.sp-x { position: absolute; z-index: 3; top: var(--sp-2); right: var(--sp-2); display: grid; place-items: center; width: 44px; height: 44px; border: var(--bw) solid #fff; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; }
.sp-open { position: absolute; z-index: 3; left: var(--sp-2); bottom: var(--sp-2); padding: 4px var(--sp-2); background: rgba(0, 0, 0, 0.7); color: #fff; font-size: var(--fs-xs); text-decoration: underline; }
html.sp-lock { overflow: hidden; }

/* ---- image galleries (/gallery/{slug} and [gallery id=N] in articles) ---- */
.mg { margin: var(--sp-6) 0; }
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); font-weight: 600; }
.mg-head span { color: var(--faint); font-weight: 400; font-size: .875rem; }
.mg-head a { color: var(--ink); }
.mg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.mg-item { margin: 0; min-width: 0; }
.mg-item figure { margin: 0; }
.mg-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.mg-item figcaption { padding-top: var(--sp-1); font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.mg-credit { color: var(--faint); }
.mg-masonry .mg-list { display: block; columns: 3 220px; column-gap: var(--sp-3); }
.mg-masonry .mg-item { break-inside: avoid; margin-bottom: var(--sp-3); }
.mg-masonry .mg-item img { aspect-ratio: auto; }
.mg-carousel .mg-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--sp-3); padding-bottom: var(--sp-2); }
.mg-carousel .mg-item { flex: 0 0 min(88%, 640px); scroll-snap-align: start; }
.mg-carousel .mg-item img { aspect-ratio: 3 / 2; }
.mg-desc { max-width: 72ch; color: var(--muted); margin-bottom: var(--sp-4); }
@media (max-width: 575px) { .mg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); } .mg-masonry .mg-list { columns: 2; } }
@media (max-width: 359px) { .mg-list { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Archives: /article/, /category/, /tag/ (shared components)
   ========================================================================== */
.arc-head { margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: var(--bw-2) solid var(--ink); }
.arc-head h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.arc-desc { max-width: 72ch; margin-top: var(--sp-2); color: var(--muted); line-height: var(--lh-normal); }
.cat-desc { margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); }
.arc-count { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--faint); }
.arc-count .icon { width: 14px; height: 14px; fill: currentColor; }
.arc-count strong { color: var(--ink); }
.arc-count a { color: var(--ink); text-decoration: underline; }
.arc-sec-title { margin-bottom: var(--sp-4); padding-bottom: var(--sp-2); border-bottom: var(--bw) solid var(--line); font-size: var(--fs-h5); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); }

/* search + filters */
.arc-filters { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-7); padding: var(--sp-4); border: var(--bw) solid var(--line); }
.arc-filters--slim { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; }
.arc-search { position: relative; }
.arc-search .icon { position: absolute; left: var(--sp-3); top: 50%; width: 14px; height: 14px; transform: translateY(-50%); fill: var(--faint); pointer-events: none; }
.arc-search input { width: 100%; height: var(--ctl-h); padding: 0 var(--sp-3) 0 var(--sp-8); border: var(--bw) solid var(--control-border); background: #fff; font: inherit; font-size: var(--fs-md); }
.arc-selects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-3); }
.arc-field { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.arc-field label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted); }
.arc-field select { width: 100%; height: var(--ctl-h); padding: 0 var(--sp-2); border: var(--bw) solid var(--control-border); background: #fff; font: inherit; font-size: var(--fs-sm); }
.arc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.arc-actions .btn .icon { width: 13px; height: 13px; fill: currentColor; }
.arc-filters :is(input, select):focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* article cards */
.arc-grid, .arc-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6); }
.arc-featured { margin-bottom: var(--sp-8); }
.arc-feat-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.arc-feat-grid .ac--lead { grid-row: span 2; }
.arc-feat-grid .ac--side .ac-dek { display: none; }
.ac { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.ac-img { aspect-ratio: 16 / 9; }
.ac-body { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ac-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); }
.ac-cat { color: var(--brand); }
.ac-cat:hover { text-decoration: underline; }
.ac-flag { padding: 1px var(--sp-2); border: var(--bw) solid var(--line-2); color: var(--muted); font-size: var(--fs-2xs); }
.ac-flag--breaking { border-color: var(--red); color: var(--red); }
.ac-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.ac--lead .ac-title { font-size: var(--fs-h3); }
.ac-title a:hover { color: var(--brand); }
.ac-dek { color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-normal); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1); font-size: var(--fs-xs); color: var(--faint); }
.ac-meta a { color: var(--ink-2); font-weight: var(--fw-semibold); }
.ac-meta a:hover { text-decoration: underline; }

/* category cards */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--sp-6); }
.cc { display: flex; flex-direction: column; min-width: 0; border: var(--bw) solid var(--line); }
.cc-img { aspect-ratio: 16 / 9; }
.cc-ph { display: grid; place-items: center; height: 100%; }
.cc-ph .icon { width: 40px; height: 40px; fill: var(--line-2); }
.cc-body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; padding: var(--sp-4); }
.cc-title { font-size: var(--fs-h4); line-height: var(--lh-tight); }
.cc-title a:hover { color: var(--brand); }
.cc-desc { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-normal); }
.cc-count { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.cc-count .icon { width: 13px; height: 13px; fill: var(--faint); }
.cc-latest, .tc-latest { font-size: var(--fs-sm); line-height: var(--lh-normal); }
.cc-latest a, .tc-latest a { color: var(--ink-2); }
.cc-latest a:hover, .tc-latest a:hover { color: var(--brand); text-decoration: underline; }
.cc-latest time { display: block; font-size: var(--fs-xs); color: var(--faint); }
.cc-lbl { margin-right: var(--sp-1); font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--faint); }
.cc-btn { margin-top: auto; align-self: flex-start; gap: var(--sp-2); }
.cc-btn .icon, .tc-btn .icon { width: 12px; height: 12px; fill: currentColor; }

/* tags */
.tg-high { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-7); }
.tg-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.tg-cloud a { display: inline-flex; align-items: baseline; gap: var(--sp-1); padding: var(--sp-1) var(--sp-3); border: var(--bw) solid var(--line-2); color: var(--ink); line-height: 1.4; }
.tg-cloud a:hover { border-color: var(--ink); }
.tg-w1 { font-size: var(--fs-sm); } .tg-w2 { font-size: var(--fs-md); } .tg-w3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); } .tg-w4 { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.tg-n { font-size: var(--fs-2xs); color: var(--faint); font-weight: var(--fw-regular); }
.tg-rank { margin: 0; padding: 0; list-style: none; }
.tg-rank li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: var(--bw) solid var(--line); font-size: var(--fs-sm); }
.tg-rank li span { color: var(--faint); white-space: nowrap; }
.tg-rank a { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.tg-rank a:hover { color: var(--brand); }
.tg-az { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-5); }
.tg-az > * { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 var(--sp-2); border: var(--bw) solid var(--line-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.tg-az > span { color: var(--line-2); border-color: var(--line); }
.tg-az a:hover { border-color: var(--ink); }
.tg-az a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--sp-4); }
.tc { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-4); border: var(--bw) solid var(--line); }
.tc-name { font-size: var(--fs-lg); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.tc-name a { display: inline-flex; align-items: center; gap: var(--sp-2); }
.tc-name .icon { width: 14px; height: 14px; fill: var(--brand); flex-shrink: 0; }
.tc-name a:hover { color: var(--brand); }
.tc-count { font-size: var(--fs-xs); color: var(--faint); }
.tc-btn { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: auto; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--brand); }
.tc-btn:hover { text-decoration: underline; }

/* related links on category and tag pages */
.arc-related { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.arc-related-h { display: inline-flex; align-items: center; gap: var(--sp-2); margin-right: var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--faint); }
.arc-related-h .icon { width: 12px; height: 12px; fill: currentColor; }
.arc-related a { padding: var(--sp-1) var(--sp-3); border: var(--bw) solid var(--line-2); font-size: var(--fs-sm); }
.arc-related a:hover { border-color: var(--ink); }
.arc-related .arc-related-all { border-style: dashed; color: var(--muted); }

/* empty, loading */
.arc-empty { padding: var(--sp-9) var(--sp-4); border: var(--bw) solid var(--line); text-align: center; }
.arc-empty :is(h2, h3) { margin-bottom: var(--sp-2); font-size: var(--fs-h4); }
.arc-empty p { margin-bottom: var(--sp-4); color: var(--muted); }
.arc .pg-summary { margin-bottom: var(--sp-4); font-size: var(--fs-sm); color: var(--faint); }
.skel { min-height: 220px; background: var(--fill); animation: skel 1.2s ease-in-out infinite alternate; }
@keyframes skel { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.btn-more:disabled { opacity: .6; cursor: progress; }

@media (max-width: 1199px) { .arc-selects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .arc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-feat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .arc-feat-grid .ac--lead { grid-column: 1 / -1; grid-row: auto; }
  .tg-high { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tg-cloud-box { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .arc-grid, .arc-feat-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .arc-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-filters--slim { grid-template-columns: minmax(0, 1fr); }
  .tg-high { grid-template-columns: minmax(0, 1fr); }
  .arc-head h1 { font-size: var(--fs-h2); }
}
@media (max-width: 400px) { .arc-selects { grid-template-columns: minmax(0, 1fr); } .arc-actions .btn { flex: 1 1 auto; } }
.dyn-toc ol ol { margin-top: var(--sp-1); padding-left: 1.25em; list-style: lower-alpha; font-size: var(--fs-sm); }
.art-source { max-width: var(--prose-w); margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: var(--bw) solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.art-source-l { margin-right: var(--sp-2); font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--faint); }

/* ---- Touch screens: 44 px targets and no input zoom ------------------------------------------------
   Mouse layouts are unchanged. Controls grow through the size tokens; one-line text links keep their
   look and get a transparent 44 px tall hit area instead. Form text is 16 px so iOS Safari does not
   zoom the page when a field is focused. */
@media (pointer: coarse) {
  :root { --ctl-h: 44px; --ctl-h-sm: 44px; --tap: 44px; }
  :root :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="submit"], [type="button"], [type="color"]), select, textarea) { font-size: max(16px, 1rem); }
  .skip-link, .ft-links a, .ft-legal a, .arc-related a, .bv-br-set a, .sub-nav-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .bv-breaking { padding-block: 0; }
  .bv-br-pause { width: 44px; height: 44px; }
  .dyn-follow.sm .fl { width: 44px; height: 44px; }
  .ft-logo { display: inline-flex; align-items: center; min-height: 44px; }
  :is(.dyn-breadcrumb a, .sec-title a, .util-signin, .ac-meta a, .ac-cat, .sec-more, .author-more, .cm-time, .arc-related-all, .dyn-author a, .tp-brand) { position: relative; }
  :is(.dyn-breadcrumb a, .sec-title a, .util-signin, .ac-meta a, .ac-cat, .sec-more, .author-more, .cm-time, .arc-related-all, .dyn-author a, .tp-brand)::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; min-width: 44px; transform: translateY(-50%);
  }
}

/* ==========================================================================
   §18  TYPOGRAPHY ROLES — editorial (Faustina) and interface (Montserrat)
   The two fonts are tokens (--font-editorial, --font-ui, §1). This section only says which role each element plays;
   sizes stay with the components. Rule of thumb: anything a reader reads as journalism (headlines, standfirsts,
   article text) is editorial; anything that operates or labels the site is interface. Icons are inline SVG and are
   not affected. Hierarchy:
     logo / wordmark ......... UI 800        section & widget headings .. UI 700
     headlines (home, article) editorial 700  article body ................ editorial 400
     navigation .............. UI 600        category labels ............. UI 700
     metadata ................ UI 400        buttons ..................... UI 600        footer .. UI 400
   ========================================================================== */

/* sizes of the editorial scale: a serif reads smaller than a sans at the same size, so small headlines get a step up */
:root {
  --fs-ed-xs: 0.9375rem;                                       /* 15 · sidebar and compact list headlines */
  --fs-ed-sm: 1.0625rem;                                       /* 17 · list headlines */
  --fs-prose: clamp(1.125rem, 1.07rem + 0.25vw, 1.1875rem);   /* 18→19 article text */
  --lh-headline: 1.2;
  --ls-headline: -0.005em;
}

/* ---- editorial: headings and headline text ---- */
h1, h2, h3, h4,
.lead-title, .title-md, .title-sm, .story-row-title, .brief-title, .dyn-card-title, .ac-title, .adj-title, .ss-title,
.vs-title, .wsx-title, .lb-up-title, .page-h1, .err-title,
.sec-list a, .headline-list a, .grid3--text a, .timeline a, .rank-list a, .dyn-rank a, .dyn-list a, .side-latest a,
.lb-related a, .err-list a, .bv-br-set a, .bv-br-plain {
  font-family: var(--font-editorial);
  font-optical-sizing: auto;
  letter-spacing: var(--ls-headline);
}
h1, h2, h3, .lead-title, .title-md, .story-row-title, .dyn-card-title, .ac-title, .page-h1, .err-title { font-weight: var(--fw-headline); }
h1, .lead-title, .page-h1 { line-height: var(--lh-headline); }
h4, .title-sm, .brief-title, .adj-title, .ss-title, .vs-title, .wsx-title, .lb-up-title,
.sec-list a, .headline-list a, .grid3--text a, .timeline a, .rank-list a, .dyn-rank a, .dyn-list a, .side-latest a, .lb-related a, .err-list a { font-weight: var(--fw-bold); }
.title-sm, .brief-title, .sec-list a, .headline-list a, .grid3--text a { font-size: var(--fs-ed-sm); }
.ss-title, .side-latest a, .vs-title, .timeline a, .rank-list a, .dyn-rank a, .dyn-list a, .adj-title, .err-list a { font-size: var(--fs-ed-xs); }
.bv-br-set a, .bv-br-plain { font-size: var(--fs-base); font-weight: var(--fw-semibold); }   /* breaking / latest ticker */
/* headlines wrap on whole words and avoid single-word last lines; never clipped */
:is(h1, h2, h3, .lead-title, .title-md, .story-row-title, .dyn-card-title, .ac-title) { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
:is(.title-sm, .brief-title, .ss-title, .adj-title, .sec-list a, .headline-list a) { text-wrap: pretty; overflow-wrap: break-word; }

/* ---- editorial: reading text ---- */
.prose, .dyn-article-body, .page-body, .dek, .lead-dek, .ac-dek, .dyn-article .lede {
  font-family: var(--font-editorial);
  font-weight: var(--fw-regular);
}
.dek { font-size: var(--fs-base); }
:is(.prose, .dyn-article-body, .page-body) { line-height: 1.68; }
:is(.prose, .dyn-article-body, .page-body) :is(strong, b) { font-weight: var(--fw-bold); }
:is(.prose, .dyn-article-body, .page-body) :is(h2, h3, h4) { font-family: var(--font-editorial); font-weight: var(--fw-headline); line-height: var(--lh-snug); }
:is(.prose, .dyn-article-body, .page-body) :is(h5, h6),
:is(.prose, .dyn-article-body, .page-body) :is(figcaption, table, caption, .raw-html-embed, cite, code, pre, kbd, button, input, select, textarea, .btn) { font-family: var(--font-ui); }
:is(.prose, .dyn-article-body, .page-body) blockquote { font-family: var(--font-editorial); font-style: italic; }

/* ---- interface: headings that label the site, not stories ---- */
h5, h6,
.sec-title, .widget-title, .arc-sec-title, .arc-related-h, .comments-title, .cm-dlg-title, .cm-empty-t, .dyn-toc-title, .dyn-tags-lbl, .dyn-share-lbl,
.team-head, .team-name, .author-articles-head, .mg-head, .err-h2, .lb-h, .cc-title, .tc-name, .ft-h, .ft-sub {
  font-family: var(--font-ui);
  letter-spacing: var(--ls-normal);
}
.sec-title, .widget-title, .arc-sec-title, .arc-related-h, .comments-title, .team-head, .author-articles-head, .ft-h, .err-h2, .lb-h { font-weight: var(--fw-bold); }

/* ---- interface: brand, navigation, labels, metadata, controls, footer ---- */
.wordmark, .brand-fallback { font-family: var(--font-ui); font-weight: var(--fw-extrabold); letter-spacing: -0.02em; }
.tp-menu > li > a, .tp-more-btn, .tp-menu .drop a, .tp-more .drop li > a, .sub-nav-list a, .drawer a, .bottom-nav a { font-family: var(--font-ui); font-weight: var(--fw-semibold); }
.tp-menu a.active, .tp-more.has-active > .tp-more-btn { font-weight: var(--fw-bold); }
.kicker, .dyn-tag, .ss-cat, .vs-cat, .wsx-cat, .ac-kicker, .ac-cat, .lb-tag, .sub-nav-label, .bv-br-label { font-family: var(--font-ui); font-weight: var(--fw-bold); }
.meta, .dyn-meta, .dyn-byline, .art-dates, .ac-meta, .side-latest time, .sec-list time, .timeline time, .lb-up-time, .dyn-breadcrumb, figcaption, .credit { font-family: var(--font-ui); font-weight: var(--fw-regular); }
.btn, button, input, select, textarea, label, .field-label { font-family: var(--font-ui); }
.btn, .btn-more, .sec-more, .author-more { font-weight: var(--fw-semibold); }
.site-footer { font-family: var(--font-ui); font-weight: var(--fw-regular); }
.util-bar, .tp-nav, .drawer, .bottom-nav, .pager, .dyn-pager, .arc-filters, .arc-search, .tg-az { font-family: var(--font-ui); }

/* ==========================================================================
   §19  COLOUR ROLES — Admin → Settings → Branding (App\Theme)
   Each Branding colour has its own variable and its own elements; nothing here derives one colour from another.
     --color-primary  links, tags, category labels, active states (via --brand, §1)
     --color-button   buttons: primary, submit, subscribe, load / read more, outline and back-to-top; hover, active
                      and focus shades come from the button colour (--color-button-hover / -active / -ink)
     --color-icon     social, share, contact and small meta icons
     --color-heading  headings and news titles (via --heading, §1)
     --color-footer   footer background (§14)
   ========================================================================== */

/* ---- buttons ---- */
.btn-primary, .ft-news-row button {
  background: var(--color-button); border-color: var(--color-button); color: var(--color-button-text);
}
.btn-primary:hover, .ft-news-row button:hover { background: var(--color-button-hover); border-color: var(--color-button-hover); color: var(--color-button-text); }
.btn-primary:active, .ft-news-row button:active { background: var(--color-button-active); border-color: var(--color-button-active); color: var(--color-button-text); }
.btn:hover:not(.btn-primary, .btn-danger, .btn-success, .btn-text), .cm-load:hover { border-color: var(--color-button-ink); color: var(--color-button-ink); }
.btn-outline, .btn-more { border-color: var(--color-button-ink); color: var(--color-button-ink); }
.btn-outline:hover, .btn-more:hover, .btn-more:focus-visible, .to-top:hover {
  background: var(--color-button); border-color: var(--color-button); color: var(--color-button-text);
}
.btn-outline:active, .btn-more:active, .to-top:active { background: var(--color-button-active); border-color: var(--color-button-active); color: var(--color-button-text); }
:is(.btn, .btn-more, .ft-news-row button, .to-top):focus-visible { outline: var(--bw-2) solid var(--color-button-ink); outline-offset: 2px; }
.ft-news-row button:focus-visible { background: var(--color-button-hover); border-color: var(--color-button-hover); color: var(--color-button-text); }
.btn-primary.is-loading::after { border-color: color-mix(in srgb, var(--color-button-text) 35%, transparent) color-mix(in srgb, var(--color-button-text) 35%, transparent) var(--color-button-text) var(--color-button-text); }

/* ---- icons ---- */
.dyn-follow .fl, .ft-social .fl, .cs, .ft-ic, .ft-ident .ft-ic, .art-dates .icon, .tc-name .icon, .ft-map .icon, .ft-ci .icon { color: var(--color-icon); }
.tc-name .icon { fill: var(--color-icon); }
.dyn-follow .fl:hover, .dyn-follow .fl:focus-visible, .ft-social .fl:hover, .ft-social .fl:focus-visible, .cs:hover, .cs:focus-visible {
  color: color-mix(in srgb, var(--color-icon) 78%, #000); border-color: var(--color-icon);
}
.cs.copied { border-color: var(--color-icon); color: var(--color-icon); }

/* ---- headings and news titles ---- */
.lead-title, .title-md, .title-sm, .story-row-title, .brief-title, .dyn-card-title, .ac-title, .adj-title, .ss-title,
.vs-title, .wsx-title, .lb-up-title, .page-h1, .err-title, .sec-title, .widget-title, .arc-sec-title,
.sec-list a, .headline-list a, .grid3--text a, .rank-list a, .dyn-rank a, .dyn-list a, .side-latest a, .lb-related a, .err-list a { color: var(--heading); }
.lb-up.is-important .lb-up-title { color: var(--red); }
