/* ==========================================================================
   WFL — page layer
   Page-specific compositions go here, scoped by the body class that layout()
   sets from `page` (body.page-events, body.page-fighters, …). Keep components
   in components.css; this file only arranges them.
   ========================================================================== */

/* ---- Section helpers ----------------------------------------------------- */
/* Page hero below the header: label + H1 + serif line over/next to a screen */
.page-hero { position: relative; padding: var(--screen-inset) var(--screen-inset) 0; }
.page-hero__copy { display: grid; gap: var(--s-4); justify-items: start; }
.page-hero__copy .serif-l { max-width: 30ch; }
.page-hero__meta { color: var(--bot-80); font-size: var(--fs-small); }
.page-hero--split { display: grid; gap: var(--s-6); align-items: end; padding-inline: var(--margin); padding-top: var(--s-7); }
@media (min-width: 1024px) {
  .page-hero--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; }
  .page-hero--split .screen { max-width: 540px; justify-self: end; }
}

/* Two-column scene (text + media) */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--flip > :first-child { order: 2; }
}

/* Full-bleed storytelling break: one serif line on a screen */
.break { padding-inline: var(--screen-inset); }
.break .screen__overlay { justify-content: center; }
.break__line { font: italic 400 clamp(2rem, 4vw, 4rem) / 1.05 var(--font-serif); color: var(--bot); max-width: 18ch; }

/* Band on --doek (Prime Combat TV, CTA bands) */
.band { padding: clamp(32px, 5vw, 72px); border-radius: var(--r-screen); background: var(--doek); box-shadow: inset 0 0 0 1px var(--touw); display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .band--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }

/* Sticky sub-nav for event pages (anchors; IO highlights the active one) */
.subnav { position: sticky; top: var(--header-h); z-index: calc(var(--z-sticky) - 1); background: rgba(7, 7, 10, .96); border-bottom: 1px solid var(--touw); }
.subnav ul { display: flex; gap: var(--s-5); overflow-x: auto; list-style: none; padding: 0 var(--margin); max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; scrollbar-width: none; }
/* scroll cue: the row fades at both edges instead of clipping an item hard at the screen edge */
.subnav ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
/* off once the footer (Aftiteling) is in view (site.js) */
.subnav { transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms; }
.subnav.is-off { opacity: 0; visibility: hidden; }
.subnav a { display: inline-block; padding: 14px 0; color: var(--rook); font-weight: 500; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--bot); border-color: var(--rood); }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 64px); }
html.has-kassa:has(.subnav) { scroll-padding-top: calc(var(--header-h) + var(--kassa-h) + 64px); }
.has-kassa .subnav { top: calc(var(--header-h) + var(--kassa-h)); }
/* stuck: cover the strip between the viewport top and the bar (the capsule and the kassa lip float over it) */
.subnav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--header-h); background: rgba(7, 7, 10, .96); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out); }
.has-kassa .subnav::before { height: calc(var(--header-h) + var(--kassa-h)); }
.subnav.is-stuck::before { opacity: 1; }

/* Archive year heading (events "Afgelopen") */
.archive-year { display: flex; align-items: baseline; gap: 14px; color: var(--rook); margin: var(--s-8) 0 var(--s-3); }
.archive-year .stencil { font-size: clamp(2.5rem, 5vw, 4rem); line-height: .85; color: var(--bot); }

/* Stats band with a dimmed screen behind (SC.08) */
.stats-band { position: relative; }

/* ---- Home ---------------------------------------------------------------- */
/* body.page-home … (SC.01–SC.11 compositions) */

/* ---- Events ---------------------------------------------------------------- */
/* body.page-events … */

/* ---- Fighters / profile ---------------------------------------------------- */
/* body.page-fighters … */

/* ---- Styleguide (internal, styleguide.html) -------------------------------------
   Documentation chrome only (.sg-*). Components inside are the real ones. */
.page-styleguide .subnav { z-index: calc(var(--z-sticky) - 1); }
.sg-subnav a { padding-block: 12px; font-size: 14px; }
.sg-intro { padding-bottom: calc(var(--section-y) * .5); }
.sg-intro__grid { display: grid; gap: var(--s-8); }
.sg-intro__copy { display: grid; gap: var(--s-5); justify-items: start; }
.sg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4) var(--s-5); width: 100%; padding-top: var(--s-5); border-top: 1px solid var(--touw); }
.sg-facts dt { color: var(--rook); }
.sg-facts dd { margin: 4px 0 0; color: var(--bot); }
.sg-toc ul { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--touw); }
.sg-toc a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--touw); color: var(--bot-80); transition: color var(--t-micro), padding var(--t-micro) var(--ease-out); }
.sg-toc__t { font: 800 1.375rem/1 var(--font-display); text-transform: uppercase; }
.sg-toc a:hover, .sg-toc a:focus-visible { color: var(--bot); padding-left: 6px; }
@media (min-width: 1024px) { .sg-intro__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .sg-toc ul { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }

.sg-sec + .sg-sec { padding-top: calc(var(--section-y) * .6); }
.sg-head { display: grid; gap: var(--s-4); margin-bottom: clamp(var(--s-6), 4vw, var(--s-8)); max-width: 980px; }
.sg-head__code { display: flex; align-items: center; gap: 12px; color: var(--rook); }
.sg-head .lead { max-width: 70ch; }
.sg-head .lead em { font-family: var(--font-serif); font-size: 1.1em; color: var(--bot); }
.sg-calls { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-code { font: 400 12.5px/1.45 var(--font-mono); font-stretch: 87.5%; color: var(--bot); background: var(--doek); box-shadow: inset 0 0 0 1px var(--touw); border-radius: var(--r-chip); padding: 2px 7px; overflow-wrap: anywhere; }
.sg-calls .sg-code { display: inline-block; padding: 6px 10px; }
.paper .sg-code { background: var(--bot-2); color: var(--inkt); box-shadow: none; }
.sg-sub { color: var(--rook); margin: var(--s-8) 0 var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--touw); }
.sg-head + .sg-sub, .sg-sub:first-child { margin-top: 0; }
.sg-note { margin-top: var(--s-4); max-width: 80ch; }
.sg-mt { margin-top: var(--s-5); }

.sg-demo { display: grid; gap: var(--s-3); min-width: 0; }
.sg-demo__cap { color: var(--rook); font-size: var(--fs-mono-s); }
.sg-demo__body { min-width: 0; }
.sg-rows { display: grid; gap: var(--s-6); }
.sg-split { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .sg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }

/* colour */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-5) var(--gutter); }
.sg-swatch { display: grid; gap: 4px; align-content: start; }
.sg-swatch__chip { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px rgba(241, 238, 232, .14); margin-bottom: 8px; }
.sg-swatch__name { color: var(--bot); }
.sg-swatch__hex { color: var(--rook); text-transform: none; }
.sg-swatch__note { color: var(--bot-80); line-height: 1.4; }
.sg-swatch__ratio { color: var(--bot-80); font-size: var(--fs-mono-s); text-transform: none; letter-spacing: .04em; }
.sg-lights { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sg-light { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-panel); background: var(--nacht); box-shadow: inset 0 0 0 1px var(--touw); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.sg-light::before, .sg-light::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; transition: opacity 600ms var(--ease-out); }
.sg-light--r::before, .sg-light--rb::before { background: var(--licht-rood); opacity: var(--licht-piek); }
.sg-light--b::after, .sg-light--rb::after { background: var(--licht-blauw); opacity: var(--licht-piek); }
.sg-light .vs { position: relative; z-index: 1; font-size: 3rem; }
.sg-zilver { min-height: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-panel); background: var(--doek); display: grid; place-content: center; justify-items: center; gap: var(--s-4); }
.sg-zilver__box { display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border: 3px double var(--zilver); border-radius: 10px; color: var(--zilver); font: 400 var(--fs-mono)/1 var(--font-mono); letter-spacing: var(--track-mono); }

/* type */
.sg-type { display: grid; border-top: 1px solid var(--touw); }
.sg-type__row { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-bottom: 1px solid var(--touw); min-width: 0; }
.sg-type__meta { color: var(--rook); font-size: var(--fs-mono-s); text-transform: none; letter-spacing: .04em; display: grid; gap: 2px; }
.sg-type__tok { color: var(--bot); font-size: var(--fs-mono); }
.sg-type__sample { min-width: 0; overflow: hidden; }
.sg-type__sample .d-mega { white-space: nowrap; }
.sg-body { max-width: var(--measure); color: var(--bot-80); }
.sg-stencil { font-size: clamp(2.5rem, 5vw, 4rem); line-height: .9; }
@media (min-width: 1024px) { .sg-type__row { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); align-items: center; } }
.sg-heads { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .sg-heads { grid-template-columns: 1fr 1fr; align-items: start; } .sg-heads > :first-child { grid-column: 1 / -1; } }
.sg-ns-vs { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: var(--s-3) var(--s-6); padding: var(--s-7) 0; border-radius: var(--r-screen); background: var(--licht-rood), var(--licht-blauw), var(--zaal); box-shadow: inset 0 0 0 1px var(--touw); }
.sg-ns-vs__vs { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; padding-bottom: .1em; }
.sg-ns-sizes { display: grid; gap: var(--s-5); margin-block: var(--s-6); }
.sg-ns-pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-6); }
.sg-mega { overflow: hidden; padding-block: var(--s-4); }

/* space, radii, grid */
.sg-space { display: grid; gap: 10px; }
.sg-space li { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 12px; }
.sg-space__bar { display: block; height: 10px; background: var(--rood); border-radius: 1px; max-width: 100%; }
.sg-radii { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-5) var(--gutter); }
.sg-radii li { display: grid; gap: 4px; }
.sg-radii__box { display: block; height: 84px; background: var(--doek); box-shadow: inset 0 0 0 1px var(--bot-80); margin-bottom: 8px; }
.sg-radii .mono { text-transform: none; letter-spacing: .04em; font-size: var(--fs-mono-s); }
.sg-gridviz { row-gap: 0; margin-bottom: var(--s-4); }
.sg-gridviz > span { grid-column: auto; display: grid; place-items: end center; height: 72px; padding-bottom: 6px; background: rgba(234, 0, 23, .12); box-shadow: inset 0 0 0 1px rgba(255, 59, 74, .35); color: var(--rood-signaal); font: 400 var(--fs-mono-s)/1 var(--font-mono); }

/* motion */
.sg-eases { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--s-7); }
.sg-ease { display: grid; gap: 6px; padding: var(--s-5); border-radius: var(--r-panel); background: var(--zaal); box-shadow: inset 0 0 0 1px var(--touw); }
.sg-ease__svg { width: 100%; max-width: 180px; aspect-ratio: 1; margin-bottom: 8px; overflow: visible; }
.sg-ease__lin { fill: none; stroke: var(--touw); stroke-width: 1; stroke-dasharray: 3 3; }
.sg-ease__curve { fill: none; stroke: var(--rood); stroke-width: 2; }
.sg-ease__track { position: relative; display: block; height: 10px; margin: 6px 0 10px; border-radius: 5px; background: var(--doek); }
.sg-ease__dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bot); transition: left 1000ms; }
.sg-ease:hover .sg-ease__dot, .sg-ease:focus-visible .sg-ease__dot { left: calc(100% - 10px); }
.sg-ease .mono { text-transform: none; letter-spacing: .04em; }
.sg-ease .mono.muted { font-size: var(--fs-mono-s); }
.sg-dl { display: grid; gap: 8px; text-transform: none; letter-spacing: .04em; }
.sg-dl li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--touw); }
.sg-dl li span:last-child { color: var(--bot); }
.sg-moves { display: grid; gap: 0; border-top: 1px solid var(--touw); }
@media (min-width: 1024px) { .sg-moves { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.sg-moves { list-style: none; margin: 0; padding: 0; }
.sg-moves li { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--touw); }
.sg-moves__t { font: 800 1.125rem/1 var(--font-display); color: var(--bot); text-transform: uppercase; }
.sg-moves .sg-code { justify-self: start; font-size: 11px; }

/* icons, flags, logos */
.sg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1px; background: var(--touw); border: 1px solid var(--touw); border-radius: var(--r-panel); overflow: hidden; }
.sg-icons li { display: grid; justify-items: center; gap: 10px; padding: 18px 8px 14px; background: var(--nacht); color: var(--bot); }
.sg-icons .mono { color: var(--rook); font-size: 10px; text-transform: none; letter-spacing: .04em; }
.sg-flags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: var(--s-6); }
.sg-flags li { display: inline-flex; align-items: center; gap: 8px; }
.sg-flags .mono { color: var(--bot-80); font-size: var(--fs-mono-s); }
.sg-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gutter); margin-top: var(--s-6); }
.sg-logos li { display: grid; gap: 4px; }
.sg-logos__img { display: grid; place-items: center; height: 120px; padding: 20px; border-radius: var(--r-panel); background: var(--zaal); box-shadow: inset 0 0 0 1px var(--touw); margin-bottom: 8px; }
.sg-logos__img img { max-height: 56px; width: auto; max-width: 100%; }
.sg-logos .mono { color: var(--bot); text-transform: none; letter-spacing: .02em; font-size: var(--fs-mono-s); }

/* basis */
.sg-cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-right: var(--s-4); }

/* screens + media */
.sg-screens { display: grid; gap: var(--gutter); margin-top: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .sg-screens { grid-template-columns: 1.6fr 1fr .62fr; } }
.sg-break { margin: var(--s-6) calc(-1 * var(--margin)) 0; }
.sg-break .screen__overlay { align-items: flex-start; }
.sg-media { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.sg-box { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--doek); }
.sg-box--16x9 { aspect-ratio: 16 / 9; }
.sg-box--4x5 { aspect-ratio: 4 / 5; }
.sg-box > .media, .sg-box > .vid, .sg-box > picture, .sg-box > .media-missing, .sg-box > .duo { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-box.affiche { border-radius: var(--r-panel); }

/* events */
.sg-heritage { position: relative; display: grid; align-items: end; min-height: 220px; padding: var(--s-6); border-radius: var(--r-screen); overflow: hidden; isolation: isolate; }
.sg-heritage__bg { position: absolute; inset: 0; z-index: -1; opacity: .4; }
.sg-heritage__bg picture, .sg-heritage__bg img { width: 100%; height: 100%; object-fit: cover; }
.sg-heritage__t { max-width: 26ch; }
.sg-heritage:hover .sg-heritage__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* fight night + data */
.sg-sec--faceoff .faceoff { margin-top: var(--s-6); }
.sg-after-faceoff { display: grid; gap: var(--s-4); justify-items: start; margin-top: var(--s-6); }
.sg-sc07 { align-items: start; }
.sg-sheet { max-width: 960px; margin: var(--s-8) auto 0; }
.sg-paper .prose ul { padding-left: 1.2em; }
.sg-stats { overflow: hidden; isolation: isolate; }
.sg-stats__bg { position: absolute; inset: 0; z-index: -1; opacity: .45; }
.sg-stats__bg > * { position: absolute; inset: 0; }
.sg-stats__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--nacht), rgba(7, 7, 10, .55) 30%, rgba(7, 7, 10, .55) 70%, var(--nacht)); }

/* media hub */
.sg-film-side { display: grid; gap: var(--s-4); align-content: center; justify-items: start; }

/* forms + ui */
.sg-form { padding: var(--s-6); border-radius: var(--r-panel); background: var(--zaal); box-shadow: inset 0 0 0 1px var(--touw); }
.sg-mini { display: grid; }
.sg-mini li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--touw); }
.sg-mini .stencil { font-size: 1.75rem; line-height: .9; }
.sg-mini a { font: 900 1.5rem/1 var(--font-display); color: var(--bot); }
.sg-mini a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sg-globals { display: grid; gap: var(--s-6) var(--gutter); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
