:root {
  --navy: #142b4a;
  --red: #c42a32;
  --ink: #182b41;
  --muted: #526174;
  --line: #d4dbe3;
  --paper: #f1f4f7;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
button, input { font: inherit; }
button, .button { min-height: 44px; padding: 9px 16px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover, .button:hover { background: #284b72; }
button:disabled { opacity: .55; cursor: default; }
button.secondary, .button.secondary { color: var(--navy); background: #fff; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #ca2339; outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -1.2px; text-transform: uppercase; }
h2 { font-size: 23px; letter-spacing: -.5px; }
h3 { font-size: 19px; }
p { overflow-wrap: anywhere; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; background: #fff; padding: 10px; }
.skip-link:focus { top: 10px; }
.site-header { border-top: 6px solid var(--red); border-bottom: 1px solid var(--navy); }
.header-inner { max-width: 1192px; margin: auto; min-height: 72px; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--navy); font-size: 22px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; white-space: nowrap; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--red); color: #fff; font-size: 19px; transform: skew(-8deg); }
.main-nav { display: flex; gap: 5px; }
.main-nav a { padding: 10px 12px; min-height: 44px; text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.main-nav a[aria-current] { border-color: var(--red); }
main { max-width: 1192px; margin: auto; padding: 24px; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.page-intro p { color: var(--muted); margin-top: 7px; }
.eyebrow { color: var(--red); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 6px; }
.programme-total { border-left: 4px solid var(--red); padding-left: 12px; white-space: nowrap; font-weight: 700; }
.programme-total strong { font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.theme-section, .event-batch, .info-section, .event-directory, .empty-state, .related-section { border-top: 4px solid var(--navy); padding: 18px 0 22px; margin-bottom: 24px; }
.theme-heading, .batch-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
.theme-heading > div { display: flex; align-items: center; gap: 10px; }
.theme-marker { width: 8px; height: 28px; background: var(--red); flex-shrink: 0; }
.theme-heading a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.spotlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.event-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.event-card:hover { color: var(--ink); border-color: var(--red); }
.card-picture { background: var(--paper); border-bottom: 1px solid var(--line); }
.card-picture img { width: 100%; height: 125px; object-fit: cover; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; flex: 1; }
.category-tag { font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--red); }
.card-copy p { font-size: 16px; color: var(--muted); line-height: 1.4; }
.control-line { font-size: 14px; color: var(--muted); }
.card-action { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; display: flex; width: 100%; justify-content: space-between; }
.spotlight-grid .event-card { flex-direction: row; }
.spotlight-grid .card-picture { flex: 0 0 37%; border-bottom: 0; border-right: 1px solid var(--line); display: flex; align-items: center; }
.spotlight-grid .card-picture img { height: auto; }
.spotlight-grid .card-copy { padding: 15px; }
.theme-note { color: var(--muted); margin-bottom: 14px; max-width: 65ch; }
.event-directory { padding-bottom: 8px; }
.event-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: 12px; }
.event-links a { display: flex; min-height: 52px; align-items: center; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.event-links span { font-variant-numeric: tabular-nums; color: var(--muted); }
.search-strip { margin: 0 0 20px; padding: 4px 12px; background: var(--paper); border-left: 4px solid var(--red); }
.search-row { display: flex; gap: 8px; }
.search-row form { display: flex; flex: 1; gap: 8px; min-width: 0; }
.search-row input { min-width: 0; width: 100%; padding: 9px 12px; min-height: 44px; border: 1px solid #8391a1; background: #fff; border-radius: 0; font-size: 16px; }
.search-row > button { flex: 0 0 auto; }
.search-feedback { display: flex; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; line-height: 20px; margin-top: 4px; min-height: 20px; }
.search-feedback button { min-height: 44px; min-width: 44px; font-size: 14px; line-height: 20px; padding: 0; background: transparent; color: var(--navy); border: 0; text-decoration: underline; }
.batch-heading h2 { font-size: 20px; }
.batch-heading span { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.event-grid .card-copy { gap: 5px; }
.more-button { width: 100%; background: #fff; color: var(--navy); border: 1px solid var(--navy); margin-top: 16px; }
.more-button:hover { background: var(--paper); }
.end-note { color: var(--muted); margin-top: 14px; }
.empty-state p { margin: 16px 0; max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { border: 0; padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); box-shadow: 0 12px 60px #0005; }
dialog::backdrop { background: #061a31b3; }
.dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dialog-heading { padding: 12px 18px; border-top: 5px solid var(--red); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.dialog-heading h2 { font-size: 22px; }
.dialog-scroll { overflow-y: auto; padding: 16px 18px; overscroll-behavior: contain; }
.dialog-scroll > p { margin-bottom: 16px; }
.filter-group { border-top: 1px solid var(--line); }
.filter-group summary { min-height: 52px; padding: 12px 0; cursor: pointer; font-size: 16px; font-weight: 700; }
.filter-group summary span { color: var(--muted); font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 2px 0 14px; }
legend { padding: 0 0 10px; font-weight: 700; }
.radio-label { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 16px; padding: 8px 10px; cursor: pointer; border: 1px solid var(--line); margin: 5px 0; }
.radio-label:has(input:checked) { background: var(--paper); border-color: var(--navy); }
.radio-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex-shrink: 0; }
.radio-label span:last-child { margin-left: auto; }
.dialog-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); flex-shrink: 0; }
.info-section { max-width: 780px; }
.info-section p { margin-top: 12px; max-width: 68ch; }
.info-section h3 { margin-top: 18px; }
.info-section ul, .info-section ol { margin: 12px 0 0; padding-left: 22px; }
.info-section li + li { margin-top: 8px; }
.briefing-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.briefing-links a { min-height: 44px; display: flex; align-items: center; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; }
.breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; }
.match-heading { margin-bottom: 20px; max-width: 1000px; }
.match-heading h1 { margin-top: 6px; }
/* Match page header: minimal vertical rhythm and a smaller title. */
[data-page="match"] main { padding-top: 8px; }
[data-page="match"] .breadcrumb { margin-bottom: 6px; font-size: 13px; }
[data-page="match"] .breadcrumb a { min-height: 0; }
[data-page="match"] .match-heading { margin-bottom: 8px; }
[data-page="match"] .match-heading .eyebrow { font-size: 11px; }
[data-page="match"] .match-heading h1 { margin-top: 3px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.05; }
.player-area { border: 1px solid var(--navy); margin-bottom: 24px; }
.game-screen { background: #0d1e34; color: #fff; position: relative; }
.game-visual { position: relative; height: min(56vw, 540px); min-height: 200px; }
#preview { height: 100%; display: flex; align-items: center; justify-content: center; }
#preview img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
#game-frame, #game-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
#play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--red); border-color: #fff; min-width: 144px; font-size: 20px; box-shadow: 0 2px 14px #0007; }
.player-controls { padding: 10px; display: flex; gap: 8px; flex-wrap: wrap; background: var(--navy); }
.player-controls button { border-color: #7b90aa; }
.player-status { padding: 12px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.player-status p { max-width: 85ch; }
.player-status button { margin-top: 10px; }
.game-screen:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; }
.game-screen:fullscreen .game-visual { flex: 1; min-height: 0; height: auto; }
.game-screen:fullscreen .player-controls { flex-shrink: 0; }
.image-error { min-height: 80px; display: flex; align-items: center; justify-content: center; padding: 12px; color: var(--muted); background: var(--paper); font-size: 14px; }
.related-section { max-width: 800px; }
.related-section h2 { margin-bottom: 16px; }
.related-section .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer { border-top: 5px solid var(--navy); background: var(--paper); margin-top: 18px; }
.footer-inner { max-width: 1192px; padding: 22px 24px; margin: auto; display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { font-size: 14px; color: var(--muted); max-width: 40ch; }
.footer-inner nav { display: flex; align-items: flex-start; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
@media (max-width: 899px), (max-height: 649px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-picture img { height: clamp(76px, 17vw, 116px); }
}
@media (max-width: 700px) {
  .header-inner { padding: 4px 16px 0; display: block; }
  .brand { min-height: 42px; font-size: 20px; }
  .brand-mark { height: 27px; width: 27px; font-size: 16px; }
  .main-nav { gap: 8px; justify-content: space-between; }
  .main-nav a { font-size: 14px; padding: 9px 0; }
  main { padding: 20px 16px; }
  .page-intro { align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .page-intro p { font-size: 16px; }
  .programme-total { font-size: 12px; padding-left: 8px; margin-top: 2px; }
  .programme-total strong { font-size: 28px; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 12px; }
  .spotlight-grid .card-picture { flex-basis: 32%; }
  .spotlight-grid .card-copy { padding: 11px; gap: 5px; }
  .spotlight-grid .card-copy p { font-size: 14px; }
  .theme-heading { gap: 8px; margin-bottom: 12px; }
  .theme-heading a { font-size: 14px; }
  h2 { font-size: 21px; }
  .theme-section, .event-batch, .info-section, .event-directory, .empty-state, .related-section { padding-top: 14px; margin-bottom: 20px; }
  .event-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .search-strip { padding: 10px 8px; }
  .search-row, .search-row form { gap: 5px; }
  .search-row button { padding: 9px 10px; font-size: 14px; }
  .search-row input { padding: 9px 8px; }
  .search-feedback { font-size: 12px; gap: 6px; }
  .search-feedback button { font-size: 12px; }
  .event-grid { gap: 10px; }
  .event-grid .card-copy { padding: 9px; gap: 5px; }
  .event-grid h3 { font-size: 17px; line-height: 1.2; }
  .card-action, .control-line { font-size: 13px; }
  .category-tag { font-size: 11px; }
  .batch-heading h2 { font-size: 19px; }
  .batch-heading { gap: 10px; }
  .batch-heading span { font-size: 12px; }
  .footer-inner { display: block; padding: 20px 16px; }
  .footer-inner nav { justify-content: flex-start; margin-top: 10px; gap: 0 16px; }
  .game-visual { height: 64vw; }
  .match-heading h1 { font-size: 28px; }
  .player-controls { gap: 6px; padding: 8px; }
  .player-controls button { padding: 8px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color .12s, border-color .12s; }
}

/* Filled preview cells and native links for complete game cards. */
.spotlight-grid .card-picture { position: relative; }
.spotlight-grid .card-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
