/*
  Calgary Flames Foundation. "Game night" direction.
  Layout: full-bleed photo openers with diagonal cuts, alternating white / ice / black bands,
  a jersey-stripe rule (red · gold · black) marking the header and footer, scoreboard-style figures.
*/

@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  /* Flames brand colours */
  --red: #c8102e;
  --red-deep: #9a0c23;
  --gold: #f1be48;
  --black: #111111;
  --coal: #1c1c1e;
  --ice: #f2f4f7;
  --line: #dde1e7;
  --white: #ffffff;
  --text: #16171a;
  --muted: #5d636d;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --site-width: 1240px;
  --narrow-width: var(--site-width); /* text sections use the full frame, like banners and cards */
  --gutter: clamp(16px, 4vw, 32px);
  --band-space: clamp(56px, 8vw, 104px);
  --header-h: 84px;
  --cut: clamp(28px, 5vw, 72px);           /* depth of diagonal edges */
  --stripe: linear-gradient(90deg, var(--red) 0 60%, var(--gold) 60% 80%, var(--black) 80% 100%);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.65 var(--font-body); }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: .98; letter-spacing: .005em; text-transform: uppercase; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 104px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-size: clamp(26px, 3vw, 36px); }
h4 { font-size: 24px; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--black); color: var(--white); padding: 10px 16px; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: calc(var(--site-width) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow-width) + 2 * var(--gutter)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 700 13px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { display: contents; }
.utility-bar { background: var(--black); }
.utility-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 26px; list-style: none; margin: 0; padding: 9px 0; }
.utility-nav a { color: #d6d8dc; font: 600 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.utility-nav a:hover { color: var(--gold); }

.masthead { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--stripe); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo img { width: clamp(168px, 18vw, 214px); }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item > a { display: block; font: 700 14px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.nav-item > a:hover, .nav-item > a[aria-current="page"], .nav-item > a.is-section { color: var(--red); }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu .nav-item > a { text-transform: none; font-weight: 500; font-size: 15px; letter-spacing: 0; }
.submenu-toggle, .menu-toggle, .nav-list--utility { display: none; }

@media (min-width: 1140px) {
  .main-nav { align-self: stretch; display: flex; }
  .main-nav > .nav-list:not(.nav-list--utility) { display: flex; align-items: stretch; gap: 0 clamp(14px, 1.7vw, 28px); }
  .main-nav > .nav-list > .nav-item { position: relative; display: flex; align-items: center; }
  .main-nav > .nav-list > .nav-item > a { padding: 10px 0; position: relative; }
  .main-nav > .nav-list > .nav-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  .main-nav > .nav-list > .nav-item > a:hover::after,
  .main-nav > .nav-list > .nav-item > a[aria-current="page"]::after,
  .main-nav > .nav-list > .nav-item > a.is-section::after { transform: scaleX(1); }
  .main-nav > .nav-list > .nav-item--highlight > a {
    padding: 12px 22px; background: var(--red); color: var(--white);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  }
  .main-nav > .nav-list > .nav-item--highlight > a::after { display: none; }
  .main-nav > .nav-list > .nav-item--highlight > a:hover { background: var(--black); color: var(--white); }

  .submenu {
    position: absolute; top: 100%; left: -22px; min-width: 260px;
    background: var(--black); padding: 10px 0; box-shadow: 0 18px 40px rgb(0 0 0 / .25);
    visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: opacity .16s, transform .16s, visibility 0s .16s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); }
  .submenu .nav-item { position: relative; }
  .submenu .nav-item > a { padding: 9px 22px; color: #e8e9ec; }
  .submenu .nav-item > a:hover, .submenu .nav-item > a[aria-current="page"] { background: var(--coal); color: var(--gold); }
  .submenu .submenu { top: -10px; left: 100%; }
  .submenu .has-children > a::after { content: "›"; float: right; margin-left: 12px; color: var(--gold); }
  .nav-item:hover > .submenu, .nav-item:focus-within > .submenu, .nav-item.is-open > .submenu {
    visibility: visible; opacity: 1; transform: none; transition: opacity .16s, transform .16s;
  }
  .main-nav > .nav-list > .nav-item:nth-last-child(-n+3) > .submenu { left: auto; right: -22px; }
  .main-nav > .nav-list > .nav-item:nth-last-child(-n+3) .submenu .submenu { left: auto; right: 100%; }
}

@media (max-width: 1139.98px) {
  .utility-bar { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); border: 0; padding: 12px 16px;
    font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .12em; cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; } .menu-toggle-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] { background: var(--red); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px);
    max-height: calc(100dvh - var(--header-h) - 4px); overflow-y: auto;
    background: var(--black); padding: 8px var(--gutter) 28px;
  }
  .main-nav.is-open { display: block; }
  .nav-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #2c2c2f; }
  .nav-item > a { flex: 1; padding: 15px 0; color: var(--white); font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .02em; }
  .nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--gold); }
  .nav-item--highlight > a { color: var(--gold); }
  .submenu .nav-item > a { font-family: var(--font-body); font-size: 16px; font-weight: 500; padding: 11px 0; color: #d6d8dc; }
  .submenu .nav-item:last-child { border-bottom: 0; }
  .submenu-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--gold); cursor: pointer; }
  .submenu-toggle svg { width: 13px; transition: transform .2s; }
  .submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .submenu { display: none; flex-basis: 100%; padding-left: 16px; border-left: 3px solid var(--red); margin-bottom: 10px; }
  .nav-item.is-open > .submenu { display: block; }
  .nav-list--utility { display: block; margin-top: 18px; }
  .nav-list--utility .nav-item > a { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; color: #b9bcc2; }
}

/* ---------- Buttons ---------- */
.button {
  --button-bg: var(--red); --button-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 0; background: var(--button-bg); color: var(--button-fg);
  font: 800 17px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer; transition: background-color .15s, color .15s;
}
.button:hover { --button-bg: var(--black); color: var(--white); }
.button--outline { clip-path: none; background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.button--outline:hover { background: var(--text); color: var(--white); }
.button--ghost { clip-path: none; background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .8); }
.button--ghost:hover { background: var(--white); color: var(--black); }
.button--light { --button-bg: var(--white); --button-fg: var(--red); }
.button--light:hover { --button-bg: var(--gold); color: var(--black); }
.button--document { display: flex; justify-content: space-between; clip-path: none; padding: 20px 24px; background: var(--ice); color: var(--text); font-size: 20px; box-shadow: inset 4px 0 0 var(--red); }
.button--document::after { content: "PDF ↓"; font: 700 12px var(--font-body); letter-spacing: .12em; color: var(--red); }
.button--document:hover { background: var(--black); color: var(--white); }
.button--document:hover::after { color: var(--gold); }

/* ---------- Home hero ---------- */
.home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 760px); display: grid; align-items: end; color: var(--white); background: var(--black); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-top: 4px; }
.home-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 10 12 / .92) 0%, rgb(10 10 12 / .7) 38%, rgb(10 10 12 / .1) 75%), linear-gradient(0deg, rgb(10 10 12 / .6), transparent 50%); }
.home-hero-inner { padding-block: 120px calc(var(--cut) + 72px); }
.home-hero-title { max-width: 11ch; font-size: clamp(56px, 9.5vw, 132px); line-height: .9; margin-bottom: 24px; }
.home-hero-text { max-width: 46ch; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: #e9eaed; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(340px, 42vw, 520px); color: var(--white); background: var(--black); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-top: 4px; }
.page-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 10 12 / .85) 0%, rgb(10 10 12 / .35) 55%, rgb(10 10 12 / .15) 100%); }
.page-hero .container { padding-block: 80px calc(var(--cut) + 48px); }
.page-hero h1 { margin: 0; max-width: 16ch; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero-text { margin: 18px 0 0; max-width: 52ch; font-size: clamp(18px, 2vw, 22px); color: #e9eaed; }
.page-hero-text a { color: var(--gold); }
.page-hero--plain { min-height: 0; }
.page-hero--plain::before { background: radial-gradient(120% 140% at 100% 0%, rgb(200 16 46 / .55), transparent 55%); }
.page-hero--plain .container { padding-block: clamp(64px, 8vw, 100px) calc(var(--cut) + 40px); }

/* ---------- Bands ---------- */
.band { padding-block: var(--band-space); }
.band--ice { background: var(--ice); }
.band--dark { background: var(--black); color: var(--white); }
.band--white + .band--white { padding-top: 0; }
.page-hero + .band, .home-hero + .band { padding-top: calc(var(--band-space) * .8); }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 3px; background: currentColor; }
.section-title { margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row .section-head { margin: 0; }

.prose { overflow-wrap: break-word; }
@media (min-width: 1100px) { .prose, .post-body { font-size: clamp(17px, 1.3vw, 19px); } }
.prose a { overflow-wrap: anywhere; }
.container--narrow .prose, .split .prose { max-width: none; }
.prose.container--narrow { max-width: calc(var(--narrow-width) + 2 * var(--gutter)); }
.prose > * + h2, .prose > * + h3 { margin-top: 1.3em; }
.prose h2 { font-size: clamp(32px, 4vw, 44px); }
.prose img { margin: 1.8em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose strong, .prose b { font-weight: 700; }
.prose hr { border: 0; height: 4px; width: 80px; background: var(--stripe); margin: 2.4em 0; }

/* ---------- Feature (image + text) ---------- */
.feature { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.feature-media { display: block; position: relative; }
.feature-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--red); z-index: -1; }
.feature-media { isolation: isolate; max-width: 460px; }
.feature-media img { width: 100%; box-shadow: 0 24px 50px rgb(0 0 0 / .18); transition: transform .3s; }
.feature-media:hover img { transform: translate(-6px, -6px); }
.feature-body > * { min-width: 0; }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 240px)), 1fr)); }
.cards--3 { --card-min: 300px; } .cards--4 { --card-min: 240px; } .cards--5 { --card-min: 200px; }
@media (min-width: 1140px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--5 { grid-template-columns: repeat(5, 1fr); }
}
.card a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--black); color: var(--white); text-decoration: none; isolation: isolate; }
.cards--3 .card a { aspect-ratio: 4 / 3; }
.card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.card a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 10 12 / .9) 0%, rgb(10 10 12 / .35) 45%, transparent 70%); transition: background-color .3s; }
.card a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--stripe); transform: scaleX(.3); transform-origin: left; transition: transform .3s; }
.card-label { position: absolute; left: 18px; right: 18px; bottom: 22px; font: 800 clamp(22px, 2.2vw, 28px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.card-label::after { content: " →"; color: var(--gold); opacity: 0; transition: opacity .2s; }
.card a:hover img, .card a:focus-visible img { transform: scale(1.06); }
.card a:hover::after, .card a:focus-visible::after { transform: scaleX(1); }
.card a:hover .card-label::after { opacity: 1; }

/* ---------- Split layout (story + figures) ---------- */
.split { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); } }
.split > * { min-width: 0; }
.split aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--black); color: var(--white); padding: 32px 28px 36px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.aside-title { font-size: 22px; letter-spacing: .12em; font-family: var(--font-body); font-weight: 700; color: var(--gold); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid #2c2c2f; }
.split aside .stat + .stat { border-top: 1px solid #2c2c2f; padding-top: 18px; }

/* ---------- Stats ---------- */
.stats { margin: 0; display: grid; gap: 18px; }
.stats--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.stats--row .stat { padding: 8px 24px; border-left: 3px solid var(--red); }
.stat-value { font: 800 clamp(48px, 5vw, 68px)/.95 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.stats--row .stat-value { color: var(--red); }
.stat-label { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }

/* ---------- Quote ---------- */
.quote { position: relative; margin: 2em 0; padding: 36px 32px 28px 32px; background: var(--ice); font-size: 19px; line-height: 1.55; }
.quote::before { content: "“"; position: absolute; top: -34px; left: 18px; font: 800 120px/1 var(--font-display); color: var(--red); }
.quote p { margin: 0; }
.quote footer { margin-top: 16px; font: 700 13px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.quote footer::before { content: "— "; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); grid-auto-flow: dense; }
@media (min-width: 900px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } .gallery--4 { grid-template-columns: repeat(4, 1fr); } }
.gallery li { overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
@media (min-width: 600px) { .gallery--feature > li:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery-more { margin-top: 8px; }
.gallery-more > summary { list-style: none; display: flex; width: 100%; margin-top: 16px; }
.gallery-more > summary::-webkit-details-marker { display: none; }
.gallery-more[open] > summary { display: none; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 420px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.carousel-slide { scroll-snap-align: start; }
.carousel-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel-btn { position: absolute; top: calc(50% - 30px); width: 50px; height: 50px; border: 0; background: var(--red); color: var(--white); font: 700 28px/1 var(--font-display); cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.carousel-btn:hover { background: var(--black); }
.carousel-btn--prev { left: -8px; } .carousel-btn--next { right: -8px; }

/* ---------- Accordion ---------- */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary { position: relative; padding: 22px 56px 22px 0; font: 800 26px/1.1 var(--font-display); text-transform: uppercase; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 38px; height: 38px; background: var(--red); color: var(--white); font: 700 24px/1 var(--font-body); transition: rotate .2s; }
.accordion details[open] summary::after { rotate: 45deg; background: var(--black); }
.accordion summary:hover { color: var(--red); }
.accordion-body { padding: 0 0 26px; }

/* ---------- Documents, PDF, video ---------- */
.documents { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 10px; }
.pdf { margin: 0; }
.pdf iframe { width: 100%; height: min(85vh, 1000px); border: 0; background: var(--ice); box-shadow: 0 0 0 1px var(--line); }
.pdf figcaption { margin-top: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--black); margin: 1.8em 0; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Scoreboard (Three Pillars) ---------- */
.scoreboard { position: relative; background: var(--black); color: var(--white); padding-block: calc(var(--band-space) + var(--cut)) var(--band-space); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); }
.band + .scoreboard { margin-top: 0; }
.scoreboard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% 120%, rgb(200 16 46 / .35), transparent 60%); pointer-events: none; }
.scoreboard .container { position: relative; }
.scoreboard .eyebrow { color: var(--gold); }
.scoreboard-intro { margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; color: #c9ccd2; font-size: 18px; }
.scoreboard-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: #2c2c2f; border: 1px solid #2c2c2f; }
.scoreboard-list a { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: clamp(28px, 4vw, 44px) 20px; background: var(--black); color: var(--white); text-decoration: none; text-align: center; transition: background-color .2s; }
.scoreboard-list a:hover { background: var(--coal); }
.scoreboard-amount { font: 800 clamp(52px, 6vw, 84px)/.9 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scoreboard-label { font: 800 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.scoreboard-more { margin-top: 6px; font: 600 13px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #9ea3ab; }
.scoreboard-list a:hover .scoreboard-more { color: var(--gold); }

/* ---------- Mission band ---------- */
.mission { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: var(--white); }
.mission-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .45; filter: grayscale(1) contrast(1.2); }
.mission-inner { padding-block: clamp(64px, 9vw, 120px); }
.mission-text { max-width: 30ch; margin: 0; font: 800 clamp(28px, 3.4vw, 46px)/1.02 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.mission-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 0; }

/* ---------- Inclusion sub-nav ---------- */
.subnav { padding-block: 36px 0; }
.subnav-list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Home ---------- */
.home-report { overflow-x: clip; }
.home-report .feature-media { justify-self: center; }
@media (max-width: 600px) { .feature-media::before { inset: 14px -14px -14px 14px; } .feature-media { margin-right: 14px; } }

/* ---------- News ---------- */
.post-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
@media (min-width: 1140px) { .post-cards--4 { grid-template-columns: repeat(4, 1fr); } .post-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.post-card a { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.post-card img, .post-card-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); transition: filter .3s; }
.post-card-placeholder { display: block; background: var(--black) linear-gradient(135deg, transparent 45%, var(--red) 45% 55%, transparent 55%); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 0; border-top: 4px solid transparent; }
.post-card-cat { font: 700 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.post-card time { font-size: 14px; color: var(--muted); order: 3; }
.post-card-title { font: 800 26px/1 var(--font-display); text-transform: uppercase; }
.post-card a:hover .post-card-title { color: var(--red); }
.post-card a:hover img { filter: saturate(1.2) contrast(1.05); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-bar a { padding: 9px 16px; background: var(--ice); font: 700 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.filter-bar a:hover { background: var(--black); color: var(--white); }
.filter-bar a[aria-current="page"] { background: var(--red); color: var(--white); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 56px; }
.pager > :last-child { justify-self: end; }
.pager-status { font: 700 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.post { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.post-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.post-categories a { padding: 6px 12px; background: var(--red); color: var(--white); font: 700 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.post-categories a:hover { background: var(--black); }
.post-title { font-size: clamp(44px, 6.5vw, 84px); line-height: .92; }
.post-meta { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.post-meta::before { content: ""; display: inline-block; vertical-align: middle; width: 40px; height: 4px; margin-right: 12px; background: var(--stripe); }
.post-image { margin-block: 36px 44px; max-width: calc(1040px + 2 * var(--gutter)); }
.post-image img { width: 100%; }
.post-body { font-size: 18px; line-height: 1.7; }
.post-footer { margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--black); color: #c9ccd2; font-size: 15px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripe); }
.footer-grid { display: grid; gap: 40px 32px; padding-block: 80px 56px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-block; background: var(--white); padding: 12px 16px; margin-bottom: 22px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.footer-logo img { width: 190px; }
.footer-brand p { max-width: 40ch; line-height: 1.6; }
.footer-col h2 { font-size: 22px; letter-spacing: .08em; color: var(--white); margin-bottom: 18px; }
.footer-col h2 a { color: inherit; text-decoration: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #c9ccd2; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.social { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; background: var(--coal); color: var(--white); }
.social a:hover { background: var(--red); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-legal { border-top: 1px solid #2c2c2f; }
.footer-legal ul { list-style: none; margin: 0; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; }
.footer-legal a { color: #9ea3ab; text-decoration: none; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .pdf iframe { height: 60vh; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card a { aspect-ratio: 3 / 4; }
  .card-label { left: 12px; right: 12px; bottom: 16px; font-size: 20px; }
  .home-hero { min-height: 0; }
  .home-hero::before { background: linear-gradient(0deg, rgb(10 10 12 / .95) 0%, rgb(10 10 12 / .75) 55%, rgb(10 10 12 / .3) 100%); }
  .home-hero-inner { padding-block: 160px calc(var(--cut) + 48px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Video feature (poster, silent preview, play button) ---------- */
.video-feature { margin: 2em 0; }
.video-stage { position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.video-poster, .video-ambient { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.video-poster { transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .6s; }
.video-ambient { opacity: 0; transition: opacity .8s; }
.video-feature.is-previewing .video-ambient { opacity: 1; }
.video-feature.is-previewing .video-poster { opacity: 0; }
.video-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 10 12 / .85) 0%, rgb(10 10 12 / .25) 45%, transparent 70%); transition: background-color .3s; }
.video-play { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 18px; padding: clamp(18px, 3vw, 32px); color: var(--white); text-decoration: none; }
.video-play-icon { position: relative; flex: none; width: clamp(58px, 6vw, 78px); aspect-ratio: 1; background: var(--red); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); transition: background-color .2s, transform .25s; }
.video-play-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 34%; height: 38%; background: var(--white); clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.video-play-icon::before { content: ""; position: absolute; inset: -10px; border: 2px solid var(--gold); clip-path: inherit; opacity: 0; }
.video-play-text { display: grid; gap: 6px; min-width: 0; }
.video-play-label { font: 700 12px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.video-title { font: 800 clamp(22px, 2.6vw, 34px)/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.video-duration { position: absolute; top: 14px; right: 14px; padding: 5px 9px; background: rgb(10 10 12 / .8); color: var(--white); font: 700 13px var(--font-body); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.video-feature figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: var(--black); transform: scale(1.08); }
.video-play:hover ~ .video-poster, .video-stage:hover .video-poster { transform: scale(1.04); }
.video-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .video-play-icon::before { animation: play-ring 2.4s ease-out infinite; }
  @keyframes play-ring { 0% { opacity: .9; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
}

/* Full-width cinematic band */
.video-band { margin: 0; }
.video-feature--band { margin: 0; }
.video-feature--band .video-stage { aspect-ratio: auto; height: clamp(360px, 56vw, 720px); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.video-feature--band .video-play { padding: calc(var(--cut) + 32px) max(var(--gutter), calc((100vw - var(--site-width)) / 2)); }
.video-feature--band .video-title { font-size: clamp(34px, 5vw, 72px); max-width: 16ch; }
.video-feature--band .video-duration { top: calc(var(--cut) + 12px); right: max(var(--gutter), calc((100vw - var(--site-width)) / 2)); }

/* ---------- Player / lightbox dialog ---------- */
.has-dialog { overflow: hidden; }
.media-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(56px, 8vh, 88px) clamp(12px, 5vw, 80px) 56px; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.media-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 14px; }
.media-dialog::backdrop { background: rgb(8 8 10 / .94); }
.media-dialog-frame { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.media-dialog[data-kind="video"] .media-dialog-frame > * { width: min(100%, calc((100dvh - 180px) * 16 / 9), 1400px); aspect-ratio: 16 / 9; height: auto; border: 0; background: var(--black); }
.media-dialog[data-kind="photo"] .media-dialog-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.media-dialog-caption { margin: 0; font: 800 22px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.media-dialog-close { position: absolute; top: 16px; right: clamp(12px, 3vw, 32px); display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border: 0; background: var(--red); color: var(--white); font: 800 16px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.media-dialog-close:hover { background: var(--white); color: var(--black); }
.media-dialog-nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; border: 0; background: rgb(255 255 255 / .1); color: var(--white); font: 700 34px/1 var(--font-display); cursor: pointer; }
.media-dialog-nav:hover { background: var(--red); }
.media-dialog-nav--prev { left: clamp(6px, 2vw, 24px); } .media-dialog-nav--next { right: clamp(6px, 2vw, 24px); }
.gallery a { cursor: zoom-in; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
  .reveal.is-in { opacity: 1; transform: none; }
  .home-hero-img, .page-hero-img { animation: slow-push 14s ease-out both; }
  @keyframes slow-push { from { transform: scale(1.08); } to { transform: scale(1); } }
  .home-hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero-inner > :nth-child(2) { animation-delay: .08s; }
  .home-hero-inner > :nth-child(3) { animation-delay: .16s; }
  .home-hero-inner > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
.masthead-inner { transition: min-height .25s; }
.is-scrolled .masthead-inner { min-height: 66px; }
.is-scrolled .masthead { box-shadow: 0 6px 20px rgb(0 0 0 / .08); }
.logo img { transition: width .25s; }
.is-scrolled .logo img { width: clamp(150px, 15vw, 180px); }

/* ---------- Tables in page text (schedules, price lists) ---------- */
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th, .prose tr:first-child > th { background: var(--black); color: var(--white); font: 800 15px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; border: 0; }
.prose tbody tr:nth-child(even) { background: var(--ice); }
.prose .table-scroll, .prose table { display: block; overflow-x: auto; }
@media (min-width: 700px) { .prose table { display: table; } }

/* Multi-paragraph quotes */
.quote p + p { margin-top: .8em; }

/* ---------- Image pair (two images side by side, uncropped) ---------- */
.image-pair { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; margin: 2em 0; }
.image-pair img { width: 100%; }

/* ---------- Logo grid (partners, schools): uncropped, not links to the file ---------- */
.logos { list-style: none; margin: 2em 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.logos li { min-width: 0; }
.logos li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.logos img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Name groups (recipients by school) ---------- */
.name-groups { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.name-group { padding-top: 14px; border-top: 3px solid var(--red); }
.name-group-title { font-size: 26px; margin-bottom: 8px; }
.name-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }

/* Responsive images arrive wrapped in <picture>; let the <img> keep its layout role */
picture { display: contents; }
picture > source { display: none; } /* otherwise counted as grid/flex items */

/* ---------- Homepage: Foundation Report showcase ---------- */
.report-feature { position: relative; isolation: isolate; overflow: hidden; margin-top: 14px; padding-block: calc(var(--band-space) + var(--cut)) calc(var(--band-space) + var(--cut) * .5); background: var(--black); color: var(--white); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 calc(100% - var(--cut))); }
.report-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 22% 55%, rgb(200 16 46 / .55), transparent 70%), radial-gradient(40% 60% at 90% 10%, rgb(241 190 72 / .12), transparent 70%); }
.report-feature-inner { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .report-feature-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.report-feature-inner > * { min-width: 0; }

.report-cover { position: relative; display: block; justify-self: center; width: min(100%, 420px); perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.report-cover img { position: relative; width: 100%; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg); transform-style: preserve-3d; box-shadow: 0 40px 80px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .08); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.report-cover-sheets, .report-cover-sheets::before { position: absolute; inset: 0; background: #f4f1ea; box-shadow: 0 20px 40px rgb(0 0 0 / .4); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.report-cover-sheets { transform: rotate(4deg) translate(14px, 8px); }
.report-cover-sheets::before { content: ""; background: var(--gold); transform: rotate(-5deg) translate(-18px, 14px); z-index: -1; }
.report-cover:hover img, .report-cover:focus-visible img { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(0deg) translateY(-8px); box-shadow: 0 60px 100px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .12); }
.report-cover:hover .report-cover-sheets { transform: rotate(7deg) translate(26px, 10px); }
.report-cover:hover .report-cover-sheets::before { transform: rotate(-9deg) translate(-30px, 16px); }
.report-cover.is-tilting img { transition-duration: .12s; }

.report-title { font-size: clamp(56px, 8vw, 112px); line-height: .88; margin: 0 0 18px; }
.report-text { max-width: 40ch; font-size: clamp(18px, 1.8vw, 21px); color: #d9dbe0; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 30px 0 36px; }
.report-download { display: inline-flex; align-items: baseline; gap: 10px; color: var(--white); font: 800 18px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
.report-download span { font: 600 12px var(--font-body); letter-spacing: .1em; color: #9ea3ab; }
.report-download:hover { color: var(--gold); }

/* Compact video card, used inside a text column */
.video-feature--compact { max-width: 420px; margin: 0; }
.video-feature--compact .video-play { gap: 14px; padding: 16px; }
.video-feature--compact .video-play-icon { width: 52px; }
.video-feature--compact .video-title { font-size: 22px; }
.video-feature--compact .video-stage { box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
.report-feature .video-feature--compact { border-top: 1px solid #2c2c2f; padding-top: 28px; }
@media (prefers-reduced-motion: reduce) { .report-cover img, .report-cover-sheets, .report-cover-sheets::before { transition: none; } }

/* ---------- Donations list (Community Grant Program) ---------- */
.donations-summary { margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: #2c2c2f; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.donations-summary > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 26px 28px 30px; background: var(--black); color: var(--white); }
.donations-summary dt { font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #b9bcc2; }
.donations-summary dd { margin: 0; font: 800 clamp(44px, 5vw, 68px)/.9 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }

.donations-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.donations-search { flex: 1 1 280px; position: relative; }
.donations-search input { width: 100%; padding: 14px 16px 14px 46px; border: 2px solid var(--line); background: var(--white); font: 500 16px var(--font-body); color: var(--text); border-radius: 0; }
.donations-search input:focus { outline: none; border-color: var(--red); }
.donations-search::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; border: 2px solid var(--muted); border-radius: 50%; box-sizing: border-box; }
.donations-search::after { content: ""; position: absolute; left: 29px; top: calc(50% + 6px); width: 7px; height: 2px; background: var(--muted); rotate: 45deg; }
.donations-sort { display: inline-flex; box-shadow: inset 0 0 0 2px var(--text); }
.donations-sort button { padding: 12px 18px; border: 0; background: transparent; color: var(--text); font: 800 15px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.donations-sort button[aria-pressed="true"] { background: var(--text); color: var(--white); }
.donations-count { margin: 0; font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.donation-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 28px; }
@media (min-width: 900px) { .donation-list { grid-template-columns: 1fr 1fr; } }
.donation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding: 14px 18px 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.donation-org { font-weight: 600; line-height: 1.35; }
.donation-amount { font: 800 26px/1 var(--font-display); color: var(--red); font-variant-numeric: tabular-nums; }
.donation-bar { grid-column: 1 / -1; height: 4px; background: var(--ice); }
.donation-bar span { display: block; height: 100%; width: var(--share, 0%); background: var(--red); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.donations:not(.is-enhanced) .donation-bar { display: none; }
.donation[hidden] { display: none; }
.donations-empty { margin: 20px 0 0; padding: 20px; background: var(--white); text-align: center; color: var(--muted); }
.donations-more { margin: 24px 0 0; text-align: center; }

/* ---------- Video banner (page opens on a video) ---------- */
.page-hero--video { margin: 4px 0 0; min-height: clamp(460px, 58vw, 720px); }
.page-hero--video .video-ambient { z-index: -2; }
.page-hero--video::before { background: linear-gradient(90deg, rgb(10 10 12 / .85) 0%, rgb(10 10 12 / .45) 45%, rgb(10 10 12 / .1) 80%), linear-gradient(0deg, rgb(10 10 12 / .7), transparent 55%); }
.page-hero--video .video-play { position: static; display: inline-flex; align-items: center; margin-top: 32px; padding: 0; }
.page-hero--video .video-title { font-size: clamp(20px, 2vw, 26px); }
.page-hero--video .video-play:hover .video-play-icon { background: var(--white); }
.page-hero--video .video-play:hover .video-play-icon::after { background: var(--red); }

/* ---------- Sport Zones ---------- */
.sz-logo::before { background: var(--gold); }
.sz-logo { max-width: 520px; }
.sz-headline { font-size: clamp(30px, 3.4vw, 48px); line-height: 1; margin: 0; }
.sz-announce .stats { margin-top: clamp(40px, 5vw, 64px); }
.sz-intro { margin-bottom: clamp(28px, 4vw, 44px); }

.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: zone; }
@media (min-width: 1140px) { .zones { grid-template-columns: repeat(4, 1fr); } }
.zone { display: flex; flex-direction: column; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.zone-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--black); }
.zone-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.zone-media:hover img { transform: scale(1.05); }
.zone-media::after { content: "⤢"; position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; background: rgb(10 10 12 / .7); color: var(--white); font-size: 18px; opacity: 0; transition: opacity .2s; }
.zone-media:hover::after, .zone-media:focus-visible::after { opacity: 1; }
.zone-media--tbd { display: grid; place-items: center; background: var(--black) radial-gradient(70% 90% at 50% 100%, rgb(200 16 46 / .5), transparent 70%); }
.zone-media--tbd span { font: 800 140px/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--gold); }
.zone-body { position: relative; flex: 1; padding: 20px 20px 22px; border-top: 5px solid var(--red); }
.zone--tbd .zone-body { border-top-color: var(--gold); }
.zone-step { font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.zone-name { font-size: clamp(26px, 2.4vw, 32px); margin: 6px 0 10px; }
.zone-when { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; }
.zone-when span { padding: 4px 9px; background: var(--gold); color: var(--black); font: 700 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }

.sz-mandate { align-items: center; }
.sz-mandate .logos { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Fact panel (aside with label/value pairs) ---------- */
.facts dl { margin: 0 0 24px; display: grid; gap: 0; }
.facts dl > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #2c2c2f; }
.facts dl > div:first-child { padding-top: 0; }
.facts dt { font: 700 11px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #9ea3ab; }
.facts dd { margin: 0; font: 800 24px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.facts-subtitle { margin: 6px 0 10px; font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.facts-schedule { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.facts-schedule span { display: block; font-weight: 700; color: var(--white); }
.facts-closing { margin: 0; font-size: 15px; color: #c9ccd2; }
.split aside.facts { text-align: left; }

/* ---------- Johnny's Elites ---------- */
.je-logo { margin-bottom: 28px; padding: clamp(16px, 2vw, 24px); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.components { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.components li { position: relative; padding: 28px 26px 30px; background: var(--white); border-top: 5px solid var(--red); }
.component-num { display: block; font: 800 64px/.9 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--red); margin-bottom: 14px; }
.components h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.components p { margin: 10px 0 0; color: var(--muted); }
.coach .feature-media { max-width: 420px; }
.coach .feature-media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.coach-name { font-size: clamp(48px, 7vw, 96px); line-height: .9; margin: 0 0 22px; }
.coach-medals { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font: 800 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.coach-medals span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--black); font-size: 44px; box-shadow: inset 0 0 0 4px rgb(0 0 0 / .12); }
.cta-band { position: relative; isolation: isolate; background: var(--black); color: var(--white); padding-block: clamp(48px, 7vw, 80px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 140% at 100% 50%, rgb(200 16 46 / .55), transparent 70%); }
.cta-band-title { color: var(--white); }
.cta-band .button--light:hover { --button-bg: var(--gold); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band-title { margin: 0 0 8px; font: 800 clamp(30px, 3.6vw, 48px)/1 var(--font-display); text-transform: uppercase; max-width: 22ch; }
.cta-band-text { margin: 0; opacity: .9; }

/* ---------- Crowchild Classic ---------- */
.gameday { position: relative; z-index: 1; margin-top: calc(var(--cut) * -1.2); }
.gameday-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: #2c2c2f; box-shadow: 0 24px 48px rgb(0 0 0 / .25); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.gameday-list > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 24px 26px 28px; background: var(--black); color: var(--white); }
.gameday-list > div:nth-child(odd) { background: var(--coal); }
.gameday-list dt { font: 700 11px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #9ea3ab; }
.gameday-list dd { margin: 0; font: 800 clamp(28px, 3vw, 40px)/.95 var(--font-display); text-transform: uppercase; color: var(--gold); }
.page-hero + .gameday + .band { padding-top: calc(var(--band-space) * .8); }
@media (min-width: 860px) { .feature.cc-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.cc-logo { justify-self: center; max-width: 380px; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .18)); }
.cc-tickets-intro { margin-bottom: clamp(24px, 3vw, 36px); }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ticket a { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; color: var(--white); text-decoration: none; background: var(--black); }
.ticket img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.ticket a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 10 12 / .9), rgb(10 10 12 / .1) 65%); }
.ticket a:hover img { transform: scale(1.05); }
.ticket-body { display: grid; gap: 4px; padding: 24px; }
.ticket-school { font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ticket-team { font: 800 clamp(34px, 3.6vw, 48px)/.95 var(--font-display); text-transform: uppercase; }
.ticket-team::after { content: " →"; color: var(--gold); }
.ticket-status { position: absolute; top: 16px; left: 16px; padding: 7px 12px; background: var(--red); font: 800 15px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ---------- Board of Directors ---------- */
.officers { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.officer { position: relative; display: grid; gap: 6px; padding: 30px 28px 32px; background: var(--black); color: var(--white); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); overflow: hidden; }
.officer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stripe); }
.officer-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; background: var(--red); font: 800 26px/1 var(--font-display); letter-spacing: .04em; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.officer-role { font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.officer-name { font: 800 clamp(34px, 3.4vw, 46px)/.95 var(--font-display); text-transform: uppercase; }
.directors { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.director { display: grid; gap: 4px; align-content: start; padding: 22px 22px 24px; background: var(--white); border-left: 4px solid var(--red); }
.director-name { font: 800 28px/1 var(--font-display); text-transform: uppercase; margin-bottom: 6px; }
.director-role { font-weight: 700; }
.director-org { color: var(--muted); font-size: 15px; line-height: 1.45; }
.governance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; box-shadow: inset 0 0 0 1px var(--line); }
.governance-cra { margin: 0; font: 800 22px/1.2 var(--font-display); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.governance-cra span { display: block; font: 700 11px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.governance-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.governance-links a { font: 800 18px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.governance-links a:hover { color: var(--red); }
.seating-map a { display: block; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgb(0 0 0 / .08); cursor: zoom-in; }
.seating-map img { width: 100%; }

/* ---------- Site search ---------- */
.search-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.search-toggle svg { width: 22px; height: 22px; }
.search-toggle:hover { color: var(--red); }
@media (min-width: 1140px) { .search-toggle { order: 3; margin-left: -8px; } }
@media (max-width: 1139.98px) { .search-toggle { margin-right: 4px; } }

.search-dialog { width: min(100vw - 24px, 860px); max-height: min(100dvh - 48px, 820px); margin: 24px auto auto; padding: 0; border: 0; background: var(--white); color: var(--text); box-shadow: 0 40px 100px rgb(0 0 0 / .45); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgb(8 8 10 / .8); }
.search-form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--black); }
.search-form input { flex: 1; min-width: 0; padding: 14px 16px; border: 0; background: var(--white); font: 600 18px var(--font-body); color: var(--text); border-radius: 0; }
.search-form input:focus { outline: 3px solid var(--gold); outline-offset: 0; }
.search-close { flex: none; padding: 12px 16px; border: 0; background: var(--red); color: var(--white); font: 800 15px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.search-filters { display: flex; gap: 6px; padding: 14px 18px 0; }
.search-filters button { padding: 8px 14px; border: 0; background: var(--ice); font: 700 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text); cursor: pointer; }
.search-filters button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.search-status { margin: 0; padding: 12px 18px 6px; font: 600 13px var(--font-body); color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 4px 10px 16px; overflow-y: auto; }
.search-result { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px 8px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.search-result:hover, .search-result:focus-visible { background: var(--ice); }
.search-result img, .search-result-noimg { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--black) linear-gradient(135deg, transparent 45%, var(--red) 45% 55%, transparent 55%); }
.search-result-body { display: grid; gap: 4px; min-width: 0; }
.search-result-type { font: 700 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.search-result-title { font: 800 22px/1 var(--font-display); text-transform: uppercase; }
.search-result-excerpt { font-size: 14px; line-height: 1.5; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result-excerpt mark { background: rgb(241 190 72 / .45); color: inherit; padding: 0 1px; }
@media (max-width: 560px) { .search-result { grid-template-columns: 72px minmax(0, 1fr); } .search-result img, .search-result-noimg { width: 72px; } }

/* ---------- Contact card (Contact and Donate pages) ---------- */
.contact-card { position: relative; isolation: isolate; margin-top: clamp(32px, 4vw, 48px); padding: clamp(28px, 4vw, 44px); background: var(--black); color: var(--white); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 140% at 100% 0%, rgb(200 16 46 / .55), transparent 70%); }
.contact-card-title { margin: 0 0 22px; font: 800 clamp(28px, 4vw, 52px)/1 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.contact-card-title a { color: var(--white); text-decoration: none; border-bottom: 3px solid var(--gold); }
.contact-card-title a:hover { color: var(--gold); }
.contact-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.contact-card-alt { margin: 18px 0 0; color: #c9ccd2; }
.contact-card-alt a { color: var(--gold); }

/* ---------- Golf Classic thank-you ---------- */
.golf-thanks-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .golf-thanks-grid { grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); } }
.golf-thanks-grid > * { min-width: 0; }
.golf-raised { display: grid; gap: 8px; padding: clamp(28px, 4vw, 44px); background: var(--black); color: var(--white); text-align: center; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.golf-raised-label { font: 700 12px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #9ea3ab; }
.golf-raised { container-type: inline-size; }
.golf-raised-amount { font: 800 clamp(40px, 21cqi, 104px)/.9 var(--font-display); white-space: nowrap; color: var(--gold); font-variant-numeric: tabular-nums; }
.golf-raised-note { font: 800 20px/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }

/* Letter-style thank-you, in the site's display and body faces */
.thanks-letter { position: relative; padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px) clamp(32px, 4vw, 48px); background: var(--white); box-shadow: 0 30px 60px rgb(0 0 0 / .08); border-top: 6px solid transparent; border-image: var(--stripe) 1; }
.thanks-letter::before { content: "“"; position: absolute; top: -26px; right: clamp(20px, 4vw, 48px); font: 800 clamp(150px, 16vw, 230px)/1 var(--font-display); color: var(--gold); opacity: .35; pointer-events: none; }
.thanks-title { position: relative; margin: 0 0 clamp(20px, 3vw, 32px); font-size: clamp(34px, 4.4vw, 60px); line-height: .95; }
.thanks-body { position: relative; margin: 0; max-width: 62ch; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; }
.thanks-kicker { font-weight: 800; color: var(--red); }
.thanks-sign { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line); }
.thanks-sign p { margin: 0; font: 800 clamp(26px, 3vw, 38px)/1 var(--font-display); text-transform: uppercase; color: var(--red); }
.thanks-sign img { flex: none; width: 36px; height: 36px; }
.golf-thanks .golf-raised { align-self: stretch; align-content: center; }

/* ---------- Download button (file type and size) ---------- */
.download-row { margin: 22px 0 0; }
.download { display: inline-flex; align-items: center; gap: 16px; padding: 10px 22px 10px 10px; background: var(--white); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 2px var(--text); transition: background-color .15s, color .15s, box-shadow .15s; }
.download-icon { position: relative; flex: none; width: 46px; height: 46px; background: var(--red); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background-color .15s; }
.download-icon::before { content: ""; position: absolute; left: 50%; top: 11px; width: 3px; height: 15px; margin-left: -1.5px; background: var(--white); }
.download-icon::after { content: ""; position: absolute; left: 50%; top: 20px; width: 11px; height: 11px; margin-left: -6.5px; border-right: 3px solid var(--white); border-bottom: 3px solid var(--white); rotate: 45deg; }
.download-text { display: grid; gap: 3px; min-width: 0; text-align: left; }
.download-label { font: 800 19px/1.05 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.download-meta { font: 700 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.download:hover, .download:focus-visible { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 2px var(--black); }
.download:hover .download-meta, .download:focus-visible .download-meta { color: #b9bcc2; }
.download:hover .download-icon { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .download:hover .download-icon::after, .download:hover .download-icon::before { translate: 0 2px; transition: translate .15s; } }

/* ---------- Flames Poker Tournament ---------- */
.poker-intro { align-items: stretch; }
.poker-wordmark { display: grid; place-items: center; height: 100%; min-height: 220px; padding: clamp(20px, 3vw, 40px); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.poker-record { position: relative; display: grid; align-content: center; gap: 8px; overflow: hidden; }
.poker-record-suit { position: absolute; right: -10px; bottom: -40px; font-size: 200px; line-height: 1; color: rgb(255 255 255 / .06); pointer-events: none; }
.poker-record-label { font: 700 12px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.poker-record-amount { font: 800 clamp(56px, 7vw, 96px)/.9 var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; }
.poker-record-note { font: 800 20px/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #c9ccd2; }

.poker-hand { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: clamp(12px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.poker-card a { position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; aspect-ratio: 5 / 7; padding: 26px 18px; background: var(--white); color: var(--black); text-decoration: none; border-radius: 12px; box-shadow: 0 1px 0 var(--line), 0 14px 30px rgb(0 0 0 / .1); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.poker-card--red a { color: var(--red); }
.poker-card a::after { content: ""; position: absolute; inset: 8px; border: 1px solid currentColor; border-radius: 8px; opacity: .18; pointer-events: none; }
.poker-card-corner { position: absolute; top: 14px; left: 16px; font: 800 18px/1 var(--font-display); text-align: center; }
.poker-card-corner--end { top: auto; left: auto; bottom: 14px; right: 16px; rotate: 180deg; font-size: 22px; }
.poker-card-amount { font: 800 clamp(34px, 3.4vw, 46px)/.95 var(--font-display); font-variant-numeric: tabular-nums; color: var(--black); }
.poker-card-year { font: 700 11px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.poker-card-bar { width: 70%; height: 6px; margin-top: 10px; background: var(--ice); border-radius: 3px; overflow: hidden; }
.poker-card-bar span { display: block; height: 100%; width: var(--share, 0%); background: currentColor; border-radius: 3px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.poker-card-badge { position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 6px 12px; background: var(--gold); color: var(--black); font: 800 13px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.poker-card--record a { box-shadow: 0 0 0 3px var(--gold), 0 20px 40px rgb(0 0 0 / .16); }
@media (prefers-reduced-motion: no-preference) {
  .poker-card a:hover, .poker-card a:focus-visible { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 0 0 2px var(--red), 0 26px 50px rgb(0 0 0 / .18); }
  .poker-card--record a:hover { box-shadow: 0 0 0 3px var(--gold), 0 26px 50px rgb(0 0 0 / .2); }
}
.poker-sponsors { max-width: 820px; }

/* ---------- Uncorked for ALS (event palette from its watercolour mark) ---------- */
.theme-uncorked { --uc: #b0156e; --uc-deep: #5c0b3a; --uc-soft: #f6e6f0; }
.theme-uncorked .page-hero::before { background: linear-gradient(0deg, rgb(40 6 26 / .88) 0%, rgb(40 6 26 / .35) 55%, rgb(40 6 26 / .1) 100%); }
.uc-result { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--uc-deep); padding-block: clamp(56px, 8vw, 96px); }
.uc-result::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 55% at 18% 40%, rgb(214 40 140 / .75), transparent 70%), radial-gradient(35% 50% at 62% 80%, rgb(150 20 110 / .8), transparent 70%), radial-gradient(30% 40% at 88% 18%, rgb(255 120 190 / .35), transparent 70%); filter: blur(10px); }
.uc-result-inner { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .uc-result-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.uc-result-inner > * { min-width: 0; }
.uc-result-title { margin: 0 0 18px; font-size: clamp(40px, 5vw, 64px); }
.uc-result-title span { display: block; font-size: clamp(72px, 10vw, 140px); line-height: .85; color: var(--white); }
.uc-result-text { max-width: 48ch; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: #f3dce9; }
.uc-beneficiaries { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.uc-beneficiaries li { padding: 9px 14px; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); font: 800 16px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.uc-watch { position: relative; display: block; overflow: hidden; aspect-ratio: 13 / 6; color: var(--white); text-decoration: none; box-shadow: 0 30px 60px rgb(0 0 0 / .35); }
.uc-watch img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.uc-watch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 4 14 / .75), transparent 60%); }
.uc-watch-play { position: absolute; z-index: 1; left: 20px; bottom: 20px; width: 58px; height: 58px; background: var(--white); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.uc-watch-play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 34%; height: 38%; background: var(--uc); clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.uc-watch-label { position: absolute; z-index: 1; left: 94px; bottom: 26px; font: 800 26px/1 var(--font-display); text-transform: uppercase; }
.uc-watch-label span { display: block; margin-top: 4px; font: 700 11px var(--font-body); letter-spacing: .16em; color: #f3dce9; }
.uc-watch:hover img { transform: scale(1.05); }

.uc-logo { width: min(100%, 240px); margin-bottom: 28px; }
.theme-uncorked .facts dt { color: #e9b8d4; }
.theme-uncorked .split aside { background: var(--uc-deep); }
.theme-uncorked .aside-title { color: #ffb3dc; }

.uc-story { background: var(--uc-soft); padding-block: clamp(56px, 8vw, 104px); overflow-x: clip; }
.uc-story-inner { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .uc-story-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.uc-story-inner > * { min-width: 0; }
.uc-story-photo { margin: 0; position: relative; }
.uc-story-photo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgb(176 21 110 / .35), transparent 70%); }
.uc-story-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; box-shadow: 0 24px 50px rgb(92 11 58 / .25); }
.uc-quote { position: relative; margin: 0; }
.uc-quote::before { content: "“"; position: absolute; top: -70px; left: -10px; font: 800 200px/1 var(--font-display); color: var(--uc); opacity: .25; }
.uc-quote-lead { position: relative; margin: 0 0 20px; font: 800 clamp(34px, 4.2vw, 58px)/.95 var(--font-display); text-transform: uppercase; color: var(--uc-deep); }
.uc-quote p:not(.uc-quote-lead) { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.65; }
.uc-quote footer { margin-top: 20px; font: 800 22px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--uc); }
.uc-quote footer::before { content: "— "; }

/* Document page previews (any PDF rendered to images) */
.doc-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.doc-pages a { position: relative; display: block; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 16px 34px rgb(0 0 0 / .1); cursor: zoom-in; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.doc-pages img { width: 100%; aspect-ratio: 1400 / 1812; object-fit: cover; }
.doc-page-num { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: var(--black); color: var(--white); font: 700 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) { .doc-pages a:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 26px 50px rgb(0 0 0 / .16); } }
.theme-uncorked .download-icon { background: var(--uc); }
.theme-uncorked .eyebrow:not(.eyebrow--light) { color: var(--uc); }
.theme-uncorked .mission { background: var(--uc-deep); }
.theme-uncorked .mission .button--light { --button-fg: var(--uc-deep); }

/* ---------- Internal links: section label, related news, more in section ---------- */
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.related-news { padding-top: var(--band-space); }
.more-in-section { padding-block: clamp(40px, 5vw, 64px); }
.more-title { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 18px; }
.more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more-list a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--white); color: var(--text); font: 800 17px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s, color .15s; }
.more-list a:hover { background: var(--black); color: var(--white); }
.more-list a span { color: var(--red); }
.more-list .more-hub { background: var(--black); color: var(--white); }
.more-list .more-hub span { color: var(--gold); }

/* ---------- HTML site map ---------- */
.sitemap-groups { display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sitemap-group { padding-top: 14px; border-top: 3px solid var(--red); }
.sitemap-title { font-size: 26px; margin-bottom: 12px; }
.sitemap-title a { color: inherit; text-decoration: none; }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitemap-group a { color: var(--text); }
.sitemap-group a:hover { color: var(--red); }
.sitemap-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.post-pager { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 28px; }
.post-pager-link { display: grid; gap: 6px; padding: 18px 20px; background: var(--ice); color: var(--text); font: 800 20px/1.05 var(--font-display); text-transform: uppercase; text-decoration: none; border-left: 4px solid var(--red); }
.post-pager-link span { font: 700 11px var(--font-body); letter-spacing: .16em; color: var(--red); }
.post-pager-link--next { text-align: right; border-left: 0; border-right: 4px solid var(--red); }
.post-pager-link:hover { background: var(--black); color: var(--white); }
