/* choice-look: "Picture cards", the second section of the four program pages (#doors). Every class starts ch-.
   Dan, 9:10 AM Wed 11 Nov 2026: make these boxes as clear as What it costs (the big price on the right, the big Book
   Now at the bottom) and as visual as the Maple Leaf site, where the pictures are the doors.
   A CARD, TOP TO BOTTOM, THE SAME ON ALL FOUR PAGES:
     1 the picture   a real one from media/pics that shows this choice; the whole card, picture too, is the Book link
     2 the band      the name in the serif on the left, the price in the serif on the right, what it buys under it
     3 one line      quiet, in the reading colour
     4 the facts     camps and lessons: label left, answer right, between hairlines; Junior League and Team: a line
     5 Book Now      one filled pill, the card's full width (the kit's smoked glass on a light ground)
   Side by side, the cards of a row share their five rows (subgrid), so pictures, prices, facts and Book Now all sit
   on the same lines. Under each row of cards a sixth track is the gap, so the cards never touch.
   Phones: one sideways row, a card a swipe (the end of this file), the picture a calm 2 to 1, so a card is a
   picture and its price, not a picture alone. Two across from 768; three (camps) from 1024; four from 1180. The two team or "for two" cards sit under the
   four, as wide as two of them, their pictures the same height as the four's. */

/* THE CARD ITSELF (.ch-cards, .ch-card, .ch-pic, .ch-band, .ch-name, .ch-cost, .ch-say, .ch-meta, .ch-facts, .ch-go,
   its hover and press, and its two, three and four across) LIVES IN css/base.css since 6:41 PM Wed 11 Nov 2026: the
   home page's What it costs cards are the same card, and the home page does not read this file. Change the card there. */

/* ---------- Two kinds on one page (kids, adults): A CENTRED HEADING OVER EACH ROW OF CARDS ----------
   Dan, 5:50 PM Wed 11 Nov 2026, on "4 week classes / One class a week. 55 minutes. 6 golfers at most." and "Teams /
   Practice and matches.": "Is easily missed. See if we can find a better spot for that, either centered or
   incorporated into the cards ... It's just easily missed when it's on the left side there. That should be
   consistent on all pages as well". Until then the name sat at the row's left edge, its line small and grey beside it.
   Now the name stands in the middle of the page, under the question it belongs to, a hairline running out from it to
   each edge of the row (the hairline that used to part the two kinds: it now parts them AND carries the name), and
   its line is under it, centred, in the reading colour at the reading size. Said once a row, never on every card: the
   cards stay as they are.
   The markup, the same on every page (Ryan's side: this is what gen.py writes for a kind):
     <div class="ch-kind">
       <header class="ch-kind-head" data-rv="rise" style="--i:1">
         <h3 class="ch-kind-name">4 week classes</h3>
         <p class="ch-kind-say"><span>One class a week.</span> <span>55 minutes.</span> <span>6 golfers at most.</span></p>
       </header>
       <ul class="ch-cards" data-n="4"> ... </ul>
     </div>
   Each sentence of the line is its own <span>, so on a phone the line breaks between sentences, never inside one
   ("55 / minutes"); a sentence wider than the page still wraps inside itself.
   A long name wraps in the middle and the hairlines keep 16 px each; a long line wraps, balanced, at 60 characters. */
.ch-kind { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); min-width: 0; }
.ch-kind + .ch-kind { margin-top: var(--s-5); }
.ch-kind-head {
  display: grid;
  grid-template-columns: minmax(16px, 1fr) minmax(0, auto) minmax(16px, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  margin: 0;
  min-width: 0;
  text-align: center;
}
.ch-kind-head::before,
.ch-kind-head::after { content: ""; grid-row: 1; height: 0; border-top: 1px solid rgb(14 15 17 / 0.16); }
.ch-kind-head::before { grid-column: 1; }
.ch-kind-head::after { grid-column: 3; }
.ch-kind-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--f-head);
  font-weight: var(--w-head);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ch-kind-say {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  min-width: 0;
  max-width: min(100%, 60ch);
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ch-kind-say > span { display: inline-block; max-width: 100%; }
/* the head coach line on Competing: three short centred lines, his name first, no face
   (Ry, Tue 17 Nov 2026: "I don't want to take up too much room"; "I like it without the face") */
.ch-kind-say.ch-coach { display: grid; justify-items: center; row-gap: 2px; width: fit-content; margin-inline: auto; text-align: center; }
.ch-kind-say.ch-coach > span { display: block; }
.ch-coach-n { font-size: 17px; font-weight: 650; line-height: 1.3; color: var(--ink); }
.ch-coach-h { font-size: var(--fs-small); font-weight: 500; line-height: 1.4; color: var(--muted); }

/* ---------- The camp weeks: gone (Dan, 7:26 PM Wed 11 Nov 2026: no dates on the camps page; the line under
   "Which camp?" says July and August, and the booking shows each camp's weeks). ---------- */

/* ---------- Side by side: the cards of a row share their rows ---------- */
@media (min-width: 768px) {
  .ch-kind + .ch-kind { margin-top: var(--s-6); }
  .ch-kind-head { column-gap: 32px; }
  .ch-kind-name { font-size: 48px; }
  .ch-kind-say { font-size: 20px; }
}
@media (min-width: 1180px) {
  /* the two under the four take the four's padding and type, so both rows read as one set */
  .ch-kind .ch-cards[data-n="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); }
  /* the two under the four: each as wide as two of them, their pictures as tall as the four's */
  /* (the kind is the container: a card in a subgrid must never be one, or it stops sharing its rows) */
  .ch-kind { container-type: inline-size; }
  /* (Safari 15 has no container units: the column's width stands in for the kind's, or the pictures drew 0 high) */
  .ch-kind .ch-cards[data-n="2"] .ch-pic { aspect-ratio: auto; height: calc((min(calc(100vw / var(--vz, 1)) - 2 * var(--gutter), var(--max)) - 3 * var(--ch-gap)) / 6); height: calc((100cqw - 3 * var(--ch-gap)) / 6); }
}


/* ---------- Which lesson?: the small line under the cards (the packs of 5), on its own line above the HST line ---------- */
.pg-also { display: block; overflow-wrap: anywhere; }

/* ---------- ONE SCREEN, WITH THE PICTURES (Which lesson?, Which camp?) ----------
   Dan, Wed 11 Nov 2026, on Which lesson? at his laptop (a window 1512 by 828): "doesn't fit nicely on my laptop
   screen. I have to scroll to see the full page now. That should never happen."
   css/program.css (part 2) already makes this section follow the window's height (--pg-u: 0 px of spare room in a
   window 720 tall, 30 px from 908), but it was written for the cards before they had pictures. With a picture and four
   price rows a card was 746 px tall, the section 982 from its title to its last line: more than the whole window.
   So, in a wide window (the same test as css/program.css), on the pages with ONE row of cards:
     1 the picture gives way first: it keeps its full width and is cut shorter, a wider strip of the same picture
       around the same focus point (--pic-at). It is as tall as the window allows, never taller than its 3 to 2,
       never shorter than 104 px (in a window that short the section runs on, as it always did).
     2 "for both", "for all three" stand on the price's own line, to its left, so a row is one line.
     3 the card's airs, its type and Book Now follow the spare room, as the title already did.
     4 the packs of 5 and the HST line share one line.
     5 the section's own air above and below follows the window's height.
   THE TWO NUMBERS A PAGE (--fit-rest, --fit-k) are everything from the top of the window to its bottom except the
   picture: the top bar (72), 16 px over the title, the title and its line, the card under its picture, the last
   line, and the room kept under it (never less than 5% of the window: the reveal in js/base.js waits for that).
   --fit-rest is that at 720 px of window, --fit-k how much of each spare pixel it takes. Measured, not guessed:
   work/2026-11-11-website/dan-asks/fit-screen/measure.mjs prints the room left at every size. If a card gains a row
   or a line wraps, run it again and raise --fit-rest by what it shows.
   Kids' and adults' classes (two kinds, six cards, two rows of pictures) take only 5: six picture cards and two
   headings are taller than a laptop's window at any picture height. */
@media (min-width: 1024px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  /* the section's air from 1180 wide: css/base.css, one screen a section, centred (Ry, 9:37 to 9:41 AM Mon 16 Nov
     2026). Narrower it keeps this, its own: */
  .pg-fit {
    --pg-pad: clamp(72px, calc(var(--pg-vh) * 0.12), var(--section));
    padding-block: var(--pg-pad);
    scroll-margin-top: calc(var(--head-past) + 16px - var(--pg-pad));
  }
  .pg-fit:not(.pg-fit--sets) .sec-title { font-size: min(var(--fs-title), max(44px, calc(56px + var(--pg-u) * 0.6))); }
  .pg-fit:not(.pg-fit--sets) .sec-head { margin-bottom: max(10px, calc(14px + var(--pg-u) * 0.4)); }
  .pg-fit > .wrap > .ch-cards .ch-pic { width: 100%; max-height: max(96px, calc(var(--pg-vh) - var(--fit-rest, 0px) - var(--pg-u) * var(--fit-k, 0))); }
  .pg-fit > .wrap > .ch-cards[data-n="3"] { --fit-rest: 600px; --fit-k: 3.3; --ch-pad: calc(18px + var(--pg-u) * 0.13); --ch-big: calc(27px + var(--pg-u) * 0.1); --ch-price: calc(36px + var(--pg-u) * 0.13); }
  .pg-fit > .wrap > .ch-cards[data-n="4"] { --fit-rest: 626px; --fit-k: 3; }
  /* four cards stand in two rows of two under 1180 wide: two rows never fit one window, so cutting the pictures
     there only left a thin strip with heads cut (Which camp? and Which winter program? at 1024 by 768 and 1097 by
     617, the screens check, 16 Nov 2026). Under 1180 they keep their own 2 to 1, as from 768 */
  @media (max-width: 1179.98px) { .pg-fit > .wrap > .ch-cards[data-n="4"] .ch-pic { max-height: none; } }
  .pg-fit > .wrap > .ch-cards .ch-band { padding-top: calc(12px + var(--pg-u) * 0.13); }
  .pg-fit > .wrap > .ch-cards .ch-per { margin-top: calc(3px + var(--pg-u) * 0.05); }
  .pg-fit > .wrap > .ch-cards .ch-say { margin-top: calc(6px + var(--pg-u) * 0.07); line-height: 1.4; }
  .pg-fit > .wrap > .ch-cards .ch-facts { margin-top: calc(10px + var(--pg-u) * 0.13); }
  .pg-fit > .wrap > .ch-cards .ch-facts > div { padding-block: calc(6px + var(--pg-u) * 0.05); }
  .pg-fit > .wrap > .ch-cards .ch-facts .ch-price { font-size: calc(21px + var(--pg-u) * 0.05); }
  .pg-fit > .wrap > .ch-cards .ch-go { margin-top: calc(12px + var(--pg-u) * 0.13); min-height: max(40px, calc(44px + var(--pg-u) * 0.2)); }
  /* the camp cards hold more words (four rows, one of them two lines): their rows sit a little closer */
  .pg-fit > .wrap > .ch-cards[data-n="4"] .ch-facts > div { padding-block: calc(5px + var(--pg-u) * 0.07); }
  .pg-fit > .wrap > .ch-cards[data-n="4"] :is(dt, dd) { line-height: 1.3; }
  /* Which lesson?'s price rows sit 4 px closer (16 px a card): that room goes to the pictures (below) */
  .pg-fit > .wrap > .ch-cards[data-n="3"] .ch-facts > div { padding-block: calc(4px + var(--pg-u) * 0.05); }
  .pg-fit:not(.pg-fit--sets) .pg-hst { margin-top: max(10px, calc(14px + var(--pg-u) * 0.3)); }
  /* a picture whose faces are near its top can name a second focus point for the short cut (--pic-at-short) */
  .pg-fit > .wrap > .ch-cards .ch-pic img { object-position: var(--pic-at-short, var(--pic-at, 50% 50%)); }
  .pg-fit .pg-also { display: inline; }
  /* the last line fades in where it stands: a line that rises starts lower, inside the window's bottom 5%, where
     the reveal (js/base.js) never sees it, and it would stay hidden in a window the section just fills */
  .pg-fit .pg-hst { --rv-rise: 0px; }
}
/* WHICH LESSON?: THE PICTURES SHOW THEIR MOMENT (Ry, 6:29 PM Thu 12 Nov 2026, at his laptop, a window 1512 by 828:
   "you can't see what's happening in the image properly, the way that it was intended"). There the pictures were cut
   to a strip 2.32 times as wide as tall: the coach's hands on the grip and the senior coach's clipboard fell off the
   bottom. Where the three cards are wide (1180 up) the picture now takes the room the section had spare under its
   last line, plus the 16 px the closer price rows give: 196 px tall at 1512 by 828, the cards' own 2 to 1, so the
   hands and the clipboard show whole. Still one screen: measured from 720 to 1080 tall, the air under the last line
   stays at least 5% of the window at every size. Narrower (1024 to 1179) the rows' 16 px stay as air: a line wraps
   there, and that room was 1 px short at 1024 by 768. Only Which lesson? has three cards; no other page moves. */
@media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  .pg-fit > .wrap > .ch-cards[data-n="3"] { --fit-rest: 575px; }
  /* each lesson card says where it is, summer and winter (Ry, Fri 13 Nov 2026: "Can't the where and when sit in the
     chart"). Three towns stay one line, so the pictures keep the room they had: the label and towns sit 10 px apart,
     and under 1440 wide the towns are 14 px */
  .pg-fit > .wrap > .ch-cards[data-n="3"] .ch-fact-where { column-gap: 10px; }
}
@media (min-width: 1180px) and (max-width: 1439px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  .pg-fit > .wrap > .ch-cards[data-n="3"] .ch-fact-where :is(dt, dd) { font-size: 14px; }
}
/* a price row is one line from the width where the cards stand side by side: who it is for, small and grey, then the
   price, so the prices keep one right edge. A long one wraps under, never out. */
@media (min-width: 1024px) {
  .pg-fit .ch-facts dd:has(.ch-fact-per) { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; align-items: baseline; column-gap: 10px; }
  .pg-fit .ch-facts .ch-fact-per { order: -1; display: inline; margin-top: 0; min-width: 0; overflow-wrap: anywhere; }
}

/* ---------- LOOK A: "Which class fits?" IN ONE SCREEN, ONE KIND AT A TIME (kids, adults) ----------
   A DESIGN FOR DAN, NOT LIVE. Dan, Wed 11 Nov 2026, 7:50 PM: "I have to scroll to see the full page now. That should
   never happen." Six picture cards under two headings were 1,342 px from the question to the HST line at his laptop
   (a window 1512 by 828, 756 under the top bar).
   In a wide window the two kinds share ONE place and a quiet switch over them says which shows (the home map's
   Summer / Winter switch, on the light ground). Its two words are the kinds' own names, so the heading is not drawn
   twice: the name stays in the page for a screen reader, and the kind's line stands centred under the switch.
   Both kinds are laid in the same cell, so the section is one height whichever shows and nothing jumps; the one not
   shown is hidden (opacity and visibility only) and inert. The cards are the cards: picture, name and price, the
   line, Book Now. The picture gives way first in a short window, as on Which lesson? and Which camp? above.
   --fit-rest: everything from the window's top to its bottom except the picture, at 720 px of window (measured).
   Tablets, upright windows and no script: the switch is not drawn; both kinds, one under the other. Phones draw it
   too: the end of this file. */
.ch-switch { display: none; }
@media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  .pg-fit--a[data-ch-on] .ch-switch:not([hidden]) {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: fit-content;
    max-width: 100%;
    margin: 0 auto max(20px, calc(16px + var(--pg-u) * 0.4));
    padding: 4px;
    border-radius: 999px;
    background: var(--g-paper);
    box-shadow: inset 0 0 0 1.5px var(--ink);
  }
  .pg-fit--a .ch-switch::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: var(--ink);
    transition: transform 300ms var(--ease);
  }
  .pg-fit--a[data-ch-on="1"] .ch-switch::before { transform: translateX(100%); }
  html.calm .pg-fit--a .ch-switch::before { transition: none; }
  .ch-seg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: clamp(46px, calc(50px + var(--pg-u) * 0.2), 56px);
    padding: 6px 44px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--ink);
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color 300ms var(--ease), background-color 150ms var(--ease);
    touch-action: manipulation;
  }
  .ch-seg[aria-pressed="true"] { color: var(--g-paper); }
  @media (hover: hover) { .ch-seg[aria-pressed="false"]:hover { background: rgb(14 15 17 / 0.06); } }
  .ch-seg:focus-visible { outline-offset: -3px; }
  .ch-seg[aria-pressed="true"]:focus-visible { outline-color: var(--g-paper); }
  /* the two kinds in one cell */
  .pg-fit--a[data-ch-on] .ch-kinds { display: grid; grid-template-columns: minmax(0, 1fr); }
  .pg-fit--a[data-ch-on] .ch-kind { grid-area: 1 / 1; grid-template-rows: auto 1fr; row-gap: max(20px, calc(16px + var(--pg-u) * 0.5)); margin-top: 0; transition: opacity 260ms var(--ease), visibility 0s linear 0s; }
  .pg-fit--a[data-ch-on="0"] .ch-kind:nth-child(2),
  .pg-fit--a[data-ch-on="1"] .ch-kind:nth-child(1) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms var(--ease), visibility 0s linear 160ms; }
  html.calm .pg-fit--a .ch-kind { transition: none !important; }
  /* the switch carries the kind's name: the heading stays for a screen reader, its hairlines go */
  .pg-fit--a[data-ch-on] .ch-kind-head { display: block; }
  .pg-fit--a[data-ch-on] .ch-kind-head::before, .pg-fit--a[data-ch-on] .ch-kind-head::after { content: none; }
  .pg-fit--a[data-ch-on] .ch-kind-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pg-fit--a[data-ch-on] .ch-kind-say { margin-inline: auto; font-size: 18px; line-height: 1.3; }
  /* the picture gives way first; the card's airs follow the spare room */
  /* air between the question, the switch, its line and the cards: never under 18 to 20 px, the picture gives it
     (Ry, 6 PM Sat 14 Nov 2026, on Dave's MacBook Air: "whats up wth the spacing") */
  .pg-fit--a[data-ch-on] .sec-head { margin-bottom: max(18px, calc(14px + var(--pg-u) * 0.6)); }
  /* the switch's two words and the cards' names say what the question's line said ("Start with your child's age",
     "Come on your own, or bring someone"): on a laptop it gives its room to the cards' Where and When; phones keep it */
  .pg-fit--a[data-ch-on] .sec-head .sec-line { display: none; }
  .pg-fit--a[data-ch-on] .ch-cards { --fit-rest: 625px; --fit-k: 6; }
  /* every card says its own Where and When in a small chart (Ry, Fri 13 Nov 2026: "Can't the where and when sit in the
     chart"): tight rows, so the picture gives as little as it can */
  .pg-fit--a[data-ch-on] .ch-cards .ch-facts { margin-top: calc(8px + var(--pg-u) * 0.2); }
  .pg-fit--a[data-ch-on] .ch-cards .ch-facts > div { padding-block: calc(4px + var(--pg-u) * 0.1); column-gap: 12px; }
  /* the chart at 14 px, as the lessons' towns under 1440 wide: a two line answer is 10 px shorter, and the picture keeps it
     (Ry, 2:24 PM Fri 13 Nov 2026, on the charted cards: "all the images are cut off now") */
  .pg-fit--a[data-ch-on] .ch-cards .ch-facts :is(dt, dd) { font-size: 14px; line-height: 1.3; }
  /* one kind shows at a time and both share one cell, so the shorter kind's spare height goes to its pictures, never
     to a gap above Book Now (Ry, Fri 13 Nov 2026, on the charted cards: "all the images are cut off now") */
  .pg-fit--a[data-ch-on] .ch-cards { grid-auto-rows: 1fr auto auto auto auto var(--ch-gap); }
  .pg-fit--a[data-ch-on] .ch-cards .ch-pic { width: 100%; aspect-ratio: auto; height: auto; align-self: stretch; max-height: none; contain: size;
    min-height: max(104px, calc(var(--pg-vh) - var(--fit-rest) - max(0px, var(--pg-u)) * var(--fit-k) - min(0px, var(--pg-u)) * 5));   /* Safari 15 */
    min-height: min(calc((100cqw - 3 * var(--ch-gap)) / 6), max(104px, calc(var(--pg-vh) - var(--fit-rest) - max(0px, var(--pg-u)) * var(--fit-k) - min(0px, var(--pg-u)) * 5))); }
  .pg-fit--a[data-ch-on] .ch-cards .ch-pic img { object-position: var(--pic-at-short, var(--pic-at, 50% 50%)); }
  /* the picture fills its box from the box's own edges: Safari left a percent height unresolved after a tab switch, so
     the photos drew at their own shape with a strip of plain colour under them (kids Competing, 15 Nov 2026) */
  .pg-fit--a[data-ch-on] .ch-cards .ch-pic picture { position: absolute; inset: 0; }
  /* a tall laptop gives the pictures its spare height, so a 3:2 photo of a row of heads can come out near square: a
     picture can name where to aim then (--pic-at-squarish under 13:10, --pic-at-square under 112:100), so a head at
     the side is wholly in or wholly out, never cut (Dave's rule: heads whole) */
  .pg-fit--a[data-ch-on] .ch-cards .ch-pic { container: ch-pic / size; }
  @container ch-pic (max-aspect-ratio: 13/10) { .pg-fit--a[data-ch-on] .ch-cards .ch-pic img { object-position: var(--pic-at-squarish, var(--pic-at-short, var(--pic-at, 50% 50%))); } }
  @container ch-pic (max-aspect-ratio: 112/100) { .pg-fit--a[data-ch-on] .ch-cards .ch-pic img { object-position: var(--pic-at-square, var(--pic-at-squarish, var(--pic-at-short, var(--pic-at, 50% 50%)))); } }
  .pg-fit--a[data-ch-on] .ch-cards .ch-band { padding-top: calc(13px + var(--pg-u) * 0.4); }
  .pg-fit--a[data-ch-on] .ch-cards .ch-say { margin-top: calc(6px + var(--pg-u) * 0.3); line-height: 1.35; }
  .pg-fit--a[data-ch-on] .ch-cards .ch-go { margin-top: calc(10px + var(--pg-u) * 0.6); min-height: max(40px, calc(42px + var(--pg-u) * 0.8)); }
  .pg-fit--a[data-ch-on] .pg-hst { margin-top: max(14px, calc(14px + var(--pg-u) * 0.6)); --rv-rise: 0px; }
}
/* no subgrid (a Chrome before 117, Dave's MacBook Air): every card one row. The pictures keep one height, so the
   names, prices and lines start on one line in every card; the spare height sits over the Where and When chart, which
   stands with Book Now on the card's foot (a picture taking each card's own spare put the names at four heights) */
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
    .pg-fit--a[data-ch-on] .ch-cards { grid-auto-rows: auto; row-gap: var(--ch-gap); margin-bottom: 0; }
    .pg-fit--a[data-ch-on] .ch-card { grid-template-rows: auto auto auto 1fr auto; }
    .pg-fit--a[data-ch-on] .ch-cards .ch-facts { align-self: end; }
  }
}
/* no container units (Safari 15, the oldest Dave's MacBook Air can run): the pictures of Which class fits? on Junior
   golf and Adult classes still drew 0 high under the plain min-height above (real Monterey Safari 15.6 on BrowserStack,
   16 Nov 2026). There each picture keeps its own 3 to 2 from its card's width, nothing measured */
@supports not (width: 1cqw) {
  @media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
    .pg-fit--a[data-ch-on] .ch-cards .ch-pic { contain: none; min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  }
}

/* ---------- PHONES: EVERY "WHICH ...?" IS ONE SIDEWAYS ROW ----------
   Ry, 2:40 PM Sat 14 Nov 2026, on Junior golf: "there's a lot of scrolling under the 4-week classes and under the
   league, team, and elite"; and 2:50 PM: "should we have the scrolling to the right even for the 'Which Camp' section
   or 'Which Classes' section in each of the different pages? For consistency ... I trust you to do it consistently
   across the board". So under 768 wide, on all five program pages, the cards stand in one sideways row, as What to
   Expect does: a card a swipe, the next card peeking 28 px at the right, a flick stops on the next card (snap with
   stop), a quiet "1 of 4" under the row (js/sections/pg-*-2-fit.js). Every card keeps its picture, price, Where and
   When and Book Now. The cards of a row are one height and every picture in it is one size, 2 to 1, so nothing jumps
   as the row is swiped (Ry, 17 Nov 2026, on Private lessons: "I don't want the pictures to jump like that, but I also
   want the cards to stay neat"; until then a shorter card gave its spare height to its picture). The names start on
   one line; the facts and Book Now sit together at the card's foot, on one line across the row; a shorter card's
   spare height sits between its line and its facts, never above Book Now (the laptop's rule, Ry, Fri 13 Nov 2026).
   The two pages with two kinds (Junior golf, Adult classes) draw their switch here as on a laptop: the kinds' own
   names over the row, one kind at a time, so the section is one card tall and "Competing" stands right
   under the question, where an older junior looks first. Tablets and computers: unchanged. No script: no switch, each
   kind its own sideways row. */
@media (max-width: 767.9px) {
  .pg-fit .ch-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 28px);
    gap: 12px;
    /* the row runs edge to edge; room above and below for the cards' shade, which a scrolling row would cut. Below:
       the shade's full 56 px, so it fades out before the row ends (at 28 px its edge drew a faint band across the
       page under "1 of 4"; Ry, 20 Nov 2026, on the lines under the cards: "it gets messy. On mobile") */
    margin: -12px calc(-1 * var(--gutter)) -56px;
    padding: 12px var(--gutter) 56px;
    overflow-x: auto;
    overflow-y: hidden;                 /* sideways only: a row a few px taller than its frame would drift under the thumb */
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pg-fit .ch-cards::-webkit-scrollbar { display: none; }
  .pg-fit .ch-cards > li { scroll-snap-align: start; scroll-snap-stop: always; }
  .pg-fit .ch-card { grid-template-rows: auto auto auto 1fr auto; }
  .pg-fit .ch-pic { aspect-ratio: 2 / 1; height: auto; }
  .pg-fit .ch-card > :is(.ch-facts, .ch-meta) { align-self: end; }
  /* The cards of a row share their rows, as What to expect does: picture, name and price, the line, each fact, Book Now.
     A name on two lines (Junior Competitive Team) keeps every card's line on one level, each fact's thin line meets its
     neighbour's, and a card with fewer facts keeps its spare room above Book Now (Ry, 17 Nov 2026: "consistency as you
     scroll ... I also want the cards to stay neat"). Room for 5 facts (Summer camps has 5); a row no card uses is
     nothing high, and a kind shorter than its neighbour kind puts the difference above Book Now too. */
  @supports (grid-template-rows: subgrid) {
    .pg-fit .ch-cards { grid-template-rows: repeat(8, auto) 1fr auto; row-gap: 0; }
    .pg-fit .ch-cards > li { grid-row: span 10; grid-template-rows: subgrid; }
    .pg-fit .ch-card { grid-row: span 10; grid-template-rows: subgrid; }
    .pg-fit .ch-card > .ch-facts { grid-row: 4 / span 5; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; align-self: stretch; }
    .pg-fit .ch-card > .ch-go { grid-row: 10; }
  }
  /* "1 of 4": where the row stands, quiet and centred under it (12 px under the cards; in a kind, under its row gap) */
  .ch-at { margin: 12px 0 0; font-size: 13px; line-height: 1; letter-spacing: 0.02em; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
  .ch-kind > .ch-at { margin-top: calc(12px - var(--s-3)); }
  /* under the cards a phone keeps only "1 of 4", the line to the other cards and "Prices are before HST.": the
     extra "Never played? ..." and "Prefer a group class? ..." lines stay on computers (Ry, 20 Nov 2026: "What's all
     that little writing underneath on the bottom? Just be careful with that stuff because it gets messy. On mobile") */
  .pg-fit .pg-also { display: none; }

  /* the switch, the laptop's own look at the page's width: each half as wide as its words and an even share of the
     rest, so both words keep one line down to 360 wide; the lit one a paper pill */
  .pg-fit[data-ch-on] .ch-switch:not([hidden]) {
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    margin: 0 0 16px;
    padding: 4px;
    border-radius: 999px;
    background: var(--g-paper);
    box-shadow: inset 0 0 0 1.5px var(--ink);
  }
  .ch-seg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    color: var(--ink);
    text-wrap: balance;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color 150ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .ch-seg[aria-pressed="true"] { color: var(--g-paper); background: var(--ink); }
  html.calm .ch-seg { transition: none; }
  .ch-seg:focus-visible { outline-offset: -3px; }
  .ch-seg[aria-pressed="true"]:focus-visible { outline-color: var(--g-paper); }
  /* the two kinds in one cell, one shown */
  .pg-fit[data-ch-on] .ch-kinds { display: grid; grid-template-columns: minmax(0, 1fr); }
  .pg-fit[data-ch-on] .ch-kind { grid-area: 1 / 1; margin-top: 0; transition: opacity 260ms var(--ease), visibility 0s linear 0s; }
  .pg-fit[data-ch-on="0"] .ch-kind:nth-child(2),
  .pg-fit[data-ch-on="1"] .ch-kind:nth-child(1) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms var(--ease), visibility 0s linear 160ms; }
  html.calm .pg-fit .ch-kind { transition: none !important; }
  /* the switch carries the kind's name: the heading stays for a screen reader, its hairlines go; the question's line
     gives way to the kind's own line, as on a laptop */
  .pg-fit[data-ch-on] .ch-kind-head { display: block; }
  .pg-fit[data-ch-on] .ch-kind-head::before, .pg-fit[data-ch-on] .ch-kind-head::after { content: none; }
  .pg-fit[data-ch-on] .ch-kind-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pg-fit[data-ch-on] .ch-kind-say { margin-inline: auto; }
  .pg-fit[data-ch-on] .sec-head .sec-line { display: none; }
}
@media (min-width: 768px) { .ch-at { display: none; } }

/* THE SIGNPOST (Ry, 18 Nov 2026, of the switch: "If a user comes to the site and they don't see that tab, then they're
   missing out on all of those classes"). Where the switch shows one kind, a plain line under the cards names the other
   and turns to it (js/sections/pg-*-2-fit.js). It leads the "Prices are before HST." line, on a line of its own
   above those words, as Ry saw it. Where the switch is not drawn both kinds show, and so does no signpost. */
.ch-other { display: none; }
.pg-fit[data-ch-on="0"] .ch-other-w[data-to="0"],
.pg-fit[data-ch-on="1"] .ch-other-w[data-to="1"] { display: none; }
.ch-other {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ch-other-w { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-wrap: balance; }
@media (hover: hover) { .ch-other:hover .ch-arrow { transform: translateX(3px); } }
html.calm .ch-other .ch-arrow { transition: none; }
@media (max-width: 767.9px) {
  /* 44 px to tap (client looks audit, 23 Nov 2026: it was 38): 3 px more above and below, the same 3 px off its margins,
     so the line sits where it was */
  .pg-fit[data-ch-on] .ch-other:not([hidden]) { display: flex; width: fit-content; max-width: 100%; margin: -3px auto 7px; padding-block: 11px; }
}
@media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  .pg-fit--a[data-ch-on] .ch-other:not([hidden]) { display: flex; width: fit-content; margin: 0 auto max(10px, calc(12px + var(--pg-u) * 0.2)); padding-block: 0; line-height: 1.2; }
}
/* A jump to the classes (the skip link, a link to #doors) lands with the question clear of the top bar (client looks
   audit, 23 Nov 2026: from 1180 wide each section is one screen, css/base.css, with a 0 scroll margin, so the question
   stood 41 px from the top, under the bar's line): 16 px under the bar, as everywhere else */
@media (min-width: 1180px) and (min-height: 501px) and (min-aspect-ratio: 13/10) {
  main > .sec.pg-fit { scroll-margin-top: calc(var(--head-past) + 16px - var(--fit-pad)); }
}
