/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: #1a1a1a;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ===== DESIGN TOKENS ===== */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2d42;
  --navy-light: #253d56;
  --accent:     #c0392b;
  --accent-2:   #e74c3c;
  --blue:       #2563eb;
  --gold:       #f59e0b;
  --green:      #10b981;
  --text-dark:  #0d1117;
  --text-mid:   #374151;
  --text-muted: #6b7280;
  --border:     #e5e7eb;
  --bg-card:    #ffffff;
  --bg-section: #f0f4f8;
  --tag-tech:   #dbeafe;
  --tag-ai:     #ede9fe;
  --tag-fin:    #d1fae5;
  --tag-infra:  #fef3c7;
  --max-w:      1200px;
  /* Extended palette */
  --white:          #ffffff;
  --bg-page:        #f5f5f5;
  --bg-light:       #f8fafc;
  --navy-dark:      #1e3a5f;
  --blue-dark:      #1d4ed8;
  --text-pale:      #9ca3af;
  --text-light:     #d1d5db;
  --text-dim:       #4b5563;
  --tag-start-bg:   #fce7f3;
  --tag-start-fg:   #9d174d;
  --tag-news-bg:    #e5e7eb;
  --tag-news-fg:    #374151;
  --tag-podcast-bg: #ccfbf1;
  --tag-podcast-fg: #0f766e;
  /* Tag border tokens — one step darker than each bg, keeps pill legible on white surfaces */
  --tag-tech-border:    #bfdbfe;
  --tag-ai-border:      #ddd6fe;
  --tag-fin-border:     #a7f3d0;
  --tag-infra-border:   #fde68a;
  --tag-start-border:   #fbcfe8;
  --tag-news-border:    #d1d5db;
  --tag-podcast-border: #5eead4;
  --chg-dn-bg:      #fee2e2;
  --chg-dn-fg:      #991b1b;
  /* Section-header category accent tokens — used by .section-header--<cat> modifiers */
  --section-tech-accent:    #2563eb;
  --section-tech-heading:   #1d4ed8;
  --section-ai-accent:      #7c3aed;
  --section-ai-heading:     #6d28d9;
  --section-fin-accent:     #10b981;
  --section-fin-heading:    #065f46;
  --section-pod-accent:     #0d9488;
  --section-pod-heading:    #0f766e;
  /* Type scale */
  --fs-h1:      2rem;       /* 32px — article headline */
  --fs-h2:      1.5rem;     /* 24px — article section heading */
  --fs-h3:      1.25rem;    /* 20px — article sub-heading */
  --fs-h4:      1.0625rem;  /* 17px — article aside heading */
  --lh-heading: 1.3;
  --ls-heading: -0.015em;
  /* Article prose layout */
  --prose-max-w: 720px;     /* shared reading-column width */
  --hero-max-w:  960px;     /* hero image — slightly wider than prose */
  --prose-lh:    1.8;       /* body copy line-height */
  --prose-fs:    1.0625rem; /* 17px — slightly larger than base for comfort */
  --code-bg:     #1e2d3d;   /* dark surface for pre/code — immune to white-theme override */
  /* Image aspect ratios */
  --ratio-hero: 10 / 3;  /* hero banner: 360px at 1200px wide */
  --ratio-card: 16 / 9;  /* article-card and more-card thumbnails */
  --ratio-side:  5 / 4;  /* side-card thumbnail (90 × 72) */
  --tap-min:    44px;    /* minimum touch-target dimension (WCAG 2.5.5) */
  /* Surface & text-strength tokens — used by liveblog, series, explainer, opinion, author-spotlight */
  --surface:        #ffffff;   /* card/widget surface (lightest) */
  --surface-muted:  #f3f4f6;  /* muted image placeholder / subtle fill */
  --surface-2:      #f6f7fb;  /* TL;DR / explainer card background */
  --text-strong:    #111827;  /* headings and strong labels inside widgets */
  /* Podcast player bar tokens — light mode: surface-tinted bar */
  --ppb-bg:           #1e293b;  /* bar background — intentionally dark in both modes for contrast */
  --ppb-border:       rgba(255, 255, 255, 0.08);  /* top border separator */
  --ppb-text:         #e2e8f0;  /* default icon/control color */
  --ppb-title-color:  #f8fafc;  /* episode title */
  --ppb-sub-color:    #94a3b8;  /* sub-line and time display */
  --ppb-btn-hover-bg: rgba(255, 255, 255, 0.08); /* button hover surface */
  --ppb-btn-hover-fg: #ffffff;  /* button hover foreground */
  --ppb-close-hover:  #f1f5f9;  /* close button hover */
}

/* ===== SKIP TO CONTENT (keyboard / screen-reader a11y) ===== */
/* Visually hidden until focused; then pops into view above the nav */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  display: inline-block;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.1s ease;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-to-content { transition: none; }
}

/* ===== LAYOUT UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }

/* Ensure direct children of card grids flex-stretch so cards fill the full row height */
.grid-2 > *,
.grid-3 > *,
.grid-4 > * { display: flex; flex-direction: column; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

/* ===== CATEGORY TAGS ===== */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1.4;
}
.tag-tech  { background: var(--tag-tech);     color: var(--blue-dark);    border: 1px solid var(--tag-tech-border); }
.tag-ai    { background: var(--tag-ai);       color: #6d28d9;             border: 1px solid var(--tag-ai-border); }
.tag-fin   { background: var(--tag-fin);      color: #065f46;             border: 1px solid var(--tag-fin-border); }
.tag-infra { background: var(--tag-infra);    color: #92400e;             border: 1px solid var(--tag-infra-border); }
.tag-start { background: var(--tag-start-bg); color: var(--tag-start-fg); border: 1px solid var(--tag-start-border); }
.tag-break { background: var(--accent);       color: var(--white); }
.tag-news  { background: var(--tag-news-bg);  color: var(--tag-news-fg);  border: 1px solid var(--tag-news-border); }

/* ===== TIMESTAMP ===== */
.ts {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--navy);
}
.section-header h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-header .see-all {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header .see-all:hover { text-decoration: underline; }

/* Section-header category modifiers — replace inline style= colour hacks */
.section-header--tech  { border-bottom-color: var(--section-tech-accent); }
.section-header--tech  h2 { color: var(--section-tech-heading); }
.section-header--ai    { border-bottom-color: var(--section-ai-accent); }
.section-header--ai    h2 { color: var(--section-ai-heading); }
.section-header--fin   { border-bottom-color: var(--section-fin-accent); }
.section-header--fin   h2 { color: var(--section-fin-heading); }
.section-header--pod   { border-bottom-color: var(--section-pod-accent); }
.section-header--pod   h2 { color: var(--section-pod-heading); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy);
  color: var(--text-pale);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--navy-light);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; white-space: nowrap; }
.topbar a { color: var(--text-pale); }
.topbar a:hover { color: var(--border); }
.topbar-date { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.topbar-sep { width: 1px; height: 12px; background: var(--text-mid); flex-shrink: 0; }
.topbar-pro { color: var(--gold) !important; font-weight: 600; }

/* ===== PRIMARY NAV ===== */
.primary-nav {
  background: var(--navy);
  padding: 0;
  border-bottom: 1px solid var(--navy-light);
}
.primary-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, #e74c3c 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.logo-tagline {
  font-size: 9.5px;
  color: var(--text-pale);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-search {
  display: flex;
  align-items: center;
  background: var(--navy-light);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-light);
  font-size: 13px;
  font-family: inherit;
  width: 160px;
}
.nav-search input::placeholder { color: var(--text-muted); opacity: 1; }
.nav-search svg { color: var(--text-muted); flex-shrink: 0; }
.btn-subscribe {
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-subscribe:hover { background: var(--accent-2); }

/* ===== CATEGORY NAV ===== */
.cat-nav {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--navy-light);
}
.cat-nav .container {
  display: flex;
  align-items: center;
  height: 42px;
  gap: 0;
  overflow-x: auto;
}
.cat-nav a {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.01em;
}
.cat-nav a:hover { color: var(--white); background: var(--navy-light); }
.cat-nav a.active { color: var(--white); border-bottom-color: var(--accent); }
.cat-nav-live { margin-left: auto !important; color: var(--gold) !important; }

/* ===== BREAKING NEWS ===== */
.breaking-bar {
  background: var(--accent);
  padding: 0;
}
.breaking-bar .container {
  display: flex;
  align-items: center;
  height: 36px;
}
.breaking-label {
  background: var(--white);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
}
.breaking-ticker {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}
.breaking-item {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breaking-dot {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  flex-shrink: 0;
}
.breaking-new {
  background: rgba(255,255,255,0.2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--white);
}
.breaking-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.breaking-link:hover { border-bottom-color: rgba(255,255,255,0.9); }
.breaking-bar--info { background: var(--navy, #1f2937); }
.breaking-bar--warning { background: #b45309; }
.breaking-bar--urgent { background: var(--accent); }
.breaking-dismiss {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 120ms ease;
}
.breaking-dismiss:hover,
.breaking-dismiss:focus-visible { opacity: 1; }
.breaking-dismiss:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.breaking-bar[hidden] { display: none !important; }

/* ===== TOP STORIES ===== */
.top-stories {
  padding: 28px 0 16px;
  background: var(--white);
}
.top-stories-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr);
  gap: 24px;
}
/* Hero column wrapper stretches to row height; let the hero card and its
   image fill it so the side-cards stack never leaves a gap below the hero. */
@media (min-width: 1025px) {
  .top-stories-grid > div:first-child {
    display: flex;
    flex-direction: column;
  }
  .top-stories-grid > div:first-child > .hero-card { flex: 1; }
  .top-stories-grid > div:first-child > .hero-card > .hero-img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* Hero card */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.hero-card:hover .hero-title { text-decoration: underline; }
.hero-img {
  width: 100%;
  aspect-ratio: var(--ratio-hero);
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img--placeholder {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  width: 100%;
  height: 100%;
}
.hero-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(13,27,42,0.97) 0%, rgba(13,27,42,0) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
}
.hero-content .tag { margin-bottom: 10px; }
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-pale);
}
.hero-meta .author { font-weight: 600; color: var(--text-light); }

/* Side cards */
.side-cards { display: flex; flex-direction: column; gap: 0; }
.side-card {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.side-card:last-child { border-bottom: none; }
.side-card:hover .side-card-title { color: var(--accent); }
.side-card-img {
  width: 90px;
  aspect-ratio: var(--ratio-side);
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
}
.side-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-card-img--placeholder {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  width: 100%;
  height: 100%;
}
.side-card-body { flex: 1; min-width: 0; }
.side-card-body .tag { margin-bottom: 6px; }
.side-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 6px;
  transition: color 0.15s;
}

/* ===== CONTENT AREA + SIDEBAR ===== */
/* Utility: white surface wrapper — replaces inline style="background:#fff" */
.bg-white { background: var(--white); }

.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 20px 0 32px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  /* Fill the grid cell height so all cards in a row reach equal height */
  height: 100%;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.article-card:hover .article-title { color: var(--accent); }
.article-card-img {
  width: 100%;
  aspect-ratio: var(--ratio-card);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
}
.article-card-img--featured { aspect-ratio: 2 / 1; }
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-img--placeholder {
  width: 100%;
  height: 100%;
}
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-card-body .tag { margin-bottom: 8px; }
.article-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color 0.15s;
  /* Clamp titles in grid cards so variable-length headlines don't break row alignment */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-excerpt {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-mark {
  background: rgba(245, 158, 11, 0.22);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.article-meta .ts { font-size: 11px; }

/* Article title size variant for featured card — replaces inline style="font-size:17px" */
.article-title--featured { font-size: 17px; }

/* Side-card meta row (author / date / read-time) — replaces inline style="margin-top:6px" */
.side-card-meta { margin-top: 6px; }

/* More-card label row top spacing — replaces inline style="margin-top:12px" */
.card-label-row--more { margin-top: 12px; }

/* Placeholder image fills */
.img-navy { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.img-purple { background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%); }
.img-green { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); }
.img-gold { background: linear-gradient(135deg, #78350f 0%, #92400e 100%); }
.img-gray { background: linear-gradient(135deg, var(--text-mid) 0%, #1f2937 100%); }
.img-blue { background: linear-gradient(135deg, #1e40af 0%, var(--blue-dark) 100%); }
.img-red { background: linear-gradient(135deg, #7f1d1d 0%, var(--chg-dn-fg) 100%); }
.img-teal { background: linear-gradient(135deg, var(--tag-podcast-fg) 0%, #0d9488 100%); }

/* ===== SECTION BLOCKS ===== */
.section-block { margin-bottom: 32px; }

/* hub-empty: home empty-state shown when no edition posts are available */
.hub-empty { padding: 48px 20px 72px; }
.hub-empty__blurb {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
}

/* section-header-icon: inline SVG icon inside section heading (e.g. podcast mic) */
.section-header-icon {
  vertical-align: -2px;
  margin-right: 5px;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-widget-header {
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Most Read */
.most-read-list { padding: 8px 0; }
.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.most-read-item:last-child { border-bottom: none; }
.most-read-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 24px;
  flex-shrink: 0;
}
.most-read-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  transition: color 0.15s;
}
.most-read-item:hover .most-read-title { color: var(--accent); }

/* Markets Widget */
.market-list { padding: 4px 0; }
.market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.market-item:last-child { border-bottom: none; }
.market-name { font-weight: 600; color: var(--text-mid); }
.market-val { font-weight: 700; color: var(--text-dark); }
.market-chg { font-weight: 600; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.chg-up { background: var(--tag-fin); color: #065f46; }
.chg-dn { background: var(--chg-dn-bg); color: var(--chg-dn-fg); }

/* Newsletter sidebar */
.newsletter-side { padding: 16px; text-align: center; }
.newsletter-side h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.newsletter-side p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.nl-input-row { display: flex; gap: 0; }
.nl-input-row input {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 5px 0 0 5px;
  outline: none;
  color: var(--text-dark);
}
.nl-input-row input:focus { border-color: var(--accent); }
.nl-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
.nl-btn:hover { background: var(--accent-2); }
.nl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nl-input-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* Trending tags sidebar */
.trending-tags {
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trending-tags .tag {
  cursor: pointer;
  font-size: 11px;
  padding: 4px 10px;
}

/* ===== SECTIONS BACKGROUND ===== */
.bg-section { background: var(--bg-section); padding: 28px 0; }

/* ===== FULL-WIDTH NEWSLETTER ===== */
.newsletter-full {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 52px 0;
  text-align: center;
}
.newsletter-full h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.newsletter-full p {
  font-size: 15px;
  color: var(--text-pale);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  font-size: 14px;
  font-family: inherit;
  border: 2px solid var(--navy-light);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  outline: none;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-2); }
.newsletter-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.newsletter-form button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nl-disclaimer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-dim);
}
/* nl-message: inline status area for newsletter subscription feedback */
.nl-message {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
}
/* sidebar-nl-blurb: reader-count note beneath sidebar newsletter widget */
.sidebar-nl-blurb {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== MORE STORIES GRID ===== */
.more-stories { padding: 28px 0 36px; background: var(--white); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
/* Direct children of more-grid flex so .more-card fills the full cell height */
.more-grid > * { display: flex; flex-direction: column; }
.more-card {
  cursor: pointer;
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  /* Fill the grid cell for equal-height rows */
  height: 100%;
}
.more-card:hover .more-title { color: var(--accent); }
.more-card-img {
  width: 100%;
  aspect-ratio: var(--ratio-card);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
}
.more-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.more-card-img--placeholder {
  width: 100%;
  height: 100%;
}
.more-card .tag { margin-bottom: 7px; }
.more-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 6px;
  transition: color 0.15s;
  /* Clamp more-grid titles for consistent row heights */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-ts { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: auto; }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--text-pale);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-light);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-name { font-size: 20px; }
.footer-logo .logo-tagline { font-size: 9px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 32px; height: 32px;
  background: var(--navy-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-pale);
  cursor: pointer;
  transition: background 0.15s;
}
.social-btn:hover { background: var(--navy-mid); color: var(--white); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-top: 4px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--text-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom-links a { color: var(--text-dim); }
.footer-bottom-links a:hover { color: var(--text-pale); }

/* ===== LIVE BADGE ===== */
.section-header .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(192, 57, 43, 0.16);
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.08);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.section-header .live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
  animation: blink 1.2s ease-in-out infinite;
}
[data-theme="dark"] .section-header .live-dot {
  border-color: rgba(231, 76, 60, 0.28);
  background: rgba(192, 57, 43, 0.16);
  color: #fca5a5;
}
[data-theme="dark"] .section-header .live-dot::before {
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.16);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Sidebar live-dot size modifier — replaces inline style= in sidebar.html */
.live-dot--sm {
  font-size: 0.65rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ===== LIVE PAGE HEADER ===== */
/* Replaces inline styles on /live/ article-header elements */
.live-header__badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.live-header__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
  animation: blink 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .live-header__dot { animation: none; }
}
.live-header__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
}
[data-theme="dark"] .live-header__label { color: #fca5a5; }
[data-theme="dark"] .live-header__dot {
  background: #fca5a5;
  box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.2);
}
.live-header__deck {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 640px;
}
/* Replaces style="padding-top:24px" on .section-hub in /live/ */
.section-hub--live { padding-top: 24px; }

/* ===== OPINION CARD ===== */
.opinion-strip {
  background: var(--bg-section);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.opinion-strip:hover .opinion-title { color: var(--accent); }
.opinion-label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-bottom: 5px; }
.opinion-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.35; transition: color 0.15s; }
.opinion-author { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ===== MISC ===== */
.badge-exclusive {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
}

/* ===== AI & ML SECTION BACKGROUND ===== */
.section-block--ai {
  background: var(--bg-section);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 28px;
}

/* AI section stacked cards */
.ai-stacked { display: flex; flex-direction: column; gap: 12px; }
.ai-stacked .article-card { flex: 1; }

/* ===== ARTICLE / POST PAGE STYLES ===== */
.article-header {
  background: var(--white);
  padding: 32px 0 0;
}
.article-header__inner {
  max-width: var(--prose-max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.breadcrumb__list li { display: inline-flex; align-items: center; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 6px; color: var(--border); }
.article-header__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--tag-tech);
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.article-header__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.article-header__deck {
  font-size: 1.125rem; /* 18px standfirst / deck */
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 16px;
}
.article-header__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
/* Keep each token (author / date / read-time) on one piece */
.article-header__byline > span,
.article-header__byline > time { white-space: nowrap; }
.article-header__byline-sep { margin: 0 6px; flex-shrink: 0; }
.article-header__divider {
  height: 1px;
  background: var(--border);
  margin-top: 20px;
}
/* page-layout variant: static pages get slightly more breathing room above the divider */
.article-header__divider--page { margin-top: 24px; }

.article-hero {
  max-width: var(--hero-max-w);
  margin: 24px auto;
  padding: 0 20px;
}
.article-hero__image {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: var(--ratio-hero);
  object-fit: cover;
}

.article-body {
  max-width: var(--prose-max-w);
  margin: 0 auto;
  padding: 32px 20px 56px;
  font-size: var(--prose-fs);
  line-height: var(--prose-lh);
  color: var(--text-mid);
}
/* page-layout modifier: static pages need extra top padding (no hero image above) */
.article-body--page { padding-top: 40px; }
.article-body h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-dark);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 32px 0 16px;
}
.article-body h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-dark);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 24px 0 12px;
}
.article-body h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-dark);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 20px 0 10px;
}
.article-body h5,
.article-body h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  line-height: var(--lh-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 16px 0 8px;
}
.article-body p { margin-bottom: 1.4em; }
/* Lede: first paragraph gets slightly larger text for visual hierarchy */
.article-body > p:first-of-type {
  font-size: 1.125rem; /* 18px */
  color: var(--text-dark);
  line-height: 1.65;
}
.article-body ul, .article-body ol {
  margin: 1.2em 0;
  padding-left: 28px;
}
.article-body li {
  margin-bottom: 0.5em;
  line-height: var(--prose-lh);
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-section);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-dark);
  line-height: 1.65;
}
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body code {
  background: var(--bg-section);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}
.article-body pre {
  background: var(--code-bg); /* dark surface — unaffected by white-theme override */
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 28px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.article-body img {
  border-radius: 8px;
  margin: 28px 0;
  width: 100%;
  height: auto;
  display: block;
}
.article-body figure {
  margin: 28px 0;
}
.article-body figure img {
  margin: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.article-body figcaption {
  font-size: 0.8125rem; /* 13px */
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
  padding: 0 4px;
  font-style: italic;
  text-align: center;
}
.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* Author bio */
.author-bio {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-section);
  border-radius: 8px;
  margin-top: 32px;
}
.author-bio__avatar {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-bio__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.author-bio__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Opinion column variant (#11b) */
.author-bio--column {
  border-left: 3px solid var(--gold);
  position: relative;
  align-items: flex-start;
}
.author-bio__column-label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-section);
  padding: 0 6px;
}
.author-bio__body { min-width: 0; flex: 1; }
.author-bio__link {
  color: var(--text-dark);
  text-decoration: none;
}
.author-bio__link:hover { color: var(--accent); text-decoration: underline; }
.author-bio__title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.author-bio__beat {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

/* Related articles */
.related-articles {
  padding: 32px 0 48px;
  background: var(--white);
}
.related-articles .section-header {
  border-bottom: 3px solid var(--navy);
}
.section-header__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* Card grid used in related articles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
/* Direct children flex so .article-card fills the full cell height */
.card-grid > * { display: flex; flex-direction: column; }

/* ===== RESPONSIVE ===== */
/* ===== TOPBAR — narrow-desktop overflow protection ===== */
@media (max-width: 1200px) {
  .topbar-left,
  .topbar-right { gap: 8px; }
  .edition-switcher--topbar .edition-switcher__label { display: none; }
}

@media (max-width: 1100px) {
  /* Date is lowest-priority content — drop it first to reclaim space */
  .topbar-left .topbar-date { display: none; }
  .topbar-left .topbar-sep { display: none; }
}

@media (max-width: 1024px) {
  .top-stories-grid {
    grid-template-columns: 1fr;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { display: none; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 22px; }
  .top-stories-grid { grid-template-columns: 1fr; }
  /* 10/3 renders ~112px on a 375px screen — switch to 16/9 so the hero is visually dominant */
  .hero-img { aspect-ratio: 16 / 9; }
  /* Cap side-cards at 2 on mobile; 4 stacked cards beneath the hero creates an undifferentiated feed */
  .side-cards > *:nth-child(n+3) { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-search { display: none; }
  .cat-nav .container { gap: 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 2px solid var(--navy-light); border-radius: 8px; margin-bottom: 8px; }
  .newsletter-form button { border-radius: 8px; }
  .article-header__title { font-size: 1.625rem; /* 26px */ }
  .article-header__deck  { font-size: 1rem; }
  .article-body { font-size: 1rem; padding: 24px 16px 40px; }
  .article-body > p:first-of-type { font-size: 1.0625rem; }
  /* Mobile: images go full-bleed to the viewport edges by default — the 16px
     prose gutter visually shrinks photos. Figures opt out with `.inset`. */
  .article-body img,
  .article-body figure:not(.inset) img {
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }
  .article-body figure { margin: 24px 0; }
  .article-body figure:not(.inset) figcaption {
    /* Caption stays inside the prose gutter even when the image breaks out */
    padding: 0 4px;
    text-align: left;
    margin-top: 8px;
  }
  .article-body figure.inset img { width: 100%; max-width: 100%; }
  /* Meta strip (481–768 px): replace bullet separators with gap so orphaned '·'
     characters cannot appear at the start of a wrapped row. The bookmark button
     gets a negative left-margin reset so it aligns with the first column edge
     when it wraps onto its own row. */
  .article-header__byline {
    font-size: 12px;
    column-gap: 10px;
    row-gap: 4px;
  }
  .article-header__byline-sep { display: none; }
  .bookmark-button { margin-left: 0; }
  /* Edition-summary: hide the mid-dot separators (even children) so wrapping
     never starts a new row with an orphaned '·'. */
  .article-edition-summary > span:nth-child(even) { display: none; }
  .breaking-ticker { overflow: hidden; }
  .ai-stacked { gap: 8px; }
}

/* card-grid and more-grid collapse later than utility grids — allow 2-col on small tablets
   and narrow landscape phones (601-768px) before snapping to single column */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .more-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .primary-nav .container { height: 52px; }
  .logo-name { font-size: 18px; }
  .logo-tagline { font-size: 8px; }
  .hero-title { font-size: 18px; }
  .hero-content { padding: 16px; }
  /* Phones: drop the excerpt — title + meta gives enough context without crowding the overlay */
  .hero-content p { display: none; }
  .article-header__title { font-size: 1.375rem; /* 22px */ letter-spacing: -0.01em; }
  .article-body { padding: 20px 16px 32px; }
  /* Meta strip: stack vertically, drop bullet separators */
  .article-header__byline { flex-direction: column; align-items: flex-start; gap: 4px; }
  .article-header__byline-sep { display: none; }
  /* Edition-summary: already flex-wrap; hide orphaned bullet seps on very narrow */
  .article-edition-summary > span:nth-child(even) { display: none; }
}

/* ===== PODCAST ===== */
:root { --teal: #0d9488; --teal-dark: #0f766e; }

.cat-nav-podcast { color: var(--teal-dark) !important; font-weight: 600; }
.cat-nav-podcast:hover { color: var(--teal) !important; }

/* Home section card */
.podcast-home-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 24px;
  align-items: center;
}
.phc-ep-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.phc-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.phc-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.phc-desc  { font-size: 14px; color: var(--text-mid); margin-bottom: 12px; line-height: 1.5; }
.phc-guest { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.phc-guest-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.phc-right { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.phc-audio { width: 100%; border-radius: 8px; }
.phc-link { font-size: 13px; color: var(--teal-dark); font-weight: 600; }
.phc-link:hover { text-decoration: underline; }

/* Podcast page — hero */
.podcast-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3d3a 100%);
  padding: 56px 0 48px;
  color: var(--white);
}
.podcast-hero-inner { max-width: 680px; }
.podcast-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13,148,136,.25); color: #5eead4;
  border: 1px solid rgba(13,148,136,.4);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.podcast-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.podcast-hero-desc { font-size: 16px; color: #cbd5e1; line-height: 1.6; margin-bottom: 16px; }
.podcast-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #94a3b8; }
.podcast-dot { color: #475569; }

.podcast-subscribe { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.subscribe-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}
.subscribe-btn:hover { background: rgba(255,255,255,.1); }
.subscribe-rss   { color: var(--gold); border-color: rgba(245,158,11,.4); }
.subscribe-apple { color: var(--white); background: rgba(255,255,255,.08); }

/* Podcast page — body */
.podcast-body { padding: 40px 0 60px; }

.podcast-featured-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 12px;
}
.podcast-featured-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 40px;
  align-items: start;
}
.pfc-ep { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.pfc-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.pfc-desc  { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.pfc-guest { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pfc-guest-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.pfc-guest strong { display: block; font-size: 14px; color: var(--text-dark); }
.pfc-guest span { font-size: 12px; color: var(--text-muted); }
.pfc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-podcast { background: var(--tag-podcast-bg); color: var(--tag-podcast-fg); border: 1px solid var(--tag-podcast-border); }

.pfc-player { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.pfc-player-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.pfc-audio { width: 100%; border-radius: 8px; }
.pfc-download {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--teal-dark); font-weight: 600;
}
.pfc-download:hover { text-decoration: underline; }

.podcast-featured-transcript { grid-column: 1 / -1; }
.podcast-transcript {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-light);
  overflow: hidden;
}
.podcast-transcript summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.podcast-transcript summary::-webkit-details-marker { display: none; }
.podcast-transcript summary::after {
  content: "+";
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1;
}
.podcast-transcript[open] summary::after { content: "−"; }
.podcast-transcript-content {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.podcast-transcript-note {
  padding-top: 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.podcast-transcript-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0 0 14px;
}
.podcast-transcript-content p:last-child { margin-bottom: 0; }
.podcast-transcript-content strong { color: var(--text-dark); }

/* All episodes list */
.podcast-all-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.podcast-list { display: flex; flex-direction: column; gap: 0; }
.podcast-ep-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.per-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-section); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0; margin-top: 4px;
}
.per-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.per-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.per-desc  { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 6px; }
.per-guest { font-size: 12px; color: var(--text-muted); }
.podcast-transcript--inline { margin-top: 14px; }
.per-audio { display: flex; align-items: flex-start; padding-top: 8px; }
.per-audio-ctrl { width: 220px; }

@media (max-width: 768px) {
  .podcast-home-card { grid-template-columns: 1fr; }
  .podcast-featured-card { grid-template-columns: 1fr; }
  .podcast-ep-row { grid-template-columns: 40px 1fr; }
  .per-audio { grid-column: 1 / -1; }
  .per-audio-ctrl { width: 100%; }
  .podcast-hero h1 { font-size: 26px; }
}

.edition-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.edition-switcher--topbar { flex-wrap: nowrap; flex-shrink: 0; }

.edition-switcher__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.edition-switcher a,
.edition-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edition-switcher a:hover,
.edition-pill:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.24);
}

.edition-switcher a.active,
.edition-pill.active {
  background: rgba(192,57,43,0.18);
  border-color: rgba(231,76,60,0.45);
  color: var(--white);
}

.card-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-label-row--compact {
  margin-bottom: 8px;
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.edition-badge--world {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
  color: var(--blue-dark);
}

.edition-badge--uk {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.22);
  color: #b91c1c;
}

.edition-badge--germany {
  background: rgba(17,24,39,0.08);
  border-color: rgba(17,24,39,0.18);
  color: #111827;
}

.edition-badge--header {
  font-size: 11px;
  padding: 5px 10px;
}

/* Premium badge (#23) */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(245,158,11,0.15);
  color: #b45309;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 4px;
  padding: 2px 6px;
}
[data-theme="dark"] .premium-badge {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  border-color: rgba(245,158,11,0.25);
}

.article-header__kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.article-edition-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.article-edition-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.article-edition-links__label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .edition-switcher__label {
    display: none;
  }
}

/* ============================================================
   WHITE THEME OVERRIDE — added 2026-04-26
   Owner directive: clean white surface across topbar, nav, and
   section backgrounds. Keep --accent (red) and --gold for accents.
   This block sits at the very end so it wins specificity ties; to
   revert, simply remove everything below this comment.
   ============================================================ */
:root {
  --navy:       #ffffff;
  --navy-mid:   #f8f9fa;
  --navy-light: #eef1f5;
  --bg-section: #ffffff;
}
body { background: var(--white); }

.topbar { background: var(--white); color: var(--text-mid); border-bottom: 1px solid var(--border); }
.topbar a { color: var(--text-mid); }
.topbar a:hover { color: var(--text-dark); }
.topbar-date { color: var(--text-muted); }
.topbar-sep { background: var(--border); }

.primary-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.logo-name { color: var(--text-dark); }
.logo-tagline { color: var(--text-muted); }
.nav-search { background: #f3f4f6; border: 1px solid var(--border); transition: border-color 0.15s, box-shadow 0.15s; }
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
.nav-search input { color: var(--text-dark); }
.nav-search input::placeholder { color: var(--text-muted); opacity: 1; }
.nav-search svg { color: var(--text-muted); }

.cat-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.cat-nav a { color: var(--text-mid); }
.cat-nav a:hover { color: var(--text-dark); background: var(--navy-light); }
.cat-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.footer { background: #fafafa; color: var(--text-mid); border-top: 1px solid var(--border); }
.footer a { color: var(--text-mid); }
.footer a:hover { color: var(--accent); }
.footer h4, .footer .footer-brand { color: var(--text-dark); }
.footer-bottom { border-top: 1px solid var(--border); color: var(--text-muted); }

[class*="hero-"][style*="gradient"], .hero-banner, .podcast-hero {
  background: var(--white);
  color: var(--text-dark);
}
.hero-banner h1, .podcast-hero h1 { color: var(--text-dark); }
.hero-banner p,  .podcast-hero p  { color: var(--text-mid); }

.section-dark, .bg-navy { background: var(--white) !important; color: var(--text-dark) !important; }
.section-dark h1, .section-dark h2, .section-dark h3, .bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--text-dark) !important; }
.section-dark p, .bg-navy p { color: var(--text-mid) !important; }

/* category listing grid — was unstyled, articles stacked with no gap */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.article-grid > .article-card { margin: 0; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* navy-token foreground/dark-surface fixes — --navy is #ffffff in white theme but is also used as text colour and dark-surface background elsewhere. */
.section-header h2 { color: var(--text-dark); }
.section-header__title { color: var(--text-dark); }
.section-header { border-bottom-color: var(--border); }
.related-articles .section-header { border-bottom-color: var(--border); }
.section-header--tech h2 { color: var(--section-tech-heading); }
.section-header--ai   h2 { color: var(--section-ai-heading); }
.section-header--fin  h2 { color: var(--section-fin-heading); }
.section-header--pod  h2 { color: var(--section-pod-heading); }
.section-header--tech { border-bottom-color: var(--section-tech-accent); }
.section-header--ai   { border-bottom-color: var(--section-ai-accent); }
.section-header--fin  { border-bottom-color: var(--section-fin-accent); }
.section-header--pod  { border-bottom-color: var(--section-pod-accent); }
.breaking-bar--info { background: #1f2937; }
.sidebar-widget-header { background: #0d1b2a; }
.author-bio__avatar { background: #0d1b2a; }
.newsletter-full { background: linear-gradient(135deg, #0d1b2a 0%, #1a2d42 100%); }
/* === END WHITE THEME OVERRIDE === */

/* ===== INFINITE SCROLL — feature #37 ===== */

/* Sentinel: invisible trigger element placed after the grid */
[data-scroll-sentinel] {
  width: 100%;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}

/* Loading spinner */
.inf-scroll-loader {
  display: flex;
  justify-content: center;
  padding: 24px 0 12px;
}
.inf-scroll-spinner {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inf-scroll-spinner > div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: inf-bounce 1.2s ease-in-out infinite;
}
.inf-scroll-spinner > div:nth-child(2) { animation-delay: 0.2s; }
.inf-scroll-spinner > div:nth-child(3) { animation-delay: 0.4s; }
@keyframes inf-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}

/* Error + retry */
.inf-scroll-error {
  text-align: center;
  padding: 16px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.inf-scroll-retry {
  margin-top: 8px;
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.inf-scroll-retry:hover { background: var(--accent-2); }

/* ===== END INFINITE SCROLL ===== */

/* ============================================================
   COMMENTS THREAD — 2026-04-28
   One-level threaded comments (top-level + replies).
   Key narrow-screen concern: the reply indent + avatar eat too
   much horizontal space at 375px. We step indent down in two
   stages and collapse the avatar to a monogram-circle at ≤480px.
   ============================================================ */

/* Screen-reader-only utility (reused by comment labels) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* JS-toggled hidden state — replaces inline style="display:none" on JS-controlled elements */
.js-hidden { display: none !important; }

/* --- Section wrapper --- */
.comments-section {
  margin-top: 48px;
  border-top: 2px solid var(--border);
  padding-top: 32px;
}
.comments-inner {
  max-width: var(--prose-max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Heading --- */
.comments-heading {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.comments-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Auth prompt --- */
.comments-auth {
  margin-bottom: 20px;
}
.comments-auth__prompt {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.comments-auth__link {
  color: var(--accent);
  font-weight: 600;
}
.comments-auth__link:hover {
  text-decoration: underline;
}

/* --- Compose box (top-level + reply variant) --- */
.comment-compose {
  margin-bottom: 28px;
}
.comment-compose__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-card);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.comment-compose__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.comment-compose__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}
.comment-compose__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.comment-compose__cancel {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.comment-compose__cancel:hover { color: var(--text-dark); }

/* --- Thread list --- */
.comments-thread,
.comment__replies {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Single comment --- */
.comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }

/* --- Avatar (monogram circle) --- */
.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--text-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
}

/* --- Comment body --- */
.comment__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment__author {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-dark);
}
.comment__time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.comment__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 8px;
  word-break: break-word;
}

/* --- Actions (Reply / Flag) --- */
.comment__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.comment__action {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  display: inline-flex;
  align-items: center;
}
.comment__action--reply { color: var(--accent); }
.comment__action--reply:hover { text-decoration: underline; }
.comment__action--flag { color: var(--text-muted); }
.comment__action--flag:hover { color: var(--text-dark); }

/* --- Replies sub-list (first indent level) --- */
.comment__replies {
  margin-top: 4px;
  border-left: 3px solid var(--border);
  padding-left: 20px;
}

/* --- Load replies / load more --- */
.comment__load-replies,
.comments-load-more {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  min-height: var(--tap-min);
  margin-top: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.comment__load-replies:hover,
.comments-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.comments-load-more { display: block; margin: 20px auto 0; }

/* --- Empty / loading states --- */
.comments-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.comments-loading {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 24px 0;
}
.comments-loading__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: comments-pulse 1.2s ease-in-out infinite;
}
.comments-loading__dot:nth-child(2) { animation-delay: 0.2s; }
.comments-loading__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes comments-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .comments-loading__dot { animation: none; opacity: 0.5; }
}

/* --- btn-primary (shared small button token) --- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap-min);
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-2); }

/* -----------------------------------------------------------
   NARROW-SCREEN ADJUSTMENTS
   768px  — main column shrinks; reduce compose padding
   480px  — indent is precious; cut from 20px → 12px border-left
   375px  — tightest breakpoint; collapse avatar, flatten margins
   ----------------------------------------------------------- */

@media (max-width: 768px) {
  .comments-inner { padding: 0 16px; }
  .comments-section { margin-top: 32px; padding-top: 24px; }
}

@media (max-width: 480px) {
  /* Shrink avatar to save grid width */
  .comment {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }
  .comment__avatar {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  /* Tighten reply indent — key fix for narrow screens */
  .comment__replies {
    padding-left: 12px;
    border-left-width: 2px;
  }

  /* Stack compose footer buttons on narrow screens */
  .comment-compose__footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .comment-compose__hint { order: 3; width: 100%; }
}

@media (max-width: 375px) {
  .comments-inner { padding: 0 12px; }

  /* Collapse avatar entirely — monogram not legible at this size */
  .comment {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .comment__avatar {
    display: none;
  }

  /* Minimal indent at 375px — border only, no padding */
  .comment__replies {
    padding-left: 8px;
    border-left-width: 2px;
    border-left-color: var(--accent);
  }

  .comment__actions {
    gap: 8px;
  }
}

/* Dark mode — comments */
[data-theme="dark"] .comment__avatar {
  background: var(--navy-light);
  color: var(--text-dark);
}
[data-theme="dark"] .comment-compose__input {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-dark);
}
[data-theme="dark"] .comment-compose__input:focus {
  border-color: var(--accent);
}
/* === END COMMENTS THREAD === */

/* ============================================================
   REDUCED MOTION — 2026-04-27
   Respects the OS/browser prefers-reduced-motion setting.
   Covers: smooth scroll, all transitions, all animations.
   The live-dot blink pulse is the main UX-visible animation;
   the universal * rule catches any future additions automatically.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   DARK MODE — 2026-04-27 (#34a)
   Activated via [data-theme="dark"] on <html>. The early inline
   script in default.html applies the attribute before paint, so
   there's no flash of light theme for users who prefer dark.
   Falls back to prefers-color-scheme when no manual choice is
   stored. The manual toggle wins over OS preference.
   ============================================================ */
[data-theme="dark"] {
  --white:          #0d1117;
  --bg-page:        #0a0c12;
  --bg-light:       #11141c;
  --bg-card:        #141821;
  --bg-section:     #11141c;
  --navy:           #0a0c12;
  --navy-mid:       #141821;
  --navy-light:     #1c2230;
  --navy-dark:      #0a0c12;
  --border:         #242a38;
  --text-dark:      #e4e7ef;
  --text-mid:       #b0b6c3;
  --text-muted:     #8b93a3;
  --text-pale:      #6b7280;
  --text-light:     #d1d5db;
  --text-dim:       #94a3b8;
  /* Surface & text-strength overrides for dark mode */
  --surface:        #141821;  /* card/widget surface in dark */
  --surface-muted:  #1c2230;  /* muted fill / image placeholder in dark */
  --surface-2:      #11141c;  /* TL;DR / explainer card in dark */
  --text-strong:    #e4e7ef;  /* headings and strong labels in dark */
  /* Podcast player bar — dark mode deepens the bar slightly */
  --ppb-bg:           #0a0c12;
  --ppb-border:       rgba(255, 255, 255, 0.06);
  --ppb-text:         #cbd5e1;
  --ppb-title-color:  #e2e8f0;
  --ppb-sub-color:    #64748b;
  --ppb-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --ppb-btn-hover-fg: #f1f5f9;
  --ppb-close-hover:  #e2e8f0;
}

/* prefers-color-scheme fallback — mirrors [data-theme="dark"] tokens for
   no-JS environments and print-preview tools that honour OS preference.
   The JS early-init script sets data-theme before paint for JS-enabled
   browsers, so this rule is a safety net only. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white:          #0d1117;
    --bg-page:        #0a0c12;
    --bg-light:       #11141c;
    --bg-card:        #141821;
    --bg-section:     #11141c;
    --navy:           #0a0c12;
    --navy-mid:       #141821;
    --navy-light:     #1c2230;
    --navy-dark:      #0a0c12;
    --border:         #242a38;
    --text-dark:      #e4e7ef;
    --text-mid:       #b0b6c3;
    --text-muted:     #8b93a3;
    --text-pale:      #6b7280;
    --text-light:     #d1d5db;
    --text-dim:       #94a3b8;
    --surface:        #141821;
    --surface-muted:  #1c2230;
    --surface-2:      #11141c;
    --text-strong:    #e4e7ef;
    --ppb-bg:           #0a0c12;
    --ppb-border:       rgba(255, 255, 255, 0.06);
    --ppb-text:         #cbd5e1;
    --ppb-title-color:  #e2e8f0;
    --ppb-sub-color:    #64748b;
    --ppb-btn-hover-bg: rgba(255, 255, 255, 0.06);
    --ppb-btn-hover-fg: #f1f5f9;
    --ppb-close-hover:  #e2e8f0;
  }
}

[data-theme="dark"] body {
  background: var(--bg-page);
  color: var(--text-dark);
}

[data-theme="dark"] .topbar { background: var(--navy-mid); border-bottom-color: var(--border); }
[data-theme="dark"] .topbar a { color: var(--text-mid); }
[data-theme="dark"] .topbar a:hover { color: var(--text-dark); }
[data-theme="dark"] .topbar-date { color: var(--text-muted); }
[data-theme="dark"] .topbar-sep { background: var(--border); }

[data-theme="dark"] .primary-nav { background: var(--bg-page); border-bottom-color: var(--border); }
[data-theme="dark"] .logo-name { color: var(--text-dark); }
[data-theme="dark"] .logo-tagline { color: var(--text-muted); }
[data-theme="dark"] .nav-search { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .nav-search:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.18); }
[data-theme="dark"] .nav-search input { color: var(--text-dark); }
[data-theme="dark"] .nav-search input::placeholder { color: var(--text-muted); opacity: 1; }
[data-theme="dark"] .nav-search svg { color: var(--text-muted); }

[data-theme="dark"] .cat-nav { background: var(--navy-mid); border-bottom-color: var(--border); }
[data-theme="dark"] .cat-nav a { color: var(--text-mid); }
[data-theme="dark"] .cat-nav a:hover { color: var(--text-dark); background: var(--navy-light); }
[data-theme="dark"] .cat-nav a.active { color: var(--accent-2); border-bottom-color: var(--accent-2); }

[data-theme="dark"] .footer { background: var(--navy-mid); color: var(--text-mid); border-top-color: var(--border); }
[data-theme="dark"] .footer a { color: var(--text-mid); }
[data-theme="dark"] .footer a:hover { color: var(--accent-2); }
[data-theme="dark"] .footer h4, [data-theme="dark"] .footer .footer-brand { color: var(--text-dark); }
[data-theme="dark"] .footer-bottom { border-top-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .footer-col ul li a:hover { color: var(--text-dark); }

[data-theme="dark"] .article-card,
[data-theme="dark"] .card,
[data-theme="dark"] .ad-slot,
[data-theme="dark"] .newsletter-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .section-dark, [data-theme="dark"] .bg-navy {
  background: var(--bg-card) !important;
  color: var(--text-dark) !important;
}
[data-theme="dark"] .section-dark h1, [data-theme="dark"] .section-dark h2, [data-theme="dark"] .section-dark h3,
[data-theme="dark"] .bg-navy h1, [data-theme="dark"] .bg-navy h2, [data-theme="dark"] .bg-navy h3 { color: var(--text-dark) !important; }
[data-theme="dark"] .section-dark p, [data-theme="dark"] .bg-navy p { color: var(--text-mid) !important; }

[data-theme="dark"] [class*="hero-"][style*="gradient"],
[data-theme="dark"] .hero-banner,
[data-theme="dark"] .podcast-hero {
  background: var(--bg-card);
  color: var(--text-dark);
}
[data-theme="dark"] .hero-banner h1, [data-theme="dark"] .podcast-hero h1 { color: var(--text-dark); }
[data-theme="dark"] .hero-banner p,  [data-theme="dark"] .podcast-hero p  { color: var(--text-mid); }

/* Top-stories hero card: headline overlays a permanently-dark image gradient,
   so the title must stay light. The base rule uses var(--white), which flips
   to #0d1117 in dark mode — invisible against the dark overlay. */
[data-theme="dark"] .hero-card .hero-title { color: var(--text-dark); }

/* Tag pill overrides for dark mode — light pastels are jarring on dark surfaces */
[data-theme="dark"] .tag-tech  { background: #1e3a5f; color: #93c5fd; border-color: #1e3a8a; }
[data-theme="dark"] .tag-ai    { background: #2e1065; color: #c4b5fd; border-color: #4c1d95; }
[data-theme="dark"] .tag-fin   { background: #052e16; color: #6ee7b7; border-color: #064e3b; }
[data-theme="dark"] .tag-infra { background: #451a03; color: #fcd34d; border-color: #78350f; }
[data-theme="dark"] .tag-start { background: #4a044e; color: #f9a8d4; border-color: #701a75; }
[data-theme="dark"] .tag-news  { background: #1f2937; color: #9ca3af; border-color: #374151; }
[data-theme="dark"] .tag-podcast { background: #0d3d38; color: #5eead4; border-color: #134e4a; }

/* Theme toggle button itself */
.theme-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { background: var(--bg-section); border-color: var(--border); }
.theme-toggle .theme-icon { width: 14px; height: 14px; display: inline-block; }
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-toggle:hover { background: var(--navy-light); border-color: var(--border); }

/* ============================================================
   SEARCH PAGE — input + button states (2026-04-27)
   Replaces inline styles in search.html for proper focus rings
   and active feedback. Uses existing design tokens.
   ============================================================ */
.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.search-page-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-page-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.search-page-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.search-page-btn {
  padding: 14px 22px;
  background: var(--text-dark);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.search-page-btn:hover { background: var(--text-mid); }
.search-page-btn:active { background: var(--accent); }

[data-theme="dark"] .search-page-input {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-dark);
}
[data-theme="dark"] .search-page-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.18);
}
[data-theme="dark"] .search-page-btn { background: var(--navy-light); }

/* Section wrapper for all edition search pages */
.search-page-section {
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Status/hint line below search form */
.search-page-status {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.875rem;
}

/* Edition-summary top margin for article-header context */
.article-edition-summary--header {
  margin-top: 12px;
}

/* ============================================================
   MOBILE NAV DRAWER — 2026-04-27
   Hamburger + slide-in drawer for ≤768px. Drawer contains full
   category list, edition switcher, and utility links that are
   hidden when the topbar collapses at ≤1024px.
   ============================================================ */

/* Hamburger button — hidden on desktop, shown via media query below */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
  border-radius: 6px;
  color: var(--text-dark);
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg-section); }
.nav-hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Backdrop overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.mobile-nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 85vw);
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-nav-drawer[hidden] { display: none; }

/* Drawer header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-logo-link { display: flex; align-items: center; gap: 10px; }
.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--text-dark);
  flex-shrink: 0;
  line-height: 0;
}
.mobile-nav-close:hover { background: var(--bg-section); }
.mobile-nav-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Search form (mobile drawer) */
.mobile-nav-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-search__label {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 10px;
  margin-bottom: 6px;
}
.mobile-nav-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mobile-nav-search__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.mobile-nav-search__field svg { color: var(--text-muted); flex-shrink: 0; }
.mobile-nav-search__field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-dark);
  font-size: 15px;
  font-family: inherit;
  min-height: var(--tap-min);
  padding: 0;
}
.mobile-nav-search__field input::placeholder { color: var(--text-muted); opacity: 1; }
.mobile-nav-search__submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  min-height: var(--tap-min);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-nav-search__submit:hover { filter: brightness(0.95); }
.mobile-nav-search__submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Edition switcher strip */
.mobile-nav-edition {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-edition-label {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 10px;
  margin-right: 2px;
}
.mobile-nav-edition a {
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}
.mobile-nav-edition a.active { background: var(--text-dark); color: var(--white); }
.mobile-nav-edition a:hover:not(.active) { background: var(--bg-section); }

/* Category links list */
.mobile-nav-links {
  list-style: none;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav-links li a {
  display: block;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav-links li a:hover { background: var(--bg-light); color: var(--text-dark); }
.mobile-nav-links li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--bg-light);
}
.mobile-nav-podcast { color: var(--teal-dark) !important; }
.mobile-nav-live    { color: var(--gold) !important; font-weight: 600 !important; }

/* Drawer footer — subscribe CTA + util row */
.mobile-nav-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.mobile-nav-subscribe { display: block; text-align: center; }
.mobile-nav-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.mobile-nav-util a { color: var(--text-mid); }
.mobile-nav-util a:hover { color: var(--text-dark); }
.mobile-nav-theme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-mid);
  cursor: pointer;
}
.mobile-nav-theme:hover { background: var(--bg-section); }
.mobile-nav-theme .theme-icon { width: 14px; height: 14px; }

/* Activate mobile patterns at ≤768px */
@media (max-width: 768px) {
  .nav-hamburger        { display: flex; }
  .mobile-nav-overlay   { display: block; }
  .mobile-nav-drawer    { display: flex; }
  body.nav-open         { overflow: hidden; }
}

/* ===========================================================================
   Mobile nav — focus-trap a11y enhancement (keyboard navigation sprint).
   When the drawer is open (role="dialog" aria-modal="true"), focus is
   contained inside by JS. These CSS rules reinforce the dialog boundary
   visually and ensure the close button and first link have clear focus
   indicators within the drawer context.
   =========================================================================== */
.mobile-nav-drawer:focus { outline: none; } /* drawer itself never receives outline */
.mobile-nav-drawer .mobile-nav-close:focus-visible,
.mobile-nav-drawer a:focus-visible,
.mobile-nav-drawer button:focus-visible,
.mobile-nav-drawer input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
[data-theme="dark"] .mobile-nav-drawer .mobile-nav-close:focus-visible,
[data-theme="dark"] .mobile-nav-drawer a:focus-visible,
[data-theme="dark"] .mobile-nav-drawer button:focus-visible,
[data-theme="dark"] .mobile-nav-drawer input:focus-visible {
  outline-color: var(--accent-2);
}

/* ===== MOBILE TAP TARGETS (≤768 px, min 44 × 44 px — WCAG 2.5.5) ===== */
@media (max-width: 768px) {
  /* Category nav: 42 → 44 px */
  .cat-nav .container,
  .cat-nav a { height: var(--tap-min); }

  /* Hamburger: explicit 44 × 44 square */
  .nav-hamburger { width: var(--tap-min); height: var(--tap-min); justify-content: center; }

  /* Theme toggle: 44 × 44 tap area */
  .theme-toggle { min-width: var(--tap-min); min-height: var(--tap-min); justify-content: center; }

  /* Subscribe CTA */
  .btn-subscribe { min-height: var(--tap-min); display: inline-flex; align-items: center; }

  /* Edition pills on article header: 26 → 44 px */
  .edition-pill { min-height: var(--tap-min); padding: 0 14px; }

  /* Edition switcher links in topbar */
  .edition-switcher--topbar a { min-height: var(--tap-min); padding-inline: 12px; }

  /* Breadcrumb links: expand tap area without layout shift */
  .breadcrumb a { display: inline-flex; align-items: center; padding-block: 12px; margin-block: -12px; }

  /* Tag anchors (when tags are wrapped in <a>) */
  a.tag { min-height: var(--tap-min); display: inline-flex; align-items: center; }
}

/* Dark mode overrides */
[data-theme="dark"] .mobile-nav-drawer       { background: var(--navy-mid); box-shadow: 4px 0 24px rgba(0,0,0,0.35); }
[data-theme="dark"] .mobile-nav-header       { border-bottom-color: var(--border); }
[data-theme="dark"] .mobile-nav-close        { color: var(--text-dark); }
[data-theme="dark"] .mobile-nav-close:hover  { background: var(--navy-light); }
[data-theme="dark"] .mobile-nav-search       { border-bottom-color: var(--border); }
[data-theme="dark"] .mobile-nav-search__field { background: var(--navy-light); border-color: var(--border); }
[data-theme="dark"] .mobile-nav-search__field:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.18); }
[data-theme="dark"] .mobile-nav-search__field input { color: var(--text-dark); }
[data-theme="dark"] .mobile-nav-search__field input::placeholder { color: var(--text-muted); opacity: 1; }
[data-theme="dark"] .mobile-nav-search__field svg   { color: var(--text-muted); }
[data-theme="dark"] .mobile-nav-edition      { border-bottom-color: var(--border); }
[data-theme="dark"] .mobile-nav-edition a    { color: var(--text-mid); }
[data-theme="dark"] .mobile-nav-edition a.active { background: var(--navy-light); color: var(--text-dark); }
[data-theme="dark"] .mobile-nav-edition a:hover:not(.active) { background: var(--navy-light); }
[data-theme="dark"] .mobile-nav-links li a   { color: var(--text-mid); }
[data-theme="dark"] .mobile-nav-links li a:hover { background: var(--navy-light); color: var(--text-dark); }
[data-theme="dark"] .mobile-nav-links li a.active { background: rgba(192,57,43,0.15); color: var(--accent-2); border-left-color: var(--accent-2); }
[data-theme="dark"] .mobile-nav-footer       { border-top-color: var(--border); }
[data-theme="dark"] .mobile-nav-theme        { border-color: var(--border); color: var(--text-mid); }
[data-theme="dark"] .mobile-nav-theme:hover  { background: var(--navy-light); }
[data-theme="dark"] .mobile-nav-overlay      { background: rgba(0,0,0,0.65); }
[data-theme="dark"] .nav-hamburger           { color: var(--text-dark); }
[data-theme="dark"] .nav-hamburger:hover     { background: var(--navy-light); }

/* ===== AUTH PAGES ===== */
.auth-page {
  padding-top: 40px;
  padding-bottom: 80px;
}
.auth-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 17, 23, 0.06);
}
.auth-form fieldset {
  border: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}
.auth-form input {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.auth-form input:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.35);
  outline-offset: 1px;
  border-color: var(--gold);
}
.auth-form button {
  margin-top: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.auth-form button:hover { background: #d97706; }
.auth-form button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 2px;
}
.error-text {
  display: inline-block;
  min-height: 20px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
}

.auth-form-foot {
  max-width: 480px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.auth-form-foot a { color: var(--text-dark); font-weight: 600; }
.auth-form-foot a:hover { text-decoration: underline; }
/* Modifier: intro paragraph inside a fieldset — replaces style="margin-bottom:16px" */
.auth-form-foot--fieldset-intro { margin-bottom: 16px; }
/* Modifier: inline status/success message after a form action — replaces style="margin-top:12px" */
.auth-form-foot--status { margin-top: 12px; }
/* Modifier: error-text with bottom spacing inside fieldsets — replaces style="margin-bottom:12px" */
.error-text--spaced { margin-bottom: 12px; }

.account-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.account-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.account-panel__header h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.account-panel__header p {
  color: var(--text-muted);
  font-size: 14px;
}
.auth-secondary-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-mid);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.auth-secondary-btn:hover { background: var(--bg-light); }
.account-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.account-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-mid);
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.account-tab--active {
  border-color: var(--gold);
  background: #fff7ed;
  color: #92400e;
}
.account-items {
  list-style: none;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.account-item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.account-item a {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}
.account-item a:hover { color: var(--accent); }
.account-item span {
  display: inline-block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}
.account-item-empty {
  padding: 16px 4px;
  color: var(--text-muted);
}

.account-panel--settings {
  margin-top: 24px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.account-section {
  border-bottom: 1px solid var(--border);
}
.account-section:last-child { border-bottom: 0; }
.account-section__summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  position: relative;
}
.account-section__summary::-webkit-details-marker { display: none; }
.account-section__summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-muted);
}
.account-section[open] .account-section__summary::after { content: "−"; }
.account-section__summary:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.35);
  outline-offset: -2px;
}
.account-section__form {
  padding: 4px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}
.account-section__form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 6px;
}
.account-section__form input {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.account-section__form input:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.35);
  outline-offset: 1px;
  border-color: var(--gold);
}
.account-section__form button {
  margin-top: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}
.account-section__form button:hover { background: #d97706; }
.account-section__form button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 2px;
}
.account-section__hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.status-text {
  display: inline-block;
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}
.status-text--error { color: #dc2626; }
.status-text--success { color: #047857; }

.email-verify-banner {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.email-verify-banner[hidden] { display: none; }
.email-verify-banner__body { flex: 1 1 240px; min-width: 0; }
.email-verify-banner__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}
.email-verify-banner__text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}
.email-verify-banner .auth-secondary-btn {
  flex: 0 0 auto;
  border-color: #fbbf24;
  background: #fffbeb;
  color: #92400e;
}
.email-verify-banner .auth-secondary-btn:hover { background: #fef3c7; }
.email-verify-banner .status-text { flex: 1 1 100%; margin-top: 0; }

@media (max-width: 768px) {
  .auth-page { padding-top: 28px; padding-bottom: 56px; }
  .auth-form fieldset { padding: 18px; }
  .account-panel { padding: 18px; }
  .account-panel__header { flex-direction: column; }
  .account-section__summary { padding: 14px 16px; }
  .account-section__form { padding: 4px 16px 18px; }
}

.bookmark-button {
  margin-left: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-mid);
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.bookmark-button:hover:not(:disabled) {
  border-color: var(--gold, #d97706);
  color: var(--gold, #d97706);
}
.bookmark-button[aria-pressed="true"] {
  border-color: var(--gold, #d97706);
  background: #fff7ed;
  color: #92400e;
}
.bookmark-button:disabled { opacity: 0.6; cursor: default; }

/* Live Blog (#07b) — reader rendering inside article-body */
.liveblog {
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fafafa);
}
.liveblog__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.liveblog__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-strong, #111827);
  margin: 0;
}
.liveblog__indicator {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  animation: liveblog-pulse 1.6s ease-out infinite;
}
@keyframes liveblog-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .liveblog__indicator { animation: none; }
}
.liveblog__indicator--concluded {
  background: var(--text-dim, #6b7280);
  box-shadow: none;
  animation: none;
}
.liveblog__status {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim, #6b7280);
  font-weight: 500;
}
.liveblog__entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.liveblog__entry {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--accent, #2563eb);
}
.liveblog__entry + .liveblog__entry {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border, #e5e7eb);
}
.liveblog__timestamp {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim, #6b7280);
  margin-bottom: 0.35rem;
}
.liveblog__body p {
  margin: 0 0 0.5rem;
  line-height: 1.55;
}
.liveblog__body p:last-child { margin-bottom: 0; }
.liveblog__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim, #6b7280);
  font-style: italic;
}

/* ===========================================================================
   Series prev/next navigation (#14d) — shown inside article when the piece
   belongs to a published multi-part series. Hydrated by series-nav.js.
   =========================================================================== */
.series-nav {
  border-top: 1px solid var(--border, #e2e5ee);
  border-bottom: 1px solid var(--border, #e2e5ee);
  padding: 16px 0;
  margin: 28px 0;
  font-size: 0.9rem;
}
.series-nav[hidden] { display: none; }
.series-nav__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.series-nav__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #4f46e5);
  white-space: nowrap;
}
.series-nav__series-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #111827);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.series-nav__series-link:hover {
  color: var(--accent, #4f46e5);
  border-bottom-color: currentColor;
}
.series-nav__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.series-nav__btn {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--border, #e2e5ee);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text, #111827);
  background: var(--surface-2, #f6f7fb);
  transition: border-color 0.15s, background 0.15s;
}
.series-nav__btn[hidden] { display: none; }
.series-nav__btn:hover {
  border-color: var(--accent, #4f46e5);
  background: var(--bg, #fff);
}
.series-nav__btn--next { align-items: flex-end; text-align: right; }
.series-nav__btn-direction {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #6b7280);
  margin-bottom: 4px;
}
.series-nav__btn-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text, #111827);
}

[data-theme="dark"] .series-nav,
.dark-mode .series-nav { border-color: var(--border, #242a38); }
[data-theme="dark"] .series-nav__series-link,
.dark-mode .series-nav__series-link { color: var(--text, #e4e7ef); }
[data-theme="dark"] .series-nav__btn,
.dark-mode .series-nav__btn {
  background: var(--bg-card, #141821);
  border-color: var(--border, #242a38);
  color: var(--text, #e4e7ef);
}
[data-theme="dark"] .series-nav__btn-title,
.dark-mode .series-nav__btn-title { color: var(--text, #e4e7ef); }

@media (max-width: 600px) {
  .series-nav__btn { min-width: 100%; }
}

/* Slice #10b: persistent podcast player bar */
.podcast-player-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ppb-bg);
  color: var(--ppb-text);
  border-top: 1px solid var(--ppb-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}
.podcast-player-bar[hidden] { display: none; }
body.has-podcast-player { padding-bottom: 76px; }
.ppb-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(220px, 2fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.ppb-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ppb-cover {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--tag-podcast-fg, #0f766e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.ppb-text { min-width: 0; }
.ppb-title {
  font-size: 13px; font-weight: 600; color: var(--ppb-title-color);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ppb-sub { font-size: 11px; color: var(--ppb-sub-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppb-controls { display: flex; align-items: center; gap: 4px; }
.ppb-btn {
  background: transparent; border: 0; cursor: pointer;
  color: var(--ppb-text); padding: 6px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ppb-btn:hover { background: var(--ppb-btn-hover-bg); color: var(--ppb-btn-hover-fg); }
.ppb-btn:focus-visible { outline: 2px solid var(--tag-podcast-fg, #0f766e); outline-offset: 2px; }
.ppb-play { width: 38px; height: 38px; border-radius: 50%; background: var(--tag-podcast-fg, #0f766e); color: #fff; }
.ppb-play:hover { background: #0d9488; }
.ppb-progress { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ppb-time { font-size: 11px; color: var(--ppb-sub-color); font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.ppb-seek { flex: 1; min-width: 80px; accent-color: var(--tag-podcast-fg, #0f766e); }
.ppb-close { color: var(--ppb-sub-color); }
.ppb-close:hover { color: var(--ppb-close-hover); }

/* #10c — skip-15s + speed controls */
.ppb-skip-back, .ppb-skip-fwd { position: relative; }
.ppb-skip-num {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}
.ppb-speed {
  width: auto;
  min-width: 38px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .ppb-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta close"
      "progress progress"
      "controls controls";
    gap: 6px;
    padding: 8px 12px;
  }
  .ppb-meta { grid-area: meta; }
  .ppb-controls { grid-area: controls; justify-content: center; }
  .ppb-progress { grid-area: progress; }
  .ppb-close { grid-area: close; align-self: start; }
  body.has-podcast-player { padding-bottom: 132px; }
}

/* Opinion Author Spotlight (#11b) — editorial author list on /category/opinion/ */
.author-spotlight {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fafafa);
}
.author-spotlight[hidden] { display: none; }
.author-spotlight__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.author-spotlight__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-strong, #111827);
  margin: 0;
}
.author-spotlight__sub {
  font-size: 0.72rem;
  color: var(--text-dim, #6b7280);
}
.author-spotlight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.author-spotlight__item + .author-spotlight__item {
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border, #e5e7eb);
}
.author-spotlight__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.author-spotlight__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-strong, #111827);
}
.author-spotlight__count {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim, #6b7280);
  white-space: nowrap;
}
.author-spotlight__latest {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim, #4b5563);
}
.author-spotlight__latest:hover .author-spotlight__latest-title {
  text-decoration: underline;
}
.author-spotlight__latest-label {
  font-weight: 600;
  color: var(--text-dim, #6b7280);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-right: 0.25rem;
}
.author-spotlight__latest-date {
  color: var(--text-dim, #9ca3af);
  font-size: 0.76rem;
}

/* --- Author byline links + per-author archive (#11d) --- */
.byline-author {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.byline-author:hover,
.byline-author:focus {
  text-decoration: none;
  border-bottom-color: var(--accent, #4f46e5);
  color: var(--accent, #4f46e5);
}
.author-archive {
  padding: 2.5rem 0 3rem;
}
.author-archive__header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.author-archive__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated, #f3f4f6);
}
.author-archive__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  background: var(--bg-elevated, #f3f4f6);
  text-transform: uppercase;
}
.author-archive__meta { min-width: 0; }
.author-archive__name {
  font-size: 1.75rem;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}
.author-archive__title {
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.author-archive__beat {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  margin: 0 0 0.25rem;
}
.author-archive__count {
  font-size: 0.8rem;
  color: var(--text-dim, #9ca3af);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.author-archive__bio {
  max-width: 720px;
  margin: 0 0 2rem;
  color: var(--text, #1f2937);
  font-size: 0.96rem;
  line-height: 1.55;
}
.author-archive__bio p { margin: 0 0 0.75rem; }
.author-archive__empty {
  color: var(--text-muted, #6b7280);
  font-style: italic;
}

.authors-index {
  padding: 2.5rem 0 3rem;
}
.authors-index__header {
  margin-bottom: 1.5rem;
}
.authors-index__header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}
.authors-index__header p {
  color: var(--text-muted, #6b7280);
  margin: 0;
}
.authors-index__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.authors-index__link {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card, #fff);
  transition: border-color 0.15s, transform 0.15s;
}
.authors-index__link:hover,
.authors-index__link:focus {
  border-color: var(--accent, #4f46e5);
  transform: translateY(-1px);
}
.authors-index__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.authors-index__title {
  color: var(--text-muted, #6b7280);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.authors-index__count {
  font-size: 0.72rem;
  color: var(--text-dim, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* === Article series public pages (#14d) === */
.series-page { width: 100%; }
/* Root series page section — replaces inline style="padding-top:32px;padding-bottom:80px;max-width:1160px;margin:0 auto" */
.series-page--root {
  padding-top: 32px;
  padding-bottom: 80px;
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
}
.series-status {
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.series-status--error { color: var(--danger, #b91c1c); }
.series-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.series-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.series-card:hover {
  border-color: var(--accent, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.series-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.series-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--surface-muted, #f3f4f6);
  overflow: hidden;
}
.series-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.series-card__body { padding: 18px 20px 20px; }
.series-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.series-card__description {
  color: var(--text-muted, #6b7280);
  font-size: 0.92rem;
  margin: 0 0 12px;
  line-height: 1.45;
}
.series-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.series-card__sep { opacity: 0.6; }

.series-detail__header { margin-bottom: 24px; }
.series-detail__title {
  font-size: 1.5rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.series-detail__description {
  color: var(--text-muted, #6b7280);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.series-detail__meta {
  font-size: 0.8rem;
  color: var(--text-dim, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 0;
}
.series-detail__parts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.series-part {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.series-part:hover { border-color: var(--accent, #4f46e5); }
.series-part--unscheduled { opacity: 0.7; }
.series-part__link {
  display: flex;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  align-items: stretch;
}
.series-part__hero {
  flex: 0 0 180px;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted, #f3f4f6);
}
.series-part__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.series-part__body {
  padding: 16px 18px;
  flex: 1;
  min-width: 0;
}
.series-part__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-dim, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 6px;
}
.series-part__position { color: var(--accent, #4f46e5); }
.series-part__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
}
.series-part__deck {
  color: var(--text-muted, #6b7280);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}
.series-detail__empty {
  list-style: none;
  color: var(--text-muted, #6b7280);
  padding: 16px 0;
  font-size: 0.95rem;
}
.series-detail__back {
  margin: 24px 0 0;
  font-size: 0.9rem;
}
.series-detail__back a {
  color: var(--accent, #4f46e5);
  text-decoration: none;
}
.series-detail__back a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .series-part__link { flex-direction: column; }
  .series-part__hero { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
}

/* ===========================================================================
   Explainer format (#12b) — TL;DR card + numbered H2 sections.
   Activated when post layout sets .article-body--explainer (page.format ==
   'explainer'). The TL;DR card is rendered above body content; numbered
   section markers are injected by /assets/js/explainer.js into top-level H2s.
   =========================================================================== */
.article-tldr {
  background: var(--surface-2, #f6f7fb);
  border: 1px solid var(--border, #e2e5ee);
  border-left: 4px solid var(--accent, #4f46e5);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 28px;
  font-size: 0.97rem;
  line-height: 1.55;
}
.article-tldr__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.article-tldr__badge {
  display: inline-block;
  background: var(--accent, #4f46e5);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.article-tldr__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text, #111827);
}
.article-tldr__body {
  color: var(--text, #111827);
}
.article-tldr__body > :last-child { margin-bottom: 0; }
.article-tldr__body p { margin: 0 0 8px; }
.article-tldr__body ul,
.article-tldr__body ol { margin: 4px 0 8px 1.2em; }

[data-theme="dark"] .article-tldr,
.dark-mode .article-tldr {
  background: rgba(78, 70, 229, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent, #4f46e5);
}
[data-theme="dark"] .article-tldr__title,
.dark-mode .article-tldr__title,
[data-theme="dark"] .article-tldr__body,
.dark-mode .article-tldr__body { color: #e5e7eb; }

.article-body--explainer .article-body__section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  scroll-margin-top: 80px;
}
.article-body__section-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent, #4f46e5);
  font-size: 0.95em;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .article-tldr { padding: 14px 16px; border-radius: 10px; }
  .article-body--explainer .article-body__section-heading { gap: 10px; }
}

/* ===========================================================================
   Cross-cutting a11y — global :focus-visible baseline.
   Many components call `outline: none` without a paired :focus-visible
   replacement, leaving keyboard users with no indication of focus. This
   baseline applies a token-coloured ring to every interactive element when
   focused via keyboard. Per-component :focus-visible rules above (e.g.
   .nav-hamburger, .ppb-btn, .auth-form button) win on specificity and keep
   their bespoke colours; this rule covers everything else (links, footer
   links, card anchors, tag pills, buttons without a custom rule).
   =========================================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
[data-theme="dark"] :focus-visible,
.dark-mode :focus-visible {
  outline-color: var(--accent-2);
}

/* Opinion editorial landing page (#11c) — /opinion/ */
.opinion-page {
  padding: 32px 0 80px;
}
.opinion-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .opinion-page__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.opinion-page__main {
  min-width: 0;
}
.opinion-page__rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.opinion-featured .section-header {
  margin-bottom: 12px;
}
.opinion-empty__text {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed var(--border, #e5e7eb);
  border-radius: 10px;
  color: var(--text-dim, #6b7280);
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--surface, #fafafa);
}
.opinion-empty__text a {
  color: inherit;
  border-bottom: 1px solid currentColor;
}
.opinion-page__cta {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--surface, #fafafa);
}
.opinion-page__cta-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-strong, #111827);
}
.opinion-page__cta-text {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim, #6b7280);
}
.opinion-page__cta-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #4f46e5);
  text-decoration: none;
}
.opinion-page__cta-link:hover,
.opinion-page__cta-link:focus {
  text-decoration: underline;
}

/* ── Reading Progress Bar ──────────────────────────────────────────────────
   Sticky thin bar at the very top of article pages. Uses CSS custom property
   --reading-progress (0–100) set by reading-progress.js to drive scaleX().
   GPU-composited: only transform + will-change, no layout repaint on scroll.
   ───────────────────────────────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9000;
  pointer-events: none;
  background: transparent;
}
.reading-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent, #c0392b);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  will-change: transform;
  transition: transform 0.08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress__fill { transition: none; }
}
[data-theme="dark"] .reading-progress__fill {
  background: var(--accent-2, #e74c3c);
}

/* ============================================================
   PRINT-OPTIMIZED STYLES (2026-05-01)
   Cross-cutting — article pages readable on paper/PDF export.
   Hides chrome, ads, interactive widgets; sets black-on-white
   prose; expands URLs inline; no box shadows or backgrounds.
   ============================================================ */
@media print {
  /* ── Reset surfaces to black-on-white ── */
  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #000 !important;
    border-color: #ccc !important;
  }

  html, body {
    font-size: 12pt;
    line-height: 1.6;
  }

  /* ── Hide chrome & non-content elements ── */
  .topbar,
  .primary-nav,
  .cat-nav,
  .mobile-nav-overlay,
  .mobile-nav-drawer,
  .breaking-bar,
  .footer,
  .ad-slot,
  .sidebar,
  .sidebar-widget,
  .podcast-player-bar,
  .reading-progress,
  .newsletter,
  .newsletter-full,
  .newsletter-side,
  .comments-section,
  .btn-subscribe,
  .nav-hamburger,
  .theme-toggle,
  .edition-switcher {
    display: none !important;
  }

  /* ── Article header: remove decorative spacing ── */
  .article-header {
    padding: 0;
    margin-bottom: 1em;
  }
  .article-header__title {
    font-size: 22pt;
    line-height: 1.25;
    margin-bottom: 0.4em;
  }
  .article-header__deck {
    font-size: 13pt;
    margin-bottom: 0.6em;
  }
  .article-header__byline {
    font-size: 10pt;
  }
  .article-header__divider {
    border-color: #ccc;
  }

  /* ── Article body prose ── */
  .article-body {
    padding: 0;
    max-width: 100%;
  }
  .article-body p,
  .article-body li {
    font-size: 11pt;
    line-height: 1.65;
    orphans: 3;
    widows: 3;
  }
  .article-body h2 { font-size: 16pt; page-break-after: avoid; }
  .article-body h3 { font-size: 13pt; page-break-after: avoid; }
  .article-body h4 { font-size: 11pt; page-break-after: avoid; }
  .article-body blockquote {
    border-left: 3pt solid #ccc;
    padding-left: 12pt;
    margin: 1em 0;
  }
  .article-body pre,
  .article-body code {
    font-size: 9pt;
    border: 1pt solid #ccc;
    white-space: pre-wrap;
  }

  /* ── Images: keep within page width, allow captions ── */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  figure { page-break-inside: avoid; }
  figcaption { font-size: 9pt; }

  /* ── Expand links with URL in parentheses ── */
  .article-body a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }
  /* Skip mailto, anchors, and javascript: links */
  .article-body a[href^="#"]::after,
  .article-body a[href^="mailto:"]::after,
  .article-body a[href^="javascript:"]::after {
    content: "";
  }

  /* ── Layout: single-column, no grid ── */
  .container {
    max-width: 100%;
    padding: 0;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    display: block;
  }

  /* ── Page layout: avoid orphan section headings ── */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  p, li, blockquote {
    page-break-inside: avoid;
  }

  /* ── Tag pills: legible without colour ── */
  .tag-pill,
  .article-header__tag {
    border: 1pt solid #000 !important;
    padding: 1pt 5pt;
    font-size: 8pt;
    letter-spacing: 0.04em;
  }
}

/* ============================================================
   ARTICLE SHARE WIDGET (2026-05-02)
   Cross-cutting — appears at the bottom of every article body.
   Three actions: share on X, share on LinkedIn, copy link.
   Copy-link button swaps to a checkmark icon on success.
   Dark-mode and prefers-reduced-motion aware; hidden in print.
   ============================================================ */

.share-widget {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.share-widget__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}

/* Shared share button base */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;    /* 13px */
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  /* Ensure tap target ≥44px tall on mobile */
  min-height: var(--tap-min, 44px);
}
@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: none; }
}

.share-btn:hover,
.share-btn:focus-visible {
  border-color: var(--text-muted);
  color: var(--text-dark);
  background: var(--bg-section);
}

/* X / Twitter tint on hover */
.share-btn--x:hover,
.share-btn--x:focus-visible {
  border-color: #000;
  color: #000;
}

/* LinkedIn tint on hover */
.share-btn--linkedin:hover,
.share-btn--linkedin:focus-visible {
  border-color: #0a66c2;
  color: #0a66c2;
}

/* Copy-link: success state */
.share-btn--copy {
  /* default — show copy icon, hide check */
}
.share-btn--copy .share-btn__icon-check { display: none; }

.share-btn--copied .share-btn__icon-copy { display: none; }
.share-btn--copied .share-btn__icon-check { display: block; }
.share-btn--copied {
  border-color: var(--green);
  color: var(--green);
  background: #ecfdf5;
}

/* Dark mode */
[data-theme="dark"] .share-btn {
  background: var(--navy-mid);
  border-color: var(--navy-light);
  color: var(--text-pale);
}
[data-theme="dark"] .share-btn:hover,
[data-theme="dark"] .share-btn:focus-visible {
  background: var(--navy-light);
  border-color: var(--text-mid);
  color: var(--text-light);
}
[data-theme="dark"] .share-btn--x:hover,
[data-theme="dark"] .share-btn--x:focus-visible {
  border-color: #e5e7eb;
  color: #e5e7eb;
}
[data-theme="dark"] .share-btn--linkedin:hover,
[data-theme="dark"] .share-btn--linkedin:focus-visible {
  border-color: #60a5fa;
  color: #60a5fa;
}
[data-theme="dark"] .share-btn--copied {
  border-color: var(--green);
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
}

/* Mobile: full-width row */
@media (max-width: 480px) {
  .share-widget {
    gap: 6px;
  }
  .share-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .share-widget__label {
    width: 100%;
  }
}

/* Print: hide interactive share controls */
@media print {
  .share-widget { display: none !important; }
}

/* ============================================================
   FONT SIZE CONTROLS (2026-05-01)
   A- / A / A+ reader widget displayed in article byline.
   Three size modifiers adjust --prose-fs on .article-body;
   default (medium) requires no class — only small/large override.
   Persisted in localStorage('clarqo-font-size').
   ============================================================ */

/* Article-body font-size modifier classes */
.article-body--fs-small {
  --prose-fs: 0.9375rem; /* 15px */
}
.article-body--fs-large {
  --prose-fs: 1.1875rem; /* 19px */
}
/* medium is the default (--prose-fs: 1.0625rem / 17px set in :root) */

/* Widget container */
.font-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.font-size-controls__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
  user-select: none;
}

/* Individual size buttons */
.font-size-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 5px;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.font-size-btn--small  { font-size: 0.6875rem; } /* 11px — visually smallest A */
.font-size-btn--medium { font-size: 0.875rem;  } /* 14px — mid-size A */
.font-size-btn--large  { font-size: 1.125rem;  } /* 18px — biggest A */

.font-size-btn:hover,
.font-size-btn:focus-visible {
  background: var(--bg-section);
  border-color: var(--text-muted);
  color: var(--text-dark);
}

.font-size-btn--active,
.font-size-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.font-size-btn--active:hover,
.font-size-btn[aria-pressed="true"]:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* Dark mode adjustments */
[data-theme="dark"] .font-size-btn {
  border-color: var(--border);
  color: var(--text-muted);
}
[data-theme="dark"] .font-size-btn:hover,
[data-theme="dark"] .font-size-btn:focus-visible {
  background: var(--navy-light);
  border-color: var(--text-mid);
  color: var(--text-dark);
}

/* Hide in print — no interactive controls needed */
@media print {
  .font-size-controls { display: none !important; }
}

/* ============================================================
   BACK-TO-TOP BUTTON (2026-05-02)
   Fixed floating button, bottom-right. Fades in after the user
   scrolls 400px. GPU-composited opacity+transform transition;
   prefers-reduced-motion collapses to a simple display toggle.
   Dark-mode aware. Hidden in @media print.
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 90;            /* below podcast player bar (z:60) would clip it — but player is bottom:0 and this is bottom:28px, so they share space gracefully */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy, #0d1b2a);
  color: var(--white, #fff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
  /* Ensure tap target ≥44×44px (WCAG 2.5.5) */
}

.back-to-top:hover {
  background: var(--navy-mid, #1a2d42);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent, #c0392b);
  outline-offset: 3px;
}

/* Visible state — toggled by JS adding .is-visible */
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* When podcast player bar is open, lift button above it */
body.has-podcast-player .back-to-top {
  bottom: 96px;   /* 76px bar height + 20px gap */
}

/* Reduced-motion: skip translate animation, just toggle opacity */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.1s;
    transform: none;
  }
  .back-to-top.is-visible {
    transform: none;
  }
}

/* Dark mode: use surface token for good contrast */
[data-theme="dark"] .back-to-top {
  background: var(--navy-light, #253d56);
  color: var(--text-dark, #e4e7ef);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .back-to-top:hover {
  background: var(--navy-mid, #141821);
}

/* Print: hide the button entirely */
@media print {
  .back-to-top { display: none !important; }
}

/* ============================================================
   ARTICLE TABLE OF CONTENTS (2026-05-07)
   Auto-generated from H2/H3 in article body by toc.js.
   Sticky sidebar on desktop ≥1024px; collapsible panel on
   mobile. Dark-mode aware, prefers-reduced-motion safe.
   ============================================================ */

/* Wrapper — injected before article body, visible only when headings found */
.article-toc {
  display: none; /* shown by JS once headings are found */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.article-toc.is-visible {
  display: block;
}

/* Header row — title + collapse toggle */
.article-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.article-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}
.article-toc__toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, background 0.15s;
}
.article-toc__toggle:hover { color: var(--text-mid); background: var(--bg-section); }
.article-toc__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.article-toc__toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}
.article-toc.is-collapsed .article-toc__toggle-icon {
  transform: rotate(-90deg);
}
@media (prefers-reduced-motion: reduce) {
  .article-toc__toggle-icon { transition: none; }
}

/* List */
.article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.article-toc.is-collapsed .article-toc__list {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .article-toc__list { transition: none; }
}

.article-toc__item {
  margin: 0;
  padding: 0;
}
.article-toc__item--h3 {
  padding-left: 14px;
}

.article-toc__link {
  display: block;
  padding: 3px 0;
  color: var(--text-mid);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: color 0.15s, border-color 0.15s;
  word-break: break-word;
}
.article-toc__link:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}
.article-toc__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Active (current section) highlight — toggled by toc.js on scroll */
.article-toc__link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Desktop: sticky sidebar layout ≥1024px */
@media (min-width: 1024px) {
  .article-toc-wrapper {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 40px;
    align-items: start;
    max-width: var(--prose-max-w);
    margin: 0 auto;
  }
  .article-toc {
    position: sticky;
    top: 80px;        /* below fixed nav (~60px) + breathing room */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-bottom: 0;
    grid-column: 2;
    grid-row: 1 / 99; /* span full article height */
  }
}

/* Dark mode */
[data-theme="dark"] .article-toc {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .article-toc__link { color: var(--text-mid); }
[data-theme="dark"] .article-toc__link:hover,
[data-theme="dark"] .article-toc__link.is-active { color: var(--accent-2); border-left-color: var(--accent-2); }
[data-theme="dark"] .article-toc__toggle:hover { background: var(--navy-light); }

/* Print: hide entirely */
@media print {
  .article-toc { display: none !important; }
}

/* ============================================================
   404 ERROR PAGE  (#cc1 — cross-cutting, 2026-05-08)
   Styled not-found page with token-based colors, dark-mode
   awareness, reduced-motion respect, and print-safe markup.
   ============================================================ */

/* Secondary button — reusable across any page */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--tap-min);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* 404 page layout */
.error-404 {
  padding: 80px 0 120px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-404__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}
.error-404__code {
  font-size: clamp(96px, 20vw, 180px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--border);
  user-select: none;
  /* GPU-composited subtle animation — skipped if reduced-motion */
  animation: error-404-float 4s ease-in-out infinite;
}
@keyframes error-404-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .error-404__code { animation: none; }
}
.error-404__heading {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.error-404__message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 32px;
}
.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.error-404__btn-home,
.error-404__btn-search {
  min-width: 160px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Ensure btn-primary is display:flex on anchor tags too */
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.error-404__suggestions {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.error-404__suggestions-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.error-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.error-404__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  min-height: var(--tap-min);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.error-404__link:hover {
  background: var(--bg-section);
  border-color: var(--accent);
  color: var(--accent);
}
.error-404__link-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.error-404__link:hover .error-404__link-icon { color: var(--accent); }

/* Dark-mode overrides */
[data-theme="dark"] .error-404__code { color: var(--navy-light); }
[data-theme="dark"] .error-404__heading { color: var(--text-strong); }
[data-theme="dark"] .error-404__message { color: var(--text-mid); }
[data-theme="dark"] .error-404__suggestions { border-top-color: var(--border); }
[data-theme="dark"] .error-404__link {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-mid);
}
[data-theme="dark"] .error-404__link:hover {
  background: var(--navy-light);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
[data-theme="dark"] .btn-secondary {
  color: var(--accent-2);
  border-color: var(--accent-2);
}
[data-theme="dark"] .btn-secondary:hover {
  background: var(--accent-2);
  color: #fff;
}

/* Mobile: stack actions full-width below 400px */
@media (max-width: 400px) {
  .error-404__actions { flex-direction: column; align-items: stretch; }
  .error-404__btn-home,
  .error-404__btn-search { min-width: 0; width: 100%; }
}

/* Print: minimal static layout */
@media print {
  .error-404__code { animation: none; font-size: 72px; }
  .error-404__actions, .error-404__suggestions { display: none; }
}

/* ===== COOKIE CONSENT BANNER (design/cookie-consent-banner) ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000; /* above back-to-top (z:9000) and podcast bar (z:60) */
  background: var(--surface);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
  padding: 16px 0;
  /* Entry animation */
  animation: cookie-slide-in 0.3s ease-out both;
}

@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Respects prefers-reduced-motion: skip translate, keep fade */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: cookie-fade-in 0.15s ease both; }
  @keyframes cookie-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

.cookie-consent--dismissing {
  animation: cookie-slide-out 0.25s ease-in both;
}

@keyframes cookie-slide-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent--dismissing { animation: cookie-fade-out 0.15s ease both; }
  @keyframes cookie-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
  }
}

.cookie-consent__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent__body {
  flex: 1 1 280px;
}

.cookie-consent__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0;
}

.cookie-consent__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__link:hover { color: var(--accent-2); }

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-consent__settings-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.cookie-consent__settings-link:hover { color: var(--text-dark); }

.cookie-consent__btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 18px;
  min-height: var(--tap-min);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent__btn--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.cookie-consent__btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.cookie-consent__btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
}

.cookie-consent__btn--secondary:hover {
  background: var(--bg-section);
  border-color: var(--text-muted);
}

/* Focus-visible outline for keyboard accessibility */
.cookie-consent__btn:focus-visible,
.cookie-consent__settings-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Dark-mode overrides */
[data-theme="dark"] .cookie-consent {
  background: var(--navy-mid);
  border-top-color: var(--accent-2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .cookie-consent__text { color: var(--text-mid); }
[data-theme="dark"] .cookie-consent__link { color: var(--accent-2); }
[data-theme="dark"] .cookie-consent__link:hover { color: #fff; }
[data-theme="dark"] .cookie-consent__settings-link { color: var(--text-pale); }
[data-theme="dark"] .cookie-consent__settings-link:hover { color: #fff; }

[data-theme="dark"] .cookie-consent__btn--secondary {
  color: var(--text-mid);
  border-color: var(--navy-light);
}

[data-theme="dark"] .cookie-consent__btn--secondary:hover {
  background: var(--navy-light);
  border-color: var(--text-muted);
  color: #fff;
}

/* Mobile: full-width stacked buttons below 480px */
@media (max-width: 480px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-consent__actions { flex-direction: column; align-items: stretch; }
  .cookie-consent__btn { width: 100%; }
  .cookie-consent__settings-link { justify-content: center; }
}

/* Print: never show */
@media print {
  .cookie-consent { display: none !important; }
}

/* ===== INTERESTS MODAL (home.html personalised feed) ===== */
/* Backdrop overlay */
.interests-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
}
.interests-modal-overlay.is-open {
  display: flex;
}

/* Inner card */
.interests-modal-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
}

/* Title */
.interests-modal-card__title {
  margin-bottom: 1rem;
}

/* Hint text */
.interests-modal-card__hint {
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 1rem;
}

/* Chip row */
.interests-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Action row */
.interests-modal-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Cancel / Save buttons */
.interests-btn--cancel {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.interests-btn--save {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--accent, #8b5cf6);
  color: #fff;
  border: none;
  cursor: pointer;
  font: inherit;
}

.interests-btn--cancel:hover { background: var(--bg-section, #f0f4f8); }
.interests-btn--save:hover   { opacity: 0.88; }

.interests-btn--cancel:focus-visible,
.interests-btn--save:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Interest chip — default and active state */
.interests-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border, #e5e7eb);
  cursor: pointer;
  font-size: 0.85rem;
  background: none;
  font: inherit;
  color: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.interests-chip--active {
  background: var(--accent, #8b5cf6);
  color: #fff;
  border-color: transparent;
}

.interests-chip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .interests-chip { transition: none; }
}

/* Dark-mode overrides */
[data-theme="dark"] .interests-modal-card {
  background: var(--navy-mid);
  border-color: var(--navy-light);
}

[data-theme="dark"] .interests-modal-card__hint { color: var(--text-pale); }

[data-theme="dark"] .interests-btn--cancel {
  border-color: var(--navy-light);
  color: var(--text-mid);
}

[data-theme="dark"] .interests-btn--cancel:hover { background: var(--navy-light); }

[data-theme="dark"] .interests-chip {
  border-color: var(--navy-light);
  color: var(--text-mid);
}

/* For-You edit-interests button (styled like a link/see-all) */
.for-you-edit-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

/* Print: hide modal */
@media print {
  .interests-modal-overlay { display: none !important; }
}
