/* Colour + motion layer (owner 2026-11-18, picked theme C but quieter):
   - a soft colour behind the home hero and behind every page header (department colour on department
     pages, brand blue elsewhere) — the coloured bar beside the title is gone;
   - one page-load moment (title, lead, buttons rise in turn) and numbers that count up;
   - everything else stays as it was, with only small touches so it sits well on the colour. */

:root { --hero: #E6EDFC; }

/* home hero on colour (full-bleed) */
.h4-hero { position: relative; background-color: var(--hero); box-shadow: 0 0 0 100vmax var(--hero); clip-path: inset(0 -100vmax); }
.h4 main > section.h4-hero + section::before { display: none; }
.h4-today { background: #fff; box-shadow: 0 1px 0 rgba(30, 71, 166, .06), 0 24px 48px -32px rgba(30, 71, 166, .35); }
.h4-today .v-p-row { border-bottom-color: var(--line); }
.h4-now { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(30, 71, 166, .18); }
.h4-depts a:hover { background: var(--cs); }
.h4-depts a { transition: background-color .2s ease; }

/* page headers on colour */
.band, .band.has-dept { background: var(--hero); border-bottom: 0; }
.band.has-dept { background: var(--cs); }
.band.has-dept .band-txt, .band .band-txt { border-left: 0; padding-left: 0; }
.band .live-box, .band .champ a, .band .card { background: #fff; }
.band .crumbs a { color: var(--ct); }
.band .btn.line { background: #fff; }
/* the match and player headers use the band too */
.band .mboard + .board-meta, .band .board-meta { color: var(--ink2); }

/* motion: one orchestrated page-load moment */
@keyframes m-up { from { opacity: 0; transform: translateY(14px); } }
.h4-txt > *, .band-txt > *, .band .mboard, .band .pl-photo { animation: m-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.h4-txt > :nth-child(2), .band-txt > :nth-child(2) { animation-delay: .08s; }
.h4-txt > :nth-child(3), .band-txt > :nth-child(3) { animation-delay: .16s; }
.h4-txt > :nth-child(4), .band-txt > :nth-child(4) { animation-delay: .24s; }
.h4-today { animation: m-up .7s cubic-bezier(.2, .7, .2, 1) .2s both; }
.band-side { animation: m-up .6s cubic-bezier(.2, .7, .2, 1) .2s both; }
@media (prefers-reduced-motion: reduce) {
  .h4-txt > *, .band-txt > *, .band .mboard, .band .pl-photo, .h4-today, .band-side { animation: none; }
}

/* home departments: no dots; every tile has the same inner padding, the row is pulled out by that
   padding so the text still lines up with the page edge and the hover colour has room on both sides */
.h4-depts ul { margin-inline: -1rem; }
.h4-depts a, .h4-depts li:first-child a { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 72rem) {
  .h4-depts ul { margin-inline: -1.5rem; }
  .h4-depts a, .h4-depts li:first-child a { padding-left: 1.5rem; padding-right: 1.5rem; border-radius: 0; }
}

/* home hero on a photo (owner 2026-11-21): the photo (already a navy duotone) fills the whole hero, a light
   brand-navy scrim keeps the white text readable (stronger on the text side), the card stays white.
   The photo itself is set in src/pages.mjs (HERO_PHOTO). */
.h4-stage { position: relative; isolation: isolate; overflow: hidden; background: #10265E; color: #fff; }
.h4-stage .h4-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.h4-stage::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 28, 72, .22) 0%, rgba(12, 28, 72, 0) 30%, rgba(12, 28, 72, 0) 65%, rgba(12, 28, 72, .34) 100%),
    linear-gradient(90deg, rgba(12, 28, 72, .56) 0%, rgba(12, 28, 72, .48) 38%, rgba(12, 28, 72, .28) 62%, rgba(12, 28, 72, .19) 100%); }
.h4-stage .h4-hero { background: none; box-shadow: none; clip-path: none; }
.h4 main > section.h4-stage + section::before { display: none; }
.h4-stage .h4-txt h1 { color: #fff; text-wrap: balance; }
.h4-stage .h4-txt .lede { color: rgba(255, 255, 255, .86); }
.h4-stage .h4-now { background: rgba(10, 22, 58, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.h4-stage .h4-now b { color: #fff; }
.h4-stage .h4-now:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.h4-stage .h4-now i.soon { background: #8FB0FF; }
.h4-stage .btn.play { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.h4-stage .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.h4-stage .h4-today { color: var(--ink); box-shadow: 0 30px 60px -28px rgba(4, 12, 36, .7), 0 2px 6px rgba(4, 12, 36, .2); }
/* phone/tablet: the hero is tall (text, then the card), so the photo covers only the text part and fades
   into the navy under the card — otherwise it would be blown up to a blurry fragment */
@media (max-width: 63.99rem) {
  .h4-stage .h4-bg { height: min(100%, 44rem); }
  .h4-stage::before { background: linear-gradient(180deg, rgba(12, 28, 72, .78) 0, rgba(12, 28, 72, .6) 24rem, rgba(16, 38, 94, .85) 36rem, #10265E 44rem); }
}
