/* Site styles. Design language after boardui.com: Inter, neutral greys, one blue accent, hairline borders.
   Scales: radius 6 / 8 / 12; spacing on a 4px step; type 32/44 page title, 20/26 section, 14/20 body, 12/16 caption.
   Numbers use tabular figures. Changes are shown in neutral ink: on an economy site "up" is not always good. */
/* Inter (SIL Open Font Licence, static/fonts/OFL.txt), served from this site: no font requests to anyone else.
   Cut down to Latin plus the rupee sign; weights 400-700 come from the one variable file. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #fafafa;          /* page wells, table headers */
  --bg-3: #f5f5f5;          /* chips, quiet buttons, hover */
  --line: #e5e5e5;          /* hairlines */
  --line-2: #d4d4d4;        /* inputs, axis */
  --ink: #0a0a0a;
  --ink-2: #525252;
  --ink-3: #737373;         /* captions; 4.7:1 on white */
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-wash: rgba(37, 99, 235, 0.08);
  --series: #2563eb;
  --series-wash: rgba(37, 99, 235, 0.07);
  --r-s: 6px; --r-m: 8px; --r-l: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121212; --bg-2: #171717; --bg-3: #262626; --line: #262626; --line-2: #404040;
    --ink: #fafafa; --ink-2: #d4d4d4; --ink-3: #a3a3a3;
    --accent: #60a5fa; --accent-ink: #93c5fd; --accent-wash: rgba(96, 165, 250, 0.12);
    --series: #60a5fa; --series-wash: rgba(96, 165, 250, 0.10);
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212; --bg-2: #171717; --bg-3: #262626; --line: #262626; --line-2: #404040;
  --ink: #fafafa; --ink-2: #d4d4d4; --ink-3: #a3a3a3;
  --accent: #60a5fa; --accent-ink: #93c5fd; --accent-wash: rgba(96, 165, 250, 0.12);
  --series: #60a5fa; --series-wash: rgba(96, 165, 250, 0.10);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 30; }
.p, .muted { color: var(--ink-3); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 16px; line-height: 22px; font-weight: 600; }
.lede { font-size: 16px; line-height: 24px; color: var(--ink-2); max-width: 640px; margin: 8px 0 0; }
.note, .empty { font-size: 13px; line-height: 18px; color: var(--ink-3); margin: 12px 0 0; }
.note-top { margin: 0 0 4px; }
.empty { font-size: 14px; padding: 16px 0; }
table { border-collapse: collapse; width: 100%; }
.n, .v, .big, .stat-v, time, .chg { font-variant-numeric: tabular-nums; }

.preview-bar { background: var(--bg-3); color: var(--ink-2); font-size: 12px; line-height: 16px; text-align: center; padding: 6px 16px; }

/* header: brand, search, links; topic tabs underneath */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px 16px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { width: 24px; height: 24px; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.top-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-a { color: var(--ink-2); padding: 0 10px; min-height: 36px; display: inline-flex; align-items: center; border-radius: var(--r-m); font-weight: 500; }
.top-a:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.icon-btn { border: 0; background: transparent; color: var(--ink-2); width: 36px; height: 36px; border-radius: var(--r-m);
  display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

.tabs { border-top: 1px solid var(--line); }
.tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { flex: none; color: var(--ink-3); font-weight: 500; padding: 0 8px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* search */
.search { position: relative; flex: 1 1 280px; max-width: 440px; }
.search-i { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px;
  fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input, .filter-input { width: 100%; font: 400 14px/20px var(--font); color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 36px 8px 34px; height: 36px; }
.search input::placeholder, .filter-input::placeholder { color: var(--ink-3); }
.search input:hover, .filter-input:hover { border-color: var(--line-2); }
.search input:focus, .filter-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); background: var(--bg); }
.slash { position: absolute; right: 8px; top: 9px; font: 500 11px/16px var(--font); color: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 6px; pointer-events: none; background: var(--bg); }
.search input:focus + .slash { display: none; }
.results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-pop); max-height: 70vh; overflow-y: auto; }
.results li a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 10px; border-radius: var(--r-m); color: var(--ink); }
.results li a:hover { text-decoration: none; }
.results li.on a, .results li a:hover { background: var(--bg-3); }
.r-name { font-weight: 500; }
.r-val { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.r-meta { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.results .r-all a { display: block; font-size: 13px; color: var(--accent-ink); }
@media (max-width: 640px) {
  .search { order: 3; max-width: none; flex-basis: 100%; padding-bottom: 12px; }
  .slash { display: none; }
  .hide-sm { display: none; }
}

/* page intro */
main { padding-bottom: 64px; }
.intro { padding: 40px 0 0; }
.intro-tight { padding-top: 24px; }

/* headline strip: six plain stats divided by hairlines, no cards */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--ink); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-height: 44px; }
.stat:hover { background: var(--bg-2); text-decoration: none; }
.stat-l { font-size: 13px; line-height: 18px; color: var(--ink-2); font-weight: 500; }
.stat-v { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.stat-p { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* topic blocks on the home page: two columns of indicator tables */
.blocks { display: grid; grid-template-columns: 1fr; gap: 24px 32px; margin-top: 40px; }
@media (min-width: 960px) { .blocks { grid-template-columns: 1fr 1fr; } }
.block { margin-top: 0; }
.blocks + .block, .content > .block, .block-wide { margin-top: 40px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.block-h h2 a { color: var(--ink); }
.more-link { font-size: 13px; color: var(--ink-3); font-weight: 500; min-height: 32px; display: inline-flex; align-items: center; }
.more-link:hover { color: var(--ink); text-decoration: none; }

/* indicator table: the site's basic unit */
.ind { font-size: 14px; line-height: 20px; }
.ind thead th { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-3); text-align: left; padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.ind td, .ind tbody th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ind tbody th { font-weight: 500; }
.ind tbody th a { color: var(--ink); }
.ind tbody tr:hover { background: var(--bg-2); }
.ind .n { text-align: right; white-space: nowrap; }
.ind .v { font-weight: 600; }
.ind .v a { color: var(--ink); }
.ind .p { white-space: nowrap; }
.ind .trend { width: 96px; padding-right: 0; }
.ind caption { text-align: left; caption-side: top; font-size: 13px; line-height: 18px; color: var(--ink-3); padding-bottom: 8px; }
.sub-xs { display: none; font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
@media (max-width: 640px) {
  .hide-xs { display: none; }
  .sub-xs { display: block; }
}
@media (max-width: 900px) { .ind-full .hide-sm { display: none; } }
.chg { color: var(--ink-2); white-space: nowrap; }
.chg-none { color: var(--ink-3); }
.spark { display: block; width: 96px; height: 24px; }
.spark path { fill: none; stroke: var(--series); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--series); }

.tag { display: inline-block; font-size: 11px; line-height: 16px; font-weight: 500; background: var(--bg-3); color: var(--ink-2);
  border-radius: var(--r-s); padding: 0 6px; vertical-align: 2px; white-space: nowrap; }
.tag-draft { background: transparent; border: 1px dashed var(--line-2); }

/* release calendar */
.cal, .calendar { list-style: none; padding: 0; margin: 0; }
.cal li, .calendar li { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal time, .calendar time { color: var(--ink-2); font-weight: 500; }
.cal a, .calendar a { color: var(--ink); font-weight: 500; }

/* pages with the "every number" sidebar */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
.side { order: 2; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 16px; }
.content { order: 1; min-width: 0; }
@media (min-width: 1024px) {
  .with-side { grid-template-columns: 216px minmax(0, 1fr); }
  .side { order: 0; margin-top: 0; border-top: 0; padding-top: 24px; position: sticky; top: 101px; align-self: start;
    max-height: calc(100vh - 101px); overflow-y: auto; scrollbar-width: thin; }
  .side summary { pointer-events: none; }
  .side summary::after { display: none; }
}
.side summary { list-style: none; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.04em; cursor: pointer; min-height: 32px; display: flex; align-items: center; justify-content: space-between; }
.side summary::-webkit-details-marker { display: none; }
.side summary::after { content: "Show"; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent-ink); }
.side details[open] summary::after { content: "Hide"; }
.side-t { margin: 16px 0 4px; font-size: 13px; line-height: 18px; font-weight: 600; }
.side-t a { color: var(--ink); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 4px 8px; margin-left: -8px; border-radius: var(--r-s); color: var(--ink-3); font-size: 13px; line-height: 18px; }
.side li a:hover { color: var(--ink); background: var(--bg-3); text-decoration: none; }
.side a[aria-current="page"] { color: var(--ink); background: var(--bg-3); font-weight: 500; }

/* series page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); padding: 24px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs > span:last-child { color: var(--ink-2); }
.figure { padding: 12px 0 0; }
.figure h1 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.figure-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 12px; align-items: center; }
@media (min-width: 900px) { .figure-row { grid-template-columns: 1fr 1.2fr; } }
.big { font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.big .unit { font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.big-sub { margin: 4px 0 0; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--r-l); }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.means { font-size: 15px; line-height: 24px; color: var(--ink-2); max-width: 680px; margin: 24px 0 0; }

.block-h .seg { margin-left: auto; }
.seg { display: inline-flex; background: var(--bg-3); border-radius: var(--r-m); padding: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 13px/18px var(--font); padding: 4px 10px;
  border-radius: var(--r-s); cursor: pointer; min-height: 28px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--line); }
.content .block > .range, .content .block > .note { margin-top: 0; }
.range { border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 8px 4px 0; }
.sub { font-size: 14px; line-height: 20px; font-weight: 600; margin: 32px 0 8px; }
.sub .muted { font-weight: 400; }
.notes { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--ink-2); max-width: 760px; }
.notes li { margin: 4px 0; }

/* charts */
.chartwrap { position: relative; width: 100%; touch-action: pan-y; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-wide { aspect-ratio: 720 / 300; font-size: 12px; }
.chart-narrow { aspect-ratio: 360 / 260; font-size: 11px; }
.chartwrap.narrow { display: none; }
@media (max-width: 640px) { .chartwrap.wide { display: none; } .chartwrap.narrow { display: block; } }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .tick { fill: var(--ink-3); font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .zero { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .mark { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .marklabel { fill: var(--ink-3); font-family: var(--font); }
.chart .line { fill: none; stroke: var(--series); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--series-wash); stroke: none; }
.chart .dot { fill: var(--series); stroke: var(--bg); stroke-width: 2; }
.chart .endlabel { fill: var(--ink); font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .cross { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .hover-dot { fill: var(--series); stroke: var(--bg); stroke-width: 2; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop); border-radius: var(--r-m); padding: 6px 10px; font-size: 12px; line-height: 16px; white-space: nowrap; transform: translateX(-50%); }
.tip strong { display: block; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* history and all-data tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hist { font-size: 14px; line-height: 20px; }
.hist th, .hist td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.hist thead th { font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 500; }
.hist .num { text-align: right; font-variant-numeric: tabular-nums; }
.hist tbody tr:hover { background: var(--bg-2); }
.sources td { vertical-align: top; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.filters .filter-input { flex: 1 1 240px; max-width: 360px; padding-left: 12px; padding-right: 12px; }
.alldata th[scope="row"] { font-weight: 500; white-space: normal; min-width: 200px; }
.alldata th[scope="row"] a { color: var(--ink); }
.alldata td { white-space: nowrap; }
.row-topic { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); font-weight: 400; }

/* buttons, code, two-column blocks */
.btn { display: inline-flex; align-items: center; min-height: 36px; background: var(--ink); color: var(--bg); border: 0; border-radius: var(--r-m);
  padding: 0 14px; font: 500 14px/20px var(--font); cursor: pointer; }
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn-quiet { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); margin-top: 8px; }
.btn-quiet:hover { background: var(--bg-3); opacity: 1; }
.block.two { display: grid; grid-template-columns: 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
@media (min-width: 768px) { .block.two { grid-template-columns: 1fr 1fr; } }
.block.two h2 { margin-bottom: 4px; }
.block.two p { color: var(--ink-2); margin: 0 0 12px; }
.code { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; margin: 0;
  font: 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }

/* prose pages */
.films { padding-left: 18px; }
.films li { margin: 6px 0; }
.prose { max-width: 720px; padding-top: 40px; font-size: 15px; line-height: 24px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 40px; font-size: 20px; line-height: 26px; }
.steps { padding-left: 20px; }
.steps li { margin: 10px 0; }
.steps strong { color: var(--ink); font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink-3); font-size: 13px; line-height: 20px; }
.foot-in { display: grid; grid-template-columns: 1fr; gap: 16px 48px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 768px) { .foot-in { grid-template-columns: 2fr 1fr; } }
.foot p { margin: 0; max-width: 560px; }
.foot-brand { color: var(--ink); font-weight: 600; margin-bottom: 4px !important; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0 0 4px; }
.foot a { color: var(--ink-2); }
.foot-social { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }

/* embed card */
body.embed { background: transparent; margin: 0; }
.embed-card { display: flex; flex-direction: column; gap: 2px; margin: 4px; padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-l); color: var(--ink); }
.embed-card:hover { text-decoration: none; border-color: var(--line-2); }
.card-name { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.card-value { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.card-period { font-size: 13px; color: var(--ink-2); }
.card-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* phones: every control is at least 44px tall to tap */
@media (max-width: 640px) {
  .top-a, .icon-btn, .more-link, .side summary, .seg button, .btn, .side li a, .side-t a { min-height: 44px; }
  .icon-btn { width: 44px; }
  .search input, .filter-input { height: 44px; }
  .search-i { top: 14px; }
  .side li a, .side-t a { display: flex; align-items: center; }
}

[hidden] { display: none !important; }  /* a class must never un-hide hidden rows or panels */
