/*
  WeddingVenuesCanada site.css: the page CSS the kit leaves to the site (loaded last).
  1. section rhythm   2. nav: lang switch, search, contact, menu card, call button   3. hero (the room)
  4. home sections: venues near you, venue card, cities, occasions, steps, statement, owners
  5. quote request   6. search
  7. FAQ   8. contact   9. inner pages and blog   10. numbered steps and notes
  Light only: the palette (--p-*) is set in SiteHead.astro. Hover lifts and photo zooms come from the
  kit's motion layer (motion.css): a linked .card holding a .frame__img gets both, so none is drawn here.
*/

/* ---------------------------------------------------------------- 1. section rhythm
   The kit sizes every section to one screen (100vh); on a 1920 or 2560 screen that leaves empty
   bands. Sections take their content height with one even rhythm; the hero keeps its screen. */
main > section.section:not(.hero),
main > section:not(.hero):not(.section),
footer.footer.closing {
  height: auto; min-height: 0;
  padding-block: clamp(3rem, 5vw, 5.5rem);
}
main > section.ground-inverse:not(.hero) { padding-block: clamp(3.75rem, 6vw, 6.75rem); }
main > section.section:first-child:not(.hero) { padding-top: calc(var(--nav) + clamp(2.5rem, 5vw, 5rem)); }
/* the close: the main button at its own size under the line, not stretched across the .wrap; on a
   phone it runs the full width like every other main button there */
.closing__cta > .btn { align-self: flex-start; }
/* a line set as an h2 that stays out of the outline (the close line, a guide's links title); the two
   classes outweigh .section-head p and .cities__head > p, which set a lead */
p.t-display.t-h2 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h2); line-height: 1.1;
  letter-spacing: var(--display-tracking); text-wrap: balance; color: inherit;
}
.closing__cta p.t-display.t-h2 { max-width: 20ch; }
@media (max-width: 639px) { .closing__cta > .btn { align-self: stretch; } }
/* KeepWords.astro: a hyphenated word in a heading or lead (Wi-Fi) never splits at its hyphen */
.nobr { white-space: nowrap; }

/* ---------------------------------------------------------------- 2. nav
   every word in the bar at the kit's nav link size (15px): links, search, contact, languages */
/* the mark (LogoMark.astro): the hall takes the text colour, the strand and its bulbs the accent, as
   in the favicon (without this the strand had no stroke colour and only the hall showed) */
.logo-mark__strand { stroke: var(--accent); }
.logo-mark__bulb { fill: var(--accent); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch__opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 28px; padding: 0 var(--s-2); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.lang-switch__opt:hover { background: var(--surface); color: var(--ink); }
/* the narrowest phones: the bar call to action gives up a little padding so the menu button stays on screen */
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions .btn { padding-inline: var(--s-2); } }
/* the phone bar, so the menu button always stays on screen (our name is long: WeddingVenuesCanada).
   Under 480px the name stacks on two lines beside the mark; under 520px the long French label of the
   main button wraps on two lines; under 360px (a small phone, or 200% zoom) the bar keeps the logo
   and the menu button, the buttons staying in the opened menu's bottom panel (with no script the
   menu cannot open, so the bar keeps them); under 240px the logo keeps its mark, the name still
   read out, and under 200px the opened menu takes narrower margins and smaller links, its email
   address without its icon */
@media (max-width: 479px) {
  .nav__bar .nav__logo .wordmark { display: inline-grid; line-height: 1.02; }
  .nav__bar .nav__logo .wordmark em { display: block; }
}
@media (max-width: 519px) {
  :root:lang(fr) .nav:not(.is-open) .nav__actions .btn--primary {
    white-space: normal; height: auto; min-height: 44px; max-width: 7.5em; padding-block: 4px;
    line-height: 1.15; text-align: center; }
}
@media (max-width: 359px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}
@media (scripting: none) and (max-width: 359px) {
  .nav:not(.is-open) .nav__actions { display: flex; flex: 0 1 auto; min-width: 0; }
  .nav:not(.is-open) .nav__actions .btn { overflow-wrap: normal; hyphens: manual; }
}
@media (scripting: none) and (max-width: 299px) {
  .nav__bar .nav__logo .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 239px) {
  .nav__bar .nav__logo .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 199px) {
  .nav.is-open .nav__contact svg { display: none; }
  .nav.is-open :is(.nav__links, .nav__actions) { padding-inline: var(--s-4); }
  .nav.is-open .nav__link { font-size: 15px; }
  .nav.is-open .nav__expand { width: 32px; }
}
/* the same small phone at 200% zoom: a long button label wraps inside the page instead of running
   past its right edge, in the opened menu's panel too (the kit fixes its buttons at 48px there), the
   menu's links and its email address wrap (only if they must), and the call button puts its number
   under its label when both do not fit on one line (never broken mid-word; under 240px without the
   icon); a word longer than its line (an email address in the privacy text) breaks only when it must */
@media (max-width: 319px) {
  main, footer { overflow-wrap: break-word; }
  .btn { white-space: normal; height: auto; min-height: var(--btn-h); max-width: 100%;
    padding: var(--s-2) var(--s-3); line-height: 1.25; text-align: center; hyphens: auto; overflow-wrap: anywhere; }
  .nav.is-open .nav__actions .btn { height: auto; min-height: 48px; padding-inline: var(--s-3); }
  .nav.is-open .nav__contact { white-space: normal; }
  .nav.is-open .nav__contact span { min-width: 0; overflow-wrap: anywhere; }
  .nav.is-open .nav__item { grid-template-columns: minmax(0, 1fr) auto; }
  .nav.is-open .nav__link { height: auto; min-height: 56px; padding-block: var(--s-2); white-space: normal; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
  .nav .btn--urgence { flex-wrap: wrap; justify-content: center; row-gap: 0; }
  .btn--urgence > span { overflow-wrap: normal; hyphens: none; }
}
@media (max-width: 239px) { .btn--urgence > svg { display: none; } }
.lang-switch__opt.is-current { background: var(--ink); color: var(--bg); }


/* the languages beside the main button */
.nav__prefs { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav.is-open .nav__prefs { justify-content: center; }

/* the venue search in the bar (HomeNavigation.astro): a compact pill, the magnifier inside it is
   the field's visible label (a click on it focuses the field); Enter sends the form, no extra button */
.nav__search {
  position: relative; display: flex; align-items: center; flex: none;
  width: clamp(168px, 14vw, 232px); height: 40px;
}
.nav__search-label {
  position: absolute; left: 4px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px;
  translate: 0 -50%; color: var(--muted); cursor: text;
}
.nav__search-label svg { width: 16px; height: 16px; }
.nav__search input {
  width: 100%; height: 100%; padding: 0 var(--s-3) 0 36px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 70%, #fff); color: var(--ink);
  font: 400 15px/1 var(--font-text);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__search input::placeholder { color: var(--muted); opacity: 1; }
.nav__search input:hover { border-color: var(--ink); }
.nav__search input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; background: #fff; }
.nav__search input::-webkit-search-cancel-button { cursor: pointer; }

/* our own contact, top right: the envelope and the address; the address gives way first on a narrower bar */
.nav__contact {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px;
  color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav__contact svg { width: 18px; height: 18px; flex: none; }
.nav__contact span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
                     transition: text-decoration-color var(--dur) var(--ease); }
.nav__contact:hover span { text-decoration-color: currentColor; }
.nav__contact:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: var(--r-sm); }
/* the bar never runs its words under the search (the French ones are a third longer). The bar's content
   stops at 1280px, so in the bar (1024px and up) the address never shows: the envelope alone (the address
   stays on the contact page and in the phone sheet). Below 1280px the search field gives way (the Find menu
   and the search page keep it) and the bar closes up; in French the search waits for 1440px and, on a small
   laptop, the wedding-venues word gives way too (the Find menu and the footer keep it) and the actions sit
   closer. When the call button shows our number (English, 1400px up), the search takes the French width */
@media (min-width: 1024px) {
  .nav__bar { gap: var(--s-6); }
  .nav__contact { justify-content: center; width: 40px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .nav__contact span { display: none; }
  :root:lang(fr) .nav__search { width: 168px; }
}
@media (min-width: 1400px) { .nav__actions:has(.btn--urgence) .nav__search { width: 168px; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__search { display: none; }
  .nav__bar { gap: var(--s-4); }
  :root:lang(fr) .nav__bar { gap: var(--s-3); }
  :root:lang(fr) .nav__actions { gap: var(--s-2); }
  :root:lang(fr) .nav__links > .nav__item:nth-child(2) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1439px) { :root:lang(fr) .nav__search { display: none; } }

/* the open menu (below 1024px): the search across the sheet's top, the address as one centred row */
@media (max-width: 1023px) {
  .nav.is-open .nav__search { order: -1; width: 100%; height: 48px; }
  .nav.is-open .nav__search input { font-size: 16px; }
  .nav.is-open .nav__contact { justify-content: center; min-height: 44px; }
  .nav.is-open .nav__links { padding-bottom: calc(var(--btn-h) * 2 + 48px * 2 + 96px); }
  /* the call button makes the bottom panel one button taller, and a notched phone adds its safe area */
  .nav.is-open:has(.btn--urgence) .nav__links {
    padding-bottom: calc(var(--btn-h) * 3 + 48px * 2 + 104px + env(safe-area-inset-bottom));
  }
}
/* a short screen (a phone on its side, or zoomed in): the bottom panel takes at most half the height
   and scrolls, its two buttons first, so they and the links above it stay in reach */
@media (max-width: 1023px) and (max-height: 479px) {
  .nav.is-open .nav__actions { max-height: 50vh; max-height: 50dvh; overflow-y: auto; overscroll-behavior: contain; }
  .nav.is-open .nav__actions .btn--primary { order: -3; }
  .nav.is-open .nav__actions .btn--urgence { order: -2; }
  .nav.is-open .nav__links, .nav.is-open:has(.btn--urgence) .nav__links {
    padding-bottom: calc(50vh + var(--s-4)); padding-bottom: calc(50dvh + var(--s-4)); }
}

/* the menu card: a photograph on the panel in place of the kit's lit ground */
.menu-card__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the optional call button (no number before step 8b: it never shows) */
.btn--urgence { gap: var(--s-2); background: var(--accent); color: var(--accent-ink, #fff); }
/* in the bar (1024px and up) it takes the envelope's place: the address stays on the contact page (the
   footer's Contact link) and in the phone sheet. It shows the phone and our number where the words leave
   room (English from 1400px), else the phone alone on a square button; the call window always shows the
   number. The square is 8px wider than the envelope was, so below 1280px the actions sit 4px closer and the
   menu words keep theirs */
@media (min-width: 1024px) {
  .nav__actions:has(.btn--urgence) .nav__contact { display: none; }
  .btn--urgence__label { display: none; }
  :root:lang(fr) .btn--urgence__tel { display: none; }
  :root:lang(fr) .nav__actions .btn--urgence { width: var(--btn-h); padding: 0; justify-content: center; }
}
@media (min-width: 1024px) and (max-width: 1399px) {
  .btn--urgence__tel { display: none; }
  .nav__actions .btn--urgence { width: var(--btn-h); padding: 0; justify-content: center; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  :root:lang(en) .nav__actions:has(.btn--urgence) { gap: var(--s-3); }
}

/* ---------------------------------------------------------------- 3. hero: the room (HomeView.astro, HeroVenue.astro)
   The first screen: a barn reception hall at dusk (a photograph), in a rounded frame inset from the
   screen's edges; the words on its lower left over a soft scrim. Over the photograph, in its own
   coordinates, the light that moves: a warm pool on every flame, votive and bulb, fireflies over the
   lake. The script opens the doors on the room, lights it, then lets it flicker until the pause button
   stops it. A phone stacks the scene (5:4) over the words. */
.room { --fr: clamp(12px, 1.6vw, 28px); }
main > section.room {
  display: block; height: auto; min-height: 0; padding: 0; overflow: clip;
  background: var(--bg); color: var(--ink);
}
.room__stage {
  position: relative; display: grid; align-content: end; isolation: isolate;
  height: 100svh; min-height: 600px; max-height: 1600px;
  padding: calc(var(--nav) + var(--s-7)) 0 calc(var(--fr) + clamp(2rem, 6vh, 4.75rem));
}
.room__scene {
  position: absolute; inset: calc(var(--nav) + var(--fr)) var(--fr) var(--fr); z-index: 0;
  overflow: hidden; border-radius: clamp(14px, 1.6vw, 24px); background: #1d1a17; pointer-events: none;
  container-type: size;
}
/* the frame keeps the photograph's ratio (1672 x 941) and covers the scene, centred, so a light placed
   in the photograph's percent stays on its flame at every width; GSAP moves it by transform only */
.room__frame {
  --fw: max(100cqw, 177.68cqh); --fh: max(100cqh, 56.28cqw);
  position: absolute; left: 50%; top: 50%; width: var(--fw); height: var(--fh);
  margin: calc(var(--fh) / -2) 0 0 calc(var(--fw) / -2);
}
.room__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.room__glows, .room__motes, .room__dim { position: absolute; inset: 0; pointer-events: none; }
.room__glows { mix-blend-mode: screen; }
.room__dim { background: #14110e; opacity: 0; }
.room__pool {
  --r: 3.2;
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: calc(var(--r) * 1%); aspect-ratio: 1; margin: calc(var(--r) * -.5%) 0 0 calc(var(--r) * -.5%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 150 / .5), rgb(255 176 96 / .18) 45%, rgb(255 160 80 / 0));
}
.room__pool--wide { background: radial-gradient(closest-side, rgb(255 180 100 / .16), rgb(255 170 90 / 0)); }
.room__pool--votive { --r: 4.5; }
.room__pool--bulb { --r: 2.4; background: radial-gradient(closest-side, rgb(255 226 170 / .55), rgb(255 200 130 / .15) 50%, rgb(255 190 120 / 0)); }
.room__mote {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: #ffe2a8; box-shadow: 0 0 8px 2px rgb(255 200 120 / .6);
}
/* each light gets its own small layer, so a flicker never repaints the photograph */
@media (prefers-reduced-motion: no-preference) {
  .room__frame { will-change: transform; }
  .room__pool, .room__mote { will-change: opacity, transform; }
}
.room__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(20 17 14 / .45) 0%, rgb(20 17 14 / 0) 22%),
    linear-gradient(to top, rgb(20 17 14 / .82) 0%, rgb(20 17 14 / .38) 38%, rgb(20 17 14 / 0) 66%),
    linear-gradient(to right, rgb(20 17 14 / .5) 0%, rgb(20 17 14 / 0) 58%);
}

/* no script in time: the head guard's hold ends in a fade (never while the script animates) */
.room:not(.room--live) :is(.room__copy, .room__frame) { transition: opacity .7s var(--ease); }

.room__copy { position: relative; z-index: 4; }
/* the copy stays light and low-left: the h1 on one or two lines, one
   short lead, the two buttons; the table and its candles stay clear */
.room__copy > h1 {
  max-width: 11em;
  font-size: clamp(2.6rem, 3.9vw + .5rem, 6.25rem); line-height: .96; letter-spacing: -.025em;
  text-wrap: balance; color: #f7f2ea;
}
.room__line { padding-bottom: .06em; }
.room__lead { margin-top: var(--s-4); max-width: 38ch; font-size: var(--t-lead); line-height: 1.45; color: rgb(244 239 230 / .9); }
.room__copy > .btn-row { margin-top: var(--s-6); }
/* over the scene (640px and up) the photograph passes behind the words: a pool of shade anchored to the
   copy (it follows the wrap at 1920 and 2560, where a scene gradient would not) and a soft text shadow */
@media (min-width: 640px) {
  .room__copy::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: -8%; top: -18%; bottom: -16%; width: min(62rem, 78%);
    background: radial-gradient(closest-side, rgb(20 17 14 / .66) 0%, rgb(20 17 14 / .34) 62%, rgb(20 17 14 / 0) 100%);
  }
  .room__copy > h1 { text-shadow: 0 2px 30px rgb(20 17 14 / .55); }
  .room__lead { text-shadow: 0 1px 16px rgb(20 17 14 / .7); }
}

/* the pause button (WCAG 2.2.2: the idle loop runs past five seconds), bottom right inside the frame */
.room__pause {
  position: absolute; z-index: 5; right: calc(var(--fr) + var(--s-4)); bottom: calc(var(--fr) + var(--s-4));
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(244 239 230 / .35); border-radius: 50%;
  background: rgb(20 17 14 / .55); color: #f4efe6; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.room__pause[hidden] { display: none; }
.room__pause:hover { background: rgb(20 17 14 / .75); border-color: rgb(244 239 230 / .6); }
.room__pause:focus-visible { outline: 2px solid #f4efe6; outline-offset: 3px; }
.room__pause > svg { width: 16px; height: 16px; }
.room__play-icon, .room__pause[aria-pressed="true"] .room__pause-icon { display: none; }
.room__pause[aria-pressed="true"] .room__play-icon { display: block; }

@media (max-width: 639px) {
  .room__stage { display: block; height: auto; min-height: 0; max-height: none; padding: calc(var(--nav) + 10px) 0 var(--s-7); }
  .room__scene { position: relative; inset: auto; margin-inline: 10px; aspect-ratio: 5 / 4; }
  .room__scrim { background: linear-gradient(to bottom, rgb(20 17 14 / .45) 0%, rgb(20 17 14 / 0) 26%); }
  .room__copy { margin-top: var(--s-6); }
  .room__copy > h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .room__lead { font-size: var(--t-body); }
  /* the button moves to the scene's upper right (the scene is in the flow now, its top is known) */
  .room__pause { right: 20px; bottom: auto; top: calc(var(--nav) + 20px); }
}

/* ---------------------------------------------------------------- 4. home sections (HomeView.astro)
   venues near you: the heading and its lead, the province chips (the visitor's province first),
   then eight venue cards four across, two on a tablet, one on a phone; "see all" under them */
.near__head { align-items: end; margin-bottom: var(--s-6); }
.near__intro > p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.near__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.near__chip {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 var(--s-4); border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: var(--t-small); line-height: 1; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.near__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.near__chip:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.near__chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .near__chip:hover:not([aria-pressed="true"]) { border-color: var(--ink); } }
@media (pointer: coarse) { .near__chip { height: 44px; } }
.near__all { margin-top: var(--s-6); }

/* a venue card (VenueCard.astro): its Google photo at 4:3 (or its initials on a warm plate),
   then its name, place, stars, capacity, tags and the ways to reach it, the call button first */
.venue { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.venue[hidden] { display: none; }
.grid > .venue { grid-column: 1 / -1; }
@media (min-width: 640px) { .grid > .venue { grid-column: auto / span 6; } }
@media (min-width: 1024px) { .grid > .venue { grid-column: auto / span 3; } }
/* the closing card (GridEnd.astro): it takes the columns a grid's last row leaves (--end-2 at two a row,
   --end-4 at four, set from the venue count), so no row ends half empty; the same frame as a card, drawn
   in line instead of filled. The ask sits on top, the three steps in the middle, the buttons at the foot;
   from 520px wide (six or nine columns, a full row at two a row) the steps stand side by side as a band */
.loc__end { container-type: inline-size; min-width: 0; padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.loc__end[hidden] { display: none; }
.grid > .loc__end { grid-column: 1 / -1; }
@media (min-width: 640px) { .grid > .loc__end { grid-column: auto / span var(--end-2); } }
@media (min-width: 1024px) { .grid > .loc__end { grid-column: auto / span var(--end-4); } }
.loc__end-in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "title" "steps" "actions"; gap: var(--s-5); height: 100%; }
.loc__end-title { grid-area: title; margin: 0; max-width: 18ch; font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.loc__end-steps { grid-area: steps; align-self: center; margin: 0; padding: 0; list-style: none; counter-reset: end-step; }
.loc__end-steps li { counter-increment: end-step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: baseline;
  padding: var(--s-3) 0; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); line-height: 1.45; }
.loc__end-steps li::before { content: counter(end-step); color: var(--accent); font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.loc__end-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin: 0; }
.loc__end-actions .link { font-size: var(--t-small); }
/* three columns at 1024px leave the card about 160px: the quote button's label wraps inside it (the
   French one does not fit on one line) instead of running past the frame */
.loc__end-actions .btn { white-space: normal; height: auto; min-height: var(--btn-h); max-width: 100%;
  padding-block: var(--s-2); line-height: 1.25; text-align: center; }
@container (min-width: 520px) {
  .loc__end-title { max-width: 16ch; font-size: clamp(2rem, 5cqi, 3rem); }
  .loc__end-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); }
  .loc__end-steps li { grid-template-columns: none; align-content: start; gap: var(--s-3); padding: var(--s-4) 0 0; }
  .loc__end-steps li::before { font-size: 2rem; }
}
.venue__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #231f1b; }
.venue__media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .venue:hover .venue__media > img { transform: scale(1.03); } }
.venue__credit {
  position: absolute; left: var(--s-2); bottom: var(--s-2); padding: 2px 6px; border-radius: 4px;
  background: rgb(20 17 14 / .62); color: #f4efe6; font-size: 11px; line-height: 1.4;
}
/* No photo: a soft out-of-focus plate in one of four warm tones (data-tone, toneOf in listing.ts),
   so a row of them sits with the photos around it, the initials in ivory (3:1 at least on the mid
   tone they sit on) and four corner brackets drawn by a masked border. */
.venue__media--mono { --hi: #e6d3bb; --mid: #9a8570; --lo: #6f5d4d; display: grid; place-items: center;
  background:
    radial-gradient(38% 46% at 24% 28%, rgb(255 250 242 / .38), transparent 70%),
    radial-gradient(30% 36% at 80% 74%, rgb(255 250 242 / .22), transparent 70%),
    radial-gradient(120% 100% at 30% 20%, var(--hi) 0%, var(--mid) 36%, var(--lo) 100%); }
.venue__media--mono[data-tone="1"] { --hi: #ecc2b0; --mid: #a27566; --lo: #744f45; }
.venue__media--mono[data-tone="2"] { --hi: #d8cfc4; --mid: #857a6f; --lo: #574e46; }
.venue__media--mono[data-tone="3"] { --hi: #f0d2b4; --mid: #a07c5e; --lo: #7a5a43; }
.venue__mono { font-family: var(--font-display); font-size: clamp(3rem, 4vw, 4.25rem); line-height: 1; letter-spacing: .02em; color: #f7f2ea; text-shadow: 0 1px 14px rgb(40 28 20 / .4); }
.venue__media--mono::after { content: ""; position: absolute; inset: 14px; border: 1.5px solid rgb(244 239 230 / .8); border-radius: 8px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) top left / 24px 24px no-repeat, linear-gradient(#000 0 0) top right / 24px 24px no-repeat,
    linear-gradient(#000 0 0) bottom left / 24px 24px no-repeat, linear-gradient(#000 0 0) bottom right / 24px 24px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 24px 24px no-repeat, linear-gradient(#000 0 0) top right / 24px 24px no-repeat,
    linear-gradient(#000 0 0) bottom left / 24px 24px no-repeat, linear-gradient(#000 0 0) bottom right / 24px 24px no-repeat; }
.venue__body { display: flex; flex: 1; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-4) var(--s-4); }
/* Some Google names run to a keyword sentence: three lines at most on a card, the full name stays in the markup. */
.venue__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.venue__place { color: var(--muted); font-size: var(--t-small); }
.venue__rating { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.venue__rating b { color: var(--ink); font-weight: 600; }
.venue__rating--new { font-style: italic; }
.venue__stars { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.2l2.1 4.3 4.7.7-3.4 3.3.8 4.7L8 12l-4.2 2.2.8-4.7L1.2 6.2l4.7-.7z'/%3E%3C/svg%3E");
  width: 80px; height: 15px; flex: none;
  background: linear-gradient(90deg, #c8742e calc(var(--r) / 5 * 100%), var(--line-strong) 0);
  -webkit-mask: var(--star) 0 0 / 16px 15px repeat-x; mask: var(--star) 0 0 / 16px 15px repeat-x; }
.venue__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.venue__tags > li { padding: 3px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; line-height: 1.4; color: var(--muted); }
.venue__capacity { font-size: var(--t-small); font-weight: 500; }
/* The call button on its own line, then the website left and the venue's pages right, the same on every card. */
.venue__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: minmax(36px, auto); align-items: center; gap: var(--s-2) var(--s-3); margin-top: auto; padding-top: var(--s-3); }
.venue__call { grid-column: 1 / -1; justify-self: start; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.venue__call > svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.venue__link { font-size: var(--t-small); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.venue__link:hover { text-decoration-color: currentColor; }
.venue__socials { grid-column: 2; display: flex; gap: 2px; }
/* a narrow card (four a row from 1024px): the website takes the whole line and the venue's pages go
   under it, so a host name breaks only when it is longer than the card, never beside the icons */
.venue__body { container-type: inline-size; }
@container (max-width: 240px) {
  .venue__actions { grid-template-columns: minmax(0, 1fr); }
  .venue__socials { grid-column: 1; }
  .venue__link { overflow-wrap: break-word; }
}
.venue__social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); }
.venue__social > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.venue__social .venue__dot, .venue__social > svg > path { fill: currentColor; stroke: none; }
.venue__social:hover { background: var(--bg); }
.venue__profile { align-self: flex-start; font-size: var(--t-small); font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.venue__profile:hover { text-decoration-color: currentColor; }
.venue__claim { margin-top: var(--s-2); font-size: 12px; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.venue__claim:hover { text-decoration-color: currentColor; }
@media (pointer: coarse) {
  .venue__social { width: 44px; height: 44px; }
  .venue__actions { grid-auto-rows: minmax(44px, auto); }
  .venue__link, .venue__profile, .venue__claim { display: inline-flex; align-items: center; min-height: 44px; }
  .venue__claim { margin-top: 0; }
}

/* cities: the heading above a set of place cards (home and search city index, province, city,
   collection and strategy pages), its lead on the right when it has one. */
.cities__head { align-items: end; margin-bottom: var(--s-6); }
.cities__head > p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }

/* place cards (PlaceCards.astro): the city index of the home and search pages, the city lists of
   the province, city and collection pages, the related pages at the foot of the listing pages. A
   card a group on the surface tone, its name and count on top, its links as a hairline list in
   columns with their counts. The component sets each card's columns (--span on a desktop,
   --span-t on a tablet) and its list's (--cols, --cols-t, --cols-p), so every row is full
   (src/lib/city-index.ts). Four columns on a desktop, two on a tablet, one on a phone with the
   lists two-up. Not a .grid: its own gap. */
.city-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.city-card { grid-column: span var(--span, 1); min-width: 0; padding: var(--s-5) var(--s-5) var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.city-card__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-3);
  margin: 0 0 var(--s-3); font: var(--display-weight) clamp(1.3rem, .5vw + 1.05rem, 1.6rem)/1.2 var(--font-display);
  letter-spacing: var(--display-tracking);
}
.city-card__head > a { color: var(--ink); text-decoration: none; }
.city-card__head > a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.city-card__head > span { font: 400 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); }
.city-card__list { margin: 0; padding: 0; list-style: none; columns: var(--cols, 1); column-gap: var(--s-6); }
.city-card__list li { break-inside: avoid; border-top: 1px solid var(--line); }
.city-card__list ul { margin: 0; padding: 0; list-style: none; }
.city-card__list li li { border-top: 0; }
.city-card__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); min-width: 0;
  padding-block: 9px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.city-card__list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.city-card__list .city-card__prov { font-weight: 600; }
.city-card__list .city-card__sub { padding-top: 0; padding-left: var(--s-4); }
.city-card__n { flex: none; white-space: nowrap; font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .city-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-card { grid-column: span var(--span-t, 1); }
  .city-card__list { columns: var(--cols-t, 1); }
}
@media (max-width: 639px) {
  .city-index { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .city-card { grid-column: auto; padding: var(--s-4); }
  .city-card__list { columns: var(--cols-p, 1); column-gap: var(--s-4); }
  .city-card__list a { min-height: 44px; align-items: center; gap: var(--s-2); padding-block: 0; }
  .city-card__list .city-card__sub { padding-left: var(--s-3); }
}
@media (max-width: 359px) {
  .city-card { padding: var(--s-3); }
  .city-card__list { columns: 1; }
}

/* province and city pages (LocationView.astro): the venues under a heading with the ranking note
   on the right, then the place cards */
.loc__head { align-items: end; margin-bottom: var(--s-6); }
.loc__head > h2 { margin: 0; text-wrap: balance; }
.loc__order { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
@media (max-width: 1023px) { .loc__head { row-gap: var(--s-3); } }

/* venue profile (ProfileView.astro): the facts card on the left seven columns, the photo above the
   owner's links on the right five; below 1024 one column, the photo first, the siblings spaced by a
   margin (never a gap on .grid). A fact row is its label on a 13ch column and its value beside it,
   a hairline between rows; under 480px the label sits above its value. */
.profile { align-items: start; }
.profile__media { border-radius: var(--r-md); }
.profile__facts { margin: 0; min-width: 0; padding: var(--s-6); border-radius: var(--r-md); background: var(--surface); }
.profile__facts > div { display: grid; grid-template-columns: minmax(0, 13ch) minmax(0, 1fr); align-items: baseline; column-gap: var(--s-5);
  padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.profile__facts > div:first-child { padding-top: 0; border-top: 0; }
.profile__facts > div:last-child { padding-bottom: 0; }
.profile__facts dt { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.profile__facts dd { margin: 0; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.profile__facts dd a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.profile__facts dd a:not([class]):hover { text-decoration-color: currentColor; }
.profile__facts .venue__call { max-width: 100%; }
.profile__facts .venue__socials { margin: -8px 0 -8px -8px; }
.profile__rating { display: inline-flex; flex-wrap: wrap; }
.profile__list { display: inline; margin: 0; padding: 0; list-style: none; }
.profile__list > li { display: inline; }
.profile__list > li:not(:last-child)::after { content: ", "; }
.profile__num { font-variant-numeric: tabular-nums; }
.profile__note { display: block; font-size: var(--t-small); color: var(--muted); }
.profile__owner { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.profile__owner-title { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.profile__owner-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-4) 0 0; }
.profile__owner-links > .link { font-size: var(--t-small); }
@media (min-width: 1024px) {
  .profile { grid-template-rows: auto 1fr; }
  .profile > .profile__facts { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .profile > .profile__media { grid-column: 8 / span 5; grid-row: 1; }
  .profile > .profile__owner { grid-column: 8 / span 5; grid-row: 2; margin-top: var(--s-6); }
}
@media (max-width: 1023px) {
  .profile > * + * { margin-top: var(--s-5); }
  .profile > .profile__media { max-width: 720px; }
}
@media (max-width: 639px) { .profile__facts { padding: var(--s-5); } }
@media (max-width: 479px) {
  .profile__facts > div { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-1); }
}
@media (pointer: coarse) {
  .profile__facts dd a:not([class]), .profile__owner-links > .link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* occasions: open tiles (the kit's .tile: the picture on top, its words on the ground, the zoom on
   hover), set by their own class and not span-N, so the kit's phone rule for an odd last tile never
   applies. The layout follows how many occasion pages are live (--n1 to --n5), so no row is ever
   half empty: five = the lead on the left six columns over two rows and four two by two on the
   right; four = four across (two by two on a tablet); three = three across; two = side by side;
   one = across. A phone stacks them. Under them, the venue styles as centred pills. */
.occasions__head { margin-bottom: var(--head-gap); }
.grid.occasions__grid > .occasion-tile { grid-column: 1 / -1; text-decoration: none; }
.occasion-tile { padding-bottom: var(--s-3); }
.occasion-tile > p { margin: calc(-1 * var(--s-2)) 0 0; color: var(--muted); font-size: var(--t-small); }
.occasions__grid--n1 .tile__media, .occasion-tile--lead .tile__media { --tile-ratio: 16 / 9; }
@media (min-width: 640px) {
  .grid.occasions__grid:is(.occasions__grid--n2, .occasions__grid--n4) > .occasion-tile,
  .grid.occasions__grid--n5 > .occasion-tile:not(.occasion-tile--lead) { grid-column: auto / span 6; }
}
@media (min-width: 1024px) {
  .grid.occasions__grid--n3 > .occasion-tile { grid-column: auto / span 4; }
  .grid.occasions__grid--n4 > .occasion-tile { grid-column: auto / span 3; }
  .grid.occasions__grid--n5 > .occasion-tile:not(.occasion-tile--lead) { grid-column: auto / span 3; }
  .grid.occasions__grid--n5 > .occasion-tile--lead { grid-column: 1 / span 6; grid-row: span 2; grid-template-rows: minmax(0, 1fr) auto auto; }
  .occasions__grid--n5 .occasion-tile--lead .tile__media { aspect-ratio: auto; min-height: 320px; }
  /* the four small tiles a little wider than tall, so the section fits one screen at 1440 x 900 */
  .occasions__grid--n5 .occasion-tile:not(.occasion-tile--lead) .tile__media { --tile-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  .occasion-tile { gap: var(--s-3); }
}
.occasions__styles { margin-top: var(--s-7); text-align: center; }
.occasions__styles-title { margin: 0; font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.occasions__styles ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.style-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding-inline: var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: var(--t-small); line-height: 1; text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.style-pill:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .style-pill:hover { border-color: var(--ink); } }
@media (pointer: coarse) { .style-pill { height: 44px; } }

/* steps: the numbered rows (section 10) and the button on the left, the photograph that develops on
   scroll on the right (the picture-develops moment) */
.home-steps__lead { margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.home-steps .btn-row { margin-top: var(--s-6); }
.home-steps__guide { margin-top: var(--s-5); }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* the statement (the word-highlight moment): its label above the sentence */
.statement .t-label { margin: 0 0 var(--s-5); color: var(--muted); }

/* for venue owners: the dark band, the words left and the photograph right */
.owners__text > p { margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.owners__text > .btn-row { margin-top: var(--s-6); }
@media (max-width: 1023px) { .owners__photo { margin-top: var(--s-7); } }

/* ---------------------------------------------------------------- 5. quote request (QuotesView.astro, QuoteForm.astro)
   The intro on the left five columns (h1, lead, the three numbered steps, a photograph), the form
   card on the right six, held in view while the intro scrolls on a wide screen. The form is the
   contact section's .cm-form (section 8). */
.quote-page .crumbs { grid-column: 1 / -1; }
.quote-page .crumbs ol { margin-bottom: calc(var(--s-6) - var(--card-gap)); }
.quote__lead { margin: var(--s-5) 0 0; max-width: 46ch; color: var(--muted); font-size: var(--t-lead); line-height: 1.5; }
.quote__steps { list-style: none; margin: var(--s-7) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.quote__steps > li {
  display: grid; grid-template-columns: 32px 1fr; column-gap: var(--s-4); row-gap: var(--s-1);
  padding-block: var(--s-4); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + var(--s-6));
}
.quote__steps .step-num { grid-row: span 2; }
.quote__steps h2 { margin: 0; align-self: center; }
.quote__steps p { margin: 0; grid-column: 2; color: var(--muted); }
.quote__photo { margin: var(--s-7) 0 0; }
.quote__card { gap: var(--s-5); align-self: start; }
.quote__card > h2 { margin: 0; }
@media (min-width: 1024px) {
  .quote__card { position: sticky; top: calc(var(--nav) + var(--s-5)); }
}
@media (max-width: 1023px) {
  .quote__card { margin-top: var(--s-7); }
  .quote__photo { display: none; }
}
.field__hint { font-weight: 400; color: var(--muted); }
/* the consent box: a real checkbox at its full size beside its sentence, the whole row clickable */
.quote__consent {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--s-3); align-items: start;
  font-size: var(--t-small); line-height: 1.5; color: var(--ink); cursor: pointer;
}
.quote__consent > input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--action); cursor: pointer; }
.quote__consent > input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.quote__consent > .field__error { grid-column: 2; }

/* ---------------------------------------------------------------- 6. search (SearchView.astro)
   The query field and its button on one line, the style chips under them (radios drawn as pills:
   the input stays in the page, hidden from sight only, so the keyboard and screen readers keep it),
   then the matching venues as cards (section 4), a page at a time. */
.search__form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-4); }
.search__q { flex: 1 1 320px; max-width: 560px; }
.search__styles { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; border: 0; min-width: 0; }
.search__styles > legend { float: left; width: 100%; margin-bottom: var(--s-3); padding: 0; font-size: var(--t-small); font-weight: 500; }
.search__chip { position: relative; display: inline-flex; cursor: pointer; }
.search__chip > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.search__chip > span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-4); border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); font-size: var(--t-small); color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.search__chip > input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.search__chip > input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .search__chip:hover > input:not(:checked) + span { border-color: var(--ink); }
}
@media (pointer: coarse) { .search__chip > span { height: 44px; } }
/* the results: their heading and live count on one baseline, then the venue cards (section 4) */
.search__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin: var(--s-7) 0 var(--s-5); }
.search__head > h2 { margin: 0; }
.search__count { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.search__none { margin: var(--s-6) 0 0; color: var(--muted); }
.search__more { margin: var(--s-7) 0 0; text-align: center; }
.search__more > .btn[hidden] { display: none; }
/* The first card a "Show more" or "Show all" button reveals takes the focus (this one and section 7). */
:is(.search__grid, .loc__grid) > .venue:focus { outline: none; }
:is(.search__grid, .loc__grid) > .venue:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
@media (max-width: 639px) { .search__q { max-width: none; } .search__form > .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- 7. FAQ */
.faq-sec__grid { align-items: start; }
@media (min-width: 1024px) {
  .faq-sec__head { position: sticky; top: calc(var(--nav) + var(--s-6)); margin-bottom: 0; }
}
.faq-sec__head .link { justify-self: start; }
.faq-sec__photo { margin: var(--s-6) 0 0; }

/* ---------------------------------------------------------------- 8. contact
   ContactSection.astro: the intro on the left five columns, the form card on the right six. The
   form is .cm-form, not the kit's .form (system.js would send it a second time), so it takes the
   kit form's grid here; its fields are the kit's .field. The breadcrumb (the "crumbs" slot) runs
   across all twelve columns above both. Under it, ContactView's three checks are a prose block. */
.contact__lead { margin: var(--s-5) 0 0; max-width: 46ch; color: var(--muted); font-size: var(--t-lead); }
.contact__rows { margin-top: var(--s-7); }
.contact__rows p { margin: 0; color: var(--muted); }
.contact__mail { margin: var(--s-6) 0 0; }
.contact__mail a { color: var(--accent); text-underline-offset: 3px; }
.contact__photo { margin: var(--s-6) 0 0; }
.contact__card { gap: var(--s-5); align-self: start; }
.contact__card > h2 { margin: 0; }
.contact .crumbs { grid-column: 1 / -1; }
/* the grid's row gap already sits under the crumbs, so their own margin only tops it up to --s-6 */
.contact .crumbs ol { margin-bottom: calc(var(--s-6) - var(--card-gap)); }
.contact__checks { margin-top: var(--s-6); }
.contact__checks h3 { margin: 0; }
.contact__checks p { margin: 0; }
.cm-form {
  --error: color-mix(in oklab, #d92d20 72%, var(--ink));
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4);
}
.cm-form > :is(.field--full, .btn-row, p, .cf-turnstile, noscript) { grid-column: 1 / -1; }
/* a field beside a taller one (a hint under the date) keeps its label on its input, never stretched apart */
.cm-form > .field { align-content: start; }
/* a date field shrinks with its column on a very narrow screen (200% zoom) instead of keeping the
   browser's own minimum width and pushing its hint past the card */
.cm-form > .field > :is(input, select) { min-width: 0; }
.cm-form .btn-row { margin: 0; }
.cm-form[hidden], .cm-status[hidden] { display: none; }
.cm-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cm-status {
  margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.cm-status[data-kind="error"] {
  border-color: color-mix(in oklab, #d92d20 45%, var(--line));
  background: color-mix(in oklab, #d92d20 7%, var(--bg));
}
.cm-status[data-kind="success"] {
  border-color: color-mix(in oklab, #17673f 40%, var(--line));
  background: color-mix(in oklab, #17673f 7%, var(--bg));
}
.cm-status + .btn { justify-self: start; }
.cm-note { display: grid; gap: var(--s-3); }
/* the no-script note is one sentence ending on the email address: it flows as text, never one row per word group */
p.cm-note { display: block; }
.cm-note p { margin: 0; }
.cm-note a { color: var(--accent); }
@media (max-width: 1023px) { .contact__card { margin-top: var(--s-7); } }
@media (max-width: 639px) { .cm-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 9. inner pages and blog
   Every inner page runs on the same 12 columns as the home page:
   - the head row: the h1 across eight columns, the lead beside it on the last four, both on the
     h1's last line; a section head row is h2 five, lead six;
   - the prose rows: each block's h2 on the left five columns, its text on the right six, a
     hairline over every row;
   - one even gap between sections: two flat sections in a row share one padding. */
main:not(:has(> .hero)) > section.section:not([class*="ground-"]) + section.section:not([class*="ground-"]) { padding-top: 0; }
.head-row { align-items: end; }
.head-row > :is(h1, h2) { margin: 0; text-wrap: balance; }
.head-row__aside { display: flex; flex-direction: column; gap: var(--s-6); }
.head-row__aside > p { margin: 0; }
.head-row__aside > .btn-row { margin: 0; }
/* a long label (a French profile's button) wraps in the aside's four columns instead of running past
   them; a label that fits stays on its one line at the kit's height */
.head-row__aside > .btn-row > .btn { white-space: normal; height: auto; min-height: var(--btn-h); max-width: 100%;
  padding-block: var(--s-2); line-height: 1.25; text-align: center; }
.head-row--section { margin-bottom: var(--head-gap); }
@media (min-width: 1024px) {
  .head-row > .head-row__aside { grid-column: 9 / span 4; padding-bottom: .35em; }
  .head-row--section > .head-row__aside { grid-column: 7 / span 6; padding-bottom: 0; }
}
@media (max-width: 1023px) { .head-row { row-gap: var(--s-5); } .head-row > :is(h1, h2) { max-width: 22ch; } }
.page-figure { margin: 0; }

.prose__block { padding-top: var(--s-6); border-top: 1px solid var(--line); align-items: start; }
.prose__block + .prose__block { margin-top: var(--s-8); }
.prose__block h2 { margin: 0; text-wrap: balance; }
.prose__body p { margin: 0 0 var(--s-4); max-width: 66ch; }
.prose__body p:last-child { margin-bottom: 0; }
.prose__body ul:not([class]) { margin: 0 0 var(--s-4); padding-left: 1.2em; max-width: 66ch; }
.prose__body ul:not([class]) li + li { margin-top: var(--s-2); }
.prose__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .prose__block > .prose__body { grid-column: 7 / span 6; }
  .prose__block h2 { position: sticky; top: calc(var(--nav) + var(--s-6)); }
}
@media (max-width: 1023px) {
  .prose__block { row-gap: var(--s-4); }
  .prose__block + .prose__block { margin-top: var(--s-7); }
}
/* a short line after the buttons (About: the email address): beside them on a wide screen; on a
   phone the kit stacks the row and centres the second action's label, so the line centres with it */
@media (max-width: 639px) { .btn-row > .btn-row__note { text-align: center; } }

.site-map { margin-top: var(--s-8); }
.site-map__col h2 { margin: 0 0 var(--s-4); }
.site-map__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.site-map__col a { color: var(--ink); text-decoration: none; }
.site-map__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .site-map__col + .site-map__col { margin-top: var(--s-6); } }

.crumbs ol { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.prose__body .checks { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.post__figure { margin: var(--s-9) 0; }

/* the FAQ: its heading on the left five columns, held while the questions scroll on the right six */
.faq-row { align-items: start; }
.faq-row > .section-head { margin: 0; }
.faq-row > .section-head h2 { margin: 0; }
@media (min-width: 1024px) {
  .faq-row > .faq { grid-column: 7 / span 6; }
  .faq-row > .section-head { position: sticky; top: calc(var(--nav) + var(--s-6)); }
}
@media (max-width: 1023px) { .faq-row > .section-head { margin-bottom: var(--head-gap); } }
.table-wrap { margin-top: var(--s-5); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.data-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; color: var(--muted); padding-bottom: var(--s-3); }
.data-table :is(th, td) { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.data-table thead th { color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.data-table tbody th { font-weight: 500; }

/* the article: H3 subsections sit inside their H2's right-hand column, the contents list takes
   the intro row's left five columns */
.post__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.post__meta > span + span::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.post-article .prose__body a, .post-article ~ #faq .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-article .prose__body a:hover, .post-article ~ #faq .faq a:hover { text-decoration-thickness: 2px; }
.post__h3 { margin: var(--s-7) 0 var(--s-3); font: 500 var(--t-lead)/1.35 var(--font-text); letter-spacing: -0.01em; text-wrap: balance; }
.prose__body > .post__h3:first-child { margin-top: 0; }
.prose__body :is(.checks, .table-wrap) + p { margin-top: var(--s-5); }
.prose__body p + .table-wrap, .prose__body .checks + .table-wrap { margin-top: var(--s-5); }
.post__toc > p { margin: 0 0 var(--s-3); }
.post__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); counter-reset: toc; }
.post__toc li { counter-increment: toc; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; }
.post__toc li::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.post__toc a { color: var(--ink); text-decoration: none; }
.post__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__label { margin: 0 0 var(--head-gap); }
.post-article .prose__block { scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.blog-grid { margin-top: var(--s-2); }
/* the guides index (/guides/): its two guide tiles, then the blog link under them */
.guides-grid { margin-top: var(--s-2); }
.guides-more { margin-top: var(--s-8); }

/* ---------------------------------------------------------------- 10. numbered steps and notes
   ProseBlocks (claim, how it works) and the home steps: the kit step ring beside its title and line,
   under hairlines; a note is a short remark on the surface. */
.how-steps { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.how-steps > li { display: grid; grid-template-columns: 32px 1fr; column-gap: var(--s-4); row-gap: var(--s-1);
                  padding-block: var(--s-5); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.how-steps .step-num { grid-row: span 2; }
.how-steps h3 { margin: 0; align-self: center; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.how-steps p { margin: 0; grid-column: 2; }
.prose__body > .how-steps:first-child { margin-top: 0; }
.prose__body .how-steps + p, .prose__body .prose__note + p { margin-top: var(--s-5); }
.prose__note { margin: var(--s-5) 0 0; padding: var(--s-4) var(--s-5); background: var(--surface); border-radius: var(--r-md); }

/* ---------------------------------------------------------------- 11. footer consent link
   "Cookie settings" (SiteFooter.astro) is a button that opens the consent banner; it reads as one
   more legal link, 44px tall on a phone like the links beside it. */
.footer__consent {
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.footer__consent:hover { color: var(--ink); }
@media (max-width: 639px) { .footer__consent { display: inline-flex; align-items: center; min-height: 44px; } }
/* the legal line: the brand line and its links in a row; on a phone each on its own line, all on the
   left edge */
.footer__legal > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); }
@media (max-width: 639px) {
  .footer__legal > span:first-child { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer__legal > span:first-child > a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------------------------------------------------------------- 12. a small phone at 200% zoom
   under 200px the twelve columns keep a smaller gutter, so a grid fits its wrap (eleven 12px gutters
   are wider than the wrap there); footer columns stack, and a word longer than its line (or two words
   kept together) breaks instead of pushing the page sideways. Last in the file so it wins. */
@media (max-width: 199px) {
  :root { --gutter: 6px; }
  .footer .footer__col, .closing__links .footer__col { grid-column: 1 / -1; }
  .how-steps > li { grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s-2); }
  main, footer, :is(main, footer) :is(h1, h2, h3, .t-display) { overflow-wrap: anywhere; hyphens: auto; }
  .nobr { white-space: normal; }
  /* the hero's longest word (Reception, 3.1em) fits its line whole, and so does soumissions in its button */
  .room__copy > h1 { font-size: min(2.6rem, 21vw); }
  .room__copy .btn { padding-inline: var(--s-2); }
}
