/* The glass page: the shop's middle design as the pages after it wear it (docs/glass-pages.md). Linked after
   refinements.css by Careers, Group Bookings, Classes and Events; the shop page has the same recipe under its own
   names in shop.css, where it began, until its design phase is over and the two can be one.
   James, 2026-12-02: "implement the design for group bookings, classes and events".
   A page says <body class="dark gl">, puts a photograph in .gl-wall, its title in .gl-hero, and everything else in
   panels. The vocabulary:
     the backdrop  .gl-wall    one photograph held still behind everything, under a shade (--gl-at places it)
     the title     .gl-hero    the page's h1 and one line, standing on the backdrop
     a panel       .gl-panel   the class card's glass (the --card- tokens in refinements.css), a hairline round it
     its title     .gl-head    the one heading style: heavy, an amber rule under it
     a note        .gl-note    a second line, or a line said in place of a list
     a label       .gl-by      a small heading
     a chip        .gl-tag     a word or two on a wash (is-hot: on the accent)
     steps         .gl-steps   a short numbered run, a column a step, each number beside its step's name
     a fold        .gl-fold    a panel that opens: shut, its title and one line; open, the rest
   Parts a page already had are given the panel's look by name below, where its script or template builds them:
   the quote builder's steps and estimate, the days of events and the two search boxes. A class card keeps the
   site's own card.
   Three sizes of words under the titles: 15px to read, 14px for a second line, 13px for terms. One accent, the
   site's amber. The glass, its edges and the amber are the site's own tokens (relaunch.css). */
body.gl { --text:var(--bone);--soft:rgba(244,239,230,.72);--rule:rgba(244,239,230,.15);--wash:rgba(244,239,230,.1);--on-hot:#14120f;--hot:var(--amber);--gl-gut:clamp(10px,3vw,48px);--gl-in:clamp(14px,2.6vw,30px);--gl-wide:var(--measure);background:#0d0b09; }
body.gl main { padding-bottom:clamp(28px,5vw,64px); }
/* The backdrop, fixed to the window so the panels slide over it as the page scrolls. The tall viewport: a phone's
   address bar sliding away does not move it. */
.gl-wall { position:fixed;top:0;left:0;z-index:-1;width:100%;height:100vh;height:100lvh;background:#0d0b09; }
/* On an iPhone the backdrop is part of the page, stuck to the window's top and taller than the window. The newer
   Safari cuts a layer fixed to the window off at its bottom toolbar and shows the page's ground under it, more of it
   as the bar grows (James, 2026-12-02: "the background gets blanked out as the address bar expands and contracts,
   the foreground is unaffected"), while the page itself is drawn under the bar. The margin gives back the room the
   backdrop would take. While a dialog is open nothing sticks, and it rests at the page's top behind the veil. */
@supports (-webkit-touch-callout:none) { .gl-wall { position:sticky;height:calc(100vh + 140px);height:calc(100lvh + 140px);margin-bottom:calc(-100vh - 140px);margin-bottom:calc(-100lvh - 140px); } }
.gl-wall img { display:block;width:100%;height:100%;object-fit:cover;object-position:var(--gl-at,50% 50%); }
.gl-wall::after { content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,6,4,.88) 0%,rgba(8,6,4,.74) 30%,rgba(8,6,4,.58) 64%,rgba(8,6,4,.64) 100%); }   /* deepest at the top, under the header and the page's title */
.gl-hero { width:min(var(--gl-wide),100%);margin:0 auto;padding:clamp(104px,12vw,150px) var(--gl-gut) clamp(18px,2.6vw,30px);color:var(--bone); }
.gl-hero h1 { font:400 var(--hero-title)/1 var(--display);letter-spacing:-.01em; }
.gl-hero p { max-width:52ch;margin:8px 0 0;font-size:clamp(16px,1.8vw,21px);line-height:1.55;color:var(--reading); }

/* A panel. The same glass on a phone: until 2026-12-02 a narrow screen had a solid tone with nothing blurred, to
   spare the blur, and James asked of it "Why does the glass effect on mobile just look flat grey?" */
.gl-panel,body.gl .gq-step,body.gl .gq-est,body.gl .catalog-panel,body.gl .event-day,body.gl .featured-events,body.gl [data-calendar] > .service-state { box-sizing:border-box;padding:var(--gl-in);border:1px solid var(--card-edge);border-top-color:var(--card-edge-lit);border-radius:18px;font-size:15px;line-height:1.5;color:var(--text);background:var(--card-glass);-webkit-backdrop-filter:var(--card-blur);backdrop-filter:var(--card-blur);box-shadow:var(--card-shadow);scroll-margin-top:84px; }
.gl-panel { width:min(var(--gl-wide),calc(100% - 2 * var(--gl-gut)));margin:0 auto 20px; }
.gl-head,body.gl .gq-step > h3,body.gl .catalog-panel h2 { margin:0 0 clamp(14px,2vw,22px);padding:0 0 10px;border-bottom:2px solid var(--hot);font:800 clamp(21px,2.3vw,27px)/1.15 Nunito,system-ui,sans-serif;letter-spacing:-.005em;text-transform:none;color:var(--text); }
.gl-panel p { color:inherit; }   /* over the site's rule for a paragraph on a dark page (.dark p) */
.gl-panel a:not(.btn) { color:inherit;text-underline-offset:3px; }
.gl-panel .gl-note { margin:0;font-size:14px;line-height:1.5;color:var(--soft); }
.gl-panel .gl-by { margin:12px 0 4px;font:800 12.5px/1.3 Nunito,system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--soft); }
.gl-tags { display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0; }
.gl-tag { display:inline-block;padding:4px 8px;border-radius:5px;font:800 12.5px/1.2 Nunito,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--text);background:var(--wash); }
.gl-tag.is-hot { color:var(--on-hot);background:var(--hot); }
/* Steps: a column a step from a tablet up. A step's number stands beside its name, on the name's own line (James,
   2026-12-02: "i dont like number above list item headers, put them in line"). */
.gl-steps { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2.4vw,28px);margin:0;padding:0;list-style:none;counter-reset:gl-step; }
.gl-steps li { counter-increment:gl-step;display:grid;gap:6px;align-content:start;font-size:14px;line-height:1.5;color:var(--soft); }
.gl-steps b { display:flex;align-items:center;gap:10px;font:700 16px/1.3 Nunito,system-ui,sans-serif;color:var(--text); }
.gl-steps b::before { content:counter(gl-step);flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font:800 14px/1 Nunito,system-ui,sans-serif;color:var(--hot);background:var(--wash); }
.gl-steps + .gl-note { margin-top:clamp(14px,2vw,20px); }
@media (max-width:720px) { .gl-steps { grid-template-columns:minmax(0,1fr); } }
/* A panel that opens. Shut, it is its title and one line, with a chevron at the right; open, the title takes its
   amber rule and what was folded stands under it. */
.gl-fold > summary { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 16px;min-height:44px;list-style:none;cursor:pointer; }
.gl-fold > summary::-webkit-details-marker { display:none; }
.gl-fold > summary .gl-head { grid-column:1;margin:0;padding:0;border:0; }
.gl-fold > summary .gl-note { grid-column:1; }
.gl-fold > summary::after { content:"";grid-column:2;grid-row:1 / span 2;width:9px;height:9px;margin:-5px 6px 0 0;border-right:2px solid var(--hot);border-bottom:2px solid var(--hot);transform:rotate(45deg); }   /* down while folded, up once open */
.gl-fold[open] > summary { margin-bottom:clamp(14px,2vw,22px);padding-bottom:12px;border-bottom:2px solid var(--hot); }
.gl-fold[open] > summary::after { margin-top:5px;transform:rotate(-135deg); }
.gl-fold > summary:focus-visible { outline:2px solid var(--amber);outline-offset:6px;border-radius:6px; }

/* The pages' own containers take the panels' measure and add nothing of their own. */
body.gl .content-section,body.gl .ewrap { box-sizing:border-box;width:min(var(--gl-wide),calc(100% - 2 * var(--gl-gut)));max-width:none;margin:0 auto;padding:0; }
body.gl .content-section > .gl-panel { width:auto; }

/* Group Bookings: each step of the request is a panel in the left column, the estimate a panel that follows the
   page in the right. */
body.gl .gq-first { padding:0; }
body.gl .gq { gap:20px;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); }
body.gl .gq-step { margin:0 0 20px; }
body.gl .gq-step:last-child { margin-bottom:0; }
/* The blur makes each panel a layer of its own, and a later panel is painted over whatever an earlier one lets hang
   below its box. The step whose date calendar is open is lifted over the steps after it. */
body.gl .gq-step:has(.gq-cal) { position:relative;z-index:2; }
@media (max-width:900px) { body.gl .gq { grid-template-columns:minmax(0,1fr); } }

/* Classes and Events: the search box is a panel. */
body.gl .catalog-panel,body.gl [data-calendar] > .service-state { margin:0 0 20px; }
body.gl .catalog-panel::before,body.gl .catalog-panel::after { content:none; }   /* the site's older panel has a line inside it and a plate behind it: neither on glass */
body.gl .catalog-panel h2 { margin-bottom:6px;padding-bottom:0;border-bottom:0; }
/* Events: under each month's name, a card a day, as a calendar has a square a day (James, 2026-12-02: "to pack more
   info into the screen can you floating cards for each day like a calendar almost"): five to a row where there is
   room, each as tall as its row. The day stands at the card's head; what is on that day is listed under it, a line
   between two things on the same day. events.js draws them. */
body.gl .event-group > .event-month { position:static;margin:4px 2px 12px;padding:0;border:0;font:800 13px/1.2 Nunito,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--bone); }
.event-days { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:12px;margin:0 0 26px; }
body.gl .event-day { display:grid;gap:11px;align-content:start;padding:14px 15px 16px;border-radius:16px;font-size:14px; }
.event-day-date { display:flex;align-items:baseline;gap:8px;padding-bottom:10px;border-bottom:2px solid var(--hot);line-height:1;color:var(--text); }
.event-day-date b { font:800 30px/1 Nunito,system-ui,sans-serif;letter-spacing:-.02em;font-variant-numeric:tabular-nums; }
.event-day-date span { font:800 12.5px/1 Nunito,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--soft); }
.event-day-date span:first-child { order:2;margin-left:auto;color:var(--hot); }   /* the number and the month at the left, the weekday at the right */
.event-item { display:grid;gap:3px;min-width:0; }
.event-item + .event-item { padding-top:12px;border-top:1px solid var(--rule); }
.event-item h3 { margin:0;font:700 15.5px/1.3 Nunito,system-ui,sans-serif;overflow-wrap:anywhere;color:var(--text); }
body.gl .event-item p { margin:0;font-size:13.5px;line-height:1.45;color:var(--soft);white-space:pre-line;overflow-wrap:anywhere; }
body.gl .event-item .event-meta { font-weight:700;color:var(--hot); }
.event-item summary { display:inline-flex;align-items:center;gap:8px;min-height:36px;font:700 13px/1 Nunito,system-ui,sans-serif;list-style:none;color:var(--text);cursor:pointer; }
.event-item summary::-webkit-details-marker { display:none; }
.event-item summary::after { content:"";flex:none;width:6px;height:6px;margin-top:-3px;border-right:2px solid var(--hot);border-bottom:2px solid var(--hot);transform:rotate(45deg); }
.event-item details[open] > summary::after { margin-top:3px;transform:rotate(-135deg); }
@media (hover:none) { .event-item summary { min-height:44px; } }
/* Classes: every class a card of its own on the backdrop, three to a row where there is room (James, 2026-12-02:
   "each card can float on its own ... pack the classes in so there is less scrolling space"). The card is the
   site's own class card. Shut (relaunch.js), its words show their first four lines and fade out toward the button,
   under a line that says Read more with a chevron: "a gradient fade to reserve button with foldout chevron or text
   above the reserve ... when selected the gradient expands to show the text and reserve at bottom". Shut, every
   card is the same size; one that is opened grows alone. */
body.gl .class-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px;margin:0 0 20px; }
body.gl .class-grid:has(.class-card.is-open) { align-items:start; }
body.gl .class-grid .class-card { gap:12px;padding:22px; }
body.gl .class-grid .class-card.photo-card .class-photo { flex:none;width:calc(100% + 44px);max-width:none;height:auto;margin:-22px -22px 4px; }
body.gl .class-grid .class-card h3 { font-size:21px; }
.class-text { align-self:stretch;display:grid;gap:12px;align-content:start;overflow:hidden;transition:max-height .32s ease; }
.class-card.is-shut .class-text { max-height:104px;-webkit-mask-image:linear-gradient(180deg,#000 18%,transparent 96%);mask-image:linear-gradient(180deg,#000 18%,transparent 96%); }   /* four lines, the last all but gone */
.class-open { align-self:stretch;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:-8px 0 -4px;padding:0;border:0;background:none;font:800 12.5px/1 Nunito,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--text);cursor:pointer; }
.class-open::after { content:"";flex:none;width:7px;height:7px;margin-top:-4px;border-right:2px solid var(--hot);border-bottom:2px solid var(--hot);transform:rotate(45deg); }   /* down while shut, up once open */
.class-open[aria-expanded="true"]::after { margin-top:4px;transform:rotate(-135deg); }
.class-open:hover { color:var(--hot); }
.class-open:focus-visible { outline:2px solid var(--amber);outline-offset:-2px;border-radius:8px; }
body.gl .class-grid .class-card .class-next { display:block;min-height:1.55em; }   /* its line kept while the feed is on its way, so no card jumps */
body.gl .class-grid .class-card .class-actions { margin-top:auto; }
@media (prefers-reduced-motion:reduce) { .class-text { transition:none; } }
body.gl .featured-events { margin-bottom:20px;padding:var(--gl-in); }
body.gl .featured-events[hidden] { display:none; }
