/* /calendar — club events hub. Light and dark from the same tokens.
   The light palette is lprgc.org's own (Blocksy theme palette, 2026-10-15):
   blue #2872fa / #1559ed, text #3A4F66, headings #192a3d, borders #e1e8ed,
   panels #f2f5f7, the sky-to-white page gradient, and the banner's gold and
   navy rule. Corners are nearly square, as on the site. */
:root {
  --bg: #ffffff;
  --page: linear-gradient(to top, #dfe9f3 0%, #ffffff 100%) fixed;
  --surface: #ffffff;
  --surface-2: #f2f5f7;
  --ink: #192a3d;
  --ink-2: #3a4f66;
  --ink-3: #5b6d82;   /* #687a8f before 2026-10-15: 4.4:1 on white, under WCAG AA */
  --line: #e1e8ed;
  --frame: rgba(136, 160, 189, .42);
  --brand: #0b1761;
  --brand-ink: #ffffff;
  --gold: #ffb50a;
  --sky: #e6f6fd;
  --tab: #c7d8f7;
  --tab-on: #78a4f5;
  --public: #7e22ce;
  --public-bg: #f5ecfd;
  --accent: #1a5fe0;  /* the site's #2872fa darkened to pass AA as text, behind white, and on today's tint */
  --accent-hover: #124fd0;
  --accent-ink: #ffffff;
  --today: #2563eb;
  --tomorrow: #15803d;
  --now: #15803d;
  --now-bg: #e8f6ee;
  --warn: #c2410c;
  --warn-bg: #fff4ec;
  --warn-line: #fbd5bb;
  --shadow: 0px 12px 18px -6px rgba(34, 56, 101, .04);
  --radius: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141c;
    --page: #0f141c;
    --frame: #2a3443;
    --sky: #16294a;
    --tab: #22324d;
    --tab-on: #2f5bb5;
    --public: #c084fc;
    --public-bg: #2a1a3d;
    --surface: #171e29;
    --surface-2: #1c2431;
    --ink: #e7ecf3;
    --ink-2: #b5c0cf;
    --ink-3: #8592a5;
    --line: #2a3443;
    --brand: #16294a;
    --accent: #6ea0ff;
    --accent-ink: #0b1220;
    --accent-hover: #8db5ff;
    --today: #6ea0ff;
    --tomorrow: #4ade80;
    --now: #4ade80;
    --now-bg: #12301f;
    --warn: #fb923c;
    --warn-bg: #2a1a10;
    --warn-line: #5a3418;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent-hover: #8db5ff;
  --bg: #0f141c; --page: #0f141c; --frame: #2a3443; --sky: #16294a; --tab: #22324d; --tab-on: #2f5bb5;
  --public: #c084fc; --public-bg: #2a1a3d; --surface: #171e29; --surface-2: #1c2431; --ink: #e7ecf3; --ink-2: #b5c0cf;
  --ink-3: #8592a5; --line: #2a3443; --brand: #16294a; --accent: #6ea0ff; --accent-ink: #0b1220; --today: #6ea0ff;
  --tomorrow: #4ade80; --now: #4ade80; --now-bg: #12301f; --warn: #fb923c; --warn-bg: #2a1a10;
  --warn-line: #5a3418; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
/* The views are swapped with the hidden attribute; a class's display value
   would otherwise win over it and leave two views on screen. */
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  /* Type grows a little on big displays: 15px on a laptop, ~18px at 1920,
     19px from 2560 up. Everything below is in rem, so the whole page scales. */
  font-size: clamp(15px, calc(9.5px + .42vw), 19px);
}
body {
  margin: 0; background: var(--page); background-color: var(--bg); color: var(--ink-2);
  /* lprgc.org's font stack (Blocksy's default): the system UI font. */
  font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
h1, h2, h3, .title { color: var(--ink); }
a { color: var(--accent); }
/* Full width, with a gutter that grows with the screen. */
.wrap { margin: 0 auto; padding: 0 clamp(12px, 2vw, 40px); max-width: 3000px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---- header: lprgc.org's banner and menu ---------------------------- */
/* The banner image is 900px of sky gradient with the gold-then-navy rule at
   its foot (gold for its first 129px); the band continues it to the edge. */
.site { background: linear-gradient(#ffffff 0, #f7fcff 22%, var(--sky) 52%);
  border-bottom: 6px solid var(--brand); position: relative; }
:root { --gut: clamp(12px, 2vw, 40px); }
.site::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 6px;
  width: calc(var(--gut) + min(640px, 100vw - 2 * var(--gut)) * 129 / 900); background: var(--gold); }
.site-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  padding: 6px clamp(12px, 2vw, 40px) 0; flex-wrap: wrap; }
.logo { display: block; flex: 0 1 640px; min-width: 0; line-height: 0; }
/* The rule is drawn by .site's border, so crop the image's own copy of it. */
.logo img { width: 100%; height: auto; max-width: 640px; aspect-ratio: 900 / 126; object-fit: cover; object-position: top; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 14px auto; }
.site-nav a { background: var(--tab); color: var(--ink); text-decoration: none; padding: 9px 13px;
  font-size: .9rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current] { background: var(--tab-on); color: #0b1220; }
.page-head { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 4px; }
.page-head .title { margin-right: auto; }
.page-head h1 { margin: 0; font-size: 1.75rem; line-height: 1.25; font-weight: 700; }
.meta { margin: 2px 0 0; color: var(--ink-3); font-size: .85rem; }
.meta .stale { color: var(--warn); font-weight: 600; }

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 16px; min-height: 40px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.cta { background: var(--now); border-color: var(--now); color: #fff; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- notices (banner below 1200px; in the sidebar above it) ---------- */
.notices { margin: 12px 0 0; background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--radius); padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.notices h2, .side-notices h2 { margin: 0; font-size: .9rem; color: var(--warn); white-space: nowrap; }
.notices ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.notices li button, .side-notices li button { all: unset; cursor: pointer; display: block; font-size: .92rem; }
.notices li button:hover .n-title, .notices li button:focus-visible .n-title,
.side-notices li button:hover .n-title, .side-notices li button:focus-visible .n-title { text-decoration: underline; }
.n-when { font-weight: 700; color: var(--ink); margin-right: 6px; }
.n-title { color: var(--ink-2); }
li.is-today .n-when { color: var(--warn); }

/* ---- toolbar: tabs · filters · search -------------------------------- */
.toolbar { display: grid; gap: 10px 14px; align-items: center; margin: 12px 0;
  grid-template-columns: auto minmax(220px, 380px); grid-template-areas: "tabs search" "chips chips"; justify-content: space-between; }
.tabs { grid-area: tabs; display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 3px; box-shadow: var(--shadow); justify-self: start; }
.tabs button { all: unset; cursor: pointer; padding: 7px 15px; border-radius: 7px; font-weight: 600;
  font-size: .95rem; color: var(--ink-2); text-align: center; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search { grid-area: search; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; color: var(--ink-3); }
/* 16px minimum stops iOS zooming the page when the field is focused. */
.search input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: max(16px, 1rem); box-shadow: var(--shadow); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

/* ---- category chips -------------------------------------------------- */
.chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem;
  cursor: pointer; white-space: nowrap; min-height: 32px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="false"] { color: var(--ink-3); background: transparent; text-decoration: line-through; }
.chip[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.chip.reset { border-style: dashed; color: var(--accent); }

/* ---- main + sidebar -------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.layout.has-side { grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 440px); }
.side { position: sticky; top: 12px; overflow: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.side-notices { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); padding: 10px 14px; }
.side-notices ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.side-notices .n-when { display: block; margin: 0; font-size: .85rem; }
.side h3 { margin: 0; padding: 12px 14px 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }
.side h3 b { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .95rem; margin-right: 6px; }
.side h3.today b { color: var(--today); }
.side h3.tomorrow b { color: var(--tomorrow); }
.side .evlist { padding: 0 6px 4px; }
.side .evlist li + li { border-top: none; }
.side .ev { grid-template-columns: 4.6rem 3px 1fr; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.side .ev .tag { display: none; }
.side .ev .title { font-size: .92rem; font-weight: 600; }
.side .ev .time { font-size: .85rem; }
.side .ev .time small, .side .ev .loc { font-size: .76rem; }
.side .side-more { display: block; margin: 6px 14px 14px; text-align: center; }

/* ---- loading --------------------------------------------------------- */
.loading { display: flex; align-items: center; gap: 10px; padding: 48px 0; justify-content: center; color: var(--ink-3); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 16px; border-radius: var(--radius); }

/* ---- Up Next (the kiosk look) --------------------------------------- */
.upnext { display: grid; gap: 16px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.upnext .more-days { grid-column: 1 / -1; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; }
.day h2 { margin: 0; padding: 10px 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--surface-2);
  display: flex; gap: 10px; align-items: baseline; }
.day h2 b { font-size: 1rem; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.day.today h2 b { color: var(--today); }
.day.tomorrow h2 b { color: var(--tomorrow); }
.evlist { list-style: none; margin: 0; padding: 0; }
.evlist li + li { border-top: 1px solid var(--line); }
.ev { all: unset; box-sizing: border-box; cursor: pointer; display: grid; width: 100%;
  grid-template-columns: 6.4rem 4px 1fr auto; gap: 14px; align-items: center; padding: 11px 16px; }
.ev:hover { background: var(--surface-2); }
.ev:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ev .time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.2; }
.ev .time small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.ev .bar { align-self: stretch; border-radius: 3px; background: var(--c); }
.ev .body, .ev .title, .ev .loc { display: block; min-width: 0; }
.ev .title { font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.ev .loc { color: var(--ink-3); font-size: .88rem; margin-top: 1px; }
.ev .tag { font-size: .75rem; font-weight: 600; color: color-mix(in srgb, var(--c) 72%, var(--ink));
  border: 1px solid var(--c); border-radius: 999px;
  padding: 1px 8px; white-space: nowrap; opacity: .9; }
.ev.is-now { background: var(--now-bg); }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 1px 7px;
  border-radius: 6px; vertical-align: 2px; margin-right: 6px; }
.badge.now { background: var(--now); color: #fff; }
.badge.cancel { background: var(--warn); color: #fff; }
.ev.is-cancelled .title, .ev.is-cancelled .time { text-decoration: line-through; color: var(--ink-3); }
.more-days { justify-self: center; }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-3); }
.searching { color: var(--ink-3); font-size: .9rem; margin: 0 0 10px; }

/* ---- search results -------------------------------------------------- */
.results h2 { font-size: 1rem; margin: 6px 0 8px; color: var(--ink-2); }
.results .day { margin-bottom: 18px; }
.ev .date { font-weight: 700; line-height: 1.2; font-size: .92rem; }
.ev .date small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }

/* ---- FullCalendar, restyled ----------------------------------------- */
#fcwrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; }
.fc { --fc-border-color: var(--line); --fc-page-bg-color: var(--surface); --fc-neutral-bg-color: var(--surface-2);
  --fc-today-bg-color: color-mix(in srgb, var(--accent) 9%, transparent); --fc-list-event-hover-bg-color: var(--surface-2);
  --fc-button-bg-color: var(--surface); --fc-button-border-color: var(--line); --fc-button-text-color: var(--ink);
  --fc-button-hover-bg-color: var(--surface-2); --fc-button-hover-border-color: var(--ink-3);
  --fc-button-active-bg-color: var(--accent); --fc-button-active-border-color: var(--accent);
  --fc-now-indicator-color: #dc2626; --fc-event-border-color: transparent;
  color: var(--ink); font-size: .92rem; }
.fc .fc-toolbar-title { font-size: 1.35rem; font-weight: 700; }
.fc .fc-button { font-weight: 600; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: #fff; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: var(--ink-2); text-decoration: none; }
.fc .fc-daygrid-event { cursor: pointer; border-radius: 5px; }
.fc a.fc-event, .fc a.fc-event:hover { color: var(--ink); }
.fc .fc-daygrid-block-event, .fc .fc-timegrid-event { color: #fff; }
.fc .fc-daygrid-block-event:hover, .fc .fc-timegrid-event:hover { color: #fff; }
.fc .fc-daygrid-dot-event .fc-event-title { font-weight: 600; }
.fc .fc-daygrid-dot-event .fc-event-time { color: var(--ink-3); }
.fc .fc-daygrid-dot-event:hover { background: var(--surface-2); }
.fc .fc-event-time { font-weight: 500; }
.fc .fc-daygrid-more-link { color: var(--accent); font-weight: 600; }
.fc a.fc-daygrid-day-number:hover { color: var(--accent); text-decoration: underline; }
.fc .fc-list-event { cursor: pointer; }
.fc .fc-list-day-cushion { background: var(--surface-2); }
.fc .fc-list-event-title a { color: var(--ink); text-decoration: none; font-weight: 600; }
.fc .fc-popover { background: var(--surface); }
.fc .fc-popover-header { background: var(--surface-2); color: var(--ink); }
.fc .is-cancelled .fc-event-title, .fc .is-cancelled.fc-list-event .fc-list-event-title { text-decoration: line-through; opacity: .7; }
.fc .fc-timegrid-event { border-radius: 6px; cursor: pointer; }
.fc .fc-timegrid-slot { height: 2.1em; }
.fc-theme-standard .fc-scrollgrid { border-radius: 8px; overflow: hidden; }

/* ---- phone month: a compact grid of dots + the chosen day below ------ */
.mmonth { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; }
.mm-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px; }
.mm-head h2 { margin: 0 auto 0 6px; font-size: 1.15rem; }
.mm-nav { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--ink-2); }
.mm-nav:hover, .mm-nav:focus-visible { background: var(--surface-2); }
.mm-today { min-height: 36px; padding: 5px 12px; font-size: .9rem; }
.mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 4px 6px; touch-action: pan-y; user-select: none; }
.mm-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-3); padding: 4px 0; text-transform: uppercase; }
.mm-day { all: unset; box-sizing: border-box; cursor: pointer; height: 54px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding-top: 5px; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.mm-day .num { font-weight: 600; font-size: .95rem; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; }
.mm-day.out .num { color: var(--ink-3); font-weight: 400; }
.mm-day.today .num { color: var(--today); font-weight: 800; }
.mm-day.sel .num { background: var(--accent); color: var(--accent-ink); }
.mm-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mm-day .dots { display: flex; gap: 3px; height: 7px; align-items: center; }
.mm-day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.mm-day .dots i.x { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.mm-day .dots b { font-size: .6rem; line-height: 7px; color: var(--ink-3); font-weight: 700; }
/* A day with a range closure or gate notice: an orange ring on the date. */
.mm-day.notice .num { box-shadow: inset 0 0 0 2px var(--warn); }
.mm-agenda { border-top: 1px solid var(--line); }
.mm-agenda h3 { margin: 0; padding: 12px 14px 6px; font-size: 1rem; display: flex; gap: 8px; align-items: baseline; }
.mm-agenda h3 small { color: var(--ink-3); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.mm-hint { text-align: center; font-size: .78rem; color: var(--ink-3); padding: 0 0 10px; margin: 0; }

/* ---- dialogs --------------------------------------------------------- */
.dlg { border: none; padding: 0; border-radius: 16px; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.dlg::backdrop { background: rgba(10, 16, 26, .55); }
.dlg-body { padding: 20px 22px 22px; overflow: auto; max-height: calc(100vh - 32px); }
.dlg-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.dlg h2 { margin: 0; font-size: 1.4rem; line-height: 1.25; }
.x { all: unset; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--ink-3); padding: 0 4px; }
.x:hover { color: var(--ink); }
.x:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.ev-color { height: 6px; margin: -20px -22px 16px; background: var(--c); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ev-tags span { font-size: .75rem; font-weight: 700; color: color-mix(in srgb, var(--c) 72%, var(--ink)); border: 1px solid var(--c); padding: 1px 8px;
  border-radius: 999px; }
.facts { display: grid; gap: 8px; margin: 14px 0; }
.fact { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.fact svg { color: var(--ink-3); margin-top: 3px; }
.fact b { color: var(--ink); font-weight: 650; }
.fact .sub { display: block; font-size: .88rem; color: var(--ink-3); }
.fact .next a { margin-right: 10px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.desc { border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.desc p { margin: 0 0 .7em; }
.desc ul, .desc ol { padding-left: 1.3em; }
.addto { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.addto h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px; }
.addto .btn { font-size: .88rem; padding: 7px 11px; }

.lede { color: var(--ink-2); margin: 8px 0 16px; }
.subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.subcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.subcard h3 { margin: 0 0 10px; font-size: 1rem; }
.subcard p { margin: 10px 0 0; font-size: .88rem; color: var(--ink-2); }
.copyrow { display: flex; gap: 6px; margin-top: 6px; }
.copyrow input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink-2); font: .8rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.more { margin-top: 16px; }
.more summary { cursor: pointer; font-weight: 600; }
.more li { margin: 8px 0; color: var(--ink-2); }
.more code { font-size: .8rem; overflow-wrap: anywhere; }
.fine { font-size: .82rem; color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-weight: 600;
  transition: .2s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---- footer ---------------------------------------------------------- */
.foot { margin: 28px 0 40px; color: var(--ink-3); font-size: .85rem; }
.foot p { margin: 6px 0; }
.foot-links a { margin-right: 14px; }
.proto { font-style: italic; }

/* ---- below wide: filters on one sideways-scrolling row, to keep the
   month on screen (two wrapped rows cost a 768px-tall laptop its last week) */
@media (max-width: 1199px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ---- wide: tabs, filters and search on one row --------------------- */
@media (min-width: 1200px) {
  /* Eleven filters and five tabs don't share one row below ~1900px: the
     filters get the row under tabs and search, on one line. */
  .toolbar { grid-template-columns: auto minmax(0, 1fr) minmax(220px, 17vw); grid-template-areas: "tabs . search" "chips chips chips"; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ---- phones ---------------------------------------------------------- */
@media (max-width: 760px) {
  /* The banner fills the width; the site menu is lprgc.org's job on a phone. */
  .site-nav { display: none; }
  .site-inner { padding-top: 4px; }
  .logo, .logo img { max-width: none; width: 100%; flex-basis: 100%; }
  .site::after { width: calc(var(--gut) + (100vw - 2 * var(--gut)) * 129 / 900); }
  .page-head { padding-top: 10px; }
  .page-head h1 { font-size: 1.35rem; }
  .meta { display: none; }
  .quick-desk { grid-template-columns: 1fr; }
  .quick-desk .qr { display: none; }
  #subscribeBtn { padding: 8px 10px; min-height: 38px; }
  #subscribeBtn span { font-size: .88rem; }
  .toolbar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "search" "chips"; gap: 8px; margin: 10px 0; }
  .tabs { display: flex; justify-self: stretch; }
  .tabs button { flex: 1; padding: 8px 4px; }
  /* Filters scroll sideways rather than taking four rows of a phone screen. */
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(12px, 2vw, 40px)); padding-left: clamp(12px, 2vw, 40px); padding-right: clamp(12px, 2vw, 40px); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .notices { margin-top: 10px; padding: 8px 12px; }
  .ev { grid-template-columns: 4.6rem 4px 1fr; gap: 10px; padding: 10px 12px; }
  .ev .tag { display: none; }
  #fcwrap { padding: 6px; }
  .fc .fc-toolbar { flex-wrap: wrap; gap: 6px; }
  .fc .fc-toolbar-title { font-size: 1.1rem; }
  .fc { font-size: .85rem; }
  .dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dlg-body { max-height: 100dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .foot { margin-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .mm-day { height: 48px; }
}
.side-title { margin: 0; padding: 12px 14px 0; font-size: 1rem; }
.side { max-height: calc(100dvh - 24px); }

/* ---- lprgc.org look: framed sidebar, footer band (2026-10-15) --------- */
/* The site frames its sidebar widgets in a 5px slate-blue border. */
.side { border: 5px solid var(--frame); border-radius: 0; }
.foot { margin: 32px 0 0; padding: 22px 0 30px; background: var(--surface-2); border-top: 1px solid var(--line); }
.foot .copy { color: var(--ink-3); }
.tabs { border-radius: var(--radius); }
.tabs button { border-radius: 2px; }

/* ---- open to the public ----------------------------------------------- */
.tab-public .short { display: none; }
@media (max-width: 760px) {
  .tab-public .long { display: none; }
  .tab-public .short { display: inline; }
}
.tabs button.tab-public[aria-selected="true"] { background: var(--public); color: #fff; }
.pub-ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: -.15em;
  width: 1.15em; height: 1.15em; margin-left: .35em; border-radius: 50%; background: var(--public); color: #fff; flex: none; }
.pub-ico svg { width: .8em; height: .8em; fill: currentColor; }
.chip.legend .pub-ico { margin: 0 2px 0 0; }
.public-intro { background: var(--public-bg); border: 1px solid var(--public); border-left-width: 5px;
  padding: 12px 16px; margin: 0 0 14px; }
.public-intro h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--public); }
.public-intro p { margin: 0; }

/* ---- subscribe: the device's own button first ------------------------- */
.subquick { margin: 6px 0 18px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); }
.subquick:empty { display: none; }
.subquick p { margin: 8px 0 0; }
.btn.big { font-size: 1.1rem; min-height: 52px; width: 100%; }
.quick-desk { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: center; }
.quick-desk h3 { margin: 0 0 4px; font-size: 1rem; }
.quick-desk h3 + p { margin: 0 0 12px; }
.qr { background: #fff; padding: 4px; line-height: 0; }
.qr svg { width: 160px; height: 160px; }
.sub-all { margin: 0 0 8px; font-size: 1rem; }
@media (min-width: 1900px) {
  .toolbar { grid-template-areas: "tabs chips search"; }
  .chips { justify-content: center; }
}

.chip.legend { border-style: dashed; }
.public-view .public-intro { grid-column: 1 / -1; }

/* ---- phones, second pass (2026-10-15): Up Next is the default view, so
   the first event has to be on the first screen ------------------------- */
#subscribeBtn .short { display: none; }
@media (max-width: 760px) {
  /* Title and button share one row instead of stacking. */
  .page-head { flex-wrap: nowrap; padding-bottom: 0; }
  .page-head h1 { font-size: 1.25rem; white-space: nowrap; }
  #subscribeBtn { flex: none; gap: 6px; }
  #subscribeBtn .long { display: none; }
  #subscribeBtn .short { display: inline; }
  /* Range notices: same content, a third less height. */
  .notices { padding: 6px 10px; gap: 2px 10px; }
  .notices h2 { font-size: .82rem; }
  .notices ul { gap: 1px 14px; }
  .notices li button { font-size: .85rem; line-height: 1.4; }
  /* Thumb-sized filter chips. */
  .chip { min-height: 36px; }
  .upnext { gap: 12px; }
  .day h2 { padding: 8px 12px; }
}
@media (max-width: 340px) {
  #subscribeBtn .short { display: none; }   /* icon only on the narrowest phones */
}
@media (max-width: 360px) {
  .tabs button { white-space: nowrap; padding: 8px 2px; font-size: .9rem; }
}

/* ---- this month's range hours, top of every view (2026-10-15) ---------- */
/* Navy with the banner's gold rule, so it reads as the club's own notice.
   One row on a wide screen -- title, the two groups of ranges, and the live
   headcount strip taking whatever width is left -- so it costs ~90px, not the
   ~270px the tall live card did. Below 1400px the strip is a second slim row;
   on a phone everything stacks and the strip waits behind a tap. */
.hours-band { margin: 12px 0 0; background: var(--brand); color: #d5ddef; border-left: 6px solid var(--gold);
  box-shadow: var(--shadow); padding: 12px 18px; display: grid; gap: 10px 32px; align-items: center;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); grid-template-areas: "title groups" "live live"; }
.hb-title { grid-area: title; }
.hours-band h2 { margin: 0; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; line-height: 1.3; }
.hours-band h2 span { color: var(--gold); display: block; font-size: 1.45rem; letter-spacing: .02em; }
.hb-note { margin: 4px 0 0; font-size: .72rem; line-height: 1.35; color: #aebbd6; }
.hb-groups { grid-area: groups; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.hb-group { min-width: 0; }
.hb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.hb-group h3 { margin: 0; color: #fff; font-size: .95rem; font-weight: 700; }
.hb-sched { margin: 2px 0 0; font-size: 1.15rem; line-height: 1.35; color: #fff; font-variant-numeric: tabular-nums; }
.hb-sched b { color: var(--gold); font-weight: 700; font-size: .85rem; margin-right: 3px; }
.hb-sched .sep { color: #7f8fb3; }
.hb-run { white-space: nowrap; }
.hb-status { white-space: nowrap; font-size: .75rem; font-weight: 700; line-height: 1.5;
  padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #d5ddef; }
.hb-group.open .hb-status { background: #15803d; color: #fff; }
.hb-count { font-size: .78rem; color: #aebbd6; white-space: nowrap; }
/* Live range activity (/stats/rangeLive.php), drawn here: count, verdict,
   quiet hours, today-vs-typical chart, and a way to the full figures. */
.hb-live { grid-area: live; min-width: 0; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .06); }
.lv-main { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; flex: none; }
.lv-main:hover .lv-u { text-decoration: underline; }
.lv-tag { display: flex; align-items: center; gap: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #aebbd6; }
.lv-tag i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: lvp 2.4s ease-in-out infinite; }
@keyframes lvp { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lv-tag i { animation: none; } }
.lv-n { font-size: 2rem; line-height: 1; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.lv-u { font-size: .78rem; line-height: 1.25; }
.lv-v { display: flex; flex-direction: column; line-height: 1.3; font-size: .75rem; color: #aebbd6; min-width: 0; }
.lv-verdict { font-size: .9rem; color: #fff; }
.lv-verdict.busier { color: #fbbf24; }
.lv-verdict.quieter { color: #4ade80; }
.lv-verdict.early { font-weight: 600; color: #aebbd6; }
.lv-quiet b { color: #fff; }
.lv-chart { flex: 1 1 140px; max-width: 230px; height: auto; min-width: 120px; overflow: visible; }
.lv-chart .b { fill: rgba(255, 255, 255, .2); }
.lv-chart .t { fill: #60a5fa; }
.lv-chart line { stroke: #fbbf24; stroke-width: 1; stroke-dasharray: 2 2; }
.lv-chart text { font-size: 9px; fill: #aebbd6; }
.lv-more { color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; text-decoration: none; margin-left: auto; }
.lv-more:hover { text-decoration: underline; }
/* Wide: one row. The two groups stack, so the live box gets the width it
   needs to sit on one line beside them rather than a narrow column. */
@media (min-width: 1400px) {
  .hours-band { grid-template-columns: minmax(9rem, 12rem) max-content minmax(0, 1fr); grid-template-areas: "title groups live"; }
  .hb-groups { flex-direction: column; gap: 6px; }
}
@media (max-width: 760px) {
  .hours-band { margin-top: 10px; padding: 9px 12px; gap: 6px; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "groups" "live"; }
  .hours-band h2 span { display: inline; font-size: inherit; }
  .hb-note { display: none; }   /* the range notices follow straight after */
  .hb-groups { gap: 6px; flex-direction: column; }
  .hb-group h3 { font-size: .88rem; }
  .hb-sched { font-size: 1rem; margin: 0; }
  .hb-status { font-size: .7rem; padding: 0 7px; }
  /* Phone: count and verdict side by side, then the quiet hours; the chart
     and the arrivals line are on the full figures a tap away. */
  .hb-live { padding: 6px 10px; gap: 2px 12px; }
  .lv-n { font-size: 1.5rem; }
  .lv-tag, .lv-c, .lv-chart { display: none; }
  .lv-main { order: 1; }
  .lv-v { order: 2; display: contents; }
  .lv-verdict { order: 2; align-self: center; }
  .lv-quiet { order: 3; flex-basis: 100%; }
  .lv-more { order: 4; margin-left: 0; }
}

/* ---- subscribe: which events (2026-10-15) ----------------------------- */
.subtypes { margin: 0 0 12px; }
.subtypes h3 { margin: 0 0 6px; font-size: 1rem; }
.subchips { display: flex; flex-wrap: wrap; gap: 6px; }
.subchips .chip[aria-pressed="false"] { text-decoration: none; }
.subchips .chip[data-t=""] .dot { display: none; }
.subchips .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.subchips .chip[aria-pressed="true"] .dot { background: #fff; box-shadow: none; }
.subtypes .fine { margin: 6px 0 0; }
.n-sub { all: unset; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--warn); white-space: nowrap; }
.n-sub:hover, .n-sub:focus-visible { text-decoration: underline; }
.side-notices .n-sub { display: block; margin-top: 8px; }

/* ---- sign-up (2026-10-15) ----------------------------------------------- */
.su-pill { display: inline-block; margin-left: .45em; padding: 0 .5em; border-radius: 999px; font-size: .68em; font-weight: 700;
  letter-spacing: .02em; vertical-align: .15em; background: var(--now-bg); color: var(--now); border: 1px solid var(--now); white-space: nowrap; }
.chip.signup .su-pill { margin: 0 2px 0 0; vertical-align: 0; }
.chip.signup[aria-pressed="false"] { text-decoration: none; color: var(--ink); background: var(--surface); }
.chip.signup[aria-pressed="true"] { background: var(--now); border-color: var(--now); color: #fff; }
.chip.signup[aria-pressed="true"] .su-pill { background: #fff; }

/* ---- where on the property (2026-10-15) ------------------------------- */
.ev-map { margin: 4px 0 14px; }
.ev-map-box { height: 220px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.ev-map-cap { display: flex; gap: 8px; align-items: center; margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }
.ev-map-cap svg { color: #ea580c; }
.leaflet-tooltip.ev-map-tip { font-weight: 700; font-size: .8rem; }
.places-dlg { width: min(980px, calc(100vw - 24px)); }
.places-map { height: 60vh; border: 1px solid var(--line); margin: 8px 0; }
.places-json { width: 100%; height: 160px; font: .75rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 760px) { .ev-map-box { height: 190px; } }
/* The page's icon rule (svg { width: 1.1em ... }) must not size Leaflet's
   drawing layer, or every marker disappears. */
.leaflet-container svg { width: auto; height: auto; flex: initial; }

/* ---- results (2026-10-15) ---------------------------------------------- */
.su-pill.res { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border-color: var(--accent); }
.day.recent h2 b { color: var(--accent); }

/* ---- weather (2026-10-15) ------------------------------------------------ */
.hb-wx { margin: 6px 0 0; font-size: .78rem; color: #d5ddef; }
.hb-wx b { color: #fff; }
.ev .wx { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 1px; }
@media (max-width: 760px) { .hb-wx { margin-top: 2px; } }

/* ---- My events (2026-10-15) --------------------------------------------- */
.star { color: #d97706; margin-right: .3em; }
.chip.mine[aria-pressed="false"] { text-decoration: none; color: var(--ink); background: var(--surface); }
.chip.mine[aria-pressed="true"] { background: #d97706; border-color: #d97706; color: #fff; }
.chip.mine[aria-pressed="true"] .star { color: #fff; }
.follow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.follow .fine { margin: 0; flex: 1 1 200px; }
.star-btn[aria-pressed="true"] { background: #fff7e6; border-color: #d97706; color: #b45309; }

/* ---- accessibility (2026-10-15) ----------------------------------------- */
/* Type tags in dark mode: the category colour mixed toward white, not toward
   the dark ink, or purple/red/blue tags fall to ~3.4:1 on the dark panels. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ev .tag, :root:not([data-theme="light"]) .ev-tags span { color: color-mix(in srgb, var(--c) 45%, #ffffff); }
}
:root[data-theme="dark"] .ev .tag, :root[data-theme="dark"] .ev-tags span { color: color-mix(in srgb, var(--c) 45%, #ffffff); }
/* Larger text: one button, remembered on this device; everything is in rem. */
html.big { font-size: clamp(18px, calc(11.5px + .5vw), 23px); }
.btn.textsize { padding: 6px 10px; min-width: 44px; font-weight: 700; }
.btn.textsize span[aria-hidden] { font-size: .8rem; }
.btn.textsize b { font-size: 1.15rem; margin-left: 1px; }
.btn.textsize[aria-pressed="true"] { background: var(--sky); border-color: var(--accent); color: var(--accent); }
#subscribeBtn .tiny { display: none; }
@media (max-width: 420px) {
  #subscribeBtn .short { display: none; }
  #subscribeBtn .tiny { display: inline; }
}
@media (max-width: 340px) { #subscribeBtn .tiny { display: none; } }
#main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } * { scroll-behavior: auto !important; } }
/* Dark mode: the menu's current item and hovered items carry white text (the
   light theme's dark-on-light-blue fell to 2.9:1 on the darker blue). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-nav a:hover, :root:not([data-theme="light"]) .site-nav a:focus-visible,
  :root:not([data-theme="light"]) .site-nav a[aria-current] { color: #ffffff; }
}
:root[data-theme="dark"] .site-nav a:hover, :root[data-theme="dark"] .site-nav a[aria-current] { color: #ffffff; }
@media (max-width: 760px) {
  html.big .tabs button { white-space: nowrap; padding: 8px 1px; font-size: .88rem; }
}
