/* DEMPS151 — public site styles (v0.1.0)
   Colours, fonts, glow and radius come from CSS variables generated from the admin
   "Appearance" settings (see src/helpers.js → themeCss). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); text-transform: var(--tt-body);
  font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-primary); color: var(--c-button-text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--c-muted); }
[hidden] { display: none !important; }

/* ---------- Glow system ---------- */
:root {
  --g-text: 0 0 calc(14px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.65 * var(--glow)));
  --g-box: 0 0 calc(28px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.28 * var(--glow)));
  --g-box-strong: 0 0 calc(36px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.55 * var(--glow)));
  --header-h: 84px;
}
[data-theme="light"] {
  --g-text: 0 0 calc(10px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.25 * var(--glow)));
  --g-box: 0 6px 24px rgba(20, 32, 42, 0.08), 0 0 calc(22px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.12 * var(--glow)));
  --g-box-strong: 0 8px 30px rgba(20, 32, 42, 0.12), 0 0 calc(28px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.25 * var(--glow)));
}
.glow-img { filter: drop-shadow(0 0 calc(24px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.45 * var(--glow)))); }
[data-theme="light"] .glow-img { filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18)); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .page-title, .section-title {
  font-family: var(--font-heading); text-transform: var(--tt-heading);
  color: var(--c-heading); line-height: 1.15; font-weight: 400; letter-spacing: 0.02em;
  margin: 0 0 0.6em;
}
.page-title, .section-title { text-shadow: var(--g-text); }
.page-title { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 0.5em; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 70ch; margin: -0.25em 0 1.75em; }
.prose { max-width: 75ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--c-primary); font-weight: 600; }
[data-theme="light"] .prose strong { color: var(--c-text); }
.prose img { border-radius: calc(var(--radius) * 0.7); margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 0.4em 1em; border-left: 3px solid var(--c-primary); color: var(--c-muted); }
.mini-title { font-size: 0.95rem; color: var(--c-muted); margin: 1.4em 0 0.7em; }

/* ---------- Background ---------- */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--c-bg); }
.site-bg--scroll { position: absolute; height: 100%; }
.site-bg__img { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(var(--bg-blur)); }
.site-bg__media, .site-bg__frame, .site-bg__fx { position: absolute; inset: 0; }
.site-bg__media { width: 100%; height: 100%; object-fit: cover; }
.site-bg__frame iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.site-bg__overlay { position: absolute; inset: 0; background: rgba(var(--c-bg-rgb), var(--bg-overlay)); }
[data-theme="light"] .site-bg__overlay { background: rgba(var(--c-bg-rgb), calc(0.35 + var(--bg-overlay) * 0.6)); }

/* ---------- Panels & buttons ---------- */
.panel {
  background: rgba(var(--c-surface-rgb), 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(var(--c-primary-rgb), 0.16);
  border-radius: var(--radius); padding: clamp(18px, 2.4vw, 32px);
  box-shadow: var(--g-box);
}
[data-theme="light"] .panel { background: rgba(var(--c-surface-rgb), 0.86); border-color: rgba(var(--c-primary-rgb), 0.18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-button); text-transform: var(--tt-button); letter-spacing: 0.04em;
  font-size: 0.95rem; line-height: 1; padding: 0.9em 1.5em; border-radius: calc(var(--radius) * 0.7);
  border: 2px solid var(--c-button); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-button); color: var(--c-button-text); box-shadow: var(--g-box-strong); }
.btn--primary:hover { box-shadow: 0 0 calc(48px * var(--glow)) rgba(var(--c-button-rgb), calc(0.7 * var(--glow))); }
.btn--outline { background: rgba(var(--c-bg-rgb), 0.35); color: var(--c-button); }
[data-theme="light"] .btn--outline { color: var(--c-primary); border-color: var(--c-primary); background: rgba(255,255,255,.6); }
.btn--outline:hover { background: var(--c-button); color: var(--c-button-text); box-shadow: var(--g-box-strong); }
.btn--ghost { border-color: transparent; color: var(--c-primary); background: transparent; }
.btn--ghost:hover { border-color: rgba(var(--c-primary-rgb), 0.4); }
.btn--sm { font-size: 0.8rem; padding: 0.7em 1.1em; }
.btn--lg { font-size: 1.05rem; padding: 1.05em 1.8em; }
.btn--live { background: rgba(var(--c-bg-rgb), 0.4); color: var(--c-button); }

.pill { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; padding: 0.35em 0.8em; border-radius: 99px; background: rgba(var(--c-muted-rgb), 0.18); color: var(--c-muted); }
.pill--live { background: var(--c-live); color: #fff; box-shadow: 0 0 calc(20px * var(--glow)) rgba(var(--c-live-rgb), 0.7); }
.pill--accent { background: rgba(var(--c-primary-rgb), 0.15); color: var(--c-primary); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.chip { padding: 0.4em 0.9em; border-radius: 99px; text-decoration: none; font-size: 0.85rem; border: 1px solid rgba(var(--c-primary-rgb), 0.35); background: rgba(var(--c-surface-rgb), 0.6); color: var(--c-text); }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--c-bg-rgb), 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.18);
  box-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--c-primary-rgb), calc(0.12 * var(--glow)));
}
[data-theme="light"] .site-header { background: rgba(var(--c-surface-rgb), 0.82); }
.site-header__inner { max-width: var(--header-max, 1920px); margin: 0 auto; padding: 10px var(--header-pad, clamp(16px, 2vw, 32px)); display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-logo { flex: 0 0 auto; display: block; }
.site-logo img { width: clamp(150px, 13vw, 210px); height: auto; }
.site-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; }
/* Menu items are spread evenly across the space between the logo and the theme/Twitch
   buttons, however many pages are enabled. The font size is fitted to that space:
   --nav-chars / --nav-count (set by the server) give a first estimate before JS runs,
   then site.js measures the real text and sets --nav-fs exactly. */
.site-nav ul {
  /* --nav-gutter: breathing room between the menu and the logo / buttons on each side */
  --nav-gutter: clamp(8px, calc((100vw - 1300px) * 0.3), 64px); /* narrower on laptops so the menu still fits on one line */
  flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0 var(--nav-gutter);
  display: flex; flex-wrap: nowrap; justify-content: space-evenly; align-items: center; gap: 0;
  --nav-fs-est: clamp(10px, calc((min(100vw, 1920px) - 400px - 2 * var(--nav-gutter)) * 0.94 / (var(--nav-chars, 88) * 0.9 + var(--nav-count, 12) * 0.6)), 18px);
}
.site-nav li { flex: 0 0 auto; }
.site-nav a {
  display: block; padding: 0.55em 0.3em; border-radius: 8px;
  font-family: var(--font-nav); text-transform: var(--tt-nav); letter-spacing: 0.02em; font-size: var(--nav-fs, var(--nav-fs-est));
  color: var(--c-nav); text-decoration: none; white-space: nowrap; transition: color 0.15s, text-shadow 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a.is-active { text-shadow: var(--g-text); background: rgba(var(--c-primary-rgb), 0.1); }
.site-nav a.is-active { box-shadow: inset 0 -2px 0 var(--c-nav); }
.site-nav__tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.theme-toggle { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(var(--c-nav-rgb), 0.35); background: transparent; color: var(--c-nav); display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { display: none; }
[data-theme-pref="system"] .theme-toggle .ic-sys, [data-theme-pref="dark"] .theme-toggle .ic-dark, [data-theme-pref="light"] .theme-toggle .ic-light { display: block; }

.live-btn {
  display: inline-flex; align-items: center; gap: 0.55em; padding: 0.7em 1.15em; border-radius: 10px;
  font-family: var(--font-button); text-transform: var(--tt-button); letter-spacing: 0.06em; font-size: 0.85rem; line-height: 1;
  text-decoration: none; color: #0e161e; background: #9146ff; color: #fff; border: 2px solid #9146ff;
  box-shadow: 0 0 calc(22px * var(--glow)) rgba(145, 70, 255, calc(0.6 * var(--glow)));
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.live-btn:hover { transform: translateY(-1px); }
.live-btn__dot, .pill .live-btn__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.55; flex: 0 0 auto; }
.live-btn .si { flex: 0 0 auto; }
.is-live.live-btn, .btn--live.is-live {
  background: var(--c-live); border-color: var(--c-live); color: #fff;
  box-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--c-live-rgb), calc(0.85 * var(--glow)));
  animation: livepulse 2s ease-in-out infinite;
}
.is-live .live-btn__dot, .pill--live .live-btn__dot { opacity: 1; background: #fff; animation: blink 1.2s steps(2, start) infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 calc(10px * var(--glow)) rgba(var(--c-live-rgb), 0.4); } }
@keyframes blink { to { visibility: hidden; } }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(var(--c-nav-rgb), 0.35); border-radius: 10px; background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--c-nav); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Not enough room for the menu with the chosen header margins: fall back to narrow margins */
.site-header.is-tight .site-header__inner { padding-left: clamp(16px, 2vw, 32px); padding-right: clamp(16px, 2vw, 32px); max-width: 1920px; }
.site-header.is-tight .site-nav ul { --nav-gutter: 8px; }

/* Hamburger menu: used on phones/tablets, and by site.js whenever the menu
   would need a font smaller than 10px to fit on one line */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow: auto; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px clamp(16px, 4vw, 32px) 24px; background: rgba(var(--c-bg-rgb), 0.97); border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.25); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav ul { flex: none; flex-direction: column; align-items: stretch; padding: 0; }
  .site-nav a { font-size: 1rem !important; padding: 0.8em 0.6em; }
  .site-nav__tools { justify-content: space-between; }
}
.site-header.is-compact .nav-toggle { display: flex; }
.site-header.is-compact .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow: auto; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px clamp(16px, 4vw, 32px) 24px; background: rgba(var(--c-bg-rgb), 0.97); border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.25); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.site-header.is-compact .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.site-header.is-compact .site-nav ul { flex: none; flex-direction: column; align-items: stretch; padding: 0; }
.site-header.is-compact .site-nav a { font-size: 1rem !important; padding: 0.8em 0.6em; }
.site-header.is-compact .site-nav__tools { justify-content: space-between; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.18); }
.hero--small { min-height: 26vh; }
.hero--medium { min-height: 44vh; }
.hero--large { min-height: 68vh; }
.hero--full { min-height: calc(100vh - var(--header-h)); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__frame iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--c-bg-rgb), calc(var(--hero-overlay) * 0.6)) 0%, rgba(var(--c-bg-rgb), var(--hero-overlay)) 70%, rgba(var(--c-bg-rgb), calc(var(--hero-overlay) + 0.25)) 100%); }
.hero__content { width: 100%; max-width: 1200px; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero--left .hero__content { align-items: flex-start; text-align: left; }
.hero--right .hero__content { align-items: flex-end; text-align: right; }
.hero__logo { width: clamp(180px, 22vw, 300px); height: auto; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4.6rem); text-shadow: var(--g-text); margin: 0; }
.hero__subtitle { font-family: var(--font-heading); text-transform: var(--tt-heading); letter-spacing: 0.12em; font-size: clamp(0.95rem, 1.8vw, 1.3rem); margin: 0; color: var(--c-text); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; margin-top: 12px; }
.hero--center .hero__buttons { justify-content: center; }
[data-theme="light"] .hero__subtitle { color: var(--c-text); }

/* ---------- Layout ---------- */
.layout { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.layout--side { max-width: 1560px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.main { min-width: 0; }
.section { padding: clamp(36px, 5vw, 64px) 0 0; }
.main > .section:last-child { padding-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 1100px) {
  .layout--side { grid-template-columns: 1fr; }
}

/* ---------- Home ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.welcome--img-left .welcome__img { order: -1; }
.welcome__img img { width: 100%; max-width: 440px; margin: 0 auto; height: auto; border-radius: var(--radius); }
.network-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.network-chip { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1em; border-radius: 99px; text-decoration: none; color: #fff; background: var(--brand); font-weight: 600; font-size: 0.9rem; transition: transform 0.15s, box-shadow 0.2s; }
.network-chip:hover { transform: translateY(-2px); box-shadow: 0 0 calc(22px * var(--glow)) var(--brand); }
@media (max-width: 820px) { .welcome { grid-template-columns: 1fr; } .welcome__img { order: -1; } .welcome__img img { max-width: 260px; } }
.live-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.live-strip__inner strong { flex: 1 1 260px; }
.panel--live { border-color: rgba(var(--c-live-rgb), 0.5); box-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--c-live-rgb), calc(0.35 * var(--glow))); }

/* ---------- Cards ---------- */
.cards { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 22px; }
.cards--3 { --cols: 3; }
.card, .event-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--c-text);
  background: rgba(var(--c-surface-rgb), 0.78); border: 1px solid rgba(var(--c-primary-rgb), 0.14); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--g-box); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.card:hover, .event-card:hover { transform: translateY(-4px); border-color: rgba(var(--c-primary-rgb), 0.55); box-shadow: var(--g-box-strong); }
.card__img, .event-card__img { position: relative; aspect-ratio: 16/9; background: rgba(var(--c-primary-rgb), 0.06); overflow: hidden; }
.card__img--square { aspect-ratio: 1/1; }
.card__img img, .event-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card__img img, .event-card:hover .event-card__img img { transform: scale(1.05); }
.event-card__img img.is-placeholder { object-fit: contain; padding: 12%; opacity: 0.55; }
.card__body, .event-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3, .card__title, .event-card__title { margin: 0; font-size: 1.12rem; }
.card__body p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }
.card__kicker, .event-card__meta { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); margin: 0; }
.event-card__summary { margin: 0; color: var(--c-muted); }
.event-card__more, .card__more { margin-top: auto; color: var(--c-primary); font-weight: 600; font-size: 0.9rem; padding-top: 8px; }
.event-card__count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; }
@media (max-width: 960px) { .cards, .cards--3 { --cols: 2 !important; } }
@media (max-width: 600px) { .cards, .cards--3 { --cols: 1 !important; } }

/* Events layouts */
.events--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.events--list, .events--timeline { display: flex; flex-direction: column; gap: 18px; }
.events--list .event-card, .events--timeline .event-card { flex-direction: row; }
.events--list .event-card__img, .events--timeline .event-card__img { flex: 0 0 34%; aspect-ratio: auto; min-height: 200px; }
.events--timeline { position: relative; padding-left: 28px; }
.events--timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--c-primary), transparent); box-shadow: var(--g-text); }
.events--timeline .event-card::before { content: ""; position: absolute; left: -27px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-primary); box-shadow: var(--g-box-strong); }
.events--timeline .event-card { position: relative; overflow: visible; }
@media (max-width: 960px) { .events--cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .events--cards { grid-template-columns: 1fr; } .events--list .event-card, .events--timeline .event-card { flex-direction: column; } .events--list .event-card__img, .events--timeline .event-card__img { aspect-ratio: 16/9; min-height: 0; } }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(var(--c-primary-rgb), 0.3); text-decoration: none; }
.pager a.is-active { background: var(--c-primary); color: var(--c-button-text); }
.crumbs { margin: 0 0 12px; font-size: 0.9rem; }
.crumbs a { text-decoration: none; }
.event__media { margin: 0 0 28px; }
.event__cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.event__body { margin-bottom: 24px; }
.event__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Split (logo + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 40px; }
.split:not(:has(.split__logo)) { grid-template-columns: 1fr; }
.split__logo img { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.split__text .section-title { margin-bottom: 0.5em; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split__logo img { max-width: 340px; } }

/* ---------- About ---------- */
.about { text-align: left; }
.about__center { display: grid; place-items: center; margin: 0 0 32px; }
.about__center img { width: min(420px, 80%); height: auto; }
.about__slideshow { margin: 0 0 32px; }
.about__bio--with-imgs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.about__imgs { display: grid; gap: 14px; align-content: start; }
.about__imgs img { border-radius: calc(var(--radius) * 0.7); cursor: zoom-in; width: 100%; }
.about__imgs figcaption { font-size: 0.85rem; color: var(--c-muted); margin-top: 6px; }
.about__imgs figure { margin: 0; }
@media (max-width: 820px) { .about__bio--with-imgs { grid-template-columns: 1fr; } }

/* ---------- Schedule ---------- */
.live-panel { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 28px; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, filter 0.3s; }
.live-panel__thumb { aspect-ratio: 16/9; border-radius: calc(var(--radius) * 0.7); overflow: hidden; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.live-panel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-panel.is-offline .live-panel__thumb img { object-fit: contain; padding: 14%; filter: grayscale(1); opacity: 0.6; }
.live-panel__status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 10px; }
.live-panel__viewers { display: inline-flex; align-items: center; gap: 6px; color: var(--c-live); }
.live-panel__title { font-family: var(--font-body); text-transform: none; font-size: 1.4rem; font-weight: 700; color: var(--c-text); margin: 0 0 6px; text-shadow: none; }
.live-panel__desc { margin: 0 0 16px; }
.live-panel.is-offline { background: rgba(110, 118, 125, 0.28); border-color: rgba(150, 160, 168, 0.3); box-shadow: none; }
[data-theme="light"] .live-panel.is-offline { background: rgba(160, 168, 175, 0.35); }
.live-panel.is-offline .btn--primary { background: #6f7a82; border-color: #6f7a82; color: #fff; box-shadow: none; }
.live-panel.is-live { border-color: rgba(var(--c-live-rgb), 0.6); box-shadow: 0 0 calc(40px * var(--glow)) rgba(var(--c-live-rgb), calc(0.4 * var(--glow))); }
@media (max-width: 760px) { .live-panel { grid-template-columns: 1fr; } }

.schedule__panel { margin-bottom: 40px; }
.schedule__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.schedule__head p { margin: 0; flex: 1 1 320px; }
.schedule__tzline { font-size: 0.9rem; color: var(--c-muted); margin: 14px 0 6px; }
.schedule__tzline strong { color: var(--c-primary); }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.12); vertical-align: middle; }
.schedule-table thead th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.schedule-table tbody th { font-family: var(--font-heading); text-transform: var(--tt-heading); color: var(--c-heading); font-weight: 400; width: 22%; letter-spacing: 0.04em; }
.schedule-table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.schedule-table tr.is-off td { color: var(--c-muted); font-weight: 400; }
.schedule-table tr.is-today { background: rgba(var(--c-primary-rgb), 0.07); }
.schedule-table__bar { width: 38%; }
.daybar { position: relative; height: 12px; border-radius: 6px; background: rgba(var(--c-muted-rgb), 0.18); overflow: hidden; }
.daybar span { position: absolute; top: 0; bottom: 0; background: var(--c-primary); box-shadow: var(--g-text); border-radius: 6px; }
@media (max-width: 640px) { .schedule-table__bar, .schedule-table__bar-h { display: none; } }

.tz-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(var(--c-bg-rgb), 0.5); border: 1px solid rgba(var(--c-primary-rgb), 0.25); font-size: 0.82rem; }
.tz-switch__label { padding: 0 6px; color: var(--c-muted); }
.tz-switch button { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; cursor: pointer; color: var(--c-muted); }
.tz-switch button.is-active { background: var(--c-primary); color: var(--c-button-text); font-weight: 600; }

.vods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vod { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 14px; }
.vod__thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: calc(var(--radius) * 0.6); overflow: hidden; align-self: start; }
.vod__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.vod__thumb:hover img { transform: scale(1.06); }
.vod__dur { position: absolute; right: 6px; bottom: 6px; font-size: 0.75rem; background: rgba(0,0,0,.75); color: #fff; padding: 2px 6px; border-radius: 5px; }
.vod__meta { font-size: 0.8rem; margin: 0 0 4px; }
.vod__title { font-family: var(--font-body); text-transform: none; color: var(--c-text); font-weight: 700; font-size: 1.02rem; margin: 0 0 6px; }
.vod__desc { font-size: 0.9rem; color: var(--c-muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .vods { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vod { grid-template-columns: 1fr; } }

/* ---------- Socials ---------- */
.socials { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 20px; }
.social-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 34px 20px 26px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
  border: 1px solid color-mix(in srgb, var(--brand) 70%, #fff);
  box-shadow: 0 0 calc(26px * var(--glow)) color-mix(in srgb, var(--brand) calc(60% * var(--glow)), transparent);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 0%, rgba(255,255,255,.25), transparent 55%); pointer-events: none; }
.social-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 0 calc(44px * var(--glow)) var(--brand); }
.social-card__icon { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 24px; background: rgba(0,0,0,.18); margin-bottom: 8px; }
.social-card__icon .si { width: 60px; height: 60px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.social-card__name { font-family: var(--font-heading); text-transform: var(--tt-heading); font-size: 1.35rem; letter-spacing: 0.03em; }
.social-card__handle { opacity: 0.92; font-weight: 600; }
.social-card__blurb { opacity: 0.85; font-size: 0.92rem; }
.social-card__cta { margin-top: 10px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 0.5em 1em; border-radius: 99px; background: rgba(0,0,0,.25); }
@media (max-width: 960px) { .socials { --cols: 2 !important; } }
@media (max-width: 520px) { .socials { --cols: 1 !important; } }

/* ---------- Embed (Grid Rivals) ---------- */
.embed { margin: 0 0 40px; }
.embed iframe { width: 100%; border: 0; background: #fff; }
.embed--bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.has-side .embed--bleed { width: 100%; left: auto; right: auto; margin-left: 0; margin-right: 0; }
.embed--border iframe { border: 2px solid rgba(var(--c-primary-rgb), 0.5); box-shadow: var(--g-box-strong); }
.embed--rounded iframe { border-radius: var(--radius); }
.embed--bleed.embed--rounded iframe { border-radius: 0; }
.embed__fallback { text-align: center; font-size: 0.9rem; margin: 10px 0 0; }

/* ---------- Images / galleries ---------- */
.imgs { --cols: 4; --gap: 10px; position: relative; }
.imgs__track { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.imgs__item { margin: 0; position: relative; overflow: hidden; background: rgba(var(--c-primary-rgb), 0.05); }
.imgs--rounded .imgs__item { border-radius: calc(var(--radius) * 0.7); }
.imgs__link { all: unset; display: block; cursor: zoom-in; width: 100%; height: 100%; }
.imgs__link:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.imgs__item img { width: 100%; height: auto; transition: transform 0.45s ease, filter 0.35s ease; }
.imgs--ratio .imgs__item img { aspect-ratio: var(--ratio); height: 100%; object-fit: cover; }
.imgs__item figcaption { font-size: 0.85rem; padding: 8px 10px; color: var(--c-muted); }
.cap--overlay figcaption, .cap--hover figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); padding: 24px 12px 10px; pointer-events: none; }
.cap--hover figcaption { opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.cap--hover .imgs__item:hover figcaption, .cap--hover .imgs__item:focus-within figcaption { opacity: 1; transform: none; }
.hover--zoom .imgs__item:hover img { transform: scale(1.07); }
.hover--glow .imgs__item { transition: box-shadow 0.25s; }
.hover--glow .imgs__item:hover { box-shadow: 0 0 0 2px var(--c-primary), var(--g-box-strong); }
.hover--lift .imgs__item { transition: transform 0.25s, box-shadow 0.25s; }
.hover--lift .imgs__item:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.hover--grayscale .imgs__item img { filter: grayscale(1); }
.hover--grayscale .imgs__item:hover img { filter: none; }
/* masonry */
.imgs--masonry .imgs__track { display: block; columns: var(--cols); column-gap: var(--gap); }
.imgs--masonry .imgs__item { break-inside: avoid; margin-bottom: var(--gap); }
.imgs--masonry.imgs--ratio .imgs__item img { height: auto; }
/* justified rows */
.imgs--justified .imgs__track { display: flex; flex-wrap: wrap; }
.imgs--justified .imgs__item { flex: 1 1 auto; height: calc(900px / var(--cols)); min-height: 160px; }
.imgs--justified .imgs__item img { height: 100%; width: 100%; object-fit: cover; aspect-ratio: auto !important; }
.imgs--justified .imgs__track::after { content: ""; flex-grow: 999; }
/* mosaic */
.imgs--mosaic .imgs__track { grid-auto-flow: dense; grid-auto-rows: calc(1100px / var(--cols) / 1.5); }
.imgs--mosaic .imgs__item img { height: 100%; object-fit: cover; }
.imgs--mosaic .imgs__item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.imgs--mosaic .imgs__item:nth-child(7n + 5) { grid-row: span 2; }
/* polaroid */
.imgs--polaroid .imgs__track { gap: calc(var(--gap) + 14px); }
.imgs--polaroid .imgs__item { background: #f7f7f2; padding: 10px 10px 0; border-radius: 4px !important; box-shadow: 0 10px 24px rgba(0,0,0,.35); transform: rotate(-1.5deg); transition: transform 0.25s; overflow: visible; }
.imgs--polaroid .imgs__item:nth-child(even) { transform: rotate(1.6deg); }
.imgs--polaroid .imgs__item:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.imgs--polaroid .imgs__item figcaption { position: static; opacity: 1; transform: none; color: #222; background: none; text-align: center; font-family: "Comic Sans MS", "Segoe Print", cursive; padding: 10px 4px 12px; }
.imgs--polaroid .imgs__item:not(:has(figcaption))::after { content: ""; display: block; height: 30px; }
/* carousel */
.imgs--carousel .imgs__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.imgs--carousel .imgs__item { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); scroll-snap-align: start; }
.imgs__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--c-primary-rgb), 0.6); background: rgba(var(--c-bg-rgb), 0.8); color: var(--c-primary); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.imgs__nav--prev { left: -10px; }
.imgs__nav--next { right: -10px; }
/* list */
.imgs--list .imgs__track { grid-template-columns: 1fr; }
@media (max-width: 900px) { .imgs { --cols: 2 !important; } .imgs--mosaic .imgs__item:nth-child(7n + 1) { grid-column: span 2; } }
@media (max-width: 520px) { .imgs:not(.imgs--carousel) { --cols: 1 !important; } .imgs--carousel { --cols: 1.2 !important; } .imgs--mosaic .imgs__item { grid-column: auto !important; grid-row: auto !important; } }

/* ---------- Slideshow ---------- */
.slideshow { --ratio: 16/9; position: relative; }
.slideshow__viewport { position: relative; aspect-ratio: var(--ratio); overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: var(--g-box); }
.slideshow__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
.slideshow__slide.is-active { opacity: 1; z-index: 1; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.slideshow--contain .slideshow__slide img { object-fit: contain; }
.slideshow--slide .slideshow__slide { opacity: 1; transform: translateX(100%); }
.slideshow--slide .slideshow__slide.is-active { transform: none; }
.slideshow--slide .slideshow__slide.is-prev { transform: translateX(-100%); }
.slideshow--zoom .slideshow__slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.slideshow__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 0.95rem; }
.slideshow__arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.slideshow__arrow:hover { background: var(--c-primary); color: var(--c-button-text); }
.slideshow__arrow--prev { left: 14px; }
.slideshow__arrow--next { right: 14px; }
.slideshow__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.slideshow__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(var(--c-muted-rgb), 0.5); cursor: pointer; transition: width 0.2s, background 0.2s; }
.slideshow__dots button.is-active { width: 26px; border-radius: 6px; background: var(--c-primary); box-shadow: var(--g-text); }
.slideshow__thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.slideshow__thumbs button { flex: 0 0 110px; aspect-ratio: 16/10; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.6; background: none; }
.slideshow__thumbs button.is-active { border-color: var(--c-primary); opacity: 1; box-shadow: var(--g-box-strong); }
.slideshow__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 9, 12, 0.94); display: grid; place-items: center; padding: 56px 72px; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; box-shadow: 0 0 60px rgba(var(--c-primary-rgb), calc(0.25 * var(--glow))); cursor: zoom-in; transition: transform 0.25s; }
.lb-figure img.is-zoomed { transform: scale(2); cursor: zoom-out; }
.lb-figure figcaption { color: #e8f0f2; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #b6ff00; color: #0e161e; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #8fa3ad; font-size: 0.85rem; }
@media (max-width: 640px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }
[data-lightbox] { cursor: zoom-in; }

/* ---------- Paints ---------- */
.paints__intro { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 40px; }
.paints__logo img { width: 100%; max-width: 420px; margin: 0 auto; height: auto; }
.only-light { display: none !important; }
[data-theme="light"] .only-light { display: block !important; }
[data-theme="light"] .only-dark { display: none !important; }
.paints__car { margin-bottom: 40px; }
.paints__car-title { border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.25); padding-bottom: 10px; }
.paint { margin-bottom: 22px; }
.paint__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.paint__head h3 { margin: 0; font-size: 1.3rem; }
.paint__head p { margin: 0; flex: 1; }
.paint .prose { margin-bottom: 16px; }
@media (max-width: 820px) { .paints__intro { grid-template-columns: 1fr; } .paints__logo img { max-width: 280px; } }

/* ---------- Sponsors ---------- */
.sponsor-grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 22px; }
.sponsor-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sponsor-card__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 4/5; max-height: 340px; border-radius: calc(var(--radius) * 0.8); background: rgba(var(--c-bg-rgb), 0.55); padding: 22px; transition: box-shadow 0.25s; }
.sponsor-card__logo:hover { box-shadow: var(--g-box-strong); }
.sponsor-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
[data-theme="light"] .sponsor-card__logo { background: #0e161e; }
.sponsor-card__name { font-size: 1.3rem; margin: 4px 0 0; }
.sponsor-card__desc { font-size: 0.95rem; color: var(--c-muted); }
.sponsor-card__socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sponsor-card__socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); }
.sponsor-card .btn { margin-top: auto; }
@media (max-width: 960px) { .sponsor-grid { --cols: 2 !important; } }
@media (max-width: 560px) { .sponsor-grid { --cols: 1 !important; } }

.sponsor-side { position: sticky; top: calc(var(--header-h) + 24px); padding-top: clamp(36px, 5vw, 64px); }
.sponsor-side__inner { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sponsor-side__title { font-size: 1rem; text-align: center; margin: 0; }
.sponsor-side__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: calc(var(--radius) * 0.7); background: rgba(var(--c-bg-rgb), 0.5); text-decoration: none; color: var(--c-muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: box-shadow 0.2s, transform 0.2s; }
[data-theme="light"] .sponsor-side__item { background: #0e161e; }
.sponsor-side__item:hover { box-shadow: var(--g-box-strong); transform: translateY(-2px); }
.sponsor-side__item img { width: 100%; max-height: 160px; object-fit: contain; }
.sponsor-side__all { text-align: center; font-size: 0.85rem; text-decoration: none; }
@media (max-width: 1100px) {
  .sponsor-side { position: static; padding-top: 0; padding-bottom: 32px; }
  .sponsor-side__inner { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .sponsor-side__title { flex-basis: 100%; }
  .sponsor-side__item { flex: 0 1 180px; }
}

.marquee { margin-top: clamp(40px, 6vw, 72px); overflow: hidden; border-top: 1px solid rgba(var(--c-primary-rgb), 0.2); border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.2); background: rgba(var(--c-bg-rgb), 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 64px; padding: 18px 32px; }
.marquee__item img { height: 56px; width: auto; max-width: 220px; object-fit: contain; opacity: 0.85; transition: opacity 0.2s, filter 0.2s; }
.marquee__item:hover img { opacity: 1; filter: drop-shadow(0 0 calc(14px * var(--glow)) rgba(var(--c-primary-rgb), 0.7)); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .is-live.live-btn { animation: none; } }

/* ---------- Turkeys / timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 26px; }
.timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.timeline__head .event-card__meta { flex-basis: 100%; }
.timeline__head h2 { margin: 0; font-size: 1.5rem; }
.timeline__cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: calc(var(--radius) * 0.8); margin-bottom: 18px; }
.timeline .prose { margin-bottom: 8px; }

/* ---------- Gear ---------- */
.gear__section { margin-bottom: 36px; }
.gear__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gear-item { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.gear-item__img { aspect-ratio: 4/3; background: rgba(255,255,255,.04); display: grid; place-items: center; overflow: hidden; }
.gear-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.4s; }
.gear-item:hover .gear-item__img img { transform: scale(1.05); }
.gear-item__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gear-item__body h3 { font-family: var(--font-body); text-transform: none; color: var(--c-text); font-weight: 700; font-size: 1.05rem; margin: 0; }
.gear-item__body p { margin: 0; font-size: 0.92rem; }
.gear-item__link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.gear__main { margin-top: 20px; }
.zoomable { margin: 0; padding: 12px; text-align: center; }
.zoomable img { width: 100%; border-radius: calc(var(--radius) * 0.7); cursor: zoom-in; }
.zoomable figcaption { font-size: 0.85rem; margin-top: 8px; }

/* ---------- Trophy room ---------- */
.trophies__count { margin: 16px 0 0; color: var(--c-muted); }
.trophies__count strong { color: var(--c-primary); font-size: 1.3em; }
.trophies__year { margin-bottom: 40px; }
.trophies__year-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.trophy-grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 22px; }
.trophy { --medal: #8fa3ad; --medal-rgb: 143, 163, 173; position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgba(var(--c-surface-rgb), 0.8); border: 2px solid rgba(var(--medal-rgb), 0.55); box-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--medal-rgb), calc(0.35 * var(--glow))); transition: transform 0.2s; }
.trophy:hover { transform: translateY(-4px); }
.trophy--gold { --medal: #ffd34d; --medal-rgb: 255, 211, 77; }
.trophy--silver { --medal: #d9e2e8; --medal-rgb: 217, 226, 232; }
.trophy--bronze { --medal: #e08a4b; --medal-rgb: 224, 138, 75; }
.trophy--field { --medal: var(--c-primary); --medal-rgb: var(--c-primary-rgb); border-width: 1px; }
.trophy--gold { grid-column: span 1; }
.trophy__pos { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: baseline; gap: 1px; padding: 6px 14px 4px; border-radius: 12px; font-family: "Race Sport", var(--font-heading); text-transform: lowercase; font-size: 2.1rem; line-height: 1; color: #0e161e; background: var(--medal); box-shadow: 0 0 calc(24px * var(--glow)) rgba(var(--medal-rgb), 0.85), 0 6px 14px rgba(0,0,0,.4); }
.trophy__pos span { font-size: 0.55em; }
.trophy--field .trophy__pos { font-size: 1.5rem; }
.trophy__img { all: unset; cursor: zoom-in; display: block; aspect-ratio: 4/3; background: #fff; overflow: hidden; }
.trophy__img img { width: 100%; height: 100%; object-fit: contain; }
.trophy__body { padding: 16px 18px 20px; }
.trophy__body h3 { color: var(--c-text); margin: 0 0 4px; }
.trophy--gold .trophy__body h3 { color: var(--medal); text-shadow: 0 0 calc(12px * var(--glow)) rgba(var(--medal-rgb), 0.6); }
[data-theme="light"] .trophy--gold .trophy__body h3 { color: #a07800; text-shadow: none; }
.trophy__season { margin: 0 0 4px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.trophy__body p.muted { margin: 0; font-size: 0.92rem; }
@media (max-width: 960px) { .trophy-grid { --cols: 2 !important; } }
@media (max-width: 560px) { .trophy-grid { --cols: 1 !important; } }

/* ---------- Merch ---------- */
.merch__intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.merch-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; font-size: 1.1rem; color: var(--c-primary); }

/* ---------- 404 ---------- */
.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound img { width: 200px; height: auto; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: rgba(var(--c-bg-rgb), 0.9); border-top: 1px solid rgba(var(--c-primary-rgb), 0.18); color: var(--c-text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.marquee + .site-footer { margin-top: 0; }
.layout + .site-footer { margin-top: clamp(40px, 6vw, 72px); }
.site-footer__inner { max-width: 1320px; margin: 0 auto; padding: 44px clamp(16px, 3vw, 32px) 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.site-footer__brand img { width: 180px; height: auto; }
.site-footer__brand p { margin: 8px 0 18px; color: var(--c-muted); font-size: 0.9rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); gap: 4px 48px; }
.site-footer__nav a { font-family: var(--font-nav); text-transform: var(--tt-nav); letter-spacing: 0.05em; font-size: 0.85rem; color: var(--c-nav); text-decoration: none; padding: 3px 0; display: inline-block; }
.site-footer__nav a:hover { text-shadow: var(--g-text); }
.site-footer__legal { border-top: 1px solid rgba(var(--c-muted-rgb), 0.15); }
.site-footer__legal p { max-width: 1320px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 32px); font-size: 0.8rem; color: var(--c-muted); opacity: 0.8; }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__nav ul { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-theme="light"] .marquee { background: rgba(14, 22, 30, 0.92); } /* sponsor logos are usually made for dark backgrounds */

/* ---------- Cookie consent (v0.3.0) ---------- */
.cookie-banner { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; padding: 0 clamp(10px, 2vw, 24px) clamp(10px, 2vw, 20px); pointer-events: none; animation: cookie-in 0.35s ease-out; }
@keyframes cookie-in { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-banner__inner {
  pointer-events: auto; max-width: 1240px; max-height: calc(100vh - 20px); overflow-y: auto; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius);
  background: rgba(var(--c-surface-rgb), 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--c-primary-rgb), 0.35); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), var(--g-box);
  color: var(--c-text);
}
.cookie-banner--box { left: 0; right: auto; width: min(460px, 100%); }
.cookie-banner--box .cookie-banner__inner { grid-template-columns: 1fr; }
.cookie-banner__title { font-size: 1.05rem; margin: 0 0 6px; text-shadow: none; }
.cookie-banner__msg { font-size: 0.92rem; line-height: 1.55; color: var(--c-text); }
.cookie-banner__msg p { margin: 0 0 4px; }
.cookie-banner__msg strong { color: var(--c-primary); }
[data-theme="light"] .cookie-banner__msg strong { color: var(--c-text); }
.cookie-banner__link { font-size: 0.85rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner--box .cookie-banner__actions { justify-content: stretch; }
.cookie-banner--box .cookie-banner__actions .btn { flex: 1 1 auto; }
/* Accept and reject get identical styling, as the ICO expects */
.btn--cookie { background: var(--c-button); color: var(--c-button-text); border-color: var(--c-button); font-size: 0.8rem; padding: 0.85em 1.2em; }
.btn--cookie[data-consent-customise] { background: transparent; color: var(--c-text); border-color: rgba(var(--c-muted-rgb), 0.6); }
.cookie-banner__prefs { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.cookie-pref { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 14px; border-radius: calc(var(--radius) * 0.7); background: rgba(var(--c-bg-rgb), 0.5); border: 1px solid rgba(var(--c-muted-rgb), 0.2); }
.cookie-pref p { margin: 2px 0 0; font-size: 0.85rem; color: var(--c-muted); }
.cookie-banner__note { margin: 0; font-size: 0.8rem; color: var(--c-muted); }
.cookie-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.cookie-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(var(--c-muted-rgb), 0.45); transition: background 0.2s; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cookie-switch input:checked + span { background: var(--c-primary); box-shadow: var(--g-text); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:disabled + span { opacity: 0.6; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }
@media (max-width: 760px) {
  .cookie-banner__inner { grid-template-columns: 1fr; padding: 16px; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1 1 40%; }
}

/* Placeholder shown instead of third-party embeds until consent */
.consent-ph { display: grid; place-items: center; min-height: 260px; padding: 28px 18px; text-align: center; border-radius: var(--radius); background: rgba(var(--c-surface-rgb), 0.82); border: 1px dashed rgba(var(--c-primary-rgb), 0.45); }
.consent-ph--tall { min-height: 60vh; }
.consent-ph--silent { display: contents; }
.consent-ph__inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.consent-ph__inner svg { color: var(--c-primary); filter: drop-shadow(0 0 calc(10px * var(--glow)) rgba(var(--c-primary-rgb), 0.6)); }
.consent-ph__inner p { margin: 0; color: var(--c-muted); }
.consent-ph__inner strong { color: var(--c-text); }
.consent-ph__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.consent-ph__more { font-size: 0.82rem; }

/* Footer legal links */
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.site-footer__legal p { margin: 0; padding: 16px 0; max-width: none; }
.site-footer__links { display: flex; gap: 18px; font-size: 0.8rem; }
.site-footer__links a, .linklike { color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; font-size: 0.8rem; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.site-footer__links a:hover, .linklike:hover { color: var(--c-primary); }

/* Privacy page tables */
.prose--legal { max-width: 85ch; }
.prose--legal h2 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.prose--legal table { width: 100%; border-collapse: collapse; margin: 0.5em 0 1em; font-size: 0.92rem; }
.prose--legal th, .prose--legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.15); vertical-align: top; }
.prose--legal th { color: var(--c-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.prose--legal code { font-size: 0.85em; background: rgba(var(--c-primary-rgb), 0.1); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 640px) { .prose--legal table { display: block; overflow-x: auto; } }

/* ---------- Merch NEW! tag (v0.5.0) ---------- */
.merch-card { position: relative; overflow: visible; }
.merch-card .card__img { display: block; border-radius: var(--radius) var(--radius) 0 0; }
.merch-card .card__title a { color: inherit; text-decoration: none; }
.merch-card .card__title a:hover { color: var(--c-primary); }
.merch-card__desc { font-size: 0.95rem; color: var(--c-muted); }
.merch-card__desc p { margin: 0 0 0.6em; }
.merch-card__desc ul { margin: 0 0 0.6em; padding-left: 1.2em; }
.merch-card__desc strong { color: var(--c-text); }
.merch-card--new { border-color: rgba(var(--c-live-rgb), 0.55); box-shadow: 0 0 calc(30px * var(--glow)) rgba(var(--c-live-rgb), calc(0.35 * var(--glow))); }
.merch-card--new:hover { border-color: var(--c-live); box-shadow: 0 0 calc(44px * var(--glow)) rgba(var(--c-live-rgb), calc(0.55 * var(--glow))); }
.new-badge {
  position: absolute; z-index: 3; top: -12px; right: -10px;
  display: inline-block; padding: 0.45em 0.85em 0.4em; border-radius: 10px;
  font-family: "Race Sport", var(--font-heading); text-transform: lowercase; font-size: 1.05rem; line-height: 1; letter-spacing: 0.04em;
  color: #fff; background: linear-gradient(135deg, #ff3b5c, #d90429);
  border: 2px solid #fff; transform: rotate(6deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 calc(24px * var(--glow)) rgba(255, 45, 85, calc(0.9 * var(--glow)));
  animation: new-pop 2.4s ease-in-out infinite;
}
.new-badge--inline { position: relative; top: -0.15em; right: auto; font-size: 0.6em; vertical-align: middle; margin-right: 0.3em; animation: none; }
@keyframes new-pop { 0%, 100% { transform: rotate(6deg) scale(1); } 50% { transform: rotate(3deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .new-badge { animation: none; } }
.new-merch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.new-merch__head .section-title { margin-bottom: 0.2em; }
.new-merch__intro { color: var(--c-muted); }
.new-merch__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 26px; padding-top: 10px; }
@media (max-width: 600px) { .new-badge { right: 8px; } .new-merch__grid { grid-template-columns: 1fr; } }
