/* Cyclo-cross Magyar Kupa '26 – site styles */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Heal The Web CX';
  src: url('../fonts/HealTheWebCX-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #231F20;
  --ink-2: #2E2A2B;
  --ink-3: #3A3537;
  --line-dark: #4A4547;
  --chrome: #C9CED6;
  --chrome-2: #A9AEB6;
  --bg-grey: #F1F2F4;
  --bg-info: #E9EBEE;
  --line: #D9DCE1;
  --line-2: #E3E5E9;
  --text: #1A1718;
  --text-2: #3E434A;
  --muted: #565C65;
  --accent: #FF1F52;
  --black: #0B0A0A;
  --pad-x: clamp(20px, 5vw, 32px);
  --pad-y: clamp(56px, 9vw, 96px);
  --display: 'Heal The Web CX', 'Archivo', sans-serif;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-grey);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, p, a, dd, span { overflow-wrap: break-word; }
h1, h2, h3 { hyphens: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
:root { --header-h: 80px; }

section[id], [id="dokumentumok"], footer[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--accent); color: #fff; padding: 12px 16px; font-weight: 800;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.wrap--narrow { max-width: 960px; }
.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section--grey { background: var(--bg-grey); }
.section--white { background: #fff; }
.section--dark { background: var(--ink); color: #F1F2F4; }
.stack-xs > * + * { margin-top: 6px; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 32px; }
.stack-xl > * + * { margin-top: clamp(40px, 7vw, 56px); }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 48px); align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 10vw, 60px);
  line-height: 1;
  text-transform: uppercase;
}
.h2--band { font-size: clamp(34px, 8.5vw, 48px); }
.h3 {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.15;
  text-transform: uppercase;
}
.eyebrow {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 14px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { display: flex; align-items: center; gap: 12px; color: #E6E8EB; letter-spacing: .14em; }
.eyebrow--light::before { content: ''; width: 40px; height: 4px; background: var(--accent); flex-shrink: 0; }
.lead { font-size: clamp(17px, 4.2vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.lead + .lead { margin-top: 12px; }
.lead-sm { font-size: clamp(16px, 4.2vw, 18px); color: var(--text-2); }
.on-dark { color: var(--chrome); }
.accent { color: var(--accent); }
.keep-case { text-transform: none; }
.text-link { font-weight: 700; font-size: 15px; padding: 8px 0; display: inline-block; }
.empty-note { color: var(--muted); font-size: 17px; }
.label-head {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-head--spaced { margin-top: 40px !important; }
.tag {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-stretch: 125%; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; margin-left: 10px; vertical-align: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn--lg { font-size: 17px; padding: 16px 30px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { color: #fff; filter: brightness(1.06); }
.btn--ghost-light { border-color: #fff; color: #fff; font-weight: 700; font-size: 15px; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: none; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #000; }
.btn--black { background: var(--black); color: #fff; font-size: 16px; padding: 16px 28px; }
.btn--black:hover { color: #fff; background: #000; }
.i-ext { width: .78em; height: .78em; flex-shrink: 0; display: inline-block; vertical-align: -.04em; }
.btn.is-disabled { background: var(--ink-3); color: var(--chrome); cursor: default; filter: none; }

/* ---------- Admin preview note ---------- */
.admin-note { background: #FFE14D; color: var(--black); font-weight: 700; font-size: 14px; padding: 10px var(--pad-x); text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #F1F2F4; border-bottom: 4px solid var(--accent); position: sticky; top: 0; z-index: 30; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px clamp(12px, 3vw, 32px); padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: clamp(10px, 3vw, 14px); color: #F1F2F4; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__mark { height: 36px; width: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 6px; line-height: 1; min-width: 0; }
.brand__title { font-stretch: 125%; font-weight: 900; font-size: clamp(13px, 3.4vw, 16px); letter-spacing: .02em; text-transform: uppercase; }
.brand__sub { font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-2); }
.site-nav { display: flex; align-items: center; gap: 0 20px; flex-shrink: 0; }
.site-nav__list { display: flex; align-items: center; gap: 0 20px; }
.site-nav__list a { display: block; color: #E6E8EB; text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 0; white-space: nowrap; }
.site-nav__list a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav__cta { margin-left: 6px; font-size: 15px; padding: 12px 22px; }
/* ---------- Menu ----------
   Three states: full menu · hamburger + Nevezés next to it · hamburger with Nevezés inside.
   With JavaScript the page measures what fits (html.menu-mode / html.cta-in-menu);
   without it a fixed width decides. The menu itself opens with a hidden checkbox (no JS needed). */
.menu-cb { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.header-cta { display: none; flex-shrink: 0; margin-left: auto; font-size: 13px; padding: 10px 14px; min-height: 44px; }
.menu-toggle {
  display: none;
  flex-shrink: 0; align-items: center; gap: 10px;
  min-width: 48px; min-height: 48px; padding: 0 14px;
  border: 2px solid #6B6567; color: #fff;
  font-family: var(--sans); font-stretch: 112%; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.menu-toggle { min-width: 124px; justify-content: center; }
.menu-toggle__close { display: none; }
.menu-cb:checked + .site-header .menu-toggle__open { display: none; }
.menu-cb:checked + .site-header .menu-toggle__close { display: inline; }
.menu-cb:focus-visible + .site-header .menu-toggle { outline: 3px solid var(--accent); outline-offset: 2px; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.menu-cb:checked + .site-header .menu-toggle__icon { background: transparent; }
.menu-cb:checked + .site-header .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.menu-cb:checked + .site-header .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

/* full menu: one line */
html.js-layout:not(.menu-mode) .brand__title, html.js-layout:not(.menu-mode) .brand__sub { white-space: nowrap; }
html.js-layout:not(.menu-mode) .site-header__bar { flex-wrap: nowrap; }

/* hamburger, measured (JavaScript) */
html.menu-mode .menu-toggle { display: inline-flex; }
html.menu-mode .header-cta { display: inline-flex; }
html.menu-mode .site-header__bar { flex-wrap: nowrap; }
html.menu-mode .brand { flex: 1 1 auto; }
html.menu-mode .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 4px solid var(--accent); padding: 8px var(--pad-x) 20px; flex-direction: column; align-items: stretch;  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
html.menu-mode .menu-cb:checked + .site-header .site-nav { display: flex; }
html.menu-mode .site-nav__list { flex-direction: column; align-items: stretch; }
html.menu-mode .site-nav__list a { color: #fff; font-stretch: 112%; font-weight: 800; font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--ink-3); white-space: normal; }
html.menu-mode .site-nav__cta { display: none; margin: 16px 0 0; font-size: 16px; padding: 16px 22px; }
html.menu-mode.cta-in-menu .header-cta { display: none; }
html.menu-mode.cta-in-menu .site-nav__cta { display: inline-flex; }

/* hamburger without JavaScript */
@media (max-width: 1299px) {
  html:not(.js-layout) .menu-toggle { display: inline-flex; }
  html:not(.js-layout) .header-cta { display: inline-flex; }
  html:not(.js-layout) .site-header__bar { flex-wrap: nowrap; }
  html:not(.js-layout) .brand { flex: 1 1 auto; }
  html:not(.js-layout) .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 4px solid var(--accent); padding: 8px var(--pad-x) 20px; flex-direction: column; align-items: stretch;  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  html:not(.js-layout) .menu-cb:checked + .site-header .site-nav { display: flex; }
  html:not(.js-layout) .site-nav__list { flex-direction: column; align-items: stretch; }
  html:not(.js-layout) .site-nav__list a { color: #fff; font-stretch: 112%; font-weight: 800; font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--ink-3); white-space: normal; }
  html:not(.js-layout) .site-nav__cta { display: none; margin: 16px 0 0; font-size: 16px; padding: 16px 22px; }
}
@media (max-width: 419px) {
  html:not(.js-layout) .header-cta { display: none; }
  html:not(.js-layout) .site-nav__cta { display: inline-flex; }
}
@media (min-width: 1300px) {
  html:not(.js-layout) .brand__title, html:not(.js-layout) .brand__sub { white-space: nowrap; }
  html:not(.js-layout) .site-header__bar { flex-wrap: nowrap; }
}
/* narrow phones: icon-only menu button, smaller mark */
@media (max-width: 479px) {
  .menu-toggle__open, .menu-toggle__close, .menu-cb:checked + .site-header .menu-toggle__close { display: none; }
  .menu-toggle { min-width: 48px; padding: 0 13px; }
}
@media (max-width: 599px) { .brand__mark { height: 28px; } }
.site-header__bar.wrap { max-width: 1440px; }
/* narrow phones: the date line is in the hero anyway; keeps room for Nevezés next to the menu */
@media (max-width: 479px) {
  .brand__sub { display: none; }
  .brand__mark { height: 24px; }
  .brand { gap: 8px; }
  .site-header__bar { column-gap: 8px; }
  .header-cta { font-size: 12px; padding: 9px 10px; letter-spacing: .02em; gap: 6px; }
  .site-header__bar.wrap { padding-left: 14px; padding-right: 14px; }
  .brand__title { letter-spacing: 0; }
}

/* ---------- Featured bar ---------- */
.featured-bar { background: var(--accent); color: #fff; }
.featured-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.featured-bar__tag { font-stretch: 125%; font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border: 2px solid #fff; padding: 4px 10px; }
.featured-bar__text { flex: 1 1 260px; min-width: 0; font-weight: 700; font-size: 17px; }
.featured-bar__link { color: #fff; font-weight: 800; font-size: 15px; padding: 8px 0; }
.featured-bar__link:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%; }
.hero--dark .hero__photo { filter: saturate(.9) brightness(.85); }
.hero--bw .hero__photo { filter: grayscale(1) contrast(1.15); }
.hero__shade { position: absolute; inset: 0; background: rgba(20, 18, 19, .5); }
.hero--bw .hero__shade { background: rgba(20, 18, 19, .55); }
.hero__inner { position: relative; display: flex; flex-direction: column; gap: clamp(24px, 4vw, 36px); padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(56px, 9vw, 96px); }
.hero__title { max-width: 660px; }
.hero__title img { width: 100%; }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px 24px; max-width: 900px; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 24px; }
.hero__facts dt, .countdown__label { font-stretch: 75%; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--chrome); }
.hero__facts dd { font-weight: 800; font-size: clamp(18px, 4.6vw, 20px); margin-top: 6px; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin-top: 10px; }
.countdown__grid > div { background: rgba(35, 31, 32, .85); border-bottom: 3px solid var(--accent); padding: 14px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown__grid span { font-family: var(--display); font-size: clamp(30px, 8vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__grid small { font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--chrome); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { font-size: 14px; color: var(--chrome); margin-top: -12px; }
.hero__note a, .hero__note .rich a { color: #fff; font-weight: 700; }
.hero__note .rich { font-size: 14px; color: var(--chrome); }

/* ---------- About facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.facts__item { background: #fff; border: 1px solid var(--line); padding: 20px; }
.facts__item dt { font-stretch: 75%; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts__item dd { font-stretch: 125%; font-weight: 800; font-size: clamp(17px, 4.4vw, 20px); margin-top: 10px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.news-card { position: relative; background: var(--bg-grey); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.news-card__media { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid var(--accent); }
.news-card__ph img { width: 26%; height: auto; opacity: .9; }
.news-card__body { padding: clamp(18px, 5vw, 24px); display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.news-card__meta { font-stretch: 75%; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.news-card__title { font-stretch: 125%; font-weight: 900; font-size: clamp(17px, 4.4vw, 20px); line-height: 1.2; text-transform: uppercase; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.news-card__text, .news-card .rich { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.news-card .rich a { position: relative; z-index: 2; }
.news-card__more { margin-top: auto; padding-top: 4px; font-weight: 800; font-size: 15px; color: var(--ink); }
.news-card.is-linked:hover { border-color: var(--ink); }
.news-card.is-linked:hover .news-card__img { transform: scale(1.03); }
.news-card.is-linked:hover .news-card__more { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-card__stretch:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .news-card__img { transition: none; } }

/* ---------- Timeline ---------- */
.timeline { border-top: 2px solid var(--ink); }
.timeline__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: clamp(16px, 4vw, 20px); }
.timeline__row--start { background: #fff; border-bottom: 1px solid var(--line-2); }
.timeline__row--info { background: var(--bg-info); border-bottom: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; }
.timeline__time { flex: 0 0 140px; font-stretch: 75%; font-weight: 800; font-size: clamp(26px, 7vw, 30px); line-height: 1; font-variant-numeric: tabular-nums; }
.timeline__row--info .timeline__time { font-weight: 700; font-size: 22px; color: var(--text-2); }
.timeline__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline__title { display: flex; align-items: center; gap: 10px; font-stretch: 125%; font-weight: 900; font-size: 18px; text-transform: uppercase; }
.timeline__row--start .timeline__title::before { content: ''; width: 10px; height: 10px; background: var(--accent); flex-shrink: 0; }
.timeline__row--info .timeline__title { font-stretch: 112%; font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--text-2); }
.timeline__detail { font-size: 17px; font-weight: 600; }
.timeline__dur { flex: 0 1 auto; font-stretch: 75%; font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.timeline__note { flex: 0 1 auto; font-size: 15px; color: var(--muted); }

/* ---------- Categories ---------- */
.cat-table { background: #fff; border: 1px solid var(--line); }
.cat-table__head, .cat-table__row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px clamp(14px, 4vw, 20px); align-items: baseline; }
.cat-table__head { background: var(--ink); color: #E6E8EB; font-stretch: 75%; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cat-table__row { border-top: 1px solid var(--line-2); font-size: 16px; }
.cat-table__name { flex: 2.2 1 220px; }
.cat-table__row .cat-table__name { font-weight: 800; }
.cat-table__meta { flex: 2.6 1 240px; display: flex; gap: 12px; align-items: baseline; }
.cat-table__meta > span { flex: 1.3 1 0; min-width: 0; font-variant-numeric: tabular-nums; }
.cat-table__meta > .cat-table__start { flex: 0 0 64px; text-align: right; }
.cat-table__row .cat-table__start { font-stretch: 75%; font-weight: 800; font-size: 18px; }
.cat-table__group { padding: 10px clamp(14px, 4vw, 20px); background: var(--bg-info); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Documents ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.doc-card { background: var(--ink); color: #F1F2F4; text-decoration: none; border-top: 4px solid var(--accent); padding: clamp(20px, 5vw, 26px); display: flex; flex-direction: column; gap: 12px; min-height: 180px; min-width: 0; }
.doc-card:hover { color: #fff; background: #000; }
.doc-card.is-pending { border-top-color: var(--line-dark); }
.doc-card__type { align-self: flex-start; border: 1px solid #6B6567; color: var(--chrome); font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: .12em; padding: 3px 8px; }
.doc-card__title { font-stretch: 125%; font-weight: 900; font-size: clamp(16px, 4.4vw, 19px); line-height: 1.2; text-transform: uppercase; color: #fff; hyphens: auto; }
.doc-card__desc { font-size: 15px; line-height: 1.5; color: var(--chrome); flex-grow: 1; }
.doc-card__action { font-weight: 800; font-size: 15px; color: #fff; }
.doc-card.is-pending .doc-card__action { color: var(--chrome-2); }

/* ---------- Track & venue ---------- */
.media-box { background: var(--bg-grey); border: 2px dashed var(--chrome-2); min-height: clamp(240px, 50vw, 420px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.media-box img { width: 100%; height: auto; }
.media-box--plain { border: 1px solid var(--line); padding: 0; background: #fff; min-height: 0; }
.media-box__empty { color: var(--muted); font-weight: 600; text-align: center; }
.kv-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv-list dt, .info-list dt { font-stretch: 75%; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv-list dd { font-weight: 700; font-size: 17px; text-align: right; margin-left: auto; }
.info-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dd { font-size: 17px; margin-top: 4px; }
.venue-name { font-stretch: 125%; font-weight: 900; font-size: clamp(19px, 5vw, 24px); text-transform: uppercase; }

/* ---------- OXSiM zone ---------- */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.zone-card { background: var(--ink-2); border-top: 4px solid var(--accent); min-width: 0; }
.zone-card__img { width: 100%; height: clamp(200px, 50vw, 280px); object-fit: cover; }
.zone-card__body { padding: clamp(20px, 5vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.zone-card__title { font-stretch: 125%; font-weight: 900; font-size: clamp(17px, 4.6vw, 22px); text-transform: uppercase; }
.zone-card__text { font-size: 17px; line-height: 1.5; color: var(--chrome); }

/* ---------- Results band ---------- */
.results-band { background: var(--accent); color: #fff; padding: clamp(40px, 7vw, 56px) 0; }
.results-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.results-band__text { font-weight: 600; font-size: clamp(16px, 4.2vw, 18px); }

/* ---------- Sponsors ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.sponsor { height: clamp(120px, 30vw, 170px); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 24px; }
.sponsor img { height: clamp(36px, 10vw, 52px); width: auto; max-width: 100%; object-fit: contain; }
.supporter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.supporter { height: 96px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 14px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; }
.supporter img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
a.sponsor:hover, a.supporter:hover { border-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 18px 4px;
  font-size: clamp(17px, 4.4vw, 19px); font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 26px; font-weight: 400; flex-shrink: 0; line-height: 1; }
.faq__item[open] summary::after { content: '–'; }
.faq__answer { padding: 0 4px 22px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.faq__answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--chrome); padding: clamp(56px, 8vw, 72px) 0 32px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 36px; }
.site-footer__logo { height: 110px; width: auto; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__col a { color: var(--chrome); padding: 6px 0; }
.site-footer__col a:hover { color: #fff; }
.site-footer__head { font-family: var(--sans); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.site-footer__bottom { border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 20px; font-size: 14px; }

/* ---------- Text pages ---------- */
.text-page { background: #fff; padding: var(--pad-y) 0; }
.prose { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 70ch; }
.prose p + p { margin-top: 14px; }

/* ---------- Maintenance ---------- */
.maintenance { background: var(--ink); color: #fff; min-height: 100vh; display: flex; }
.maintenance__main { margin: auto; padding: 48px var(--pad-x); max-width: 680px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.maintenance__logo { width: 100%; max-width: 560px; }
.maintenance__meta { font-weight: 800; font-size: clamp(18px, 4.6vw, 22px); border-left: 4px solid var(--accent); padding-left: 16px; }
.maintenance__text { color: var(--chrome); font-size: 17px; }

/* ---------- Formatted (HTML) text ---------- */
.rich > * + * { margin-top: 14px; }
.rich ul { list-style: disc; padding-left: 1.4em; }
.rich ol { list-style: decimal; padding-left: 1.6em; }
.rich li + li { margin-top: 6px; }
.rich h2, .rich h3, .rich h4 { font-stretch: 112%; font-weight: 900; line-height: 1.2; color: var(--text); }
.rich h2 { font-size: 24px; } .rich h3 { font-size: 20px; } .rich h4 { font-size: 17px; }
.rich * + h2, .rich * + h3, .rich * + h4 { margin-top: 28px; }
.rich a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rich blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; font-size: 1.08em; font-style: italic; }
.rich img { width: auto; max-width: 100%; height: auto; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.rich table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.rich th { background: var(--bg-info); font-weight: 800; }
.rich strong, .rich b { font-weight: 800; color: var(--text); }
.section--dark .rich strong, .section--dark .rich b, .section--dark .rich h3 { color: #fff; }
.section--dark .rich a { color: #fff; }
.lead.rich { color: var(--text-2); }

/* ---------- Pages: news archive & article ---------- */
.page-top { padding-top: clamp(40px, 7vw, 72px); }
.article { background: #fff; padding: clamp(40px, 7vw, 72px) 0 var(--pad-y); }
.article__head > * + * { margin-top: 14px; }
.article__title { font-stretch: 125%; font-weight: 900; font-size: clamp(28px, 6.4vw, 44px); line-height: 1.08; text-transform: uppercase; hyphens: auto; }
.article__hero { margin-top: 32px; max-width: 1100px; }
.article__hero img { width: 100%; max-height: 640px; object-fit: cover; }
.article__body { margin-top: 32px; }
.article__body > * + * { margin-top: 32px; }
.article__body .rich { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.article__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Line breaks: even lines, no lonely last word ---------- */
.brand__title, .brand__sub, .eyebrow, .h2, .h3, .news-card__title, .article__title, .doc-card__title,
.zone-card__title, .venue-name, .timeline__title, .featured-bar__text, .faq__item summary, .label-head,
.maintenance__meta, .results-band__text, .facts__item dd { text-wrap: balance; }
.lead, .news-card__text, .zone-card__text, .doc-card__desc { text-wrap: pretty; }

@media (max-width: 359px) { .zone-card__title { font-stretch: 100%; } }

/* ---------- Social icons (footer) ---------- */
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social__link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); color: var(--chrome); }
.social__link:hover { color: #fff; border-color: var(--accent); background: var(--accent); }

/* ---------- Accordion (tracks, maps): one open at a time ---------- */
.acc { border-top: 2px solid var(--ink); }
.acc__item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.acc__head {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 4px;
  font-stretch: 125%; font-weight: 900; font-size: clamp(18px, 4.6vw, 22px); line-height: 1.15; text-transform: uppercase;
  transition: padding .25s ease, box-shadow .25s ease;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover .acc__title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.acc__item[open] > .acc__head { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }
.acc__icon { position: relative; flex-shrink: 0; width: 32px; height: 32px; border: 2px solid var(--ink); color: var(--ink); transition: background .25s, border-color .25s, color .25s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s ease; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[open] .acc__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc__item[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { overflow: hidden; }
.acc__inner { padding: 4px 4px 32px; }
.acc__desc { margin-bottom: 20px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .acc__head, .acc__icon, .acc__icon::before, .acc__icon::after { transition: none; } }

/* ---------- Maps: click to view full screen ---------- */
.zoomable { position: relative; display: block; cursor: zoom-in; }
.zoomable img { width: 100%; height: auto; }
.zoomable__badge { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(35, 31, 32, .88); color: #fff; transition: background .2s; }
.zoomable:hover .zoomable__badge, .zoomable:focus-visible .zoomable__badge { background: var(--accent); }

html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(12, 10, 11, .93); }
.lb.is-open { display: flex; animation: lb-in .2s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 16px 44px; overflow: hidden; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #fff; }
.lb.is-zoomed .lb__stage { display: block; padding: 0; overflow: auto; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lb.is-zoomed.is-dragging .lb__stage { cursor: grabbing; }
.lb.is-zoomed .lb__img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; box-shadow: none; }
.lb__close { position: fixed; top: 12px; right: 12px; z-index: 2; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.lb__close:hover { background: var(--accent); color: #fff; }
.lb__close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lb__title { position: fixed; top: 12px; left: 16px; right: 80px; z-index: 1; min-height: 52px; display: flex; align-items: center; color: #fff; font-stretch: 125%; font-weight: 900; font-size: clamp(14px, 3.6vw, 18px); text-transform: uppercase; pointer-events: none; }
.lb__hint { position: fixed; left: 0; right: 0; bottom: 12px; text-align: center; color: var(--chrome); font-size: 13px; pointer-events: none; }
.lb.is-zoomed .lb__title, .lb.is-zoomed .lb__hint { text-shadow: 0 1px 3px #000; }
@media (prefers-reduced-motion: reduce) { .lb.is-open { animation: none; } .zoomable__badge { transition: none; } }
