/* Galavate Innovation Challenge 2026, galavate.com/challenge.
   Self-contained: nothing here depends on the corporate site's CSS, fonts or nav.
   Palette sampled from the approved poster and Instagram post (01_final-pack). */

@font-face { font-family: "Archivo Black"; src: url("/challenge/fonts/archivo-black.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/challenge/fonts/public-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/challenge/fonts/public-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/challenge/fonts/public-sans-700.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

/* Metric-matched fallbacks (average advance width and hhea metrics measured with
   fontTools against Arial), so the swap to the web fonts does not move lines. */
@font-face { font-family: "GIC Display Fallback"; src: local("Arial Black"), local("Arial-Black"); font-weight: 400 900; size-adjust: 95.84%; ascent-override: 91.61%; descent-override: 21.91%; line-gap-override: 0%; }
@font-face { font-family: "GIC Text Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400; size-adjust: 104.04%; ascent-override: 91.31%; descent-override: 21.63%; line-gap-override: 0%; }
@font-face { font-family: "GIC Text Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 800; size-adjust: 99.54%; ascent-override: 95.44%; descent-override: 22.60%; line-gap-override: 0%; }

:root {
  --ink: #0A0A0A;          /* poster black */
  --paper: #F4F4F0;        /* poster off-white */
  --tint: #E5E7E2;         /* poster icon tiles */
  --lime: #DEFA51;         /* poster lime: 16.9:1 on ink, 4.7:1 on blue */
  --blue: #2456FA;         /* poster prize panel: white text 5.6:1 */
  --grey: #4B4D48;         /* body text on paper 7.4:1, on tint 6.9:1 */
  --muted-on-ink: #CFD1CA; /* secondary text on ink */
  --rule: #D5D7D1;
  --field: #858882;        /* input borders, 3.5:1 on white */
  --err: #B42318;          /* 6.6:1 on white */
  --err-bg: #FFF5F3;
  --focus: var(--ink);
  --display: "Archivo Black", "GIC Display Fallback", "Arial Black", Arial, sans-serif;
  --text: "Public Sans", "GIC Text Fallback", Arial, sans-serif;
  --gutter: 20px;
  --header: 56px;
}
@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.no-js .js-only { display: none !important; }

html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(16px, 0.9rem + 0.25vw, 18px);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.875rem); line-height: 1.06; letter-spacing: -0.01em; word-spacing: 0.04em; margin-bottom: 0.55em; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.top, .hero, .ws-notes, .foot, .sec-blue { --focus: var(--lime); }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--lime); color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #E9FF7A; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--paper); }
.filetag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 6px; opacity: 0.85; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -7px; border-radius: 10px; }
.mark img { width: 31px; height: 30px; display: block; }
.ident { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; color: #fff; max-width: 11.5em; }
.links { display: none; align-items: center; gap: 28px; }
.links a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 10px 0; }
.links a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
@media (min-width: 960px) {
  .links { display: flex; }
  .top-cta { display: none; }
  .ident { max-width: none; }
}

/* Hero. The source order is the phone's (title, description, prize panel, register,
   facts, cats, final line), so the panel is written once. Below 1100 px .hero-side
   dissolves (display: contents) and the cats move after the facts by `order`; the art
   is aria-hidden, so reading and tab order still follow what is on screen. From 1100 px
   .hero-side is the right column: the panel level with the headline, the cats under it. */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-top: clamp(32px, 4.6vw, 64px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(72px, 7vw, 104px); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 18px; }
.nw { white-space: nowrap; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.75rem, 1.636rem + 4.571vw, 5.5rem);
  line-height: 0.98; letter-spacing: -0.012em; word-spacing: 0.05em;
  margin: 0 0 22px;
}
.hl { color: var(--lime); }
.lede { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem); line-height: 1.5; color: #ECECE7; max-width: 34em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; margin-bottom: 36px; }
.cta-main { display: flex; flex-direction: column; gap: 10px; }
.cta-row .btn-ghost { min-height: 56px; }
.deadline { margin: 0; font-weight: 700; color: var(--lime); font-size: 1.0625rem; }
.closed-note { margin: 0; align-self: center; font-weight: 700; font-size: 1.125rem; color: var(--lime); }
.facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 28px; max-width: 46em; }
.facts li { display: flex; align-items: center; gap: 14px; font-weight: 600; line-height: 1.35; }
.facts .i { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: #1E1F1C; color: var(--lime); stroke-width: 1.7; }
.final-line { order: 2; display: flex; align-items: flex-start; gap: 12px; color: var(--muted-on-ink); margin: 0; font-size: 1rem; line-height: 1.5; }
.final-line .i { color: var(--lime); margin-top: 1px; }
.hero-side { display: contents; }
/* Prize panel: text, never part of the artwork. Straight below 1100 px, a 2 degree
   sticker tilt beside the headline on desktop. The label sits beside the amount when
   there is room and drops under it when there is not; the places wrap only between
   places, each "·" staying at the end of its line. */
.prize-panel { --tilt: 0deg; margin: 0 0 32px; padding: 14px 18px 15px; border-radius: 16px; background: var(--lime); color: var(--ink); transform: rotate(var(--tilt)); }
.pp-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; }
.pp-amount { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 2.75rem); line-height: 1; letter-spacing: -0.01em; }
.pp-label { flex: 1 1 5em; font-weight: 800; font-size: 1.0625rem; line-height: 1.15; }
.pp-places { margin: 10px 0 0; padding-top: 9px; border-top: 1.5px solid rgba(10, 10, 10, 0.22); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.pp-places [data-ev] { font-weight: 800; }
.hero-art { order: 1; margin: 0 0 24px; }
/* a faint rim light, so the tuxedo cat's black back does not dissolve into the black hero */
.cats { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.08)); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; display: block; width: 100%; height: clamp(40px, 5.2vw, 76px); fill: var(--paper); }
@media (max-width: 479px) {
  .cta-row, .cta-main, .cta-row .btn { width: 100%; }
  .btn-ghost { padding: 0 16px; }
}
@media (max-width: 359px) { .btn-ghost .i { display: none; } }
@media (min-width: 600px) {
  /* three facts: eligibility across the top, team size and time side by side under it */
  .facts { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 40px; }
  .facts li:first-child { grid-column: 1 / -1; }
  .prize-panel { justify-self: start; width: min(100%, 27rem); }
  .hero-art { justify-self: center; width: min(100%, 460px); }
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(400px, 37vw, 500px); grid-template-rows: repeat(4, auto) 1fr; column-gap: clamp(48px, 4.5vw, 72px); }
  .hero-head, .lede, .cta-row, .facts, .final-line { grid-column: 1; }
  .final-line { order: 0; }
  /* the panel's top level with the headline's (the eyebrow line plus its margin above it) */
  .hero-side { display: flex; flex-direction: column; align-items: center; gap: 16px; grid-column: 2; grid-row: 1 / -1; padding-top: 39px; }
  /* shrink-wrapped to its longest line, so it reads as a sticker over the cats, not a banner */
  .prize-panel { --tilt: -2deg; width: auto; max-width: 100%; margin: 0; padding: 22px 28px 20px; }
  .pp-pool { display: grid; justify-items: start; row-gap: 6px; }
  .pp-amount { font-size: clamp(4rem, 1.7rem + 3vw, 4.25rem); }
  .pp-label { font-size: 1.25rem; }
  .pp-places { margin-top: 14px; padding-top: 12px; font-size: 1rem; }
  .hero-art { order: 0; width: 100%; margin: 0; }
}

/* Sections */
.sec { padding: clamp(56px, 5.8vw, 80px) 0; background: var(--paper); }
.sec-tint { background: var(--tint); }
.sec-white { background: #fff; }
.sec-blue { background: var(--blue); color: #fff; padding: clamp(52px, 5.5vw, 76px) 0; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--grey); max-width: 36em; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }

/* The challenge */
.examples { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.examples li { display: flex; align-items: center; gap: 16px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 600; line-height: 1.35; }
.tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--ink); }
.tile .i { width: 24px; height: 24px; }
.scope { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; color: var(--grey); line-height: 1.5; }
.scope .i { color: var(--ink); margin-top: 2px; }

/* Approach */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps li, .items li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; border-radius: 16px; padding: 20px 22px 24px; }
.steps li { background: #fff; }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.0625rem; line-height: 1; }
.steps h3, .items h3 { font-size: 1.1875rem; margin: 0; }
.steps p, .items p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--grey); line-height: 1.55; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* Workshops: two equal cards (side by side from 900 px, stacked in order below),
   then the support notes on ink, the treatment the old "Support and tools" box had. */
.ws-intro { margin-bottom: 32px; }
.workshops { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ws { display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 16px; padding: 24px 22px 22px; }
.ws-when { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; margin: 0 0 12px; }
.ws h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.ws-desc { color: var(--grey); line-height: 1.55; margin: 0 0 20px; }
.ws-topics { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ws-topics li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; line-height: 1.45; }
.ws-topics .i { width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); stroke-width: 2.6; }
.ws-next { display: flex; align-items: flex-start; gap: 12px; margin: auto 0 0; padding: 16px 18px; border-radius: 12px; background: var(--tint); line-height: 1.5; }
.ws-next .i { margin-top: 2px; }
.ws-notes { list-style: none; margin: 0; padding: 22px 24px; display: grid; gap: 18px; background: var(--ink); color: #ECECE7; border-radius: 16px; }
.ws-notes li { display: flex; align-items: flex-start; gap: 14px; }
.ws-notes .i { width: 22px; height: 22px; margin-top: 2px; color: var(--lime); }
.ws-notes p { margin: 0; line-height: 1.55; }
@media (min-width: 900px) {
  .workshops { gap: 20px; margin-bottom: 20px; }
  .ws { padding: 32px 32px 28px; }
  .ws-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 28px 32px; }
}
@media (min-width: 1024px) {
  .workshops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws { padding: 28px 26px 24px; }
}

/* Prizes */
.prize-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.pool { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 14px; margin: 0; font-family: var(--text); }
.pool-label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); line-height: 1.3; }
.pool-amount { position: relative; display: inline-block; padding-bottom: 16px; font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 2.4rem + 4.6vw, 6.25rem); line-height: 1; letter-spacing: -0.01em; color: #fff; }
.pool-amount::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 7px; border-radius: 4px; background: var(--lime); }
.places { margin: 0; display: grid; }
.places div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.places div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.places dt { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.places dd { margin: 0; font-family: var(--display); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.875rem); line-height: 1.1; }
.prize-note { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 600; line-height: 1.5; max-width: 40em; }
@media (min-width: 900px) {
  .prize-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "pool places" "note places"; column-gap: 72px; row-gap: 26px; align-items: start; }
  .pool { grid-area: pool; }
  .places { grid-area: places; align-self: center; }
  .prize-note { grid-area: note; max-width: 30em; }
}

/* Dates */
.dates-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dates { width: 100%; border-collapse: collapse; }
.dates thead th { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; padding: 0 0 10px; border-bottom: 2px solid var(--ink); }
.dates tbody th, .dates tbody td { padding: 16px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.4; }
.dates tbody th { width: 46%; padding-right: 16px; font-weight: 700; }
.dates tbody td { color: var(--grey); }
.dates .is-key th, .dates .is-key td { color: var(--ink); font-weight: 700; }
.dates .is-key th::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); vertical-align: 1px; }
.dates-notes { margin-top: 20px; color: var(--grey); }
.dates-notes .tz { color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.dates-notes p:last-child { margin: 0; }
@media (min-width: 900px) {
  .dates-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "h t" "n t"; column-gap: 72px; align-items: start; }
  #dates-h { grid-area: h; }
  .dates { grid-area: t; }
  .dates-notes { grid-area: n; margin-top: 0; }
  .dates tbody th { width: 42%; }
}

/* Submission */
.due { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); margin-bottom: 6px; }
.due strong { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }
.items { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.items li { background: var(--paper); }
.items .tile { background: #fff; }
.how-submit { color: var(--grey); margin: 0 0 28px; }
.judging { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 52px; }
.final details.rule { margin-top: 22px; }
.judging h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.15; margin-bottom: 16px; }
.crit { width: 100%; border-collapse: collapse; }
.crit thead th { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; padding: 0 0 10px; border-bottom: 2px solid var(--ink); }
.crit thead th:last-child, .crit td { text-align: right; }
.crit tbody th, .crit tbody td { padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.crit tbody th { text-align: left; font-weight: 700; line-height: 1.35; padding-right: 16px; }
.crit tbody th span { display: block; margin-top: 4px; font-weight: 400; font-size: 0.9375rem; color: var(--grey); line-height: 1.45; }
.crit td { width: 6.5em; }
.crit .w { display: block; font-family: var(--display); font-size: 1.375rem; line-height: 1.1; }
.crit .bar { display: block; height: 6px; margin: 10px 0 0; border-radius: 3px; background: linear-gradient(var(--ink), var(--ink)) left center / calc(var(--w) * 4%) 100% no-repeat, var(--tint); }
.crit tfoot th, .crit tfoot td { padding: 14px 0 0; text-align: left; font-weight: 700; }
.crit tfoot td { text-align: right; }
.final > p { color: var(--grey); }
.split-box { margin: 24px 0 0; }
.timeline { display: flex; gap: 3px; height: 40px; margin-bottom: 14px; }
.timeline span { flex: var(--m) 1 0; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9375rem; border-radius: 4px; }
.timeline span:first-child { border-radius: 10px 4px 4px 10px; }
.timeline .q { margin-left: 8px; background: var(--lime); color: var(--ink); border-radius: 4px 10px 10px 4px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legend li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; color: var(--grey); }
.legend b { color: var(--ink); white-space: nowrap; }
.legend .lq { margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed var(--rule); }
details.rule { border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details.rule summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px; font-weight: 700; border-radius: 12px; }
.rule-body { padding: 0 18px 4px; color: var(--grey); }
summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 0.2s; }
details[open] > summary::after { transform: rotate(45deg); }
@media (min-width: 720px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .judging { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }

/* Registration */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.remind { margin: 28px 0 0; display: grid; gap: 16px; }
.remind dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px; }
.remind dd { margin: 0; color: var(--grey); line-height: 1.5; }
.remind dd a { color: var(--ink); font-weight: 600; }
@media (min-width: 1024px) {
  .reg-grid { grid-template-columns: minmax(0, 340px) minmax(0, 780px); justify-content: space-between; gap: 56px; align-items: start; }
  .reg-side { position: sticky; top: calc(var(--header) + 32px); }
}
.card { background: #fff; border-radius: 20px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 18px 40px -24px rgba(10, 10, 10, 0.35); }
.panel { background: #fff; border-radius: 20px; padding: clamp(20px, 4vw, 32px); }
.panel p:last-child { margin: 0; }
.closed-title { font-family: var(--display); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.15; margin-bottom: 12px; }
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 14px; font-family: var(--display); font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem); line-height: 1.2; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--text); font-weight: 700; font-size: 0.875rem; }
.f { margin-bottom: 16px; min-width: 0; }
.f label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.opt { font-weight: 400; color: var(--grey); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  font: 400 16px/1.4 var(--text); color: var(--ink); background: #fff;
  border: 1.5px solid var(--field); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px 20px no-repeat; }
::placeholder { color: #6B6E67; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err); }
.err { display: flex; gap: 6px; margin: 6px 0 0; color: var(--err); font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.hint { color: var(--grey); margin: -6px 0 16px; line-height: 1.5; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
@media (min-width: 600px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair-course { grid-template-columns: minmax(0, 1fr) minmax(0, 11em); }
}
.members { display: grid; gap: 14px; }
.members:not(:empty) { margin-bottom: 16px; }
.member { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px 0; }
.member .f { margin-bottom: 16px; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-title { margin: 0; font-weight: 700; }
.linkbtn { min-height: 44px; min-width: 44px; padding: 0 6px; margin-right: -6px; background: none; border: 0; border-radius: 8px; color: var(--ink); font: 600 0.9375rem/1 var(--text); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.members-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.size { margin: 0; font-weight: 600; color: var(--grey); }
.f-last { margin-top: 4px; }
.check { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 400 !important; color: var(--ink); cursor: pointer; line-height: 1.5 !important; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check.bad input { outline: 2px solid var(--err); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary { margin-bottom: 30px; padding: 16px 20px; border: 2px solid var(--err); border-radius: 14px; background: var(--err-bg); }
.summary > p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--err); font-weight: 700; font-size: 1.0625rem; }
.summary ul { margin: 0; padding-left: 22px; }
.summary li { margin: 4px 0; }
.summary a { color: var(--err); font-weight: 600; display: inline-block; min-height: 24px; padding-block: 2px; } /* WCAG 2.5.8: list links, not inline text */
.banner:empty { display: none; }
.banner { margin: 8px 0 22px; padding: 16px 20px; border: 2px solid var(--err); border-radius: 14px; background: var(--err-bg); line-height: 1.55; }
.banner strong { color: var(--err); }
.banner a { font-weight: 700; }
.btn-submit { width: 100%; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-submit:disabled { cursor: progress; opacity: 0.7; }
@media (min-width: 600px) { .btn-submit { width: auto; min-width: 250px; } }
.done { display: grid; gap: 4px; justify-items: start; }
.done:focus { outline: none; }
.done:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); margin-bottom: 14px; }
.tick .i { width: 26px; height: 26px; stroke-width: 2.4; }
.done-title { font-family: var(--display); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.15; margin: 0 0 8px; }
.done p:last-child { margin: 0; font-size: 1.125rem; color: var(--grey); }

/* Questions */
.contact { color: var(--grey); margin: 0; }
.contact a { color: var(--ink); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 2px; font-weight: 700; font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); line-height: 1.35; border-radius: 6px; }
.faq-a p { margin: 0; padding: 0 2px 20px; color: var(--grey); max-width: 40em; }

/* Footer */
.foot { background: var(--ink); color: var(--muted-on-ink); padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 0.9375rem; }
.foot-grid { display: grid; gap: 14px; }
.foot-mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.0625rem; text-decoration: none; min-height: 44px; justify-self: start; }
.foot-mark img { width: 25px; height: 24px; }
.attrib { margin: 0; color: #fff; font-size: 1rem; line-height: 1.5; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.copy { margin: 0; color: #A8AAA3; font-size: 0.875rem; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: center; }
  .foot-mark { grid-row: span 2; }
  .copy { grid-column: 2; }
}

/* Motion: one short entrance each for the cats and the prize panel; nothing loops.
   Everything is gated on no-preference, so reduced motion gets the still page. */
@keyframes gic-rise { from { opacity: 0; transform: translateY(26px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes gic-pop { from { opacity: 0; transform: translateY(8px) rotate(calc(var(--tilt) - 3deg)) scale(0.97); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes gic-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cats { animation: gic-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .prize-panel { animation: gic-pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  .member { animation: gic-fade 0.22s ease-out; }
  details[open] > .faq-a, details[open] > .rule-body { animation: gic-fade 0.2s ease-out; }
}
