/* Reading polish: consistent type, safe content bounds, and breathing room. */
body { line-height: 1.65; }
.wrap { max-width: 1328px; padding-inline: clamp(20px, 3.2vw, 48px); }
h1, h2, h3 { text-wrap: balance; }
h1, .archive-mast h1, .hero2 h1,
body:not([data-page="home"]):not([data-page="scorecard"]) h1 {
  font-size: clamp(32px, 3.7vw, 50px);
  line-height: 1.14;
  letter-spacing: -.022em;
}
.archive-mast h1 em { letter-spacing: inherit; }
h2, .vz-head h2, .brief-heading h2, .archive-heading h2,
body[data-page="how"] h2, .m-sec h2,
body[data-page="predictions"] h2#calibration {
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.25;
  letter-spacing: -.012em;
}
h3, .vz-card h3, .vz-title, .finding h3, .more-card h3 {
  letter-spacing: -.008em;
  line-height: 1.4;
}
.hero2 { gap: 48px; padding-block: 20px 48px; }
.hero2 h1 { margin-bottom: 24px; }
.hero2 .lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 47ch;
}
body:not([data-page="home"]):not([data-page="scorecard"]) p.lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 64ch;
  margin-bottom: 36px;
}
.hero-viz { gap: 24px; }
.hero-viz > svg { width: 200px; height: 200px; }
.vz-title { font-size: 21px; }
.cta-row { gap: 14px; }
.btn { padding: 15px 21px; font-size: 14px; white-space: normal; }
.vz-head { gap: 16px 40px; align-items: start; margin-bottom: 32px; }
.vz-head p.vz-cap { line-height: 1.65; }
.vz-sec { padding-top: 64px; }
.vz-card { padding: 32px 32px 30px 0; }
.vz-card + .vz-card { padding-left: 32px; }
.vz-card h3 { font-size: 19px; margin-bottom: 12px; }
.vz-card .vz-cap { font-size: 14px; line-height: 1.65; margin-bottom: 24px; }
.vz-kicker { font-size: 11px; line-height: 1.65; }
.vz-note { font-size: 12px; line-height: 1.65; }
.vz-legend { gap: 12px 20px; line-height: 1.6; }
.kpi { padding-block: 28px; min-width: 0; gap: 8px; }
.kpi-num, .track-card b { font-size: clamp(36px, 3.5vw, 46px); letter-spacing: -.025em; line-height: 1.15; }
.kpi-cap, .track-sub { line-height: 1.65; }
.kpi-viz { padding-top: 24px; }
.track-card { gap: 8px; padding-block: 32px; }
.track-h { letter-spacing: 0; line-height: 1.5; }
.track-tag { margin-bottom: 8px; }

/* The funnel's former clip-path cut into labels, particularly its last tile. */
.funnel { gap: 12px; }
.funnel .step, .funnel .step:first-child, .funnel .step:last-child {
  clip-path: none;
  margin: 0;
  padding: 28px 24px;
  min-width: 0;
  min-height: 156px;
  border-radius: 4px;
  justify-content: flex-start;
  gap: 6px;
}
.step b { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.step span { font-size: 15px; line-height: 1.5; margin: 0; }
.step small { font-size: 13px; line-height: 1.6; margin: 0; opacity: .88; }

.mini-stats { gap: 28px; padding-top: 26px; margin-top: 28px; }
.mini-stat b { font-size: clamp(28px, 2.8vw, 36px); letter-spacing: -.02em; line-height: 1.25; }
.mini-stat span { line-height: 1.6; margin-top: 8px; }
.more-card { padding-block: 30px; }
.more-card h3 { font-size: 21px; margin-bottom: 12px; }
.more-card p { line-height: 1.65; }
.fresh-wrap { padding-block: 14px 18px; margin-bottom: 32px; }
.fresh { column-gap: 18px; row-gap: 10px; }
.fresh-body { min-width: min(100%, 280px); }
.fresh time { white-space: normal; }
.fresh-inline { line-height: 1.7; }

/* Forecast metadata must wrap inside its card, even with long source URLs. */
.pcards { gap: 24px; }
.pcard { padding: 28px; gap: 20px; min-width: 0; }
.pcard .top { align-items: start; flex-wrap: wrap; gap: 10px 14px; }
.pcard .top .id { font-size: 11px; line-height: 1.65; }
.pcard .claim { font-size: 17px; line-height: 1.6; letter-spacing: 0; }
.pcard .prob { margin-block: 4px; }
.pcard .prob b { font-size: 30px; letter-spacing: -.02em; line-height: 1.2; }
.pcard .kv { grid-template-columns: 80px minmax(0, 1fr); gap: 12px 16px; padding-top: 20px; margin: 0; font-size: 14px; line-height: 1.65; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.pcard .kv dt { line-height: 1.8; }
.p-tile { padding-block: 26px; }
.p-tile b { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.p-tile span { line-height: 1.6; margin-top: 10px; }
body[data-page="predictions"] .disclaimer { padding-block: 8px; line-height: 1.7; }
body[data-page="predictions"] .chips { gap: 10px; }

.finding { padding-block: 40px; gap: 24px 36px; }
.finding h3 { font-size: clamp(20px, 1.9vw, 24px); }
.finding p { line-height: 1.8; margin-bottom: 18px; }
.finding-stat { padding-left: 22px; }
.finding-stat b { font-size: clamp(30px, 3vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
.m-sec { padding-block: 36px 40px; }
.m-sec li { gap: 16px; margin-bottom: 22px; line-height: 1.7; }
.m-sec p { line-height: 1.75; }
.m-forecast { padding: 32px; }
.callout { font-size: 17px; line-height: 1.75; }
body:not([data-page="scorecard"]) table.sc { table-layout: auto; }
body:not([data-page="scorecard"]) .sc th { width: auto; }
body:not([data-page="scorecard"]) .sc td { overflow-wrap: anywhere; }
body[data-page="scorecard"] .sc td { padding-block: 24px; }
body[data-page="scorecard"] .sc .claim-open { line-height: 1.6; letter-spacing: 0; }
body[data-page="scorecard"] .sc .meta { line-height: 1.6; margin-top: 10px; }
.archive-statement p, .chart-description, .chart-footnote { line-height: 1.7; }
.dossier-dialog { padding: 36px; }
.dossier-dialog h2 { font-size: 25px; line-height: 1.45; letter-spacing: -.012em; }
.dossier-dialog .hero-actions { flex-wrap: wrap; row-gap: 16px; }
footer { padding-block: 32px 48px; }

@media (min-width: 1100px) and (max-width: 1240px) {
  .hero-viz { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1100px) {
  .hero2 { grid-template-columns: 1fr; gap: 36px; }
  .hero-viz { justify-content: flex-start; }
}
@media (max-width: 1000px) {
  .vz-card, .vz-card + .vz-card { padding: 30px 0; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .more-card, .more-card + .more-card { padding-block: 28px; }
}
@media (max-width: 700px) {
  .kpi-ring { flex-wrap: wrap; }
  .finding-stat { max-width: 100%; }
  .timing-strip { row-gap: 24px; }
  .sc td.claim, .pcard .claim { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  h1, .archive-mast h1, .hero2 h1,
  body:not([data-page="home"]):not([data-page="scorecard"]) h1 {
    font-size: 34px; line-height: 1.2; letter-spacing: -.018em;
  }
  .hero2 { padding-bottom: 36px; }
  .hero2 .lead { font-size: 16px; }
  .hero-viz { flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: center; }
  .hero-viz > svg { width: 168px; height: 168px; }
  .hero-viz-text { flex: 1 1 140px; }
  .funnel .step { padding: 22px 18px; min-height: 150px; }
  .step span { font-size: 14px; }
  .step small { font-size: 12px; }
  .fresh-body { flex-basis: 100%; }
  .fresh-note { display: none; }
  .pcard { padding: 24px 20px; }
  .pcard .kv { grid-template-columns: 1fr; gap: 4px; }
  .pcard .kv dd { margin-bottom: 12px; }
  .pcard .kv dd:last-child { margin-bottom: 0; }
  .p-tile, .p-tile + .p-tile { padding-block: 22px; }
  .p-tile b { font-size: 30px; }
  .dossier-dialog { padding: 26px 22px; }
  .dossier-dialog h2 { font-size: 22px; }
}
@media (max-width: 360px) {
  .funnel { grid-template-columns: 1fr; }
  .funnel .step { min-height: auto; }
}
/* Overview headings: a modest increase within the quieter type scale. */
body[data-page="home"] .hero2 h1 {
  font-size: clamp(44px, 5.4vw, 68px);
}
body[data-page="home"] .vz-head h2 {
  font-size: clamp(29px, 3vw, 39px);
}
body[data-page="home"] .vz-card h3,
body[data-page="home"] .more-card h3 {
  font-size: 24px;
}
@media (max-width: 560px) {
  body[data-page="home"] .hero2 h1 { font-size: 44px; }
  body[data-page="home"] .vz-head h2 { font-size: 29px; }
  body[data-page="home"] .vz-card h3,
  body[data-page="home"] .more-card h3 { font-size: 20px; }
}
/* Serif headings, with sans-serif reading text and monospaced labels. */
h1, h2, h3, h4, h5, h6,
.hero2 h1, .archive-mast h1, .archive-mast h1 em,
body:not([data-page="home"]):not([data-page="scorecard"]) h1,
.vz-head h2, .brief-heading h2, .archive-heading h2,
body[data-page="how"] h2, .m-sec h2,
body[data-page="predictions"] h2#calibration,
.vz-card h3, .vz-title, .finding h3, .more-card h3,
.brief-grid h3, .timing-strip h3, .dossier-dialog h2,
.card h3, .track-h {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.015em;
}
/* Overview explains the whole record; Archive is the working evidence library. */
body[data-page="home"] .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-scope { max-width: 32ch; font-size: 13px; line-height: 1.65; color: #67645c; margin: 12px 0 16px; }
.rate-explainer { font-size: 14px; line-height: 1.75; color: #59564d; max-width: 85ch; margin: 22px 0 0; }
.rate-explainer strong { color: #a23829; }
.rate-explainer a { display: inline-block; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.evidence-intro { padding: 30px 0 36px; }
.evidence-intro h1 { font-family: Georgia, serif; font-size: clamp(36px, 4vw, 52px); line-height: 1.15; margin: 0 0 20px; letter-spacing: -.015em; }
.evidence-intro .lead { max-width: 64ch; margin: 0 0 24px; font-size: 17px; line-height: 1.7; }
.page-purpose { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; }
.page-purpose span { color: #67645c; }
.page-purpose a { text-decoration: underline; text-underline-offset: 3px; }
.library-summary { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0; margin-top: 12px; border-bottom: 1px solid #c8c5b9; font-size: 13px; color: #67645c; }
.library-summary b { color: #252a26; font-weight: 600; }
.library-summary .library-rate { margin-left: auto; }
.library-rate b { color: #a23829; }
body[data-page="scorecard"] .archive-caption { align-items: center; }
body[data-page="scorecard"] .archive-caption a { font: 12px Arial, sans-serif; }
@media (max-width: 720px) {
  body[data-page="home"] .funnel { grid-template-columns: 1fr; }
  .library-summary { gap: 12px 20px; }
  .library-summary .library-rate { margin-left: 0; flex-basis: 100%; }
  .evidence-intro { padding-top: 18px; }
}

/* Reserve real space for select chevrons, independent of the browser's native chrome. */
#table .filters { display: grid; grid-template-columns: minmax(0,2.2fr) repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
#table .filters input, #table .filters select { width: 100%; min-width: 0; height: 44px; margin: 0; }
#table .filters input { padding: 10px 14px; }
#table .filters select {
  -webkit-appearance: none; appearance: none;
  padding: 10px 40px 10px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23625f54' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 820px) {
  #table .filters { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  #table .filters input { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  #table .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #table .filters #f-sort { grid-column: 1 / -1; }
  #table .filters input, #table .filters select { font-size: 16px; }
}
@media (forced-colors: active) {
  #table .filters select { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
