:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --surface: #fffefa;
  --ink: #172f29;
  --soft: #53675f;
  --border: #cdd8cd;
  --leaf: #17644c;
  --leaf-light: #e5f0e7;
  --bronze: #98592e;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: #823e20; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #bb6c2a; outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 3; padding: .5em 1em; background: #fff; }
.skip-link:focus { top: 10px; }
.masthead { border-top: 4px solid var(--ink); border-bottom: 1px solid var(--border); }
.masthead-inner, .page, .site-footer { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 800 24px/1.1 var(--serif); letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: flex; align-items: end; justify-content: center; gap: 3px; width: 32px; height: 32px; padding-bottom: 8px; background: var(--ink); border-radius: 5px; }
.brand-mark i { width: 4px; height: 8px; background: #dbe8c9; transform: skewY(-12deg); }
.brand-mark i:nth-child(2) { height: 13px; } .brand-mark i:nth-child(3) { height: 17px; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(14px, 3vw, 38px); }
.main-nav a { display: grid; align-items: center; padding: 0 2px; border-bottom: 3px solid transparent; color: var(--soft); font-size: .93rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a[aria-current="page"], .main-nav a.active, .main-nav a:hover { color: var(--ink); border-bottom-color: var(--leaf); }
.page { padding-block: clamp(24px, 4vw, 52px) 64px; min-height: 75vh; }
.page > * + * { margin-top: 32px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.35; }
h3 { font-size: 1.1rem; line-height: 1.5; }
h1 + p, h2 + p, h3 + p, p + p { margin-top: .7em; }
h2 + :is(table, .table-wrap, .grid, .stats), h3 + :is(table, .table-wrap) { margin-top: 16px; }
.hero { padding: clamp(24px, 4vw, 48px); background: #eaf0e6; border-block: 1px solid #bdcebc; border-left: 4px solid var(--leaf); border-radius: 2px; }
.hero .lede, .hero > p { max-width: 70ch; }
.kicker { color: var(--leaf); font-weight: 700; font-size: .8rem; letter-spacing: .1em; margin: 0 0 .65rem; }
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); }
.meta, .muted, .empty, small, figcaption { color: var(--soft); font-size: .9rem; }
.meta, .stat, td, .tag, .chart, .city-performance { font-variant-numeric: tabular-nums; }
.meta { margin-top: .65em; }
.stats, .grid, .columns { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); }
.hero .stats { margin-top: 26px; }
.stat { padding: 14px 18px; background: var(--surface); border-top: 2px solid #7f9f83; }
.stat strong, .stat b { display: block; font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.35; letter-spacing: -.035em; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); }
.columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.panel, .card, .signal, .archive { min-width: 0; padding: clamp(18px, 2.6vw, 30px); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
a.card, a.archive { display: block; color: var(--ink); text-decoration: none; }
a.card:hover, a.archive:hover, .card:has(a:hover) { border-color: #779881; background: #f3f6ed; }
.card > * + *, .signal > * + *, .panel > * + * { margin-top: 14px; }
.section-head, .toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.section-head { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; background: var(--leaf-light); color: #245641; font-size: .77rem; line-height: 1.65; }
.change-list { padding-inline-start: 1.35em; }
.change-list li + li { margin-top: .45em; }
.empty { padding: .8em 0; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: .7em .8em; border-bottom: 1px solid #dfe5dc; text-align: left; vertical-align: top; }
th { background: #edf2e9; color: #334e40; font-weight: 650; white-space: nowrap; }
tr:hover td { background: #f4f6ef; }
.filters, .toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters { padding: 14px 0; }
.filters label, .toolbar label { display: inline-grid; gap: 3px; color: var(--soft); font-size: .88rem; }
input, select, button { min-height: 42px; max-width: 100%; padding: 6px 13px; color: var(--ink); background: var(--surface); border: 1px solid #a5b8a9; border-radius: 5px; }
button[aria-pressed="true"], button[aria-selected="true"], button.active { background: var(--ink); border-color: var(--ink); color: white; }
img, svg { max-width: 100%; }
.chart { padding: 12px 0; overflow-x: auto; }
.chart img, .chart svg { display: block; height: auto; }
.chart a { display: block; }
#city-result { margin-top: 18px; }
.city-summary { display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.city-performance { color: var(--leaf); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
.city-panels { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(190px, .85fr); gap: 18px; margin-block: 14px; }
.city-plot, .city-distribution { padding: 18px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.city-plot svg { display: block; width: 100%; height: auto; margin-top: 12px; }
.city-plot svg text { font: 14px var(--sans); fill: #52665b; }
.city-bins { padding: 0; margin: 14px 0 0; list-style: none; }
.city-bins li { display: grid; grid-template-columns: 6.2em minmax(20px, 1fr) 2.6em; gap: .6rem; align-items: center; font-size: .85rem; }
.city-bins li + li { margin-top: 9px; }
.city-bins progress { accent-color: var(--leaf); width: 100%; height: .65rem; }
.city-bins .selected { font-weight: 750; color: var(--leaf); }
.city-bins span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7em; padding: 18px 0 32px; border-top: 1px solid var(--border); color: var(--soft); font-size: .84rem; }
.site-footer a { font: 700 16px var(--serif); text-decoration: none; color: var(--ink); }
@media (max-width: 680px) {
  .masthead-inner, .page, .site-footer { width: calc(100% - 28px); }
  .masthead-inner { flex-direction: column; gap: 0; align-items: start; padding-top: 14px; }
  .brand { font-size: 21px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .main-nav a { min-height: 47px; padding-top: 4px; font-size: .88rem; }
  .page { padding-block: 19px 36px; }
  .page > * + * { margin-top: 24px; }
  .hero, .panel, .card, .signal, .archive { padding: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px; }
  .columns, .city-panels { grid-template-columns: 1fr; }
  .filters input { width: 100%; }
  .filters label:has(input) { width: 100%; }
  th, td { padding: .55em .65em; }
  .table-wrap table { min-width: max-content; }
  .table-wrap td { max-width: 23em; }
}
.index-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(285px,100%),1fr)); gap:1px; border:1px solid var(--border); background:var(--border); }
.index-list li { background:var(--surface); padding:13px 18px; display:flex; flex-direction:column; }
.index-list a { color:var(--ink); font-weight:650; }
.archive { list-style:none; }
.archive li + li { border-top:1px solid var(--border); }
.archive li a { display:block; padding:12px 0; }
.focus-links .card { border-top:3px solid var(--leaf); }
.focus-links .card + .card { border-top-color:var(--bronze); }
.timeline { list-style: none; padding: 0 0 0 14px; margin-bottom: 0; border-left: 2px solid var(--border); }
.timeline li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; position: relative; padding: 5px 0; }
.timeline li::before { position: absolute; content: ""; left: -19px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.timeline time, .timeline span { color: var(--soft); font-size: .9rem; }
