/* The two typefaces, served from here rather than Google Fonts so the page draws without waiting on another
 site. Both are under the SIL Open Font License (see /fonts/OFL-*.txt). Latin covers English and the ʻokina; the
 latin-ext files, with the Hawaiian vowels with macrons, load only on a page that uses one. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/dm-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #f3f8f7; --surface: #ffffff; --ink: #0d2b36; --muted: #557079; --line: #dbe8e8;
  --ocean: #0a3d4f; --sea: #2a9d8f; --foam: #e6f4f1; --sun: #f6a53b;
  --sea-text: #1b7369; --focus: #a85600; /* the teal and an outline colour dark enough to read on every light background */
  --go: #1a7a50; --maybe: #c98a0b; --skip: #a3463e;
  --later: #24937a; --tmrw: #4d7ea8;
  --sky1: #ffcf9e; --sky2: #ff9f80; --sky3: #6fb7c9;
  --tide: #6fb7c9; --tide-text: #2f7d91; /* the tide line on charts, and its label dark enough to read */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #06171d; --surface: #0c232b; --ink: #e4f0f1; --muted: #9ab4bb; --line: #1b3a44;
    --ocean: #0b3441; --sea: #4cc3b3; --foam: #12323b; --sun: #f7b24f;
    --sea-text: #4cc3b3; --focus: #f7b24f;
    --go: #5ccb93; --maybe: #e8b04a; --skip: #ec8a80;
    --later: #56c7a8; --tmrw: #86aedb;
    --sky1: #4a3b5c; --sky2: #8a4f5e; --sky3: #123f52;
    --tide: #5aa9bd; --tide-text: #8fd0df;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); overflow-x: hidden; }
a { color: var(--sea-text); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bar :focus-visible, .hero :focus-visible { outline-color: var(--sun); }

/* Top bar */
.bar { background: var(--ocean); color: #fff; padding: 12px 16px; position: relative; z-index: 1100; }  /* above the map's own controls */
.bar-inner { max-width: 960px; margin: 0 auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.brand { font: 800 18px var(--display); color: #fff; text-decoration: none; margin-right: auto; text-transform: uppercase; letter-spacing: .06em; }
.bar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.bar nav a { color: #d4efec; text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: #fff; }
.bar.on-sky { background: transparent; position: absolute; inset: 0 0 auto 0; z-index: 1100; }

/* Phones: the links fold behind a menu button and drop down as a full-width list when it's tapped. */
.menu-toggle { display: none; }
@media (max-width: 700px) {
  .menu-toggle {
    display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; margin: -6px -8px -6px 0; padding: 0 10px;
    background: none; border: 0; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bar nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 16px 12px;
    background: var(--ocean); box-shadow: 0 12px 24px rgba(0,0,0,.25);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .bar nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .bar nav a { display: block; padding: 13px 4px; font-size: 18px; border-top: 1px solid rgba(255,255,255,.12); }
  .bar nav a:first-child { border-top: 0; }
  .bar nav a[aria-current="page"] { color: #fff; font-weight: 700; }
  .bar.on-sky nav { background: color-mix(in srgb, var(--ocean) 94%, transparent); backdrop-filter: blur(8px); }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .menu-toggle span, .bar nav, .bar nav.open { transition: none; }
}

/* Hero: the sky over moving water (its colours are further down, under "The sky behind the headers") */
.hero { position: relative; color: #fff; padding: 64px 16px 0; overflow: hidden; }
.hero-inner { max-width: 960px; margin: 0 auto; display: grid; gap: 10px; padding-bottom: 140px; position: relative; z-index: 1; }
.date { font-size: 14px; opacity: .9; }
.eyebrow { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-top: 6px; }
.hero h1 { font-size: clamp(34px, 8vw, 64px); font-weight: 800; text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.hero p { margin: 0; font-size: clamp(17px, 2.6vw, 20px); max-width: 38ch; text-shadow: 0 1px 10px rgba(0,0,0,.2); }
canvas.sea { position: absolute; left: 0; bottom: 0; width: 100%; height: 160px; display: block; }
@media (prefers-reduced-motion: reduce) { canvas.sea { display: none; } .hero-inner { padding-bottom: 40px; } }

#main:focus { outline: none; }
.page { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 28px; }
.page > *, .days > * { min-width: 0; }
.flash { background: color-mix(in srgb, var(--go) 14%, var(--surface)); border-radius: 12px; padding: 10px 14px; }
.notice { background: var(--foam); border-radius: 12px; padding: 12px 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2, .page-title { font-size: 26px; color: var(--ocean); }
@media (prefers-color-scheme: dark) { .section-head h2, .page-title { color: var(--sea-text); } }
.hint { font-size: 14px; color: var(--muted); }

/* Spot cards: a coloured rail for the call, a big size, the day as a chart, then swell, wind and tide */
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.spot { --rail: var(--skip); background: var(--surface); border-radius: 22px; padding: 20px 20px 16px; display: grid; gap: 14px; border: 1px solid var(--line); position: relative; overflow: hidden; align-content: start; box-shadow: 0 1px 2px rgba(13,43,54,.04), 0 8px 24px -12px rgba(13,43,54,.18); transition: transform .15s ease, box-shadow .15s ease; }
.spot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--rail); }
.spot.v-go { --rail: var(--go); }
.spot.v-maybe { --rail: var(--maybe); }
.spot:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13,43,54,.05), 0 14px 32px -14px rgba(13,43,54,.28); }
.spot.best { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun), 0 14px 32px -14px rgba(246,165,59,.55); }
.spot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.best-tag { background: var(--sun); color: #3b2400; font: 700 12px var(--body); padding: 5px 11px; border-radius: 99px; letter-spacing: .03em; white-space: nowrap; }
.spot h3 { font-size: 24px; }
.spot h3 a { color: inherit; text-decoration: none; }
.spot h3 a:hover { color: var(--sea-text); }
.where { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-top: 3px; }
.size { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.size b { font: 800 60px/0.9 var(--display); letter-spacing: -.02em; color: var(--ocean); }
.size .unit { font: 700 20px var(--display); color: var(--muted); margin-right: 8px; }
@media (prefers-color-scheme: dark) { .size b { color: var(--ink); } }
.verdict { font: 800 12px var(--body); padding: 6px 12px; border-radius: 99px; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; align-self: center; }
.verdict.v-go { background: var(--go); color: #fff; }
.verdict.v-maybe { background: var(--maybe); color: #2b1a00; }
@media (prefers-color-scheme: dark) { .verdict.v-go { color: #06171d; } }
.verdict.v-skip { background: color-mix(in srgb, var(--skip) 16%, transparent); color: color-mix(in srgb, var(--skip) 85%, var(--ink)); }
.say { margin: 0; }
.spot .say:not(.more) { font-size: 17px; }

/* Mini day chart */
.mini { width: 100%; height: auto; display: block; overflow: visible; }
.mini .bar { fill: color-mix(in srgb, var(--skip) 40%, var(--foam)); }
.mini .bar.maybe { fill: var(--maybe); }
.mini .bar.go { fill: var(--go); }
.mini .bar.now { stroke: var(--ink); stroke-width: 1.5; }
.mini-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-grid.faint { stroke-dasharray: 3 4; }
.mini-tide { fill: none; stroke: var(--tide); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.mini-label { font: 600 10px var(--body); fill: var(--muted); }
.mini-tide-label { font: 700 9px var(--body); fill: var(--tide-text); letter-spacing: .04em; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; opacity: 0; pointer-events: none; } /* only seen while the line draws */

/* Swell, wind, tide */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stats > div { background: var(--foam); border-radius: 14px; padding: 10px 10px 9px; min-width: 0; }
.stats dt { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats dd { margin: 4px 0 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.stats dd b { font: 800 18px var(--display); color: var(--ink); }
.arrow { width: 18px; height: 18px; flex: none; }
.arrow path:first-child { fill: var(--sea); }
.arrow path:last-child { stroke: var(--sea); stroke-width: 2.5; stroke-linecap: round; }
.tide-ico { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; flex: none; }
.tide-ico.up { border-bottom: 9px solid var(--sky3); }
.tide-ico.down { border-top: 9px solid var(--sky3); }

.facts { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }
.chip.strong { background: color-mix(in srgb, var(--go) 14%, var(--surface)); border-color: transparent; color: var(--go); font-weight: 700; }
details { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
summary { cursor: pointer; color: var(--sea-text); font-weight: 500; }
details p { margin: 8px 0 0; }

/* Hero stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.hero-stats > div { background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 8px 14px; }
.hero-stats dt { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.hero-stats dd { margin: 2px 0 0; font: 800 18px var(--display); display: flex; align-items: center; gap: 4px; }
.hero-stats .arrow path:first-child { fill: #fff; }
.hero-stats .arrow path:last-child { stroke: #fff; }

/* Week */
/* Sideways only: day cards still waiting to slide in sit lower, and a hovered card lifts, so without
   overflow-y: hidden the strip grows an up-and-down scroll bar. The top padding keeps the lift in view. */
.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 8px; overflow-x: auto; overflow-y: hidden; padding-top: 4px; padding-bottom: 6px; scroll-snap-type: x proximity; }
.d { display: grid; gap: 4px; justify-items: center; text-align: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px 10px; transition: transform .15s ease; }
.d:hover { transform: translateY(-2px); }
/* Each day's size gets a short line in its fit color: under, in, or over the person's range. */
.d.fit-small { --fit: var(--maybe); }
.d.fit-fit { --fit: var(--go); }
.d.fit-big { --fit: var(--skip); }
.d .d-size { position: relative; padding-bottom: 10px; margin-bottom: 2px; }
.d .d-size::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 30px; height: 4px; margin-left: -15px; border-radius: 99px; background: var(--fit, var(--sea)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fit, var(--sea)) 16%, transparent); }
.legend.fit-key i { width: 18px; height: 4px; border-radius: 99px; }
.fit-key i.fit-small { background: var(--maybe); }
.fit-key i.fit-fit { background: var(--go); }
.fit-key i.fit-big { background: var(--skip); }
.d-name { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.d-wave { width: 100%; max-width: 64px; height: 40px; }
.d-wave path { fill: var(--sea); }
.d b { font: 800 22px var(--display); }
.d b small { font-size: 12px; color: var(--muted); }
.d-spot { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
@media (max-width: 700px) {
  .week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .d { flex: 0 0 92px; scroll-snap-align: start; }
}

/* Hour by hour on the spot page */
.hours-scroll { --col: 64px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px 8px 0; }
.hours { display: grid; grid-template-columns: repeat(var(--cols), var(--col)); }
.hour { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; font-size: 12px; padding: 4px 0 6px; border-radius: 12px; }
.hour.now { background: var(--foam); }
.h-time { font-weight: 700; color: var(--muted); }
.hour.now .h-time { color: var(--sea-text); }
.h-bar { width: 28px; height: 90px; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--line) 45%, transparent); border-radius: 8px; overflow: hidden; }
.h-bar i { display: block; width: 100%; border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--skip) 40%, var(--foam)); }
.hour.go .h-bar i { background: var(--go); }
.hour.maybe .h-bar i { background: var(--maybe); }
.hour b { font: 800 16px var(--display); }
.h-wind { display: flex; align-items: center; gap: 2px; font-weight: 700; }
.h-wind .arrow { width: 15px; height: 15px; }
.h-q { font-size: 11px; color: var(--muted); line-height: 1.1; min-height: 2.2em; padding: 0 2px; }
.q-offshore, .q-glassy { color: var(--go); font-weight: 700; }
.q-choppy, .q-blownout { color: var(--skip); }
.hour .tide { font-size: 11px; color: var(--muted); }
.hour .tide.wrong { color: var(--skip); font-weight: 700; }
.tide-curve { display: block; height: 48px; margin-top: 2px; }
.tide-curve polyline { fill: none; stroke: var(--tide); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.days { display: grid; gap: 28px; }
.days .say { max-width: 70ch; }

/* Spot page header */
.hero.spot-hero { padding-top: 88px; }
.spot-hero .hero-inner { padding-bottom: 36px; }
.hero-size { font: 800 30px var(--display); }
.spot-hero p { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.cta { display: flex; gap: 14px; align-items: center; background: var(--ocean); color: #fff; border-radius: 18px; padding: 16px 18px; flex-wrap: wrap; }
.cta p { margin: 0; flex: 1 1 220px; }
.btn { display: inline-block; font: 700 15px var(--body); background: var(--sun); color: #3b2400; border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; text-decoration: none; }
.btn.quiet { background: var(--foam); color: var(--ink); }

/* Check-in: big thumb-sized choices */
.checkin { display: grid; gap: 22px; max-width: 560px; }
.checkin fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.checkin legend { font: 700 18px var(--display); margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label { min-width: 64px; text-align: center; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 700; cursor: pointer; user-select: none; }
.choices input:checked + label { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 14%, var(--surface)); }
.choices input:focus-visible + label { outline: 2px solid var(--sun); outline-offset: 2px; }
.checkin select, .checkin textarea, .checkin input[type=number] { font: inherit; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.checkin .form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.checkin input[type=datetime-local] { font: inherit; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; max-width: 280px; }
.field-error, .validation-summary-errors { color: var(--skip); font-size: 14px; }

/* Numbers and data health pages */
.intro { display: grid; gap: 8px; max-width: 75ch; }
.intro h1 { font-size: 30px; color: var(--ocean); }
@media (prefers-color-scheme: dark) { .intro h1 { color: var(--sea-text); } }
.num-spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.num-spots .spot h3.label, .num-spots h3.label { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.buoy { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 4px; }
.buoy.updated { animation: flash 1.5s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--sun) 25%, transparent); } to { background: transparent; } }
.readings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.readings dt { font-size: 12px; color: var(--muted); }
.readings dd { margin: 0; font: 14px var(--mono); }
.models { width: 100%; border-collapse: collapse; font-size: 14px; }
.models th, .models td { text-align: left; padding: 4px 8px 4px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row p { margin: 4px 0 0; }
.tides { list-style: none; padding: 0; margin: 4px 0 0; font-size: 14px; display: grid; gap: 2px; }
.counts { display: flex; flex-wrap: wrap; gap: 24px; margin: 8px 0 0; }
.counts dt { font-size: 12px; color: var(--muted); }
.counts dd { margin: 0; font: 600 22px var(--mono); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.health { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.health th, .health td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.health th { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pill { font: 600 12px var(--body); padding: 2px 8px; border-radius: 99px; }
.ok .pill { background: color-mix(in srgb, var(--go) 18%, transparent); color: var(--go); }
.fail .pill { background: color-mix(in srgb, var(--skip) 18%, transparent); color: var(--skip); }
.err { color: var(--skip); margin-top: 4px; }
.foot { max-width: 960px; margin: 0 auto; padding: 0 16px 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .readings, .row { grid-template-columns: 1fr; } .size b { font-size: 38px; } .week { gap: 3px; padding: 12px 6px; } }

/* Accuracy */
.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.score-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 4px; }
.score-tile.ours { border: 2px solid var(--sea); }
.score-tile span { font-weight: 700; }
.score-tile b { font: 800 40px/1 var(--display); }
.score-tile small { color: var(--muted); }

/* Accounts and alerts */
.field { display: grid; gap: 6px; }
.field > span:first-child { font-weight: 700; }
.checkin input[type=text], .checkin input[type=email], .checkin input[type=password] { font: inherit; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.toggle { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea); flex: none; }
.size-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { margin: 0; }
.cta.alt { background: var(--sea); }
/* Why make an account: on the Accuracy and sign-up pages */
.join-pitch { background: var(--ocean); color: #fff; border-radius: 22px; padding: 22px 20px; display: grid; gap: 18px; }
.join-head { display: grid; gap: 6px; max-width: 62ch; }
.join-head h2 { font: 800 26px/1.15 var(--display); color: #fff; margin: 0; }
.join-head p { margin: 0; color: #d6ecea; }
.join-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.join-points li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px; }
.join-points svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.join-points div { display: grid; gap: 4px; }
.join-points b { font-size: 16px; }
.join-points span { font-size: 15px; color: #d6ecea; }
.join-pitch a:not(.btn) { color: #fff; }
.join-go { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.join-go .btn.quiet { background: rgba(255,255,255,.12); color: #fff; }
.alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alert-list li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; white-space: pre-line; }
.alert-list li.k-now { border-left-color: var(--go); }
.alert-list li.k-test { border-left-color: var(--line); }
.alert-list a { color: var(--ink); text-decoration: none; }

/* Region picker */
.regions { display: flex; gap: 8px; flex-wrap: wrap; }
.regions a { padding: 8px 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.regions a.on { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 14%, var(--surface)); }

/* Regions and spots admin */
.admin-region { display: grid; gap: 10px; }
.admin-region.off h2 { color: var(--muted); }
.admin-spots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.admin-spots li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; }
.admin-spots li.off { background: transparent; border-style: dashed; }
.admin-spots li.off a { color: var(--muted); }
.admin-spots a { color: var(--ink); }

/* Which swells reach a spot */
.reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 8px 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.reach h2 { font-size: 20px; margin: 0 0 6px; }
.reach .legend { grid-column: 1 / -1; margin-top: 0; }
.rose { width: 100%; max-width: 300px; justify-self: center; overflow: visible; }
.rose-bg { fill: var(--bg); }
.rose-open { fill: color-mix(in srgb, var(--sea) 75%, transparent); }
.rose-island { fill: color-mix(in srgb, var(--maybe) 45%, transparent); }
.rose-land { fill: var(--line); }
.rose-isle { fill: color-mix(in srgb, var(--maybe) 80%, var(--ink)); stroke: var(--surface); stroke-width: 1; stroke-linejoin: round; }
.rose-label { font: 600 10px var(--body); fill: var(--ink); stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.rose-cardinal { font: 700 11px var(--body); fill: var(--muted); }
.rose-swell { stroke: var(--ocean); stroke-width: 3; }
.rose-arrow { fill: var(--ocean); }
.rose-spot { fill: var(--sun); stroke: var(--surface); stroke-width: 2; }
@media (prefers-color-scheme: dark) { .rose-swell { stroke: var(--ink); } .rose-arrow { fill: var(--ink); } }
@media (max-width: 620px) { .reach { grid-template-columns: 1fr; } }

/* Live cams */
.cams { display: grid; gap: 12px; }
.cam-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cam { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; }
.cam figcaption { padding: 10px 14px; font-size: 14px; }
.cam-play { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; cursor: pointer; background: linear-gradient(160deg, var(--sky3), var(--ocean)); display: block; width: 100%; }
.cam-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-play-icon { position: absolute; inset: 50% auto auto 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(6, 23, 29, .65); }
.cam-play-icon::after { content: ""; position: absolute; left: 23px; top: 17px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.cam iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.cam-link { padding: 16px; gap: 4px; text-decoration: none; color: var(--ink); align-content: center; min-height: 84px; }
.cam-link:hover { border-color: var(--sea); }
.cam-live { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff; background: #c2381f; border-radius: 6px; padding: 2px 7px; }

/* Tide and wave rhythm */
.say.more { font-size: 15px; color: var(--muted); }
.say.more b { color: var(--ink); }
.hour .tide { font-size: 11px; color: var(--muted); }
.hour .tide.wrong { color: var(--skip); font-weight: 700; }
.spot-hero .verdict.v-skip { background: rgba(255,255,255,.92); }

/* Where you are: town, location, map */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.where-bar { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 8px 24px -16px rgba(13,43,54,.25); }
.where-now { font-size: 15px; }
.where-inputs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.where-inputs input { font: inherit; width: 15em; max-width: 100%; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.where-msg { margin: 0; min-height: 0; }
.where-msg:empty { display: none; }
.btn.small { font-size: 14px; padding: 8px 14px; }
.clear-near { font-size: 14px; color: var(--muted); }

.more-head { font-size: 18px; margin: 22px 0 10px; color: var(--muted); }
.spot-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--skip); border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.spot-row.v-go { border-left-color: var(--go); }
.spot-row.v-maybe { border-left-color: var(--maybe); }
.spot-row:hover { border-color: var(--sea); }
.row-name { display: grid; min-width: 0; }
.row-name small { color: var(--muted); font-size: 12px; }
.row-size { font: 800 20px var(--display); white-space: nowrap; }

.map-head { display: grid; gap: 10px; }
.map { height: min(70vh, 640px); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.pin { background: none; border: 0; }
.pin span { display: inline-block; transform: translate(-50%, -50%); color: #fff; font: 800 13px var(--display); padding: 4px 8px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); white-space: nowrap; }
.leaflet-popup-content { font: 14px/1.4 var(--body); }
.pop-size { font: 800 16px var(--display); }
.pop-v { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.35); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-logo { transform: rotate(-14deg) scale(1.1); }

/* Best time of day, whatever the size */
.best-band { fill: color-mix(in srgb, var(--sun) 22%, transparent); stroke: var(--sun); stroke-width: 1.2; stroke-dasharray: 4 3; }
.best-label { font: 800 9px var(--body); fill: #b8740f; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .best-label { fill: var(--sun); } }
.chip.best-time { border-color: transparent; background: color-mix(in srgb, var(--sun) 20%, var(--surface)); color: #8a5306; font-weight: 700; }
@media (prefers-color-scheme: dark) { .chip.best-time { color: var(--sun); } }
.hour.best { background: color-mix(in srgb, var(--sun) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sun) 70%, transparent); }
.hour.best.now { background: color-mix(in srgb, var(--sun) 24%, var(--foam)); }
.hour.best.now :is(.h-time, .tide, .h-q) { color: var(--ink); }

/* Spot page header gets the moving sea too */
.spot-hero .hero-inner { padding-bottom: 134px; }

/* Motion, for everyone who hasn't asked their device for less of it */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
  .spot.reveal.in:hover { transform: translateY(-2px); transition-delay: 0ms; }

  /* The day's bars grow up from the sea floor, then the tide line draws across them. */
  .in .mini .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .7s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(var(--d, 0ms) + 150ms + var(--i, 0) * 35ms); }
  .in .h-bar i { transform-origin: 50% 100%; animation: grow .7s cubic-bezier(.2,.9,.25,1.15) both; }
  .in .hour .h-bar i { animation-delay: calc(var(--i, 0) * 40ms); }
  @keyframes grow { from { transform: scaleY(0); } }
  /* The card's tide line is drawn by site.js, which carries the word "tide" along its tip. The spot page's curve:
     the dash is twice the line's length because, with a non-scaling stroke, Chrome measures dashes in screen
     pixels, so a dash of exactly 1 stopped short on any curve drawn wider than its picture. */
  .in .tide-curve polyline { stroke-dasharray: 2 2; stroke-dashoffset: 2; animation: draw 3.2s ease-in-out forwards; animation-delay: calc(var(--d, 0ms) + 700ms); }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* The best-time band breathes, so the eye finds it. */
  .best-band { animation: breathe 3.2s ease-in-out infinite; }
  .hour.best { animation: breathe 3.2s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

  /* Arrows sway a little, like a flag in the breeze. */
  .arrow { animation: sway 3.4s ease-in-out infinite; transform-origin: 50% 50%; }
  .stats > div:nth-child(2) .arrow, .h-wind .arrow { animation-duration: 2.2s; }
  @keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

  /* The week's waves roll, each a beat behind the day before. */
  .d-wave path { animation: roll 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.45s); transform-box: fill-box; transform-origin: 50% 100%; }
  .d .d-size::after { transform-origin: 50% 50%; animation: fit-in .7s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(300ms + var(--i, 0) * 60ms); }
  @keyframes fit-in { from { transform: scaleX(0); opacity: 0; } }
  @keyframes roll { 0%, 100% { transform: translateX(-3px) scaleY(.94); } 50% { transform: translateX(3px) scaleY(1.04); } }

  /* A Go glows. */
  .verdict.v-go { animation: go-glow 2.4s ease-out infinite; }
  @keyframes go-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--go) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

  /* The sun in the header drifts and shimmers. */
  .sky-sun { animation: sun 9s ease-in-out infinite; }
  @keyframes sun { 0%, 100% { translate: 0 0; scale: 1; } 50% { translate: 0 -6px; scale: 1.05; } }

  .hero-inner h1, .hero-inner > p { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > p { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }

  /* Map pins drop in. */
  .pin span { animation: drop .55s cubic-bezier(.3,1.5,.5,1) both; }
  @keyframes drop { from { opacity: 0; transform: translate(-50%, -140%); } }
}

/* Wave shape */
.chip.shape { background: var(--foam); border-color: transparent; font-weight: 700; color: var(--ink); }
.chip.shape.good { background: color-mix(in srgb, var(--go) 16%, var(--surface)); color: var(--go); }

/* 12-day overview on spot pages */
.over-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.over-day { display: grid; gap: 5px; justify-items: center; align-content: start; text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--skip); border-radius: 16px; padding: 10px 6px; scroll-snap-align: start; transition: transform .15s ease, box-shadow .15s ease; }
.over-day.v-go { border-top-color: var(--go); }
.over-day.v-maybe { border-top-color: var(--maybe); }
.over-day:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(13,43,54,.35); }
.over-name { font: 800 14px var(--display); display: grid; }
.over-name small { font: 600 11px var(--body); color: var(--muted); }
.over-bar { width: 26px; height: 56px; display: flex; align-items: flex-end; background: var(--foam); border-radius: 8px; overflow: hidden; }
.over-bar i { display: block; width: 100%; background: color-mix(in srgb, var(--skip) 40%, var(--foam)); border-radius: 8px 8px 0 0; }
.over-day.v-go .over-bar i { background: var(--go); }
.over-day.v-maybe .over-bar i { background: var(--maybe); }
.over-day b { font: 800 20px var(--display); }
.over-day .verdict { font-size: 10px; padding: 3px 8px; }
.over-shape { font-size: 11px; font-weight: 700; line-height: 1.15; color: var(--muted); min-height: 2.3em; }
.over-shape.good { color: var(--go); }
.over-time { font-size: 11px; font-weight: 700; color: #8a5306; background: color-mix(in srgb, var(--sun) 20%, var(--surface)); border-radius: 99px; padding: 2px 7px; }
@media (prefers-color-scheme: dark) { .over-time { color: var(--sun); } }
.over-wind { font-size: 11px; color: var(--muted); }
.day-section { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .overview.in .over-bar i { transform-origin: 50% 100%; animation: grow .7s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(var(--i, 0) * 45ms + 150ms); }
  html { scroll-behavior: smooth; }
}

/* Map with a list of the spots in view beside it (below it on phones) */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.map-list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; max-height: min(70vh, 640px); overflow-y: auto; }
.map-list h2 { font-size: 18px; }
.in-view { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.in-view button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--skip); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.in-view button:hover { border-color: var(--sea); }
.iv-name { display: grid; font-weight: 700; min-width: 0; }
.iv-name small { font-weight: 500; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.iv-size { font: 800 16px var(--display); white-space: nowrap; }
@media (max-width: 800px) { .map-wrap { grid-template-columns: 1fr; } .map-list { max-height: none; } }

/* Spots picked on the map and saved */
.pin.mine span { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(246,165,59,.45), 0 2px 8px rgba(0,0,0,.3); }
.legend i.mine-key { background: transparent; border: 2px solid var(--sun); border-radius: 99px; }
.pick-pop .leaflet-popup-content { margin: 12px 14px; }
.pick-form p { margin: 4px 0 10px; font-size: 14px; line-height: 1.4; }
.my-spot { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 16px; padding: 16px 18px; margin: 0 0 18px; }
.my-spot h2 { font-size: 20px; margin-bottom: 6px; }
.my-spot p { margin: 6px 0; }
.my-spot .working { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .6; } }
.save-spot summary { cursor: pointer; font-weight: 700; color: var(--sea-text); margin: 8px 0; }
.save-form { display: grid; gap: 10px; max-width: 420px; }
.save-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.save-form input, .save-form select { font: 16px var(--body); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.save-form .btn { justify-self: start; }
.remove-form { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .my-spot .working { animation: none; } }

/* How the waves come in: one bar per wave, tall in a set and small in the calm spell between sets. */
.rhythm { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; margin: 6px 0 14px; max-width: 70ch; }
.rhythm-group { display: flex; flex-direction: column; gap: 4px; }
.rhythm-group .bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.rhythm-group small { white-space: nowrap; font-size: 12px; color: var(--muted); }
.rhythm i { display: block; width: 6px; border-radius: 3px 3px 1px 1px; background: var(--sea);
  height: 36px; transform-origin: bottom; animation: rhythm-roll 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
.rhythm-group.lull i { height: 8px; opacity: .45; }
.rhythm.steady i { height: 18px; }
@keyframes rhythm-roll { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .rhythm i { animation: none; } }
/* Map page: a full-width satellite map with floating controls */
.map-shell { position: relative; height: calc(100vh - 58px); height: calc(100dvh - 58px); min-height: 480px; }
.map-shell .map { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; }
/* USGS imagery stops at the shoreline and is black beyond it; blending it over a sea colour turns that black into ocean. */
.is-satellite { background: #17495c; }
.is-satellite .sat-layer { mix-blend-mode: lighten; }
.open-sea canvas { width: 258px !important; height: 258px !important; margin: -1px 0 0 -1px; }
.map-card { position: absolute; z-index: 500; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.map-search { top: 14px; left: 14px; padding: 8px; max-width: calc(100% - 180px); }
.map-find { display: flex; gap: 6px; align-items: center; }
.map-find input { font: inherit; width: 9em; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.map-search .where-msg { margin: 6px 4px 0; max-width: 260px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--sea-text); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.icon-btn svg circle[fill=none] { fill: none; }
.map-tools { top: 14px; right: 14px; padding: 5px; }
.map-zoom { right: 14px; bottom: 22px; overflow: hidden; }
.seg { display: flex; background: var(--bg); border-radius: 99px; padding: 3px; }
.seg button { font: 700 13px var(--body); border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: 99px; cursor: pointer; }
.seg button.on { background: var(--ocean); color: #fff; }
.zoom-btns { display: grid; background: var(--bg); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.zoom-btns button { width: 46px; height: 46px; border: 0; background: none; font: 700 24px/1 var(--body); color: var(--ink); cursor: pointer; }
.zoom-btns button + button { border-top: 1px solid var(--line); }
.zoom-btns button:hover, .seg button:not(.on):hover { color: var(--sea-text); }

.add-bar { left: 50%; bottom: 22px; transform: translateX(-50%); padding: 8px; max-width: calc(100% - 28px); }
.add-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.add-bar .btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 3; fill: none; }
.add-live { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.add-live[hidden], .add-bar .btn[hidden] { display: none; }
.add-live span { font-size: 14px; font-weight: 600; padding: 0 6px; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; z-index: 450; pointer-events: none; opacity: 0; transition: opacity .2s; }
.crosshair.on { opacity: 1; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.crosshair::before { left: 27px; top: 0; width: 2px; height: 56px; }
.crosshair::after { top: 27px; left: 0; height: 2px; width: 56px; }
.crosshair span { position: absolute; inset: 14px; border: 3px solid var(--sun); border-radius: 50%; }

.map-shell .map-list { top: 112px; right: 14px; width: 300px; max-height: calc(100% - 112px - 140px); padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.list-toggle { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: 0; background: none; font: 800 16px var(--display); color: var(--ink); padding: 12px 14px; cursor: pointer; text-align: left; }
.list-toggle i { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.map-list.closed .list-toggle i { transform: rotate(-135deg); }
.list-body { overflow-y: auto; min-height: 0; padding: 0 12px 16px; }
.map-list.closed .list-body { display: none; }
.map-list .legend { margin-top: 10px; }
.map-credit { margin: 0; }
/* On a phone there is no room for the credit beside all three buttons while Recenter shows. */
@media (max-width: 800px) { .spot-map-tools:has(#spot-map-home:not([hidden])) .map-credit { display: none; } }

/* Pins: size on top, name underneath once zoomed in */
.pin span { display: inline-grid; justify-items: center; }
.pin em { display: none; font: 700 11px var(--body); font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); position: absolute; top: 100%; margin-top: 3px; white-space: nowrap; }
.leaflet-zoom-anim .pin em { display: none; }
.map-shell .leaflet-container { font: inherit; }
.map-shell .leaflet-marker-pane { }
.map-zoomed .pin em { display: block; }

@media (max-width: 800px) {
  .map-shell { height: calc(100dvh - 92px); }
  .map-search { left: 10px; top: 10px; max-width: calc(100% - 130px); }
  .map-find input { width: 7.5em; }
  .map-tools { right: 10px; top: 10px; }
  .map-zoom { right: 10px; top: 112px; bottom: auto; }
  .seg button { padding: 6px 9px; font-size: 12px; }
  .map-shell .map-list { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 45%; }
  .add-bar { bottom: 74px; }
  .map-list:not(.closed) ~ .add-bar, .map-shell:has(.map-list:not(.closed)) .add-bar { display: none; }
}

/* Spot picker: search, filter and a tidy list instead of a wall of buttons */
.picker { display: grid; gap: 10px; }
.picker-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-bar input, .picker-bar select { font: inherit; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.picker-search { flex: 1 1 180px; }
.picker-list { list-style: none; margin: 0; padding: 4px; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.picker-list li[hidden] { display: none; }
/* Each hidden radio sits inside its own row. Without this they hang off the page below the scrolling list,
   and tapping a spot jumped the page down to them, so on a phone the first tap seemed to do nothing. */
.picker-list li { position: relative; }
.picker-list input { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.picker-list label { display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
@media (hover: hover) { .picker-list label:hover { background: var(--foam); } }
.pk-name { font-weight: 700; }
.pk-mine { margin-left: 6px; font: 700 10px var(--body); text-transform: uppercase; letter-spacing: .06em; color: #8a5306; background: color-mix(in srgb, var(--sun) 25%, transparent); border-radius: 99px; padding: 2px 6px; vertical-align: middle; }
.picker-list small { grid-column: 1; color: var(--muted); font-size: 12px; }
.pk-tick { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); position: relative; }
.picker[data-multiple=false] .pk-tick { border-radius: 50%; }
.picker-list input:checked + label { background: color-mix(in srgb, var(--sea) 12%, var(--surface)); }
.picker-list input:checked + label .pk-tick { background: var(--sea); border-color: var(--sea); }
.picker-list input:checked + label .pk-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.picker-list input:focus-visible + label { outline: 2px solid var(--sun); outline-offset: -2px; }
.picker-chosen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.picker-chosen[hidden] { display: none; }
.picker-chosen-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.picker-chips { display: contents; }
.pk-chip { font: 700 13px var(--body); border: 0; border-radius: 99px; padding: 6px 10px 6px 12px; background: var(--sea); color: #fff; cursor: pointer; }
.pk-chip::after { content: " ×"; opacity: .8; }
.picker-clear { font: 600 13px var(--body); border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Star: add to Your Spots */
.spot-actions { display: flex; align-items: center; gap: 6px; }
.star-form { margin: 0; }
.star { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--foam); cursor: pointer; }
.star svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.star:hover svg { stroke: var(--sun); }
.star.on svg { fill: var(--sun); stroke: var(--sun); }
.star.pop { animation: star-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes star-pop { 50% { transform: scale(1.3); } }
.spot-title { display: flex; align-items: center; gap: 12px; }
.spot-hero .star { background: rgba(255,255,255,.25); }
.spot-hero .star svg { stroke: #fff; }
.spot-hero .star.on svg { fill: var(--sun); stroke: var(--sun); }

/* The call on each card: big, coloured and first */
.call-banner { margin: -20px -20px 0; padding: 12px 20px 11px; display: flex; align-items: center; gap: 12px; color: #fff; background: var(--skip); }
.call-banner.call-go { background: linear-gradient(100deg, var(--go), color-mix(in srgb, var(--go) 70%, var(--sea))); }
.call-banner.call-maybe { background: linear-gradient(100deg, var(--maybe), color-mix(in srgb, var(--maybe) 75%, var(--sun))); }
.call-banner.call-skip { background: color-mix(in srgb, var(--skip) 14%, var(--surface)); color: var(--skip); }
.call-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 800 18px/1 var(--body); background: rgba(255,255,255,.22); }
.call-skip .call-icon { background: color-mix(in srgb, var(--skip) 16%, transparent); }
.call-text { display: grid; line-height: 1.15; }
.call-text b { font: 800 22px var(--display); letter-spacing: -.01em; }
.call-text small { font-size: 13px; font-weight: 600; opacity: .92; }
.spot:has(.call-banner)::before { display: none; }
.spot.v-go { background: color-mix(in srgb, var(--go) 5%, var(--surface)); border-color: color-mix(in srgb, var(--go) 35%, var(--line)); }
.spot.v-maybe { background: color-mix(in srgb, var(--maybe) 5%, var(--surface)); }
/* Skips step back so the good ones stand out; they come back to full strength on hover. */
.spot.v-skip:not(.best) { opacity: .78; }
.spot.v-skip:not(.best) .mini, .spot.v-skip:not(.best) .size b { filter: grayscale(.6); }
.spot.v-skip:hover { opacity: 1; }
.spot.v-skip:hover .mini, .spot.v-skip:hover .size b { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .call-go .call-icon { animation: go-glow 2.4s ease-out infinite; }
}

/* Today cards, reworked: the call, the name, a big size with its shape, then the day */
.spot { gap: 12px; }
.call-banner .best-tag { margin-left: auto; background: rgba(255,255,255,.92); color: #3b2400; }
.call-skip .best-tag { background: var(--sun); }
.spot-top { align-items: center; }
.spot-name h3 { font-size: 22px; }
.card-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.card-hero .size { position: relative; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 4px; padding: 6px 12px 8px 4px; isolation: isolate; }
.card-hero .size b { grid-column: 1; }
.card-hero .size .unit { grid-column: 2; margin: 0; }
.card-hero .size .scale { grid-column: 1 / -1; font: 700 10px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.size-wave { position: absolute; left: -6px; bottom: 20px; width: calc(100% + 12px); height: calc(60px * var(--swell, .4)); z-index: -1; opacity: .2; }
.size-wave path { fill: var(--sea); }
.v-go .size-wave path { fill: var(--go); }
.hero-side { display: grid; gap: 8px; min-width: 0; }
.hero-line { display: flex; gap: 8px; align-items: center; font: 700 15px/1.25 var(--body); color: var(--ink); }
.hero-line .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.hero-line.shape.good .dot { background: var(--go); }
.hero-line.shape:not(.good) .dot { background: var(--maybe); }
.hero-line.rhythm-line .dot { background: var(--sky3); }
.spot .say:not(.more) { font-size: 16px; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.card-note { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 12%, var(--surface)); border-left: 4px solid var(--sun); }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.card-more { border: 0; padding: 0; flex: 1 1 100%; order: 2; }
.card-more summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.card-more[open] summary::before { transform: rotate(45deg); }
.more-body { display: grid; gap: 6px; margin-top: 8px; }
.more-body p { margin: 0; }
.more-body .numbers { font-size: 13px; }
.card-foot .card-more:not([open]) { flex: 0 1 auto; order: 0; }
.card-link { font-weight: 700; text-decoration: none; white-space: nowrap; margin-left: auto; }
.card-link span { display: inline-block; transition: transform .2s; }
.card-link:hover span { transform: translateX(4px); }
@media (max-width: 380px) { .card-hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  /* The wave behind the size swells and settles, taller on bigger days. */
  .in .size-wave { animation: size-swell 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes size-swell { 0%, 100% { transform: translateX(-4px) scaleY(.85); } 50% { transform: translateX(4px) scaleY(1.08); } }
  .card-more[open] .more-body { animation: more-open .35s ease-out; }
  @keyframes more-open { from { opacity: 0; transform: translateY(-6px); } }
  .hero-line { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0ms) + 250ms); }
  .hero-line + .hero-line { animation-delay: calc(var(--d, 0ms) + 350ms); }
}

/* Wave drawn to scale next to a 6 ft surfer, so size reads at a glance */
.card-hero { grid-template-columns: auto 96px minmax(0, 1fr); gap: 12px; }
.size-wave { display: none; }
.size-pic { width: 96px; height: 86px; overflow: visible; }
.pic-wave { fill: var(--sea); transform-box: fill-box; transform-origin: 50% 100%; }
.v-go .pic-wave { fill: var(--go); }
.v-skip .pic-wave { fill: color-mix(in srgb, var(--sea) 70%, var(--muted)); }
.pic-surfer { fill: var(--ink); stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.pic-surfer path { fill: none; }
.pic-surfer .pic-board { fill: var(--sun); stroke: none; }
.pic-ground { stroke: var(--line); stroke-width: 2; }
@media (max-width: 400px) { .card-hero { grid-template-columns: auto 96px; } .hero-side { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  .in .pic-wave { animation: pic-swell 3s ease-in-out infinite; }
  @keyframes pic-swell { 0%, 100% { transform: scale(.94, .9); } 50% { transform: scale(1.04, 1.04); } }
  .in .pic-surfer { animation: pic-bob 3s ease-in-out infinite; }
  @keyframes pic-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.5px; } }
}

/* Header: our pick of where to surf next, tied to its card below */
.pick-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; opacity: 1; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 5px 12px 5px 8px; justify-self: start; letter-spacing: .1em; }
.pick-pin { width: 14px; height: 14px; flex: none; background: var(--sun); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 2px #fff inset; }
.pick-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pick-time { font: 800 clamp(20px, 3.4vw, 28px) var(--display); background: rgba(255,255,255,.92); color: var(--ocean); padding: 4px 14px; border-radius: 12px; }
.pick-size { font: 800 clamp(20px, 3.4vw, 28px) var(--display); text-shadow: 0 1px 10px rgba(0,0,0,.2); }
.pick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn.ghost { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.28); }
.best-tag { display: inline-flex; align-items: center; gap: 6px; }
.best-tag .pick-pin { width: 10px; height: 10px; box-shadow: 0 0 0 1.5px #fff inset; }
.spot.best { scroll-margin-top: 16px; }
.spot.best:target { animation: pick-flash 1.6s ease-out; }
@keyframes pick-flash { 0%, 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 70%, transparent); } }
@media (prefers-reduced-motion: no-preference) {
  .pick-pin { animation: pin-drop .7s cubic-bezier(.3,1.6,.5,1) both .2s; }
  @keyframes pin-drop { from { opacity: 0; translate: 0 -10px; } }
}
@media (prefers-reduced-motion: no-preference) {
  /* The rider carves gently down the face. */
  .in .pic-surfer { animation: pic-carve 3s ease-in-out infinite; }
  @keyframes pic-carve { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 2px -1.5px; rotate: -4deg; } }
}

/* Wave next to the rider: bigger, with the comparison in words underneath */
.card-hero { grid-template-columns: auto 112px minmax(0, 1fr); }
.size-fig { margin: 0; display: grid; justify-items: center; gap: 2px; }
.size-fig .size-pic { width: 112px; height: 100px; }
.size-fig figcaption { font: 800 13px/1.1 var(--display); color: var(--ink); text-align: center; display: grid; }
.size-fig figcaption small { font: 600 10px var(--body); color: var(--muted); letter-spacing: .02em; }
@media (max-width: 400px) { .card-hero { grid-template-columns: auto 112px; } }

/* Alerts: phone setup as three clear steps */
.phone-setup { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); }
.phone-setup.off { border-color: color-mix(in srgb, var(--sun) 60%, var(--line)); background: color-mix(in srgb, var(--sun) 8%, var(--surface)); }
.phone-setup.on { border-color: color-mix(in srgb, var(--go) 45%, var(--line)); }
.phone-state { margin: 0; font-weight: 700; }
.phone-setup.on .phone-state { color: var(--go); }
.phone-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.phone-steps li > .muted { display: block; }
.topic-name { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; flex-wrap: wrap; }
.topic-name code { font: 700 16px var(--mono); background: var(--foam); padding: 4px 10px; border-radius: 8px; }
.inline-form .muted.small { margin-left: 8px; }

/* Map: today's swell */
.swell-canvas { position: absolute; inset: 0; z-index: 400; pointer-events: none; }
.swell-key { left: 14px; bottom: 22px; max-width: min(420px, calc(100% - 200px)); padding: 10px 12px; display: grid; gap: 8px; font-size: 13px; }
.swell-key[hidden] { display: none; }
.swell-trains { display: grid; gap: 4px; }
.train { display: flex; align-items: center; gap: 6px; }
.train b { font-weight: 800; }
.train-arrow { width: 16px; height: 16px; flex: none; display: inline-block; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 L18 15 L12 12 L6 15 Z' fill='%232a9d8f'/><path d='M12 12 L12 21' stroke='%232a9d8f' stroke-width='2.5' stroke-linecap='round'/></svg>"); }
.swell-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 12px; }
.swell-scale span { flex-basis: 100%; }
.swell-scale i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swell-note { margin: 0; color: var(--muted); font-size: 12px; }
.pop-scale { color: var(--muted); font-size: 12px; }
.swell-scale i.lo { background: #7fd3c7; } .swell-scale i.mid { background: #f6c453; } .swell-scale i.hi { background: #ff8a3d; }
@media (prefers-reduced-motion: no-preference) {
}
@media (max-width: 800px) {
  .swell-key { left: 10px; right: 70px; bottom: auto; top: 102px; max-width: none; font-size: 12px; padding: 8px 10px; }
  .swell-scale span, .swell-note { display: none; }
}

/* Map: separate Swell and Wind switches, glowing coastline, colours for each flow */
.layer-toggles { display: flex; gap: 6px; margin-top: 6px; }
.layer-toggle { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; font: 700 13px var(--body); border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; background: var(--bg); color: var(--muted); cursor: pointer; }
.layer-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.layer-toggle.swell.on { background: #127a8a; border-color: #127a8a; color: #fff; }
.layer-toggle.wind.on { background: #b88a12; border-color: #b88a12; color: #2b1a00; }
/* No CSS filters on the shore lines: blur and drop-shadow on long SVG paths made Chrome paint stray
   colored blocks across the map. The glow is drawn as wider, fainter lines underneath instead. */
@media (prefers-reduced-motion: no-preference) {
  .shore-glow { animation: shore-pulse 3s ease-in-out infinite; }
  @keyframes shore-pulse { 50% { stroke-opacity: .7; } }
}
.train-arrow.wind { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 L18 15 L12 12 L6 15 Z' fill='%23b88a12'/><path d='M12 12 L12 21' stroke='%23b88a12' stroke-width='2.5' stroke-linecap='round'/></svg>"); }
.wind-line[hidden], .swell-scale[hidden], .swell-note[hidden] { display: none; }
.wind-note { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.train-tone { width: 14px; height: 3px; border-radius: 2px; flex: none; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

/* Map on phones: the search, layers and swell panels fold into a row of small buttons along the top,
   so the map itself is what you see. Tap one to open its panel; touch the map to fold it away. */
.map-pills { display: none; }
@media (max-width: 800px) {
  .map-pills { display: flex; gap: 6px; position: absolute; top: 10px; left: 10px; right: 10px; z-index: 520; pointer-events: none; }
  .map-pills > * { pointer-events: auto; }
  .pill-gap { flex: 1; pointer-events: none; }
  .map-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; font: 700 14px var(--body); color: var(--ink); cursor: pointer; border-radius: 99px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); transition: background .2s, color .2s; }
  .map-pill[hidden] { display: none; }
  .map-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .map-pill[aria-expanded="true"] { background: var(--ocean); border-color: var(--ocean); color: #fff; }
  /* Frosted glass over the moving swell makes a phone blur the map again every frame, and pulsing
     every lit stretch of coast repaints them all: on a phone both go, for nearly solid panels and a
     steady glow. */
  .map-pill, .map-shell .map-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--surface) 97%, transparent); }
  .map-pill[aria-expanded="true"] { background: var(--ocean); }
  .shore-glow { animation: none; }

  .map-shell .map-search, .map-shell .map-tools, .map-shell .swell-key { display: none; top: 58px; z-index: 515; }
  .map-shell .map-search.open { display: block; left: 10px; right: 10px; max-width: none; }
  .map-shell .map-search.open .map-find input { flex: 1; width: auto; min-width: 0; font-size: 16px; }
  .map-shell .map-tools.open { display: block; right: 10px; }
  .map-shell .swell-key.open:not([hidden]) { display: grid; left: 10px; right: 10px; }
  .map-shell .map-search.open, .map-shell .map-tools.open, .map-shell .swell-key.open { animation: fold-open .18s ease-out; }
  @keyframes fold-open { from { opacity: 0; transform: translateY(-6px); } }

  /* Pinch zooms, so the zoom buttons go. Add a spot is a small button until you start aiming. */
  .map-zoom { display: none; }
  .add-bar:not(.aiming) { left: auto; right: 10px; bottom: 66px; transform: none; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .add-bar:not(.aiming) .btn { font-size: 14px; padding: 9px 14px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
  .add-bar.aiming { bottom: 66px; }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .map-shell .map-search.open, .map-shell .map-tools.open, .map-shell .swell-key.open { animation: none; }
}

/* Log a session: size as a number or range, with one-tap picks */
.checkin .size-input { font: 800 22px var(--display); padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; max-width: 220px; }
.checkin .size-input:focus { border-color: var(--sea); outline: none; }
.checkin .size-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.size-chip { min-width: 64px; text-align: center; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 700 16px var(--body); color: var(--ink); cursor: pointer; }
.size-chip.on { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 14%, var(--surface)); }

/* The sky behind the headers follows the spot's own time of day and weather: sunrise, day, sunset or night,
   then clear, partly cloudy, cloudy, showers, rain, thunderstorms or haze. Colours glide from one to the next. */
@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #6fb7c9; }
@property --sky-mid { syntax: "<color>"; inherits: true; initial-value: #ff9f80; }
@property --sky-low { syntax: "<color>"; inherits: true; initial-value: #ffcf9e; }
@property --sky-cloud { syntax: "<color>"; inherits: true; initial-value: #b0a2a4; }
@property --sky-grey { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.hero, .sky-chip {
  --sky-top: var(--sky3); --sky-mid: var(--sky2); --sky-low: var(--sky1); --sky-cloud: #b0a2a4; --sky-grey: 0%;
  --cloud: rgba(255,255,255,.85); --sun-across: .76; --sun-high: .45; --moon-offset: 0;
  transition: --sky-top 4s ease, --sky-mid 4s ease, --sky-low 4s ease, --sky-cloud 4s ease, --sky-grey 4s ease;
}
.hero, .chip-orb {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--sky-top), var(--sky-cloud) var(--sky-grey)) 0%,
    color-mix(in srgb, var(--sky-mid), var(--sky-cloud) var(--sky-grey)) 55%,
    color-mix(in srgb, var(--sky-low), var(--sky-cloud) var(--sky-grey)) 100%);
}
/* Sunrise keeps the app's own dawn colours. */
.sky-dawn { --sky-cloud: #b0a2a4; --cloud: rgba(255,236,226,.85); }
.sky-day { --sky-top: #2c7fbf; --sky-mid: #58ade0; --sky-low: #a8dcee; --sky-cloud: #8c9aa6; --cloud: rgba(255,255,255,.9); }
.sky-sunset { --sky-top: #3f3a78; --sky-mid: #d8587a; --sky-low: #ffa45a; --sky-cloud: #8a7c8a; --cloud: rgba(255,196,186,.8); }
.sky-night { --sky-top: #050f22; --sky-mid: #0b2242; --sky-low: #173a5e; --sky-cloud: #1c2633; --cloud: rgba(70,86,108,.8); }
@media (prefers-color-scheme: dark) {
  .sky-day { --sky-top: #1b5886; --sky-mid: #2d7fb2; --sky-low: #5fa9c8; }
  .sky-sunset { --sky-top: #2a2452; --sky-mid: #93405e; --sky-low: #b86a3a; }
}
.wx-partly { --sky-grey: 8%; }
.wx-showers { --sky-grey: 28%; }
.wx-cloudy { --sky-grey: 42%; }
.wx-rain { --sky-grey: 52%; }
.wx-storm { --sky-grey: 62%; --sky-cloud: #4d5864; }
.wx-storm.sky-night { --sky-cloud: #10161d; }
.wx-haze { --sky-grey: 18%; --sky-cloud: #d9cfbf; }
.wx-rain, .wx-storm { --cloud: rgba(150,160,172,.9); }
.wx-rain.sky-night, .wx-storm.sky-night { --cloud: rgba(40,50,64,.9); }
/* The sea darkens with the sky at night. */
.hero.sky-night { --sea: #1e6a74; --ocean: #072436; }
.hero.sky-day h1, .hero.sky-day p, .hero.sky-day .pick-size { text-shadow: 0 1px 14px rgba(8,40,70,.35); }

.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky > * { position: absolute; transition: opacity 3s ease; }
.sky::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 3s ease; background: linear-gradient(180deg, rgba(236,226,208,.4), rgba(236,226,208,.15)); }
.wx-haze .sky::after { opacity: 1; }

/* The sun rides across the day, low and golden at the ends and small and white at midday. It sinks behind the sea at sunset. */
.sky-sun { width: 110px; height: 110px; margin-left: -55px; border-radius: 50%; left: calc(6% + var(--sun-across) * 82%); top: calc(30px + (100% - 175px) * (1 - var(--sun-high))); background: radial-gradient(circle, #fff4d6 0%, #ffd48a 45%, rgba(255,212,138,0) 70%); opacity: .9; transition: opacity 3s ease, left 4s ease, top 4s ease; }
.sky-day .sky-sun { background: radial-gradient(circle, #fffdf4 0%, #fff0c2 30%, rgba(255,240,194,0) 68%); }
.sky-sunset .sky-sun { background: radial-gradient(circle, #fff0d0 0%, #ffb46a 40%, rgba(255,140,90,0) 70%); width: 130px; height: 130px; margin-left: -65px; }
.sky-night .sky > .sky-sun { opacity: 0; }
.wx-partly .sky-sun { opacity: .85; }
.wx-showers .sky-sun, .wx-haze .sky-sun { opacity: .5; }
.wx-cloudy .sky-sun, .wx-rain .sky-sun, .wx-storm .sky-sun { opacity: .12; }

/* The moon, lit as much as it really is tonight. */
.sky-moon { right: 14%; top: 64px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #f3efdc; box-shadow: 0 0 30px 6px rgba(243,239,220,.22); opacity: 0; }
.sky-moon::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: #0b1d38; opacity: .9; transform: translateX(calc(var(--moon-offset) * 102%)); }
.sky-night .sky-moon { opacity: 1; }
.sky-night.wx-cloudy .sky-moon, .sky-night.wx-rain .sky-moon, .sky-night.wx-storm .sky-moon { opacity: .2; }

/* Stars at night, fewer behind cloud. */
.sky-stars { inset: 0 0 30% 0; opacity: 0; background-image:
  radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 55%), radial-gradient(1.2px 1.2px at 17% 42%, #fff 50%, transparent 55%),
  radial-gradient(1.4px 1.4px at 26% 12%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 33% 30%, #fff 50%, transparent 55%),
  radial-gradient(1.8px 1.8px at 44% 8%, #fff 50%, transparent 55%), radial-gradient(1.1px 1.1px at 52% 36%, #fff 50%, transparent 55%),
  radial-gradient(1.4px 1.4px at 61% 20%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 70% 46%, #fff 50%, transparent 55%),
  radial-gradient(1.6px 1.6px at 78% 10%, #fff 50%, transparent 55%), radial-gradient(1.2px 1.2px at 91% 30%, #fff 50%, transparent 55%),
  radial-gradient(1px 1px at 96% 12%, #fff 50%, transparent 55%), radial-gradient(1.3px 1.3px at 4% 52%, #fff 50%, transparent 55%); }
.sky-stars::after { content: ""; position: absolute; inset: 0; background-image:
  radial-gradient(1.3px 1.3px at 12% 28%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 22% 6%, #fff 50%, transparent 55%),
  radial-gradient(1.5px 1.5px at 39% 22%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 57% 12%, #fff 50%, transparent 55%),
  radial-gradient(1.2px 1.2px at 66% 34%, #fff 50%, transparent 55%), radial-gradient(1.4px 1.4px at 84% 24%, #fff 50%, transparent 55%); }
.sky-night .sky-stars { opacity: 1; }
.sky-dawn .sky-stars, .sky-sunset .sky-stars { opacity: .15; }
.sky-night.wx-partly .sky-stars { opacity: .7; }
.sky-night.wx-showers .sky-stars, .sky-night.wx-haze .sky-stars { opacity: .35; }
.sky-night.wx-cloudy .sky-stars, .sky-night.wx-rain .sky-stars, .sky-night.wx-storm .sky-stars { opacity: .06; }

/* Clouds: a few for partly cloudy, a full sky for cloudy and rain. */
.sky-clouds { inset: 0; }
.sky-clouds i { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: calc(var(--w) * .26); border-radius: 999px; background: var(--cloud); filter: blur(1.5px); opacity: 0; transition: opacity 3s ease, background 4s ease; }
.sky-clouds i::before, .sky-clouds i::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.sky-clouds i::before { width: 44%; aspect-ratio: 1; left: 16%; bottom: 30%; }
.sky-clouds i::after { width: 32%; aspect-ratio: 1; left: 48%; bottom: 36%; }
.sky-clouds i:nth-child(1) { --p: 0.2; --x: 8vw; --y: 70px; --w: 170px; --t: 150s; }
.sky-clouds i:nth-child(2) { --p: 0.5; --x: 46vw; --y: 34px; --w: 120px; --t: 190s; }
.sky-clouds i:nth-child(3) { --p: 0.75; --x: 72vw; --y: 120px; --w: 150px; --t: 130s; }
.sky-clouds i:nth-child(4) { --p: 0.35; --x: 26vw; --y: 150px; --w: 200px; --t: 170s; }
.sky-clouds i:nth-child(5) { --p: 0.6; --x: 58vw; --y: 90px; --w: 230px; --t: 210s; }
.sky-clouds i:nth-child(6) { --p: 0.85; --x: 88vw; --y: 30px; --w: 180px; --t: 160s; }
.wx-partly .sky-clouds i:nth-child(-n+3) { opacity: .8; }
.wx-showers .sky-clouds i:nth-child(-n+5), .wx-cloudy .sky-clouds i, .wx-rain .sky-clouds i, .wx-storm .sky-clouds i { opacity: .85; }

/* Rain: two sheets of slanting drops, the nearer one faster. Each sheet is its own layer, a tile taller and wider
 than the sky, that slides down by one tile, so the browser moves it without repainting. */
.sky-rain { inset: 0; opacity: 0; }
.sky-rain::before, .sky-rain::after { content: ""; position: absolute; left: 0; bottom: 0; }
.sky-rain::after { right: -30px; top: -120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='white' stroke-opacity='.6' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='10' y1='4' x2='6' y2='20'/%3E%3Cline x1='52' y1='30' x2='48' y2='46'/%3E%3Cline x1='94' y1='10' x2='90' y2='26'/%3E%3Cline x1='30' y1='66' x2='26' y2='82'/%3E%3Cline x1='76' y1='78' x2='72' y2='94'/%3E%3Cline x1='112' y1='56' x2='108' y2='72'/%3E%3Cline x1='60' y1='100' x2='56' y2='116'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px; }
.sky-rain::before { right: -20px; top: -80px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg stroke='white' stroke-opacity='.35' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='14' y1='10' x2='12' y2='20'/%3E%3Cline x1='50' y1='36' x2='48' y2='46'/%3E%3Cline x1='70' y1='4' x2='68' y2='14'/%3E%3Cline x1='30' y1='58' x2='28' y2='68'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 80px 80px; }
.wx-showers .sky-rain { opacity: .5; }
.wx-rain .sky-rain, .wx-storm .sky-rain { opacity: 1; }

/* Lightning now and then in a thunderstorm. */
.sky-flash { inset: 0; background: #fff; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .sky-clouds i { animation: cloud-drift var(--t) linear infinite; animation-delay: calc(var(--t) * -1 * var(--p)); }
  @keyframes cloud-drift { from { translate: calc(-1 * var(--x) - var(--w) - 40px) 0; } to { translate: calc(100vw - var(--x) + 40px) 0; } }
  /* Only while it is raining: an unseen sheet needn't move. */
  :is(.wx-showers, .wx-rain, .wx-storm) .sky-rain::after { animation: rain-near .7s linear infinite; }
  :is(.wx-showers, .wx-rain, .wx-storm) .sky-rain::before { animation: rain-far .7s linear infinite; }
  @keyframes rain-near { to { transform: translate(-30px, 120px); } }
  @keyframes rain-far { to { transform: translate(-20px, 80px); } }
  .sky-stars::after { animation: twinkle 4.5s ease-in-out infinite; }
  @keyframes twinkle { 50% { opacity: .15; } }
  .wx-storm .sky-flash { animation: lightning 9s linear infinite 2s; transition: none; }
  @keyframes lightning { 0%, 90%, 92%, 95%, 100% { opacity: 0; } 91% { opacity: .5; } 93.5% { opacity: .3; } }
}

/* The sky in words, in the headers. */
.hero .sky-now { font-size: 15px; margin-top: 2px; }
.sky-dot, .sky-chip .chip-orb { flex: none; }
.sky-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.sky-stat[hidden], .hero .sky-now[hidden] { display: none; }

/* Water temperature and what to wear: a line on each Today card, the spot header, and a card on the spot page. */
.drop { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: var(--sea); margin: 0 1px; }
.water-line.trunks .drop, .water-card.trunks .drop { background: var(--sun); }
.hero .water-now { font-size: 15px; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.hero .water-now .drop { background: rgba(255,255,255,.9); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.water-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; margin: 0 0 16px; }
.water-card.trunks { background: linear-gradient(135deg, var(--surface) 55%, color-mix(in srgb, var(--sun) 16%, var(--surface))); }
.water-temp { display: grid; justify-items: center; gap: 2px; min-width: 64px; }
.water-temp .drop { width: 16px; height: 16px; margin-bottom: 4px; }
.water-temp b { font: 800 28px/1 var(--display); }
.water-temp small { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.water-say { min-width: 0; }
.water-say h2 { font-size: 20px; }
.water-say p { margin: 4px 0 0; }
.water-say summary { cursor: pointer; color: var(--sea-text); font-size: 14px; margin-top: 6px; }
.water-say .numbers { font-size: 13px; color: var(--muted); }
/* The spot page's water card also carries a little satellite map with a pin on the break: on top on phones,
   beside the water and wetsuit call on wider screens. */
.place-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 44%); gap: 18px; align-items: stretch; padding: 14px; }
.place-card .water-row { display: flex; gap: 16px; align-items: flex-start; padding: 6px 4px 6px 6px; align-self: center; }
.place-card .spot-map-wrap { order: 2; }
.place-card.map-only { grid-template-columns: 1fr; }
.spot-map-wrap { position: relative; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.spot-map { height: 100%; min-height: 230px; z-index: 0; isolation: isolate; }
/* The swell's crests sit over the imagery and under the pin, and never catch a tap or drag. */
.spot-crests { position: absolute; inset: 0; z-index: 450; pointer-events: none; }
.map-swell { position: absolute; left: 10px; top: 10px; right: 10px; z-index: 2; margin: 0; display: flex; justify-content: flex-start; pointer-events: none; }
.map-swell span { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.25 var(--body); color: #fff; background: rgba(6,23,29,.62); border-radius: 99px; padding: 6px 11px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.map-swell .train-arrow { width: 16px; height: 16px; margin-left: -3px; filter: brightness(1.6); }
.map-swell b { font-weight: 800; }
.spot-map .leaflet-tile-pane { transition: filter .6s ease; }
.spot-map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1;
  background: linear-gradient(180deg, rgba(6,23,29,0) 55%, rgba(6,23,29,.45)); box-shadow: inset 0 0 0 1px rgba(13,43,54,.12); }
.spot-map-tools { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; pointer-events: none; }
.spot-map-tools > * { pointer-events: auto; }
.map-chip { font: 700 13px/1 var(--body); color: #0d2b36; background: rgba(255,255,255,.92); border: 0; border-radius: 99px; padding: 8px 12px; text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.map-chip:hover { background: #fff; }
.map-credit { margin-right: auto; align-self: flex-end; font: 600 10px var(--body); color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8); pointer-events: none !important; }
/* The pin: a sunny dot with a slow ripple, and the spot's name under it. */
.spot-pin { background: none; border: 0; }
.spot-pin-dot, .spot-pin-ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.spot-pin-dot { width: 16px; height: 16px; background: var(--sun); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.spot-pin-ring { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.9); opacity: 0; }
.spot-pin em { position: absolute; left: 0; top: 14px; transform: translateX(-50%); white-space: nowrap; font: 800 13px var(--display); font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: no-preference) {
  .spot-pin-ring { animation: pin-ripple 2.6s ease-out infinite; }
  @keyframes pin-ripple { 0% { opacity: .9; width: 16px; height: 16px; } 100% { opacity: 0; width: 64px; height: 64px; } }
  .spot-pin-dot { animation: drop .55s cubic-bezier(.3,1.5,.5,1) both; }
}
@media (max-width: 800px) {
  .place-card { grid-template-columns: 1fr; gap: 12px; padding: 10px; }
  .place-card .spot-map-wrap { order: 0; }
  .place-card .water-row { padding: 2px 6px 6px; }
  .spot-map { min-height: 220px; height: 220px; }
}
@media (prefers-reduced-motion: no-preference) {
  .drop { animation: drop-bob 3.2s ease-in-out infinite; }
  @keyframes drop-bob { 50% { translate: 0 -2px; } }
}

/* On each Today card: a little window on that spot's sky right now. */
.sky-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 700 12px/1 var(--body); color: var(--muted); background: var(--foam); border-radius: 99px; padding: 3px 10px 3px 3px; white-space: nowrap; }
.spot-top .sky-chip + .spot-actions { margin-left: 0; }
.chip-orb { position: relative; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.chip-orb i { position: absolute; display: block; transition: opacity 2s ease; }
.orb-body { width: 10px; height: 10px; border-radius: 50%; right: 4px; top: 4px; background: #ffe39a; box-shadow: 0 0 6px 2px rgba(255,227,154,.6); }
.sky-dawn .orb-body, .sky-sunset .orb-body { top: 11px; background: #ffc27a; }
.sky-night .orb-body { background: #f3efdc; box-shadow: 0 0 5px 1px rgba(243,239,220,.4); }
.wx-cloudy .orb-body, .wx-rain .orb-body, .wx-storm .orb-body { opacity: .25; }
.orb-cloud { width: 15px; height: 6px; left: 3px; top: 9px; border-radius: 99px; background: var(--cloud); opacity: 0; }
.orb-cloud::before { content: ""; position: absolute; width: 7px; height: 7px; left: 3px; bottom: 2px; border-radius: 50%; background: inherit; }
.wx-partly .orb-cloud, .wx-cloudy .orb-cloud, .wx-showers .orb-cloud, .wx-rain .orb-cloud, .wx-storm .orb-cloud { opacity: 1; }
.orb-rain { left: 5px; top: 15px; width: 12px; height: 8px; opacity: 0; background: linear-gradient(#fff, #fff) 1px 0 / 1px 4px no-repeat, linear-gradient(#fff, #fff) 6px 2px / 1px 4px no-repeat, linear-gradient(#fff, #fff) 11px 0 / 1px 4px no-repeat; }
.wx-showers .orb-rain, .wx-rain .orb-rain, .wx-storm .orb-rain { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .wx-showers .orb-rain, .wx-rain .orb-rain, .wx-storm .orb-rain { animation: orb-rain 1s linear infinite; }
  @keyframes orb-rain { from { translate: 0 -3px; } to { translate: 0 4px; } }
  .wx-partly .orb-cloud { animation: orb-drift 6s ease-in-out infinite; }
  @keyframes orb-drift { 50% { translate: 3px 0; } }
}

/* Account pages: a header with your initials, tabs, then cards. */
.avatar {
  --hue: 172; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, hsl(var(--hue) 62% 46%), hsl(calc(var(--hue) + 28) 70% 38%));
  color: #fff; font: 800 13px/1 var(--display); letter-spacing: .02em; box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.avatar.big { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 6px 18px color-mix(in srgb, hsl(var(--hue) 60% 40%) 35%, transparent); }
.bar nav .nav-account { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 701px) { .nav-account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .bar nav .nav-account { margin: -4px 0; } }
.acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; min-width: 0; }
.acct-who { min-width: 0; }
.acct-who .page-title { overflow-wrap: anywhere; }
.acct-who p { margin: 2px 0 0; overflow-wrap: anywhere; }
.acct-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line); margin: 0 -16px 22px; padding: 0 16px;
}
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a {
  flex: none; padding: 10px; font-size: 15px; color: var(--muted); text-decoration: none; font-weight: 700;
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .2s ease;
}
.acct-tabs a:hover { color: var(--ink); }
@media (max-width: 420px) { .acct-tabs { gap: 0; } .acct-tabs a { padding: 10px 7px; font-size: 14px; } .acct-who p { font-size: 14px; } }
.acct-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sea); }
.acct-section-title { font-size: 22px; color: var(--ocean); }
@media (prefers-color-scheme: dark) { .acct-section-title { color: var(--sea-text); } }
.acct-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.acct-grid .acct-stats { grid-column: 1 / -1; }
@media (max-width: 700px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.acct-card h2 { font-size: 19px; }
section.acct-card { margin-bottom: 14px; }
.acct-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acct-stats { grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.acct-stats b { display: block; font: 800 30px/1.1 var(--display); color: var(--sea-text); }
.acct-stats span { font-size: 13px; color: var(--muted); }
.acct-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.acct-facts dt { color: var(--muted); }
.acct-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.acct-card .checkin { max-width: none; gap: 16px; }
.acct-card .field[hidden] { display: none; }
.acct-empty p { margin: 0; }
.acct-signout { margin-top: 4px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--foam); color: var(--sea-text); vertical-align: 1px; }

.surf-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.surf-log li {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 10px 12px 12px;
}
.surf-log li.q-3 { border-left-color: var(--sea); }
.surf-log li.q-4, .surf-log li.q-5 { border-left-color: var(--go); }
.surf-log li.q-1 { border-left-color: var(--skip); }
.log-when { display: grid; line-height: 1.2; }
.log-when b, .log-when span { white-space: nowrap; }
.log-when b { font: 800 16px var(--display); }
.log-when span { font-size: 12px; color: var(--muted); }
.log-what { display: grid; gap: 2px; min-width: 0; }
.log-what a { color: var(--ink); text-decoration: none; }
.log-size { font-weight: 700; }
.stars { color: var(--sun); letter-spacing: 1px; }
.stars i { font-style: normal; color: var(--line); }
.log-note { margin: 4px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.log-actions { display: flex; align-items: center; gap: 2px; }
.log-edit { font: 700 14px var(--body); color: var(--sea-text); text-decoration: none; padding: 8px 10px; border-radius: 99px; }
.log-edit:hover { background: var(--foam); }
.log-del button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.log-del button:hover { background: var(--foam); color: var(--skip); }

.log-shared { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.log-shared .badge { text-decoration: none; }

.device-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.device-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.device-list li > div { display: grid; min-width: 0; }
.device-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--foam); position: relative; }
.device-icon::after { content: ""; position: absolute; inset: 0; margin: auto; border: 2px solid var(--sea); }
.device-icon.phone::after { width: 13px; height: 22px; border-radius: 3px; }
.device-icon.tablet::after { width: 18px; height: 22px; border-radius: 3px; }
.device-icon.computer::after { width: 22px; height: 15px; border-radius: 2px; border-bottom-width: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .acct-card, .surf-log li, .device-list li { animation: acct-in .35s ease both; }
  .surf-log li:nth-child(2), .device-list li:nth-child(2) { animation-delay: .04s; }
  .surf-log li:nth-child(3), .device-list li:nth-child(3) { animation-delay: .08s; }
  .surf-log li:nth-child(n+4) { animation-delay: .12s; }
  @keyframes acct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Share: a button on spots, days and sessions, and the sheet it opens with the picture friends will see. */
.share-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.share-btn:not(.btn) { font: 700 14px var(--body); background: var(--foam); color: var(--ink); border: 0; border-radius: 99px; padding: 7px 14px; }
.share-btn:not(.btn):hover { background: color-mix(in srgb, var(--sea) 18%, var(--foam)); }
.share-btn.small { font-size: 13px; padding: 5px 11px; }
.share-btn.small svg { width: 15px; height: 15px; }
.share-btn.on-hero { background: rgba(255,255,255,.25); color: #fff; height: 36px; padding: 0 14px; }
.share-btn.on-hero:hover { background: rgba(255,255,255,.38); }
.spot-title { flex-wrap: wrap; }
.day-section .section-head .share-btn { margin-left: auto; }

:is(.share-sheet, .consent-sheet) { border: 0; padding: 20px; border-radius: 22px; width: min(460px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
:is(.share-sheet, .consent-sheet)::backdrop { background: rgba(6, 23, 29, .55); }
:is(.share-sheet, .consent-sheet)[open] { animation: sheet-in .28s cubic-bezier(.2,.9,.3,1.1); }
@keyframes sheet-in { from { transform: translateY(24px) scale(.97); opacity: 0; } }
:is(.share-sheet, .consent-sheet) h2 { font-size: 22px; margin-bottom: 12px; }
.share-close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.share-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--foam); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.share-preview { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; background: var(--ocean); object-fit: cover; }
.share-title { font-weight: 700; margin: 10px 0 14px; }
.share-url { width: 100%; margin: 0 0 12px; font: 500 14px var(--body); color: var(--ink); background: var(--foam); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.share-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-main .btn { text-align: center; padding: 12px 10px; }
.share-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-apps a, .share-apps button { font: 600 14px var(--body); color: var(--ink); background: var(--foam); border: 0; border-radius: 99px; padding: 8px 13px; text-decoration: none; cursor: pointer; }
.share-apps .done { background: var(--go); color: #fff; }
.share-hint { margin: 12px 0 0; }
@media (max-width: 700px) {
  /* On a phone the sheet rises from the bottom, in thumb reach. */
  :is(.share-sheet, .consent-sheet) { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  :is(.share-sheet, .consent-sheet)[open] { animation: sheet-up .3s cubic-bezier(.2,.9,.3,1); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { :is(.share-sheet, .consent-sheet)[open] { animation: none; } }

/* Shared sessions: on spot pages, the Locals page and a session's own page. */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; animation: report-in .4s ease both; }
@keyframes report-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .report { animation: none; } }
.report-head { display: flex; align-items: center; gap: 10px; }
.report-head .avatar { width: 40px; height: 40px; font-size: 18px; box-shadow: none; }  /* the account pages' initials badge, sized for a card */
.report-who { display: grid; min-width: 0; margin-right: auto; }
.report-who a { color: inherit; }
.report-q { font: 700 13px var(--body); border-radius: 99px; padding: 4px 10px; color: #fff; background: var(--skip); white-space: nowrap; }
.report-q.q-go { background: var(--go); }
.report-q.q-maybe { background: var(--maybe); }
.report-size { margin: 0; font-size: 17px; }
.report-size b { font: 800 22px var(--display); color: var(--ocean); }
@media (prefers-color-scheme: dark) { .report-size b { color: var(--sea-text); } }
.report-note { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.report-check { margin: 0; font-size: 14px; border-radius: 10px; padding: 6px 10px; background: var(--foam); }
.report-check.right { background: color-mix(in srgb, var(--go) 14%, var(--surface)); }
.report-check.off { background: color-mix(in srgb, var(--maybe) 16%, var(--surface)); }
.report-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-actions form { margin: 0; }
.shaka { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px var(--body); cursor: pointer; text-decoration: none; }
.shaka.on { background: color-mix(in srgb, var(--sun) 25%, var(--surface)); border-color: var(--sun); }
.shaka.pop span { animation: shaka-pop .45s ease; display: inline-block; }
@keyframes shaka-pop { 30% { transform: rotate(-18deg) scale(1.35); } 60% { transform: rotate(12deg) scale(1.1); } }
.link-btn { border: 0; background: none; color: var(--muted); font: 500 13px var(--body); text-decoration: underline; cursor: pointer; padding: 4px; }
.report-list { display: grid; gap: 10px; }
.spot-reports { margin: 28px 0; }

.locals { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; margin-top: 18px; }
.locals-feed { display: grid; gap: 12px; }
.locals-side { display: grid; gap: 14px; position: sticky; top: 16px; }
.locals-where, .locals-count { margin: 0; }
.locals-post { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--ocean); color: #fff; border-radius: 18px; padding: 14px 16px; }
.locals-post > div { display: grid; }
.locals-post .muted { color: #bfe6e0; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; }
.side-card h2 { font-size: 19px; }
.side-card p { margin: 0; }
.top-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.top-list li { display: grid; }
@media (max-width: 700px) {
  .locals { grid-template-columns: 1fr; }
  .locals-side { position: static; }
}
.report-page { display: grid; gap: 14px; max-width: 620px; margin-top: 16px; }
.report-more { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow-dark { margin: 0; font-size: 14px; color: var(--muted); }

.share-check { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.share-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--sea); flex: none; }
.share-check > span { display: grid; gap: 2px; }
.share-apps [hidden] { display: none; }

/* When to go: now, later today, tomorrow. "Later" is a Go still to come (sea turning to go green),
   "tmrw" is tomorrow's dawn blue. */
.spot.v-later { --rail: var(--later); background: color-mix(in srgb, var(--later) 5%, var(--surface)); border-color: color-mix(in srgb, var(--later) 30%, var(--line)); }
.spot.v-tmrw { --rail: var(--tmrw); background: color-mix(in srgb, var(--tmrw) 4%, var(--surface)); }
.verdict.v-later { background: var(--later); color: #fff; }
.verdict.v-tmrw { background: var(--tmrw); color: #fff; }
.spot-row.v-later { border-left-color: var(--later); }
.spot-row.v-tmrw { border-left-color: var(--tmrw); }
.call-banner.call-later { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--sea), var(--go)); }
.call-banner.call-tmrw { background: linear-gradient(100deg, var(--tmrw), color-mix(in srgb, var(--tmrw) 55%, var(--sea))); }
.call-banner > * { position: relative; }

/* The clock on a later call: its ring is fuller the sooner the good surf starts. */
.call-icon svg { width: 26px; height: 26px; display: block; overflow: visible; }
.call-icon.clock circle, .call-icon.clock path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.clock-track { stroke-width: 2.5; opacity: .3; }
.clock-ring { stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--soon, .5)); }
.clock-hands { stroke-width: 2.4; }
.call-icon.sunrise circle { fill: #ffd27a; }
.call-icon.sunrise .sun-up path { fill: none; stroke: #ffd27a; stroke-width: 2; stroke-linecap: round; }
.call-icon.sunrise .sun-sea { fill: color-mix(in srgb, var(--tmrw) 80%, #0a3d4f); }
.call-icon.sunrise .sun-line { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: .85; }

/* The call in the headers: a white pill led by its coloured badge. */
.pick-call { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.94); color: var(--ocean); padding: 5px 16px 5px 5px; border-radius: 99px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); }
.pick-call b { font: 800 clamp(20px, 3.4vw, 28px) var(--display); letter-spacing: -.01em; line-height: 1.1; }
.pick-call .call-icon { width: 36px; height: 36px; color: #fff; background: var(--skip); }
.pick-call.v-go .call-icon { background: var(--go); }
.pick-call.v-later .call-icon { background: linear-gradient(135deg, var(--sea), var(--go)); }
.pick-call.v-maybe .call-icon { background: var(--maybe); }
.pick-call.v-tmrw .call-icon { background: var(--tmrw); }
.pick-call.small { padding: 3px 12px 3px 3px; gap: 8px; vertical-align: middle; }
.pick-call.small b { font-size: 18px; }
.pick-call.small .call-icon { width: 28px; height: 28px; font-size: 15px; }
.pick-call.small .call-icon svg { width: 20px; height: 20px; }
.hero .pick-when { font-size: clamp(15px, 2.4vw, 18px); font-weight: 600; opacity: .95; }
.spot-call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* On the day's chart, the hours the call points at. */
.best-band.call-band.go, .best-band.call-band.later { fill: color-mix(in srgb, var(--go) 18%, transparent); stroke: var(--go); }
.best-band.call-band.maybe { fill: color-mix(in srgb, var(--maybe) 18%, transparent); stroke: var(--maybe); }
.spot.v-go .best-label, .spot.v-later .best-label { fill: var(--go); }
.spot.v-maybe .best-label { fill: color-mix(in srgb, var(--maybe) 75%, #000); }
@media (prefers-color-scheme: dark) { .spot.v-maybe .best-label { fill: var(--maybe); } }

@media (prefers-reduced-motion: no-preference) {
  /* The clock ring fills to how soon it is, the hand ticks round, and light sweeps across the banner. */
  .clock-ring { animation: clock-fill 1.4s cubic-bezier(.3,.8,.3,1) both .3s; }
  @keyframes clock-fill { from { stroke-dashoffset: 1; } }
  .clock-hands { transform-box: view-box; transform-origin: 16px 16px; animation: clock-tick 12s linear infinite; }
  @keyframes clock-tick { to { rotate: 360deg; } }
  .call-banner.call-later::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-100%); animation: later-sweep 4.5s ease-in-out infinite 1s; pointer-events: none; }
  @keyframes later-sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
  /* Tomorrow's sun comes up over the water. */
  .sun-up { animation: sun-rise 1.6s cubic-bezier(.2,.8,.3,1) both .3s; }
  @keyframes sun-rise { from { translate: 0 7px; opacity: 0; } }
  .pick-call.v-go .call-icon { animation: go-glow 2.4s ease-out infinite; }
}

/* Daily surf reports (/news) */
.news-intro { max-width: 70ch; }
.news-regions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.news-regions a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.news-regions a.on { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.news-day { display: grid; gap: 10px; }
.news-day-head { font-size: 15px; font-family: var(--body); font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.news-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.news-item h3 { font-size: 19px; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--sea-text); }
.news-item p { margin: 0; color: var(--muted); font-size: 15px; }
.news-item-region { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sea-text); }
.news-feed-link { margin: 0; }

.news-article { max-width: 68ch; width: 100%; margin: 0 auto; display: grid; gap: 18px; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--muted); }
.news-head { display: grid; gap: 10px; }
.news-kicker { margin: 0; font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sea-text); }
.news-head h1 { font-size: clamp(28px, 5vw, 40px); color: var(--ocean); }
.news-lead { margin: 0; font-size: 19px; line-height: 1.5; }
.news-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.news-body { font-size: 17px; line-height: 1.65; }
.news-body h2 { font-size: 22px; color: var(--ocean); margin: 26px 0 8px; }
.news-body p { margin: 0 0 14px; }
.news-body ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.news-body strong { color: var(--ink); }
.news-live { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }
.news-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.news-pager a:last-child { text-align: right; }
@media (max-width: 520px) {
  .news-pager { grid-template-columns: 1fr 1fr; }
  .news-pager > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}
@media (prefers-color-scheme: dark) {
  .news-head h1, .news-body h2 { color: var(--sea-text); }
  .news-regions a.on { background: var(--sea); border-color: var(--sea); color: var(--bg); }
}

/* The link to the daily report under a forecast */
.news-link { position: relative; display: grid; gap: 2px; padding: 14px 44px 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-link:hover { border-color: var(--sea); }
.news-link b { font-family: var(--display); font-size: 19px; }
.news-link-kicker { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sea-text); }
.news-link-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--sea-text); }

/* Skip links: hidden until someone tabs to them, then they drop in at the top */
.skip-links a { position: absolute; left: 12px; top: 0; transform: translateY(-120%); z-index: 1300; background: var(--surface); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 0 0 12px 12px; box-shadow: 0 8px 20px rgba(0,0,0,.25); text-decoration: none; }
.skip-links a:focus { transform: none; }

/* Accessibility button in the top bar: a round icon like the menu button, never floating over the page */
.a11y-btn { order: 3; display: grid; place-items: center; width: 40px; height: 40px; margin: -4px -6px -4px 0; padding: 0; background: none; border: 0; border-radius: 50%; color: #d4efec; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s ease, background .15s ease; }
.a11y-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a11y-btn svg .fill { fill: currentColor; stroke: none; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.12); }
.bar nav { order: 2; }
@media (max-width: 700px) {
  .a11y-btn { order: 0; width: 44px; height: 44px; margin: -6px 0; }
  .menu-toggle { order: 1; }
}

/* Search in the top bar: a "Search" pill on wide screens, a magnifier on phones. It opens a row of its own under
   the bar, and the matches list there too, pushing the page down rather than covering it. */
.search-btn { order: 3; display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: -2px 0; padding: 0 16px 0 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #d4efec; font: 500 15px var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s ease, background .15s ease; }
.search-btn svg, .search-field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-btn:hover, .search-btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.18); }
/* Between phone and wide, the word would push the links onto a second line; the magnifier alone fits. */
@media (max-width: 1080px) { .search-btn { padding: 0 8px; } .search-btn-word { display: none; } }
@media (max-width: 700px) {
  .search-btn { order: 0; width: 44px; height: 44px; margin: -6px -4px -6px 0; padding: 0; justify-content: center; background: none; border: 0; border-radius: 50%; }
  .search-btn svg { width: 24px; height: 24px; }
  .search-btn-word { display: none; }
}
.site-search { order: 10; flex: 1 0 100%; display: grid; gap: 8px; }
.site-search[hidden] { display: none; }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--muted); border-radius: 14px; padding: 0 6px 0 14px; box-shadow: 0 6px 20px -10px rgba(0,0,0,.5); }
.search-field input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; color: var(--ink); font: 500 17px var(--body); outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field:focus-within { box-shadow: 0 0 0 3px var(--sun), 0 6px 20px -10px rgba(0,0,0,.5); }
.search-close { width: 40px; height: 40px; flex: none; border: 0; background: none; border-radius: 50%; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.search-close:hover { background: var(--foam); color: var(--ink); }
.search-busy { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--sea); border-right-color: transparent; opacity: 0; transition: opacity .15s ease; }
.site-search.loading .search-busy { opacity: 1; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; background: var(--surface); border-radius: 14px; overflow: hidden; }
.search-results:empty { display: none; }
.search-results a { display: grid; gap: 1px; padding: 11px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.search-results li:first-child a { border-top: 0; }
.search-results a:hover, .search-results a.active { background: var(--foam); }
.search-results a.active { box-shadow: inset 4px 0 0 var(--sea); }
.search-name { font: 700 17px var(--display); }
.search-where { font-size: 13px; color: var(--muted); }
.search-results a.is-town .search-name::before { content: "Town · "; font: 600 13px var(--body); color: var(--sea-text); letter-spacing: .02em; }
.search-msg { margin: 0; font-size: 14px; color: #d4efec; }
.search-msg:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .site-search.loading .search-busy { animation: busy-spin .7s linear infinite; }
  .site-search:not([hidden]) { animation: search-in .18s ease-out; }
  @keyframes search-in { from { opacity: 0; transform: translateY(-6px); } }
}
html.a11y-still .site-search:not([hidden]), html.a11y-still .site-search .search-busy { animation: none; }
/* On the Today page the bar floats over the sky; while searching it takes its own space so nothing is covered. */
.bar.on-sky.searching { position: relative; background: var(--ocean); }
.bar.on-sky.searching ~ main .hero { padding-top: 12px; }
.search-page-form { display: flex; gap: 8px; margin-top: 12px; }
.search-page-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 17px var(--body); }
.search-page-results { border: 1px solid var(--line); }

/* The settings panel: slides in from the right on wide screens and up from the bottom on phones */
.a11y-panel { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); background: var(--bg); color: var(--ink); box-shadow: -20px 0 60px rgba(0,0,0,.3); font: 16px/1.45 var(--body); }
.a11y-panel[open] { display: flex; flex-direction: column; animation: a11y-in .3s cubic-bezier(.2,.9,.3,1); }
@keyframes a11y-in { from { transform: translateX(40px); opacity: 0; } }
.a11y-panel::backdrop { background: rgba(6, 23, 29, .5); }
@media (max-width: 700px) {
  .a11y-panel { margin: auto 0 0; width: 100vw; max-width: 100vw; height: auto; max-height: 88dvh; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.3); }
  @keyframes a11y-in { from { transform: translateY(48px); opacity: 0; } }
}
.a11y-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px 20px; background: var(--ocean); color: #fff; }
.a11y-head h2 { font-size: 22px; margin-right: auto; }
.a11y-reset { font: 700 14px var(--body); color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.a11y-reset:disabled { opacity: .55; cursor: default; }
.a11y-close-form { margin: 0; }
.a11y-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.a11y-head :focus-visible { outline-color: var(--sun); }
.a11y-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 22px; }
.a11y-lede { margin: 0; color: var(--muted); font-size: 15px; }
.a11y-body h3 { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.a11y-body svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-profiles { display: grid; gap: 8px; }
.a11y-profile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.a11y-profile svg { color: var(--sea-text); }
.a11y-profile span { flex: 1; display: grid; }
.a11y-profile b { font-weight: 700; }
.a11y-profile small { color: var(--muted); font-size: 13px; }
.a11y-switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 99px; background: var(--line); transition: background .2s ease; }
.a11y-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.a11y-profile[aria-pressed="true"] { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 10%, var(--surface)); }
.a11y-profile[aria-pressed="true"] .a11y-switch { background: var(--sea-text); }
.a11y-profile[aria-pressed="true"] .a11y-switch::after { transform: translateX(18px); }
.a11y-steps { display: grid; gap: 8px; margin-bottom: 8px; }
.a11y-step { display: grid; grid-template-columns: 1fr 44px minmax(76px, auto) 44px; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 14px; }
.a11y-step-name { font-weight: 700; }
.a11y-step button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--foam); color: var(--ink); font: 700 22px/1 var(--body); cursor: pointer; }
.a11y-step button:disabled { opacity: .4; cursor: default; }
.a11y-step output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.a11y-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.a11y-tile { display: grid; justify-items: center; gap: 6px; min-height: 84px; align-content: center; text-align: center; font: 700 14px/1.25 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; cursor: pointer; position: relative; }
.a11y-tile svg { width: 26px; height: 26px; color: var(--sea-text); }
.a11y-tile[aria-pressed="true"] { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--sea); }
.a11y-tile[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--sea-text); color: var(--bg); font-size: 12px; line-height: 20px; }
.a11y-profile:hover, .a11y-tile:hover, .a11y-step button:not(:disabled):hover { border-color: var(--sea); }
.a11y-seg { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.a11y-seg legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.a11y-seg label { position: relative; display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.a11y-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a11y-seg label:has(input:checked) { background: var(--sea-text); border-color: var(--sea-text); color: var(--bg); }
.a11y-seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.a11y-foot { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .a11y-panel[open] { animation: none; } .a11y-switch, .a11y-switch::after { transition: none; } }

/* What the settings do to the page (classes and attributes set on <html> by _A11yEarly) */
html.a11y-font body *:not(svg, svg *, .a11y-panel, .a11y-panel *) { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; }
html.a11y-align .page :is(p, li, h1, h2, h3, dd, dt, figcaption, .say, td, th), html.a11y-align .hero :is(p, h1) { text-align: left !important; }
html[data-a11y-lh="1"] body *:not(svg, svg *, .a11y-panel, .a11y-panel *) { line-height: 1.75 !important; }
html[data-a11y-lh="2"] body *:not(svg, svg *, .a11y-panel, .a11y-panel *) { line-height: 2.1 !important; }
html[data-a11y-ls="1"] body *:not(svg, svg *, .a11y-panel, .a11y-panel *) { letter-spacing: .06em !important; word-spacing: .1em !important; }
html[data-a11y-ls="2"] body *:not(svg, svg *, .a11y-panel, .a11y-panel *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-links a:not(.a11y-panel a, .skip-links a) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
html.a11y-links .bar a, html.a11y-links .hero a { outline-color: var(--sun); }
html.a11y-heads .page :is(h1, h2, h3, h4), html.a11y-heads .hero h1 { outline: 2px dashed var(--sea); outline-offset: 4px; border-radius: 4px; }
html.a11y-focus :focus, html.a11y-focus :focus-visible { outline: 4px solid var(--focus) !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px color-mix(in srgb, var(--focus) 30%, transparent) !important; }
html.a11y-focus .bar :focus, html.a11y-focus .hero :focus, html.a11y-focus .a11y-head :focus { outline-color: var(--sun) !important; }
html.a11y-focus #main:focus { outline: none !important; box-shadow: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8.5-6.5 1.6L9 19z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important; }
html.a11y-noimg img:not(.brand-logo, .leaflet-tile), html.a11y-noimg video, html.a11y-noimg iframe, html.a11y-noimg .sky-sun { visibility: hidden !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html[data-a11y-sat="low"] body > :not(dialog, .a11y-guide-bar, .a11y-shade) { filter: saturate(.45); }
html[data-a11y-sat="high"] body > :not(dialog, .a11y-guide-bar, .a11y-shade) { filter: saturate(1.8); }
html[data-a11y-sat="mono"] body > :not(dialog, .a11y-guide-bar, .a11y-shade) { filter: grayscale(1); }
/* Bigger text: let rows wrap instead of pushing past the edge of a phone */
fieldset { min-width: 0; }
.checkin, .checkin fieldset, .picker { grid-template-columns: minmax(0, 1fr); }
html[data-a11y-text] .picker-bar > * { min-width: 0; max-width: 100%; }
html[data-a11y-text] :is(.spot-top, .call-banner, .section-head, .facts) { flex-wrap: wrap; }
html[data-a11y-text] .where-inputs input { width: 100%; }
html[data-a11y-text] .page * { overflow-wrap: anywhere; }
@media (max-width: 700px) { html[data-a11y-text] .card-hero { grid-template-columns: 1fr; justify-items: start; } }
.a11y-guide-bar { position: fixed; left: 0; right: 0; top: 0; height: 8px; z-index: 2000; pointer-events: none; background: var(--sun); border: 2px solid #000; border-radius: 6px; box-shadow: 0 0 0 2px #fff; will-change: transform; }
.a11y-shade { position: fixed; left: 0; right: 0; z-index: 2000; pointer-events: none; background: rgba(0, 10, 14, .62); }
.a11y-shade-top { top: 0; }
.a11y-shade-bottom { bottom: 0; }

/* Stronger contrast: darker text and lines on light, brighter on dark. "Dark" and "Light" also switch
   the site's own colour scheme; "High" keeps the device's scheme and marks links and edges too. */
html[data-a11y-contrast] { --bg: #ffffff; --surface: #ffffff; --ink: #000000; --muted: #2e4249; --line: #7f979d; --foam: #e3f1ee; --sea-text: #0d5c53; --ocean: #062c39; --focus: #8a4500; }
@media (prefers-color-scheme: dark) {
  html[data-a11y-contrast] { --bg: #000000; --surface: #08161b; --ink: #ffffff; --muted: #d2e2e6; --line: #5f8590; --foam: #0f2d35; --sea-text: #6fe3d3; --ocean: #062430; --focus: #ffc266; }
}
/* Header text sits on a dimmed sky in every contrast mode, so it reads however bright the sky is */
html[data-a11y-contrast] .hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 12, 20, .55); pointer-events: none; }
html[data-a11y-contrast] .hero :is(h1, p, .eyebrow, .date) { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
html[data-a11y-contrast="high"] .page a:not(.btn, .spot-row, .d, .over-day, .card-link, .cam-link, .news-link) { text-decoration: underline; text-underline-offset: 3px; }
html[data-a11y-contrast="high"] :is(.spot, .stats > div, .chip, .card, .news-item, .reach, .a11y-tile) { border-color: var(--ink); }

/* Accessibility statement */
.statement { max-width: min(68ch, 100%); display: grid; gap: 12px; }
.statement h2 { font-size: 22px; color: var(--ocean); margin-top: 14px; }
@media (prefers-color-scheme: dark) { .statement h2 { color: var(--sea-text); } }
.statement p, .statement ul { margin: 0; }
.statement li + li { margin-top: 6px; }
.link-btn { font: inherit; color: var(--sea-text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Footer legal links */
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--sea-text); }

/* Cookie banner: a slim bar at the bottom until someone chooses. The page gets room underneath so nothing hides behind it. */
.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.consent-bar[hidden] { display: none; }
.consent-bar-inner { pointer-events: auto; max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 12px 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px 12px 18px; box-shadow: 0 10px 40px -8px rgba(6, 23, 29, .35); animation: consent-in .35s cubic-bezier(.2,.9,.3,1); }
@keyframes consent-in { from { transform: translateY(20px); opacity: 0; } }
.consent-bar p { margin: 0; font-size: 14px; line-height: 1.4; flex: 1; }
.consent-bar .consent-actions { flex: none; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consent-actions .btn { text-align: center; }
.consent-manage { font: 700 14px var(--body); color: var(--sea-text); padding: 8px 6px; }
@media (max-width: 700px) {
  .consent-bar { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .consent-bar-inner { display: grid; gap: 10px; padding: 12px 14px; }
  .consent-bar p { font-size: 13px; }
  .consent-bar .consent-actions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .consent-bar .btn { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .consent-bar-inner { animation: none; } }

/* Cookie settings: the window and the cookie policy page share these switches. */
.consent-sheet { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.consent-sheet > p { margin: 0 0 6px; padding-right: 30px; }
.consent-choices { display: grid; gap: 0; }
.consent-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.consent-row h3 { font-size: 17px; margin-bottom: 4px; }
.consent-row p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.consent-always { font: 700 12px var(--body); color: var(--go); background: var(--foam); border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.consent-choices > p { margin: 14px 0; }
.consent-switch { appearance: none; -webkit-appearance: none; margin: 0; width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s ease; }
.consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s cubic-bezier(.2,.9,.3,1.2); }
.consent-switch:checked { background: var(--sea); }
.consent-switch:checked::after { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .consent-switch, .consent-switch::after { transition: none; } }
@media (max-width: 700px) { .consent-sheet { width: 100vw; max-height: 92dvh; } .consent-choices .consent-actions { display: grid; grid-template-columns: 1fr 1fr; } .consent-choices .consent-actions .btn:first-child { grid-column: 1 / -1; } }

/* Live cams wait for a tap when videos are off in cookie settings. */
.cam-ask { aspect-ratio: 16 / 9; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 14px; text-align: center; background: linear-gradient(160deg, var(--sky3), var(--ocean)); color: #fff; font-size: 14px; line-height: 1.4; }
.cam-ask p { margin: 0; max-width: 34ch; }
.cam-ask .consent-actions { justify-content: center; }
.cam-ask .btn.quiet { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.55); }

/* Privacy policy, terms and cookie policy */
.legal { max-width: 72ch; width: 100%; min-width: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; font-size: 16px; line-height: 1.65; }
.legal-head { display: grid; gap: 4px; }
.legal-head p { margin: 0; }
.legal-lead { font-size: 17px; margin: 0; }
.legal section { scroll-margin-top: 80px; }
.legal h2 { font-size: 21px; color: var(--ocean); margin: 0 0 8px; }
.legal h3 { font-size: 17px; margin: 14px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.legal-toc h2 { font-size: 16px; color: var(--ink); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 24px; font-size: 15px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal-callout { background: var(--foam); border-left: 4px solid var(--sun); border-radius: 12px; padding: 14px 16px; }
.legal-callout h2 { font-size: 18px; color: var(--ink); }
.legal-callout p { margin: 0; }
.legal-caps { font-size: 14px; letter-spacing: .01em; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table th { font-weight: 700; background: var(--foam); }
.legal-table code { font-size: 12.5px; overflow-wrap: anywhere; }
.legal-settings { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
@media (prefers-color-scheme: dark) { .legal h2 { color: var(--sea-text); } .legal-toc h2, .legal-callout h2 { color: var(--ink); } }
@media (max-width: 600px) {
  /* On a phone each cookie is its own little card instead of a table to scroll sideways. */
  .legal-table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .legal-table tbody tr:last-child { border-bottom: 0; }
  .legal-table td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 0; border: 0; }
  .legal-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 13px; }
}
/* Contact page */
.contact-card { max-width: 640px; }
.contact-card .checkin { max-width: none; gap: 18px; }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .contact-pair { grid-template-columns: 1fr; } }
.contact-card textarea { min-height: 150px; resize: vertical; }
.contact-card [aria-invalid="true"] { border-color: var(--skip); }

/* Admin area: messages and users */
.acct-tabs a { position: relative; }
.acct-tabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.tab-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--sun); color: #3b2400; font-size: 12px; line-height: 20px; text-align: center; vertical-align: 1px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 18px; }
.admin-tabs a, .admin-filter a { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--foam); border-radius: 99px; padding: 7px 14px; transition: background .15s ease, color .15s ease; }
.admin-tabs a[aria-current="page"], .admin-filter a[aria-current="page"] { background: var(--sea-text); color: var(--bg); }
.admin-filter a[aria-current="page"] .badge { background: rgba(255,255,255,.25); color: inherit; }
.admin-filter { display: flex; gap: 6px; }
.back-link { font-weight: 700; text-decoration: none; }
.msg-list, .user-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.msg-list a, .user-list a { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.msg-list a:hover, .user-list a:hover { border-color: var(--sea); }
.msg-list li.new a { border-left-color: var(--sun); }
.msg-top { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.msg-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-when { flex: none; font-size: 13px; color: var(--muted); }
.msg-topic { font-size: 14px; font-weight: 700; color: var(--sea-text); }
.new-badge { background: var(--sun); color: #3b2400; margin-right: 4px; }
.msg-preview { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.msg-list li:not(.new) .msg-from { font-weight: 500; }
.msg-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 12px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-actions form { margin: 0; }
.btn.danger { color: var(--skip); }
.user-search { display: flex; gap: 8px; margin-bottom: 12px; }
.user-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.user-list a { grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; border-left-width: 1px; }
.user-list .avatar { width: 40px; height: 40px; }
.user-main { display: grid; min-width: 0; }
.user-main .badge { margin-left: 6px; }
.user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta { display: grid; text-align: right; }
@media (max-width: 560px) { .user-list a { grid-template-columns: 40px 1fr; } .user-meta { grid-column: 2; text-align: left; } }
.user-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.user-head h2 { font-size: 21px; overflow-wrap: anywhere; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .msg-list li, .user-list li { animation: acct-in .35s ease both; }
}

/* "Put Kai Calling on your phone" card */
.home-tip { margin-bottom: 16px; }
.home-tip-welcome { border: 2px solid var(--sea); }
.home-tip-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.home-tip-head p { margin: 4px 0 0; }
.home-tip-icon { border-radius: 12px; box-shadow: 0 2px 8px rgba(13,43,54,.2); }
.home-tip-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.home-tip-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.home-tip-steps h3 { font-size: 16px; margin: 0 0 6px; }
.home-tip-steps ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.home-tip-steps[hidden], .home-tip p[hidden] { display: none; }
.home-tip-glyph { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--foam); color: var(--sea-text); vertical-align: middle; }
.home-tip-glyph svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.home-tip-now { margin: 0 0 8px; }
.home-tip-later, .home-tip-desk, .home-tip-done { margin: 0; }

/* "We never sell or share your information" */
.privacy-promise { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--foam); color: var(--ink); font-size: 14px; line-height: 1.45; max-width: 640px; }
.privacy-promise svg { flex: none; color: var(--sea-text); margin-top: 1px; }
.privacy-promise a { white-space: nowrap; }
.legal-promise { margin: 18px 0 22px; padding: 16px 18px; border-radius: 16px; background: var(--foam); border-left: 4px solid var(--sea); }
.legal-promise h2 { margin: 0 0 6px; font-size: 18px; }
.legal-promise p { margin: 6px 0 0; }
.foot-promise { display: block; margin-top: 6px; font-weight: 700; }

/* reCAPTCHA: Google's floating badge would sit over the page on phones; the form carries its notice instead. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin: 0; }

/* Busy buttons and loading (kaiBusy in site.js): the pressed button dims a little and shows a small spinner in front
   of its words (or in place of a one-letter mark like ✕); icon buttons pulse their icon instead. With less motion the spinner holds still and nothing pulses. */
.is-busy { cursor: progress; pointer-events: none; opacity: .85; }
.busy-spin { display: inline-block; flex: none; width: .95em; height: .95em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -.12em; margin-right: .4em; opacity: .9; }
.busy-swap .busy-spin { margin-right: 0; }
.busy-swap { display: inline-grid; place-items: center; }
.busy-oops { display: inline-block; margin: 4px 0 0 8px; color: var(--skip); font: 600 13px var(--body); }
@media (prefers-reduced-motion: no-preference) {
  .busy-spin { animation: busy-spin .7s linear infinite; }
  .busy-pulse svg { animation: busy-pulse 1s ease-in-out infinite; }
  @keyframes busy-spin { to { transform: rotate(360deg); } }
  @keyframes busy-pulse { 50% { opacity: .35; } }
}
