/* =============================================================================
   NTC design system — tokens, reset, typography.

   Source of truth is the 2026 Terrace design: docs/design/ntc-web.figcraft,
   page 3, with the values written out in docs/awwwards/ntc-terrace/
   visual-system.md (issue #64). The token NAMES are the ones the Paper file
   introduced and every section stylesheet already reads; #64 changed the
   values only, so the whole site moved onto the 2026 palette and type in one
   file. Change a value in FigCraft first, then here.

   One token below is NOT in Paper: --color-link. It holds no colour of its
   own, it points at --color-accent, and it exists so that "what a link looks
   like" is one name rather than a grep. Paper swatches surfaces and accents;
   this is a role. Anything that carries a VALUE belongs in Paper first.

   Loaded before every section stylesheet; Oxygen's selectors.css loads after
   all of this and wins ties.
   ========================================================================== */

/* --- Anton, served from this site (#85) ------------------------------------
   The display face is the one every page heading waits on, and a word that
   wraps differently in the fallback moves the whole page when it lands
   (Lighthouse measured CLS up to 0.38 on desktop). Served from here it can be
   preloaded on the page's own connection (ntc-port.php), so it is usually in
   hand before first paint. Latin subset, 18.6 KB, v27 from Google Fonts, under
   the SIL Open Font License (fonts/Anton-OFL.txt). Fira Sans Condensed stays
   on the Google enqueue. This file is not imported into Oxygen, so the rule
   against @font-face in imported CSS does not reach it. */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anton-latin.woff2') format('woff2');
}

/* --- Metric-matched fallbacks (#85) ---------------------------------------
   The webfonts arrive after first paint (display=swap), and the swap used to
   move every line: Lighthouse measured CLS 0.128 on Home at 1440, all of it the
   hero heading changing from the fallback to Anton. These faces are Arial
   resized and re-leaded to the real fonts' measured metrics, so the swap
   changes the letterforms and not the line boxes. Measured in Chromium with
   canvas measureText over a 120-character sample of the site's own copy:
   Anton is set only in upper case, and in upper case it is 69.4% of Arial's
   advance (the mixed-case ratio, 90.75%, broke every display heading onto an
   extra line); ascent 118 and descent 33 per 100px;
   Fira Sans Condensed 91.88% (400) and 86.75% (600, against Arial Bold),
   ascent 94, descent 27.
   These are local() faces, not webfont loaders: nothing is downloaded, so
   the Oxygen rule against @font-face in imported CSS (AGENTS.md) does not
   apply, and this file is never imported into Oxygen. */
@font-face {
  font-family: 'Anton Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 69.4%;
  ascent-override: 170%;
  descent-override: 47.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Fira Sans Condensed Fallback';
  font-weight: 400;
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 91.88%;
  ascent-override: 102.3%;
  descent-override: 29.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Fira Sans Condensed Fallback';
  font-weight: 600;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Helvetica Bold');
  size-adjust: 86.75%;
  ascent-override: 108.4%;
  descent-override: 31.1%;
  line-gap-override: 0%;
}

:root {
  /* --- Colour ------------------------------------------------------------
     Gold is the only loud value in the system and it never sits on a light
     ground — see .ntc-on-light at the bottom of this file. Dark purple is the
     one colour strong on both. */
  --color-ink:            #060316;   /* navy: the dominant ground */
  --color-ink-raised:     #100C24;   /* raised: alternate sections, cards, fields */
  --color-black:          #000000;   /* media panels */
  --color-bone:           #F4F2EA;   /* inverted sections and the partner tiles */
  --color-white:          #FFFFF5;   /* cream: headings and display type on dark grounds */
  --color-text:           #B9B6C6;   /* body copy on navy — 10.24:1 */
  --color-text-muted:     #8A8799;   /* secondary text — 5.82:1 on navy, 5.46:1 on raised */
  --color-text-on-light:  #060316;
  --color-accent-base:    #FFBC01;   /* the literal gold; never remapped */
  --color-accent:         var(--color-accent-base); /* the one loud one — remapped on light grounds */
  --color-accent-dim:     #7A5A00;   /* accent on a LIGHT ground only — 5.69:1 on bone */
  --color-accent-press:   #D99F00;   /* pressed gold on a DARK ground — navy label 8.63:1 */
  --color-secondary:      #573895;   /* club purple: the join band, squad cards */
  --color-secondary-dim:  #45297A;   /* pressed state */
  --color-error:          #FF8F8F;   /* form errors only — 9.28:1 on navy, 8.71:1 on raised */

  /* Two remaps the purple ground needs, and nothing else may use directly.
     --color-text-muted #797E87 is only 3.92:1 on #301934 and --color-line
     #2D3645 is 1.31:1 — invisible. Both are re-pointed at these by
     .ntc-ground--secondary in chrome.css, exactly as .ntc-on-light re-points
     the accent. The hue on both is #301934's own 291deg, so they read as part
     of the scene rather than grey dropped on top. */
  --color-text-muted-purple: #C9BCE0;   /* 4.89:1 on #573895 — remap only */
  --color-line-purple:       #8A6FC2;   /* hairline on #573895 — remap only */

  --color-link:           var(--color-accent);   /* see `html a` below */
  --color-line:           #2A2640;   /* hairline rule; never the only edge of a control */
  --color-line-light:     #CCCCCC;
  --color-gray-600:       #909090;   /* logo silver */
  --color-gray-800:       #6C6C6C;

  /* --- Type families ------------------------------------------------------
     Display carries the volume; body carries the reading. */
  --font-display:   Anton, 'Anton Fallback', 'Arial Narrow', sans-serif;              /* upper case only, set tight */
  --font-body:      'Fira Sans Condensed', 'Fira Sans Condensed Fallback', 'Arial Narrow', sans-serif; /* all UI and body copy, 400 and 600 */
  /* Terrace has two families. The mono and editorial ROLES stay as names so
     the section stylesheets need no edit; both now resolve to the text face. */
  --font-mono:      var(--font-body);
  --font-editorial: var(--font-body);

  /* --- Type scale --------------------------------------------------------- */
  /* The Terrace scale: desktop 14, 16, 20, 24, 32, 40, 56, 72, 96, 128, 160,
     200; phone 13, 15, 17, 20, 24, 32, 40, 56, 76, 104. Each old name moved to
     the nearest step. Nothing renders under 13px. */
  --text-2xs:     13px;
  --text-xs:      14px;
  --text-sm:      16px;
  --text-base:    17px;
  --text-md:      20px;
  --text-lg:      20px;   /* body */
  --text-xl:      24px;   /* lead */
  --text-2xl:     32px;
  --text-3xl:     40px;
  --text-4xl:     56px;
  --text-5xl:     96px;
  --text-h1:     128px;
  --text-display: 200px;
  --text-mega:    200px;

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --tracking-display: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-normal:   0em;
  --tracking-wide:     0.12em;

  --leading-display: 90%;
  --leading-tight:  105%;
  --leading-snug:   130%;
  --leading-normal: 160%;

  /* --- Breakpoints and containers ----------------------------------------
     Declared as tokens for parity with Paper. CSS custom properties cannot be
     used in @media conditions, so the media queries below repeat the values. */
  --breakpoint-sm:  640px;
  --breakpoint-md:  768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1440px;

  --container-narrow:  1180px;
  --container-default: 1360px;

  /* --- Space (4px base) ---------------------------------------------------
     Tighter to group, generous to separate — never an even rhythm. */
  --spacing-xs:       4px;
  --spacing-sm:       8px;
  --spacing-md:      16px;
  --spacing-lg:      24px;
  --spacing-xl:      40px;
  --spacing-2xl:     64px;
  --spacing-3xl:     96px;
  --spacing-section: 120px;   /* Terrace: 120 desktop, 64 phone */

  /* --- Grid and touch (Terrace) -------------------------------------------- */
  --grid-columns:  12;
  --grid-margin:   80px;
  --grid-gutter:   24px;
  --tap-min:       44px;    /* no control on any route is smaller */
  --control-h:     56px;    /* buttons */
  --chip-h:        48px;
  --thumb-bar-h:   72px;    /* the phone bar fixed to the bottom of the screen */

  /* --- Edges --------------------------------------------------------------
     Hard by default. Cards, panels, images and inputs never round; buttons and
     filter chips are the only exception. */
  --radius-none: 0px;
  --radius-pill: 999px;

  /* --- Motion -------------------------------------------------------------
     Motion is a system value like colour and space, not a per-component
     decision. The numbers are the ones measured off the reference site in
     docs/sdlc/design/specs/motion-reference-analysis.md: durations cluster on
     0.8s and the ease is Power1 — a gentle quadratic with no overshoot, no
     elastic and no back-ease anywhere. Restraint is the point.

     No section stylesheet may write a literal duration or easing; use these.
     The behaviours that consume them live in motion.css, which loads last. */
  --motion-fast:   0.4s;   /* hover, chips, small state changes */
  --motion-base:   0.8s;   /* the house duration — section reveals */
  --motion-slow:   1.2s;   /* display-type reveals */
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);  /* Power1.easeOut */
  --ease-in-out:   cubic-bezier(0.45, 0.05, 0.55, 0.95);  /* Power1.easeInOut */
  --motion-travel: 80px;   /* scrubbed parallax amplitude, +/- */
  --motion-rise:   32px;   /* discrete reveal rise distance */
}

/* Reduced motion is first-class, not an afterthought: it is declared here, next
   to the tokens it neutralises, so a duration can never be added to the system
   without its reduced form. Zeroing the tokens at source means every consumer
   collapses to its end state whether or not it remembered to ask.

   animations.js checks the same media query and never starts, so nothing is
   pre-hidden either — the page renders its final state directly. motion.css
   carries the belt-and-braces !important sweep for anything outside the
   token system. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast:   0.01ms;
    --motion-base:   0.01ms;
    --motion-slow:   0.01ms;
    --motion-travel: 0px;
    --motion-rise:   0px;
  }
}

/* --- Base ----------------------------------------------------------------
   Every element rule below is prefixed with `html` on purpose. Oxygen's
   uploads/oxygen/css/global-settings.css loads AFTER this file and styles the
   bare `body` and `h1`…`h6` selectors from its own --bde-* variables; at equal
   specificity the later sheet wins and the whole type system is silently lost.
   `html body` / `html h1` is 0,0,2 against its 0,0,1, so the design system
   outranks Oxygen's element defaults — while still losing to Oxygen's
   class-based selectors.css, which is authored per-element design intent and
   should keep winning. Do not flatten these back to bare selectors. */
html body {
  background: var(--color-ink);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
}

/* Display headings — Anton, uppercase, set tight. h1/h2 only: below that the
   system switches to the text face, semibold, rather than shrinking the display face. */
html h1, html h2 {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}

html h3, html h4, html h5, html h6 {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

html h1 { font-size: var(--text-display); }
html h2 { font-size: var(--text-5xl); }
html h3 { font-size: var(--text-3xl); }
html h4 { font-size: var(--text-2xl); }
html h5 { font-size: var(--text-xl); }
html h6 { font-size: var(--text-base); }

/* Links. The `html` prefix is load-bearing for the same reason it is on `body`
   and `h1`–`h6`: Oxygen's global-settings.css loads after this file and paints
   every bare `a` from --bde-links-color, which is its own brand blue #3B82F6 —
   a colour nobody on this project chose. It measured 4.34:1 on the purple
   ground and 3.26:1 on bone, both under SC 1.4.3. `a` alone is 0,0,1 and loses
   to Oxygen's identical 0,0,1 on source order; `html a` is 0,0,2 and wins for
   good, while still losing to any class in selectors.css.

   The colour is the accent, so a link reads as one: gold on every dark ground,
   and inside .ntc-on-light --color-accent already resolves to --color-accent-dim
   #946100 (4.68:1 on bone), so the light ground is covered by the mechanism
   that is already there rather than by a second rule. --color-link exists so a
   future change to what a link looks like is one token, not a grep.

   A link that WRAPS a card — a news card, a product tile, a partner logo — is
   not a text link and takes `color: inherit` in its own stylesheet, so the card
   keeps the type colours its ground gave it.

   Hover (#102): the same sheet also paints `a:hover` from
   --bde-links-color-hover, Oxygen's #2563EB, at 0,1,1. That beats `html a` and
   every link class rule at 0,1,0 or `html .x` (0,1,1) that has no hover colour
   of its own: 732 of 1084 links on 13 routes turned blue on hover. A plain link
   stays gold here (0,1,2), and each link class rule that sets a colour carries
   a `:hover` twin in its own stylesheet, so a hovered link keeps its colour.
   A new link class that sets `color` needs the twin too;
   tools/link-hover-check.js fails without it. */
html a { color: var(--color-link); }
html a:hover { color: var(--color-link); }

img, video { max-width: 100%; border-radius: var(--radius-none); }

/* --- Shared type roles ---------------------------------------------------- */

/* Eyebrow / kicker — the text face, semibold, open tracking, upper case:
   17px on desktop and 15 on a phone. */
.ntc-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Mono data — scores, timestamps, table figures. */
.ntc-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--tracking-normal);
}

/* Editorial counterpoint — italic serif, on titles and pull quotes only. */
.ntc-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: var(--font-weight-normal);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.ntc-lead {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.ntc-muted { color: var(--color-text-muted); }

/* --- Layout --------------------------------------------------------------- */
.ntc-container {
  width: min(100% - (2 * var(--spacing-lg)), var(--container-default));
  margin-inline: auto;
}

.ntc-container--narrow { max-width: var(--container-narrow); }

.ntc-section { padding-block: var(--spacing-section); }

/* --- Buttons and chips ---------------------------------------------------
   The only pill-radius elements in the system. 56px tall (48 on a phone),
   32px side padding, text face semibold. The height is a tap-target floor, not
   a look: board 11 of the design draws every state at this size. */
.ntc-btn, .ntc-btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.ntc-btn:active { background: var(--color-accent-press); }

.ntc-btn--ghost, .ntc-btn--ghost:hover {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.ntc-btn--ghost:active { background: transparent; border-color: var(--color-white); }

.ntc-btn--secondary, .ntc-btn--secondary:hover { background: var(--color-secondary); color: var(--color-white); }
.ntc-btn--secondary:active { background: var(--color-secondary-dim); }

/* Filter chip — hairline outline unselected, solid when selected. */
.ntc-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 20px;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.ntc-chip.is-selected {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-ink);
}

/* --- Inverted (light) sections -------------------------------------------
   Contrast rule, not a preference: --color-accent (#FFA700) is 1.72:1 against
   the bone ground, so inside a light section the accent token resolves to
   --color-accent-dim (#946100, 4.68:1 on bone) for every descendant. Selected
   chips go solid ink here. */
.ntc-on-light {
  --color-accent: var(--color-accent-dim);
  /* Re-declared, not inherited: a custom property that references another is
     resolved where it is DECLARED, so the :root --color-link stays gold inside
     this subtree however --color-accent is remapped. Without this line every
     bare link on bone was gold at 1.51:1 (#72, found by the focus sweep on the
     contact links). */
  --color-link: var(--color-accent-dim);
  background: var(--color-bone);
  color: var(--color-text-on-light);
}

.ntc-on-light h1,
.ntc-on-light h2,
.ntc-on-light h3,
.ntc-on-light h4,
.ntc-on-light h5,
.ntc-on-light h6 { color: var(--color-text-on-light); }

.ntc-on-light .ntc-chip { border-color: var(--color-line-light); color: var(--color-gray-800); }

.ntc-on-light .ntc-chip.is-selected {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

/* On a light ground the primary button is INK, not a dimmed accent. Every
   filled button the comp draws on bone — "Full schedule", "Shop all", "Full
   squad", "Send message" — is text-on-light carrying bone type. Letting the
   accent dim through instead would give an olive button nobody designed and a
   weaker contrast than the ink it replaces. */
.ntc-on-light .ntc-btn, .ntc-on-light .ntc-btn:hover { background: var(--color-ink); color: var(--color-bone); }
.ntc-on-light .ntc-btn:active { background: var(--color-ink-raised); }

.ntc-on-light .ntc-btn--ghost, .ntc-on-light .ntc-btn--ghost:hover {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-text-on-light);
}

/* Escape hatch for a dark surface nested inside a light section — a squad
   card's photo panel, the shop's ink product tile, the note strip under the
   product grid. The contrast rule that dims the accent applies to the BONE
   GROUND, not to the section; on ink or purple the full gold is both legal
   and what the comp draws, so the token is restored to its base value. Never
   put this class on something whose own background is bone. */
.ntc-on-dark {
  --color-accent: var(--color-accent-base);
  --color-link: var(--color-accent-base);
  color: var(--color-text);
}

/* .ntc-on-light re-colours h1-h6 for the light ground at 0,1,1. A heading inside
   a nested dark panel needs the same weight to win it back — a class-only rule
   on the heading itself is 0,1,0 and loses, which silently paints white display
   type onto ink in near-black. This block sits after .ntc-on-light on purpose:
   equal specificity, later source, so the innermost ground wins. */
.ntc-on-dark h1,
.ntc-on-dark h2,
.ntc-on-dark h3,
.ntc-on-dark h4,
.ntc-on-dark h5,
.ntc-on-dark h6 { color: var(--color-white); }

.ntc-on-dark .ntc-chip { border-color: var(--color-text); color: var(--color-white); }

.ntc-on-dark .ntc-chip.is-selected {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-ink);
}

/* Visually hidden but read aloud. Used wherever the comp encodes meaning in a
   colour swatch — the ladder form guide especially, where the visible legend
   is the sighted reader's key and this is the screen reader's. */
.ntc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive display scale --------------------------------------------
   197px display and 96px h2 are 1440px values; step the top of the scale down
   rather than letting it wrap. Body sizes hold until the small breakpoint. */
@media (max-width: 1024px) {
  :root {
    --text-mega:    128px;
    --text-display: 128px;
    --text-h1:       96px;
    --text-5xl:      72px;
    --text-4xl:      56px;
    --text-3xl:      40px;
    --text-2xl:      32px;
    --spacing-section: var(--spacing-3xl);
    --grid-columns:  8;
    --grid-margin:   40px;
  }
}

@media (max-width: 640px) {
  :root {
    --text-mega:    104px;
    --text-display: 104px;
    --text-h1:       76px;
    --text-5xl:      56px;
    --text-4xl:      40px;
    --text-3xl:      32px;
    --text-2xl:      24px;
    --text-xl:       20px;
    --text-lg:       17px;
    --text-md:       17px;
    --text-base:     15px;
    --text-sm:       15px;
    --text-xs:       13px;
    --spacing-section: var(--spacing-2xl);
    --grid-columns:  4;
    --grid-margin:   20px;
    --grid-gutter:   12px;
    --control-h:     48px;
    --chip-h:        44px;
  }
}

/* Visually hidden but readable by assistive technology. Defined here as well
   as in the Oxygen chrome (tools/provision-templates.php) because the two
   stylesheets do not share a source and the gallery controls in
   shortcodes.php need it — a class that only exists in the builder CSS would
   work on the masthead and silently fail everywhere the shortcodes render. */
.ntc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* THE [hidden] BASELINE, and it is not boilerplate — it fixes a live bug.
   The UA stylesheet's `[hidden] { display: none }` is only a UA rule, so ANY
   author rule setting `display` beats it regardless of specificity. This site
   is full of them: `.ntc-fixtures__row { display: flex }` meant
   `element.hidden = true` from countdown.js had no visual effect at all, and
   a fixture that had already kicked off stayed on screen. Measured before
   this rule existed: six rows marked hidden, six still displayed.
   `!important` is the point rather than a shortcut — it has to outrank the
   component's own display. */
[hidden] {
  display: none !important;
}
