/*
  DJPicks site.css: the page CSS the kit leaves to the site (loaded last).
  1. section rhythm   2. nav: lang switch, theme switch, call button   3. header: DJ search, menus
  4. DJ search form   5. FAQ   6. contact   7. inner pages and blog   8. strategy pages
  9. listings   10. home
  Dark mode swaps tokens only: the palette (--p-*) takes its dark values in SiteHead.astro.
*/

/* ---------------------------------------------------------------- 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. */
/* with that shorter padding the fixed header would cover an anchor's top (a section heading,
   or the contact field a « choose this subject » link lands on): anchors stop under it */
html { scroll-padding-top: var(--nav); }
/* a field anchor also keeps its label in view */
:is(input, select, textarea)[id] { scroll-margin-top: 2.5rem; }
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);
}
/* the one held section keeps the kit's height: live (from 1024px on a screen 640px tall or more),
   pinned-chapters holds its stage for a screen per chapter, so it never takes its content height */
main > section.section[data-moment="pinned-chapters"].is-live { height: calc((var(--mo-hold) + 1) * 100svh); padding-block: 0; }
/* (the kit's 640-1279px rule grows every section's .wrap to fill it: the stage would stretch over
   both screens and never stick at 1024-1279) */
main > section.section[data-moment="pinned-chapters"].is-live > .mo-pc__grid { flex: none; }
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 */
.closing__cta > .btn { align-self: flex-start; }
/* KeepWords.astro: a hyphenated word in a heading or lead (Wi-Fi) never splits at its hyphen */
.nobr { white-space: nowrap; }

/* ---------------------------------------------------------------- 2. nav */
/* the vinyl pin mark (LogoMark.astro): a map pin whose head is a record, the tonearm resting on it; on
   hover of the logo the record's light sweeps once round the disc and the arm nudges in. Fixed colours
   for the vinyl, the label and the arm, so the mark reads the same on a light and a dark page
   (public/favicon.svg draws it the same way). */
.nav__logo .logo-mark { width: 30px; height: 30px; flex: none; }
.footer .nav__logo .logo-mark { width: 1.15em; height: 1.15em; margin-right: 0.12em; vertical-align: -0.2em; }
.logo-mark__tile, .logo-mark__hole { fill: var(--accent); }
.logo-mark__pin { fill: #15110f; }
.logo-mark__groove { fill: none; stroke: #fff; stroke-opacity: .2; stroke-width: 1; }
.logo-mark__sheen { fill: #fff; fill-opacity: .14; transform-box: view-box; transform-origin: 29px 27px; }
.logo-mark__label, .logo-mark__arm { fill: #ebe5e3; }
.logo-mark__arm path { fill: none; stroke: #ebe5e3; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark__arm { transform-box: view-box; transform-origin: 53px 10px; }
@keyframes logo-spin { to { transform: rotate(360deg); } }
@keyframes logo-cue { 40% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .nav__logo:is(:hover, :focus-visible) .logo-mark__sheen { animation: logo-spin 1s cubic-bezier(.3, .1, .2, 1); }
  html:not([data-motion="off"]) .nav__logo:is(:hover, :focus-visible) .logo-mark__arm { animation: logo-cue .8s cubic-bezier(.3, .1, .2, 1); }
}
@media (max-width: 639px) { .nav__logo .logo-mark { width: 26px; height: 26px; } }

.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: var(--t-label); font-weight: 500; letter-spacing: .04em; 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 theme switch beside the languages: a moon on a light page, a sun on a dark one (HomeNavigation.astro) */
.nav__prefs { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav.is-open .nav__prefs { justify-content: center; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.theme-toggle:hover { background: var(--surface); color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle__sun, :root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
}


/* the call button (our CallRail number, siteConfig.phone; it opens the call window). Like the skeleton, it
   stays in the closed phone bar beside the main button (the kit keeps only .btn--primary there), its words
   without the number; on a small phone it shrinks to its icon, its aria-label still naming it. */
.btn--urgence { gap: var(--s-2); background: var(--accent); color: var(--accent-ink, #fff); }
@media (max-width: 1023px) { .nav:not(.is-open) .nav__actions > .btn--urgence { display: inline-flex; } }
@media (max-width: 479px) {
  .nav:not(.is-open) .nav__actions > .btn--urgence { width: var(--btn-h); padding-inline: 0; justify-content: center; }
  .nav:not(.is-open) .nav__actions > .btn--urgence > span { display: none; }
}
/* under 360px the bar has room for one button: the call one, as in the skeleton; quotes stay in the sheet */
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions:has(> .btn--urgence) > .btn--primary { display: none; } }
/* 360 to 369 in French: « Soumissions » is the longer word, and the bar ran 4px into the right gutter;
   a tighter gap and padding give it 8px of room */
@media (min-width: 360px) and (max-width: 369px) {
  html:lang(fr) .nav:not(.is-open) .nav__actions:has(> .btn--urgence) { gap: var(--s-3); }
  html:lang(fr) .nav:not(.is-open) .nav__actions:has(> .btn--urgence) > .btn--primary { padding-inline: var(--s-2); }
}
.btn--urgence__tel { font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .nav:not(.is-open) .btn--urgence__tel { display: none; } }
/* in the bar (1024px and up) it is the phone on a square button, and the phone with our number where the
   words leave room (English from 1440px); the call window always shows the number. Below 1280px it takes
   the Contact link's place, Contact staying in the call window, the phone sheet and the footer. */
@media (min-width: 1024px) {
  .btn--urgence__label { display: none; }
  html:lang(fr) .btn--urgence__tel { display: none; }
  html:lang(fr) .nav__actions .btn--urgence { width: var(--btn-h); padding: 0; justify-content: center; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .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) {
  .nav__actions:has(> .btn--urgence) > .nav-contact { display: none; }
}
/* the open sheet: the links scroll clear of the fixed bottom panel. It holds the Contact link (44px), the
   preferences (34px) and the main button (48px), 8px apart, in 16px padding and a 1px rule: 175px, more
   than the kit's 144px, which hid the last link on a 360x640 phone. The call button adds 48px and a gap,
   a notched phone its safe area; 16px more keep the last row off the rule. */
@media (max-width: 1023px) {
  .nav.is-open .nav__links { padding-bottom: calc(191px + env(safe-area-inset-bottom)); }
  .nav.is-open:has(.btn--urgence) .nav__links { padding-bottom: calc(247px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- 3. header: DJ search, menus
   HomeNavigation.astro. The search sits in the actions as a word with a magnifier; a click opens the
   kit's full-width panel under the bar (the kit opens .nav__menu on hover only, so the open state is
   set here from the .is-open class the script toggles). The phone sheet shows the form inline. */
.nav-find { display: flex; align-items: center; height: 100%; }
.nav-find__toggle { display: inline-flex; align-items: center; gap: var(--s-2); border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav-find__toggle svg { width: 16px; height: 16px; flex: none; }
.nav-find.is-open > .nav__menu { opacity: 1; visibility: visible; transform: none; transition-duration: 200ms, 200ms, 0s; transition-delay: 0s; }
.nav-find.is-open > .nav-find__toggle::before { transform: scaleX(1); transform-origin: left; }
.nav-find__panel { padding-block: var(--s-6) var(--s-7); }
.nav-contact { white-space: nowrap; }
.cta-short { display: none; }
@media (min-width: 1024px) {
  .nav-sheet-find { display: none !important; }
  .nav__actions { gap: var(--s-3); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-find__label, .cta-long { display: none; }
  .cta-short { display: inline; }
}
/* the French words are longer: the short button until the bar has room for the long one */
@media (min-width: 1280px) and (max-width: 1535px) {
  html:lang(fr) .nav .cta-long { display: none; }
  html:lang(fr) .nav .cta-short { display: inline; }
}
@media (max-width: 1023px) {
  /* the sheet: the search form inline under the links, no panel; the bar keeps only the main button */
  .nav-find { display: none !important; }
  .nav.is-open .nav-sheet-find { display: block; padding-block: var(--s-5) var(--s-4); border-bottom: 0; }
  .nav:not(.is-open) .nav-sheet-find { display: none; }
}
@media (max-width: 639px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* the Cities panel: a province name heads each column and links to its page */
.menu-col > .menu-col__head { color: var(--muted); margin-bottom: var(--s-1); padding: 0; font-weight: 500; }
.menu-col > .menu-col__head:hover { color: var(--action); }
.menu-col > .menu-col__head + a { padding-top: var(--s-1); }
/* the Events panel: the photo cards' title and line under the picture */
.menu-card .t-card { font-weight: 500; }
.menu-card .t-small { color: var(--muted); }
.menu-card:hover .t-card { color: var(--action); }

/* ---------------------------------------------------------------- 4. DJ search form
   FindDj.astro: a city or province, an event type, the button. panel: one row in the header panel,
   popular cities under it; sheet: stacked in the phone menu; hero: a raised card on the home hero. */
.find-dj { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: var(--s-3); align-items: end; }
.find-dj__field { min-width: 0; }
.find-dj__field label { color: var(--muted); }
.find-dj__field :is(input, select) { height: 48px; }
.find-dj__field select { appearance: none; padding-right: var(--s-6);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23777' stroke-width='1.5'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right var(--s-3) center / 12px; }
.find-dj__field input::-webkit-search-cancel-button { cursor: pointer; }
.find-dj__go { height: 48px; white-space: nowrap; }
.find-dj__note { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.find-dj__note:empty { display: none; }
.find-dj__note a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.find-dj__popular { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.find-dj__popular > .t-label { color: var(--muted); }
.find-dj__popular ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-3); border-radius: 999px;
  border: 1px solid var(--line); font-size: var(--t-small); color: var(--ink); text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { background: var(--surface); border-color: var(--line-strong); }
.chip:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.find-dj--sheet { grid-template-columns: minmax(0, 1fr); }
.find-dj--sheet .find-dj__go { width: 100%; }
.find-dj--hero {
  padding: var(--s-5); border-radius: var(--r-md); background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 60px -30px rgb(0 0 0 / .45);
}
@media (max-width: 767px) {
  .find-dj--panel, .find-dj--hero { grid-template-columns: minmax(0, 1fr); }
  .find-dj--panel .find-dj__go, .find-dj--hero .find-dj__go { width: 100%; }
}

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

/* ---------------------------------------------------------------- 6. 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.
   The intro's rows, email and photo (.contact__more) come after the card in the markup, so a phone
   shows the form right under the title; from 1024 the card spans two rows and they sit back under
   the title, the grid's row gap taken off their top so the title-to-rows spacing stays --s-7. */
.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 (min-width: 1024px) {
  .contact__card { grid-row: span 2; }
  .contact__more .contact__rows { margin-top: calc(var(--s-7) - var(--card-gap)); }
}
@media (max-width: 639px) { .cm-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 7. 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 stretches the row and turns the second action into a centred underline under a
   filled button; inside a prose block, and under the home's list for DJs (#listed), the secondary
   button stands alone, so it keeps its outline at its own width and the row stays on the text's
   left edge */
@media (max-width: 639px) {
  .prose__body > .btn-row, #listed .btn-row { align-items: flex-start; }
  :is(.prose__body > .btn-row, #listed .btn-row) > .btn--secondary { background: var(--bg); border-color: var(--line-strong); text-decoration: none; }
}
/* a small phone: a long label (FR « Nous écrire au sujet de votre fiche ») outgrows the stretched
   button on one line and pushed the page sideways; it wraps to two lines inside the button instead */
@media (max-width: 399px) {
  .btn-row > .btn { max-width: 100%; height: auto; min-height: var(--btn-h); padding-block: var(--s-3);
                    white-space: normal; line-height: 1.25; 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; }
.site-map__col ul ul { margin-top: var(--s-2); padding-left: var(--s-4); gap: var(--s-2); font-size: var(--t-small); }
.site-map__col ul ul a { color: var(--muted); }
@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); }
/* "Keep looking" (related pages under a listing, a guide or a post): each tile carries a line of 30 to
   50 words, too long for the kit's two-up phone tiles (about 20 characters a line), so on a phone they
   stack one a row, the picture cropped wide so the three still fit about a screen and a half */
@media (max-width: 639px) { #related .grid > .tile { grid-column: 1 / -1; --tile-ratio: 16 / 9; } }
.post-article .prose__block { scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.blog-grid { margin-top: var(--s-2); }

/* ---------------------------------------------------------------- 8. strategy pages
   ArticleView.astro (guides, uses, scanners): numbered steps keep the step ring of the home's
   steps, its title and line beside it 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); }


/* ---------------------------------------------------------------- 9. listings
   DjCard.astro on the province, city, wedding and event pages: three a row on a wide screen, two
   on a tablet, one on a phone. A card is a quiet surface: the monogram, the name and place, the
   tags as small plain chips, then the DJ's own phone and site. The row gap is the kit's. */
@media (min-width: 640px) and (max-width: 1023px) { .grid > .dj-card { grid-column: auto / span 6; } }
.dj-card { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line);
           border-radius: var(--r-lg); background: var(--bg); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .dj-card:hover { border-color: var(--line-strong); transform: translateY(-2px); } }
.dj-card__top { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.dj-card__mono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md);
                 font: 600 18px/1 var(--font-text); letter-spacing: .02em;
                 background: color-mix(in oklab, var(--accent) 16%, var(--bg)); color: var(--ink); }
.dj-card[data-tint="1"] .dj-card__mono { background: color-mix(in oklab, var(--action) 14%, var(--bg)); }
.dj-card[data-tint="2"] .dj-card__mono { background: var(--surface); }
.dj-card__id { min-width: 0; }
.dj-card__name { margin: 0; font: 500 var(--t-card)/1.25 var(--font-text); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dj-card__name a { color: var(--ink); text-decoration: none; }
.dj-card__name a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.dj-card__place { margin: var(--s-1) 0 0; color: var(--muted); }
.dj-card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.dj-card__tags li { padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: var(--t-small); color: var(--ink); }
.dj-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: auto;
                    padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-small); }
.dj-card__act { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; color: var(--ink); text-decoration: none; min-width: 0; }
.dj-card__act svg { flex: none; color: var(--muted); }
.dj-card__act:hover .dj-card__num, .dj-card__act:hover .dj-card__host { text-decoration: underline; text-underline-offset: 3px; }
.dj-card__num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dj-card__host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.dj-card__more { margin-left: auto; }
.dj-card :is(a):focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .dj-card { transition: none; } .dj-card:hover { transform: none; } }

/* the list under the cards: filter chips above, the cards past the first 24 folded until « show
   more » (with JavaScript only; without it every card shows) */
.dj-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-6); }
.dj-filter > .t-label { color: var(--muted); }
.dj-filter .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.dj-list.is-folded > .dj-card.is-extra { display: none; }
.dj-list > .dj-card[hidden] { display: none; }
.dj-more { display: flex; justify-content: center; margin-top: var(--s-7); }
.dj-count { margin: 0 0 var(--s-4); color: var(--muted); }
.place-strip { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
/* name and count centred on the chip's middle line, not hung from a shared baseline (line-height 1 on both) */
.place-strip a { display: inline-flex; align-items: center; gap: var(--s-2); line-height: 1; }
.place-strip .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--t-small); line-height: 1; }
button.chip { background: none; font: inherit; font-size: var(--t-small); cursor: pointer; }


/* ---------------------------------------------------------------- 10. home
   HeroDeck.astro: the kit's film frame as a dark club stage. The words and the DJ search on the
   left (above the set under 1024), on the right a two-deck controller drawn in one SVG (the desk,
   tilted back a little) with a laptop screen over it; the platters, the jog rings, the waveform
   strips and the glow are HTML layers on top, so GSAP turns and fades them on the compositor. The
   stage keeps fixed club colours in both themes; the search card takes the page's own ground.
   Without script every part is still: a mix caught halfway, the beams at their base angle (--r). */
.hero--deck .deck-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: var(--s-6);
  justify-content: normal; padding: var(--s-6);
  background:
    radial-gradient(60% 55% at 78% 92%, rgb(60 207 127 / .16), transparent 70%),
    radial-gradient(50% 45% at 88% 0%, rgb(255 111 165 / .12), transparent 70%),
    #0c0a09;
}

/* the words: light on the stage in both themes (the page's inverse tokens flip in dark mode) */
.hero--deck .deck-copy {
  grid-row: 2; position: relative; z-index: 3; min-width: 0;
  color: #ede7e4; --ink: #ede7e4; --muted: #a9a29e;
}
.deck-words .hero__kicker + h1 { margin-top: var(--s-4); }
.deck-words .hero__lead { margin-top: var(--s-4); }
.hero--deck .hero__kicker .dot { background: #3ccf7f; }

/* the search: the page's light ground inside the dark stage */
.hero--deck .find-dj--hero {
  margin-top: var(--s-6); color: var(--ink);
  --bg: var(--p-bg); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
  --line: color-mix(in oklab, var(--p-ink) 11%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 24%, transparent);
}
/* dark mode: the card is the dark page ground, so a hairline keeps it off the stage */
:root[data-theme="dark"] .hero--deck .find-dj--hero { box-shadow: 0 0 0 1px rgb(237 231 228 / .12), 0 24px 60px -30px rgb(0 0 0 / .6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero--deck .find-dj--hero { box-shadow: 0 0 0 1px rgb(237 231 228 / .12), 0 24px 60px -30px rgb(0 0 0 / .6); }
}

/* the set: its box holds the controller at its own proportions (1000 x 740), as big as fits */
.deck-rig { grid-row: 1; position: relative; z-index: 1; min-height: 0; display: grid; place-items: center;
            container-type: size; pointer-events: none; }
.deck-unit { position: relative; width: min(100cqw, 100cqh * 1000 / 740); aspect-ratio: 1000 / 740; container-type: inline-size; }
@container (max-height: 110px) { .deck-unit { display: none; } }
.deck-glow { position: absolute; left: 4%; right: 4%; bottom: -10%; height: 40%; opacity: .55;
             background: radial-gradient(40% 60% at 30% 50%, rgb(60 207 127 / .35), transparent 70%),
                         radial-gradient(40% 60% at 70% 50%, rgb(255 111 165 / .3), transparent 70%); }

/* the laptop screen: both tracks' waveforms run right to left past the playhead (35% in) */
.deck-screen { position: absolute; left: 6%; right: 6%; top: 0; height: 21.6%; display: flex; flex-direction: column; gap: .8cqw;
               padding: 1.2cqw 1.4cqw; border: 1px solid #2e2a27; border-radius: 1.4cqw;
               background: linear-gradient(#141110, #0b0908); box-shadow: 0 1.5cqw 4cqw rgb(0 0 0 / .5); }
.deck-screen__bar { display: flex; align-items: center; gap: 1.2cqw; margin: 0; color: #8a837f;
                    font: 600 1.5cqw/1 var(--font-mono); letter-spacing: .04em; }
.deck-screen__master { margin-inline: auto; color: #ede7e4; }
.deck-tag { display: inline-grid; place-items: center; width: 2.6cqw; height: 2.6cqw; border-radius: .5cqw; color: #0b0908; }
.deck-tag--a { background: #3ccf7f; }
.deck-tag--b { background: #ff6fa5; }
@container (max-width: 420px) { .deck-screen__bar { display: none; } }
.deck-lane { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: .6cqw; background: rgb(255 255 255 / .025); }
.deck-lane--a { color: #3ccf7f; }
.deck-lane--b { color: #ff6fa5; }
/* what has played, dimmed; then the playhead */
.deck-lane::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgb(11 9 8 / .55) 0 35%, transparent 35%); }
.deck-lane::after { content: ""; position: absolute; top: 0; bottom: 0; left: 35%; z-index: 2; width: 2px; margin-left: -1px;
                    background: #ede7e4; box-shadow: 0 0 6px rgb(237 231 228 / .5); }
/* the strip: two loops, 8 lanes wide (8 beats a lane, 32 a loop), slid by GSAP (xPercent) */
.deck-wave { display: block; width: 800%; max-width: none; height: 100%; fill: currentColor; }
.deck-wave__grid, .deck-wave__bar4 { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.deck-wave__grid { stroke: rgb(255 255 255 / .08); }
.deck-wave__bar4 { stroke: rgb(255 255 255 / .2); }

/* the desk, tilted back from its front edge */
.deck-desk { position: absolute; left: 0; right: 0; bottom: 0; height: 75.68%;
             transform: perspective(250cqw) rotateX(22deg); transform-origin: 50% 100%; }
.deck-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.deck-svg__body { stroke: #2e2a27; stroke-width: 2; }
.deck-svg__edge { fill: none; stroke: rgb(255 255 255 / .08); stroke-width: 2; }
.deck-svg__housing { stroke: #2a2623; stroke-width: 2; }
.deck-svg__slot { fill: #0b0908; }
.deck-svg__cap { fill: #3a3532; stroke: #4a4440; stroke-width: 1.5; }
.deck-svg__capline { fill: none; stroke: #ede7e4; stroke-width: 2; stroke-linecap: round; }
.deck-svg__tick { fill: none; stroke: #6b6460; stroke-width: 2; }
.deck-svg__cue circle { fill: #1f1b19; stroke: #ffcf4a; stroke-width: 2; }
.deck-svg__cue text { fill: #ffcf4a; font: 700 11px var(--font-mono); text-anchor: middle; }
.deck-side--a, .deck-ring--a, .deck-platter--a { color: #3ccf7f; }
.deck-side--b, .deck-ring--b, .deck-platter--b { color: #ff6fa5; }
.deck-svg__play circle { fill: #1f1b19; stroke: currentColor; stroke-width: 2; }
.deck-svg__play path { fill: currentColor; }
.deck-svg__pad { fill: #1f1b19; stroke: #2e2a27; stroke-width: 1.5; }
.deck-pads .lit { fill: currentColor; }
.deck-svg__panel { fill: #171412; stroke: #2a2623; stroke-width: 2; }
.deck-svg__knob { fill: #2a2522; stroke: #3d3733; stroke-width: 2; }
.deck-svg__needle { fill: none; stroke: #ede7e4; stroke-width: 2.5; stroke-linecap: round; }
.deck-led { fill: #ffcf4a; }
.deck-svg__ch { font: 600 14px var(--font-mono); text-anchor: middle; }
.deck-svg__ch--a { fill: #3ccf7f; }
.deck-svg__ch--b { fill: #ff6fa5; }

/* the jog rings (lit on the kick), the platters (turned by GSAP) and their fixed highlight, laid on
   the desk's two housings (cx 225 / 775, cy 215 of 1000 x 560) */
.deck-ring, .deck-platter, .deck-sheen { position: absolute; top: 15.893%; width: 25.2%; height: 45%; }
.deck-ring { left: 8.2%; top: 12.857%; width: 28.6%; height: 51.07%; opacity: .25; filter: drop-shadow(0 0 6px currentColor); }
.deck-ring--b { left: 63.2%; }
.deck-ring svg, .deck-platter svg { display: block; width: 100%; height: 100%; overflow: visible; }
.deck-ring circle { fill: none; stroke: currentColor; stroke-width: 1.4; }
.deck-platter, .deck-sheen { left: 9.9%; border-radius: 50%; }
.deck-platter--b, .deck-sheen--b { left: 64.9%; }
.deck-platter { pointer-events: auto; }
.deck-vinyl { fill: #0f0d0c; stroke: #2a2623; stroke-width: 2; }
.deck-strobe { fill: none; stroke: rgb(255 255 255 / .28); stroke-width: 3; stroke-dasharray: 1.5 4.5; }
.deck-groove { fill: none; stroke: rgb(255 255 255 / .06); stroke-width: 1; }
.deck-label { fill: currentColor; }
.deck-label__dot { fill: rgb(255 255 255 / .85); }
.deck-cueline { fill: none; stroke: rgb(255 255 255 / .7); stroke-width: 3; stroke-linecap: round; }
.deck-hole { fill: #0b0908; }
.deck-sheen { pointer-events: none;
              background: conic-gradient(from 200deg, transparent 0deg 20deg, rgb(255 255 255 / .1) 45deg, transparent 75deg 200deg,
                                         rgb(255 255 255 / .06) 225deg, transparent 255deg); }

/* the beams: a wedge each, its light in the gradient (the element's own opacity stays GSAP's),
   hung from the stage's top edge at its base angle; GSAP swings them from there. Each box is only
   as wide as its wedge (24deg at most, faded out by 92% of its height) and blends normally: on the
   near-black stage that looks the same as screen, and a software-composited browser keeps twice
   the frame rate (12 to 24 fps measured) */
.deck-beam { position: absolute; z-index: 2; top: -8%; height: 125%; width: auto; max-width: 90%; aspect-ratio: .4 / 1;
             transform-origin: 50% 0; transform: translateX(-50%) rotate(var(--r)); pointer-events: none;
             -webkit-mask: linear-gradient(to bottom, #000 0%, #000 35%, transparent 92%);
                     mask: linear-gradient(to bottom, #000 0%, #000 35%, transparent 92%); }
.deck-beam--a { left: 30%; --r: 16deg;
                background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgb(110 240 170 / .2) 12deg, transparent 24deg); }
.deck-beam--b { left: 55%; --r: -12deg;
                background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgb(255 132 178 / .26) 12deg, transparent 24deg); }
.deck-beam--c { left: 80%; --r: 30deg;
                background: conic-gradient(from 170deg at 50% 0, transparent 0deg, rgb(255 200 90 / .18) 10deg, transparent 20deg); }

/* the layers GSAP moves get their own compositor layer once the set has started (HeroDeck.astro adds
   .deck-live and keeps it through a pause); a still set (reduced motion) keeps none */
.hero--deck.deck-live :is(.deck-glow, .deck-ring) { will-change: opacity; }
.hero--deck.deck-live :is(.deck-wave, .deck-platter, .deck-beam) { will-change: transform; }

/* the toys (HeroDeck.astro), once the set is live: pointer-only decoration; a touch drag up or down
   still scrolls the page (pan-y) */
.deck-xfader__hit { fill: transparent; }
.hero--deck.deck-live .deck-rig { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hero--deck.deck-live :is(.deck-platter, .deck-xfader__hit) { cursor: grab; touch-action: pan-y; }
.hero--deck.deck-live :is(.deck-platter, .deck-xfader__hit).is-held { cursor: grabbing; }
.hero--deck.deck-live .deck-pads > g { pointer-events: auto; cursor: pointer; }
.hero--deck.deck-live .deck-xfader__hit { pointer-events: all; }

/* the kit's pause disc (system.css .loop-pause) for the set and the beams, above the words; it swaps
   its two icons with .is-paused */
.hero--deck .deck-pause { z-index: 4; top: 12px; bottom: auto; }
/* the stage is dark in both themes: the kit's ring (the page ink) would vanish on it in light mode */
.hero--deck .deck-pause:focus-visible { outline-color: #ede7e4; }
/* scoped twice: ui/base.css shows every svg in a .loop-pause */
.deck-pause .deck-pause__play, .deck-pause.is-paused .deck-pause__pause { display: none; }
.deck-pause.is-paused .deck-pause__play { display: block; }

/* the sound button (HeroDeck.astro "Take the decks"): a dark pill beside the pause disc, the same dark
   stage in both themes; on, its headphones give way to three bars moving on the beat */
.hero--deck .deck-sound { position: absolute; z-index: 4; top: 12px; right: 56px; display: inline-flex; align-items: center;
              gap: 8px; height: 32px; padding: 0 14px 0 12px; border: 1px solid rgb(237 231 228 / 0.22);
              border-radius: 999px; background: #0c0a09; color: #ede7e4; font: inherit; font-size: 13px;
              font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
              transition: border-color 0.2s, transform 0.15s; }
.hero--deck .deck-sound[hidden] { display: none; }
/* a 44px target round the 32px pill */
.deck-sound::before { content: ''; position: absolute; inset: -6px; }
.deck-sound:hover { border-color: #3ccf7f; }
.deck-sound:active { transform: scale(0.97); }
.deck-sound:focus-visible { outline: 2px solid #ede7e4; outline-offset: 3px; }
.deck-sound__icon { width: 16px; height: 16px; fill: none; stroke: #3ccf7f; stroke-width: 1.5; stroke-linecap: round; }
.deck-sound__icon rect { fill: #3ccf7f; stroke: none; }
.deck-sound__eq { display: none; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.deck-sound__eq i { flex: 1; height: 100%; border-radius: 1px; background: #3ccf7f; transform-origin: bottom;
                    animation: deck-eq 1s ease-in-out infinite; }
.deck-sound__eq i:nth-child(2) { animation-delay: -0.35s; }
.deck-sound__eq i:nth-child(3) { animation-delay: -0.7s; }
.deck-sound.is-on .deck-sound__icon { display: none; }
.deck-sound.is-on .deck-sound__eq { display: inline-flex; }
.deck-sound.is-on { border-color: rgb(60 207 127 / 0.6); }
/* the set paused: the bars stop with the music (the pause disc comes just before the pill) */
.deck-pause.is-paused ~ .deck-sound .deck-sound__eq i { animation-play-state: paused; }
/* loading the sound: the headphones pulse */
.deck-sound[aria-busy='true'] { cursor: progress; }
.deck-sound[aria-busy='true'] .deck-sound__icon { animation: deck-busy 0.8s ease-in-out infinite alternate; }
@keyframes deck-eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes deck-busy { to { opacity: 0.3; } }
/* the set stands still under reduced motion: no sound to mix */
@media (prefers-reduced-motion: reduce) {
  .deck-sound { display: none !important; }
}

/* a desktop: the words in 5 columns, the set in 7, side by side and centred on the stage's height */
@media (min-width: 1024px) {
  /* flex-shrink 0: the kit lets the frame shrink to 520px, under the words; it never goes below them */
  .hero--deck .deck-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr);
                            gap: var(--s-7); padding: var(--s-8); flex-shrink: 0; }
  .hero--deck .deck-copy { grid-column: 1; grid-row: 1; align-self: safe center; }
  .deck-rig { grid-column: 2; grid-row: 1; }
  .hero--deck h1 { font-size: clamp(40px, 4vw, 72px); }
  /* the city on its own row, the event and the button under it */
  .hero--deck .find-dj--hero { grid-template-columns: minmax(0, 1fr) auto; }
  .hero--deck .find-dj__field--where { grid-column: 1 / -1; }
  .deck-beam--a { left: 62%; }
  .deck-beam--b { left: 78%; }
  .deck-beam--c { left: 92%; }
  .hero--deck .deck-pause { top: auto; bottom: 12px; }
  .hero--deck .deck-sound { top: auto; bottom: 12px; }
}
/* the kit holds the hero to one screen (system.css), but the stage above never shrinks under the words:
   on a short window (1024 x 600, 1366 x 657, 1536 x 730) it ran past the hero, under the next section,
   which took the clicks on the search button. As the kit does on a phone, the hero grows with its stage
   instead; where the stage and its bottom padding fit, the hero stays exactly one screen. */
@media (min-width: 1024px) {
  main > .hero--deck { height: auto; min-height: 100vh; min-height: 100svh;
                       display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
  main > .hero--deck > .wrap { height: auto; }
}
/* 1024 to 1279: the words take a little more of the width, the set still whole */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--deck .deck-stage { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-6); padding: var(--s-7); }
}
/* a laptop window (1440 x 900, 1536 x 864, 1600 x 900): the words, the search and its popular
   cities ran past the frame by up to 75px; without the cities and with a thinner padding they fit */
@media (min-width: 1024px) and (max-height: 960px) {
  .hero--deck .deck-stage { padding: var(--s-7); }
  .hero--deck .find-dj__popular { display: none; }
}
/* a short one (1280 x 600 to 1536 x 730): the type steps down too, and the hero runs a little past
   the fold rather than cut the search */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero--deck h1 { font-size: clamp(36px, 3.4vw, 56px); }
  .hero--deck .find-dj--hero { margin-top: var(--s-5); }
}
/* a tablet: the set steps down under the sound pill and the pause disc, which touched the screen's corner */
@media (min-width: 640px) and (max-width: 1023px) { .deck-rig { padding-top: var(--s-5); } }
@media (max-width: 639px) {
  .hero--deck .deck-stage { grid-template-rows: auto auto; gap: var(--s-5); padding: var(--s-5); }
  /* the set sits low in its box, clear of the pause disc in the stage's top corner */
  .deck-rig { height: clamp(170px, 32svh, 280px); place-items: end center; }
  .hero--deck .find-dj--hero { margin-top: var(--s-5); }
}
@media (max-width: 639px), (max-height: 860px) { .hero--deck .find-dj__popular { display: none; } }
/* a small phone (320 to 399): the stage and the search card each pad their sides, which left the
   city field 150px and cut its example mid-word; thinner nested paddings give it back */
@media (max-width: 399px) {
  .hero--deck .deck-stage { padding: var(--s-4); }
  .hero--deck .find-dj--hero { padding: var(--s-4); }
}
/* the city field lists places (a datalist): Chrome keeps room for its arrow even when empty, which cut
   the example short; the places still come up as the visitor types */
.find-dj__field input::-webkit-calendar-picker-indicator { display: none !important; }

/* the parts wait with the words (motion.css's hold) until the timeline in HeroDeck.astro takes
   them; a late script finds them fading in, unless GSAP already owns their opacity (.deck-live) */
@media screen and (prefers-reduced-motion: no-preference) {
  html.m-enter:not(.m-enter-done, [data-motion="off"]) .hero--deck:not(.is-entering, .is-entered, .is-still)
    :is(.find-dj--hero, .deck-rig, .deck-beam) { opacity: 0; }
  html.m-enter.m-enter-done:not([data-motion="off"]) .hero--deck:not(.deck-live)
    :is(.find-dj--hero, .deck-rig, .deck-beam) { transition: opacity 400ms var(--m-ease); }
}

/* pinned-chapters, live: the stage holds a whole screen, so its picture grows toward the screen's
   height (4:5 at most) and a 1920 or 2560 screen never shows a small 4:3 frame in an empty band */
main > section[data-moment="pinned-chapters"].is-live .mo-pc__visuals { aspect-ratio: 4 / 5; max-height: min(72svh, calc(100svh - 128px)); }
/* a tall screen (1920x1200, 2560x1440): the half column caps the 4:5 frame near 800px and the stage
   stood ~300px empty above and below it, so the picture takes 7 of the 12 columns and a 3:4 frame */
@media (min-width: 1280px) and (min-height: 1200px) {
  main > section[data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  main > section[data-moment="pinned-chapters"].is-live .mo-pc__visuals { aspect-ratio: 3 / 4; }
}

/* picture-develops: the listing section's one photograph, as tall as the text beside it */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit)); }
.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 cities: one block a province, its name and count over its city chips */
.home-provinces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s-6) var(--gutter);
                  margin: var(--s-7) 0 0; padding: 0; list-style: none; }
.home-province { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.home-province h3 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-4);
                    font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.home-province h3 a { color: var(--ink); text-decoration: none; }
.home-province h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 767px) { .home-province h3 a { display: inline-flex; align-items: center; min-height: 44px; } }
.home-province h3 .n { color: var(--muted); font: 400 var(--t-small)/1 var(--font-text); font-variant-numeric: tabular-nums; }

/* what a listing shows: name and line under hairlines */
.home-rows { list-style: none; margin: var(--s-6) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.home-rows > li { display: grid; gap: var(--s-1); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.home-rows strong { font-weight: 500; }
.home-rows span { color: var(--ink); }
.home-rows strong a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.home-rows strong a:hover { text-decoration-color: var(--accent); }

/* a DJ's profile: the listing as a card of hairline rows, its monogram, what the listing is */
.profile { align-items: start; }
/* the listing's photo is as tall as its card: a short listing gets a short picture */
.profile:has(> .profile__photo) { align-items: stretch; }
.profile__card { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.profile__top { display: flex; align-items: center; gap: var(--s-4); }
.profile__mono { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: var(--r-md);
                 font: 600 24px/1 var(--font-text); letter-spacing: .02em;
                 background: color-mix(in oklab, var(--accent) 16%, var(--bg)); color: var(--ink); }
.profile__card[data-tint="1"] .profile__mono { background: color-mix(in oklab, var(--action) 14%, var(--bg)); }
.profile__card[data-tint="2"] .profile__mono { background: var(--surface); }
.profile__label { margin: 0; }
.profile__facts { margin: var(--s-6) 0 0; border-bottom: 1px solid var(--line); }
.profile__facts > div { display: grid; grid-template-columns: minmax(0, 13ch) minmax(0, 1fr); gap: var(--s-2) var(--s-5);
                        padding-block: var(--s-4); border-top: 1px solid var(--line); }
.profile__facts dt { color: var(--muted); font-size: var(--t-small); padding-top: 2px; }
.profile__facts dd { margin: 0; overflow-wrap: anywhere; }
.profile__facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.profile__facts a:hover { text-decoration-color: var(--accent); }
.profile__facts a:focus-visible, .profile__links a:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.profile__num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile__places { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0; padding: 0; list-style: none; }
.profile__about > h2 { margin: 0 0 var(--s-5); }
.profile__about > p { max-width: 62ch; color: var(--ink); }
.profile__about > p + p { margin-top: var(--s-3); }
.profile__owner { margin: var(--s-6) 0 var(--s-3); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.profile__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none; }
@media (max-width: 639px) {
  .profile__card { padding: var(--s-5); }
  .profile__facts > div { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
}
@media (max-width: 1023px) { .profile > .frame { margin-top: var(--s-6); } .profile > .profile__about { margin-top: var(--s-6); } }

/* the "Cookie settings" button (SiteFooter.astro) 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; } }

/* 200% zoom on a small phone (160 to 319 CSS px): the sound pill keeps only its icon, a 32px disc
   beside the pause disc, still named by its label for screen readers (rule 14: 320 and up unchanged) */
@media (max-width: 319px) {
  .hero--deck .deck-sound { justify-content: center; width: 32px; padding: 0; }
  .deck-sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* the same small phone at 200% zoom (rule 14, 320 and up unchanged): the bar keeps the logo and the menu
   button, the call and quote buttons staying in the opened menu's bottom panel (with no script the menu
   cannot open, so the bar keeps them, shrinking); a button label wraps inside the page instead of
   running past its edge (the closing call to action was 37px too wide in French at 240), the menu's
   links wrap beside their open arrow, and the call button puts its number under its label */
@media (max-width: 319px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
  .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__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; }
  .nav.is-open .nav__prefs { flex-wrap: wrap; }
}
@media (scripting: none) and (max-width: 319px) {
  .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 (max-width: 239px) { .btn--urgence > svg { display: none; } }

/* under 200 CSS px (a 320 to 399 phone at 200% zoom, rule 14): the header keeps the mark beside the menu
   button, the name still read out; the kit's 12-column grid gets a 6px gutter (11 gutters overflowed),
   and a long heading or place name breaks inside the page. Last in the file so it wins on source order */
@media (max-width: 199px) {
  :root { --gutter: 6px; }
  .nav__logo .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  main, footer, :is(main, footer) :is(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
  .nobr { white-space: normal; }
}
