:root {
  --red: #be1c24;
  --red-dark: #8c1119;
  --ink: #222120;
  --line: #dedad6;
  --paper: #f4f2ee;
  --panel-padding: clamp(20px, 3vw, 42px);
  --cream: #fff;
  --heading: CSEBold, "Arial Narrow", Arial, sans-serif;
  --copy: CSERegular, Arial, sans-serif;
}
body { background: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: .7rem 1rem; background: white; }
#main { font: 1.05rem/1.55 var(--copy); color: var(--ink); padding: 16px 0 0; }
#main p { margin: 0 0 .85em; }
#main ul { margin: 0; }
#main h1, #main h2, #main h3 { margin: 0; color: var(--ink); }
#main h2, #main h3 { font-family: var(--heading); line-height: 1.1; font-weight: normal; }
#main h2 { font-size: clamp(1.9rem, 3vw, 2.35rem); margin-bottom: .45em; }
.event-banner { overflow: hidden; background: white; }
.hero-art { display: block; width: 100%; height: auto; }
.mobile-event { display: none; }
.archive-band { background: #080808; color: #fff; display: flex; align-items: center; gap: 14px; padding: 8px 14px; }
.archive-label { flex: 0 0 auto; font: 1rem/1.2 var(--heading); }
.archive-years { flex: 1; min-width: 0; display: flex; overflow-x: auto; white-space: nowrap; scrollbar-color: #777 #080808; scrollbar-width: thin; }
.archive-years > * { flex: 1 0 38px; padding: 7px 5px; text-align: center; font: .94rem/1.2 CSEBook, Arial, sans-serif; border-left: 1px solid #444; }
.archive-years a { color: #fff; }
.archive-years a:hover, .archive-years a:focus-visible { background: #282828; text-decoration: underline; text-underline-offset: 3px; }
.opening { margin-top: 27px; }
.feature, .attendance { background: #f5f5f4 url("assets/paper-texture.webp") center / cover; }
.feature { padding: var(--panel-padding); }
.feature-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px clamp(20px, 4vw, 54px); margin-bottom: 16px; }
#main .feature-heading h1 { margin-bottom: 0; }
.feature-icons { width: 100%; max-width: 660px; justify-self: end; overflow: hidden; position: relative; aspect-ratio: 1761 / 205; }
/* Frame the painted strip at (149, 71) within the transparent original. */
.feature-icons img { position: absolute; inset: 0 auto auto 0; width: 116.3%; max-width: none; height: auto; transform: translate(-7.275%, -4.488%); }
.feature-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 54px); }
#main .feature-copy p:last-child { margin-bottom: 0; }
#main h1 { font: clamp(2rem, 3.15vw, 3.15rem)/1 var(--heading); color: #121212; text-transform: uppercase; margin-bottom: 16px; }
#main h1::before { content: ""; display: block; width: 54px; height: 5px; background: var(--red); margin-bottom: 12px; }
#main h1 span { display: block; font-size: .62em; color: #555; margin-top: 7px; }
.lead { font-size: 1.08em; line-height: 1.45; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; }
.solid-button { background: #151515; color: white; padding: .65rem 1.15rem; display: inline-flex; align-items: center; min-height: 44px; font: 1.25rem/1 var(--heading); text-decoration: none; }
.solid-button:hover, .solid-button:focus-visible { background: #363636; color: white; }
.text-link, .contact a { color: #333; text-decoration: underline; text-underline-offset: 3px; }
.programme, .attendance, .about-contact { display: grid; gap: clamp(20px, 3vw, 42px); }
.programme { grid-template-columns: 1.9fr 1fr; margin-top: 30px; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 16px; padding: 0; list-style: none; }
.topics li { display: flex; align-items: center; gap: .65rem; padding: 9px 0; min-height: 78px; border-bottom: 1px solid var(--line); }
.topics img { width: clamp(38px, 4.4vw, 64px); height: auto; aspect-ratio: 1; object-fit: contain; flex-shrink: 0; }
.topics span { font: 1.2rem/1.13 var(--heading); }
.topics small { font: .82rem/1.25 var(--copy); display: block; margin-top: 3px; }
.report-release { display: grid; grid-template-columns: 1fr minmax(85px, 47%); align-items: center; gap: 8px; padding: 10px 0 10px 20px; border-left: 1px solid var(--line); }
#main .report-release h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0 0 .4rem; }
#main .report-release p { color: #555; font: 1.13rem/1.1 var(--heading); margin: 0 0 .4rem; }
.report-cover { display: block; }
.report-cover:hover { opacity: .85; }
.report-release img { display: block; width: 100%; height: auto; }
.attendance { grid-template-columns: 1.9fr 1fr; padding: var(--panel-padding); margin-top: 30px; align-items: stretch; }
.eligibility { align-self: center; }
.eligibility ul { padding: 0 0 0 1.2em; }
.eligibility li { margin: 0 0 .65em; padding-left: .25em; }
.eligibility li::marker { color: var(--red); }
#main .eligibility p:last-child { margin-bottom: 0; }
.deadline { padding: 5px 0 5px 20px; border-left: 1px solid var(--line); }
.deadline::before { content: ""; display: block; width: 38px; height: 4px; background: var(--red); margin-bottom: 10px; }
#main .deadline h3 { font-size: 1.42rem; }
.deadline time { display: block; font: 2.25rem/1.15 var(--heading); color: #161616; margin: 6px 0 10px; }
.about-contact { grid-template-columns: 1.9fr 1fr; margin-top: 25px; padding-bottom: 10px; }
.contact { border-left: 1px solid var(--line); padding-left: 22px; }
.contact address { display: grid; gap: 2px; font-style: normal; margin-bottom: 12px; overflow-wrap: anywhere; }
.contact address a { justify-self: start; }
.media-deck { margin-top: 20px; border-top: 1px solid var(--line); padding: 22px 0 12px; }
.video-grid, .reading-grid { display: grid; gap: 16px; }
.video-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.reading-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.video-card, .story-card { display: block; color: var(--ink); background: var(--paper); border-bottom: 2px solid var(--line); min-width: 0; }
.video-card:hover, .story-card:hover, .video-card:focus-visible, .story-card:focus-visible { border-bottom-color: var(--red); text-decoration: none; }
#main .video-card:hover h3, #main .story-card:hover h3 { color: var(--red-dark); }
.media-thumb { position: relative; display: block; aspect-ratio: 16/9; background: #292525; overflow: hidden; }
.media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
#main .video-card h3, #main .story-card h3 { padding: 12px 13px; font-size: 1.27rem; }
#main .story-card h3 { font-size: clamp(1.32rem, 2.3vw, 1.8rem); padding-bottom: 6px; }
#main .story-card p { padding: 0 13px 13px; margin: 0; }
.play-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 41px; height: 41px; border-radius: 50%; background: #a71a20; border: 1px solid #fff; display: grid; place-items: center; }
.play-mark::after { content: ""; border: 7px solid transparent; border-right: 0; border-left: 11px solid #fff; margin-left: 3px; }
.event-footer { border-top: 1px solid var(--line); margin-top: 18px; }
.video-dialog { width: min(850px, 94vw); max-width: none; max-height: 95dvh; padding: 0; border: 0; margin: auto; background: #fff; color: var(--ink); }
.video-dialog::backdrop { background: #161212cf; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.player-top h2 { font: 1.5rem/1.15 var(--heading); margin: 0; }
.player-top button { width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font: 1.8rem/1 Arial, sans-serif; }
.player-slot { background: #171717; aspect-ratio: 16/9; }
.player-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-dialog > a { display: inline-block; margin: 12px 14px; }
:focus-visible { outline: 3px solid #24598d; outline-offset: 3px; }
.archive-band a:focus-visible { outline-color: #fff; outline-offset: -3px; }
@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .topics li { flex-direction: column; align-items: start; padding: 9px 0; }
}
@media (max-width: 760px) {
  .feature-heading { grid-template-columns: 1fr; }
  .feature-icons { justify-self: start; }
  .feature-copy, .programme, .attendance, .about-contact { grid-template-columns: 1fr; }
  .feature-copy { gap: .85em; }
  .about-contact, .attendance, .programme { gap: 16px; }
  .contact { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .report-release, .deadline { padding: 15px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .report-release { grid-template-columns: 1fr minmax(85px, 145px); }
  .archive-band { gap: .45rem; flex-direction: column; align-items: stretch; }
}
@media (max-width: 550px) {
  #main { padding-top: 10px; }
  .hero-art { width: 134%; max-width: none; }
  .mobile-event { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; background: #242121; color: white; padding: 8px 12px; font: 1rem/1.2 var(--heading); }
  .archive-band { padding: 10px 9px 8px; }
  .archive-label { margin-left: 3px; }
  .archive-years > * { flex-basis: 36px; }
  .opening { margin-top: 19px; }
  .topics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .reading-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
