/* GROUND design system — one file, every page.
   Identity: warm-neutral light surfaces, one burnt-orange accent, display
   type in Space Grotesk, UI in Geist, all data numerals in Geist Mono. */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --sunken: #F3F2EE;
  --line: #E8E6E0;
  --line-strong: #D8D5CD;
  --ink: #1B1C1F;
  --body: #46484E;
  --soft: #8B8E96;
  --accent: #C05621;
  --accent-ink: #9A431A;
  --accent-soft: #FAEDE3;
  --good: #1E7A4C;
  --good-soft: #E6F3EB;
  --warn: #93690F;
  --warn-soft: #FAF2DC;
  --danger: #B23A2E;
  --danger-soft: #F9E9E6;
  --info: #3B5BA9;
  --info-soft: #EAEFF9;
  --shadow: 0 1px 2px rgba(30, 26, 18, .05), 0 10px 30px rgba(30, 26, 18, .07);
  --shadow-sm: 0 1px 2px rgba(30, 26, 18, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
p { margin: 0 0 10px; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font-family: inherit; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---------- shell ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
main { padding: 28px 0 48px; }

/* ---------- top nav (include _nav.html) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 58px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: .02em; color: var(--ink); text-decoration: none;
}
.brand i {
  width: 14px; height: 14px; border-radius: 4px; background: var(--accent);
  display: block; transform: rotate(0deg); transition: transform .25s ease-out;
}
.brand:hover i { transform: rotate(45deg); }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: 6px; flex: 1; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--body); text-decoration: none; transition: background .18s ease-out, color .18s ease-out;
}
.nav-links a:hover { background: var(--sunken); color: var(--ink); }
.nav-links a.on { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.nav-live {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--soft); letter-spacing: .04em;
}
.nav-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: block;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,122,76,.35);} 70% { box-shadow: 0 0 0 7px rgba(30,122,76,0);} 100% { box-shadow: 0 0 0 0 rgba(30,122,76,0);} }
@media (max-width: 860px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .nav-links { flex-wrap: wrap; }
  .nav-live { display: none; }
}

/* ---------- footer (include _footer.html) ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.footer-inner { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; padding: 22px 0 26px; font-size: 12.5px; color: var(--soft); }
.footer-inner b { font-family: var(--display); color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.footer a { color: var(--soft); }
.footer a:hover { color: var(--accent-ink); }
.footer .grow { flex: 1; }

/* ---------- page header row ---------- */
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head .sub { color: var(--soft); font-size: 13.5px; }
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px;
}

/* ---------- cards & panels ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
}
.card.hoverable { transition: box-shadow .2s ease-out, transform .2s ease-out; }
.card.hoverable:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card h2 { margin-bottom: 12px; }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 18px; }
.stat b {
  display: block; font-family: var(--mono); font-weight: 500; font-size: 26px;
  color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat span { color: var(--soft); font-size: 12px; }
.stat .up { color: var(--good); }

/* ---------- tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; padding: 8px 12px; font-family: var(--mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--soft);
  border-bottom: 1px solid var(--line-strong);
}
.tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr, .tbl tr { transition: background .15s ease-out; }
.tbl tr:hover td { background: var(--sunken); }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.money { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }

/* ---------- links ---------- */
a.tlink { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease-out, color .15s ease-out; }
a.tlink:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
a.plain { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
a.plain:hover { text-decoration: underline; }

/* ---------- chips / badges / pills ---------- */
.chip {
  display: inline-block; background: var(--sunken); border: 1px solid var(--line);
  color: var(--body); border-radius: 6px; padding: 2px 8px;
  font-family: var(--mono); font-size: 11px; margin: 1px 4px 1px 0; white-space: nowrap;
}
.chip.accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-ink); }
.pill { display: inline-block; background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--body); margin: 2px 5px 2px 0; }
.badge { display: inline-block; border-radius: 6px; padding: 2px 9px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.neutral { background: var(--sunken); color: var(--soft); }

/* status text */
.status { font-weight: 600; font-size: 13px; }
.status.issued { color: var(--good); }
.status.review { color: var(--warn); }

/* ---------- buttons & forms ---------- */
button, .btn {
  padding: 9px 16px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  transition: background .18s ease-out, transform .12s ease-out; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--accent-ink); }
button:active, .btn:active { transform: scale(.98); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--sunken); }
input, select {
  padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); transition: border-color .15s ease-out;
}
input:hover, select:hover { border-color: var(--soft); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 18px; }
label.check { color: var(--soft); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- key-value defs ---------- */
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 7px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--soft); }
dl.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 700px) { dl.kv { grid-template-columns: 120px 1fr; } }

/* ---------- feed / timeline ---------- */
.day-sep { font-family: var(--mono); color: var(--soft); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 22px 0 8px; }
.ev {
  display: flex; gap: 14px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface);
  transition: border-color .15s ease-out, box-shadow .2s ease-out;
}
.ev:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.ev .tag { flex: 0 0 122px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .05em; padding-top: 3px; }
.tag.permit { color: var(--info); }
.tag.tender { color: var(--good); }
.tag.watch { color: var(--warn); }
.tag.bid { color: var(--accent-ink); }
.ev .body { font-size: 14px; line-height: 1.5; }
.ev .when { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--soft); }
ul.tl { list-style: none; margin: 0; padding: 0; font-size: 14px; }
ul.tl li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
ul.tl li:last-child { border-bottom: none; }
ul.tl .d { color: var(--soft); font-family: var(--mono); font-size: 11.5px; flex: 0 0 88px; padding-top: 3px; }
.tl .tag { font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; align-self: flex-start; margin-top: 2px; }
.tl .tag.tender { background: var(--good-soft); }
.tl .tag.permit { background: var(--info-soft); }
.tl .tag.bid { background: var(--accent-soft); }

/* ---------- muted / empty / hints ---------- */
.muted { color: var(--soft); font-size: 12.5px; }
.hint { color: var(--soft); font-size: 13px; max-width: 68ch; }
.empty { text-align: center; padding: 42px 20px; color: var(--soft); }
.empty b { display: block; font-family: var(--display); color: var(--body); font-size: 16px; margin-bottom: 6px; }

/* ---------- home hero ---------- */
.hero { padding: 44px 0 8px; }
.hero .kicker { margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.03em; max-width: 17ch; }
.hero p.lede { font-size: 16.5px; max-width: 56ch; margin: 14px 0 0; color: var(--body); }
.statband {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  margin: 26px 0 8px; overflow: hidden;
}
.statband .cell { padding: 18px 20px; border-right: 1px solid var(--line); }
.statband .cell:last-child { border-right: none; }
@media (max-width: 860px) { .statband .cell { border-right: none; border-bottom: 1px solid var(--line); } .statband .cell:last-child { border-bottom: none; } }
.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-decoration: none; transition: border-color .15s ease-out, box-shadow .2s ease-out, transform .2s ease-out;
}
.quick a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quick b { display: block; font-family: var(--display); font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.quick span { font-size: 12.5px; color: var(--soft); }

/* ---------- market pulse ---------- */
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px; }
.pulse {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; text-decoration: none;
  transition: border-color .15s ease-out, box-shadow .2s ease-out, transform .2s ease-out;
}
.pulse:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pulse .name { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }
.pulse .row { display: flex; align-items: baseline; gap: 8px; }
.pulse .n { font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.pulse .unit { font-size: 11.5px; color: var(--soft); }
.delta { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.delta.up { color: var(--good); }
.delta.down { color: var(--danger); }
.delta.flat { color: var(--soft); }
.pulse .sub { font-size: 12px; color: var(--soft); margin-top: 6px; }
.pulse .sub b { color: var(--body); font-weight: 600; }

/* ---------- signals ---------- */
.sig { display: flex; gap: 14px; align-items: baseline; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s ease-out; }
.sig:hover { background: var(--sunken); }
.sig:last-of-type { border-bottom: none; }
.sig .tag { flex: 0 0 108px; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.sig b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.sig .sub { color: var(--soft); font-size: 12.5px; display: block; }

/* ---------- map preview ---------- */
.mapwrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sunken); position: relative; }
.mapwrap iframe { display: block; width: 100%; height: 440px; border: 0; }
.mapwrap .over {
  position: absolute; right: 12px; bottom: 12px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 14px; font-weight: 600; font-size: 13px; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.mapwrap .over:hover { background: var(--sunken); }
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dlist li:last-child { border-bottom: none; }
.dlist .v { font-family: var(--mono); color: var(--ink); font-weight: 500; }

/* ---------- v5 editorial hierarchy (homepage) ----------
   One dominant fact per section; secondary and tertiary layers below it.
   Nearly monochrome; size does the contrast work, not colour or bold. */
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.hero-headline { font-family: var(--display); font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.045em; font-weight: 700; color: var(--ink); max-width: 850px; margin: 14px 0 0; text-wrap: balance; }
.hero-summary { margin-top: 20px; max-width: 720px; font-size: 18.5px; line-height: 1.55; color: var(--body); }
.chapter { padding: 58px 0 10px; }
.chapter + .chapter { border-top: 1px solid var(--line); }
@media (max-width: 768px) { .chapter { padding: 38px 0 8px; } }
.sec-title { font-family: var(--display); font-size: 27px; letter-spacing: -.03em; font-weight: 650; color: var(--ink); margin: 7px 0 0; }
.sec-desc { margin-top: 7px; color: var(--soft); max-width: 620px; font-size: 14.5px; }
.sec-head { margin-bottom: 30px; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 42px; border: 1px solid var(--line); background: var(--line); }
.kpi { background: var(--surface); padding: 26px 30px; }
.kpi b { display: block; font-family: var(--mono); font-size: 37px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .lbl { display: block; margin-top: 10px; font-size: 13.5px; color: var(--soft); font-weight: 400; }
.kpi .chg { display: block; margin-top: 4px; font-size: 12.5px; font-family: var(--mono); }
@media (max-width: 700px) { .kpi-grid { grid-template-columns: 1fr; } }
.meta-line { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--soft); }

.market-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
@media (max-width: 760px) { .market-grid2 { grid-template-columns: 1fr; } }
.market-row { display: block; padding: 25px 0 21px; border-top: 1px solid var(--line); text-decoration: none; }
.market-row:hover .t { color: var(--accent-ink); }
.market-row .t { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); transition: color .15s ease-out; }
.market-row .t .delta { font-size: 12px; margin-left: 10px; font-weight: 500; }
.market-row .primary { margin-top: 14px; font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.035em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.market-row .secondary { margin-top: 7px; color: var(--body); font-size: 14px; font-weight: 400; }
.market-row .metar { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--sunken); color: var(--soft); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.market-row svg.spark { display: block; width: 120px; height: 22px; margin-top: 12px; }
.market-row svg.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .55; }

.leader-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 48px; }
.leader-col h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); font-weight: 500; margin: 0 0 6px; }
.leader-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.leader-rank { color: var(--line-strong); font-family: var(--mono); font-size: 11px; }
.leader-name { color: var(--ink); text-decoration: none; font-weight: 450; }
.leader-name:hover { color: var(--accent-ink); }
.leader-value { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--body); font-size: 13px; }

/* ---------- narrative headline ---------- */
.narrative { margin: 26px 0 6px; }
.narrative h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin-bottom: 6px; }
.narrative p { color: var(--body); font-size: 15px; max-width: 74ch; }
.narrative .figs { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.narrative .figs b { color: var(--ink); font-weight: 500; }

/* ---------- rich market cards ---------- */
.mkt { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; transition: border-color .15s ease-out, box-shadow .2s ease-out, transform .2s ease-out; }
.mkt:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.mkt .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mkt .name { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.mkt .n { font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.mkt .unit { font-size: 11px; color: var(--soft); }
.mkt .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; margin-top: 12px; font-size: 12px; color: var(--soft); }
.mkt .facts b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.mkt svg.spark { display: block; width: 100%; height: 26px; margin-top: 12px; }
.mkt svg.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: .75; }

/* ---------- projects to watch ---------- */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.watch { display: flex; flex-direction: column; min-height: 265px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 26px; text-decoration: none; transition: border-color .15s ease-out, box-shadow .2s ease-out, transform .2s ease-out; }
.watch:hover { border-color: var(--soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.watch .v { font-family: var(--mono); font-size: 36px; font-weight: 500; color: var(--ink); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.watch .t { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 18px 0 0; line-height: 1.3; }
.watch .loc { margin-top: 8px; color: var(--soft); font-size: 13px; font-weight: 400; }
.watch .why { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--body); font-weight: 400; }

/* ---------- grouped rankings ---------- */
.rank h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); font-weight: 500; margin: 14px 0 4px; }
.rank h3:first-child { margin-top: 0; }
.rank li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; list-style: none; }
.rank li:last-child { border-bottom: none; }
.rank ol { margin: 0; padding: 0; }
.rank .n { font-family: var(--mono); color: var(--ink); font-weight: 500; margin-left: auto; font-variant-numeric: tabular-nums; }
.rank .d { font-family: var(--mono); font-size: 11px; width: 44px; text-align: right; }

/* ---------- section headers ---------- */
.sect { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* subtle entry stagger for home tiles */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .45s ease-out backwards; }
  .rise:nth-child(2) { animation-delay: .05s; } .rise:nth-child(3) { animation-delay: .1s; }
  .rise:nth-child(4) { animation-delay: .15s; } .rise:nth-child(5) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- misc ---------- */
.scroll-x { overflow-x: auto; }
.right { margin-left: auto; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
