/*
  VowPicks 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 (shutter)
  4. home sections: cities, styles, steps, statement, photographers   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; }
@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 */
.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); } }
.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 photographer 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); }
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav__contact { justify-content: center; width: 40px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .nav__contact span { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .nav__search { width: 152px; } }

/* 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 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); }

/* ---------------------------------------------------------------- 3. hero (HomeView.astro)
   A split hero with a camera's entrance. The kit (motion.js, data-enter) raises the headline line by
   line, fades up the words after it and settles the photograph; the script in HomeView.astro adds
   the camera over it: the shutter's leaves open from the middle, the viewfinder corners close in,
   the focus mark locks on the couple, a soft flash, and the request card rises. At rest (no script,
   reduced motion) the leaves are open and every piece stands still, so nothing here ever hides the
   photograph on its own. The focus mark's place (--af-x, --af-y) is set beside the photograph. */
.hero__media { isolation: isolate; }
.hero__media > .hero__photo { transform: scale(1.04); transform-origin: 50% 40%; }
.shutter, .hero__flash, .viewfinder { position: absolute; inset: 0; pointer-events: none; }
.shutter { z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); }
.shutter > i { display: block; background: var(--p-inv-bg); transform: scaleY(0); }
.shutter > i:nth-child(odd) { background: color-mix(in oklab, var(--p-inv-bg) 88%, #000); }
.hero__flash { z-index: 2; background: #fff; opacity: 0; }
.viewfinder { z-index: 3; inset: var(--s-5); }
.viewfinder > span {
  position: absolute; width: 28px; height: 28px; border: 0 solid rgb(255 255 255 / .92);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .25));
}
.viewfinder > span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.viewfinder > span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.viewfinder > span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.viewfinder > span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
/* the focus mark, like the camera's own, on the couple */
.viewfinder__af {
  position: absolute; left: var(--af-x, 50%); top: var(--af-y, 45%); width: 44px; height: 30px; translate: -50% -50%;
  border: 1.5px solid rgb(255 255 255 / .85); border-radius: 4px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .3));
}
.hero__media > .ly-float { z-index: 4; left: calc(var(--s-5) + 40px); bottom: calc(var(--s-5) + 40px); }
/* the leaves, marks, card and photograph carry a transform while they enter */
.hero.is-shooting :is(.shutter > i, .viewfinder > *, .ly-float) { will-change: transform; }
.hero.is-shooting .hero__flash { will-change: opacity; }
/* a script later than the 700 ms mark: the head guard lifts and the leaves open, the marks fade in, by themselves */
@media (prefers-reduced-motion: no-preference) {
  html.m-enter-done .hero:not(.is-shooting) .shutter > i { transition: transform 700ms var(--m-ease-enter); }
  html.m-enter-done .hero:not(.is-shooting) :is(.viewfinder, .ly-float) { transition: opacity 400ms var(--m-ease); }
}
@media (max-width: 1023px) {
  .hero__media > .ly-float { left: var(--s-4); bottom: var(--s-4); }
  .viewfinder { inset: var(--s-4); }
  .viewfinder > span { width: 20px; height: 20px; }
  .viewfinder__af { width: 34px; height: 24px; }
}

/* ---------------------------------------------------------------- 4. home sections (HomeView.astro)
   cities: the heading across the top, then the provinces one under the other on the left beside a
   tall photograph on the right (the kit's split: text left, the visual right; the photograph comes
   first in the markup, so a phone shows it before the long list), each city a plain text link that
   opens the search on it (all text on the column's left line). Under 1024px the photograph turns landscape (square on a phone), so it never fills a
   tablet screen; its sizes follow the crop (a tall frame shows the 3:2 file 1.5 times its width). The
   search page's city list (SearchView) shares these classes, its photograph still under its heading. */
.cities__photo { margin: var(--s-6) 0 0; }
.cities__grid > .cities__photo { margin: 0; }
@media (min-width: 1024px) { .cities__grid > :is(.cities__photo, .cities__provinces) { grid-row: 2; } }
@media (max-width: 1023px) { .cities__grid > .cities__photo { --ratio: 66%; } }
@media (max-width: 639px) { .cities__grid > .cities__photo { --ratio: 100%; } }
.cities__provinces { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); align-content: start; }
.cities__province { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.cities__province > h3 { margin: 0 0 var(--s-2); }
.cities__list { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin: 0; padding: 0; list-style: none; }
.cities__list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 4px; transition: text-decoration-color var(--dur) var(--ease); }
.cities__list a:hover { text-decoration-color: currentColor; }
.cities__more { justify-self: start; }
@media (max-width: 1023px) {
  .cities__provinces { margin-top: var(--s-6); }
}
@media (max-width: 639px) {
  .cities__list { column-gap: var(--s-4); }
  .cities__list a { display: inline-flex; align-items: center; min-height: 44px; }
  .cities__province > h3 { margin-bottom: 0; }
}

/* styles: 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
   breaks the 2 x 2. Desktop: the lead tile on the left six columns over two rows, the four others
   two by two on the right. Tablet and phone: the lead across, then two by two. */
.styles__head { margin-bottom: var(--head-gap); }
.grid.styles__grid > .style-tile { grid-column: auto / span 6; text-decoration: none; }
.grid.styles__grid > .style-tile--lead { grid-column: 1 / -1; }
.style-tile { padding-bottom: var(--s-3); }
.style-tile > p { margin: calc(-1 * var(--s-2)) 0 0; color: var(--muted); font-size: var(--t-small); }
.style-tile--lead { grid-template-rows: auto auto auto; }
.style-tile--lead .tile__media { --tile-ratio: 16 / 9; }
@media (min-width: 1024px) {
  .grid.styles__grid > .style-tile { grid-column: auto / span 3; }
  .grid.styles__grid > .style-tile--lead { grid-column: 1 / span 6; grid-row: span 2; }
  .style-tile--lead { grid-template-rows: minmax(0, 1fr) auto auto; }
  .style-tile--lead .tile__media { aspect-ratio: auto; min-height: 320px; }
  /* the four small tiles a little wider than tall, so the whole section fits one screen at 1440 x 900 */
  .style-tile:not(.style-tile--lead) .tile__media { --tile-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  .style-tile { gap: var(--s-3); }
  .style-tile:not(.style-tile--lead) .tile__media { --tile-ratio: 1 / 1; }
  .style-tile:not(.style-tile--lead) .tile__head > h3 { font-size: var(--t-body); }
}

/* 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); }
.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 photographers: the dark band, the words left and the photograph right */
.photographers__text > p { margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.photographers__text > .btn-row { margin-top: var(--s-6); }
@media (max-width: 1023px) { .photographers__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 .crumbs { grid-column: 1 / -1; }
.quote .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 profiles as cards. Featured profiles carry their badge first. */
.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; } }
.search__count { margin: var(--s-7) 0 var(--s-4); color: var(--muted); }
.search__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--card-gap); margin: 0; padding: 0; list-style: none; }
.search__item[hidden] { display: none; }
.search__item > .badge { align-self: start; margin-bottom: var(--s-3); }
.search__item > h3 { margin: 0; }
.search__item > h3 > a { color: inherit; text-decoration: none; }
.search__item > h3 > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.search__item > p { margin: var(--s-1) 0 0; color: var(--muted); }
.search__claimed { color: var(--ink); }
.search__item > .search__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: auto; padding-top: var(--s-4); }
.search__links a { color: var(--action); text-underline-offset: 3px; }
.search__none { margin: var(--s-6) 0 0; color: var(--muted); }
.search__empty { margin-top: var(--s-6); }
.search__empty .t-lead { margin-top: var(--s-4); }
.search__empty .btn-row { margin-top: var(--s-6); }
@media (max-width: 1023px) { .search__empty > .frame { margin-top: var(--s-7); } }
@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; }
.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); }
.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; }
.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); }

/* ---------------------------------------------------------------- 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; }
}
