:root {
  --paper: #f6f5f0;
  --panel: #ffffff;
  --ink: #1d2321;
  --muted: #5d625f;
  --line: #dedbd1;
  --soft: #eceae2;
  --accent: #1f5d3a;
  --accent-ink: #ffffff;
  --accent-soft: #e6efe8;
  --bad: #9b2c1f;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151917; --panel: #1c211f; --ink: #e7e8e3; --muted: #9ba19d; --line: #2e3532; --soft: #232926;
    --accent: #6fbf8e; --accent-ink: #0f1a14; --accent-soft: #1f2e25; --bad: #e0836f;
  }
}
:root[data-theme="dark"] {
  --paper: #151917; --panel: #1c211f; --ink: #e7e8e3; --muted: #9ba19d; --line: #2e3532; --soft: #232926;
  --accent: #6fbf8e; --accent-ink: #0f1a14; --accent-soft: #1f2e25; --bad: #e0836f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 28px 0 8px; font-weight: 600; }
b { font-weight: 600; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.mark { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--accent); color: var(--accent-ink); font: 600 11px var(--mono); }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; font-size: 14px; }
.top nav a:hover { background: var(--soft); }
.top nav a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.top nav a.quiet { color: var(--muted); }

.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 140px); }
.side { border-right: 1px solid var(--line); padding: 14px 0 24px; background: var(--panel); }
.side summary { display: none; }
.side h2 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 16px 16px 4px; }
.facets { list-style: none; margin: 0; padding: 0; }
.facets a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 16px; color: var(--ink); text-decoration: none; font-size: 14px; }
.facets a:hover { background: var(--soft); }
.facets a[aria-current] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.n { font: 12px var(--mono); color: var(--muted); }
.side-note { font-size: 12px; color: var(--muted); margin: 16px 16px 0; }

.main { padding: 22px 28px 40px; min-width: 0; }
.head { max-width: 760px; }
.lede { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.lede b { color: var(--ink); }

.signup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 0 14px; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signup label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.signup .grow { flex: 1 1 240px; }
.signup .fine { flex-basis: 100%; margin: 0; }
input, select, button { font: inherit; color: inherit; }
input[type=email], input[type=text], select { height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; min-width: 0; width: 100%; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .btn { height: 38px; padding: 0 16px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 2px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
button.link { background: none; color: var(--accent); padding: 0; height: auto; text-decoration: underline; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fine { font-size: 12px; color: var(--muted); }

.notice { background: var(--accent-soft); color: var(--ink); padding: 10px 12px; margin: 0 0 14px; }
.notice.bad { color: var(--bad); }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); }
table.reg { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg thead th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.reg td { padding: 7px 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.reg tr.day th { text-align: left; font: 500 12px var(--mono); color: var(--muted); background: var(--paper); padding: 6px 12px; border-bottom: 1px solid var(--line); }
.reg .co a { color: var(--ink); font-weight: 500; text-decoration: none; }
.reg .co a:hover { text-decoration: underline; }
.reg .tol { display: block; color: var(--muted); font-size: 13px; }
.reg td a { color: var(--ink); }
.mono { font: 13px var(--mono); white-space: nowrap; }
.locked span { font-size: 12px; color: var(--muted); background: repeating-linear-gradient(-45deg, transparent 0 4px, var(--soft) 4px 8px); padding: 1px 6px; white-space: nowrap; }
.empty, .more { color: var(--muted); }
.cities { margin-top: 22px; font-size: 14px; line-height: 2; }
.cities a { margin-right: 10px; white-space: nowrap; }

.page { max-width: 780px; margin: 0 auto; padding: 28px 20px 48px; }
.page.wide { max-width: 1100px; }
.regions { columns: 3 260px; column-gap: 32px; }
.region { break-inside: avoid; margin-bottom: 18px; }
.region h2 { margin: 0 0 4px; font-size: 15px; }
.region ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.region a { color: var(--ink); }

table.plain, table.compare { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); font-size: 14px; margin: 8px 0 18px; }
.plain th, .plain td, .compare th, .compare td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.plain thead th, .compare thead th { font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 500; width: 34%; }
.compare td:last-child { background: var(--accent-soft); }
.num { text-align: right; font-family: var(--mono); }

.upgrade { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; margin: 18px 0; }
.upgrade p { margin: 0 0 10px; }
.prefs fieldset { border: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 14px 0 0; }
.prefs legend { font-weight: 600; padding: 0 8px 0 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 2px 0; }
.prefs button[type=submit] { margin-top: 16px; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
form.inline { display: inline; }

.foot { border-top: 1px solid var(--line); padding: 16px 20px 28px; font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); margin-right: 14px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .side summary { display: block; padding: 10px 16px; cursor: pointer; font-weight: 500; }
  .main { padding: 18px 16px 32px; }
  .top { padding: 10px 16px; flex-wrap: wrap; }
  .top nav a { padding: 6px 8px; }
  .reg th:nth-child(3), .reg td:nth-child(3), .reg th:nth-child(4), .reg td:nth-child(4) { display: none; }
  .page { padding: 22px 16px 40px; }
  h1 { font-size: 22px; }
}
