/* site.css — Birdie Alerts design system (2026-11 redesign, docs/redesign.md).
   Utility / scoreboard: one deep green (ink), one signal yellow, square corners,
   condensed uppercase headings, monospaced numbers. Phone-first. */

:root {
  --ink: #0B3D2C;
  --ink-line: #245A45;
  --ink-soft: #3C6B58;
  --on-ink: #FFFFFF;
  --on-ink-2: #DCE7E1;
  --on-ink-3: #A9C2B6;
  --signal: #FFCE3A;
  --signal-hover: #F2BE1F;
  --paper: #F7F6F1;
  --surface: #FFFFFF;
  --band: #EFEEE6;
  --rule: #CFCDC2;
  --rule-2: #E4E2D8;
  --text: #16201B;
  --text-2: #2B3631;
  --text-3: #3A4640;
  --muted: #5B655F;
  --error: #B3261E;
  --ok: #1E6B45;
  --font: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 32px;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  /* Short pages (My Alerts) keep the footer at the bottom of the window: main grows
     to fill the spare height instead of leaving a gap under the footer. */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #06261B; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.site-head :focus-visible, .site-foot :focus-visible, .board :focus-visible { outline-color: var(--signal); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cond { font-stretch: 78%; }
.label {
  font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { padding-top: 20px; padding-bottom: 64px; }
body > main { flex: 1 0 auto; width: 100%; } /* width: auto margins would otherwise shrink it to its content */
@media (max-width: 640px) { .page { padding-top: 14px; padding-bottom: 40px; } }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: var(--on-ink); }
.site-head__in { height: 60px; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink);
  text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { color: var(--on-ink); }
.brand__mark { width: 12px; height: 12px; background: var(--signal); flex: none; }
.area-link {
  color: var(--on-ink); text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink-soft); padding: 6px 12px; white-space: nowrap;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
.area-link:hover { color: var(--on-ink); border-color: var(--on-ink-3); }
.site-nav { margin-left: auto; display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--on-ink-2); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-ink); box-shadow: inset 0 -2px 0 var(--signal); }
.menu { margin-left: auto; display: none; position: relative; }
.menu > summary {
  list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--on-ink); cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: 48px; z-index: 40; min-width: 200px;
  background: var(--surface); border: 2px solid var(--ink); display: flex; flex-direction: column;
}
.menu__panel a { padding: 14px 16px; color: var(--text); text-decoration: none; font-weight: 600; border-top: 1px solid var(--rule-2); }
.menu__panel a:first-child { border-top: 0; }
@media (max-width: 760px) {
  .site-head__in { height: 56px; gap: 12px; }
  .brand { font-size: 18px; }
  .site-nav { display: none; }
  .menu { display: block; }
  .area-link { padding: 5px 10px; font-size: 13px; max-width: 150px; }
}

/* ---------- breadcrumbs + titles ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.crumbs li { display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--rule); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-top: 16px; }
.title-row__main { flex: 999 1 520px; min-width: 0; }
.h1 {
  margin: 0; font-stretch: 78%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1; letter-spacing: -.015em;
}
.h1 .dim { color: var(--muted); font-weight: 500; }
.lede { margin: 10px 0 0; font-size: 16px; color: var(--text-3); max-width: 760px; }
.lede a { color: var(--text-3); }
.h2 {
  margin: 0 0 12px; font-stretch: 78%; font-weight: 800; text-transform: uppercase;
  font-size: 26px; line-height: 1.1; letter-spacing: -.005em;
}
@media (max-width: 640px) { .lede { font-size: 14px; margin-top: 8px; } .h2 { font-size: 22px; } }

/* ---------- scoreboard ---------- */
.board {
  margin-top: 22px; background: var(--ink); color: var(--on-ink);
  display: grid; grid-template-columns: repeat(var(--cells, 5), minmax(0, 1fr));
}
.board__cell { padding: 16px 20px; border-right: 1px solid var(--ink-line); min-width: 0; }
.board__cell:last-child { border-right: 0; }
.board__label { font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-3); }
.board__num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 600; line-height: 1.1; margin-top: 4px; white-space: nowrap; }
.board__num small { font-size: 18px; }
.board__num--signal { color: var(--signal); }
.board__num--dim { color: var(--on-ink-3); }
.board__note { font-size: 13px; color: var(--on-ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__live { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.board__checked { display: none; } /* phones: "Checked 8 min ago" (desktop has the label above) */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); display: inline-block; flex: none; }
@media (max-width: 760px) {
  .board { margin-top: 16px; }
  /* Course page: Open 30% | Earliest 40% | Cheapest 30% (a time like "12:46 PM" is
     the widest number); the rest stack below. Other boards keep their --cells. */
  .board--course { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); }
  .board--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board__cell { padding: 12px 14px; }
  .board--4 .board__cell:nth-child(2) { border-right: 0; }
  .board--4 .board__cell:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .board__num { font-size: 26px; }
  .board__num small { font-size: 13px; }
  .board__label { font-size: 11px; }
  .board__cell--wide { display: none; }
  .board__cell--foot {
    grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--ink-line);
    padding: 8px 14px; display: flex; align-items: center; gap: 8px;
  }
  .board__cell--foot .board__label { display: none; }
  .board__cell--foot .board__live { margin: 0; font-size: 13px; font-weight: 500; color: var(--on-ink-2); }
  .board__cell--foot .board__checked { display: inline; }
}

/* ---------- two-column layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 26px; align-items: flex-start; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__rail { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1000px) { .layout__rail { position: sticky; top: 16px; } }
@media (max-width: 760px) { .layout { margin-top: 16px; gap: 24px; } }

/* ---------- date strip ---------- */
.dates {
  display: flex; overflow-x: auto; border: 1px solid var(--rule); background: var(--surface);
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
/* Days share the strip's full width and may narrow to 46px, so all 15 fit in about
   690px (a course page's column); only narrower than that does the strip scroll.
   Phones keep 56px days and swipe. */
.date {
  flex: 1 1 62px; min-width: 46px; padding: 9px 0 8px; border: 0; border-right: 1px solid var(--rule-2);
  background: var(--surface); color: var(--text); text-align: center; line-height: 1.15;
}
.date:last-child { border-right: 0; }
.date__dow { display: block; font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.date__num { display: block; font-family: var(--mono); font-size: 20px; font-weight: 600; }
.date__mon { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; height: 12px; }
.date:hover { background: var(--band); }
.date[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.date[aria-selected="true"] .date__dow { color: var(--signal); }
.date[aria-selected="true"] .date__mon { color: var(--on-ink-3); }
@media (max-width: 640px) { .date { flex: 0 0 56px; } .date__num { font-size: 18px; } }
/* When days are hidden off either edge (phones), fade that edge so the strip reads
   as scrollable. app.js markDateEdge sets the classes. */
.dates { --fade-l: 0px; --fade-r: 0px; }
.dates--before { --fade-l: 32px; }
.dates--more { --fade-r: 40px; }
.dates--before, .dates--more {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}

/* ---------- filter controls ---------- */
/* The filter bar is the container the filters lay out against (see the @container
   block below), so they adapt to the room they actually have, not the screen. */
.filterbar { container: filters / inline-size; }
/* Spacing kept tight so players, holes and time fit one row (~750px), which a course
   page's column has on a laptop. space-between spreads the groups edge to edge, so
   the last one ends flush with the date strip and the list below; the gaps between
   groups grow with the room (14px is the minimum). */
.controls { position: relative; display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; }
/* position:relative above keeps the absolutely positioned .sr-only labels inside the
   controls (they once escaped a scrolling row and widened the whole page). */
/* Desktop: everything on one row, players/holes/time as compact dropdowns with the
   label beside each (owner's call, 2026-11-17). Course page centres the row; the
   area page runs search -> dropdowns -> city, List/Map at the right edge. */
@container filters (min-width: 761px) {
  .controls--course { justify-content: center; column-gap: 28px; }
  .controls--area { justify-content: flex-start; column-gap: 20px; }
  .controls--area .controls__search { flex: 0 1 240px; }
  .controls--area .view-toggle { margin-left: auto; }
}
.ctl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ctl > .label { white-space: nowrap; }
.seg { display: flex; border: 1px solid var(--rule); background: var(--surface); }
.seg__btn { border: 0; border-left: 1px solid var(--rule-2); background: var(--surface); padding: 0 9px; height: 40px; white-space: nowrap; }
.seg__btn:first-child { border-left: 0; }
.seg__btn:hover { background: var(--band); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.pick {
  height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--rule); background: var(--surface);
  font-weight: 600; appearance: none; -webkit-appearance: none; border-radius: 0; color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat;
}
.pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.custom-time { display: flex; align-items: center; gap: 8px; }
.ctl--phone { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ctl__label { font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.controls .pick { font-size: 16px; } /* 16px: iOS/iPadOS don't zoom when it's tapped */
.controls__search { flex: 1 1 220px; max-width: 320px; }
.input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #A9A79C; background: var(--surface);
  font-size: 16px; border-radius: 0; color: var(--text);
}
.input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.input::placeholder { color: #7A817D; }
/* Whenever the filters have under ~760px (phones, tablets, a course page's column in
   a small window): one row of dropdowns instead of button groups, every filter on
   screen and nothing to swipe. Players, holes and time share the first row; the
   area page adds search + the List/Map switch (no city picker: search matches
   cities). 16px text stops iOS zooming in when a dropdown is tapped. */
@container filters (max-width: 760px) {
  /* Players 30% | Holes 30% | Time 40% (time has the longest choices); the search
     row below reuses these columns, so its edges line up. */
  .controls { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr); gap: 10px 8px; }
  .ctl--phone { display: flex; flex-direction: column; align-items: stretch; gap: 3px; order: 1; }
  .ctl__label { font-stretch: 78%; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .controls .pick { width: 100%; min-width: 0; font-size: 16px; padding: 0 24px 0 10px; background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px; }
  .custom-time { grid-column: 1 / -1; order: 2; }
  .custom-time label { flex: 1; }
  .controls__search { grid-column: span 2; order: 3; max-width: none; }
  .controls:not(:has(.view-toggle)) .controls__search { grid-column: 1 / -1; }
  .view-toggle { order: 4; }
  .view-toggle .seg__btn { flex: 1; height: 42px; }
}

@media (max-width: 760px) {
  /* The dates and filters stick to the top while you scroll the results, and let go
     at the end of .results (before the directory / About sections). app.js adds
     .is-stuck to shade the bar only while it is stuck. */
  .filterbar {
    position: sticky; top: 0; z-index: 20;
    margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 10px; background: var(--paper);
  }
  .filterbar.is-stuck { box-shadow: 0 1px 0 var(--rule), 0 8px 14px -10px rgba(11, 30, 22, .35); }
}

/* ---------- tee sheet (course page) ---------- */
.tsheet { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); }
/* Holes grows to 220px when there is room, which fits every "Sub-course · 9 or 18
   holes" label measured (2026-11-17) on one line; only in a narrower window does a
   long one wrap. It gives way first; spots keeps at least 120px. */
.tsheet__cols, .tee {
  display: grid; grid-template-columns: 112px minmax(140px, 220px) minmax(120px, 1fr) 96px 104px; column-gap: 20px; align-items: center; padding: 0 20px;
}
.tsheet__cols {
  padding-top: 10px; padding-bottom: 10px; font-stretch: 78%; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; color: var(--muted); text-transform: uppercase; border-bottom: 2px solid var(--ink);
}
.tsheet__cols .r, .tee .r { text-align: right; }
.tsheet__group {
  padding: 8px 20px; background: var(--band); font-stretch: 78%; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--rule-2);
}
.tee { min-height: 52px; border-bottom: 1px solid var(--rule-2); text-decoration: none; color: var(--text); }
.tee:hover { background: #FBFAF6; color: var(--text); }
.tee__time { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.tee__holes { font-size: 14px; color: var(--text-3); }
.tee__spots { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pips { font-family: var(--mono); color: var(--ink); letter-spacing: 2px; }
.tee__price { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.tee__book {
  justify-self: end; display: inline-block; padding: 7px 14px; border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.tee:hover .tee__book { background: var(--ink); color: var(--on-ink); }
.tee__chev { display: none; }
.tsheet__more {
  display: block; width: 100%; padding: 14px; border: 0; border-bottom: 1px solid var(--rule-2);
  background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink);
}
.tsheet__more:hover { background: var(--band); }
@media (max-width: 760px) {
  .tsheet { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .tsheet__cols { display: none; }
  .tsheet__group { padding: 8px 16px; font-size: 12px; }
  .tee { grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; padding: 8px 16px; min-height: 60px; }
  .tee__holes { grid-column: 2; grid-row: 1; font-size: 13px; line-height: 1.3; }
  .tee__spots { grid-column: 2; grid-row: 2; font-size: 13px; gap: 6px; }
  .tee__time { grid-row: 1 / span 2; font-size: 16px; }
  .tee__price { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; }
  .tee__book { display: none; }
  .tee__chev { display: inline; font-weight: 700; font-family: var(--font); }
}

/* ---------- states ---------- */
.state { padding: 36px 24px; text-align: center; color: var(--text-3); }
.state__title { font-weight: 700; color: var(--text); font-size: 17px; margin: 0 0 6px; }
.state p { margin: 0 auto; max-width: 460px; }
.state .btn { margin-top: 14px; }
.spin {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--ink);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.note-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--band);
  font-size: 14px; color: var(--text-3); border-bottom: 1px solid var(--rule-2);
}
@media (max-width: 760px) { .note-bar { padding: 10px 16px; font-size: 13px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-weight: 700; font-size: 15px; text-decoration: none; text-align: center;
}
.btn:hover { background: #06261B; border-color: #06261B; color: var(--on-ink); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 800; }
.btn--signal:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-width: 1.5px; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; font-weight: 600; }

/* ---------- rail cards ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); }
.card__pad { padding: 20px; }
.card__title { margin: 0 0 10px; font-stretch: 78%; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card--strong { border: 2px solid var(--ink); }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.card__links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.nearby { list-style: none; margin: 0; padding: 0; }
.nearby a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 20px;
  border-top: 1px solid var(--rule-2); text-decoration: none; color: var(--text);
}
.nearby a:hover { background: #FBFAF6; color: var(--text); }
.nearby__name { font-weight: 700; font-size: 15px; }
.nearby__open { font-family: var(--mono); font-weight: 600; font-size: 15px; text-align: right; white-space: nowrap; }
.nearby__unit { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); } /* "42 open" */
.nearby__meta { font-size: 13px; color: var(--muted); }
.nearby__meta.r { text-align: right; }
.card__head { padding: 16px 20px 10px; margin: 0; }

/* ---------- alert form (rail card / drawer) ---------- */
.alert-card { padding: 22px; }
.alert-card__head { margin: 8px 0 6px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.alert-card__ctx { margin: 0 0 14px; font-size: 14px; color: var(--text-3); }
.alert-card__ctx strong { color: var(--text); font-weight: 700; }
.alert-card__watch { margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.field { display: block; margin-bottom: 12px; }
.field > span, .field__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.field select.input { appearance: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--text-3); margin: 4px 0 14px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.consent a { color: var(--text-3); }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.form-message { margin: 10px 0 0; font-size: 14px; min-height: 0; }
.form-message:empty { display: none; }
.form-error { color: var(--error); font-weight: 600; }
.alert-success-pane { text-align: left; }
.alert-success-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--signal); color: var(--ink); margin-bottom: 12px; }
.alert-success-title { margin: 0 0 6px; font-stretch: 78%; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.alert-success-body { margin: 0 0 14px; font-size: 15px; color: var(--text-2); }
.alert-success-note { margin: 0 0 14px; font-size: 14px; color: var(--text-3); }
.alert-success-btn { width: 100%; }
.alert-paywall-title { margin: 0 0 6px; font-weight: 800; font-size: 18px; }
.alert-paywall-sub { margin: 0 0 14px; font-size: 14px; color: var(--text-3); }
.alert-paywall-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.alert-paywall .btn { width: 100%; }

/* Alert form (course and area pages): hidden until a "Text me" button opens it, as a
   bottom drawer on phones and a centred dialog on desktop. */
.drawer-backdrop { display: none; }
.drawer { position: relative; }
@media (max-width: 999px) {
  .drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; overflow-y: auto;
    background: var(--surface); border-top: 3px solid var(--ink); transform: translateY(105%);
    transition: transform .22s ease; visibility: hidden; padding-bottom: env(safe-area-inset-bottom);
  }
  .drawer.card--strong { border: 0; border-top: 3px solid var(--ink); }
  body.drawer-open .drawer { transform: none; visibility: visible; }
  body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(11, 30, 22, .45); }
  body.drawer-open { overflow: hidden; }
  .drawer__close { display: flex !important; }
}
.drawer__close {
  display: none; position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; align-items: center;
  justify-content: center; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--text);
}
@media (min-width: 1000px) {
  /* The alert form opens as a centred dialog. */
  .drawer--dialog {
    position: fixed; left: 50%; top: 50%; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto;
    transform: translate(-50%, -50%); visibility: hidden; opacity: 0; transition: opacity .15s ease;
  }
  body.drawer-open .drawer--dialog { visibility: visible; opacity: 1; }
  body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(11, 30, 22, .45); }
  .drawer--dialog .drawer__close { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* ---------- area leaderboard ---------- */
.lb { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); }
.lb__cols, .lb__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px minmax(0, 404px) 28px; gap: 16px; align-items: center; padding: 0 20px;
}
.lb__cols {
  padding-top: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.lb__sort { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: inherit; }
.lb__sort[aria-pressed="true"] { color: var(--ink); }
.lb__sort[aria-pressed="true"]::after { content: " ▼"; }
.lb__cols .r, .lb__row .r { text-align: right; justify-content: flex-end; }
.lb__row { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); }
.lb__name { font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.lb__name:hover { text-decoration: underline; color: var(--text); }
.lb__town { font-size: 13px; color: var(--muted); }
.lb__open { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.lb__from { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.lb__unit { display: none; } /* "133 open" on phones; desktop has the column header */
.lb__times { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tchip {
  flex: 0 0 auto; min-width: 70px; text-align: center; padding: 6px 4px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface);
}
.tchip:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.tchip--more { color: var(--muted); font-family: var(--font); font-weight: 600; font-size: 13px; }
.lb__go { font-size: 22px; font-weight: 700; text-decoration: none; text-align: right; }
.lb__none { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.lb__row--none .lb__open, .lb__row--none .lb__from { color: var(--muted); }
.lb__more {
  display: block; width: 100%; padding: 14px; border: 0; background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink);
}
.lb__more:hover { background: var(--band); }
@media (max-width: 760px) {
  .lb { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .lb__cols { display: none; }
  .lb__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 16px; }
  .lb__main { grid-column: 1; grid-row: 1; }
  .lb__nums { grid-column: 2; grid-row: 1; text-align: right; }
  .lb__open { font-size: 18px; }
  .lb__unit { display: inline; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
  .lb__from { display: none; }
  /* Up to 4 times + "+N": each box takes a fifth of the row, so all five fit on
     screen with nothing cut off at the edge and nothing to scroll. */
  .lb__times { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; }
  .lb__times .tchip { flex: 0 0 calc((100% - 24px) / 5); min-width: 0; padding: 6px 2px; }
  .lb__go { display: none; }
  .lb__none { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 761px) { .lb__nums { display: contents; } }
.lb__nums small { display: block; font-size: 12px; color: var(--muted); font-family: var(--font); font-weight: 500; }
@media (min-width: 761px) { .lb__nums small { display: none; } }

.view-toggle { margin-left: auto; }
@media (max-width: 760px) { .view-toggle { margin-left: 0; } }
/* isolation: Leaflet gives its panes z-indexes up to 1000; contain them so the
   alert dialog, drawer and header menu always sit above the map. */
.mapbox { position: relative; z-index: 0; isolation: isolate; margin-top: 16px; height: 520px; border: 1px solid var(--rule); background: var(--band); }
.map-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.map-note:not([hidden]) + .mapbox { margin-top: 8px; }
@media (max-width: 760px) { .mapbox { height: 62vh; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; } }

.band {
  margin-top: 28px; background: var(--signal); color: var(--ink); padding: 22px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.band__text { flex: 1 1 420px; }
.band__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.band p { margin: 4px 0 0; font-size: 15px; }
.band .btn { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- directory / prose sections ---------- */
.section { margin-top: 48px; }
@media (max-width: 640px) { .section { margin-top: 36px; } }
.towns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.town__head { display: flex; justify-content: space-between; gap: 8px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 6px; }
.town__name { font-weight: 800; }
.town__count { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.town ul { list-style: none; margin: 0; padding: 0; }
.town li a { display: block; font-size: 15px; padding: 3px 0; }
@media (max-width: 1000px) { .towns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 420px) { .towns { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 700px; color: var(--text-2); }
/* About and My Alerts: content in a centred column, text centred too (owner's call,
   2026-11-17). */
.page--centered .title-row { justify-content: center; text-align: center; }
.page--centered .title-row__main { flex: 0 1 1100px; }
.page--centered .lede { margin-left: auto; margin-right: auto; }
.page--centered .prose, .page--centered .acct { margin-left: auto; margin-right: auto; }
.page--centered .section > .h2, .page--centered .prose h2 { text-align: center; }
.page--centered .prose { text-align: center; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin: 32px 0 10px; font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.15; color: var(--text); }
.prose h3 { margin: 22px 0 8px; font-size: 18px; color: var(--text); }
.prose strong { color: var(--text); }

.qa details { border-top: 1px solid var(--rule); padding: 14px 0; }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); font-weight: 600; color: var(--muted); }
.qa details[open] summary::after { content: "–"; }
.qa details p { margin: 8px 0 0; color: var(--text-2); max-width: 700px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink-2); font-size: 14px; margin-top: 0; }
.site-foot__in { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 40px; padding-bottom: 28px; }
.site-foot__brand { flex: 1 1 240px; }
.site-foot__brand p { margin: 10px 0 0; color: var(--on-ink-3); max-width: 280px; }
.site-foot__col { flex: 1 1 180px; }
.site-foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--on-ink); }
.site-foot a:hover { color: var(--signal); }
.foot-label { margin: 0 0 10px; font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-3); }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--ink-line); color: var(--on-ink-3); font-size: 13px; }
.site-foot__base a { color: var(--on-ink-2); }

/* ---------- home ---------- */
.hero { padding: 28px 0 8px; }
.hero--centered { text-align: center; } /* home: headline, intro, search and "Back to" centred */
.hero--centered .lede, .hero--centered .search { margin-left: auto; margin-right: auto; }
.hero--centered .typeahead { text-align: left; }
/* Smaller than the page titles (.h1): the search box leads the home page, the
   headline only labels it. */
.hero__title { font-size: clamp(30px, 3.4vw, 44px); }
.search { position: relative; margin-top: 20px; max-width: 760px; }
.search__row { display: flex; border: 2px solid var(--ink); background: var(--surface); }
.search__input { flex: 1; min-width: 0; height: 56px; border: 0; padding: 0 16px; font-size: 18px; background: transparent; }
.search__input:focus { outline: none; }
.search__row:focus-within { box-shadow: 0 0 0 3px var(--signal); }
.search__btn { border: 0; border-left: 2px solid var(--ink); background: var(--signal); color: var(--ink); padding: 0 20px; font-weight: 800; }
.search__hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.typeahead {
  list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: var(--surface); border: 2px solid var(--ink); border-top: 0; max-height: 60vh; overflow-y: auto;
}
.course-search-results { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 2px solid var(--ink); }
.qc-course-wrap { position: relative; }
.qc-course-wrap .course-search-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; border-top: 0; max-height: 50vh; overflow-y: auto; }
.cs-group-header { padding: 8px 16px; background: var(--band); font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.course-search-result { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; border-top: 1px solid var(--rule-2); }
.course-search-result:hover, .course-search-result.active { background: var(--band); }
.cs-icon { width: 20px; height: 20px; color: var(--ink); flex: none; }
.cs-text { display: flex; flex-direction: column; min-width: 0; }
.course-search-name { font-weight: 700; }
.course-search-city { font-size: 13px; color: var(--muted); }
.cs-empty { padding: 12px 16px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 32px; background: var(--ink); color: var(--on-ink); }
.stats > div { padding: 16px 20px; border-right: 1px solid var(--ink-line); }
.stats > div:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--surface); counter-reset: step; }
.steps li { padding: 20px; border-right: 1px solid var(--rule-2); counter-increment: step; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-weight: 600; font-size: 28px; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; border-top: 1px solid var(--rule-2); }
  .steps li:first-child { border-top: 0; }
}

/* ---------- areas directory (home) ---------- */
.areas { columns: 3 260px; column-gap: 32px; }
.areas__state { break-inside: avoid; margin: 0 0 22px; }
.areas__state h3 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); font-stretch: 78%; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.areas__state ul { list-style: none; margin: 0; padding: 0; }
.areas__state li a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--rule-2); }
/* Area names read as links (underline + chevron), not plain text; rows are taller
   on phones so they're easy to tap. */
.areas__name { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(11, 61, 44, .35); }
.areas__state li a:hover .areas__name { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.areas__count { font-family: var(--mono); color: var(--muted); font-size: 14px; white-space: nowrap; }
.areas__count::after { content: "›"; margin-left: 8px; font-family: var(--font); font-weight: 700; font-size: 16px; color: var(--ink); }
@media (max-width: 760px) { .areas__state li a { padding: 11px 0; } }

/* ---------- My Alerts ---------- */
.acct { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.acct .card > details > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct .card > details > summary::-webkit-details-marker { display: none; }
.acct .card > details > summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--muted); }
.acct .card > details[open] > summary::after { content: "–"; }
.acct .card > details > summary h2 { margin: 0; font-stretch: 78%; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.acct .card__body { padding: 0 20px 20px; }
.acct .card__sub { margin: 0 0 16px; color: var(--text-3); font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.row-inline { display: flex; gap: 10px; align-items: flex-end; }
.row-inline .field { flex: 1; margin: 0; }
.alerts-list { display: flex; flex-direction: column; }
.alert-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-2); }
.alert-item:first-child { border-top: 0; }
.alert-info { min-width: 0; }
.alert-course { font-weight: 800; font-size: 16px; }
.alert-details { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.alert-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.alert-autobook { color: #8e1515; font-weight: 600; }
.alert-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.alert-status { display: inline-block; padding: 3px 8px; font-stretch: 78%; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--rule); color: var(--muted); }
.alert-status.alert-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.alert-status.alert-pending { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-delete { border: 1.5px solid var(--rule); background: var(--surface); padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--error); }
.btn-delete:hover { border-color: var(--error); }
.empty { padding: 24px 0; text-align: center; color: var(--text-3); }
.empty-icon { display: none; }
.back-link { font-weight: 700; }
.sub-banner { padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--rule); background: var(--paper); }
.sub-banner-active { border-color: var(--ink); }
.sub-banner-upgrade { background: #FFF8DF; border-color: #E8CF7A; }
.sub-banner-title { margin: 0; font-weight: 800; }
.sub-banner-sub { margin: 4px 0 10px; font-size: 14px; color: var(--text-3); }
.sub-banner-msg { margin: 8px 0 0; font-size: 14px; color: var(--error); }
.sub-banner-msg:empty { display: none; }
.btn-upgrade-sub, .btn-cancel-sub { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 14px; }
.btn-cancel-sub { background: var(--surface); color: var(--ink); }

/* date picker (date-dropdown.js) used by the My Alerts quick-create form */
.custom-dropdown { position: relative; }
.custom-dropdown-native { display: none; }
.custom-dropdown-button { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid #A9A79C; background: var(--surface); text-align: left; }
.custom-dropdown-chevron { color: var(--ink); }
.custom-dropdown-panel { position: absolute; left: 0; top: 100%; z-index: 50; min-width: 100%; background: var(--surface); border: 2px solid var(--ink); padding: 10px; }
.date-cal { min-width: 260px; }
.date-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.date-cal-title { font-weight: 800; }
.date-cal-nav { border: 1px solid var(--rule); background: var(--surface); width: 36px; height: 36px; }
.date-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.date-cal-dow { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.date-cal-cell { padding: 8px 0; font-family: var(--mono); font-size: 14px; cursor: pointer; }
.date-cal-cell:hover { background: var(--band); }
.date-cal-cell.is-today { box-shadow: inset 0 0 0 1px var(--ink); }
.date-cal-cell.is-selected { background: var(--ink); color: var(--on-ink); }
.date-cal-cell.is-disabled { color: #B9BCB6; cursor: default; background: none; }
.date-cal-cell.is-empty { cursor: default; }

/* ---------- auto-booking box (kept red at the owner's request, 2026-11-13) ---------- */
.autobook-box { margin: 4px 0 14px; padding: 14px 16px; border: 1px solid #F0B8B8; background: #FDF0F0; color: #5C1515; }
.autobook-box-title { margin: 0 0 8px; font-stretch: 78%; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C62828; }
.autobook-toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.autobook-toggle input { width: 18px; height: 18px; accent-color: #B71C1C; }
.autobook-hint { margin: 6px 0 0; font-size: 13px; color: #7A5C5C; }
.autobook-link { border: 0; background: none; padding: 0; color: #B71C1C; text-decoration: underline; font-weight: 600; font-size: 13px; }
.autobook-box .btn-upgrade-sub { margin-top: 10px; background: #B71C1C; border-color: #B71C1C; color: #FFFFFF; }
.autobook-box .btn-upgrade-sub:hover { background: #8E1515; border-color: #8E1515; }
.autobook-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.autobook-form input[type="email"], .autobook-form input[type="password"] { height: 44px; padding: 0 12px; border: 1px solid #E2A5A5; background: #FFFFFF; font-size: 16px; }
.autobook-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.autobook-terms { font-size: 13px; }
.autobook-terms summary { cursor: pointer; color: #B71C1C; }
.autobook-box .sub-banner-msg { color: #B71C1C; }

/* ---------- misc ---------- */
.warming-note { display: flex; align-items: center; gap: 6px; }
.loading { padding: 36px 24px; text-align: center; color: var(--text-3); }
.notice { padding: 12px 16px; border: 1px solid var(--rule); background: var(--surface); font-size: 14px; }
.leaflet-popup-content a { font-weight: 700; }

/* ---------- content pages kept verbatim (FAQ, terms, privacy, SMS opt-in) ---------- */
.faq-item { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-weight: 600; color: var(--muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer p { margin: 8px 0 0; color: var(--text-2); max-width: 700px; }
.faq-list { max-width: 760px; }
.legal { margin-top: 20px; }
.legal-updated { color: var(--muted); font-size: 14px; }
.optin { display: flex; flex-direction: column; gap: 20px; margin-top: 22px; max-width: 760px; }
.form-card { padding: 20px; }
.card-title { margin: 0 0 8px; font-stretch: 78%; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.card-subtitle { margin: 0 0 12px; color: var(--text-3); font-size: 15px; }
.optin-example { margin-top: 16px; padding: 16px; border: 1px dashed var(--rule); background: var(--paper); }
.optin-example-title { margin: 0 0 8px; font-size: 16px; }
.optin .filter-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.optin .filter-group label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.optin .filter-group input { height: 44px; padding: 0 12px; border: 1px solid #A9A79C; background: var(--surface); font-size: 16px; max-width: 320px; }
.optin .consent-checkbox { font-size: 12px; color: var(--text-3); margin: 0 0 14px; }
.optin-sample-msg { padding: 12px 14px; background: var(--band); font-size: 14px; color: var(--text-2); }
