/* mmaliiga.ee, Brixton layout: the Brixton NFL (128.digital) template rebuilt as BEM on tokens.css.
   Surfaces: paper (light sections), ink bands, the brand band. Every component reads the context colours
   (--c-*), and every dark or brand surface sets them in ONE list below, so no accent or button can end up
   same-colour-on-same-colour. */
@layer base, layout, components, brand, utilities;

@layer base {
  [hidden] { display: none !important; }   /* app.js hides CTAs past their deadline; .btn display must not win */
  :root {
    --c-text: var(--text); --c-soft: var(--text-soft); --c-muted: var(--muted); --c-accent: var(--accent);
    --c-btn: var(--btn); --c-on-btn: var(--on-btn); --c-btn-hover: var(--btn-hover); --c-line: var(--line);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 1rem); }
  body { margin: 0; background: var(--paper); color: var(--c-text); font: 400 var(--text-m)/1.4 var(--font-body);
    letter-spacing: var(--body-track); overflow-x: clip; }
  h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure { margin: 0; }
  h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase;
    line-height: var(--display-lh); letter-spacing: var(--display-track); color: inherit; text-wrap: balance; }
  p { text-wrap: pretty; }
  p:has(br) { text-wrap: wrap; }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-underline-offset: .2em; }
  ul, ol { padding: 0; list-style: none; }
  abbr[title] { text-decoration: none; }
  :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
  main:focus { outline: none; }
  ::selection { background: var(--accent); color: var(--on-brand); }
  summary { list-style: none; cursor: pointer; }
  summary::-webkit-details-marker { display: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip-link { position: absolute; left: var(--gutter); top: -5rem; z-index: 100; background: var(--ink); color: var(--on-ink); padding: .625rem .875rem; }
  .skip-link:focus { top: .5rem; }
  .accent { color: var(--c-accent); }
  .nowrap { white-space: nowrap; }
}

@layer layout {
  /* ---- context colours: every ink surface, then the brand band, then light panels nested in ink */
  .site-nav--light, .site-nav.is-scrolled, .page-banner, .intro-band, .about-band, .news-band, .card-band,
  .values-band__panel, .faq__item--ink, .next-stage__bar, .fight-card--bars .bout, .home-hero__plate {
    --c-text: var(--on-ink); --c-soft: var(--on-ink-soft); --c-muted: var(--muted-on-ink); --c-accent: var(--accent-on-ink);
    --c-btn: var(--btn-on-ink); --c-on-btn: var(--on-btn-on-ink); --c-btn-hover: var(--on-ink); --c-line: var(--line-on-ink);
    color: var(--c-text);
  }
  .cta-band {
    --c-text: var(--on-brand); --c-soft: var(--on-brand); --c-muted: var(--on-brand); --c-accent: var(--on-brand);
    --c-btn: var(--on-brand); --c-on-btn: var(--brand); --c-btn-hover: var(--on-brand); --c-line: var(--on-brand);
    color: var(--c-text);
  }
  .fight-card__group, .card-band__empty {
    --c-text: var(--text); --c-soft: var(--text-soft); --c-muted: var(--muted); --c-accent: var(--accent);
    --c-btn: var(--btn); --c-on-btn: var(--on-btn); --c-btn-hover: var(--btn-hover); --c-line: var(--line);
    color: var(--c-text);
  }
  .grain { background: var(--paper) var(--paper-image) 50% / cover; }

  .container { width: 100%; max-width: calc(var(--content-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .container > *, .container [class*="__grid"] > * { min-width: 0; }
  main { overflow-x: clip; }
  .page-section, .schedule, .results, .standings, .faq, .award-list, .call, .tickets, .last-stage, .standings-teaser,
  .next-stage, .intro-band, .about-band, .news-band, .card-band { padding-block: var(--section-space); position: relative; }
  .schedule, .results, .faq, .last-stage, .standings-teaser, .tickets, .award-list { background: var(--paper) var(--paper-image) 50% / cover; }
  .section-title { font-size: var(--text-h2); text-align: center; margin-bottom: 1.875rem; }
  .section-actions { display: flex; justify-content: center; margin-top: var(--space-xl); }
  .lede { font-size: var(--text-l); max-width: 40rem; color: var(--c-soft); }
  .prose { max-width: 45rem; }
  .prose > * + * { margin-top: 1em; }
  .prose a { color: var(--c-accent); text-decoration: underline; }
  .empty-state { display: grid; justify-items: start; gap: var(--space-m); padding: 1.875rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
  .empty-state p { max-width: 40rem; }
  .plain-list { display: grid; gap: .5rem; }
}

@layer components {
  /* ---- shared atoms ---- */
  .btn { --b-bg: var(--c-btn); --b-fg: var(--c-on-btn); --pad-y: 1.5rem;
    --h: calc(2 * var(--pad-y) + 1lh + 2px);   /* the rendered height: padding, the label line, the border (the faas reads it) */
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: var(--pad-y) 3.75rem;
    border: 1px solid var(--b-bg); background: var(--b-bg); color: var(--b-fg);
    font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; text-decoration: none;
    white-space: nowrap; text-box: trim-both cap alphabetic; transition: background-color .3s, color .3s, border-color .3s; }
  .btn--outline { background: transparent; color: var(--c-text); }
  .btn--large { --h: max(var(--btn-large-h), 2 * var(--pad-y) + 1lh + 2px); min-block-size: var(--btn-large-h); min-inline-size: clamp(9.5rem, 5rem + 12vw, 18.75rem); padding-inline: clamp(1.25rem, .5rem + 2.5vw, 2.5rem); }
  .btn--full { width: 100%; padding-inline: 1rem; }
  @media (hover: hover) {
    .btn:hover { background: transparent; color: var(--b-bg); }
    .btn--outline:hover { background: var(--b-bg); color: var(--b-fg); }
  }
  .btn:active { transform: translateY(1px); }

  .link-line { position: relative; display: inline-flex; align-self: flex-start; padding-bottom: .25rem; color: var(--c-accent);
    font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; text-decoration: none;
    min-block-size: 1.5rem; }
  .link-line::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: currentColor; transform-origin: left; transition: transform .35s; }
  @media (hover: hover) { .link-line:hover::after { transform: scaleX(.4); } }

  .corner { display: inline-block; flex: none; width: .625rem; height: .625rem; }
  .corner--red { background: var(--red); }
  .corner--blue { background: var(--blue); }
  .glyph { width: 1.5rem; height: 1.5rem; flex: none; }

  /* left-aligned display type: the first visible stroke, not the glyph box, sits on the margin */
  .home-hero__heading, .last-stage__title, .last-stage__name, .last-stage__date, .about-band__heading, .next-stage__heading,
  .next-stage__card-heading, .news-band__heading, .cta-band__heading, .schedule__heading, .results__heading, .standings__heading,
  .standings__table-heading, .faq__heading, .about-hero__heading, .card-band__heading { margin-inline-start: var(--ink-hang); }

  /* template-only decoration (tape strips): off in the CVI, which keeps one device, the cut corner */
  .tape { display: none; }
  [data-profile="template"] .tape { display: block; background: center / contain no-repeat; pointer-events: none; }
  [data-profile="template"] .tape--under, [data-profile="template"] .tape--news { background-image: url(img/template/metallic-tape.webp); }
  [data-profile="template"] .tape--duct { background-image: url(img/template/duct-tape.webp); }

  .tag { display: inline-flex; align-items: center; padding: .375rem .625rem; font: 700 var(--text-xs)/1 var(--font-ui);
    letter-spacing: var(--ui-track); text-transform: uppercase; text-box: trim-both cap alphabetic; background: var(--ink); color: var(--on-ink); }
  .tag--live { background: var(--live); color: var(--ink); }
  .tag--warn { background: var(--accent-on-ink); color: var(--ink); }
  .live-note { display: flex; align-items: center; gap: .625rem; padding-top: var(--space-m); font-weight: 700; }
  .live-dot { width: .625rem; height: .625rem; border-radius: 50%; background: var(--live); animation: blink 2s steps(1) infinite; }
  @keyframes blink { 50% { opacity: .2; } }

  /* ---- site nav: one slim row (logo, menu with the Etapid dropdown, next stage + CTA); transparent over the hero,
     an ink bar once scrolled; phones: logo + CTA + burger, left drawer ---- */
  .site-nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-block: var(--nav-pad); color: var(--c-text);
    transition: background-color .3s, padding .3s, transform .3s; }
  .site-nav { --nav-pad: 1rem; }
  .site-nav__container { display: flex; align-items: center; gap: clamp(1.5rem, -1rem + 4vw, 3.5rem);
    width: 100%; max-width: calc(var(--content-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .site-nav__brand { display: flex; align-items: center; flex: none; min-block-size: 2.75rem; color: inherit; }
  .site-nav__brand svg { height: clamp(1.125rem, 1rem + .4vw, 1.375rem); width: auto; }
  .site-nav__panel { flex: 1; min-width: 0; }
  .site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, .2rem + 1.8vw, 2.25rem); }
  .site-nav__item { position: relative; display: flex; align-items: center; }
  .site-nav__link { position: relative; display: inline-flex; align-items: center; min-block-size: 2.75rem; color: inherit; text-decoration: none;
    font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; transition: color .3s; }
  .site-nav__link.is-current { color: var(--c-accent); }
  .site-nav__link.is-current::after { content: ""; position: absolute; inset: auto 0 .5rem; height: 2px; background: currentColor; }
  @media (hover: hover) { .site-nav__link:hover { color: var(--c-accent); } }
  .site-nav__caret { display: grid; place-items: center; width: 1.5rem; height: 2.75rem; margin-inline-start: .125rem; padding: 0;
    border: 0; background: none; color: inherit; cursor: pointer; }
  .site-nav__caret svg { width: .625rem; transition: transform .25s; }
  .site-nav__item--drop.is-open .site-nav__caret svg { transform: rotate(180deg); }
  .site-nav__right { display: flex; align-items: center; gap: clamp(1rem, .2rem + 1.5vw, 1.75rem); margin-left: auto; }
  .site-nav__cta { --pad-y: .875rem; padding: var(--pad-y) 1.25rem; }
  .site-nav__toggle { display: none; position: relative; z-index: 2; width: 2.75rem; height: 2.75rem; margin: 0 -.625rem 0 0; padding: 0;
    border: 0; background: none; color: inherit; cursor: pointer; }
  .site-nav__toggle span { position: absolute; left: .625rem; right: .625rem; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
  .site-nav__toggle span:nth-child(1) { top: 1rem; }
  .site-nav__toggle span:nth-child(2) { top: 1.3125rem; left: 1rem; }
  .site-nav__toggle span:nth-child(3) { top: 1.625rem; }
  .site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(.3125rem) rotate(45deg); }
  .site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-.3125rem) rotate(-45deg); }
  .site-nav.is-scrolled { background: var(--ink); padding-block: calc(var(--nav-pad) * .5); }
  .site-nav.is-hidden { transform: translateY(-100%); }

  /* stage dropdown: a paper panel with the CVI cut corner, one row per stage (date, name, status) */
  .nav-drop { --c-text: var(--text); --c-muted: var(--muted); --c-accent: var(--accent); color: var(--c-text);
    display: grid; gap: .25rem; padding: 1.25rem 1.25rem 1rem; background: var(--surface); box-shadow: 0 18px 40px rgba(14, 14, 16, .16); }
  .nav-drop__title { padding-bottom: .5rem; font: 700 var(--text-xs)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; color: var(--c-muted); }
  .nav-drop__list { display: grid; }
  .nav-drop__row { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
    min-block-size: 3rem; padding-inline: .75rem; margin-inline: -.75rem; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .2s; }
  .nav-drop__list li:first-child .nav-drop__row { border-top: 0; }
  .nav-drop__row > * { min-width: 0; }
  @media (hover: hover) { .nav-drop__row:hover { background: var(--paper); } .nav-drop__all:hover { color: var(--c-text); } }
  .nav-drop__row[aria-current] .nav-drop__name { color: var(--c-accent); }
  .nav-drop__date { font: 400 var(--text-s)/1 "Ironexa Mono", var(--font-ui); font-variant-numeric: tabular-nums; color: var(--c-muted); }
  .nav-drop__name { font: 700 var(--text-s)/1.3 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .nav-drop__status { font: 700 var(--text-xs)/1 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; color: var(--c-muted); white-space: nowrap; }
  .nav-drop__status.is-open { padding: .375rem .5rem; background: var(--accent); color: var(--on-btn); }
  .nav-drop__all { justify-self: start; display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--c-accent); text-decoration: none;
    font: 700 var(--text-xs)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }

  @media (width >= 992px) {
    .nav-drop { position: absolute; top: 100%; left: -1.25rem; width: 30rem; margin-top: .5rem;
      clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%);
      opacity: 0; visibility: hidden; transform: translateY(-.375rem); transition: opacity .2s, transform .2s, visibility 0s .2s; }
    .nav-drop::before { content: ""; position: absolute; inset: -.75rem 0 auto; height: .75rem; }   /* hover bridge */
    .site-nav__item--drop.is-open .nav-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  }
  @media (width < 992px) {
    .site-nav__toggle { display: inline-flex; }
    .site-nav__cta { --pad-y: .75rem; padding: var(--pad-y) 1rem; }
    .site-nav__panel { --c-text: var(--text); --c-accent: var(--accent); --c-muted: var(--muted); color: var(--c-text);
      position: fixed; inset: 0 auto 0 0; z-index: 1; width: min(22rem, 88vw); padding: 5.5rem 1.25rem 2rem;
      background: var(--surface); box-shadow: 0 0 40px rgba(0, 0, 0, .18); overflow-y: auto;
      transform: translateX(-100%); visibility: hidden; transition: transform .35s, visibility 0s .35s; }
    .site-nav.is-open .site-nav__panel { transform: none; visibility: visible; transition: transform .35s; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .site-nav__link { min-block-size: 3rem; flex: 1; }
    .site-nav__link.is-current::after { display: none; }
    .site-nav__caret { display: none; }
    .nav-drop { flex-basis: 100%; padding: 0 0 .75rem; box-shadow: none; background: none; }
    .nav-drop__title { display: none; }
    .nav-drop__row { min-block-size: 2.75rem; grid-template-columns: 3rem minmax(0, 1fr); row-gap: .375rem; padding-block: .5rem; border-top: 0; }
    .nav-drop__status { grid-column: 2; font-size: .6875rem; }
    .nav-drop__status.is-open { padding: .3125rem .4375rem; }
    .nav-drop__status.is-open { justify-self: start; }
    .nav-drop__all { display: none; }
    .site-nav.is-open .site-nav__brand { position: relative; z-index: 2; color: var(--text); }
  }

  /* ---- home hero (template: home-banner-section) ---- */
  .home-hero { position: relative; padding-top: clamp(7rem, 3rem + 8vw, 9rem); padding-bottom: 1.5625rem; }
  .home-hero__media { position: absolute; inset: 0 0 0 auto; width: 50%; display: flex; background: var(--tint); overflow: hidden; }
  [data-profile="template"] .home-hero__media { background: var(--tint) url(img/template/spray.webp) 0 0 / auto no-repeat; }
  .home-hero__image { width: 100%; height: 100%; object-fit: cover; }
  .home-hero__container { position: relative; z-index: 2; }
  .home-hero__text { display: grid; justify-items: start; }
  .home-hero__heading { font-size: var(--text-h1); line-height: var(--h1-lh); }
  .home-hero__line { display: inline; }
  /* Estonian caps plate: the text box is trimmed to the caps, the same accent room (Ä Õ Š Ž reach .28 em above the
     cap top in Voltera) sits above and below so the caps stay centred, and the plate starts one line-rhythm gap
     (.10 em) under the baseline above it, the gap every stacked caps line keeps to the accent top below it */
  /* the plate is the unit on the margin (like a bullet square): its box edge, not its letters, sits on the margin */
  /* accents get room inside the plate; pulled up by the same amount, so baseline to plate edge = the line rhythm's gap */
  .home-hero__plate { display: block; width: fit-content; margin-top: var(--plate-gap); padding: calc(var(--plate-y) + var(--accent-cap)) var(--plate-x);
    background: var(--ink); color: var(--on-ink); text-box: trim-both cap alphabetic;
    margin-inline-start: calc(-1 * var(--ink-hang));   /* the heading hangs for its letters; the plate box goes back on the margin */
    --plate-x: max(.5rem, .08em); --plate-y: .04em; --plate-gap: -.215em; }
  [data-profile="template"] .home-hero__plate { text-box: normal; --plate-x: max(.5rem, .077em); --plate-y: .077em; --plate-gap: 0; }
  /* CVI wordmark letters (drawn, no side bearings), two rows like the approved two-line logo (EESTI MMA / LIIGA, no plate):
     cap = Voltera's cap at the same size, row gap = the lockup's line gap (18.36 / 40.82 cap) */
  .home-hero__heading--mark { --wm-cap: 1cap; display: grid; justify-items: start; row-gap: calc(var(--wm-cap) * .45);
    margin-inline-start: 0; line-height: 1; }
  .home-hero__heading--mark .home-hero__line { display: block; }
  .home-hero__heading--mark .wordmark { display: block; height: var(--wm-cap); width: auto; aspect-ratio: var(--wm-w) / 100; }
  .home-hero__kicker { margin-top: clamp(1.5rem, .75rem + 2vw, 3rem); font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .home-hero__lede { max-width: 31.8rem; margin-top: .75rem; font-size: var(--text-l); }
  .home-hero__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(.625rem, -.4rem + 2.2vw, 1.875rem); margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 4.375rem); }
  .home-hero__tile { width: clamp(9.375rem, 5.5rem + 10vw, 18.75rem); height: clamp(3.875rem, 1.3rem + 5.8vw, 7.9375rem); background: var(--brand) var(--photo) 50% / cover; }
  .home-hero__more { margin-top: var(--space-m); }
  @media (width < 768px) {
    /* the paper strip above the photo is the nav bar's own height (1rem, the 2.85rem button, 1rem): the row sits centred in it */
    .home-hero { padding-top: calc(2rem + 2.85rem); }
    .home-hero__media { position: relative; inset: auto; width: 100%; height: clamp(20.625rem, 10rem + 30vw, 28rem); margin-bottom: var(--space-l); }
    .home-hero__image { object-position: 40% 50%; }
  }

  /* ---- ink band with numbered items + centred title over the photo (template: center-title-wrapper) ---- */
  .intro-band { background: var(--ink); overflow: hidden; }
  .intro-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; row-gap: var(--space-l); }
  .intro-band__photo { position: absolute; inset: 1.25rem 1.25rem 1.25rem auto; width: 48.5%;
    background: linear-gradient(90deg, rgba(14, 14, 16, .55), rgba(14, 14, 16, .1)), var(--photo) 50% / cover; }
  .intro-band__items { grid-column: 1; display: grid; gap: var(--space-l); position: relative; }
  .intro-band__items--a { grid-row: 1; }
  .intro-band__items--b { grid-row: 2; }   /* one even list: 03 to 04 is the same gap as every other step */
  .intro-band__item { display: grid; gap: .625rem; max-width: 20rem; }
  .intro-band__num { color: var(--c-accent); font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); }
  .intro-band__title { font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); }
  .intro-band__text { color: var(--c-soft); }
  .intro-band__center { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: relative; z-index: 1; display: grid; justify-items: center; }
  .intro-band__heading { font-size: var(--text-h2); text-align: center; }
  .tape--under { width: clamp(7.5rem, 4.9rem + 7.2vw, 15.8rem); height: clamp(.75rem, .6rem + .4vw, 1.4375rem); margin-top: -.5em; justify-self: start; }
  @media (width < 768px) {
    .intro-band__grid { grid-template-columns: 1fr; }
    .intro-band__photo { position: static; width: 100%; height: 15.625rem; grid-area: 1 / 1; }
    .intro-band__center { grid-area: 1 / 1; place-self: center; padding: var(--space-s); }
    .intro-band__items--a { grid-row: 2; }
    .intro-band__items--b { grid-row: 3; }
  }

  /* ---- last stage results (template: last match: title grid, photo strip, overlapping score) ---- */
  .last-stage { overflow: hidden; }
  .last-stage__head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m) clamp(2.5rem, -3rem + 11vw, 6.875rem); margin-bottom: var(--space-xl); }
  .last-stage__title { font-size: var(--text-h3); line-height: var(--h3-lh); max-width: 46.5rem; }
  .last-stage__text { align-self: end; max-width: 23rem; }
  .last-stage__gallery { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; width: 100%; }
  .last-stage__photo { flex: 1 1 0; min-width: 0; height: clamp(9.375rem, 4.4rem + 13.9vw, 16.25rem); background: var(--tint) var(--photo) 50% / cover; position: relative; }
  .last-stage__photo--0 { margin-left: -12.5rem; }
  .last-stage__photo--2 { height: clamp(12.5rem, 3.3rem + 25.6vw, 27.5rem); }
  .last-stage__photo--3 { margin-right: -2.5rem; }
  .tape--duct { position: absolute; width: clamp(4.375rem, 3rem + 3.8vw, 6.3rem); aspect-ratio: 1; }
  .last-stage .tape--duct { right: 22%; bottom: -1rem; }
  .last-stage__score { position: relative; margin-top: clamp(2.5rem, 18rem - 27vw, -13.5625rem); display: grid; justify-items: start; }
  .last-stage__name { font: var(--display-weight) clamp(2.5rem, 1.875rem + 2.78vw, 4.375rem)/var(--display-lh) var(--font-display); letter-spacing: var(--display-track); text-transform: uppercase; }
  .last-stage__date { margin-bottom: var(--space-xl); color: var(--c-accent); font: var(--display-weight) clamp(1.875rem, 1.667rem + .926vw, 2.5rem)/.9 var(--font-num); letter-spacing: var(--display-track); }
  @media (width < 992px) {
    .last-stage__head { grid-template-columns: 1fr; }
    .last-stage__photo--0 { margin-left: -6.25rem; }
    .last-stage__photo--1 { display: none; }
  }
  @media (width < 480px) {
    .last-stage__gallery { flex-direction: column; gap: .625rem; padding-inline: var(--gutter); }
    .last-stage__photo { flex: none; width: 100%; margin: 0 !important; }
    .last-stage__photo--0, .last-stage__photo--3 { display: none; }
  }

  /* ---- about band (template: "we live it": ink, text left, photo panel right) ---- */
  .about-band { background: var(--ink); overflow: hidden; }
  .about-band__text { position: relative; z-index: 2; max-width: clamp(21.875rem, 9rem + 37vw, 49.375rem); display: grid; justify-items: start; }
  .about-band__heading { font-size: var(--text-h2); }
  .about-band__lede { max-width: 23rem; margin-top: .875rem; margin-bottom: clamp(1.875rem, 1.5rem + 1vw, 2.5rem); }
  .about-band__media { position: absolute; inset: 0 0 0 auto; width: 36%; background: var(--tint); }
  .about-band__media img { width: 100%; height: 100%; object-fit: cover; }
  .about-band .tape--duct { top: 2.4rem; left: -3.125rem; }
  @media (width < 768px) {
    .about-band { padding-bottom: 0; }
    .about-band__media { position: relative; width: 100%; height: 20rem; margin-top: var(--space-xl); }
    .about-band .tape--duct { left: var(--gutter); top: -1.875rem; }
  }

  /* ---- next stage (template: next match: photo, heading, ink bar with the "watch" square) ---- */
  .next-stage { overflow-x: clip; background: var(--surface); }
  .next-stage__grid { display: grid; grid-template-columns: auto 1fr; }
  .next-stage__photo { position: relative; z-index: 2; width: clamp(18.75rem, 6.4rem + 17.8vw, 27.5rem); min-height: clamp(31.25rem, 26rem + 3vw, 34.375rem);
    background: var(--brand) var(--photo) 50% / cover; }
  .next-stage__body { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
  .next-stage__text { display: grid; justify-items: start; max-width: 45.6rem; margin: 0 0 var(--space-xl) clamp(2.5rem, 2rem + .8vw, 3.125rem); }
  .next-stage__heading { font-size: var(--text-h2); }
  .next-stage__sub { max-width: 25.4rem; margin: var(--space-m) 0 .625rem; font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .next-stage__lede { max-width: 29.7rem; color: var(--c-soft); }
  .next-stage__bar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-m);
    min-height: 6.25rem; background: var(--ink); }
  .next-stage__bar > .countdown, .next-stage__date { margin-inline-start: clamp(1.5rem, .8rem + 2vw, 3.125rem); }
  .next-stage__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--ink); }
  .next-stage__link span { text-box: trim-both cap alphabetic; }
  .next-stage__link { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; width: clamp(5rem, 3.5rem + 4vw, 7.625rem);
    height: clamp(5rem, 3.5rem + 4vw, 7.625rem); margin-top: clamp(-5.625rem, -1rem - 4.6vw, -2rem); padding: .625rem; background: var(--brand); color: var(--on-brand);
    font: 700 var(--text-s)/1.2 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; text-align: center; text-decoration: none; }
  @media (hover: hover) { .next-stage__link:hover { background: var(--on-ink); color: var(--ink); } }
  .next-stage__date { display: flex; align-items: center; gap: .75rem; font: var(--display-weight) var(--text-h4)/1.13 var(--font-num); letter-spacing: var(--display-track); }
  .next-stage__card { margin-top: var(--section-space); display: grid; justify-items: start; gap: var(--space-m); }
  .next-stage__card-heading { font-size: var(--text-h3); line-height: var(--h3-lh); }
  .next-stage__card .fight-card { width: 100%; }
  @media (width < 992px) {
    .next-stage__bar { flex-direction: column; align-items: stretch; padding: 1.25rem 1.5rem; }
    .next-stage__bar > .countdown, .next-stage__date { margin-inline-start: 0; }
    .next-stage__link { width: 100%; height: 3.75rem; margin-top: 0; }
  }
  @media (width < 768px) {
    .next-stage__grid { grid-template-columns: 1fr; }
    .next-stage__photo { width: 100%; min-height: 18.75rem; }
    .next-stage__text { margin: var(--space-l) 0; }
    .next-stage__bar::after { display: none; }
  }
  @media (width < 480px) { .next-stage__bar { padding-inline: 1.25rem; } }

  /* ---- countdown: the template's score type ---- */
  .countdown { display: flex; align-items: flex-start; gap: clamp(.375rem, .2rem + .6vw, .875rem); }
  .countdown__cell { display: grid; justify-items: center; gap: .625rem; }
  .countdown__num { font: var(--display-weight) var(--cd-size, var(--text-h4))/.9 var(--font-num); letter-spacing: var(--display-track);
    font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
  .countdown__colon { color: var(--c-accent); font: var(--display-weight) var(--cd-size, var(--text-h4))/.9 var(--font-num); }
  .countdown__label { color: var(--c-muted); font: 700 var(--text-xs)/1.2 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .countdown--score { --cd-size: var(--text-score); }
  .countdown--score .countdown__colon { font-size: calc(var(--text-score) * .5); padding-top: .5em; }
  @media (width < 480px) { .countdown--score { --cd-size: 3rem; } }

  /* ---- fight card: bars (home) and accordion panels (stage page) ---- */
  .fight-card { display: grid; gap: .625rem; }
  .fight-card__title { font: 700 var(--text-h6)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .fight-card--bars .fight-card__title { margin-top: var(--space-m); }
  .fight-card__list { display: grid; gap: .625rem; }
  .bout { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-s); }
  .fight-card--bars .bout { min-height: 6.25rem; padding: 1.25rem clamp(1.5rem, .8rem + 2vw, 3.125rem); background: var(--ink); }
  .fight-card--accordion .bout { padding-block: 1rem; border-top: 1px solid var(--c-line); }
  .bout__no { color: var(--c-muted); font: 700 var(--text-s)/1 var(--font-ui); }
  .bout__side { display: grid; gap: .25rem; min-width: 0; }
  .bout__side--blue { text-align: right; justify-items: end; }
  .bout__name { display: flex; align-items: center; gap: .5rem; font: var(--display-weight) clamp(1.125rem, 1rem + .5vw, 1.5rem)/1.13 var(--font-display);
    letter-spacing: var(--display-track); text-transform: uppercase; overflow-wrap: anywhere; }
  .bout__side--blue .bout__name { flex-direction: row-reverse; }
  .bout__name a { text-decoration: none; }
  @media (hover: hover) { .bout__name a:hover { color: var(--c-accent); } }
  .bout__club { color: var(--c-muted); font-size: var(--text-s); }
  .bout__side.is-winner .bout__name { color: var(--c-accent); }
  .bout__side.is-loser { opacity: .7; }
  .bout__mid { display: grid; justify-items: center; gap: .25rem; text-align: center; }
  .bout__vs, .bout__code { font: 700 var(--text-s)/1.2 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .bout__code { color: var(--c-accent); font-size: var(--text-m); }
  .bout__class, .bout__method { color: var(--c-muted); font-size: var(--text-xs); max-width: 12rem; }
  .fight-card__group { background: var(--surface); box-shadow: var(--shadow); padding: .875rem 1.25rem; }
  .fight-card__toggle { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-block-size: 2.75rem; }
  .fight-card__group[open] .glyph--chevron, .faq__item[open] .glyph--chevron { transform: rotate(180deg); }
  .fight-card__group .fight-card__list { gap: 0; padding-bottom: .5rem; }
  @media (width < 600px) {
    .bout { grid-template-columns: 1.5rem minmax(0, 1fr); grid-template-areas: "no red" "no mid" "no blue"; row-gap: .5rem; }
    .bout__no { grid-area: no; align-self: start; padding-top: .25rem; }
    .bout__side--red { grid-area: red; }
    .bout__mid { grid-area: mid; justify-items: start; text-align: left; }
    .bout__side--blue { grid-area: blue; text-align: left; justify-items: start; }
    .bout__side--blue .bout__name { flex-direction: row; }
  }

  /* ---- standings teaser + standings table (template: name panel on grain, framed numbers) ---- */
  .league-table { overflow-x: auto; max-width: 100%; }
  .league-table:focus-visible { outline-offset: 4px; }
  .league-table__table { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 0; font-size: var(--text-s); }
  .league-table__table th, .league-table__table td { height: 3.75rem; padding: .625rem .625rem; text-align: center; border-bottom: 1px solid var(--line); }
  .league-table__table th { font: 700 var(--text-s)/1.2 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .league-table__table td { background: var(--surface); }
  .league-table__table .league-table__pos, .league-table__table .league-table__name-col { background: var(--tint) var(--paper-image) 50% / cover; }
  .league-table__table .league-table__pos { width: 3.5rem; padding-left: 1.25rem; text-align: left; font-weight: 700; }
  .league-table__table .league-table__name-col { position: sticky; left: 0; text-align: left; border-right: .375rem solid var(--paper); min-width: 12rem; }
  .league-table__table thead .league-table__name-col { font-size: var(--text-h6); }
  .league-table__table th.num, .league-table__table td.num { border-top: 0; }
  .league-table__table thead th { border-top: 1px solid var(--line); }
  .league-table__table tr > :last-child { border-right: 1px solid var(--line); }
  .league-table__table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  .league-table__name { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ui-track); }
  .league-table__name a { text-decoration: none; }
  .league-table__sub { display: block; color: var(--muted); font-size: var(--text-xs); }
  .league-table__pts { font-weight: 700; color: var(--accent); }
  .standings-teaser .league-table, .standings-teaser .empty-state { margin-top: var(--space-l); }

  /* ---- news band: stages as the template's news cards ---- */
  .news-band { background: var(--ink); }
  .news-band__grid { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xl) var(--space-m); align-items: end; }
  .news-band__head { display: grid; justify-items: end; }
  .news-band__heading { font-size: var(--text-h2); }
  .tape--news { width: clamp(8.125rem, 4.5rem + 8vw, 15.8rem); height: clamp(.9375rem, .8rem + .4vw, 1.4375rem); margin-top: -.6rem; }
  .news-band__all { justify-self: end; }
  .news-band .stage-cards { grid-column: 1 / -1; }
  .stage-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) 1.25rem; }
  .stage-card { display: grid; align-content: start; }
  .stage-card__image { display: block; height: 16.875rem; overflow: hidden; background: var(--tint); }
  .stage-card__image img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s; }
  @media (hover: hover) { .stage-card__image:hover img { filter: grayscale(1); } }
  .stage-card__body { display: grid; justify-items: start; margin-top: .75rem; }
  .stage-card__title { font: 700 clamp(1rem, .95rem + .2vw, 1.125rem)/1.4 var(--font-ui); letter-spacing: var(--ui-track); }
  .stage-card__title a { text-decoration: none; }
  @media (hover: hover) { .stage-card__title a:hover { color: var(--c-accent); } }
  .stage-card__text { margin: .375rem 0 1rem; color: var(--c-soft); }
  @media (width < 768px) {
    .news-band__grid { grid-template-columns: 1fr; gap: var(--space-l); }
    .news-band__head { justify-items: start; }
    .news-band__all { order: 3; justify-self: center; }
    .stage-cards { grid-template-columns: 1fr; gap: 1.875rem; }
  }

  /* ---- call band (template: "be in touch", accent ground, photo right, the e-mail box) ---- */
  .cta-band { position: relative; padding-block: var(--section-space); background: var(--brand); overflow: hidden; }
  .cta-band__text { position: relative; z-index: 1; width: 47%; display: grid; gap: var(--space-m); justify-items: start; }
  .cta-band__heading { font-size: var(--text-h2); }
  .cta-band__lede { max-width: 30rem; font-weight: 700; text-transform: uppercase; font-family: var(--font-ui); font-size: var(--text-s); letter-spacing: var(--ui-track); }
  .cta-band__box { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: min(100%, 34.375rem); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.375rem);
    padding: 1.25rem; background: var(--surface); color: var(--text); }
  .cta-band__box-label, .cta-band__link { font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .cta-band__link { color: var(--accent); text-decoration: underline 2px; text-underline-offset: .3em; white-space: nowrap; }
  @media (hover: hover) { .cta-band__link:hover { color: var(--text); } }
  .cta-band__media { position: absolute; inset: 0 0 0 auto; width: 50%; background: var(--tint); }
  .cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
  @media (width >= 1440px) { .cta-band__text { width: 45%; } }
  @media (width < 768px) {
    .cta-band { padding-bottom: 0; }
    .cta-band__text { width: 100%; justify-items: center; text-align: center; }
    .cta-band__media { position: relative; width: 100%; height: clamp(15.625rem, 10rem + 20vw, 20rem); margin-top: var(--space-xl); }
  }
  @media (width < 480px) {
    .cta-band__box { flex-direction: column; align-items: flex-start; }
  }

  /* ---- inner page banner (template: pages-banner + absolute-bg) ---- */
  .page-banner { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(21.875rem, 15.2rem + 18.5vw, 34.375rem);
    padding-top: clamp(6.25rem, 1.5rem + 12vw, 11.875rem); padding-bottom: clamp(3.75rem, 1.5rem + 6vw, 8.125rem); background: var(--ink); overflow: hidden; }
  .page-banner__bg { position: absolute; inset: 0; background: linear-gradient(rgba(14, 14, 16, .55), rgba(14, 14, 16, .55)), var(--photo) 50% 30% / cover; }
  [data-profile="template"] .page-banner__bg { background: linear-gradient(#00000080, #00000080), var(--photo) 50% 20% / cover; }
  .page-banner__container { position: relative; z-index: 1; display: grid; justify-items: center; }
  .page-banner__heading { max-width: 72rem; font-size: var(--text-h1); line-height: var(--h1-lh); text-align: center; }

  /* ---- schedule (stages) ---- */
  .schedule__grid { display: grid; gap: var(--space-xl); }
  .schedule__head { display: grid; gap: var(--space-s); }
  .schedule__heading { font-size: var(--text-h2); }
  .schedule__text { max-width: 40rem; color: var(--c-soft); font-size: var(--text-l); }
  .stage-list { display: grid; gap: var(--space-xl); }
  .stage-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: .625rem var(--space-m); padding: 1rem; background: var(--surface); }
  .stage-row__top, .stage-row__team { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
  .stage-row__num { font: 700 var(--text-h6)/1.4 var(--font-ui); letter-spacing: var(--ui-track); }
  .stage-row__status { justify-self: end; align-self: center; text-align: right; }
  .stage-row__note { font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; color: var(--accent); }
  .stage-row__line { grid-column: 1 / -1; height: 1px; background: var(--line); }
  .stage-row__mark { flex: none; width: auto; color: var(--accent); }
  .stage-row__mark svg { height: clamp(2.75rem, 2.4rem + 1vw, 4rem); width: auto; }
  .stage-row__city { font-size: var(--text-h4); line-height: var(--h3-lh); }
  .stage-row__city a { text-decoration: none; }
  @media (hover: hover) { .stage-row__city a:hover { color: var(--accent); } }
  .stage-row__link { justify-self: end; align-self: center; display: flex; align-items: center; gap: .625rem; min-block-size: 1.5rem; color: var(--text); text-decoration: none;
    font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; text-align: right; }
  @media (hover: hover) { .stage-row__link:hover { color: var(--accent); } }
  @media (width < 768px) {
    .stage-row { grid-template-columns: 1fr; text-align: center; }
    .stage-row__top, .stage-row__team { justify-content: center; flex-wrap: wrap; gap: .625rem; }
    .stage-row__status, .stage-row__link { justify-self: center; text-align: center; }
    .stage-row__status:empty { display: none; }
  }

  /* ---- results (template: results list) ---- */
  .results__grid { display: grid; gap: var(--space-xl); }
  .results__stage { display: grid; gap: var(--space-xl); }
  .results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-m); }
  .results__heading { font-size: var(--text-h2); }
  .results__heading a { text-decoration: none; }
  .result-list { display: grid; gap: var(--space-l); }
  .result-row { display: grid; grid-template-columns: 1fr .5fr .5fr; gap: .625rem var(--space-xl); align-items: center; padding: 1.875rem 1rem; background: var(--surface); }
  .result-row__teams { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
  .result-row__team { display: flex; align-items: center; gap: .625rem; min-width: 0; }
  .result-row__name { font: 700 var(--text-h6)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; overflow-wrap: anywhere; }
  .result-row__team.is-winner .result-row__name { color: var(--accent); }
  .result-row__vs { color: var(--accent); }
  .result-row__score { display: flex; align-items: baseline; gap: .75rem; }
  .result-row__code { font: var(--display-weight) var(--text-h3)/1 var(--font-num); letter-spacing: var(--display-track); }
  .result-row__round { color: var(--muted); font-size: var(--text-s); }
  .result-row__meta { display: grid; gap: .125rem; }
  .result-row__place { font-weight: 700; }
  @media (width < 992px) {
    .result-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; padding-inline: 1.875rem; }
  }
  @media (width < 768px) {
    .result-row__teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: .625rem; }
    .result-row__team:last-child { justify-content: flex-end; }
    .result-row__team { justify-content: flex-start; }
  }
  @media (width < 480px) {
    .result-row { padding-inline: 1rem; }
    .result-row__teams { grid-template-columns: 1fr; justify-items: center; }
    .result-row__team, .result-row__team:last-child { justify-content: center; }
  }

  /* ---- standings page ---- */
  .standings__grid { display: grid; gap: var(--space-xl); }
  .standings__lede { font-size: var(--text-l); max-width: 40rem; color: var(--c-soft); }
  .standings__season { display: grid; gap: var(--space-m); }
  .standings__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-s) var(--space-m); }
  .standings__heading { font-size: var(--text-h2); }
  .standings__note { color: var(--accent); font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .standings__table-heading { margin-top: var(--space-m); font-size: var(--text-h4); line-height: var(--h3-lh); }

  /* ---- FAQ (template: heading 60 %, accordion columns: white left, ink right) ---- */
  .faq__intro { display: grid; gap: var(--space-m); width: min(100%, 60%); margin-bottom: var(--space-xl); }
  .faq__heading { font-size: var(--text-h2); }
  .faq__lede { font-size: var(--text-l); color: var(--c-soft); }
  .faq__columns { display: grid; grid-template-columns: 1.5fr 1fr; gap: .9375rem; align-items: start; }
  .faq__col { display: grid; gap: .9375rem; }
  .faq__item { padding: .875rem 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
  .faq__item--ink { background: var(--ink); }
  .faq__question { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; padding-block: .625rem;
    font: 700 var(--text-h6)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .faq__question .glyph { width: 1.25rem; height: 1.25rem; margin-top: .125rem; transition: transform .3s; }
  .faq__answer { padding-bottom: 1.25rem; color: var(--c-soft); }
  @media (width < 992px) { .faq__intro { width: 100%; } }
  @media (width < 768px) { .faq__columns { grid-template-columns: 1fr; } .faq__intro { margin-bottom: var(--space-l); } }

  /* ---- numbered list (template: awards) ---- */
  .award-list__container { display: grid; gap: clamp(3.125rem, 2rem + 3vw, 5rem); max-width: calc(60rem + 2 * var(--gutter)); }
  .award-list__item { display: grid; gap: .875rem; max-width: 38rem; }
  .award-list__item--media { grid-template-columns: minmax(0, 1fr) auto; max-width: none; gap: var(--space-m) var(--space-xl); align-items: center; }
  .award-list__body { display: grid; gap: .875rem; justify-items: start; max-width: 38rem; }
  .award-list__head { display: flex; align-items: baseline; gap: 1.25rem; }
  .award-list__title { font-size: var(--text-h4); line-height: var(--h3-lh); }
  .award-list__num { flex: none; min-width: 2ch; color: var(--accent); font: 700 var(--text-s)/1.4 var(--font-ui); font-variant-numeric: tabular-nums; }
  .award-list__text { color: var(--c-soft); }
  .award-list__badge { color: var(--ink); }
  .award-list__badge svg { width: clamp(5rem, 3.5rem + 5vw, 8.5rem); height: auto; }
  @media (width < 480px) {
    .award-list__item--media { grid-template-columns: 1fr; }
    .award-list__head { gap: .625rem; }
    .award-list__badge { grid-row: 1; }
  }

  /* ---- centred call block (template: footer-logo-wrapper) ---- */
  .call__container { display: grid; justify-items: center; gap: var(--space-m); max-width: calc(39.8rem + 2 * var(--gutter)); text-align: center; }
  .call__heading { font-size: var(--text-h2); }
  .call__text { color: var(--c-soft); }
  .call__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9375rem; margin-top: var(--space-s); }
  .call__logo img { width: clamp(12rem, 10rem + 5vw, 15.75rem); }

  /* ---- about hero (template: banner-about-us) + values band ---- */
  .about-hero { padding-top: clamp(8.75rem, 4rem + 13vw, 12.5rem); padding-bottom: var(--space-xl); background: var(--paper) var(--paper-image) 50% / cover; overflow: hidden; }
  .about-hero__container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
  .about-hero__text { display: grid; justify-items: start; gap: var(--space-m); max-width: 47.5rem; }
  .about-hero__heading { font-size: var(--text-h1); line-height: var(--h1-lh); }
  .about-hero__lede { max-width: 31.8rem; font-size: var(--text-l); }
  .about-hero__actions { display: flex; flex-wrap: wrap; gap: .9375rem; margin-top: var(--space-s); }
  .about-hero__media { flex: none; align-self: flex-end; width: clamp(20rem, 7rem + 30vw, 42.5rem); margin-top: var(--space-xl); }
  .about-hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
  @media (width < 992px) {
    .about-hero__container { flex-direction: column; align-items: center; text-align: center; }
    .about-hero__text { justify-items: center; }
    .about-hero__actions { justify-content: center; }
    .about-hero__media { align-self: center; width: min(100%, 22.5rem); }
  }
  .values-band { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); }
  .values-band__media { min-height: 28rem; }
  .values-band__media img { width: 100%; height: 100%; object-fit: cover; }
  .values-band__panel { display: flex; align-items: center; padding: var(--section-space) clamp(1.5rem, 0rem + 5vw, 6.25rem); background: var(--ink); }
  .values-band__text { max-width: 33rem; color: var(--c-soft); }
  @media (width < 768px) { .values-band { grid-template-columns: 1fr; } .values-band__media { min-height: 20rem; } .values-band__panel { padding-inline: var(--gutter); } }

  /* ---- stage hero (template: result details) ---- */
  .stage-hero { position: relative; min-height: clamp(31.25rem, 29.4rem + 4.6vw, 34.375rem); padding-top: clamp(7.5rem, 3rem + 13vw, 11.875rem); padding-bottom: clamp(3.75rem, 1.5rem + 6vw, 8.125rem);
    background: var(--paper) var(--paper-image) 50% / cover; overflow: hidden; }
  .stage-hero__container { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(1.5rem, .5rem + 2.5vw, 3rem); max-width: calc(62.5rem + 2 * var(--gutter)); }
  .stage-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .625rem var(--space-m); width: 100%; }
  .stage-hero__meta { color: var(--accent); font-weight: 700; }
  .stage-hero__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.875rem; width: 100%; }
  .stage-hero__side { display: flex; align-items: center; gap: .625rem; font: var(--display-weight) clamp(1.5rem, 1.333rem + .741vw, 2rem)/var(--display-lh) var(--font-display);
    letter-spacing: var(--display-track); text-transform: uppercase; }
  .stage-hero__city { justify-content: flex-end; text-align: right; }
  .stage-hero__num { white-space: nowrap; }
  .stage-hero__mark { color: var(--accent); }
  .stage-hero__mark svg { height: clamp(3.75rem, 3.4rem + 1vw, 5rem); width: auto; }
  .stage-hero__score { display: flex; justify-content: center; }
  .stage-hero__date { font: var(--display-weight) var(--text-score)/.9 var(--font-num); letter-spacing: var(--display-track); }
  .stage-hero__facts { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1.25rem 2.5rem; width: 100%; text-align: center; }
  .stage-hero__fact { display: grid; gap: .5rem; align-content: start; }
  .stage-hero__fact dt { font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; color: var(--muted); }
  .stage-hero__fact dd { font-size: var(--text-l); line-height: 1.5; }
  .stage-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9375rem; }
  .stage-hero__actions:empty { display: none; }
  .stage-hero__ghost { position: absolute; bottom: -10%; width: 40%; display: flex; justify-content: center; opacity: .08; color: var(--ink); pointer-events: none; }
  .stage-hero__ghost svg { width: clamp(6.875rem, 2rem + 13vw, 15.625rem); height: auto; }
  .stage-hero__ghost--left { left: 0; }
  .stage-hero__ghost--right { right: 0; transform: scaleX(-1); }
  [data-profile="template"] .stage-hero__ghost { opacity: .3; color: #999; }
  @media (width < 992px) {
    .stage-hero__main { grid-template-columns: 1fr 1fr; }
    .stage-hero__score { grid-column: 1 / -1; grid-row: 2; }
    .stage-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (width < 480px) {
    .stage-hero__main { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; }
    .stage-hero__score { grid-row: auto; }
    .stage-hero__city { justify-content: center; text-align: center; }
    .stage-hero__ghost { display: none; }
    .stage-hero__top { justify-content: center; text-align: center; }
  }

  /* ---- ink band on the stage page (template: drive summary) ---- */
  .card-band { background: var(--ink); }
  .card-band__container { display: grid; gap: var(--space-xl); max-width: calc(57.5rem + 2 * var(--gutter)); }
  .card-band__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-m); }
  .card-band__heading { font-size: var(--text-h2); }
  .card-band__empty { display: grid; justify-items: start; gap: var(--space-m); padding: 1.875rem 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
  .card-band__cancelled { color: var(--c-soft); display: grid; gap: .625rem; }
  .results--stage .results__grid { gap: 0; }

  /* ---- tickets (template: pricing plans) ---- */
  .tickets__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.875rem; }
  .ticket-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); }
  .ticket-card__image { width: 100%; height: 15.625rem; object-fit: cover; }
  .ticket-card__body { display: grid; align-content: start; gap: .875rem; padding: 1.875rem 1.25rem; }
  .ticket-card__title { font-size: 1.5rem; line-height: 1.2; }
  .ticket-card__text { color: var(--text-soft); }
  .ticket-card .btn { margin-top: .625rem; }
  @media (width < 992px) { .tickets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (width < 768px) { .tickets__grid { grid-template-columns: 1fr; } }

  /* ---- 404 (template: utility page) ---- */
  .not-found { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh;
    padding: 6rem var(--gutter) 3rem; background: var(--paper) var(--paper-image) 50% / cover; text-align: center; }
  .not-found__logo { position: absolute; top: 2.5rem; left: 50%; translate: -50% 0; color: var(--text); }
  .not-found__logo svg { height: 1.375rem; width: auto; }
  .not-found__body { display: grid; justify-items: center; max-width: 59.375rem; }
  .not-found__code { font: var(--display-weight) var(--text-404)/1.1 var(--font-num); letter-spacing: var(--display-track); }
  .not-found__heading { font-size: var(--text-h3); line-height: var(--h3-lh); }
  .not-found__text { margin: 1.25rem 0 2.5rem; }
  .not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9375rem; }

  /* ---- footer (template: centred logo + heading + button, link row, legal row) ---- */
  .site-footer { padding-top: clamp(3.75rem, 2.5rem + 3.5vw, 6.25rem); padding-bottom: 1.875rem; background: var(--paper) var(--paper-image) 50% / cover; }
  .site-footer__top { display: grid; justify-items: center; gap: .625rem; max-width: 39.8rem; margin-inline: auto; text-align: center; }
  .site-footer__logo { color: var(--text); margin-bottom: .625rem; display: flex; min-block-size: 1.5rem; align-items: center; }
  .site-footer__logo svg { height: 1.375rem; width: auto; }
  .site-footer__heading { font: var(--display-weight) var(--text-h2)/var(--display-lh) var(--font-display); letter-spacing: var(--display-track); text-transform: uppercase; text-wrap: balance; }
  .site-footer__top .btn { margin-top: calc(var(--space-xl) - .625rem); }
  .site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.875rem;
    margin-top: clamp(3.75rem, 2.5rem + 3.5vw, 6.25rem); padding-bottom: 1.875rem; border-bottom: 1px solid var(--line); }
  .site-footer__links { display: flex; flex-wrap: wrap; gap: .625rem 2.5rem; }
  .site-footer__link, .site-footer__bottom { font: 700 var(--text-s)/1.4 var(--font-ui); letter-spacing: var(--ui-track); text-transform: uppercase; }
  .site-footer__link { display: inline-flex; align-items: center; min-block-size: 1.5rem; text-decoration: none; transition: color .3s; }
  .site-footer__socials { display: flex; gap: 1.5rem; margin-inline: -.1875rem; }  /* the icon boxes are 2 px wider than the ink: hang both ends */
  .site-footer__social { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; color: var(--text); transition: color .3s; }
  .site-footer__social .icon { width: 1.25rem; height: 1.25rem; fill: currentColor; }
  @media (hover: hover) { .site-footer__link:hover, .site-footer__social:hover, .site-footer__bottom a:hover { color: var(--accent); } }
  .site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .625rem 1.25rem; margin-top: 1.875rem; }
  .site-footer__credits { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .site-footer__bottom a { color: var(--accent); text-decoration: none; }
  @media (width < 768px) {
    .site-footer__row { flex-direction: column; }
    .site-footer__links { justify-content: center; gap: .625rem 1.25rem; }
    .site-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
    .site-footer__credits { justify-content: center; }
  }
}

/* ==== CVI brand layer: the approved guide (cvi.mmaliiga.ee: Graafiline element, Kiri, Värv, Sotsiaalmeedia) on top of
   the Brixton components. Scoped to the default profile, so ?profile=template (the Brixton 1:1 check) never sees it.
   A later layer than components: these rules win without !important or extra specificity. */
@layer brand {
  @scope (html:not([data-profile="template"])) {

    /* ---- faas, the one device: a 45° cut. Photos, cards and panels lose the top-left and bottom-right corner;
       never rounded, never more than two corners. */
    .home-hero__media, .home-hero__tile, .intro-band__photo, .last-stage__photo, .about-band__media, .next-stage__photo,
    .stage-card__image, .cta-band__media, .about-hero__media, .values-band__media, .ticket-card, .stage-row, .result-row,
    .empty-state, .card-band__empty, .fight-card--bars .bout, .fight-card__group, .faq__item, .cta-band__box {
      --cut: var(--cut-l);
      clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    }
    .home-hero__tile, .fight-card--bars .bout, .fight-card__group, .faq__item, .cta-band__box { --cut: var(--cut-m); }

    /* tags: the bottom-right corner only, .293 × the element's height (--h, set by each component) */
    .btn, .tag, .next-stage__link, .nav-drop__status.is-open {
      --cut-s: calc(var(--cut-ratio) * var(--h));
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, 0 100%);
    }
    /* buttons: top-left and bottom-right like the photos (Karl, 2026-12-05), same .293 × height */
    .btn, .next-stage__link {
      clip-path: polygon(var(--cut-s) 0, 100% 0, 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, 0 100%, 0 var(--cut-s));
    }
    /* the border follows both cuts: the corner is filled in the border colour up to 1px inside the clip edge, so a 1px
       diagonal shows (the old stop sat just outside the clip and vanished) */
    .btn { background-image:
        linear-gradient(315deg, var(--b-bg) calc(var(--cut-s) * .7071 + 1px), transparent 0),
        linear-gradient(135deg, var(--b-bg) calc(var(--cut-s) * .7071 + 1px), transparent 0);
      background-origin: border-box; }
    /* the countdown panel is a panel: cut top-left (its right side bleeds off the page from 768 up, so the polygon runs
       past it), and bottom-right too once it stands alone on phones. The link inside is 3.75rem tall there. */
    /* from 768 up the bar meets the photo on its left and runs off the page on its right: plate meets plate, so the
       bar keeps square corners and the photo drops its bottom-right cut (it would notch the bar's bottom line).
       The link sits inside the bar as a button, not a block poking out above it. */
    .next-stage__link { --h: 3.75rem; }
    @media (width >= 768px) {
      .next-stage__photo { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
    }
    @media (width >= 992px) {
      .next-stage__link { width: auto; height: var(--h); margin-top: 0; padding-inline: 2.5rem; }
    }
    /* on phones the bar stands alone under the text: a panel, cut top-left and bottom-right */
    @media (width < 768px) {
      .next-stage__bar { --cut: var(--cut-l);
        clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
    }
    /* a ring outside the box would be clipped: clipped controls draw it inside, in the label colour */
    .btn:focus-visible, .next-stage__link:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }

    /* stage dropdown: TL + BR like every panel (it was cut top-right); the clip keeps the hover bridge above it */
    @media (width >= 992px) {
      .nav-drop { --cut: var(--cut-m);
        clip-path: polygon(0 -.75rem, 100% -.75rem, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut), var(--cut) 0, 0 0); }
    }

    /* ---- headlines: display headlines in Voltera Black Italic, line-height 1.13 (the guide's text pack) */
    .page-banner__heading, .about-hero__heading, .section-title, .intro-band__heading, .about-band__heading, .next-stage__heading,
    .news-band__heading, .cta-band__heading, .schedule__heading, .results__heading, .standings__heading, .faq__heading,
    .card-band__heading, .call__heading, .site-footer__heading, .last-stage__name, .last-stage__date, .stage-hero__date, .not-found__code,
    .last-stage__title, .next-stage__card-heading {
      font-style: var(--display-style);
    }
    /* left-aligned italics (data-hang from eml_lsb()) hang the common side bearing (.0475 em), and the first line its
       own letter's extra (--lsb, a text-indent), so the first visible stroke sits on the margin; app.js does the same
       for later lines that start with a far-leaning letter (.ink-word) */
    [data-hang] { margin-inline-start: calc(-1 * var(--lsb-i)); text-indent: calc(var(--lsb-i) - var(--lsb, var(--lsb-i))); }

    /* ---- leads: Glavia Bold only (its Regular draws š ž with a circumflex) */
    .home-hero__lede, .about-band__lede, .next-stage__lede, .about-hero__lede, .standings__lede, .faq__lede, .schedule__text, .lede {
      font-family: var(--font-lead); font-weight: var(--lead-weight); font-size: var(--lead-size); line-height: 1.4;
    }

    /* ---- data: Ironexa MN Mono caps, tracked .04 em, tabular figures (dates, weights, method and time, facts, numbers) */
    .stage-row__date, .stage-row__note, .stage-card__text, .cta-band__lede, .next-stage__sub, .last-stage__text, .stage-hero__meta,
    .stage-hero__fact dd, .standings__note, .result-row__class, .result-row__code, .result-row__round, .result-row__date,
    .result-row__place, .bout__class, .bout__vs, .bout__code, .bout__method,
    .league-table__table td.num, .league-table__table td.league-table__pos, .intro-band__num, .award-list__num {
      font-family: var(--font-data); font-weight: 400; font-synthesis: none; letter-spacing: var(--data-track);
      text-transform: uppercase; font-variant-numeric: tabular-nums;
    }
    /* countdown digits stay Voltera, now in its italic (the guide: numbers in Voltera Black Italic): Ironexa Mono read
       well as a clock but ran out of a 360 px phone */
    .countdown__num, .countdown__colon { font-style: var(--display-style); }
    .stage-hero__meta, .stage-hero__fact dd { font-size: var(--text-data); }

    /* ---- tag: Voltera Black on a garnet plate (glow on ink), 2 em high with the caps centred, so Š Ž fit inside.
       Voltera's ascent is its cap height: a .25 em top pad centres the caps (the guide's eml-chip, measured). The right
       pad adds .15 × the height to balance the cut; the left one takes off Voltera's .04 em side bearing. */
    .tag, .nav-drop__status.is-open {
      --h: 2em;
      display: inline-flex; align-items: center; box-sizing: border-box; height: var(--h); line-height: 1; text-box: normal;
      padding: .25em calc(.625em + .15 * var(--h)) 0 calc(.625em - .04em);
      font: 900 var(--text-tag)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
      background: var(--c-btn); color: var(--c-on-btn);
    }
    .nav-drop__status.is-open { --c-btn: var(--accent); --c-on-btn: var(--on-btn); font-size: var(--text-xs); }
    .tag--live { background: var(--live); color: var(--ink); }
    .tag--warn { background: var(--ink); color: var(--on-ink); }
    .fight-card--bars .tag--warn { background: var(--on-ink); color: var(--ink); }

    /* ---- fight card (the guide's fight card post): names in Voltera Bold, the main event first in Voltera Black and
       larger, its weight in the accent (glow on ink, garnet on paper), the rest muted; vs and results in mono */
    .bout__name { font-weight: 700; }
    .bout__mid { gap: .5rem; }
    .bout--main .bout__name { font-weight: 900; font-size: clamp(1.375rem, 1.208rem + .741vw, 1.875rem); }   /* 22 to 30 (4.0u : 3.6u) */
    .fight-card--bars .bout--main { min-height: 7.5rem; }
    .bout__class { color: var(--c-muted); font-size: var(--text-xs); }
    .bout--main .bout__class { color: var(--c-accent); }
    .bout__vs { color: var(--c-accent); text-transform: uppercase; }
    .bout__code { color: var(--c-accent); }
    .bout__method { font-size: var(--text-xs); }
    .bout__side.is-winner .bout__name { font-weight: 900; color: var(--c-text); }
    .bout__side.is-loser { opacity: 1; }
    .bout__side.is-loser .bout__name { color: var(--c-muted); }

    /* ---- results (the guide's results post): weight | winner in Voltera Black over the loser in grey |
       method and time in mono, the method in the accent | date and cage */
    .result-row { grid-template-columns: 7rem minmax(0, 1fr) auto auto; justify-items: stretch; text-align: left; }
    .result-row__class { color: var(--c-muted); font-size: var(--text-s); }
    .result-row__teams { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .375rem; }
    .result-row__vs { display: none; }
    .result-row__team { justify-content: flex-start; }
    .result-row__team.is-winner { order: -1; }
    .result-row__name { font: 900 var(--text-h4)/var(--display-lh) var(--font-display); letter-spacing: var(--display-track); color: var(--c-text);
      text-box: trim-both cap alphabetic; }   /* the corner square centres on the caps, not the accent room */
    .result-row__team.is-winner .result-row__name { color: var(--c-text); }
    .result-row__teams:has(.is-winner) .result-row__team:not(.is-winner) .result-row__name {
      font: 400 var(--text-m)/1.4 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--c-muted); }
    .result-row__score { align-items: baseline; justify-content: flex-start; gap: .75rem; }
    .result-row__code { font-size: var(--text-h6); line-height: 1.2; color: var(--c-accent); }
    .result-row__round { font-size: var(--text-s); color: var(--c-text); }
    .result-row__meta { justify-items: end; gap: .5rem; text-align: right; }
    .result-row__date, .result-row__place { font-size: var(--text-s); color: var(--c-muted); }
    @media (width < 992px) {
      .result-row { grid-template-columns: minmax(0, 1fr); gap: .875rem; padding-inline: 1.25rem; }
      .result-row__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-items: start; text-align: left; }
      .result-row__teams { grid-template-columns: minmax(0, 1fr); }
      .result-row__team, .result-row__team:last-child { justify-content: flex-start; }
    }

    /* ---- standings: numbers in mono */
    .league-table__table td.league-table__pts { font-weight: 400; }

    /* ---- photos under text: the guide's charcoal shade instead of a flat tint */
    .page-banner__bg { background: var(--photo-shade), var(--photo) 50% 30% / cover; }
    .intro-band__photo { background: var(--photo-shade), var(--photo) 50% / cover; }

    /* ---- the mark is never mirrored */
    .stage-hero__ghost--right { transform: none; }

    /* ---- home hero from 768 up: the photo starts under the nav bar, a paper strip the bar's own height as on phones,
       so the menu, CTA and burger never sit on the photo (Ironexa caps ran LIIGAST and REEGLID onto it from 992 to 1280
       and at 1920, the burger at 768). The text column stops a gutter short of the photo (the lede and the button ran
       under it from 768 to 1100). */
    @media (width >= 768px) {
      .home-hero { --nav-h: 4.875rem; }                                    /* 1rem + the 2.875rem CTA + 1rem */
      .home-hero__media { top: var(--nav-h); }
      .home-hero__text, .home-hero__actions { max-width: calc(50vw - max(var(--gutter), (100vw - var(--content-width)) / 2) - var(--gutter)); }
    }
    @media (width >= 992px) { .home-hero { --nav-h: 5.125rem; } }      /* 1rem + the 3.125rem CTA + 1rem */

    /* plate meets plate (Karl, 2026-12-05): from 768 up these photos fill their band's height and run off the right edge.
       The bottom-right corner meets the next band (and the page edge), so it stays square; the cta photo's top-left meets
       the ink band above it too. The about photo's top-left stays cut: the band above it is the same ink. */
    @media (width >= 768px) {
      .home-hero__media, .about-band__media { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
      .cta-band__media { clip-path: none; }
    }

    /* ---- countdown: four equal unit columns, so each colon sits midway between its digits (the cells were as wide as
       their labels: "6  :20:23:  11"). min-width 0 lets it share a 360 px line instead of growing to four SEKUNDIT widths. */
    .countdown { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; min-width: 0; max-width: 100%; }

    /* next-stage bar: the countdown starts on the text's margin above it (it sat 8 px left of it at 1000, 16 px at 768) */
    @media (width >= 768px) {
      .next-stage__bar > .countdown, .next-stage__date { margin-inline-start: clamp(2.5rem, 2rem + .8vw, 3.125rem); }
    }
    @media (768px <= width < 992px) {   /* the stacked bar keeps its 1.5rem padding; the countdown and the link step in to the text */
      .next-stage__bar > .countdown, .next-stage__date, .next-stage__link { margin-inline-start: calc(clamp(2.5rem, 2rem + .8vw, 3.125rem) - 1.5rem); }
      .next-stage__link { width: auto; }
    }

    /* stage hero facts: label and value rows shared across the row, so a value under a two-line label lines up with
       the value beside it */
    .stage-hero__facts { grid-auto-rows: auto; }
    .stage-hero__fact { grid-row: span 2; grid-template-rows: subgrid; row-gap: .5rem; }
    /* proper names and addresses stay in one piece where they fit */
    .stage-hero__address, .stage-card__venue, .last-stage__venue { display: inline-block; }

    /* ---- phone drawer: its links start on the logo's margin (the page gutter, not a fixed 20 px), and the page
       behind it no longer scrolls */
    @media (width < 992px) {
      .site-nav__panel { padding-inline: var(--gutter); }
      :scope:has(.site-nav.is-open) { overflow: hidden; }
    }
    /* scrolled, the dropdown hangs off the ink bar: plate meets plate, so its top-left corner stays square */
    @media (width >= 992px) {
      .site-nav.is-scrolled .nav-drop {
        clip-path: polygon(0 -.75rem, 100% -.75rem, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
    }

    /* standings: the season note sits on the heading's baseline */
    .standings__head { align-items: last baseline; }

    /* ---- touch targets: 44 px hit areas for the small text links on touch screens, drawn by a transparent box
       around the link so nothing moves; footer links get the height outright */
    @media (pointer: coarse) {
      .link-line, .cta-band__link, .stage-row__link, .stage-card__title a, .bout__name a, .site-footer__social, .site-footer__logo,
      .result-row__name a, .stage-row__city a { position: relative; }
      .link-line::before, .cta-band__link::before, .stage-row__link::before, .stage-card__title a::before, .bout__name a::before,
      .site-footer__logo::before, .result-row__name a::before, .stage-row__city a::before {
        content: ""; position: absolute; inset: calc(50% - 1.375rem) -.25rem; }
      .site-footer__social::before { content: ""; position: absolute; inset: -.625rem; }
      .site-footer__link { min-block-size: 2.75rem; }
      .site-footer__links { row-gap: 0; }
    }
  }
}

@layer utilities {
  html.js:not(.no-motion) [data-reveal] { opacity: 0; transform: translateY(2.5rem); }
  html.js:not(.no-motion) [data-hero-in] { opacity: 0; transform: translateY(2.5rem); }
  @media (prefers-reduced-motion: reduce) { html.js [data-reveal], html.js [data-hero-in] { opacity: 1 !important; transform: none !important; } }
}

/* Unlayered on purpose: after a tap or click no element shows a focus ring (iOS keeps focus on tapped openers);
   keyboard users keep theirs. html[data-input] is set by app.js. */
html[data-input="pointer"] :focus-visible:not(input, textarea, select) { outline: none !important; box-shadow: none !important; }
