@font-face {
  font-family: DM Sans; src: url('/assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: Newsreader; src: url('/assets/newsreader.woff2') format('woff2');
  font-weight: 400 600; font-display: swap;
}
:root {
  color-scheme: light;
  --bg:#faf7ef; --surface:#fff; --soft:#f4f1e9; --ink:#192c43; --muted:#485b70;
  --subtle:#59697a; --border:#d9dce0; --accent:#254e75; --accent-strong:#193c60; --accent-soft:#e9eff5;
  --gold:#83501c; --gold-soft:#fbf0db; --negative:#a3473c; --graph:#235b89; --graph2:#a1541b; --graph3:#72618e;
  --serif:Newsreader, Georgia, serif; --sans:DM Sans, system-ui, sans-serif;
  --shadow:0 3px 10px #142b4210;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#101c2b; --surface:#19283a; --soft:#203247; --ink:#f7f3e9; --muted:#c2cdd7;
  --subtle:#aebecf; --border:#3b4e62; --accent:#a6c9e7; --accent-strong:#c3def3; --accent-soft:#233b51;
  --gold:#f3bd76; --gold-soft:#423324; --negative:#f0a192; --graph:#8cc7ed; --graph2:#f0ad68; --graph3:#c1a6e4;
  --shadow:0 3px 10px #0002;
}
*, *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans); line-height:1.5; }
a { color:inherit; text-decoration:none; }
button, input, select { font:inherit; }
button { color:inherit; cursor:pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline:2px solid var(--graph); outline-offset:4px; }
#main:focus { outline:none; }
img { display:block; max-width:100%; }
svg { flex:none; vertical-align:middle; }
h1,h2,h3,p { margin:0; }
h1,h2 { font-family:var(--serif); font-weight:500; letter-spacing:-.035em; line-height:1.02; }
h3 { font-weight:650; }
[hidden] { display:none !important; }
.shell { width:min(100% - 80px, 1240px); margin-inline:auto; }
.sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; z-index:10; top:8px; left:8px; background:var(--surface); border:1px solid var(--border); padding:10px; }
#site-header { background:var(--surface); border-bottom:1px solid var(--border); }
.header-inner { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:26px; min-height:72px; }
.brand { display:inline-flex; align-items:center; gap:9px; font-size:1.36rem; font-weight:700; letter-spacing:-.065em; width:max-content; }
.brand > span > span { color:var(--accent); }
.header-inner nav { display:flex; gap:6px; align-items:center; }
.header-inner nav a { font-size:.9rem; font-weight:600; color:var(--muted); padding:8px 13px; border-radius:7px; white-space:nowrap; }
.header-inner nav a:hover,.header-inner nav a[aria-current="page"] { color:var(--accent-strong); background:var(--accent-soft); }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:18px; }
.source-link { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.875rem; font-weight:600; white-space:nowrap; }
.source-link:hover,.source-link[aria-current="page"] { color:var(--accent); }
.icon-button { display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--muted); }
.icon-button:hover { background:var(--soft); }
.loading { min-height:50vh; padding-block:60px; color:var(--muted); }
.home { padding-top:27px; padding-bottom:72px; }
.hero { position:relative; min-height:395px; display:flex; align-items:center; border-radius:18px; isolation:isolate; overflow:hidden; background:#10243a; color:#faf7ef; }
.hero-image { position:absolute; z-index:-1; inset:0 0 0 31%; background:url('/assets/india-at-night.webp') center 43% / cover no-repeat; opacity:.86; }
.hero::after { position:absolute; z-index:-1; inset:0; content:""; background:linear-gradient(90deg,#10243a 2%,#10243a 34%,#10243a00 71%),linear-gradient(0deg,#0c1c2d 0%,#10243a00 39%); }
.hero-content { padding:51px 53px 48px; max-width:670px; }
.hero-label { display:inline-flex; align-items:center; gap:9px; color:#f1b66b; font-size:.76rem; font-weight:700; letter-spacing:.14em; margin-bottom:23px; }
.hero-label .flag { font-size:1.15rem; line-height:1; }
.hero h1 { font-size:clamp(3.8rem,6.6vw,6.5rem); letter-spacing:-.066em; white-space:nowrap; line-height:.91; }
.hero p { max-width:440px; margin-top:17px; color:#dce4eb; font-size:1.08rem; line-height:1.62; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:29px; }
.hero-actions a:focus-visible { outline-color:#ffda94; }
.hero-caption { position:absolute; bottom:22px; right:28px; font-size:.75rem; color:#f3f1e9; padding:7px 11px; border:1px solid #cfdaea4d; background:#10243abb; border-radius:6px; }
.hero-caption span { color:#c7d2df; margin-left:6px; }
.hero-caption i { display:inline-block; width:6px; height:6px; background:#f1af60; border-radius:50%; margin-right:6px; }
.button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:7px; padding:8px 15px; font-size:.9rem; line-height:1.3; font-weight:650; white-space:nowrap; transition:background-color .16s,color .16s,border-color .16s; }
.button-light { color:#19334d; background:#faf6eb; }
.button-light:hover { background:#e9dfcb; }
.button-ghost { background:#ffffff0b; border-color:#ffffff52; color:#faf6eb; }
.button-ghost:hover { background:#ffffff26; }
.button-outline { color:var(--accent-strong); background:var(--surface); border-color:var(--border); }
.button-outline:hover { background:var(--accent-soft); border-color:var(--accent); }
.overview-section { margin-top:45px; scroll-margin-top:22px; }
.section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.section-head h2,.method-panel > h2,.compare-banner h2 { font-size:clamp(1.95rem, 3vw, 2.75rem); }
.section-head p,.page-intro p,.compare-banner p { margin-top:7px; color:var(--muted); }
.section-link { margin-top:8px; }
.text-link { display:inline-flex; align-items:center; gap:6px; color:var(--accent-strong); font-size:.91rem; font-weight:700; width:max-content; max-width:100%; }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.filter-row { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 17px; }
.filter-row button { background:var(--surface); border:1px solid var(--border); border-radius:7px; padding:7px 13px; min-height:39px; font-size:.875rem; font-weight:600; color:var(--muted); }
.filter-row button:hover { border-color:var(--accent); color:var(--accent-strong); }
.filter-row button[aria-pressed="true"] { background:var(--accent-strong); border-color:var(--accent-strong); color:var(--surface); }
.metrics-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.metric-card,.panel { background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.metric-card { padding:16px 16px 14px; min-width:0; transition:border-color .15s,box-shadow .15s,transform .15s; }
.metric-card:hover { border-color:var(--accent); box-shadow:var(--shadow); transform:translateY(-2px); }
.card-top { display:flex; justify-content:space-between; align-items:center; gap:4px; margin-bottom:12px; }
.tile-icon { inline-size:35px; block-size:35px; display:inline-grid; place-items:center; background:var(--accent-soft); border-radius:8px; color:var(--accent); flex:none; }
.tile-icon.gold-icon { background:var(--gold-soft); color:var(--gold); }
.metric-rank { border:1px solid var(--border); background:var(--soft); color:var(--muted); border-radius:6px; padding:3px 7px; font-size:.75rem; font-weight:700; text-align:right; }
.metric-rank:empty { display:none; }
.metric-card h3 { font-size:.94rem; line-height:1.3; color:var(--muted); min-height:1.25em; }
.metric-value { display:block; font-size:clamp(1.65rem,3.15vw,2.27rem); letter-spacing:-.06em; line-height:1.2; margin-top:3px; margin-bottom:5px; font-weight:650; font-variant-numeric:tabular-nums; }
.spark-row { display:flex; justify-content:space-between; align-items:flex-end; gap:5px; min-height:44px; }
.small-meta { color:var(--subtle); font-size:.81rem; }
.metric-change { display:block; font-size:.82rem; white-space:nowrap; }
.change { font-weight:700; }
.positive { color:var(--accent); }
.negative { color:var(--negative); }
.spark { width:44%; min-width:40px; color:var(--graph); align-self:flex-end; }
.view-all { text-align:center; margin:20px 0 0; }
.home-lower { margin-top:45px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.panel { padding:22px; min-width:0; }
.panel .section-head h2 { font-size:clamp(1.55rem,2.8vw,2.1rem); }
.feed .section-head,.ladder .section-head { margin-bottom:15px; }
.change-item { display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:start; border-top:1px solid var(--border); padding:12px 0; }
.change-symbol { display:grid; place-items:center; width:32px; height:32px; background:var(--soft); border-radius:7px; color:var(--accent); }
.change-meta,.change-item time { font-size:.74rem; color:var(--subtle); }
.change-item h3,.change-item p { font-size:.9rem; }
.change-item h3 a:hover { text-decoration:underline; }
.change-item p { margin-top:1px; color:var(--muted); }
.rank-callout { padding:12px; background:var(--accent-soft); border-radius:7px; color:var(--accent-strong); font-weight:650; font-size:.88rem; margin-top:8px; }
.standalone { margin-top:15px; }
.compare-banner { margin-top:17px; border:1px solid var(--border); border-radius:12px; background:var(--accent-soft); display:flex; justify-content:space-between; align-items:center; gap:14px; padding:26px; }
.compare-banner .tile-icon { border:1px solid var(--border); background:var(--surface); margin-bottom:12px; }
#site-footer { border-top:1px solid var(--border); background:var(--surface); }
.footer-inner { min-height:118px; padding-block:22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.footer-brand .brand img { width:30px; height:30px; }
.footer-brand p,.site-updated { color:var(--subtle); font-size:.82rem; }
.footer-brand p { margin-top:6px; }
.footer-inner nav { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:.83rem; }
.footer-inner nav a:hover { text-decoration:underline; }
.subpage { padding-top:41px; padding-bottom:65px; min-height:78vh; }
.page-intro { max-width:810px; margin-bottom:25px; }
.eyebrow { color:var(--accent); font-size:.75rem; font-weight:700; letter-spacing:.13em; margin-bottom:10px; }
.page-intro h1,.subpage > h1 { font-size:clamp(3.35rem,6.8vw,5.8rem); letter-spacing:-.058em; }
.page-intro p { font-size:1.05rem; line-height:1.55; }
.tool-panel { margin-bottom:16px; }
.controls { display:grid; grid-template-columns:minmax(0,380px) minmax(130px,190px); gap:13px; }
.compare-controls { grid-template-columns:1.25fr repeat(3,1fr); }
.field { min-width:0; display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:.87rem; font-weight:600; }
.field select { width:100%; min-width:0; color:var(--ink); background:var(--soft); border:1px solid var(--border); border-radius:7px; padding:10px 30px 10px 10px; appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='m2 3 4 4 4-4' fill='none' stroke='%23748191' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; }
.rank-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:22px; }
.rank-summary > div { background:var(--soft); border:1px solid var(--border); border-radius:8px; padding:12px 14px; display:grid; gap:3px; font-size:.88rem; }
.rank-summary strong { font-size:1.4rem; font-weight:650; letter-spacing:-.045em; line-height:1.13; }
.table-panel > .section-head { margin-bottom:15px; }
.table-actions { display:flex; align-items:center; gap:9px; }
.search-field { display:flex; align-items:center; color:var(--muted); gap:6px; background:var(--soft); border:1px solid var(--border); border-radius:7px; padding-left:9px; }
.search-field input { width:163px; min-width:0; height:40px; padding:7px; background:transparent; border:0; color:var(--ink); }
.search-field input::placeholder { color:var(--subtle); }
.search-field:focus-within { outline:2px solid var(--graph); outline-offset:2px; }
.search-field input:focus-visible { outline:none; }
.table-scroll { overflow-x:auto; }
.data-table { border-collapse:collapse; width:100%; font-size:.92rem; }
.data-table th,.data-table td { padding:11px 12px; border-bottom:1px solid var(--border); text-align:left; }
.data-table thead th { background:var(--soft); color:var(--muted); font-size:.8rem; white-space:nowrap; }
.data-table .numeric { text-align:right; white-space:nowrap; font-weight:650; font-variant-numeric:tabular-nums; }
.data-table .rank-cell { width:55px; color:var(--muted); font-variant-numeric:tabular-nums; }
.data-table .bar-cell { width:33%; }
.country-name { display:inline-flex; align-items:center; gap:7px; }
.flag { font-size:1.1rem; }
.india-row { background:var(--accent-soft); color:var(--accent-strong); font-weight:700; }
.india-tag { color:var(--accent); font-size:.72rem; margin-left:3px; }
.bar-track { height:6px; border-radius:5px; background:var(--soft); }
.bar-track > div { width:var(--width); height:100%; border-radius:5px; background:var(--graph); }
.bar-track > .negative-bar { background:var(--negative); }
.estimate-label { display:block; color:var(--subtle); white-space:normal; font-weight:500; font-size:.75rem; }
.tooltip small { grid-column:2/-1; color:var(--muted); }
.compact-table td,.compact-table th { padding:8px 6px; }
.compact-table .rank-cell { width:24px; }
.fineprint,.compare-note { font-size:.86rem; color:var(--muted); margin-top:14px; }
.fineprint .text-link { font-size:inherit; }
.empty { padding:25px; color:var(--muted); text-align:center; }
.breadcrumbs { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.85rem; margin-bottom:21px; }
.breadcrumbs a:hover { text-decoration:underline; }
.detail-grid { display:grid; align-items:start; grid-template-columns:minmax(0,1fr) minmax(285px,32%); gap:16px; }
.detail-side { display:grid; gap:16px; }
.chart-panel { min-width:0; }
.segmented { display:inline-flex; flex-wrap:wrap; gap:2px; border:1px solid var(--border); background:var(--soft); border-radius:8px; padding:3px; height:max-content; }
.segmented button { border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:.83rem; font-weight:650; min-height:32px; padding:4px 10px; }
.segmented button[aria-pressed="true"] { background:var(--surface); color:var(--accent-strong); box-shadow:var(--shadow); }
.segmented button:hover { color:var(--accent); }
.legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:15px; color:var(--muted); font-size:.85rem; }
.legend > span { display:inline-flex; align-items:center; gap:6px; }
.legend-dot { display:inline-block; border-radius:50%; width:8px; height:8px; background:var(--line,var(--graph)); flex:none; }
.line-0 { --line:var(--graph); }
.line-1 { --line:var(--graph2); }
.line-2 { --line:var(--graph3); }
.chart-host { position:relative; min-width:0; margin:8px 0; }
.plot { display:block; max-width:100%; }
.axis line,.cursor-line { stroke:var(--border); stroke-width:1; }
.axis text { fill:var(--subtle); font-family:var(--sans); font-size:12px; }
.plot-line { fill:none; stroke:var(--line); stroke-width:2.45; stroke-linecap:round; stroke-linejoin:round; }
.plot-dot { fill:var(--line); stroke:var(--surface); stroke-width:1; }
.plot-touch { position:absolute; inset:0; cursor:crosshair; }
.tooltip { position:absolute; top:14px; pointer-events:none; z-index:1; min-width:155px; max-width:min(184px,100%); padding:8px 10px; background:var(--surface); color:var(--ink); border:1px solid var(--border); box-shadow:var(--shadow); border-radius:7px; font-size:.78rem; }
.tooltip > span { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:5px; margin-top:4px; }
.chart-footer { border-top:1px solid var(--border); padding-top:10px; display:flex; align-items:start; gap:12px; justify-content:space-between; }
.observation-details { min-width:0; flex:1; }
.observation-details summary,.source-definition summary { cursor:pointer; color:var(--accent-strong); font-size:.9rem; font-weight:650; }
.observation-details .data-table { margin-top:6px; }
.download-link { padding:0; border:0; background:none; flex:none; }
.summary .section-head { align-items:center; }
.pill { border-radius:5px; padding:3px 7px; white-space:nowrap; font-size:.72rem; font-weight:700; }
.published { background:var(--accent-soft); color:var(--accent-strong); }
.projection { background:var(--gold-soft); color:var(--gold); }
.detail-value,.country-box strong { display:block; color:var(--ink); font-size:clamp(1.9rem,3.4vw,3rem); letter-spacing:-.066em; font-weight:650; line-height:1.13; margin-top:12px; }
.summary p,.country-box p { margin-top:4px; color:var(--muted); font-size:.88rem; }
.summary dl { margin:16px 0 0; }
.summary dl > div { display:flex; justify-content:space-between; gap:6px; padding:8px 0; border-top:1px solid var(--border); font-size:.86rem; }
.summary dt { color:var(--muted); }
.summary dd { font-weight:650; margin:0; text-align:right; }
.gdp-outlook { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:16px; margin-top:16px; }
.subpage .gdp-outlook-panel { margin-bottom: 16px; }
.gdp-outlook h3 { font-size:1rem; }
.gdp-outlook strong { display:block; margin:4px 0; font-size:1.5rem; }
.gdp-outlook p { color:var(--muted); }
.method-panel { margin-top:16px; }
.method-panel > p,.source-card > p { margin-top:10px; color:var(--muted); }
.metadata-grid,.rules-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:15px 0; }
.metadata-grid > div { display:flex; flex-direction:column; gap:3px; background:var(--soft); padding:10px; border-radius:6px; overflow-wrap:anywhere; }
.metadata-grid span { font-size:.82rem; color:var(--muted); }
.metadata-grid strong { font-size:.91rem; }
.source-definition { margin:11px 0; }
.source-definition p { margin:7px 0; color:var(--muted); }
.method-links { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:13px; }
.country-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:19px; }
.country-box-title { display:flex; align-items:center; gap:6px; }
.country-box h2 { font-size:1.55rem; }
.position { display:block; margin-top:10px; color:var(--accent); font-size:.82rem; font-weight:600; }
.compare-mode-head { align-items:center; margin:10px 0; }
.convergence-head { margin:41px 0 15px; }
.convergence-grid,.sources-grid,.rules-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.convergence-grid { align-items:start; }
.scenario-panel .section-head { flex-wrap:wrap; }
.sliders { display:grid; gap:10px; margin-top:13px; }
.sliders label { color:var(--muted); font-weight:600; }
.sliders label > span { display:flex; justify-content:space-between; }
.sliders output { color:var(--accent-strong); }
.sliders input { width:100%; min-height:24px; margin:0; accent-color:var(--accent); }
.scenario-controls { display:grid; grid-template-columns:1fr 1fr; align-items:end; gap:10px; margin-top:8px; }
.scenario-result { display:flex; flex-direction:column; text-align:right; color:var(--muted); font-size:.83rem; }
.scenario-result strong { color:var(--accent-strong); font-size:1.6rem; letter-spacing:-.06em; }
.source-card .tile-icon { margin-bottom:12px; }
.source-indicators { display:flex; flex-wrap:wrap; gap:5px; margin-top:13px; }
.source-indicators a { padding:3px 6px; border:1px solid var(--border); border-radius:6px; font-size:.78rem; color:var(--accent-strong); }
.source-indicators a:hover { background:var(--accent-soft); }
.rules-grid h3 { margin-bottom:3px; }
.rules-grid p { color:var(--muted); font-size:.94rem; }

@media (max-width:1050px) {
  .shell { width:calc(100% - 52px); }
  .header-inner { gap:10px; }
  .header-actions { gap:9px; }
  .header-inner nav a { padding-inline:9px; }
  .hero-content { padding-inline:38px; }
  .hero { min-height:365px; }
  .hero h1 { font-size:clamp(3.7rem,7.5vw,5.6rem); }
  .metric-rank { font-size:.71rem; }
  .metric-card { padding-inline:12px; }
}
@media (max-width:800px) {
  .header-inner { grid-template-columns:1fr auto; gap:0 12px; padding-top:10px; }
  .header-inner nav { grid-row:2; grid-column:1/-1; min-height:47px; }
  .header-inner nav a { padding-inline:10px; }
  .hero-image { inset-inline-start:20%; }
  .hero::after { background:linear-gradient(90deg,#10243a 4%,#10243add 48%,#10243a24 100%),linear-gradient(0deg,#0c1c2d 0%,#10243a00 47%); }
  .metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-lower,.convergence-grid,.detail-grid { grid-template-columns:1fr; }
  .detail-side { grid-template-columns:1fr 1fr; }
  .compare-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-inner { flex-wrap:wrap; }
}
@media (max-width:530px) {
  .shell { width:calc(100% - 28px); }
  .header-inner nav { justify-content:space-between; gap:2px; }
  .header-inner nav a { padding:6px 5px; font-size:.82rem; }
  .source-link span { display:inline; font-size:.81rem; }
  .source-link svg { display:none; }
  .brand { font-size:1.22rem; }
  .brand img { width:32px; height:32px; }
  .hero { border-radius:13px; min-height:399px; align-items:start; }
  .hero-image { inset:5% -18% 0 0; background-position:62% 57%; opacity:.69; }
  .hero::after { background:linear-gradient(90deg,#10243ae8 4%,#10243a30 100%),linear-gradient(0deg,#0c1c2d 0%,#10243a00 60%); }
  .home { padding-top:13px; padding-bottom:35px; }
  .hero-content { padding:32px 19px 45px; }
  .hero-label { margin-bottom:19px; }
  .hero h1 { font-size:clamp(2.8rem,11.8vw,4.25rem); white-space:normal; }
  .hero p { font-size:.98rem; }
  .hero-actions { margin-top:20px; gap:7px; }
  .hero-actions .button { font-size:.78rem; padding-inline:8px; gap:5px; }
  .hero-actions .button svg { width:15px; }
  .hero-caption { bottom:13px; right:13px; }
  .overview-section,.home-lower { margin-top:31px; }
  .overview-section > .section-head { gap:6px; align-items:end; }
  .overview-section > .section-head p { font-size:.91rem; }
  .section-link { display:none; }
  .filter-row { gap:5px; margin:15px 0 12px; }
  .filter-row button { min-height:36px; padding:5px 8px; font-size:.8rem; }
  .metrics-grid { gap:8px; }
  .metric-card { padding:10px 8px 9px; }
  .card-top { margin-bottom:7px; }
  .metric-card .tile-icon { width:27px; height:27px; }
  .metric-card .tile-icon svg { width:15px; }
  .metric-card h3 { font-size:.81rem; }
  .metric-change,.metric-card .small-meta { font-size:.72rem; }
  .metric-rank { font-size:.66rem; padding:2px 3px; }
  .spark { width:37%; }
  .panel { padding:13px; }
  .change-item { grid-template-columns:auto 1fr; gap:5px 8px; }
  .change-item time { grid-column:2; }
  .compare-banner { flex-direction:column; align-items:flex-start; padding:16px; }
  .footer-inner { align-items:start; flex-direction:column; gap:10px; }
  .subpage { padding-top:29px; padding-bottom:39px; }
  .page-intro h1 { font-size:clamp(2.85rem,12vw,4.3rem); }
  .controls { grid-template-columns:minmax(0,1fr) minmax(91px,.35fr); gap:6px; }
  .compare-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rank-summary,.country-grid { gap:5px; }
  .rank-summary > div,.country-box { padding:8px 5px; }
  .rank-summary strong { font-size:1rem; }
  .rank-summary .small-meta,.rank-summary > div,.country-box p,.position { font-size:.71rem; }
  .country-box h2 { font-size:1.06rem; }
  .country-box-title { gap:3px; }
  .country-box-title .flag { font-size:.87rem; }
  .country-box strong { font-size:1.52rem; }
  .table-panel > .section-head { flex-direction:column; }
  .data-table .bar-cell { display:none; }
  .data-table td,.data-table th { padding:8px 5px; font-size:.83rem; }
  .data-table .rank-cell { width:32px; }
  .detail-side,.sources-grid,.rules-grid { grid-template-columns:1fr; }
  .metadata-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .chart-panel .section-head,.compare-mode-head { flex-wrap:wrap; }
  .chart-footer { flex-wrap:wrap; }
  .observation-details[open] { flex-basis:100%; }
  .chart-panel .segmented { margin-top:4px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; }
}
