/* Parabolica Hub — portal styles.
   Light theme only. Blue scale from navy to sky; green/amber/red are reserved for status.
   Motion vocabulary (see "Motion" below): horizontal wipes and slides, like broadcast
   timing graphics. Everything animates transform/opacity/clip-path only.
   Every class is prefixed .hub-. */

:root {
  /* Graphite & cobalt: near-black graphite for dark surfaces, steel greys for chrome,
     one cobalt blue for interaction and positions. Status colours stay semantic. */
  --navy-950: #0B0D11;   /* names kept for compatibility: these are the graphite stops */
  --navy-900: #111419;
  --navy-800: #181C23;
  --navy-700: #262C36;
  --blue-700: #1A3FC0;
  --blue-600: #2350E6;   /* primary (cobalt) */
  --blue-500: #3D66F0;
  --blue-400: #6F8DF5;
  --blue-300: #A7B8F6;
  --blue-100: #E4E8EF;   /* cool grey tints for chips, tags and hovers */
  --blue-50:  #F1F3F6;
  --on-dark-2: #C5CBD5;  /* secondary text on graphite */
  --on-dark-3: #8C95A4;  /* labels on graphite */

  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --line: #E4E7EC;
  --line-2: #D0D5DD;
  --text: #0E1116;
  --muted: #4A5363;
  --faint: #7A8494;
  --ok: #0F7B45;    --ok-bg: #E4F4EB;
  --warn: #8A5B00;  --warn-bg: #FBF0D6;
  --bad: #B42318;   --bad-bg: #FBE7E5;
  --live: #E5302A;

  --r: 8px;
  --r-lg: 12px;
  --nav-h: 72px;
  --shadow: 0 1px 2px rgba(10, 26, 51, 0.06);
  --shadow-lift: 0 10px 28px -12px rgba(10, 26, 51, 0.28);
  /* Type system: Saira (wide, squared, motorsport) for display moments and big figures;
     IBM Plex for everything you read or scan. Italic Saira is reserved for brand lines. */
  --display: 'Saira', 'IBM Plex Sans Condensed', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* entrances: fast start, long settle */
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);     /* exits */
  --ease-std: cubic-bezier(0.2, 0, 0, 1);          /* state changes */
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);    /* the top bar coming back */
  --ease-tuck: cubic-bezier(0.45, 0, 0.55, 1);     /* the top bar leaving */
  --d-1: 120ms;   /* press, hover colour */
  --d-2: 220ms;   /* state changes */
  --d-3: 420ms;   /* entrances */
  --d-4: 640ms;   /* large surfaces */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body.hub-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Base resets sit in :where() so they never outrank a component class. */
:where(.hub-body) :where(h1, h2, h3, h4) { font-family: var(--cond); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0; color: var(--text); }
:where(.hub-body) :where(h1, h2) { font-family: var(--display); font-weight: 700; font-stretch: 104%; letter-spacing: -0.015em; text-wrap: balance; }
:where(.hub-body) p { margin: 0; }
:where(.hub-body) a { color: inherit; }
:where(.hub-body) img { max-width: 100%; display: block; }
:where(.hub-body) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.hub-body :focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.hub-body ::selection { background: var(--blue-100); }

.hub-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.hub-main { padding-top: var(--nav-h); min-height: 72vh; }
.hub-num { font-variant-numeric: tabular-nums; }
.hub-label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--blue-600); }
.hub-kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.hub-title { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.hub-sub { color: var(--muted); font-size: 1.05rem; max-width: 38rem; margin-top: 0.8rem; }
.hub-note { font-size: 0.84rem; color: var(--faint); margin-top: 0.7rem; }
.hub-prose { color: var(--muted); }
.hub-prose b { color: var(--text); font-weight: 600; }
.hub-prose p + p { margin-top: 0.7rem; }
.hub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-ico { width: 18px; height: 18px; flex: none; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.hub-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 0.94rem; text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--d-1), border-color var(--d-1), color var(--d-1), transform var(--d-2) var(--ease-out);
}
.hub-btn:active { transform: scale(0.97); transition-duration: 60ms; }
.hub-btn-primary { background: var(--blue-600); color: #fff; }
.hub-btn-primary:hover { background: var(--blue-700); }
.hub-btn-outline { background: var(--surface); color: var(--blue-700); border-color: var(--blue-300); }
.hub-btn-outline:hover { background: var(--blue-50); border-color: var(--blue-600); }
.hub-btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.hub-btn-ghost:hover { border-color: var(--faint); }
.hub-btn-sm { padding: 0.42rem 0.8rem; font-size: 0.86rem; }
.hub-btn-block { width: 100%; }
.hub-btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--d-2) var(--ease-out); }
.hub-btn:hover svg.hub-go { transform: translateX(3px); }
.hub-btn[disabled] { opacity: 0.55; pointer-events: none; }
.hub-btn.is-busy { color: transparent !important; pointer-events: none; }
.hub-btn.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 3px; margin: -1.5px 0 0 -18px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); background-size: 200% 100%; animation: hub-sweep 0.9s linear infinite; }
.hub-btn-outline.is-busy::after, .hub-btn-ghost.is-busy::after { background-image: linear-gradient(90deg, transparent, var(--blue-600), transparent); }
.hub-btn.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }
.hub-danger:hover { border-color: var(--bad); color: var(--bad); }
.hub-link { background: none; border: none; color: var(--blue-600); cursor: pointer; padding: 0; font-weight: 500; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--d-2) var(--ease-out), color var(--d-1); }
.hub-link:hover { color: var(--blue-700); background-size: 0% 1px; background-position: 100% 100%; }
.hub-more { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--blue-600); font-weight: 600; font-size: 0.9rem; text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.hub-more svg { width: 15px; height: 15px; transition: transform var(--d-2) var(--ease-out); }
.hub-more:hover { color: var(--blue-700); }
.hub-more:hover svg { transform: translateX(3px); }

/* ─── Top bar + loading line ──────────────────────────────────────────
   The bar's box never changes size or place (no layout shift): at the top it is open and
   transparent; once the page moves, a floating plate (::before) fades in behind the same
   content. Hiding and showing are pure transforms. */
.hub-nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; view-transition-name: hub-nav;
  transition: transform 620ms var(--ease-glide), opacity 420ms var(--ease-std);
}
.hub-nav::before {
  content: ''; position: absolute; inset: 7px max(0.4rem, calc((100% - 1200px) / 2 + 0.2rem)); border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 17, 22, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 34px -22px rgba(11, 13, 17, 0.45);
  opacity: 0; transform: translateY(-6px) scale(0.985);
  transition: opacity 380ms var(--ease-std), transform 620ms var(--ease-out), background-color 420ms var(--ease-std), border-color 420ms var(--ease-std);
}
.hub-nav.is-compact::before { opacity: 1; transform: none; }
/* Over dark bands the floating plate turns graphite. */
.hub-nav.is-compact.is-dark::before { background: rgba(17, 20, 25, 0.95); border-color: rgba(255, 255, 255, 0.09); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.7); }
.hub-nav-logo, .hub-nav-tag, .hub-lang, .hub-lang button, .hub-burger, .hub-burger span { transition: filter 420ms var(--ease-std), color 420ms var(--ease-std), background-color 420ms var(--ease-std), border-color 420ms var(--ease-std), box-shadow 420ms var(--ease-std), transform 460ms var(--ease-out); }
.hub-nav.is-compact.is-dark .hub-nav-logo { filter: brightness(0) invert(1); }
.hub-nav.is-compact.is-dark .hub-nav-tag { color: var(--blue-400); border-color: rgba(255, 255, 255, 0.2); }
.hub-nav.is-compact.is-dark .hub-nav-links a { color: var(--on-dark-3); }
.hub-nav.is-compact.is-dark .hub-nav-links a:hover, .hub-nav.is-compact.is-dark .hub-nav-links a.is-active { color: #fff; }
.hub-nav.is-compact.is-dark .hub-nav-ind { background: var(--blue-400); }
.hub-nav.is-compact.is-dark .hub-lang { background: rgba(255, 255, 255, 0.08); }
.hub-nav.is-compact.is-dark .hub-lang button { color: var(--on-dark-3); }
.hub-nav.is-compact.is-dark .hub-lang button.is-active { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
.hub-nav.is-compact.is-dark .hub-lang button:not(.is-active):hover { color: #fff; }
.hub-nav.is-compact.is-dark .hub-burger { background: transparent; border-color: rgba(255, 255, 255, 0.22); }
.hub-nav.is-compact.is-dark .hub-burger span { background: #fff; }
.hub-nav.is-hidden { transform: translate3d(0, calc(-100% - 6px), 0); opacity: 0; pointer-events: none; transition: transform 460ms var(--ease-tuck), opacity 360ms var(--ease-std) 80ms; }
.hub-nav-in { position: relative; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hub-nav-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; transform-origin: left center; transition: transform 620ms var(--ease-out); }
.hub-nav.is-compact .hub-nav-brand { transform: scale(0.93); }
.hub-nav-logo { height: 30px; width: auto; }
.hub-nav-tag { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1rem; line-height: 1; letter-spacing: 0.03em; color: var(--blue-600); border-left: 1px solid var(--line-2); padding: 0.2rem 0 0.2rem 0.8rem; }
.hub-nav-mid { position: relative; display: none; align-self: stretch; }
.hub-nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.2rem; height: 100%; align-items: center; }
.hub-nav-links a { position: relative; display: flex; align-items: center; height: 40px; padding: 0 0.85rem; color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color var(--d-2); }
.hub-nav-links a:hover, .hub-nav-links a.is-active { color: var(--text); }
.hub-roll { position: relative; display: block; height: 1.3em; line-height: 1.3; overflow: hidden; }
.hub-roll > span { display: block; transition: transform 460ms var(--ease-out); }
.hub-nav-links a:hover .hub-roll > span { transform: translateY(-100%); }
.hub-nav-ind { position: absolute; left: 0; bottom: 17px; width: 0; height: 2px; border-radius: 2px; background: var(--blue-600); opacity: 0; pointer-events: none; transition: transform 520ms var(--ease-out), width 520ms var(--ease-out), opacity var(--d-2); }
.hub-nav-ind.is-instant { transition: none; }
.hub-nav-right { display: flex; align-items: center; gap: 0.6rem; }
.hub-nav-cta { display: none; }
.hub-nav-cta svg { width: 15px; height: 15px; }
.hub-lang { display: flex; padding: 3px; border-radius: 9px; background: rgba(14, 17, 22, 0.05); }
.hub-lang button { padding: 0.3rem 0.5rem; border: none; border-radius: 6px; background: none; color: var(--faint); font: 600 0.74rem/1 var(--mono); letter-spacing: 0.06em; cursor: pointer; transition: color var(--d-2), background-color var(--d-2), box-shadow var(--d-2); }
.hub-lang button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(11, 13, 17, 0.14); }
.hub-lang button:not(.is-active):hover { color: var(--text); }
.hub-burger { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-content: center; gap: 6px; transition: border-color var(--d-2); }
.hub-burger:hover { border-color: var(--faint); }
.hub-burger span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform 460ms var(--ease-out); }
.hub-burger.is-open span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.hub-burger.is-open span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }
.hub-mobile {
  position: fixed; z-index: 99; top: calc(var(--nav-h) - 4px); left: 0.4rem; right: 0.4rem; display: grid; padding: 0.3rem 1.2rem 0.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 28px 50px -28px rgba(11, 13, 17, 0.45);
  visibility: hidden; opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0 round 14px);
  transition: clip-path 520ms var(--ease-out), transform 520ms var(--ease-out), opacity 220ms var(--ease-std), visibility 0s linear 520ms;
}
.hub-mobile.is-open { visibility: visible; opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); transition-delay: 0s; }
.hub-mobile a { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-stretch: 106%; font-size: 1.3rem; opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease-std), transform 520ms var(--ease-out); }
.hub-mobile.is-open a { opacity: 1; transform: none; transition-delay: calc(90ms + var(--i, 0) * 45ms); }
.hub-mobile a svg { width: 18px; height: 18px; color: var(--blue-600); }
.hub-mobile a.hub-mobile-cta { border-bottom: none; color: var(--blue-600); }
/* When the bar tucks away, a stuck tab bar slides up into its place. */
.hub-tabs { transition: transform 620ms var(--ease-glide); }
:root[data-nav="hidden"] .hub-tabs.is-stuck { transform: translate3d(0, calc(-1 * var(--nav-h)), 0); transition: transform 460ms var(--ease-tuck); }
.hub-progress { position: fixed; top: var(--nav-h); left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity var(--d-2); }
.hub-progress::before { content: ''; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--blue-500) 40%, var(--blue-300)); transform: translateX(-100%); }
.hub-progress.is-on { opacity: 1; }
.hub-progress.is-on::before { animation: hub-lap 1.1s var(--ease-std) infinite; }
.hub-demo { background: var(--warn-bg); color: var(--warn); font-size: 0.86rem; text-align: center; padding: 0.55rem 1rem; border-bottom: 1px solid #EBD9A8; }

/* ─── Tags, badges, tooltips, live ────────────────────────────────── */
.hub-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hub-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 500; padding: 0.14rem 0.5rem; border-radius: 4px; background: var(--blue-50); color: var(--navy-700); white-space: nowrap; }
.hub-tag-open { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.hub-tag-closed { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.hub-tag-soon { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.hub-tag-accent { background: var(--blue-100); color: var(--blue-700); font-weight: 600; }
.hub-tag-dark { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hub-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--live); }
.hub-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(229, 48, 42, 0.5); animation: hub-pulse 1.6s var(--ease-out) infinite; }
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: 240px;
  padding: 0.4rem 0.6rem; border-radius: 6px; background: var(--navy-900); color: #fff; font: 500 0.78rem/1.35 var(--sans); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity var(--d-1), transform var(--d-2) var(--ease-out);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 250ms; }

/* ─── Skeletons ───────────────────────────────────────────────────── */
.hub-skel { position: relative; overflow: hidden; background: #E9ECF1; border-radius: 6px; }
.hub-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%); transform: translateX(-100%); animation: hub-shimmer 1.4s var(--ease-std) infinite; }
.hub-skel-line { height: 0.9em; margin: 0.35em 0; }
.hub-skel-card { height: 300px; border-radius: var(--r-lg); }
.hub-skel-row { height: 44px; margin-bottom: 1px; border-radius: 0; }
.hub-skel-banner { background: var(--navy-800); }
.hub-skel-banner .hub-skel { background: rgba(255, 255, 255, 0.1); }
.hub-skel-banner .hub-skel::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.12) 50%, transparent 80%); }

/* ─── Empty states ────────────────────────────────────────────────── */
.hub-empty { display: grid; justify-items: center; gap: 0.5rem; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 2.4rem 1.2rem; text-align: center; color: var(--muted); font-size: 0.95rem; background: var(--surface); }
.hub-empty-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 0.3rem; }
.hub-empty-ico svg { width: 24px; height: 24px; }
.hub-empty b { display: block; color: var(--text); font-family: var(--cond); font-size: 1.3rem; font-weight: 600; }
.hub-empty p { max-width: 30rem; }
.hub-empty .hub-btn { margin-top: 0.5rem; }
.hub-empty-good .hub-empty-ico { background: var(--ok-bg); color: var(--ok); }

/* ─── Directory ───────────────────────────────────────────────────── */
/* Hero: the copy on the left, the Parabolica film bleeding off the right edge and up under
   the top bar. Its left side is cut on the same slant as the italic headline. */
.hub-dhead { position: relative; overflow: clip; background: var(--surface); border-bottom: 1px solid var(--line); margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + 1.4rem); }
.hub-hero { position: relative; }
/* Contour lines behind the headline: the same pattern as the tokens and teams pages. */
.hub-dhead { isolation: isolate; }
.hub-dhead-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hub-dhead-lines path { stroke: rgba(10, 26, 51, 0.17); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hub-anim .hub-dhead-lines { animation: hub-dhead-drift 36s ease-in-out infinite alternate; }
.hub-anim .hub-dhead-lines path { animation: hub-dhead-draw 2200ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 140ms + 200ms); }
@keyframes hub-dhead-drift { from { transform: translate3d(-1.5%, 0, 0) scale(1.04); } to { transform: translate3d(1.5%, -1.2%, 0) scale(1.04); } }
@keyframes hub-dhead-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hub-dhead-lines, .hub-dhead-lines path { animation: none; } }
.hub-hero-copy { position: relative; z-index: 2; }
.hub-dhead h1 { font-style: italic; font-weight: 800; font-stretch: 116%; font-size: clamp(2.3rem, 9.2vw, 4.15rem); line-height: 0.98; letter-spacing: -0.025em; }
.hub-dhead h1 em { display: block; font-style: italic; color: var(--blue-600); }
/* Italic letters lean out of their word masks; give them room without changing spacing. */
.hub-dhead h1 .hub-w, .hub-foot-pitch h2 .hub-w { padding-right: 0.12em; margin-right: -0.12em; }
.hub-dhead .hub-sub { max-width: 33rem; margin-top: 1.1rem; }
.hub-dsearch { position: relative; margin-top: 1.6rem; max-width: 540px; }
.hub-dsearch svg { position: absolute; left: 0.95rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; transition: color var(--d-2); }
.hub-dsearch:focus-within svg { color: var(--blue-600); }
.hub-dsearch .hub-search { padding: 0.9rem 1rem 0.9rem 2.7rem; font-size: 1rem; box-shadow: 0 10px 26px -20px rgba(11, 13, 17, 0.4); }

.hub-hero-media { position: relative; margin: 1.6rem -1rem 0; aspect-ratio: 16 / 10; }
.hub-hero-clip { position: absolute; inset: 0; overflow: hidden; background: #E7E9EC; }
.hub-hero-frame { position: absolute; inset: -9% 0; background: #E7E9EC center 42% / cover no-repeat; will-change: transform; }
.hub-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 0; transition: opacity 900ms var(--ease-std); }
.hub-hero-media.is-playing .hub-hero-video, .hub-hero-media.is-paused .hub-hero-video { opacity: 1; }
.hub-hero-clip::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(11, 13, 17, 0.32), rgba(11, 13, 17, 0) 34%); }
.hub-hero-edge { display: none; }
/* The film's arrival waits for the intro curtain, then wipes in from the right. */
@keyframes hub-hero-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes hub-hero-in-cut { from { clip-path: polygon(calc(100% + var(--cut)) 0, calc(100% + var(--cut)) 0, 100% 100%, 100% 100%); } to { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes hub-hero-zoom { from { scale: 1.12; } to { scale: 1; } }
@keyframes hub-edge-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
:root.hub-anim .hub-hero-clip { animation: hub-hero-in 1.3s var(--ease-out) 0.15s both; }
:root.hub-anim .hub-hero-frame { animation: hub-hero-zoom 2.4s var(--ease-out) 0.15s both; }
body:has(.hub-intro:not(.is-out)) .hub-hero-clip, body:has(.hub-intro:not(.is-out)) .hub-hero-frame, body:has(.hub-intro:not(.is-out)) .hub-hero-edge { animation-play-state: paused; }

.hub-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1.8rem; border-top: 1px solid var(--line); background: var(--surface); }
.hub-metric { position: relative; padding: 1.15rem 1rem 1.25rem 0; }
.hub-metric:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.hub-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
.hub-metric b { display: block; font-family: var(--display); font-weight: 600; font-stretch: 110%; font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.hub-metric > span { display: block; margin-top: 0.55rem; font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
/* Sector line: sweeps across the cell while the number counts, then leaves a short marker. */
.hub-metric::before, .hub-metric::after { content: ''; position: absolute; top: -1px; left: 0; height: 2px; background: var(--blue-600); transform-origin: left; pointer-events: none; }
.hub-metric::before { right: 0; transform: scaleX(0); opacity: 0; }
.hub-metric::after { width: 22px; transform: scaleX(0); }
.hub-metric.is-on::before { animation: hub-sector var(--count-dur, 1200ms) cubic-bezier(0.3, 0.6, 0.2, 1) var(--count-delay, 0ms) both; }
.hub-metric.is-on::after { transform: scaleX(1); transition: transform 400ms var(--ease-out) calc(var(--count-delay, 0ms) + var(--count-dur, 1200ms) - 200ms); }
@keyframes hub-sector { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.hub-section { padding: 2.2rem 0; }
.hub-section, .hub-panel { scroll-margin-top: calc(var(--nav-h) + 56px); }
.hub-shead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.hub-shead h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); }

/* Upcoming races strip */
.hub-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.hub-race { scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; position: relative; overflow: hidden; transition: border-color var(--d-1), box-shadow var(--d-2); }
.hub-race::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform var(--d-3) var(--ease-out); }
.hub-race:hover { border-color: var(--blue-300); box-shadow: var(--shadow-lift); }
.hub-race:hover::after { transform: scaleX(1); }
.hub-race-meta { min-width: 0; }
.hub-race-meta b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-race-meta span { display: block; font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-race-meta .hub-count-down { color: var(--blue-700); font-weight: 600; }
.hub-date { width: 52px; text-align: center; border-radius: var(--r); background: var(--navy-800); color: #fff; padding: 0.4rem 0 0.45rem; flex: none; }
.hub-date b { display: block; font-family: var(--cond); font-size: 1.5rem; line-height: 1; font-weight: 600; }
.hub-date span { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); margin-top: 0.15rem; }
.hub-date.is-today { background: var(--live); }
.hub-date.is-today span { color: #fff; }
.hub-search, .hub-select, .hub-field input, .hub-field textarea, .hub-field select, .hub-cell {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text);
  padding: 0.62rem 0.8rem; font-size: 0.95rem; transition: border-color var(--d-1), box-shadow var(--d-2);
}
.hub-search { width: 100%; }
.hub-search::placeholder, .hub-field input::placeholder, .hub-field textarea::placeholder { color: var(--faint); }
.hub-search:focus, .hub-select:focus, .hub-cell:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.hub-select { max-width: 100%; cursor: pointer; }
.hub-chip { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.8rem; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 0.88rem; font-weight: 500; transition: background-color var(--d-1), color var(--d-1), border-color var(--d-1), transform var(--d-2) var(--ease-out); }
.hub-chip:hover { color: var(--text); border-color: var(--faint); }
.hub-chip:active { transform: scale(0.96); }
.hub-chip.is-active { background: var(--blue-50); border-color: var(--blue-600); color: var(--blue-700); font-weight: 600; }
.hub-chip .hub-check-ico { width: 14px; height: 14px; margin-left: -0.15rem; transform: scale(0); width: 0; transition: transform var(--d-2) var(--ease-out), width var(--d-2) var(--ease-out); }
.hub-chip.is-active .hub-check-ico { transform: scale(1); width: 14px; }
.hub-count { font-size: 0.86rem; color: var(--faint); }

/* League cards */
.hub-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hub-card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: border-color var(--d-2), box-shadow var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-out); }
.hub-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.hub-card-media {
  position: relative; height: 156px; display: flex; align-items: center; justify-content: center; padding: 1rem; background-color: var(--navy-800);
  background-image: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px), linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.hub-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.1) 50%, transparent 65%); transform: translateX(-100%); transition: transform var(--d-4) var(--ease-out); }
.hub-card:hover .hub-card-media::after { transform: translateX(100%); }
.hub-card-media img { height: 104px; width: 74%; object-fit: contain; transition: transform var(--d-3) var(--ease-out); }
.hub-card:hover .hub-card-media img { transform: scale(1.04); }
.hub-card-badge { position: absolute; top: 0.7rem; left: 0.7rem; }
.hub-card-body { padding: 1rem 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.hub-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.45rem; }
.hub-card p { color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0.3rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.hub-card-stats div + div { border-left: 1px solid var(--line); padding-left: 0.7rem; }
.hub-card-stats b { display: block; font-family: var(--cond); font-size: 1.3rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hub-card-stats div > span { font-size: 0.74rem; color: var(--faint); }
.hub-card-next { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding: 0.7rem 1.1rem; background: var(--surface-2); border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.hub-card-next svg { width: 16px; height: 16px; color: var(--blue-600); flex: none; }
.hub-card-next b { color: var(--text); font-weight: 600; }
.hub-card-next .hub-go { margin-left: auto; color: var(--blue-600); transition: transform var(--d-2) var(--ease-out); }
.hub-card:hover .hub-card-next .hub-go { transform: translateX(4px); }

/* Leagues band: the "BG Ligas" artwork, pulled toward cobalt and kept well under the cards. */
.hub-leagues { position: relative; isolation: isolate; overflow: clip; background: var(--navy-950); color: var(--on-dark-2); padding: 3.2rem 0 3.6rem; }
.hub-leagues-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hub-leagues-bg i { position: absolute; inset: -12% 0; background: url(/portal/assets/media/bg-ligas-sm.webp) 64% 50% / cover no-repeat; opacity: 0.85; will-change: transform; }
@media (min-width: 1300px) { .hub-leagues-bg i { background-image: url(/portal/assets/media/bg-ligas.webp); } }
.hub-leagues-bg::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--navy-950) 0%, rgba(11, 13, 17, 0.5) 16%, rgba(11, 13, 17, 0.32) 48%, rgba(11, 13, 17, 0.78) 88%, var(--navy-950) 100%),
    linear-gradient(90deg, rgba(11, 13, 17, 0.55) 0%, rgba(11, 13, 17, 0.05) 55%, rgba(11, 13, 17, 0.3) 100%); }
.hub-leagues .hub-shead h2 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
.hub-leagues .hub-count { color: var(--on-dark-3); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hub-leagues .hub-chip { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.16); color: var(--on-dark-2); }
.hub-leagues .hub-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.hub-leagues .hub-chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.hub-leagues .hub-select { background-color: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.hub-leagues .hub-select option { color: var(--text); background: #fff; }
.hub-leagues .hub-card { color: var(--text); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.85); }
.hub-leagues .hub-card:hover { border-color: var(--blue-400); box-shadow: 0 0 0 1px var(--blue-400), 0 30px 56px -28px rgba(0, 0, 0, 0.9); }
.hub-leagues .hub-empty { border-color: rgba(255, 255, 255, 0.2); }

/* Organizer call: the box wipes in, the list ticks itself off and the three steps light up
   in order like start lights (in cobalt). Depth comes from a slower striped layer behind. */
.hub-cta-core { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 2rem; padding: 2rem 1.4rem; border-radius: 16px; background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, 0.06); transition: border-color 700ms var(--ease-std), box-shadow 700ms var(--ease-std), clip-path 1.1s var(--ease-out); }
.hub-cta-core:hover { border-color: rgba(111, 141, 245, 0.32); box-shadow: 0 34px 70px -40px rgba(35, 80, 230, 0.6); }
.hub-cta-core > :not(.hub-cta-bg) { position: relative; z-index: 1; }
.hub-cta-bg { position: absolute; inset: -70px 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(35, 80, 230, 0.3), transparent 60%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px); will-change: transform; }
.hub-cta-core[data-spot]::before { z-index: 0; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 141, 245, 0.14), transparent 55%); }
.hub-cta-core::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(167, 184, 246, 0.85) 25%, rgba(167, 184, 246, 0.15) 75%, transparent); transform-origin: left; }
.hub-cta h2 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.04; max-width: 20ch; }
.hub-cta-list { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; font-size: 0.97rem; color: var(--on-dark-2); }
.hub-cta-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.hub-tick { width: 20px; height: 20px; flex: none; margin-top: 0.12rem; }
.hub-tick rect { fill: rgba(35, 80, 230, 0.2); stroke: rgba(111, 141, 245, 0.5); stroke-width: 1; }
.hub-tick path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hub-lights { position: relative; list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.hub-lights::before, .hub-lights::after { content: ''; position: absolute; left: 7px; right: 7px; top: 6px; height: 1px; background: rgba(255, 255, 255, 0.14); }
.hub-lights::after { background: var(--blue-400); transform-origin: left; }
.hub-lights li { position: relative; display: grid; align-content: start; gap: 0.45rem; }
.hub-lights i { width: 13px; height: 13px; border-radius: 50%; background: var(--navy-700); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 4px var(--navy-900); }
.hub-lights b { font: 600 0.7rem/1 var(--mono); letter-spacing: 0.1em; color: var(--on-dark-3); margin-top: 0.3rem; }
.hub-lights span { font-size: 0.88rem; line-height: 1.35; color: #fff; }
.hub-cta .hub-lights i { background: var(--blue-500); border-color: var(--blue-300); box-shadow: 0 0 0 4px var(--navy-900), 0 0 12px 1px rgba(61, 102, 240, 0.5); }
.hub-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hub-cta .hub-btn-primary { background: #fff; color: var(--navy-900); }
.hub-cta .hub-btn-primary:hover { background: var(--blue-100); }
.hub-cta .hub-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.36); }
.hub-cta .hub-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
/* Choreography (only when motion is on): states before .is-in, transitions into it. */
:root.hub-anim .hub-cta .hub-cta-core { clip-path: inset(0 100% 0 0 round 16px); }
:root.hub-anim .hub-cta.is-in .hub-cta-core { clip-path: inset(0 0 0 0 round 16px); }
:root.hub-anim .hub-cta .hub-cta-core::after { transform: scaleX(0); transition: transform 1.5s var(--ease-out) 0.35s; }
:root.hub-anim .hub-cta.is-in .hub-cta-core::after { transform: scaleX(1); }
:root.hub-anim .hub-cta-list li { opacity: 0; transform: translateX(-14px); transition: opacity 500ms var(--ease-std), transform 800ms var(--ease-out); transition-delay: calc(480ms + var(--i) * 90ms); }
:root.hub-anim .hub-cta.is-in .hub-cta-list li { opacity: 1; transform: none; }
:root.hub-anim .hub-cta .hub-tick path { stroke-dashoffset: 1; transition: stroke-dashoffset 620ms var(--ease-out) calc(700ms + var(--i, 0) * 90ms); }
:root.hub-anim .hub-cta.is-in .hub-tick path { stroke-dashoffset: 0; }
:root.hub-anim .hub-cta .hub-lights::after { transform: scaleX(0); transition: transform 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.8s; }
:root.hub-anim .hub-cta.is-in .hub-lights::after { transform: scaleX(1); }
:root.hub-anim .hub-cta .hub-lights i { background: var(--navy-700); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 4px var(--navy-900); transition: background-color 260ms, border-color 260ms, box-shadow 500ms; transition-delay: calc(820ms + var(--i) * 300ms); }
:root.hub-anim .hub-cta.is-in .hub-lights i { background: var(--blue-500); border-color: var(--blue-300); box-shadow: 0 0 0 4px var(--navy-900), 0 0 12px 1px rgba(61, 102, 240, 0.5); }
:root.hub-anim .hub-cta .hub-lights b, :root.hub-anim .hub-cta .hub-lights span { opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease-std), transform 600ms var(--ease-out); transition-delay: calc(900ms + var(--i) * 300ms); }
:root.hub-anim .hub-cta.is-in .hub-lights b, :root.hub-anim .hub-cta.is-in .hub-lights span { opacity: 1; transform: none; }
:root.hub-anim .hub-cta .hub-cta-actions { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-std) 1.5s, transform 800ms var(--ease-out) 1.5s; }
:root.hub-anim .hub-cta.is-in .hub-cta-actions { opacity: 1; transform: none; }
.hub-label-line { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hub-label-line::before { content: ''; width: 22px; height: 1.5px; background: var(--blue-600); }

/* ─── Behind the portal (slider) ──────────────────────────────────── */
.hub-crew { overflow: clip; background: var(--surface); border-top: 1px solid var(--line); padding: 3.6rem 0 3rem; }
.hub-crew-head { display: grid; gap: 1.2rem; margin-bottom: 2.2rem; }
.hub-crew-head h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.02; max-width: 15ch; }
.hub-crew-aside p { color: var(--muted); max-width: 30rem; }
.hub-crew-aside .hub-more { margin-top: 0.9rem; }
:root.hub-anim .hub-crew-head .hub-crew-aside { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-std) 0.3s, transform 900ms var(--ease-out) 0.3s; }
:root.hub-anim .hub-crew-head.is-in .hub-crew-aside { opacity: 1; transform: none; }
.hub-slider { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.hub-slider:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-600); }
.hub-slider.is-dragging { cursor: grabbing; }
.hub-slider-track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0.4rem max(1rem, calc((100% - 1200px) / 2 + 1.5rem)); list-style: none; will-change: transform; }
.hub-slide { position: relative; flex: none; height: 360px; overflow: hidden; border-radius: 14px; list-style: none; transition: transform 700ms var(--ease-out), box-shadow 700ms var(--ease-out); }
.hub-slide::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease-out); }
.hub-slide:hover::before { transform: scaleX(1); }
.hub-slider:not(.is-dragging) .hub-slide:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -30px rgba(11, 13, 17, 0.6); }
.hub-slide h3 { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 1.32rem; line-height: 1.1; letter-spacing: -0.01em; }
.hub-slide p { margin-top: 0.45rem; font-size: 0.9rem; line-height: 1.45; max-width: 32ch; }
.hub-slide-n { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; }
.hub-slide-photo.is-tall { width: 268px; }
.hub-slide-media { position: absolute; inset: 0; background: var(--navy-800); }
.hub-slide-media img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; transition: scale 1.1s var(--ease-out); }
.hub-slide-photo:hover .hub-slide-media img { scale: 1.2; }
.hub-slide-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 13, 17, 0.35) 0%, rgba(11, 13, 17, 0) 26%, rgba(11, 13, 17, 0) 42%, rgba(11, 13, 17, 0.86) 100%); }
.hub-slide-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem 1.25rem 1.35rem; color: #fff; }
.hub-slide-body .hub-slide-n { position: absolute; top: 1.1rem; left: 1.25rem; color: rgba(255, 255, 255, 0.82); }
.hub-slide-body h3 { color: #fff; }
.hub-slide-body p { color: rgba(255, 255, 255, 0.8); }
.hub-slide-stat, .hub-slide-board, .hub-slide-clients { display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; }
.hub-slide-stat { width: 260px; background: var(--navy-900) repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px); color: #fff; }
.hub-slide-stat .hub-slide-n { color: var(--on-dark-3); }
.hub-slide-stat h3 { color: #fff; }
.hub-slide-stat p { color: var(--on-dark-2); }
.hub-slide-num { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; font-size: 4.4rem; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.hub-slide-num .hub-odo { padding-right: 0.07em; margin-right: -0.07em; }
.hub-slide-stat::after { content: ''; position: absolute; left: 1.25rem; right: 1.25rem; top: 50%; height: 1px; background: var(--blue-400); transform: scaleX(0); transform-origin: left; }
.hub-slide-stat.is-on::after { transform: scaleX(1); transition: transform var(--count-dur, 1.2s) var(--ease-out) var(--count-delay, 0ms); }
.hub-slide-board { width: 300px; background: var(--blue-50); border: 1px solid var(--line); }
.hub-slide-board .hub-slide-n { color: var(--faint); }
.hub-slide-board p { color: var(--muted); }
.hub-board { display: grid; gap: 7px; }
.hub-board span { display: grid; grid-template-columns: 1.8rem 1fr; align-items: center; gap: 0.5rem; }
.hub-board b { font: 600 0.72rem/1 var(--mono); color: var(--navy-700); }
.hub-board i { display: block; width: var(--w); height: 20px; border-radius: 4px; background: linear-gradient(90deg, var(--navy-800), var(--navy-700)); transform-origin: left; transition: transform 1s var(--ease-out) calc(var(--r) * 90ms + 150ms); }
.hub-board span:first-child i { background: var(--blue-600); }
:root.hub-anim .hub-slide-board:not(.is-in) .hub-board i { transform: scaleX(0); }
.hub-slide-clients { width: 330px; background: var(--blue-600); color: #fff; justify-content: flex-start; }
.hub-slide-clients .hub-slide-n, .hub-slide-label { color: rgba(255, 255, 255, 0.78); }
.hub-slide-label { display: block; margin-top: 1.4rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.hub-slide-clients h3 { color: #fff; margin-top: 0.5rem; }
.hub-slide-clients ul { margin: auto 0 0; padding: 0; list-style: none; }
.hub-slide-clients li { padding: 0.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.24); font-size: 0.88rem; font-weight: 500; }
.hub-slider-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: var(--faint); }
.hub-slider-count b { color: var(--text); font-weight: 600; }

/* ─── League banner ───────────────────────────────────────────────── */
.hub-banner {
  position: relative; overflow: hidden; color: #fff; padding: 1.1rem 0 0;
  background-color: var(--navy-900);
  background-image:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(115deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  background-size: auto, 64px 64px, auto;
}
.hub-banner::after { /* speed line that crosses once on arrival */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-400) 45%, var(--blue-300) 55%, transparent);
  opacity: 0;
}
/* Arrival-only motion: html[data-motion="enter"] is set briefly when a view is entered,
   so re-renders caused by small interactions never replay these. */
:root[data-motion="enter"] .hub-banner::after { animation: hub-streak 1.4s var(--ease-out) 0.15s both; }
:root[data-motion="enter"] .hub-progress-laps .hub-bar i { animation: hub-grow 1.1s var(--ease-out) 0.2s both; }
:root[data-motion="enter"] .hub-timeline-fill { animation: hub-grow-y 1.2s var(--ease-out) 0.1s both; }
.hub-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.84rem; color: var(--on-dark-3); margin-bottom: 1.1rem; }
.hub-crumbs a { color: var(--on-dark-3); text-decoration: none; transition: color var(--d-1); }
.hub-crumbs a:hover { color: #fff; }
.hub-crumbs span[aria-current] { color: #fff; }
.hub-crumbs i { font-style: normal; opacity: 0.5; }
.hub-banner-row { display: flex; flex-direction: column; gap: 1rem; }
.hub-banner-logo { width: 88px; height: 88px; flex: none; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); padding: 0.75rem; display: grid; place-items: center; }
/* The box gives the image a definite cell: with the plain auto row, "max-height: 100%" had nothing to
   resolve against, so in the small phone box the image kept its 88px attribute height and hung out below. */
.hub-banner-logo { grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; }
.hub-banner-logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.hub-banner h1 { color: #fff; font-size: clamp(2.1rem, 6.5vw, 3.4rem); line-height: 1; margin: 0.5rem 0 0.4rem; letter-spacing: -0.015em; }
.hub-banner p { color: var(--on-dark-2); max-width: 46rem; }
.hub-banner .hub-tag { background: rgba(255, 255, 255, 0.1); color: #E7EAF0; }
.hub-banner .hub-tag-open { background: rgba(43, 179, 106, 0.18); color: #7BE2A6; }
.hub-banner .hub-tag-soon { background: rgba(240, 180, 41, 0.16); color: #F5CF6E; }
.hub-banner .hub-tag-closed { background: rgba(229, 48, 42, 0.18); color: #FF9A94; }
.hub-banner-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.hub-banner .hub-btn-primary { background: #fff; color: var(--navy-800); }
.hub-banner .hub-btn-primary:hover { background: var(--blue-100); }
.hub-banner .hub-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hub-banner .hub-btn-ghost:hover { border-color: #fff; }
.hub-banner .hub-live { color: #FF7A72; }
.hub-bstats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hub-bstat { padding: 0.85rem 0.8rem 0.95rem 0; min-width: 0; }
.hub-bstat:nth-child(even) { padding-left: 0.8rem; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hub-bstat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hub-bstat b { display: block; font-family: var(--cond); font-weight: 600; font-size: 1.6rem; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-bstat > span { display: block; font-size: 0.78rem; color: var(--on-dark-3); margin-top: 0.2rem; }
.hub-season { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: var(--on-dark-3); }
.hub-season select { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 0.3rem 0.5rem; font-size: 0.86rem; }
.hub-season select option { color: var(--text); }

/* ─── Tabs with a sliding indicator ───────────────────────────────── */
.hub-tabs { position: sticky; top: var(--nav-h); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.hub-tabs-inner { position: relative; display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; }
.hub-tabs-inner::-webkit-scrollbar { display: none; }
.hub-tab { flex: none; padding: 0.9rem 0; border: none; background: none; cursor: pointer; color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color var(--d-1); text-decoration: none; }
.hub-tab:hover { color: var(--text); }
.hub-tab.is-active { color: var(--blue-700); font-weight: 600; }
.hub-tab-ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 1px; background: var(--blue-600); transform-origin: left; }
/* Tabs without JS positioning still show which one is active */
.hub-tabs-inner:not(.is-ready) .hub-tab.is-active { box-shadow: inset 0 -2px 0 var(--blue-600); }
.hub-tabs-inner:not(.is-ready) .hub-tab-ind { display: none; }

.hub-panel { padding-top: 1.6rem; padding-bottom: 3.4rem; }
.hub-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; margin-bottom: 1rem; }
.hub-panel-head h2 { font-size: clamp(1.45rem, 3.4vw, 1.85rem); }
.hub-seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.hub-seg button { border: none; background: transparent; color: var(--muted); padding: 0.45rem 0.9rem; cursor: pointer; font-size: 0.88rem; font-weight: 500; transition: background-color var(--d-2), color var(--d-1); }
.hub-seg button + button { border-left: 1px solid var(--line-2); }
.hub-seg button.is-active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.hub-seg button:hover:not(.is-active) { color: var(--text); }
.hub-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; box-shadow: var(--shadow); }
.hub-box + .hub-box { margin-top: 1rem; }
.hub-box h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.hub-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.9rem; }
.hub-box-head h3 { margin: 0; }
.hub-h4 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem !important; }
.hub-cols { display: grid; gap: 1rem; }

/* Overview */
.hub-ov { display: grid; gap: 1rem; }
.hub-next { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy-800); color: #fff; padding: 1.3rem; background-image: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px); }
.hub-next .hub-kicker { color: var(--on-dark-3); }
.hub-next h3 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0.35rem 0 0.2rem; }
.hub-next p { color: var(--on-dark-2); }
.hub-next-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.hub-cd { display: flex; gap: 0.5rem; }
.hub-cd div { min-width: 64px; padding: 0.5rem 0.6rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.hub-cd b { display: block; font-family: var(--cond); font-size: 1.8rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.hub-cd div > span { font-size: 0.7rem; color: var(--on-dark-3); letter-spacing: 0.06em; text-transform: uppercase; }
.hub-next .hub-more { color: #fff; }
.hub-progress-laps { margin-top: 1.2rem; }
.hub-progress-laps .hub-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hub-progress-laps .hub-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); transform-origin: left; }
.hub-progress-laps small { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.78rem; color: var(--on-dark-3); }
.hub-leaders { list-style: none; margin: 0; padding: 0; }
.hub-leaders li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.hub-leaders li:first-child { border-top: none; }
.hub-leaders .hub-gap { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
.hub-kv { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; margin: 0; font-size: 0.92rem; }
.hub-kv dt { color: var(--faint); }
.hub-kv dd { margin: 0; font-weight: 500; text-align: right; }
.hub-clinks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hub-clink { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.75rem; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: border-color var(--d-1), color var(--d-1), background-color var(--d-1); }
.hub-clink svg { width: 16px; height: 16px; color: var(--blue-600); }
.hub-clink:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }

/* Podium */
.hub-podium { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
.hub-pod { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.hub-pod-p { font-family: var(--cond); font-weight: 600; font-size: 1.6rem; line-height: 1; width: 2.2rem; color: var(--blue-700); }
.hub-pod-1 { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.hub-pod-1 .hub-pod-p { color: var(--blue-400); }
.hub-pod-1 .hub-driver span, .hub-pod-1 .hub-pod-t { color: var(--on-dark-3); }
.hub-pod-1 .hub-dlink { color: #fff; }
.hub-pod-t { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); text-align: right; }

/* ─── Tables (timing-tower style) ─────────────────────────────────── */
.hub-tablewrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.hub-scroll { overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hub-table th { text-align: left; padding: 0.6rem 0.75rem; color: var(--faint); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.hub-table th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; transition: color var(--d-1); }
.hub-table th button:hover, .hub-table th[aria-sort] button { color: var(--blue-700); }
.hub-table th[aria-sort] button::after { content: '↓'; display: inline-block; transition: transform var(--d-2) var(--ease-out); }
.hub-table th[aria-sort="ascending"] button::after { transform: rotate(180deg); }
.hub-table td { padding: 0.62rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hub-table tbody tr { transition: background-color var(--d-1); }
.hub-table tbody tr:last-child td { border-bottom: none; }
.hub-table tbody tr:hover td { background: var(--surface-2); }
.hub-table tbody tr td:first-child { box-shadow: inset 0 0 0 transparent; transition: box-shadow var(--d-2) var(--ease-out); }
.hub-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--blue-600); }
.hub-table .num { text-align: right; font-family: var(--mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.hub-table .ctr { text-align: center; }
.hub-pos { display: inline-flex; min-width: 30px; height: 30px; padding: 0 0.3rem; align-items: center; justify-content: center; border-radius: 6px; font-family: var(--cond); font-size: 1.05rem; font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.hub-pos-1 { background: var(--blue-600); color: #fff; }
.hub-pos-2 { background: var(--blue-100); color: var(--blue-700); }
.hub-pos-3 { background: var(--blue-50); color: var(--blue-700); }
.hub-posc { display: flex; align-items: center; gap: 0.35rem; }
.hub-delta { display: inline-flex; align-items: center; gap: 1px; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; min-width: 26px; }
.hub-delta-up { color: var(--ok); }
.hub-delta-down { color: var(--bad); }
.hub-delta-eq { color: var(--line-2); }
.hub-driver { display: flex; flex-direction: column; line-height: 1.3; min-width: 140px; }
.hub-driver b { display: flex; align-items: center; min-width: 0; font-weight: 600; }
.hub-driver .hub-dlink { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hub-driver span { font-size: 0.8rem; color: var(--faint); }
.hub-dnum { display: inline-block; min-width: 2.1em; margin-right: 0.35rem; padding: 0 0.25rem; border-radius: 4px; background: var(--navy-800); color: #fff; font-family: var(--cond); font-size: 0.8rem; font-weight: 600; text-align: center; vertical-align: 1px; }
.hub-dlink { color: inherit; text-decoration: none; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; text-align: left; background-image: linear-gradient(var(--blue-600), var(--blue-600)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--d-2) var(--ease-out), color var(--d-1); }
.hub-dlink:hover { color: var(--blue-700); background-size: 100% 1px; }
.hub-pts { font-family: var(--cond); font-weight: 600; font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.hub-gapc { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
.hub-formbars { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.hub-formbars i { display: block; width: 5px; border-radius: 1px; background: var(--blue-300); min-height: 2px; }
.hub-formbars i.is-best { background: var(--blue-600); }
.hub-row-toggle { cursor: pointer; }
.hub-caret { all: unset; cursor: pointer; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--faint); border-radius: 6px; transition: transform var(--d-2) var(--ease-out), color var(--d-1); }
.hub-caret[aria-expanded="true"] { transform: rotate(90deg); color: var(--blue-600); }
.hub-detail td { background: var(--surface-2); padding: 0.9rem; }
.hub-detail-in { animation: hub-wipe var(--d-3) var(--ease-out) both; }
.hub-bdchart { display: flex; align-items: flex-end; gap: 0.5rem; height: 92px; padding-top: 0.6rem; overflow-x: auto; }
.hub-bdcol { flex: 1; min-width: 38px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.25rem; height: 100%; }
.hub-bdcol i { display: block; width: 100%; max-width: 34px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); transform-origin: bottom; }
.hub-detail-in .hub-bdcol i { animation: hub-rise-bar var(--d-4) var(--ease-out) both; }
.hub-bdcol b { font-family: var(--mono); font-size: 0.74rem; color: var(--text); }
.hub-bdcol span { font-size: 0.7rem; color: var(--faint); }
.hub-hide-sm { display: none; }
.hub-pen-flag { display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; color: var(--bad); background: var(--bad-bg); vertical-align: middle; cursor: help; }
.hub-fl { display: inline-block; margin-left: 0.35rem; padding: 0 0.3rem; border-radius: 4px; font-size: 0.68rem; font-weight: 700; color: var(--blue-700); background: var(--blue-100); vertical-align: middle; cursor: help; }
.hub-status { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; color: var(--bad); }

/* Round selector */
.hub-rounds { position: relative; display: flex; gap: 0.5rem; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 1rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hub-rbtn { scroll-snap-align: start; flex: none; display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.6rem; align-items: center; min-width: 168px; text-align: left; padding: 0.55rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color var(--d-1), background-color var(--d-2), transform var(--d-2) var(--ease-out); }
.hub-rbtn:hover { border-color: var(--faint); }
.hub-rbtn:active { transform: scale(0.98); }
.hub-rbtn b { grid-row: span 2; font-family: var(--cond); font-size: 1.35rem; font-weight: 600; color: var(--blue-600); line-height: 1; }
.hub-rbtn span { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.hub-rbtn small { font-size: 0.76rem; color: var(--faint); }
.hub-rbtn.is-active { border-color: var(--blue-600); background: var(--blue-50); box-shadow: inset 0 -2px 0 var(--blue-600); }

/* Calendar timeline */
.hub-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.hub-timeline::before { content: ''; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.hub-timeline-fill { position: absolute; left: 25px; top: 10px; width: 2px; background: var(--blue-600); transform-origin: top; }
.hub-ev { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 0.55rem 0; }
.hub-ev > .hub-date { align-self: start; position: relative; z-index: 1; margin-top: 0.15rem; }
.hub-ev-card { display: grid; gap: 0.5rem; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color var(--d-1), box-shadow var(--d-2); }
.hub-ev-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; }
.hub-ev-top h3 { font-size: 1.15rem; margin: 0; }
.hub-ev-top h3 small { font-family: var(--sans); font-weight: 500; font-size: 0.82rem; color: var(--faint); margin-left: 0.4rem; }
.hub-ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; font-size: 0.86rem; color: var(--muted); }
.hub-ev-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hub-ev.is-finished .hub-date { background: var(--blue-100); color: var(--blue-700); }
.hub-ev.is-finished .hub-date span { color: var(--blue-600); }
.hub-ev.is-next .hub-ev-card { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50), var(--shadow); }
.hub-ev.is-cancelled .hub-ev-card { opacity: 0.6; }
.hub-ev.is-cancelled h3 { text-decoration: line-through; }
.hub-state { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 4px; }
.hub-state-finished { background: var(--blue-50); color: var(--blue-700); }
.hub-state-next { background: var(--blue-600); color: #fff; }
.hub-state-upcoming { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.hub-state-pending { background: var(--warn-bg); color: var(--warn); }
.hub-state-cancelled { background: var(--bad-bg); color: var(--bad); }

/* Drivers list + profile */
.hub-drivers { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
.hub-drow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; cursor: pointer; text-align: left; transition: border-color var(--d-1), box-shadow var(--d-2), transform var(--d-2) var(--ease-out); }
.hub-drow:hover { border-color: var(--blue-400); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.hub-drow-n { width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center; background: var(--navy-800); color: #fff; font-family: var(--cond); font-size: 1.3rem; font-weight: 600; }
.hub-drow-pos { text-align: right; }
.hub-drow-pos b { display: block; font-family: var(--cond); font-size: 1.2rem; font-weight: 600; line-height: 1; }
.hub-drow-pos > span { font-size: 0.76rem; color: var(--faint); }
.hub-profile-head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.hub-bignum { font-family: var(--cond); font-weight: 600; font-size: clamp(3.4rem, 10vw, 5.2rem); line-height: 0.85; color: var(--blue-600); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; min-width: 1.2ch; }
.hub-profile-head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.hub-profile-head p { color: var(--muted); margin-top: 0.2rem; }
.hub-statgrid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; margin-bottom: 1rem; }
.hub-statgrid div { background: var(--surface); padding: 0.9rem 1rem; }
.hub-statgrid b { display: block; font-family: var(--cond); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.hub-statgrid div > span { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 0.3rem; }
.hub-statgrid .is-key b { color: var(--blue-600); }
.hub-chart { width: 100%; height: auto; overflow: visible; }
.hub-chart .hub-axis { stroke: var(--line); stroke-width: 1; }
.hub-chart .hub-axis-t { fill: var(--faint); font: 500 11px var(--mono); }
.hub-chart .hub-trace { fill: none; stroke: var(--blue-600); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hub-chart .hub-dot { fill: var(--surface); stroke: var(--blue-600); stroke-width: 2; }
.hub-chart .hub-dot-t { fill: var(--navy-800); font: 600 11px var(--mono); text-anchor: middle; }
.hub-chart .hub-barc { fill: var(--blue-100); }
.hub-chart .hub-barc.is-best { fill: var(--blue-600); }

/* Penalties, replays, contact, history */
.hub-pens { display: grid; gap: 0.7rem; }
.hub-pen { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--bad); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hub-pen-code { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--bad); padding-top: 0.15rem; min-width: 3.4rem; }
.hub-pen-head { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: baseline; justify-content: space-between; }
.hub-pen-what { font-family: var(--cond); font-size: 1.15rem; font-weight: 600; color: var(--bad); }
.hub-pen small { color: var(--faint); font-size: 0.82rem; }
.hub-pen p { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }
.hub-replays { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hub-replay { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: border-color var(--d-1), box-shadow var(--d-2), transform var(--d-3) var(--ease-out); }
.hub-replay:hover { border-color: var(--blue-400); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.hub-replay-thumb { position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: var(--navy-800) center/cover no-repeat; }
.hub-replay-thumb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 19, 40, 0) 40%, rgba(7, 19, 40, 0.6)); }
.hub-play { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform var(--d-3) var(--ease-out); }
.hub-replay:hover .hub-play { transform: scale(1.1); }
.hub-play::after { content: ''; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--blue-600); margin-left: 3px; }
.hub-replay-r { position: absolute; left: 0.7rem; bottom: 0.6rem; color: #fff; font-family: var(--cond); font-weight: 600; font-size: 0.95rem; }
.hub-replay-body { padding: 0.8rem 1rem 0.9rem; }
.hub-replay-body b { display: block; font-weight: 600; }
.hub-replay-body span { font-size: 0.84rem; color: var(--muted); }
.hub-history { display: grid; }
.hub-history-row { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.hub-history-row:first-child { border-top: none; padding-top: 0.2rem; }
.hub-history-row > b { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--blue-600); }
.hub-history-row div b { display: block; font-weight: 600; }
.hub-history-row div span { font-size: 0.86rem; color: var(--muted); }
.hub-palmares { display: grid; gap: 0.7rem; }
.hub-champ { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hub-champ-y { font-family: var(--cond); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--blue-600); }
.hub-champ b { display: block; font-family: var(--cond); font-size: 1.25rem; font-weight: 600; }
.hub-champ span { font-size: 0.88rem; color: var(--muted); }

/* ─── Forms ───────────────────────────────────────────────────────── */
.hub-field { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; align-content: start; }
.hub-field label, .hub-flabel { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.hub-field input, .hub-field select, .hub-field textarea {
  width: 100%; min-width: 0;
  background-image: linear-gradient(var(--blue-600), var(--blue-600)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: border-color var(--d-1), box-shadow var(--d-2), background-size var(--d-3) var(--ease-out);
}
.hub-field input:focus, .hub-field select:focus, .hub-field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); background-size: 100% 2px; }
.hub-field textarea { resize: vertical; }
.hub-field.is-invalid input, .hub-field.is-invalid textarea, .hub-field.is-invalid select { border-color: var(--bad); background-image: linear-gradient(var(--bad), var(--bad)); }
.hub-field-msg { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-2) var(--ease-out); font-size: 0.82rem; color: var(--bad); }
.hub-field-msg > span { overflow: hidden; }
.hub-field.is-invalid .hub-field-msg { grid-template-rows: 1fr; }
.hub-field-hint { font-size: 0.8rem; color: var(--faint); display: flex; justify-content: space-between; gap: 0.6rem; }
.hub-field-hint code { font-family: var(--mono); color: var(--blue-700); background: var(--blue-50); padding: 0 0.3rem; border-radius: 3px; word-break: break-all; }
.hub-cell { padding: 0.4rem 0.5rem; font-size: 0.88rem; border-radius: 6px; }
.hub-check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.94rem; margin-bottom: 0.9rem; }
.hub-check input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.hub-form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.hub-form-row { display: grid; gap: 0.7rem; align-items: end; }
.hub-form-row .hub-field { margin-bottom: 0; }
.hub-form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.hub-alert { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--r); font-size: 0.9rem; color: var(--navy-800); background: var(--blue-50); border: 1px solid var(--blue-100); }
.hub-alert-ok { background: var(--ok-bg); border-color: #BFE5CF; color: #0B5A33; }
.hub-alert + .hub-alert { margin-top: 0.5rem; }
.hub-auth-alt { text-align: center; margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.hub-pw { position: relative; }
.hub-pw input { padding-right: 4.4rem; }
.hub-pw-toggle { position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); border: none; background: none; cursor: pointer; color: var(--blue-600); font-size: 0.84rem; font-weight: 600; padding: 0.35rem 0.5rem; }
.hub-code { font-family: var(--mono) !important; font-size: 1.4rem !important; letter-spacing: 0.35em; text-align: center; }
.hub-steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 1.1rem; }
.hub-qr { background: #fff; border-radius: var(--r); padding: 10px; width: 200px; margin: 0.8rem 0; border: 1px solid var(--line); }
.hub-qr img { width: 180px; height: 180px; }
.hub-secret { font-family: var(--mono); color: var(--text); background: var(--blue-50); padding: 0.1rem 0.4rem; border-radius: 4px; word-break: break-all; }
.hub-toggles { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Stepper */
.hub-stepper { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.4rem; counter-reset: step; }
.hub-stepper li { position: relative; display: grid; gap: 0.45rem; font-size: 0.8rem; color: var(--faint); font-weight: 500; }
.hub-stepper li::before { content: ''; height: 4px; border-radius: 2px; background: var(--line); }
.hub-stepper li::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform var(--d-4) var(--ease-out); }
.hub-stepper li.is-done::after, .hub-stepper li.is-current::after { transform: scaleX(1); }
.hub-stepper li.is-current { color: var(--blue-700); font-weight: 600; }
.hub-stepper li.is-done { color: var(--muted); }
.hub-stepper span { display: none; }
.hub-step-body { min-height: 220px; }
.hub-dropzone { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); cursor: pointer; transition: border-color var(--d-1), background-color var(--d-1); }
.hub-dropzone:hover, .hub-dropzone.is-over { border-color: var(--blue-600); background: var(--blue-50); }
.hub-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hub-dropzone-prev { width: 76px; height: 76px; border-radius: var(--r); background: var(--navy-800); display: grid; place-items: center; overflow: hidden; color: var(--on-dark-3); }
.hub-dropzone-prev img { max-width: 80%; max-height: 80%; object-fit: contain; animation: hub-pop var(--d-3) var(--ease-out) both; }
.hub-dropzone-prev svg { width: 26px; height: 26px; }
.hub-dropzone b { display: block; font-weight: 600; }
.hub-dropzone span { font-size: 0.84rem; color: var(--faint); }
.hub-review { display: grid; gap: 1rem; }

/* Modal */
.hub-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10, 26, 51, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 5rem 1rem 2rem; overflow-y: auto; }
.hub-modal.is-entering { animation: hub-fade var(--d-2) var(--ease-std) both; }
.hub-modal-box { position: relative; width: 100%; max-width: 460px; padding: 1.5rem 1.4rem; box-shadow: var(--shadow-lift); }
.hub-modal.is-entering .hub-modal-box { animation: hub-sheet var(--d-3) var(--ease-out) both; }
.hub-modal-x { position: absolute; top: 0.7rem; right: 0.7rem; width: 32px; height: 32px; border-radius: var(--r); background: none; border: none; color: var(--faint); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color var(--d-1), color var(--d-1), transform var(--d-2) var(--ease-out); }
.hub-modal-x:hover { color: var(--text); background: var(--surface-2); transform: rotate(90deg); }

/* ─── Footer ──────────────────────────────────────────────────────────
   A closing lap: timing sectors fill across the top, a brand line with the booking call,
   the link columns, and the wordmark rising out of the floor. */
.hub-footer { position: relative; isolation: isolate; overflow: clip; background: var(--navy-950); color: var(--on-dark-2); padding-bottom: 1.3rem; }
.hub-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.8;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.hub-footer::after { content: ''; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 90%; pointer-events: none; background: radial-gradient(closest-side, rgba(35, 80, 230, 0.2), transparent); }
.hub-foot-top { display: grid; gap: 1.8rem; padding: 3.6rem 0 2.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hub-foot-pitch h2 { margin-top: 0; max-width: 19ch; color: #fff; font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.02; letter-spacing: -0.02em; }
.hub-foot-pitch p { margin-top: 1rem; max-width: 34rem; color: var(--on-dark-2); }
.hub-foot-act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.hub-btn-light { background: #fff; color: var(--navy-900); padding: 0.8rem 1.25rem; }
.hub-btn-light:hover { background: var(--blue-100); }
.hub-foot-social { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.hub-foot-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--on-dark-2); transition: transform 420ms var(--ease-out), background-color var(--d-2), border-color var(--d-2), color var(--d-2); }
.hub-foot-social a:hover { transform: translateY(-3px); background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.hub-foot-social svg { width: 18px; height: 18px; }
.hub-footer [data-tip]::after { background: #fff; color: var(--text); }
.hub-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; padding: 2.8rem 0 2.4rem; }
.hub-foot-brand { grid-column: 1 / -1; }
.hub-foot-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.hub-foot-brand p { margin-top: 1rem; max-width: 22rem; font-size: 0.92rem; }
.hub-foot-mail { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; color: #fff; text-decoration: none; font-size: 0.92rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 460ms var(--ease-out); }
.hub-foot-mail:hover { background-size: 100% 1px; }
.hub-foot-mail svg { width: 16px; height: 16px; color: var(--blue-400); }
.hub-foot-grid h3 { margin-bottom: 1rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
.hub-foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.hub-foot-grid li a { color: var(--on-dark-2); text-decoration: none; font-size: 0.95rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color var(--d-2), background-size 460ms var(--ease-out); }
.hub-foot-grid li a:hover { color: #fff; background-size: 100% 1px; }
.hub-foot-mark { container-type: inline-size; overflow: hidden; padding: 0 max(1rem, calc((100% - 1200px) / 2 + 1rem)); line-height: 0.86; margin-bottom: 1.1rem; user-select: none; pointer-events: none; }
/* Sized from the container so the word always spans the wrap exactly (it measures ~7.4em). */
.hub-foot-mark > span { display: flex; justify-content: space-between; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: 10.6vw; font-size: calc(100cqw / 7.45); letter-spacing: -0.03em; }
.hub-foot-mark i { display: inline-block; padding-right: 0.06em; font-style: inherit; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02) 82%); -webkit-background-clip: text; background-clip: text; }
:root.hub-anim .hub-foot-mark i { transform: translateY(72%); }
:root.hub-anim .hub-foot-mark.is-in i { transform: none; transition: transform 1.1s var(--ease-out) calc(var(--i) * 45ms + 120ms); }
.hub-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: var(--on-dark-3); }
.hub-foot-tag { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.hub-foot-top-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border: none; background: none; color: #fff; font: 500 0.82rem var(--sans); cursor: pointer; }
.hub-foot-top-btn svg { width: 16px; height: 16px; transition: transform 460ms var(--ease-out); }
.hub-foot-top-btn:hover svg { transform: translateY(-3px); }

/* ─── Motion ──────────────────────────────────────────────────────── */
@keyframes hub-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hub-shimmer { to { transform: translateX(100%); } }
@keyframes hub-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes hub-lap { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes hub-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 48, 42, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(229, 48, 42, 0); } }
@keyframes hub-streak { from { transform: translateX(-100%); opacity: 1; } 70% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes hub-grow { from { transform: scaleX(0); } }
@keyframes hub-grow-y { from { transform: scaleY(0); } }
@keyframes hub-rise-bar { from { transform: scaleY(0); } }
@keyframes hub-drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hub-fade { from { opacity: 0; } }
@keyframes hub-sheet { from { opacity: 0; transform: scale(0.97); } }
@keyframes hub-pop { from { opacity: 0; transform: scale(0.85); } }

/* Page-to-page: the old page leaves left, the new one arrives from the right. */
@view-transition { navigation: auto; }
@keyframes hub-page-out { to { opacity: 0; transform: translateX(-28px); } }
@keyframes hub-page-in { from { opacity: 0; transform: translateX(36px); } }
::view-transition-old(root) { animation: var(--d-2) var(--ease-in) both hub-page-out; }
::view-transition-new(root) { animation: var(--d-3) var(--ease-out) both hub-page-in; }
::view-transition-group(hub-nav) { animation: none; }
/* In-page panel changes: direction follows tab order. */
:root[data-vt]::view-transition-old(root), :root[data-vt]::view-transition-new(root) { animation: none; }
@keyframes hub-panel-out-l { to { opacity: 0; transform: translateX(-24px); } }
@keyframes hub-panel-in-r { from { opacity: 0; transform: translateX(32px); } }
@keyframes hub-panel-out-r { to { opacity: 0; transform: translateX(24px); } }
@keyframes hub-panel-in-l { from { opacity: 0; transform: translateX(-32px); } }
::view-transition-old(hub-panel) { animation: 160ms var(--ease-in) both hub-panel-out-l; }
::view-transition-new(hub-panel) { animation: 340ms var(--ease-out) both hub-panel-in-r; }
:root[data-vt="back"]::view-transition-old(hub-panel) { animation-name: hub-panel-out-r; }
:root[data-vt="back"]::view-transition-new(hub-panel) { animation-name: hub-panel-in-l; }
::view-transition-group(hub-panel) { animation-duration: 340ms; animation-timing-function: var(--ease-out); }
::view-transition-group(hub-tab-ind) { animation-duration: 380ms; animation-timing-function: var(--ease-out); }
::view-transition-group(*) { animation-timing-function: var(--ease-out); }

/* ─── Breakpoints (mobile-first) ──────────────────────────────────── */
/* Phones: the league banner stays compact so standings are one scroll away. */
@media (max-width: 639px) {
  .hub-banner { padding-top: 0.8rem; }
  .hub-crumbs { margin-bottom: 0.8rem; }
  .hub-banner-row { display: grid; grid-template-columns: 56px 1fr; column-gap: 0.85rem; align-items: start; }
  .hub-banner-logo { width: 56px; height: 56px; padding: 0.4rem; }
  .hub-banner h1 { font-size: 1.85rem; margin: 0.3rem 0 0.25rem; }
  .hub-banner p { font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hub-banner-actions { margin-top: 0.8rem; gap: 0.45rem; }
  .hub-banner-actions .hub-btn { padding: 0.45rem 0.75rem; font-size: 0.86rem; }
  .hub-hide-xs { display: none; }
  .hub-bstats { margin-top: 1rem; }
  .hub-bstat { padding-top: 0.6rem; padding-bottom: 0.65rem; }
  .hub-bstat b { font-size: 1.25rem; }
  .hub-tab { font-size: 0.9rem; }
  .hub-panel { padding-top: 1.2rem; }
  .hub-ev { gap: 0.7rem; }
  .hub-ev-actions .hub-btn { padding: 0.38rem 0.65rem; font-size: 0.84rem; }
}
@media (min-width: 640px) {
  /* Sides only: the shorthand used to wipe the bottom padding of .hub-panel, which left every
     panel page (account, control panel, league tabs, legal) touching the footer. */
  .hub-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hub-panel { padding-top: 0; padding-bottom: 4.5rem; }
  .hub-foot-bottom { padding-top: 0; }
  .hub-nav-in { padding: 0 1.5rem; }
  .hub-hero-media { margin: 2rem -1.5rem 0; aspect-ratio: 16 / 8; }
  .hub-slide { height: 400px; }
  .hub-crew-head { grid-template-columns: 1.25fr 1fr; align-items: end; column-gap: 3rem; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-metrics { grid-template-columns: repeat(4, 1fr); }
  .hub-metric:nth-child(n) { padding-left: 1.1rem; border-left: 1px solid var(--line); border-top: none; }
  .hub-metric:first-child { padding-left: 0; border-left: none; }
  .hub-banner-row { flex-direction: row; align-items: center; gap: 1.4rem; }
  .hub-banner-logo { width: 104px; height: 104px; }
  .hub-bstats { grid-template-columns: repeat(4, 1fr); }
  .hub-bstat:nth-child(n) { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, 0.12); border-top: none; }
  .hub-bstat:first-child { padding-left: 0; border-left: none; }
  .hub-replays { grid-template-columns: repeat(2, 1fr); }
  .hub-drivers { grid-template-columns: repeat(2, 1fr); }
  .hub-hide-sm { display: table-cell; }
  .hub-foot-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .hub-foot-brand { grid-column: auto; }
  .hub-form-grid { grid-template-columns: 1fr 1fr; }
  .hub-form-row { grid-template-columns: 1fr auto; }
  .hub-box { padding: 1.4rem; }
  .hub-cta-core { padding: 2.2rem 2rem; }
  .hub-statgrid { grid-template-columns: repeat(4, 1fr); }
  .hub-podium { grid-template-columns: 1fr 1.15fr 1fr; align-items: end; }
  .hub-podium .hub-pod { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 1rem 0.8rem; }
  .hub-podium .hub-pod-2 { order: 1; }
  .hub-podium .hub-pod-1 { order: 2; padding: 1.4rem 0.8rem; }
  .hub-podium .hub-pod-3 { order: 3; }
  .hub-podium .hub-driver { align-items: center; min-width: 0; }
  .hub-podium .hub-pod-t { text-align: center; }
  .hub-stepper span { display: block; }
  .hub-ev-card { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .hub-nav-mid { display: block; }
  .hub-nav-cta { display: inline-flex; }
  .hub-burger, .hub-mobile, .hub-mobile.is-open { display: none; }
  /* Hero: the film takes the right half, from the very top of the page to the metrics. */
  .hub-dhead { padding-top: calc(var(--nav-h) + 4.4rem); }
  .hub-hero { min-height: clamp(400px, 50vh, 520px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 3.2rem; }
  .hub-hero-copy { width: 52%; }
  .hub-dhead h1 { font-size: clamp(2.7rem, 4.6vw, 4.15rem); }
  .hub-hero-media { --cut: clamp(96px, 9.5vw, 150px); position: absolute; margin: 0; aspect-ratio: auto; top: calc(-1 * (var(--nav-h) + 4.4rem)); bottom: 0; left: 55%; right: calc(50% - 50vw); }
  .hub-hero-clip { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
  :root.hub-anim .hub-hero-clip { animation-name: hub-hero-in-cut; }
  .hub-hero-clip::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 150px), linear-gradient(0deg, rgba(11, 13, 17, 0.3), rgba(11, 13, 17, 0) 30%); }
  .hub-hero-edge { display: block; position: absolute; top: 0; left: -1px; width: var(--cut); height: 100%; overflow: visible; pointer-events: none; }
  .hub-hero-edge path { fill: none; stroke: var(--blue-600); stroke-width: 2; }
  :root.hub-anim .hub-hero-edge { animation: hub-edge-draw 1s var(--ease-out) 1s both; }
  .hub-metrics { margin-top: 0; }
  .hub-section { padding: 2.8rem 0; }
  .hub-leagues { padding: 4.4rem 0 4.8rem; }
  .hub-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .hub-cta-core { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 3.5rem; padding: 3rem; }
  .hub-cta-actions { justify-content: flex-start; }
  .hub-foot-top { grid-template-columns: 1.4fr auto; align-items: end; column-gap: 3rem; }
  .hub-foot-act { justify-content: flex-end; }
  .hub-crew { padding: 4.6rem 0 3.6rem; }
  .hub-slide { height: 420px; }
  .hub-slide-photo.is-tall { width: 300px; }
  .hub-slide-stat { width: 280px; }
  .hub-slide-board { width: 320px; }
  .hub-slide-clients { width: 360px; }
  .hub-cols { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .hub-cols > .hub-box + .hub-box { margin-top: 0; }
  .hub-ov { grid-template-columns: 1.55fr 1fr; align-items: start; }
  .hub-ov-side .hub-box + .hub-box, .hub-ov-main > * + * { margin-top: 1rem; }
  .hub-replays { grid-template-columns: repeat(3, 1fr); }
  .hub-drivers { grid-template-columns: repeat(3, 1fr); }
  .hub-tabs-inner { gap: 1.8rem; }
  .hub-banner { padding-top: 1.4rem; }
  .hub-next { padding: 1.6rem 1.7rem; }
}
@media (hover: none) {
  .hub-card:hover, .hub-drow:hover, .hub-replay:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-body *, .hub-body *::before, .hub-body *::after { animation: none !important; transition-duration: 1ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ─── Intro (once per visit, modelled on the main site's loading screen) ─── */
.hub-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, var(--navy-800), var(--navy-950) 70%); }
.hub-intro-in { display: grid; justify-items: center; gap: 1.6rem; }
.hub-intro img { width: clamp(150px, 22vw, 230px); height: auto; filter: brightness(0) invert(1); opacity: 0; transform: scale(0.9); animation: hub-bloom 1.1s 0.1s var(--ease-out) forwards; }
.hub-intro-word { display: grid; justify-items: center; gap: 0.35rem; }
.hub-intro-word b { font-family: var(--display); font-style: italic; font-weight: 700; font-stretch: 118%; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: 0.34em; color: rgba(255, 255, 255, 0.92); opacity: 0; animation: hub-word 0.7s 0.7s var(--ease-out) both; }
.hub-intro-word span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.5em; color: var(--on-dark-3); opacity: 0; animation: hub-word 0.7s 0.9s var(--ease-out) both; }
.hub-intro-lap { width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; opacity: 0; animation: hub-fade-in 0.4s 1s both; }
.hub-intro-lap i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue-400), var(--blue-300)); animation: hub-lap 1.1s var(--ease-std) infinite; }
.hub-intro::after { content: ''; position: absolute; top: 50%; left: 0; width: 320px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(111, 141, 245, 0.9), transparent); transform: translateX(-340px); opacity: 0; }
.hub-intro.is-out { animation: hub-intro-out 0.85s var(--ease-out) forwards; pointer-events: none; }
.hub-intro.is-out::after { animation: hub-intro-sweep 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes hub-bloom { 0% { opacity: 0; transform: scale(0.9); } 60% { opacity: 1; transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hub-word { from { opacity: 0; transform: translateY(6px); letter-spacing: 0.2em; } to { opacity: 1; transform: none; } }
@keyframes hub-fade-in { to { opacity: 1; } }
@keyframes hub-intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes hub-intro-sweep { 0% { transform: translateX(-340px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(100vw); opacity: 0; } }

/* ─── Counting digits (mechanical lap counter) ────────────────────── */
[data-count].is-rolling { line-height: 1; font-variant-numeric: tabular-nums; }
[data-count].is-rolling > span:not(.hub-sr) { display: inline-block; height: 1em; line-height: 1; vertical-align: top; }
.hub-odo-g { display: inline-flex; }
.hub-odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; opacity: 0.22; transition: opacity 280ms var(--ease-std); }
.hub-odo.is-lit { opacity: 1; }
.hub-odo-s { display: flex; flex-direction: column; will-change: transform; }
.hub-odo-s span { display: block; height: 1em; line-height: 1; text-align: center; }
[data-count].is-done .hub-odo-s { will-change: auto; }
/* A zero has nothing to count: it rises into place instead. */
[data-count].is-zero .hub-odo-s { animation: hub-odo-rise 700ms var(--ease-out) both; }
@keyframes hub-odo-rise { from { transform: translateY(1em); } to { transform: translateY(0); } }

/* ─── Masked word reveal for page titles ──────────────────────────── */
.hub-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hub-w > span { display: inline-block; }

/* ─── Pointer spotlight on interactive cards ──────────────────────── */
[data-spot] { position: relative; }
[data-spot]::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--d-2);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(35, 80, 230, 0.08), transparent 45%); }
[data-spot]:hover::before { opacity: 1; }

/* ─── Shine on primary actions ────────────────────────────────────── */
.hub-btn-primary { overflow: hidden; }
.hub-btn-primary::before { content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent); transform: skewX(-18deg); transition: left 0.7s var(--ease-out); pointer-events: none; }
.hub-btn-primary:hover::before { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .hub-intro { display: none; }
  /* Scroll-linked depth and the slider's inner parallax stay put. */
  .hub-hero-frame, .hub-leagues-bg i, .hub-cta-bg, .hub-foot-mark > span { transform: none !important; }
  .hub-slide-media img { translate: none; }
}

/* ─── Driver profile ──────────────────────────────────────────────────
   A driver card plus a competitive record. The dark band is the driver's own identity;
   everything on the light page below is derived from official results. */
.hub-drv { padding-bottom: 0; }
.hub-drv .hub-wrap { position: relative; z-index: 1; }
.hub-drv-bigno { position: absolute; right: max(0.5rem, calc(50% - 600px)); top: -0.12em; z-index: 0; pointer-events: none; user-select: none; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: clamp(9rem, 30vw, 21rem); line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(111, 141, 245, 0.2); }
.hub-drv-id { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: start; }
.hub-drv-portrait { position: relative; width: 104px; aspect-ratio: 4 / 5; flex: none; background: var(--navy-700); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); display: grid; place-items: center; }
.hub-drv-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-drv-portrait > span { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; font-size: 2.2rem; color: rgba(255, 255, 255, 0.34); letter-spacing: -0.02em; }
.hub-drv-portrait > b { position: absolute; right: 0; bottom: 0; min-width: 2.1em; padding: 0.22em 0.4em 0.16em 0.6em; background: var(--blue-600); color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.15rem; line-height: 1; text-align: center; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hub-drv-main { min-width: 0; }
.hub-drv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; font-size: 0.9rem; color: var(--on-dark-2); }
.hub-drv-country { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.hub-drv-country i { font: 500 0.7rem/1 var(--mono); font-style: normal; letter-spacing: 0.1em; color: var(--on-dark-3); padding: 0.2rem 0.35rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 4px; }
.hub-drv h1 { margin: 0.5rem 0 0.45rem; font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(1.9rem, 8.4vw, 4rem); line-height: 0.98; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.hub-drv h1 .hub-w { padding-right: 0.12em; margin-right: -0.12em; }
.hub-drv-team { color: #fff; font-weight: 600; }
.hub-drv-team span { display: inline-block; margin-right: 0.6rem; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
.hub-drv-bio { margin-top: 0.6rem; max-width: 40rem; font-size: 0.95rem; color: var(--on-dark-2); }
.hub-drv-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; margin-top: 0.9rem; }
.hub-drv-socials { display: flex; gap: 0.4rem; }
.hub-drv-social { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.16); background: none; color: var(--on-dark-2); cursor: pointer; transition: transform 420ms var(--ease-out), background-color var(--d-2), border-color var(--d-2), color var(--d-2); }
.hub-drv-social:hover { transform: translateY(-2px); background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.hub-drv-social svg { width: 17px; height: 17px; }
.hub-drv [data-tip]::after { background: #fff; color: var(--text); }
.hub-drv-ids { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.hub-drv-ids > div { display: inline-flex; align-items: stretch; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; overflow: hidden; font: 500 0.74rem/1 var(--mono); }
.hub-drv-ids dt { padding: 0.42rem 0.5rem; background: rgba(255, 255, 255, 0.08); color: var(--on-dark-3); letter-spacing: 0.08em; text-transform: uppercase; }
.hub-drv-ids dd { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.42rem 0.55rem; color: #fff; letter-spacing: 0.04em; }
.hub-drv-ids dd svg { width: 13px; height: 13px; color: var(--blue-400); }
.hub-drv-ids dd small { color: var(--on-dark-3); font-size: 0.66rem; }
.hub-drv-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hub-drv .hub-btn-primary { background: #fff; color: var(--navy-900); }
.hub-drv .hub-btn-primary:hover { background: var(--blue-100); }
.hub-drv-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hub-drv-stat { position: relative; padding: 1rem 0.8rem 1.1rem 0; min-width: 0; }
.hub-drv-stat:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hub-drv-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hub-drv-stat b { display: block; font-family: var(--display); font-weight: 600; font-stretch: 110%; font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hub-drv-stat.is-key b { color: var(--blue-400); }
.hub-drv-stat > span { display: block; margin-top: 0.5rem; font: 500 0.68rem/1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--on-dark-3); }
.hub-drv-stat::before { content: ''; position: absolute; left: 0; top: -1px; width: 22px; height: 2px; background: var(--blue-400); transform: scaleX(0); transform-origin: left; }
.hub-drv-stat.is-on::before { transform: scaleX(1); transition: transform 500ms var(--ease-out) var(--count-delay, 0ms); }
:root:not(.hub-anim) .hub-drv-stat::before { transform: none; }

.hub-drv-body { padding-top: 1.4rem; }
.hub-drv-source { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 1.6rem; font-size: 0.82rem; color: var(--faint); }
.hub-drv-source svg { width: 16px; height: 16px; margin-top: 0.1rem; color: var(--blue-600); }
.hub-drv-grid { display: grid; gap: 0 2rem; }
.hub-drv-grid > aside > .hub-box { margin-bottom: 1rem; }
.hub-drv-grid > aside > .hub-box + .hub-box { margin-top: 0; }
.hub-drv-block { margin-bottom: 2.2rem; }
.hub-drv-shead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.hub-drv-shead h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); }
.hub-drv-shead > span { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.hub-drv-tabs button { display: inline-flex; align-items: center; gap: 0.45rem; }
.hub-drv-tabs i { font: 600 0.72rem/1 var(--mono); font-style: normal; padding: 0.15rem 0.35rem; border-radius: 4px; background: var(--blue-50); color: var(--muted); }
.hub-drv-tabs .is-active i { background: var(--blue-600); color: #fff; }

.hub-drv-seasons, .hub-drv-results { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.hub-drv-season { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.3rem 0.8rem; align-items: center; padding: 0.85rem 1rem; text-decoration: none; border-top: 1px solid var(--line); transition: background-color var(--d-2), box-shadow var(--d-2) var(--ease-out); }
.hub-drv-season:first-child, .hub-drv-result:first-child { border-top: none; }
.hub-drv-season:hover, .hub-drv-result:hover { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--blue-600); }
.hub-drv-season-logo { grid-row: span 2; width: 44px; height: 44px; border-radius: 8px; background: var(--navy-800); display: grid; place-items: center; padding: 6px; color: var(--on-dark-3); }
.hub-drv-season-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hub-drv-season-main { min-width: 0; }
.hub-drv-season-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-drv-season-main span { display: block; font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-drv-season-pos { text-align: right; }
.hub-drv-season-pos b { display: block; font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.5rem; line-height: 1; color: var(--text); }
.hub-drv-season.is-honour .hub-drv-season-pos b { color: var(--blue-600); }
.hub-drv-season-pos span, .hub-drv-season-num span { font-size: 0.72rem; color: var(--faint); }
.hub-drv-season-figs { grid-column: 2 / -1; display: flex; gap: 1.2rem; font-size: 0.86rem; }
.hub-drv-season-num { display: inline-flex; align-items: baseline; gap: 0.3rem; }
.hub-drv-season-num b { font-family: var(--mono); font-weight: 600; }

.hub-drv-result { display: grid; grid-template-columns: 3.6rem 1fr auto; grid-template-areas: 'pos main date' 'pos data data'; gap: 0.15rem 0.8rem; align-items: center; padding: 0.8rem 1rem; text-decoration: none; border-top: 1px solid var(--line); transition: background-color var(--d-2), box-shadow var(--d-2) var(--ease-out); }
.hub-drv-result-pos { grid-area: pos; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.7rem; line-height: 1; color: var(--text); letter-spacing: -0.02em; }
.hub-drv-result.is-podium .hub-drv-result-pos { color: var(--blue-600); }
.hub-drv-result.is-out .hub-drv-result-pos { font-family: var(--mono); font-style: normal; font-size: 0.95rem; font-weight: 600; color: var(--bad); letter-spacing: 0.04em; }
.hub-drv-result-main { grid-area: main; min-width: 0; }
.hub-drv-result-main strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-drv-result-main span { display: block; font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-drv-result-date { grid-area: date; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.hub-drv-result-data { grid-area: data; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--muted); }
.hub-drv-result-data b { font-family: var(--mono); font-weight: 600; color: var(--text); }
.hub-drv-result-data i { margin-left: 0.3rem; font: 600 0.7rem/1 var(--mono); font-style: normal; }
.hub-drv-result-data i.is-up { color: var(--ok); }
.hub-drv-result-data i.is-down { color: var(--bad); }
.hub-drv-result-data .hub-fl { margin: 0; }

.hub-drv-upcoming { display: grid; gap: 0.6rem; }
.hub-drv-idle { position: relative; overflow: hidden; padding: 1.3rem 1.2rem 1.3rem 1.4rem; border-radius: var(--r-lg); background: var(--navy-900); color: var(--on-dark-2); background-image: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px); }
.hub-drv-idle > span { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue-500); }
.hub-drv-idle b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-stretch: 110%; font-size: 1.25rem; color: #fff; }
.hub-drv-idle p { margin-top: 0.3rem; font-size: 0.88rem; }
.hub-drv-quiet { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.2rem 0; font-size: 0.9rem; color: var(--muted); }
.hub-drv-quiet svg { width: 20px; height: 20px; flex: none; color: var(--blue-600); }
.hub-drv-block > .hub-drv-quiet { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }

/* Teams: directory cards, team page, roster and management. Tokens page. */
.hub-err { font-size: 0.8rem; color: var(--bad); }
.hub-hint { font-size: 0.8rem; color: var(--faint); }
.hub-team-mono { display: grid; place-items: center; width: 100%; height: 100%; min-height: 3rem; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--navy-700); }
.hub-team-mono.is-dark, .hub-card-media .hub-team-mono { color: #fff; }
.hub-card-media .hub-team-mono { font-size: 2.6rem; height: 104px; }
.hub-team-mine { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem 0.55rem 0.55rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color var(--d-1); }
.hub-team-mine:hover { border-color: var(--blue-500); }
.hub-team-mine-logo { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--navy-900); display: grid; place-items: center; padding: 5px; overflow: hidden; }
.hub-team-mine-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hub-team-mine-logo .hub-team-mono { color: #fff; font-size: 0.85rem; min-height: 0; }
.hub-team-mine b { display: block; font-weight: 600; line-height: 1.2; }
.hub-team-mine span span { display: block; font-size: 0.8rem; color: var(--muted); }
.hub-team-mine > svg { width: 16px; height: 16px; color: var(--faint); }
.hub-team-looking { margin: 0 0 0.9rem; padding: 0.7rem 0.8rem; border-left: 3px solid var(--blue-500); background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0; font-size: 0.92rem; }
.hub-team-contact { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hub-team-contact .hub-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hub-team-manage { margin-bottom: 1.4rem; border-color: var(--blue-300); }
.hub-team-managehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.hub-team-managehead h3 { margin: 0; }
.hub-team-acts { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.hub-team-sims { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.hub-team-sims .hub-check { margin: 0; }
@media (min-width: 640px) { .hub-team-two { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Tokens: tag on verified leagues, and the account section. */
.hub-tag-token { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--blue-100); color: var(--blue-700); font-weight: 600; }
.hub-tag-token svg { width: 14px; height: 14px; }
.hub-banner .hub-tag-token { background: rgba(111, 141, 245, 0.2); color: var(--blue-300); }
.hub-ctl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.hub-ctl-tokens { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.hub-ctl-tokens svg { width: 18px; height: 18px; flex: none; color: var(--blue-600); }
/* The account's token panel borrows the pass of /portal/tokens/: the programme mark and the gauge ruler. */
.hub-tok { background-color: var(--navy-950); background-image: radial-gradient(90% 120% at 100% 0%, rgba(61, 102, 240, 0.28), transparent 62%), repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px); }
.hub-tok-mark { position: absolute; top: 1.2rem; right: 1.2rem; width: 2.6rem; height: 2.6rem; color: var(--blue-300); }
.hub-tok-mark svg { width: 100%; height: 100%; }
.hub-tok-ruler { display: block; height: 12px; margin-top: 1.1rem; opacity: 0.6;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px) left bottom / 8px 5px repeat-x, linear-gradient(90deg, #fff 1.5px, transparent 1.5px) left bottom / 40px 12px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.hub-tok h3 b { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; }
.hub-tok h3 b { font-family: var(--cond); font-weight: 600; font-size: clamp(2.8rem, 9vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hub-tok-life { font-size: 0.88rem; color: var(--on-dark-2); }
.hub-tok-rates { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; }
.hub-tok-rates li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.7rem; align-items: center; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.hub-tok-rates b { font: 600 1rem/1 var(--mono); color: var(--blue-600); font-variant-numeric: tabular-nums; }
.hub-tok-rates strong { display: block; font-weight: 600; line-height: 1.25; }
.hub-tok-rates span { display: block; font-size: 0.8rem; line-height: 1.35; color: var(--muted); }
.hub-tok-rules { margin: 0 0 0.8rem; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.hub-tok-list { list-style: none; margin: 0; padding: 0; }
.hub-tok-list li { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.hub-tok-list li:first-child { border-top: none; padding-top: 0.2rem; }
.hub-tok-list b { font: 600 1rem/1 var(--mono); color: var(--ok); font-variant-numeric: tabular-nums; }
.hub-tok-list li.is-out b { color: var(--bad); }
.hub-tok-list li.is-gone { opacity: 0.55; }
.hub-tok-list strong { display: block; font-weight: 600; }
.hub-tok-list span { display: block; font-size: 0.82rem; color: var(--muted); }
.hub-tok-list small { text-align: right; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.hub-tok-list small i { display: block; font-style: normal; color: var(--faint); }
@media (max-width: 479px) { .hub-tok-list li { grid-template-columns: 4rem 1fr; } .hub-tok-list small { grid-column: 2; text-align: left; } .hub-tok-list small i { display: inline; margin-left: 0.5rem; } }

/* Badges and league records: earned from results, shown on the driver profile and the league page. */
.hub-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; }
.hub-badge { display: grid; grid-template-columns: 2.9rem 1fr; gap: 0.75rem; align-items: center; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.hub-badge > b { display: grid; place-items: center; height: 2.9rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); font: 600 0.95rem/1 var(--mono); color: var(--navy-700); font-variant-numeric: tabular-nums; }
.hub-badge > b svg { width: 20px; height: 20px; }
.hub-badge strong { display: block; font-weight: 600; line-height: 1.25; }
.hub-badge span { display: block; margin-top: 0.1rem; font-size: 0.8rem; line-height: 1.35; color: var(--muted); }
.hub-badge.is-top > b { background: var(--navy-900); border-color: var(--navy-900); color: var(--blue-300); }
.hub-records-note { font-size: 0.85rem; color: var(--faint); }
.hub-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: 0.7rem; }
.hub-record { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hub-record-k { font: 600 0.72rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.hub-record > b { font-family: var(--cond); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.hub-record > b i { margin-left: 0.45rem; font: 400 0.85rem/1 var(--sans); font-style: normal; color: var(--muted); }
.hub-record-who { display: flex; flex-wrap: wrap; gap: 0.1rem 0.7rem; font-weight: 600; }
.hub-record-who span { font-weight: 400; color: var(--muted); }
.hub-record-at { font-size: 0.82rem; color: var(--muted); }

.hub-drv-honours { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.hub-drv-honour { display: grid; grid-template-columns: 3rem 1fr; gap: 0.8rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.hub-drv-honour > b { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.5rem; line-height: 1; color: var(--navy-700); }
.hub-drv-honour strong { display: block; font-weight: 600; }
.hub-drv-honour span { display: block; font-size: 0.82rem; color: var(--muted); }
.hub-drv-honour.is-p1 { background: var(--navy-900); border-color: var(--navy-900); padding: 1rem 0.9rem; }
.hub-drv-honour.is-p1 > b { color: var(--blue-400); font-size: 1.9rem; }
.hub-drv-honour.is-p1 strong { color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.hub-drv-honour.is-p1 span { color: var(--on-dark-2); }
.hub-drv-honour.is-p2 > b, .hub-drv-honour.is-p3 > b { color: var(--blue-600); }

.hub-drv-pens { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.hub-drv-pen { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'date tag' 'body body'; gap: 0.4rem 1rem; align-items: start; padding: 0.9rem 1rem; border-top: 1px solid var(--line); }
.hub-drv-pen:first-child { border-top: none; }
.hub-drv-pen-date { grid-area: date; font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.hub-drv-pen > div { grid-area: body; min-width: 0; }
.hub-drv-pen > .hub-tag { grid-area: tag; }
.hub-drv-pen strong { display: block; font-weight: 600; }
.hub-drv-pen div > span { display: block; font-size: 0.84rem; color: var(--muted); }
.hub-drv-pen p { margin-top: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.hub-drv-pen small { display: block; margin-top: 0.3rem; font: 500 0.72rem/1.3 var(--mono); color: var(--faint); }
.hub-drv-pen.is-void strong { text-decoration: line-through; color: var(--faint); }

.hub-drv-create { max-width: 760px; margin: 0 auto; }
.hub-drv-modal { max-width: 720px; }
.hub-drv-avatar-prev { width: 64px; height: 80px; }
.hub-drv-avatar-prev img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.hub-drv-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; }
.hub-drv-entry h3 { margin-bottom: 0.3rem; }

@media (min-width: 640px) {
  .hub-drv-id { grid-template-columns: auto 1fr auto; gap: 1.2rem 1.6rem; }
  .hub-drv-portrait { width: 150px; }
  .hub-drv-portrait > span { font-size: 3.2rem; }
  .hub-drv-portrait > b { font-size: 1.5rem; }
  .hub-drv-actions { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .hub-drv-stats { grid-template-columns: repeat(3, 1fr); }
  .hub-drv-stat:nth-child(n) { padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, 0.12); border-top: none; }
  .hub-drv-stat:nth-child(3n+1) { padding-left: 0; border-left: none; }
  .hub-drv-stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .hub-drv-season { grid-template-columns: 44px minmax(0, 1fr) auto 4.5rem; column-gap: 1.2rem; }
  .hub-drv-season-logo { grid-row: auto; }
  .hub-drv-season-figs { grid-column: auto; order: 3; min-width: 11rem; justify-content: flex-end; }
  .hub-drv-season-pos { order: 4; }
  .hub-drv-result { grid-template-columns: 4.2rem minmax(0, 1.2fr) auto minmax(0, 1fr); grid-template-areas: 'pos main date data'; }
  .hub-drv-result-data { justify-content: flex-end; }
  .hub-drv-pen { grid-template-columns: 7.5rem 1fr auto; grid-template-areas: 'date body tag'; }
}
@media (min-width: 960px) {
  .hub-drv-portrait { width: 176px; }
  .hub-drv-stats { grid-template-columns: repeat(6, 1fr); margin-top: 2rem; }
  .hub-drv-stat:nth-child(n) { padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, 0.12); border-top: none; }
  .hub-drv-stat:first-child { padding-left: 0; border-left: none; }
  .hub-drv-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 639px) {
  .hub-drv .hub-drv-bio { display: block; overflow: visible; font-size: 0.92rem; }
  .hub-drv .hub-drv-team { display: block; overflow: visible; }
}
.hub-drv-nostats { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; padding: 1rem 0 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font: 500 0.74rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-3); }
.hub-drv-nostats svg { width: 16px; height: 16px; color: var(--blue-400); }

/* ─── Account: side menu + one section at a time ─────────────────────── */
.hub-acct { display: grid; gap: 1.2rem; }
.hub-acct-nav { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 2px; }
.hub-acct-nav::-webkit-scrollbar { display: none; }
.hub-acct-nav a { flex: none; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.8rem; border-radius: var(--r); border: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color var(--d-2), background-color var(--d-2), border-color var(--d-2); }
.hub-acct-nav a svg { width: 17px; height: 17px; color: var(--faint); transition: color var(--d-2); }
.hub-acct-nav a:hover { color: var(--text); background: var(--blue-50); }
.hub-acct-nav a.is-active { color: var(--text); font-weight: 600; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.hub-acct-nav a.is-active svg { color: var(--blue-600); }
.hub-acct-nav i { margin-left: auto; min-width: 1.4rem; padding: 0.15rem 0.35rem; border-radius: 4px; background: var(--blue-600); color: #fff; font: 600 0.7rem/1 var(--mono); font-style: normal; text-align: center; }
.hub-acct-main { min-width: 0; }
.hub-acct-main > .hub-next { margin-bottom: 1rem; }
.hub-acct-todo { list-style: none; margin: 0; padding: 0; display: grid; }
.hub-acct-todo li { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.7rem; align-items: start; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.hub-acct-todo li:first-child { border-top: none; padding-top: 0.1rem; }
.hub-acct-todo li > svg { width: 18px; height: 18px; margin-top: 0.15rem; color: var(--blue-600); }
.hub-acct-todo .hub-more { grid-column: 2; justify-self: start; }
.hub-acct-wait { color: var(--blue-700); font-weight: 600; }
.hub-acct-danger { border-color: #EBC9C5; }
.hub-acct-danger h3 { color: var(--bad); }
@media (min-width: 640px) {
  .hub-acct-nav { margin: 0 -1.5rem; padding: 0 1.5rem 2px; }
  .hub-acct-todo li { grid-template-columns: auto 1fr auto; align-items: center; }
  .hub-acct-todo .hub-more { grid-column: auto; }
}
@media (min-width: 960px) {
  .hub-acct { grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
  .hub-acct-nav { position: sticky; top: calc(var(--nav-h) + 1rem); flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .hub-acct-nav a { padding: 0.65rem 0.8rem; }
}
.hub-field select { padding-top: calc(0.62rem + 1px); padding-bottom: calc(0.62rem + 1px); }

/* ─── Security lists: sessions, activity, backup codes ────────────────── */
.hub-seclist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hub-seclist li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.65rem 0.8rem; border-top: 1px solid var(--line); background: var(--surface); }
.hub-seclist li:first-child { border-top: none; }
.hub-seclist b { display: block; font-weight: 600; font-size: 0.94rem; }
.hub-seclist div > span { display: block; font-size: 0.8rem; color: var(--faint); }
.hub-codes { margin-top: 0.9rem; padding: 1rem; border: 1px solid var(--blue-300); border-radius: var(--r); background: var(--blue-50); }
.hub-codes ol { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.hub-codes li { padding: 0.5rem 0.6rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font: 600 0.92rem/1 var(--mono); letter-spacing: 0.1em; text-align: center; user-select: all; }
@media (min-width: 640px) { .hub-codes ol { grid-template-columns: repeat(5, 1fr); } .hub-codes li { font-size: 0.8rem; letter-spacing: 0.06em; } }
#admUserQ { margin-bottom: 0.2rem; }

/* ─── Narrow phones: repairs only ─────────────────────────────────────── */
/* 320px: the HUB tag ran under the language switch. Same pieces, tighter gaps. */
@media (max-width: 359px) {
  .hub-nav-in { padding: 0 0.8rem; gap: 0.5rem; }
  .hub-nav-brand { gap: 0.5rem; }
  .hub-nav-logo { height: 24px; }
  .hub-nav-tag { padding-left: 0.5rem; font-size: 0.9rem; }
  .hub-nav-right { gap: 0.4rem; }
}
/* Account rows on phones: the name was squeezed to one word per line beside its actions. */
@media (max-width: 639px) {
  .hub-acct-main .hub-history-row { grid-template-columns: minmax(0, 1fr) !important; }
  .hub-acct-main .hub-history-row > div:last-child { justify-content: flex-start !important; flex-wrap: wrap; }
}

/* Sign-in through another service */
.hub-auth-or { display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0 0.8rem; font-size: 0.82rem; color: var(--faint); }
.hub-auth-or::before, .hub-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hub-auth-providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.hub-auth-providers .hub-btn { justify-content: center; gap: 0.45rem; padding-left: 0.4rem; padding-right: 0.4rem; color: var(--text); border-color: var(--line-2); font-size: 0.9rem; }
.hub-auth-providers .hub-btn:hover { border-color: var(--blue-600); }
.hub-auth-providers .hub-ico { width: 1.05rem; height: 1.05rem; flex: none; }
@media (max-width: 359px) { .hub-auth-providers { grid-template-columns: 1fr; } }

/* ─── Access page: a film panel beside the form ─────────────────────── */
.hub-auth { display: grid; max-width: 460px; margin: 1.4rem auto 4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 26, 51, 0.05), 0 30px 60px -34px rgba(10, 26, 51, 0.38); }
.hub-auth-show { position: relative; isolation: isolate; overflow: hidden; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-950); color: #fff; }
.hub-auth-shots { position: absolute; inset: 0; z-index: -2; }
.hub-auth-shots i { position: absolute; inset: -4%; background: center / cover no-repeat; opacity: 0; }
.hub-auth-shots i:first-child { opacity: 1; }
.hub-auth-show::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(11, 13, 17, 0.1) 0%, rgba(11, 13, 17, 0.55) 48%, rgba(11, 13, 17, 0.94) 100%), linear-gradient(90deg, rgba(35, 80, 230, 0.22), rgba(35, 80, 230, 0) 60%); }
.hub-auth-curve { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: none; }
.hub-auth-curve path { fill: none; stroke: var(--blue-500); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.85; }
.hub-auth-show-in { padding: 1.3rem 1.4rem 1.2rem; }
.hub-auth-kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-300); }
.hub-auth-kicker::before { content: ''; width: 22px; height: 2px; background: var(--blue-500); }
.hub-auth-show h2 { margin: 0.5rem 0 0; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(1.55rem, 6vw, 2.5rem); line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; color: #fff; }
.hub-auth-show ul { display: none; list-style: none; margin: 1.5rem 0 0; padding: 0; gap: 0.75rem; }
.hub-auth-show li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.96rem; color: var(--on-dark-2); }
.hub-auth-show li .hub-ico { width: 1.05rem; height: 1.05rem; flex: none; color: var(--blue-400); }
.hub-auth-lap { height: 3px; background: rgba(255, 255, 255, 0.12); }
.hub-auth-lap i { display: block; height: 100%; background: var(--blue-500); transform-origin: 0 50%; transform: scaleX(0); }

.hub-auth-card { padding: 1.6rem 1.4rem 1.8rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hub-auth-card h1 { font-size: 1.8rem; line-height: 1.1; margin: 0 0 1.1rem; }
.hub-auth-card h1:has(+ .hub-auth-sub) { margin-bottom: 0.3rem; }
.hub-auth-sub { margin: 0 0 1.2rem; }
.hub-auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 1.5rem; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--line); }
.hub-auth-tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--surface); box-shadow: 0 1px 2px rgba(10, 26, 51, 0.1), 0 6px 14px -8px rgba(10, 26, 51, 0.3); }
.hub-auth-tabs[data-on="signup"]::before { transform: translateX(100%); }
.hub-auth-tabs button { position: relative; border: none; background: none; cursor: pointer; padding: 0.6rem 0.5rem; border-radius: 9px; font: 600 0.92rem var(--sans); color: var(--faint); transition: color var(--d-2); }
.hub-auth-tabs button:hover { color: var(--text); }
.hub-auth-tabs button.is-active { color: var(--text); }
.hub-auth-tabs button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.hub-auth-card .hub-btn-primary { min-height: 52px; gap: 0.55rem; box-shadow: 0 10px 22px -12px rgba(35, 80, 230, 0.7); transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2), background-color var(--d-1); }
.hub-auth-card .hub-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(35, 80, 230, 0.85); }
.hub-auth-card .hub-btn-primary:active { transform: translateY(0) scale(0.99); }
.hub-auth-card .hub-btn-primary .hub-go { transition: transform var(--d-2) var(--ease-out); }
.hub-auth-card .hub-btn-primary:hover .hub-go { transform: translateX(4px); }
.hub-auth-providers .hub-btn { min-height: 48px; transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2), border-color var(--d-1); }
.hub-auth-providers .hub-btn:hover { transform: translateY(-2px); background: var(--surface); box-shadow: 0 12px 20px -14px rgba(10, 26, 51, 0.45); }
.hub-auth-providers .hub-btn:active { transform: translateY(0); }
.hub-auth-providers .hub-ico { transition: color var(--d-2), transform var(--d-2) var(--ease-out); }
.hub-auth-providers .hub-btn:hover .hub-ico { transform: scale(1.12); }
.hub-auth-providers [data-val="google"]:hover .hub-ico { color: #4285F4; }
.hub-auth-providers [data-val="discord"]:hover .hub-ico { color: #5865F2; }
.hub-auth-providers [data-val="twitch"]:hover .hub-ico { color: #9146FF; }

@keyframes hub-auth-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hub-auth-slide { from { opacity: 0; transform: translateX(-18px); } }
@keyframes hub-auth-shot { 0% { opacity: 0; transform: scale(1.02); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
@keyframes hub-auth-lapbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hub-auth-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hub-auth-pill-r { from { transform: translateX(0); } }
@keyframes hub-auth-pill-l { from { transform: translateX(100%); } }
:root.hub-anim .hub-auth { animation: hub-sheet var(--d-4) var(--ease-out) var(--auth-t, 0s) both; }
:root.hub-anim .hub-auth-shots i { animation: hub-auth-shot 21s linear var(--auth-t, 0s) infinite both; }
:root.hub-anim .hub-auth-shots i:nth-child(2) { animation-delay: calc(var(--auth-t, 0s) + 7s); }
:root.hub-anim .hub-auth-shots i:nth-child(3) { animation-delay: calc(var(--auth-t, 0s) + 14s); }
:root.hub-anim .hub-auth-lap i { animation: hub-auth-lapbar 7s linear var(--auth-t, 0s) infinite; }
:root.hub-anim .hub-auth-curve path { animation: hub-auth-draw 1.8s var(--ease-out) calc(var(--auth-t, 0s) + 0.5s) both; }
:root.hub-anim .hub-auth-kicker { animation: hub-auth-slide var(--d-4) var(--ease-out) calc(var(--auth-t, 0s) + 0.25s) both; }
:root.hub-anim .hub-auth-show h2 { animation: hub-wipe 0.9s var(--ease-out) calc(var(--auth-t, 0s) + 0.35s) both; }
:root.hub-anim .hub-auth-show li { animation: hub-auth-slide var(--d-4) var(--ease-out) calc(var(--auth-t, 0s) + 0.7s) both; }
:root.hub-anim .hub-auth-show li:nth-child(2) { animation-delay: calc(var(--auth-t, 0s) + 0.82s); }
:root.hub-anim .hub-auth-show li:nth-child(3) { animation-delay: calc(var(--auth-t, 0s) + 0.94s); }
:root.hub-anim .hub-auth-card > * { animation: hub-auth-rise 0.6s var(--ease-out) calc(var(--card-t, 0s) + 0.08s) both; }
:root.hub-anim .hub-auth-card > :nth-child(2) { animation-delay: calc(var(--card-t, 0s) + 0.14s); }
:root.hub-anim .hub-auth-card > :nth-child(3) { animation-delay: calc(var(--card-t, 0s) + 0.2s); }
:root.hub-anim .hub-auth-card > :nth-child(4) { animation-delay: calc(var(--card-t, 0s) + 0.26s); }
:root.hub-anim .hub-auth-card > :nth-child(5) { animation-delay: calc(var(--card-t, 0s) + 0.32s); }
:root.hub-anim .hub-auth-card > :nth-child(n + 6) { animation-delay: calc(var(--card-t, 0s) + 0.38s); }
:root.hub-anim .hub-auth-card > .hub-auth-tabs { animation: none; }
:root.hub-anim .hub-auth-tabs.is-moved[data-on="signup"]::before { animation: hub-auth-pill-r 0.45s var(--ease-out) var(--card-t, 0s) both; }
:root.hub-anim .hub-auth-tabs.is-moved[data-on="signin"]::before { animation: hub-auth-pill-l 0.45s var(--ease-out) var(--card-t, 0s) both; }
body:has(.hub-intro:not(.is-out)) .hub-auth, body:has(.hub-intro:not(.is-out)) .hub-auth * { animation-play-state: paused !important; }

@media (min-width: 900px) {
  .hub-auth { max-width: 1040px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); margin: 1.6rem auto 5rem; }
  .hub-auth-show { min-height: 640px; }
  .hub-auth-show-in { padding: 2.6rem 2.6rem 2.4rem; }
  .hub-auth-show ul { display: grid; }
  .hub-auth-curve { display: block; }
  .hub-auth-card { padding: 2.8rem clamp(2rem, 5vw, 4rem); }
  .hub-auth-card > * { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
  .hub-auth-card h1 { font-size: 2.1rem; }
}

/* ─── Photo framing (driver profile) ────────────────────────────────── */
.hub-crop { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 1rem; background: rgba(11, 13, 17, 0.72); overflow-y: auto; animation: hub-fade var(--d-2) both; }
.hub-crop-box { width: 100%; max-width: 520px; padding: 1.4rem; background: var(--surface); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); animation: hub-sheet var(--d-3) var(--ease-out) both; }
.hub-crop-box h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.hub-crop-box > .hub-note { margin: 0 0 1rem; }
.hub-crop-cols { display: grid; grid-template-columns: minmax(0, 300px) auto; justify-content: space-between; gap: 1.2rem; align-items: end; }
.hub-crop-stage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--navy-800); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.hub-crop-stage.is-drag { cursor: grabbing; }
.hub-crop-stage:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.hub-crop-stage img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
/* the slanted edge the portrait is cut with, so nothing important ends up outside it */
.hub-crop-stage i { position: absolute; inset: 0; pointer-events: none; background: rgba(11, 13, 17, 0.55); clip-path: polygon(0 0, 14% 0, 0 100%); }
.hub-crop-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 33.33% 0 / 1px 100% no-repeat, linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 66.66% 0 / 1px 100% no-repeat; }
.hub-crop-side { display: grid; gap: 0.5rem; justify-items: start; }
.hub-crop-side .hub-drv-portrait { width: 112px; }
.hub-drv-portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-crop-zoom { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; margin: 1.1rem 0 0.2rem; font-size: 0.86rem; font-weight: 600; }
.hub-crop-zoom input { width: 100%; accent-color: var(--blue-600); }
@media (max-width: 479px) {
  .hub-crop-cols { grid-template-columns: minmax(0, 1fr) 84px; gap: 0.8rem; }
  .hub-crop-side .hub-drv-portrait { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .hub-crop, .hub-crop-box { animation: none; } }

/* "This is me" on a league driver page */
.hub-claim { margin: 0.8rem 0 0; display: grid; gap: 0.5rem; justify-items: start; font-size: 0.9rem; color: var(--muted); }
.hub-claim p, p.hub-claim { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; }
p.hub-claim { margin-top: 0.8rem; }
.hub-claim .hub-ico { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; color: var(--blue-600); }
.hub-claim .hub-btn .hub-ico { margin-top: 0; color: inherit; }

/* ─── League tools: attendance, broadcast, rules, notices, comparison ─── */
.hub-tz { font-size: 0.78rem; color: var(--faint); font-weight: 400; }
.hub-rsvp { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.hub-rsvp button { border: none; background: none; cursor: pointer; padding: 0.42rem 0.8rem; font: 600 0.84rem var(--sans); color: var(--muted); transition: background-color var(--d-2), color var(--d-1); }
.hub-rsvp button + button { border-left: 1px solid var(--line-2); }
.hub-rsvp button:hover { color: var(--text); background: var(--blue-50); }
.hub-rsvp button.is-in { background: var(--ok-bg); color: var(--ok); }
.hub-rsvp button.is-out { background: var(--bad-bg); color: var(--bad); }
.hub-rsvp button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }

.hub-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.2rem; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900) center / cover no-repeat; box-shadow: var(--shadow-lift); }
.hub-embed::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 17, 0.1) 30%, rgba(11, 13, 17, 0.72)); }
.hub-embed.is-playing::before { display: none; }
.hub-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hub-embed-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; border: none; background: none; cursor: pointer; color: #fff; font: 600 1rem var(--sans); }
.hub-embed-play .hub-play { transition: transform var(--d-2) var(--ease-out); }
.hub-embed-play:hover .hub-play { transform: scale(1.1); }
.hub-embed-play:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; }

.hub-rules { display: grid; gap: 1rem; align-items: start; }
.hub-rules-side { display: grid; gap: 1rem; }
.hub-rules-side .hub-box + .hub-box { margin-top: 0; }
.hub-rules-text .hub-prose h4, .hub-news .hub-prose h4 { font-family: var(--cond); font-size: 1.15rem; margin: 1.2rem 0 0.4rem; }
.hub-rules-text .hub-prose h4:first-child { margin-top: 0; }
.hub-prose ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.hub-scale + .hub-scale { margin-top: 1rem; }
.hub-scale ol { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.35rem; }
.hub-scale li { display: grid; gap: 0.1rem; padding: 0.4rem 0.3rem; border: 1px solid var(--line); border-radius: var(--r); text-align: center; background: var(--surface-2); }
.hub-scale li i { font-style: normal; font-size: 0.72rem; color: var(--faint); font-weight: 600; }
.hub-scale li b { font-family: var(--mono); font-size: 0.95rem; }
.hub-docs { display: grid; gap: 0.5rem; }
.hub-doc { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: border-color var(--d-1), background-color var(--d-2); }
.hub-doc:hover { border-color: var(--blue-400); background: var(--blue-50); }
.hub-doc .hub-ico { width: 1.1rem; height: 1.1rem; color: var(--blue-600); }
.hub-doc b { display: block; font-weight: 600; }
.hub-doc small { color: var(--muted); font-size: 0.82rem; }

.hub-newslist { display: grid; gap: 0.8rem; }
.hub-news { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hub-news.is-pinned { border-left: 3px solid var(--blue-600); }
.hub-news-box .hub-news { padding: 0.8rem 0 0; border: none; border-top: 1px solid var(--line); border-radius: 0; margin-top: 0.8rem; }
.hub-news-box .hub-news:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.hub-news-head { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; }
.hub-news-head b { font-family: var(--cond); font-size: 1.12rem; font-weight: 600; }
.hub-news-head span { font-size: 0.8rem; color: var(--faint); }
.hub-news .hub-prose p:last-child { margin-bottom: 0; }

.hub-cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.7rem; align-items: center; }
.hub-cmp-pick span { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--faint); }
.hub-cmp { margin-top: 1.2rem; }
.hub-cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.8rem; align-items: center; margin-bottom: 1rem; }
.hub-cmp-who { display: grid; gap: 0.15rem; justify-items: end; text-align: right; min-width: 0; }
.hub-cmp-who:last-child { justify-items: start; text-align: left; }
.hub-cmp-who .hub-bignum { font-size: 2.2rem; line-height: 1; }
.hub-cmp-who .hub-dlink { font-family: var(--cond); font-size: 1.2rem; font-weight: 600; text-align: inherit; }
.hub-cmp-who small { color: var(--muted); font-size: 0.82rem; }
.hub-cmp-h2h { display: grid; justify-items: center; gap: 0.1rem; text-align: center; padding: 0.6rem 0.9rem; border-radius: var(--r-lg); background: var(--navy-900); color: #fff; }
.hub-cmp-h2h b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.hub-cmp-h2h b i { font-style: normal; opacity: 0.5; margin: 0 0.2rem; }
.hub-cmp-h2h span { font-size: 0.72rem; color: var(--on-dark-2); max-width: 12ch; }
.hub-cmp-h2h small { font-size: 0.72rem; color: var(--on-dark-3); }
.hub-cmp-table td { width: 30%; font-family: var(--mono); font-size: 0.95rem; }
.hub-cmp-table td:first-child { text-align: right; }
.hub-cmp-table th { text-align: center; font-weight: 500; color: var(--muted); font-size: 0.86rem; }
.hub-cmp-table .is-best { color: var(--blue-700); font-weight: 700; }
.hub-scoring { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; margin: 0 0 1rem; }
.hub-scoring legend { font-weight: 600; padding: 0 0.4rem; }
.hub-import { margin-bottom: 1.2rem; }
@media (min-width: 900px) {
  .hub-rules:has(.hub-rules-text) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .hub-cmp-pick, .hub-cmp-head { grid-template-columns: 1fr; }
  .hub-cmp-pick span { text-align: center; }
  .hub-cmp-who, .hub-cmp-who:last-child { justify-items: center; text-align: center; }
}

/* Account: calendar and what gets viewed */
.hub-cal { list-style: none; margin: 0; padding: 0; display: grid; }
.hub-cal-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem 1rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.hub-cal-row:first-child { border-top: none; padding-top: 0.2rem; }
.hub-cal-row > div b { display: block; font-family: var(--cond); font-size: 1.15rem; font-weight: 600; }
.hub-cal-row > div span { display: block; font-size: 0.86rem; color: var(--muted); }
.hub-cal-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hub-next-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: flex-end; }
.hub-next .hub-rsvp { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }
.hub-next .hub-rsvp button { color: var(--on-dark-2); }
.hub-next .hub-rsvp button + button { border-color: rgba(255, 255, 255, 0.22); }
.hub-next .hub-rsvp button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hub-next .hub-rsvp button.is-in { background: #1F8F56; color: #fff; }
.hub-next .hub-rsvp button.is-out { background: #B8382E; color: #fff; }
.hub-viewbars { display: grid; gap: 0.45rem; }
.hub-viewbars a { display: grid; grid-template-columns: minmax(0, 12rem) 1fr auto; gap: 0.8rem; align-items: center; text-decoration: none; color: var(--text); font-size: 0.92rem; }
.hub-viewbars a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-viewbars i { display: block; height: 8px; border-radius: 4px; background: var(--blue-50); overflow: hidden; }
.hub-viewbars u { display: block; height: 100%; background: var(--blue-600); border-radius: 4px; }
.hub-viewbars b { font-family: var(--mono); font-size: 0.9rem; min-width: 3ch; text-align: right; }
.hub-toplist { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.hub-toplist li { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.9rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.hub-toplist li b { font-family: var(--mono); }
@media (min-width: 640px) {
  .hub-cal-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hub-cal-actions { grid-column: auto; justify-content: flex-end; }
}
@media (max-width: 479px) { .hub-viewbars a { grid-template-columns: minmax(0, 7rem) 1fr auto; } }

/* ─── Parabolica control panel ──────────────────────────────────────── */
.hub-ctl-kpi { grid-template-columns: repeat(2, 1fr); }
.hub-ctl-kpi small { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--faint); }
.hub-ctl-two { display: grid; gap: 1rem; margin-top: 1rem; }
.hub-ctl-two .hub-box + .hub-box { margin-top: 0; }
.hub-ctl-bar { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; margin-bottom: 1rem; }
.hub-ctl-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hub-ctl-chips .hub-chip i { font-style: normal; font-family: var(--mono); font-size: 0.74rem; opacity: 0.7; }
.hub-ctl-list { display: grid; gap: 0.8rem; }
.hub-ctl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.hub-ctl-card.is-flag { border-left: 3px solid var(--warn); }
.hub-ctl-card > header { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: flex-start; justify-content: space-between; }
.hub-ctl-card h3 { font-size: 1.3rem; margin: 0; }
.hub-ctl-card h3 small { font: 500 0.8rem var(--sans); color: var(--muted); margin-left: 0.3rem; }
.hub-ctl-card > header p { margin: 0.15rem 0 0; font-size: 0.84rem; color: var(--faint); }
.hub-ctl-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0.9rem 0 0.7rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hub-ctl-facts > div { background: var(--surface-2); padding: 0.5rem 0.7rem; }
.hub-ctl-facts dt { font-size: 0.72rem; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hub-ctl-facts dd { margin: 0.1rem 0 0; font-family: var(--cond); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.hub-ctl-facts dd.is-text { font-size: 1rem; }
.hub-ctl-facts dd small { display: block; font: 400 0.74rem var(--sans); color: var(--faint); }
.hub-ctl-org { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; font-size: 0.9rem; color: var(--muted); }
.hub-ctl-org .hub-ico { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; color: var(--faint); }
.hub-ctl-org strong { color: var(--warn); font-weight: 600; }
.hub-ctl-sub { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.hub-ctl-add { grid-template-columns: 1fr; margin-top: 0.8rem; }
.hub-ctl-users li { align-items: flex-start; }
.hub-ctl-users b small { font: 400 0.84rem var(--sans); color: var(--muted); margin-left: 0.3rem; }
.hub-ctl-rowacts { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.hub-ctl-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.hub-ctl-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.hub-ctl-feed li:first-child { border-top: none; padding-top: 0; }
.hub-ctl-feed .hub-ico { width: 1rem; height: 1rem; color: var(--blue-600); }
.hub-ctl-feed b { display: block; font-weight: 600; font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-ctl-feed b small { font-weight: 400; color: var(--muted); }
.hub-ctl-feed span { font-size: 0.8rem; color: var(--faint); }
.hub-ctl-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: end; min-height: 118px; padding-top: 0.6rem; }
.hub-ctl-bars > div { display: grid; justify-items: center; gap: 0.25rem; align-content: end; min-width: 0; }
.hub-ctl-bars i { display: block; width: 100%; max-width: 34px; border-radius: 3px 3px 0 0; background: var(--blue-600); transform-origin: 50% 100%; }
:root.hub-anim .hub-ctl-bars i { animation: hub-grow-y var(--d-4) var(--ease-out) both; }
.hub-ctl-bars b { font: 600 0.74rem var(--mono); color: var(--muted); min-height: 1em; }
.hub-ctl-bars span { font-size: 0.66rem; color: var(--faint); white-space: nowrap; min-height: 1em; }
.hub-ctl-bars.is-daily { min-height: 130px; gap: 2px; }
.hub-ctl-bars.is-daily i { max-width: none; }
@media (min-width: 640px) {
  .hub-ctl-kpi { grid-template-columns: repeat(4, 1fr); }
  .hub-ctl-facts { grid-template-columns: repeat(6, 1fr); }
  .hub-ctl-add { grid-template-columns: minmax(0, 1fr) auto auto; }
}
@media (min-width: 960px) { .hub-ctl-two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .hub-ctl-bars span { display: none; } .hub-ctl-bars > div:first-child span, .hub-ctl-bars > div:last-child span { display: block; } }

/* ─── Legal texts, terms acceptance ─────────────────────────────────── */
.hub-legal { max-width: 860px; }
.hub-legal h1 { margin-bottom: 0.3rem; }
.hub-legal section { padding-top: 2.2rem; scroll-margin-top: 5.5rem; }
.hub-legal h2 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--blue-600); margin-bottom: 0.4rem; }
.hub-legal h3 { margin: 1.6rem 0 0.5rem; font-size: 1.05rem; }
.hub-legal p, .hub-legal li { line-height: 1.65; color: var(--ink-2, inherit); }
.hub-legal p { margin: 0 0 0.9rem; }
.hub-legal ul { margin: 0 0 0.9rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.hub-legal a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.hub-legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.hub-legal-nav a { padding: 0.55rem 0.9rem; border: 1px solid var(--line, #d9dee8); border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.hub-legal .hub-tablewrap { margin: 0.4rem 0 1rem; }
.hub-legal-table td { white-space: normal; vertical-align: top; font-size: 0.9rem; line-height: 1.5; min-width: 9rem; }
.hub-legal-check { align-items: flex-start; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.hub-legal-check input { flex: none; margin-top: 0.1rem; }
.hub-legal-check a { color: var(--blue-600); text-decoration: underline; }
.hub-foot-legal { display: inline-flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.hub-foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0.5rem 0; }
.hub-foot-legal a:hover { color: #fff; }

.hub-captcha { margin: 0 0 0.9rem; }
.hub-captcha:empty { display: none; margin: 0; }

/* ─── Phones: readable tables, touch targets of 44px, no text under 12px ── */
.hub-bdstats { display: none; }
@media (max-width: 639px) {
  /* Standings keep position, driver and points on screen; the rest moves into the breakdown. */
  .hub-table-fit th:nth-child(2) { width: 100%; }
  .hub-table-fit th, .hub-table-fit td { padding-left: 0.5rem; padding-right: 0.5rem; }
  .hub-table-fit .hub-driver { min-width: 0; }
  .hub-table-fit .hub-driver .hub-dlink { white-space: normal; overflow-wrap: anywhere; }
  .hub-table-fit .hub-driver span { overflow-wrap: anywhere; }
  .hub-bdstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin: 0 0 0.9rem; }
  .hub-bdstats div { text-align: center; }
  .hub-bdstats dt { font-size: 0.75rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-bdstats dd { margin: 0.15rem 0 0; font-family: var(--cond); font-weight: 600; font-size: 1.05rem; color: var(--text); }

  .hub-dlink, .hub-seg button, .hub-more, .hub-clink, .hub-foot-mail, .hub-foot-top-btn, .hub-table th button { min-height: 44px; display: inline-flex; align-items: center; }
  .hub-caret { width: 44px; height: 44px; }
  .hub-burger { width: 44px; height: 44px; }
  .hub-nav-brand { min-height: 44px; }
  .hub-lang button { min-height: 44px; min-width: 40px; }
  .hub-btn, .hub-btn-sm { min-height: 44px; }
  .hub-main select, .hub-select, .hub-season select { min-height: 44px; }
  .hub-foot-grid li a, .hub-foot-legal a, .hub-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .hub-foot-grid li a { background-position: 0 78%; }
  .hub-foot-social a { min-width: 44px; min-height: 44px; }

  .hub-kicker, .hub-delta, .hub-status, .hub-state, .hub-date span, .hub-foot-tag, .hub-table th,
  .hub-bdcol b, .hub-bdcol span, .hub-lang button, .hub-foot-grid h3 { font-size: 0.75rem; }
}

/* ─── Directory: more filters, bigger logos, the organiser call to action ── */
.hub-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; }
.hub-fsel { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 2rem 0 0.95rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--on-dark-2); font: 500 0.9rem/1 var(--sans, inherit); cursor: pointer;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab3c5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 14px;
  transition: border-color var(--d-1), background-color var(--d-1), color var(--d-1); }
.hub-fsel:hover { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.hub-fsel:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.hub-fsel.is-set { background-color: var(--blue-600); border-color: var(--blue-600); color: #fff; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.hub-fsel option { color: var(--text); background: #fff; font-weight: 400; }
.hub-filterbar .hub-chip { min-height: 40px; border-radius: 999px; }
.hub-fclear { color: var(--on-dark-2); min-height: 40px; padding: 0 0.4rem; }
.hub-fclear[hidden] { display: none; }
@media (max-width: 639px) {
  .hub-filterbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 4px; scrollbar-width: none; }
  .hub-filterbar::-webkit-scrollbar { display: none; }
  .hub-filterbar > * { flex: none; }
  .hub-fsel, .hub-filterbar .hub-chip, .hub-fclear { min-height: 44px; }
}
.hub-cta .hub-btn-go { background: #12843F; color: #fff; box-shadow: 0 10px 24px -12px rgba(18, 132, 63, 0.9); }
.hub-cta .hub-btn-go:hover { background: #0F7437; }

.hub-drow-via { font-size: 0.8rem; color: var(--muted); text-align: right; white-space: normal; max-width: 9.5rem; line-height: 1.3; }

/* ─── Organizer: attendance and incident reports ─────────────────────── */
.hub-att-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.hub-att-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.hub-att-list .hub-seg button { padding: 0.35rem 0.7rem; font-size: 0.84rem; }

/* ─── League page: result card and incident report ───────────────────── */
.hub-rowbtn { all: unset; cursor: pointer; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--faint); transition: color var(--d-1), background-color var(--d-1); }
.hub-rowbtn:hover, .hub-rowbtn:focus-visible { color: var(--blue-600); background: var(--blue-50); }
.hub-rowbtn:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.hub-rowbtn .hub-ico { width: 17px; height: 17px; }
.hub-cardbox { max-width: 420px; }
.hub-cardimg { display: block; width: 100%; height: auto; margin: 0.9rem 0 1rem; border-radius: 10px; box-shadow: var(--shadow); }
.hub-pickbox { border: 1px solid var(--line-2); border-radius: var(--r); padding: 0.6rem 0.8rem 0.7rem; }
.hub-pickbox legend { padding: 0 0.3rem; font-size: 0.86rem; font-weight: 600; }
.hub-pickbox > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.35rem 0.8rem; max-height: 11.5rem; overflow-y: auto; }
@media (max-width: 639px) { .hub-rowbtn { width: 44px; height: 44px; } }

.hub-captcha-hint { margin: -0.4rem 0 0.9rem; padding: 0.6rem 0.8rem; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); font-size: 0.9rem; font-weight: 600; }
.hub-captcha-hint[hidden] { display: none; }

/* ─── Consent for optional cookies (only shown once a category is switched on) ── */
.hub-consent { position: fixed; z-index: 90; font-size: 0.92rem; }
.hub-consent-banner { left: 0; right: 0; bottom: 0; padding: 0 1rem 1rem; pointer-events: none; }
.hub-consent-banner .hub-consent-in { pointer-events: auto; max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.hub-consent-banner p { flex: 1 1 22rem; margin: 0; color: var(--muted); line-height: 1.5; }
.hub-consent-banner p b { color: var(--text); }
.hub-consent a { color: var(--blue-600); text-decoration: underline; }
.hub-consent-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.hub-consent-act .hub-btn { min-width: 7rem; min-height: 44px; justify-content: center; }
.hub-consent-act .hub-link { min-height: 44px; }
.hub-consent-prefs { inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(11, 13, 17, 0.55); }
.hub-consent-prefs .hub-consent-in { width: 100%; max-width: 520px; display: grid; gap: 0.9rem; padding: 1.4rem; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.hub-consent-prefs h2 { font-size: 1.4rem; margin: 0; }
.hub-consent-row { align-items: flex-start; margin: 0; line-height: 1.45; color: var(--muted); }
.hub-consent-row b { color: var(--text); }
.hub-consent-row input { flex: none; margin-top: 0.15rem; }
.hub-foot-prefs { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0.5rem 0; }
.hub-foot-prefs:hover { color: #fff; }
