/* === Custom Properties === */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #d97706;
  --color-notice-bg: #eff6ff;
  --color-notice-border: #93c5fd;
  --color-alert-bg: #fef2f2;
  --color-alert-border: #fca5a5;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 52rem;
  --spacing: 1.5rem;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.25; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; color: var(--color-text-muted); font-weight: 500; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* === Header === */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 0;
  margin-bottom: 2rem;
}

.header-inner {
  max-width: 1137px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); }
.main-nav a:hover { color: var(--color-text); text-decoration: none; }

/* === Flash Messages === */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid;
}

.flash--notice {
  background: var(--color-notice-bg);
  border-color: var(--color-notice-border);
  color: var(--color-primary);
}

.flash--alert {
  background: var(--color-alert-bg);
  border-color: var(--color-alert-border);
  color: var(--color-danger);
}

/* === Dashboard (legacy) === */
.dashboard__date { font-size: 1.5rem; margin-bottom: 0.25rem; }
.dashboard__meta { color: var(--color-text-muted); margin: 0 0 1.5rem; }

/* === Daily Brief (editorial layout) === */

/* White background + wider container for brief page */
body.brief-page { background: #fff; }
body.brief-page main.container { max-width: 72rem; }

.brief {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* ── Header ── */
.brief__header {
  margin-bottom: 3rem;
}

/* ── Hero Image ── */
/* Figma V2: 576px wide centered section with top/bottom borders,
   image at ~1.46:1 ratio, centered caption + credit below. */
.brief__hero {
  margin: 0 auto 4rem;
  max-width: 576px;
  border-top: 1px solid #cad5e2;
  border-bottom: 1px solid #cad5e2;
  padding: 2rem 0;
}

.brief__hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 576 / 394;
  object-fit: cover;
}

.brief__hero-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  text-align: center;
}

.brief__hero-caption-text {
  font-size: 0.875rem;       /* 14px */
  font-weight: 400;
  color: #45556c;
  line-height: 1.625;        /* ~22.75px */
  letter-spacing: -0.009em;  /* -0.1504px at 16px base */
}

.brief__hero-credit {
  font-size: 0.75rem;        /* 12px */
  font-weight: 400;
  color: #90a1b9;
  line-height: 1.333;        /* 16px */
}

/* ── Podcast Embed ── */
/* Figma V2: dark navy card with inset player, matching the podcast section design. */
.brief__podcast {
  margin-bottom: 4rem;
  background: #0f172b;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brief__podcast-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff6467;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brief__podcast-sep {
  color: #62748e;
  font-weight: 400;
}

.brief__podcast-duration {
  font-weight: 400;
  color: #90a1b9;
  letter-spacing: 0;
  text-transform: none;
}

.brief__podcast-desc {
  font-size: 0.875rem;
  color: #cad5e2;
  line-height: 1.4286;     /* 20px */
  letter-spacing: -0.009em;
  margin: 0;
}

.brief__podcast-player {
  background: #1d293d;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brief__podcast-play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172b;
}

.brief__podcast-play:hover {
  background: #f1f5f9;
}

.brief__podcast-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #90a1b9;
  font-variant-numeric: tabular-nums;
}

.brief__podcast-bar {
  flex: 1;
  height: 6px;
  background: #314158;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
}

.brief__podcast-progress {
  height: 100%;
  width: 0%;
  background: #fb2c36;
  border-radius: 9999px;
}

.brief__podcast-speed {
  flex-shrink: 0;
  height: 24px;
  padding: 0 8px;
  background: #314158;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #cad5e2;
  cursor: pointer;
}

.brief__podcast-speed:hover {
  background: #3d5068;
}

.brief__podcast-processing {
  font-size: 0.75rem;
  color: #62748e;
}

/* Top bar: read time + archive link */
.brief__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.5rem;
}

.brief__topbar-read {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #62748e;
}

.brief__topbar-link {
  font-size: 0.85rem;
  color: #62748e;
  text-decoration: none;
}

.brief__topbar-link:hover { color: #0f172a; }

/* ——— Daily Brief ——— divider */
.brief__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.brief__divider::before,
.brief__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dc2626;
}

.brief__divider-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #62748e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.brief__title {
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brief__subtitle {
  font-size: 1.375rem;
  color: #62748e;
  margin: 0 0 1.5rem;
}

/* Compact stats – no bordered box */
.brief__stats-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.brief__stats-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-danger);
}

.brief__stats-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172b;
}

.brief__stats-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #45556c;
}

/* Jump-to nav */
.brief__jump-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Jump to label */
.brief__jump-label {
  font-size: 0.75rem;
  color: #62748e;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.brief__jump-pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #45556c;
  transition: border-color 0.15s, background 0.15s;
}

.brief__jump-pill:hover {
  background: #fff;
  border-color: #94a3b8;
  text-decoration: none;
  color: #0f172b;
}

/* ── Sections ── */
.brief__section { margin-bottom: 4rem; }

/* Section headings */
.brief__section-heading {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172b;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.brief__section-sub {
  font-size: 1rem;
  color: #45556c;
  margin: 0 0 1.75rem;
}

/* Fix 4: hr between subtitle and theme articles */
.brief__section-rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 0;
}

/* ── Today's Top Line ── */
.top-line__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.5rem;
}

@media (max-width: 640px) {
  .top-line__grid { grid-template-columns: 1fr; }
}

.top-line__item {
  padding-left: 1.25rem;
  border-left: 4px solid #cad5e2;
  transition: border-color 0.15s;
}

.top-line__item:hover { border-color: #e7000b; }
.top-line__item:hover .top-line__headline { color: #e7000b; }
.top-line__item:hover .top-line__body { color: #0f172b; }

.top-line__headline {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  color: var(--color-text);
  transition: color 0.15s;
}

.top-line__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
  transition: color 0.15s;
}

/* ── Cross-Cutting Themes ── */
.theme {
  padding: 2.125rem 0;
  border-top: 2px solid #0f172b;
  scroll-margin-top: 1.5rem;  /* clearance when scrolled to via anchor */
}

.theme:first-child { border-top: none; padding-top: 1.5rem; }

.theme__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  line-height: 1.25;
  color: #0f172b;
  letter-spacing: -0.01em;
}

.theme__layout {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .theme__layout { grid-template-columns: 1fr; }
}

.theme__body p {
  margin: 0 0 1rem;
  line-height: 1.625;
  color: #314158;
  font-size: 1rem;
}

.theme__body p.drop-cap::first-letter {
  font-size: 3.75rem;
  font-weight: 800;
  float: left;
  line-height: 0.7;
  margin: 0.075em 0.1em 0 0;
  color: #0f172b;
}

/* Strategic significance sidebar */
.theme__significance {
  background: #fef2f2;
  border-left: 4px solid #e7000b;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme__significance-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0f172b;
  margin: 0;
}

.theme__significance p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #314158;
  letter-spacing: -0.01em;
}

/* ── Theme Tracker ── */
/* Sits inside .theme__body, below the article paragraphs.
   Plain layout — no background or border box. */
.theme__tracker {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.theme__tracker-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #62748e;
}

.theme__tracker-subtitle {
  font-size: 0.875rem;
  font-style: italic;
  color: #45556c;
  margin: 0;
}

.theme__tracker-timeline {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  border-left: 1px solid #cad5e2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme__tracker-item {
  position: relative;
}

.theme__tracker-dot {
  position: absolute;
  left: -1.4rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cad5e2;
}

.theme__tracker-date {
  display: block;
  font-size: 0.75rem;
  color: #90a1b9;
  line-height: 1.4;
}

.theme__tracker-signal {
  margin: 0;
  font-size: 0.875rem;
  color: #314158;
  line-height: 1.4;
}

.theme__tracker-brief-link {
  color: #314158;
  text-decoration: none;
}

.theme__tracker-brief-link:hover {
  color: #e7000b;
  text-decoration: underline;
}

.theme__tracker-cta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #45556c;
  text-decoration: none;
}

.theme__tracker-cta:hover {
  color: #e7000b;
  text-decoration: underline;
}

/* ── Theme Timeline full-page ── */
.theme-timeline {
  max-width: 36rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.theme-timeline__back {
  display: inline-block;
  font-size: 0.875rem;
  color: #62748e;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.theme-timeline__back:hover { color: #e7000b; }

.theme-timeline__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #62748e;
  margin: 0 0 0.5rem;
}

.theme-timeline__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172b;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.theme-timeline__description {
  font-size: 0.9375rem;
  color: #45556c;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.theme-timeline__count {
  font-size: 0.875rem;
  color: #90a1b9;
  margin: 0 0 2rem;
}

.theme-timeline__list {
  list-style: none;
  padding: 0 0 0 1.5rem;
  margin: 0;
  border-left: 2px solid #cad5e2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.theme-timeline__item {
  position: relative;
}

.theme-timeline__dot {
  position: absolute;
  left: -1.875rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e7000b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cad5e2;
}

.theme-timeline__date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #90a1b9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.theme-timeline__signal-title {
  font-size: 1rem;
  color: #314158;
  margin: 0;
  line-height: 1.5;
}

.theme-timeline__brief-link {
  color: #314158;
  text-decoration: none;
  font-weight: 500;
}

.theme-timeline__brief-link:hover {
  color: #e7000b;
  text-decoration: underline;
}

/* ── Category Highlights ── */
.highlights__box {
  background: #f8fafc;
  border-left: 4px solid #0f172b;
  padding: 2rem 2rem 2rem 2.25rem;
}

.highlights__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.5rem;
}

@media (max-width: 640px) {
  .highlights__grid { grid-template-columns: 1fr; }
}

.highlight__item { }

.highlight__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.highlight__link:hover { text-decoration: none; }
.highlight__link:hover .highlight__category { color: #e7000b; }
.highlight__link:hover .highlight__summary { color: #0f172b; }
.highlight__link:hover .highlight__chevron { color: #e7000b; }

.highlight__link--static {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.highlight__chevron {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-danger);
  transition: color 0.15s;
}

.highlight__content { display: flex; flex-direction: column; gap: 0.3rem; }

.highlight__category {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0;
  transition: color 0.15s;
}

.highlight__summary {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
  transition: color 0.15s;
}

/* === Archive Nav (prev/next) === */
.archive-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.archive-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #62748e;
  text-decoration: none;
  transition: color 0.15s;
}
.archive-nav__link:hover { color: #0f172b; text-decoration: none; }
.archive-nav__link--center { font-weight: 600; color: #45556c; }

/* === Category Brief (archive deep-dive pages) === */
.category-brief { padding-bottom: 4rem; }

.category-brief__header {
  padding: 2.5rem 0 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.category-brief__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e7000b;
  background: #fef2f2;
  border: 1px solid #ffc9c9;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.75rem;
}

.category-brief__back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #62748e;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: color 0.15s;
}
.category-brief__back:hover { color: #0f172b; text-decoration: none; }

.category-brief__body { margin-bottom: 3rem; }

/* === Category Brief — structured Figma layout === */

.cat-brief { padding-top: 2.5rem; padding-bottom: 4rem; }

/* Back link */
.cat-brief__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #45556c;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.15s;
}
.cat-brief__back-link:hover { color: #0f172b; text-decoration: none; }

/* Header */
.cat-brief__header {
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}

.cat-brief__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0.75rem 0 1.5rem;
  color: #0f172b;
  letter-spacing: -0.02em;
}

/* Sections */
.cat-brief__section { margin-bottom: 4rem; }

.cat-brief__section--border {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Top Line — single column */
.cat-top-line {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin-top: 1.75rem;
}

.cat-top-line__item {
  padding-left: 1.5rem;
  border-left: 4px solid #cad5e2;
  transition: border-color 0.15s;
}
.cat-top-line__item:hover { border-color: #e7000b; }
.cat-top-line__item:hover .cat-top-line__text { color: #0f172b; }

.cat-top-line__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
  color: #314158;
  transition: color 0.15s;
}

/* Key Developments */
.key-devs {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1.75rem;
}

.key-dev {
  border-left: 4px solid #e7000b;
  padding-left: 2.25rem;
}

.key-dev__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172b;
  margin: 0 0 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.key-dev__layout {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .key-dev__layout { grid-template-columns: 1fr; }
}

.key-dev__body p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: #314158;
}

.key-dev__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* "Why it matters" sidebar box */
.key-dev__why {
  background: #fef2f2;
  border-left: 4px solid #e7000b;
  padding: 1rem 1.25rem 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* "What to watch" sidebar box */
.key-dev__watch {
  border: 2px solid #0f172b;
  padding: 1.125rem 1.25rem 1.125rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.key-dev__box-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0f172b;
}

.key-dev__box-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #314158;
  overflow-wrap: break-word;
}

/* Inline citation links rendered by inline_links() helper */
.inline-link {
  color: #45556c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover { color: #0f172b; }

/* Signals & Trends */
.signals {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.signal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem 1.5rem 0.25rem;
}

.signal-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 0.75rem;
}

.signal-card__body {
  font-size: 1rem;
  color: #314158;
  line-height: 1.625;
  margin: 0 0 1.5rem;
}

/* Explore Other Categories heading (smaller than section headings) */
.cat-brief__explore-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172b;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.cat-brief__explore-sub {
  font-size: 1rem;
  color: #45556c;
  margin: 0 0 1.5rem;
}

/* old .archive-index and .archive-list rules removed — superseded by .archive__* */

.prose { margin-bottom: 2rem; }
.prose p { margin: 0 0 1rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose h1 { font-size: 1.5rem; color: var(--color-text); }
.prose h2 { font-size: 1.2rem; color: var(--color-text); font-weight: 600; }
.prose h3 { font-size: 1.05rem; color: var(--color-text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose a:hover { color: var(--color-primary-hover); }
.prose blockquote { margin: 0 0 1rem; padding: 0.5rem 1rem; border-left: 3px solid var(--color-border); color: var(--color-text-muted); }
.prose strong { font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }

/* === Deep Dives / Category Grid === */
.deep-dives__heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-card:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.category-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.category-card__preview {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* === Article List === */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-list__title { font-weight: 500; }
.article-list__meta { font-size: 0.8rem; color: var(--color-text-muted); }

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

/* === Digest List (Archive) === */
.digest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.digest-list__item {
  border-bottom: 1px solid var(--color-border);
}

.digest-list__link {
  display: block;
  padding: 1rem 0;
  color: var(--color-text);
}
.digest-list__link:hover {
  text-decoration: none;
  background: var(--color-bg);
}

.digest-list__date {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.digest-list__preview {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* === Digest Show Nav === */
.digest-show__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.digest-show__nav-link { color: var(--color-text-muted); }
.digest-show__nav-link:hover { color: var(--color-text); }

.digest-show__category-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin: 0 0 0.25rem;
}

.digest-show__back-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.digest-show__back-link:hover { color: var(--color-text); }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

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

/* === Sources List === */
.sources-index__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sources-list__head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}

.sources-list__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.sources-list__head--no-category {
  grid-template-columns: 2fr 1fr 1fr 2fr;
}
.sources-list__row--no-category {
  grid-template-columns: 2fr 1fr 1fr 2fr;
}

.sources-list__actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* === Badges === */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.badge--active { background: #dcfce7; color: var(--color-success); }
.badge--inactive { background: #f3f4f6; color: var(--color-text-muted); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
}
.btn:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  color: #fff;
}

.btn--small { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { background: var(--color-bg); color: var(--color-text); }

.btn--danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
}
.btn--danger:hover { background: #b91c1c; }

.btn--toggle {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--toggle:hover { background: var(--color-bg); }

/* === Forms === */
.form { max-width: 32rem; }

.form__errors {
  background: var(--color-alert-bg);
  border: 1px solid var(--color-alert-border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-danger);
}
.form__errors ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

.form__group { margin-bottom: 1rem; }

.form__group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form__input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  font-family: inherit;
}
.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__group--checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form__group--checkbox label { margin-bottom: 0; }

.form__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* === Filter Pills === */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all 0.15s;
}
.filter-pill:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-pill--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.filter-pill--active:hover {
  color: #fff;
  background: var(--color-primary-hover);
}

/* === Category Badges === */
.badge--category {
  background: #eff6ff;
  color: var(--color-primary);
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

/* === Assign Source Bar === */
.assign-source-bar {
  margin-bottom: 1rem;
}
.assign-source-form {
  max-width: 20rem;
}
.assign-source-select {
  width: 100%;
}

/* === Checkbox Group (form) === */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

/* === Marketing Page === */

/* Palette: navy #0f172b | body-text #45556c | muted #62748e |
   article-text #314158 | accent-red #e7000b | border #e2e8f0 |
   surface-alt #f8fafc | icon-bg #f1f5f9 */

.mk-body {
  background: #fff;
  color: #0f172b;
}

/* --- Header --- */
.mk-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mk-header__inner {
  max-width: 1137px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mk-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0f172b;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: opacity 0.15s ease;
}
.mk-brand:hover { text-decoration: none; color: #0f172b; opacity: 0.75; }

.mk-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mk-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #45556c;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.mk-nav__link:hover { color: #0f172b; text-decoration: none; }
.mk-nav__link--disabled { opacity: 0.45; cursor: default; pointer-events: none; }

/* --- Buttons --- */
.mk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f172b;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.mk-btn:hover {
  background: #dc2626;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.mk-btn--sm   { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.mk-btn--lg   { padding: 1rem 1.75rem; font-size: 1.125rem; }
.mk-btn--dark { background: #0f172b; color: #fff; }
.mk-btn--full { width: 100%; justify-content: center; padding: 0.875rem; font-size: 1rem; }

/* --- Generic section wrapper --- */
.mk-section {
  padding: 4.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}
.mk-section--alt { background: #f8fafc; }

.mk-section__inner {
  max-width: 940px;
  margin: 0 auto;
}
.mk-section__inner--wide {
  max-width: 1072px;
  margin: 0 auto;
}

/* --- Section typography --- */
.mk-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e7000b;
  text-align: center;
  margin: 0 0 1.25rem;
}

.mk-section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172b;
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.mk-section-subtitle {
  font-size: 1.125rem;
  color: #45556c;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* --- Hero --- */
.mk-hero {
  padding: 5rem 2rem 4.5rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.mk-hero__inner {
  max-width: 940px;
  margin: 0 auto;
}

.mk-hero__title {
  font-size: 3.75rem;
  font-weight: 700;
  color: #0f172b;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: 0.005em;
}

.mk-hero__subtitle {
  font-size: 1.25rem;
  color: #45556c;
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.mk-hero__cta { margin-bottom: 1.25rem; }

.mk-hero__social-proof {
  font-size: 0.875rem;
  color: #62748e;
  margin: 0;
}

/* --- Feature cards (2×2) --- */
.mk-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mk-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mk-feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 43, 0.08);
}

.mk-feature-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.mk-feature-card__icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0f172b;
}

.mk-feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0;
}

.mk-feature-card__body {
  font-size: 1rem;
  color: #45556c;
  line-height: 1.65;
  margin: 0;
}

/* --- Sample articles --- */
.mk-articles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mk-article {
  background: #f8fafc;
  border-left: 4px solid #0f172b;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mk-article--link:hover {
  border-color: #dc2626;
  background: #fff5f5;
  text-decoration: none;
  color: inherit;
}

.mk-article__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mk-article__tag {
  display: inline-block;
  background: #fef2f2;
  border: 1px solid #ffc9c9;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e7000b;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.mk-article__dot  { color: #62748e; font-size: 0.75rem; }
.mk-article__category { font-size: 0.75rem; font-weight: 500; color: #45556c; }

.mk-article__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 0.75rem;
}

.mk-article__body {
  font-size: 1rem;
  color: #314158;
  line-height: 1.65;
  margin: 0;
}

.mk-article-cta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.mk-article-cta__text {
  font-size: 0.875rem;
  color: #45556c;
  margin: 0 0 0.75rem;
}

.mk-article-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172b;
  text-decoration: none;
  transition: gap 0.15s ease, opacity 0.15s ease;
}
.mk-article-cta__link:hover { text-decoration: none; opacity: 0.7; gap: 0.5rem; color: #0f172b; }

/* --- Domain cards (3×2) --- */
.mk-domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mk-domain-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mk-domain-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 43, 0.08);
}

.mk-domain-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 0.5rem;
}

.mk-domain-card__body {
  font-size: 0.875rem;
  color: #45556c;
  line-height: 1.65;
  margin: 0;
}

/* --- How It Works (3 steps) --- */
.mk-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mk-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mk-step-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 43, 0.08);
}

.mk-step-card__number {
  width: 48px;
  height: 48px;
  background: #0f172b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.mk-step-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 0.875rem;
}

.mk-step-card__body {
  font-size: 1rem;
  color: #45556c;
  line-height: 1.65;
  margin: 0;
}

/* --- Trusted sources --- */
.mk-sources {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 3rem 2rem;
}

.mk-sources__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172b;
  text-align: center;
  margin: 0 0 2rem;
}

.mk-sources__grid {
  max-width: 1072px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1rem;
}

.mk-source-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  font-size: 1.1rem;
  color: #314158;
  font-weight: 400;
}
.mk-source-item--italic { font-style: italic; }
.mk-source-item--bold   { font-weight: 700; }

.mk-sources__footnote {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #45556c;
  max-width: 1072px;
  margin: 0 auto;
}

/* --- Final CTA --- */
.mk-final-cta {
  padding: 5rem 2rem;
  text-align: center;
}

.mk-final-cta__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 1rem;
}

.mk-final-cta__subtitle {
  font-size: 1.25rem;
  color: #45556c;
  margin: 0 0 2rem;
}

.mk-final-cta__note {
  font-size: 0.875rem;
  color: #62748e;
  margin: 1rem 0 0;
}

/* --- Footer --- */
.mk-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2rem;
}

.mk-footer__inner {
  max-width: 1137px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mk-footer__copy {
  font-size: 0.875rem;
  color: #62748e;
  margin: 0;
}

.mk-footer__links { display: flex; gap: 1.5rem; }

.mk-footer__link {
  font-size: 0.875rem;
  color: #45556c;
  text-decoration: none;
  transition: color 0.15s ease;
}
.mk-footer__link:hover { color: #0f172b; text-decoration: none; }

/* === Subscribe Modal === */
.mk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-modal.hidden { display: none; }

.mk-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 43, 0.6);
  cursor: default;
}

.mk-modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid #0f172b;
  border-radius: 6px;
  width: 100%;
  max-width: 512px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.mk-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  line-height: 0;
}
.mk-modal__close:hover { color: #0f172b; }

/* Form state */
.mk-modal__header { margin-bottom: 24px; text-align: center; }
.mk-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 8px;
  line-height: 1.2;
}
.mk-modal__subtitle { font-size: 0.9375rem; color: #45556c; margin: 0; }

.mk-modal__error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 0.875rem;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.mk-modal__field { margin-bottom: 12px; }
.mk-modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.mk-modal__input:focus { border-color: #0f172b; box-shadow: 0 0 0 3px rgba(15,23,43,0.08); }

.mk-modal__note {
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  margin: 12px 0 0;
}

/* Success state */
.mk-modal__success-state { text-align: center; }

.mk-modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #00bc7d;
  margin: 0 auto 24px;
}

.mk-modal__success-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 12px;
}

.mk-modal__success-text {
  font-size: 1rem;
  color: #45556c;
  line-height: 1.625;
  margin: 0 0 20px;
}

.mk-modal__email-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
}
.mk-modal__email-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #62748e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.mk-modal__email-value {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172b;
  margin: 0;
}

.mk-modal__next {
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.mk-modal__next-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172b;
  text-align: center;
  margin: 0 0 12px;
}
.mk-modal__next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk-modal__next-list li {
  font-size: 0.875rem;
  color: #45556c;
  padding-left: 18px;
  position: relative;
}
.mk-modal__next-list li::before {
  content: "•";
  color: #dc2626;
  position: absolute;
  left: 0;
}

/* === Responsive === */
@media (max-width: 640px) {
  h1 { font-size: 1.35rem; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .sources-list__head { display: none; }
  .sources-list__row { grid-template-columns: 1fr; gap: 0.25rem; font-size: 0.85rem; }
  .sources-list__actions { flex-direction: column; }
  .digest-show__nav { font-size: 0.8rem; }

  /* Marketing page — mobile */
  .mk-hero__title { font-size: 2.25rem; }
  .mk-hero__subtitle { font-size: 1rem; }
  .mk-section-title { font-size: 1.75rem; }
  .mk-features-grid { grid-template-columns: 1fr; }
  .mk-domains-grid { grid-template-columns: 1fr; }
  .mk-steps-grid { grid-template-columns: 1fr; }
  .mk-sources__grid { grid-template-columns: repeat(2, 1fr); }
  .mk-nav__link { display: none; }
  .mk-final-cta__title { font-size: 1.75rem; }
  .mk-footer__inner { flex-direction: column; gap: 1rem; text-align: center; }
  .mk-footer__links { flex-wrap: wrap; justify-content: center; }
}

/* === Archive Page === */
/* Colors: #0f172b ink · #45556c muted · #62748e subtle · #e2e8f0 border · #cad5e2 dot · #f8fafc surface */

/* White background, no header gap — matches Figma */
body.archive-page { background: #ffffff; }
body.archive-page .site-header { margin-bottom: 0; }
/* Break out of the global <main class="container"> (52rem / 1.5rem padding) */
body.archive-page main.container { max-width: none; padding: 0; }

/* Month tags bar — sits between the subscribe CTA and the month list */
.archive__month-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.archive__month-nav::-webkit-scrollbar { display: none; }

.archive__month-tag {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: #f1f5f9;
  color: #45556c;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.archive__month-tag--active {
  background: #0f172b;
  color: #ffffff;
}
.archive__month-tag:not(.archive__month-tag--active):hover {
  background: #e2e8f0;
  color: #0f172b;
}

.archive__body { max-width: 56rem; margin: 0 auto; padding: 0 2rem; }

/* Breadcrumb */
.archive__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2rem;
  font-size: 14px;
  color: #62748e;
}

/* Header */
.archive__header { padding: 8px 0 32px; }
.archive__title {
  font-size: 48px;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: 0.35px;
}
.archive__subtitle { font-size: 18px; color: #45556c; margin: 0; line-height: 1.625; letter-spacing: -0.44px; }

/* Subscribe CTA */
.archive__subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 33px 33px 32px;
  margin-bottom: 2.5rem;
}
.archive__subscribe-heading { font-size: 24px; font-weight: 700; color: #0f172b; margin: 0 0 8px; line-height: 1.33; }
.archive__subscribe-sub { font-size: 16px; color: #45556c; margin: 0; line-height: 1.625; letter-spacing: -0.31px; }
.archive__subscribe-btn {
  flex-shrink: 0;
  height: 48px;
  min-width: 162px;
  padding: 0 1.25rem;
  background: #0f172b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.31px;
  transition: opacity 0.15s;
}
.archive__subscribe-btn:hover { opacity: 0.85; }

/* Month sections */
.archive__month-section { margin-bottom: 2.5rem; }
.archive__month-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 2px solid #0f172b;
  padding-bottom: 2px;
  margin-bottom: 24px;
}
.archive__month-heading {
  font-size: 30px;
  font-weight: 700;
  color: #0f172b;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.4px;
}
.archive__month-count { font-size: 14px; color: #45556c; margin: 0; line-height: 20px; letter-spacing: -0.15px; }

/* Entry list — individual cards with gap */
.archive__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.archive__entry { }
.archive__entry-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 25px;
  color: #0f172b;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: background 0.1s, border-color 0.1s;
}
.archive__entry-link:hover { background: #f8fafc; border-color: #cbd5e1; text-decoration: none; }
.archive__entry-link:hover .archive__entry-date { color: #dc2626; }
.archive__entry-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.archive__entry-date {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #0f172b;
  line-height: 28px;
  letter-spacing: -0.44px;
}
.archive__entry-stats {
  font-size: 14px;
  color: #45556c;
  display: flex;
  gap: 16px;
  align-items: center;
  line-height: 20px;
  letter-spacing: -0.15px;
}
.archive__entry-sep { color: #cad5e2; opacity: 1; }
.archive__entry-chevron { color: #45556c; flex-shrink: 0; }

.archive__loading { padding: 1.5rem 0; text-align: center; font-size: 14px; color: #45556c; }

@media (max-width: 640px) {
  .archive__title { font-size: 36px; }
  .archive__subscribe { flex-direction: column; align-items: flex-start; }
  .archive__subscribe-btn { width: 100%; justify-content: center; }
  .archive__entry-date { font-size: 16px; }
}

/* ============================================================
   Podcast page
   ============================================================ */

body.podcast-page main.container { max-width: none; padding: 0; }
body.podcast-page .site-header { margin-bottom: 0; }

/* Utility */
.hidden { display: none !important; }

/* Hero */
.pd-hero {
  background: #fff;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.pd-hero__inner { max-width: 72rem; margin: 0 auto; }
.pd-hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.022em;
  color: #0f172b;
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
}
.pd-hero__subtitle {
  color: #45556c;
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.027em;
  margin: 0 0 1.5rem;
}
.pd-hero__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.pd-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #62748e;
  letter-spacing: -0.009em;
}
.pd-tag--muted {
  background: transparent;
  border: none;
  font-weight: 400;
  color: #62748e;
  padding-left: 0;
}

/* Sections */
.pd-section { padding: 4rem 2rem; background: #fff; }
.pd-section--hosts { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.pd-section__inner { max-width: 72rem; margin: 0 auto; }
.pd-section__heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #0f172b;
  margin: 0 0 2rem;
}

/* Latest episode card */
.pd-latest {
  background: #0f172b;
  border-radius: 6px;
  border-left: 4px solid #e7000b;
  padding: 2.5rem;
  color: #fff;
}
.pd-latest__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pd-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: #e7000b;
  color: #fff;
}
.pd-latest__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #90a1b9;
}
.pd-latest__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: 0.025em;
}
.pd-latest__desc {
  font-size: 1.125rem;
  color: #cad5e2;
  line-height: 1.625;
  letter-spacing: -0.027em;
  margin: 0 0 1.5rem;
}

/* In this episode list */
.pd-latest__topics { margin-bottom: 1.5rem; }
.pd-latest__topics-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.014em;
  color: #90a1b9;
  margin: 0 0 1rem;
}
.pd-latest__topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pd-latest__topics-list li {
  font-size: 1rem;
  color: #cad5e2;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.pd-latest__topics-list li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #e7000b;
}

/* Player controls */
.pd-latest__controls {
  background: #1d293d;
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.pd-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7000b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
}
.pd-play-btn:hover { background: #c0000a; }
.pd-play-unavailable {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #314158;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}
.pd-player { flex: 1; }
.pd-player__bar {
  height: 8px;
  background: #314158;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.pd-player__progress {
  height: 100%;
  background: #e7000b;
  border-radius: 999px;
  width: 0%;
  transition: width 0.1s linear;
}
.pd-player__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #90a1b9;
  margin-top: 0.75rem;
}
.pd-player__duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pd-player__elapsed { font-size: 0.75rem; color: #62748e; }
.pd-player__duration--muted { color: #475569; font-size: 0.875rem; }

/* Empty state */
.pd-empty {
  text-align: center;
  padding: 3rem;
  color: #45556c;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Previous episodes — bordered cards */
.pd-episodes { display: flex; flex-direction: column; gap: 1.5rem; }
.pd-episode {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.pd-episode__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #0f172b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
}
.pd-episode__play:hover { background: #e7000b; }
.pd-episode__play--disabled { opacity: 0.4; cursor: default; }
.pd-episode__body { flex: 1; min-width: 0; }
.pd-episode__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172b;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  letter-spacing: -0.028em;
}
.pd-episode__meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.pd-episode__date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #62748e;
  letter-spacing: -0.009em;
}
.pd-episode__meta-sep { font-size: 0.875rem; color: #cad5e2; }
.pd-episode__duration {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #62748e;
  letter-spacing: -0.009em;
}
.pd-episode__desc {
  font-size: 1rem;
  color: #45556c;
  margin: 0;
  line-height: 1.625;
  letter-spacing: -0.02em;
}

/* Hosts */
.pd-hosts__why {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.pd-hosts__why-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172b;
  letter-spacing: -0.027em;
  margin: 0 0 0.75rem;
}
.pd-hosts__why-body {
  font-size: 1rem;
  color: #45556c;
  line-height: 1.625;
  letter-spacing: -0.02em;
  margin: 0;
}
.pd-hosts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.pd-host { display: flex; flex-direction: column; }
.pd-host__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0f172b;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.pd-host__avatar--david { background: #0f172b; }
.pd-host__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172b;
  letter-spacing: 0.004em;
  margin: 0 0 0.3rem;
}
.pd-host__role {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.014em;
  color: #e7000b;
  margin: 0 0 0.75rem;
}
.pd-host__bio {
  font-size: 1rem;
  color: #45556c;
  line-height: 1.625;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 640px) {
  .pd-hero { padding: 2rem 1.25rem; }
  .pd-section { padding: 2.5rem 1.25rem; }
  .pd-latest { padding: 1.5rem; }
  .pd-hosts { grid-template-columns: 1fr; }
}
