:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #17202b;
  --muted: #536171;
  --border: #dbe3ec;
  --primary: #164b9b;
  --stable: #176b52;
  --warning: #b26a00;
  --danger: #b42318;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --container: min(1120px, calc(100vw - 2rem));
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 227, 236, 0.8);
}
.topbar, .footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
}
.brand { font-weight: 800; letter-spacing: -0.03em; }
.main-nav, .footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.main-nav a, .footer-links a { color: var(--muted); }
.main-nav a.active-link { color: var(--text); font-weight: 700; }
.hero {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, #f6f8fb 0%, #edf3f8 100%);
}
.hero-grid, .section-grid, .two-up {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start;
}
.compact-hero {
  padding: 3.5rem 0 2.5rem;
}
.eyebrow {
  margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 800; color: var(--primary);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; }
.hero-answer {
  font-size: 1.25rem; margin: 1rem 0 0;
}
.hero-copy, .section-copy, .panel p, .indicator-card .meta, .site-footer p {
  color: var(--muted);
}
.hero-actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.2rem; border-radius: 999px; font-weight: 700; border: 1px solid var(--border);
}
.button.primary { background: var(--primary); color: white; border-color: var(--primary); }
.button.secondary { background: white; }
.stat-card, .panel, .indicator-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
}
.stat-card { padding: 1.5rem; }
.label, .kicker { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.big-stat { display: block; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; margin: 0.5rem 0 0.75rem; }
.status-chip, .signal {
  display: inline-flex; padding: 0.45rem 0.75rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
}
.status-chip.stable, .signal.stable { background: rgba(23, 107, 82, 0.12); color: var(--stable); }
.status-chip.warning, .signal.warning { background: rgba(178, 106, 0, 0.12); color: var(--warning); }
.status-chip.danger, .signal.danger { background: rgba(180, 35, 24, 0.12); color: var(--danger); }
.status-chip.monitored, .signal.monitored {
  background: rgba(83, 97, 113, 0.045);
  color: var(--muted);
  border: 1px solid rgba(83, 97, 113, 0.18);
}
.section { padding: 4rem 0; }
.muted-section { background: var(--surface-alt); }
.snapshot-grid, .indicator-grid {
  display: grid; gap: 1rem;
}
.snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.indicator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.inline-summary {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.summary-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 700;
}
.summary-pill.stable { color: var(--stable); }
.summary-pill.warning { color: var(--warning); }
.summary-pill.danger { color: var(--danger); }
.summary-pill.monitored {
  color: var(--muted);
  background: rgba(83, 97, 113, 0.035);
  border-color: rgba(83, 97, 113, 0.18);
  border-style: dashed;
}
.category-block + .category-block {
  margin-top: 2.5rem;
}
.category-head {
  margin-bottom: 1rem;
}
.category-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.panel, .indicator-card, .quote-panel, .history-preview { padding: 1.35rem; }
.value { font-size: 2rem; font-weight: 800; margin: 0.45rem 0 0.35rem; }
.history-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid var(--border);
}
.history-row:first-child { border-top: 0; padding-top: 0; }
.wide { max-width: 780px; }
.site-footer { border-top: 1px solid var(--border); background: white; }
.indicators-hero {
  background: linear-gradient(180deg, #f6f8fb 0%, #edf2f8 100%);
}
.overview-metrics,
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.overview-card h3,
.watch-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}
.watchlist-head,
.category-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.watchlist-copy {
  max-width: 520px;
}
.legend-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.watch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.watch-card.warning {
  border-color: rgba(178, 106, 0, 0.28);
}
.watch-card.danger {
  border-color: rgba(180, 35, 24, 0.28);
}
.watch-card.monitored {
  border-style: dashed;
  border-color: rgba(83, 97, 113, 0.28);
  box-shadow: none;
}
.daily-brief-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-footnote {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.daily-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric-card .value {
  margin-top: 0.65rem;
}
.daily-writeup-panel {
  max-width: 880px;
}
.daily-writeup-body {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
.daily-writeup-body p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}
.daily-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.daily-list li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.daily-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.daily-item-top,
.daily-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.daily-item-top strong {
  font-size: 1rem;
}
.detail-copy {
  margin: 0.55rem 0 0;
  color: var(--muted);
}
.daily-item-footer {
  margin-top: 0.55rem;
}
.watch-top,
.indicator-card-top,
.card-footer-row,
.indicator-detail-grid,
.indicator-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.indicator-stats-row {
  flex-direction: column;
  align-items: stretch;
}
.watch-top,
.indicator-card-top,
.card-footer-row {
  align-items: center;
}
.watch-category,
.indicator-frequency,
.detail-label,
.mini-note {
  color: var(--muted);
  font-size: 0.85rem;
}
.classification-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42rem;
}
.value-context {
  color: #334155;
}
.watch-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.5rem 0 0.35rem;
}
.watch-meta,
.meta.up,
.meta.down,
.meta.flat {
  font-weight: 700;
}
.watch-meta.up,
.meta.up {
  color: var(--stable);
}
.watch-meta.down,
.meta.down {
  color: var(--danger);
}
.watch-meta.flat,
.meta.flat {
  color: var(--muted);
}
.watch-note {
  color: var(--muted);
  margin: 0.5rem 0 0.9rem;
}
.source-link {
  color: var(--primary);
  font-weight: 700;
}

.hero-date-label {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-date {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.method-note {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.stat-unit {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.status-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.recession-history-section {
  padding-top: 3.25rem;
}

.recession-intro-panel {
  margin: 0 0 1rem;
}

.recession-intro-panel p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 54rem;
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-wrap thead th {
  text-align: left;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-wrap th,
.table-wrap td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-wrap tbody tr:nth-child(even) {
  background: rgba(22, 75, 155, 0.018);
}

.table-wrap tbody tr:hover {
  background: rgba(22, 75, 155, 0.035);
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-meta {
  margin-top: 1rem;
  color: var(--muted);
}

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.recession-summary-cell {
  width: auto;
}

.recession-summary-title {
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  font-size: 0.97rem;
  font-weight: 700;
}

.recession-summary-text {
  margin: 0;
  color: var(--muted);
  max-width: none;
  line-height: 1.45;
  font-size: 0.92rem;
}

.recession-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.recession-links .source-link {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.table-wrap th:nth-child(1),
.table-wrap td:nth-child(1),
.table-wrap th:nth-child(2),
.table-wrap td:nth-child(2) {
  width: 12%;
}

.table-wrap th:nth-child(3),
.table-wrap td:nth-child(3) {
  width: 10%;
}

.table-wrap th:nth-child(4),
.table-wrap td:nth-child(4) {
  width: 12%;
}

.table-wrap th:nth-child(5),
.table-wrap td:nth-child(5) {
  width: 54%;
}

.table-wrap thead th:nth-child(4),
.table-wrap td:nth-child(4) {
  color: var(--muted);
}

.table-wrap td:nth-child(1) strong,
.table-wrap td:nth-child(2) strong {
  font-size: 0.98rem;
}

.recession-card-list {
  display: none;
}

.recession-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.recession-card + .recession-card {
  margin-top: 1rem;
}

.recession-card-head .eyebrow {
  margin-bottom: 0.5rem;
}

.recession-card-head h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.recession-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.recession-meta-item {
  min-width: 0;
}

.recession-meta-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.recession-meta-value {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.3;
}

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

.bullet-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.bullet-list li {
  margin: 0.35rem 0;
}

.howto-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.howto-list li {
  margin: 0.5rem 0;
}
.category-head-rich {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.indicator-grid-rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.indicator-card-rich {
  padding: 1.35rem;
}
.indicator-card-rich.warning {
  border-color: rgba(178, 106, 0, 0.24);
}
.indicator-card-rich.danger {
  border-color: rgba(180, 35, 24, 0.24);
}
.indicator-card-rich.monitored {
  border-style: dashed;
  border-color: rgba(83, 97, 113, 0.24);
  box-shadow: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,252,0.98));
}
.indicator-card-rich.interpretive {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}
.sparkline-wrap {
  width: 100%;
  min-height: 72px;
  padding: 0.5rem 0.25rem 0.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(237,243,248,0.9));
  border: 1px solid rgba(219, 227, 236, 0.8);
}
.sparkline {
  display: block;
  width: 100%;
  height: 64px;
  color: var(--primary);
}
.sparkline-baseline {
  stroke: rgba(83, 97, 113, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.sparkline-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sparkline-dot {
  fill: currentColor;
}
.sparkline-wrap.stable .sparkline { color: var(--stable); }
.sparkline-wrap.warning .sparkline { color: var(--warning); }
.sparkline-wrap.danger .sparkline { color: var(--danger); }
.sparkline-wrap.monitored {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,248,251,0.92));
  border-style: dashed;
}
.sparkline-wrap.context {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,252,0.92));
  border-color: rgba(83, 97, 113, 0.16);
}
.sparkline-wrap.monitored .sparkline { color: var(--muted); }
.meta.context {
  color: var(--muted);
  font-weight: 600;
}
.sparkline-empty {
  color: var(--muted);
  font-size: 0.85rem;
}
.indicator-detail-grid {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.indicator-detail-grid > div {
  flex: 1;
}
.indicator-detail-grid strong {
  display: block;
  margin-top: 0.2rem;
}
.card-footer-row {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.section-method-note {
  margin: 1rem 0 1.5rem;
}
@media (max-width: 900px) {
  .hero-grid, .section-grid, .two-up, .snapshot-grid, .indicator-grid, .overview-metrics, .watchlist-grid, .indicator-grid-rich, .daily-metrics { grid-template-columns: 1fr; }
  .topbar, .footer-row, .inline-summary, .watchlist-head, .category-summary-head, .indicator-stats-row, .indicator-detail-grid, .card-footer-row, .section-head { flex-direction: column; align-items: flex-start; }
  .sparkline-wrap {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .table-wrap {
    display: none;
  }

  .recession-card-list {
    display: block;
  }

  .recession-history-section {
    padding-top: 2.75rem;
  }
}
