/* Kansas Athletics (KU) v2 brand system. Palette from the KU brand guide (brand.ku.edu): KU Blue #0051BA (PMS 293), Crimson #E8000D (PMS 185),
   white, with deep KU blue surfaces. Libre Franklin (display + UI) with Literata (editorial). */
:root {
  --m-950: #020D1D; --m-900: #03132A; --m-850: #031836; --m-800: #041D3F; --m-700: #0A2A5E; --m-600: #0A3066; --m-500: #0B3877; --m-400: #335C95; --m-300: #4373B7;
  --g-700: #0B4CA7; --g-600: #105BC3; --g-500: #0051BA; --g-400: #468FF5; --g-300: #6FA8F8; --g-200: #B5D2FB; --g-100: #E2EEFE;
  --foil: linear-gradient(100deg, #105BC3 0%, #2379F2 18%, #A9CCFE 34%, #1B70E6 50%, #7BB2FE 68%, #1465D7 84%, #6FA8F8 100%);
  --foil-deep: linear-gradient(100deg, #073D89 0%, #0D52B3 20%, #1B70E6 36%, #09469B 54%, #115DC7 74%, #073D89 100%);
  --foil-line: linear-gradient(90deg, rgba(35,121,242,0) 0%, #2379F2 18%, #B8D6FF 50%, #2379F2 82%, rgba(35,121,242,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: #EDF0F5; --bg-2: #E2E7EF; --surface: #FFFFFF; --surface-2: #F5F8FB; --hover: #E6EBF1;
  --ink: #0E131B; --ink-2: #383F47; --ink-3: #5C636C; --ink-4: #8C9197;
  --rule: #D6DADF; --rule-soft: #DFE4EC; --rule-strong: #BEC3C8;
  --accent: #0051BA; --accent-ink: #FFFFFF; --link: #0048A6; --chart: #0051BA; --chart-2: #2C7FF2; --chart-ctx: #D1D4D9; --chart-ctx-2: #E6E8E2;
  --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: #6FA8F8;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #030D1C; --bg-2: #051225; --surface: #08182E; --surface-2: #0B1D37; --hover: #112540;
  --ink: #EBF0F6; --ink-2: #C8CDD4; --ink-3: #A0A7AF; --ink-4: #798089;
  --rule: #172C4A; --rule-soft: #0F213B; --rule-strong: #233D62;
  --accent: #6FA8F8; --accent-ink: #03132A; --link: #8BBBFE; --chart: #2C7FF2; --chart-2: #9AC2FB; --chart-ctx: #1E3452; --chart-ctx-2: #13253F;
  --pos: #6FD19C; --pos-bg: #10301F; --neg: #FF8F8F; --neg-bg: #3A1414; --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: #6FA8F8; --focus-2: #062858;
  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: #fff; 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; }

/* 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%, #052859 0%, #041D3F 45%, #020D1D 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; }
}
