/* San Mateo speeds. Loaded BEFORE maxmautner.com's site stylesheet: the tokens
   below are fallbacks that the site's own :root values replace. Component
   rules are all .sp-* classes, so the site's element rules don't override them. */

:root {
  --bg: #211e1b; --surface: #2c2925; --surface-sunken: #1a1714;
  --text: #f1efe9; --text-2: #aaa39a; --text-3: #8a847b;
  --accent: #c79045; --accent-ink: #332416; --hairline: rgba(255,255,255,.08);
  --font-serif: 'Newsreader', Georgia, serif; --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --gutter: 22px; --radius-sm: 9px; --radius-md: 14px;
  --line: #e0703a;
  /* how far the 85th is over the limit: one-hue ordinal ramp, validated on this surface (dataviz validate_palette --ordinal) */
  --b0: #1c5cab; --b1: #2a78d6; --b2: #5598e7; --b3: #9ec5f4;
}
[data-theme="light"] {
  --bg: #faf8f4; --surface: #eeeae4; --surface-sunken: #dedad3;
  --text: #1c1a17; --text-2: #56514a; --text-3: #6f6a62; --accent: #9a5f1f; --accent-ink: #fff;
  --hairline: rgba(0,0,0,.10);
  --line: #c4501c;
  --b0: #6da7ec; --b1: #2a78d6; --b2: #1c5cab; --b3: #0d366b;
}
body { background: var(--bg); }

/* Fallback copies of maxmautner.com's base and header rules, so the page holds
   together if the site stylesheet fails to load. The site stylesheet wins. */
*, :after, :before { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; line-height: 1.5; color: var(--text-2); }
main { max-width: 60rem; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter);
  border-bottom: 1px solid var(--hairline); }
.site-title { font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
  text-decoration: none; white-space: nowrap; }
header nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
header li { display: inline-flex; align-items: center; }
header nav a { font-size: 16px; color: var(--text-2); text-decoration: none; }
.dark-mode-toggle { background: none; border: none; cursor: pointer; color: var(--text-2); display: inline-flex; padding: 0; }
.dark-mode-toggle .icon-moon { display: none; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: block; }
[data-theme="dark"] .dark-mode-toggle .icon-sun { display: none; }
@media (max-width: 45rem) { header { padding: 12px 14px; } header nav ul { gap: .75rem; } }

.sp { max-width: 44rem; margin: 0 auto; padding: 20px 16px 48px; color: var(--text-2); font-size: 17px; }
.sp a { color: var(--accent); text-underline-offset: 2px; }
.sp a:focus-visible, .sp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-eyebrow { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin-bottom: 6px; }
.sp h1 { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 1.15;
  letter-spacing: -.015em; color: var(--text); margin: 0 0 14px; text-wrap: balance; }
.sp h2 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--text); margin: 36px 0 10px; }
.sp p { margin: 0 0 12px; }
.sp-lede { font-family: var(--font-serif); font-size: 21px; line-height: 1.4; color: var(--text); }
.sp-status { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 18px 0; color: var(--text); font-size: 16px; }
.sp-status p { margin: 0; }
.sp-meta { font-size: 14px; color: var(--text-3); }

.sp-map { height: 420px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken);
  border: 1px solid var(--hairline); }
@media (max-width: 45rem) { .sp-map { height: 340px; } }
.sp-map .maplibregl-popup-content { background: var(--surface); color: var(--text); font: 14px/1.4 var(--font-sans);
  border-radius: var(--radius-sm); padding: 8px 10px; }
.sp-map .maplibregl-popup-tip { border-top-color: var(--surface); border-bottom-color: var(--surface); }

.sp-list { display: grid; gap: 14px; }
.sp-card { background: var(--surface); border-radius: var(--radius-md); padding: 16px 18px; scroll-margin-top: 16px;
  border: 1px solid var(--hairline); }
.sp-card.is-target { border-color: var(--accent); }
.sp-card h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.sp-headline { font-family: var(--font-serif); font-size: 20px; line-height: 1.35; color: var(--text); }
.sp-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.sp-dl div { background: var(--surface-sunken); border-radius: var(--radius-sm); padding: 8px 10px; }
.sp-dl dt { font-size: 12px; color: var(--text-3); line-height: 1.3; }
.sp-dl dd { font-size: 22px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sp-options { margin: 0 0 10px 1.1em; font-size: 15px; display: grid; gap: 6px; }
.sp-options strong { color: var(--text); font-weight: 600; }
.sp-note { font-size: 14px; color: var(--text); background: var(--surface-sunken); border-radius: var(--radius-sm);
  padding: 8px 10px; }
.sp-about { margin: 0 0 14px 1.1em; font-size: 15px; display: grid; gap: 8px; }
.sp-about strong { color: var(--text); }

.sp-risk { font-size: 15px; border-left: 3px solid var(--hairline); padding-left: 12px; }
.sp-seg .sp-headline { font-size: 22px; }
.sp-map-small { height: 260px; margin: 16px 0; }
.sp-options { list-style: disc; }

.sp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text); margin: 0 0 10px; }
.sp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sp-swatch { display: inline-block; width: 22px; height: 6px; border-radius: 3px; }
.sp-chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.sp-b0 { background: var(--b0); } .sp-b1 { background: var(--b1); } .sp-b2 { background: var(--b2); } .sp-b3 { background: var(--b3); }

.sp-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.sp-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font-sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; }
.sp a.sp-btn { color: var(--accent-ink); }
.sp-btn-2 { background: var(--surface); color: var(--text); border-color: var(--hairline); }
.sp-btn-2[aria-pressed="true"] { background: var(--surface-sunken); border-color: var(--accent); }
.sp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-copied { font-size: 14px; color: var(--text-3); }

.sp-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.sp-table-wrap:focus-visible { outline: 2px solid var(--accent); }
.sp-table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.sp-table th, .sp-table td { padding: 8px 10px; border-bottom: 1px solid var(--hairline); text-align: right; white-space: nowrap; }
.sp-table tbody th { text-align: left; white-space: normal; min-width: 11rem; font-weight: 400; }
.sp-table tbody th a { font-weight: 600; }
.sp-table tbody th span { display: block; font-size: 13px; color: var(--text-3); }
.sp-table thead th { position: sticky; top: 0; background: var(--surface); vertical-align: bottom; }
.sp-table thead th:first-child { text-align: left; }
.sp-table thead button { background: none; border: 0; padding: 0; font: 600 13px/1.25 var(--font-sans); color: var(--text-2);
  cursor: pointer; text-align: inherit; white-space: normal; max-width: 7rem; }
.sp-table thead th:first-child button { max-width: none; }
.sp-table thead [aria-sort="ascending"] button::after { content: " ▲"; }
.sp-table thead [aria-sort="descending"] button::after { content: " ▼"; }
.sp-table tbody tr:hover { background: var(--surface); }
.sp-table td { color: var(--text); }
.sp-up { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--hairline); border-radius: 4px; padding: 0 4px; margin-left: 4px; }

.sp-box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 4px 18px 14px; margin: 24px 0; font-size: 16px; }
.sp-box h2, .sp-box h3 { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--text); margin: 14px 0 8px; }
.sp-opts { margin: 0 0 12px 1.1em; display: grid; gap: 6px; }
.sp-opts strong { color: var(--text); }
.sp-email { white-space: pre-wrap; font: 15px/1.5 var(--font-sans); color: var(--text); background: var(--surface-sunken);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 12px; }
.sp-blank { display: block; border: 1px dashed var(--text-3); border-radius: 6px; padding: 4px 8px; color: var(--text-3); }
.sp-share input { flex: 1 1 16rem; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); background: var(--surface-sunken); color: var(--text); font: 14px var(--font-sans); }

.sp-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-3); }
.sp-foot p { margin: 0 0 8px; }
.sp-table tbody tr:target { background: var(--surface-sunken); outline: 2px solid var(--accent); outline-offset: -2px; }
