:root {
  --bg: #0a1118;
  --bg-elevated: #111c28;
  --surface: #152231;
  --surface-hover: #1a2a3a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef4f7;
  --text-muted: #8fa3b0;
  --text-dim: #5f7380;
  --guardian: #47e28d;
  --bbc: #6ac9ff;
  --sky: #8eb4ff;
  --accent: #f4d35e;
  --critical: #ff7b75;
  --positive: #47e28d;
  --left: var(--guardian);
  --neutral: var(--bbc);
  --right: var(--critical);
  --line: var(--border);
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-editorial: "Fraunces", Georgia, serif;
  --shell-pad: clamp(1rem, 2.5vw, 1.5rem);
  --sidebar-width: 15.5rem;
  --content-max: 68rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 10% -5%, rgba(106, 201, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 0%, rgba(244, 211, 94, 0.05), transparent 50%);
}

.ambient-glow { display: none; }

.shell {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: var(--shell-pad);
  padding-left: max(var(--shell-pad), env(safe-area-inset-left));
  padding-right: max(var(--shell-pad), env(safe-area-inset-right));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}

.site-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-brand { flex: 1 1 16rem; min-width: 0; }

.site-actions {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.page-intro .eyebrow,
.page-intro h1,
.page-intro .hero-sub,
.page-intro .site-actions,
.page-intro .stats-bar {
  opacity: 0;
  transform: translateY(8px);
  animation: pageIn 0.6s var(--ease) forwards;
}

.page-intro h1 { animation-delay: 0.06s; }
.page-intro .hero-sub { animation-delay: 0.1s; }
.page-intro .site-actions { animation-delay: 0.14s; }
.page-intro .stats-bar { animation-delay: 0.18s; }

body.is-loaded .page-intro .eyebrow,
body.is-loaded .page-intro h1,
body.is-loaded .page-intro .hero-sub,
body.is-loaded .page-intro .site-actions,
body.is-loaded .page-intro .stats-bar {
  opacity: 1;
  transform: none;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.hero-sub {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.stat-value-sm {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.refresh-btn, .share-btn, .nav-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.refresh-btn, .nav-btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.refresh-btn:hover:not(:disabled),
.nav-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.refresh-btn:focus-visible,
.nav-btn:focus-visible,
.dot:focus-visible,
.story-pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.refresh-btn.is-spinning { pointer-events: none; opacity: 0.7; }
.refresh-btn.is-spinning .refresh-icon { animation: spin 0.7s linear infinite; }

.share-btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(244, 211, 94, 0.35);
  background: rgba(244, 211, 94, 0.08);
  color: var(--accent);
}

.share-btn:hover { background: rgba(244, 211, 94, 0.14); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.app-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.sidebar-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.archive-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(244, 211, 94, 0.1);
  border: 1px solid rgba(244, 211, 94, 0.25);
}

.story-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.story-pick {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.story-pick:hover {
  background: var(--surface);
  border-color: var(--border);
}

.story-pick.active {
  background: var(--surface);
  border-color: rgba(244, 211, 94, 0.4);
  box-shadow: inset 3px 0 0 var(--accent);
}

.story-pick-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.story-pick-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.story-pick-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.story-pick-cat {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.story-pick-title {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-pick-time { font-size: 0.65rem; color: var(--text-dim); }

.main-panel { min-width: 0; }
.hero-stage { min-height: 12rem; }

.comparison-card, .hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-card.slide-left { animation: slideInLeft 0.4s var(--ease) both; }
.comparison-card.slide-right { animation: slideInRight 0.4s var(--ease) both; }
.comparison-card:not(.slide-left):not(.slide-right):not(.skeleton-card) {
  animation: cardEnter 0.45s var(--ease) both;
}

.comparison-lead { padding: 1.25rem 1.25rem 0; }

.comparison-badges, .hero-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.comparison-headline, .hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.28;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.comparison-summary, .hero-summary {
  margin: 0 0 0.75rem;
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.comparison-timestamps {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.match-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.match-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--guardian), var(--accent));
  border-radius: 999px;
  transform-origin: left;
  animation: barGrow 0.7s var(--ease) 0.1s both;
}

.story-banner, .hero-featured {
  position: relative;
  margin: 1rem 0 0;
  line-height: 0;
}

.story-banner-image, .hero-featured-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 21 / 9;
}

.story-banner-cap {
  position: absolute;
  bottom: 0.5rem;
  right: 0.65rem;
  margin: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.tone-spectrum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1rem 1.25rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.tone-spectrum-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.tone-slots { display: flex; gap: 0.35rem; flex: 1; }

.tone-slot {
  flex: 1;
  text-align: center;
  padding: 0.3rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.tone-slot.tone-positive {
  background: rgba(71, 226, 141, 0.12);
  color: var(--positive);
  border-color: rgba(71, 226, 141, 0.3);
}

.tone-slot.tone-negative {
  background: rgba(255, 123, 117, 0.12);
  color: var(--critical);
  border-color: rgba(255, 123, 117, 0.3);
}

.tone-slot.tone-neutral {
  background: rgba(106, 201, 255, 0.1);
  color: var(--bbc);
  border-color: rgba(106, 201, 255, 0.25);
}

.tone-legend {
  display: flex;
  gap: 0.65rem;
  font-size: 0.62rem;
  color: var(--text-dim);
  width: 100%;
}

.headline-compare { padding: 1.25rem; }

.headline-compare-grid, .hero-outlets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.compare-col, .hero-outlet {
  padding: 1rem 1.1rem;
  min-width: 0;
  border-bottom: 1px solid var(--border);
}

.compare-col:last-child, .hero-outlet:last-child { border-bottom: none; }

.compare-guardian, .hero-guardian { border-top: 3px solid var(--guardian); }
.compare-bbc, .hero-bbc { border-top: 3px solid var(--bbc); }
.compare-skynews, .hero-skynews { border-top: 3px solid var(--sky); }

.compare-col-head, .hero-outlet header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.compare-col-meta { display: flex; align-items: center; gap: 0.35rem; }
.compare-outlet { font-size: 0.62rem; }

.compare-headline, .hero-headline {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 700;
  line-height: 1.38;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.compare-headline a, .hero-headline a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.compare-headline a:hover, .hero-headline a:hover { color: var(--accent); }

.compare-col time, .hero-outlet time {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.outlet-angle {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-btn {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.read-btn:hover { color: var(--text); }

.unique-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.word-chip {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.word-chip.unique {
  color: var(--accent);
  border-color: rgba(244, 211, 94, 0.35);
  background: rgba(244, 211, 94, 0.08);
}

.word-chip.shared {
  color: var(--bbc);
  border-color: rgba(106, 201, 255, 0.3);
  background: rgba(106, 201, 255, 0.08);
}

.comparison-insights { padding: 0 1.25rem 1.25rem; }

.word-panel {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.word-panel h4, .key-diffs h4 {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.word-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.key-diffs ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.key-diffs li { margin-bottom: 0.25rem; }

mark {
  background: rgba(244, 211, 94, 0.35);
  color: inherit;
  border-radius: 2px;
  padding: 0 0.1em;
}

.cat, .score, .provider, .confidence, .badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.badge.left { color: #04190f; background: var(--guardian); border-color: transparent; }
.badge.neutral { color: #001625; background: var(--bbc); border-color: transparent; }
.badge.right { color: #290403; background: var(--critical); border-color: transparent; }

.cat-politics { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.35); }
.cat-world { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); }
.cat-sport { color: #86efac; border-color: rgba(134, 239, 172, 0.35); }
.cat-economy { color: #fdba74; border-color: rgba(253, 186, 116, 0.35); }

.conf-high { color: var(--positive); }
.conf-med { color: var(--accent); }
.conf-low { color: var(--text-dim); }
.score { color: var(--positive); border-color: rgba(71, 226, 141, 0.3); }
.provider { color: var(--text-dim); }

.tone-chip {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.tone-positive { color: #04190f; background: rgba(71, 226, 141, 0.85); }
.tone-negative { color: #290403; background: rgba(255, 123, 117, 0.85); }

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.story-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.nav-dots { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.dot.active { background: var(--accent); width: 1.1rem; }

.swipe-hint {
  flex: 1 1 100%;
  text-align: center;
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.skeleton-card { pointer-events: none; }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-tags { height: 1.25rem; width: 50%; margin-bottom: 0.75rem; }
.skeleton-title { height: 1.75rem; width: 85%; margin-bottom: 0.65rem; }
.skeleton-summary { height: 2.5rem; width: 100%; margin-bottom: 1rem; }
.skeleton-banner { height: 10rem; margin: 0 0 1rem; border-radius: 0; }
.skeleton-col { min-height: 8rem; }

.gaps-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.gaps-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gaps-intro { margin: 0 0 0.85rem; color: var(--text-muted); font-size: 0.88rem; }

.gap-card {
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 123, 117, 0.06);
  border: 1px solid rgba(255, 123, 117, 0.18);
}

.gap-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.gap-card-head h3 {
  margin: 0;
  flex: 1 1 12rem;
  font-family: var(--font-editorial);
  font-size: 0.92rem;
}

.gap-outlets { display: flex; gap: 0.3rem; }

.outlet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.outlet-pill.covered.left { background: rgba(71, 226, 141, 0.2); color: var(--guardian); }
.outlet-pill.covered.neutral { background: rgba(106, 201, 255, 0.15); color: var(--bbc); }
.outlet-pill.missing {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.2);
  text-decoration: line-through;
}

.gap-detail { margin: 0.15rem 0; font-size: 0.82rem; color: var(--text-muted); }
.gap-links { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.45rem; }
.gap-link { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.gap-link:hover { color: var(--text); }

.matrix-details { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.88rem; }

.matrix-details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.matrix-details summary::-webkit-details-marker { display: none; }

.matrix-details summary::before {
  content: "▸";
  color: var(--accent);
  transition: transform 0.2s;
}

.matrix-details[open] summary::before { transform: rotate(90deg); }

.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.matrix-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.matrix-table th, .matrix-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }
.matrix-table .yes { color: var(--positive); }
.matrix-table .no { color: rgba(255, 255, 255, 0.2); }

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.muted { color: var(--text-muted); }

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: revealUp 0.45s var(--ease) forwards;
  animation-delay: 0.08s;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.18s; }
.reveal-delay-3 { animation-delay: 0.24s; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .headline-compare-grid, .hero-outlets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compare-col, .hero-outlet {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .compare-col:last-child, .hero-outlet:last-child { border-right: none; }
}

@media (min-width: 1024px) {
  .shell { --content-max: 72rem; }

  .app-layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .sidebar {
    position: sticky;
    top: var(--shell-pad);
    max-height: calc(100dvh - var(--shell-pad) * 2);
  }

  .sidebar-section {
    max-height: calc(100dvh - var(--shell-pad) * 2 - 2rem);
    display: flex;
    flex-direction: column;
  }

  .story-rail {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }

  .site-header-inner { align-items: center; }

  .story-banner-image, .hero-featured-image { max-height: 320px; }
}

@media (max-width: 1023px) {
  .sidebar { order: -1; }

  .story-rail {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .story-pick {
    flex: 0 0 min(16rem, 78vw);
    scroll-snap-align: start;
  }

  .story-pick.active { box-shadow: inset 0 -3px 0 var(--accent); }

  .sidebar-section { padding: 0.75rem; }

  .site-actions { align-items: flex-start; width: 100%; }
  .meta { text-align: left; }
  .action-buttons { justify-content: flex-start; }
}

@media (max-width: 639px) {
  .hero-nav { padding: 0.65rem; }
  .nav-btn { flex: 1 1 calc(50% - 0.35rem); text-align: center; }
  .nav-center { order: -1; width: 100%; }

  .comparison-lead, .headline-compare, .comparison-insights {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tone-spectrum { margin-left: 1rem; margin-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
