/* =============================================================================
   DCF Design System — base (DESIGN_SYSTEM.md §4.1)
   Everything here is scoped to .dcf-root so legacy pages are untouched until
   they opt in. Element defaults use :where() so their specificity stays at
   (0,1,0): any component class loaded later always wins over them.
   Focus and reduced-motion rules apply to any dcf- element.
   ========================================================================== */

/* ---- Focus: one ring for every interactive dcf element -------------------- */
[class^="dcf-"]:focus-visible,
[class*=" dcf-"]:focus-visible,
.dcf-root :focus-visible {
  outline: 3px solid var(--dcf-focus);
  outline-offset: 2px;
  border-radius: var(--dcf-radius-sm);
}
[class^="dcf-"]:focus:not(:focus-visible),
[class*=" dcf-"]:focus:not(:focus-visible) { outline: none; }

/* ---- hidden attribute always wins ---------------------------------------------
   Components set their own display (flex/grid), which would otherwise override the
   UA's [hidden]{display:none}. Toggle visibility with el.hidden, never inline styles. */
[class^="dcf-"][hidden], [class*=" dcf-"][hidden], .dcf-root [hidden] { display: none !important; }

/* ---- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  [class^="dcf-"], [class*=" dcf-"], [class^="dcf-"] *, [class*=" dcf-"] * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pages on the Website 2.0 shell no longer load the legacy theme stylesheet, which was what removed the browser's
   default 8px body margin: full-width sections stopped 8px short of both edges (found 2026-10-20). */
body.dcf-page-2-0 { margin: 0; }

/* ---- Root typography --------------------------------------------------------- */
.dcf-root {
  font-family: var(--dcf-font-body);
  font-size: var(--dcf-text-base);
  line-height: var(--dcf-leading-normal);
  font-weight: var(--dcf-weight-regular);
  color: var(--dcf-text);
  background-color: var(--dcf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
.dcf-root :where(*, *::before, *::after) { box-sizing: border-box; }
.dcf-root :where(img, video, svg) { max-width: 100%; height: auto; display: block; }
.dcf-root :where(button, input, select, textarea) { font: inherit; color: inherit; }
.dcf-root :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--dcf-font-display);
  font-weight: var(--dcf-weight-semibold);
  letter-spacing: var(--dcf-tracking-display);
  line-height: var(--dcf-leading-snug);
  color: var(--dcf-text);
  margin: 0 0 var(--dcf-space-3);
  text-wrap: balance;
}
.dcf-root :where(h1) { font-size: var(--dcf-text-5xl); line-height: var(--dcf-leading-tight); font-weight: var(--dcf-weight-bold); }
.dcf-root :where(h2) { font-size: var(--dcf-text-4xl); line-height: var(--dcf-leading-tight); font-weight: var(--dcf-weight-bold); }
.dcf-root :where(h3) { font-size: var(--dcf-text-3xl); }
.dcf-root :where(h4) { font-size: var(--dcf-text-2xl); }
.dcf-root :where(h5) { font-size: var(--dcf-text-xl); }
.dcf-root :where(h6) { font-size: var(--dcf-text-lg); }
.dcf-root :where(p) { margin: 0 0 var(--dcf-space-4); }
.dcf-root :where(a) { color: var(--dcf-primary); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.dcf-root :where(a:hover) { color: var(--dcf-primary-hover); }
.dcf-root :where(hr) { border: 0; border-top: var(--dcf-border-width) solid var(--dcf-border); margin: var(--dcf-space-8) 0; }
.dcf-root :where(small) { font-size: var(--dcf-text-sm); }
.dcf-root :where(code, kbd) { font-family: var(--dcf-font-mono); font-size: 0.9em; background: var(--dcf-surface-sunken); padding: 0.1em 0.35em; border-radius: var(--dcf-radius-sm); }
.dcf-root ::selection { background: var(--dcf-primary-tint-strong); }

/* ---- Visual heading sizes, independent of element ----------------------------- */
.dcf-display, .dcf-h1, .dcf-h2, .dcf-h3, .dcf-h4, .dcf-h5, .dcf-h6 {
  font-family: var(--dcf-font-display);
  letter-spacing: var(--dcf-tracking-display);
  line-height: var(--dcf-leading-snug);
  color: var(--dcf-text);
  margin: 0 0 var(--dcf-space-3);
  text-wrap: balance;
}
.dcf-display { font-size: clamp(3rem, 2.2rem + 4.5vw, 5rem); line-height: 1; font-weight: var(--dcf-weight-black); }
.dcf-h1 { font-size: var(--dcf-text-5xl); line-height: var(--dcf-leading-tight); font-weight: var(--dcf-weight-bold); }
.dcf-h2 { font-size: var(--dcf-text-4xl); line-height: var(--dcf-leading-tight); font-weight: var(--dcf-weight-bold); }
.dcf-h3 { font-size: var(--dcf-text-3xl); font-weight: var(--dcf-weight-semibold); }
.dcf-h4 { font-size: var(--dcf-text-2xl); font-weight: var(--dcf-weight-semibold); }
.dcf-h5 { font-size: var(--dcf-text-xl); font-weight: var(--dcf-weight-semibold); }
.dcf-h6 { font-size: var(--dcf-text-lg); font-weight: var(--dcf-weight-semibold); }

.dcf-eyebrow {
  display: inline-block;
  font-family: var(--dcf-font-body);
  font-size: var(--dcf-text-xs);
  font-weight: var(--dcf-weight-bold);
  letter-spacing: var(--dcf-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--dcf-primary);
  margin-bottom: var(--dcf-space-2);
}
.dcf-eyebrow--sport { color: var(--dcf-pillar-sport-text); }
.dcf-eyebrow--future { color: var(--dcf-pillar-future-text); }
.dcf-eyebrow--life { color: var(--dcf-pillar-life-text); }
.dcf-eyebrow--ai { color: var(--dcf-ai); }
.dcf-eyebrow--muted { color: var(--dcf-text-subtle); }

.dcf-lead { font-size: var(--dcf-text-lg); line-height: var(--dcf-leading-normal); color: var(--dcf-text-muted); max-width: 60ch; }
.dcf-text-muted { color: var(--dcf-text-muted); }
.dcf-text-subtle { color: var(--dcf-text-subtle); }
.dcf-text-sm { font-size: var(--dcf-text-sm); }
.dcf-text-xs { font-size: var(--dcf-text-xs); }
.dcf-text-center { text-align: center; }
.dcf-text-balance { text-wrap: balance; }

/* ---- Links ---------------------------------------------------------------- */
.dcf-link { color: var(--dcf-primary); text-decoration: none; font-weight: var(--dcf-weight-medium); transition: color var(--dcf-dur-fast) var(--dcf-ease); }
.dcf-link:hover { color: var(--dcf-primary-hover); text-decoration: underline; text-underline-offset: 0.15em; }
.dcf-link--quiet { color: inherit; }
.dcf-link--quiet:hover { color: var(--dcf-primary); }
.dcf-link--arrow::after { content: " \2192"; display: inline-block; transition: transform var(--dcf-dur-fast) var(--dcf-ease); }
.dcf-link--arrow:hover::after { transform: translateX(3px); }

/* ---- Prose (long-form content) ------------------------------------------- */
.dcf-prose { max-width: 65ch; font-size: var(--dcf-text-base); line-height: var(--dcf-leading-normal); color: var(--dcf-text); }
.dcf-prose > * + * { margin-top: var(--dcf-space-4); }
.dcf-prose :where(h2, h3, h4) { margin-top: var(--dcf-space-8); margin-bottom: var(--dcf-space-3); }
.dcf-prose :where(h2) { font-size: var(--dcf-text-3xl); }
.dcf-prose :where(h3) { font-size: var(--dcf-text-2xl); }
.dcf-prose :where(h4) { font-size: var(--dcf-text-xl); }
.dcf-prose :where(ul, ol) { padding-left: 1.4em; }
.dcf-prose :where(li + li) { margin-top: var(--dcf-space-1); }
.dcf-prose :where(li)::marker { color: var(--dcf-primary); }
.dcf-prose :where(blockquote) { margin: var(--dcf-space-6) 0; padding: var(--dcf-space-4) var(--dcf-space-6); border-left: 4px solid var(--dcf-primary); background: var(--dcf-primary-tint); border-radius: 0 var(--dcf-radius-md) var(--dcf-radius-md) 0; font-size: var(--dcf-text-lg); color: var(--dcf-text); }
.dcf-prose :where(img) { border-radius: var(--dcf-radius-lg); }
.dcf-prose :where(a) { color: var(--dcf-primary); }
.dcf-prose :where(table) { width: 100%; border-collapse: collapse; font-size: var(--dcf-text-sm); }
.dcf-prose :where(th, td) { text-align: left; padding: var(--dcf-space-3); border-bottom: var(--dcf-border-width) solid var(--dcf-border); }
.dcf-prose :where(th) { font-weight: var(--dcf-weight-semibold); color: var(--dcf-text-muted); }

/* ---- Skip link ------------------------------------------------------------- */
.dcf-skip-link { position: absolute; left: var(--dcf-space-4); top: -100px; z-index: calc(var(--dcf-z-toast) + 1); padding: var(--dcf-space-3) var(--dcf-space-4); background: var(--dcf-navy-900); color: var(--dcf-white); border-radius: var(--dcf-radius-md); font-weight: var(--dcf-weight-semibold); text-decoration: none; }
.dcf-skip-link:focus { top: var(--dcf-space-4); }

/* Links that stand on their own line are at least 24px tall to press (WCAG 2.5.8). */
.dcf-link { padding-block: .2em; }

/* ---- Screen-reader only ----------------------------------------------------- */
.dcf-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* In-page anchors (#upcoming, #consent, …) stop below the sticky navigation instead of underneath it. */
.dcf-root[id], .dcf-root [id] { scroll-margin-top: calc(var(--dcf-nav-h, 4.5rem) + var(--dcf-space-4)); }

/* A link inside a sentence is underlined: colour alone does not tell it apart from the words around it (WCAG 1.4.1). */
.dcf-root :where(p) :where(a:not(.dcf-btn)) { text-decoration: underline; text-underline-offset: 0.15em; }
