/* iranian-republic.com v1 - modern Persian RTL news site.
   UI redesign 2026-11-15: mobile-first, sticky dark header, featured
   story + card grid, section cards, dark footer. No external CDN.
   Vazirmatn is self-hosted in /fonts/ (see public/fonts/README.md).
   System fonts are the fallback.
   Palette: deep navy header/footer, paper white cards on soft grey,
   one red accent. Contrast: body text #1c2330 on #ffffff (about 15:1),
   muted text #5a6472 on #ffffff (about 7:1), links #0b4f8a on
   #ffffff (about 8:1), white on navy #131f33 (about 14:1). No meaning
   is carried by colour alone: every badge is text first.
   Zero JavaScript on content pages; this file is the whole visual
   layer. It styles BOTH the live inline renderer (src/index.js:
   .card, .meta, .badge, .page-head, .card-grid ...) and the
   templates (src/templates/*: .item-card, .site-title ...), so the
   two never drift apart visually again. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Vazirmatn.woff2') format('woff2');
}

:root {
  --ink: #1c2330;
  --muted: #5a6472;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --line: #e3e6ea;
  --link: #0b4f8a;
  --navy: #131f33;
  --navy-2: #1d2f4d;
  --navy-text: #dbe4f0;
  --accent: #b3261e;
  --accent-dark: #8f1d17;
  --accent-soft: #fdecea;
  --blue-soft: #e8f0f8;
  --max-width: 72rem;
  --measure: 44rem;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(19, 31, 51, 0.08), 0 4px 14px rgba(19, 31, 51, 0.05);
  --shadow-lift: 0 2px 6px rgba(19, 31, 51, 0.1), 0 10px 24px rgba(19, 31, 51, 0.1);
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--soft);
  line-height: 1.9;
}

img, video { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover, a:focus { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.skip-link {
  position: absolute;
  right: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Sticky dark header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 2px 10px rgba(19, 31, 51, 0.25);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.brand, .site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper);
  text-decoration: none;
  padding: 0.4rem 0;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--accent);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
/* Decided logo (2026-11-20): the 1024x1024 navy mark. The header
   and footer are navy, so the mark blends in; the radius keeps the
   square art from touching the header edge. */
.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  flex: none;
}
.footer-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  vertical-align: middle;
  margin-inline-end: 0.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
}
.site-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
}
.site-nav a {
  display: inline-block;
  color: var(--navy-text);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  line-height: 1.5;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--paper); }
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  min-width: 0;
}
.page-head, .page-intro { margin-bottom: 1.5rem; }
.page-head h1, .page-intro h1, .article-page h1 {
  font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.3rem);
  line-height: 1.5;
  margin: 0.25rem 0 0.5rem;
  padding-right: 0.9rem;
  border-right: 4px solid var(--accent);
}
.page-head .lede, .page-intro p { color: var(--muted); margin: 0.5rem 0; }
.updated, .last-updated, .tracker-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}
.updated::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.45rem;
  vertical-align: middle;
}
/* Live pulse (UI polish 2026-11-15): the tracker updated line reads
   as live. The animation is a box-shadow ring, never movement, and
   is switched off under prefers-reduced-motion below. */
.updated--live::before { animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(179, 38, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0); }
}
.stale {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin: 0.75rem 0;
}

/* Section headings */
.section-head {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  padding-right: 0.8rem;
  border-right: 4px solid var(--accent);
}

/* Card grid: 1 column on phones, 2 on tablets, 3 on desktop */
.card-grid, .item-list, .event-items {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card-grid > *, .item-list > *, .event-items > * { min-width: 0; }
@media (min-width: 42rem) {
  .card-grid, .item-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 68rem) {
  .card-grid, .item-list { grid-template-columns: repeat(3, 1fr); }
}

/* Item cards */
.card, .item-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
/* Feed accent (UI polish 2026-11-15): a 3px top border in the section
   colour gives each section an identity at a glance. Colour is only
   a secondary cue — every card also carries a text badge. */
.card--fat, .card--longform { border-top: 3px solid var(--navy-2); }
.card--lean { border-top: 3px solid var(--accent); }
.card--brief { border-top: 3px solid var(--link); background: #f7fafd; }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; overflow-wrap: break-word; }
.card-body p, .source-preview { overflow-wrap: break-word; }
.card h2, .item-card h2 { font-size: 1.15rem; line-height: 1.7; margin: 0; }
.card h2 a, .item-card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .item-card h2 a:hover { color: var(--accent-dark); text-decoration: underline; }
.item-card { padding: 1rem 1.1rem 1.15rem; }
.card p, .item-card p { margin: 0; }
.card-summary { color: var(--ink); }
.card-event { color: var(--muted); font-size: 0.92rem; }
.meta, .card-meta {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

/* Featured story: full-width row, image beside text on wide screens */
.card-featured { grid-column: 1 / -1; }
.card-featured h2 { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.7rem); }
/* A photo-less lead story gets a dark lead panel instead of a flat
   empty box (UI polish 2026-11-15). It is a block, not the two-column
   featured grid — there is no image column to fill. */
.card-featured--text { background: var(--navy); color: var(--paper); border-top: 3px solid var(--accent); }
.card-featured--text .card-body h2 a { color: var(--paper); }
.card-featured--text .card-body h2 a:hover { color: var(--paper); }
.card-featured--text .meta { color: var(--navy-text); }
.card-featured--text .card-body > p { color: var(--paper); }
.card-featured--text .card-body > p.meta { color: var(--navy-text); }
@media (min-width: 42rem) {
  .card-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
  .card-featured--text { display: block; }
  .card-featured .card-media img { height: 100%; aspect-ratio: auto; }
  .card-featured .card-body { justify-content: center; padding: 1.5rem; }
}

/* Badges: text first, colour is only a secondary cue */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.6;
  background: #eef0f2;
  color: var(--ink);
}
.badge-auto, .badge.auto { background: var(--accent-soft); color: var(--accent-dark); }
.badge-brief, .badge.brief, .badge-opinion, .badge.opinion { background: var(--blue-soft); color: var(--link); }
.badge-curated, .badge.curated { background: #eef0f2; color: var(--ink); }
.badge-corrected { background: var(--soft); border: 1px solid var(--line); }
.tier { font-size: 0.88rem; }

/* Section teaser cards on the homepage */
.sections, .teasers { margin: 1.75rem 0; }
.section-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 42rem) {
  .section-grid { grid-template-columns: repeat(2, 1fr); }
}
.section-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
.section-card h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.section-card h3 a { color: var(--ink); text-decoration: none; }
.section-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.section-card p { margin: 0; color: var(--muted); }
.section-teaser { margin: 1.5rem 0; }

/* Live tracker event groups */
.event, .event-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.event > .section-head, .event-group h2 { margin-top: 0; }
.event-meta { color: var(--muted); margin-top: -0.5rem; }

/* Article pages */
.article-page { max-width: var(--measure); margin: 0 auto; overflow-wrap: break-word; }
.article-page > h1 { margin-top: 0.5rem; }
.article-meta, .article-date { color: var(--muted); }
.article-author, .article-event { color: var(--muted); }
.article-summary {
  font-size: 1.12rem;
  line-height: 1.9;
  border-right: 3px solid var(--accent);
  padding-right: 1rem;
  margin: 1rem 0;
}
.article-summary p { margin: 0; }
.article-body { font-size: 1.05rem; }
.article-body img, .article-body video { max-width: 100%; height: auto; }
.article-body p { overflow-wrap: break-word; }
.media-item { margin: 1.5rem 0; }
.media-item img, .media-item video { max-width: 100%; height: auto; display: block; border-radius: 12px; }
.media-item figcaption, .media-credit, .transcript-note { color: var(--muted); font-size: 0.9rem; }
.sources { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 0.5rem; }
.source-domain { color: var(--muted); }
.source-note { color: var(--muted); font-size: 0.9rem; }
.related { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 0.5rem; }
.related ul { margin: 0.5rem 0; padding-right: 1.2rem; }
.related li { margin: 0.5rem 0; line-height: 1.7; }
.related li a { color: var(--ink); text-decoration: none; font-weight: 700; }
.related li a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Correction banner and correction notes */
.correction-banner {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.correction-banner p { margin: 0.25rem 0; }
.correction {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
}

/* Empty state, search, pagination */
.empty-state {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.search-form label { width: 100%; font-weight: 700; }
.search-form input[type="search"] {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  flex: 1 1 16rem;
  min-height: 2.9rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  min-width: 0;
}
.search-form button, .button, .page-head button {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  min-height: 2.9rem;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--navy);
  border-radius: 8px;
  cursor: pointer;
}
.search-count { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin: 1.75rem 0 0.5rem; }
.pagination a {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.pagination a:hover { border-color: var(--ink); }

/* Source link preview (MEDIA RULE, reza 2026-11-15): the auto
   section shows only the source link — never a stored image. A card
   preview is a single line under the summary; an article preview is
   a bordered block above the body. The link itself is the preview;
   no source image is ever hotlinked. */
.source-preview { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--muted); }
.source-preview a { font-weight: 700; }
section.source-preview { margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--soft); }
section.source-preview p { margin: 0.35rem 0; }
.source-preview-label { font-size: 0.85rem; color: var(--muted); }
.source-preview-domain { font-size: 0.9rem; color: var(--muted); }

/* Dark footer */
.site-footer { background: var(--navy); color: var(--navy-text); margin-top: 3rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem; }
.footer-inner p { margin: 0.5rem 0; }
.footer-brand { color: var(--paper); font-size: 1.25rem; font-weight: 800; margin: 0 0 0.75rem; }
.footer-tagline { color: var(--navy-text); margin: 0 0 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.25rem; padding-top: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 1rem 0; }
.footer-nav a { color: var(--navy-text); padding: 0.5rem 0; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--paper); }
.last-updated { max-width: var(--max-width); margin: 1rem auto 0; padding: 0 1rem; color: var(--muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .card, .item-card { transition: none; }
  .card:hover, .item-card:hover { transform: none; }
  .updated--live::before { animation: none; }
}

/* ------------------------------------------------------------------
   UI redesign 2026-11-21: Radio Farda dense news portal.
   Mobile-first, dense, navy/red identity kept. No tier label
   anywhere (the .tier rule above is now unused and stays only so
   old cached pages do not break; nothing emits it). */

/* Wider, denser canvas */
:root { --max-width: 76rem; }

/* Uniform cards: 2-line titles, 3-line summaries, same height */
.card h2, .item-card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Standard 16:9 media slot, or a navy typographic placeholder */
.card-media--placeholder {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card-featured .card-media--placeholder { aspect-ratio: auto; min-height: 12rem; }

/* Video card slot: navy, never a broken <img> for a video key.
   The whole slot links to the article, where the <video> plays. */
.card-media--video {
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.card-media--video a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.card-media--video-label {
  color: var(--navy-text);
  font-size: 0.9rem;
  font-weight: 700;
}
/* Play badge: CSS triangle + no text, so it needs no font and no
   image. Shared by card video slots, timeline video thumbs and the
   article video-missing placeholder. */
.play-badge {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.9rem solid var(--paper);
}

/* Hero: bigger, denser lead story */
.card-featured h2 { font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.1rem); line-height: 1.55; }
@media (min-width: 42rem) {
  .card-featured { grid-template-columns: 1.6fr 1fr; }
  .card-grid--secondary { grid-template-columns: repeat(2, 1fr); }
}

/* Header: logo + LIVE pill + Jalali date bar */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.live-pill:hover { background: var(--accent-dark); color: var(--paper); }
.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--paper);
  animation: live-pulse 1.8s ease-out infinite;
}
.date-bar { background: var(--navy-2); color: var(--navy-text); font-size: 0.88rem; }
.date-bar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0.25rem 1rem; }

/* Dense portal: main column + latest-news rail (desktop) */
.portal { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1rem; }
.portal-main { min-width: 0; }
.portal-rail { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.rail-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.rail-box .section-head { margin-bottom: 0.6rem; }
.rail-box--opinion { border-top: 3px solid var(--link); background: #f7fafd; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-item {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.rail-item:last-child { border-bottom: 0; }
.rail-item time { color: var(--accent-dark); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.rail-item a { color: var(--ink); text-decoration: none; font-weight: 700; }
.rail-item a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (min-width: 68rem) {
  .portal { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
  .portal-main .card-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-rail { position: sticky; top: 7.5rem; }
}

/* Live tracker: timeline wire */
.live-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-right: 4px solid var(--accent);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.event--timeline { padding: 1.25rem 1.25rem 0.75rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  align-items: flex-start;
  padding: 0.6rem 0.6rem 0.6rem 0;
  border-right: 3px solid var(--accent);
  padding-right: 0.8rem;
  margin-bottom: 0.6rem;
  line-height: 1.65;
}
/* Timeline thumb (2026-11-21): every row shows one. Small 16:9
   slot at the row start; a stored image fills it, stored video
   gets the play badge, and every other row gets the uniform navy
   «خبر زنده» placeholder. The thumb is decorative. */
.timeline-thumb {
  flex: none;
  width: 4.75rem;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-thumb--placeholder {
  color: var(--navy-text);
  font-size: 0.8rem;
  font-weight: 700;
}
.timeline-thumb--video {
  flex-direction: column;
  gap: 0.15rem;
}
.timeline-thumb-label {
  color: var(--navy-text);
  font-size: 0.75rem;
  font-weight: 700;
  /* Antigravity review 2026-11-21: the 16:9 thumb is only about
     2.67rem tall; the inherited 1.9 line-height clipped the label.
     A tight line-height leaves room for badge + gap + label. */
  line-height: 1.2;
}
.timeline-text {
  /* Kimi review 2026-11-21: flex-basis auto sized this to its
     content, so a long headline wrapped onto its own line on
     mobile and left the thumb alone on the first line. A definite
     basis keeps the text beside the thumb; it wraps below the thumb
     only when even 12rem does not fit. */
  flex: 1 1 12rem;
  min-width: 0;
  /* Antigravity review 2026-11-21: wrapping the time, title and
     source in this span removed them as direct flex children of
     .timeline-item, so their gap vanished and the time ran into the
     headline. This span is a flex row itself, restoring the gap. */
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  align-items: baseline;
}
.timeline-item time { color: var(--accent-dark); font-weight: 800; font-size: 0.92rem; white-space: nowrap; }
.timeline-item a { color: var(--ink); text-decoration: none; font-weight: 700; }
.timeline-item a:hover { color: var(--accent-dark); text-decoration: underline; }
/* Antigravity review 2026-11-21: .timeline-item a (0,1,1) beats
   .timeline-source (0,1,0), so the source rendered ink-bold
   instead of muted. The qualified rule below wins. */
.timeline-item a.timeline-source { color: var(--muted); font-weight: 400; }
.timeline-source { color: var(--muted); font-size: 0.88rem; }

/* Opinion Watch: strategic brief hero + archive */
.brief-hero {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--accent);
}
.brief-hero h2 { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 1.9rem); line-height: 1.6; margin: 0.25rem 0 0.6rem; }
.brief-hero h2 a { color: var(--paper); text-decoration: none; }
.brief-hero h2 a:hover { text-decoration: underline; }
.brief-hero p { color: var(--navy-text); }
.brief-hero .brief-date { color: var(--navy-text); font-size: 0.9rem; margin: 0; }
/* Antigravity review 2026-11-21: the generic .button is navy on
   navy inside the hero, so the CTA was invisible. On the hero it
   is red instead, with a visible border. */
.brief-hero .button { display: inline-block; margin-top: 0.5rem; background: var(--accent); border-color: var(--accent); }
.brief-hero .button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}
.archive-list li:last-child { border-bottom: 0; }
.archive-list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.archive-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.archive-list time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* Article: hero media, share row, related as cards */
.article-hero { margin: 1.25rem 0; }
.article-hero .media-item { margin: 0; }
.article-hero--placeholder {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
}
/* Video placeholder: a stored video whose R2 object is gone. Navy
   slot with a play badge linking out to the Telegram source post;
   never a fake player. */
.article-hero--video-missing {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-hero--video-missing a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.article-hero--video-missing a:hover { text-decoration: underline; }
.share { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.75rem 0; padding: 0.75rem 0; }
.share h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.share p { margin: 0; }
.related-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 42rem) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.card--mini h3 { font-size: 1rem; line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--mini h3 a { color: var(--ink); text-decoration: none; }
.card--mini h3 a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Kimi review 2026-11-21: the global blue focus outline is about
   1.97:1 against navy, below the 3:1 focus target. On dark surfaces
   the outline is white instead. */
.site-header a:focus-visible,
.site-footer a:focus-visible,
.brief-hero a:focus-visible,
.card-featured--text a:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }

/* Screen-reader-only text (Kimi review: a lean card's only feed
   label was hidden inside aria-hidden, so AT users lost it). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Correction chip in the live timeline (was dropped from cards). */
.correction-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.6;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* The shared live dot is white, which is invisible on the white
   live bar (Kimi review). On the bar it is red instead. */
.live-bar .live-dot { background: var(--accent); }
.footer-channels { margin: 0.75rem 0; }
.footer-channels a { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
