/*
  HTT News design system — Piece 7 (engine wiring)
  Combines tokens.css + components.css from Studio prototypes.
  Extends PR #1 newsroom redesign. Factual zone-factual + opinion zone-opinion.
*/

/*
  Design tokens — Piece 1
  Factual = evolution of live site.css: white paper, ink #1a1a1a, accent #0066cc,
  thick black masthead rule. Opinion keeps hub green #0b3d2e. Same components;
  zone class shifts paper/accent — not a second brand system.
*/

:root {
  /* Type stacks */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Charter", "Bitstream Charter", "Sitka Text", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale (rem @ 17px root) */
  --text-display: 2.75rem;
  --text-h1: 2.25rem;
  --text-h2: 1.5rem;
  --text-h3: 1.2rem;
  --text-body: 1.05rem;
  --text-lede: 1.15rem;
  --text-meta: 0.78rem;
  --text-kicker: 0.7rem;
  --text-small: 0.88rem;

  --lh-display: 1.1;
  --lh-head: 1.2;
  --lh-body: 1.65;
  --lh-tight: 1.35;

  --tracking-display: -0.02em;
  --tracking-kicker: 0.1em;
  --tracking-nav: 0.06em;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3.5rem;
  --space-9: 5rem;

  /* Radii — minimal newspaper */
  --radius: 0;
  --radius-sm: 2px;

  /* Borders */
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--ink);
  --rule-masthead: 4px solid var(--ink);
  --rule-section: 2px solid var(--ink);

  /* Widths */
  --content-max: 42rem;
  --page-max: 68rem;
  --rail-max: 18rem;

  /* Shared neutrals (overridden lightly per zone) */
  --focus-ring: 2px solid var(--accent);
}

/* —— Factual zone (httnews) — ink-forward newspaper —— */
body.zone-factual,
.zone-factual {
  /* Match live site.css newspaper: white paper, ink, #0066cc */
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #666666;
  --line: #e0e0e0;
  --line-soft: #ebebeb;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --accent-wash: #e8f1fa;
  --paper-tint: #f9f9f9;
  --disclosure-bg: #fffbf0;
  --disclosure-edge: #f0b429;
  --footer-bg: #f5f5f5;
  --badge-news: var(--accent);
  --badge-opinion: #6b2d1a;
}

/* —— Opinion zone (holierthantao) — warmer paper, hub green —— */
body.zone-opinion,
.zone-opinion {
  --bg: #f4efe6;
  --bg-elevated: #fbf7f0;
  --ink: #1a1714;
  --ink-soft: #2c2722;
  --muted: #5c564e;
  --line: #d4c9b8;
  --line-soft: #e6ddd0;
  --accent: #0b3d2e;
  --accent-hover: #072a20;
  --accent-wash: #e4efe9;
  --paper-tint: #ebe4d8;
  --disclosure-bg: #efe7d8;
  --disclosure-edge: #0b3d2e;
  --footer-bg: #e8dfd0;
  --badge-news: #0066cc;
  --badge-opinion: #0b3d2e;
}

/* Defaults if zone class missing — factual */
body:not(.zone-factual):not(.zone-opinion) {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #666666;
  --line: #e0e0e0;
  --line-soft: #ebebeb;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --accent-wash: #e8f1fa;
  --paper-tint: #f9f9f9;
  --disclosure-bg: #fffbf0;
  --disclosure-edge: #f0b429;
  --footer-bg: #f5f5f5;
  --badge-news: #0066cc;
  --badge-opinion: #6b2d1a;
}

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

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  background: var(--bg-elevated);
  padding: var(--space-2) var(--space-3);
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.wrap--content {
  max-width: var(--content-max);
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .wrap {
    padding-inline: var(--space-4);
  }

  :root {
    --text-display: 2.15rem;
    --text-h1: 1.75rem;
    --text-h2: 1.3rem;
  }
}

/* HTT News components — Pieces 1–3. Depends on tokens. Extends live PR #1 newsroom chrome. */

/* —— Masthead / brand / nav —— */
.site-header {
  background: var(--bg);
  border-bottom: var(--rule-masthead);
  padding: var(--space-5) 0 var(--space-4);
  margin-bottom: var(--space-6);
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.masthead-meta {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  width: 100%;
}

.masthead-meta a {
  color: var(--muted);
  text-decoration: none;
}

.masthead-meta a:hover {
  color: var(--accent);
}

.brand {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  width: 100%;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.zone-crosslink {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
}

.zone-crosslink a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.zone-crosslink a:hover {
  border-bottom-color: var(--accent);
}

/* —— Kickers & badges —— */
.kicker {
  font-family: var(--font-sans);
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-kicker);
  color: var(--accent);
  margin: 0 0 var(--space-2);
}

.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-kicker);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-kicker);
  padding: 0.15em 0.55em;
  border: 1px solid currentColor;
  color: var(--badge-news);
  background: transparent;
  vertical-align: middle;
}

.badge--opinion {
  color: var(--badge-opinion);
}

.badge--news {
  color: var(--badge-news);
}

.meta {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin: 0;
}

.byline {
  font-style: italic;
  color: var(--muted);
  font-size: var(--text-small);
  margin: var(--space-2) 0 var(--space-5);
}

/* —— Lead story —— */
.lead-story {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: var(--border);
}

.lead-story__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-3);
}

.lead-story__title a {
  color: var(--ink);
  text-decoration: none;
}

.lead-story__title a:hover {
  color: var(--accent);
}

.lead-story__dek {
  font-size: var(--text-lede);
  line-height: var(--lh-tight);
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 var(--space-4);
}

.lead-story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}


/* —— Top module (WSJ / Free Press: lead + stacked secondaries) —— */
.top-module {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-6);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: var(--border);
  align-items: start;
}

.top-module .lead-story {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.top-module__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: var(--space-5);
  min-width: 0;
}

.top-module__aside .secondary-story {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.top-module__aside .secondary-story:first-child {
  padding-top: 0;
}

.top-module__aside .secondary-story:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.top-module__aside .secondary-story__title {
  font-size: 1.05rem;
}

@media (max-width: 800px) {
  .top-module {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .top-module__aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: var(--space-4);
  }

  .top-module__aside .secondary-story + .secondary-story {
    /* keep soft rules from stacked aside */
  }
}

/* —— Secondary stories —— */
.secondary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: var(--border);
}

.secondary-story {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.secondary-story__title {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0;
}

.secondary-story__title a {
  color: var(--ink);
  text-decoration: none;
}

.secondary-story__title a:hover {
  color: var(--accent);
}

.secondary-story__dek {
  font-size: var(--text-small);
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .secondary-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .secondary-story + .secondary-story {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-soft);
  }
}

/* —— Section rail —— */
.section-rail {
  margin-bottom: var(--space-7);
}

.section-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: var(--rule-section);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

.section-rail__title {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin: 0;
  color: var(--ink);
}

.section-rail__more {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--accent);
  text-decoration: none;
}

.section-rail__more:hover {
  text-decoration: underline;
}

.section-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-rail__list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-rail__list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: var(--lh-tight);
}

.section-rail__list a:hover {
  color: var(--accent);
}

/* —— Chron list item —— */
.chron-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chron-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.chron-item time {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  padding-top: 0.2em;
}

.chron-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-1);
}

.chron-item__title a {
  color: var(--ink);
  text-decoration: none;
}

.chron-item__title a:hover {
  color: var(--accent);
}

.chron-item__dek {
  margin: 0;
  font-size: var(--text-small);
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 480px) {
  .chron-item {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* —— Article header / hero / disclosure —— */
.article-header {
  max-width: var(--content-max);
  margin-bottom: var(--space-5);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-3);
}

.hero-figure {
  margin: 0 0 var(--space-6);
  max-width: var(--content-max);
}

.hero-figure img {
  width: 100%;
  background: var(--paper-tint);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure__placeholder {
  background: var(--paper-tint);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
  border: 1px solid var(--line-soft);
  text-align: center;
  padding: var(--space-4);
}

.hero-figure figcaption {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-2);
  text-transform: none;
  letter-spacing: 0;
}

.disclosure {
  background: var(--disclosure-bg);
  border-left: 3px solid var(--disclosure-edge);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--muted);
  margin: var(--space-5) 0;
  max-width: var(--content-max);
  line-height: 1.5;
}

.disclosure strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* —— Signup / house ad (quiet) —— */
.house-ad__kicker {
  margin: 0 0 var(--space-1);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.house-ad,
.signup {
  background: var(--bg-elevated);
  border: var(--border);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  max-width: var(--content-max);
  font-family: var(--font-sans);
}

.house-ad h2,
.signup h2 {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: 0;
}

.house-ad p,
.signup p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.5;
}

.house-ad ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: var(--text-small);
}

.house-ad a {
  color: var(--accent);
}

.signup label {
  display: block;
  font-size: var(--text-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin-bottom: var(--space-2);
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.signup input[type="email"] {
  flex: 1 1 12rem;
  padding: var(--space-3);
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.signup button {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
}

.signup button:hover {
  background: var(--accent);
}

/* —— Footer —— */
.site-footer {
  background: var(--footer-bg);
  border-top: var(--border);
  padding: var(--space-6) 0;
  margin-top: var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-small);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__legal {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

/* —— Prose helpers (article body measure) —— */
.prose {
  max-width: var(--content-max);
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-display);
  margin: 1.6em 0 0.6em;
  color: var(--ink);
}

.prose h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 1.4em 0 0.5em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose blockquote {
  margin: 1.25em 0;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* —— Home: multi-rail grid —— */
.rails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-6) var(--space-5);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: var(--border);
}

.rails-grid .section-rail {
  margin-bottom: 0;
}

/* —— Home: Latest block heading —— */
.home-block {
  margin-bottom: var(--space-7);
}

.home-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: var(--rule-section);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

.home-block__title {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin: 0;
  color: var(--ink);
}

/* —— Network strip (niche highlights) —— */
.network-strip {
  margin: 0 0 var(--space-7);
  padding: var(--space-5) 0 var(--space-6);
  border-top: var(--rule-section);
  border-bottom: var(--border);
}

.network-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.network-strip__title {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin: 0;
  color: var(--ink);
}

.network-strip__more {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--accent);
  text-decoration: none;
}

.network-strip__more:hover {
  text-decoration: underline;
}

.network-strip__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-4) var(--space-5);
}

.network-strip__item {
  min-width: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-soft);
}

.network-strip__name {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  margin: 0 0 var(--space-1);
  line-height: var(--lh-tight);
}

.network-strip__name a {
  color: var(--ink);
  text-decoration: none;
}

.network-strip__name a:hover {
  color: var(--accent);
}

.network-strip__lede {
  margin: 0;
  font-size: var(--text-meta);
  color: var(--muted);
  line-height: 1.45;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
}

/* House ad on full home wrap — still quiet, not hero-width */
.house-ad--home {
  max-width: none;
  margin-top: 0;
}

/* —— Related stories (article) —— */
.related-articles {
  margin: var(--space-7) 0 var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border);
  max-width: var(--content-max);
}

.related-articles__title {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

.related-articles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-articles__list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-soft);
}

.related-articles__list li:last-child {
  border-bottom: 0;
}

.related-articles__list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: var(--lh-tight);
}

.related-articles__list a:hover {
  color: var(--accent);
}

.related-articles__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* —— Article meta row (badge + date under byline) —— */
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.article-header .byline {
  margin-bottom: var(--space-3);
}

/* Quiet callout: opinion-zone note on factual article prototypes */
.zone-note {
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  color: var(--muted);
  max-width: var(--content-max);
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--line);
  background: var(--paper-tint);
  line-height: 1.5;
}

.zone-note code {
  font-size: 0.95em;
}

/* —— Compact masthead (article / interior pages) —— */
.site-header--compact {
  padding: var(--space-4) 0 var(--space-3);
  margin-bottom: var(--space-5);
}

.site-header--compact .brand {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
}

.site-header--compact .site-nav {
  padding-top: var(--space-2);
}

/* —— Utility pages (About / Contact / Disclosure) — Piece 4 —— */
.utility-page {
  max-width: var(--content-max);
  margin: 0 auto var(--space-8);
  padding-bottom: var(--space-6);
}

.utility-page__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: var(--border);
}

.utility-page__header h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

.utility-page__lede {
  margin: 0;
  font-size: var(--text-lede);
  line-height: var(--lh-tight);
  color: var(--ink-soft);
  max-width: 36rem;
}

.utility-page .prose {
  max-width: none;
}

.utility-page .signup {
  margin-top: var(--space-7);
}

/* —— Opinion hub intro (Piece 5) —— */
.hub-intro {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: var(--border);
  font-size: var(--text-lede);
  line-height: var(--lh-tight);
  color: var(--ink-soft);
  max-width: 40rem;
}

.hub-intro a {
  color: var(--accent);
  font-weight: 600;
}

.hub-intro a:hover {
  color: var(--accent-hover);
}

/* —— Niche site lede (Piece 6) —— */
.site-lede {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: var(--border);
  font-size: var(--text-lede);
  line-height: var(--lh-tight);
  color: var(--ink-soft);
  max-width: 40rem;
}

.site-lede a {
  color: var(--accent);
  font-weight: 600;
}

.site-lede a:hover {
  color: var(--accent-hover);
}

.site-lede__network {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
}

/* Old styles for backwards compatibility - card grid */
.post-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
}

.post-list li {
  background: var(--bg-elevated);
  border: var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-list time {
  font-size: var(--text-meta);
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.post-list a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}

.post-list a:hover {
  color: var(--accent);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -1rem -1rem 0;
  background: var(--paper-tint);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pager {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: var(--tracking-nav);
}

.pager a {
  color: var(--accent);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border: var(--border);
}

.pager a:hover {
  background: var(--accent-wash);
}

.lede {
  font-size: var(--text-lede);
  color: var(--ink-soft);
  margin: var(--space-3) 0 var(--space-5);
  line-height: var(--lh-tight);
}

.post {
  max-width: var(--content-max);
}

.post header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: var(--border);
}

.post h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-display);
  margin: 0;
}

.post .hero {
  margin: var(--space-5) 0;
}

.post .hero img {
  width: 100%;
  background: var(--paper-tint);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post .content {
  font-size: 1.08rem;
  line-height: 1.75;
}

.post .content p {
  margin: 0 0 1.15em;
}

.post .content h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 1.6em 0 0.6em;
}

.post .content ul,
.post .content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35rem;
}

.ad-band,
.signup-band {
  margin: var(--space-6) auto;
}

/* Affiliate partner CTA */
.house-ad .affiliate-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: underline;
}

.brand-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin: 2rem 0;
}

.brand-card {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--card);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brand-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.brand-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.brand-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.brand-card h3 a:hover {
  color: var(--accent);
}

.brand-card .brand-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.brand-card .brand-latest {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.brand-card .brand-latest a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.brand-card .brand-latest a:hover {
  text-decoration: underline;
}

.network-strip {
  background: #f5f5f5;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 3rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.network-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.network-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.network-links a:hover {
  border-bottom-color: var(--accent);
}

.site-footer { 
  background: #f5f5f5;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 4rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.site-footer p {
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.site-footer a { 
  color: var(--muted);
  margin: 0 0.5rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: var(--muted);
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  
  .wrap { padding: 0 1.25rem; }
  
  .brand { font-size: 2rem; }
  
  .site-header nav {
    gap: 1rem;
    font-size: 0.8rem;
  }
  
  h1 { font-size: 2rem; }
  
  .post-list {
    grid-template-columns: 1fr;
  }
  
  .content {
    font-size: 1.05rem;
  }
}
