@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@500;600;700&family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --canvas: oklch(0.985 0 0);
  --surface: oklch(0.955 0.008 188);
  --surface-strong: oklch(0.915 0.02 188);
  --ad-shelf: oklch(0.925 0.006 230);
  --ink: oklch(0.19 0.035 225);
  --muted: oklch(0.43 0.035 220);
  --teal: oklch(0.54 0.12 188);
  --teal-deep: oklch(0.31 0.085 192);
  --signal: oklch(0.54 0.21 31);
  --lime: oklch(0.88 0.19 119);
  --line: oklch(0.84 0.015 210);
  --white: oklch(1 0 0);
  --focus: oklch(0.57 0.2 248);
  --font-display: 'Antonio', 'Arial Narrow', sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --max: 1180px;
  --z-sticky: 20;
  --z-consent: 50;
  --z-toast: 40;
  --text-meta: .875rem;
  --text-small: .9375rem;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--z-toast);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.masthead {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--canvas) 94%, transparent);
}
.masthead-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.35rem/1 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--lime);
  font-size: .8rem;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 700; text-decoration: none; }
.main-nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-deep);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1), background 160ms ease;
}
.button:hover { background: var(--teal); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button-secondary:hover { background: var(--surface-strong); color: var(--ink); }
.button-signal { background: var(--signal); color: var(--white); }
.button-signal:hover { background: oklch(0.48 0.19 31); }
.button-small { min-height: 42px; padding: 8px 14px; font-size: .94rem; }

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(54px, 8vw, 108px) 0 clamp(66px, 9vw, 118px);
  background: var(--teal-deep);
  color: var(--white);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto -8vw -45% auto;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  border: clamp(44px, 7vw, 100px) solid color-mix(in oklch, var(--teal) 32%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: clamp(46px, 7vw, 96px); align-items: center; }
.live-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; font-weight: 700; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px color-mix(in oklch, var(--lime) 20%, transparent); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
h1 { max-width: 750px; font-size: clamp(3.4rem, 7.3vw, 6rem); font-weight: 700; line-height: .91; letter-spacing: -0.035em; }
.hero-copy { max-width: 60ch; margin: 25px 0 30px; color: oklch(0.92 0.02 188); font-size: clamp(1.05rem, 2vw, 1.25rem); text-wrap: pretty; }
.search-wrap { max-width: 620px; }
.search-label { display: block; margin-bottom: 9px; font-weight: 700; }
.search-box { display: flex; padding: 7px; border-radius: 12px; background: var(--white); }
.search-box input { min-width: 0; flex: 1; min-height: 50px; padding: 0 14px; border: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box input:focus { outline: 0; }
.search-box:focus-within { outline: 3px solid var(--lime); outline-offset: 3px; }
.hero-note { margin: 13px 0 0; color: oklch(0.87 0.025 188); font-size: .92rem; }

.broadcast {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--canvas);
  color: var(--ink);
  animation: run-in 620ms cubic-bezier(.22, 1, .36, 1) both;
}
.broadcast-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.broadcast-head strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .02em; }
.broadcast-head span { color: var(--muted); font-size: .85rem; }
.ticker-list { margin: 0; padding: 0; list-style: none; }
.ticker-item { display: grid; grid-template-columns: 70px 1fr; min-height: 88px; border-bottom: 1px solid var(--line); }
.ticker-item:last-child { border-bottom: 0; }
.ticker-time { display: grid; place-content: center; padding: 12px 8px; border-right: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.ticker-time strong { display: block; font: 700 1.28rem/1 var(--font-display); }
.ticker-time span { color: var(--muted); font-size: var(--text-meta); }
.ticker-main { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 16px; }
.ticker-symbol { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-strong); color: var(--teal-deep); font: 700 .75rem/1 var(--font-display); }
.ticker-title { min-width: 0; }
.ticker-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-title span { display: block; color: var(--muted); font-size: var(--text-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.catalog-section { padding: clamp(68px, 9vw, 118px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -0.03em; }
.section-head p { max-width: 42ch; margin: 0; color: var(--muted); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.filter-button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; white-space: nowrap; cursor: pointer; }
.filter-button[aria-pressed='true'] { background: var(--lime); color: var(--ink); }
.result-count { color: var(--muted); white-space: nowrap; }

.calendar-list { margin: 0; padding: 0; list-style: none; }
.calendar-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(250px, 1fr) 145px auto;
  gap: 24px;
  align-items: center;
  min-height: 126px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}
.calendar-row:hover { padding-inline: 14px; background: var(--surface); }
.calendar-row[hidden] { display: none; }
.series-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.series-mark { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-deep); color: var(--lime); font: 700 .9rem/1 var(--font-display); }
.series-identity h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1; }
.series-identity p, .next-event p, .freshness p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.next-event strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.freshness strong { display: block; font-size: .9rem; }
.row-actions { display: flex; align-items: center; gap: 9px; }
.text-link { font-weight: 700; text-underline-offset: 4px; }
.empty-results { padding: 54px 0; text-align: center; border-bottom: 1px solid var(--line); }
.empty-results h3 { font-size: 2rem; }
.empty-results p { color: var(--muted); }

.ad-band { padding-block: 24px; }
.ad-placement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  margin: 34px 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ad-shelf);
  color: var(--muted);
  text-align: center;
}
.ad-placement[hidden] { display: none; }
.ad-label { position: absolute; top: 8px; right: 10px; color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.ad-content { width: 100%; min-width: 0; display: grid; place-items: center; }
.ad-content iframe, .ad-content img { max-width: 100%; }
.ad-preview-copy { padding: 28px 16px 18px; }
.ad-preview-copy strong { display: block; color: var(--ink); font: 600 1.05rem/1.1 var(--font-display); text-transform: capitalize; }
.ad-preview-copy span { display: block; margin-top: 5px; font-size: .82rem; }
.ad-band .ad-placement { margin: 0; }
.ad-placement-list { width: 100%; min-height: 180px; margin: 26px 0; }
.event-list .ad-placement-list { margin: 0; }
.ad-placement-sidebar { min-height: 300px; margin: 0; }
.ad-placement-wide { min-height: 210px; }

.why-section { padding: clamp(62px, 8vw, 100px) 0; background: var(--lime); }
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); }
.why-grid h2 { max-width: 8ch; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .91; letter-spacing: -0.035em; }
.why-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.why-copy section { padding-top: 14px; border-top: 1px solid color-mix(in oklch, var(--ink) 35%, transparent); }
.why-copy h3 { font-size: 1.45rem; }
.why-copy p { margin-bottom: 0; }

.detail-hero { padding: clamp(50px, 8vw, 92px) 0 62px; background: var(--teal-deep); color: var(--white); }
.breadcrumbs { margin-bottom: 32px; color: oklch(0.83 0.03 188); font-size: .9rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.detail-top { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: end; }
.detail-kind { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--lime); font-weight: 700; }
.detail-hero h1 { font-size: clamp(3.5rem, 8vw, 6rem); }
.detail-hero .hero-copy { margin-bottom: 0; }
.download-cluster { display: flex; flex-direction: column; gap: 10px; min-width: 235px; }
.download-cluster .button { width: 100%; }
.fresh-line { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 34px; color: oklch(0.87 0.025 188); font-size: .9rem; }
.fresh-line strong { color: var(--white); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(42px, 7vw, 88px); padding: clamp(58px, 8vw, 100px) 0; }
.detail-main h2, .side-panel h2, .faq h2, .related h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.025em; }
.detail-intro { max-width: 66ch; color: var(--muted); }
.event-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.event-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center; min-height: 105px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; font-variant-numeric: tabular-nums; }
.event-date strong { display: block; font: 700 2rem/.95 var(--font-display); }
.event-date span { color: var(--muted); font-size: var(--text-meta); }
.event-info h3 { font-size: 1.3rem; font-weight: 600; }
.event-info p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.event-time { min-width: 92px; text-align: right; }
.event-time strong { display: block; font-variant-numeric: tabular-nums; }
.event-time span { color: var(--muted); font-size: var(--text-meta); }
.no-events { padding: 34px; background: var(--surface); border-radius: 12px; }
.no-events h3 { font-size: 1.65rem; }
.no-events p { margin-bottom: 0; color: var(--muted); }
.side-stack { display: flex; flex-direction: column; gap: 26px; }
.side-panel { padding: 24px; border-radius: 14px; background: var(--surface); }
.side-panel h2 { font-size: 1.6rem; font-weight: 600; }
.side-panel ol { padding-left: 20px; }
.side-panel li + li { margin-top: 10px; }
.source-note { color: var(--muted); font-size: .9rem; }
.source-note a { color: var(--ink); font-weight: 700; }
.sticky { position: sticky; top: 24px; }

.faq { padding: 74px 0; border-top: 1px solid var(--line); }
.faq-list { max-width: 850px; margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 700; }
.faq summary::after { content: '+'; font: 700 1.5rem/1 var(--font-display); }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 68ch; margin: 0 0 24px; color: var(--muted); }
.related { padding: 74px 0; background: var(--surface); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related-links a { padding: 11px 15px; border-radius: 999px; background: var(--white); font-weight: 700; text-decoration: none; }
.related-links a:hover { background: var(--lime); }

.footer { padding: 44px 0; background: var(--ink); color: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer p { max-width: 58ch; margin: 12px 0 0; color: oklch(0.78 0.025 220); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-underline-offset: 4px; }
.footer-link-button { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.legal { font-size: var(--text-meta); }
.detail-hero .button-secondary { background: var(--white); color: var(--ink); box-shadow: none; }
.detail-hero .button-secondary:hover { background: var(--lime); color: var(--ink); }
.event-weekend { border-bottom: 1px solid var(--line); }
.weekend-head { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-lg); padding: 25px 0 16px; }
.weekend-head span { color: var(--muted); font-size: var(--text-meta); font-weight: 700; }
.weekend-head h3 { font-size: 1.7rem; font-weight: 600; }
.weekend-head p { margin: 4px 0 0; color: var(--muted); font-size: var(--text-meta); }
.session-list { margin: 0; padding: 0 0 12px 110px; list-style: none; }
.session-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; min-height: 70px; border-top: 1px solid var(--line); }
.session-item .event-date { text-align: left; }
.session-item .event-date strong { font-size: 1.45rem; }
.session-item h4 { margin: 0; font-size: 1rem; }
.session-item .event-time { padding-right: 2px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); max-width: min(390px, calc(100% - 40px)); padding: 14px 18px; border-radius: 12px; background: var(--ink); color: var(--white); transform: translateY(140%); transition: transform 240ms cubic-bezier(.22, 1, .36, 1); }
.toast.is-visible { transform: translateY(0); }

.consent-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-consent);
  width: min(590px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
  border: 1px solid color-mix(in oklch, var(--white) 22%, transparent);
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 60px color-mix(in oklch, var(--ink) 35%, transparent);
  animation: consent-in 340ms cubic-bezier(.22, 1, .36, 1) both;
}
.consent-panel[hidden] { display: none; }
.consent-kicker { display: block; margin-bottom: 5px; color: var(--lime); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.consent-panel h2 { font-size: 1.65rem; line-height: 1; }
.consent-panel p { margin: 10px 0 0; color: oklch(0.86 0.02 220); font-size: .93rem; }
.consent-panel a { color: var(--white); text-underline-offset: 3px; }
.consent-actions { display: grid; gap: 8px; min-width: 165px; }
.consent-actions .button { width: 100%; min-height: 44px; font-size: .9rem; }
.button-consent-secondary { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--white) 55%, transparent); }
.button-consent-secondary:hover { background: color-mix(in oklch, var(--white) 12%, transparent); }

@keyframes run-in { from { opacity: .65; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes consent-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .hero-grid, .detail-layout, .why-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 50px; }
  .broadcast { max-width: none; }
  .ticker-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; }
  .ticker-item { grid-template-columns: 64px 1fr; border-right: 1px solid var(--line); border-bottom: 0; scroll-snap-align: start; }
  .calendar-row { grid-template-columns: minmax(230px, 1fr) minmax(220px, .9fr) auto; }
  .series-identity { grid-column: 1; grid-row: 1; }
  .next-event { grid-column: 2; grid-row: 1; }
  .row-actions { grid-column: 3; grid-row: 1; }
  .freshness { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 10px; padding-left: 68px; }
  .freshness p { margin: 0; }
  .detail-layout { gap: 50px; }
  .sticky { position: static; }
  .side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .calendar-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .series-identity, .next-event, .freshness, .row-actions { grid-column: auto; grid-row: auto; }
  .calendar-row:hover { padding-inline: 0; background: transparent; }
  .next-event strong { white-space: normal; }
  .next-event, .freshness, .row-actions { padding-left: 68px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .masthead-inner { min-height: 64px; }
  .main-nav > a:not(.button) { display: none; }
  .main-nav .button { min-height: 44px; padding-inline: 13px; }
  .hero { padding-top: 46px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(3.1rem, 16vw, 5.3rem); overflow-wrap: normal; hyphens: auto; }
  .search-box { display: block; }
  .search-box input { width: 100%; }
  .search-box .button { width: 100%; }
  .section-head, .filter-bar, .detail-top { align-items: start; flex-direction: column; display: flex; }
  .section-head { margin-bottom: 22px; }
  .filters { width: 100%; }
  .result-count { padding-left: 4px; }
  .ticker-list { display: block; overflow: visible; }
  .ticker-item { grid-template-columns: 64px 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .why-copy, .side-stack { grid-template-columns: 1fr; }
  .detail-top { gap: 30px; }
  .download-cluster { width: 100%; }
  .event-item { grid-template-columns: 72px 1fr; gap: 14px; }
  .event-time { grid-column: 2; text-align: left; }
  .weekend-head { grid-template-columns: 1fr; gap: 4px; }
  .session-list { padding-left: 0; }
  .session-item { grid-template-columns: 60px 1fr; }
  .session-item .event-time { grid-column: 2; text-align: left; padding-bottom: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .consent-panel { grid-template-columns: 1fr; gap: 18px; }
  .consent-actions { grid-template-columns: 1fr 1fr; }
  .ad-band { padding-block: 14px; }
  .ad-placement { min-height: 150px; margin-block: 22px; }
  .ad-band .ad-placement { margin: 0; }
  .ad-placement-list, .ad-placement-wide { min-height: 160px; }
  .ad-placement-sidebar { min-height: 220px; margin: 0; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 30px; height: 30px; }
  .main-nav .button { font-size: .86rem; }
  .ticker-item { grid-template-columns: 62px 1fr; }
  .ticker-main { padding-inline: 12px; }
  .ticker-symbol { display: none; }
  .next-event, .freshness, .row-actions { padding-left: 0; }
  .row-actions { align-items: stretch; flex-direction: column; }
  .row-actions .button { width: 100%; }
  .consent-panel { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 20px; }
  .consent-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
