/* Kansas Athletics (KU) v2 brand system: the AD standard (alex-ui/shared/ad-look) in KU colours from the KU brand guide:
   KU Blue #0051BA (PMS 293) shell and accents, Crimson #E8000D (PMS 185) foil for actions, white. Shared with the football and
   men's basketball command centers (tools/ku_skin.py). Libre Franklin (display + UI), Literata (editorial). */
:root {
  --m-950: #020A17; --m-900: #03132A; --m-850: #041A38; --m-800: #052147; --m-700: #072C5E; --m-600: #0A3F86; --m-500: #0051BA; --m-400: #2F78D6; --m-300: #7FAEEB;
  --g-700: #0B4CA7; --g-600: #105BC3; --g-500: #2F7FE8; --g-400: #6FA8F8; --g-300: #B5D2FB; --g-200: #DCE9FD; --g-100: #EEF4FE;
  --foil: linear-gradient(100deg, #B3000A 0%, #E8000D 18%, #FF5A62 34%, #E8000D 50%, #FF3B44 68%, #C4000B 84%, #E8000D 100%);
  --foil-deep: linear-gradient(100deg, #4A0005 0%, #7A0009 20%, #A8000C 36%, #5E0006 54%, #8E000A 74%, #4A0005 100%);
  --foil-line: linear-gradient(90deg, rgba(47,127,232,0) 0%, #2F7FE8 18%, #FF4B53 50%, #2F7FE8 82%, rgba(47,127,232,0) 100%);
  --f-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Literata", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --crimson: #E8000D; --crimson-2: #FF4B53; --pos: #1E7A4C; --pos-bg: #E3F2E9; --neg: #B0263A; --neg-bg: #FBE6E9; --warn: #8F6000; --warn-bg: #FBF0D6;

  /* Day */
  --bg: #F2F5FA; --bg-2: #E8EEF6; --surface: #FFFFFF; --surface-2: #F7F9FD; --hover: #EAF0F8;
  --ink: #0E1726; --ink-2: #36475E; --ink-3: #5C6B80; --ink-4: #8C99AA;
  --rule: #D9E1EC; --rule-soft: #E6ECF4; --rule-strong: #B8C6D8;
  --accent: #0051BA; --accent-ink: #FFFFFF; --link: #0051BA; --chart: #0051BA; --chart-2: #2F7FE8; --chart-ctx: #CDD8E6; --chart-ctx-2: #E0E8F2;
  --shadow-1: 0 1px 2px rgba(3,19,42,.05), 0 2px 8px rgba(3,19,42,.04);
  --shadow-2: 0 2px 4px rgba(3,19,42,.05), 0 12px 32px -8px rgba(3,19,42,.14);
  --shadow-3: 0 24px 64px -16px rgba(3,19,42,.35);
  --focus: #0051BA; --focus-2: #B5D2FB;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #050B16; --bg-2: #08111F; --surface: #0C1A2E; --surface-2: #11223A; --hover: #162A46;
  --ink: #EDF2F9; --ink-2: #C5D2E3; --ink-3: #9AAAC0; --ink-4: #6F8099;
  --rule: #1F3350; --rule-soft: #172840; --rule-strong: #31496D;
  --accent: #B5D2FB; --accent-ink: #03132A; --link: #BFD7FC; --chart: #3D8BF0; --chart-2: #B5D2FB; --chart-ctx: #2E4563; --chart-ctx-2: #21344F;
  --pos: #6FD19C; --pos-bg: #10301F; --neg: #FF8F9D; --neg-bg: #3A121A; --warn: #F0C76A; --warn-bg: #33270B;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 2px 4px rgba(0,0,0,.35), 0 16px 40px -12px rgba(0,0,0,.6);
  --shadow-3: 0 24px 64px -16px rgba(0,0,0,.7);
  --focus: #B5D2FB; --focus-2: #0051BA;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-display); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga"; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--focus-2) 35%, transparent); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--m-700); color: #ffffff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }
.foil-text { background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ic { flex: none; }
.eagle { display: block; }

/* branded wipe (between front door and workspace / command centers) */
.wipe { position: fixed; inset: 0; z-index: 900; pointer-events: none; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #092347 0%, #052147 45%, #020A17 100%); clip-path: inset(100% 0 0 0); }
.wipe::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--foil-line); }
.wipe .wipe-mark { width: 96px; opacity: 0; transform: scale(.86); filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.wipe .wipe-word { position: absolute; top: calc(50% + 70px); font: 600 11px/1 var(--f-display); letter-spacing: .32em; color: var(--g-300); opacity: 0; }
.wipe.on { animation: wipeIn .62s var(--ease-io) forwards; pointer-events: auto; }
.wipe.on .wipe-mark { animation: markIn .7s .18s var(--ease-out) forwards; }
.wipe.on .wipe-word { animation: fadeIn .5s .3s ease forwards; }
.wipe.out { clip-path: inset(0 0 0 0); animation: wipeOut .7s .05s var(--ease-io) forwards; }
.wipe.out .wipe-mark, .wipe.out .wipe-word { opacity: 1; transform: none; animation: fadeOut .3s ease forwards; }
@keyframes wipeIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes markIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wipe.on, .wipe.out { animation-duration: .01s !important; animation-delay: 0s !important; }
  .wipe.on .wipe-mark, .wipe.on .wipe-word { animation-duration: .01s; animation-delay: 0s; }
}
