@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 650;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 450 600;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #182139;
  --night: #141c35;
  --paper: #fcfaf5;
  --white: #fffdfa;
  --wash: #f3eee3;
  --line: #ded9cc;
  --muted: #4e5461;
  --gold: #f5c571;
  --ochre: #855b22;
  --scroll-thumb: #8a847a;
  --scroll-track: #f5f1ea;
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --wrap: min(88%, 80rem);
  --header-height: 6rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.25rem); scrollbar-gutter: stable; }
@media (forced-colors: none) {
  html { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); }
button, summary { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, blockquote, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; }
h2 { font-size: clamp(2.35rem, 3.9vw, 3.65rem); letter-spacing: -.046em; line-height: 1.07; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -.028em; line-height: 1.35; }
[hidden] { display: none !important; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid #a46014; outline-offset: 4px; }
.hero :focus-visible, .awards :focus-visible { outline-color: #ffe5ab; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section-pad { padding-block: clamp(4rem, 6.8vw, 6.75rem); }
.section-lead { color: var(--muted); font-size: clamp(1.035rem, 1.3vw, 1.15rem); line-height: 1.62; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon, .award-mark { display: block; width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 10; top: .5rem; left: 1rem; padding: .7rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3rem; padding: .72rem 1.4rem; border: 1px solid transparent; border-radius: 3rem; font-size: .96rem; font-weight: 650; line-height: 1.35; text-align: center; transition: background-color .18s, color .18s, border-color .18s; }
.button-ink { background: var(--ink); color: #fffdfa; }
.button-ink:hover { background: #333f5d; }
.button-gold { background: var(--gold); color: #201a14; }
.button-gold:hover { background: #ffda90; }
.button-gold .icon { transition: transform .18s; }
.button-gold:hover .icon { transform: translateX(3px); }

/* Capçalera i navegació */
.site-header { z-index: 5; position: sticky; top: 0; background: var(--white); border-bottom: 1px solid #222c4215; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 1.5rem; }
.header-brands { display: flex; flex: none; align-items: center; gap: .75rem; }
.brand, .city-brand { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 2.75rem; min-height: 2.75rem; }
.brand img { width: 7.5rem; height: auto; }
.city-brand picture { display: block; }
.city-brand img { width: 7.7rem; height: auto; }
.municipal-logo { mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.5rem); margin-inline: auto; }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 550; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: .25rem; height: 2px; background: #a76a21; transform: scaleX(0); transform-origin: left; transition: transform .18s; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: clamp(.65rem, 1.6vw, 1.6rem); }
.header-download { min-height: 2.7rem; padding: .65rem 1.15rem; gap: .55rem; font-size: .87rem; }
.header-download .icon { width: 1.05rem; height: 1.05rem; }
.header-download .short-label { display: none; }
.languages { position: relative; }
.languages summary, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; }
.languages summary { gap: .35rem; padding: .25rem; font-size: .79rem; font-weight: 680; }
.languages summary::marker, .rule-list summary::marker { content: ""; }
.languages summary .lang-globe { width: 1rem; height: 1rem; }
.languages .chevron { width: .75rem; height: .75rem; }
.languages[open] .chevron { transform: rotate(180deg); }
.language-options { position: absolute; z-index: 2; top: calc(100% + .3rem); right: 0; min-width: 9.5rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; padding: .3rem; box-shadow: 0 8px 22px #141c3518; }
.language-options button { display: flex; width: 100%; min-height: 2.75rem; justify-content: space-between; align-items: center; gap: 1.25rem; padding: .5rem .7rem; border: 0; border-radius: .4rem; background: none; font-size: .95rem; }
.language-options button:hover, .language-options button:focus-visible { background: var(--wash); }
.language-options .icon { width: 1rem; height: 1rem; }
.language-options [aria-pressed="false"] .icon { visibility: hidden; }
.menu-toggle { width: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-toggle .icon { width: 1.2rem; height: 1.2rem; }

/* La il·lustració ocupa tot el fons. El text del cartell és HTML seleccionable. */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: #10192e; }
.hero-art, .hero-art img, .hero-art::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -1; display: block; }
.hero-art img { object-fit: cover; object-position: 73% center; }
.hero-art::after { content: ""; background: linear-gradient(90deg, #10192eb8 0%, #10192e99 37%, #10192e40 54%, transparent 68%); }
.hero-inner { display: flex; align-items: center; min-height: 39rem; padding-block: 3.2rem; }
.hero-copy { position: relative; width: 50%; max-width: 40rem; }
.hero h1 { max-width: 10.6em; font-size: clamp(2.65rem, 3.8vw, 3.7rem); line-height: 1.06; letter-spacing: -.05em; }
.hero h1 em { padding-bottom: .07em; color: var(--gold); font-weight: 450; white-space: nowrap; }
.hero-town { display: block; margin-top: .08em; }
.hero-description { max-width: 26.8rem; margin-top: 1.5rem; color: #f5f1ea; font-size: clamp(1.05rem, 1.27vw, 1.18rem); line-height: 1.58; text-wrap: pretty; }
.hero-prize { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; color: var(--gold); font-size: .95rem; line-height: 1.35; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
/* El logotip ocupa els primers 240 píxels de la imatge original. */
.hero-prize img { flex: none; width: 4.25rem; height: auto; aspect-ratio: 240 / 208; object-fit: cover; object-position: left; filter: brightness(0) invert(1); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.75rem; margin-top: 1.85rem; }
.hero-actions .button { min-height: 3.1rem; padding-inline: 1.35rem; gap: 1.05rem; }
.hero-link { display: inline-flex; gap: .55rem; align-items: center; min-height: 2.75rem; font-weight: 550; font-size: .93rem; }
.hero-link span { text-decoration: underline; text-underline-offset: .32em; text-decoration-color: #ffffff72; }
.hero-link:hover span { text-decoration-color: var(--gold); }
.hero-link .icon { width: .9rem; height: .9rem; }

/* Les quatre dades bàsiques */
.facts { background: #f5f1e7; border-block: 1px solid #c8bda56b; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr 1fr 1.14fr; align-items: center; padding-block: 1.65rem; }
.fact { position: relative; padding-left: clamp(3.3rem, 4.1vw, 4.2rem); min-height: 2.9rem; display: flex; flex-direction: column; justify-content: center; }
.fact + .fact { margin-left: clamp(.6rem, 1.1vw, 1.2rem); padding-left: clamp(4.3rem, 6.2vw, 6.2rem); border-left: 1px solid #d7cfbe; }
.fact dt { color: #625b4f; font-size: .68rem; font-weight: 700; letter-spacing: .11em; line-height: 1.35; text-transform: uppercase; }
.fact dd { margin-top: .25rem; font-size: clamp(1rem, 1.37vw, 1.27rem); letter-spacing: -.035em; font-weight: 650; line-height: 1.3; }
.fact .fact-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: .62rem; width: clamp(2.55rem, 3.1vw, 3.05rem); height: auto; aspect-ratio: 1; border-radius: 50%; background: #eae2ce; color: #735321; }
.fact + .fact .fact-icon { left: clamp(.95rem, 2vw, 2rem); }

.partners.wrap { padding-block: .85rem; }
.partners h2, .footer h2 { color: #635b4d; font: 700 .72rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .13em; }
.partners h2 { margin-bottom: .4rem; text-align: center; }
.partners ul + h2 { margin-top: 1.25rem; }
.partners ul { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .45rem clamp(.65rem, 2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.partners a, .partners .partner-mark { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; border-radius: .35rem; }
.partners a:focus-visible { outline-offset: 1px; }
.partners img { width: auto; height: auto; max-height: 2.75rem; }

/* Presentació i guia de participació */
.contest-story { padding-block: clamp(1.75rem, 3vw, 3rem) 0; }
.story-layout {
  display: grid;
  grid-template:
    "illustration heading" auto
    "illustration body" 1fr
    / minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 1rem clamp(2rem, 5.5vw, 5.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.story-layout h2 { grid-area: heading; font-size: clamp(2.1rem, 3.1vw, 3rem); line-height: 1.13; text-align: start; text-wrap: pretty; }
.story-illustration { grid-area: illustration; align-self: center; justify-self: center; width: 100%; max-width: 30rem; }
.story-illustration img { width: 100%; height: auto; border-radius: .65rem; }
.story-body { grid-area: body; }
.story-body p { color: var(--muted); line-height: 1.7; }
.story-body > p + p { margin-top: 1rem; }
.story-invitation { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-left: 2px solid #b18a46; border-radius: 0 .5rem .5rem 0; background: var(--wash); }
.story-invitation h3 { margin-bottom: .75rem; font-family: var(--display); font-size: 1.55rem; font-weight: 500; line-height: 1.25; }
.guide-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.guide-heading { grid-column: 1 / -1; text-align: center; }
.guide-heading .section-lead { max-width: 64ch; margin: 1rem auto 0; text-wrap: balance; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.45rem; }
.steps li { display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); align-items: start; gap: .9rem; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #d9c395; border-radius: 50%; background: #f5edda; color: #64491f; font: italic 500 1.05rem/1 var(--display); }
.steps h3 { padding-top: .15rem; }
.steps p, .answer, .calendar-event p:not(.event-day), .tradition p { color: var(--muted); }
.steps p { margin-top: .35rem; line-height: 1.55; }
.steps blockquote { margin-top: .6rem; padding: .18rem 0 .18rem .9rem; border-left: 2px solid #c2934b; color: #554529; font: italic 500 1.22rem/1.45 var(--display); letter-spacing: -.018em; }
.contest-poster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(.6rem, 1.5vw, 1.25rem); width: 100%; max-width: 41rem; justify-self: center; }
.contest-poster a { display: block; }
.contest-poster img { width: 100%; height: auto; border-radius: .4rem; }

/* Calendari i reconeixements */
.dates-awards { background: var(--wash); border-block: 1px solid var(--line); }
.dates-grid { display: grid; grid-template-columns: 1.12fr .93fr; align-items: start; gap: clamp(3rem, 7.3vw, 7.5rem); }
.calendar h2 { margin-bottom: 1.85rem; }
.calendar-event { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1.4rem; border-top: 1px solid #d6cdbc; }
.calendar-event:last-child { padding-bottom: 0; }
.date-tile { align-self: start; display: grid; justify-items: center; padding: .4rem .15rem .55rem; border: 1px solid #d8cdb8; border-radius: .5rem; background: var(--paper); line-height: 1; }
.date-tile b { font: 500 2.2rem/1.03 var(--display); letter-spacing: -.07em; }
.date-tile span { margin-top: .22rem; color: var(--ochre); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event-day { margin-bottom: .3rem; color: #745024; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.calendar-event h3 { margin-bottom: .32rem; }
.awards { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.7rem, 3.2vw, 3.2rem); border-radius: .75rem; background: var(--night); color: #fcf6ea; }
.awards::after { content: ""; position: absolute; z-index: -1; right: -2.1rem; top: -2.6rem; width: 11rem; height: 11rem; opacity: .14; background: repeating-radial-gradient(circle at center, transparent 0 1.15rem, #e3c185 1.18rem 1.21rem, transparent 1.24rem 1.6rem); border-radius: 50%; }
.award-mark { width: 2.5rem; height: 2.5rem; margin-bottom: 1.2rem; color: var(--gold); stroke-width: 1.35; }
.awards h2 { max-width: 10em; margin-bottom: 1rem; color: #f6cf88; font-size: clamp(2.1rem, 3vw, 3rem); }
.awards p { position: relative; color: #f4f1eb; line-height: 1.6; }
.awards p + p { margin-top: .9rem; }

/* Bases consultables amb el teclat, també sense JavaScript */
.rules-grid { display: grid; grid-template-columns: .83fr 1.2fr; gap: clamp(3rem, 7.7vw, 8rem); }
.rules-intro .section-lead { max-width: 27rem; margin-block: 1rem 1.5rem; }
.poster-link { margin-top: .5rem; }
.poster-link a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 550; text-decoration: underline; text-underline-offset: .22em; }
.poster-link a:hover { color: var(--ochre); }
.rule-list { border-top: 1px solid var(--line); }
.rule-list details { border-bottom: 1px solid var(--line); }
.rule-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-height: 3.7rem; padding-block: 1.05rem; font-weight: 650; line-height: 1.45; letter-spacing: -.017em; }
.rule-list summary:hover { color: var(--ochre); }
.expand { position: relative; display: block; flex: none; width: 1rem; height: 1rem; }
.expand::before, .expand::after { content: ""; position: absolute; top: 50%; left: 50%; width: .9rem; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.expand::after { transform: translate(-50%, -50%) rotate(90deg); }
.rule-list details[open] .expand::after { display: none; }
.answer { padding: 0 1.2rem 1.2rem 0; }
.answer ul { margin: .6rem 0 0; padding-left: 1.25rem; }
.category-list { margin-top: .9rem; }
.category-list > div { display: flex; align-items: baseline; gap: 1.5rem; padding-block: .35rem; }
.category-list dt { color: #76521d; font-weight: 650; }
.winners { border-top: 1px solid var(--line); }
.winners h2 { max-width: 25em; font-size: clamp(2rem, 3.6vw, 3.4rem); text-wrap: pretty; }
.winners-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.winners-gallery a, .winners-collage { display: block; border-radius: .5rem; }
.winners img { width: 100%; height: auto; border-radius: inherit; }
.winners-collage { max-width: 64rem; margin: 1rem auto 0; }
.tradition { background: #ede7da; padding-block: clamp(2.5rem, 4.4vw, 4.5rem); }
.tradition-inner { display: flex; gap: clamp(1.3rem, 3.5vw, 3.5rem); align-items: start; }
.tradition-star { width: clamp(2rem, 4vw, 4rem); height: auto; aspect-ratio: 1; flex: none; color: #a87631; }
.tradition h2 { font-size: clamp(1.8rem, 2.65vw, 2.65rem); }
.tradition p { max-width: 54rem; margin-top: .75rem; }
.parade-video .wrap { max-width: 64rem; }
.parade-video h2 { text-align: center; }
.parade-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 1.5rem; border-radius: .65rem; background: var(--night); }
.footer { background: var(--white); }
.footer > .wrap { width: 100%; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.15fr); align-items: start; gap: 2rem clamp(1rem, 2.5vw, 3rem); text-align: center; }
.footer h2 { margin-bottom: .9rem; }
.organisers { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.organisers img { width: 5.6rem; height: auto; }
.organisers .municipal-logo { width: 8.5rem; }
.organisers a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.organisers a:hover { text-decoration: underline; text-underline-offset: .2em; }
.org-divider { width: 1px; height: 1.6rem; background: var(--line); }
.footer .partners ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem clamp(.5rem, 1.2vw, 1.25rem); max-width: 40rem; margin-inline: auto; }
.footer .partners .council-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 28rem; }
.footer .partners a, .footer .partner-mark { min-height: 3.9rem; }
.footer .partners img { max-width: min(100%, 9rem); max-height: 3.5rem; }
.partners ul.business-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem clamp(.6rem, 1vw, 1rem); }
.business-logos li { width: clamp(6.5rem, 8vw, 7.5rem); }
.business-logos .wide-logo { width: min(51vw, clamp(11.5rem, 15vw, 13rem)); }
.partners .wide-logo img { width: 100%; max-width: 100%; height: auto; }
.partners.wrap ul.council-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 34rem; margin-inline: auto; }
.partners .council-logos a { flex-direction: column; gap: .35rem; text-align: center; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.partners .council-logos img { width: 100%; height: 3.5rem; max-height: none; object-fit: contain; mix-blend-mode: multiply; }
.partners .partner-mark img { max-height: 4.5rem; mix-blend-mode: multiply; }
.footer-base { display: grid; place-items: center; min-height: 2.75rem; margin-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 1100px) {
  .partners ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root { --wrap: 90%; }
  .header-inner { gap: 1.3rem; }
  .header-brands { gap: .55rem; }
  .city-brand img { width: 3.5rem; }
  .main-nav { gap: 1.25rem; }
  .header-actions { gap: .75rem; }
  .hero-art img { object-position: 65% center; }
  .hero-art::after { background: linear-gradient(90deg, #10192ee6 0%, #10192ed9 28%, #10192e80 53%, transparent 77%); }
  .hero-inner { min-height: 37rem; }
  .hero h1 { font-size: clamp(2.65rem, 4.3vw, 3.4rem); }
  .guide-layout, .dates-grid { gap: 2.8rem; }
}
@media (max-width: 900px) {
  :root { --header-height: 5.25rem; }
  .brand img { width: 6.5rem; }
  .main-nav, .header-inner { gap: 1rem; }
  .main-nav a { font-size: .87rem; }
  .header-download { padding-inline: .85rem; }
  .header-download .full-label { display: none; }
  .header-download .short-label { display: inline; }
  .hero-inner { padding-block: 2.7rem; }
  .hero-copy { width: 53%; }
  .hero h1 { font-size: clamp(2.45rem, 4.7vw, 3.1rem); }
  .hero-description { max-width: 22rem; }
  .hero-actions { gap: .5rem 1rem; }
  .facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding-left: 2.7rem; }
  .fact + .fact { margin-left: .4rem; padding-left: 3.1rem; }
  .fact .fact-icon { width: 2.15rem; padding: .45rem; }
  .fact + .fact .fact-icon { left: .55rem; }
  .fact dt { font-size: .62rem; }
  .guide-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .dates-grid { grid-template-columns: 1.1fr .95fr; gap: 2rem; }
  .rules-grid { gap: 2.3rem; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .hero-actions { gap: .4rem .85rem; }
  .hero-actions .button { min-height: 2.95rem; padding-inline: 1rem; gap: .65rem; font-size: .91rem; }
  .hero-link { gap: .35rem; font-size: .87rem; }
}
@media (max-width: 1280px) {
  html { scrollbar-gutter: auto; }
  html:not(.nav-ready) { scroll-behavior: auto; }
  html:not(.nav-ready) .site-header { position: static; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .main-nav { order: 2; width: 100%; margin: 0; flex-wrap: wrap; padding-bottom: .5rem; }
  .nav-ready .header-inner { flex-wrap: nowrap; }
  .nav-ready .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: .5rem 5% .9rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 .6rem 1rem #121c3512; }
  .nav-ready .main-nav[data-open] { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-ready .main-nav a { font-size: 1rem; min-height: 2.9rem; }
  .nav-ready .main-nav a::after { width: 1.3rem; }
}
@media (max-width: 760px) {
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.1rem; padding-block: 1.2rem; }
  .fact, .fact + .fact { margin: 0; padding-left: 3.25rem; border: 0; min-height: 2.65rem; }
  .fact .fact-icon, .fact + .fact .fact-icon { left: 0; width: 2.55rem; padding: .56rem; }
  .fact:nth-child(even) { padding-left: 3.8rem; border-left: 1px solid var(--line); }
  .fact:nth-child(even) .fact-icon { left: .65rem; }
  .fact dt { font-size: .65rem; }
  .facts dd { font-size: 1.05rem; }
  .guide-layout, .dates-grid, .rules-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .story-layout { grid-template: "heading" "illustration" "body" / minmax(0, 1fr); gap: 2.2rem; }
  .winners-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards { padding: 2rem; }
  .awards h2 { max-width: 15em; }
  .rules-intro .section-lead { max-width: 40rem; }
}
@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; }
  .hero-art { position: relative; order: 2; z-index: 0; height: clamp(12.3rem, 55vw, 20rem); }
  .hero-art img { object-position: 78% center; }
  .hero-art::after { background: linear-gradient(180deg, #10192e 0%, #10192e36 13%, transparent 28%); }
  .hero-inner { position: relative; z-index: 1; min-height: 0; padding: 2.5rem 0 .8rem; }
  .hero-copy { width: 100%; max-width: 34rem; }
  .hero h1 { font-size: clamp(2.5rem, 9.5vw, 3.65rem); }
  .hero h1 [data-i18n="title"] { display: block; }
  .hero-description { max-width: 29rem; margin-top: 1rem; }
  .hero-actions { margin-top: 1.3rem; }
}
@media (max-width: 700px) {
  .section-pad { padding-block: 3.6rem; }
}
@media (max-width: 500px) {
  :root { --header-height: 4.6rem; }
  .header-inner { gap: .5rem; }
  .header-brands { gap: .35rem; }
  .brand img { width: clamp(5.05rem, 22vw, 5.5rem); }
  .city-brand img { width: 2.8rem; }
  .header-actions { gap: .3rem; }
  .header-download { min-height: 2.6rem; padding-inline: .73rem; }
  .lang-globe { display: none; }
  .languages summary { min-width: 2.75rem; }
}
@media (max-width: 420px) {
  .hero-inner { padding-top: 2.25rem; }
  .hero-actions { gap: .25rem .9rem; }
  .hero-actions .button { gap: .65rem; padding-inline: 1rem; font-size: .9rem; min-height: 2.85rem; }
  .hero-link { font-size: .86rem; gap: .35rem; }
  .facts-list { column-gap: .35rem; }
  .fact, .fact + .fact { padding-left: 2.65rem; }
  .fact:nth-child(even) { padding-left: 3.05rem; }
  .fact .fact-icon, .fact + .fact .fact-icon { width: 2.15rem; padding: .45rem; }
  .fact:nth-child(even) .fact-icon { left: .5rem; }
  .fact dd { font-size: .94rem; }
  .fact dt { font-size: .59rem; }
  .steps li { grid-template-columns: 1.9rem minmax(0, 1fr); gap: .7rem; }
  .steps li::before { width: 1.8rem; height: 1.8rem; }
  .calendar-event { grid-template-columns: 3.7rem minmax(0, 1fr); gap: .9rem; }
  .awards { padding: 1.55rem; }
  .tradition-inner { gap: 1rem; }
  .tradition-star { width: 1.7rem; }
}
@media (max-width: 540px) {
  .partners ul.business-logos { column-gap: min(2vw, .5rem); }
  .business-logos li { width: clamp(6rem, 33vw, 8rem); }
}
@media (max-width: 380px) {
  .header-download { width: 2.75rem; padding-inline: 0; }
  .header-download .short-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { --wrap: 100%; }
  .parade-video { display: none; }
  @page { margin: 16mm; }
  html, body { background: white; color: black; font-size: 10pt; }
  .site-header { position: static; border: 0; }
  .header-inner { min-height: 0; margin-bottom: 1.5rem; }
  .brand img { width: 20mm; }
  .city-brand img { width: 22mm; }
  .main-nav, .header-actions, .hero-art, .hero-actions, .story-illustration, .contest-poster, .button, .poster-link, .footer-base, .expand, .skip-link, .tradition-star, .award-mark { display: none !important; }
  .hero, .facts, .dates-awards, .awards, .tradition { background: white; color: black; }
  .hero-inner, .section-pad, .tradition { min-height: 0; padding-block: 1rem; }
  .hero-copy, .hero-description { width: 100%; max-width: none; }
  .hero h1 { max-width: none; font-size: 26pt; }
  .hero h1 span, .hero h1 em { display: inline; }
  .hero h1 em, .hero-description, .hero-prize, .awards h2, .awards p { color: black; }
  .hero-prize img { filter: none; }
  h2 { font-size: 20pt; }
  .guide-layout, .dates-grid, .rules-grid, .story-layout { display: block; }
  .guide-heading { margin-bottom: 1rem; }
  .story-body { margin-top: 1rem; }
  .awards { margin-top: 1rem; padding: 1rem 0 0; border-top: 1px solid #aaa; }
  .awards::after, .rule-list summary::marker { display: none; }
  .facts-list { grid-template-columns: repeat(4, 1fr); }
  .fact, .fact + .fact, .fact:nth-child(even) { margin: 0; padding: 0 .3rem; border: 0; }
  .fact .fact-icon, .rules-intro .section-lead { display: none; }
  .rules-intro { margin-bottom: .8rem; }
  .calendar-event, .steps li, .awards, .rule-list details, .tradition, .footer-columns, .partners { break-inside: avoid; }
  .partners ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem 1rem; }
  .partners a, .partners .partner-mark { min-height: 0; }
  .footer .partners a, .footer .partner-mark { min-height: 0; }
}
