
:root { --fg:#1f2937; --muted:#6b7280; --line:#e5e7eb; --bg:#fdfdfb; --accent:#7a3f1c; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body { font-family: -apple-system, system-ui, "Segoe UI", sans-serif; line-height: 1.55; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
header.site { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; padding-bottom: 1rem; }
header.site .crumb a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
header.site .crumb a:hover { color: var(--accent); }
nav.lens-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0.5rem; background: #f3f1ec; border-radius: 6px; font-size: 0.92rem; }
nav.lens-nav a { color: var(--fg); text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 4px; }
nav.lens-nav a:hover { background: white; }
nav.lens-nav a[aria-current="page"] { background: var(--accent); color: white; font-weight: 500; }
nav.lens-nav .sep { color: var(--muted); align-self: center; }
h1 { font-size: 1.8rem; font-weight: 600; margin: 0.4rem 0 0.2rem; }
h2 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.6rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.subtitle { color: var(--muted); margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.metric { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 0.85rem 1rem; }
.metric .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.metric .value { font-size: 1.55rem; font-weight: 600; margin-top: 0.1rem; font-variant-numeric: tabular-nums; }
.metric .sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.rankings { background: #fafaf6; border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1rem 0; }
.rankings .rank-line { margin: 0.2rem 0; font-size: 0.95rem; }
.rankings strong { color: var(--accent); font-variant-numeric: tabular-nums; }
table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; font-size: 0.92rem; }
th, td { padding: 0.5rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f3f1ec; font-weight: 600; color: var(--fg); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #faf7f1; }
tbody tr a { color: var(--accent); text-decoration: none; font-weight: 500; }
tbody tr a:hover { text-decoration: underline; }
iframe.map { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 6px; margin: 0.6rem 0 1rem; }
.note { background: #fff8e6; border-left: 3px solid #d4a017; padding: 0.7em 1em; margin: 1em 0; font-size: 0.92rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.lede { max-width: 70ch; }
.tab-controls { margin: 0.75rem 0 1rem; }
.tab-controls label { font-size: 0.92rem; margin-right: 0.5rem; color: var(--muted); }
.tab-controls input { padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.tab-controls select { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: white; }
.zero-halo { background: #f3f1ec; border-left: 3px solid var(--accent); padding: 0.9rem 1.1rem; border-radius: 0 4px 4px 0; margin: 1rem 0; }
