/* Politics News USA — single stylesheet, no build step, no framework.
   Served from the [assets] binding, so it costs the Worker nothing. */

:root {
  --ink: #1a1a2e;
  --ink-soft: #3d3d5c;
  --ink-faint: #6b6b8a;
  --rule: #d4d4e0;
  --paper: #fafafa;
  --paper-raised: #ffffff;
  --brand: #002868;
  --brand-soft: #3a5a8c;
  --accent: #bf0a30;
  --drama: #bf0a30;
  --map-empty: #eaeaf0;
  --radius: 6px;
  --wrap: 1120px;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e8f0;
    --ink-soft: #a8a8c0;
    --ink-faint: #7878a0;
    --rule: #2a2a45;
    --paper: #0d0d1a;
    --paper-raised: #16162b;
    --brand: #5b8fd4;
    --brand-soft: #4a7ab8;
    --accent: #e84060;
    --drama: #e84060;
    --map-empty: #1e1e35;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .card-title, .lead h2 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { border-bottom: 3px solid var(--accent); background: var(--brand); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--accent); }
.site-nav { display: flex; gap: 18px; flex: 1 1 auto; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-search input {
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 7px 11px;
  font: inherit; font-size: .9rem; background: rgba(255,255,255,.12); color: #fff; min-width: 190px;
}
.site-search input::placeholder { color: rgba(255,255,255,.5); }

.breadcrumbs { padding-block: 12px; font-size: .85rem; color: var(--ink-faint); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: var(--rule); }

/* ---------- shared bits ---------- */
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 66ch; }
.lede-provenance, .section-note, .picker-note, .impact-note, .ticker-note, .fec-note,
.ideology-note, .colophon, .updated, .byline { font-size: .85rem; color: var(--ink-faint); }

.eyebrow, .card-eyebrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 .6rem; }
.chip {
  display: inline-block; font: 600 .74rem/1 var(--sans); letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 3px;
  background: var(--brand); color: #fff;
}
.chip--muted { background: transparent; color: var(--ink-faint); border: 1px solid var(--rule); }
.chip--status { background: var(--brand-soft); }
.chip--enacted { background: #2f6b4f; }
.chip--failed, .chip--vetoed { background: #7a3b3b; }

.drama { color: var(--drama); font-weight: 600; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); margin-top: 2.2rem; }
.section-head h2 { margin: 0 0 .5rem; }
.section-more { font-size: .85rem; font-weight: 600; white-space: nowrap; }

.plain { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); margin-top: 1rem; }
.card-grid--people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 16px;
}
.card-title { margin: 0 0 .4rem; font-size: 1.05rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); text-decoration: underline; }
.card-summary { margin: 0 0 .6rem; font-size: .92rem; color: var(--ink-soft); }
.card-meta { margin: 0; font-size: .8rem; color: var(--ink-faint); }
.card--person { display: flex; gap: 12px; align-items: center; }
.person-photo { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.person-photo--empty { width: 56px; height: 56px; background: var(--map-empty); display: block; }

/* ---------- homepage ---------- */
.breaking { background: var(--brand); color: #fff; }
.breaking a { color: #fff; }
.breaking-inner { display: flex; gap: 18px; align-items: baseline; padding-block: 11px; flex-wrap: wrap; }
.breaking-tag { font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.breaking-list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; overflow-x: auto; }
.breaking-list li { white-space: nowrap; font-size: .88rem; }
.breaking-list time { opacity: .7; margin-left: 8px; font-size: .78rem; }

.lead { padding: 1.5rem 0 2rem; border-bottom: 2px solid var(--rule); }
.lead h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 .6rem; }
.lead h2 a { color: var(--ink); text-decoration: none; }
.lead-summary { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.lead-meta { font-size: .88rem; color: var(--ink-faint); }

/* The state module is visually and structurally separated from the national
   feed — a distinct band, not an interleaved card. */
.state-slot { margin: 2.5rem 0 0; }
.state-module {
  background: var(--paper-raised); border: 2px solid var(--brand);
  border-radius: var(--radius); padding: 20px;
}
.state-module--empty { border-style: dashed; border-color: var(--rule); }
.state-module-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.state-module-head h2 { margin: 0; }
.state-module-stat { font-size: .88rem; color: var(--ink-faint); margin: .3rem 0 0; }

.state-picker {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin: 1rem 0 2.5rem; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius);
}
.state-picker select { font: inherit; padding: 7px 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.picker-note { flex: 1 1 100%; margin: .4rem 0 0; }

.quick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 1rem; }
.quick-card {
  display: block; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-raised); text-decoration: none; color: var(--ink);
}
.quick-card:hover { border-color: var(--brand); }
.quick-card b { display: block; font-family: var(--serif); font-size: 1.25rem; }
.quick-card span { display: block; color: var(--brand); font-size: .85rem; font-weight: 600; margin: 2px 0 6px; }
.quick-card small { color: var(--ink-faint); font-size: .82rem; line-height: 1.45; display: block; }

/* ---------- votes ---------- */
.vote-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.vote-row { padding: 11px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vote-row > a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; color: var(--ink); flex: 1 1 auto; }
.vote-row > a:hover .vote-subject { text-decoration: underline; color: var(--brand); }
.vote-tally { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; color: var(--brand); }
.vote-meta { font-size: .8rem; color: var(--ink-faint); white-space: nowrap; }

.tally { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--serif); font-size: 1.6rem; margin: 1rem 0 .4rem; }
.tally b { font-size: 2.1rem; }
.tally-yea b { color: var(--brand-soft); }
.tally-nay b { color: var(--accent); }
.tally-other { color: var(--ink-faint); font-size: 1.1rem; align-self: center; }
.vote-result { font-size: 1.1rem; margin: 0 0 1rem; }
.vote-context { max-width: 66ch; color: var(--ink-soft); }

.party-split { border-collapse: collapse; margin: .8rem 0; font-size: .92rem; }
.party-split th, .party-split td { border: 1px solid var(--rule); padding: 7px 14px; text-align: right; }
.party-split th[scope='row'] { text-align: left; }
.party-split--wide { width: 100%; max-width: 520px; }

.cast-group { margin: 1.5rem 0; }
.cast-group h3 { display: flex; align-items: baseline; gap: 10px; }
.cast-group .count { font-family: var(--sans); font-size: .85rem; color: var(--ink-faint); font-weight: 400; }
.member-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.member-grid li { font-size: .92rem; }
.member-meta { color: var(--ink-faint); font-size: .8rem; }
.cast { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-right: 8px; }
.cast--yea { color: var(--brand-soft); }
.cast--nay { color: var(--accent); }
.cast--not_voting, .cast--present { color: var(--ink-faint); }

/* ---------- bill page ---------- */
.bill-body, .person-body { display: grid; gap: 40px; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); margin-top: 1.5rem; }
@media (max-width: 820px) { .bill-body, .person-body { grid-template-columns: 1fr; } }

.tracker { margin: 1.5rem 0 2rem; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised); }
.tracker-steps { list-style: none; display: flex; padding: 0; margin: 0 0 14px; gap: 4px; }
.step { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--ink-faint); }
.step-dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 7px; background: var(--rule); }
.step::before { content: ''; position: absolute; top: 6px; left: 0; right: 50%; height: 2px; background: var(--rule); }
.step:first-child::before { display: none; }
.step--done .step-dot, .step--current .step-dot { background: var(--brand); }
.step--done::before { background: var(--brand); }
.step--current { color: var(--ink); font-weight: 700; }
.step--current .step-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.step--stopped .step-dot { background: var(--drama); }
.tracker-status { margin: 0; }
.tracker-action { margin: .35rem 0 0; font-size: .9rem; color: var(--ink-soft); }

.notice { border-left: 4px solid var(--accent); padding: 12px 16px; background: var(--paper-raised); border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; }
.notice p { margin: 0; font-size: .92rem; }

.provision-list { list-style: none; padding: 0; }
.provision-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.provision-text { flex: 1 1 340px; }
.provision-ref { font: 600 .78rem var(--sans); color: var(--brand); white-space: nowrap; }
.who { margin-top: 1rem; padding: 12px 16px; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }

.action-list { list-style: none; padding: 0; }
.action-list li { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.action-list time { flex: 0 0 130px; color: var(--ink-faint); font-size: .84rem; }

.vote-block { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; margin: 1rem 0; background: var(--paper-raised); }
.vote-block h3 { margin-top: 0; }
.vote-headline { font-size: 1.05rem; margin: .3rem 0; }
.vote-date { color: var(--ink-faint); font-size: .85rem; margin-left: 8px; }

.estimate, .impact { margin: 2rem 0; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-raised); }
.estimate h2, .impact h2 { margin-top: 0; }
.estimate-figure { font-family: var(--serif); font-size: 2.2rem; margin: .2rem 0; }
.estimate-label { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.estimate-caveat { font-size: .88rem; color: var(--ink-soft); border-left: 3px solid var(--accent); padding-left: 12px; }
.basis-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.basis { padding: 8px 0 8px 14px; border-left: 3px solid var(--rule); margin-bottom: 6px; }
.basis--up { border-left-color: var(--brand-soft); }
.basis--down { border-left-color: var(--accent); }
.basis-factor { display: block; font-weight: 700; font-size: .88rem; }
.basis-detail { font-size: .88rem; color: var(--ink-soft); }

.map { width: 100%; height: auto; max-width: 640px; }
.map-code { font: 600 12px var(--sans); fill: #fff; pointer-events: none; }
.map-tile rect { transition: opacity .12s; }
.map-tile:hover rect { opacity: .75; }
.impact-scale { font-size: .9rem; }

/* ---------- sidebars ---------- */
.side-block { padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 18px; background: var(--paper-raised); }
.side-block h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.sponsor { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.sponsor img { border-radius: 50%; }
.sponsor b { display: block; }
.sponsor small { color: var(--ink-faint); font-size: .82rem; }
.cosponsor-count { font-size: .85rem; color: var(--ink-faint); margin: .6rem 0 0; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-block; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 20px; font-size: .82rem; text-decoration: none; }
.tag:hover { border-color: var(--brand); }

/* ---------- follow + report ---------- */
.follow { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-email { flex: 1 1 190px; padding: 9px 11px; border: 1px solid var(--rule); border-radius: var(--radius); font: inherit; font-size: .92rem; background: var(--paper); color: var(--ink); }
.follow-note, .report-note { flex: 1 1 100%; margin: .4rem 0 0; font-size: .8rem; color: var(--ink-faint); }
.follow-note--ok { color: #2f6b4f; }
.follow-note--error { color: var(--drama); }

.btn {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--brand);
  border-radius: var(--radius); background: transparent; color: var(--brand);
  font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { opacity: .9; }
.btn--danger { border-color: var(--drama); color: var(--drama); }
.btn--small { padding: 5px 10px; font-size: .8rem; }

.report { margin: 2.5rem 0; border-top: 1px solid var(--rule); padding-top: 14px; }
.report summary { cursor: pointer; font-size: .9rem; color: var(--ink-faint); }
.report form { max-width: 480px; margin-top: 12px; display: grid; gap: 8px; }
.report label { font-size: .85rem; font-weight: 600; }
.report select, .report textarea { font: inherit; font-size: .9rem; padding: 8px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }

/* ---------- person page ---------- */
.person-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; padding-top: 1rem; }
.person-portrait { border-radius: var(--radius); object-fit: cover; }
.person-office { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 .8rem; }
.person-facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; }
.person-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.person-facts dd { margin: 2px 0 0; font-weight: 600; }
.recent-votes { list-style: none; padding: 0; }
.recent-votes li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.fec-totals { margin: 0 0 1rem; }
.fec-totals div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.fec-totals dt { color: var(--ink-soft); font-size: .88rem; }
.fec-totals dd { margin: 0; font-weight: 700; }
.fec-categories { list-style: none; padding: 0; margin: 0 0 .8rem; }
.fec-categories li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .88rem; border-bottom: 1px solid var(--rule); }
.ideology-figure { font-family: var(--serif); font-size: 2rem; margin: 0; }

/* ---------- topic + state ---------- */
.topic-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 1rem 0; font-size: .95rem; }
.topic-stats b { font-family: var(--serif); font-size: 1.5rem; display: block; color: var(--brand); }
.state-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 0; }
.state-chips a { display: inline-flex; gap: 7px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 20px; text-decoration: none; font-size: .88rem; }
.state-chips a:hover { border-color: var(--brand); }
.state-chips .count { color: var(--ink-faint); font-size: .78rem; }

.states-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.states-table th, .states-table td { border-bottom: 1px solid var(--rule); padding: 9px 12px; text-align: right; }
.states-table th[scope='row'] { text-align: left; }
.states-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }

/* ---------- scorecards ---------- */
.scorecard-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin-top: 1.5rem; }
.scorecard-preview { margin: 0; }
.scorecard-preview img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.scorecard-preview figcaption { font-size: .88rem; margin-top: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- admin ---------- */
.review-item { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; margin: 1.2rem 0; background: var(--paper-raised); }
.review-cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin: 1rem 0; }
@media (max-width: 760px) { .review-cols { grid-template-columns: 1fr; } }
.review-meta { font-size: .82rem; color: var(--ink-faint); }
.flags { background: color-mix(in srgb, var(--drama) 8%, transparent); padding: 10px 14px; border-radius: var(--radius); font-size: .88rem; }
.flags ul { margin: .4rem 0 0; padding-left: 18px; }
.flags mark { background: color-mix(in srgb, var(--drama) 20%, transparent); color: inherit; padding: 0 4px; }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }

/* ---------- pagination + footer ---------- */
.pagination { display: flex; gap: 18px; align-items: center; margin: 2rem 0; font-size: .9rem; }
.site-footer { margin-top: 4rem; border-top: 2px solid var(--rule); background: var(--paper-raised); padding: 2.5rem 0 2rem; font-size: .9rem; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.footer-cols h2 { font-size: 1rem; margin: 0 0 .5rem; }
.footer-cols p { color: var(--ink-soft); margin: 0 0 .6rem; }
.colophon { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: .82rem; }

/* ---------- hero top stories ---------- */
.top-stories { margin-bottom: 2rem; }
.top-stories h1 {
  border-bottom: 4px solid var(--brand);
  padding-bottom: .5rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hero-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.hero-story {
  padding: 1.2rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: box-shadow .15s;
}
.hero-story:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.hero-story a { text-decoration: none; color: inherit; display: block; }
.hero-story h2 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
  font-family: var(--serif);
  line-height: 1.3;
}
.hero-story time { font-size: .78rem; color: var(--ink-faint); }
.hero-story--lead {
  grid-column: 1 / -1;
  padding: 2rem;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.hero-story--lead h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: #fff; }
.hero-story--lead time { color: rgba(255,255,255,.7); }
.hero-story--lead:hover { box-shadow: 0 6px 24px rgba(0,0,0,.2); }
@media (max-width: 600px) {
  .hero-stories { grid-template-columns: 1fr; }
}

/* ---------- briefing teaser (homepage) ---------- */
.briefing-teaser { padding: 2rem; background: var(--brand); color: #fff; border-radius: var(--radius); margin-bottom: 1rem; }
.briefing-teaser .eyebrow { color: rgba(255,255,255,.7); }
.briefing-teaser h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); margin: .3rem 0 .8rem; }
.briefing-teaser h2 a { color: #fff; text-decoration: none; }
.briefing-teaser h2 a:hover { text-decoration: underline; }
.briefing-summary { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 62ch; }
.briefing-teaser .section-more { color: rgba(255,255,255,.8); font-weight: 600; }

/* ---------- trending pills ---------- */
.trending { margin: 0 0 2rem; padding: 1.5rem 0; border-bottom: 2px solid var(--rule); }
.trending h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin: 0 0 .8rem;
  font-family: var(--sans);
  font-weight: 700;
}
.trend-pills { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.trend-pill {
  display: inline-flex; gap: 6px; align-items: baseline;
  padding: 10px 18px; border: 2px solid var(--brand); border-radius: 24px;
  text-decoration: none; font-size: .92rem; font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  transition: all .15s;
}
.trend-pill:hover { background: var(--brand); color: #fff; }
.trend-score { font-size: .72rem; color: var(--ink-faint); font-weight: 400; }
.trend-pill:hover .trend-score { color: rgba(255,255,255,.7); }

/* ---------- news wire ---------- */
.news-wire { margin: 2rem 0; padding: 1.5rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.news-wire .section-head h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-top: .8rem; }
.news-card { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.news-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.news-card-body { padding: .8rem 1rem; }
.news-card .source {
  display: inline-block;
  font-size: .7rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  background: var(--accent); padding: 2px 8px; border-radius: 3px; margin-right: 8px; margin-bottom: 6px;
}
.news-card a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.35; display: block; }
.news-card a:hover { text-decoration: underline; color: var(--brand); }
.news-card time { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: 6px; }

/* ---------- daily briefing page ---------- */
.briefing-page header { margin-bottom: 1.5rem; }
.briefing-page h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.briefing-body { max-width: 68ch; }
.briefing-body article { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.briefing-body article h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.briefing-body article p { margin: 0; color: var(--ink-soft); }
.briefing-lede { font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.5rem; }
.briefing-trends { margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--rule); }
.briefing-sidebar { margin: 2rem 0; padding: 1.2rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.briefing-sidebar h2 { font-size: 1rem; margin: 0 0 .8rem; }
.briefing-nav { display: flex; gap: 16px; justify-content: space-between; margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9rem; }

/* ---------- topic trend ---------- */
.topic-trend { margin: 1.5rem 0; padding: 1.2rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.trend-explanation { font-size: .95rem; margin: 0 0 1rem; }
.trend-explanation b { color: var(--brand); }
.trend-chart { max-width: 340px; }
.sparkline { width: 100%; height: auto; max-height: 40px; }

/* ---------- briefing card (index) ---------- */
.card--briefing { padding: 1rem; }
.card--briefing .card-eyebrow { margin-bottom: .3rem; }
.card--briefing .card-summary { color: var(--ink-soft); }

/* ---------- article pages ---------- */
.article-header { margin-bottom: 2rem; border-bottom: 2px solid var(--rule); padding-bottom: 1.5rem; }
.article-header h1 { font: 700 2rem/1.2 var(--serif); margin: 0 0 .5rem; }
.article-subtitle { font-size: 1.2rem; color: var(--ink-soft); margin: .3rem 0 .8rem; }
.article-meta { font-size: .9rem; color: var(--ink-faint); }
.article-author { font-weight: 600; color: var(--ink); }
.article-body { font: 1.1rem/1.75 var(--serif); }
.article-body p { margin: 0 0 1.2rem; }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1.2rem; margin: 1.5rem 0; color: var(--ink-soft); font-style: italic; }
.card--article { padding: 1rem; }
.card--article .card-title { font: 600 1.1rem/1.3 var(--serif); margin: 0 0 .3rem; }
.card--article .card-summary { color: var(--ink-soft); margin: 0 0 .3rem; font-size: .95rem; }
.article-form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }

.error-page { padding: 4rem 0; }
.index-page { padding-top: 1.5rem; }
