/* ==========================================================================
   GoTobi — design tokens
   Source of truth: the Figma redesign (file 0eW0MZmWDIHX3Z65qMBwDQ). Five
   colours, one typeface, pill buttons, big radii. Sizes are the Figma values
   at 1440px; anything that must shrink for tablet/phone uses clamp().
   ========================================================================== */
:root {
  /* palette */
  --bg:          #FFF7E6;   /* page ground — the cream every screen sits on */
  --paper:       #FFFFFF;   /* cards */
  --accent:      #BDD3E3;   /* blue: bands, borders, chips, footer */
  --accent-deep: #A9C5D9;   /* blue hover */
  --accent-soft: #E3EDF4;   /* blue tint for table heads and hovers */
  --pink:        #EAA0C7;   /* the one action colour — fills only */
  --pink-text:   #B5457F;   /* pink as text or focus ring: 5.1:1 on white, 4.8:1 on cream */
  --pink-display: #D2699C;  /* pink for large display type (≥ 24px): 3.4:1 */
  --pink-deep:   #E48DBB;
  --pink-soft:   #FBE6F1;
  --lime:        #CFDE79;   /* badges, success, "answered" */
  --lime-soft:   #EBF2C4;
  --yellow:      #FFE580;   /* "free to join", "requested", warnings */
  --yellow-soft: #FFF3C4;
  --ink:         #000000;
  --ink-soft:    rgba(0, 0, 0, .65);
  --ink-mute:    rgba(0, 0, 0, .6);   /* 5.7:1 on white, still quiet */
  --line:        #BDD3E3;   /* every decorative 1px border is the accent blue */
  --line-strong: #5C87A6;   /* borders that are the only affordance: inputs, switches (3.8:1) */
  --line-soft:   rgba(0, 0, 0, .12);
  --red:         #C0342A;   /* form errors only */
  --star:        #F5B301;

  /* type — one family. DM Sans for everything; Fraunces only where the design
     sets a single display line (the resale teaser). */
  --f-sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --t-hero:  clamp(30px, 4vw, 56px);
  --t-page:  clamp(30px, 3vw, 40px);
  --t-sect:  clamp(24px, 2.4vw, 32px);
  --t-h3:    22px;
  --t-card:  18px;
  --t-lede:  18px;
  --t-body:  16px;
  --t-meta:  14px;
  --t-tiny:  13px;

  /* radii */
  --r-pill: 100px;
  --r-xl:   24px;
  --r-lg:   16px;
  --r-md:   12px;
  --r-sm:   8px;
  --r-xs:   6px;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, .02);
  --shadow-md: 0 8px 12px rgba(0, 0, 0, .07);
  --shadow-lg: 0 16px 20px rgba(0, 0, 0, .08);

  /* layout: full-bleed bands, 80px side padding at 1440, content 1280 wide */
  --pad-x:       clamp(20px, 5.56vw, 80px);
  --content-max: 1280px;
  --nav-h:       88px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

h1, h2, h3, p, li, td, th, dd, dt { overflow-wrap: break-word; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  font: 400 var(--t-body)/1.5 var(--f-sans);
  font-optical-sizing: auto;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.fact__val, .vinfo__value, .matrix__col, .slot, .vrate-score,
.stat__value, .price__amount, table td {
  font-variant-numeric: tabular-nums;
}

code { font-size: 15px; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--pink-text);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
button { font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* the whole document; bands inside it run edge to edge */
.shell { width: 100%; }

/* a band: full-bleed background, padded to the 80px gutter, content capped */
.band { padding-inline: var(--pad-x); }
.band__in { max-width: var(--content-max); margin-inline: auto; }

/* pages not yet rebuilt as bands get the gutter here instead */
main[data-page]:not(.page--bleed) {
  padding: 0 var(--pad-x) 80px;
  max-width: calc(var(--content-max) + 2 * var(--pad-x));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 700 16px var(--f-sans); padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .12s ease;
}
.skip:focus { top: 0; color: #fff; }
#main:focus { outline: none; }
#main:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* inline icon from assets/icons.svg — sized by the parent, coloured by text */
.ic { width: 1em; height: 1em; flex: none; fill: none; }
.ic--16 { width: 16px; height: 16px; }

/* ==========================================================================
   Type helpers — the handful of text roles the design repeats
   ========================================================================== */
.eyebrow {               /* SWIMMING · pink, small caps */
  font: 700 var(--t-tiny)/1.3 var(--f-sans); letter-spacing: .06em;
  text-transform: uppercase; color: var(--pink-text);
}
.kicker {                /* EXPLORE · black column heads in the footer */
  font: 700 var(--t-tiny)/1.3 var(--f-sans); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink);
}
.page__title { font-size: var(--t-page); font-weight: 600; }
.page__lede  { margin-top: 12px; font-size: var(--t-lede); color: var(--ink); max-width: 720px; }
.sect__title { font-size: var(--t-sect); font-weight: 600; }
.sect__sub   { margin-top: 12px; font-size: var(--t-lede); }
.muted { color: var(--ink-soft); }

/* ==========================================================================
   Buttons — pills. One shape, three fills.
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-pill);
  font: 700 var(--t-body)/1.2 var(--f-sans);
  padding: 11px 24px;
  min-height: 42px;
  background: transparent; color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:disabled { opacity: .5; cursor: default; }

.btn--primary { background: var(--pink); border-color: var(--pink); color: var(--ink); }   /* 10.4:1 */
.btn--primary:hover:not(:disabled) { background: var(--pink-deep); border-color: var(--pink-deep); }

.btn--outline { border-color: var(--ink); color: var(--ink); font-size: var(--t-body); }
.btn--outline:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }

.btn--lime { border-color: var(--lime); color: var(--ink); font-size: var(--t-body); }
.btn--lime:hover:not(:disabled) { background: var(--lime-soft); }

.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover:not(:disabled) { background: #222; }

.btn--lg { padding: 14px 28px; font-size: var(--t-body); min-height: 48px; }
.btn--block { width: 100%; }


.btn--sm { padding: 8px 18px; min-height: 36px; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* text-styled buttons inside prose */
.linkbtn {
  border: 0; background: none; padding: 3px 2px; cursor: pointer; min-height: 24px;
  font: inherit; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px;
}
.linkbtn:hover { color: var(--ink-soft); }

/* ==========================================================================
   Tags, chips, badges
   ========================================================================== */
.tag {                                   /* PARENT LOGIN · lime pill */
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--lime); color: var(--ink);
  font: 700 var(--t-tiny)/1.3 var(--f-sans); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.tag--yellow { background: var(--yellow); }
.tag--pink   { background: var(--pink); color: #fff; }
.tag--blue   { background: var(--accent); }
.tag--square { border-radius: var(--r-xs); padding: 4px 10px; }
.tag--outline { background: transparent; border: 1px solid var(--line); }
.tag--outline-lime { background: transparent; border: 1px solid var(--lime); }
.tag--outline-pink { background: transparent; border: 1px solid var(--pink); }

.agechip {                               /* 3-5 years · blue mini pill */
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--ink);
  font: 700 13px/1.3 var(--f-sans); white-space: nowrap;
}

/* ==========================================================================
   Cards, form fields
   ========================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font: 700 var(--t-body)/1.3 var(--f-sans); color: var(--ink); }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea, .field select, .input {
  width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.4 var(--f-sans);
  padding: 13px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--pink-text);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.field select[aria-invalid="true"] { border-color: var(--red); }
.field__error { font: 400 var(--t-meta)/1.3 var(--f-sans); color: var(--red); }
.field__hint  { font: 400 var(--t-meta)/1.3 var(--f-sans); color: var(--ink-soft); }

/* consent checkbox — a drawn box in the design's blue, ticked in pink */
.consent {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start;
  cursor: pointer; font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink);
}
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--line); border-radius: var(--r-xs);
  background: var(--paper); display: grid; place-items: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.consent__box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; }
.consent input:checked + .consent__box { background: var(--pink); border-color: var(--pink); }
.consent input:checked + .consent__box .ic { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--pink-text); outline-offset: 2px; }
.consent { min-height: 24px; }
.consent__text { flex: 1 1 200px; }
.consent__text .linkbtn { font-weight: 700; }
.consent--error .consent__box { border-color: var(--red); }
.consent .field__error { flex-basis: 100%; }

/* "log in or sign up to …" — inside a card or a dialog */
.nudge {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--line);
}
.nudge__text { font: 400 var(--t-body)/1.5 var(--f-sans); margin-bottom: 12px; }
.nudge__title { font: 700 20px/1.3 var(--f-sans); margin-bottom: 8px; }

/* "Continue with Google": the same button shape as ours, with Google's mark */
.gslot { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; }
.gbtn__mark { width: 18px; height: 18px; }
.gbtn__or { text-align: center; font: 400 var(--t-meta)/1.3 var(--f-sans); color: var(--ink-soft); }
.gbtn__or::before, .gbtn__or::after { content: '—'; margin: 0 8px; color: var(--line-strong); }
.gbtn__terms { text-align: center; font: 400 var(--t-tiny)/1.4 var(--f-sans); color: var(--ink-soft); }
.gbtn__terms .linkbtn { font-size: inherit; }
/* links inside a sentence stay inline; the 44px touch height is for standalone links */
.gbtn__terms .linkbtn, .consent__text .linkbtn { display: inline; min-height: 0; padding: 2px 0; }
/* Desktop: the log-in card sits higher and wider, so the whole form fits the
   screen and "By continuing you agree …" stays on one line */
@media (min-width: 1024px) {
  #page-login .auth { padding-top: 48px; padding-bottom: 64px; }
  #page-login .authcard { width: 660px; padding: 36px 48px; gap: 20px; }
  #page-login .gslot { margin-bottom: 4px; gap: 12px; }
  #page-login .authcard__fields { gap: 14px; }
  .gbtn__terms { white-space: nowrap; font-size: 12px; }
}
.gpick { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin-inline: auto; }
.gpick .btn { flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 20px 24px; text-align: left; border-radius: var(--r-lg); }
.gpick__title { font: 700 var(--t-body)/1.3 var(--f-sans); }
.gpick__text { font: 400 var(--t-meta)/1.4 var(--f-sans); opacity: .85; }

/* a club answers a request through its e-mail link */
.authcard--reply { max-width: 640px; width: min(640px, 100%); }
.authcard--reply .authcard__head { align-items: stretch; text-align: left; gap: 16px; }
.reply__thread { margin: 0; }
.reply__form { display: flex; flex-direction: column; gap: 12px; }
.reply__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reply__choice { white-space: normal; padding-inline: 10px; }
.reply__done { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--lime-soft); border-radius: var(--r-lg); }
@media (max-width: 600px) { .reply__choices { grid-template-columns: minmax(0, 1fr); } }
.nudge__row { display: flex; gap: 12px; flex-wrap: wrap; }

/* "confirm your e-mail" strip at the top of the dashboard */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 24px; padding: 16px 20px; border-radius: var(--r-lg);
  background: var(--yellow-soft); border: 1px solid var(--yellow);
}
.banner--red { background: var(--pink-soft); border-color: var(--pink); }
.banner__title { font: 700 var(--t-body)/1.3 var(--f-sans); }
.banner__text { margin-top: 4px; font: 400 var(--t-body)/1.5 var(--f-sans); color: var(--ink-soft); }
.banner .authcard__aside { margin: 0; }


/* the inline add-a-child / confirm-delete forms in settings */
.kidform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.kidform .input { flex: 1 1 180px; width: auto; }
.db__sub { margin: 4px 0 16px; font: 400 var(--t-body)/1.5 var(--f-sans); color: var(--ink-soft); }

/* Partner Hub: claim screen and listing forms */
.claim { max-width: 720px; }
.claim .input { width: 100%; }
.claim__results { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.claimrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.claimrow__name { font: 700 var(--t-body)/1.3 var(--f-sans); }
/* "Not on GoTobi yet?" — the club adds itself */
.newlisting { max-width: 720px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.newlisting__title { font: 700 22px/1.25 var(--f-sans); }
.newlisting__text { font: 400 var(--t-body)/1.5 var(--f-sans); color: var(--ink-soft); }
.newlisting > div { width: 100%; }
.newlisting__form { margin-top: 12px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: none; }
.newlisting__form .pform__grid { align-items: start; }
.newlisting__wide { grid-column: 1 / -1; }
.newlisting__form .input { width: 100%; }
.newlisting__form textarea.input { resize: vertical; min-height: 96px; font: 400 var(--t-body)/1.5 var(--f-sans); }
.newlisting__ages { display: flex; align-items: center; gap: 8px; }
.newlisting__ages .input { width: 88px; }
.newlisting__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .newlisting__form { padding: 16px; }
  .newlisting__form .pform__grid--2 { grid-template-columns: minmax(0, 1fr); }
}
.claimrow__meta { margin-top: 2px; font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); text-transform: capitalize; }
.pform { display: flex; flex-direction: column; gap: 20px; max-width: 920px; }
.pform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; align-items: end; }
.pform__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pform__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pform__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pform__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pform__grid--2, .pform__grid--3, .pform__grid--4 { grid-template-columns: minmax(0, 1fr); } }
/* the profile as numbered cards */
.pform--cards { gap: 24px; max-width: 1040px; }
.pcard { display: flex; flex-direction: column; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.pcard__title { font: 700 22px/1.2 var(--f-sans); color: var(--pink-text); margin: 0; }
.pcard__sub { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); margin: -10px 0 0; }
.pcard__hr { border: 0; height: 1px; background: var(--line); margin: 8px 0; }
.btn--dashed { width: 100%; border: 1.5px dashed var(--line); background: transparent; color: var(--ink); border-radius: var(--r-sm); font-weight: 700; }
.btn--dashed:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.locedit__rm { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--ink-soft); }
.locedit__rm .ic { width: 14px; height: 14px; }
.savebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 24px; }
.savebar__text { margin: 0; font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); }
@media (max-width: 720px) {
  .pcard { padding: 20px 16px; }
  .savebar { position: sticky; bottom: 76px; z-index: 5; box-shadow: var(--shadow-lg); }
  .savebar .btn { width: 100%; }
}
.pform__acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pform .input:disabled, .tbl--edit .input:disabled { background: var(--bg); color: var(--ink-soft); }
.tbl--edit td { padding: 8px; }
.tbl--edit .input { padding: 10px 12px; min-width: 120px; }
.tbl--edit td:first-child { font-weight: 400; }

/* the plain provider summary the server puts in the page for crawlers;
   the app replaces it as soon as it runs */
.pd-ssr { max-width: 720px; padding: 32px 0 64px; font: 400 var(--t-body)/1.6 var(--f-sans); }
.pd-ssr h1 { margin: 8px 0 16px; }
.pd-ssr h2 { font-size: var(--t-h3); margin: 28px 0 8px; }
.pd-ssr dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 16px 0; }
.pd-ssr dt { font-weight: 700; }
.pd-ssr dd { margin: 0; }

/* admin lists */
.alist { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.arow {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px;
}
.arow__main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.arow__acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.arow__title { font: 700 var(--t-body)/1.3 var(--f-sans); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arow__meta { font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); overflow-wrap: anywhere; }
.arow__quote { font: 400 var(--t-body)/1.5 var(--f-sans); }
.arow__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.athread { flex: 1 1 100%; display: flex; flex-direction: column; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.arow .kidform { flex-basis: 100%; margin-top: 4px; }
.stat--pink { background: var(--pink-soft); border-color: var(--pink); }
.vreply { display: flex; flex-direction: column; gap: 10px; }
.vreply__form { display: flex; flex-direction: column; gap: 10px; }
.vreply .rvw__reply { margin: 0; }

/* 404 */
.nf { padding: 96px var(--pad-x) 120px; }
.nf__in { max-width: 640px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nf__row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* toggle switch — "Show free listings only" */
.switch {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer; font: 500 var(--t-body)/1.3 var(--f-sans);
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 44px; height: 24px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  position: relative; transition: background-color .15s ease; flex: none;
}
.switch__track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); transition: transform .15s ease, background-color .15s ease;
}
.switch input:checked + .switch__track { background: var(--lime); border-color: var(--lime); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--pink-text); outline-offset: 2px; }
.switch { min-height: 24px; }
.switch__track { border-color: var(--line-strong); }

/* ==========================================================================
   Masthead
   88px bar, brand left, links centred, actions right. The middle and right
   groups are rendered by app.js per context (visitor / parent / provider /
   check-in) so one header serves every screen.
   ========================================================================== */
.masthead {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
  padding-inline: var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead__brand { display: flex; align-items: center; gap: 12px; }

.wordmark {
  border: none; background: transparent; padding: 0; cursor: pointer;
  font: 900 24px/1 var(--f-sans); color: var(--ink); letter-spacing: -.02em;
  font-optical-sizing: auto;
}
.wordmark em { font-style: normal; }
.masthead__links { display: flex; align-items: center; gap: 40px; justify-self: center; }
.navlink {
  position: relative;
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font: 500 var(--t-body)/1.3 var(--f-sans); color: var(--ink); white-space: nowrap;
}
.navlink:hover { color: var(--ink-soft); }
.navlink--muted { font-weight: 400; opacity: .65; }
.navlink[aria-current="page"] { font-weight: 700; }
.navlink[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; border-radius: 2px; background: var(--pink);
}

.masthead__actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
.masthead__actions .navlink { padding-inline: 4px; }

/* DE | EN in the header: a small segmented pill */
.langseg {
  display: inline-flex; align-items: stretch; height: 36px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: transparent;
}
.langseg__btn {
  border: 0; background: transparent; padding: 0 14px; min-width: 52px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--f-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
}
.langseg__btn:hover { color: var(--ink); }
.langseg__btn.is-on { background: var(--accent); color: var(--ink); }
.langseg__btn:focus-visible { outline: 3px solid var(--pink-text); outline-offset: -3px; border-radius: var(--r-pill); }
/* phones force 44px touch targets on the buttons; the pill grows with them so the labels stay centred */
@media (max-width: 600px) { .langseg { height: 44px; } }
.langseg__btn { min-height: 36px; font-size: 14px; }

/* signed-in parent */
.save--static { cursor: default; pointer-events: none; }

/* burger — phone and tablet */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  justify-self: end;
}
.burger:hover { background: rgba(0, 0, 0, .05); }
.burger .ic { width: 26px; height: 26px; }
.burger__close { display: none; }
.masthead__lang { display: none; }
.masthead--open .burger__open { display: none; }
.masthead--open .burger__close { display: block; }

@media (max-width: 1023px) {
  :root { --nav-h: 72px; }
  /* the first row is always the bar's full height, so opening the menu adds
     rows below it and never moves the logo, the language pill or the burger */
  .masthead { grid-template-columns: 1fr auto auto; grid-template-rows: var(--nav-h); gap: 0 8px; min-height: 0; }
  .burger { display: inline-flex; }
  .masthead__lang { display: flex; justify-self: end; }
  .masthead__lang .langseg { height: 36px; }
  .masthead__lang .langseg__btn { min-width: 40px; min-height: 0; padding: 0 10px; font-size: 13px; }
  .masthead__actions .langseg { display: none; }   /* in the open menu: already in the bar */
  .masthead__links, .masthead__actions {
    display: none;
  }
  .masthead--open .masthead__links,
  .masthead--open .masthead__actions {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    grid-column: 1 / -1; justify-self: stretch;
  }
  /* the outer shadow dims the page under the open menu (a shadow never paints
     inside the header); the transparent layer catches the tap that closes it,
     so the tap does not also open whatever lies underneath */
  .masthead--open { padding-bottom: 16px; box-shadow: var(--shadow-md), 0 0 0 100vmax rgba(20, 24, 32, .35); }
  .masthead--open::after { content: ''; position: fixed; inset: 0; z-index: -1; }
  .masthead--open .navlink { padding: 12px 8px; text-align: left; font-size: 18px; }
  .masthead--open .navlink[aria-current="page"]::after { display: none; }
  .masthead--open .navlink[aria-current="page"] { background: var(--pink-soft); border-radius: var(--r-sm); }
  .masthead--open .masthead__actions { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .masthead--open .masthead__actions .btn { justify-content: center; }
  /* "Log in" / "Log out" in the open menu: a centred pill with the light blue
     frame of the language switch */
  .masthead--open .masthead__actions .navlink[data-go="login"],
  .masthead--open .masthead__actions .navlink[data-action="logout"] {
    text-align: center; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 11px 16px; min-height: 48px; opacity: 1; font-weight: 600;
    background: var(--accent-soft);   /* light blue, also on the log-in page itself */
  }
  .masthead--open .masthead__actions .navlink[data-go="login"][aria-current="page"] { background: var(--accent-soft); border-radius: var(--r-pill); }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .wordmark { font-size: 22px; }
}

/* ==========================================================================
   Footer
   Blue on every page (user decision 2026-09-23; the Figma frames had a cream
   variant on the Hub and skills, which is gone).
   ========================================================================== */
.footer {
  background: var(--accent);
  padding: 40px var(--pad-x) 24px;
  color: var(--ink);
}
.footer__in { max-width: var(--content-max); margin-inline: auto; }
.footer--yellow { background: var(--bg); }   /* under a blue page body: the header's cream */
.footer__top { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer__brand { width: 280px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.footer__brand .wordmark { font-size: 18px; text-align: left; align-self: flex-start; }
.footer__blurb { font: 400 13px/1.5 var(--f-sans); }
.footer__cols { display: flex; gap: 56px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col .kicker { font-size: 11px; }
.footer__col .kicker { margin-bottom: 0; }
.footer__link {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  font: 400 13px/1.3 var(--f-sans); color: var(--ink); text-decoration: none;
}
.footer__link:hover { text-decoration: underline; }
.footer__rule { height: 1px; background: var(--line-soft); margin: 24px 0 0; border: 0; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; }
.footer__copy { font: 400 12px/1.4 var(--f-sans); color: var(--ink-soft); }
.footer__right { display: flex; align-items: center; gap: 24px; }
.langsw { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--f-sans); }
.langsw__btn { border: 0; background: none; padding: 4px 6px; border-radius: var(--r-xs); cursor: pointer; color: var(--ink-soft); font: inherit; letter-spacing: .04em; }
.langsw__btn:hover { color: var(--ink); }
.langsw__btn.is-on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .langsw__btn { min-width: 44px; min-height: 44px; } }
.langsw__sep { color: var(--ink-mute); }
.legal-banner--lang { background: var(--accent-soft); }
.footer__social { display: flex; gap: 4px; }
.footer__social a { display: inline-flex; color: var(--ink); padding: 12px; margin: -12px 0; }   /* 44px hit area */
.footer__social .ic { width: 20px; height: 20px; }
.footer__social a.is-empty { cursor: default; }   /* no address yet: the icon shows, nothing to click */

@media (max-width: 1023px) {
  .footer__top { flex-direction: column; gap: 20px; }
  .footer__cols { gap: 40px; flex-wrap: wrap; }
}
/* Phones: a compact footer — no blurb, the link columns side by side in a
   grid, small print in one tight block. Desktop and tablet keep the full one. */
@media (max-width: 600px) {
  .footer { padding: 28px var(--pad-x) 24px; }
  .footer__top { gap: 20px; }
  .footer__brand { gap: 0; }
  .footer__brand .wordmark { font-size: 18px; }
  .footer__blurb { display: none; }
  /* align-self: the column flex parent would otherwise shrink the grid to one column */
  .footer__cols { display: grid; align-self: stretch; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
  .footer__col { gap: 2px; }
  .footer__col .kicker { font-size: 11px; }
  .footer__link { font-size: 13px; padding: 2px 0; }
  .footer__rule { margin-top: 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; }
  .footer__copy { font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
  .footer__right { width: 100%; justify-content: space-between; gap: 12px; }
  .footer__social a { padding: 8px; margin: -8px 0; }
  .footer__social .ic { width: 18px; height: 18px; }
}

/* ==========================================================================
   Home
   ========================================================================== */
#page-home { padding: 0; }

/* hero — blue band, centred copy, the sentence widget below */
.hero {
  background: var(--accent);
  padding: 80px var(--pad-x) 96px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  text-align: center;
}
.hero__text { max-width: 880px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.hero__title { font: 600 var(--t-hero)/1.1 var(--f-sans); letter-spacing: -.02em; }
.hero__sub { max-width: 640px; font: 400 var(--t-lede)/1.5 var(--f-sans); }

/* "I'm looking for [any activity] for your child [3-5 years] in [Berlin] Go!" */
.sentence {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  width: 940px; max-width: 100%;
  padding: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}
.sentence__word { font: 500 var(--t-body)/1.3 var(--f-sans); white-space: nowrap; }
.sentence .btn { margin-left: auto; }

/* picker — a blue pill that opens a menu. Markup is built in app.js. */
.picker { position: relative; }
.picker__button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer;
  padding: 12px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--ink);
  font: 700 var(--t-body)/1.3 var(--f-sans); white-space: nowrap;
  transition: background-color .15s ease;
}
.picker__button:hover { background: var(--accent-deep); }
.picker__button[aria-expanded="true"] { background: var(--accent-deep); }
.picker__button:disabled { opacity: .55; cursor: default; }
.picker__button .ic { width: 14px; height: 14px; transition: transform .15s ease; }
.picker__button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.picker__menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0;
  min-width: 100%; width: max-content; max-width: min(92vw, 560px);
  max-height: 320px; overflow: auto;
  padding: 8px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px;
  text-align: left;
}
.picker__menu[hidden] { display: none; }
.picker__option {
  border: 0; background: none; cursor: pointer; text-align: left;
  padding: 10px 12px; border-radius: var(--r-sm);
  font: 500 15px/1.3 var(--f-sans); color: var(--ink); text-transform: capitalize;
}
.picker__option:hover { background: var(--accent-soft); }
.picker__option[aria-selected="true"] { background: var(--accent); font-weight: 700; }
/* A city we do not cover yet: the compact list stays; the name turns grey and
   a quiet pink "coming soon" sits under it (design "subtle text", 2026-09-24). */
.picker__option--soon { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; color: var(--ink-soft); }
.soonnote { font-style: italic; font-weight: 400; font-size: 12px; line-height: 1.2; color: var(--pink-display); text-transform: none; }
.picker--empty .picker__button { background: var(--accent-soft); }
/* the same picker as a form field: paper box, full width, one option per row */
.picker--form { display: block; }
.picker--form .picker__button {
  display: flex; width: 100%; justify-content: space-between; white-space: normal; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-weight: 400; padding: 13px 14px;
}
.picker--form .picker__button:hover, .picker--form .picker__button[aria-expanded="true"] { background: var(--paper); border-color: var(--ink); }
.picker--form .picker__button:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.picker--form .picker__button[aria-invalid="true"] { border-color: var(--red); }
.picker--form .picker__value.is-placeholder { color: var(--ink-soft); }
.picker--form .picker__menu { grid-template-columns: 1fr; width: 100%; max-width: none; }
.picker--form .picker__option { text-transform: none; }
.picker__menu--multi .picker__option { display: flex; align-items: center; gap: 8px; }
.picker__menu--multi .picker__option .ic { display: none; width: 14px; height: 14px; margin-left: auto; }
.picker__menu--multi .picker__option[aria-selected="true"] .ic { display: inline-block; }
.fchips .picker__menu { grid-template-columns: 1fr; width: max-content; min-width: 220px; }
.fchips .picker__button { justify-content: center; }
.fdates { display: flex; gap: 12px; flex-wrap: wrap; width: 100%; }
.fdates__field { display: flex; align-items: center; gap: 8px; }
.fdates__label { font: 700 var(--t-meta)/1.3 var(--f-sans); }
.fdates .input { width: 170px; }

/* calendar pop-up for date fields */
input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px 18px; padding-right: 40px;
}
input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.cal {
  position: fixed; z-index: 1000; width: 348px; max-width: calc(100vw - 16px); padding: 14px;
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font: 400 16px/1.3 var(--f-sans); color: var(--ink);
}
.cal__head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal__sel { flex: 1 1 0; min-width: 0; }
.cal__sel--year { flex: 0 0 104px; }
.cal__sel .picker__button { padding: 9px 10px; font-weight: 700; }
.cal__sel .picker__menu { max-height: 260px; }
.cal__nav {
  flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal__nav:hover:not(:disabled) { background: var(--accent); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__nav .ic { width: 18px; height: 18px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__wd { text-align: center; font: 700 12px/1.3 var(--f-sans); color: var(--ink-soft); padding: 6px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal__day { height: 42px; border: 0; border-radius: 50%; background: none; cursor: pointer; font: 500 16px/1 var(--f-sans); color: var(--ink); }
.cal__day:hover:not(:disabled) { background: var(--accent-soft); }
.cal__day.is-out { opacity: .4; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal__day[aria-pressed="true"] { background: var(--accent); font-weight: 700; opacity: 1; }
.cal__day:disabled { opacity: .2; cursor: default; }
.cal__foot { display: flex; justify-content: space-between; margin-top: 10px; padding: 0 4px; }
.cal__foot .linkbtn { font-weight: 700; }
.cal__foot .linkbtn:disabled { opacity: .4; cursor: default; }

/* section heading block */
.home-sect { padding: 96px var(--pad-x); }
.home-sect__head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 40px; }
.home-sect__title { font: 600 var(--t-sect)/1.2 var(--f-sans); }
.home-sect__sub { font: 400 var(--t-lede)/1.5 var(--f-sans); }

/* pick a thing to try — eight rings */
.rings {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  max-width: var(--content-max); margin-inline: auto;
  list-style: none; padding: 0; margin-block: 0;
}
.ring {
  width: 130px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.ring__disc {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: background-color .15s ease, transform .15s ease;
}
.ring__disc .ic { width: 32px; height: 32px; }
.ring:hover .ring__disc { background: var(--accent-soft); transform: translateY(-2px); }
.ring__label { font: 700 var(--t-body)/1.3 var(--f-sans); text-align: center; }

/* resale teaser banner */
.teaser { padding: 24px var(--pad-x); }
.teaser__card {
  max-width: var(--content-max); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding: 40px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line);
}
.teaser__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.teaser__tag { letter-spacing: .02em; }
.teaser__title { font: 700 clamp(24px, 2.4vw, 32px)/1.2 var(--f-sans); text-wrap: balance; }
.teaser__text { font: 400 var(--t-lede)/1.5 var(--f-sans); color: var(--ink-soft); }
.teaser__body .btn { margin-top: 4px; }
.teaser__list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tsoffer {
  display: flex; justify-content: space-between; gap: 16px; width: 100%; text-align: left;
  padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper);
  font: inherit; color: inherit; cursor: pointer;
}
.tsoffer:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tsoffer__l { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tsoffer__club { font: 700 var(--t-meta)/1.3 var(--f-sans); color: var(--pink-text); }
.tsoffer__course { font: 700 var(--t-body)/1.3 var(--f-sans); }
.tsoffer__example { font: 500 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--r-pill); padding: 2px 8px; margin-top: 4px; }
.tsoffer__r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tsoffer__price { font: 700 var(--t-card)/1.2 var(--f-sans); }
.tsoffer__was { font: 400 var(--t-tiny)/1.2 var(--f-sans); color: var(--ink-soft); text-decoration: line-through; }
.tsoffer__fact { display: inline-flex; align-items: center; gap: 6px; font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); }
.tsoffer__fact .ic { width: 14px; height: 14px; }
.tsoffer__age { margin-top: 4px; padding: 3px 10px; border-radius: var(--r-xs); border: 1px solid var(--ink); font: 700 var(--t-tiny)/1.3 var(--f-sans); }

/* how it works — three numbered columns */
.how { padding: 96px var(--pad-x); }
.how__in { max-width: var(--content-max); margin-inline: auto; display: flex; flex-direction: column; gap: 64px; }
.steps { display: flex; gap: 48px; list-style: none; padding: 0; margin: 0; }
.step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.step__num { font: 700 48px/1 var(--f-sans); letter-spacing: -.02em; color: var(--pink-display); }
.step__title { font: 600 var(--t-h3)/1.2 var(--f-sans); }
.step__text { font: 400 var(--t-lede)/1.6 var(--f-sans); }

/* what a free account adds — photo beside the perks */
.perks-band { padding: 80px var(--pad-x); }
.perks-band__in { max-width: var(--content-max); margin-inline: auto; display: flex; align-items: center; gap: 80px; }
.perks-band__photo {
  width: 540px; height: 360px; flex: none;
  border-radius: var(--r-xl); overflow: hidden; background: var(--accent);
}
.perks-band__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perks-band__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.perks-band__title { font: 600 36px/1.15 var(--f-sans); letter-spacing: -.01em; }
.perks-band__sub { margin-top: 12px; font: 400 var(--t-lede)/1.5 var(--f-sans); }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk__check {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 1px;
  background: var(--lime); display: grid; place-items: center;
}
.perk__check .ic { width: 12px; height: 12px; }
.perk__title { font: 700 var(--t-body)/1.3 var(--f-sans); }
.perk__text { font: 400 var(--t-body)/1.4 var(--f-sans); margin-top: 2px; }

/* ---- home: tablet ------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 32px; }
  .home-sect, .how { padding-block: 72px; }

  .steps { flex-direction: column; gap: 20px; }
  .step {
    padding: 28px; border-radius: var(--r-lg);
    background: var(--paper); border: 1px solid var(--line);
  }
  .step__num { color: var(--pink-display); }   /* light pink on the white card fails contrast */

  .perks-band__in { flex-direction: column; align-items: stretch; gap: 40px; }
  .perks-band__photo { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .steps { display: grid; grid-template-columns: 1fr 1fr; }
  .rings { gap: 16px; }
  .ring { flex: 0 1 calc(25% - 12px); }
  .ring {
    width: auto; padding: 20px 12px; border-radius: var(--r-lg);
    background: var(--paper); border: 1px solid var(--line);
  }
  .ring__disc { background: var(--accent); border-color: var(--accent); box-shadow: none; }
}

/* ---- home: phone ------------------------------------------------------- */
@media (max-width: 700px) {
  html, body { overflow-x: clip; }
  .hero { padding: 40px var(--pad-x) 48px; gap: 28px; text-align: left; align-items: stretch; }
  .hero__text { align-items: flex-start; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: var(--t-body); }

  /* the sentence becomes a stacked card: label, full-width pill, repeat */
  .sentence {
    flex-direction: column; align-items: stretch; gap: 8px;
    width: 100%; padding: 20px; border-radius: var(--r-xl);
  }
  .sentence__word { font-weight: 700; font-size: var(--t-meta); margin-top: 8px; }
  .sentence__word:first-child { margin-top: 0; }
  .sentence .picker { width: 100%; }
  .sentence .picker__button { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .sentence .picker__menu { grid-template-columns: 1fr 1fr; max-width: none; }
  .sentence .btn { margin: 16px 0 0; width: 100%; min-height: 48px; }

  .home-sect { padding-block: 48px; }
  .home-sect__head { margin-bottom: 24px; align-items: flex-start; text-align: left; }
  .home-sect__title { font-size: 24px; }
  .home-sect__sub { font-size: var(--t-meta); }

  /* rings scroll sideways as cards */
  .rings {
    flex-wrap: nowrap; justify-content: flex-start; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--pad-x)); padding-inline: var(--pad-x);
    scrollbar-width: none;
  }
  .rings::-webkit-scrollbar { display: none; }
  .ring {
    flex: none; width: 128px; scroll-snap-align: start;
    padding: 20px 12px; border-radius: var(--r-lg);
    background: var(--paper); border: 1px solid var(--line);
  }
  .ring__disc { width: 56px; height: 56px; background: var(--accent); border-color: var(--accent); box-shadow: none; }
  .ring__disc .ic { width: 24px; height: 24px; }
  .ring__label { font-size: var(--t-meta); }

  .teaser { padding-block: 16px; }
  .teaser__card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .teaser__text { font-size: var(--t-body); }
  .teaser__body .btn { width: 100%; }

  .how { padding-block: 48px; }
  .how__in { gap: 28px; }
  .step { padding: 24px; gap: 14px; }
  .step__num { font-size: 40px; }
  .step__title { font-size: 18px; }
  .step__text { font-size: var(--t-body); }

  .perks-band { padding-block: 48px; }
  .perks-band__title { font-size: 26px; }
  .perks-band__sub { font-size: var(--t-body); }
  .perks-band__body .btn { width: 100%; }
}


/* ==========================================================================
   Activities — the directory. Head band, blue filter band, results bar, then
   a card grid or a row list. Figma 24:190 (grid) and 44:4 (list).
   ========================================================================== */
#page-classes { padding: 0; }

.acts-head { padding: 48px var(--pad-x) 24px; }
.acts-head__in { max-width: var(--content-max); margin-inline: auto; }

.acts-filter {
  background: var(--accent);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px var(--pad-x);
}
.acts-filter__in {
  max-width: var(--content-max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.acts-filter__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acts-filter__body { display: contents; }
.acts-filter__toggle { display: none; }

/* "Activity type: All categories ▾" — a white pill whose right half is the
   picker button; the visible label lives outside the button, the accessible
   name inside it (see buildPickers). */
.fpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.fpill__label { font: 500 15px/1.2 var(--f-sans); white-space: nowrap; }
.fpill .picker__button {
  background: transparent; padding: 10px 16px 10px 0; font-size: 15px;
}
.fpill .picker__button:hover { background: transparent; text-decoration: underline; }
.fpill .picker__button .ic { width: 12px; height: 12px; }
.fpill .picker__menu { left: -17px; }
.acts-filter .switch { font-weight: 500; }

.acts-tools { padding: 32px var(--pad-x) 24px; }
.acts-tools__in {
  max-width: var(--content-max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.acts-tools__count { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acts-tools__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fpill--sort { background: transparent; border-color: var(--line); }
.fpill--sort .picker__menu { grid-template-columns: 1fr; min-width: 180px; left: auto; right: -17px; }
.eyebrow__more {
  margin-left: 8px; color: var(--ink-mute); font-weight: 500; letter-spacing: 0;
  text-transform: none; white-space: nowrap;
}
.result-count { font: 700 20px/1.3 var(--f-sans); margin: 0; }
.result-sub { font: 400 15px/1.3 var(--f-sans); color: var(--ink-soft); margin: 0; }

.viewtoggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--accent); border-radius: var(--r-sm);
}
.viewtoggle button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 28px; border: 0; border-radius: var(--r-xs);
  background: transparent; color: var(--ink); cursor: pointer;
}
.viewtoggle button .ic { width: 16px; height: 16px; }
.viewtoggle button[aria-pressed="true"] { background: var(--paper); }

.acts-list { padding: 0 var(--pad-x) 96px; }
.acts-list__in { max-width: var(--content-max); margin-inline: auto; }

.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.classes--list { grid-template-columns: 1fr; gap: 16px; }
.classes__more { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; }
.classes__more-count { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); }
.classes--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.classes .agegap { grid-column: 1 / -1; }

/* ---- card ---- */
.acard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.acard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.acard__photo { position: relative; height: 190px; background: var(--accent); }
.acard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* every card in a row is the same height: the body fills it and the price row sits at the bottom */
.acard__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.acard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acard__meta .eyebrow { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard__meta .place { flex: 0 1 auto; min-width: 0; }
.place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard__title { font: 700 var(--t-card)/1.3 var(--f-sans); letter-spacing: 0; min-height: calc(2 * 1.3em); }   /* always room for two lines */
.acard__title, .lrow__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__link { color: var(--ink); text-decoration: none; }
.acard__link:hover { text-decoration: underline; }
/* the whole card is clickable through the heading link */
.acard__link::after, .lrow .acard__link::after { content: ''; position: absolute; inset: 0; }
.acard, .lrow { position: relative; }
.acard .save, .lrow .save { z-index: 2; }
.acard__facts { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--line);
  font: 400 var(--t-meta)/1.3 var(--f-sans); min-height: 13px; margin-top: auto;
}
.acard__foot:empty { padding-top: 0; }
.acard__foot__key { color: var(--ink-soft); }

/* the heart pill over the photo */
.save {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 0; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  font: 700 var(--t-tiny)/1 var(--f-sans);
}
.save .ic { width: 14px; height: 14px; color: var(--pink); }
.save.is-on .ic { fill: var(--pink); }
.save:hover { background: var(--pink-soft); }
.save--inline {
  position: static; padding: 0; background: none; box-shadow: none;
  font: 700 var(--t-meta)/1.3 var(--f-sans);
}
.save--inline .ic { width: 16px; height: 16px; color: var(--ink); }
.save--inline.is-on .ic { color: var(--pink); fill: var(--pink); }
.save--inline:hover { background: none; text-decoration: underline; }

.place { display: inline-flex; align-items: center; gap: 4px; font: 400 var(--t-meta)/1.3 var(--f-sans); white-space: nowrap; }
.place .ic { width: 12px; height: 12px; }

.rating { display: inline-flex; align-items: center; gap: 4px; font: 400 var(--t-meta)/1.3 var(--f-sans); white-space: nowrap; }
.rating .ic { width: 14px; height: 14px; color: var(--star); fill: var(--star); }
.rating__score { font-weight: 700; }
.rating__n { color: var(--ink-soft); }
.rating--none { color: var(--ink-mute); }
.rating--jump { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.rating--jump:hover .rating__n { text-decoration: underline; }

.agechip--gap { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-mute); font-weight: 500; }

/* ---- list row (design 2026-09-23) ---- */
.lrow {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  transition: box-shadow .15s ease;
}
.lrow:hover { box-shadow: var(--shadow-md); }
.lrow__photo { position: relative; width: 220px; aspect-ratio: 11 / 8; border-radius: var(--r-md); overflow: hidden; background: var(--accent); }
.lrow__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lrow__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lrow__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lrow__title { font: 600 22px/1.25 var(--f-sans); letter-spacing: -.01em; }
.lrow__text {
  font: 400 15px/1.5 var(--f-sans); color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lrow__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.lrow__place { font: 500 14px/1.3 var(--f-sans); }
.lrow .agechip { background: var(--lime); }
.lrow__price {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--line); font: 700 13px/1.3 var(--f-sans); white-space: nowrap;
}

/* ---- empty / notes ---- */
.empty-state { grid-column: 1 / -1; padding: 40px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-state p { font: 700 20px/1.3 var(--f-sans); margin-bottom: 6px; }
.empty-state span { color: var(--ink-soft); }
.panel__empty { color: var(--ink-soft); }
.agegap { padding: 20px 24px; margin-top: 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--paper); }
.agegap__head { font: 700 var(--t-body)/1.3 var(--f-sans); margin: 0; }
.agegap__sub { color: var(--ink-soft); margin: 4px 0 0; font-size: var(--t-meta); }

@media (max-width: 1100px) {
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lrow { grid-template-columns: 180px minmax(0, 1fr); }
  .lrow__photo { width: 180px; }
  .classes.classes--list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* list row on phones: square photo left, text right, pills wrap */
  .lrow { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; align-items: start; border-radius: var(--r-lg); }
  .lrow__photo { width: 104px; aspect-ratio: 1; }
  .lrow__photo .save { top: 6px; right: 6px; padding: 4px 7px; }
  .lrow__main { gap: 4px; }
  .lrow__title { font-size: 17px; }
  .lrow__text { font-size: 14px; }
  .lrow__facts { gap: 6px 8px; }
  .lrow__place { font-size: 13px; flex-basis: 100%; }
  .lrow__photo .save { min-height: 30px; }
  .lrow .rating--none { display: none; }   /* no room in the top line; the card still says it on the club page */
  .acts-head { padding-top: 32px; padding-bottom: 16px; }
  .acts-filter__left { width: 100%; }
  /* the filters fold behind one pill; open, they stack as before */
  .acts-filter__toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
    padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
    background: var(--paper); color: var(--ink); cursor: pointer;
    font: 700 16px/1.2 var(--f-sans);
  }
  .acts-filter__toggle .ic { width: 18px; height: 18px; }
  .acts-filter__chev { margin-left: auto; transition: transform .15s ease; }
  .acts-filter__toggle[aria-expanded="true"] .acts-filter__chev { transform: rotate(180deg); }
  .acts-filter__n {
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pill);
    display: inline-grid; place-items: center;
    background: var(--pink); color: var(--ink); font: 700 13px/1 var(--f-sans);
  }
  .acts-filter__n[hidden] { display: none; }
  .acts-filter__body { display: none; }
  .acts-filter--open .acts-filter__body { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; }
  .fpill { width: 100%; justify-content: space-between; }
  .fpill .picker { flex: 1 1 auto; }
  .fpill .picker__button { width: 100%; justify-content: space-between; }
  .acts-tools { padding-top: 24px; padding-bottom: 16px; }
  .acts-list { padding-bottom: 64px; }
  .classes, .classes--pair { grid-template-columns: 1fr; gap: 16px; }
  .acard__photo { height: 170px; }
}

/* ==========================================================================
   Provider detail — main column + 380px sidebar. Figma 24:497.
   ========================================================================== */
#page-provider { padding: 0; }
.pdet-wrap { padding: 32px var(--pad-x) 96px; }
.pdet-wrap__in { max-width: var(--content-max); margin-inline: auto; }
.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0; cursor: pointer;
  font: 700 var(--t-meta)/1.3 var(--f-sans); color: var(--ink); margin-bottom: 32px;
}
.backlink:hover { text-decoration: underline; }

.pdet { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.pdet__main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.pdet__side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }

.pd-head { display: flex; flex-direction: column; gap: 16px; }
.pd-head__cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pd-head__title { font: 600 var(--t-page)/1.15 var(--f-sans); letter-spacing: -.02em; }
.pd-head__acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pd-head__sep { width: 1px; height: 12px; background: var(--line-soft); }
.pd-head__site {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 var(--t-meta)/1.3 var(--f-sans); color: var(--ink);
}
.pd-head__site .ic { width: 16px; height: 16px; }
.pd-head__summary { font: 400 var(--t-body)/1.6 var(--f-sans); max-width: 70ch; }
.pd-head__also { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); }
.pd-head__also a { font-weight: 700; color: var(--ink); text-transform: capitalize; }

.ftiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ftile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--accent); border: 1px solid var(--accent);
  max-width: 100%;
}
.ftile__key { font: 700 12px/1.3 var(--f-sans); letter-spacing: .06em; text-transform: uppercase; }
.ftile__val { font: 700 var(--t-body)/1.3 var(--f-sans); overflow-wrap: anywhere; }
.ftile__val::first-letter { text-transform: uppercase; }
.ftile--gap { background: transparent; border-style: dashed; border-color: var(--line); }
.ftile--gap .ftile__val { color: var(--ink-mute); font-weight: 500; }
.ftile__key { display: inline-flex; align-items: center; gap: 6px; }
.ftile__ic { display: none; width: 14px; height: 14px; flex: none; }
/* Tablets and phones: the four facts as an even 2 × 2 grid — same width, same
   height, an icon before each label — instead of pills that wrap unevenly. */
@media (max-width: 900px) {
  .ftiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ftile { padding: 12px 14px; min-height: 76px; justify-content: center; }
  .ftile__ic { display: inline-block; }
  .ftile__key { font-size: 11px; }
  .ftile__val { font-size: 15px; }
}
/* very narrow phones: one compact list, label left, value right */
@media (max-width: 359px) {
  .ftiles { grid-template-columns: 1fr; gap: 0; border-radius: var(--r-md); overflow: hidden; }
  .ftile { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 0;
           border-radius: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .7); }
  .ftile:last-child { border-bottom: 0; }
  .ftile__val { text-align: right; }
  .ftile--gap { background: var(--accent-soft); }
}

.pd-sect { display: flex; flex-direction: column; gap: 24px; padding-top: 48px; border-top: 1px solid var(--line); }
.pd-sect__title { font: 600 28px/1.2 var(--f-sans); letter-spacing: -.01em; }
.pd-sect__empty { font: 400 var(--t-body)/1.6 var(--f-sans); color: var(--ink-soft); }
.pd-sect__note { font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); }
.pd-sect__lead { font: 400 var(--t-body)/1.5 var(--f-sans); color: var(--ink-soft); margin-bottom: 16px; }
.pd-more { margin-top: 16px; }
.pd-more__summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font: 700 var(--t-meta)/1.3 var(--f-sans); color: var(--ink);
  padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper);
}
.pd-more__summary::-webkit-details-marker { display: none; }
.pd-more__summary .ic { width: 14px; height: 14px; transition: transform .15s ease; }
.pd-more[open] .pd-more__summary .ic { transform: rotate(180deg); }
.pd-more__group { margin: 20px 0 8px; font: 700 var(--t-meta)/1.3 var(--f-sans); text-transform: capitalize; }
.pd-more .ctable { margin-top: 8px; }
.pd-more--locs .locs { margin-top: 12px; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.price {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.price--best { border: 2px solid var(--pink); }
.price__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price__name { font: 700 var(--t-body)/1.3 var(--f-sans); }
.price__amount { font: 700 32px/1.1 var(--f-sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
.price__note { font: 400 var(--t-body)/1.6 var(--f-sans); color: var(--ink-soft); }

/* no italics anywhere (brand rule): emphasis stays upright */
em, i, cite, blockquote { font-style: normal; }

/* courses table */
/* One grid for the whole table; every row is a subgrid, so the header and all
   rows share the same column widths however long a course name or time is. */
.ctable {
  display: grid; grid-template-columns: minmax(0, 2fr) max-content minmax(0, 1.6fr) max-content max-content;
  column-gap: 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
}
.ctable__row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
  row-gap: 20px; padding: 20px; align-items: center;
  border-bottom: 1px solid var(--line);
  font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft);
}
.ctable__row:last-child, .ctable__row.is-open { border-bottom: 0; }
.ctable__row--head { background: var(--accent-soft); font: 500 var(--t-meta)/1.3 var(--f-sans); padding-block: 14px; }
.ctable__row--alt, .ctable__more--alt { background: #FAF9F5; }
.ctable__cell { min-width: 0; overflow-wrap: anywhere; }
.ctable__cell--name { display: flex; align-items: center; gap: 12px; font: 700 var(--t-body)/1.3 var(--f-sans); color: var(--ink); }
.ctable__row--head .ctable__cell--name { font: inherit; color: inherit; padding-left: 40px; }   /* lines up with the names after the info button */
.ctable__info {
  flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  display: inline-grid; place-items: center;
}
.ctable__info .ic { width: 16px; height: 16px; }
.ctable__info--none { visibility: hidden; }
.ctable__info:hover, .ctable__info[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); }
.ctable__when, .ctable__until { display: block; font-variant-numeric: tabular-nums; }
.ctable__cell--price { font: 700 var(--t-body)/1.3 var(--f-sans); color: var(--ink); white-space: nowrap; }
.ctable__cell--act { justify-self: end; }
.ctable__cell--act .btn { white-space: nowrap; }
.ctable__more { grid-column: 1 / -1; padding: 0 20px 20px 60px; border-bottom: 1px solid var(--line); font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); white-space: pre-line; }
.ctable__more:last-child { border-bottom: 0; }

/* where */
.locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.loc { display: flex; flex-direction: column; gap: 12px; }
.loc__name { font: 700 var(--t-body)/1.3 var(--f-sans); }
.loc__addr { font: 400 var(--t-meta)/1.6 var(--f-sans); }
.loc__map { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--t-meta)/1.3 var(--f-sans); color: var(--ink); }
.loc__map .ic { width: 16px; height: 16px; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .reviews { grid-template-columns: minmax(0, 1fr); } }
.rvw {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.rvw__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stars { display: inline-flex; gap: 2px; }
.stars .ic { width: 14px; height: 14px; color: var(--star); }
.stars .ic.is-on { fill: var(--star); }
.rvw__when { font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); }
.rvw__text { font: 400 var(--t-meta)/1.6 var(--f-sans); }
.rvw__by { display: flex; justify-content: space-between; gap: 12px; font: 700 var(--t-tiny)/1.3 var(--f-sans); }
.report-link { font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); }
/* course list in the Hub */
.navlink--strong { background: var(--lime); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 700; }
.navlink--strong:hover { background: var(--lime); filter: brightness(.95); }
.clist { display: flex; flex-direction: column; gap: 4px; }
.crs { border-top: 1px solid var(--line); padding: 16px 0 14px; }
.crs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.crs__name { font: 700 var(--t-body)/1.3 var(--f-sans); }
.crs__when { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.crs__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: var(--r-pill); padding: 6px 12px; font: 500 14px/1 var(--f-sans); cursor: pointer; min-height: 36px; }
.mini:hover:not(:disabled) { background: var(--accent-soft); }
.mini:disabled { opacity: .5; cursor: default; }
.cpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cpill { border: 1px solid transparent; border-radius: var(--r-pill); padding: 8px 14px; font: 700 14px/1.2 var(--f-sans); cursor: pointer; font-variant-numeric: tabular-nums; min-width: 96px; min-height: 40px; text-align: center; color: var(--ink); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.cpill__st { font: 500 12px/1 var(--f-sans); }
.cpill[data-s="off"] .cpill__day { text-decoration: line-through; }
.cpill[data-s="free"], .clegend i[data-s="free"], .dots i[data-s="free"] { background: var(--lime); }
.cpill[data-s="full"], .clegend i[data-s="full"], .dots i[data-s="full"] { background: var(--accent-soft); border-color: var(--line); }
.cpill[data-s="unknown"], .dots i[data-s="unknown"] { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.cpill[data-s="off"], .clegend i[data-s="off"], .dots i[data-s="off"] { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.cpill:disabled { cursor: default; opacity: .6; }
.cpill:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 2px; }
.clegend { display: flex; gap: 14px; flex-wrap: wrap; font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); margin: 14px 0 4px; }
.clegend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid transparent; vertical-align: -1px; margin-right: 5px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg__btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--r-pill); padding: 9px 13px; font: 700 13px/1 var(--f-sans); cursor: pointer; min-height: 36px; }
.seg__btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.seg__btn--free[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.seg__btn--full[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--line); }
.setrow--toggle { cursor: pointer; }
.crs__form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ink); }
.pform__h3 { font: 700 18px/1.3 var(--f-sans); margin: 8px 0 -8px; }
.locedit { display: flex; flex-direction: column; gap: 14px; }
/* where to find them: text left, one picture right; the picture opens the gallery */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
.where__photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--accent-soft); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.where__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.where__photo:hover img { transform: scale(1.03); }
.where__photo:hover .where__count { background: rgba(0, 0, 0, .8); }
.where__photo:focus-visible { outline: 3px solid var(--pink-text); outline-offset: 3px; }
.where__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .62); color: #fff; font: 700 13px/1 var(--f-sans); padding: 8px 12px; border-radius: var(--r-pill); pointer-events: none; }
.where__count .ic { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .where__photo img { transition: none; } .where__photo:hover img { transform: none; } }
@media (max-width: 720px) { .where { grid-template-columns: 1fr; } }
.where--solo { grid-template-columns: 1fr; }
/* the venue pictures at the top of the sidebar */
.where__photo--side { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
/* Google Maps, two-click: a quiet preview until the reader asks for the map */
.mapprev {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: var(--accent-soft) repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 2px, transparent 2px 22px);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.mapprev__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; max-width: 320px; }
.mapprev__pin { width: 32px; height: 32px; color: var(--pink-text); }
.mapprev__addr { font: 700 var(--t-body)/1.4 var(--f-sans); }
.mapprev__note { font: 400 var(--t-tiny)/1.4 var(--f-sans); color: var(--ink-soft); }
.mapprev__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* the gallery: one picture, arrows, counter */
.gallery { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.gallery::backdrop { background: rgba(0, 0, 0, .88); }
.gallery__box { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery__img { max-width: min(92vw, 1400px); max-height: 88vh; object-fit: contain; border-radius: var(--r-sm); cursor: pointer; }
.gallery__nav, .gallery__close { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #171512; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gallery__nav .ic, .gallery__close .ic { width: 22px; height: 22px; }
.gallery__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gallery__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.gallery__close { right: 16px; top: 16px; }
.gallery__count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; color: #fff; font: 700 14px/1 var(--f-sans); background: rgba(0, 0, 0, .5); padding: 8px 12px; border-radius: var(--r-pill); }
.gallery__nav:focus-visible, .gallery__close:focus-visible { outline: 3px solid var(--pink); }
/* profile: the photo grid */
.photos { display: flex; flex-direction: column; gap: 12px; }
.photos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .photos__grid { grid-template-columns: minmax(0, 1fr); } }
.photos__item { position: relative; margin: 0; }
.photos__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--accent-soft); }
.photos__cover { position: absolute; left: 8px; top: 8px; }
.photos__acts { display: flex; gap: 12px; padding: 8px 0 0; font-size: var(--t-meta); }
.photos__hint { font: 400 var(--t-tiny)/1.5 var(--f-sans); color: var(--ink-soft); }
.photos__acts .linkbtn { font-weight: 400; color: var(--ink-soft); }
.photos__acts .linkbtn:first-child:not(:only-child) { font-weight: 700; color: var(--ink); }
.locedit__row { display: flex; flex-direction: column; gap: 10px; }
.locedit__row + .locedit__row { padding-top: 14px; border-top: 1px solid var(--line); }
.reviews__note { margin-top: 12px; }
.rvw__reply { font: 400 var(--t-tiny)/1.5 var(--f-sans); color: var(--ink-soft); padding-left: 12px; border-left: 2px solid var(--line); }
.reviews__more { display: flex; justify-content: center; }
.reviews__all { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: var(--t-meta); }
.reviews__all .ic { width: 14px; height: 14px; }
.reviews__all:hover { text-decoration: underline; }

/* sidebar */
.askcard {
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px; border-radius: var(--r-xl);
  background: var(--paper); border: 2px solid var(--pink);
  box-shadow: 0 12px 16px rgba(0, 0, 0, .05);
}
.askcard__title { font: 600 24px/1.2 var(--f-sans); margin-top: -14px; }
.askcard__text { font: 400 var(--t-body)/1.6 var(--f-sans); }
.askcard__note { font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); margin-top: -12px; }
.askcard__trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft);
}
.askcard__trust .ic { width: 14px; height: 14px; }

.ratecard {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.ratecard__title { font: 700 var(--t-body)/1.3 var(--f-sans); }
/* the parent has reviewed already: the card steps back, editing stays possible */
.ratecard--done { background: var(--bg); border-style: dashed; }
.ratecard--done .ratecard__title { color: var(--ink-soft); }
.ratecard--done .ratecard__stars, .ratecard--done .ratecard__comment { opacity: .7; }
.ratecard--done .ratecard__stars:hover, .ratecard--done .ratecard__stars:focus-within,
.ratecard--done .ratecard__comment:focus { opacity: 1; }
.ratecard__text { font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); margin-top: -8px; }
.ratecard__stars { display: flex; gap: 4px; }
.ratecard__star { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--ink); display: inline-flex; }
.ratecard__star .ic { width: 24px; height: 24px; }
.ratecard__star.is-on { color: var(--star); }
.ratecard__star.is-on .ic { fill: var(--star); }
.ratecard__comment { padding: 10px 16px; resize: vertical; min-height: 44px; font-size: var(--t-body); }
.ratecard__cta { align-self: flex-start; }
.ratecard .authcard__aside { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); }

@media (max-width: 1100px) {
  .pdet { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
}
@media (max-width: 900px) {
  /* one column: the club's name and facts first, then the request card, then
     the sections; the rating card follows the sections */
  .pdet { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pdet__main, .pdet__side { display: contents; }
  .pdet .pd-head { order: -2; }
  .pdet .where__photo--side { order: -1; aspect-ratio: 16 / 9; }
  .pdet .askcard { order: -1; }
  .pdet-wrap { padding-bottom: 64px; }
}
@media (max-width: 700px) {
  .pdet { gap: 32px; }
  .pd-sect { padding-top: 32px; gap: 16px; }
  .pd-sect__title { font-size: 22px; }
  .askcard { padding: 24px; }
  .ctable { display: block; }
  .ctable__row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px 16px; padding: 16px; align-items: start; }
  .ctable__row--head { display: none; }
  .ctable__cell--name { grid-column: 1 / -1; }
  .ctable__info--none { display: none; }
  .ctable__cell--empty { display: none; }
  .ctable__cell[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 700 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); letter-spacing: .02em;
  }
  .ctable__cell--price[data-label] { grid-column: 1 / -1; }
  .ctable__cell--act { grid-column: 1 / -1; justify-self: stretch; margin-top: 4px; }
  .ctable__cell--act .btn { width: 100%; }
  .ctable__more { padding: 0 16px 16px; }
  .price__amount { font-size: 26px; }
}

/* ---- request a place dialog ---- */
.reqdlg {
  border: 0; padding: 0; background: transparent;
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
}
.reqdlg::backdrop { background: rgba(0, 0, 0, .45); }
.reqdlg__box {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 40px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 32px); overflow: auto;
}
.reqdlg__x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; font: 400 24px/1 var(--f-sans); cursor: pointer;
}
.reqdlg__x:hover { background: rgba(0, 0, 0, .05); }
.reqdlg__title { font: 600 28px/1.2 var(--f-sans); }
.reqdlg__who { font: 700 var(--t-body)/1.3 var(--f-sans); margin-top: -8px; }
.reqdlg__course { padding: 14px 18px; border-radius: var(--r-md); background: var(--accent); }
.reqdlg__course__name { font: 700 var(--t-body)/1.3 var(--f-sans); }
.reqdlg__course__meta { font: 400 var(--t-meta)/1.4 var(--f-sans); margin-top: 2px; }
.reqdlg__section { font: 700 var(--t-body)/1.3 var(--f-sans); margin-top: 10px; }
.reqdlg__section__note { font-weight: 400; color: var(--ink-soft); }
.reqdlg__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.reqdlg__cell { display: flex; flex-direction: column; gap: 6px; flex: 0 1 auto; }
.reqdlg__cell--grow { flex: 1 1 200px; }
.reqdlg__cell.is-off { opacity: .5; }
.reqdlg__label { font: 700 var(--t-meta)/1.3 var(--f-sans); }
.reqdlg__input, .reqdlg__message {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font: 400 var(--t-body)/1.4 var(--f-sans); padding: 12px 14px; width: 100%;
}
.reqdlg__input:focus, .reqdlg__message:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--pink-text); }
.reqdlg__message { min-height: 120px; resize: vertical; }
.reqdlg__pill {
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper);
  padding: 11px 16px; font: 700 var(--t-meta)/1.2 var(--f-sans); cursor: pointer;
}
.reqdlg__pill[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.reqdlg__hint { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); }
.reqdlg__actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.reqdlg__note { font: 400 var(--t-meta)/1.4 var(--f-sans); padding: 10px 14px; border-radius: var(--r-sm); background: var(--lime-soft); }
.reqdlg__note--bad { background: var(--pink-soft); }
.reqdlg__foot { font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); }
/* Phones: the dialog is a full-screen sheet. The title and the close button
   stay at the top, the send button at the bottom, the form scrolls between. */
@media (max-width: 600px) {
  .reqdlg:not(.okdlg) { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .reqdlg:not(.okdlg) .reqdlg__box {
    height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; box-shadow: none;
    padding: 0 16px; gap: 12px;
  }
  .reqdlg__title {
    position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 18px 60px 10px 16px;
    background: var(--paper); font-size: 24px; border-bottom: 1px solid var(--line);
  }
  .reqdlg__x { position: fixed; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; background: var(--paper); border: 1px solid var(--line); }
  .reqdlg__who { margin-top: 4px; }
  .reqdlg__cell, .reqdlg__cell--grow { flex: 1 1 100%; }
  .reqdlg__message { min-height: 140px; }
  .reqdlg__actions {
    order: 99; position: sticky; bottom: 0; z-index: 2; margin: auto -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 8px;
  }
  .reqdlg__actions .btn { width: 100%; }
  .reqdlg__actions .btn--outline { display: none; }   /* the × at the top closes; no second way needed */
  .reqdlg__foot { padding-bottom: 8px; }
}

/* ==========================================================================
   Dashboards — Account (parent, blue rail; Figma 24:1311 / 1515 / 1661 /
   1856 / 1964) and Partner Hub (provider, cream rail; Figma 24:2493).
   One shell: a 280px rail on the left, a 48px-padded content area on the
   right. The rail turns into a pill row on tablets and phones.
   ========================================================================== */
.db {
  display: grid; grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h));
}
.db__side {
  padding: 40px 24px; display: flex; flex-direction: column; gap: 32px;
  background: var(--bg); border-right: 1px solid var(--line);
}
.db__side--blue { background: var(--accent); box-shadow: 4px 0 8px rgba(0, 0, 0, .04); }
.db--provider .db__side { padding: 40px; }
.db__who-title { font: 700 20px/1.3 var(--f-sans); }
.db--provider .db__who-title { font-weight: 600; }
.db__who-sub { margin-top: 6px; font: 400 16px/1.4 var(--f-sans); color: var(--ink-soft); }
.db--provider .db__who-sub { font-size: 14px; color: var(--ink); }
.db__nav { display: flex; flex-direction: column; gap: 8px; }

.railbtn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 16px; border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(0, 0, 0, .03);
  font: 500 16px/1.3 var(--f-sans); color: var(--ink);
  transition: background-color .15s ease;
}
.railbtn .ic { width: 18px; height: 18px; }
.railbtn__label { flex: 1; min-width: 0; }
.railbtn__short { display: none; }
.railbtn:hover { background: var(--accent-soft); }
.railbtn[aria-current="true"] {
  background: var(--pink); border-color: var(--pink); font-weight: 700;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .07);
}
.railbtn__badge {
  padding: 2px 8px; border-radius: var(--r-pill); background: var(--yellow);
  font: 700 12px/1.4 var(--f-sans); color: var(--ink);
}
.db--provider .railbtn { border-color: transparent; box-shadow: none; font-size: 15px; }
.db--provider .railbtn[aria-current="true"] { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.db--provider .railbtn__badge { background: var(--pink); }

.db__aside {
  padding: 16px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 5px rgba(0, 0, 0, .03);
}
.db__aside-title { font: 700 16px/1.3 var(--f-sans); color: var(--pink-text); }
.db__aside-text { font: 400 16px/1.4 var(--f-sans); color: var(--ink-soft); }

.db__main { padding: 48px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.db__sec { display: flex; flex-direction: column; gap: 16px; }
.db__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* one head style for every dashboard page, the Resale Hub's */
.db__title { font: 700 36px/1.2 var(--f-sans); letter-spacing: -.01em; color: var(--pink-display); }
.db__lede { margin-top: 6px; font: 400 18px/1.4 var(--f-sans); color: var(--ink-soft); }
.db__h2 { font: 600 24px/1.2 var(--f-sans); }
.db__h3 { font: 600 20px/1.2 var(--f-sans); }
.db__rule { border: 0; height: 1px; width: 100%; background: var(--ink); margin: 8px 0; }
.db__rule--soft { background: var(--line); }
.db__grid3.classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db__grid3.classes--list { grid-template-columns: 1fr; gap: 16px; }
.classes__more { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; }
.classes__more-count { font: 400 var(--t-meta)/1.4 var(--f-sans); color: var(--ink-soft); }

/* buttons that only the dashboards use */
.btn--soft { background: var(--paper); border-color: var(--line); font-weight: 500; font-size: 16px; padding: 10px 16px; }
.btn--soft:hover:not(:disabled) { background: var(--accent-soft); }
.btn--yellowline { border-color: var(--yellow); font-size: 16px; background: var(--paper); }
.btn--yellowline:hover:not(:disabled) { background: var(--yellow-soft); }
.btn .ic { width: 16px; height: 16px; }
.tag--tiny { font-size: 12px; letter-spacing: 0; padding: 4px 8px; }
.stat__tag { align-self: flex-start; font-size: 14px; text-transform: none; letter-spacing: 0; padding: 6px 12px; }
.stat__tag .ic { width: 14px; height: 14px; }

/* "no more saved activities?" */
.db__more {
  padding: 40px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.db__more-ic {
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 8px;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center;
}
.db__more-ic .ic { width: 20px; height: 20px; }
.db__more-title { font: 700 18px/1.3 var(--f-sans); }
.db__more-text { font: 400 18px/1.4 var(--f-sans); max-width: 480px; }
.db__more .btn { margin-top: 12px; }

/* ------------------------------------------------------- place requests */
.rq { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
.rq__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pilltabs { display: flex; gap: 12px; flex-wrap: wrap; }
.pilltab {
  padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--paper); border: 1px solid var(--line);
  font: 500 16px/1.3 var(--f-sans); color: var(--ink);
}
.pilltab[aria-pressed="true"] { border: 1.5px solid var(--pink); font-weight: 700; padding: 9.5px 15.5px; }
.rq__list { display: flex; flex-direction: column; gap: 12px; }
.rqcard {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--r-lg); cursor: pointer; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 4px 7px rgba(0, 0, 0, .03);
}
.rqcard:hover { box-shadow: var(--shadow-md); }
.rqcard[aria-pressed="true"] { border: 2px solid var(--pink); padding: 19px; box-shadow: 0 6px 9px rgba(0, 0, 0, .06); }
.rqcard__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rqcard__club { font: 700 18px/1.3 var(--f-sans); }
.rqcard__course { margin-top: 4px; font: 400 18px/1.3 var(--f-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rqcard__link { font: 700 16px/1.3 var(--f-sans); text-decoration: underline; }

.thread {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 24px; min-width: 0;
}
.thread__back { display: none; align-self: flex-start; }
.thread__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.thread__title { font: 600 24px/1.2 var(--f-sans); }
.thread__sub { margin-top: 4px; font: 400 18px/1.4 var(--f-sans); }
.track { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.track__nodes { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.track__node { display: flex; align-items: center; gap: 8px; font: 500 16px/1.3 var(--f-sans); color: #111827; }
.track__dot { width: 16px; height: 16px; border-radius: 50%; background: #F5F2EB; border: 2px solid #DCD5CB; flex: none; }
.track__node--done .track__dot { background: #4A6B5D; }
.track__node--now .track__dot { background: #0F766E; border-color: #FF6B6B; }
.track__node--now { color: #0F766E; font-weight: 700; }
.track__bar { height: 4px; border-radius: 2px; background: var(--accent); }
.thread__hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.thread__msgs { display: flex; flex-direction: column; gap: 18px; max-height: 420px; overflow: auto; padding-right: 4px; }
.msg {
  padding: 16px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 4px 6px rgba(0, 0, 0, .03);
}
.msg--club { background: var(--lime); border-color: var(--pink); box-shadow: 0 6px 8px rgba(0, 0, 0, .06); }
.msg__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg__who { font: 700 16px/1.3 var(--f-sans); }
.msg__when { font: 400 16px/1.3 var(--f-sans); color: var(--ink-soft); white-space: nowrap; }
.msg__text { font: 400 18px/1.5 var(--f-sans); }
.msg__day { text-align: center; font: 700 12px/1.3 var(--f-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.thread__form { display: flex; flex-direction: column; gap: 16px; }
.thread__reply {
  width: 100%; min-height: 80px; resize: vertical; padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); box-shadow: 0 4px 6px rgba(0, 0, 0, .03);
  font: 400 18px/1.4 var(--f-sans); background: var(--paper);
}
.thread__acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.thread__acts-l { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- resale */
.subtabs { display: flex; gap: 24px; width: 100%; border-bottom: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.subtab {
  padding: 0 0 12px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 500 18px/1.3 var(--f-sans); color: var(--ink); opacity: .65;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subtab[aria-pressed="true"] { opacity: 1; font-weight: 700; border-bottom-color: var(--yellow); }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Phones: the four filter pills share one line; active-filter chips wrap below */
@media (max-width: 600px) {
  .fchips { gap: 6px; }
  .fchips > .picker { flex: 1 1 0; min-width: 0; }
  .fchips > .fchip { flex: 0 0 auto; }
  .fchips .picker__button {
    width: 100%; min-width: 0; min-height: 44px; padding: 8px 6px; gap: 2px;
    font-size: 13px; justify-content: center;
  }
  .fchips .picker__button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .fchips .picker__button .ic { width: 12px; height: 12px; flex: none; }
}
.fchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line); cursor: pointer;
  font: 400 16px/1.3 var(--f-sans); color: var(--ink);
}
.fchip .ic { width: 12px; height: 12px; }
.fchip[aria-pressed="false"] { opacity: .6; }
.fchip[aria-pressed="false"] .ic { display: none; }
.fchip[aria-pressed="true"] { border-color: var(--pink); }
.fchip:hover { background: var(--accent-soft); }

.rs { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; align-items: start; }
.rs__list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ofcard {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; border-radius: var(--r-lg); cursor: pointer; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 4px 7px rgba(0, 0, 0, .03);
}
.ofcard:hover { box-shadow: var(--shadow-md); }
.ofcard[aria-pressed="true"] { border: 2px solid var(--pink); padding: 19px; box-shadow: 0 6px 9px rgba(0, 0, 0, .06); }
.ofcard__l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ofcard__club { font: 700 16px/1.3 var(--f-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofcard__course { font: 700 14px/1.3 var(--f-sans); color: var(--pink-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofcard__state { font: 400 13px/1.3 var(--f-sans); color: var(--ink-soft); }
.ofcard__r { display: flex; align-items: center; gap: 12px; flex: none; }
.ofcard__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ofcard__amt { font: 700 18px/1.2 var(--f-sans); }
.ofcard__orig { font: 400 12px/1.3 var(--f-sans); color: var(--ink-soft); }
.ofcard__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ofcard__fact { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1.3 var(--f-sans); color: var(--ink-soft); }
.ofcard__fact .ic { width: 14px; height: 14px; color: var(--ink); }
.agetag {
  display: inline-flex; padding: 4px 8px; border-radius: var(--r-xs);
  border: 1px solid var(--ink); background: var(--paper); font: 700 13px/1.2 var(--f-sans);
}

.rs__panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 24px; min-width: 0;
}
.rs__panel .kicker { margin-bottom: 12px; display: block; }
.rs__panel-title { font: 700 28px/1.2 var(--f-sans); color: var(--pink-display); }
.rs__panel-sub { margin-top: 8px; font: 700 18px/1.3 var(--f-sans); color: var(--pink-text); }
.rs__hr { border: 0; height: 1px; background: var(--ink); margin: 0; }
.rs__quote { font: 400 16px/1.5 var(--f-sans); }
.rs__quote .muted { font-style: normal; display: block; margin-top: 4px; }
.pricebox { border: 1px solid var(--ink); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.pricebox__row { display: flex; justify-content: space-between; gap: 12px; font: 400 18px/1.3 var(--f-sans); }
.pricebox__row b { font-weight: 700; text-align: right; }
.pricebox__row--total { font-weight: 700; }
.pricebox__row--total b { font-size: 22px; }
.pricebox__hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.rs__note {
  width: 100%; min-height: 100px; padding: 16px; border-radius: var(--r-md); resize: vertical;
  border: 1px solid var(--line); box-shadow: 0 4px 6px rgba(0, 0, 0, .03);
  font: 400 16px/1.4 var(--f-sans); background: var(--paper);
}
.rs__fine { font: 400 16px/1.4 var(--f-sans); color: var(--ink-soft); text-align: center; }
.rs__empty { color: var(--ink-soft); }
.rsreq { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rsreq__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rsreq__who { font: 700 16px/1.3 var(--f-sans); }
.rsreq__about { font-weight: 400; color: var(--ink-soft); }
.rsreq__when { font: 400 14px/1.3 var(--f-sans); color: var(--ink-soft); }
.rsreq__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; align-items: center; gap: 10px; font: 400 16px/1.3 var(--f-sans); }
.steps-list .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps-list .dot--done { background: var(--lime); border-color: var(--lime); }
.steps-list .dot--now { background: var(--pink); border-color: var(--pink); }
.steps-list .is-mute { color: var(--ink-soft); }

/* list a ticket */
.lf .field, .rs__panel .field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.lf .field__label, .rs__panel .field__label { font: 700 16px/1.3 var(--f-sans); }
.lf { display: grid; grid-template-columns: minmax(0, 1fr) 412px; gap: 48px; align-items: start; }
.lf__form { display: flex; flex-direction: column; gap: 20px; }
.lf__step { display: flex; align-items: center; gap: 8px; font: 700 18px/1.3 var(--f-sans); margin-top: 8px; }
.lf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lf__row--when { grid-template-columns: minmax(0, 1fr) 156px; }
.field__ctl { position: relative; display: block; }
.field__ctl .ic { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.field__ctl input { padding-right: 40px; }
.lf__hr { border: 0; height: 1px; background: var(--ink); margin: 8px 0 0; }
/* suggestions under a text box while typing (resale: club or school) */
.suggest { position: relative; display: block; }
.suggest input { width: 100%; }
.suggest__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  max-height: 260px; overflow: auto;
}
.suggest__item { padding: 10px 12px; border-radius: 8px; font: 400 var(--t-body)/1.3 var(--f-sans); cursor: pointer; }
.suggest__item:hover { background: rgba(0, 0, 0, .05); }
.lf__acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lf__cancel { font: 700 18px var(--f-sans); color: var(--ink-soft); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }
.prev {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px;
}
.prev__kicker { font: 700 12px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .04em; }
.prev__sub { font: 400 18px/1.3 var(--f-sans); color: var(--pink); margin-top: -8px; }
.prev__card { border: 2px solid var(--pink); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.prev__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.prev__club { font: 700 18px/1.3 var(--f-sans); }
.prev__course { font: 700 16px/1.3 var(--f-sans); color: var(--pink); }
.prev__amt { font: 700 20px/1.2 var(--f-sans); text-align: right; }
.prev__orig { font: 400 14px/1.3 var(--f-sans); color: var(--ink-soft); text-align: right; }
.prev__facts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 15px/1.3 var(--f-sans); }
.prev__facts .ic { width: 14px; height: 14px; }
.prev__guar { border: 1px solid var(--ink); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.prev__guar-title { font: 700 16px/1.3 var(--f-sans); color: var(--pink); }
.prev__guar-text { font: 400 16px/1.4 var(--f-sans); color: var(--ink-soft); }

/* ----------------------------------------------------- ratings + settings */
.rvcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rvcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: 0 4px 7px rgba(0, 0, 0, .03); display: flex; flex-direction: column; gap: 12px;
}
.rvcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rvcard__when { font: 400 16px/1.3 var(--f-sans); color: var(--ink-soft); }
.rvcard__name { font: 700 20px/1.3 var(--f-sans); color: var(--pink); }
.rvcard__quote { font: 400 16px/1.5 var(--f-sans); }
.rvcard__by { font: 700 16px/1.3 var(--f-sans); }
.setcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 24px; margin-top: 24px;
}
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.setrow + .setrow { padding-top: 24px; border-top: 1px solid var(--ink); }
.setrow__title { font: 700 18px/1.3 var(--f-sans); }
.setrow__text { margin-top: 4px; font: 400 16px/1.5 var(--f-sans); color: var(--ink-soft); max-width: 640px; }
.setrow .btn { flex: none; }
.setting { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font: 400 16px/1.4 var(--f-sans); }
.setting:first-of-type { border-top: 0; }

/* ------------------------------------------------------ provider: overview */
.ov-welcome {
  padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.ov-welcome__title { font: 600 32px/1.2 var(--f-sans); letter-spacing: -.01em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.stat__label { font: 700 14px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .02em; }
.stat__value { font: 700 36px/1.1 var(--f-sans); display: flex; align-items: center; gap: 8px; }
.stat__value .ic { width: 20px; height: 20px; color: var(--star); }
.stat__sub { font: 400 14px/1.3 var(--f-sans); }
.callout {
  display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-sm);
}
.callout__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.callout__ic .ic { width: 24px; height: 24px; }
.callout__title { font: 700 16px/1.3 var(--f-sans); }
.callout__text { margin-top: 4px; font: 400 14px/1.4 var(--f-sans); opacity: .85; }
.tbl-wrap { width: 100%; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 4px 12px rgba(0, 0, 0, .02); }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
/* admin numbers: day bars and the tables under them */
.spark { margin-top: 24px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.spark__label { font: 700 14px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .02em; }
.spark__bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; margin-top: 12px; }
.spark__bar { flex: 1 1 0; min-width: 2px; background: var(--accent-deep); border-radius: 2px 2px 0 0; }
.spark__ends { display: flex; justify-content: space-between; margin-top: 8px; font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); }
.kpitable__title { font: 700 20px/1.25 var(--f-sans); margin-top: 8px; }
.tbl td, .tbl th { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .spark { padding: 16px; }
  .spark__bars { height: 72px; gap: 2px; }
}
.tbl th { text-align: left; padding: 16px; font: 700 14px/1.3 var(--f-sans); border-bottom: 1px solid var(--line); }
.tbl td { padding: 16px; font: 400 15px/1.3 var(--f-sans); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; }
.qa { display: flex; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------- provider: the other panels */
.vhead__title { font: 600 24px/1.2 var(--f-sans); }
.vhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vhead__range { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); font: 500 14px var(--f-sans); cursor: pointer; }
.vhead__range[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.vlist { display: flex; flex-direction: column; }
.vlist__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font: 400 15px var(--f-sans); }
.vlist__row:first-child { border-top: 0; }
.vlist__val { font-weight: 700; }
.vrows { display: flex; flex-direction: column; gap: 8px; }
.vrow { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: center; font: 400 14px var(--f-sans); }
.vrow__track { height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.vrow__fill { height: 100%; border-radius: 4px; }

.vrate-top { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; gap: 32px; align-items: center; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vrate-score { font: 700 48px/1 var(--f-sans); }
.vrate-stars { color: var(--star); font-size: 18px; letter-spacing: 1px; }
.vrate-count { font: 400 14px var(--f-sans); color: var(--ink-soft); }
.vrate-dist { display: flex; flex-direction: column; gap: 6px; }
.vdist { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; font: 400 14px var(--f-sans); }
.vdist__track { height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.vdist__fill { height: 100%; border-radius: 4px; }
.vbycourse { font: 400 14px/1.6 var(--f-sans); }
.vinfo__label { font: 700 12px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .04em; }
.vreview { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.vreview__top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font: 400 14px var(--f-sans); color: var(--ink-soft); }
.vreview__top .vrate-stars { font-size: 14px; }
.vreview__course { font-weight: 700; color: var(--ink); }
.vreview__state { margin-left: auto; padding: 4px 10px; border-radius: var(--r-xs); font: 700 12px/1.3 var(--f-sans); text-transform: uppercase; color: var(--ink); background: var(--yellow); }
.vreview__state--done { background: var(--lime); }
.vreview__text { font: 400 16px/1.5 var(--f-sans); }
.vreply { padding: 12px 16px; border-radius: var(--r-md); background: var(--lime-soft); }
.vreply__who { font: 700 14px var(--f-sans); }
.vreply__text { margin-top: 2px; font: 400 15px/1.5 var(--f-sans); }
.vreview__open { align-self: flex-start; }
.vreply-box textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: 400 15px/1.4 var(--f-sans); resize: vertical; }
.vreply-box__row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

.vprof__bar { height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; margin: 12px 0 8px; }
.vprof__fill { height: 100%; background: var(--lime); }
.vprof__hint { font: 400 14px var(--f-sans); color: var(--ink-soft); }
.vgrid { display: grid; gap: 16px; }
.vinfo, .vmiss { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.vinfo__value { margin-top: 6px; font: 400 16px/1.4 var(--f-sans); }
.vinfo__state { margin-top: 8px; font: 700 12px var(--f-sans); text-transform: uppercase; color: var(--ink-soft); }
.vmiss { border-style: dashed; }
.vmiss__label { font: 700 16px var(--f-sans); }
.vmiss__sub { margin: 4px 0 12px; font: 400 14px var(--f-sans); color: var(--ink-soft); }
.vmiss__cta { padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--lime); background: var(--paper); font: 700 14px var(--f-sans); cursor: pointer; }
.vgap__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.skillchip { padding: 6px 12px; border-radius: var(--r-pill); font: 700 14px var(--f-sans); background: var(--accent) !important; }
.skillchip--add { background: transparent !important; border: 1px dashed var(--ink); cursor: pointer; }
.vcard__title { font: 600 20px/1.2 var(--f-sans); }

.vspot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.vspot--hot { border-color: var(--pink); }
.vspot__body { flex: 1; min-width: 200px; }
.vspot__title { font: 700 18px/1.3 var(--f-sans); }
.vspot__sub { margin-top: 4px; font: 400 15px/1.4 var(--f-sans); color: var(--ink-soft); }
.vspot__state { padding: 4px 10px; border-radius: var(--r-xs); background: var(--yellow); font: 700 12px/1.3 var(--f-sans); text-transform: uppercase; }
.vhow { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.vhow__steps { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; font: 400 15px var(--f-sans); }
.vhow__sep { color: var(--ink-soft); }
.vhow__change { border: 0; background: none; padding: 0; margin-left: 8px; font: 700 15px var(--f-sans); text-decoration: underline; cursor: pointer; }

.vcourse { display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.vcourse--now { border-left-color: var(--pink); }
.vcourse__time { font: 700 16px var(--f-sans); }
.vcourse__name { font: 500 16px var(--f-sans); }
.vcourse__track { height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.vcourse__fill { height: 100%; }
.vcourse__count { display: block; margin-top: 4px; font: 400 13px var(--f-sans); color: var(--ink-soft); }
.vcourse__state { font: 700 12px var(--f-sans); text-transform: uppercase; }

.vset { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.vset__nav { display: flex; flex-direction: column; gap: 6px; }
.vset__item { text-align: left; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--paper); font: 500 15px var(--f-sans); cursor: pointer; color: var(--ink); }
.vset__item[aria-current="true"] { background: var(--accent); font-weight: 700; }
.vset__item--red { color: var(--red); }
.vset__title { font: 600 24px/1.2 var(--f-sans); }
.vperson { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vperson__badge { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-sans); background: var(--accent) !important; }
.vperson__body { flex: 1; min-width: 0; }
.vperson__name { font: 700 16px var(--f-sans); }
.vperson__role { font: 400 14px var(--f-sans); color: var(--ink-soft); }
.vperson__tag { padding: 4px 10px; border-radius: var(--r-xs); font: 700 12px var(--f-sans); text-transform: uppercase; background: var(--accent-soft); }
.vperson__tag--admin { background: var(--lime); }
.vinvite { align-self: flex-start; padding: 10px 18px; border-radius: var(--r-pill); border: 1px dashed var(--ink); background: transparent; font: 700 14px var(--f-sans); cursor: pointer; }
.vtoggles { margin-top: 24px; display: flex; flex-direction: column; }
.vtoggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font: 500 16px var(--f-sans); }
.vtoggle:first-child { border-top: 0; }
.vset__danger { margin-top: 16px; padding: 10px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--red); background: transparent; color: var(--red); font: 700 14px var(--f-sans); cursor: pointer; }
.vset__danger:hover { background: var(--red); color: #fff; }

/* no footer under the parent dashboard — the Figma frames end with the rail */
body[data-page="dash"] .footer { display: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .db__main { padding: 32px; }
  .rq { grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
  .rs { grid-template-columns: minmax(0, 1fr) 380px; }
  .lf { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db__grid3.classes:not(.classes--list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rvcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .db { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .db__side, .db--provider .db__side {
    padding: 20px var(--pad-x); gap: 16px; border-right: 0; border-bottom: 1px solid var(--line);
    flex-direction: row; align-items: center; flex-wrap: wrap;
  }
  .db__who { flex: 1 1 100%; }
  .db__who-sub { margin-top: 2px; }
  .db__nav {
    flex-direction: row; gap: 8px; flex: 1 1 100%;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
  }
  .db__nav::-webkit-scrollbar { display: none; }
  .railbtn { width: auto; flex: none; white-space: nowrap; padding: 10px 14px; }
}
/* Phones: every dashboard rail (parent, Hub, admin) is a fixed bottom tab bar —
   icon over a short word, cream ground, the current one in pink. The parent
   bar has four items (Saved · Requests · Resale · Account), the Hub six. */
@media (max-width: 720px) {
  .db .db__nav:empty { display: none; }   /* the claim screen has no sections yet */
  .db .db__nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; flex: none; overflow: visible;
    background: var(--bg); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
  }
  .db .railbtn {
    position: relative; flex-direction: column; gap: 4px; padding: 6px 2px; min-width: 0; white-space: normal;
    font: 500 13px/1.2 var(--f-sans); text-align: center; border-radius: var(--r-sm);
    background: transparent; border-color: transparent; box-shadow: none; color: var(--ink);
  }
  .db .railbtn .ic { width: 24px; height: 24px; }
  .db .railbtn__label { display: none; }
  .db .railbtn__short { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .db .railbtn:hover { background: transparent; }
  .db .railbtn[aria-current="true"] { background: transparent; border-color: transparent; color: var(--pink-text); font-weight: 700; box-shadow: none; }
  .db .railbtn__badge { position: absolute; top: 0; right: 10px; padding: 1px 6px; font-size: 10px; }
  .db .db__main { padding-bottom: 96px; }
  /* the blue parent header shrinks to a one-line title once the rail has left it */
  .db--parent .db__side { padding: 14px var(--pad-x); gap: 0; }
  .db--parent .db__who-title { font-size: 17px; }
  .db--parent .db__who-sub { display: none; }
  .db__aside { display: none; }
  .db__main { padding: 24px var(--pad-x) 48px; }
  .rq, .rs, .lf { grid-template-columns: minmax(0, 1fr); }
  .rq .thread, .rs .rs__panel { order: 2; }
  .thread__msgs { max-height: none; }
  .vset { grid-template-columns: minmax(0, 1fr); }
  .vset__nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .db__main { gap: 20px; }
  .db__title { font-size: 30px; }
  .db__lede { font-size: 16px; }
  .db__grid3.classes, .rvcards, .stats { grid-template-columns: minmax(0, 1fr); }
  /* list and detail take turns: the detail shows once something is picked */
  .rq--open .rq__col, .rs--open .rs__list, .rs--open .fchips { display: none; }
  .rq:not(.rq--open) .thread, .rs:not(.rs--open) .rs__panel { display: none; }
  .thread__back { display: inline-block; }
  .thread, .rs__panel, .prev, .setcard { padding: 20px; border-radius: var(--r-lg); }
  .thread__title { font-size: 20px; }
  .thread__sub, .msg__text, .thread__reply { font-size: 16px; }
  .track__nodes { gap: 8px 16px; }
  .track__node { font-size: 14px; }
  /* phone: the tag under the title, "send" right under the text box, the
     two smaller choices side by side below it */
  .thread__top { flex-direction: column; gap: 8px; }
  .thread__acts { flex-direction: column-reverse; align-items: stretch; }
  .thread__acts > .btn { width: 100%; }
  .thread__acts-l { flex-direction: column; align-items: stretch; gap: 4px; }
  .thread__acts-l .btn, .thread__acts-l .linkbtn { width: 100%; text-align: center; min-height: 44px; white-space: normal; }
  .ofcard { flex-wrap: wrap; }
  .ofcard__r { width: 100%; justify-content: space-between; }
  .ofcard__meta { align-items: flex-start; }
  .lf__row, .lf__row--when { grid-template-columns: minmax(0, 1fr); }
  .setrow { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ov-welcome { padding: 20px; }
  .ov-welcome__title { font-size: 24px; }
  .vrate-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vcourse { grid-template-columns: 56px minmax(0, 1fr); }
  .vcourse > div { grid-column: 1 / -1; }
  .qa .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   === Skills ===  What each activity teaches (Figma 24:2308)
   A centred head, the matrix as one white card, the four pillars below it.
   ========================================================================== */
#page-skills { padding: 0; }
.skills { padding: 64px var(--pad-x) 96px; }
.skills__in { max-width: var(--content-max); margin-inline: auto; display: flex; flex-direction: column; gap: 40px; }
.skills__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 40px; }
.skills__title { font: 600 var(--t-page)/1.15 var(--f-sans); letter-spacing: -.02em; }
.skills__lede { max-width: 560px; font: 400 var(--t-lede)/1.5 var(--f-sans); }

/* the matrix card: header row on blue, one row per activity, 1px rules */
.matrix-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  min-width: 0; max-width: 100%;   /* a flex child may not grow to the table's 640px */
}
.matrix-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  position: relative;   /* the cells' visually-hidden text is absolutely positioned; contain it here, not in the page */
}
.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
/* more to swipe to: fade the right edge (set by wireScrollHints in app.js) */
.db__nav[data-more], .subtabs[data-more], .matrix-scroll[data-more] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.matrix th, .matrix td { padding: 0 16px; height: 50px; border-top: 1px solid var(--line); }
.matrix thead th { border-top: 0; background: var(--accent-soft); height: 44px; }
.matrix th { text-align: left; font: 700 var(--t-meta)/1.3 var(--f-sans); }
.matrix__col { text-align: center !important; }
.matrix__row { width: 22%; min-width: 180px; }
.matrix__name { font: 700 var(--t-body)/1.3 var(--f-sans); }
.matrix__from { font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); margin-top: 2px; }
.matrix__cell { text-align: center; }
.matrix__yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.matrix__yes .ic { width: 22px; height: 22px; }
.matrix__no { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--accent); vertical-align: middle; }

/* the pillars: a cream card with four white cards inside */
.pillars {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 24px 28px;
}
.pillars__title { font: 600 var(--t-h3)/1.2 var(--f-sans); margin-bottom: 24px; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 18px 22px; box-shadow: var(--shadow-sm);
}
.pillar h3 { font: 700 var(--t-body)/1.3 var(--f-sans); margin-bottom: 8px; }
.pillar p { font: 400 var(--t-meta)/1.55 var(--f-sans); }
.pillars__note { margin-top: 18px; font: 400 var(--t-body)/1.55 var(--f-sans); color: var(--ink-soft); max-width: 70ch; }
.pillars__note + .pillars__note { margin-top: 8px; }
.pillars__note--wide { max-width: none; }   /* the method line runs the full width */

@media (max-width: 1023px) {
  .skills { padding-block: 48px 72px; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .skills { padding-block: 40px 56px; }
  .skills__in { gap: 28px; }
  .skills__head { align-items: flex-start; text-align: left; margin-bottom: 20px; }
  .skills__lede { font-size: var(--t-body); }
  .matrix__row { min-width: 150px; position: sticky; left: 0; background: var(--paper); }
  .matrix thead .matrix__row { background: var(--accent-soft); }
  .matrix th, .matrix td { padding-inline: 12px; }
  .pillars { padding: 24px 16px 20px; }
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   === Auth ===  Log in (24:764), choose a role (24:838), sign up (24:931)
   ========================================================================== */
#page-login, #page-signup, #page-signup-form { padding: 0; }

/* log in: a white card floating on the blue */
.auth { padding: 120px var(--pad-x); background: var(--accent); display: flex; justify-content: center; }
.authcard {
  width: 480px; max-width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
.authcard__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
/* status cards: confirm-your-mail, mail confirmed, claim pending, claim approved */
.authcard--status { align-items: center; text-align: center; gap: 20px; }
.status__icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status__icon .ic { width: 30px; height: 30px; }
.status__icon--lime { background: var(--lime); }
.status__icon--yellow { background: var(--yellow); }
.status__title { font: 600 32px/1.15 var(--f-sans); letter-spacing: -.01em; text-wrap: balance; }
.status__text { font: 400 var(--t-body)/1.5 var(--f-sans); color: var(--ink-soft); max-width: 380px; text-wrap: pretty; }
.status__text strong { color: var(--ink); }
.status__actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.status__actions .btn { width: 100%; }
.status__note { font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft); }
@media (max-width: 600px) { .status__title { font-size: 26px; } }
.authcard__title { font: 600 32px/1.15 var(--f-sans); letter-spacing: -.01em; }
.authcard__lede { font: 400 var(--t-body)/1.5 var(--f-sans); }
.authcard__fields { display: flex; flex-direction: column; gap: 20px; }
.authcard__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.authcard__aside { font: 400 var(--t-body)/1.4 var(--f-sans); text-align: center; }
.authcard__aside--sm { font-size: var(--t-meta); color: var(--ink-soft); }
.authcard__aside[role="status"] {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--yellow-soft); border: 1px solid var(--yellow); text-align: left; font-size: var(--t-meta);
}
.field__aside { font: 700 var(--t-tiny)/1.3 var(--f-sans); }
.field__hint { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-tiny); color: var(--ink); }
.field__hint .ic { width: 12px; height: 12px; }

/* join: content left, coloured panel right */
.join { padding: 80px var(--pad-x); }
.join__in {
  max-width: var(--content-max); margin-inline: auto;
  display: flex; gap: 64px; align-items: center;
}
.join__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.join__title { font: 600 clamp(32px, 4vw, 56px)/1.05 var(--f-sans); letter-spacing: -.02em; }
.join--form .join__title { font-size: var(--t-page); }
.join__lede { font: 400 var(--t-lede)/1.5 var(--f-sans); max-width: 640px; }
.join__fields { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 560px; }
.join__main .formnote { max-width: 560px; }   /* as wide as the fields above it */
.join--form .authcard__actions { width: 100%; max-width: 560px; align-items: stretch; }
.join__main > .tag { margin-bottom: 0; }
/* sign-up form without the side panel: one centred column, 560px wide;
   the Google button and the fields share that width */
.join--form .join__in { justify-content: center; }
.join--form .join__main { flex: 0 1 560px; max-width: 560px; }
.join--form .gslot { width: 100%; }
.join--form .gslot .gbtn { width: 100%; }
.join--form .join__title, .join--form .join__lede { align-self: stretch; text-align: center; }   /* centred, like the log-in card */

/* the two role cards; the chosen one carries the pink border */
.rolepick { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; margin-top: 16px; }
.rolecard {
  position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 32px 32px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rolecard input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.rolecard__hit { position: absolute; inset: 0; border-radius: inherit; cursor: pointer; }
.rolecard .btn { position: relative; z-index: 1; margin-top: 12px; }
.rolecard:has(input:checked) { border-color: var(--pink); box-shadow: var(--shadow-lg); }
.rolecard:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.rolecard__disc {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
}
.rolecard__disc .ic { width: 28px; height: 28px; }
.rolecard__disc--lime { background: var(--lime); }
.rolecard__disc--blue { background: var(--accent); }
.rolecard__title { font: 600 24px/1.2 var(--f-sans); }
.rolecard__text { font: 400 var(--t-body)/1.5 var(--f-sans); }

/* the side panel: pink on the role step, blue on the form step */
.join__panel {
  flex: none; width: 400px;
  background: var(--pink); border-radius: var(--r-xl); padding: 40px;
  display: flex; flex-direction: column; gap: 32px; align-items: flex-start;
}
.join__panel--blue { background: var(--accent); }
.join__dots { display: flex; gap: 8px; }
.join__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: block; }
.join__dots .join__dot { width: 20px; height: 20px; }
.join__dot--lime { background: var(--lime); }
.join__panel-title { font: 600 28px/1.2 var(--f-sans); letter-spacing: -.01em; }
.join__panel-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.join__panel-text { font: 400 var(--t-body)/1.5 var(--f-sans); }
.join__perks { display: flex; flex-direction: column; gap: 24px; }
.join__perk-title { font: 700 var(--t-body)/1.3 var(--f-sans); }
.join__perk-text { font: 400 var(--t-meta)/1.5 var(--f-sans); margin-top: 4px; }
.join__foot { display: flex; align-items: center; gap: 8px; font: 400 var(--t-meta)/1.3 var(--f-sans); }
.join__foot .ic { width: 20px; height: 20px; }

@media (max-width: 1023px) {
  .auth { padding-block: 72px; }
  .join { padding-block: 56px; }
  .join__in { flex-direction: column; align-items: stretch; gap: 40px; }
  .join__panel { width: 100%; }
}
@media (max-width: 700px) {
  .auth { padding: 32px var(--pad-x) 56px; }
  .authcard { padding: 28px 20px 32px; border-radius: var(--r-lg); }
  .authcard__title { font-size: 26px; }
  .join { padding-block: 40px 56px; }
  .join__in { gap: 32px; }
  .join__lede { font-size: var(--t-body); }
  .rolepick { grid-template-columns: 1fr; gap: 16px; }
  .rolecard { padding: 24px 20px; }
  .rolecard__title { font-size: 20px; }
  .join__panel { padding: 28px 20px; border-radius: var(--r-lg); }
  .join__panel-title { font-size: 22px; }
}

/* ==========================================================================
   === Legal ===  Legal notice + privacy (Figma 24:2658)
   Amber banner, then the statement beside a note card. Content is prose the
   operator still has to complete; the fill-ins stay loud on purpose.
   ========================================================================== */
#page-impressum, #page-privacy { padding: 0; }
.legal-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px var(--pad-x); border-bottom: 1px solid var(--line);
  background: var(--bg); box-shadow: var(--shadow-sm);
  font: 700 var(--t-meta)/1.3 var(--f-sans);
}
.legal-banner .ic { width: 20px; height: 20px; }
.legal-page { padding: 64px var(--pad-x) 96px; }
.legal-page__in { max-width: var(--content-max); margin-inline: auto; }
.legal-page__grid { display: flex; gap: 64px; align-items: flex-start; }
.legal { flex: 1 1 0; min-width: 0; max-width: 72ch; }
.legal__title { font: 600 36px/1.15 var(--f-sans); letter-spacing: -.01em; }
.legal__lede { margin-top: 12px; font: 400 var(--t-lede)/1.5 var(--f-sans); }
.legal__section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal__section h2 { font: 700 18px/1.3 var(--f-sans); margin-bottom: 8px; }
.legal p { margin: 0 0 12px; font: 400 var(--t-body)/1.6 var(--f-sans); }
.legal p:last-child { margin-bottom: 0; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; font: 400 var(--t-body)/1.6 var(--f-sans); }
.legal code {
  font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--accent-soft); padding: 2px 6px; border-radius: 5px;
}
.legal__fill {
  background: var(--yellow-soft); border-bottom: 2px dashed var(--ink);
  padding: 1px 6px; border-radius: 4px; font-weight: 700;
}
.legal__hint {
  border-left: 3px solid var(--accent); padding-left: 14px;
  font-size: var(--t-meta) !important; line-height: 1.6; color: var(--ink-soft);
}
.legal__hint code, .legal__hint .legal__fill { font-style: normal; }

.legal-note {
  flex: none; width: 400px; position: sticky; top: 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.legal-note h2 { font: 600 20px/1.3 var(--f-sans); }
.legal-note .legal__todo { margin: 0; font: 400 var(--t-body)/1.5 var(--f-sans); }
.legal-note .legal__todo code { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--yellow-soft); padding: 2px 6px; border-radius: 5px; }

@media (max-width: 1023px) {
  .legal-page { padding-block: 48px 72px; }
  .legal-page__grid { flex-direction: column-reverse; gap: 32px; }
  .legal-note { width: 100%; position: static; }
}
@media (max-width: 700px) {
  .legal-banner { justify-content: flex-start; text-align: left; }
  .legal-page { padding-block: 32px 56px; }
  .legal__title { font-size: 28px; }
  .legal__lede { font-size: var(--t-body); }
  .legal__section { margin-top: 24px; padding-top: 24px; }
  .legal-note { padding: 24px 20px; border-radius: var(--r-lg); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- small shared bits ---------------------------------------------------- */
.linkbtn--quiet { font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.linkbtn--quiet:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .masthead--open .masthead__links[data-ctx] { visibility: visible; }
}
@media (max-width: 700px) {
  .stat__value { font-size: 28px; flex-wrap: wrap; }
}

/* ==========================================================================
   Phones
   --------------------------------------------------------------------------
   Everything here was measured at 320/360/390px, not guessed. The header is
   handled at the burger breakpoint further up.
   ========================================================================== */
@media (max-width: 620px) {
  /* a long label cannot sit on one line in a narrow column */
  .btn { white-space: normal; }
}


/* Touch targets. WCAG 2.5.8 asks for 24px, Apple and Google for 44/48px;
   below 900px every control that is not an inline link gets 44. */
@media (max-width: 900px) {
  .btn, .picker__button { min-height: 44px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
  }
  .backlink { min-height: 44px; display: inline-flex; align-items: center; }
  /* WCAG 2.5.8 exempts links inside a sentence, but 22px is thin for a thumb:
     padding lifts every one of them over the 24px floor without moving the
     text they sit in. */
  .linkbtn { padding: 5px 3px; }
  .contact-list a { display: inline-block; padding: 6px 2px; }
  .wordmark { min-height: 44px; }

  /* a dropdown may not hang off the right edge of the screen */
  .picker__menu {
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }
  .picker--sport .picker__menu, .picker--district .picker__menu,
  .picker--age .picker__menu { min-width: 0; width: max-content; }
}


/* ==========================================================================
   Accessibility: target sizes and reading widths (measured audit, Sept 2026)
   ========================================================================== */
.footer__link, .backlink, .pd-head__site, .loc__map, .reviews__all, .save--inline {
  display: inline-flex; align-items: center; min-height: 24px; padding-block: 3px;
}
.legal p, .legal li { font-size: var(--t-body); }
.legal { max-width: 70ch; }
.fchip, .subtab, .railbtn { min-height: 32px; }
  .linkbtn, .mini, .acts-tools__how, .report-link { min-height: 40px; display: inline-flex; align-items: center; }
  .cpill { min-height: 44px; }
@media (max-width: 600px) {
  .backlink, .pd-head__site, .loc__map, .reviews__all, .save--inline,
  .linkbtn.field__aside, .thread__back { min-height: 44px; display: inline-flex; align-items: center; }
  .footer__link { min-height: 32px; }   /* compact footer; still above the 24px WCAG 2.2 minimum */
  .save { min-height: 44px; }
  .viewtoggle button, .ratecard__star, .reqdlg__x, .subtab, .fchip, .railbtn, .langseg__btn,
  .pilltab, .picker__button { min-height: 44px; }
.viewtoggle button, .ratecard__star, .reqdlg__x { min-width: 44px; }
  .ratecard__stars { gap: 0; }
}

/* ==========================================================================
   Success windows — "Request sent!" and "Thank you for your review!"
   (mockups 2026-09-16). Built on the request dialog shell.
   ========================================================================== */
.okdlg { width: min(640px, calc(100vw - 32px)); }
.okdlg__box { align-items: center; text-align: center; gap: 16px; padding: 48px 48px 40px; }
.okdlg__art { width: 120px; height: 120px; }
.okdlg__art svg { display: block; width: 100%; height: 100%; }
.okdlg__title {
  font: 600 clamp(32px, 4vw, 44px)/1.15 var(--f-sans); letter-spacing: -.01em;
  color: var(--pink-display); text-wrap: balance;
}
.okdlg__text { font: 400 var(--t-lede)/1.5 var(--f-sans); max-width: 480px; text-wrap: pretty; }
.okdlg__note {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--yellow); background: #FFFBEE;
  font: 400 var(--t-meta)/1.5 var(--f-sans); color: var(--ink-soft);
}
.okdlg__note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-soft); }
.okdlg__note strong { color: var(--ink); }
.okdlg__cta { margin-top: 8px; }
.okdlg__link { font-size: var(--t-body); }
.okdlg__review {
  display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left;
  padding: 20px; border-radius: var(--r-lg);
  border: 1px solid var(--yellow); background: #FFFBEE;
}
.okdlg__review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.okdlg__review__when { font: 400 var(--t-tiny)/1.3 var(--f-sans); color: var(--ink-soft); }
.okdlg__review__club { font: 700 var(--t-body)/1.3 var(--f-sans); color: var(--pink-text); }
.okdlg__review__text { font: 400 var(--t-meta)/1.6 var(--f-sans); }
.okdlg__review__by { font: 700 var(--t-meta)/1.3 var(--f-sans); margin-top: 4px; }
@media (max-width: 600px) {
  .okdlg__box { padding: 32px 24px 28px; }
  .okdlg__art { width: 96px; height: 96px; }
  .okdlg__text { font-size: var(--t-body); }
}

/* ranking transparency (§ 5b UWG): a quiet link next to the sort control */
.acts-tools__how { font-size: var(--t-meta); color: var(--ink-soft); min-height: 32px; }

/* admin: per-account request limit */
.limitedit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.limitedit__label { font: 500 var(--t-meta)/1.3 var(--f-sans); color: var(--ink-soft); }
.limitedit__input { width: 84px; min-height: 40px; padding: 8px 10px; }

/* club page without real courses: the offer names, then the request card */
.pd-offers { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-offers__item { padding: 8px 14px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font: 500 var(--t-meta)/1.3 var(--f-sans); }
.pdet__main .askcard { max-width: 560px; }

/* status cards (confirm your e-mail, e-mail confirmed, claim pending/approved):
   higher up so the whole card fits the screen */
.auth:has(.authcard--status) { padding-top: 48px; padding-bottom: 64px; }
@media (max-width: 600px) { .auth:has(.authcard--status) { padding-top: 24px; } .authcard--status { padding: 32px 24px; } }

/* Nav, footer and 404 actions are real links now (crawlable): same look as the buttons */
a.wordmark, a.navlink { text-decoration: none; display: inline-block; }
a.footer__link { display: inline-block; }

/* What crawlers and no-JS readers get before the app draws the page */
.ssr-list h2 { font: 700 20px/1.3 var(--f-sans); margin: 24px 0 8px; }
.ssr-list ul { list-style: none; padding: 0; margin: 0; columns: 2 280px; column-gap: 32px; }
.ssr-list li { font: 400 15px/1.5 var(--f-sans); break-inside: avoid; margin-bottom: 4px; }
.ssr-list li span { color: var(--ink-soft); font-size: 13px; }
.pd-ssr__crumbs { font: 400 13px/1.4 var(--f-sans); color: var(--ink-soft); margin-bottom: 12px; }
.pd-ssr__crumbs a { color: inherit; }
/* the club page reserves a screen while it loads, so the footer never jumps into view and out again */
[data-provider-detail] { min-height: 100vh; }
