/* Kalinga Motor Sports Club — site styles
   Visual language: airfield signage on asphalt and concrete (Rajabasa Airfield),
   race poster red and taxiway-sign yellow, KMSC chequered flag. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-700.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --asphalt: #23272b;
  --asphalt-deep: #1a1d20;
  --asphalt-raised: #30353a;
  --concrete: #e7e6e2;
  --concrete-deep: #d6d4ce;
  --paint: #ffffff;
  --signal: #ffc20e;
  --signal-hover: #ffd54a;
  --red: #d7232b;
  --red-deep: #b01a21;
  --red-bright: #ff4040;
  --bronze: #b8843f;
  --ink: #16181a;
  --text-on-dark: #f2f3f3;
  --muted-on-dark: #b7bdc2;
  --muted-on-light: #4d5359;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(22, 24, 26, .16);
  --ok: #1d7a3c;
  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", Impact, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 68px); } /* room for the event page's sticky section menu */
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.05; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6.25rem); line-height: .9; }
h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: .95; }
h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.05; }
small { font-size: .875rem; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible, .section :focus-visible, .cta-band :focus-visible { outline-color: var(--ink); }
.dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .prizes :focus-visible { outline-color: var(--signal); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; float: none !important; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.note { font-size: .9rem; color: var(--muted-on-light); }

/* ---------- Signs (buttons) ---------- */
.sign {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .5em .95em .5em 1.05em;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.sign svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; flex: none; transition: transform .15s ease; }
.sign:hover { text-decoration: none; }
.sign:hover svg { transform: translateX(3px); }
.sign-go { background: var(--signal); color: #111; box-shadow: inset 0 0 0 2px #111; }
.sign-go:hover { background: var(--signal-hover); }
.sign-dark { background: #111; color: var(--signal); box-shadow: inset 0 0 0 2px var(--signal); }
.sign-dark:hover { background: #000; }
.sign-loc { background: #111; color: var(--signal); box-shadow: inset 0 0 0 2px var(--signal); font-size: 1.15rem; min-height: 40px; padding: .45em .8em; cursor: default; }
.sign-plain { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.sign-plain:hover { background: rgba(127, 127, 127, .12); }
.sign-lg { font-size: 1.6rem; min-height: 60px; padding-inline: 1.1em; }
.sign[disabled], .sign[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-strong { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: var(--signal); }
.section .link-strong, .cta-band .link-strong { text-decoration-color: var(--red); }
.link-strong:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--asphalt-deep); color: var(--text-on-dark); border-bottom: 1px solid var(--line-dark); }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-plate { display: grid; place-items: center; width: 56px; height: 48px; background: #fff; border-radius: var(--radius); padding: 4px; }
.brand-plate img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--display); font-size: 1.75rem; letter-spacing: .04em; }
.brand-name small { font-size: .78rem; color: var(--muted-on-dark); margin-top: 3px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: 10px 10px; font-size: .95rem; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav li a:hover { border-bottom-color: rgba(255, 194, 14, .55); }
.main-nav li a[aria-current="page"] { border-bottom-color: var(--signal); }
.main-nav .nav-register { font-size: 1.15rem; min-height: 44px; }
.header-register { display: none; font-size: 1.05rem; min-height: 40px; padding: .4em .7em; margin-left: auto; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: transparent; color: inherit; border: 2px solid var(--line-dark); border-radius: var(--radius); font: 600 .95rem var(--text); cursor: pointer; }
.menu-icon { display: grid; gap: 4px; width: 20px; }
.menu-icon i { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .header-register { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px; background: var(--asphalt-deep); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { font-family: var(--display); font-weight: 700; font-size: 2rem; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .main-nav li a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--line-dark); }
  .main-nav .nav-register { align-self: flex-start; font-size: 1.5rem; min-height: 56px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand-name small { display: none; }
  .brand-plate { width: 48px; height: 42px; }
  .menu-label { display: none; }
  .header-bar { gap: 12px; }
}
@media (max-width: 359px) {
  .header-bar { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name b { font-size: 1.45rem; }
  .header-register { font-size: .95rem; padding-inline: .5em; }
  .header-register svg { display: none; }
  .menu-toggle { padding-inline: 10px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #2f3439 0%, var(--asphalt) 45%, var(--asphalt-deep) 100%);
  color: var(--text-on-dark);
  padding: clamp(36px, 6vw, 80px) 0 clamp(120px, 14vw, 170px);
}
.hero::before { /* asphalt grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.runway { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(84px, 10vw, 120px); z-index: -1; border-top: 2px solid rgba(255,255,255,.12); }
.runway .piano {
  position: absolute; left: var(--gutter); top: 14px; bottom: 14px; width: clamp(70px, 10vw, 150px);
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.34) 0 8px, transparent 8px 16px);
}
.runway .centreline {
  position: absolute; left: calc(var(--gutter) + clamp(110px, 14vw, 200px)); right: 0; top: 50%; height: 6px; transform: translateY(-50%);
  background: repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 64px, transparent 64px 112px);
  background-size: 112px 6px;
  animation: taxi 2.4s linear infinite;
}
@keyframes taxi { to { background-position: -112px 0; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-kicker { font-weight: 600; color: var(--muted-on-dark); margin-bottom: 14px; }
.hero-title { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: .1em; align-items: end; margin: 0 0 24px; font-size: clamp(3.5rem, 1.2rem + 7.2vw, 8.5rem); line-height: .84; }
.ht-line { grid-column: 1; display: block; white-space: nowrap; }
.ht-num { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: var(--red-bright); font-size: 2.05em; line-height: .74; margin-bottom: -.02em; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 34ch; color: var(--text-on-dark); margin-bottom: 22px; }
.loc-signs { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.hero .hero-actions .link-strong, .page-hero .hero-actions .link-strong { color: var(--text-on-dark); }
.countdown { margin: 26px 0 0; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted-on-dark); }
.countdown b { color: var(--signal); font-size: 1.6em; margin-right: .12em; }
.hero-poster { margin: 0; }
.hero-poster a { display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 30px 60px -20px rgba(0,0,0,.7); transition: transform .25s ease; }
.hero-poster a:hover { transform: translateY(-3px); }
.hero-poster figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted-on-dark); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-poster { max-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  .runway .centreline { animation: none; }
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted-on-light); }
.dark { background: var(--asphalt); color: var(--text-on-dark); }
.dark .section-head p, .dark .note { color: var(--muted-on-dark); }

/* Machines (2W / 4W) */
.machine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.machine { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--paint); border: 2px solid var(--ink); border-radius: 4px; padding: clamp(22px, 3vw, 36px); }
.plate { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem); line-height: .8; padding: .1em .16em .06em; background: var(--signal); color: #111; border-radius: 10px; box-shadow: inset 0 0 0 4px #111; margin-bottom: 22px; letter-spacing: -.01em; }
.machine h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); text-transform: uppercase; }
.machine p { color: var(--muted-on-light); max-width: 46ch; }
.facts { margin: 4px 0 26px; display: grid; gap: 10px; width: 100%; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-light); }
.facts dt { font-size: .9rem; color: var(--muted-on-light); }
.facts dd { margin: 0; font-weight: 600; }
.facts small { display: block; font-weight: 400; color: var(--muted-on-light); }
.machine .sign { margin-top: auto; }
@media (max-width: 760px) { .machine-grid { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: 0; } }

/* Prizes */
.prizes { background: var(--asphalt); color: var(--text-on-dark); }
.prizes-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.prizes-grid p { color: var(--muted-on-dark); max-width: 42ch; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; min-height: 300px; }
.podium li { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 18px 16px; background: var(--asphalt-raised); border-top: 6px solid var(--signal); }
.podium li:nth-child(1) { order: 2; min-height: 100%; }
.podium li:nth-child(2) { order: 1; min-height: 78%; border-top-color: #c9ced3; }
.podium li:nth-child(3) { order: 3; min-height: 62%; border-top-color: var(--bronze); }
.podium-place { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; color: var(--muted-on-dark); }
.podium-amount { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1; }
.podium-plus { font-size: .95rem; color: var(--muted-on-dark); }
@media (max-width: 860px) { .prizes-grid { grid-template-columns: minmax(0, 1fr); } .podium { min-height: 240px; } }
@media (max-width: 480px) { .podium { gap: 6px; } .podium li { padding: 14px 10px; } .podium-amount { font-size: 2rem; } .podium-place { font-size: 1.15rem; } }

/* Split media + copy */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media { margin: 0; }
.split-media img { width: 100%; }
.split-copy p { max-width: 52ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Journeys as a stage list */
.journeys { background: var(--paint); }
.stage-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.stage { display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.25fr) 8rem; gap: 8px 28px; align-items: baseline; padding: 22px 8px; border-top: 2px solid var(--ink); text-decoration: none; transition: background-color .15s ease; }
.stage:hover { background: var(--concrete); }
.stage-km { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.stage-km small { display: block; font-family: var(--text); font-weight: 400; font-size: .8rem; color: var(--muted-on-light); margin-top: 4px; }
.stage-name { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; text-transform: uppercase; }
.stage-route { color: var(--muted-on-light); font-size: .95rem; }
.stage-photos { font-size: .9rem; text-align: right; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }
.route-arrow { color: var(--red-deep); }
.dark .route-arrow, .page-hero .route-arrow { color: var(--red-bright); }
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 4px; }
  .stage-photos { text-align: left; }
}

/* Photo strip */
.photo-strip-section .section-head { margin-bottom: 24px; }
.photo-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; scrollbar-width: thin; }
.photo-tile { flex: none; scroll-snap-align: start; display: block; }
.photo-tile img { height: clamp(220px, 30vw, 360px); width: auto; max-width: none; }
.photo-tile:focus-visible { outline-offset: -4px; }

/* Testimonials */
.voice-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.voice img { width: 100%; max-width: 270px; aspect-ratio: 27 / 17; object-fit: cover; margin-bottom: 14px; border-radius: 2px; }
.voice p { font-size: 1.05rem; }
.voice b { font-weight: 700; }
@media (max-width: 860px) { .voice-grid { grid-template-columns: 1fr; } .voice { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; } .voice img { margin: 0; } }

/* CTA band */
.cta-band { background: var(--signal); color: #111; padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-inner h2 { max-width: 18ch; margin-bottom: .3em; }
.cta-inner p { max-width: 60ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt-deep); color: var(--text-on-dark); font-size: .95rem; }
.chequer { height: 24px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 24px 24px; opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-head { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; margin-bottom: .6em; color: var(--signal); }
.site-footer p { color: var(--muted-on-dark); }
.site-footer a { color: var(--text-on-dark); }
.footer-links { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px; }
.footer-small { font-size: .9rem; }
.brand-footer { margin-bottom: 16px; }
.footer-base { border-top: 1px solid var(--line-dark); padding-top: 18px; padding-bottom: 28px; }
.footer-base p { margin: 0; font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--asphalt); color: var(--text-on-dark); padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(to right, var(--signal) 0 48px, transparent 48px 80px); opacity: .9; }
.crumbs { font-size: .9rem; color: var(--muted-on-dark); margin-bottom: 18px; }
.crumbs a { color: var(--text-on-dark); }
.crumbs span[aria-hidden] { margin: 0 .4em; }
.page-hero h1 { max-width: 14ch; margin-bottom: 18px; }
.page-hero .lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 52ch; color: var(--text-on-dark); margin: 0; }
.page-hero-compact { padding: clamp(22px, 3vw, 36px) 0 clamp(28px, 3.4vw, 42px); }
.page-hero-compact .crumbs { margin-bottom: 10px; }
.page-hero-compact h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.8rem); max-width: none; margin-bottom: 8px; }
.page-hero-compact .lede { font-size: 1rem; color: var(--muted-on-dark); }
.section-form { padding-top: clamp(20px, 3vw, 36px); }
.page-hero.has-media .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .page-hero.has-media .wrap { grid-template-columns: 1fr; } }

/* Event page */
.event-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 30px 0 0; border-top: 1px solid var(--line-dark); }
.event-facts div { padding: 16px 16px 4px 0; }
.event-facts dt { font-size: .85rem; color: var(--muted-on-dark); }
.event-facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; }
@media (max-width: 760px) { .event-facts { grid-template-columns: 1fr 1fr; } }
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: var(--concrete); border-bottom: 1px solid var(--line-light); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 14px 12px; font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a:hover { border-bottom-color: var(--red); }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--paint); }
table.grid-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.grid-table caption { text-align: left; padding: 14px 16px; font-weight: 700; border-bottom: 2px solid var(--ink); }
.grid-table th, .grid-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.grid-table thead th { font-size: .85rem; font-weight: 700; background: var(--concrete); white-space: nowrap; }
.grid-table tbody th { font-family: var(--display); font-size: 1.25rem; white-space: nowrap; }
.grid-table tr:last-child td, .grid-table tr:last-child th { border-bottom: 0; }
.grid-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.grid-table th.doc-cell { font-family: var(--text); font-size: .98rem; font-weight: 400; white-space: normal; }
@media (max-width: 640px) {
  .stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; width: 100%; }
  .stack-sm tr { padding: 12px 14px; border-bottom: 1px solid var(--line-light); }
  .stack-sm tr:last-child { border-bottom: 0; }
  .stack-sm th, .stack-sm td { padding: 2px 0; border: 0; }
  .stack-sm tbody th { margin-bottom: 4px; }
  .stack-sm td[data-label] { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; white-space: normal; }
  .stack-sm td[data-label]::before { content: attr(data-label); font-size: .85rem; color: var(--muted-on-light); font-weight: 400; }
}
.grid-table ul { margin: 0; padding-left: 1.1em; }
.fee-key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.fee-key b { font-variant-numeric: tabular-nums; }
.class-note { margin: 12px 0 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { position: relative; padding: 14px 0 14px 2.4em; border-top: 1px solid var(--line-light); }
.rules li::before { counter-increment: rule; content: counter(rule); position: absolute; left: 0; top: 12px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--red); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: step; }
.steps li { padding: 20px 20px 8px 0; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--red); margin-bottom: 8px; }
.steps h3 { font-size: 1.35rem; margin-bottom: .3em; }
.steps p { color: var(--muted-on-light); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 2px; }
.badge-req { background: var(--ink); color: #fff; }
.badge-opt { background: transparent; color: var(--muted-on-light); box-shadow: inset 0 0 0 1px var(--line-light); }
.badge-na { color: var(--muted-on-light); }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { background: var(--paint); border: 2px solid var(--ink); border-radius: 4px; padding: 22px; }
.contact-card h3 { font-size: 2rem; margin-bottom: .1em; }
.contact-card p { font-family: var(--display); font-size: 1.5rem; font-weight: 400; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.posters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.posters figure { margin: 0; }
.posters figcaption { margin-top: 10px; font-size: .95rem; }
@media (max-width: 800px) { .posters { grid-template-columns: 1fr; } }
.downloads { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.venue-box { background: var(--asphalt); color: var(--text-on-dark); padding: clamp(24px, 4vw, 40px); border-radius: 4px; }
.venue-box p { color: var(--muted-on-dark); }
.venue-box .sign { margin-top: 8px; }
.callout { border-left: 6px solid var(--signal); background: var(--paint); padding: 18px 22px; margin: 24px 0; max-width: 70ch; }
.callout p:last-child { margin-bottom: 0; }

/* Events / albums */
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); list-style: none; margin: 0; padding: 0; }
.album-card a { display: block; text-decoration: none; }
.album-card img, .album-blank { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 14px; }
.album-blank { display: grid; place-items: center; background: var(--asphalt); color: var(--signal); font-family: var(--display); font-size: 3rem; font-weight: 700; }
.album-card h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .2em; }
.album-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .15em; }
.album-meta { font-size: .92rem; color: var(--muted-on-light); margin: 0; }
.album-meta b { color: var(--ink); }
@media (max-width: 960px) { .album-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .album-grid { grid-template-columns: 1fr; } }
.album-switch { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 6px; margin: 0 0 28px; list-style: none; scrollbar-width: thin; }
.album-switch a { display: block; white-space: nowrap; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--paint); }
.album-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.masonry { columns: 3 170px; column-gap: 12px; }
@media (max-width: 480px) { .masonry { column-gap: 8px; } .masonry a { margin-bottom: 8px; } }
.masonry a { display: block; margin: 0 0 12px; break-inside: avoid; position: relative; }
.masonry img { width: 100%; }
.masonry a:hover img { opacity: .92; }
.masonry a:focus-visible { outline-offset: -4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 13, 15, .96); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lb-caption { font-size: .95rem; color: var(--muted-on-dark); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-bottom { display: flex; justify-content: center; gap: 12px; padding: 12px var(--gutter) 18px; }
.lb-btn { min-height: 44px; min-width: 44px; padding: 8px 16px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); border-radius: var(--radius); font: 600 .95rem var(--text); cursor: pointer; }
.lb-btn:hover { border-color: #fff; }

/* Video */
.film { margin: 0; background: #000; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Timeline (about) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 6px; width: 20px; height: 20px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 10px 10px; border: 2px solid var(--ink); }
.timeline b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 0; margin: 0; }
.contact-list > div { padding: 18px 0; border-top: 2px solid var(--ink); }
.contact-list dt { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; margin-bottom: 4px; }
.contact-list dd { margin: 0; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 2px solid var(--ink); background: var(--concrete-deep); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Register: choose category */
.choose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.choose { display: flex; flex-direction: column; gap: 6px; padding: clamp(22px, 3vw, 36px); background: var(--paint); border: 2px solid var(--ink); border-radius: 4px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.choose:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.choose .plate { align-self: flex-start; }
.choose h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); margin-bottom: .1em; }
.choose p { color: var(--muted-on-light); margin-bottom: 10px; }
.choose .sign { align-self: flex-start; margin-top: 10px; pointer-events: none; }
@media (max-width: 760px) { .choose-grid { grid-template-columns: 1fr; } }
.checklist { columns: 2 280px; column-gap: 40px; padding-left: 1.1em; }
.checklist li { break-inside: avoid; margin-bottom: 6px; }

/* ---------- Registration form: one compact page ---------- */
.form-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.form-layout.is-enhanced { grid-template-columns: minmax(0, 1fr); }
.form-layout.is-enhanced .form-progress { display: none; }
.form-progress { position: sticky; top: calc(var(--header-h) + 20px); }
.form-progress ol { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line-light); }
.form-progress a { display: block; padding: 7px 0 7px 16px; margin-left: -3px; border-left: 3px solid transparent; text-decoration: none; font-size: .95rem; color: var(--muted-on-light); }
.form-progress a:hover { color: var(--ink); }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .form-progress { display: none; } }
.reg-form { container: regform / inline-size; }
.form-intro { margin: 0 0 14px; font-size: .98rem; color: var(--muted-on-light); }
.reg-form fieldset { margin: 0 0 16px; padding: 18px clamp(16px, 2.4vw, 28px) 22px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paint); min-width: 0; }
.reg-form legend { float: left; width: 100%; display: flex; align-items: center; padding: 0; margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); text-transform: uppercase; line-height: 1; }
.reg-form legend ~ * { clear: both; }
.legend-num { color: var(--red); margin-right: .3em; }
.sec-status { margin-left: auto; padding: 5px 9px; font: 700 .76rem/1.1 var(--text); letter-spacing: .05em; text-transform: uppercase; color: var(--muted-on-light); background: var(--concrete); border-radius: 2px; white-space: nowrap; }
.sec-status:empty { display: none; }
.sec-status.is-done { color: #fff; background: var(--ok); }
.sec-status.is-done::before { content: "\2713\00a0"; }
.sec-status.is-bad { color: #fff; background: var(--red-deep); }
.fieldset-intro { margin: -4px 0 14px; color: var(--muted-on-light); font-size: .95rem; max-width: 86ch; }
/* Fields: one column on phones, two on tablets, four when the form is wide. */
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 18px; align-items: start; }
.field-grid > .full { grid-column: 1 / -1; }
@media (min-width: 681px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid > .f-wide, .field-grid > .f-span3 { grid-column: 1 / -1; }
}
@container regform (min-width: 880px) {
  .field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-grid > .f-wide, .field-grid > .f-name { grid-column: span 2; }
  .field-grid > .f-span3 { grid-column: span 3; }
  .field-grid.doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .group-label { font-weight: 700; font-size: .93rem; line-height: 1.3; }
.req { color: var(--red-deep); font-weight: 700; }
.opt { font-weight: 400; color: var(--muted-on-light); font-size: .86rem; }
.hint { font-size: .82rem; line-height: 1.35; color: var(--muted-on-light); margin: 0; }
.reg-form input[type="text"], .reg-form input[type="tel"], .reg-form input[type="number"], .reg-form input[type="date"], .reg-form input[type="email"], .reg-form input[type="password"], .reg-form select, .reg-form textarea {
  width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; font-size: 1rem; line-height: 1.3; color: var(--ink);
  background-color: #fff; border: 2px solid #6b7177; border-radius: var(--radius); appearance: none; -webkit-appearance: none;
}
.reg-form input[type="date"] { line-height: 1.2; }
.reg-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316181a' stroke-width='2.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.reg-form input:focus, .reg-form select:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.reg-form input::placeholder { color: #8a9096; }
.field.is-ok input:not([type="checkbox"]):not([readonly]) { border-color: #2f7d4a; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%231d7a3c' stroke-width='2.6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.field.is-ok select { border-color: #2f7d4a; }
.field.is-warn input, .field.is-warn select { border-color: var(--red); background-color: #fff6f6; }
.field.is-warn .hint { color: var(--red-deep); font-weight: 700; }
.field.is-invalid input:not([type="checkbox"]), .field.is-invalid select { border-color: var(--red); background-color: #fff6f6; }
.field-error { margin: 0; color: var(--red-deep); font-weight: 700; font-size: .88rem; line-height: 1.35; }
.field-error::before { content: "! "; }
.reg-form input[readonly].is-copied { background: var(--concrete); color: #3b4046; border-style: dashed; }
.same-as { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-size: .9rem; cursor: pointer; }
.same-as input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.copy-address { min-height: 34px; padding: 3px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 2px; font: 700 .86rem var(--text); color: var(--ink); cursor: pointer; vertical-align: baseline; }
.copy-address:hover { background: #fff8dc; }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.class-option { position: relative; display: block; cursor: pointer; }
.class-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.class-option .co-body { display: grid; gap: 1px; height: 100%; padding: 10px 12px 10px 42px; border: 2px solid #6b7177; border-radius: var(--radius); background: #fff; transition: border-color .12s ease, background-color .12s ease; }
.class-option .co-body::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; }
.class-option input:checked + .co-body { border-color: var(--ink); background: #fff8dc; box-shadow: inset 0 0 0 1px var(--ink); }
.class-option input:checked + .co-body::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23ffc20e' stroke-width='3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.class-option input:focus-visible + .co-body { outline: 3px solid var(--signal); outline-offset: 2px; }
.class-option:hover .co-body { border-color: var(--ink); }
.co-title { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.1; }
.co-detail { font-size: .86rem; line-height: 1.3; color: var(--muted-on-light); }
.co-fee { font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.check-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 13px 6px 9px; border: 2px solid #c3c6c9; border-radius: var(--radius); background: #fff; cursor: pointer; font-size: .95rem; line-height: 1.25; }
.check:hover { border-color: #6b7177; }
.check:has(input:checked) { border-color: var(--ink); background: #fff8dc; }
.check input, .consent input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.selection-summary { margin: 10px 0 0; font-size: .93rem; font-weight: 600; }
.selection-summary:empty { display: none; }

.dropzone { position: relative; display: grid; gap: 6px; padding: 14px; border: 2px dashed #6b7177; border-radius: var(--radius); background: #fafafa; }
.dropzone input[type="file"] { width: 100%; font: inherit; font-size: .95rem; }
.js .dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-button { display: none; }
.js .dz-button { display: inline-flex; justify-self: start; font-size: 1.05rem; min-height: 44px; }
.dz-limits { font-size: .85rem; color: var(--muted-on-light); margin: 0; }
.file-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 10px; background: #fff; border: 1px solid var(--line-light); border-radius: 2px; font-size: .88rem; }
.file-list .fl-name { overflow-wrap: anywhere; min-width: 0; }
.file-list .fl-size { color: var(--muted-on-light); white-space: nowrap; font-variant-numeric: tabular-nums; margin-left: auto; }
.file-list .fl-note { display: block; font-size: .8rem; color: var(--ok); }
.file-list button { min-height: 34px; padding: 3px 9px; background: transparent; border: 1px solid var(--line-light); border-radius: 2px; font: inherit; font-size: .82rem; cursor: pointer; }
.upload-total { font-size: .9rem; font-weight: 600; margin: 10px 0 0; }
.upload-total:empty { display: none; }
/* With JavaScript, each document is a compact card: name on the left, button on the right. */
.js .field[data-upload] { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; height: 100%; padding: 10px 10px 10px 14px; border: 2px dashed #8a9096; border-radius: var(--radius); background: #fafafa; }
.js .field[data-upload] > label { grid-row: 1; grid-column: 1; font-size: .92rem; line-height: 1.35; }
.js .field[data-upload] > .field-error { grid-row: 2; grid-column: 1 / -1; }
.js .field[data-upload] .dropzone { display: contents; }
.js .field[data-upload] .dz-button { grid-row: 1; grid-column: 2; font-size: 1.02rem; min-height: 42px; padding-inline: .75em; white-space: nowrap; }
.js .field[data-upload] .dz-limits { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .field[data-upload] .file-list { grid-row: 3; grid-column: 1 / -1; margin: 0; }
.js .field[data-upload] .file-list:empty { display: none; }
.js .field[data-upload].is-dragover { border-color: var(--ink); background: #fff8dc; }
.js .field[data-upload].has-files { border-style: solid; border-color: var(--ok); background: #f3f9f5; }
.js .field[data-upload].has-files > label::before { content: "\2713\00a0"; color: var(--ok); font-weight: 700; }
.js .field[data-upload].is-invalid { border-style: solid; border-color: var(--red); background: #fff6f6; }
.doc-grid { align-items: stretch; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff8dc; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; line-height: 1.5; }
.form-alert { margin: 0 0 16px; padding: 16px 20px; border: 2px solid var(--red); background: #fff1f1; border-radius: var(--radius); }
.form-alert h2 { font-size: 1.6rem; margin-bottom: .3em; }
.form-alert ul { margin: 0; }
.form-alert a { color: var(--red-deep); font-weight: 600; }
.submit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 0 0; }
.submit-bar p { margin: 0; font-size: .9rem; color: var(--muted-on-light); max-width: 72ch; }
.progress { display: none; margin-top: 18px; padding: 16px 18px; background: var(--asphalt); color: #fff; border-radius: var(--radius); }
.progress.is-active { display: block; }
.progress-bar { height: 10px; background: rgba(255,255,255,.18); border-radius: 5px; overflow: hidden; margin-top: 10px; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .2s ease; }
.progress p { margin: 0; font-weight: 600; }
.progress small { display: block; margin-top: 8px; color: var(--muted-on-dark); }

/* Indemnity form: download, sign, upload. */
.indemnity-help { margin: 0; }
.indemnity-help p { margin: 0; font-size: .93rem; }
.indemnity-steps { margin: 2px 0 10px; padding-left: 1.3em; font-size: .93rem; line-height: 1.5; }
.indemnity-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.indemnity-links .sign { font-size: 1.05rem; min-height: 44px; }
.js .field[data-upload].indemnity-card { border-color: var(--ink); background: #fffbea; }
.js .field[data-upload].indemnity-card.has-files { border-color: var(--ok); background: #f3f9f5; }
.js .indemnity-card .indemnity-help { grid-row: 3; grid-column: 1 / -1; }
.js .indemnity-card .file-list { grid-row: 4; }

/* ---------- Payment: UPI QR code and bank details ---------- */
.pay-panel { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; padding: clamp(16px, 2.6vw, 26px); background: var(--paint); border: 2px solid var(--ink); border-radius: 4px; }
.reg-form .pay-panel { margin: 0 0 16px; background: #f7f6f2; border: 1px solid #c9c7c0; }
.pay-heading { margin: 4px 0 10px; font-size: 1.25rem; }
.pay-qr { margin: 0; text-align: center; }
.pay-qr img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; padding: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; }
.pay-qr figcaption { margin-top: 8px; font: 700 .76rem/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.pay-title { font-size: 1.5rem; margin: 0 0 6px; }
.pay-lead { margin: 0 0 12px; }
.pay-amount { margin: 0 0 12px; padding: 10px 14px; background: #fff8dc; border: 2px solid #111; border-left-width: 6px; border-radius: 2px; }
.pay-total { margin: 0; font-weight: 800; font-size: 1.1rem; }
.pay-runs { margin: 6px 0 0; padding-left: 1.15em; font-size: .9rem; line-height: 1.45; }
.pay-save-note { margin: 6px 0 0; font-weight: 700; font-size: .92rem; color: var(--ok); }
.pay-upi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.pay-upi dt { font-weight: 700; }
.pay-upi dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pay-upi code { font-size: 1.05rem; font-weight: 700; padding: 4px 8px; background: #fff; border: 1px solid var(--line-light); border-radius: 2px; overflow-wrap: anywhere; }
.pay-copy { min-height: 36px; padding: 4px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 2px; font: 700 .88rem var(--text); color: var(--ink); cursor: pointer; }
.pay-copy:hover { background: #fff8dc; }
.pay-phone { margin: 0 0 12px; font-size: .92rem; }
.pay-save { font-weight: 700; white-space: nowrap; }
.pay-bank { margin: 0 0 12px; }
.pay-bank summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.pay-bank dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 8px 0 0; font-size: .95rem; }
.pay-bank dl div { display: contents; }
.pay-bank dt { color: var(--muted-on-light); }
.pay-bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-next { margin: 0; font-size: .92rem; color: var(--muted-on-light); }
@media (max-width: 620px) {
  .pay-panel { grid-template-columns: 1fr; }
  .pay-qr img { max-width: 240px; }
}

/* ---------- Multi-run discount (event page) ---------- */
.disc-table th small, .disc-table td small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted-on-light); }
.disc-table tbody th { white-space: nowrap; }
.disc-table tbody td:nth-child(2) { font-weight: 700; }
.disc-notes { margin: 14px 0 22px; padding-left: 1.2em; max-width: 80ch; }
.disc-notes li { margin-bottom: 4px; }
.disc-posters figure img { width: 100%; height: auto; border-radius: 4px; display: block; }

/* ---------- Event documents: regulations, permits, forms ---------- */
.doc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.doc-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 18px; background: var(--paint); border: 2px solid var(--ink); border-top-width: 8px; border-radius: 4px; }
.doc-card.doc-indemnity { border-top-color: var(--signal); }
.doc-card.doc-permit { border-top-color: var(--red); }
.doc-kind { font: 700 .76rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-light); }
.doc-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.1; }
.doc-card p { margin: 0; font-size: .95rem; }
.doc-card .doc-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* Progress and Submit bar that stays at the bottom of the screen (added by register.js). */
html:has(.page-reg-form) { scroll-padding-bottom: 96px; }
.submit-dock { position: sticky; bottom: 0; z-index: 20; margin-top: 4px; padding: 10px clamp(12px, 2vw, 20px) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--asphalt-deep); color: var(--text-on-dark); border-radius: 4px 4px 0 0; box-shadow: 0 -12px 30px -14px rgba(0, 0, 0, .5); transition: transform .2s ease; }
.submit-dock :focus-visible { outline-color: var(--signal); }
.submit-dock.is-tucked { transform: translateY(120%); }
.sd-msg { margin: 0 0 8px; padding: 8px 12px; font-size: .9rem; font-weight: 600; line-height: 1.4; background: rgba(255, 194, 14, .14); border-left: 4px solid var(--signal); }
.sd-msg.is-error { background: rgba(255, 64, 64, .18); border-left-color: var(--red-bright); }
.sd-row { display: flex; align-items: center; gap: 12px 18px; }
.sd-progress { flex: 1; min-width: 0; display: grid; gap: 7px; }
.sd-text { font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-bar { display: block; height: 6px; background: rgba(255, 255, 255, .16); border-radius: 3px; overflow: hidden; }
.sd-bar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .25s ease; }
.is-complete .sd-text { color: #9df0b8; }
.is-complete .sd-bar i { background: #3ccf6e; }
.sd-next { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; background: transparent; color: var(--text-on-dark); border: 2px solid rgba(255, 255, 255, .45); border-radius: var(--radius); font: 700 .95rem var(--text); white-space: nowrap; cursor: pointer; }
.sd-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.sd-next:hover { border-color: #fff; }
.is-busy .sd-next { display: none; }
.sd-next-short, .sd-short { display: none; }
.is-busy .sd-extra { display: none; }
.submit-dock [data-submit] { flex: none; min-height: 50px; font-size: 1.3rem; }
/* Short screens and phones: the header scrolls away on form pages to leave room for the form. */
@media (max-height: 760px) and (min-width: 681px) {
  .page-reg-form .site-header { position: relative; }
  .page-reg-form .form-progress { top: 20px; }
}
@media (max-width: 680px) {
  .page-reg-form .site-header { position: relative; }
  .form-intro { font-size: .92rem; }
  .reg-form fieldset { padding: 16px 14px 18px; margin-bottom: 12px; }
  .reg-form legend { font-size: 1.45rem; margin-bottom: 12px; }
  .sec-status { font-size: .7rem; padding: 4px 7px; }
  .fieldset-intro { font-size: .9rem; margin-bottom: 12px; }
  .field-grid { gap: 12px; }
  .field { gap: 4px; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .class-option .co-body { padding: 8px 8px 9px 34px; }
  .class-option .co-body::before { left: 9px; top: 10px; width: 18px; height: 18px; }
  .class-option input:checked + .co-body::before { background-size: 14px; }
  .co-title { font-size: 1.08rem; }
  .co-detail, .co-fee { font-size: .78rem; }
  .check-grid { gap: 6px; }
  .check { min-height: 40px; padding: 5px 11px 5px 8px; font-size: .92rem; gap: 7px; }
  .check input { width: 19px; height: 19px; }
  .consent { padding: 12px; font-size: .93rem; }
  .submit-bar p { font-size: .85rem; }
  .submit-dock { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding-inline: var(--gutter); }
  .sd-row { gap: 10px; }
  .sd-next { padding: 0 10px; gap: 4px; }
  .sd-next-long, .sd-extra, .sd-long { display: none; }
  .sd-next-short, .sd-short { display: inline; }
  .is-busy .sd-long { display: inline; }
  .is-busy .sd-text { white-space: normal; font-size: .8rem; }
  .sd-text { font-size: .86rem; }
  .submit-dock [data-submit] { font-size: 1.12rem; padding-inline: .7em; min-height: 48px; }
}

/* ---------- Confirmation ---------- */
.form-layout.is-done { grid-template-columns: minmax(0, 1fr); }
.success-panel { max-width: 940px; background: var(--paint); border: 2px solid var(--ink); border-radius: 4px; padding: clamp(20px, 4vw, 40px); }
.sp-head { display: flex; align-items: center; gap: clamp(12px, 2vw, 18px); margin-bottom: 10px; }
.sp-mark { flex: none; display: grid; place-items: center; width: clamp(44px, 5vw, 56px); height: clamp(44px, 5vw, 56px); border-radius: 50%; background: var(--ok); }
.sp-mark svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: square; }
.is-duplicate .sp-mark { background: var(--signal); box-shadow: inset 0 0 0 2px var(--ink); }
.is-duplicate .sp-mark svg { stroke: var(--ink); }
.sp-title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); margin: 0; overflow-wrap: anywhere; }
.sp-title:focus { outline: none; }
.sp-lede { margin: 0; max-width: 60ch; color: var(--muted-on-light); font-size: 1.05rem; }
.ticket { position: relative; margin: clamp(20px, 3vw, 28px) 0 clamp(24px, 3.4vw, 32px); padding: 30px clamp(18px, 3.4vw, 32px) 24px; background: var(--asphalt-deep); color: var(--text-on-dark); border-radius: 6px; overflow: hidden; }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--signal) 0 26px, transparent 26px 40px); }
.ticket-label { display: block; width: 100%; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.ticket-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-bottom: 20px; border-bottom: 2px dashed rgba(255, 255, 255, .22); }
.ticket-code { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem); line-height: .95; letter-spacing: .04em; color: var(--signal); background: none; padding: 0; white-space: nowrap; }
.ticket-copy { min-height: 40px; padding: 6px 16px; background: transparent; color: var(--signal); border: 2px solid var(--signal); border-radius: var(--radius); font: 700 .92rem var(--text); cursor: pointer; }
.ticket-copy:hover { background: rgba(255, 194, 14, .12); }
.ticket-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 18px 0 0; }
.ticket-meta dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); }
.ticket-meta dd { margin: 2px 0 0; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ticket-meta small { color: var(--muted-on-dark); font-weight: 400; }
.ticket-classes { margin-top: 18px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 11px; font-size: .92rem; line-height: 1.35; background: rgba(255, 194, 14, .1); border: 1px solid rgba(255, 194, 14, .45); border-radius: 3px; }
.chips b { font-family: var(--display); font-size: 1.08rem; text-transform: uppercase; letter-spacing: .02em; color: var(--signal); }
.sp-subhead { margin: 0 0 12px; }
.next-steps { list-style: none; counter-reset: next; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; }
.next-steps li { counter-increment: next; position: relative; padding: 14px 14px 14px 52px; background: var(--concrete); border-radius: 3px; font-size: .95rem; line-height: 1.45; }
.next-steps li::before { content: counter(next); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--signal); font: 700 1.05rem/28px var(--display); text-align: center; }
.sp-note { margin: 0 0 4px; font-weight: 700; }
.sp-help { margin: 0; color: var(--muted-on-light); font-size: .95rem; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-light); }
@media (max-width: 760px) {
  .ticket-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-steps { grid-template-columns: 1fr; }
  .next-steps li { padding: 11px 12px 11px 48px; }
  .next-steps li::before { top: 10px; }
}
@media (max-width: 560px) {
  .sp-actions .sign { width: 100%; }
  .sp-actions .link-strong { margin-inline: auto; }
}
.unavailable { background: var(--paint); border: 2px solid var(--ink); border-left: 10px solid var(--signal); border-radius: 4px; padding: clamp(22px, 4vw, 36px); max-width: 760px; }

@media print {
  .site-header, .site-footer, .cta-band, .form-progress, .submit-bar, .submit-dock, .no-print { display: none !important; }
  body { background: #fff; }
  .page-hero { background: #fff; color: #000; padding: 0 0 12px; }
  .page-hero::after, .crumbs { display: none; }
  .page-hero .lede { color: #000; }
  .section-form { padding: 0; }
  .success-panel { border: 0; padding: 0; max-width: none; }
  .ticket { background: #fff; color: #000; border: 2px solid #000; }
  .ticket::before { display: none; }
  .ticket-code, .chips b { color: #000; }
  .ticket-label, .ticket-meta dt, .ticket-meta small { color: #333; }
  .chips li { background: none; border-color: #000; }
  .next-steps li { background: none; border: 1px solid #999; }
  .next-steps li::before { background: #000; color: #fff; }
}

/* Utilities */
.pt-0 { padding-top: 0 !important; }
.link-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mt-28 { margin-top: 28px; }

/* ---------- Photo heroes (home + event page) ---------- */
.hero-photo { display: flex; align-items: center; min-height: min(86vh, 860px); padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(150px, 15vw, 196px); background: var(--asphalt-deep); }
.hero-photo > .wrap { width: 100%; }
.hero-bg { position: absolute; inset: 0 0 0 16%; z-index: -3; margin: 0; }
.hero-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; }
.hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--asphalt-deep) 0%, rgba(26,29,32,.95) 24%, rgba(26,29,32,.72) 42%, rgba(26,29,32,.22) 64%, rgba(26,29,32,.04) 86%),
    linear-gradient(0deg, rgba(26,29,32,.9) 0%, rgba(26,29,32,0) 30%); }
.hero-photo .hero-grid { grid-template-columns: minmax(0, 780px); }
.hero-photo .hero-title { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-credit { position: absolute; right: var(--gutter); bottom: calc(clamp(84px, 10vw, 120px) + 12px); margin: 0; font-size: .8rem; color: rgba(242,243,243,.62); }
.hero-credit a { color: inherit; }
.page-hero-photo { isolation: isolate; padding-bottom: clamp(56px, 7vw, 96px); background: var(--asphalt-deep); }
.page-hero-photo .hero-bg { inset: 0 0 0 44%; }
.page-hero-photo .hero-bg img { object-position: 55% 42%; }
.page-hero-photo .hero-shade { background: linear-gradient(90deg, var(--asphalt-deep) 0%, rgba(26,29,32,.96) 40%, rgba(26,29,32,.6) 56%, rgba(26,29,32,.12) 78%, rgba(26,29,32,.04) 100%); }
.page-hero-photo .wrap > div { max-width: 820px; }
.page-hero-photo .hero-credit { bottom: 18px; }
@media (max-width: 900px) {
  .hero-photo { display: block; min-height: 0; padding-top: 52vw; }
  .hero-bg { inset: 0 0 auto 0; height: 76vw; }
  .hero-bg img { object-position: center 55%; }
  .hero-shade { inset: 0 0 auto 0; height: 76vw; background: linear-gradient(180deg, rgba(26,29,32,.35) 0%, rgba(26,29,32,0) 22%, rgba(26,29,32,.55) 62%, var(--asphalt-deep) 100%); }
  .hero-credit { position: static; padding: 18px var(--gutter) 0; }
  .page-hero-photo .hero-bg { inset: 0; height: auto; }
  .page-hero-photo .hero-bg img { object-position: 62% 40%; }
  .page-hero-photo .hero-shade { inset: 0; height: auto; background: linear-gradient(180deg, rgba(26,29,32,.72) 0%, rgba(26,29,32,.9) 45%, var(--asphalt-deep) 100%); }
}
.hero-credit { text-shadow: 0 1px 6px rgba(0,0,0,.85); }
