/* Hail on Date: weather-instrument styling. Dark slate, radar green for
   instrument chrome, amber only for hail sizes. Archivo Narrow headings,
   Archivo body, JetBrains Mono for dates, sizes and distances. */
:root {
  color-scheme: dark;
  --bg: #0e1519;
  --panel: #131c21;
  --raised: #18242b;
  --well: #0a1013;
  --rule: #26343c;
  --rule-2: #34464f;
  --ink: #e7edf0;
  --ink-2: #b3c1c8;
  --ink-3: #95a6af;
  --radar: #3ddc84;
  --radar-deep: #1f8f55;
  --radar-faint: rgba(61, 220, 132, .12);
  --hail-1: #9c6b12;   /* under 1 inch (decoration only, never text) */
  --hail-2: #d99a2b;   /* 1 to 1.99 inches */
  --hail-3: #ffc766;   /* 2 inches and up */
  --warn-bg: #2a2110;
  --focus: #ffc766;
  --head: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--radar); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 5vw, 50px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.mono, code, kbd { font-family: var(--mono); font-size: .92em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 3px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* ------------------------------------------------------------ app bar */
.appbar { position: sticky; top: 0; z-index: 50; background: var(--well); border-bottom: 1px solid var(--rule); }
.appbar-inner { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--head); }
.brand svg { flex: none; }
.appbar-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.appbar-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 4px; }
.appbar-nav a:hover { color: var(--ink); background: var(--raised); }
.appbar-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--radar); border-radius: 0; }
.appbar-nav .nav-cta { color: #07120c; background: var(--radar); font-weight: 600; margin-left: 6px; }
.appbar-nav .nav-cta:hover { background: #6be6a3; color: #07120c; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-2); color: var(--ink); border-radius: 4px; padding: 7px 12px; font: 600 15px var(--body); cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .appbar-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--well); border-bottom: 1px solid var(--rule); padding: 8px 16px 14px; }
  .appbar-nav.open { display: flex; }
  .appbar-nav a { padding: 12px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .appbar-nav .nav-cta { margin: 10px 0 0; text-align: center; border-radius: 4px; border-bottom: 0; }
}

/* ------------------------------------------------------------ hero console */
.console { padding: 44px 0 36px; border-bottom: 1px solid var(--rule); }
.console-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .console-grid { grid-template-columns: 1fr; gap: 28px; } }

.lede { color: var(--ink-2); font-size: 18px; max-width: 58ch; }

.check-form { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; margin-top: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { display: block; color: var(--ink-3); font-size: 14px; margin-top: 5px; }
input[type=text], input[type=email], input[type=date], input[type=search] {
  width: 100%; background: var(--well); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 4px;
  padding: 11px 12px; font: 400 16px var(--body);
}
input[type=date] { font-family: var(--mono); color-scheme: dark; }
input:hover { border-color: #4a606b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; font: 600 17px var(--body); padding: 13px 20px; }
.btn-go { background: var(--radar); color: #07120c; width: 100%; }
.btn-go:hover { background: #6be6a3; }
.btn-buy { background: var(--hail-3); color: #1a1205; width: 100%; }
.btn-buy:hover { background: #ffd88f; }
.btn[disabled] { opacity: .6; cursor: progress; }
.status { margin: 12px 0 0; font-size: 15px; }
.status.err { color: #ffb4a1; }

/* autocomplete */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--raised); border: 1px solid var(--rule-2); border-radius: 4px; }
.ac-item { padding: 9px 12px; cursor: pointer; font-size: 15px; }
.ac-item.active, .ac-item:hover { background: #22323b; }

/* radar scope panel */
.scope { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.scope-screen { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
.scope-screen svg { display: block; width: 100%; height: 100%; }
.sweep { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(61,220,132,0) 0deg, rgba(61,220,132,0) 300deg, rgba(61,220,132,.28) 360deg); animation: sweep 6s linear infinite; pointer-events: none; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sweep { animation: none; opacity: .5; } }
.readout { border-top: 1px solid var(--rule); }
.readout-title { padding: 12px 16px 0; margin: 0; color: var(--ink-2); font-size: 15px; }
.readout dl { margin: 0; padding: 6px 16px 14px; display: grid; grid-template-columns: auto auto; column-gap: 16px; }
.readout dt { color: var(--ink-2); font-size: 15px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.readout dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 15px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.readout .foot { padding: 0 16px 14px; margin: 0; font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px 0; margin: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.sw-1 { background: var(--hail-1); width: 8px; height: 8px; }
.sw-2 { background: var(--hail-2); }
.sw-3 { background: var(--hail-3); width: 14px; height: 14px; }
.sw-tri { width: 0; height: 0; border-radius: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--ink); }
.sw-home { width: 12px; height: 12px; border: 2px solid var(--ink); background: transparent; }
.sw-other { background: #5a6870; width: 7px; height: 7px; }

/* preview result */
.result { margin-top: 18px; background: var(--raised); border: 1px solid var(--rule-2); border-radius: 6px; padding: 18px; }
.result h2 { font-size: 26px; }
.result .where { color: var(--ink-2); font-size: 15px; margin-top: -6px; }
.notice { background: var(--warn-bg); border: 1px solid #5a4418; border-radius: 4px; padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.buy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.buy h3 { margin-bottom: 4px; }
.buy p { color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------ sections */
.band { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.band-lede { color: var(--ink-2); max-width: 66ch; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.cols > div { padding: 22px 24px 8px 0; }
.cols > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } .cols > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* ruled data tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 10px; border-top: 1px solid var(--rule-2); }
table.ruled { width: 100%; border-collapse: collapse; font-size: 15px; }
table.ruled caption { caption-side: bottom; text-align: left; color: var(--ink-3); font-size: 14px; padding-top: 10px; }
table.ruled th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 14px; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
table.ruled td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.ruled td.n, table.ruled th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ruled td.t { font-family: var(--mono); white-space: nowrap; }
table.ruled td.c { color: var(--ink-2); font-size: 14px; min-width: 18ch; }
table.ruled tr.hl td { background: rgba(255, 199, 102, .07); }
.size { font-family: var(--mono); white-space: nowrap; }
.size-3 { color: var(--hail-3); font-weight: 600; }
.size-2 { color: var(--hail-2); }

.contents { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.contents li { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contents li b { font-family: var(--mono); font-weight: 500; color: var(--radar); font-size: 15px; }

/* instrument strip of true data facts */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 6px; margin: 24px 0; background: var(--panel); }
.strip > div { padding: 16px 18px; border-left: 1px solid var(--rule); }
.strip > div:first-child { border-left: 0; }
.strip .v { font: 600 28px/1.1 var(--mono); display: block; }
.strip .k { color: var(--ink-2); font-size: 14px; display: block; margin-top: 6px; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(3) { border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* bar rows (value printed, so the chart doubles as its table) */
.bars { margin: 14px 0 6px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.bars li { display: grid; grid-template-columns: 6ch 1fr 7ch; gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.bars .lab { font-family: var(--mono); color: var(--ink-2); }
.bars .track { height: 12px; position: relative; }
.bars .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--radar-deep); border-radius: 0 3px 3px 0; min-width: 2px; }
.bars li:hover .fill { background: var(--radar); }
.bars .val { font-family: var(--mono); text-align: right; }

/* entity pages */
.crumbs { font-size: 15px; color: var(--ink-3); padding: 18px 0 0; }
.crumbs a { color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.page-head { padding: 14px 0 8px; }
.map-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 14px; margin: 20px 0; }
.map-panel svg { display: block; width: 100%; height: auto; }
.map-panel figcaption { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.towns { columns: 3 14ch; column-gap: 24px; padding: 0; list-style: none; margin: 10px 0 0; }
.towns li { break-inside: avoid; padding: 3px 0; font-size: 15px; }
.towns .num { color: var(--ink-3); }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--rule); margin-top: 24px; }
.cta-box { background: var(--raised); border: 1px solid var(--rule-2); border-radius: 6px; padding: 20px; margin: 30px 0; }
.cta-box h2 { font-size: 26px; }
.cta-box form { display: grid; grid-template-columns: 1fr 12rem auto; gap: 10px; align-items: end; }
.cta-box .btn { width: auto; }
@media (max-width: 760px) { .cta-box form { grid-template-columns: 1fr; } }
.note { color: var(--ink-2); font-size: 15px; border-left: 3px solid var(--rule-2); padding-left: 14px; }
.yearlist { columns: 2 22ch; column-gap: 28px; }
.yearlist h3 { break-after: avoid; margin-top: 12px; }
.yearlist ul { list-style: none; margin: 0 0 8px; padding: 0; }
.yearlist li { padding: 4px 0; break-inside: avoid; font-size: 15px; }

/* prose pages */
.prose { max-width: 74ch; padding: 30px 0 60px; }
.prose h2 { margin-top: 1.6em; font-size: 28px; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose code { background: var(--well); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; word-break: break-all; }
.prose .urlbox { font-family: var(--mono); font-size: 14px; background: var(--well); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; overflow-wrap: anywhere; }

/* faq */
.faq { border-top: 1px solid var(--rule); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 19px/1.3 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--radar); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); max-width: 70ch; }

/* ------------------------------------------------------------ footer */
.footer { padding: 40px 0 50px; background: var(--well); color: var(--ink-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.metro-links { columns: 2 16ch; column-gap: 20px; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }

/* section rhythm on entity pages */
.wrap > h2 { margin-top: 44px; }
.console h1 { max-width: 20ch; }
