:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #eaf2f7;
  --text: #13232f;
  --muted: #5a6b78;
  --line: #d8e3ea;
  --accent: #0a7ea4;
  --accent-ink: #ffffff;
  --slide: #d9480f;
  --slide-bg: #fff0e6;
  --river: #0b7285;
  --river-bg: #e3f6f8;
  --warn: #8a5a00;
  --warn-bg: #fff6db;
  --closed: #a61e4d;
  --closed-bg: #fdebf1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 35, 47, .06), 0 4px 16px rgba(19, 35, 47, .05);
  --lift: 0 2px 4px rgba(19, 35, 47, .06), 0 10px 24px rgba(19, 35, 47, .10);
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Summer: the hero sky, sun, the Seattle scene and the next-swim pool. */
  --sun: #ffb703;
  --coral: #ff6b5b;
  --sky-top: #74c4ee;
  --sky-mid: #b6e2f6;
  --sky-low: #ffe6c4;
  --hero-ink: #0b3954;
  --hero-muted: #1f4d66;
  --mtn: #c4d4e3;
  --snow: #ffffff;
  --hills-far: #9fbfce;
  --hills: #6f9cab;
  --city: #34576b;
  --win: transparent;
  --gull: .7;
  --stars: 0;
  --wave1: #5ccae2;
  --wave2: #1fa7ca;
  --pool-a: #0a7ea4;
  --pool-b: #085a80;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1820;
    --surface: #14232e;
    --surface-2: #1b2f3c;
    --text: #e6eef3;
    --muted: #98aab6;
    --line: #26404f;
    --accent: #4cc3e8;
    --accent-ink: #062330;
    --slide: #ff9a5c;
    --slide-bg: #3a2216;
    --river: #63d3e0;
    --river-bg: #123640;
    --warn: #f2c94c;
    --warn-bg: #3a3014;
    --closed: #ff8fb1;
    --closed-bg: #3d1825;
    --shadow: none;
    --lift: 0 0 0 1px var(--accent);
    --sun: #f6efd2;
    --sky-top: #081229;
    --sky-mid: #1a2752;
    --sky-low: #5a3f6e;
    --hero-ink: #f1f5f9;
    --hero-muted: #b9c8d8;
    --mtn: #3b4a6b;
    --snow: #c7d1e6;
    --hills-far: #27385a;
    --hills: #1b2b45;
    --city: #0e1a2b;
    --win: #ffd27a;
    --gull: 0;
    --stars: 1;
    --wave1: #17526d;
    --wave2: #113f57;
    --pool-a: #0e5c7a;
    --pool-b: #0a3a56;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1820;
  --surface: #14232e;
  --surface-2: #1b2f3c;
  --text: #e6eef3;
  --muted: #98aab6;
  --line: #26404f;
  --accent: #4cc3e8;
  --accent-ink: #062330;
  --slide: #ff9a5c;
  --slide-bg: #3a2216;
  --river: #63d3e0;
  --river-bg: #123640;
  --warn: #f2c94c;
  --warn-bg: #3a3014;
  --closed: #ff8fb1;
  --closed-bg: #3d1825;
    --shadow: none;
  --lift: 0 0 0 1px var(--accent);
  --sun: #f6efd2;
  --sky-top: #081229;
  --sky-mid: #1a2752;
  --sky-low: #5a3f6e;
  --hero-ink: #f1f5f9;
  --hero-muted: #b9c8d8;
  --mtn: #3b4a6b;
  --snow: #c7d1e6;
  --hills-far: #27385a;
  --hills: #1b2b45;
  --city: #0e1a2b;
  --win: #ffd27a;
  --gull: 0;
  --stars: 1;
  --wave1: #17526d;
  --wave2: #113f57;
  --pool-a: #0e5c7a;
  --pool-b: #0a3a56;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px 16px 64px; }
header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); padding: 8px 0;
  transition: transform .18s ease;
}
header.top.hide { transform: translateY(-110%); }
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
header.top h1 { margin: 0; font: 800 1.45rem/1.1 var(--font-display); letter-spacing: -.02em; }
header.top h1 a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo { width: 30px; height: 30px; flex: none; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo rect { fill: var(--accent); }
.logo path { fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; }
.logo circle { fill: var(--sun); }
header.top h1 a:hover .logo { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn svg path { stroke-linejoin: round; }
.icon-btn[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-btn.set::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-radius: 50%; background: var(--accent); position: absolute;
  transform: translate(11px, -11px);
}
.icon-btn { position: relative; }
.icon-btn.set[aria-expanded="true"]::after { background: var(--accent-ink); }
.settings { position: absolute; top: calc(100% + 4px); right: 0; width: min(92vw, 340px); z-index: 30; }
.settings[hidden] { display: none; }
.settings-card { display: grid; gap: 8px; padding: 14px; }
.settings-card .locrow { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-card p { margin: 0; }
.updated { color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { header.top, h2.day { transition: none; } }
/* The one loud thing on the site: a summer sky over Rainier, the Needle and Elliott Bay. The sun
   (a moon in dark mode) and stars are painted in CSS; the scene below is the SVG in index.html, and
   its last wave is the page color so the banner pours into the page. */
.hero-banner {
  position: relative; overflow: hidden; margin: 8px 0 4px; border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 86% 24%, var(--sun) 0 30px, color-mix(in srgb, var(--sun) 40%, transparent) 31px, transparent 96px),
    linear-gradient(var(--sky-top), var(--sky-mid) 58%, var(--sky-low));
}
.hero-banner::before {
  content: ""; position: absolute; inset: 0; opacity: var(--stars); pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 47% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 14%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 94% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 5% 50%, #fff 50%, transparent 51%);
}
.hero-copy { position: relative; z-index: 1; max-width: 36em; padding: 30px 30px 0; }
.hero-title {
  margin: 0; color: var(--hero-ink); font: 800 clamp(2.1rem, 6.4vw, 3.2rem)/1 var(--font-display);
  letter-spacing: -.03em; font-variation-settings: "opsz" 96; text-wrap: balance;
}
.lede { color: var(--muted); margin: 12px 0 16px; }
.hero-banner .lede { color: var(--hero-muted); margin: 12px 0 0; max-width: 31em; }
/* The -1px tucks the scene's anti-aliased bottom edge under the banner's clip, so no sky shows through. */
.scene { position: relative; display: block; width: 100%; height: 180px; margin: -22px 0 -1px; }
.scene .rainier { fill: var(--mtn); }
.scene .snow { fill: var(--snow); }
.scene .hills { fill: var(--hills); }
.scene .hills.far { fill: var(--hills-far); }
.scene .gull { fill: none; stroke: var(--city); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: var(--gull); }
.scene .city { fill: var(--city); }
.scene .wheel { fill: none; stroke: var(--city); stroke-width: 3; }
.scene .wheel path { stroke-width: 1.6; }
.scene .windows { fill: var(--win); }
.scene .w1 { fill: var(--wave1); animation: drift 18s linear infinite; }
.scene .w2 { fill: var(--wave2); animation: drift 12s linear infinite reverse; }
.scene .w3 { fill: var(--bg); animation: drift 26s linear infinite; }
.scene .ball { transform-box: fill-box; transform-origin: center; animation: bob 3.4s ease-in-out infinite; }
.scene .ball circle { fill: #fff; }
.scene .ball .b1 { fill: var(--coral); }
.scene .ball .b2 { fill: var(--sun); }
.scene .ball .b3 { fill: #1fa7ca; }
@keyframes drift { to { transform: translateX(-1200px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(4px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) {
  .scene .wave, .scene .ball { animation: none; }
}

.controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 12px 0 20px; } /* minmax keeps a wide child from stretching the grid */
/* Date range left, search and neighborhood right; they stack when the screen is too narrow for all three. */
/* min-width: 0 lets the children shrink; without it the pill row sets the floor and the page overflows. */
.when-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
/* Grow 0: the pill hugs its buttons rather than stretching into empty track past the last one. */
.when-where .seg { flex: 0 1 auto; min-width: 0; }
.when-where #area { margin-left: auto; }
/* One label column, one control column, so every filter row starts at the same edge. */
.filters {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start;
  gap: 10px 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.filter-label {
  margin: 0; font-size: .75rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { white-space: nowrap; }
.seg button, .chip-toggle {
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: .9rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.seg button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.chip-toggle { background: var(--surface-2); white-space: nowrap; border: 1px solid transparent; padding: 4px 12px; }
.chip-toggle:hover { border-color: var(--line); }
.chip-toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.interests { display: flex; flex-wrap: wrap; gap: 6px; }
/* Each label lines up with the first line of its row, which is 32px tall in every row. */
.filters > .filter-label { line-height: 32px; }
.radius { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 32px; }
.radius input { flex: 1 1 140px; max-width: 220px; min-width: 0; margin: 0; accent-color: var(--accent); }
.radius output { color: var(--text); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.radius [hidden] { display: none; }
.types-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
/* A checkbox, not a pill: this one adds sessions rather than filtering by feature. */
.with-help { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: .9rem; }
.with-help input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.with-help label { cursor: pointer; }
.help {
  position: relative; display: inline-flex; width: 20px; height: 20px; padding: 0; margin-left: -2px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.help svg { width: 18px; height: 18px; margin: auto; }
/* The glyph is small by design, so the tap target is padded out to the 24px minimum. */
.help::after { content: ""; position: absolute; inset: -4px; }
.help:hover, .help[aria-expanded="true"] { color: var(--accent); }
.link-btn {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .9rem;
  font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.link-btn:hover { text-decoration-color: currentColor; }
#clear-filters { margin-left: auto; }
.link-btn[hidden] { display: none; }
/* Floats over the list below rather than pushing it down. Opens on hover, focus or tap; `--arrow`
   is set from script so the pointer sits under the icon whatever the label's width. */
.tip {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 15;
  width: max-content; max-width: min(300px, calc(100vw - 48px)); padding: 10px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 4px rgba(19, 35, 47, .08), 0 8px 24px rgba(19, 35, 47, .12);
  font-size: .85rem; line-height: 1.45; cursor: auto;
}
.tip::before {
  content: ""; position: absolute; top: -6px; left: calc(var(--arrow, 24px) - 5px);
  width: 10px; height: 10px; background: inherit; border: inherit; border-width: 1px 0 0 1px;
  transform: rotate(45deg);
}
.tip[hidden] { display: none; }
.help:is(:hover, :focus-visible) + .tip { display: block; }
.interests:empty { display: none; }
:is(.seg button, .chip-toggle, .icon-btn, .help, .link-btn, .btn):focus-visible,
:is(select, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
select, input[type="search"] {
  font: inherit; font-size: .9rem; padding: 6px 10px; border-radius: 999px;
  border: 0; background: var(--surface-2); color: var(--text);
}
input[type="search"] { flex: 1 1 10em; min-width: 0; max-width: 16em; }
input[type="search"]::placeholder { color: var(--muted); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid var(--line); }
/* The pool: deep water with light playing on it. White text holds 4.5:1 on both stops. */
.next {
  margin-bottom: 20px; border: 0; padding: 18px 20px; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 70%),
    radial-gradient(40% 60% at 8% 110%, rgba(255, 255, 255, .10), transparent 70%),
    linear-gradient(135deg, var(--pool-a), var(--pool-b));
}
.next::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; opacity: .18; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M0 7q10-7 20 0t20 0V14H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M0 7q10-7 20 0t20 0V14H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 14px;
  animation: lap 6s linear infinite;
}
@keyframes lap { to { -webkit-mask-position: 40px 0; mask-position: 40px 0; } }
.next .label {
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.next .big { margin: 8px 0 2px; font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -.015em; }
.next .title { color: rgba(255, 255, 255, .9); }
.next .badge { background: #fff; color: var(--pool-b); }
.next .badges { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .next::before { animation: none; } }

h2 { font: 700 1.15rem/1.3 var(--font-display); letter-spacing: -.01em; margin: 28px 0 10px; }
h2.day { position: sticky; top: 52px; background: var(--bg); padding: 8px 0; margin: 20px 0 6px; z-index: 1; display: flex; align-items: center; gap: 10px; transition: top .18s ease; }
/* When the top bar tucks away, the day heading rides up with it so no cards show above it. */
body:has(header.top.hide) h2.day { top: 0; }
/* A little swell beside each day; the masks are data: images, which the CSP's img-src allows. */
h2.day::before {
  content: ""; width: 26px; height: 9px; flex: none; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 9'%3E%3Cpath d='M1.5 6q2.75-5 5.5 0t5.5 0 5.5 0 5.5 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 9'%3E%3Cpath d='M1.5 6q2.75-5 5.5 0t5.5 0 5.5 0 5.5 0' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.sessions { display: grid; gap: 8px; }
.session { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.session .time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.session .time small { display: block; font-weight: 400; color: var(--muted); }
.session .pool { font-weight: 600; }
.session .pool a { color: inherit; text-decoration: none; }
/* Whole tile is the link: the pool-name link's ::after covers the card. */
.session, .next { position: relative; }
.session .pool a::after, .next a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.session, .poolcard, .next { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.session:hover, .poolcard:hover, .next:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.session:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .session:hover, .poolcard:hover, .next:hover { transform: none; } }
.session:hover .pool a { text-decoration: underline; }
.session .title { color: var(--muted); font-size: .92rem; }
.session.now { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.slide { background: var(--slide-bg); color: var(--slide); }
.badge.river { background: var(--river-bg); color: var(--river); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.closed { background: var(--closed-bg); color: var(--closed); }
.badge.now { background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.badge.now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .badge.now::before { animation: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.poolcard { display: block; color: inherit; text-decoration: none; }
.poolcard:hover { border-color: var(--accent); }
.poolcard .name { font: 700 1.05rem/1.3 var(--font-display); }
.poolcard .where { color: var(--muted); font-size: .85rem; }
.poolcard p { margin: 6px 0 0; font-size: .9rem; }
.fun { display: inline-flex; gap: 2px; color: var(--muted); }
.fun .star { width: 15px; height: 15px; }
.fun .star.on { color: var(--slide); fill: currentColor; }
.empty { color: var(--muted); padding: 12px 0; }

/* pool detail */
.crumb { font-size: .9rem; }
.hero h1 { margin: 6px 0 2px; font: 800 clamp(1.8rem, 5vw, 2.4rem)/1.05 var(--font-display); letter-spacing: -.025em; }
.hero .where { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.map { margin-top: 10px; }
#poolmap { height: 220px; border: 1px solid var(--line); border-radius: 10px; z-index: 0; cursor: default; }
/* Before the visitor opts in there are no tiles, so a full-height box would be a blank gap. */
#poolmap:has(#map-load) { height: auto; padding: 6px; border-style: dashed; }
.map .sources { margin-top: 4px; }
.section { margin-top: 14px; }
.section h2 { margin: 0 0 8px; }
ul.tight, ol.tight { margin: 0; padding-left: 20px; }
ul.tight li, ol.tight li { margin: 3px 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.callout { background: var(--warn-bg); color: var(--text); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: .92rem; }
.callout.closed { background: var(--closed-bg); }
.sources { font-size: .85rem; color: var(--muted); }
.sources li { word-break: break-word; }
table.compact th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); white-space: nowrap; width: 1%; }
table.compact tr:not(.daystart) th, table.compact tr:not(.daystart) td { border-top: 0; }
table.compact td, table.compact th { border-bottom: 0; padding: 4px 8px 4px 0; }
table.compact tr.daystart > * { border-top: 1px solid var(--line); padding-top: 8px; }
table.compact .badge { margin-left: 4px; }
ul.passes { list-style: none; margin: 0; padding: 0; }
ul.passes li { padding: 8px 0; border-top: 1px solid var(--line); }
ul.passes li:first-child { border-top: 0; padding-top: 0; }
ul.passes li > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
ul.passes .num { font-variant-numeric: tabular-nums; color: var(--muted); }
ul.passes p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
footer { margin-top: 40px; color: var(--muted); font-size: .8rem; }
footer::before {
  content: ""; display: block; height: 10px; margin-bottom: 16px; background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5q10-6 20 0t20 0' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 10px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5q10-6 20 0t20 0' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 10px;
}
.disclaimer { margin: 12px 0 0; max-width: 46em; }
.signoff { margin: 12px 0 0; font: 600 .9rem var(--font-display); color: var(--text); }

/* Confirmations, stacked like cards: the newest in front, older ones tucked behind it. */
.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 50; width: min(360px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: 0 4px 12px rgba(19, 35, 47, .10), 0 12px 32px rgba(19, 35, 47, .14);
  font-size: .9rem; font-weight: 600;
  transform: translateY(calc(var(--i, 0) * -10px)) scale(calc(1 - var(--i, 0) * .05));
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.15), opacity .35s ease;
}
.toast::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.toast:not(:last-child) { color: transparent; }
.toast:not(:last-child)::before { visibility: hidden; }
.toast.enter, .toast.leave { opacity: 0; transform: translateY(130%) scale(.96); }
.toast.buried { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .2s ease; } }

/* Phones fold the filter panel behind a button so the sessions start on the first screen. */
.filters-toggle { display: none; }
@media (max-width: 520px) {
  .updated { display: none; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start;
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  }
  .filters-toggle svg { width: 16px; height: 16px; }
  .filters-toggle[aria-expanded="true"] { border-color: var(--accent); }
  .filters:not(.open) { display: none; }
  /* The range row gets the full width, so all five choices fit without scrolling. */
  .when-where .seg { flex-basis: 100%; }
  .seg button { flex: 1 1 auto; padding: 6px 4px; font-size: .85rem; }
  .when-where input[type="search"] { max-width: none; }
  /* Labels sit above their controls; side by side, the label column starves the chips. */
  .filters { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px; }
  .filters > .filter-label { line-height: 1.5; }
  .filters > .filter-label:not(:first-child) { margin-top: 8px; }
  .chip-toggle { font-size: .85rem; padding: 4px 10px; }
  .session { grid-template-columns: 76px 1fr; gap: 10px; }
  header.top h1 { font-size: 1.1rem; white-space: nowrap; }
  .logo { width: 26px; height: 26px; }
  .hero-banner { border-radius: 18px 18px 0 0; background:
    radial-gradient(circle at 90% 12%, var(--sun) 0 20px, color-mix(in srgb, var(--sun) 40%, transparent) 21px, transparent 64px),
    linear-gradient(var(--sky-top), var(--sky-mid) 58%, var(--sky-low)); }
  .hero-copy { padding: 22px 18px 0; }
  .hero-banner .lede { font-size: .92rem; }
  .scene { height: 130px; margin-top: -10px; }
}
