/* HSC member prototype: landing + KYC. Uses tokens.css only. Desktop web. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--logo-blue); } /* overscroll bounce at the top shows the header blue, not white; body stays white */
/* The one focus rule (Design system 2.5): a 4px ring tight against the element, blue on every surface (Julia, 3 Nov: "4px blue, no gaps"). */
:root { --focus: var(--blue); }
:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
[tabindex="-1"]:focus { outline: none; } /* a notice, heading or row that a script focuses is not a control, and Tab never lands on it; the ring is for controls reached by keyboard */
body { font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; min-width: 1280px; min-height: 100vh; } /* ds-allow: page frame floor, 1280 */
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.ar { font-family: var(--font-ar); }
.wrap { max-width: calc(var(--size-page-max) + 2 * var(--space-3xl)); margin: 0 auto; padding: 0 var(--space-3xl); } /* = 1440 border-box: content stops at page-max and centres */
[hidden] { display: none !important; }
/* One reduced-motion rule (Design system 2.4): every transition and animation off, no smooth scroll, no lift, no photo zoom. Spinners and the pulse dot show statically. */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:active, a.tile:hover img, a.tile:focus-visible img { transform: none !important; }
}
/* selected text on the public pages: Figma 121:43, highlight at 20%; the text keeps its own colour */
#landing ::selection { background: color-mix(in srgb, var(--highlight) 20%, transparent); }
#landing ::-moz-selection { background: color-mix(in srgb, var(--highlight) 20%, transparent); }

/* ---------- Button (Figma component: Primary / Secondary / Light / Light outline) ---------- */
/* Four styles, one component. Every style has rest, hover (1px lift + shadow), active, a 4px focus ring (the single :focus-visible rule at the top) and disabled
   (a colour change, never opacity, so the ring stays whole). --btn-accent is white while the accent colour is parked (Julia, 31 Oct). */
:root { --btn-accent: var(--white); }
.btn { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-xl); min-height: var(--size-control-h); border-radius: var(--radius-full);
  font: var(--type-body-strong); white-space: nowrap; border: 0;
  transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast), color var(--dur-fast); }
.btn-primary { background: var(--logo-blue); color: var(--white); }
.btn-danger { background: var(--red); color: var(--white); } /* the confirm of a destructive action only (Destructive actions r1, Julia 10 Nov); never a page's main CTA */
.btn-secondary { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); color: var(--logo-blue); }
.btn-light { background: var(--white); color: var(--logo-blue); }
.btn-light-outline { box-shadow: inset 0 0 0 var(--stroke-border) var(--white); color: var(--white); }
/* Icons (Design system 2.6): Lucide through js/icons.js; always decorative, currentColor, 2 px non-scaling stroke */
.icon { width: var(--size-icon); height: var(--size-icon); flex: none; fill: none; stroke: currentColor; stroke-width: var(--stroke-border-strong); stroke-linecap: round; stroke-linejoin: round; }
.icon * { vector-effect: non-scaling-stroke; }
.icon-sm { width: var(--size-icon-sm); height: var(--size-icon-sm); }
.icon-fill { fill: currentColor; }
.icon-status circle { fill: var(--icon-disc); stroke: var(--icon-disc); }
.icon-trail { margin-inline-start: var(--space-2xs); vertical-align: middle; }
[dir="rtl"] .icon[data-mirror] { transform: scaleX(-1); }
@media (forced-colors: active) { .icon-status circle { fill: CanvasText; stroke: CanvasText; } .icon-status { color: Canvas; } }
.select { position: relative; display: block; }
.select select { appearance: none; padding-inline-end: calc(2 * var(--space-md) + var(--size-icon-sm)); }
.select .icon { position: absolute; inset-inline-end: var(--space-md); top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink); }
/* Official UAE PASS button (Buttons Guidelines EN, 2023): pill radius to match our buttons, title black or white
   only, logo in its own colours at the title's height, sentence case "Continue with UAE PASS". Black on light
   backgrounds; outline where it isn't the main action. */
.btn-uaepass { background: var(--uaepass-black); color: var(--white); font: 600 18px/24px var(--font-uaepass); min-width: 140px; } /* ds-allow: third-party button, the UAE PASS guideline's own face and width */
.btn-uaepass img { width: 24px; height: 24px; flex: none; } /* ds-allow: the UAE PASS logo at the title's height */
.btn-uaepass.outline { background: var(--white); color: var(--uaepass-ink); box-shadow: inset 0 0 0 var(--stroke-border) var(--uaepass-ink); }
/* hover: colour only, no lift, no shadow (Julia, 1 Nov; Figma 157:2, 157:22, 157:42, 157:62); disabled is colour only (cursor stays, ring stays) */
.btn-primary:not([disabled]):hover { background: var(--navy); }
.btn-danger:not([disabled]):hover { background: color-mix(in srgb, var(--red) 80%, var(--ink)); }
.btn-secondary:not([disabled]):hover { background: var(--mist); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--logo-blue); }
.btn-light:not([disabled]):hover { background: var(--hover-tint); }
.btn-light-outline:not([disabled]):hover { background: var(--tint-current); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--btn-accent); color: var(--btn-accent); }
.btn-uaepass:hover, .btn-uaepass:active { background: var(--uaepass-pressed); }
.btn-uaepass.outline:hover, .btn-uaepass.outline:active { background: var(--uaepass-pressed-light); }
.btn[disabled] { cursor: not-allowed; }
.btn-primary[disabled] { background: var(--line); color: var(--muted); }
.btn-danger[disabled] { background: var(--line); color: var(--muted); }
.btn-secondary[disabled] { box-shadow: inset 0 0 0 var(--stroke-border) var(--line); color: var(--muted); }
.btn-light[disabled] { background: var(--tint-current); color: var(--text-on-dark); }
.btn-light-outline[disabled] { box-shadow: inset 0 0 0 var(--stroke-border) var(--line-on-dark); color: var(--muted-on-dark); }
/* Glass CTA (Julia, 1 Nov, Figma Components 182:471; white glass "C1" from Research/CTA options): "Become a member" / "Go to My Portal" on dark
   surfaces is a frosted white pill with a navy label and the two brand waves in logo-blue (no disc, Julia 9 Nov); a white glint travels slowly
   round the border. syncLanding() in app.js adds the circle (.cta-mark).
   Hover: no tint, no lift; the waves turn into an arrow. Reduced motion: the glint stops where it is. */
@property --glint-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-light.btn-glass { position: relative; isolation: isolate; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-md);
  color: var(--navy); background: var(--white); box-shadow: var(--shadow-glass); } /* plain white, no shimmer (Julia, 9 Nov: "and no shimmer effect ofc") */
.btn-light.btn-glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: var(--stroke-glint); pointer-events: none;
  background: conic-gradient(from var(--glint-angle), transparent 0deg 220deg, var(--white) 295deg, transparent 355deg);
  mask: linear-gradient(var(--white) 0 0) content-box exclude, linear-gradient(var(--white) 0 0); animation: glass-glint var(--dur-glint) linear infinite; }
@keyframes glass-glint { to { --glint-angle: 360deg; } }
.btn-light.btn-glass:not([disabled]):hover { background: var(--white); box-shadow: var(--shadow-glass); transform: none; }
/* hover and keyboard focus: the waves slide out to the right and fade, a curved arrow slides in from the left (Julia, 1 Nov: "turn curves into an arrow on hover") */
.cta-waves, .cta-arrow { transition: transform var(--dur-base) cubic-bezier(0.33, 1, 0.68, 1), opacity var(--dur-base); }
.cta-arrow { opacity: 0; transform: translateX(-30%); }
.btn-glass:not([disabled]):is(:hover, :focus-visible) .cta-waves { opacity: 0; transform: translateX(30%); }
.btn-glass:not([disabled]):is(:hover, :focus-visible) .cta-arrow { opacity: 1; transform: none; }
.btn-light.btn-glass.btn-block { padding-left: var(--space-xs); }
.cta-mark { flex: none; display: grid; width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); overflow: hidden; } /* no disc: the waves sit on the white pill (Julia, 9 Nov) */
.cta-mark svg { width: 100%; height: 100%; fill: var(--logo-blue); }
@media (prefers-reduced-motion: reduce) { .btn-light.btn-glass::before { animation: none; } .cta-waves, .cta-arrow { transition: none; } }
/* phones keep the compact header (Julia, 30 Oct): the sticky bar's glass button drops its circle below 600, so "My Portal" stays short and clears the logo */
@media (max-width: 599px) { .sticky .btn-glass .cta-mark { display: none; } .sticky .btn-light.btn-glass { padding: var(--space-md) var(--space-lg); } }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Tabs [Tabs] (link tabs): the Admin's component (admin.css 126-135, Admin tabs r1, Figma 382:31). Client: 44 high, scrolls sideways, ring inside (Attendants r3 9.1) ---------- */
.tabs { display: flex; gap: var(--space-md); margin-inline: calc(-1 * var(--space-2xs)); overflow-x: auto; scrollbar-width: thin; background: linear-gradient(var(--line), var(--line)) bottom / 100% var(--stroke-divider) no-repeat; } /* the 1 px line is painted inside the scroll box, so it never scrolls away or gets clipped; the lint's shadow rule has no form for the spec's inset box-shadow, so the same line is a bottom background */
.tabs a { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--size-touch); padding-inline: var(--space-2xs); font: var(--type-body-strong); color: var(--text); text-decoration: none; white-space: nowrap; border-bottom: var(--stroke-border-strong) solid transparent; transition: border-bottom-color var(--dur-fast), color var(--dur-fast); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--logo-blue); }
@media (hover: hover) { .tabs a:not([aria-current="page"]):hover { color: var(--ink); border-bottom-color: var(--field-border); } }
.tabs a:not([aria-current="page"]):active { color: var(--ink); border-bottom-color: var(--muted); }
.tabs a:focus-visible { outline-width: var(--stroke-border-strong); outline-offset: calc(-1 * var(--stroke-border-strong)); } /* inset, the Admin's ring for clipped places (button.upd, .place-item): the strip scrolls, so an outside ring would be cut */

/* ---------- Sticky CTA (fixed on scroll) ---------- */
.sticky { position: fixed; top: 0; right: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-xl);
  padding: var(--space-md) var(--space-3xl) var(--space-md) var(--space-md); background: var(--logo-blue); color: var(--white); --focus: var(--white);
  border-bottom-left-radius: var(--radius-xl); font: var(--type-nav); }
.menu-btn { width: var(--size-control-h); height: var(--size-control-h); border-radius: var(--radius-xl); background: var(--tint-current); display: grid; place-items: center; color: var(--white); transition: background var(--dur-fast); }
.menu-btn:hover { background: color-mix(in srgb, var(--white) 20%, transparent); } /* icon button on dark: one step lighter on hover (Control states r1) */
/* the menu button opens the menu below 1280 (Mobile adaptation r1); desktop shows the full nav, so it is hidden here */
@media (min-width: 1280px) { .menu-btn { display: none; } }

/* ---------- First screen ---------- */
.site-head { background: var(--logo-blue); padding: 0 var(--space-3xl); } /* the public header (landing, #/host, #/events); .first below it keeps the same 40px page edge as every section .wrap */
.first { display: flow-root; background: var(--logo-blue); padding: 0 var(--space-3xl) var(--space-3xl); padding-inline: max(var(--space-3xl), calc((100% - var(--size-page-max)) / 2)); } /* hero + tiles stop at page-max and centre on the sections' edge (Page max width r1) */ /* flow-root: the hero's top margin stays inside the blue instead of collapsing out into a white gap under the header */
.nav { height: calc(2 * var(--space-md) + var(--size-control-h)); display: flex; align-items: center; gap: var(--space-xl); padding: 0; color: var(--white); font: var(--type-nav); position: relative; z-index: var(--z-nav); }
.nav .logo { align-self: center; border-radius: var(--radius-sm); } /* one header (Julia, 4 Nov): the same logo in the same place on the public and member bars */
.nav .logo img, .foot-bar .logo img, .side .logo img { width: 132px; height: 84px; border-radius: var(--radius-sm); } /* ds-allow: the logo at its full size, 132 x 84 (nav, footer, KYC sidebar); never shrink it */
/* header panel (Julia, 3 Nov: "make panel 88"): 88 at the top and when scrolled, the hero right under it; the logo stays full size (84, "don't make logo smaller") and the links and buttons centre on it. Tablet and up only; phones keep their compact header (599 block). */
@media (min-width: 600px) {
  .first > .hero { margin-top: 0; } /* beats the base .hero rule further down */
}
@media (min-width: 1024px) { .first > .hero { height: clamp(500px, calc(100svh - 328px), 760px); } } /* ds-allow: hero height, fluid with the viewport */ /* 328 = header 88 + gap 40 + ~200 of tiles; below 1024 the hero is auto height */
.nav .links { display: flex; flex: 1; gap: var(--space-xl); align-items: center; }
.nav .lang { margin-left: auto; } /* language stays with the controls on the right */
/* top menu hover (Julia, 3 Nov): a white-tint pill behind the link; the negative margin keeps the text where it was */
.nav .links a:not(.lang), .sticky > a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--size-control-h); padding: 0 var(--space-sm); margin-inline: calc(-1 * var(--space-sm)); border-radius: var(--radius-full); transition: background var(--dur-fast); }
@media (hover: hover) { .nav .links a:not(.lang):hover, .sticky > a:not(.btn):hover { background: var(--tint-current); } }
.nav .links a[aria-current="page"] { text-decoration-line: underline; text-decoration-thickness: var(--stroke-border-strong); text-underline-offset: var(--space-xs); } /* the open page, like the member header */
.nav .ghost { display: flex; align-items: center; gap: var(--space-xl); visibility: hidden; } /* same content as .sticky, which sits on top of it */
.has-menu { position: relative; }
.navbtn { display: inline-flex; align-items: center; gap: var(--space-xs); font: var(--type-nav); color: inherit; padding: var(--space-xs) 0; }
.navbtn .chev { transition: transform var(--dur-fast); }
.has-menu.open .chev { transform: rotate(180deg); }
.dropdown { display: none; position: absolute; top: calc(100% + var(--space-xs)); left: 0; z-index: var(--z-dropdown); background: var(--navy); color: var(--white); --focus: var(--white);
  border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-lg); }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--space-xs)); height: var(--space-xs); }
.has-menu.open .dropdown { display: block; }
.dropdown.list { min-width: 320px; /* ds-allow: dropdown minimum width */ display: none; flex-direction: column; gap: var(--space-2xs); }
.has-menu.open .dropdown.list { display: flex; }
.dropdown.list a { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); font: var(--type-nav); }
.dropdown.list a:hover, .dropdown.list a:focus-visible { background: var(--tint-current); }
.dropdown.mega { width: 620px; } /* ds-allow: mega menu width, the about column's 620 */
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.mega-cards .tile { height: 140px; border-radius: var(--radius-xl); } /* ds-allow: mega tile height (one use); tiles are xl by role */
.mega-cards .tile .title { font: var(--type-title); text-transform: uppercase; }
.mega-foot { display: flex; justify-content: space-between; padding: var(--space-md) var(--space-2xs) 0; font: var(--type-body-sm); }
.mega-foot a:hover, .mega-foot a:focus-visible { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { border: 0; box-shadow: inset 0 0 0 var(--stroke-border) var(--white); border-radius: var(--radius-full); padding: var(--space-md) var(--space-xl); font: var(--type-body-strong); font-family: var(--font-ar); height: auto; display: inline-flex; align-items: center; gap: var(--space-xs); }
.lang .flag { border-radius: 2px; flex: none; } /* ds-allow: the UAE flag, fixed national colours and corner */
.lang { transition: background var(--dur-fast), box-shadow var(--dur-fast); }
/* hover and keyboard focus = the Light outline Hover (Julia's Figma 157:62): 12% white fill, 2px white ring, no movement */
.lang:is(:hover, :focus-visible) { background: var(--tint-current); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--white); }

/* zerowind-style, but the tile words must show under it: 100svh minus nav 88, gap 24, gap 40 and ~200px of tile (word ends ~190px down) */
.hero { position: relative; height: clamp(500px, calc(100svh - 352px), 760px); /* ds-allow: hero height, fluid with the viewport */ margin-top: var(--space-xl); border-radius: var(--radius-xl); overflow: hidden; color: var(--white);
  background: var(--navy) url(../video/hero-highlights-poster.jpg) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim-hero); }
.hero > .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero > .hero-pause { position: absolute; right: var(--space-2xl); bottom: var(--space-2xl); width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); display: grid; place-items: center;
  color: var(--white); background: var(--overlay-media); box-shadow: inset 0 0 0 var(--stroke-border) var(--white); }
.hero-pause:hover { background: var(--overlay-media-hover); }
.hero-pause .i-play, .hero-pause.paused .i-pause { display: none; }
.hero-pause.paused .i-play { display: block; }
.hero > * { position: relative; }
/* one bilingual lockup pinned to the bottom; Arabic leads (88 over 54, about 1.63), gaps widen from group to group: md-ish < 2xl < 3xl */
.hero .content { position: absolute; left: var(--space-2xl); bottom: var(--space-2xl); display: flex; flex-direction: column; align-items: flex-start; }
.hero .lockup .ar { font: var(--type-ar-display); white-space: nowrap; margin-bottom: var(--space-2xl); } /* Alexandria dots hang ~0.5em below the baseline: 2xl keeps them clear of the English caps in every browser */
.hero h1 { font: var(--type-display); white-space: nowrap; }
.hero .lede { font: var(--type-body-strong); max-width: 536px; /* ds-allow: the lede's measure, two lines broken after "world:" (the longer line is 521 px; Julia 6 Nov) */ margin-top: var(--space-2xl); }
.hero .ctas { display: flex; gap: var(--space-sm); margin-top: var(--space-3xl); }
.hero .status { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); font: italic var(--type-eyebrow); }
.ring { width: var(--size-dot-lg); height: var(--size-dot-lg); border-radius: var(--radius-full); background: var(--green); flex: none; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3xl); margin-top: var(--space-3xl); }
/* One tile language for every photo card (services, events, host) */
.tile { container-type: inline-size; position: relative; height: var(--size-tile-h); padding: var(--space-xl); border-radius: var(--radius-xl); overflow: hidden; background: var(--navy); color: var(--white); display: grid; place-items: center; text-align: center; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
a.tile img { transition: transform var(--dur-slow); }
a.tile:hover img, a.tile:focus-visible img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay-tile); }
.tile .stack { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); margin-top: 0; transition: opacity var(--dur-base); } /* margin 0: the general .stack margin leaked in and put the words 16 px below centre (design review A23, 6 Nov) */
.tile .title { font: var(--type-title); text-transform: uppercase; color: var(--white); }
/* Words scale to fit their tile: --n is the letter count of the longest line, set inline per tile; Inter Black Italic caps run about 0.70 em a letter, 0.75 leaves a margin.
   100cqw is the tile's content box, which is already the tile minus its xl padding on both sides (so no "- 2 * xl" here: it would take the padding off twice).
   --n falls back to 1 so a tile with no --n (the Client Portal's tiles) stays at the 68 px cap. */
.tile .word { font: var(--type-word); white-space: nowrap; font-size: min(68px, calc(100cqw / (var(--n, 1) * 0.75))); } /* ds-allow: the word's size fits its tile (word cap 68) */
.tile.sm .title { font-size: min(30px, calc(100cqw / (var(--n, 1) * 0.75))); line-height: 1; } /* ds-allow: the title's size fits its tile (title cap 30); 4px grid r1 §1: fluid type, line-height 1 */
.tile .ar { display: block; font: var(--type-ar-sub); }
.tile .sub { font: var(--type-h3); color: var(--white); }
.tile.sm { height: var(--size-tile-sm-h); }
.tile.sm.span2 { grid-column: span 2; }
.tile .peek { position: absolute; left: var(--space-xl); right: var(--space-xl); bottom: var(--space-xl); display: flex; gap: var(--space-sm); align-items: center; text-align: left; font: var(--type-label); transition: opacity var(--dur-base); }
@media (min-width: 600px) { .tiles .peek { top: var(--space-xl); flex-direction: column; justify-content: space-between; align-items: flex-start; } .tiles .peek > span:last-child { text-wrap: balance; } } /* the EVENTS tile: chip top-left, text at the bottom, full width. Chip + text can't fit under the Arabic (Specs/Events tile collision r1.md) */
.tag { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; padding: var(--space-xs); border-radius: var(--radius-full); background: var(--logo-blue); white-space: nowrap; }
.tile .more { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-xl); text-align: left; background: var(--overlay-reveal); opacity: 0; transition: opacity var(--dur-base); }
.tile .more h3 { font: var(--type-title); text-transform: uppercase; }
.tile .more p { font: var(--type-body); color: var(--text-on-dark); margin-top: var(--space-xs); max-width: 420px; } /* ds-allow: the reveal text's measure */
.tile:is(:hover, :focus-visible) .more { opacity: 1; }
.tile:has(.more):is(:hover, :focus-visible) :is(.stack, .peek) { opacity: 0; } /* only when a reveal panel replaces the text; event tiles have none */

/* ---------- Generic sections ---------- */
.sec { padding: var(--space-5xl) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.kicker { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--logo-blue); }
.sec h2 { font: var(--type-h1); color: var(--logo-blue); }
.intro { font: var(--type-lead); color: var(--text); max-width: 520px; } /* ds-allow: the intro's measure */

.about .grid { display: grid; grid-template-columns: minmax(0, 1fr) 620px; /* ds-allow: the about column, 620 */ gap: var(--space-5xl); align-items: center; }
/* the word is ~3.5em wide: scale it to the column (page width minus 2 x 40 edge, 80 gap, 620 text) so it never pushes past the edge */
.big-ar { font: 900 min(200px, calc((min(100vw, var(--size-page-max) + 2 * var(--space-3xl)) - 780px) / 3.6))/1.15 var(--font-ar); color: var(--blue); white-space: nowrap; } /* ds-allow: the one fluid display size, scaled to the column */
.big-en { font: var(--type-word); color: var(--logo-blue); margin-top: var(--space-2xl); }
.about .ar-sub { font: var(--type-ar-title); color: var(--logo-blue); margin-top: var(--space-sm); }
.about h2 { margin: 0 0 var(--space-lg); }
.about p { font: var(--type-lead); color: var(--text); }
.lives { list-style: none; margin-top: var(--space-xl); }
.lives li { display: grid; grid-template-columns: 152px 1fr; /* ds-allow: the label column, 152 (4px grid r1 §2) */ gap: var(--space-md); padding: var(--space-md) 0; box-shadow: inset 0 var(--stroke-divider) 0 var(--line); font: var(--type-body); color: var(--text); } /* 4px grid r1 §3: divider as inset shadow */
.lives b { font: var(--type-body-strong); text-transform: uppercase; color: var(--logo-blue); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); margin-top: var(--space-4xl); padding-top: var(--space-xl); border-top: var(--stroke-border-strong) solid var(--blue); }
.numbers strong { display: block; font: var(--type-h2); color: var(--logo-blue); white-space: nowrap; } /* "2 × 50 m" never splits (designer review 9 Nov) */
.numbers span { display: block; font: var(--type-body-sm); color: var(--text); margin-top: var(--space-xs); }

.prices { background: var(--mist); }
.plans { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xl); margin-top: 0; }
#prices .plans { gap: var(--space-xl); } /* price cards 24px apart (Julia, 31 Oct); other card grids stay 40 */
.plan { position: relative; background: var(--white); border: var(--stroke-card) solid var(--line); /* the card outline, as every client card (design review B23) */ border-radius: var(--radius-lg); padding: calc(var(--space-xl) - var(--stroke-card)) calc(var(--space-lg) - var(--stroke-card)); display: flex; flex-direction: column; gap: var(--space-sm); }
.plan h3 { font: var(--type-body-strong); }
.plan .price { font: var(--type-h2); }
.plan .price small { font: var(--type-label); color: var(--text); margin-left: var(--space-xs); }
.plan .price .dec { font: var(--type-label); color: var(--text); } /* VAT-inclusive prices r1 1: the decimals in the small size, inline after the integer on the same baseline, no gap */
.plans .plan .price small { display: block; margin: var(--space-2xs) 0 0; } /* "AED" goes under the numeral at every width, as on the Portal cards: with VAT "2,677.50 AED" is wider than a card at 1440 (designer review, 6 Nov) */
.plan p { font: var(--type-body-sm); color: var(--text); }
.plan.pop { background: var(--logo-blue); border-color: var(--logo-blue); color: var(--white); border-top-right-radius: 0; }
.plan.pop .price small, .plan.pop .price .dec, .plan.pop p { color: var(--white); }
.plan .badge { position: absolute; bottom: 100%; right: calc(-1 * var(--stroke-card)); background: var(--blue); color: var(--white); font: var(--type-label); padding: var(--space-xs); border-radius: var(--radius-sm) var(--radius-sm) 0 var(--radius-sm); }
.prices .foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-3xl); font: var(--type-body); color: var(--text); text-wrap: pretty; } /* D: two stacked lines (the button is gone) */
.prices .foot-paths { display: flex; flex-wrap: wrap; column-gap: var(--space-xl); row-gap: var(--space-sm); } /* D: the two paths side by side */
.prices .plan .btn { margin-top: auto; } /* A: the six Choose buttons share one baseline (as .home .plan .btn) */

.events { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: var(--size-tile-h); gap: var(--space-3xl); }
.ev-none { margin-top: var(--space-md); }
.sec-actions { display: flex; gap: var(--space-sm); flex: none; }
.tile.noimg::after { content: none; } /* no photo: plain navy, no overlay */
.empty { margin-top: var(--space-xl); background: var(--mist); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-xl); font: var(--type-body); color: var(--text); } /* a mist panel, no dashed border (dashed is for drop targets) */

.host { background: var(--logo-blue); color: var(--white); }
.host h2 { color: var(--white); }
.host h1 { font: var(--type-h1); color: var(--white); } /* #/host: the section's heading is the page h1, same look as the h2 it replaced */
.host-page .host { padding-top: var(--space-2xl); }
.host .facilities { margin-top: var(--space-3xl); padding-top: calc(var(--space-xl) - var(--stroke-divider)); border-top: var(--stroke-divider) solid color-mix(in srgb, var(--white) 25%, transparent); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.host .facilities h2 { font: var(--type-h3); color: var(--white); }
.fac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-xl); margin-top: var(--space-xl); }
.fac-grid h3 { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--sky); margin-bottom: var(--space-sm); }
.fac-grid ul { list-style: none; display: grid; gap: var(--space-xs); }
.fac-grid li { font: var(--type-body-sm); color: var(--text-on-dark); }
.host .clubs p { font: var(--type-body); color: var(--text-on-dark); margin-top: var(--space-xs); }
/* #/host enquiry (Julia, 2 Nov): the landing's contact section, closing the Venue rental page */
#enquiry-h:focus { outline: none; }
.enq-error { font: var(--type-body-sm); color: var(--white); }
.enq-done { font: var(--type-lead); color: var(--white); margin-top: var(--space-2xl); }
.enq-done:focus { outline: none; }
.host-page h1[tabindex="-1"]:focus { outline: none; } /* focus lands here on arrival; it is a heading, not a control */
.host .intro { color: var(--text-on-dark); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); padding-top: calc(var(--space-lg) - var(--stroke-divider)); border-top: var(--stroke-divider) solid color-mix(in srgb, var(--white) 25%, transparent); margin-bottom: var(--space-2xl); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.facts strong { display: block; font: var(--type-h2); }
.facts span { display: block; font: var(--type-body-sm); color: var(--text-on-dark); margin-top: var(--space-xs); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3xl); }
.cards .tile .title { font: var(--type-title-lg); font-size: clamp(40px, 3.33vw, 48px); } /* ds-allow: host tiles run title-lg down to 40 so CONFERENCES fits a 373 px tile at 1280 */
.host .row { display: flex; gap: var(--space-sm); margin-top: var(--space-2xl); }

.contact { position: relative; background: var(--ink); color: var(--white); overflow: hidden; padding-bottom: var(--space-6xl); } /* holds the distance from the details column to the blue diagonal */
.contact::after { content: ""; position: absolute; right: 0; bottom: 0; width: 660px; height: 630px; /* ds-allow: the blue triangle, 660 x 630 */ background: var(--blue); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.contact .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 432px; /* ds-allow: the details column, 432 (4px grid r1 §2) */ gap: var(--space-5xl); }
.contact h2 { color: var(--white); }
.contact h2 em { font-style: normal; color: var(--blue); }
.contact .ar-sub { font: var(--type-ar-title); color: var(--sky); margin-top: var(--space-sm); }
.zform { margin-top: var(--space-2xl); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--space-2xl); }
.zform .wide { grid-column: 1 / -1; }
.zform label { display: block; font: var(--type-label); color: var(--muted-on-dark); margin-bottom: var(--space-xs); }
.zform input:not(.vh), .zform textarea { width: 100%; background: transparent; border: 0; border-bottom: var(--stroke-border) solid var(--line-on-dark); color: var(--white); font: var(--type-body); padding: var(--space-xs) 0; outline: none; }
.zform input:not(.vh) { height: var(--size-field-h); } /* review 10 Nov: the field height, 44 (was 41) */
.zform input:not(.vh):focus, .zform textarea:focus { border-bottom: var(--stroke-border-strong) solid var(--white); } /* the field's focus state (its outline stays off) */
.zform textarea { min-height: 76px; /* ds-allow: textarea minimum height; review 10 Nov: 76 so the box (with its 1.5 underline) is 76, was 74 */ resize: none; }
.zform legend { display: block; font: var(--type-label); color: var(--muted-on-dark); margin-bottom: var(--space-xs); }
/* Pill toggle (Design system 3.2): one radio group in Button styles, each option a label around a visually hidden radio. On dark it is Light outline at rest and Light when selected;
   .pt-opt.on-light is Secondary at rest and Primary when selected. 56 high; the focus ring is on the label (never :focus-within).
   Control states r1 (Julia, 1 Nov): every choice control takes all the states of its Button style: unselected = the outline style, selected = the filled style,
   each with that style's hover. Nothing moves. */
.pt-group { display: flex; flex-wrap: wrap; gap: var(--space-xs); border: 0; min-width: 0; }
.pt-opt, .zform .pt-opt { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: var(--size-control-h); padding: var(--space-md) var(--space-xl); margin: 0; border-radius: var(--radius-full);
  font: var(--type-body-strong); font-variant-numeric: tabular-nums; color: var(--white); box-shadow: inset 0 0 0 var(--stroke-border) var(--white); text-align: center; white-space: nowrap; cursor: pointer;
  transition: background var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast); }
.pt-opt:hover { background: var(--tint-current); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--white); }
.pt-opt:has(input:checked) { background: var(--white); box-shadow: none; color: var(--logo-blue); }
.pt-opt:has(input:checked):hover { background: var(--hover-tint); box-shadow: none; color: var(--logo-blue); } /* selected = Light, so it takes Light's hover (Control states r1) */
.pt-opt:has(input:focus-visible) { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.pt-opt small { font: var(--type-caption); font-variant-numeric: tabular-nums; color: var(--text-on-dark); }
.pt-opt:has(input:checked) small, .pt-opt.on-light small { color: inherit; }
.pt-opt:has(small) { padding-block: var(--space-xs); }
.pt-opt.on-light, .zform .pt-opt.on-light { color: var(--logo-blue); box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.pt-opt.on-light:hover { background: var(--mist); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--logo-blue); }
.pt-opt.on-light:has(input:checked) { background: var(--logo-blue); box-shadow: none; color: var(--white); }
.pt-opt.on-light:has(input:checked):hover { background: var(--navy); box-shadow: none; color: var(--white); } /* selected = Primary, so it takes Primary's hover */
.details { display: grid; gap: var(--space-lg); align-content: start; }
.details h3 { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); color: var(--sky); margin-bottom: var(--space-xs); }
.details p { font: var(--type-lead); color: var(--text-on-dark); }

/* ---------- Footer: four-column doormat + bottom bar (the public site: landing, #/host, #/events, #/about, #/terms; Figma 127:42) ---------- */
footer { background: var(--ink); color: var(--text-on-dark); border-top: var(--stroke-divider) solid var(--line-on-dark); padding: calc(var(--space-4xl) - var(--stroke-divider)) 0 var(--space-3xl); } /* 4px grid r1 §3 */
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-3xl); }
.foot-cols h2 { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--sky); margin-bottom: var(--space-md); }
.foot-cols ul { list-style: none; display: grid; gap: var(--space-sm); }
.foot-cols li, .foot-cols a { font: var(--type-body); color: var(--text-on-dark); }
.foot-cols address { font-style: normal; }
footer a { transition: color var(--dur-fast); }
.foot-bar { display: flex; align-items: center; gap: var(--space-2xl); margin-top: var(--space-4xl); padding-top: calc(var(--space-2xl) - var(--stroke-divider)); border-top: var(--stroke-divider) solid var(--line-on-dark); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.foot-bar .legal { flex: 1; font: var(--type-body-sm); color: var(--muted-on-dark); } /* Figma 127:75 is 14 / 21 */
.foot-bar .legal a { color: var(--text-on-dark); }
.foot-social { display: flex; gap: var(--space-sm); list-style: none; }
.foot-social a { display: grid; place-items: center; width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); color: var(--text-on-dark); } /* as .hero-pause; no ring (line-on-dark on ink is 2.6:1) */
.foot-social svg { width: var(--size-icon); height: var(--size-icon); fill: currentColor; }
/* states (declared after the base colours above, so hover and the current page win over .foot-cols a and .legal a) */
footer a:hover, footer a[aria-current="page"], .foot-bar .legal a:hover { color: var(--white); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.foot-social a:hover { background: var(--tint-current); color: var(--white); text-decoration: none; }
footer a:focus-visible { border-radius: var(--radius-sm); }
.foot-social a:focus-visible { border-radius: var(--radius-full); } /* the ring follows the round target */

/* ---------- All events (#/events): previous major events, grouped by year ---------- */
.allev { padding: var(--space-2xl) 0 var(--space-6xl); }
:is(.allev, .side, .main, .swim-band, .host-page) .back, .pass-back { display: inline-flex; align-items: center; gap: var(--space-xs); font: var(--type-label); color: var(--logo-blue); } /* one back link on the client side = library Link · Back (design review A20, 6 Nov); each place below keeps only its margin or its colour on a dark band */
:is(.allev, .side, .main, .swim-band, .host-page) .back:hover, .pass-back:hover { text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.allev .back { margin-bottom: var(--space-3xl); }
.allev-head, .yr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); column-gap: var(--space-5xl); }
.allev-head { align-items: end; margin-bottom: var(--space-4xl); }
.allev-head:not(:has(.intro)) { grid-template-columns: minmax(0, 1fr); } /* Terms has no intro since 6 Nov: the h1 takes the whole row */
.allev-head h1 { font: var(--type-h1); color: var(--logo-blue); outline: none; }
.allev-group > .kicker { margin-bottom: var(--space-xl); }
.yr { padding: var(--space-xl) 0 var(--space-3xl); border-top: var(--stroke-border-strong) solid var(--blue); }
.yr-head { position: sticky; top: var(--space-3xl); align-self: start; }
.yr :is(h2, h3) { font: var(--type-title); color: var(--logo-blue); }
.yr .n { display: block; font: var(--type-body); color: var(--muted); margin-top: var(--space-xs); }
.ev-rows { list-style: none; }
.ev-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xl); padding: var(--space-md) 0; box-shadow: inset 0 var(--stroke-divider) 0 var(--line); } /* 4px grid r1 §3 */
.ev-rows li:first-child { padding-top: 0; box-shadow: none; }
.ev-rows .t { font: var(--type-body-strong); color: var(--ink); }
.ev-rows .d { font: var(--type-body); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.allev-none { font: var(--type-body); color: var(--text); }
.allev-head:not(:has(.intro)) + .allev-none { margin-top: calc(var(--space-xl) - var(--space-4xl)); } /* Coming soon: the line sits xl under the h1, not 4xl (designer review 9 Nov) */
.allev-head .intro a, .yr-link { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.yr-body > p { font: var(--type-body); color: var(--text); max-width: 620px; } /* ds-allow: the group text's measure */ /* #/about group text: the .allev-none type, capped at 620 */
.yr-body > p + .ev-rows { margin-top: var(--space-xl); }
.yr-link { display: inline-block; margin-top: var(--space-md); font: var(--type-body-strong); }
#homeView h2[tabindex="-1"]:focus { outline: none; } /* focus lands on a heading after Hide; it is a heading, not a control */
#landing h2[tabindex="-1"]:focus { outline: none; } /* focus lands on a ?s= section's heading on arrival; it is a heading, not a control */
#host-facilities, #about-green, #terms-pool { scroll-margin-top: var(--space-3xl); } /* scrollIntoView({ block: 'start' }) leaves a gap above the section */

/* ---------- Page sweep: a blue diagonal wipe between landing pages (home, #/host, #/events); runSweep() in app.js drives it with the Web Animations API ---------- */
.sweep { position: fixed; inset: 0; z-index: var(--z-sweep); overflow: hidden; cursor: progress; }
.sweep-panel { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  background: var(--blue); transform: translate(110vmax, 110vmax) rotate(45deg); will-change: transform; }
.sweep-panel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: var(--space-xl); background: var(--logo-blue); } /* trailing sliver */

/* =================== KYC flow =================== */
.flow { display: grid; grid-template-columns: var(--size-side-w) 1fr; min-height: 100vh; }
.side { background: var(--logo-blue); color: var(--white); padding: var(--space-3xl); display: flex; flex-direction: column; gap: var(--space-2xl); position: sticky; top: 0; height: 100vh; }
.side h1 { font: var(--type-h2); }
.side .ar-sub { font: var(--type-ar-sub); color: var(--sky); margin-top: var(--space-xs); }
.steps { list-style: none; display: grid; gap: var(--space-xs); }
.steps li { display: flex; gap: var(--space-md); align-items: center; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); font: var(--type-nav); color: var(--text-on-dark); }
.steps .num { width: var(--size-marker); height: var(--size-marker); border-radius: var(--radius-full); border: var(--stroke-border) solid var(--line-on-dark); display: grid; place-items: center; font: var(--type-label); flex: none; }
.steps .current { background: var(--tint-current); color: var(--white); }
.steps .current .num { background: var(--white); color: var(--logo-blue); border-color: var(--white); }
.steps .done .num { background: var(--green-done); border-color: var(--green-done); color: var(--white); }
.steps small { display: block; font: var(--type-body-sm); color: var(--muted-on-dark); }
.steps .current small { color: var(--text-on-dark); }
.side .help { margin-top: auto; font: var(--type-body-sm); color: var(--text-on-dark); }
.side .back { color: var(--white); margin-top: calc(var(--space-sm) - var(--space-2xl)); } /* desktop: the back link hugs the logo (sm), the title keeps 2xl below it */

.main { padding: var(--space-3xl) var(--space-5xl); background: var(--white); }
.panel { max-width: var(--size-measure); }
.panel h2, .sim-num { font: var(--type-h2); } /* one size and weight for the page heading and the UAE PASS number */
.panel h2 { color: var(--logo-blue); margin-top: 0; } /* no eyebrow above it (KYC tighter r1) */
.panel .lead { font: var(--type-lead); color: var(--text); margin-top: var(--space-sm); }
.panel h3 { font: var(--type-h3); color: var(--ink); }
.stack { display: grid; gap: var(--space-md); margin-top: var(--space-2xl); }
.option { border: var(--stroke-card) solid var(--line); border-radius: var(--radius-lg); padding: calc(var(--space-xl) - var(--stroke-card)); display: grid; gap: var(--space-sm); }
.option.recommended { border: var(--stroke-border-strong) solid var(--logo-blue); padding: calc(var(--space-xl) - var(--stroke-border-strong)); } /* 4px grid r1 §3: content never moves */
.option .pill { justify-self: start; font: var(--type-caption); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-full); background: var(--chip-mist); color: var(--logo-blue); }
.option p { font: var(--type-body); color: var(--text); }
.option .btn { justify-self: start; margin-top: var(--space-xs); }
/* Join (KYC r3 2.1): "Or upload a document" and one card per document, side by side; the grid stretches the cards and the button takes the last row so the buttons line up */
.grp-label { margin-top: var(--space-2xl); }
.uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-sm); }
.uploads.one { grid-template-columns: minmax(0, 1fr); } /* one document so far: the card takes the row, like the UAE PASS card above it */
.uploads .option { grid-template-rows: auto 1fr auto; }
.uploads .option .btn { align-self: end; }
.note { display: flex; gap: var(--space-sm); align-items: flex-start; font: var(--type-body-sm); color: var(--muted); margin-top: var(--space-xl); }
.alert { border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); font: var(--type-body); margin-top: var(--space-xl); }
.alert.info { background: var(--mist); color: var(--logo-blue); }
.alert.warn { background: var(--mist); color: var(--ink); }
.alert.ok { background: var(--mist); color: var(--ink); }
.alert:has(> .icon-status) { position: relative; padding-inline-start: calc(var(--space-lg) + var(--size-icon) + var(--space-sm)); } /* hanging indent: wrapped lines align with line 1's text, not under the icon */
.alert > .icon-status { position: absolute; inset-inline-start: var(--space-lg); top: calc(var(--space-md) + (1lh - var(--size-icon)) / 2); }
.alert.ok { --icon-disc: var(--green-done); }
.alert > .icon-status { color: var(--white); } /* the mark is white on both discs (Julia, 1 Nov: the ! matches the check) */
.alert.warn { --icon-disc: var(--orange); }

/* simulated UAE PASS */
.sim { border-radius: var(--radius-xl); background: var(--mist); padding: var(--space-3xl); display: grid; place-items: center; }
.sim-card { width: 420px; /* ds-allow: the simulated card's width */ background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.sim-card header { background: var(--ink); color: var(--white); padding: var(--space-md) var(--space-xl); display: flex; justify-content: space-between; align-items: center; font: var(--type-body-strong); }
.sim-card header small { font: var(--type-caption); color: var(--muted-on-dark); }
.sim-card .body { padding: var(--space-xl); display: grid; gap: var(--space-md); }
.avatar { width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); background: var(--logo-blue); color: var(--white); display: grid; place-items: center; font: var(--type-label); flex: none; }
.avatar.lg { width: var(--size-control-h); height: var(--size-control-h); font: var(--type-h3); }
/* the card's three stages (KYC r3 1): login, approve, return. UAE PASS's own words, so the heading is the card's 600-weight line (not .panel h3). */
.sim-card h3 { font: var(--type-body-strong); color: var(--ink); }
.sim-card h3:focus, .sim-card .loading p:focus { outline: none; } /* a heading takes focus when the stage changes; it isn't a control */
.sim-form { display: grid; gap: var(--space-md); }
.sim-card .check { margin-top: 0; }
.sim-card .btn-block { justify-content: center; }
.sim-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-md); }
.sim-text { display: grid; gap: var(--space-xs); }
.sim-text p { font: var(--type-body); color: var(--text); } /* the .option p style */
.sim-text .sim-from { display: grid; font: var(--type-body-strong); color: var(--ink); }
.sim-text .sim-from small { font: var(--type-body-sm); color: var(--muted); }
.sim-card .sim-cancel { background: none; border: 0; padding: 0; font: var(--type-label); color: var(--red); text-decoration: none; cursor: pointer; } /* no underline (Julia, 10 Nov) */
.sim-num { color: var(--ink); font-variant-numeric: tabular-nums; text-align: center; background: var(--mist); border-radius: var(--radius-lg); padding: var(--space-lg); } /* .panel h2's size and weight */
.sim-wait { display: flex; align-items: center; gap: var(--space-sm); font: var(--type-body-sm); color: var(--muted); }
.sim-wait .spinner { width: var(--size-icon); height: var(--size-icon); border-width: 3px; flex: none; } /* ds-allow: spinner ring width (small spinner) */
.spinner { width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); border: 4px solid var(--line); border-top-color: var(--logo-blue); animation: spin 1s linear infinite; } /* ds-allow: spinner ring width and the loop's duration */
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; justify-items: center; gap: var(--space-md); padding: var(--space-3xl); font: var(--type-body); color: var(--text); text-align: center; }

/* upload */
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-2xl); }
.drop { border: var(--stroke-card) dashed var(--line); border-radius: var(--radius-lg); padding: calc(var(--space-xl) - var(--stroke-card)); /* 4px grid r1 §3: the border never adds to the size */ min-height: 220px; /* ds-allow: the drop target's height */ display: grid; place-items: center; text-align: center; gap: var(--space-xs); position: relative; background: var(--white); }
.drop.over { border-color: var(--logo-blue); background: var(--mist); }
.drop:focus-within { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); border-color: var(--logo-blue); }
.drop b { font: var(--type-body-strong); color: var(--ink); }
.drop span { font: var(--type-body-sm); color: var(--muted); }
.drop .link { position: relative; z-index: 2; font: var(--type-label); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.drop.filled { border-style: solid; padding: calc(var(--space-md) - var(--stroke-card)); }
.drop.filled img { width: 100%; height: 152px; /* ds-allow: the preview's height (4px grid r1 §2: was 150) */ object-fit: contain; border-radius: var(--radius-md); background: var(--mist); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.filled input[type=file] { display: none; }

/* forms */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-xl); margin-top: var(--space-lg); }
.fields .wide { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; font: var(--type-label); color: var(--text); margin-bottom: var(--gap-label); }
.field label .from { font: var(--type-caption); color: var(--muted); }
.field input, .field select { display: block; width: 100%; height: var(--size-field-h); border: var(--stroke-border) solid var(--field-border); border-radius: var(--radius-md); padding: 0 var(--space-md); font: var(--type-body); color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus { border-color: var(--logo-blue); }
[data-typing]:focus-visible { outline: none; } /* clicked and typing: border only; the ring is for keyboard focus (Julia, 3 Nov; set in app.js) */
.field input[dir=rtl] { font-family: var(--font-ar); }
.field input:hover, .field select:hover { border-color: var(--field-border-hover); } /* Figma 167:54 */
.field input:focus:hover, .field select:focus:hover { border-color: var(--logo-blue); }
.field.error input, .field.error select { border-color: var(--red); }
.err { font: var(--type-caption); color: var(--red); margin-top: var(--space-2xs); }
.hint { font: var(--type-caption); color: var(--muted); margin-top: var(--space-2xs); }
/* Date fields (Client date field r1): the library Input (Figma 167:84) in two kinds. Typed: date of birth. Calendar: expiry dates. */
.field .date-in, .date-btn .date-val { font-variant-numeric: tabular-nums; }
.field .date-in::placeholder { color: var(--muted); opacity: 1; }
/* the Input's Read-only (Figma 167:77) and disabled states */
.field input[readonly] { background: var(--mist); color: var(--muted); }
.field input[readonly]:hover { border-color: var(--field-border); }
.field input:disabled, .field .date-btn:disabled { background: var(--mist); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
/* calendar kind: a button drawn as the Input; the icon sits where the Select's chevron sits */
.date-wrap { position: relative; }
.date-btn { position: relative; display: flex; align-items: center; width: 100%; height: var(--size-field-h); padding-block: 0; padding-inline: var(--space-md) calc(2 * var(--space-md) + var(--size-icon-sm)); border: var(--stroke-border) solid var(--field-border); border-radius: var(--radius-md); background: var(--white); font: var(--type-body); color: var(--ink); text-align: start; cursor: pointer; }
.date-btn .date-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-btn .date-val.is-empty { color: var(--muted); }
.date-btn .icon { position: absolute; inset-inline-end: var(--space-md); top: 50%; translate: 0 -50%; color: var(--ink); pointer-events: none; }
.date-btn:disabled .icon { color: var(--muted); }
.date-btn[aria-expanded="true"] { border-color: var(--logo-blue); }
.date-btn:focus-visible { border-color: var(--logo-blue); } /* Tab focus: border plus the shared ring, as the typed field */
.field.error .date-btn { border-color: var(--red); }
@media (hover: hover) { .date-btn:not(:disabled, [aria-expanded="true"], :focus-visible):hover { border-color: var(--field-border-hover); } .field.error .date-btn:hover { border-color: var(--red); } }
/* the popover: the .acct-menu surface */
.cal { position: absolute; top: calc(100% + var(--space-2xs)); inset-inline-start: 0; z-index: var(--z-dropdown); width: calc(7 * var(--size-field-h) + 2 * var(--space-md)); padding: var(--space-md); background: var(--white); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cal.up { top: auto; bottom: calc(100% + var(--space-2xs)); }
.cal-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-sm); }
.field.error .cal select { border-color: var(--field-border); } /* the field's error is not the month's */
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { height: calc(var(--size-field-h) / 2); padding: 0; font: var(--type-caption); color: var(--muted); text-align: center; }
.cal-grid td { padding: 0; }
.cal-day { display: grid; place-items: center; width: 100%; height: var(--size-field-h); border-radius: var(--radius-md); font: var(--type-body); font-variant-numeric: tabular-nums; color: var(--ink); }
.cal-day[data-today] { font: var(--type-body-strong); color: var(--logo-blue); }
.cal-day[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.cal-day[data-selected] { background: var(--logo-blue); color: var(--white); }
.cal-day:focus-visible { outline-offset: calc(-1 * var(--stroke-focus)); }
@media (hover: hover) {
  .cal-day:not([aria-disabled="true"], [data-selected]):hover { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
  .cal-day[data-selected]:hover { background: var(--navy); }
}
@media (forced-colors: active) { .cal-day[data-selected] { outline: var(--stroke-border-strong) solid Highlight; outline-offset: calc(-1 * var(--stroke-border-strong)); } }
@media (max-width: 599px) { .cal { inset-inline: 0; width: auto; padding: var(--space-sm); scroll-margin-bottom: calc(var(--space-6xl) + var(--space-md)); } }
.check { display: flex; gap: var(--space-sm); align-items: flex-start; font: var(--type-body); color: var(--text); margin-top: var(--space-md); cursor: pointer; }
/* Checkbox (Figma 167:159): 24 px; the ring is the shared :focus-visible rule */
.check input { appearance: none; flex: none; margin: 0; width: var(--size-choice); height: var(--size-choice); border: var(--stroke-border) solid var(--field-border); border-radius: var(--radius-sm); background: var(--white) center / var(--size-icon-sm) no-repeat; cursor: inherit; }
.check input:checked { background-color: var(--logo-blue); background-image: var(--icon-check-white); border-color: var(--logo-blue); }
.check input[aria-invalid="true"]:not(:checked) { border-color: var(--red); }
.check input:disabled { background-color: var(--mist); border-color: var(--line); }
.check input:disabled:checked { background-color: var(--line); background-image: var(--icon-check-muted); }
.check:has(input:disabled) { color: var(--muted); cursor: default; }
@media (hover: hover) {
  .check input:not(:checked, :disabled, [aria-invalid="true"]):hover { border-color: var(--field-border-hover); }
  .check input:checked:not(:disabled):hover { background-color: var(--navy); border-color: var(--navy); }
}
.check a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.section { margin-top: var(--space-3xl); padding-top: calc(var(--space-2xl) - var(--stroke-divider)); border-top: var(--stroke-divider) solid var(--line); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.section .sub { font: var(--type-body-sm); color: var(--muted); margin-top: var(--space-2xs); }
/* Button row (one class): buttons side by side. .end closes a form (2xl above); .tight sits inside a card (md above). */
.btn-row { display: flex; gap: var(--space-sm); align-items: center; }
.btn-row.end { margin-top: var(--space-2xl); }
.btn-row.tight { margin-top: var(--space-md); }
.err.err-gap, .fam .option .err.err-gap { margin-top: var(--space-2xs); }
.eform.tight { margin-top: var(--space-md); }
.fields.flush { margin-top: 0; }

/* verified identity card */
.idcard { margin-top: var(--space-2xl); border-radius: var(--radius-lg); background: var(--mist); padding: var(--space-xl); display: grid; gap: var(--space-md); }
.idcard .top { display: flex; gap: var(--space-md); align-items: center; }
.idcard .names b { display: block; font: var(--type-h3); color: var(--ink); }
.idcard .names span { display: block; font: var(--type-ar-sub); color: var(--logo-blue); }
.idcard .top .chip { margin-left: auto; } /* the one success pill (okChip) sits at the end of the ID card's top row */
.idcard dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.idcard dt, .child-card dt { font: var(--type-caption); color: var(--muted); }
.idcard dd, .child-card dd { font: var(--type-body-strong); color: var(--ink); margin-top: var(--space-2xs); }
.child-card dd.none { font: var(--type-body); color: var(--text); } /* "No sessions yet": quiet, like .pass-none-bk on the Entry pass */
.idcard .lock { font: var(--type-body-sm); color: var(--muted); }
.idcard .lock a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }

.remove { display: inline-flex; align-items: center; gap: var(--space-xs); font: var(--type-label); color: var(--red); padding: var(--space-2xs) 0; } /* destructive text action; the bin (icon sm) before the label when it deletes or ends something (Destructive actions r1) */
@media (hover: hover) { .remove:not(:disabled):hover { text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); } } /* no underline left behind after a tap on a phone */
.remove:not(:disabled):active { color: color-mix(in srgb, var(--red) 80%, var(--ink)); }
.remove:disabled { color: var(--muted); cursor: not-allowed; }

/* pending timeline */
.timeline { list-style: none; margin-top: var(--space-2xl); display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: var(--size-marker) 1fr; gap: var(--space-md); padding-bottom: var(--space-xl); position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--size-marker) / 2 - var(--stroke-border-strong) / 2); top: var(--size-marker); bottom: 0; width: var(--stroke-border-strong); background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: var(--size-marker); height: var(--size-marker); border-radius: var(--radius-full); display: grid; place-items: center; font: var(--type-label); border: var(--stroke-border-strong) solid var(--muted); color: var(--muted); background: var(--white); }
.timeline .done .dot { background: var(--green-done); border-color: var(--green-done); color: var(--white); }
.timeline .now .dot { border-color: var(--logo-blue); }
.timeline .rejected .dot { border-color: var(--red); color: var(--red); }
.timeline .now .dot::after { content: ""; width: var(--size-dot-lg); height: var(--size-dot-lg); border-radius: var(--radius-full); background: var(--logo-blue); animation: pulse 1.2s infinite; } /* ds-allow: the pulse loop's duration */
@keyframes pulse { 50% { opacity: .3; } }
.timeline b { font: var(--type-body-strong); color: var(--ink); display: block; padding-top: var(--space-2xs); }
.timeline span { font: var(--type-body-sm); color: var(--muted); }
.timeline li > div > span { display: block; } /* 4px grid r1: as an inline run it added the div's own line box (49 px instead of 48) */

.done-hero { display: grid; justify-items: start; gap: 0; }
.done-hero h2 { margin-top: var(--space-xl); } /* check to h2; h2 to the chips is .summary md */
.bigcheck { width: 72px; height: 72px; /* ds-allow: the done check, 72 */ border-radius: var(--radius-full); background: var(--green-done); color: var(--white); display: grid; place-items: center; }
.bigcheck .icon { width: 44%; height: 44%; }
.summary { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }

/* toast */
.toast { position: fixed; left: 50%; bottom: var(--space-2xl); transform: translateX(-50%); background: var(--ink); color: var(--white); padding: var(--space-md) var(--space-xl); border-radius: var(--radius-full); font: var(--type-body); box-shadow: var(--shadow-lg); }
.demo-dock { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-demo); } /* holds the D button; the .proto panel opens above it (layout of both: the ds-off block below) */
/* ds-off: demo controls (the .proto panel) are outside the design system */
.proto { font: var(--type-body-sm); }
.proto .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-md); display: grid; gap: var(--space-xs); box-shadow: 0 10px 30px color-mix(in srgb, var(--navy) 15%, transparent); }
.proto .box button { text-align: left; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); background: var(--mist); color: var(--logo-blue); font: var(--type-body); font-weight: 600; }.proto .box p { color: var(--muted); }
.proto .box button { transition: background-color var(--dur-fast); }
.proto .box button[data-here] { --focus: var(--logo-blue); background: var(--highlight); color: var(--ink); }
.proto .box button[data-here]:active { background: color-mix(in srgb, var(--highlight) 80%, var(--ink)); }
.proto .box button:not([data-here]):active { background: color-mix(in srgb, var(--sky) 40%, var(--white)); }
@media (hover: hover) {
  .proto .box button[data-here]:hover { background: color-mix(in srgb, var(--highlight) 80%, var(--ink)); }
  .proto .box button:not([data-here]):hover { background: color-mix(in srgb, var(--sky) 40%, var(--white)); }
}
.proto .box .grp { font-weight: 600; margin-top: var(--space-xs); }
/* ds-on */

/* =================== Flow additions: links, toasts =================== */
/* focus is the one :focus-visible rule at the top; hidden-input choices ring their label (not :focus-within, which would read as selected) */
/* Academy adds a child r1 3.3: the card footer link (Landing yes, 8 Nov) */
.note a, .hint a, .section .sub a, .fam .sub a, .fam .check a, .alert a, .child-card .foot a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
#toasts { position: fixed; left: 50%; bottom: var(--space-2xl); transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: var(--space-xs); justify-items: center; }
#toasts .toast { position: static; transform: none; }

/* =================== Member header + Family page =================== */
.mhead { background: var(--logo-blue); padding: 0 var(--space-3xl); } /* the page edge is 3xl, as every .wrap (was xl: the logo sat 16 left of the content) */
.mhead .nav { padding: 0; }
.mlinks { display: flex; align-items: center; gap: var(--space-xl); margin-left: auto; }
.mhead a:focus-visible { border-radius: var(--radius-sm); }
.mlinks a { color: var(--white); text-underline-offset: var(--space-xs); text-decoration-thickness: var(--stroke-border-strong); border-radius: var(--radius-sm); }
.mlinks a[aria-current="page"] { text-decoration-line: underline; }
.mm-nav .nav-count { vertical-align: middle; }
.nav-count { margin-inline-start: var(--space-xs); margin-block: calc(-1 * var(--space-xs)); font-variant-numeric: tabular-nums; } /* the negative block margin keeps the chip from growing the link's line (Tighter Portal landing r1 7.3) */
.mhead .avatar { background: var(--white); color: var(--logo-blue); }

/* Member header r3 (30 Oct, spec Bookings and account menu r3 1 and 1A): page links left; Entry pass and the account trigger right. */
.mlinks.is-member { flex: 1; margin-left: 0; } /* the links start at the logo tab (gap xl); Entry pass takes the free space */
.mlinks.is-member > a:not(.btn) { padding: var(--space-md) var(--space-sm); margin-inline: calc(-1 * var(--space-sm)); border-radius: var(--radius-full); transition: background var(--dur-fast); } /* a 24 px line plus md above and below: 56 high, the hover pill as the public header */
@media (hover: hover) { .mlinks.is-member > a:not(.btn):hover { background: var(--tint-current); } }
.mlinks .hdr-pass { margin-left: auto; margin-right: calc(var(--space-md) - var(--space-xl)); color: var(--logo-blue); border-radius: var(--radius-full); } /* md before the trigger (the nav gap is xl); .mlinks a would make it white and square */
.mlinks .hdr-pass:hover { background: var(--hover-tint); text-decoration-line: none; }
.mlinks .hdr-pass[aria-current="page"] { text-decoration-line: underline; text-decoration-thickness: var(--stroke-border-strong); text-underline-offset: var(--space-xs); } /* the header's "you are here" mark; the label only, the glyph has no text */
.mlinks .hdr-pass:focus-visible { border-radius: var(--radius-full); } /* .mhead a:focus-visible would square it */
.acct { position: relative; margin-left: auto; }
.mlinks .hdr-pass ~ .acct { margin-left: 0; }
.acct-btn { padding: 0 var(--space-xl) 0 var(--space-2xs); } /* the Light outline Button (Julia, 4 Nov: "a ghost button with a stroke"); the same inset around the avatar */
.acct-btn .avatar { width: calc(var(--size-control-h) - 2 * var(--space-2xs)); height: calc(var(--size-control-h) - 2 * var(--space-2xs)); } /* review 10 Nov: 48 in the 56 button, 4 px inset (was 44 and 6) */
.acct.open .acct-btn.btn-light-outline { background: var(--tint-current); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--white); }
.acct-name { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-block: var(--space-xs); margin-block: calc(-1 * var(--space-xs)); } /* the block padding keeps the 2 px underline (offset xs) inside the clip */
@media (max-width: 1279px) { .acct-name { max-width: 14ch; } } /* one row at 1024 with the count chip */
.acct.is-current .acct-name { text-decoration: underline; text-decoration-thickness: var(--stroke-border-strong); text-underline-offset: var(--space-xs); }
.acct .chev { transition: transform var(--dur-fast); }
.acct.open .chev { transform: rotate(180deg); }
.acct-menu { position: absolute; top: calc(100% + var(--space-xs)); right: 0; z-index: var(--z-dropdown); list-style: none; display: grid; gap: var(--space-2xs); padding: var(--space-xs); width: max-content; min-width: 100%; max-width: calc(100vw - 2 * var(--space-3xl));
  background: var(--white); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mlinks .acct-menu a, .acct-menu button { display: block; width: 100%; text-align: start; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); font: var(--type-nav); color: var(--ink); text-decoration: none; } /* 48 high; a and button share one rule */
.mlinks .acct-menu a:hover, .acct-menu button:hover { background: var(--mist); text-decoration-line: none; }
.mlinks .acct-menu a[aria-current="page"] { color: var(--logo-blue); text-decoration-line: underline; text-decoration-thickness: var(--stroke-border-strong); text-underline-offset: var(--space-xs); }
.acct-who { max-width: var(--size-side-w); padding: var(--space-xs) var(--space-md); margin-bottom: var(--space-2xs); border-bottom: var(--stroke-divider) solid var(--line); font: var(--type-label); color: var(--text); overflow-wrap: anywhere; } /* the Academy Portal's name row: a label, not an action (no hover, not focusable); the whole name, wrapping past --size-side-w (Academy Portal nav r1 1.3) */

.fam { padding-top: var(--space-4xl); padding-bottom: var(--space-5xl); }
.fam .panel h1 { font: var(--type-h2); color: var(--logo-blue); margin-top: 0; } /* no eyebrow above it (Tighter Portal landing r1 1.4) */
.fam .panel .lead { margin-bottom: var(--space-2xl); }
/* Tighter Portal landing r1 4.3, KYC tighter r1 3: the five member pages (#homeView, #bkView, #famView, #detView and #orgView) share one page top and bottom. The phone rule must follow the base rule. */
:is(#homeView, #bkView, #famView, #detView, #orgView) { padding-top: var(--space-2xl); padding-bottom: var(--space-4xl); }
#famView .panel { margin-bottom: var(--space-xl); } /* h1 alone: the gap to the columns is Bookings' (.bk-page .panel) */
#orgView .orgcard, #orgView .panel + .coaches { margin-top: var(--space-xl); }
#orgView .panel + .coaches > :first-child { margin-top: 0; } /* a list or an alert sits xl below the heading, the same as the org card on Overview (Academy Portal nav r1 2.3) */
#detView .panel > .idcard { margin-top: var(--space-xl); }
#detView .section:not(.data-sec):not(.em-folded) { margin-top: var(--space-2xl); padding-top: 0; border-top: 0; } /* the sections read as on Join: no dividers; "Your data" keeps its divider and 4xl */
@media (max-width: 599px) {
  :is(#homeView, #bkView, #famView, #detView, #orgView) { padding-top: var(--space-xl); padding-bottom: var(--space-3xl); }
  #famView .panel { margin-bottom: var(--space-lg); }
  #orgView .orgcard, #orgView .panel + .coaches { margin-top: var(--space-lg); }
  #orgView .coaches { margin-top: var(--space-2xl); }
  #detView .panel > .idcard { margin-top: var(--space-lg); }
}
.fam h2, .fam h3 { font: var(--type-h3); color: var(--ink); }
.fam-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--size-side-w); gap: var(--space-3xl); align-items: start; }
.fam-sec + .fam-sec { margin-top: var(--space-3xl); }
.fam .sub:not(:where(.tile .sub)) { font: var(--type-body-sm); color: var(--muted); margin-top: var(--space-2xs); } /* a landing tile's .sub (the Client Portal's photo tiles) keeps the tile's own look; :where() keeps this rule's specificity */
.fam .alert { margin-top: var(--space-md); }
.fam .empty { margin-top: var(--space-md); }
.klist { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.nm { display: block; font: var(--type-body-strong); color: var(--ink); }
.mt { display: block; font: var(--type-body-sm); color: var(--muted); }
.fam .option { margin-top: var(--space-md); }
.fam .btn-row { display: flex; gap: var(--space-sm); }
.fam .option .btn-row { margin-top: var(--space-xs); }
.fam .option .btn-row .btn { margin-top: 0; }
.fam .option .check { margin-top: var(--space-xs); }
.fam .option .err { margin-top: 0; }

.child-card { background: var(--white); border: var(--stroke-card) solid var(--line); border-radius: var(--radius-lg); padding: calc(var(--space-xl) - var(--stroke-card)); display: grid; gap: var(--space-md); }
.child-card .top { display: flex; gap: var(--space-md); align-items: center; }
.child-card .top .grow { flex: 1; }
.child-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); } /* Academy · Group · Next session, in every state (Family r2 D8) */
.child-card .foot { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-md) - var(--stroke-divider)); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.child-card .foot > .mt { flex: 1 1 auto; min-width: 0; padding-block: var(--space-2xs); text-wrap: pretty; } /* the text takes the row and wraps in its own column; Remove child stays top right. The 2xs padding is Remove child's own (.remove), so a one-line footer keeps its centre line (Academy adds a child r1 3.3) */
.child-card .foot > .remove { flex: none; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: var(--space-xs); font: var(--type-caption); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-full); background: var(--chip-mist); color: var(--ink); white-space: nowrap; }
.chip.w { background: var(--white); }
.chip.ok { background: var(--green-tint); } /* the one success pill (okChip): Portal plan line, Entry pass, Family Confirmed and Active, Bookings Checked in. Green means it is in order / she can use it (Compact Portal top r1 9) */
.chip.ok .icon { color: var(--green-done); } /* the one success pill (okChip): green check on green-tint, 3.54:1; the text stays ink (Julia, 5 Nov) */
.chip.warn { background: var(--orange-tint); --icon-disc: var(--orange); } /* waiting on someone: Academy Portal invite rows (Julia, 6 Nov: "A, colour by state") */
.chip.warn .icon { color: var(--white); }
.chip.neutral { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 var(--stroke-border) var(--line); } /* ended: Academy Portal invite rows only; Fatma's ended pills stay as they are */
#planLine .icon { vertical-align: top; margin-inline-end: var(--space-xs); } /* #planLine is display block, so the check sits in the text run; top-aligned, the 16 px icon fills the 16 px caption line instead of stretching the line box (the pill stays 32 high, Compact Portal top r1 17) */
.gdot { width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-full); background: var(--green); flex: none; }
/* Family r2 (30 Oct): the child card's states, the add form, the pass row, the Client Portal card. */
.child-card .alert { margin-top: 0; }
.child-card > .btn { justify-self: start; }
.kid-form { margin-top: var(--space-md); gap: 0; }
.kid-form h3 { margin: 0; }
.kid-form .fields, .kid-form .eform { margin-top: var(--space-lg); }
.kid-change .fields { margin-top: 0; }
.kid-consent { margin-top: var(--space-xl); }
.kid-form .btn-row, .kid-change .btn-row { margin-top: var(--space-xl); }
.kid-form .eform .btn-row { margin-top: var(--space-xs); } /* designer, 6 Nov: the Add a person form is a grid, so its buttons row already gets the md gap; xs + md = xl, the same space before the buttons as in Add a child */
.eid-lock .lab { display: block; font: var(--type-label); color: var(--text); margin-bottom: var(--space-xs); }
.eid-lock .val { display: block; font: var(--type-body-strong); color: var(--ink); }
.kid-pass { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.kid-share { display: flex; align-items: center; }
.kid-share .btn { flex: none; }
.share-status { margin-left: var(--space-md); }
.share-status:empty { margin-left: 0; } /* always in the DOM so a live region announces what is written into it, but it takes no room while empty */
.kid-show { margin-top: 0; padding-block: var(--space-2xs); }
.confirm { display: grid; gap: var(--space-sm); }
.confirm p { font: var(--type-body); color: var(--ink); }
.confirm p:focus-visible { border-radius: var(--radius-sm); }
.confirm .btn-row { display: flex; gap: var(--space-sm); }

.fam-log { background: var(--white); border: 0; outline: var(--stroke-border) solid var(--line); outline-offset: calc(-1 * var(--stroke-border)); /* 4px grid r1 §3 */ border-radius: var(--radius-lg); margin-top: var(--space-md); list-style: none; }
.fam-log li { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-xl); padding: var(--space-md) var(--space-xl); box-shadow: inset 0 var(--stroke-divider) 0 var(--line); font: var(--type-body); color: var(--ink); } /* 4px grid r1 §3 */
.fam-log li:first-child { box-shadow: none; }
.fam-log .mt { font-variant-numeric: tabular-nums; }
.fam-aside .btn-secondary:hover { background: var(--white); }
.fam-aside > .alert { margin-top: 0; }
.fam-aside .alert, .mem .alert, .idcard .alert { background: var(--white); } /* an alert inside a mist panel is white, so it keeps an edge */

.fam-aside { background: var(--mist); border-radius: var(--radius-lg); padding: var(--space-xl); display: grid; gap: var(--space-md); }
.fam-aside .sub { margin-top: 0; }
.esc { display: grid; gap: var(--space-xs); border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-md) - var(--stroke-divider)); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.esc .l1 { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.esc .l3 { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.esc .l3 .confirm { width: 100%; }
.eform { display: grid; gap: var(--space-md); }
.eform fieldset { border: 0; display: grid; gap: var(--space-2xs); }
.eform .pt-group { display: flex; gap: var(--space-xs); } /* the lane request's Days: seven pills in a wrapping row, as .pt-group is everywhere else (.eform fieldset alone would stack them) */
.eform legend { font: var(--type-label); color: var(--text); margin-bottom: var(--space-xs); }
.eform .check { margin-top: 0; }
.fam-aside .btn { justify-self: start; }
/* Family layout and form r1 (Specs/Family layout and form r1.md): "Drop-off and pick-up" is a section title like "Children"; the mist card holds only the people. Family and Bookings: the aside is a titled section; the mist card holds only the list (Specs/Bookings small fixes r1.md). */
:is(#famView, #bkView) aside > .fam-aside { margin-top: var(--space-md); }
#famView :is(.btn-row.tight, .kid-form) + :is(.iv-card, .klist, .empty, .fam-aside) { margin-top: var(--space-xl); } /* the add button or open form is an action, not the first list item: xl before the first block after it, in Children and in Drop-off and pick-up (title, alert and action stay md; beats the md rules above) */
#famView .fam-aside > .esc:first-child { border-top: 0; padding-top: 0; } /* a divider at the card's top edge divides nothing */
#bkView .fam-aside .pay-row:first-child { border-top: 0; padding-top: 0; } /* the sub-line is outside the card now, so the first divider would sit on its top edge */
#bkView .fam-aside > .more-foot { margin-top: 0; } /* list to foot is the grid gap (md), as under Past and cancelled */
#famView form { max-width: var(--size-measure); } /* the add, change and escort forms; the card stays the full column */
.fields.kid-fields { grid-template-columns: minmax(0, 1fr); } /* kidFields (Family and #/invite): one field per line at every width */
.kid-fields .field:not(.wide) { max-width: calc((var(--size-measure) - var(--space-xl)) / 2); } /* Date of birth and Emirates ID: the half-field width */
@media (max-width: 599px) { .kid-fields .field:not(.wide) { max-width: none; } } /* phones: all four fields are as wide as Full name (#/invite is wider than 348 at 390) */

/* =================== Home addendum: back link, step links, sign-in shell, Log out, Home, My details =================== */
/* KYC back link, above the h2 */
.main .back { margin-bottom: var(--space-xl); }
/* sidebar steps that can be revisited are links wrapping the whole row */
.steps li.link { padding: 0; }
.steps li.link > a { display: flex; gap: var(--space-md); align-items: center; width: 100%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); }
.steps li.link > a:hover { background: var(--tint-hover); }
.steps li.link > a:hover small { color: var(--text-on-dark); } /* keeps the sub-line readable on the lighter hover background */
/* signing back in: "Welcome back", no Arabic sub-line, no steps */
.flow.signin .steps, .flow.signin .side .ar-sub { display: none; }

/* Home: head, memberships, plan, what you can book, academy invite */
#planLine { display: block; width: fit-content; max-width: 100%; white-space: normal; margin-top: var(--space-sm); cursor: default; } /* a status pill, not a control; display block so the segments are not flex items */
.home-block { margin-top: var(--space-xl); }
.mem { background: var(--mist); border-radius: var(--radius-xl); padding: var(--space-xl); }
.mem .plans { margin-top: var(--space-md); grid-template-columns: repeat(6, minmax(0, 1fr)); } /* equal columns at 1280 (the landing's price list is unchanged) */
.mem .plan .price small { display: block; margin: var(--space-2xs) 0 0; } /* "AED" under the numeral so a 4-digit price fits */
.home .plan h3 { font: var(--type-body-strong); color: inherit; }
.home .plan .btn { margin-top: auto; }
.plan.on { outline: var(--stroke-border-strong) solid var(--logo-blue); outline-offset: var(--space-2xs); }
.mem .foot { margin-top: var(--space-md); font: var(--type-body); color: var(--text); text-wrap: pretty; } /* pretty: no single word alone on the last line */
.plans .plan { container: plan / inline-size; }
@container plan (min-width: 192px) { .plans .plan .price small { display: inline; margin: 0 0 0 var(--space-xs); } } /* Julia, 6 Nov: "AED" beside the number on the landing and in the Portal wherever the card has room; below that it stays under the number. ds-allow: 190px is the widest price ("2,677.50 AED", about 171px) plus slack, measured against the card's content box */
.order { margin-top: var(--space-xl); background: var(--white); border-radius: var(--radius-lg); padding: var(--space-xl); display: flex; justify-content: space-between; align-items: center; gap: var(--space-xl); }
.order .pay { display: flex; align-items: center; gap: var(--space-sm); }
.order .pay .mt { margin-right: var(--space-xs); white-space: nowrap; }
.order .mt .nowrap { display: block; } /* designer, post-deploy pass 6 Nov: the dates and the price are two lines at every width, so no line ends in a stray dot */
.order[aria-busy="true"] .btn-primary[disabled] { background: var(--logo-blue); color: var(--white); cursor: progress; } /* "Paying…" stays readable at full colour; the button is still disabled (no double payment), Cancel and Choose go to the disabled colours */
.btn .spinner { width: var(--size-icon); height: var(--size-icon); border-width: 3px; /* ds-allow: spinner ring width */ border-color: var(--line-on-dark); border-top-color: var(--white); } /* the .btn .icon size, on a Primary button */
.home-book { margin-top: var(--space-3xl); }
.fam .invite-row { margin-top: var(--space-3xl); display: flex; justify-content: space-between; align-items: center; gap: var(--space-xl); }
.invite-row .grow { display: grid; gap: var(--space-sm); justify-items: start; }
.invite-row > .btn { margin-top: 0; flex: none; }
/* Client Portal "Add your children" (Family r2 2): the invite row's shape, white, no pill and no photo; a Secondary link and a text "Hide" */
.fam .kids-card .btn-row { display: flex; align-items: center; gap: var(--space-md); flex: none; margin-top: 0; }
.fam .invite-row.iv-card { margin-top: var(--space-md); } /* Family's invite card (Academy invites r1 2.4): md under the alert or the heading, md above the list or the empty panel (their own margin) */
.kids-card .linkbtn, .home-bk .linkbtn { padding-block: var(--space-2xs); }
.kids-card .linkbtn:hover, .home-bk .linkbtn:hover { text-decoration-thickness: var(--stroke-border-strong); }

/* My details */
.fam .agreed { font: var(--type-body); color: var(--text); margin-top: var(--space-md); }
.fam .agreed a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
#detAlert + .btn-row.end { margin-top: var(--space-md); }
/* My details r2 2: "Your data". A section of its own after the Save row (4xl above its divider, the others use 3xl), then a white list in the .bk-list recipe (grouped with it below) with two rows. */
.data-sec { margin-top: var(--space-4xl); }
.data-sec .alert { margin-top: var(--space-md); }
.data-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: var(--space-sm) var(--space-xl); align-items: center; padding: var(--space-md) var(--space-xl); box-shadow: inset 0 var(--stroke-divider) 0 var(--line); } /* 4px grid r1 §3 */
.data-row:first-child { box-shadow: none; }
.data-row .mt, .data-row .mt b { overflow-wrap: anywhere; } /* a long saved address wraps instead of widening the row */
.data-row .chip { justify-self: end; }
.data-row .linkbtn { margin-top: var(--space-2xs); padding-block: var(--space-2xs); }
.data-row .linkbtn:hover { text-decoration-thickness: var(--stroke-border-strong); }
.data-confirm { gap: 0; } /* spacing is set per part, below */
.data-what { list-style: disc; display: grid; gap: var(--space-2xs); padding-left: var(--space-xl); margin-top: var(--space-xs); font: var(--type-body); color: var(--text); }
.data-confirm p.mt { margin-top: var(--space-sm); font: var(--type-body-sm); color: var(--muted); } /* .confirm p would make it 15 ink */
.data-confirm .btn-row { margin-top: var(--space-md); }

/* =================== Organisation sign-up (Omar): .flow.org, type cards, compact uploads, portal stub, Demo controls =================== */
.flow.org .side .ar-sub { display: none; } /* organisation mode has no Arabic sub-line */
/* KYC tighter r1 2.1 / 2.3: the first block after the head, and an alert on top */
#view > :is(.stack, .drops, .idcard, .timeline, .sim, .otype) { margin-top: var(--space-xl); }
#view > .alert + h2 { margin-top: var(--space-xl); }
#view > .alert:first-child { margin-top: 0; }
@media (max-width: 599px) {
  #view > :is(.stack, .drops, .idcard, .timeline, .sim, .otype),
  #view > .lead + .alert { margin-top: var(--space-lg); }
}
.org-need ul { margin-top: var(--space-sm); padding-left: var(--space-xl); display: grid; gap: var(--space-xs); font: var(--type-body); color: var(--text); }
.prices .foot .foot-link { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }

/* step 2: type cards (a radio group; each card is a label around a visually hidden radio) */
.otype { margin-top: var(--space-2xl); display: grid; gap: var(--space-xs); } /* two .note lines where the Type cards were (KYC r3 4.2) */
.otype .note { margin-top: 0; }
.otype .note a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.panel .lead a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.idcard.compact { margin-top: var(--space-md); }

/* compact upload (a file row, not a preview): the empty drop and the filled row */
.field .flabel { display: block; font: var(--type-label); color: var(--text); margin-bottom: var(--gap-label); }
.drop.compact { min-height: auto; padding: calc(var(--space-lg) - var(--stroke-card)); }
.drop.compact .drop-links { display: flex; gap: var(--space-xl); justify-content: center; }
.drop.compact.filled { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); text-align: left; padding: calc(var(--space-md) - var(--stroke-card)) calc(var(--space-lg) - var(--stroke-card)); }
.drop.compact .nm { font: var(--type-body-strong); color: var(--ink); }
.drop.compact .mt { font: var(--type-body-sm); color: var(--muted); }
.field.error .drop { border-color: var(--red); }

/* organisation portal (stub): approved card and a plain list of next steps */
.orgcard { max-width: var(--size-measure); }

/* mobile code step: a half-width field with large, spaced digits; the links under it */
.codeinput { font: var(--type-h3); letter-spacing: var(--tracking-eyebrow); font-variant-numeric: tabular-nums; }
.signhelp { margin-top: var(--space-2xs); color: var(--muted); }
.signhelp a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.fields:has(.codeinput) { grid-template-columns: 1fr; max-width: 50%; }
.codelinks { display: flex; gap: var(--space-md); margin-top: var(--space-md); }
.codelinks .link { font: var(--type-label); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); padding: var(--space-2xs) 0; }
.alert + .fields { margin-top: var(--space-lg); }

/* organisation portal: contact row and the Coaches list (rows follow .fam-log) */
.orgcard .orgcontact { margin: var(--space-md) 0 0; }
.coaches { margin-top: var(--space-3xl); max-width: var(--size-measure); }
.coaches > .alert { margin-top: var(--space-md); }
.coaches > .empty { margin-top: var(--space-md); }
.coach-log li { grid-template-columns: 1fr max-content; align-items: center; }
.coach-log .cmain { display: grid; gap: var(--space-2xs); }
.coach-log .nm { font: var(--type-body-strong); color: var(--ink); }
.coach-log .mt { color: var(--muted); overflow-wrap: anywhere; }
.coach-log .cacts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); } /* the Children rows' actions: a second row, so three actions never squeeze the name (Academy invites r1 3.5) */
.people-list .coach-log li, .lanes-list .coach-log li, .staff-list .coach-log li { row-gap: var(--space-sm); }
.lanes-list .coach-log { background: none; border: 0; outline: 0; border-radius: 0; display: grid; gap: var(--space-md); } /* the Lanes tab: one card per set of lanes, apart, with the gap Fatma's separate cards have (.pay-list); Julia, 9 Nov: "separate cards, not joined" */
.lanes-list .coach-log > li { background: var(--white); border: 0; outline: var(--stroke-border) solid var(--line); outline-offset: calc(-1 * var(--stroke-border)); border-radius: var(--radius-lg); box-shadow: none; } /* 4px grid r1 §3 */
/* the people tab (people tab r2 3.6): one block per group, a heading and its kind, then its people; space between the blocks, no rule and no card around them */
.people-list .pgroup { margin-top: var(--space-2xl); }
.people-list .pgroup :is(h2, h3) { font: var(--type-h3); color: var(--ink); } /* the look "Children" had, stated here so the block does not depend on .fam */
.people-list .pgroup > .empty { margin-top: var(--space-md); }
.people-list .pgroup > .fam-log + .fam-log { margin-top: var(--space-lg); } /* Attendants r4: a group's lanes card and its people list read as two blocks */
.people-list .pgroup > .pg-add { margin-top: var(--space-lg); } /* Attendants r5: the Add slot sits between the lanes card and the people list, lg on both sides */
.people-list .pgroup > .pg-add + .fam-log { margin-top: var(--space-lg); }
.people-list .pg-add:has(.eform) + * { margin-top: var(--space-xl); } /* an open form ends xl above the list, not md */
.people-list .pgroup > .sub + .pgroup { margin-top: var(--space-lg); } /* Attendants r6: the No group sub-blocks, lg under the count, xl apart */
.people-list .pgroup .pgroup + .pgroup { margin-top: var(--space-xl); }
.people-list .pg-add > #h-atform:first-child { margin-top: 0; } /* the slot's own margin is the gap */
.people-list > .tabs { margin-top: var(--space-2xl); }
.people-list > .tabs + .pgroup { margin-top: var(--space-xl); }
.people-list .pgroup > .confirm { margin-top: var(--space-md); }
.people-list .pgroup > .note { margin-top: var(--space-md); } /* the hold note and the child note sit md under the list, as the Delete line does */
/* Landing yes 8 Nov, for links in alerts and field errors */
.err a { color: inherit; text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.people-list .eform > .kid-consent { margin-top: var(--space-xs); } /* the tick and its error are one grid item; .eform's md gap + xs = xl under the last field, as Family's */
.people-list .eform > .kid-consent + .btn-row { margin-top: var(--space-xs); } /* md + xs = xl, as .kid-form .eform .btn-row */
.people-list #h-sqform, .people-list #h-atform, .coaches #h-coachform { margin-top: var(--space-xl); } /* an open form says what it is: the opener's words, xl under the rows (people tab r3; Lanes request comfort r1 2.3) */
.section > .confirm { margin-top: var(--space-md); }
#ivf > .confirm { margin-top: var(--space-2xl); }
.coach-log .cside { display: flex; align-items: center; gap: var(--space-md); }
.lanes-list .coach-log .cside, .people-list .coach-log .cside, .staff-list .coach-log .cside { align-self: start; } /* a row of several lines keeps its chip at the top, beside the name */
.coach-log li.confirming { grid-template-columns: 1fr; gap: var(--space-sm); }
.coach-log .confirm { width: 100%; }

/* ds-on */

/* ds-off: demo controls, groups and status lines; only buttons that work right now are rendered */
.proto .box { overflow-y: auto; } /* its max-height is in the ds-off block below */
.proto .box .ttl { font-weight: 600; color: var(--ink); }
.proto .box .mt { font: var(--type-body-sm); color: var(--muted); }
.proto .box .gbox { display: grid; gap: var(--space-xs); border-top: 1px solid var(--line); padding-top: var(--space-xs); }
.proto .box .gbox .grp { margin-top: 0; }
.proto .box .stat { color: var(--ink); }
.proto .box .act { display: grid; gap: var(--space-2xs); }
.proto .box .hint { margin-top: 0; color: var(--muted); }
.proto .box .seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); }
.proto .box .seg button { text-align: center; }
.proto .box .seg button[aria-pressed="true"] { background: var(--logo-blue); color: var(--white); }
/* ds-on */
/* ds-off: demo chrome. The floating "D" button, its panel (the B2C / B2B / Admin system switcher on top, the Demo controls box below) and the switcher itself (Admin spec 5.1, 1.3; the switcher is identical to the Admin's dock in css/admin.css). Their size, stroke, type, motion and shadow tokens live only in admin-tokens.css, so the values are literals here until the member token layer has them. */
.demo-btn { display: grid; place-items: center; width: var(--size-avatar); height: var(--size-avatar); padding: 0; border: 0; border-radius: var(--radius-full); background: var(--orange); color: var(--ink); font: var(--type-label); cursor: pointer; }
/* Demo count badge r1 (Julia, 10 Nov): the number of "On this page" controls, top right of the closed button; 20 high on the D, 24 on the pill (below) */
.demo-btn { position: relative; }
.demo-count { position: absolute; top: calc(-1 * var(--space-xs)); right: calc(-1 * var(--space-xs)); display: grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; padding-inline: var(--space-2xs); border-radius: var(--radius-full); background: var(--highlight); color: var(--ink); font: var(--type-caption); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 var(--stroke-border-strong) var(--white); pointer-events: none; }
.demo-count[hidden], .demo-btn[aria-expanded="true"] .demo-count { display: none; } /* none at 0; the open box shows the group itself */
.proto { position: absolute; right: 0; bottom: 100%; margin-bottom: var(--space-xs); display: flex; flex-direction: column; gap: var(--space-xs); width: 260px; }
.proto[hidden] { display: none; } /* author display beats the hidden attribute */
.proto .switcher { align-self: flex-start; }
.switcher { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); background: var(--white); border-radius: var(--radius-md); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line), var(--shadow-sm); }
.switcher .sw { position: relative; display: grid; place-items: center; box-sizing: border-box; min-width: 48px; height: 48px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-md); background: var(--white); color: var(--logo-blue); box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); font: var(--type-body-strong); text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast); }
@media (hover: hover) {
  .switcher .sw:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--sky) 40%, var(--white)); }
}
.switcher .sw[aria-current="true"] { background: var(--logo-blue); color: var(--white); }
/* Which demo chrome shows (Julia, 30 Oct): below 1280 the "D" circle and its panel (as above); at 1280 and wider the orange "Demo controls" pill as it was before the D button,
   with the B2C / B2B / Admin switcher beside it ([switcher][pill], gap xs, both on one row in the corner) and the box opening above the pill, right edges aligned. Same elements and ids;
   placeDemo() in app.js moves #switcher out of the panel into the dock at 1280 and back below it. */
.demo-wrap { display: contents; } /* below 1280 the wrapper is invisible: the button and the panel position against the dock, as built */
.demo-word { display: none; }
@media (min-width: 1280px) {
  .demo-dock { display: flex; align-items: center; gap: var(--space-xs); }
  .demo-wrap { display: block; position: relative; } /* the box positions against the pill */
  .demo-btn { display: inline-flex; align-items: center; width: auto; height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-md); font: var(--type-body-sm); font-weight: 700; } /* as the Admin's pill, the same height as the switcher buttons (Julia, 2 Nov and 3 Nov) */
  .demo-btn:focus-visible { box-shadow: none; } /* the ring is the single :focus-visible rule at the top, nothing added */
  .demo-d { display: none; }
  .demo-word { display: inline; }
  .demo-count { min-width: 24px; height: 24px; font: var(--type-label); font-weight: 700; }
  .proto { position: static; display: block; width: auto; margin-bottom: 0; } /* the panel only wraps the box here */
  .proto[hidden] { display: none; }
  .proto .box { position: absolute; bottom: 100%; right: 0; margin-bottom: var(--space-xs); width: 260px; max-height: calc(100vh - var(--space-5xl)); }
}
/* ds-on */

/* =================== Lane booking: #/swim, Your bookings, the Swimming card link =================== */
/* #/swim sits under the Client Portal, so that header link is underlined (aria-current="true") */
.mlinks a[aria-current="true"] { text-decoration-line: underline; }

/* the blue SWIM band: full-bleed, continuous with the member header; content sits on the .wrap edge */
.swim-band { background: var(--logo-blue); padding: var(--space-xl) 0 var(--space-2xl); }
.swim-band .back, .host-page .back { display: flex; width: fit-content; color: var(--white); margin-bottom: var(--space-xl); }
.swim-band .word { display: block; font: var(--type-word); text-transform: uppercase; color: var(--white); } /* the landing tile word's values (.tile .word) */
.swim-band h1 { font: var(--type-lead); color: var(--white); margin-top: var(--space-sm); max-width: var(--size-measure); }
/* time-of-day pills: one native radio group; "Any time" first, hours on line 2 */
.tods { margin-top: var(--space-xl); }
/* #/pass person switcher (Family r2 2A.5, A19b 8 Nov): the shared Pill toggle (.pt-group / .pt-opt, 56 high) in one line, a native radio group in row 0 of the band; below 360 the pills take sm side padding so three names stay on one row */
.who-pick { padding: 0; margin: 0 0 var(--space-md); }
.swim .swim-main, #orgView .swim-main { padding-top: var(--space-2xl); padding-bottom: 0; } /* was 4xl under the white head; the band sits above now. The bottom padding is on .swim-tail (below) */
.swim-tail { padding-bottom: var(--space-5xl); } /* what .fam gave .swim-main; the tail also holds #swim-lenStatus, so the live region is never part of the redrawn #swimBody (Booking length r6 3) */
.swim-sec { margin-top: var(--space-2xl); }
.la-season { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-xl); margin-top: 0; } /* the lane request page: Season starts and Season length on one row (Lanes request comfort r1 1.10) */
/* Group and Pool in the band are dropdowns (Julia, 6 Nov: "make those 2 a dropdown", "could be a lot of groups"): the field's select on white, as high as the pills beside it */
.swim-band .opt-select select { display: block; width: auto; max-width: 100%; min-width: calc(var(--size-measure) / 3); height: var(--size-control-h); border: var(--stroke-border) solid var(--white); border-radius: var(--radius-md); padding-block: 0; padding-inline-start: var(--space-md); font: var(--type-body); color: var(--ink); background: var(--white); }
@media (max-width: 599px) { .swim-band .opt-select select { width: 100%; min-width: 0; } }
.swim-band .opt-select select:hover { background: var(--hover-tint); border-color: var(--hover-tint); } /* designer 0c.1: the Light hover the white "on" pill uses */
@media (max-width: 599px) { #orgView .days .day { min-height: var(--size-touch); align-content: center; } } /* designer 0c.6: a chip with the weekday only stays 44 high */
.la-season .pt-opt { min-height: var(--size-field-h); padding-block: 0; } /* Julia, 6 Nov 12:03: the Season length pills are as high as the Season starts select */
.la-season legend { margin-bottom: var(--gap-label); } /* the same gap under "Season length" as under the field label "Season starts" */
.la-season .field { min-width: calc((var(--size-measure) - var(--space-xl)) / 2); } /* the select is as wide as a half field (the kid forms' rule): shrunk to its words, the chevron would touch them */
#orgView .lens { display: flex; flex-wrap: wrap; } /* the band's pill groups wrap (Pool, and five session lengths); #/swim's three pills keep the grid */
@media (max-width: 359px) { #orgView .lens > .pt-opt { padding-inline: var(--space-sm); } } /* One pill toggle r1, build review 6 Nov: below 360 the five Length pills wrap 3 + 2 as at 390; on this flex row the padding sets the pill's width, so the rule stops at 359 */
@media (max-width: 599px) { .la-season .field { min-width: 0; flex: 1 1 100%; } } /* the select is full width, the length pills wrap below it */
@media (max-width: 599px) { .la-season .pt-opt { padding-inline: var(--space-sm); } } /* evening pass 6 Nov: the three Season length pills fit one row at 360 and 390 (the band's phone pills use the same padding) */
#orgView.la-page { padding: 0; } /* the request page draws a full-bleed band, then its own .wrap.fam.swim-main: the member pages' shared top and bottom stay off */
.swim-main > .swim-sec:first-child { margin-top: 0; }
.swim-sec.confirm-wrap { margin-top: var(--space-xl); }
/* while "Booking…" / "Paying…" shows: a progress cursor and no hover rings */
.swim.working :is(.day, .slot, .lane, .band, .pt-opt, .payrow) { cursor: progress; }
.swim.working :is(.day, .slot, .lane, .band) { box-shadow: none; }
.swim.working .pt-opt:not(:has(input:checked)):hover { background: none; box-shadow: inset 0 0 0 var(--stroke-border) var(--white); }
.swim.working .pt-opt:has(input:checked):hover { background: var(--white); }
.swim.working .lane .lc { box-shadow: none; }

/* day strip: a radio group; each card is a label around a visually hidden radio */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.day { display: grid; align-content: start; justify-items: center; gap: var(--space-2xs); padding: calc(var(--space-md) - var(--stroke-card)); border-radius: var(--radius-md); border: var(--stroke-card) solid transparent; /* 4px grid r1: padding minus stroke */ background: var(--mist); color: var(--logo-blue); text-align: center; cursor: pointer; }
.day .d1 { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.day .d2 { font: var(--type-h3); font-variant-numeric: tabular-nums; }
.day .d3 { display: block; white-space: nowrap; min-height: 1lh; /* one caption line, reserved so the cards stay level */ font: var(--type-caption); font-variant-numeric: tabular-nums; } /* always one line, even when empty, so the cards stay level */
.day .d3 :is(.gdot, .nring, .ycheck) { display: inline-block; vertical-align: middle; margin-right: var(--space-2xs); } /* the mark is part of the text run */
.nring { width: var(--size-dot); height: var(--size-dot); box-sizing: border-box; border: var(--stroke-border) solid var(--red); border-radius: var(--radius-full); flex: none; }
.day:has(input:checked) .nring { border-color: currentColor; }
@media (forced-colors: active) { .day .gdot { background: CanvasText; } }
.day:hover { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.day.booked { background: var(--white); border-color: var(--line); color: var(--ink); } /* hers: not bookable, so no mist tint */
.day.booked:hover { box-shadow: none; border-color: var(--logo-blue); }
.day.off { background: var(--white); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.day:has(input:checked) { background: var(--logo-blue); border-color: transparent; color: var(--white); box-shadow: none; }
.day:has(input:checked) .d3 { color: var(--text-on-dark); }
.day:has(input:checked):hover { background: var(--navy); box-shadow: none; }
/* hidden inputs: the ring sits on the label, never :focus-within (it reads as selected). A lane's ring sits inside the lane and stays white: blue on the pool's blue water would not show */
:is(.day, .slot, .payrow, .lane):has(input:focus-visible) { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }

/* times: one grid, three bands that share the label column */
.bands { display: grid; grid-template-columns: max-content 1fr; column-gap: var(--space-xl); row-gap: var(--space-md); align-items: center; margin-top: var(--space-md); }
.band { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; }
.chips { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xs); }
.slot { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(var(--space-sm) - var(--stroke-card)) calc(var(--space-xs) - var(--stroke-card)); border-radius: var(--radius-md); border: var(--stroke-card) solid transparent; /* 4px grid r1: padding minus stroke */ background: var(--mist); color: var(--logo-blue); text-align: center; cursor: pointer; }
.slot .t { font: var(--type-body-strong); font-variant-numeric: tabular-nums; }
.slot .f { font: var(--type-caption); }
.slot:hover { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.slot.off { background: var(--white); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; padding-block: calc(var(--space-2xs) - var(--stroke-card)); } /* 4 + 20 + 16 + 4 + 3 = 47 px, the same height as a free chip */
.slot.off.full { background: color-mix(in srgb, var(--sky) 50%, var(--white)); border-color: transparent; } /* Julia 5 Nov: a Full time reads as fully booked, the busy fill at 100% (muted on it 4.79:1); Closed stays white */
.slot.off.full .t { text-decoration: line-through; } /* Julia 5 Nov: a Full time is struck through, as a taken lane's number (.lane.off .n) */
.slot:has(input:checked) { background: var(--logo-blue); color: var(--white); box-shadow: none; }
.slot:has(input:checked):hover { background: var(--navy); }
/* Swim busy times r1 4: the chip is the bar. A pale fill runs left to right behind a free time (--booked is the share of lanes booked); only background-image, on the chip's own background colours, so hover, picked and the touch rules keep working */
.bk { background-image: linear-gradient(to right, color-mix(in srgb, var(--sky) 50%, var(--white)) var(--booked), transparent 0); background-repeat: no-repeat; } /* no-repeat: the gradient would otherwise tile into the transparent border and draw a thin sky line at the right edge */
.slot.bk:has(input:checked), .slot.bk:has(input:checked):hover { background-image: linear-gradient(to right, var(--tint-current) var(--booked), transparent 0); background-repeat: no-repeat; } /* .slot.bk, not .bk: the touch rule below 1279 (.slot:has(input:checked):hover, later in the file) would wipe it with its shorthand */

/* alerts above the confirm panel and in place of the times */
.swim-info { max-width: var(--size-measure); margin-top: var(--space-md); }
.swim-info :is(a, .linkbtn) { display: block; margin-top: var(--space-2xs); font: var(--type-body-strong); color: inherit; text-align: left; text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }

/* confirm panel: the same mist surface as .idcard and .fam-aside, so its alerts are white */
.swim-panel { max-width: var(--size-measure); background: var(--mist); border-radius: var(--radius-lg); padding: var(--space-xl); display: grid; gap: var(--space-md); }
.swim-panel > .alert { margin-top: 0; background: var(--white); }
.swim-panel .pgroup { display: grid; gap: var(--space-xs); } /* heading + where; the pay group below has its own gap */
.swim-panel .pgroup.pay { gap: var(--space-sm); }
.where { display: flex; align-items: baseline; gap: var(--space-sm); font: var(--type-body); color: var(--ink); }
.linkbtn { font: var(--type-label); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); padding: 0; }
.linkbtn[disabled] { color: var(--muted); cursor: not-allowed; text-decoration: none; } /* no underline: a disabled link must not read as one (Court, Add a player at 4 players) */
.lane-row { display: grid; gap: var(--space-sm); border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-md) - var(--stroke-divider)); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
/* "Change lane" is the pool: ten lanes side by side in water, an orange and white rope between each pair */
.pool { --focus: var(--white); display: grid; grid-template-columns: repeat(var(--lanes, 10), minmax(0, 1fr)); gap: 0; background: var(--blue); border-radius: var(--radius-md); overflow: hidden; }
.lane { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--space-sm) var(--space-xs) var(--space-4xl); text-align: center; cursor: pointer; } /* the open water below the chip reads as a lane */
.lane + .lane::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--space-2xs) / -2); width: var(--space-2xs); pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--orange) 0 var(--space-xs), var(--white) var(--space-xs) var(--space-md)); }
.lane .lc { align-self: stretch; display: flex; flex-direction: column; align-items: center; padding: var(--space-xs) 0; border-radius: var(--radius-md); background: var(--white); color: var(--logo-blue); }
.lane .n { font: var(--type-body-strong); font-variant-numeric: tabular-nums; }
.lane .f { font: var(--type-caption); min-height: 1lh; /* one caption line, reserved so every chip is the same height */ } /* always rendered, so every chip is the same height */
.lane:not(.off):hover .lc { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.lane:has(input:checked) { background: var(--logo-blue); }
.lane:has(input:checked):hover { background: var(--navy); }
.lane:has(input:checked):hover .lc { box-shadow: none; }
.lane.off { cursor: not-allowed; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--navy) 40%, transparent) 0 var(--space-2xs), transparent var(--space-2xs) var(--space-xs)); }
.lane.off .lc { background: var(--mist); color: var(--muted); }
.lane.off .n { text-decoration: line-through; }
.lane:has(input:focus-visible) { outline-offset: calc(-1 * var(--space-2xs)); }
.swim-panel .pay-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); }
.swim-panel .cta { display: grid; justify-items: start; gap: var(--space-xs); }
.btn[aria-disabled="true"] { cursor: progress; } /* a busy Primary stays at full colour and keeps focus (no [disabled], no opacity) */
/* plans inline: "Choose how to pay" opens between the payment line and the Primary */
.paychoose { display: grid; gap: var(--space-sm); border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-md) - var(--stroke-divider)); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.swim-panel .paytitle { font: var(--type-body-strong); color: var(--ink); }
.paylist { display: grid; grid-template-columns: auto max-content max-content 1fr; row-gap: var(--space-xs); }
.payrow { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: var(--space-md); align-items: center; padding: var(--space-md); border-radius: var(--radius-md); background: var(--white); cursor: pointer; }
/* Radio (Figma 164:115): 24 px with a 12 px dot; the focus ring stays on the row */
.payrow input { appearance: none; flex: none; margin: 0; width: var(--size-choice); height: var(--size-choice); border: var(--stroke-border) solid var(--field-border); border-radius: var(--radius-full); background: var(--white); cursor: inherit; }
.payrow input:focus-visible { outline: none; }
.payrow input:checked { border-color: var(--logo-blue); background: radial-gradient(circle closest-side, var(--logo-blue) calc(var(--size-dot-lg) / 2 - 0.5px), transparent calc(var(--size-dot-lg) / 2)), var(--white); }
.payrow input[aria-invalid="true"]:not(:checked) { border-color: var(--red); }
.payrow input:disabled { background: var(--mist); border-color: var(--line); }
@media (hover: hover) { .payrow input:not(:checked, :disabled, [aria-invalid="true"]):hover { border-color: var(--field-border-hover); } }
.payrow .pn { font: var(--type-body-strong); color: var(--ink); }
.payrow .pr { font: var(--type-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.payrow .mt { text-align: right; }
.payrow:hover { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.payrow:has(input:checked) { box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--logo-blue); }

/* Client Portal: Your bookings (a white list in the Family log pattern) and the date block */
.home-bk { margin-top: var(--space-xl); }
.home-block.after-bk { margin-top: var(--space-3xl); }
.bk-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.bk-list, .data-list { list-style: none; background: var(--white); border: 0; outline: var(--stroke-border) solid var(--line); outline-offset: calc(-1 * var(--stroke-border)); /* 4px grid r1 §3 */ border-radius: var(--radius-lg); margin-top: var(--space-md); }
.bk-row { display: grid; grid-template-columns: max-content 1fr max-content; gap: var(--space-md) var(--space-xl); align-items: center; padding: var(--space-md) var(--space-xl); box-shadow: inset 0 var(--stroke-divider) 0 var(--line); } /* 4px grid r1 §3 */
.bk-row:first-child { box-shadow: none; }
.bk-date { display: grid; justify-items: center; align-content: center; width: var(--size-control-h); height: var(--size-control-h); padding: var(--space-xs); border-radius: var(--radius-md); background: var(--mist); } /* one style, square: 20 + 20 + xs + xs = 56 (Compact Portal top r1 8) */
.bk-date :is(b, span) { display: block; font: var(--type-label); color: var(--logo-blue); text-transform: uppercase; }
.bk-confirm, .data-confirm { grid-column: 1 / -1; }
.bk-confirm p, .data-confirm p { justify-self: start; } /* the focus ring hugs the message instead of spanning the row */
.bk-more { display: inline-block; margin-top: var(--space-md); font: var(--type-label); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
/* Client Portal "Next booking": the two links under the row. Bookings (#/bookings, spec Bookings and account menu r3 2): the shared row's chip, the empty panel, Show more, Payments. */
.bk-links { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin-top: var(--space-md); }
.bk-links .bk-more { margin-top: 0; }
.bk-page .panel { margin-bottom: var(--space-xl); }
.bk-row .chip { justify-self: end; }
/* Compact Portal top r1 3.3: the Booked block is one .alert.ok row; the date rectangle is white on mist like an alert inside a mist panel */
.bk-note { margin-top: 0; background: none; border: 0; outline: 0; border-radius: 0; max-width: var(--size-measure); }
.home-bk .alert.bk-row { margin-top: 0; }
.bk-note .bk-row { column-gap: var(--space-md); }
.bk-note .bk-date { background: var(--white); }
.bk-lab { font: var(--type-body); }
.bk-note .bk-links { margin-top: 0; gap: var(--space-md); align-items: center; }
#h-bk + .alert { margin-top: 0; max-width: var(--size-measure); }
#bkAlert + .bk-note { margin-top: var(--space-sm); }
.panel + .home-book { margin-top: var(--space-xl); }
/* Cancel and rebook Portal r1 7: placement only. Inside a group sm < md; between sections 3xl (2xl on phones). The offers are the Booked-today row recipe plus a Secondary button. */
.home-bk + .home-bk { margin-top: var(--space-3xl); }
#cxSec { max-width: var(--size-measure); } /* the Portal notice has the Booked today block's width at every width (Bookings keeps its column) */
.cx-item { margin-top: var(--space-md); }
.cx-item + .cx-item { margin-top: var(--space-2xl); }
.cx-item > .alert:first-child { margin-top: 0; }
.cx-item > .alert + .alert { margin-top: var(--space-md); } /* the "now full" line sits under the sentence like the other in-group gaps */
.cx-label { margin-top: var(--space-md); }
.cx-item .bk-list { margin-top: var(--space-sm); }
.bk-offer { grid-template-columns: max-content minmax(0, 1fr) max-content; }
#swimRebook { margin-top: 0; } /* the rebooking line is the first thing in .swim-main (r1 6.2) */
@media (max-width: 599px) {
  .home-bk + .home-bk { margin-top: var(--space-2xl); }
  .bk-offer { grid-template-columns: max-content minmax(0, 1fr); }
  .bk-offer .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
.bk-row:focus-visible { border-radius: var(--radius-sm); }
.more-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); }
.pay-list { list-style: none; display: grid; gap: var(--space-md); }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: var(--space-md); row-gap: var(--space-2xs); border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-md) - var(--stroke-divider)); } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.pay-name { grid-area: 1 / 1; } .pay-meta { grid-area: 2 / 1; } .pay-amt { grid-area: 1 / 2; } .pay-vat { grid-area: 2 / 2; } /* DOM order is item, line 2, total, VAT (the reading order); the grid puts the total and VAT on the right */
.pay-amt, .pay-vat { text-align: right; font-variant-numeric: tabular-nums; }
.pay-row:focus-visible { border-radius: var(--radius-sm); }
/* Bookings below 1280 (spec Bookings and account menu r3 9.1; the 1280 body floor is the mobile round's, so these only show once it is lowered). 1024-1279 keeps two columns. */
@media (max-width: 1023px) {
  .bk-page .fam-grid { grid-template-columns: minmax(0, 1fr); } /* one column: Payments after the bookings (the row gap is the 3xl rule below) */
  .bk-page .bk-row { padding: var(--space-md); }
  .bk-page .bk-confirm .btn-row { flex-direction: column; align-items: stretch; } /* the confirm's buttons stack */
}
@media (max-width: 599px) {
  .bk-page .bk-row:has(> .chip) { grid-template-columns: max-content minmax(0, 1fr); row-gap: var(--space-xs); } /* Bookings small fixes r1 1.2: every status chip goes under the row text and never wraps */
  .bk-page .bk-row:has(> .chip) > .bk-date { grid-row: 1 / span 2; }
  .bk-page .bk-row > .chip { grid-column: 2; justify-self: start; }
  .pay-row { display: flex; flex-wrap: wrap; column-gap: var(--space-xs); row-gap: var(--space-2xs); } /* item; "Paid … · Card"; then the total and the VAT on one line, wrapping allowed */
  .pay-name, .pay-meta { flex: 0 0 100%; }
  .pay-amt, .pay-vat { text-align: left; }
  .bk-page .bk-more, .bk-page .linkbtn, .home-bk .linkbtn { display: inline-flex; align-items: center; min-height: var(--size-avatar); }
  .home-bk .linkbtn { min-width: var(--size-avatar); justify-content: flex-end; } /* a 44 x 44 target; the word sits at the right edge */
  .home-bk .bk-head + * { margin-top: var(--space-xs); }
  .panel + .home-book { margin-top: var(--space-lg); }
  .bk-note .bk-row { grid-template-columns: max-content minmax(0, 1fr); row-gap: var(--space-2xs); }
  .bk-note .bk-date { grid-row: 1 / span 2; align-self: start; }
  .bk-note .bk-links { grid-column: 2; }
  .bk-note .linkbtn { justify-content: flex-start; }
}

/* Client Portal "What you can book": the landing's photo tiles. .tile, .tile img, a.tile img (zoom), .tile::after, .tile .stack/.word/.sub/.peek, .tag, .tile .more and its hover rules are shared as they are
   (see the landing section above); only what the portal adds is here, under .ptile / .ptiles. If the Landing session edits .tile, these follow by design. */
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3xl); margin-top: var(--space-md); }
.ptile::before { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 64%, transparent), transparent); } /* a bottom scrim: swim.jpg's white fabric needs it */
.ptile { display: flex; flex-direction: column; } /* the peek is in the flow, so the stack can't run under it; place-items on .tile still centres the stack across */
.ptile .stack { margin-top: auto; } /* sits on top of the peek; also replaces the stray .stack margin */
.ptile .peek { position: static; align-self: stretch; margin-top: var(--space-md); flex-direction: column; align-items: flex-start; gap: var(--space-xs); } /* the tag above the text, in the flow under the word */
.ptile .tag { display: inline-flex; align-items: center; gap: var(--space-2xs); } /* room for the green dot */
.ptile:not(a):is(:hover, :focus-visible) :is(.stack, .peek) { opacity: 1; } /* Gym and Badminton don't react: nothing to reveal */
.ptile .more .rt { font: var(--type-title); text-transform: uppercase; }
.ptile .more .btn { align-self: flex-start; margin-top: var(--space-md); }

/* =================== Entry pass: the Client Portal card and #/pass (the only mobile-friendly route) =================== */
.qr { display: block; width: 100%; height: auto; forced-color-adjust: none; } /* modules ink on white, quiet zone inside the SVG */
.qr-bg { fill: var(--white); }
.qr-dots { fill: var(--ink); }
/* #/pass: "Open on your phone" swaps the gate QR for the phone QR (Tighter Portal landing r1 2.3). Kept from the old Portal card: .pass-phone and .pp-qr (Family's .kid-phone uses them). */
.pass-phone { margin-top: var(--space-xl); padding-top: calc(var(--space-xl) - var(--stroke-divider)); border-top: var(--stroke-divider) solid var(--line); display: grid; grid-template-columns: 240px minmax(0, 1fr); /* ds-allow: the phone QR, 240 */ gap: var(--space-2xl); align-items: center; } /* 4px grid r1 §3: the divider takes its stroke off the padding */
.pass-phone .pp-qr { width: 240px; height: 240px; } /* ds-allow: the phone QR, 240 */
.pass-sheet .pass-phone { margin-top: 0; padding-top: 0; border-top: 0; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-md); text-align: center; }
.pass-sheet #passToggle { margin-top: var(--space-md); }
@media (min-width: 600px) { .pass-sheet.pp-on :is(.pass-qr, .pass-code) { display: none; } }
@media (max-width: 599px) { #passToggle, #passPhone { display: none; } }
/* #/pass: no 1280 floor; the compact bar replaces the member header below 1280 and in a link copy */
body.pass-page { min-width: 0; }
.pass-bar { display: none; background: var(--logo-blue); justify-content: space-between; align-items: center;
  padding: max(var(--space-sm), env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) 0 max(var(--space-md), env(safe-area-inset-left)); }
.pass-bar img { width: 66px; height: 42px; } /* ds-allow: logo, compact bar, half of 132 x 84 */
@media (min-width: 600px) and (max-width: 1279px) { .pass-bar { padding-bottom: var(--space-sm); } }
.pass-bar a { color: var(--white); font: var(--type-label); padding: var(--space-sm) var(--space-xs); text-underline-offset: var(--space-xs); text-decoration-thickness: var(--stroke-border-strong); border-radius: var(--radius-sm); }
.pass-bar a:hover { text-decoration-line: underline; }
.pass-wrap { max-width: calc(var(--size-page-max) + 2 * var(--space-3xl)); margin: 0 auto; padding: var(--space-2xl) var(--space-3xl); }
.pass-back { margin-bottom: var(--space-xl); }
.pass { max-width: var(--size-side-w); margin: 0 auto; border: 0; outline: var(--stroke-border) solid var(--line); outline-offset: calc(-1 * var(--stroke-border)); border-radius: var(--radius-xl); overflow: hidden; background: var(--logo-blue); } /* 4px grid r1 §3 */
.pass-band { background: var(--logo-blue); color: var(--white); padding: var(--space-md) max(var(--space-md), env(safe-area-inset-right)) var(--space-3xl) max(var(--space-md), env(safe-area-inset-left)); }
.pass-row1 { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.pass-band .kicker { color: var(--sky); }
.pass-row2 { margin-top: var(--space-md); display: flex; align-items: center; gap: var(--space-md); }
.pass .avatar { width: var(--size-control-h); height: var(--size-control-h); background: var(--white); color: var(--logo-blue); font: var(--type-h3); }
.pass-name { font: var(--type-h3); color: var(--white); overflow-wrap: anywhere; }
.pass-line { margin-top: var(--space-2xs); font: var(--type-body-sm); color: var(--text-on-dark); }
.pass-sheet { position: relative; background: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: calc(-1 * var(--space-xl));
  padding: var(--space-xl) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-2xl), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left)); }
.pass-code { margin-top: var(--space-xs); text-align: center; font: var(--type-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.pass-code b { font: var(--type-body-strong); }
.pass-next { margin-top: var(--space-2xl); }
.pass-next .bk-list { margin-top: var(--space-sm); }
.pass .bk-row { grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md); }
.pass-none-bk { margin-top: var(--space-sm); font: var(--type-body); color: var(--text); }
.pass-book { margin-top: 0; padding-block: var(--space-sm); }
.pass-sheet a:focus-visible { border-radius: var(--radius-sm); }
.pass-rule { margin-top: var(--space-md); font: var(--type-body); color: var(--text); } /* the guest copy's booking line, under the code: body text like .pass-none-bk, so it never reads like the Updated timestamp */
.pass-upd { margin-top: var(--space-2xl); }
.pass-none { background: var(--mist); border-radius: var(--radius-lg); padding: var(--space-xl); display: grid; gap: var(--space-md); justify-items: start; }
.pass-none p { font: var(--type-body); color: var(--ink); }
@media (min-width: 1280px) { body.pass-page:not(.pass-copy) .pass-wrap { padding-top: var(--space-2xl); padding-bottom: var(--space-4xl); } body.pass-page:not(.pass-copy) .pass-back { display: none; } }
@media (max-width: 1279px) {
  body.pass-page .mhead { display: none; } /* the compact bar replaces the member header; the "D" button stays (Julia, 30 Oct: visible always on phones; Mobile adaptation r1 10.2) */
  .pass-bar { display: flex; }
  .pass-back { display: none; }
}
body.pass-copy .mhead { display: none; }
body.pass-copy .pass-bar { display: flex; }
@media (max-width: 599px) {
  .pass-wrap { padding: 0; }
  .pass { max-width: none; border: 0; outline: 0; border-radius: 0; }
  .pass-none .btn { width: 100%; justify-content: center; }
}
@media (max-width: 359px) { .who-pick > .pt-opt { padding-inline: var(--space-sm); } }

/* =====================================================================================================================================================================
   Mobile adaptation r1 (30 Oct, spec Mobile adaptation r1.md, with its 9 and 10): ONE block, appended at the end. Written only as max-width queries (and the touch query), so 1280 and wider is
   untouched; the plain rules at the top are for new markup that only exists or shows below 1280. The only edits above this block are the .menu-btn query (1024 to 1280) and the 44px/svh additions here.
   ===================================================================================================================================================================== */

/* ---- new markup, inert at 1280 and wider ---- */
.t-touch { display: none; } /* the touch copy of the upload drop's line; the touch query shows it */
.help-foot { display: none; margin: var(--space-2xl) 0 0; padding-top: calc(var(--space-xl) - var(--stroke-divider)); border-top: var(--stroke-divider) solid var(--line); max-width: var(--size-measure); font: var(--type-body-sm); color: var(--muted); } /* the KYC help line under the panel (shown at 1023 and below) */
.help-foot a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
html:has(.mmenu[open]) { overflow: hidden; }
/* the menu / drawer: a native modal dialog, a drawer on the right (full width on a phone). The top and bottom are fixed (no vh), so it follows the collapsing toolbars. */
.mmenu { position: fixed; inset: 0 0 0 auto; width: min(100%, var(--size-side-w)); max-width: none; height: auto; max-height: none; margin: 0; border: 0; border-radius: 0; background: var(--logo-blue); color: var(--white); --focus: var(--white);
  padding: 0 max(var(--space-md), env(safe-area-inset-right)) max(var(--space-2xl), calc(env(safe-area-inset-bottom) + var(--space-md))) max(var(--space-md), env(safe-area-inset-left)); overflow-y: auto; overscroll-behavior: contain; }
.mmenu::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.mmenu[open] { animation: mm-in var(--dur-fast) ease-out; }
@keyframes mm-in { from { opacity: 0; transform: translateX(var(--space-xs)); } }
.mm-top { display: flex; align-items: center; gap: var(--space-xs); padding: calc(var(--space-md) + env(safe-area-inset-top)) 0 var(--space-md); }
.mm-logo { margin-right: auto; display: block; padding-block: 1px; /* ds-allow: 42 + 1 + 1 = the 44 touch target */ } /* 66 x 42 logo; 1px above and below makes the link a 44 high target */
.mm-logo img { width: 66px; height: 42px; } /* ds-allow: logo, compact: half of 132 x 84 (the pass bar's precedent) */
.mm-top .hdr-pass { margin: 0; }
.mmenu :is(a, button):focus-visible { border-radius: var(--radius-sm); }
.mm-nav a { display: block; padding-block: var(--space-md); font: var(--type-h3); color: var(--white); border-top: var(--stroke-divider) solid color-mix(in srgb, var(--white) 25%, transparent); text-underline-offset: var(--space-xs); text-decoration-thickness: var(--stroke-border-strong); }
.mm-nav a:last-child { border-bottom: var(--stroke-divider) solid color-mix(in srgb, var(--white) 25%, transparent); }
.mm-nav + .mm-sep + .mm-nav a:first-child { border-top: 0; }
.mm-nav a[aria-current] { text-decoration-line: underline; }
.mm-nav a:focus-visible { outline-offset: calc(-1 * var(--space-2xs)); }
.mm-sep { height: 0; }
.mm-who { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xl); font: var(--type-h3); color: var(--white); }
.mmenu .avatar { background: var(--white); color: var(--logo-blue); }
.mm-lang { margin-top: var(--space-xl); }
.mm-acct { margin-top: var(--space-2xl); display: grid; gap: var(--space-sm); }
.mm-acct .btn { justify-content: center; }

@media (max-width: 1279px) {
  body { min-width: 0; }
  html:has(#landing:not([hidden])) { scroll-padding-top: var(--space-6xl); } /* anchors and focused contact fields land below the sticky bar */
  .nav .links, .nav .ghost { display: none; } /* the links live in the menu below 1280 */
  /* hero: the lockup is fluid (88 at 1279, so the step at the boundary is seamless; 11.6 em is the Arabic line plus about 3%) */
  .hero { --hero-ar: min(88px, calc((100vw - 2 * var(--space-3xl) - 2 * var(--space-2xl)) / 11.6)); }
  .hero .lockup .ar { font-size: var(--hero-ar); }
  .hero h1 { font-size: calc(var(--hero-ar) / 1.63); line-height: 1; } /* ds-allow: 4px grid r1 §1, fluid type takes line-height 1 */
  .prices .plans, .mem .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* viewport units: svh, never dvh (it relayouts on every toolbar change) */
  .flow { min-height: 100svh; }
  .side { height: 100svh; }
  .main { padding: var(--space-3xl) var(--space-3xl); }
  /* ds-off: demo controls */
  .proto { width: min(320px, calc(100vw - 2 * var(--space-md))); }
  .proto .box { max-height: calc(100svh - var(--actbar-h, 0px) - var(--space-5xl)); }
  .proto .box button { min-height: 44px; }
  /* ds-on */
  /* the D button: always visible, clear of the home bar and the notch; MOVED (never hidden) while the keyboard is open */
  .demo-dock { right: max(var(--space-md), calc(env(safe-area-inset-right) + var(--space-md))); bottom: max(var(--space-md), calc(env(safe-area-inset-bottom) + var(--space-md))); }
  html.has-actbar .demo-dock { bottom: calc(var(--actbar-h, 0px) + var(--space-sm)); } /* above the KYC bottom bar */
  /* ds-off: demo controls */
  html.kb-open .proto { bottom: auto; top: 100%; margin: var(--space-xs) 0 0; } /* the panel opens downwards from the top-right button */
  html.kb-open .proto .box { max-height: calc(var(--kb-h, 100svh) - var(--space-5xl)); }
  .demo-dock[data-kb-left] .proto { right: auto; left: 0; }
  /* ds-on */
}

@media (max-width: 1023px) {
  /* contact: the blue triangle sits below the text so nothing sits on it (phones and tablets) */
  .sec.contact { padding-bottom: calc(var(--space-6xl) * 2); }
  .contact::after { width: 100%; height: calc(var(--space-6xl) * 2); }
  /* landing */
  .big-ar { font-size: min(200px, calc((100vw - 2 * var(--space-3xl)) / 3.6)); } /* ds-allow: the fluid display size, tablet */
  .about .grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact .grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xl); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3xl); }
  .hero .ctas, .sec-actions, .host .row, .prices .foot { flex-wrap: wrap; }
  .ptiles { grid-template-columns: minmax(0, 1fr); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fam-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  :is(#famView, #bkView) .fam-grid { row-gap: var(--space-3xl); } /* Check-ins to Drop-off equals Children to Check-ins (.fam-sec + .fam-sec) */
  .nav .logo img { border-radius: var(--radius-sm); }
  /* KYC: the sidebar becomes a top band */
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .side { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm) var(--space-md); align-items: center;
    padding: calc(var(--space-md) + env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) var(--space-lg) max(var(--space-md), env(safe-area-inset-left)); }
  .side .logo { grid-row: 1; grid-column: 1; justify-self: start; display: block; }
  .side .logo img { width: 66px; height: 42px; } /* ds-allow: logo, compact: half of 132 x 84 */
  .side .back { grid-row: 1; grid-column: 2; min-height: var(--size-touch); align-items: center; margin-top: 0; }
  .side > div { grid-row: 2; grid-column: 1 / -1; }
  .side h1 { font-size: 26px; line-height: 32px; } /* ds-allow: the tablet band's title size (phone type scale, open question) */
  .side .steps { grid-row: 3; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
  .steps li small { display: none; }
  .side .help { display: none; }
  .help-foot { display: block; }
  /* member header: [logo] ... [Entry pass] [☰]; the page links, the account disclosure and My details are in the drawer */
  .mhead { padding: env(safe-area-inset-top) max(var(--space-md), env(safe-area-inset-right)) var(--space-sm) max(var(--space-md), env(safe-area-inset-left)); }
  .mhead .nav { height: auto; padding-block: var(--space-sm) 0; gap: var(--space-xs); }
  .mhead .nav .logo { margin-top: 0; padding: 1px 0; /* ds-allow: 42 + 1 + 1 = the 44 touch target */ background: none; border-radius: 0; align-self: center; }
  .mhead .nav .logo img { width: 66px; height: 42px; border-radius: 0; } /* ds-allow: logo, compact */
  .mlinks.is-member { justify-content: flex-end; gap: var(--space-xs); }
  .mlinks .hdr-pass { margin: 0; padding-inline: var(--space-md); gap: var(--space-xs); } /* the compact Light Button (Bookings r3 1A.3) */
  .mlinks > .menu-btn { flex: none; }
    .swim-band .back { min-height: var(--size-touch); align-items: center; }
  /* touch targets: 44 high */
  :is(.back, .bk-more, .remove, .linkbtn, .codelinks .link, .drop .link, .yr-link) { min-height: var(--size-touch); display: inline-flex; align-items: center; }
  /* the bottom bar: the KYC bar's rules (moved here from the 599 block, Booking length r6 9A), shared with #/swim, which builds its bar below 1024 */
  .actbar { position: sticky; bottom: 0; z-index: var(--z-actbar); margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm); background: var(--white); border-top: var(--stroke-divider) solid var(--line);
    padding: var(--space-sm) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-sm), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left)); }
  .actbar.solo { grid-template-columns: minmax(0, 1fr); }
  .actbar .btn { justify-content: center; }
  html.has-actbar { scroll-padding-bottom: calc(var(--actbar-h, 0px) + var(--space-md)); } /* a focused field, row or alert lands above the bar (WCAG 2.2 SC 2.4.11) */
  html.capture .actbar { position: static; }
}

/* phones in landscape (a 390 high screen is shorter than the hero's 500 floor): the hero takes the phone layout, the fluid tablet type stays */
@media (max-width: 599px), (max-width: 1023px) and (max-height: 500px) {
  .hero { height: auto; }
  .hero .content { position: static; padding: var(--space-4xl) var(--space-xl) var(--space-xl); }
  .hero .lockup .ar { white-space: normal; margin-bottom: var(--space-xl); }
  .hero h1 { white-space: normal; }
  .hero .lede { max-width: none; margin-top: var(--space-xl); }
  .hero .lede br { display: none; } /* phones wrap the lede freely: a forced break after "world:" would strand it on a short line */
  .hero .ctas { margin-top: var(--space-2xl); }
  .hero > .hero-pause { top: var(--space-xl); right: var(--space-xl); bottom: auto; }
}

@media (max-width: 599px) {
  /* gutters and safe areas */
  .wrap { padding-inline: max(var(--space-md), env(safe-area-inset-left), env(safe-area-inset-right)); }
  .site-head { padding: env(safe-area-inset-top) max(var(--space-md), env(safe-area-inset-right)) 0 max(var(--space-md), env(safe-area-inset-left)); }
  .first { padding: 0 max(var(--space-md), env(safe-area-inset-right)) var(--space-2xl) max(var(--space-md), env(safe-area-inset-left)); }
  .ph-hide { display: none; }
  /* landing header: no logo tab, the white logo at 66 x 42; the sticky bar loses "Sign in" (it is in the menu) */
  .nav .logo { margin-top: 0; padding: 1px 0; /* ds-allow: 42 + 1 + 1 = the 44 touch target */ background: none; border-radius: 0; align-self: center; }
  .nav .logo img { width: 66px; height: 42px; border-radius: 0; } /* ds-allow: logo, compact: half of 132 x 84 (the pass bar's precedent) */
  .sticky { gap: var(--space-sm); padding: calc(var(--space-md) + env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) var(--space-md) var(--space-md); }
  .sticky > a:not(.btn) { display: none; }
  /* below 360 "Become a member" and the menu button leave no room for the whole logo (Julia, 4 Nov: "hide the logo"); public header only */
  @media (max-width: 359px) { .site-head .nav .logo { display: none; } }
  /* type scale */
  /* the phone type scale is not part of the member system yet (Design system is desktop-first): kept as it was, each line allowed; open question for Julia */
  .hero .lockup .ar { font-size: 40px; line-height: 1.5; } /* ds-allow: phone type scale */
  .hero h1 { font-size: 26px; line-height: 28px; } /* ds-allow: phone type scale */
  .sec h2, .host h1, .allev-head h1, .panel h2, .fam .panel h1, .sim-num { font-size: 34px; line-height: 40px; } /* ds-allow: phone type scale */
  .about h2 { font-size: 26px; line-height: 32px; } /* ds-allow: phone type scale */
  .big-en { font-size: 40px; line-height: 1; } /* ds-allow: phone type scale */
  .big-ar { font-size: min(200px, calc((100vw - 2 * var(--space-md)) / 3.6)); } /* ds-allow: the fluid display size, phone */
  .events .tile .title { font-size: 26px; } /* ds-allow: phone type scale */
  .cards .tile .title { font: var(--type-title); }
  .side h1 { font: var(--type-h3); }
  /* spacing */
  .sec { padding-block: var(--space-4xl); }
  .sec-head { margin-bottom: var(--space-xl); } /* the column layout now starts at 1023 (review fix 13) */
  .tiles { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); margin-top: var(--space-xl); }
  .events, .ptiles { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); grid-auto-rows: auto; }
  .about .grid { gap: var(--space-2xl); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lives li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .home-book, .home-block.after-bk { margin-top: var(--space-2xl); }
  .home-bk, .home-block { margin-top: var(--space-lg); }
  .bk-page .panel { margin-bottom: var(--space-lg); }
  .mem { padding: var(--space-md); }
  .fam { padding-top: var(--space-2xl); padding-bottom: var(--space-4xl); }
  footer { padding: var(--space-3xl) 0 calc(var(--space-2xl) + env(safe-area-inset-bottom)); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .foot-cols ul { gap: 0; }
  .foot-cols a { display: flex; align-items: center; padding-block: var(--space-sm); }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: var(--space-lg); margin-top: var(--space-3xl); }
  .foot-bar .legal { flex: none; }
  /* word tiles: one column, every tile 190 high; tiles with a peek grow to fit their content */
  .tiles .tile { height: var(--size-tile-sm-h); }
  .tiles .tile.sm.span2 { grid-column: auto; }
  .tile.sm .title { font-size: min(30px, calc(100cqw / (var(--nm, var(--n, 1)) * 0.75))); white-space: normal; line-height: 1; } /* ds-allow: the title's size fits its tile (title cap 30); 4px grid r1 §1: fluid, line-height 1 */
  .tile:has(.peek) { height: auto; min-height: var(--size-tile-sm-h); display: flex; flex-direction: column; align-items: center; }
  .tile:has(.peek) .stack { margin-block: auto; }
  .tile .peek { position: static; align-self: stretch; margin-top: var(--space-xl); }
  .cards .tile { height: var(--size-tile-h); }
  /* price list and portal plans: 2 columns; the row gap clears the "Most Chosen" badge (it sits on top of its card, 36 high) */
  #prices .plans { gap: var(--space-3xl) var(--space-md); }
  .prices .plans, .mem .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mem .plans { gap: var(--space-3xl) var(--space-sm); }
  .mem .plan { padding: calc(var(--space-xl) - var(--stroke-card)) calc(var(--space-md) - var(--stroke-card)); }
  /* contact: one column, the blue triangle sits below the text so nothing sits on it */
  .zform { grid-template-columns: minmax(0, 1fr); }
  /* public pages */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fac-grid { grid-template-columns: minmax(0, 1fr); }
  .allev-head, .yr { grid-template-columns: minmax(0, 1fr); }
  .yr-head { position: static; }
  .ev-rows li { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
  /* KYC: no blue strip; one minimal white row with the steps as numbers (the logo chip where there are none), Back and the primary action in a bottom bar */
  .flow { grid-template-rows: auto minmax(0, 1fr); }
  .side { display: flex; justify-content: center; background: var(--white); color: var(--ink); border-bottom: var(--stroke-divider) solid var(--line); padding: calc(var(--space-sm) + env(safe-area-inset-top)) var(--space-md) var(--space-sm); gap: 0; }
  .side > div, .side .back, .side .help, .side .logo { display: none; }
  .flow.signin .side .logo, .flow.nosteps .side .logo { display: block; background: var(--logo-blue); border-radius: var(--radius-sm); }
  .flow.nosteps .side .steps { display: none; }
  .side .steps { display: flex; justify-content: center; gap: var(--space-md); }
  .steps li, .steps li.link { padding: 0; background: none; }
  .steps li > span:not(.num), .steps li > a > span:not(.num) { display: none; }
  .steps .num { width: calc(var(--size-marker) - var(--space-2xs)); height: calc(var(--size-marker) - var(--space-2xs)); border-color: var(--line); color: var(--muted); } /* the 28 step circle */
  .steps .current { background: none; }
  .steps .current .num { background: var(--logo-blue); border-color: var(--logo-blue); color: var(--white); }
  .steps .done .num { background: var(--green-done); border-color: var(--green-done); color: var(--white); }
  /* KYC r3 2.2: the choice screen (#/join step 1) has no bottom bar; "← Back to website" sits at the start of the step row, the same row phone landscape uses */
  .flow.back-top .side { flex-direction: row; align-items: center; justify-content: space-between; }
  .flow.back-top .side .back { display: inline-flex; order: -1; color: var(--logo-blue); min-height: var(--size-touch); align-items: center; margin-top: 0; }
  .main { padding: 0; display: flex; flex-direction: column; }
  .main:not(:has(.actbar)) { padding-bottom: var(--space-3xl); }
  .panel { max-width: none; padding: var(--space-xl) max(var(--space-md), env(safe-area-inset-right)) var(--space-2xl) max(var(--space-md), env(safe-area-inset-left)); }
  .help-foot { margin: 0 max(var(--space-md), env(safe-area-inset-right)) var(--space-2xl) max(var(--space-md), env(safe-area-inset-left)); }
  html.has-actbar .main .back { display: none; } /* Back is in the bar */
  .btn-row.end[data-bar] { display: none; } /* the bar carries the primary action */
  .sim { background: none; padding: 0; }
  .sim-card { width: 100%; box-shadow: none; outline: var(--stroke-border) solid var(--line); outline-offset: calc(-1 * var(--stroke-border)); } /* 4px grid r1 §3: an inside outline, so the card keeps its grid height */
  .drops, .fields, .uploads { grid-template-columns: minmax(0, 1fr); }
  .sim-cancel { min-height: var(--size-touch); display: inline-flex; align-items: center; gap: var(--space-2xs); } /* the 44 touch target */
  .fields:has(.codeinput) { max-width: none; }
  .idcard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idcard .top { flex-wrap: wrap; }
  .idcard .top .chip { margin-left: 0; }
  .codelinks { flex-wrap: wrap; }
  /* buttons that end a form, card or panel: full width, stacked, primary first */
  :is(.btn-row.end, .order .pay, .confirm .btn-row, .fam .btn-row) { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  :is(.btn-row.end, .order .pay, .confirm .btn-row, .fam .btn-row, .invite-row, .option, .fam-aside, .swim-panel .cta, .pass-none) > .btn,
  :is(.confirm .btn-row, .fam .btn-row, .order .pay) .btn, .option .btn, .fam-aside .btn, .swim-panel .cta .btn, .pass-none .btn, .coach-log .cacts .btn { width: 100%; justify-content: center; justify-self: stretch; }
  .order { flex-direction: column; align-items: stretch; gap: var(--space-md); }
  .order .pay .mt { margin-right: 0; white-space: normal; }
  .fam .invite-row { flex-direction: column; align-items: stretch; margin-top: var(--space-2xl); }
  .bk-row { gap: var(--space-md); padding: var(--space-md); }
  /* member pages */
  .child-card .top, .child-card .foot, .esc .l1, .esc .l3 { flex-wrap: wrap; }
  .child-card .foot > .mt { padding-block: 0; } /* the row wraps here, so the text needs no padding to meet Remove child's centre line (Academy adds a child r1, Portal render review C1) */
  .fam-log li { padding: var(--space-md); gap: var(--space-md); }
  .coach-log li { grid-template-columns: minmax(0, 1fr); }
  .coach-log .cside { justify-content: space-between; }
  .coach-log .cside .linkbtn:only-child { margin-inline-start: auto; }
  .coach-log .cacts { row-gap: 0; }
  .coach-log .cacts > .btn + .remove { width: 100%; justify-content: center; } /* only a Decline right after the Primary goes full width; elsewhere it shares the link line (invite rows r1, designer ruling) */
  .coach-log .cacts:has(> .btn) { row-gap: var(--space-sm); } /* stacked Buttons need space between them; link rows keep 0 */
  .people-list .pgroup { margin-top: var(--space-xl); }
  .people-list > .tabs { margin-top: var(--space-xl); }
  .people-list > .tabs + .pgroup { margin-top: var(--space-lg); }
  .people-list .coach-log .cacts:not(:has(> .btn)), .lanes-list .coach-log .cacts:not(:has(> .btn)), .staff-list .coach-log .cacts:not(:has(> .btn)) { margin-top: calc(-1 * var(--space-sm)); } /* a text link's 44 target adds sm above its words: the row's sm gap is taken back, so "Change group" sits sm under the row above */
  .check { padding-block: var(--space-sm); }
  .zform input:not(.vh) { min-height: var(--size-touch); } /* 44 touch target */
  .side .logo, .mm-logo { padding-block: 1px; /* ds-allow: 42 + 1 + 1 = the 44 touch target */ } /* 66 x 42 logo; the link is a 44 high target */
  /* #/swim */
  .tods { display: grid; grid-template-columns: 1fr 1fr; }
  :is(#swimView, #courtView) .lens > .pt-opt, .tods > .pt-opt { padding-inline: var(--space-sm); } /* in a grid the column sets the pill's width: this only lowers the minimum, so three Length pills fit at 320 */
  .swim-band h1 { font: var(--type-body); }
  .opt-label { margin-bottom: var(--space-2xs); }
  /* the day picker (Booking length r6 9B): the seven days in ONE row of compact chips, no scrolling: weekday, date number, and a mark slot that shows an exception only; the words are in .day-line under the row */
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2xs); }
  .day { padding: var(--space-xs) 0; }
  .day .d1 { letter-spacing: .08em; } /* ds-allow: phone day-card tracking */
  .day .d2 { font-size: 18px; line-height: 24px; } /* ds-allow: phone day-card numeral */
  .day .d3 { display: flex; align-items: center; justify-content: center; height: var(--space-xs); min-height: 0; line-height: var(--space-xs); } /* the 8 px slot is always reserved, so the chips stay level */
  .day .d3 :is(.gdot, .nring, .ycheck) { margin-right: 0; }
  .day:has(input:focus-visible) { position: relative; z-index: 1; } /* the ring paints over its 4 px neighbours */
  .day-line { margin-top: var(--space-sm); font: var(--type-body-sm); color: var(--ink); }
  .day-line :is(.gdot, .nring, .ycheck) { display: inline-block; vertical-align: middle; margin-right: var(--space-2xs); }
  .bands { grid-template-columns: minmax(0, 1fr); }
  .band { display: block; }
  .band > .mt { display: block; margin-bottom: var(--space-xs); }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swim-panel { padding: var(--space-md); max-width: none; }
  .where { flex-wrap: wrap; }
  #laPanel .cta > .btn-row { justify-self: stretch; } /* the academy's Send request and Cancel sit in one row inside her .cta; the row takes the panel's width so Cancel fills it, as her buttons do */
  .paylist { grid-template-columns: minmax(0, 1fr); }
  .payrow { grid-column: auto; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r n m" ". p p"; column-gap: var(--space-sm); row-gap: var(--space-2xs); }
  .payrow input { grid-area: r; } .payrow .pn { grid-area: n; } .payrow .mt { grid-area: m; } .payrow .pr { grid-area: p; }
  .pool { grid-template-columns: minmax(0, 1fr); } /* the pool is turned 90 degrees: ten lanes across 311 px would be 31 each, narrower than the word "Taken" */
  .lane { flex-direction: row; align-items: center; padding: var(--space-xs) var(--space-4xl) var(--space-xs) var(--space-xs); }
  .lane .lc { flex-direction: row; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); align-self: center; }
  .lane + .lane::before { top: calc(var(--space-2xs) / -2); bottom: auto; left: 0; right: 0; width: auto; height: var(--space-2xs);
    background: repeating-linear-gradient(to right, var(--orange) 0 var(--space-xs), var(--white) var(--space-xs) var(--space-md)); }
  .swim-tail { padding-bottom: var(--space-4xl); }
  /* toasts: wrap, clear of the D button */
  #toasts { left: 0; right: 0; transform: none; padding-inline: var(--space-md); bottom: calc(var(--space-4xl) + env(safe-area-inset-bottom)); }
  #toasts .toast { max-width: calc(100vw - 2 * var(--space-md)); border-radius: var(--radius-lg); text-align: left; white-space: normal; }
}

@media (max-width: 389px) {
  .prices .plans, .mem .plans { grid-template-columns: minmax(0, 1fr); } /* with VAT "2,677.50" does not fit a 2-column card below 390 (designer review, 6 Nov); was 359 for "3,999" */
}

/* ---- touch: tap replaces hover (any touch screen below 1280) ---- */
@media (hover: none) and (max-width: 1279px) {
  .t-mouse { display: none; }
  .t-touch { display: inline; }
  .btn, .tile, .day, .slot, .payrow, .pt-opt, .lane .lc { -webkit-tap-highlight-color: transparent; }
  /* the 10 non-link word tiles show their word and their text together (no reveal to find) */
  .tiles .tile[data-soon] { height: auto; min-height: var(--size-tile-h); display: flex; flex-direction: column; padding: 0; }
  .tiles .tile.sm[data-soon] { min-height: var(--size-tile-sm-h); }
  .tiles .tile[data-soon] .stack { flex: 1; justify-content: center; padding: var(--space-2xl) var(--space-xl); }
  .tiles .tile[data-soon] .word { font-size: min(68px, calc((100cqw - 2 * var(--space-xl)) / (var(--n, 1) * 0.75))); } /* ds-allow: the word fits its tile; the tile has no padding here, so the stack's own padding comes off the container */
  .tiles .tile.sm[data-soon] .title { font-size: min(30px, calc((100cqw - 2 * var(--space-xl)) / (var(--nm, var(--n, 1)) * 0.75))); line-height: 1; } /* ds-allow: the title fits its tile; 4px grid r1 §1: fluid, line-height 1 */
  .tiles .tile[data-soon] .more { position: static; opacity: 1; padding: var(--space-lg) var(--space-xl) var(--space-xl); }
  .tiles .tile[data-soon] .more h3 { display: none; } /* the word above already says it */
  .tile:has(.more):is(:hover, :focus-visible) :is(.stack, .peek) { opacity: 1; }
  a.tile:hover img, a.tile:focus-visible img { transform: none; }
  a.tile:not([data-soon]):hover .more { opacity: 0; } /* C: the activity tiles keep their text on touch; a link tile: a tap follows the link, no reveal and no sticky hover */
  .cards a.tile .more { position: absolute; inset: auto 0 0 0; opacity: 1; padding: var(--space-lg) var(--space-xl) var(--space-xl); } /* the Host cards: their text as a fixed bottom band */
  .cards .tile .stack { display: none; }
  /* stuck hover states go back to rest; the hover look moves to :active */
  .btn-primary:not([disabled]):hover { background: var(--logo-blue); box-shadow: none; }
  .btn-primary:not([disabled]):active { background: var(--navy); }
  .btn-danger:not([disabled]):hover { background: var(--red); box-shadow: none; }
  .btn-danger:not([disabled]):active { background: color-mix(in srgb, var(--red) 80%, var(--ink)); }
  .btn-secondary:not([disabled]):hover { background: none; box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
  .btn-secondary:not([disabled]):active { background: var(--mist); }
  .btn-light:not([disabled]):hover { background: var(--white); box-shadow: none; }
  .btn-light-outline:not([disabled]):hover { background: none; box-shadow: inset 0 0 0 var(--stroke-border) var(--white); color: var(--white); }
  .btn-light-outline:not([disabled]):active { background: var(--tint-current); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--white); }
  .btn-uaepass:hover { background: var(--uaepass-black); }
  .field input:hover:not(:focus), .field select:hover:not(:focus) { border-color: var(--field-border); }
  .day:hover:not(:has(input:checked)), .slot:hover:not(:has(input:checked)), .payrow:hover:not(:has(input:checked)) { box-shadow: none; }
  .pt-opt:has(input:checked):hover { background: var(--white); } /* a tapped choice keeps its selected fill, not the hover */
  .pt-opt.on-light:has(input:checked):hover { background: var(--logo-blue); }
  .pt-opt:hover:not(:has(input:checked)) { background: none; box-shadow: inset 0 0 0 var(--stroke-border) var(--white); }
  .pt-opt.on-light:hover:not(:has(input:checked)) { background: none; box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
  .day.booked:hover { border-color: var(--line); }
  .day:has(input:checked):hover { background: var(--logo-blue); }
  .slot:has(input:checked):hover { background: var(--logo-blue); }
  .lane:not(.off):hover .lc { box-shadow: none; }
  .lane:has(input:checked):hover { background: var(--logo-blue); }
  .day:active:not(:has(input:checked)), .slot:not(.off):active:not(:has(input:checked)), .payrow:active { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
  .lane:not(.off):active .lc { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
}

/* =====================================================================================================================================================================
   Mobile adaptation r1, review fixes (30 Oct): still max-width queries only, and plain rules only for markup that is new. Numbers are the review items.
   ===================================================================================================================================================================== */

/* 18: text stays the size the page sets when the phone is turned (desktop browsers ignore it) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 11: a value that never breaks across lines (times, phone numbers, the masked Emirates ID) */
.nowrap { white-space: nowrap; }
/* 2: a file that can't be opened shows its error inside the drop; a PDF is a file row (the org form's pattern), never an <img> */
.drop.bad { border-color: var(--red); }
.drop .err { position: relative; z-index: 2; }
.drop.compact.filled { min-height: 0; }

@media (max-width: 1279px) {
  /* ds-off: demo controls */
  /* 6: the switcher is the first row inside the panel box (one box, a divider under the switcher) */
  .proto { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-md); gap: var(--space-sm); box-shadow: 0 10px 30px color-mix(in srgb, var(--navy) 15%, transparent); max-height: calc(100svh - var(--actbar-h, 0px) - var(--space-5xl)); }
  .proto .switcher { align-self: stretch; background: none; box-shadow: none; border-radius: 0; padding: 0 0 var(--space-sm); border-bottom: 1px solid var(--line); }
  .proto .box { background: none; border: 0; border-radius: 0; box-shadow: none; padding: var(--stroke-focus); margin: calc(-1 * var(--stroke-focus)); max-height: none; min-height: 0; } /* room for the focus ring: this box scrolls, so it would clip it */
  html.kb-open .proto { max-height: calc(var(--kb-h, 100svh) - var(--space-5xl)); }
  html.kb-open .proto .box { max-height: none; }
  /* ds-on */
  /* 8: focus rings in the menu sit inside the drawer's gutter */
  .mmenu nav a { padding-inline: var(--space-sm); margin-inline: calc(-1 * var(--space-sm)); }
  /* 17: the drawer's second group is set apart from the first */
  .mm-nav + .mm-sep + .mm-nav { margin-top: var(--space-xl); }
  .mm-logo img { object-fit: contain; }
}

@media (max-width: 1023px) {
  /* 3: the phone logo is never cropped (the landing's phone logo rule) */
  .side .logo img, .mhead .nav .logo img { object-fit: contain; }
  /* 4: the member header row is 88 high like the drawer and the landing bar; the Entry pass button is one rule in the header and the drawer, so nothing moves when the drawer opens */
  .mhead { padding: 0; }
  .mhead .nav { height: auto; padding: calc(var(--space-md) + env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) var(--space-md) max(var(--space-md), env(safe-area-inset-left)); }
  .mlinks .hdr-pass, .mm-top .hdr-pass { margin: 0; padding-inline: var(--space-md); gap: var(--space-xs); }
  /* 13 */
  .sec-head { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
}

@media (max-width: 599px) { /* F: prices before the About band, phones only (from 600 up nothing moves) */
  #landingHome { display: flex; flex-direction: column; }
  #landingHome > .first { order: 0; } #landingHome > #prices { order: 1; } #landingHome > .about { order: 2; } #landingHome > #upcoming-events { order: 3; } #landingHome > #contact { order: 4; }
}
@media (max-width: 599px) {
  /* 1: the focused field clears the action bar above the keyboard (js: clearBar()) */
  html.kb-open { scroll-padding-bottom: calc(var(--actbar-h, 0px) + var(--space-md)); scroll-behavior: auto; } /* instant: a smooth focus scroll would land after clearBar() and put the field back under the bar */
  /* 3: the sign-in / done chip keeps its logo-blue box and the logo sits inside it */
  .nav .logo img { object-fit: contain; }
  .flow.signin .side .logo img, .flow.nosteps .side .logo img { padding: var(--space-2xs); }
  /* 5: member page heads sit on the 16 px gutter, not on a second left edge */
  :is(#homeView, #bkView, #famView, #detView, #orgView) .panel { padding: 0; }
  /* 7, 12, 16 */
  .ev-rows .t { white-space: normal; overflow: visible; text-overflow: clip; }
  .allev-head, .yr { row-gap: var(--space-md); }
  .yr h2 { margin-bottom: var(--space-md); }
  .sec h2 br { display: none; }
  /* 9: a lone Back keeps its own width */
  .actbar.solo > #actBack { justify-self: start; }
  /* 10: the status chip (Waiting for…, Confirmed, Not confirmed) goes on its own line under the name */
  .child-card .top .chip { flex-basis: 100%; margin-left: 0; order: 3; }
  /* 11: the Emirates ID item takes the whole row of the ID card */
  .idcard dl > div:first-child { grid-column: 1 / -1; }
  /* 15: the status dot sits on the first line of a two-line "Open all week..." */
  .hero .status { align-items: flex-start; }
  .hero .status .ring { margin-top: calc((1lh - var(--size-dot-lg)) / 2); } /* centred on the first line */
}

/* KYC in phone landscape (Julia: "numbers at the top, minimal"): the tall blue band gives way to one white row, Back at the start and the steps as numbers, as on phones; no bottom bar here, so Back stays in the row */
@media (max-width: 1023px) and (max-height: 500px) {
  .side { display: flex; flex-direction: row; align-items: center; justify-content: space-between; background: var(--white); color: var(--ink); border-bottom: var(--stroke-divider) solid var(--line);
    padding: var(--space-sm) max(var(--space-md), env(safe-area-inset-right)) var(--space-sm) max(var(--space-md), env(safe-area-inset-left)); gap: var(--space-md); }
  .side > div, .side .help, .side .logo { display: none; }
  .side .back { order: -1; color: var(--logo-blue); min-height: var(--size-touch); align-items: center; margin-top: 0; }
  .flow.signin .side .logo, .flow.nosteps .side .logo { display: block; background: var(--logo-blue); border-radius: var(--radius-sm); }
  .flow.nosteps .side .steps { display: none; }
  .side .steps { display: flex; gap: var(--space-md); }
  .steps li, .steps li.link { padding: 0; background: none; }
  .steps li > span:not(.num), .steps li > a > span:not(.num) { display: none; }
  .steps .num { width: calc(var(--size-marker) - var(--space-2xs)); height: calc(var(--size-marker) - var(--space-2xs)); border-color: var(--line); color: var(--muted); } /* the 28 step circle */
  .steps .current { background: none; }
  .steps .current .num { background: var(--logo-blue); border-color: var(--logo-blue); color: var(--white); }
  .steps .done .num { background: var(--green-done); border-color: var(--green-done); color: var(--white); }
}

/* =====================================================================================================================================================================
   Family r2 (30 Oct, Specs/Family r2 - parent adds children.md section 9): max-width queries only. The 599 button and field rules (.fam .btn-row, .fields, .option .btn) already cover the
   forms and the portal card; these are the card's own parts.
   ===================================================================================================================================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .ptile .peek > span:last-child { min-height: 2lh; } /* three columns: every tile keeps room for two lines, so chips, words and Arabic stay level across the row */
  .child-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Academy · Group, then Next session: three columns would be about 127 wide in the 464 px main column */
}
@media (max-width: 599px) {
  .child-card dl { grid-template-columns: minmax(0, 1fr); }
  .child-card > .btn { width: 100%; justify-content: center; justify-self: stretch; } /* "Change club or academy" */
  .kid-pass, .kid-share { flex-direction: column; align-items: stretch; }
  .kid-pass .btn { width: 100%; justify-content: center; }
  .share-status, .share-status:empty { margin-left: 0; }
  .share-status:not(:empty) { margin-top: var(--space-xs); } /* the status sits under the button when the row stacks */
  .kid-show { align-self: flex-start; }
  .fam .kids-card .btn-row { align-items: stretch; } /* the card's row is centred on desktop; stacked, "Hide" takes the full width (a 44 x 44 target) */
  .kids-card .linkbtn { justify-content: center; } /* "Hide" centred under the full-width button, with the 44 high target */
}

/* My details r2 (Specs/My details r2.md section 9): max-width query only. The ID card's Emirates ID cell is already a full row at 599 (Mobile r1 item 11) and the confirm's buttons already stack (.confirm .btn-row).
   Each "Your data" row becomes one column: the text, then the action. "Request a copy" is full width; "Delete account" stays left with its 44 high target (the touch rule); the chip sits under the line. */
@media (max-width: 599px) {
  .data-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md); }
  .data-row > .btn { width: 100%; justify-content: center; }
  .data-row > .remove, .data-row > .chip { justify-self: start; }
}

/* =====================================================================================================================================================================
   Booking length r6 (31 Oct, Specs/Booking length r6.md): the Length pills (section 2), the length-change message (3), the booking bar below 1024 (9A). The one-row day picker (9B) is in the 599 block above.
   Tokens only, no new ones. The bar IS the KYC bar (#actbar, .actbar, has-actbar, --actbar-h; its base rules are in the 1023 block above): only .bar-sum and the 600-1023 row are added here, scoped to #swimView.
   ===================================================================================================================================================================== */
/* 2: the options row in the blue band, two labelled groups side by side */
.swim-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md) var(--space-2xl); margin-top: var(--space-xl); }
.swim-opts .tods { margin-top: 0; }
.opt-label { display: block; margin-bottom: var(--space-xs); font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-on-dark); } /* the .step-kicker type, on the blue */
/* the Length pills (.pt-opt in .pt-group): three equal columns */
.lens { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
/* 3: the length-change message lives in a live region that is always on the page, empty until it has something to say (no padding, background or height); its look comes with the alert classes */
:is(#swim-lenStatus, #la-lenStatus).swim-info { margin-top: var(--space-xl); }

@media (max-width: 1023px) {
  .swim-opts { flex-direction: column; align-items: flex-start; } /* Length on row 1, Time of day on row 2 */
  /* 9A: the bar. Hidden: the panel's own Primary (its .cta fine print stays in the panel). One row from 600: the summary at the start, the Primary at its own width at the end. */
  #swimView #bookBtn[data-bar], #courtView #c-bookBtn[data-bar], #orgView :is(#laSend, #laSave)[data-bar] { display: none; }
  :is(#swimView, #courtView, #orgView) .actbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs) var(--space-md);
    padding: var(--space-sm) max(var(--space-3xl), env(safe-area-inset-right)) max(var(--space-sm), env(safe-area-inset-bottom)) max(var(--space-3xl), env(safe-area-inset-left)); }
  :is(#swimView, #courtView, #orgView) .actbar .btn-block { width: auto; }
  .bar-sum { margin: 0; font: var(--type-label); font-variant-numeric: tabular-nums; color: var(--ink); text-wrap: balance; }
  /* nothing hides behind the bar (WCAG 2.2 SC 2.4.11): a focused hidden radio (chip, day, lane) or plan radio is a small box at the start of its row, so the row's own height goes into its scroll margin; the page-wide scroll-padding clears the bar itself */
  html.has-actbar :is(#swimView, #courtView, #orgView) :is(input.vh, .payrow input) { scroll-margin-bottom: var(--space-4xl); }
}
@media (max-width: 599px) {
  .swim-opts { align-items: stretch; gap: var(--space-md); }
  .optgroup { min-width: 0; }
  /* the bar below 600: two rows, the summary above the Primary at full width (about 108 high) */
  :is(#swimView, #courtView, #orgView) .actbar { grid-template-columns: minmax(0, 1fr); padding-inline: max(var(--space-md), env(safe-area-inset-left)) max(var(--space-md), env(safe-area-inset-right)); }
  :is(#swimView, #courtView, #orgView) .actbar .btn-block { width: 100%; }
  :is(#swimView, #courtView, #orgView) .bar-sum { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  :is(#swimView, #courtView, #orgView) .actbar .btn { padding-inline: var(--space-md); } /* "Pay AED 4,198.95 and book" fits the 288 px a 320 screen leaves */
}

/* =====================================================================================================================================================================
   Swim side by side r1 and Swim busy times r1 (Specs/Swim side by side and busy times build note r1.md). #/swim and #/court (Court side by side r1): the split, times and panel rules reach both; #swimPanel, #swimIdle, .pool, .lane and .bk stay #/swim's, and #/court draws none of them.
   Tokens only, no new ones. The split query is the same string as splitMq in app.js: (min-width: 1024px), (min-width: 768px) and (min-height: 501px).
   ===================================================================================================================================================================== */
/* the heading rows: a label with a hint or key beside it */
:is(.lane-head, .time-head) { display: flex; align-items: baseline; gap: var(--space-sm); }
.time-head { flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-md); }
.bk-key { display: flex; align-items: center; gap: var(--space-xs); }
.bk-swatch { flex: none; width: var(--space-2xl); height: var(--space-md); border-radius: var(--radius-xs); background-color: var(--mist); }
@media (forced-colors: active) { .bk-key { display: none; } } /* forced colours drop gradients, so the fill and this key go together; times and names stay */
/* the pool before a time: the drawing stays so nothing jumps on the first pick, but with no availability there is nothing to report */
.pool.idle .lane { cursor: default; }
.pool.idle .lc { background: var(--mist); color: var(--muted); }
.pool.idle .lane:hover .lc, .pool.idle .lane:active .lc { box-shadow: none; }

/* 768 and wider (not a phone in landscape): times left, confirm panel right */
@media (min-width: 1024px), (min-width: 768px) and (min-height: 501px) {
  .swim-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); /* ds-allow: phi split, the 440 / 720 ratio of 1280 carried below it */ column-gap: var(--space-md); align-items: start; margin-top: var(--space-2xl); }
  .swim-split > .swim-sec { margin-top: 0; }
  .swim-times :is(.bands, .time-head) { max-width: var(--size-measure); }
  .swim-times .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swim-split .swim-panel { padding: var(--space-md); }
  .swim-split .lane { padding: var(--space-sm) var(--space-2xs) var(--space-2xl); }
  .swim-split .pool { grid-template-columns: repeat(var(--lanes, 10), minmax(0, 1fr)); }
  :is(#swim-lenStatus, #la-lenStatus, #c-lenStatus).swim-info { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* ds-allow: the .vh declarations: the message sits below both columns, so it is announced but the eye reads its copy in #swimIdle */
  #swimPanel :is(#laneRow, .lane input, .payrow input) { scroll-margin-bottom: calc(var(--space-6xl) + var(--space-md)); } /* WCAG 2.2 SC 2.4.11: nothing lands behind the pinned Pay */
  #courtPanel :is(.pn-input, .players .linkbtn, .remove) { scroll-margin-bottom: calc(var(--space-6xl) + var(--space-md)); } /* the same for the court panel: no name field, link or error lands behind the pinned Pay */
  #laPanel :is(.lane-row, .lane input, .fields :is(input, select), .check input) { scroll-margin-bottom: calc(var(--space-6xl) + var(--space-md)); } /* the same for the academy's panel: nothing lands behind the pinned Send request */
}
/* labels above the chips below 1440 (the phone pattern) */
@media (min-width: 1024px) and (max-width: 1439px), (min-width: 768px) and (max-width: 1023px) and (min-height: 501px) {
  .swim-times .bands { grid-template-columns: minmax(0, 1fr); }
  .swim-times .band { display: block; }
  .swim-times .band > .mt { display: block; margin-bottom: var(--space-xs); }
}
/* 768-1023: the bar carries Pay; words leave the lanes; the plan rows are the phone's two-line grid */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px) {
  .swim-split .lane .f { display: none; }
  #swimPanel .paylist { grid-template-columns: minmax(0, 1fr); }
  #swimPanel .payrow { grid-column: auto; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r n m" ". p p"; column-gap: var(--space-sm); row-gap: var(--space-2xs); }
  #swimPanel .payrow input { grid-area: r; } #swimPanel .payrow .pn { grid-area: n; } #swimPanel .payrow .mt { grid-area: m; } #swimPanel .payrow .pr { grid-area: p; }
}
/* 1024 and wider: four chips a row, Pay pinned to the bottom of the window while the panel is on screen */
@media (min-width: 1024px) {
  .swim-split { column-gap: var(--space-xl); }
  .swim-times .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swim-split .swim-panel { padding: var(--space-lg); }
  #swimPanel .payrow { padding: var(--space-sm); column-gap: var(--space-sm); }
  :is(#swimPanel, #courtPanel) .pgroup.pay { display: contents; } /* sticky needs the panel as its container, or Pay can't appear until the pay group does */
  :is(#swimPanel, #laPanel, #courtPanel) .cta { position: sticky; bottom: 0; z-index: 1; margin-inline: calc(-1 * var(--space-lg)); padding: var(--space-sm) var(--space-lg); background: var(--mist); border-top: var(--stroke-divider) solid var(--line); }
  html.capture :is(#swimPanel, #laPanel, #courtPanel) .cta { position: static; }
}
/* 1280 and wider: the 440 / 720 columns, six chips a row */
@media (min-width: 1280px) {
  .swim-split { grid-template-columns: minmax(0, 1fr) var(--size-measure); column-gap: var(--space-3xl); }
  .swim-times .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .swim-split .swim-panel { padding: var(--space-xl); }
  .swim-split .lane { padding-inline: var(--space-xs); }
  #swimPanel .payrow { padding: var(--space-md); column-gap: var(--space-md); }
  :is(#swimPanel, #laPanel, #courtPanel) .cta { margin-inline: calc(-1 * var(--space-xl)); padding: var(--space-sm) var(--space-xl); }
}
/* 1440 and wider: the band labels fit beside their chips again */
@media (min-width: 1440px) {
  .swim-times .bands { grid-template-columns: max-content 1fr; }
  .swim-times .band { display: grid; }
  .swim-times .band > .mt { display: block; margin-bottom: 0; }
}

/* =====================================================================================================================================================================
   Badminton r1 (31 Oct, Specs/Badminton r1.md): #/court is #/swim's twin (it reuses .swim-band, .days, .day, .bands, .chips, .slot, .swim-panel, .pgroup and .pt-opt), so the new CSS is only the players
   (.players, .you, .player, .recent) and the guest passes under a court row on Bookings (.bk-guests, .gp-*). Tokens only, no new ones.
   ===================================================================================================================================================================== */
/* the band word on a phone: the landing tile's formula (.tile .word), with the band's content box as the container and --n the letter count, so BADMINTON stays inside the gutter. SWIM sets no --n and stays 68. */
.swim-band .wrap { container-type: inline-size; }
.swim-band .word { font-size: min(68px, calc(100cqw / (var(--n, 1) * 0.75))); } /* ds-allow: the band word fits its container (word cap 68) */
.players { display: grid; gap: var(--space-sm); }
.you { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--white); }
.you > div > span { display: block; }
.you .nm, .player .nm { font: var(--type-body-strong); color: var(--ink); }
.player { position: relative; display: grid; gap: var(--space-sm); min-width: 0; margin: 0; padding: var(--space-md); border: 0; border-radius: var(--radius-md); background: var(--white); } /* the fieldset of one partner */
.player legend { float: left; width: 100%; padding: 0; font: var(--type-label); color: var(--ink); } /* a floated legend is no longer the fieldset's "rendered legend": it is a plain first row inside the padding, so Remove can sit at the block's top right */
.players .linkbtn, .em > .linkbtn { display: inline-flex; align-items: center; gap: var(--space-xs); }
.em > .linkbtn { padding-block: var(--space-2xs); }
.em > .linkbtn:hover { text-decoration-thickness: var(--stroke-border-strong); }
.em-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; } /* Emergency contact folded r1: the heading and Remove on one line */
/* Your details, the upload pages and Join (Julia, 5 Nov): no divider between sections; one 2xl of space does the grouping. `.joinsec` marks those sections; the emergency block inside #view is Your details'. The shared .section rule is unchanged, so My details and the other pages keep theirs. */
#view .section.joinsec, #view .section.em:not(.em-folded) { margin-top: var(--space-2xl); padding-top: 0; border-top: 0; }
.section.em-folded { margin-top: calc(var(--space-xl) - var(--space-2xs)); padding-top: 0; border-top: 0; } /* folded: not a divided section; the link sits under the contact fields as the last thing in that group (Julia, 5 Nov) */
.em-acts { display: flex; align-items: center; gap: var(--space-xl); } /* Change and Remove in a saved row */
.em-acts .linkbtn { margin-top: 0; }
.players > .linkbtn { justify-self: start; }
.player .remove { position: absolute; top: var(--space-md); right: var(--space-md); }
.player .field-fixed .err { margin-top: var(--space-2xs); }
.recent { display: grid; gap: var(--space-2xs); }
.recent-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); }
.recent-list .dotsep { color: var(--muted); }
/* Bookings: "Guest passes (2)" under an upcoming court row, a region with one row per guest */
.bk-guests { grid-column: 1 / -1; display: grid; justify-items: start; gap: var(--space-xs); }
.gp-region, .gp-list { width: 100%; }
.gp-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; } /* the rows share columns, so every Share and Show line up */
.gp-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; column-gap: var(--space-md); padding: var(--space-sm) 0; box-shadow: inset 0 var(--stroke-divider) 0 var(--line); } /* 4px grid r1 §3 */
.gp-row .nm { overflow-wrap: anywhere; }
.gp-share { display: flex; align-items: center; }
.gp-show.bk-more { margin-top: 0; }
@media (max-width: 1023px) {
  .player .remove { top: var(--space-2xs); } /* the 44 px target centres its text 12 px lower, so the block moves up to keep "Remove" on the legend's line */
}
@media (max-width: 599px) {
  .section.em-folded { margin-top: calc(var(--space-xl) - var(--space-2xs) - var(--space-xs)); } /* the link's 44 target adds 8 above its text */
  .gp-list { grid-template-columns: minmax(0, 1fr); }
  .gp-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .gp-share { flex-direction: column; align-items: stretch; } /* Mobile r1 3: a button that ends a card is full width, the status under it */
  .gp-share .btn { width: 100%; justify-content: center; }
  .gp-share .share-status, .gp-share .share-status:empty { margin-left: 0; }
  .gp-share .share-status:not(:empty) { margin-top: var(--space-xs); }
  .gp-show.bk-more { justify-self: start; }
}

/* Bookings with no upcoming and no past rows: Payments alone keeps its size, at the left (Compact Portal top r1 7) */
@media (min-width: 1024px) { .bk-page .fam-grid:not(:has(.fam-main)) { grid-template-columns: minmax(0, var(--size-side-w)); } }
