/* Values from MW-OS app/global.css (joshwagenbach.com): theme colour bg, white text, Public Sans. */
:root {
  --rgb-white: 255, 255, 255;
  --rgb-theme: 0, 100, 230;
  --theme: rgb(var(--rgb-theme));
  --text: rgba(var(--rgb-white), 0.85);
  --muted: rgba(var(--rgb-white), 0.6);
  --line: rgba(var(--rgb-white), 0.2);
  --font: 'Public Sans', -apple-system, system-ui, sans-serif;
  --pad: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--theme); font-size: 16px; }
body {
  margin: 0; background: var(--theme); color: var(--text); font-family: var(--font);
  font-size: clamp(16px, 0.9rem + 0.35vw, 19px); line-height: 1.45; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(var(--rgb-white), 0.15); }
h1, h2, h3, strong, b { color: #fff; font-weight: 700; }
h1 { font-size: clamp(30px, 1.2rem + 2.6vw, 58px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin: 0.3em 0 0.4em; max-width: 22ch; }
h2 { font-size: clamp(20px, 0.9rem + 0.9vw, 28px); margin: 0 0 0.6em; letter-spacing: -0.015em; }
h3 { font-size: 1em; margin: 1.2em 0 0.3em; }
p { margin: 0 0 0.9em; max-width: 72ch; }
a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.085em; text-underline-offset: 0.12em; }
a:hover { text-decoration-thickness: 0.15em; }
small, .muted { color: var(--muted); }
code { font-size: 0.9em; }

.top { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; justify-content: space-between; padding: 18px var(--pad); }
.brand { font-weight: 800; text-decoration: none; font-size: 1.05em; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 0.85em; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.top nav a:hover { background: #fff; color: var(--theme); }
main { padding: 0 var(--pad) 40px; max-width: 1400px; }
.lede { font-size: 1.15em; max-width: 60ch; color: #fff; font-weight: 400; }
.crumbs { font-size: 0.85em; color: var(--muted); margin-top: 10px; }
.crumbs a { font-weight: 400; }
section { border-top: 2px solid #fff; padding-top: 18px; margin-top: 44px; }
.pill { display: inline-block; background: #fff; color: var(--theme); font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: 0.85em; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.88em; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 700; font-size: 0.85em; white-space: nowrap; }
.list td:first-child { min-width: 180px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
sup { font-size: 0.65em; color: var(--muted); margin-left: 2px; }
tr.future td { color: var(--muted); }
.facts th { width: 30%; color: var(--muted); font-weight: 700; }
.facts td { color: #fff; }
.note { color: var(--muted); font-size: 0.85em; margin-top: 3px; }

.cols { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 32px; }
.cols li { break-inside: avoid; padding: 3px 0; }
.sources { padding-left: 1.1em; }
.sources li { margin: 4px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
input, select, textarea, button { font: inherit; font-size: 0.9em; color: #fff; background: transparent; border: 1px solid rgba(var(--rgb-white), 0.45); border-radius: 999px; padding: 7px 14px; }
textarea { border-radius: 14px; width: 100%; }
select option { color: #000; }
input::placeholder, textarea::placeholder { color: var(--muted); }
#q { flex: 1 1 260px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9em; }
button, .button { background: #fff; color: var(--theme); font-weight: 700; cursor: pointer; border-color: #fff; text-decoration: none; display: inline-block; border-radius: 999px; padding: 8px 20px; }
.leadform form { display: grid; gap: 10px; max-width: 560px; }
.leadform label { display: grid; gap: 4px; font-size: 0.85em; color: var(--muted); font-weight: 700; }
.leadform input { border-radius: 10px; }
.hp { position: absolute; left: -9999px; }
.minimap { height: 340px; border: 1px solid var(--line); margin-bottom: 10px; background: rgba(0, 0, 0, 0.08); }
.bigmap { height: 72vh; min-height: 420px; border: 1px solid var(--line); }
.maplibregl-popup-content { color: #111; font-family: var(--font); }
.maplibregl-popup-content a { color: rgb(var(--rgb-theme)); }
.foot { border-top: 2px solid #fff; margin: 40px var(--pad) 0; padding: 18px 0 40px; font-size: 0.8em; color: var(--muted); }
.foot a { font-weight: 400; }
@media (max-width: 640px) {
  .facts th { width: 40%; }
  .list th:nth-child(2), .list td:nth-child(2), .list th:nth-child(6), .list td:nth-child(6) { display: none; }
}
