/* Last Minute Tee — the whole of the brand, in one file.
 *
 * Source of truth: docs/brand/ (brand guide, tokens, copy and screenshots from
 * Claude Design, Sep 2026). Light mode only: white page, near-black text, one
 * orange accent. Geist is the only font.
 *
 * Rules worth remembering, from the brand guide:
 *   - Orange is for the logo, one highlighted word, badges and step 3's number.
 *     Never small text on white — it fails contrast.
 *   - Buttons are black with white text.
 *   - Nothing smaller than 16px; body text never below 18px. The reader is a
 *     60-year-old golfer on a phone in a car park.
 *
 * Two layers: the tokens with Pico's variables pointed at them (so the
 * signed-in pages match without rewriting their markup), then the landing
 * page's own components.
 */

:root {
  /* --- the brand (docs/brand/tokens.css) -------------------------------- */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-muted: #52525b;
  --color-text-body: #3f3f46;
  --color-accent: #ff4f00;
  --color-panel: #f4f3ef;
  --color-border: #e7e5e0;
  --color-border-strong: #d6d3cc;
  --color-button: #111111;
  --color-button-text: #ffffff;
  --color-inverse-bg: #111111;
  --color-inverse-text: #ffffff;
  --color-inverse-muted: #d4d4d8;
  /* Status, for the admin page's limits (Oct 2026). Each passes 4.5:1 on white. */
  --color-ok: #15803d;
  --color-warn: #b45309;
  --color-bad: #b91c1c;
  /* --- end of the brand ------------------------------------------------- */

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Pico draws the signed-in pages. Pointing its variables at ours carries
     the brand onto them without touching their markup. */
  --pico-font-family: var(--font);
  --pico-font-size: 18px;
  --pico-background-color: var(--color-bg);
  --pico-color: var(--color-text-body);
  --pico-h1-color: var(--color-text);
  --pico-h2-color: var(--color-text);
  --pico-h3-color: var(--color-text);
  --pico-muted-color: var(--color-text-muted);
  --pico-muted-border-color: var(--color-border);
  --pico-card-background-color: var(--color-bg);
  --pico-card-border-color: var(--color-border);
  --pico-card-sectioning-background-color: var(--color-panel);
  --pico-card-box-shadow: none;
  --pico-form-element-background-color: var(--color-bg);
  --pico-form-element-border-color: var(--color-border-strong);
  --pico-form-element-focus-color: var(--color-text);
  --pico-border-radius: var(--radius);
  --pico-primary: var(--color-text);
  --pico-primary-background: var(--color-button);
  --pico-primary-hover-background: #2a2a2a;
  --pico-primary-border: var(--color-button);
  --pico-primary-hover-border: #2a2a2a;
  --pico-primary-inverse: var(--color-button-text);
  --pico-primary-underline: rgba(17, 17, 17, 0.35);
  --pico-primary-focus: rgba(255, 79, 0, 0.35);
  --pico-form-element-spacing-vertical: 0.7rem;
}

html { color-scheme: light; }

body {
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-accent); color: #fff; }
*:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font); color: var(--color-text); text-wrap: balance; }
p, li { text-wrap: pretty; }

/* --- shared pieces -------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 28px; width: auto; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  width: auto;
  padding: 0 26px;
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-button-text);
  background: var(--color-button);
  border: 2px solid var(--color-button);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition-property: background-color, border-color, transform;
  transition-duration: 0.15s, 0.15s, 0.1s;
  transition-timing-function: ease;
}
.btn:hover { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-ghost { background: var(--color-bg); color: var(--color-text); border-color: var(--color-text); }
.btn-ghost:hover { background: var(--color-panel); color: var(--color-text); border-color: var(--color-text); }
.btn-small { min-height: 48px; font-size: 16px; padding: 0 18px; }
.btn-block { width: 100%; }
.btn-inverse { background: #fff; color: var(--color-text); border-color: #fff; }
.btn-inverse:hover { background: var(--color-panel); color: var(--color-text); border-color: var(--color-panel); }

.eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-panel);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 24px;
}
.tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.intro { font-size: clamp(19px, 1.6vw, 21px); color: var(--color-text-body); margin: 0; max-width: 56ch; }

.band { padding-block: clamp(64px, 10vw, 112px); }
.band-panel { background: var(--color-panel); }
.band-dark { background: var(--color-inverse-bg); color: var(--color-inverse-muted); }
.band-dark h2, .band-dark h3 { color: var(--color-inverse-text); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}

/* --- the header ----------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.site-nav { display: none; gap: 28px; }
.site-nav a { font-size: 16px; font-weight: 500; color: var(--color-text); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-button {
  background: none; border: none; padding: 0; margin: 0; width: auto;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--color-text); cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* --- hero ------------------------------------------------------------------ */

.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }

.hero h1 {
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero .intro { margin-bottom: 32px; }

/* The search. One box, postcode or course name, results underneath. */
.finder label { display: block; font-size: 16px; font-weight: 600; color: var(--color-text); margin: 0 0 10px; }
.finder-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 2px solid var(--color-text);
  border-radius: calc(var(--radius) + 4px);
  background: var(--color-bg);
}
.finder-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--color-text);
  box-shadow: none;
}
.finder-row input:focus { outline: none; box-shadow: none; }
.finder-row .btn { flex: none; width: auto; margin: 0; min-height: 52px; }

/* Suggestions float over the page rather than pushing it down (Rory, 1 Oct 2026). */
.finder-box { position: relative; }
.finder-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 0; background: var(--color-bg);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
}
.finder-results[hidden] { display: none; }
.finder-results li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-border); }
.finder-results li:last-child { border-bottom: none; }
.finder-results a,
.finder-results button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; margin: 0; padding: 14px 16px; min-height: 56px;
  background: var(--color-bg); border: none; border-radius: 0; text-align: left;
  font: inherit; font-size: 18px; color: var(--color-text); cursor: pointer;
}
.finder-results a:hover, .finder-results a:focus,
.finder-results button:hover, .finder-results button[aria-pressed="true"] { background: var(--color-panel); }
.finder-results a { text-decoration: none; }
.finder-results .where { font-size: 16px; color: var(--color-text-muted); white-space: nowrap; }
.finder-results .note { padding: 14px 16px; font-size: 16px; color: var(--color-text-muted); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 16px; color: var(--color-text-muted); }
.chip {
  width: auto; margin: 0; min-height: 44px; padding: 0 14px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--color-text); background: var(--color-bg); color: var(--color-text); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip-location { border-color: var(--color-text); }
.chip-location::before { content: "\25CE"; margin-right: 6px; color: var(--color-accent); }

.small-print { font-size: 16px; color: var(--color-text-muted); margin: 18px 0 0; }
.hero-signup { font-size: 17px; margin: 10px 0 0; }
.hero-signup a { font-weight: 600; color: var(--color-text); }

/* The phone. A drawn stand-in for the demo clip, and the frame the clip
   plays in once it exists. */
.phone {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
  background: #1c1c1e;
  border: 10px solid #111;
  border-radius: 48px;
  box-shadow: 0 30px 60px -20px rgba(17, 17, 17, 0.35);
  overflow: hidden;
  color: #fff;
}
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-time { text-align: center; padding-top: 42px; }
.phone-time .date { font-size: 17px; opacity: 0.85; }
.phone-time .clock { font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; margin-top: 4px; }
.notice {
  margin: 14px 12px 0;
  padding: 12px 14px;
  background: rgba(58, 58, 60, 0.92);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 10px;
  font-size: 16px;
  line-height: 1.35;
}
.notice img { width: 36px; height: 36px; border-radius: 9px; grid-row: span 3; }
.mail-icon { width: 36px; height: 36px; border-radius: 9px; grid-row: span 3;
             display: inline-flex; align-items: center; justify-content: center;
             background: linear-gradient(#3aa0ff, #1a73e8); }
.notice .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.75; }
.notice strong { font-weight: 600; }
.notice .go {
  display: inline-block; margin-top: 8px; padding: 6px 12px;
  background: #fff; color: #111; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.notice.earlier { opacity: 0.75; }
@media (max-width: 959px) { .notice.earlier { display: none; } }

/* --- how it works ---------------------------------------------------------- */

.steps { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 18px 0 8px; }
.step p { margin: 0 0 20px; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--color-text); color: var(--color-text);
  font-size: 18px; font-weight: 700;
}
.num.hot { background: var(--color-accent); border-color: var(--color-accent); color: #111; }

.mini { background: var(--color-panel); border-radius: var(--radius); padding: 16px; font-size: 16px; }
/* Seven equal columns, so the week never wraps however narrow the card gets. */
.mini-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.mini-days span {
  aspect-ratio: 1; max-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--color-bg); border: 1px solid var(--color-border-strong); color: var(--color-text); font-weight: 500;
}
.mini-days span.on { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.mini-bands { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-bands span {
  text-align: center; padding: 8px 6px; border-radius: 8px;
  background: var(--color-bg); border: 1px solid var(--color-border-strong); color: var(--color-text); font-weight: 500;
}
.mini-bands span.on { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.mini-row { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--color-bg); border-radius: 8px; margin-top: 6px; color: var(--color-text); }
.mini-row span:last-child { color: var(--color-text-muted); }
.mini-msg { background: var(--color-bg); border-radius: 12px; padding: 12px 14px; color: var(--color-text); }
.mini-msg a { display: inline-block; margin-top: 6px; color: var(--color-text); font-weight: 600; }

/* --- courses --------------------------------------------------------------- */

/* The landing page's one-line nod to the course list. */
.courses-strip { padding-top: 40px; padding-bottom: 40px; }
.courses-strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.courses-strip p { margin: 0; font-size: 19px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.courses-head { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: end; margin-bottom: 36px; }
@media (min-width: 900px) { .courses-head { grid-template-columns: 1fr 360px; } }
.courses-head label { display: block; font-size: 16px; font-weight: 600; color: var(--color-text); margin: 0 0 8px; }
.courses-head input { margin: 0; min-height: 52px; font-size: 18px; }

.areas { display: grid; gap: 16px; grid-template-columns: 1fr; }
.section-label { font-size: 16px; font-weight: 600; color: var(--color-text-muted); margin: 40px 0 14px; }
#areas > .section-label:first-child { margin-top: 0; }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.area-head h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.area-head span { font-size: 16px; color: var(--color-text-muted); white-space: nowrap; }
.area ul { list-style: none; margin: 0; padding: 0; }
.area li { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.area li a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; min-height: 52px;
  color: var(--color-text); text-decoration: none; font-size: 18px;
}
.area li a::after { content: "→"; color: var(--color-text-muted); }
.area li a:hover { text-decoration: underline; }
.area-ask { background: var(--color-panel); border-color: var(--color-panel); }
.area-ask p { margin: 0 0 18px; }
.no-match { font-size: 18px; color: var(--color-text-muted); }

/* --- proof ------------------------------------------------------------------ */

.proof-grid { display: grid; gap: 48px; grid-template-columns: 1fr; margin-top: 48px; align-items: start; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
.band-dark .eyebrow { color: var(--color-accent); }
.band-dark .intro { color: var(--color-inverse-muted); }
.stat { padding: 22px 0; border-top: 1px solid #2c2c2c; }
.stat:first-child { border-top: none; padding-top: 0; }
.stat .big { display: block; font-size: clamp(34px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.stat .what { font-size: 18px; color: var(--color-inverse-muted); }
.alerts-box { background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); }
.alerts-box h3 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.alert-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #2c2c2c; }
.alert-line strong { display: block; color: #fff; font-weight: 600; font-size: 18px; }
.alert-line small { font-size: 16px; color: var(--color-inverse-muted); }
.badge { flex: none; font-size: 16px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #2c2c2c; color: var(--color-inverse-muted); }
.badge.hot { background: var(--color-accent); color: #111; }
.alerts-box .footnote { margin: 12px 0 0; font-size: 16px; color: #a1a1aa; }

/* --- trust ------------------------------------------------------------------ */

.trust { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 8px; }
.trust p { margin: 0; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--color-panel); color: var(--color-text);
}
.founder { margin-top: 40px; background: var(--color-inverse-bg); border-color: var(--color-inverse-bg); color: var(--color-inverse-muted); }
.founder blockquote { margin: 0; padding: 0; border: none; font-size: clamp(21px, 2vw, 24px); line-height: 1.45; font-weight: 500; color: #fff; }
.founder footer { margin: 16px 0 0; font-size: 16px; color: var(--color-inverse-muted); }

/* --- pricing ------------------------------------------------------------------ */

.pricing-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.pricing-head .intro { margin: 0 auto; }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 21px; font-weight: 600; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan .price { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--color-text); }
.plan .per { font-size: 18px; color: var(--color-text-muted); }
.plan .sub { font-size: 16px; color: var(--color-text-muted); margin: 8px 0 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { list-style: none; position: relative; padding: 6px 0 6px 30px; font-size: 18px; color: var(--color-text-body); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 6px; font-weight: 700; color: var(--color-text); }
.plan-hot { background: var(--color-inverse-bg); border-color: var(--color-inverse-bg); color: var(--color-inverse-muted); }
.plan-hot h3, .plan-hot .price, .plan-hot li::before { color: #fff; }
.plan-hot .per, .plan-hot .sub, .plan-hot li { color: var(--color-inverse-muted); }
.save { font-size: 16px; font-weight: 600; background: var(--color-accent); color: #111; border-radius: 999px; padding: 3px 12px; }
.plan-mid { border: 2px solid var(--color-text); }
.plans-note { text-align: center; font-size: 16px; color: var(--color-text-muted); margin: 24px 0 0; }
/* On a phone the best value comes first. */
@media (max-width: 899px) {
  .plan-hot { order: -2; }
  .plan-mid { order: -1; }
}

/* --- questions ------------------------------------------------------------------ */

.faq-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq-grid .h2 { font-size: clamp(36px, 4.4vw, 52px); }
.faq details { border-top: 1px solid var(--color-border); padding: 0; margin: 0; }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-size: 20px; font-weight: 600; color: var(--color-text); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 400; color: var(--color-text-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; }

/* --- sign up ------------------------------------------------------------------ */

.signup { background: var(--color-panel); border-radius: 28px; text-align: center; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.signup .h2 { font-size: clamp(32px, 4.4vw, 48px); }
.signup .intro { margin: 0 auto 32px; }
.google { background: #fff; color: var(--color-text); border-color: var(--color-border-strong); }
.google:hover { background: #fff; color: var(--color-text); border-color: var(--color-text); }
.google svg { width: 22px; height: 22px; }

/* --- footer ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--color-border); margin-top: clamp(64px, 10vw, 112px); padding-block: 44px; font-size: 16px; color: var(--color-text-muted); }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr auto; } }
.site-footer p { margin: 12px 0 0; }
.site-footer .legal-line { font-size: 16px; max-width: 70ch; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer-links a { color: var(--color-text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* --- the signed-in pages ------------------------------------------------------ */

main.container { padding-block: 2rem; }

.flash { padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; word-break: break-word; font-size: 18px; }
.flash.ok { background: #ecfdf3; color: #14532d; border: 1px solid #bbf7d0; }
.flash.error { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }

.watch {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--color-border);
}
.watch:last-child { border-bottom: none; }
.watch strong { display: block; color: var(--color-text); }
.watch small { color: var(--color-text-muted); font-size: 16px; }
.watch form { margin: 0; }
.watch button { width: auto; padding: 0.4rem 0.9rem; font-size: 16px; margin: 0; }

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* basis 0 + min-width 0 so three inputs shrink to fit a phone instead of
   pushing the whole page sideways */
.row > * { flex: 1 1 0; min-width: 5rem; }

.status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.status form { margin: 0; }
.status button { width: auto; margin: 0; }

.dot { font-weight: 600; }
.on { color: #15803d; }
.off { color: #b91c1c; }

small { font-size: 16px; }

/* --- long reading: privacy, terms, the guide -------------------------------- */

.prose { max-width: 760px; padding-block: clamp(40px, 7vw, 80px); }
.prose h1 { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 10px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p, .prose li { font-size: 19px; line-height: 1.6; color: var(--color-text-body); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; list-style: disc; }
.prose ol li { list-style: decimal; margin-bottom: 14px; }
.prose h3 { font-size: 21px; font-weight: 600; margin: 28px 0 8px; }
.prose a { color: var(--color-text); text-decoration: underline; }
/* A button inside an article is still a button: white on black, no underline. */
.prose a.btn { color: var(--color-button-text); text-decoration: none; }
.prose .updated { font-size: 16px; color: var(--color-text-muted); margin: 0 0 28px; }
.prose .standfirst { font-size: clamp(20px, 1.8vw, 22px); color: var(--color-text-body); }
.prose .callout { background: var(--color-panel); border-radius: var(--radius-lg); padding: 24px 28px; margin: 36px 0; }
.prose .callout p { margin: 0 0 16px; }

/* --- the add-a-watch form (Phase 12) ---------------------------------------- */

.watch-form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.watch-form legend { font-weight: 600; color: var(--color-text); font-size: 20px; margin-bottom: 0.25rem; }
.watch-form .hint { color: var(--color-text-muted); font-size: 16px; margin: 0 0 0.75rem; }
.watch-form .hint.warn { color: #b45309; }
.watch-form .label { color: var(--color-text); font-weight: 500; margin: 1.25rem 0 0.5rem; }
.watch-form .label small { color: var(--color-text-muted); font-weight: 400; }
.watch-form [hidden] { display: none !important; }

/* The course list: a short scrolling box, so 30 courses don't push the rest
   of the form off the screen. */
.pick-list {
  max-height: 16rem; overflow-y: auto;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius);
  padding: 0.25rem 0.85rem;
}
.pick-list label { display: flex; width: 100%; align-items: center; gap: 0.6rem; padding: 0.55rem 0; margin: 0;
                   border-bottom: 1px solid var(--color-border); }
.pick-list label:last-child { border-bottom: none; }
.pick-list input { margin: 0; flex: none; }

/* The presets: big, tappable cards. Two across on a phone, three on a laptop. */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; }
.choice { display: block; width: 100%; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; height: 100%; padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius);
}
.choice strong { display: block; color: var(--color-text); font-size: 17px; }
.choice small { display: block; color: var(--color-text-muted); font-size: 15px; margin-top: 2px; }
.choice input:checked + span { border-color: var(--color-text); background: var(--color-panel);
                               box-shadow: inset 0 0 0 1px var(--color-text); }
.choice input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Days and time bands: pills that fill in when ticked. */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills label { margin: 0; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-block; min-width: 3.2rem; text-align: center;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--color-border-strong); color: var(--color-text); font-size: 16px;
}
.pills input:checked + span { background: var(--color-text); border-color: var(--color-text);
                              color: var(--color-button-text); }
.pills input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.watch-form details { margin: 1rem 0 0; }
.watch-form summary { font-size: 16px; color: var(--color-text-muted); }
.watch-form .players { max-width: 12rem; }

/* --- the search page: map, circle, list (Phase 13) ------------------------- */

.find { padding-block: clamp(20px, 4vw, 40px) clamp(48px, 8vw, 88px); }
.find-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* Grid items won't shrink below their content by default, which pushed the
   page wider than a phone. */
.find-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .find-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
  .find-map-col { position: sticky; top: 16px; }
}
.find-search { margin: 0; }
.find-where { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
              flex-wrap: wrap; margin: 12px 2px 8px; font-size: 17px; color: var(--color-text); font-weight: 500; }
.find-others { margin: 0 2px 10px; font-size: 16px; color: var(--color-text-muted); }
.find-map {
  height: clamp(300px, 52vh, 560px); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong); overflow: hidden; z-index: 0;
}
.find-tip { font-size: 15px; color: var(--color-text-muted); margin: 6px 2px 0; }

.radius { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.radius label { flex: none; margin: 0; font-size: 17px; color: var(--color-text); }
.radius input[type=range] { flex: 1 1 auto; margin: 0; accent-color: var(--color-accent); }

/* The centre pin: an orange teardrop, so it can't be mistaken for a course. */
.centre-pin span {
  display: block; width: 28px; height: 28px; background: var(--color-accent);
  border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.find-list { list-style: none; margin: 0; padding: 0;
             border: 1px solid var(--color-border-strong); border-radius: var(--radius); }
.find-list:empty { display: none; }
.find-list li { list-style: none; margin: 0; border-bottom: 1px solid var(--color-border); }
.find-list li:last-child { border-bottom: none; }
.find-list label { display: flex; align-items: center; gap: 12px; width: 100%;
                   margin: 0; padding: 12px 14px; cursor: pointer; }
.find-list input { flex: none; margin: 0; }
.find-list .name { flex: 1 1 auto; min-width: 0; }
.find-list .name strong { display: block; color: var(--color-text); font-weight: 500; }
.find-list .name small { display: block; color: var(--color-text-muted); font-size: 15px; }
.find-list .miles { flex: none; font-size: 15px; color: var(--color-text-muted); }
.find-empty { padding: 14px 16px; background: var(--color-panel); border-radius: var(--radius);
              font-size: 17px; color: var(--color-text-body); }

/* Pico styles anything with role="button", which includes Leaflet's zoom
   controls. Give them back their own look. */
.find-map .leaflet-control-zoom a,
.search-map .leaflet-control-zoom a {
  width: 34px; height: 34px; line-height: 32px; padding: 0; margin: 0;
  font-size: 20px; font-weight: 600; text-align: center; text-decoration: none;
  color: var(--color-text); background: #fff; border: none; border-radius: 0;
  box-shadow: none;
}
.find-map .leaflet-control-zoom,
.search-map .leaflet-control-zoom { border-radius: 10px; overflow: hidden;
                                  border: 1px solid var(--color-border-strong); }
.radius input[type=range] {
  --pico-range-thumb-color: var(--color-accent);
  --pico-range-thumb-active-color: var(--color-accent);
  --pico-range-active-border-color: var(--color-border-strong);
}


/* --- the member's pages: the frame (Phase 14) -------------------------------
 *
 * Same tokens as the landing page. On a phone: a tab bar along the bottom. On a
 * laptop: the same four links in the header. Content kept to a comfortable
 * reading width; the admin page asks for the wide one.
 */

.app { padding-block: clamp(24px, 5vw, 48px) clamp(48px, 8vw, 80px); }
.app a:not(.btn):not(.offer):not(.course-row) { color: var(--color-text); text-decoration-color: rgba(17, 17, 17, 0.35);
                                               text-underline-offset: 3px; }
.app-wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.app-wrap.wide { max-width: var(--wrap); }

.app-nav a { position: relative; color: var(--color-text-muted); }
.app-nav a:hover { color: var(--color-text); text-decoration: none; }
.app-nav a[aria-current="page"] { color: var(--color-text); }
.app-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  border-radius: 2px; background: var(--color-accent);
}

/* The account: a round initial, like every app's. 44px so a thumb finds it. */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-text); color: #fff; font-weight: 600; font-size: 18px;
  text-decoration: none; transition-property: transform; transition-duration: 0.1s;
}
.avatar:hover { color: #fff; background: #2a2a2a; }
.avatar:active { transform: scale(0.96); }
.avatar[aria-current="page"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-accent); }

/* The tab bar. Phones only; fills the width; sits above the iPhone's home bar. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 -1px 0 rgba(17, 17, 17, 0.08), 0 -8px 24px rgba(17, 17, 17, 0.05);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 64px; padding: 6px 2px;
  font-size: 16px; font-weight: 500; line-height: 1.1;
  color: var(--color-text-muted); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tabbar a[aria-current="page"] { color: var(--color-text); }
.tabbar a[aria-current="page"] svg { color: var(--color-accent); }
.tabbar svg { transition-property: transform; transition-duration: 0.1s; }
.tabbar a:active svg { transform: scale(0.9); }
body.has-tabs { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body.has-tabs { padding-bottom: 0; }
}
/* On a phone the account initial and the logo are all the header needs. */
@media (max-width: 899px) {
  body.has-tabs .site-header .wrap { min-height: 64px; }
}

/* Page headings. */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
             gap: 16px; margin: 0 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em;
                line-height: 1.08; margin: 0; }
.page-head p { margin: 8px 0 0; color: var(--color-text-muted); font-size: 18px; }
.app h2.section { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 14px; }

/* A panel: lifted with layered soft shadows rather than a hard border. */
.panel {
  background: var(--color-bg); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 24px);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 1px 2px rgba(17, 17, 17, 0.04),
              0 8px 24px rgba(17, 17, 17, 0.04);
}
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 20px; margin: 0 0 6px; }
.panel p:last-child { margin-bottom: 0; }
.muted { color: var(--color-text-muted); }
.tnum { font-variant-numeric: tabular-nums; }

.prose-app p, .prose-app li { font-size: 18px; line-height: 1.6; color: var(--color-text-body); }
.prose-app h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 10px; }
.prose-app a { color: var(--color-text); }

/* --- settings rows, the switch, plans (Phase 14) ---------------------------- */

.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting > div { flex: 1 1 auto; min-width: 0; }
.setting h3 { margin: 0 0 4px; }
.setting p { margin: 0; font-size: 16px; }
.setting form { margin: 0; flex: none; }

/* An on/off switch. A real button underneath, so it works without script. */
button.switch, a.switch {
  display: inline-block; position: relative; flex: none; width: 56px; height: 34px; margin: 0; padding: 0;
  border: none; border-radius: 999px; background: #d4d4d8; cursor: pointer;
  transition-property: background-color; transition-duration: 0.2s;
}
a.switch { text-decoration: none; }
.switch span {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition-property: transform; transition-duration: 0.2s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.switch[aria-checked="true"] { background: #16a34a; }
.switch[hidden] { display: none; }
.switch[aria-checked="true"] span { transform: translateX(22px); }
.switch::before { content: ""; position: absolute; inset: -6px; } /* a bigger target than it looks */

.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px;
         border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 16px; font-weight: 600; }

.ticks { list-style: none; padding: 0; margin: 8px 0 16px; }
.ticks li { list-style: none; position: relative; padding-left: 28px; margin: 6px 0; font-size: 17px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--color-accent); font-weight: 700; }

.offers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.offer {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius);
  text-decoration: none; color: var(--color-text);
  box-shadow: 0 0 0 1.5px var(--color-border-strong);
  transition-property: box-shadow, transform; transition-duration: 0.15s, 0.1s;
}
.offer:hover { box-shadow: 0 0 0 2px var(--color-text); color: var(--color-text); }
.offer:active { transform: scale(0.96); }
.offer .price { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.offer small { color: var(--color-text-muted); font-size: 15px; }

.account-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 12px; }
.account-foot form { margin: 0; }

.contact-email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.contact-email h3 { margin: 0 0 2px; }
.contact-email p { margin: 0; }
.contact-form label { font-weight: 500; color: var(--color-text); }
.contact-form textarea { margin-top: 6px; }
.contact-form .btn { width: auto; }
.contact-form [hidden] { display: none !important; }

.steps-list { padding-left: 1.3em; }
.steps-list li { margin-bottom: 12px; }
.promise-list { padding-left: 1.2em; }
.promise-list li { list-style: disc; margin-bottom: 10px; }
.founder p:first-child { font-size: 20px; color: var(--color-text); }

/* The course list on its own page. */
.filter { margin: 0 0 8px; }
.course-group { margin-top: 14px; }
.course-group .area-head { margin-bottom: 4px; }
.course-rows { list-style: none; margin: 0; padding: 0; }
.course-rows li { list-style: none; display: flex; align-items: center; justify-content: space-between;
                  gap: 12px; padding: 10px 0; border-top: 1px solid var(--color-border); margin: 0; }
.course-rows li[hidden] { display: none; }
.course-row { flex: 1 1 auto; min-width: 0; text-decoration: none; color: var(--color-text); }
.course-row strong { display: block; font-weight: 500; }
.course-row small { display: block; color: var(--color-text-muted); font-size: 15px; }
.course-rows .btn { flex: none; min-height: 44px; }

/* --- the watches page (Phase 14) ------------------------------------------- */

.live { display: flex; align-items: center; gap: 8px; }
.dot-status { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-status.on { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16); }
.dot-status.off { background: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16); }
.page-head .btn svg { margin-left: -4px; }

.watch-cards { display: grid; gap: 14px; }

.watch-card {
  margin: 0; padding: 18px 18px 16px; border-radius: var(--radius-lg); background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 1px 2px rgba(17, 17, 17, 0.04),
              0 8px 24px rgba(17, 17, 17, 0.05);
}
.watch-card.done { opacity: 0.6; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07); }
.wc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wc-head h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 2px 0 14px; }
/* One course per line: "Richmond Park – Duke's · Richmond Park – Prince's" ran together. */
.wc-courses span { display: block; }
.wc-courses span + span { margin-top: 2px; }
.wc-head form { margin: -6px -8px 0 0; flex: none; }
/* "button." so it outranks Pico's own button rules, which stretched it tall. */
button.wc-remove {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--color-text-muted); cursor: pointer;
  transition-property: background-color, color, transform; transition-duration: 0.15s, 0.15s, 0.1s;
}
button.wc-remove:hover { background: var(--color-panel); color: var(--color-text); }
button.wc-remove:active { transform: scale(0.96); }

/* The week strip: seven days, the chosen ones filled. */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 0 0 12px; max-width: 320px; }
.week span {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-height: 40px;
  border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--color-text-muted);
  background: var(--color-panel);
}
.week span.on { background: var(--color-text); color: #fff; }

.wc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  font-size: 16px; font-weight: 500; color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px var(--color-border-strong);
}
.tag-chip.strong { background: var(--color-text); color: #fff; box-shadow: none; }
.tag-chip.quiet { color: var(--color-text-muted); box-shadow: none; background: var(--color-panel); }
.wc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
           margin: 12px 0 0; font-size: 16px; color: var(--color-text-muted); }
.wc-foot p { margin: 0; }
.wc-edit { flex: none; }
.wc-alert { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 16px;
            line-height: 1.45; background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; }

.premium-line { margin: 28px 0 0; padding: 14px 16px; border-radius: var(--radius);
                background: var(--color-panel); font-size: 17px; color: var(--color-text-body); }
.premium-line a { color: var(--color-text); font-weight: 600; }

.empty { text-align: center; padding: clamp(28px, 6vw, 44px) clamp(18px, 4vw, 32px); }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
              border-radius: 50%; background: #fff3ec; color: var(--color-accent); margin-bottom: 14px; }
.empty h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.empty p.muted { max-width: 40ch; margin: 0 auto 22px; }

.add-list { margin-top: 28px; }
.add-list > summary, .finished > summary {
  cursor: pointer; font-weight: 600; color: var(--color-text); list-style-position: inside;
  min-height: 44px; display: flex; align-items: center;
}
.add-list[open] > summary { margin-bottom: 18px; }
.finished { margin-top: 28px; }
.finished > summary { color: var(--color-text-muted); font-weight: 500; }
.finished .watch-cards { margin: 10px 0 14px; }

/* --- the admin page (Phase 14) ---------------------------------------------- */

.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none; color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px var(--color-border-strong);
}
.app .jump a { text-decoration: none; }
.jump a:hover { box-shadow: inset 0 0 0 1.5px var(--color-text); }

/* Named "tile", not "stat": the landing page already has a .stat. */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-lg);
  background: var(--color-panel);
}
.tile.warn { background: #fff4e5; box-shadow: inset 0 0 0 1.5px #f5c27a; }
.tile-label { font-size: 16px; color: var(--color-text-muted); }
.tile-value { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.03em; color: var(--color-text); line-height: 1.15; }
.tile-sub { font-size: 15px; color: var(--color-text-muted); }

.section .count { font-size: 16px; font-weight: 600; color: var(--color-text-muted); margin-left: 6px; }
.notice { padding: 10px 14px; border-radius: var(--radius); background: #fff4e5; color: #7c2d12; font-size: 17px; }
.small-note { font-size: 16px; margin: 10px 2px 0; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.inline-form input { flex: 1 1 220px; width: auto; margin: 0; }
.inline-form .btn { flex: none; width: auto; }

/* Rows: a list on a laptop, stacked cards on a phone. */
.rows { padding-block: 6px; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 14px;
            padding: 12px 0; border-top: 1px solid var(--color-border); }
.row-item:first-child { border-top: none; }
.row-item.off { opacity: 0.55; }
.row-main { flex: 1 1 auto; min-width: 0; }
.row-main strong { display: block; color: var(--color-text); font-weight: 600; }
.row-main small { display: block; font-size: 15px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.row-main code { font-size: 14px; background: none; padding: 0; color: inherit; }
.row-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.row-actions form { margin: 0; }
@media (max-width: 560px) {
  .row-item { flex-direction: column; align-items: stretch; }
  .row-actions { justify-content: flex-start; }
}

.pill { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: 999px;
        background: var(--color-panel); font-size: 15px; font-weight: 600; color: var(--color-text-muted); }
button.plan-toggle {
  width: auto; min-height: 40px; margin: 0; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; background: var(--color-bg); color: var(--color-text);
  border: none; box-shadow: inset 0 0 0 1.5px var(--color-border-strong);
  transition-property: transform; transition-duration: 0.1s;
}
button.plan-toggle.premium { background: var(--color-accent); color: #fff; box-shadow: none; }
button.plan-toggle:active { transform: scale(0.96); }

.admin-form label { font-weight: 500; color: var(--color-text); }
.admin-form .check { display: flex; align-items: center; gap: 8px; }
.admin-form .btn { width: auto; }
.plain-table { margin: 0; }
.plain-table th, .plain-table td { font-size: 17px; }

/* --- phones: the landing page (Rory's screenshots, 2 Oct 2026) --------------- */

.header-actions .link-button, .header-actions .btn-small { white-space: nowrap; }
@media (max-width: 599px) {
  /* The hero's search is right there; a second call to action crowded the
     header and pushed "Log in" onto two lines. */
  .header-actions .btn-small[href$="#start"],
  .header-actions .btn-small[href$="/find"] { display: none; }
  /* A full-size phone inside a real phone is a whole screen. Smaller, so the
     demo still plays but the page moves on. */
  .hero-grid > .phone { width: 220px; margin-inline: auto; }
  .finder-row .btn { padding: 0 18px; }
  .finder-row input { padding: 0 8px; font-size: 17px; }
}

/* --- home (Phase 15) ---------------------------------------------------------- */

.home-head h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: -0.03em;
                line-height: 1.1; margin: 0 0 6px; }
.home-head .live { margin: 0 0 18px; color: var(--color-text-muted); }
.home-search { margin: 0 0 8px; }
.home-search input { padding-left: 12px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head .section { margin-bottom: 14px; }
.section-head > .muted { font-size: 15px; }
.add-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
            font-weight: 600; font-size: 17px; }
.app a.add-link { text-decoration: none; }

/* Open right now: one card per course, a row per day, the times as chips. */
.open-list { display: grid; gap: 12px; }
.open-card {
  margin: 0; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 1px 2px rgba(17, 17, 17, 0.04),
              0 8px 24px rgba(17, 17, 17, 0.05);
}
.open-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.open-card-head h3 { font-size: 19px; font-weight: 600; margin: 0; }
.pill-watch { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 15px; font-weight: 600;
              background: #fff3ec; color: #b13a00; }
.open-day { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.open-day + .open-day { border-top: 1px solid var(--color-border); }
.open-day-label { flex: none; width: 92px; padding-top: 6px; font-size: 16px; font-weight: 600; color: var(--color-text); }
.open-times { display: flex; flex-wrap: wrap; gap: 6px; }
.time-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  font-size: 16px; font-weight: 600; color: var(--color-text); background: #ecfdf3;
  box-shadow: inset 0 0 0 1.5px #bbe5c8;
}
.time-chip.more { background: var(--color-panel); box-shadow: none; color: var(--color-text-muted); }
.open-book { margin-top: 10px; gap: 6px; }
.quiet-panel p { margin: 0; color: var(--color-text-body); }

/* Near your courses: a row you swipe on a phone, a grid on a laptop. */
.near-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.near-row::-webkit-scrollbar { display: none; }
@media (min-width: 700px) {
  .near-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
}
.near-card {
  scroll-snap-align: start; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 1px 2px rgba(17, 17, 17, 0.04),
              0 8px 24px rgba(17, 17, 17, 0.05);
}
/* The little map: a 2x2 block of tiles at 256px, slid so the course sits in the
   middle of a 120px-tall window. */
.near-map { position: relative; display: block; height: 120px; overflow: hidden; background: #e8eee6; }
.near-tiles {
  position: absolute; width: 512px; height: 512px; display: grid; grid-template-columns: 256px 256px;
  left: calc(50% - var(--fx) * 512px); top: calc(50% - var(--fy) * 512px);
}
.near-tiles img { display: block; width: 256px; height: 256px; max-width: none; }
.near-dot {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--color-accent); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.near-map::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.near-body { padding: 12px 14px 14px; }
.near-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.near-body p { margin: 0; font-size: 15px; }
.near-opened { color: #15803d; font-weight: 600; margin-top: 4px !important; }
.near-body .btn { margin-top: 10px; }
.map-credit { font-size: 14px; color: var(--color-text-muted); margin: 2px 2px 0; }
.near-ask { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--color-text); }
.near-ask .empty-icon { margin: 0; flex: none; width: 52px; height: 52px; }
.app a.near-ask { text-decoration: none; }
.list-way { margin: 32px 2px 0; font-size: 17px; color: var(--color-text-muted); }
@media (max-width: 599px) {
  /* The day above its times, so four fit across instead of two. */
  .open-day { flex-direction: column; gap: 6px; }
  .open-day-label { width: auto; padding-top: 0; }
}

/* --- search is home (Phase 16) ---------------------------------------------- */

.search { padding-block: clamp(18px, 4vw, 36px) clamp(48px, 8vw, 80px); }
.search-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.search-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .search-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; }
  .search-controls { position: sticky; top: 16px; }
}
.search-title { font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }

.ctl { margin: 0 0 18px; }
.ctl-label { display: block; font-size: 16px; font-weight: 600; color: var(--color-text); margin: 0 0 8px; }
.search-where { margin: 0; }
.where-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
              margin: 10px 2px 10px; font-size: 16px; color: var(--color-text-muted); }

/* Segmented choices: one of a few, as big tappable pills. */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
       padding: 4px; border-radius: 16px; background: var(--color-panel); }
.seg.seg-wrap { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
/* Pico shrinks a label holding a radio to fit-content; these fill their column. */
.seg label { display: block; width: 100%; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 10px;
  border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--color-text-body); text-align: center;
  transition-property: background-color, box-shadow; transition-duration: 0.15s;
}
.seg input:checked + span { background: #fff; color: var(--color-text); font-weight: 600;
                            box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08), 0 2px 8px rgba(17, 17, 17, 0.06); }
.seg input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.when-date { margin: 8px 0 0; }

.search-map {
  height: clamp(200px, 30vh, 300px); border-radius: var(--radius-lg); overflow: hidden; z-index: 0;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.results-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.results-head p { margin: 0 0 14px; font-size: 16px; }

.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.club {
  list-style: none; margin: 0; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--color-bg);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 1px 2px rgba(17, 17, 17, 0.04), 0 6px 18px rgba(17, 17, 17, 0.04);
  transition-property: box-shadow; transition-duration: 0.15s;
}
.club.picked { box-shadow: 0 0 0 2px var(--color-accent), 0 6px 18px rgba(255, 79, 0, 0.10); }
.club-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.app a.club-name, a.club-name { font-size: 18px; font-weight: 600; color: var(--color-text); text-decoration: none; }
a.club-name:hover { text-decoration: underline; }
.club-miles { flex: none; font-size: 15px; color: var(--color-text-muted); }
.club-meta { margin: 2px 0 0; font-size: 15px; color: var(--color-text-muted); }
.club-found { color: #15803d; font-weight: 600; }
.club-known { margin: 10px 0 0; display: grid; gap: 6px; }
.club-known-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.club-known-day { width: 38px; font-size: 15px; font-weight: 600; color: var(--color-text); }
.club-actions { display: flex; gap: 8px; margin-top: 12px; }
.club-actions .btn-ghost { flex: 1 1 auto; justify-content: center; }
@media (min-width: 460px) { .club-actions .btn-ghost { flex: 0 1 auto; } }
@media (max-width: 459px) { .club-actions .long { display: none; } }
.club-actions .btn { gap: 6px; min-height: 44px; }
button.watch-toggle {
  display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 44px; margin: 0; padding: 0 16px;
  border-radius: var(--radius); border: none; cursor: pointer; font-size: 16px; font-weight: 600;
  background: var(--color-text); color: #fff;
  transition-property: background-color, transform; transition-duration: 0.15s, 0.1s;
}
button.watch-toggle:active { transform: scale(0.96); }
[aria-busy="true"] { cursor: progress; opacity: 0.75; }
button.watch-toggle[aria-pressed="true"] { background: var(--color-accent); }
.known-note { margin: 18px 2px 0; font-size: 15px; color: var(--color-text-muted); }

/* The bar that turns picked clubs into a watch. Above the tab bar on a phone. */
.watch-bar {
  position: fixed; left: 0; right: 0; bottom: var(--consent-shown, 0px); z-index: 900; margin: 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 -1px 0 rgba(17, 17, 17, 0.08), 0 -10px 30px rgba(17, 17, 17, 0.08);
}
.watch-bar[hidden] { display: none; }
body.has-tabs .watch-bar { bottom: calc(64px + env(safe-area-inset-bottom) + var(--consent-shown, 0px)); padding-bottom: 12px; }
@media (min-width: 900px) { body.has-tabs .watch-bar { bottom: var(--consent-shown, 0px); padding-bottom: 12px; } }
.watch-bar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.watch-bar-text { display: flex; flex-direction: column; min-width: 0; }
.watch-bar-text strong { font-size: 17px; color: var(--color-text); }
.watch-bar-text .muted { font-size: 15px; }
.every-week { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--color-text); }
.every-week input { margin: 0; }
.watch-bar .btn { flex: none; width: auto; }
.bar-limit, .bar-problem { max-width: 960px; margin: 8px auto 0; font-size: 15px; color: #b45309; }
.bar-problem { color: #b91c1c; }
body.has-bar { padding-bottom: 160px; }

/* --- a club's own page (Oct 2026) -------------------------------------------- */

.club-hero { max-width: 860px; }
.club-hero.with-map { max-width: var(--wrap); display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .club-hero.with-map { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }
.club-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.club-buttons .btn-ghost { gap: 8px; }
.club-map-wrap { margin: 0; }
.club-map {
  height: clamp(240px, 38vw, 420px); border-radius: var(--radius-lg); overflow: hidden; z-index: 0;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 12px 32px rgba(17, 17, 17, 0.08);
}
.club-map-wrap figcaption { margin-top: 8px; font-size: 15px; color: var(--color-text-muted); }
.club-map .leaflet-control-zoom a {
  width: 34px; height: 34px; line-height: 32px; padding: 0; margin: 0; font-size: 20px; font-weight: 600;
  text-align: center; text-decoration: none; color: var(--color-text); background: #fff; border: none; border-radius: 0;
}
.club-map .leaflet-control-zoom { border-radius: 10px; overflow: hidden; border: 1px solid var(--color-border-strong); }

/* --- how we tell you (Oct 2026) ---------------------------------------------- */

.channels { padding-block: 6px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.channel + .channel { border-top: 1px solid var(--color-border); }
.channel-icon { flex: none; display: inline-flex; align-items: center; justify-content: center;
                width: 44px; height: 44px; border-radius: 12px; background: var(--color-panel); color: var(--color-text); }
.channel-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.channel-text strong { color: var(--color-text); }
.channel-text .muted { font-size: 15px; overflow-wrap: anywhere; }
.channel form { margin: 0; flex: none; display: flex; }
.channel.soon { opacity: 0.55; }
/* Paused: the channels underneath are greyed out, the All alerts row isn't. */
.channels.paused .channel:not(.channel-all), .channels.paused .channel-help { opacity: 0.45; }
/* Help that folds away under its row: Telegram for beginners, iPhone home screen. */
.channel-help { margin: -4px 0 0; padding: 0 0 14px 58px; }
.channel-help + .channel { border-top: 1px solid var(--color-border); }
.channel-help > summary:not([role]) { font-size: 15px; color: var(--color-text-muted); cursor: pointer; }
.channel-help ol { margin: 8px 0 0; padding-left: 20px; font-size: 15px; color: var(--color-text-muted); }
.channel-help li + li { margin-top: 4px; }
@media (max-width: 420px) { .channel-help { padding-left: 0; } }

/* Sign in by email, for anybody without Google (Phase 11): a second button
   under Google's, which swaps itself for the address box when pressed. */
.signin-choices { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.signin-choices > .btn, .signin-choices .js-email-show { min-width: min(300px, 100%); justify-content: center; }
.email-signin { margin: 12px auto 0; max-width: 480px; text-align: center; }
.signin-choices .email-signin { margin: 0; width: 100%; }
.email-signin .inline-form { display: flex; flex-wrap: wrap; gap: 10px; text-align: left; }
.email-signin .inline-form[hidden] { display: none; }
.bar-email { margin: 6px auto 0; max-width: 960px; text-align: right; font-size: 15px; }
.email-dialog { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px;
                max-width: min(520px, calc(100vw - 32px)); background: var(--color-bg); color: var(--color-text); }
.email-dialog::backdrop { background: rgb(0 0 0 / 0.4); }
.email-dialog .email-signin { margin-top: 12px; }

/* --- Premium (Oct 2026) --------------------------------------------------------
   The one place the brand's orange is a fill: "Go Premium" should look like
   the thing worth pressing. A light sweeps across it every few seconds, and
   stays still for anybody who has asked their phone for less motion. */
.btn-premium {
  position: relative; overflow: hidden; isolation: isolate;
  color: #111; border-color: transparent; white-space: nowrap;
  background: linear-gradient(135deg, #ff4f00 0%, #ff7a1a 45%, #ffb057 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 6px 18px -6px rgb(255 79 0 / 0.55);
}
.btn-premium:hover { color: #111; border-color: transparent;
  background: linear-gradient(135deg, #ff5c12 0%, #ff8a33 45%, #ffbd70 100%); }
.btn-premium::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: premium-sheen 4.5s ease-in-out 1s infinite;
}
.btn-premium[aria-current="page"] { box-shadow: 0 0 0 3px rgb(255 79 0 / 0.25); }
@keyframes premium-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .btn-premium::after { animation: none; } }
/* The quiet version, for the header and the account page (Rory, 3 Oct: the
   orange one at the top of every page was too much). An ordinary outlined
   button with an orange sparkle, and a faint light passing over it now and
   then. The full orange stays for the moments of choosing: the yearly button
   in the table, and the prices shown at a limit. */
.btn-shine {
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border-strong);
}
.btn-shine:hover { background: var(--color-panel); color: var(--color-text); border-color: var(--color-text); }
.btn-shine > span[aria-hidden] { color: var(--color-accent); }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(255 79 0 / 0.12) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: premium-sheen 7s ease-in-out 2s infinite;
}
.btn-shine[aria-current="page"] { border-color: var(--color-text); }
@media (prefers-reduced-motion: reduce) { .btn-shine::after { animation: none; } }
/* On a phone the header holds the logo, this and the round initial; the
   sparkle goes so the words fit. */
@media (max-width: 420px) { .btn-premium > span[aria-hidden], .btn-shine > span[aria-hidden] { display: none; } }

/* The comparison table. Four columns on a laptop; on a phone each feature's
   name gets its own line, with the three answers in a row beneath it. */
.cmp { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: center; }
.cmp-row + .cmp-row { border-top: 1px solid var(--color-border); }
.cmp-feature { padding: 14px 20px; font-size: 17px; color: var(--color-text); font-weight: 500; }
.cmp-cell { padding: 14px 16px; text-align: center; font-size: 17px; color: var(--color-text-body);
            font-variant-numeric: tabular-nums; align-self: stretch; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 2px; }
.cmp-hot { background: #fff4ec; }
.cmp-head .cmp-cell { justify-content: flex-start; padding: 24px 16px 20px; gap: 0; }
.cmp-head h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cmp-price .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--color-text); }
.cmp-price .per { font-size: 16px; color: var(--color-text-muted); }
.cmp-sub { font-size: 15px; color: var(--color-text-muted); margin: 8px 0 16px; min-height: 2.6em; }
.cmp-badge { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--color-accent); color: #111; }
.cmp-yours { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; color: var(--color-text-muted); }
.cmp-head .btn { margin-top: auto; }
.cmp-tick { font-weight: 700; font-size: 20px; color: var(--color-text); }
.cmp-hot .cmp-tick { color: var(--color-accent); }
.cmp-no { color: var(--color-border-strong); font-weight: 700; }
.cmp-soon { font-size: 14px; font-weight: 600; color: var(--color-text-muted); background: var(--color-panel);
            padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cmp-plan { display: none; }
.cmp + .plans-note { margin-top: 16px; }
@media (max-width: 699px) {
  .cmp-row { grid-template-columns: repeat(3, 1fr); }
  .cmp-feature { grid-column: 1 / -1; padding: 14px 16px 2px; font-size: 16px; }
  .cmp-head .cmp-feature { display: none; }
  .cmp-cell { padding: 6px 6px 14px; font-size: 15px; }
  .cmp-head .cmp-cell { padding: 18px 8px 16px; }
  .cmp-price .price { font-size: 26px; }
  .cmp-price .per { display: block; font-size: 13px; }
  .cmp-sub { font-size: 13px; }
  .cmp-head h3 { font-size: 16px; }
  .cmp-head .btn { min-height: 44px; font-size: 14px; padding: 0 8px; white-space: normal; }
  .cmp-soon { font-size: 12px; padding: 2px 6px; white-space: normal; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A limit just hit: the reason, then the prices right under it. */
.flash.upgrade { background: #fff4ec; color: var(--color-text); border: 1px solid #ffd2b8; }
.flash.upgrade p { margin: 0 0 12px; }
.upgrade-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upgrade-compare { font-size: 16px; color: var(--color-text); }

/* --- removing a member (Oct 2026) ---------------------------------------- */
.btn-danger { background: var(--color-bad); border-color: var(--color-bad); color: #fff; }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }

/* --- admin: status, limits and trends (Oct 2026) ------------------------- */
.status-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 20px;
  border-radius: var(--radius); border: 2px solid currentColor; font-size: 17px; background: var(--color-bg); }
.status-banner.ok { color: var(--color-ok); }
.status-banner.warn { color: var(--color-warn); }
.status-banner.bad { color: var(--color-bad); }
.status-banner div { color: var(--color-text); }
.status-banner strong { color: inherit; }
.status-banner.bad strong { color: var(--color-bad); }
.status-banner.warn strong { color: var(--color-warn); }
.status-banner.ok strong { color: var(--color-ok); }
.status-icon { font-size: 18px; line-height: 1.4; }

.status-chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  margin-right: 6px; vertical-align: 2px; border: 1.5px solid currentColor; }
.status-chip.ok { color: var(--color-ok); }
.status-chip.warn { color: var(--color-warn); }
.status-chip.bad { color: var(--color-bad); }
.limit.bad, .limit.warn { padding-left: 16px; border-left: 4px solid; }
.limit.bad { border-left-color: var(--color-bad); }
.limit.warn { border-left-color: var(--color-warn); }
.limits .row-main { gap: 6px; }

.gauge { position: relative; height: 10px; border-radius: 999px; background: var(--color-panel);
  border: 1px solid var(--color-border); margin: 6px 0 2px; max-width: 520px; }
.gauge-now { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--color-ok); }
.limit.warn .gauge-now { background: var(--color-warn); }
.limit.bad .gauge-now { background: var(--color-bad); }
.gauge-peak { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px;
  background: var(--color-text); }
.gauge-mark { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--color-border-strong); }
.limit-why summary { font-size: 14px; color: var(--color-text-muted); cursor: pointer; }

.chart-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.chart-grid > * { margin: 0 !important; }
.chart-card { margin: 0; }
.chart-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  margin-bottom: 8px; font-size: 16px; }
.legend { display: flex; gap: 12px; font-size: 14px; color: var(--color-text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch, .chart-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .axis { stroke: var(--color-border-strong); stroke-width: 1; }
.chart .ref { stroke: var(--color-text-muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.6; }
.chart .ref-label, .chart .tick { font-size: 13px; fill: var(--color-text-muted); }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.chart .end { stroke: var(--color-bg); stroke-width: 2; }
.chart .crosshair { stroke: var(--color-text); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--color-bg);
  border: 1px solid var(--color-border-strong); border-radius: 8px; padding: 6px 10px; font-size: 13px;
  pointer-events: none; display: grid; gap: 2px; white-space: nowrap; box-shadow: 0 4px 12px rgb(0 0 0 / 0.08); }
.chart-tip i { margin-right: 6px; vertical-align: 0; }
.chart-table summary { font-size: 14px; color: var(--color-text-muted); cursor: pointer; margin-top: 6px; }
.chart-table table { font-size: 14px; margin-top: 8px; }

/* "How did you hear about us?" (Phase 18). Big targets, two to a row on a phone. */
.heard-from { margin-bottom: 16px; }
.heard-from-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.heard-from-options .btn { width: 100%; min-height: 56px; padding: 0 12px; white-space: normal; line-height: 1.2; }
.heard-from .link-button { min-height: 48px; }

/* The cookie question for the Meta pixel (Phase 18). Fixed to the bottom,
   above the tab bar, and everything else that sits at the bottom — the bar
   with the Watch button, the end of the page — moves up by its height while
   it shows, so it never covers a Book or Watch button. */
body.consent-open { --consent-shown: var(--consent-h, 0px); padding-bottom: var(--consent-shown); }
body.has-tabs.consent-open { padding-bottom: calc(64px + env(safe-area-inset-bottom) + var(--consent-shown)); }
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
  padding: 14px var(--gutter, 16px) calc(14px + env(safe-area-inset-bottom));
  background: var(--color-bg); border-top: 1px solid var(--color-border-strong);
  box-shadow: 0 -10px 30px rgba(17, 17, 17, 0.10);
}
.consent[hidden] { display: none; }
body.has-tabs .consent { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 14px; }
.consent-inner { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.consent-inner p { flex: 1 1 320px; margin: 0; font-size: 17px; color: var(--color-text); }
.consent-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 320px; }
.consent-buttons .btn { width: 100%; min-height: 52px; padding: 0 12px; }
@media (min-width: 900px) {
  body.has-tabs .consent { bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.has-tabs.consent-open { padding-bottom: var(--consent-shown); }
}
