/* chinaprospect.com: its own character over the shared shell (2026-11-01, founder: "reads boring rather than a source
   that should be taken professionally"). Direction taken from how trade-policy sources people trust present
   themselves (PIIE, Tax Foundation, CSIS): an institutional masthead, a visible "checked on" date, numbers SHOWN
   as figures and charts, tables built for scanning, and a page that uses its width.
   Deliberately its own: deep green on warm paper with a brass second colour; Cargovate is blue, the sister
   handbook sites keep the shared look (anti-link-network rule, memory landing-sites).
   Source Serif 4 is served from this domain (SIL OFL, licence in /fonts/): no third party is contacted. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/source-serif-4-latin.woff2) format("woff2"); }

:root {
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --green: #0E3B2C; --green-2: #145A41; --brass: #A07A3C; --paper-2: #EFEDE5;
  --maxw: 1180px;
}
/* LIGHT ONLY (fixed 2026-11-14). This site is warm paper by design. It used to pin --bg light but let
   the shared sheet's dark-mode block turn --ink/--muted light grey, so on any device set to dark mode the
   headline and body were near-white on cream (~1.1:1) — the site with the most Google impressions was
   unreadable for those visitors. Now every colour token is pinned light, with a selector specific enough
   ((0,2,0), and later in the cascade) to beat the shared sheet's dark-mode :root block.
   --brass-ink is the brass for TEXT: the brass itself is 3.4–3.6:1 on paper, below WCAG AA for small labels. */
:root:not([data-theme="none"]), :root[data-theme] {
  color-scheme: light;
  --bg: #F7F5EF; --surface: #FFFFFF; --ink: #1b1d21; --muted: #545a63; --line: #DEDAD0; --code: #f1efe9;
  --paper-2: #EFEDE5; --brass: #A07A3C; --brass-ink: #7A5A22;
  --a: var(--accent); --on-a: #fff;
}

/* ---------- masthead ---------- */
header.top { background: var(--green); border-bottom: 3px solid var(--brass); }
header.top .brand, header.top .brand span { color: #fff; }
header.top .brand span { font-family: var(--serif); font-size: 1.32rem; letter-spacing: -.01em; }
header.top .brand b { font-weight: 700; color: #D9B77A; }  /* the shared sheet colours it with the accent: green on green */
header.top .brand svg rect { fill: #fff; }
header.top .brand svg .fgs { stroke: var(--green); }
header.top .brand svg .fg { fill: var(--brass); }
header.top .nav a { color: rgba(255,255,255,.82); }
header.top .nav a:hover { color: #fff; }
header.top .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
header.top .navtoggle span { background: #fff; }
@media (max-width: 860px) { header.top .nav { background: var(--green); } }

/* ---------- next-date strip (filled by site.js from the calendar page) ---------- */
.nextdate { background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: .93rem; }
.nextdate .in { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
@media (min-width: 720px) { .nextdate .in { padding: 10px 28px; } }
.nextdate .tag { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.nextdate .when { font-weight: 700; }
.nextdate .days { font-variant-numeric: tabular-nums; color: var(--muted); }
.nextdate .what { color: var(--ink); flex: 1 1 320px; }
.nextdate .pend { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--brass); color: var(--brass-ink); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.nextdate a { white-space: nowrap; font-weight: 600; }

/* ---------- page head ---------- */
main.wrap { padding-top: 6px; }
.crumb { margin-top: 22px; }
.updated { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: rgba(20,90,65,.08); color: var(--green-2); font-size: .82rem; font-weight: 600; }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E6B; }
.hero { padding: 26px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.hero h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(2.1rem, 4.4vw, 3.15rem); line-height: 1.1; letter-spacing: -.018em; max-width: 22ch; }
.hero .kicker { color: var(--brass-ink); letter-spacing: .14em; font-weight: 700; }
.hero .lede { font-size: 1.16rem; line-height: 1.6; max-width: 62ch; color: var(--ink); opacity: .86; }
h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.01em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: .4em; }

/* ---------- headline figures + chart (pages opt in with .figures / .stack) ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 30px; }
.figures > div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green-2); border-radius: 10px; padding: 16px 18px; }
.figures b { display: block; font: 650 2.2rem/1.05 var(--serif); letter-spacing: -.02em; color: var(--green-2); font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.stack { margin: 8px 0 34px; padding: 22px 24px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stack figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.stack .ttl { font: 650 1.05rem/1.3 var(--serif); margin: 0 0 14px; }
.stack svg { display: block; width: 100%; height: auto; }

/* ---------- tables: built for scanning ---------- */
.prose table, main table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .93rem; background: var(--surface); }
main table th { background: var(--paper-2); text-align: left; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
main table th, main table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
main table tr:last-child td { border-bottom: 0; }
main table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper-2) 45%, transparent); }
main table td { font-variant-numeric: tabular-nums; }

/* ---------- "On this page" (site.js adds it on wide screens) ---------- */
@media (min-width: 1180px) {
  main.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 60px; align-items: start; }
  main.has-toc > * { grid-column: 1; }
  main.has-toc > .toc { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 24px; margin-top: 28px; }
}
.toc { display: none; font-size: .88rem; border-left: 2px solid var(--line); padding: 2px 0 2px 16px; }
@media (min-width: 1180px) { .toc { display: block; } }
.toc p { font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 12px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { font-weight: 600; }

/* ---------- home ---------- */
body.is-home .hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 3.5rem); }
body.is-home .cards > * { border-top: 3px solid var(--green-2); }
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 34px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.method > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.method > div:last-child { border-right: 0; }
.method b { display: block; font: 650 1.05rem/1.3 var(--serif); margin-bottom: 4px; }
.method span { font-size: .9rem; color: var(--muted); }

/* ---------- footer ---------- */
footer.foot { background: var(--green); color: rgba(255,255,255,.78); border-top: 3px solid var(--brass); }
footer.foot a { color: #fff; }
footer.foot .fname { font-family: var(--serif); color: #fff; font-size: 1.25rem; }
footer.foot .disclose, footer.foot .legal { color: rgba(255,255,255,.6); }

/* the chart key */
.stack .key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.stack .key i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* tables and charts use the full column; running text keeps a reading measure */
.prose { max-width: none; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > blockquote { max-width: 72ch; }
