/* ==========================================================================
   Daily Briefing — Editorial Intelligence Broadsheet Stylesheet
   ========================================================================== */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-subtle: #f3f0ea;
  --border: #e4dfd6;
  --border-strong: #cfc8bc;

  --ink: #181a1f;
  --ink-secondary: #4a505c;
  --ink-muted: #6f7684;

  --accent: #a63a2b;
  --accent-soft: rgba(166, 58, 43, 0.09);

  --pos: #157347;
  --pos-soft: rgba(21, 115, 71, 0.11);
  --neg: #b9382c;
  --neg-soft: rgba(185, 56, 44, 0.11);
  --warn: #b4690e;
  --warn-soft: rgba(180, 105, 14, 0.12);
  --neutral-badge: #eef0f3;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 2px rgba(24, 26, 31, 0.04);
  --shadow-md: 0 4px 14px rgba(24, 26, 31, 0.06);
  --max-width: 1180px;
}

[data-theme="dark"] {
  --bg: #161b24;
  --surface: #1d2430;
  --surface-subtle: #242d3c;
  --border: #303a4d;
  --border-strong: #435068;

  --ink: #eef0f4;
  --ink-secondary: #bcc4d2;
  --ink-muted: #8a95a8;

  --accent: #e06d53;
  --accent-soft: rgba(224, 109, 83, 0.14);

  --pos: #34c38f;
  --pos-soft: rgba(52, 195, 143, 0.14);
  --neg: #f06558;
  --neg-soft: rgba(240, 101, 88, 0.14);
  --warn: #e6a23c;
  --warn-soft: rgba(230, 162, 60, 0.15);
  --neutral-badge: #273142;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--surface);
}

.masthead-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.back-home {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.back-home:hover {
  color: var(--accent);
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.edition-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.masthead-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-nav {
  display: inline-flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--border);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-select {
  appearance: none;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
}

/* ---------- Section Nav ---------- */

.section-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.section-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  overflow-x: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-links a.active {
  font-weight: 600;
}

.health-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.health-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
}

.health-dot.partial {
  background: var(--warn);
}

.health-dot.failed {
  background: var(--neg);
}

/* ---------- Main Layout ---------- */

.main-content {
  padding-top: 26px;
  padding-bottom: 64px;
}

.status-banner {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13.5px;
}

.section {
  margin-bottom: 44px;
  scroll-margin-top: calc(var(--nav-height, 43px) + 8px);
}

.section-header {
  position: sticky;
  top: var(--nav-height, 43px);
  z-index: 25;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
}

h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-narrative {
  margin: 0 0 20px;
  max-width: 860px;
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.executive-list li strong,
.section-narrative strong,
.news-summary strong,
.conflict-summary strong,
.policy-summary strong,
.topic-note strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- KPI Strip & Executive Brief ---------- */

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mode-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.executive-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.executive-list li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- News Grid ---------- */

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cat-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.news-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.why-box {
  margin-top: auto;
  padding: 9px 11px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-secondary);
}

.why-box strong {
  color: var(--ink);
  font-weight: 600;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.source-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.source-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Markets & Sector Heatmap ---------- */

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.regime-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--neutral-badge);
  color: var(--ink);
}

.regime-badge.risk-on {
  background: var(--pos-soft);
  color: var(--pos);
}

.regime-badge.risk-off,
.regime-badge.volatility-spike {
  background: var(--neg-soft);
  color: var(--neg);
}

.segmented {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.fear-greed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.fg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fg-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.fg-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.fg-score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.fg-scale {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.fg-rating {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--neutral-badge);
  color: var(--ink);
}

.fg-rating.extreme-fear,
.fg-rating.fear {
  background: var(--neg-soft);
  color: var(--neg);
}

.fg-rating.greed,
.fg-rating.extreme-greed {
  background: var(--pos-soft);
  color: var(--pos);
}

.fg-rating.neutral {
  background: var(--warn-soft);
  color: var(--warn);
}

.fg-history {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.fg-history strong {
  color: var(--ink);
}

.fg-bar-wrap {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #b9382c 0%,
    #e07a38 25%,
    #d4a72c 50%,
    #5fa85b 75%,
    #157347 100%
  );
  margin-bottom: 6px;
}

.fg-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.fg-zones {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.quote-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.quote-name {
  font-size: 13.5px;
  font-weight: 600;
}

.quote-sym {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.quote-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 6px 0 8px;
}

.quote-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
}

.delta-pill.pos {
  background: var(--pos-soft);
  color: var(--pos);
}

.delta-pill.neg {
  background: var(--neg-soft);
  color: var(--neg);
}

.delta-pill.flat {
  background: var(--neutral-badge);
  color: var(--ink-muted);
}

.sparkline-wrap {
  position: relative;
  cursor: crosshair;
}

.sparkline {
  width: 100%;
  height: 36px;
  display: block;
  overflow: visible;
}

.spark-guide {
  stroke: var(--ink-muted);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  opacity: 0;
  pointer-events: none;
}

.spark-dot {
  stroke: var(--surface);
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
}

.sparkline-wrap.hovering .spark-guide,
.sparkline-wrap.hovering .spark-dot {
  opacity: 1;
}

.spark-tooltip {
  position: absolute;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.spark-tip-time {
  font-weight: 400;
  opacity: 0.72;
  margin-right: 4px;
}

.sub-block {
  margin-top: 8px;
}

.sub-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sub-note {
  font-size: 12px;
  color: var(--ink-muted);
}

.sector-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.sector-tile {
  border-radius: var(--radius-sm);
  padding: 14px 13px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.12s ease;
}

.sector-tile:hover {
  transform: translateY(-1px);
}

.sector-sym {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.85;
}

.sector-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.sector-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* ---------- Global Conflicts ---------- */

.conflicts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.conflict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.conflict-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.conflict-region {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.conflict-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin-top: 2px;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-badge.escalating {
  background: var(--neg-soft);
  color: var(--neg);
}

.status-badge.elevated {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-badge.stable {
  background: var(--neutral-badge);
  color: var(--ink-secondary);
}

.status-badge.de-escalating {
  background: var(--pos-soft);
  color: var(--pos);
}

.intensity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
}

.intensity-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.intensity-meta strong {
  color: var(--ink);
}

.intensity-spark-wrap {
  width: 110px;
  flex-shrink: 0;
}

.intensity-spark {
  width: 100%;
  height: 28px;
  display: block;
  overflow: visible;
}

.conflict-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.timeline-list {
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 7px;
}

.timeline-list li {
  font-size: 13px;
  line-height: 1.4;
}

.timeline-list a {
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

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

.timeline-src {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: 6px;
}

/* ---------- US Politics ---------- */

.politics-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

.polymarket-list,
.policy-list,
.topics-list {
  display: grid;
  gap: 10px;
}

.poly-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.poly-card:hover {
  border-color: var(--border-strong);
}

.poly-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.poly-q {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.poly-odds {
  text-align: right;
  flex-shrink: 0;
}

.poly-pct {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.poly-bar-track {
  height: 7px;
  background: var(--surface-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 7px;
}

.poly-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.poly-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}

.policy-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.policy-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.policy-title:hover {
  color: var(--accent);
}

.branch-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--ink-muted);
  white-space: nowrap;
}

.policy-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.topics-header {
  margin-top: 22px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
}

.topic-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.topic-name {
  font-size: 14px;
  font-weight: 600;
}

.momentum-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.momentum-pill.rising {
  background: var(--accent-soft);
  color: var(--accent);
}

.momentum-pill.steady {
  background: var(--neutral-badge);
  color: var(--ink-secondary);
}

.momentum-pill.cooling {
  background: var(--pos-soft);
  color: var(--pos);
}

.topic-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* ---------- Positive News ---------- */

.positive-kicker {
  color: var(--pos);
}

.positive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--pos);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.positive-card .cat-pill {
  background: var(--pos-soft);
  color: var(--pos);
}

.positive-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

/* ---------- Local News (Collapsible) ---------- */

.collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.collapse-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.collapse-chevron {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.18s ease;
}

.collapse-btn[aria-expanded="true"] .collapse-chevron {
  transform: rotate(180deg);
}

.local-news-body {
  padding-top: 4px;
}

/* ---------- Footer & Skeletons ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.skeleton-line {
  height: 16px;
  background: var(--surface-subtle);
  border-radius: 4px;
  list-style: none;
}

@media (max-width: 860px) {
  .politics-layout {
    grid-template-columns: 1fr;
  }

  .masthead h1 {
    font-size: 24px;
  }

  .brief-panel {
    padding: 18px;
  }
}
