/* David Fritz Golf Academy, home page v3: the shared kit (9 Nov 2026). Plain CSS, tokens first.
   One owner: the foundation. Section builders read GUIDE.txt and write only css/sections/NN-name.css.
   Order: fonts, tokens, base, grounds, type, layout, buttons, pictures, motion, header, phone menu. */

/* ---------- Fonts: two families, woff2, Latin. The headline font is preloaded and blocks; the text font swaps
   onto a size-matched fallback ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 96%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour. Dave's blue is for the one action only; lime lives only inside the logo. */
  --blue: #265ade;
  --blue-press: #1e4ec7;
  --ink-dark: #0e0f11;                 /* near black: headings on light grounds */
  --g-paper: #ffffff;                  /* the grounds, by name */
  --g-mist: #f3f5f7;
  --g-sand: #f5f1ea;
  --g-dark: #15171c;                   /* the dark band */
  --g-black: #0b0c0e;                  /* the footer */
  --g-photo: #1d1d20;                  /* behind a full bleed picture until it paints */
  --red: #b42318;                      /* only what needs the family now (the booking page) */

  /* Words on the ground you are on. Each [data-ground] sets these again, so a section never picks a colour. */
  --ground: var(--g-paper);
  --ink: var(--ink-dark);              /* headings */
  --text: #494b56;                     /* reading text */
  --muted: #5f6472;                    /* facts lines, small print */
  --line: rgba(14, 15, 17, 0.12);      /* hairlines and dividers */
  --focus: var(--ink);
  --paper: var(--g-paper);             /* v2 names the booking page still reads */
  --canvas: var(--g-mist);

  /* Type */
  --f-head: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-text: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, sans-serif;
  --w-head: 400;
  --title-track: -0.015em;
  --fs-hero: clamp(3.5rem, calc(6vw / var(--vz, 1)), 7rem); /* the hero block sets its own; here for a closing line */
  --fs-title: clamp(42px, calc(5.6vw / var(--vz, 1)), 88px);
  --fs-line: clamp(20px, calc(1.7vw / var(--vz, 1)), 24px);
  --fs-card: 22px;
  --fs-body: 18px;
  --fs-label: 16px;
  --fs-facts: 15px;
  --fs-small: 14px;                    /* the floor: nothing smaller, anywhere */
  --fs-btn: 17px;

  /* Space: an 8 px grid */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --gutter: 16px;                      /* content gutters: 16, 48 from 768, 96 from 1280 */
  --edge: 16px;                        /* Ry's left line for the logo, headline and Book Now: 16, 48, 64 */
  --max: 1240px;
  --section: 72px;                     /* top and bottom of a section: 72 on phones, then fluid */
  --gap: 16px;                         /* between cards: 16 on phones, 24 from 768 */
  --radius: 12px;

  /* Motion: one easing for the small things (hovers, the header), one timing system for everything that arrives.
     js/base.js reads --mo-line and the four times, so a change here is a change everywhere. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rv-step: 0ms;                      /* the old stagger per --i: a fallback only, the cascade clock spaces things now */
  --mo-ease: cubic-bezier(0.19, 1, 0.22, 1);       /* arrivals: quick to leave, a long soft landing */
  --mo-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);  /* fades and focus */
  --mo-t-line: 1300ms;                 /* a headline line rising out of its mask */
  --mo-t-rise: 1200ms;                 /* words and cards rising */
  --mo-t-fade: 900ms;                  /* their fade and focus */
  --mo-t-open: 1700ms;                 /* a picture opening */
  --mo-line: 120ms;                    /* between the lines of one headline */
  --mo-rise-text: 26px;
  --mo-rise-card: 48px;

  /* Header */
  /* The logo's drawn letters, not its box, set the measure (the box has a hair of clear rim: ink 0.70 to 259.97 across,
     1.10 to 178.87 down, of 261 x 180). Ink 64 px tall on phones, 96 from 768: 16 px clear above and below it, so the
     line zone is the ink plus 32, the ink's middle is the buttons' and links' middle, and the ink's left edge is the
     headline's left line. At 96, "David Fritz" stands 1.63 times the links' capitals, about the golden ratio. */
  --lh: 64.8028;                       /* the logo box's height in px, no unit: 64 x 180 / 177.77, ink exactly 64 */
  --head-pad: 16px;                    /* clear above the ink */
  --head-top: 96px;                    /* the header's line zone at the top: ink plus 16 above and below (a literal: base.js reads it) */
  --head-past: 64px;                   /* past the hero: the 40 px emblem plus its padding */
  --veil-max: 112px;                   /* how far below its line zone a header layer reaches: the shade's own height */
  --shade-h: 180px;                    /* the top shade over a picture: 180 px at 0.56, 240 at 0.62 from 768, */
  --shade-top: 0.56;                   /* as the hero's own (--hero-top-h, --hero-top) */
}
@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --edge: 48px;
    --section: clamp(96px, calc(11vw / var(--vz, 1)), 176px);
    --gap: 24px;
    --rv-step: 60ms;
    --lh: 97.2042;                     /* 96 x 180 / 177.77: ink exactly 96 */
    --head-top: 128px;
    --head-past: 72px;
    --veil-max: 120px;
    --shade-h: 240px;
    --shade-top: 0.62;
  }
}
@media (min-width: 1024px) {
  :root { --fs-card: 26px; --fs-body: 19px; --fs-btn: 18px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 96px; --edge: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* A link to a part of this page glides there; a page opened at a part (index.html#rates) lands on it at once. Dave,
   21 Nov 2026: Gift Cards' See every price opened home at its top, glided 2,700 px down, stalled, then jumped. js/base.js
   adds .glide two frames after the page has loaded. */
html.glide { scroll-behavior: smooth; }
/* A 4K screen at 100% (Ry, 16 Nov 2026: "Yes, build it"): a screen over 3000 by 1500 that draws one dot per point
   shows the page laid out like a 1920 TV, only bigger, instead of tiny. html.tv-z comes from the head's 4K test,
   only where the browser enlarges the way this page is built for. --vz is the enlarge: every screen unit in the
   sheets is written calc(N vh / var(--vz, 1)), because an enlarged page's vh and vw still count the whole screen
   (build.py writes them so). Everything under 3000 by 1500 (phones, iPads, laptops, monitors, retina) is untouched. */
@media (min-width: 3000px) and (min-height: 1500px) and (max-resolution: 1.5dppx) { html.tv-z { zoom: 1.5; --vz: 1.5; } }
@media (min-width: 3300px) and (min-height: 1650px) and (max-resolution: 1.5dppx) { html.tv-z { zoom: 1.75; --vz: 1.75; } }
@media (min-width: 3800px) and (min-height: 1900px) and (max-resolution: 1.5dppx) { html.tv-z { zoom: 2; --vz: 2; } }
/* iPhone Safari 26+ tints the bar behind the clock from the page's own background, not theme-color: dark on the
   home page (the film), so no pale band. body paints paper over it, so nothing on the page changes. */
html.has-film { background-color: #0e0f11; }   /* the class is in the page itself; js/base.js says it again (a rule
   that asks html what it holds is asked again at every change on the page) */
:root { color-scheme: only light; }                /* a phone's automatic dark mode leaves our grounds alone */
html.calm { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--g-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}
/* LONG TEXT NEVER BREAKS A LAYOUT (Dan's house rule). One unbroken 200 character word wraps inside its own box
   everywhere (anywhere also lets a flex or grid slot shrink under it; break-word does not). One line names, labels and
   buttons end in dots instead: .ellipsis, .btn, .ch-go-t, .top-book, .co-name and the footer links. The booking
   (body.bk, css/book.css) keeps its own rules. */
body:not(.bk) { overflow-wrap: anywhere; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }                 /* times and money never wrap mid value */
.ellipsis { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.skip { position: absolute; left: 16px; top: -72px; z-index: 100; background: var(--ink-dark); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
/* A focused control never hides under the floating header (anchors keep their own landing rule below) */
:where(a[href], button, input, select, textarea, summary, [tabindex]) { scroll-margin-top: calc(var(--head-top) + 16px); scroll-margin-bottom: 16px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* The cross page fade (TECH-FRONTIER 3): only where motion is welcome. With Reduce Motion the opt in is not in force;
   the visitor's own switch (html.calm) skips it in the head script's pageswap and pagereveal listeners. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
/* The new page is there at once, whole and in full colour: no fade and no rise (Dan, 11 Nov 2026: "I don't like when
   you load the hero and it fades in. That's not nice"; the page used to fade in over 640 ms on every move between
   pages, its hero with it). The header is its own layer, so it holds still between pages. */
::view-transition-old(root) { animation: none; display: none; }
::view-transition-new(root) { animation: none; }
::view-transition-group(df-top) { animation-duration: 450ms; animation-timing-function: var(--mo-ease); }
.top { view-transition-name: df-top; }

/* ---------- Grounds. data-ground paints the section and sets the word colours for everything inside it.
   data-tone is the colour of the words on it, which the header copies: paper, mist, sand take "dark" (ink words);
   dark, photo, black take "light" (white words) ---------- */
[data-ground] { background-color: var(--ground); color: var(--text); }
[data-ground="paper"] { --ground: var(--g-paper); }
[data-ground="mist"] { --ground: var(--g-mist); }
[data-ground="sand"] { --ground: var(--g-sand); }
[data-ground="dark"] { --ground: var(--g-dark); }
[data-ground="black"] { --ground: var(--g-black); }
[data-ground="photo"] { --ground: var(--g-photo); position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
[data-ground="paper"], [data-ground="mist"], [data-ground="sand"] {
  --ink: var(--ink-dark);
  --text: #494b56;
  --muted: #5f6472;
  --line: rgba(14, 15, 17, 0.12);
  --focus: var(--ink);
}
[data-ground="dark"], [data-ground="black"], [data-ground="photo"] {
  --ink: #ffffff;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.18);
  --focus: #ffffff;
}

/* ---------- Depth (Dan, 9 Nov): every screen and button has height. A section never writes a shadow by hand: it
   picks a height. Shade is made of the ground's own dark (--depth-rgb), so it reads as shade, never as a grey smudge.
   0 flush (a hairline ring) · 1 small things at rest (chips, rows, small cards) · 2 cards, picture doors and panels
   · 3 raised (under the pointer) and floating (a card over a map, a sheet, a menu) · down pressed: it sinks
   · well a box you type in: cut into the page. The heights are set again on each ground so they take its shade. ---------- */
:root, [data-ground="paper"], [data-ground="mist"], [data-ground="sand"] {
  --depth-rgb: 14 15 17;
  --depth-0: 0 0 0 1px rgb(var(--depth-rgb) / 0.08);
  --depth-1: 0 0 0 1px rgb(var(--depth-rgb) / 0.05), 0 1px 2px rgb(var(--depth-rgb) / 0.07), 0 3px 8px -2px rgb(var(--depth-rgb) / 0.08);
  --depth-2: 0 0 0 1px rgb(var(--depth-rgb) / 0.04), 0 2px 4px rgb(var(--depth-rgb) / 0.05), 0 12px 24px -8px rgb(var(--depth-rgb) / 0.14), 0 28px 48px -20px rgb(var(--depth-rgb) / 0.16);
  --depth-3: 0 0 0 1px rgb(var(--depth-rgb) / 0.04), 0 4px 8px rgb(var(--depth-rgb) / 0.06), 0 20px 40px -12px rgb(var(--depth-rgb) / 0.2), 0 48px 80px -32px rgb(var(--depth-rgb) / 0.24);
  --depth-down: 0 0 0 1px rgb(var(--depth-rgb) / 0.08), 0 1px 1px rgb(var(--depth-rgb) / 0.08);
  --depth-well: inset 0 1px 2px rgb(var(--depth-rgb) / 0.1), inset 0 0 0 1px rgb(var(--depth-rgb) / 0.12);
}
[data-ground="mist"] { --depth-rgb: 18 28 46; }      /* cool shade on the cool ground */
[data-ground="sand"] { --depth-rgb: 62 44 18; }      /* warm shade on the warm ground */
/* On a dark ground shade cannot show: height is a lit top edge, a fine light ring and deep black underneath. */
[data-ground="dark"], [data-ground="black"], [data-ground="photo"] {
  --depth-rgb: 0 0 0;
  --depth-0: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  --depth-1: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 2px 6px rgb(0 0 0 / 0.4);
  --depth-2: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 16px 32px -12px rgb(0 0 0 / 0.6);
  --depth-3: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 70px -20px rgb(0 0 0 / 0.7);
  --depth-down: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  --depth-well: inset 0 1px 2px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.16);
}
/* The filled blue button: lit from above, standing on its own blue shade. The same on every ground. */
:root {
  --depth-btn: inset 0 1px 0 rgb(255 255 255 / 0.24), inset 0 -1px 0 rgb(8 20 60 / 0.18), 0 1px 2px rgb(14 34 96 / 0.36), 0 8px 18px -6px rgb(38 90 222 / 0.5);
  --depth-btn-up: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -1px 0 rgb(8 20 60 / 0.18), 0 2px 4px rgb(14 34 96 / 0.34), 0 14px 28px -8px rgb(38 90 222 / 0.55);
  --depth-btn-down: inset 0 2px 4px rgb(8 20 60 / 0.3), 0 1px 1px rgb(14 34 96 / 0.3);
  --lift: -2px;                        /* how far a pressable card rises under the pointer (never in calm mode) */
}

/* ---------- Layout ---------- */
.sec { position: relative; padding-block: var(--section); }
/* Every section the same air on a phone: its own 72 px top and bottom (--section), its content from the top, never
   stretched to a screen (Ry, about 10:05 PM Mon 16 Nov 2026, "Yes, do it", to the even 72 px air on every section;
   it replaces 9:26 AM's one screen a section, which centred a short section in a whole screen and left about 200 px
   empty over "What are you looking for?"). Only the heroes, the map and the closes fill the screen, sizing themselves
   (css/hero.css, 07-places, program.css, 09-feeling). */
/* One screen a section on a laptop too (Ry, 9:37 to 9:41 AM Mon 16 Nov 2026, at his MacBook's 1512 by 829 window: "each
   section on the website, even on the desktop here ... should sit nicely in the section. Why is this off?", then "just go
   through the whole site to make sure that all the sections are fixed to fit"). Until then every section kept the kit's
   own air, 166 px over its title at his window, and the tallest ran off the foot of the screen (the finder's Winter
   picture, What it costs' See every price, Meet David's button, the class cards' Book Now).
   So in a wide window (the finder's own test, 11-find.css; 1180 wide and up, the finder and David from 1024) a section is one screen tall, its content in the middle, the
   same air above it as below it. A section that holds less stands in the middle with more air. The two that fill the
   window, the finder's pictures (11-find.css) and David's picture (16-layers.css), keep --fit-air above and below:
   9% of the window, never under 64 px (the top bar is 72), never over 96. Every other section is as it was; in the
   middle of its screen it has what air is left, and a short window that leaves little still shows it whole, down to
   --fit-pad (4.5%, 32 to 64 px) above and below, rather than shrink its words or pictures (Ry, the same morning: "Use
   your discretion if you think that something shouldn't be exactly on one page ... I wouldn't want something to be
   too small"). Only Kids' classes (five cards under Competing, three rows of facts) are taller than that; they run a
   little past, the same air above and below.
   The heroes, the map, the story of What to expect, the closes and the long text pages keep their own sizes.
   work/2026-11-16-fit-my-phone/desk.mjs measures every section at 1280x720, 1440x789, 1512x829, 1728x960 and 1920x960. */
@media (min-width: 1024px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  :root { --fit-air: clamp(64px, calc(9vh / var(--vz, 1)), 96px); --fit-pad: clamp(32px, calc(4.5vh / var(--vz, 1)), 64px); --fit-vh: calc(100vh / var(--vz, 1)); }
  @supports (height: 1svh) { :root { --fit-air: clamp(64px, calc(9svh / var(--vz, 1)), 96px); --fit-pad: clamp(32px, calc(4.5svh / var(--vz, 1)), 64px); --fit-vh: calc(100svh / var(--vz, 1)); } }
  main > .sec:is(.fd, .ly) { min-height: var(--fit-vh); padding-block: var(--fit-pad); align-content: center; scroll-margin-top: 0; }
}
/* From 1180 wide every section: narrower, the price and class cards stand two by two and run on for more than a
   screen, so there they keep the kit's own air, as they had. */
@media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  main > .sec:not(.pl, .pg-end, .pg-ex--story, .ru-rules),
  main > .gc-buys-sec {
    min-height: var(--fit-vh);
    padding-block: var(--fit-pad);
    align-content: center;
    scroll-margin-top: 0;
  }
}
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); min-width: 0; }
/* A grid that long text cannot break: columns are minmax(0, 1fr) and children may shrink.
   --cols on phones, --cols-md from 768, --cols-lg from 1100. */
.grid { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: var(--gap); --c: var(--cols, 1); }
.grid > * { min-width: 0; }
/* In page links land clear of the floating header. A padded section (.sec) and a full bleed picture band land flush:
   their own top padding already holds the title below the header's line. */
:where(main [id], body > footer[id]) { scroll-margin-top: calc(var(--head-past) + var(--s-2)); }
:where(main > .sec, main > [data-ground="photo"]) { scroll-margin-top: 0; }
/* On phones a section's 72 px top padding is less than the 88 px header zone: land a padded section so its title
   starts clear of the header's box */
@media (max-width: 767px) { :where(main > .sec) { scroll-margin-top: calc(var(--head-top) - var(--section) + var(--s-1)); } }
@media (min-width: 768px) { .grid { --c: var(--cols-md, var(--cols, 1)); } }
@media (min-width: 1100px) { .grid { --c: var(--cols-lg, var(--cols-md, var(--cols, 1))); } }

/* ---------- Type ---------- */
/* The section head: a title of 3 or 4 words in the serif above its content, one line of 10 words or fewer under it.
   Centred on phones; left from 768 unless .sec-head--center. */
.sec-head { max-width: 760px; margin: 0 auto var(--s-5); text-align: center; }
.sec-title {
  font-family: var(--f-head);
  font-weight: var(--w-head);
  font-size: var(--fs-title);
  line-height: 1.02;
  letter-spacing: var(--title-track);
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sec-line {
  max-width: 30ch;
  margin: 16px auto 0;
  font-size: var(--fs-line);
  line-height: 1.45;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .sec-head { margin: 0 0 var(--s-6); text-align: left; }
  .sec-head .sec-line { margin-left: 0; }
  .sec-head--center { margin-inline: auto; text-align: center; }
  .sec-head--center .sec-line { margin-left: auto; }
}
.card-title { font-size: var(--fs-card); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); overflow-wrap: anywhere; }
.body { max-width: 62ch; font-size: var(--fs-body); line-height: 1.55; color: var(--text); }
:where(p, .body, .card-title) { text-wrap: pretty; }  /* no word left alone on a last line; :where keeps it at zero
                                                      weight, so .ellipsis (nowrap) and balance always win */
/* a browser with balance but not pretty (Chrome 114 to 116, Dave's MacBook Air): a card's title balances, so no
   word stands alone ("Credits, packs and Gift / Cards") */
@supports not (text-wrap: pretty) { :where(.card-title) { text-wrap: balance; } }
html:not(.js) form[data-stub], html[data-public] form[data-stub] { display: none; }  /* data-public: build.py --public */   /* a stand-in box shows only while the script that answers it runs */
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; color: var(--muted); }
.label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* a small label is a name: two lines at most (the longest real one on a phone), then dots */
.facts { font-size: var(--fs-facts); font-weight: 500; line-height: 1.45; color: var(--muted); font-variant-numeric: tabular-nums; }
/* A dot list, "A · B · C" (Dan, 12 Nov 2026: no word cut in two, and a list keeps each item whole):
   <p class="dl"><span class="dl-in"><span>A</span><span>B</span></span></p>, the places cards' way (pages/places.css).
   Each item holds together and carries its dot in the gap before it. An item that starts a line puts its dot in the
   clipped strip on the left; on a centred line js/base.js marks it .dl-l and its dot goes. So a dot never starts or
   ends a line. 0.6625em is the gap "nbsp · nbsp" makes in this font: a list on one line looks exactly as before. */
.dl { display: block; overflow: hidden; }
.dl-in { display: block; margin-left: -0.6625em; }
.dl-in > span { display: inline-block; position: relative; max-width: calc(100% - 0.6625em); margin-left: 0.6625em; }
.dl-in > span::before { content: "·"; position: absolute; top: 0; right: 100%; width: 0.6625em; text-align: center; }
.dl-in > span:first-child::before, .dl-in > .dl-l::before { content: none; }
.small { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.hst { color: var(--muted); font-weight: 500; }
/* a class card on sale (base.js, the hub's prices): the usual price struck through and "until <date>" over its unit */
.ch-was { text-decoration: line-through; }
/* A PRICE, ONE LOOK EVERYWHERE (Dan, 6:28 PM Wed 11 Nov 2026: "The dollar sign font under ... What It Costs ... is not
   the right font, and it's bold ... It should be ... Half Days $325. That looks really nice, elegant, and premium ...
   We need to be consistent everywhere."). The program cards' price (css/choice-look.css) is the look, and it lives here
   so every page shares it: the serif at its one weight, lining figures, and a small "$" raised to the top of the
   digits. What the price buys sits small and grey under it (.ch-per, .rt-per, .rt-from-per). Each place sets only its
   own size; the "$" keeps its share of it (half the size, a twentieth of it as the gap). A price inside a sentence stays plain
   text. Markup: <span class="ch-price"><span class="ch-cur">$</span>325</span>. */
.ch-price, .rt-price, .rt-from-p {
  display: inline-flex;
  align-items: baseline;   /* the digits carry the baseline; the $ rides at the top */
  font-family: var(--f-head);
  font-weight: var(--w-head);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.ch-cur, .rt-cur, .gc-cur { align-self: flex-start; font-size: 0.5em; margin: 0.12em 0.1em 0 0; }   /* em of the $ itself: 2 px beside a 40 px price */

/* ---------- THE PICTURE CARD, ONE CARD EVERYWHERE ----------
   The program pages' cards (Which class fits?, Which camp?, Which lesson?) and the home page's What it costs cards are
   one card, so its rules live here, where every page reads them (Dan, 6:41 PM Wed 11 Nov 2026, on the phone with Ry:
   "we like what you did where it says 'Ages 6 and under' ... the actual layout of that card ... using the same kind
   of layout on the home page cards"). Moved whole from css/choice-look.css, nothing changed; that file keeps what only
   the program pages have (the kinds' headings, the camp weeks, the two under the four) and tells the card's story.
   Top to bottom: the picture; the band (the name in the serif on the left, "From" and the price on the right, what it
   buys under them); one quiet line; the facts; Book Now, the card's width. Home: css/sections/13-rates.css adds only
   its list of every price. */
.ch-cards {
  --ch-gap: var(--gap);
  --ch-pad: 20px;          /* the card's side padding */
  --ch-big: 32px;          /* the name */
  --ch-price: 40px;        /* the price: the biggest thing in the band, as in What it costs */
  --ch-lift: -6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ch-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ch-cards > li { display: grid; min-width: 0; }

/* ---------- The card ---------- */
.ch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr;
  min-width: 0;
  padding-bottom: var(--ch-pad);
  border-radius: calc(var(--radius) + 4px);
  background: var(--g-paper);
  box-shadow: var(--depth-2);
  transition: box-shadow 280ms var(--ease), transform 280ms var(--ease);
  -webkit-tap-highlight-color: transparent;
  /* the white card's own inks */
  --ink: var(--ink-dark);
  --text: #494b56;
  --muted: #5f6472;
  --line: rgba(14, 15, 17, 0.12);
  --focus: var(--ink);
  color: var(--text);
}
.ch-card > * { min-width: 0; }

/* 1. the picture: flush with the card's top, its own rounded corners, so the card's shade is never cut */
.ch-pic {
  grid-row: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ch-ratio, 2 / 1);
  border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
  background: var(--ph, #d9d6cf);
}
.ch-pic picture { display: block; width: 100%; height: 100%; }
.ch-pic img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pic-at, 50% 50%);
}
/* a hairline under the picture, so a pale sky never melts into the white band */
.ch-pic::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(14 15 17 / 0.06); }

/* 2. the band: name left, price right, on one line where they fit */
.ch-band {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "name from price" "per per per";
  align-items: baseline;
  /* rows keep their own height when a neighbour's band is taller: a card with no unit under its price (Winter's Ages
     4 to 6) spread the spare room over its rows and its price sat 7 px under its neighbours' (end check, 17 Nov 2026) */
  align-content: start;
  column-gap: 0;
  padding: 18px var(--ch-pad) 0;
}
.ch-name {
  grid-area: name;
  margin: 0 14px 0 0;
  padding-top: 1px;
  font-family: var(--f-head);
  font-weight: var(--w-head);
  font-size: var(--ch-big);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
/* the cost's three parts join the band's own grid: "From" and the price beside the name, the unit under them,
   right aligned across the band, so only the price's own width stands beside the name */
.ch-cost { display: contents; }
.ch-from { grid-area: from; margin-right: 6px; font-size: var(--fs-small); font-weight: 600; line-height: 1; color: var(--muted); }
.ch-price { grid-area: price; font-size: var(--ch-price); }   /* the look itself (serif, the small raised $) is css/base.css's, shared with every price on the site */
/* a card with no price (the Christmas golf school's "Ask us") keeps its name on the line of its neighbours' names:
   an unseen character in the price's type holds the price's place in the band */
.ch-band::after { content: "\200b"; grid-area: price; font-family: var(--f-head); font-size: var(--ch-price); line-height: 1; visibility: hidden; }
.ch-per { grid-area: per; justify-self: end; align-self: start; margin-top: 5px; font-size: var(--fs-small); font-weight: 500; line-height: 1.2; color: var(--muted); white-space: nowrap; }
/* a long name on two lines beside its price (the kids Competing row, two across on a tablet) keeps its unit right under
   the price, level with its neighbour's: the name spans the unit's row too (the row's units are short, so they never meet) */
@media (max-width: 1179.98px) { .ch-cards[data-long] .ch-name { grid-row: 1 / span 2; } }
/* four across, the same for any name on two lines (Winter's "Private or semi private lessons", Dave's updates #4,
   15 Nov 2026; Summer camps' "Golf and adventure" at 1280, screens check, 17 Nov 2026: its unit sat 25 px under its
   neighbours'): its second line sits beside the unit, so every unit stays right under its price. A one line name
   keeps its place, on the price's line */
@media (min-width: 1180px) { .ch-cards[data-n="4"]:not([data-stack]) .ch-name { grid-row: 1 / span 2; } }
/* the second line of such a name may reach below the unit: the room it needs goes under the unit, never between the
   price and the unit (end check, 17 Nov 2026: "Golf and adventure" put its unit 2 px under its neighbours') */
@media (max-width: 1179.98px) { .ch-cards[data-long] .ch-band { grid-template-rows: auto 1fr; } }
/* the home page's What it costs, two across on a tablet: "Private or semi private lessons" beside Adult classes takes
   two lines, the same way, so its unit sits level with its neighbour's (screens check, 18 Nov 2026: 32 px lower) */
@media (min-width: 768px) and (max-width: 1179.98px) {
  #rt-list .ch-name { grid-row: 1 / span 2; }
  #rt-list .ch-band { grid-template-rows: auto 1fr; }
}
@media (min-width: 1180px) { .ch-cards[data-n="4"]:not([data-stack]) .ch-band { grid-template-rows: auto 1fr; } }
/* a long unit beside a two line name (Winter's "the winter season" under "Junior Competitive Team", phones and small
   tablets; Ry's shots, 16 Nov 2026): the name keeps its own row, so the unit sits under the name, never over its second line */
@media (max-width: 959.98px) { .ch-cards[data-long] .ch-band[data-per-long] .ch-name { grid-row: name; } }
/* two across, the pair with long units (Junior Competitive Team beside Junior Elite Team): each name keeps two lines'
   room, so both units sit on one line under the names (end check, 17 Nov 2026: they were 16 px apart) */
@media (min-width: 768px) and (max-width: 959.98px) { .ch-cards[data-long] .ch-band[data-per-long] .ch-name { min-height: calc(2 * 1.08em + 1px); } }
/* the narrowest phones (320 wide): beside its price "Junior Competitive Team" had 131 px, took three lines and left
   Team alone on the last, pushed in by its joining space (end check, 17 Nov 2026). There such a name takes the band's
   whole width on top, on two lines, and the price and its unit start under it at its left edge, as five across.
   The same up to 390 wide (iPhone check, 18 Nov 2026: on the SE and the 13 mini, 375 wide, it had 186 px and "Team"
   sat alone again; "Competitive Team" needs 191; the 390 iPhones give it 201) */
@media (max-width: 389.98px) {
  .ch-cards[data-long] .ch-band[data-per-long] { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "from price" "per per"; grid-template-rows: auto auto 1fr; }
  /* 5 px lower: level with the names beside their prices, which sit on the price's line (measured, 17 Nov 2026) */
  .ch-cards[data-long] .ch-band[data-per-long] .ch-name { margin: 0 0 10px; padding-top: 6px; }
  .ch-cards[data-long] .ch-band[data-per-long] :is(.ch-price, .ch-per) { justify-self: start; }
}

/* 3. one line */
.ch-say {
  grid-row: 3;
  margin: 10px 0 0;
  padding-inline: var(--ch-pad);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}

/* 4. the facts */
.ch-meta, .ch-facts { grid-row: 4; }
.ch-meta {
  margin: 6px 0 0;
  padding-inline: var(--ch-pad);
  font-size: var(--fs-facts);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}
.ch-facts { margin: 16px var(--ch-pad) 0; }
.ch-facts > div {
  display: grid;
  grid-template-columns: fit-content(60%) minmax(0, 1fr);   /* a long label wraps inside 60% and never pushes the price out */
  align-items: baseline;
  column-gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.ch-facts dt { min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-facts); font-weight: 500; line-height: 1.35; color: var(--muted); }
.ch-facts dd { min-width: 0; overflow-wrap: anywhere; margin: 0; font-size: var(--fs-facts); font-weight: 600; line-height: 1.35; text-align: right; color: var(--ink); text-wrap: balance; }
/* a price in the facts (lessons: 5 lessons $500, 3 golfers $160) is the site's one price, sized for a row as the home
   list's is (.rt-price), with who or what it is for small and grey under it, as under the band's price */
.ch-facts .ch-price { font-size: 24px; }
.ch-facts .ch-cur { font-size: 14px; }   /* half of 24 is 12, under the 14 px text floor */
.ch-fact-per { display: block; margin-top: 2px; font-size: var(--fs-small); font-weight: 500; line-height: 1.2; color: var(--muted); }
/* zoomed phones, under 300 wide (Safari's bigger text on an iPhone makes the page this narrow): a fact's words take
   the row's whole width under its label, and the card's name steps down a size, so no word is ever cut in two
   (Dave, 17 Nov 2026, his zoomed iPhone) */
@media (max-width: 299.98px) {
  .ch-cards { --ch-big: 26px; }
  .ch-cards .ch-band { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "from price" "per per"; grid-template-rows: auto auto 1fr; }   /* the name on top, the price under it, as on the narrowest phones above */
  .ch-cards .ch-band .ch-name { margin: 0 0 10px; }
  .ch-cards .ch-band :is(.ch-price, .ch-per) { justify-self: start; }
  .ch-facts > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .ch-facts dd { text-align: left; }
}

/* 5. Book Now: the full width, filled with the kit's smoked glass and its lit rim (drawn as layered backgrounds, so
   the link stays unpositioned). Its ::after covers the whole card, so the picture and the card open the booking too. */
.ch-go {
  --ch-glass: var(--glass);
  grid-row: 5;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 54px;
  margin: 20px var(--ch-pad) 0;
  padding: 8px 20px;
  border: 1.25px solid transparent;
  border-radius: 999px;
  background:
    var(--ch-glass) padding-box,
    linear-gradient(var(--g-paper), var(--g-paper)) padding-box,
    var(--glass-rim) border-box,
    var(--ch-glass) border-box,
    linear-gradient(var(--g-paper), var(--g-paper)) border-box;
  box-shadow: var(--depth-btn);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  color: #fff;
  text-shadow: var(--glass-words);
  text-align: center;
  white-space: nowrap;     /* one line: a long label ends in dots (.ch-go-t), the pill keeps its height */
  transition: box-shadow 200ms var(--ease);
  touch-action: manipulation;
}
.ch-go-t { min-width: 0; padding-block: 0.25em; overflow: hidden; text-overflow: ellipsis; }   /* the padding keeps a g's tail inside the clip */
/* "Ask for an assessment" (a program by assessment: Elite camp, Junior Team) is the longest label: a little less room
   at the sides, and in a row of four narrow cards (camps, 1180 to 1399 wide) no arrow, so the words show whole */
.ch-go--ask { padding-inline: 12px; }
@media (min-width: 1180px) and (max-width: 1399px) { .ch-cards[data-n="4"] .ch-go--ask .ch-arrow { display: none; } }
/* the narrowest phones (320 wide): no arrow either, so "Ask for an assessment" shows whole (screens check, 15 Nov 2026) */
@media (max-width: 359.9px) { .ch-go--ask .ch-arrow { display: none; } }
/* Five across (the kids' Competing row: both junior teams and the Elite camp, Sat 14 Nov 2026) the long label needs
   189 px and a press has about 134 to 164: it says "Ask David" there, as the Christmas card does (David sees them play
   first); the press's aria-label keeps the whole meaning */
.ch-go-short { display: none; }
@media (min-width: 1180px) {
  .ch-cards[data-n="5"] .ch-go--ask .ch-go-long { display: none; }
  .ch-cards[data-n="5"] .ch-go--ask .ch-go-short { display: inline; }
}
.ch-go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: calc(var(--radius) + 4px); }
.ch-go:focus-visible { outline: none; }
.ch-go:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 4px; }
.ch-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}

/* ---------- Under the pointer the card rises and its Book Now lights; pressed, it sinks ---------- */
@media (hover: hover) {
  .ch-card:hover { transform: translate3d(0, var(--ch-lift), 0); box-shadow: var(--depth-3); }
  .ch-card:hover .ch-go::after { bottom: var(--ch-lift); }
  .ch-card:hover .ch-go { --ch-glass: var(--glass-up); box-shadow: var(--depth-btn-up); }
  .ch-card:hover .ch-arrow { transform: translate3d(3px, 0, 0); }
}
.ch-card:has(.ch-go:active) { transform: scale(0.985); box-shadow: var(--depth-down); }
.ch-card:has(.ch-go:active) .ch-go { --ch-glass: var(--glass-down); box-shadow: var(--depth-btn-down); }
html.calm .ch-card { transform: none !important; }
html.calm .ch-card .ch-go::after { bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .ch-card { transform: none !important; }
  .ch-card:hover .ch-go::after { bottom: 0; }
}
@media (forced-colors: active) { .ch-go { border-color: ButtonText; } }

/* ---------- Side by side: the cards of a row share their rows ---------- */
@media (min-width: 768px) {
  .ch-cards {
    --ch-pad: 22px;
    --ch-big: 30px;
    --ch-price: 40px;
    --ch-ratio: 16 / 10;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto auto auto auto 1fr var(--ch-gap);
    row-gap: 0;
    margin-bottom: calc(-1 * var(--ch-gap));
  }
  .ch-cards > li { grid-row: span 6; grid-template-rows: subgrid; }
  .ch-card { grid-row: 1 / 6; grid-template-rows: subgrid; }
}
/* A Chrome before 117 has no subgrid (Dave's MacBook Air, Sat 14 Nov 2026): each card then took the empty row under it
   too and ran over the line below. There every card is one row and lays its own rows. */
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .ch-cards { grid-auto-rows: auto; row-gap: var(--ch-gap); margin-bottom: 0; }
    .ch-cards > li { grid-row: auto; }
    .ch-card { grid-row: auto; }
  }
  /* two across, a row with a long name (data-long, the kids Competing row): "Junior Competitive Team" takes two lines
     beside "Junior League", which pushed its unit and its line 5 and 11 px lower than its neighbour's. Every paired
     name of such a row keeps two lines' room, so they start on one line (screens check, Chrome 116, 15 Nov 2026) */
  @media (min-width: 768px) and (max-width: 1179.98px) {
    .ch-cards[data-long] > li:not(:last-child:nth-child(odd)) .ch-name { min-height: calc(2 * 1.08em + 1px); }
    /* the same on the home page's What it costs, "Private or semi private lessons" beside Adult classes (18 Nov 2026) */
    #rt-list > li:not(:last-child:nth-child(odd)) .ch-name { min-height: calc(2 * 1.08em + 1px); }
  }
  /* four and five across, the same: every band of a row keeps the same rows. A card with no unit (Winter's Ages 4 to 6
     and Ages 7 and up) keeps the unit's line with an unseen character, and every name of a four across row keeps two
     lines' room, as a two line name takes ("Golf and adventure" at 1280). Their lines sat 22 and 25 px apart (screens
     check, Chrome 116, 17 Nov 2026) */
  @media (min-width: 1180px) {
    .ch-band:not(:has(.ch-per))::before { content: "\200b"; grid-area: per; margin-top: 5px; font-size: var(--fs-small); line-height: 1.2; visibility: hidden; }
    .ch-cards[data-n="4"]:not([data-stack]) .ch-name { min-height: calc(2 * 1.08em + 1px); }
    /* the home page's What it costs, five across: "Private or semi private lessons" takes two lines, so every name of
       the row keeps two lines' room and sits at its foot, as the newer browsers share it (screens check, Chrome 116,
       18 Nov 2026: that card's price and words sat 25 px lower) */
    #rt-list[data-n="5"] .ch-name { min-height: calc(2 * 1.08em + 1px); }
  }
}
@media (min-width: 1024px) {
  .ch-cards[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); --ch-pad: 24px; --ch-big: 30px; --ch-price: 42px; --ch-ratio: 3 / 2; }
}
@media (min-width: 1180px) {
  /* four across: a card is 253 px wide at 1180 and 1280, 292 at 1440. The name, "From" and the price share one line,
     so the side padding and the type follow the window between those widths (30 px from 1440) */
  .ch-cards[data-n="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    --ch-ratio: 3 / 2;
    --ch-pad: clamp(16px, calc(calc(1.5vw / var(--vz, 1)) - 2px), 22px);
    --ch-big: clamp(22px, calc(calc(1.4vw / var(--vz, 1)) + 6px), 26px);
    --ch-price: clamp(34px, calc(calc(1.8vw / var(--vz, 1)) + 14px), 40px);
  }
  .ch-cards[data-n="4"] .ch-from { margin-right: 4px; }
}
/* Five cards (What it costs with Winter golf, Ry, Sat 14 Nov 2026). In twos the fifth stands alone, one card wide and
   centred. Five across (from 1180) a card is 198 px at 1180 and 229 from 1440: the name takes its own line, "From"
   and the price start under it at the same left edge, and what it buys sits under the price, as it does four across. */
@media (min-width: 768px) and (max-width: 1179px) {
  .ch-cards[data-n="5"] > li:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--ch-gap)) / 2); }
}
@media (min-width: 1180px) {
  .ch-cards[data-n="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    --ch-ratio: 3 / 2;
    --ch-pad: clamp(16px, calc(calc(1.2vw / var(--vz, 1)) + 2px), 20px);
    --ch-big: clamp(22px, calc(calc(0.6vw / var(--vz, 1)) + 15px), 24px);
    --ch-price: clamp(30px, calc(calc(0.8vw / var(--vz, 1)) + 21px), 34px);
  }
  .ch-cards[data-n="5"] .ch-band { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "from price" "per per"; }
  .ch-cards[data-n="5"] .ch-name { margin: 0 0 10px; }
  .ch-cards[data-n="5"] .ch-from { margin-right: 6px; }
  .ch-cards[data-n="5"] .ch-price { justify-self: start; }
  .ch-cards[data-n="5"] .ch-per { justify-self: start; }
  /* a name on two lines (What it costs' "Private or semi private lessons", Dave, 17 Nov 2026) keeps every price on one
     line across the row: the names sit at the foot of their shared row, a one line name level with a long name's last line */
  .ch-cards[data-n="5"] .ch-band { grid-template-rows: 1fr auto auto; align-content: stretch; }
  .ch-cards[data-n="5"] .ch-name { align-self: end; }
  /* A row with a long name (data-long: the kids Competing row). Every name sits on one line (Ry, 9:10 PM Sun 15 Nov
     2026: "do we have to have junior competitive team on two lines"): a slimmer side padding, and all the names take
     one size that fits the longest, "Junior Competitive Team" (8.4 em), in the card: 23 px at 1440, the full 24 from
     about 1500, 19 at 1180. (8:57 PM: a size fitted to "Lessons with our instructors" was "a little bit small"; that
     card is now "Private lessons".) */
  .ch-cards[data-n="5"][data-long] { --ch-pad: 16px; }
  .ch-cards[data-n="5"][data-long] .ch-band { container-type: inline-size; }
  .ch-cards[data-n="5"][data-long] .ch-name { font-size: min(var(--ch-big), calc(100cqi / 8.6)); white-space: nowrap; }
  /* Winter's Juniors row, four across since Parent & Child moved to Adults and families (Ry, 9:39 PM Mon 16 Nov 2026),
     keeps the five across band: the name on one line on top, the price under it, its unit under that. Beside the price
     "Junior Competitive Team" took two lines and its unit, "the winter season", ran over the second (Ry's shot, 9:45 PM). */
  .ch-cards[data-stack] .ch-band { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "from price" "per per"; container-type: inline-size; }
  /* Its last card is "Private or semi private lessons" (Dave, 17 Nov 2026), longer than one line holds at that size, so
     in this row a name may take two lines, and every name keeps two lines' room so all the prices start level. */
  .ch-cards[data-n][data-long][data-stack] .ch-name { grid-row: name; margin: 0 0 10px; font-size: min(var(--ch-big), calc(100cqi / 8.6)); white-space: normal; min-height: calc(2 * 1.08em + 1px); }
  .ch-cards[data-stack] .ch-from { margin-right: 6px; }
  .ch-cards[data-stack] :is(.ch-price, .ch-per) { justify-self: start; }
  /* five across, a card with no unit (Winter's Ages 4 to 6 and Ages 7 and up, beside Junior Elite Team since Dave's
     updates of 18 Nov 2026) keeps the unit's line with an unseen character, so its name and price sit level with the
     row's (screens check, 18 Nov 2026: they were 22 px lower) */
  .ch-cards[data-n="5"] .ch-band:not(:has(.ch-per))::before { content: "\200b"; grid-area: per; margin-top: 5px; font-size: var(--fs-small); line-height: 1.2; visibility: hidden; }
}

/* ---------- Buttons: one filled button a screen (the action), an outline, a text link ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;         /* a long label ends in dots on its one line (below); the pill keeps its height */
  min-height: 56px;
  padding: 8px 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--f-text);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
/* One line, ending in dots (Dan: one line names and buttons end in dots). A flex box cannot put dots on its own bare
   words, so a button that holds only words is a block: its one line sits where the flex centring drew it (the
   padding is half of what the pill's height leaves over the line and its border; align-content centres the last part
   of a pixel, as a phone draws a 1.5 px border a little thinner). --btn-h is the pill's height, --btn-lh its line and
   --btn-bd its border, for a button with its own (css/hero.css). A button with an icon inside (Near me) keeps the
   flex box and wraps. */
.btn.btn.btn:not(:has(> *)) {   /* three classes: it must outrank .hero .btn */
  display: inline-block;
  vertical-align: top;
  align-content: center;
  padding-block: calc((var(--btn-h, 56px) - var(--btn-lh, 1em)) / 2 - var(--btn-bd, 0px));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.btn:active { background: var(--blue-press); }
/* Ryan's hero button is his own (css/hero.css): nothing more from here reaches it */
.btn:where(:not(.hero *)) { font-variant-numeric: tabular-nums; }
/* Depth (GUIDE DEPTH): the filled button stands on its own blue shade, rises under the pointer, sinks when pressed */
.btn:where(:not(.hero *)):not(.btn--line) { box-shadow: var(--depth-btn); }
.btn:where(:not(.hero *)):active { transform: scale(0.98); }
.btn:where(:not(.hero *)):not(.btn--line):active { box-shadow: var(--depth-btn-down); }
@media (hover: hover) {
  .btn:hover { background: var(--blue-press); }
  .btn:where(:not(.hero *)):not(.btn--line):not([disabled]):hover { box-shadow: var(--depth-btn-up); transform: translateY(var(--lift)); }
  .btn:where(:not(.hero *)):not(.btn--line):not([disabled]):hover:active { box-shadow: var(--depth-btn-down); transform: scale(0.98); }
}
/* Calm mode: the height still changes, nothing moves */
html.calm .btn:where(:not(.hero *)) { transform: none !important; }
@media (prefers-reduced-motion: reduce) { .btn:where(:not(.hero *)) { transform: none !important; } }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
/* The outline: the second door. Ink on light grounds, white on dark ones. */
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:active { background: rgba(127, 127, 127, 0.18); }
@media (hover: hover) { .btn--line:where(:not(.hero *)):hover { background: rgba(127, 127, 127, 0.14); box-shadow: inset 0 0 0 1.5px var(--ink), var(--depth-1); } }
/* ---------- The filled button is glass, not blue (Ry, 10:23 AM Tue 10 Nov 2026: "an almost clear glass", for every
   Book button, "recognizable throughout, but not this blue"). Added by Ryan's side as one block, so the kit's own
   lines above stand as they were: fold it in as you like.
   Over the film, a picture or a dark ground the glass is clear. On a light ground it is smoked, so the one action
   still leads its screen. White words on both, the same pill, the same lit rim: one button, known on sight.
   The light is drawn with gradients and the picture behind is only blurred: no SVG filter, so iPhone Safari draws
   it the same. The three heights (--depth-btn, up, down) are set again here, so every rule above still works. */
:root, [data-ground="paper"], [data-ground="mist"], [data-ground="sand"] {
  --glass: linear-gradient(180deg, rgb(50 54 64 / 0.86), rgb(14 15 17 / 0.94));
  --glass-up: linear-gradient(180deg, rgb(64 69 81 / 0.86), rgb(22 24 28 / 0.94));
  --glass-down: linear-gradient(180deg, rgb(30 33 40 / 0.92), rgb(8 9 11 / 0.96));
  --glass-back: blur(12px) saturate(1.6);
  --glass-rim: linear-gradient(140deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.1) 34%, rgb(255 255 255 / 0.05) 64%, rgb(255 255 255 / 0.28));
  --glass-words: none;
  --depth-btn: 0 1px 2px rgb(var(--depth-rgb) / 0.3), 0 14px 26px -10px rgb(var(--depth-rgb) / 0.5);
  --depth-btn-up: 0 2px 4px rgb(var(--depth-rgb) / 0.3), 0 20px 34px -12px rgb(var(--depth-rgb) / 0.55);
  --depth-btn-down: 0 1px 1px rgb(var(--depth-rgb) / 0.3);
}
[data-ground="dark"], [data-ground="black"], [data-ground="photo"], .hero {
  --glass: linear-gradient(180deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.05) 55%, rgb(255 255 255 / 0.11));
  --glass-up: linear-gradient(180deg, rgb(255 255 255 / 0.25), rgb(255 255 255 / 0.11) 55%, rgb(255 255 255 / 0.17));
  --glass-down: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03) 55%, rgb(255 255 255 / 0.07));
  --glass-back: blur(8px) saturate(1.75) brightness(0.92);
  --glass-rim: linear-gradient(140deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.2) 32%, rgb(255 255 255 / 0.12) 62%, rgb(255 255 255 / 0.7));
  --glass-words: 0 1px 3px rgb(3 10 19 / 0.5);
  --depth-btn: inset 0 -12px 16px -12px rgb(255 255 255 / 0.26), 0 2px 8px rgb(3 10 19 / 0.22), 0 18px 38px -14px rgb(3 10 19 / 0.6);
  --depth-btn-up: inset 0 -12px 16px -12px rgb(255 255 255 / 0.34), 0 3px 10px rgb(3 10 19 / 0.24), 0 24px 44px -16px rgb(3 10 19 / 0.66);
  --depth-btn-down: inset 0 2px 6px rgb(3 10 19 / 0.4), 0 1px 2px rgb(3 10 19 / 0.3);
}
.btn:where(:not(.btn--line)) {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-back);
  backdrop-filter: var(--glass-back);
  text-shadow: var(--glass-words);
}
/* The rim: bright where the light lands (top left) and where it leaves (bottom right), faint between */
.btn:where(:not(.btn--line))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.25px;
  border-radius: inherit;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.btn:where(:not(.btn--line)):active { background: var(--glass-down); }
@media (hover: hover) {
  .btn:where(:not(.btn--line)):hover { background: var(--glass-up); }
  .btn:where(:not(.btn--line)):hover:active { background: var(--glass-down); }
}
@media (forced-colors: active) { .btn::after { display: none; } }
/* The text link: a quiet third way on. 48 px tall to tap; .link--go adds a small arrowhead. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: var(--fs-btn);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.link:active { opacity: 0.6; }
.link--go::after {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms var(--ease);
}
@media (hover: hover) { .link--go:hover::after { transform: translateX(3px) rotate(45deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; color: inherit; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { opacity: 0.6; }

/* ---------- Pictures. .pic is the frame (set --ratio, --focus); it clips, so a picture can open and drift inside.
   .pic--fill fills a positioned parent (a full bleed photo ground) ---------- */
/* --ph: the frame waits in its picture's own tone (tools/pic.py prints it); a fill frame waits dark under white words */
.pic { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ratio, 3 / 2); background: var(--ph, #d9d6cf); }
.pic--fill { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; --ph: var(--g-photo); }
.pic picture { display: block; width: 100%; height: 100%; }
/* --pic-at aims the picture in its frame. (--focus still works where a builder set it on the frame, but it is the
   focus ring's colour everywhere else, so new work uses --pic-at.) */
.pic img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pic-at, var(--focus, 50% 50%)); }

/* ---------- Motion: one language on every page. Start states apply only under html.js and never in calm mode, so the
   page is complete with no JavaScript, in calm mode and under Reduce Motion. Each fires once, when it comes 5% above
   the screen's bottom: base.js adds .is-in, then .rv-done so nothing here lingers on the element.
   data-rv="lines" a headline. base.js splits it into words as it arrives; each line rises out of its own mask, 90 ms
                   after the one above. Afterwards it is plain text again.
   data-rv="rise"  words (p, headings, .sec-line) rise out of a fade; cards and rows rise further.
                   Words are never blurred, arriving or leaving (Dan, 11 Nov 2026: "It should be absolutely clear")
   data-rv="open"  a picture opens from a slightly smaller window while it settles from a gentle zoom
   data-rv="fade"  opacity only
   base.js's cascade clock writes --mo-d: whatever arrives together arrives in reading order, a beat apart, never more
   than 0.7 s behind. (style="--i:2" still works where no clock runs.) Only transform, opacity and clip-path
   move. ---------- */
html.js:not(.calm) [data-rv="lines"]:not(.mo-split):not(.rv-done) { opacity: 0; }
.mo-w { display: inline-block; }
html.js:not(.calm) .mo-split:not(.rv-done) .mo-w {
  /* one element is both the word and its mask: the clip moves down with it by exactly as much as it rose, so the
     window stays still on the line while the word comes up through it */
  transform: translate3d(0, calc(100% + 0.35em), 0);
  clip-path: inset(-0.4em -0.4em calc(100% + 0.05em) -0.4em);
}
html.js:not(.calm) .mo-split.is-in:not(.rv-done) .mo-w {
  transform: none;
  clip-path: inset(-0.4em -0.4em -0.3em -0.4em);
  transition: transform var(--mo-t-line) var(--mo-ease), clip-path var(--mo-t-line) var(--mo-ease);
  transition-delay: calc(var(--mo-d, 0ms) + var(--ln, 0) * var(--mo-line));
}
html.js:not(.calm) [data-rv="rise"]:not(.rv-done) { opacity: 0; transform: translate3d(0, var(--rv-rise, var(--mo-rise-card)), 0); }
html.js:not(.calm) [data-rv="rise"]:is(p, h1, h2, h3, h4, blockquote, .sec-line):not(.rv-done) { transform: translate3d(0, var(--rv-rise, var(--mo-rise-text)), 0); }
html.js:not(.calm) [data-rv="rise"].is-in:not(.rv-done) {
  opacity: 1; transform: none;
  transition: opacity var(--mo-t-fade) var(--mo-ease-soft), transform var(--mo-t-rise) var(--mo-ease);
  transition-delay: var(--mo-d, calc(var(--i, 0) * var(--rv-step)));
}
html.js:not(.calm) [data-rv="fade"]:not(.rv-done) { opacity: 0; }
html.js:not(.calm) [data-rv="fade"].is-in:not(.rv-done) { opacity: 1; transition: opacity var(--mo-t-fade) var(--mo-ease-soft); transition-delay: var(--mo-d, calc(var(--i, 0) * var(--rv-step))); }
html.js:not(.calm) [data-rv="open"]:not(.rv-done) { opacity: 0; clip-path: inset(6% 5% round calc(var(--rv-radius, 0px) + 4px)); }
html.js:not(.calm) [data-rv="open"].is-in:not(.rv-done) {
  opacity: 1; clip-path: inset(0 round var(--rv-radius, 0px));
  transition: opacity 500ms var(--mo-ease-soft), clip-path var(--mo-t-open) var(--mo-ease);
  transition-delay: var(--mo-d, calc(var(--i, 0) * var(--rv-step)));
}
/* the picture inside settles from 112% (the individual scale property, so it never fights a drift's transform);
   a card's own picture settles too, more gently, as the card rises */
html.js:not(.calm) [data-rv="open"]:not(.rv-done) :is(img, video) { scale: 1.12; }
html.js:not(.calm) [data-rv="rise"]:not(.rv-done) .pic :is(img, video) { scale: 1.06; }
html.js:not(.calm) :is([data-rv="open"], [data-rv="rise"]).is-in:not(.rv-done) :is(img, video) {
  scale: 1; transition: scale var(--mo-t-open) var(--mo-ease); transition-delay: var(--mo-d, calc(var(--i, 0) * var(--rv-step)));
}
[data-count] { font-variant-numeric: tabular-nums; }

/* data-drift: the picture drifts about 7% of its height as the page scrolls (base.js writes --drift, -1 to 1),
   scaled a little so no edge shows. Put it on the <picture> or <img> inside a .pic frame. A head at a photo's edge
   keeps that edge still: --drift-at on the frame (the kids What to expect coach: 100% 50%). */
html.js:not(.calm) [data-drift] { transform: translate3d(0, calc(var(--drift, 0) * 3.5%), 0) scale(1.08); transform-origin: var(--drift-at, 50% 50%); will-change: transform; }
/* The same drift on the browser's own engine, off the main thread (base.js stands its loop down here). The timeline
   is the frame's (the frame clips, so view() on the picture would never move), and the timeline lines come after
   the shorthand, which resets them. */
@supports (animation-timeline: view()) {
  .pic:has(> [data-drift]) { view-timeline: --df-pic block; }
  html.js:not(.calm) [data-drift] { animation: df-drift linear both; animation-timeline: --df-pic; animation-range: cover 0% cover 100%; }
  @keyframes df-drift {
    from { transform: translate3d(0, 3.5%, 0) scale(1.08); }
    to { transform: translate3d(0, -3.5%, 0) scale(1.08); }
  }
}

/* Calm mode (reduced motion, Save-Data, weak devices, the visitor's own switch): everything is simply there, still.
   No start state is drawn (every rule above is :not(.calm)); Reduce Motion turned on mid visit lands here too. */
html.calm [data-drift] { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-rv], [data-rv] :is(img, video), .mo-split, .mo-w { opacity: 1 !important; transform: none !important; scale: none !important; filter: none !important; clip-path: none !important; }
  [data-drift] { transform: none !important; }
}

/* ---------- Header: it floats. No bar, no fill, no shape (Dan's standing word).
   Words over mixed grounds, by tone and shadow: the marks take the tone of the section under the header's own line
   (ink over paper, mist and sand; white over dark, black and pictures). Behind them, three cases:
   1. A plain ground with nothing but words passing: a veil in that ground's own colour softens the words as they go
      under the marks, thinning to nothing 40 px below. It is only ever drawn over its own colour, so it cannot be seen.
   2. The same ground with a picture passing under the header (a tile, the lessons photo, the chart): the veil stays
      whole, so the picture slides under a clean band of its section's own colour and the marks never sit on it (Dave,
      15 Nov 2026: cutting the veil away over pictures left the menu words on the class card pictures).
   3. A picture band or the film: white marks with Maple Leaf's soft two layer shadow, on a top shade that is the
      hero's own (css/hero.css, .hero::before: darkest at the very top, gone 180 or 240 px down, no flat part), so it
      reads as light and never as a band.
   Each layer is cut at its section's edge (base.js), and a twin layer in the next section's tone shows on the other
   side of the edge, so no mark ever sits on the wrong ground. ---------- */
.top {
  --hh: var(--head-top);
  --shift: 0px;
  position: absolute;                      /* no JavaScript: it stays at the top of the hero and scrolls away */
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--head-top);
  pointer-events: none;                    /* the empty space between the marks never blocks the page under it */
}
html.js .top { position: fixed; }
.top[data-past] { --hh: var(--head-past); --shift: calc((var(--head-past) - var(--head-top)) / 2); }
.top-in {
  --over: var(--g-paper);                  /* the ground under this layer; the veil and the halo are made of it */
  --veil: var(--over);                     /* solid: a picture slides under a clean band, never shows through */
  --halo: color-mix(in srgb, var(--over) 94%, transparent);
  --veil-on: 1;
  --shade: 12 12 14;                       /* the hero's own shade colour (--hero-shade); its strength is --shade-top */
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--head-top) + var(--veil-max));
  isolation: isolate;
  color: #fff;
}
/* The copies (js/base.js): one for every ground on the page, each dressed once and never painted again. Scrolling
   only shows one or puts it away, by opacity, so its halo stays drawn. */
.top-in--twin { opacity: 0; will-change: opacity; }
.top-in--twin.is-on { opacity: 1; }
.top-in--twin, .top-in--twin * { pointer-events: none !important; }
.top-in[data-tone="dark"] { color: var(--ink-dark); }
.top-in[data-over="mist"] { --over: var(--g-mist); }
.top-in[data-over="sand"] { --over: var(--g-sand); }
.top-in[data-over="dark"] { --over: var(--g-dark); }
.top-in[data-over="black"] { --over: var(--g-black); }
.top-in[data-over="photo"] { --veil-on: 1; --shade-h: calc(var(--hh) + 48px); --shade-top: 0.5; }
@media (min-width: 768px) { .top-in[data-over="photo"] { --shade-h: calc(var(--hh) + 64px); --shade-top: 0.66; } }   /* over a picture band:
   a short soft shade behind the marks only (the hero's own form, ending 48 px under the row, 64 from 768), so the icons and links
   clear 4.5 to 1 on any part of the picture; it is too short to grey a centred title, and never a bar */
.top-in[data-over="film"] { --veil-on: var(--film-k, 0); }    /* it comes in as the hero's own top shade scrolls away */
.top-in::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: calc(var(--hh) + 40px);
  background-color: var(--veil);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--hh), rgb(0 0 0 / 0.94) calc(var(--hh) + 6px),
    rgb(0 0 0 / 0.8) calc(var(--hh) + 12px), rgb(0 0 0 / 0.6) calc(var(--hh) + 18px), rgb(0 0 0 / 0.38) calc(var(--hh) + 24px),
    rgb(0 0 0 / 0.18) calc(var(--hh) + 30px), rgb(0 0 0 / 0.05) calc(var(--hh) + 36px), transparent calc(var(--hh) + 40px));
  mask-image: linear-gradient(to bottom, #000 0, #000 var(--hh), rgb(0 0 0 / 0.94) calc(var(--hh) + 6px),
    rgb(0 0 0 / 0.8) calc(var(--hh) + 12px), rgb(0 0 0 / 0.6) calc(var(--hh) + 18px), rgb(0 0 0 / 0.38) calc(var(--hh) + 24px),
    rgb(0 0 0 / 0.18) calc(var(--hh) + 30px), rgb(0 0 0 / 0.05) calc(var(--hh) + 36px), transparent calc(var(--hh) + 40px));
  opacity: var(--veil-on);
  pointer-events: none;
  transition: opacity 250ms var(--ease);
}
.top-in[data-over="photo"]::before, .top-in[data-over="film"]::before {
  -webkit-clip-path: none;
  clip-path: none;
  height: var(--shade-h);
  background: linear-gradient(
    rgb(var(--shade) / var(--shade-top)) 0%,
    rgb(var(--shade) / calc(var(--shade-top) * 0.82)) 20%,
    rgb(var(--shade) / calc(var(--shade-top) * 0.58)) 40%,
    rgb(var(--shade) / calc(var(--shade-top) * 0.34)) 60%,
    rgb(var(--shade) / calc(var(--shade-top) * 0.13)) 80%,
    rgb(var(--shade) / 0) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}
/* The home's close (#feeling) carries its own scrim, so the header's shade would only grey half its title as it
   passes under. Only the home has #feeling; inner page photo heroes keep the shade. */
html.has-close .top-in[data-over="photo"]::before { opacity: 0; }   /* has-close: js/base.js, once, on the page with #feeling */
/* Hidden on the way down, back the moment you scroll up. The marks slide inside their layer, so the cut at a
   section's edge stays where the edge is. A tucked header takes its shade with it. Never tucked with a keyboard in it. */
.top-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--head-top);
  padding: 0 calc(var(--edge) - 15.98px) 0 var(--edge);   /* the menu button's two lines end on the right line, as the logo's
                                              ink starts on the left one (their ink ends 15.98 px inside the 48 px button) */
  transition: transform 420ms var(--ease), opacity 200ms linear;
  transform: translate3d(0, 0, 0);         /* the marks keep their own drawing: tucking the header away and bringing it
                                              back paints nothing (Safari paints a layer again when its transform
                                              starts from none, so it never is) */
  will-change: transform;
}
.top-row > * { pointer-events: auto; }
.top.is-hidden:not(:focus-within) .top-row { transform: translate3d(0, calc(-100% - 24px), 0); }
.top.is-hidden:not(:focus-within) .top-in::before { opacity: 0; }

/* The stacked logo (261 x 180, the ball on top), on Ry's left line: its ink 96 px tall from 768, 64 on phones (so GOLF
   ACADEMY can be read). Past the
   hero it shrinks to the emblem alone at 40 px: the stacked mark scales until its ball meets the emblem's and fades,
   while the emblem grows out of the ball's place. All transforms; nothing is laid out again. */
.logo {
  position: relative;
  flex: none;
  align-self: flex-start;
  width: calc(var(--lh) * 1.45px);
  height: calc(var(--lh) * 1px);
  margin: calc(var(--head-pad) - var(--lh) * 0.006111px) auto 0 calc(var(--lh) * -0.003889px);   /* the ink, not the box,
                                              16 px down and on the left line: the box's rim is 1.10 and 0.70 of 180 */
  line-height: 0;
}
.logo::after { content: ""; position: absolute; inset: -8px; }
.logo img { position: absolute; max-width: none; }
.logo-stack {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--lh) * 1.45px);
  height: calc(var(--lh) * 1px);
  transform-origin: 0 0;
  transition: transform 450ms var(--ease), opacity 250ms var(--ease);
}
.logo-stack img { inset: 0; width: 100%; height: 100%; }
/* White over the film and the photos, colour on a light ground (Ry, 8:02 PM Tue 10 Nov 2026, of the colour logo over
   the film: "lets go back to his all white but high quality crisp logo at the top left.. the one now kind of sticks
   out weirdly"). The colour logo over the film had been his 1:20 PM word; this one replaces it. */
.logo-c { opacity: 0; }
.top-in[data-tone="dark"] .logo-w { opacity: 0; }
.top-in[data-tone="dark"] .logo-c { opacity: 1; }
/* Past the hero the logo steps away at every width: the call, the menu and Book Now come back alone (Ry, 8:13 AM Wed
   11 Nov 2026, of the 40 px emblem on a wide screen: "why does this pop up so small, and why does it even pop up at
   all? Is that needed?"; Ry, Sat 14 Nov 2026, of the round colour logo on a phone, scrolling back up from the foot:
   "That should never happen on the mobile or on the desktop"). The stacked logo at the top of every page is the way
   home. It shrinks and fades as before, leaves once faded, and is back at once when the hero is. */
.top[data-past] .logo { width: 48px; height: 48px; margin-left: -4px; margin-top: calc((var(--head-past) - 48px) / 2);
  visibility: hidden; pointer-events: none; transition: visibility 0s linear 450ms; }
.top[data-past] .logo-stack { transform: translate(-19.8px, 6.37px) scale(calc(57.43 / var(--lh))); opacity: 0; }

.top-nav { display: none; }
.top-nav, .top-right { transform: translate3d(0, var(--shift), 0); transition: transform 450ms var(--ease); }
/* the 4 px step up past the hero is taken at once while the header is tucked away (it always is there, on a page
   with a headline): nothing is seen of it, and Safari paints every mark again to run it */
.top.is-hidden:not(:focus-within) .top-nav, .top.is-hidden:not(:focus-within) .top-right { transition: none; }
.top-right { display: flex; align-items: center; gap: 0; }
/* only its buttons take a press: where Book waits unseen, a tap reaches the page under it (end check, 17 Nov 2026) */
.top-row > .top-right { pointer-events: none; }
.top-right > * { pointer-events: auto; }
/* the smallest phones (320 wide, the first iPhone SE): the logo, Book, the phone and the menu took 337 px, so the menu
   button stood 17 px past the screen and its lines were cut (end check, 17 Nov 2026). Book's ring is a little slimmer
   and the gaps closer, so all four fit with the menu's lines on the right line. */
@media (max-width: 359.98px) {
  .top-row { gap: 4px; }
  .top-row .top-book { padding-inline: 14px; margin-right: 0; }
}
/* Book: a thin ring, clear inside. It shows only once the hero's own Book Now has scrolled away, and steps aside
   again while any section's own [data-book] button is on screen: never two Book buttons at once. */
.top-book {
  display: block;          /* a block, so a long label ends in dots; its one line sits where the flex centring drew it */
  height: 48px;
  min-width: 0;
  max-width: min(calc(42vw / var(--vz, 1)), 320px);   /* the phone and menu buttons always stay on a 320 px screen */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.55;
  padding: calc((48px - 1.55em) / 2) 20px;
  margin-right: 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms, background-color 150ms var(--ease);
}
.top-book.is-on { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease), visibility 0s, background-color 150ms var(--ease); }
@media (hover: hover) { .top-book:hover, .top-book.is-hover { background: rgba(127, 127, 127, 0.16); } }
.top-in--twin .icon-btn.is-down { opacity: 0.6; }   /* a press on the page's own layer, shown on the copies */
/* on the copies Book only fades (its own layer, so showing it paints nothing); no copy is ever pressed or tabbed to */
.top-in--twin .top-book { visibility: visible; will-change: opacity; transition: opacity 300ms var(--ease), background-color 150ms var(--ease); }
html:not(.js) .top-menu { display: none; }
/* Your account: a quiet link at the far right, like the menu's links, only where the bar has room for it beside Book
   (1440 and wider, measured 18 Nov 2026: 1366 leaves 116 px, it needs about 125). Narrower screens have it in the
   menu, and every page has it in the footer. */
.top-acct { display: none; }
@media (min-width: 1440px) {
  .top-acct { display: block; min-height: 48px; line-height: 1.55; padding: calc((48px - 1.55em) / 2 - 0.5px) 14px calc((48px - 1.55em) / 2 + 0.5px); margin-left: 4px; border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap; }
  .top-acct:hover, .top-acct.is-hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
}

/* On a plain ground every mark wears the ground's own colour around it: a thin casing right at its edge (the way
   a map letters a name over land) and a soft halo beyond. Both are unseen on the ground itself; over a passing
   picture they are a glow with no edge, never a band. Measured by tools/check.mjs: 4.5 to 1 beside every mark. */
.top-in .top-nav a, .top-in .top-book, .top-in .top-acct { text-shadow: 0 0 1px var(--halo), 0 0 2px var(--halo), 0 0 3px var(--halo), 0 0 5px var(--halo), 0 0 8px var(--halo), 0 0 12px var(--halo), 0 0 18px var(--halo), 0 0 26px var(--halo); }
/* the casing: only where the browser paints a text stroke behind its fill (the same browsers know light-dark()) */
@supports (paint-order: stroke fill) and (color: light-dark(#000, #fff)) {
  .top-in .top-nav a, .top-in .top-book, .top-in .top-acct { -webkit-text-stroke: 4px var(--over); paint-order: stroke fill; }
  .top-in[data-over="film"] .top-nav a, .top-in[data-over="film"] .top-book, .top-in[data-over="film"] .top-acct,
  .top-in[data-over="photo"] .top-nav a, .top-in[data-over="photo"] .top-book, .top-in[data-over="photo"] .top-acct { -webkit-text-stroke: 3px rgba(3, 10, 19, 0.34); }
}
.top-in .icon-btn svg { filter: drop-shadow(0 0 0.6px var(--over)) drop-shadow(0 0 1px var(--over)) drop-shadow(0 0 1px var(--over)) drop-shadow(0 0 2px var(--halo)) drop-shadow(0 0 5px var(--halo)) drop-shadow(0 0 10px var(--halo)); }
.top-in .top-book { box-shadow: inset 0 0 0 1px currentColor, 0 0 0 2px var(--over), inset 0 0 0 3px var(--over), 0 0 6px 3px var(--halo), inset 0 0 8px 4px var(--halo); }
.top-in[data-over="film"] .top-book, .top-in[data-over="photo"] .top-book { box-shadow: inset 0 0 0 1px currentColor, 0 0 0 2px rgba(3, 10, 19, 0.3), inset 0 0 0 3px rgba(3, 10, 19, 0.3), 0 0 8px 1px rgba(3, 10, 19, 0.34), inset 0 0 8px 1px rgba(3, 10, 19, 0.34); }
/* White marks over a picture or the film: a soft dark shadow, tight at the edge and wide behind (4.5 to 1 or better
   on the brightest sky, by the same measure) */
.top-in[data-over="film"] .top-nav a, .top-in[data-over="film"] .top-book, .top-in[data-over="film"] .top-acct,
.top-in[data-over="photo"] .top-nav a, .top-in[data-over="photo"] .top-book, .top-in[data-over="photo"] .top-acct { text-shadow: 0 0 1px rgba(3, 10, 19, 0.5), 0 0 3px rgba(3, 10, 19, 0.5), 0 1px 2px rgba(3, 10, 19, 0.5), 0 0 8px rgba(3, 10, 19, 0.5), 0 0 16px rgba(3, 10, 19, 0.55); }
.top-in[data-over="film"] .icon-btn svg, .top-in[data-over="photo"] .icon-btn svg { filter: drop-shadow(0 0 0.6px rgba(3, 10, 19, 0.6)) drop-shadow(0 0 1px rgba(3, 10, 19, 0.6)) drop-shadow(0 0 1.5px rgba(3, 10, 19, 0.5)) drop-shadow(0 1px 2px rgba(3, 10, 19, 0.5)) drop-shadow(0 0 6px rgba(3, 10, 19, 0.45)); }
/* The white logo over the film and the photos: crisp, no wide glow (Dave, Sat 14 Nov 2026: "the logo is white but
   blurry, it should stand out"; the 6 and 14 px glow behind it read as blur). A hairline casing right at the ink's
   edge and a short, small shadow under it: the edges stay sharp and the white still stands off a bright frame. */
.top-in[data-over="film"] .logo-w, .top-in[data-over="photo"] .logo-w { filter: drop-shadow(0 0 0.6px rgba(3, 10, 19, 0.6)) drop-shadow(0 1px 1.5px rgba(3, 10, 19, 0.5)); }
/* The page's own layer, once the copies stand (js/base.js): the one that is pressed, tabbed to and read aloud. It
   draws nothing but the focus ring, in the tone of the section on the header's line: every mark, halo and veil is
   drawn by the copy under it, and a hover or a press is shown there. */
.top-in--live { z-index: 2; }
.top-in--live::before { content: none; }
.top .top-in--live .top-nav a, .top .top-in--live .top-book, .top .top-in--live .top-acct { -webkit-text-fill-color: transparent; text-shadow: none; -webkit-text-stroke: 0; box-shadow: none; background: none; text-decoration: none; }
.top .top-in--live img, .top .top-in--live svg { visibility: hidden; }
.top :focus-visible { outline-color: currentColor; }

/* From 1100: the logo left, the links in the true centre (the outer columns are equal), Book on the right.
   Each link may take 13.5% of the width: "Private Lessons" (Ry, Thu 12 Nov 2026) needs 146 px, 148.5 at 1100.
   No phone icon and no menu button on desktop. */
@media (min-width: 1100px) {
  .top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-right: var(--edge); }
  .logo { justify-self: start; margin-right: 0; }
  .top-nav { display: flex; gap: 4px; min-width: 0; }
  .top-nav a { display: block; max-width: min(calc(13.5vw / var(--vz, 1)), 220px); overflow: hidden; text-overflow: ellipsis; min-height: 48px; line-height: 1.55; padding: calc((48px - 1.55em) / 2 - 0.5px) 14px calc((48px - 1.55em) / 2 + 0.5px); border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap; }
  /* (the half pixel: the capitals' middle sits 0.54 px under the line box's middle in this font, so up 0.5 puts it level
     with the logo ink's middle, 64 px down) */
  .top-nav a:hover, .top-nav a.is-hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .top-right { justify-self: end; min-width: 0; max-width: 100%; }
  .top-call, .top-menu { display: none; }
  .top-book { padding-inline: 22px; margin-right: 0; }
}
/* 1100 to 1279: the six sentence case names (Summer camps, Gift cards) need 48 px more than the old ones, so each link's
   pill is 4 px narrower a side here: the menu then clears the logo by 25 px or more at 1100 (navfit.js, 14 Nov 2026) */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .top-nav a { padding-inline: 10px; }
}
/* One proportion on every computer for the top bar too (Ry, 9:30 PM Sun 15 Nov 2026: "are the top nav bars ok also on
   each size screen?... and the logo on the top left... and the book now... make sure its all perfect and proportionate
   with what we like already"). What Ry liked is his 14 inch MacBook, 1512 wide. On a bigger screen the logo, the menu,
   Book and the bar's own heights grow by the same --k as the hero's headline and Book Now (css/hero.css: 1% of the
   width, or of a 16 to 9 screen as tall as this one when the screen is wider than that), so a 27 inch monitor shows
   the page as the MacBook does, only larger. Never smaller than today: --k is 1 at 1512 and under. The heights the
   scripts read (--head-top, --head-past, --veil-max) are registered lengths, so they read as plain pixels; only
   browsers that register them grow (transition-behavior arrived after @property in every engine). */
@property --head-top { syntax: "<length>"; inherits: true; initial-value: 96px; }
@property --head-past { syntax: "<length>"; inherits: true; initial-value: 64px; }
@property --veil-max { syntax: "<length>"; inherits: true; initial-value: 112px; }
/* The screen's size goes into --k through a registered length, so it reaches tan(atan2()) as plain pixels: every Safari
   (17.5, 18.2, 26.5 measured) works tan(atan2(100vw, 1512px)) out wrong, 9.25 on an iPad Pro in landscape where 0.91
   is right, and the top bar came out nine times its size (the iPad check, 16 Nov 2026). */
@property --kw { syntax: "<length>"; inherits: true; initial-value: 1512px; }
@supports (transition-behavior: allow-discrete) {
  @media (min-width: 1100px) and (min-height: 501px) {
    :root {
      --kw: min(calc(100vw / var(--vz, 1)), calc(177.78svh / var(--vz, 1)));
      --k: max(1, tan(atan2(var(--kw), 1512px)));
      --lh: calc(97.2042 * var(--k));
      --head-pad: calc(16px * var(--k));
      --head-top: calc(128px * var(--k));
      --head-past: calc(72px * var(--k));
      --veil-max: calc(120px * var(--k));
      --shade-h: calc(240px * var(--k));
    }
    .top-nav { gap: calc(4px * var(--k)); }
    .top-nav a {
      max-width: min(calc(13.5vw / var(--vz, 1)), calc(220px * var(--k)));
      min-height: calc(48px * var(--k));
      padding: calc((48px * var(--k) - 1.55em) / 2 - 0.5px) calc(14px * var(--k)) calc((48px * var(--k) - 1.55em) / 2 + 0.5px);
      font-size: calc(16px * var(--k));
    }
    /* The nav fit on narrow computers stays (1100 to 1279: 10 px each side, --k is 1 there). */
    @media (max-width: 1279.98px) { .top-nav a { padding-inline: 10px; } }
    .top-nav a:hover, .top-nav a.is-hover { text-underline-offset: calc(6px * var(--k)); }
    @media (min-width: 1440px) {
      .top-acct { min-height: calc(48px * var(--k)); padding: calc((48px * var(--k) - 1.55em) / 2 - 0.5px) calc(14px * var(--k)) calc((48px * var(--k) - 1.55em) / 2 + 0.5px); margin-left: calc(4px * var(--k)); font-size: calc(16px * var(--k)); }
      .top-acct:hover, .top-acct.is-hover { text-underline-offset: calc(6px * var(--k)); }
    }
    .top-book {
      height: calc(48px * var(--k));
      max-width: calc(320px * var(--k));
      padding: calc((48px * var(--k) - 1.55em) / 2) calc(22px * var(--k));
      font-size: calc(16px * var(--k));
    }
  }
}
html.calm .top-row, html.calm .logo-stack, html.calm .top-nav, html.calm .top-right { transition: opacity 200ms linear; }
html.calm .top.is-hidden:not(:focus-within) .top-row { transform: none; opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .top-row, .logo-stack, .top-nav, .top-right { transition: opacity 200ms linear !important; }
}

/* ---------- The phone menu: full screen, one short centred list (the five doors, Book, the phone, the email) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  height: calc(100dvh / var(--vz, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--head-top) + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--g-paper);
  color: var(--ink-dark);
  --focus: var(--ink);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.menu.is-open { opacity: 1; }
/* The open menu keeps the header's own top line: the colour stacked logo where the header's logo sits, the X where its
   menu button sits, so the screen reads as the header opened, not five words lost in white. A picture only (the
   header's own link to home sits under it). */
.menu::before {
  content: "";
  position: absolute;
  top: calc(var(--head-pad) - var(--lh) * 0.006111px + env(safe-area-inset-top));   /* as .logo: the ink on the lines */
  left: calc(var(--edge) - var(--lh) * 0.003889px);
  width: calc(var(--lh) * 1.45px);
  height: calc(var(--lh) * 1px);
  background: url(../media/brand/dfga_logo_stacked_colour.webp) left top / contain no-repeat;
  pointer-events: none;
}
.menu-close { position: absolute; top: calc((var(--head-top) - 48px) / 2 + env(safe-area-inset-top)); right: calc(var(--edge) - 15.98px); }
.menu-list { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; margin: auto 0 0; text-align: center; }
.menu-list a { display: flex; align-items: center; min-height: clamp(48px, calc(8dvh / var(--vz, 1)), 60px); padding: 0 16px; overflow-wrap: anywhere; font-family: var(--f-head); font-size: clamp(32px, calc(5.6dvh / var(--vz, 1)), 42px); line-height: 1.1; letter-spacing: var(--title-track); }
.menu-list a:active, .menu-contact:active { opacity: 0.6; }
.menu-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 320px; margin: clamp(16px, calc(4dvh / var(--vz, 1)), 36px) 0 auto; }
.menu-foot .btn { width: 100%; margin-bottom: 12px; }
.menu-contact { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Reachable by everyone: Increase Contrast gets stronger small print and lines (7 to 1 or better on every
   plain ground); Windows high contrast keeps every button outlined. Unknown queries are ignored. ---------- */
@media (prefers-contrast: more) {
  :root, [data-ground="paper"], [data-ground="mist"], [data-ground="sand"] { --muted: #494b56; --line: rgba(14, 15, 17, 0.4); }
  [data-ground="dark"], [data-ground="black"] { --muted: rgba(255, 255, 255, 0.86); --line: rgba(255, 255, 255, 0.45); }
}
@media (forced-colors: active) { .btn, .btn--line, .icon-btn { border: 1px solid ButtonText; } }

/* ---------- The booking over the page (js/base.js; Dan, 11 Nov 2026: "the background doesn't stay... it should be a
   little blurry"). From 768 wide a Book button opens book.html in a see-through frame over the page the visitor is on.
   The veil dims and softly blurs the page behind, never the window: the frame has no filter and rests on no
   transform, so its words stay sharp. Only opacity and transform move. ---------- */
.bk-layer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; outline: none; transition: visibility 0s linear 260ms; }
.bk-layer.is-open { visibility: visible; pointer-events: auto; transition: none; }
.bk-veil {
  position: absolute; inset: 0;
  background: rgb(11 12 14 / 0.45);
  -webkit-backdrop-filter: blur(8px) saturate(0.9); backdrop-filter: blur(8px) saturate(0.9);
  opacity: 0; transition: opacity 260ms var(--ease);
}
.bk-layer.is-open .bk-veil { opacity: 1; }
.bk-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border: 0; background: transparent; color-scheme: only light;
  opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.bk-layer.is-in .bk-frame { opacity: 1; transform: none; transition-duration: 240ms; }
html.calm .bk-frame { transform: none; }
/* A phone (js/base.js makes the booking ahead there too, Ry 17 Nov 2026): the window fills the screen, so no blur is
   drawn behind it, and it comes in a touch quicker */
@media (max-width: 767px) {
  /* the veil is the booking's white, so Safari's bars take the booking's colour as on its own page, never a grey */
  .bk-veil { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .bk-layer.is-in .bk-frame { transition-duration: 160ms; }
  /* the keyboard up: the booking rides above it, and the see-through keys show the booking's white under them, never
     the page behind; the same for the sliver above it as the keyboard goes away (an iPhone, 17 Nov 2026) */
  .bk-layer.is-in::before, .bk-layer.is-in::after { content: ""; position: absolute; left: 0; right: 0; height: calc(100vh / var(--vz, 1)); background: #fff; }
  .bk-layer.is-in::before { bottom: 100%; }
  .bk-layer.is-in::after { top: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bk-frame { transform: none; } .bk-veil, .bk-frame { transition-duration: 120ms; } }
/* The page behind holds still: no scroll, and nothing moves sideways when the scroll bar goes (--sbw is its width) */
html.bk-lock { overflow: hidden; }
html.bk-lock body { padding-right: var(--sbw, 0px); }
html.bk-lock .top { right: var(--sbw, 0px); }

/* the camps page by place (Dave's website list, 19 Nov 2026: "Half Day Camp Oakville, Half day camp Stouffville, Full
   day camp Bathurst Glen, Elite Camp Bathurst Glen, Golf and Adventure Camp Stouffville"): each card's name has its
   town on a quiet line under it, so the cards read by where they run; one card per camp (Ry, 20 Nov 2026) */
.ch-place { display: block; margin-top: 6px; font-family: var(--f-text); font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--muted); white-space: normal; }

