/* Krishna Costume Contest 2026 — page styles.
   All visual values come from the Organic design system (organic-styles.css).
   Do not hard-code colors here; use the tokens. */

html { scroll-behavior: smooth; }
/* Keep the [hidden] attribute authoritative — component display rules
   (.vote-step, .vote-modal, etc.) would otherwise override it. */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
.page { min-height: 100vh; overflow-x: clip; }
/* Softer tap feedback on touch devices (removes the grey flash) */
a, button, .btn, .filter-opt, label { -webkit-tap-highlight-color: transparent; }

/* Photos in full colour. The Organic system's default `.washed` desaturates
   images to ~60% so they sit back into the page; for a festive children's
   contest we keep the little ones vivid, with a slight lift instead of a mute.
   (Overrides organic-styles.css — this sheet loads after it.) */
.washed { filter: saturate(1.06) contrast(1.02); opacity: 1; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-6); }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-slow { animation: none !important; }
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-neutral-200);
}
.site-nav .nav-brand {
  text-decoration: none; color: var(--color-text);
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: calc(var(--space-4) * 1.25); margin-left: auto; }
.nav-links > a:not(.btn) {
  text-decoration: none; font-weight: 600;
  color: var(--color-text); font-size: 15px;
}
.nav-links > a:not(.btn):hover { color: var(--color-accent-700); }
/* Hamburger toggle — hidden on desktop, shown ≤960px (see responsive block) */
.nav-toggle { display: none; }
.nav-toggle-close { display: none; }

/* Anchored sections clear the sticky nav when jumped to from the menu */
#home, #dates, #dress, #register, #vote, #rules, #contact { scroll-margin-top: 74px; }
/* .nav a { color: inherit } outspecifies .btn-primary — restore the cream text */
/* Registration CTAs use a vibrant marigold — brighter and more festive than
   the terracotta accent — so they pop off the warm palette, with a soft glow
   that gently breathes to draw the eye. Only the two Register buttons use it. */
:root { --color-cta: #e5720e; --color-cta-hover: #c9620a; }
.site-nav .btn-primary { padding: 11px 24px; font-size: 15px; }
.site-nav .btn-primary,
.hero-cta .btn-primary {
  position: relative; background: var(--color-cta); color: #fff;
  transition: transform 0.18s ease, background 0.15s ease;
}
.site-nav .btn-primary::after,
.hero-cta .btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  z-index: -1; pointer-events: none;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--color-cta) 55%, transparent);
  animation: ctaGlow 2.8s ease-in-out infinite;
}
@keyframes ctaGlow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.site-nav .btn-primary:hover,
.hero-cta .btn-primary:hover { background: var(--color-cta-hover); color: #fff; transform: translateY(-2px); }
.site-nav .btn-primary:hover::after,
.hero-cta .btn-primary:hover::after {
  animation-play-state: paused; opacity: 1;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-cta) 66%, transparent);
}
.site-nav .btn-primary:active,
.hero-cta .btn-primary:active { background: var(--color-cta-hover); transform: translateY(0); }
/* Hero CTA gets a directional arrow that nudges forward on hover */
.hero-cta .btn-primary svg { transition: transform 0.18s ease; }
.hero-cta .btn-primary:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .site-nav .btn-primary::after, .hero-cta .btn-primary::after { animation: none; opacity: 0.7; }
  .site-nav .btn-primary:hover, .hero-cta .btn-primary:hover { transform: none; }
  .hero-cta .btn-primary:hover svg { transform: none; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}
.hero-blob { position: absolute; border-radius: 50%; z-index: 0; }
.hero-blob-sage { top: 40px; right: -80px; width: 340px; height: 340px; background: var(--color-accent-2-100); }
.hero-blob-terra { bottom: 0; left: -120px; width: 260px; height: 260px; background: var(--color-accent-100); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: calc(var(--space-4) * 1.25); align-items: flex-start; }
.hero-kicker {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.hero-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.hero-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(48px, 5.8vw, 78px); line-height: 1.02;
  margin: 0; letter-spacing: -0.015em; text-wrap: pretty;
}
.hero-intro { font-size: 19px; line-height: 1.65; margin: 0; max-width: 44ch; color: var(--color-neutral-800); }
.hero-cta { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.btn-lg { font-size: 17px; padding: 15px 32px; }
.stat-strip {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-2);
  background: var(--color-neutral-100);
  border-radius: 999px; padding: 10px 22px 10px 12px;
}
.stat-strip-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent-2-200);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.stat-strip-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; line-height: 1.45; color: var(--color-neutral-800); }
.stat-strip-text .stat { white-space: nowrap; }

.hero-media { position: relative; justify-self: end; display: flex; align-items: flex-end; gap: var(--space-4); }
.hero-side { display: flex; flex-direction: column; gap: var(--space-4); align-items: center; padding-bottom: var(--space-6); }
.hero-mini { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; }
.hero-mini img { width: 100%; height: 100%; object-fit: cover; }
.spin-slow { animation: spinSlow 24s linear infinite; }
.hero-photo {
  width: min(360px, 30vw); aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--color-bg); border-radius: 999px;
  box-shadow: var(--shadow-md); padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-2); flex: none; }
.hero-badge .label { font-weight: 700; font-size: 14px; }

/* ── Key dates timeline ──────────────────────────────────────────── */
.dates-section { padding-bottom: var(--space-8); }
.timeline-panel { background: var(--color-neutral-100); border-radius: var(--radius-lg); padding: var(--space-6); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
.timeline-line {
  position: absolute; top: 17px; left: 12.5%; right: 12.5%;
  border-top: 3px dotted var(--color-neutral-300);
}
.milestone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); position: relative; }
.milestone-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 15px; color: var(--color-bg);
}
.milestone-dot.terra { background: var(--color-accent); }
.milestone-dot.sage { background: var(--color-accent-2); }
.milestone-title { font-family: var(--font-heading); font-size: 19px; margin-top: var(--space-1); }
.milestone-body { font-size: 14px; color: var(--color-neutral-700); max-width: 24ch; line-height: 1.5; }

/* ── How it works ────────────────────────────────────────────────── */
.steps-section { padding-bottom: var(--space-8); }
.steps-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: center; }
.steps-intro { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.section-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 44px; line-height: 1.08; margin: 0; letter-spacing: -0.015em;
}
.section-lede { margin: 0; line-height: 1.65; color: var(--color-neutral-800); }
.steps-deco { position: relative; width: 200px; height: 200px; margin-top: var(--space-3); align-self: center; }
.steps-deco-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--color-accent-2-200); }
.steps-deco-photo { position: absolute; inset: 22px; border-radius: 50%; overflow: hidden; }
.steps-deco-photo img { width: 100%; height: 100%; object-fit: cover; }
.stepper { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: calc(var(--space-4) * 1.25); }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 26px; flex: none;
}
.step-line { flex: 1; border-left: 3px dotted var(--color-neutral-300); }
.step:last-child .step-line { display: none; }
.step-body { padding-bottom: var(--space-6); }
.step-title { font-family: var(--font-heading); font-size: 24px; margin-bottom: 6px; }
.step-text { color: var(--color-neutral-800); line-height: 1.6; max-width: 52ch; }

/* ── Countdown band ──────────────────────────────────────────────── */
.countdown-band { background: var(--color-accent-2-800); padding: var(--space-8) var(--space-6); }
.countdown-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap;
}
.countdown-copy { display: flex; flex-direction: column; gap: var(--space-2); }
.countdown-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 38px; margin: 0; color: var(--color-bg);
}
.countdown-note { margin: 0; color: var(--color-accent-2-200); max-width: 42ch; line-height: 1.6; }
.countdown-units { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.countdown-unit {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--color-accent-2-700);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.countdown-value { font-family: var(--font-heading); font-size: 30px; color: var(--color-bg); }
.countdown-label { font-size: 11px; color: var(--color-accent-2-300); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Costume ideas ───────────────────────────────────────────────── */
.dress-section { padding-block: var(--space-8); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-6); }
.idea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.idea-card {
  display: flex; flex-direction: column; gap: calc(var(--space-4) * 1.25);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.idea-card.krishna { background: var(--color-accent-100); }
.idea-card.radha { background: var(--color-accent-2-100); }
.idea-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; }
.idea-photo img { width: 100%; height: 100%; object-fit: cover; }
.idea-copy { display: flex; flex-direction: column; gap: var(--space-3); }
.idea-title { font-family: var(--font-heading); font-size: 26px; }
.idea-card.krishna .idea-title { color: var(--color-accent-800); }
.idea-card.radha .idea-title { color: var(--color-accent-2-800); }
.idea-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  line-height: 1.55; color: var(--color-neutral-800); font-size: 15px;
}
.idea-list li { display: flex; gap: 10px; }
.idea-list .mark { font-weight: 700; flex: none; }
.idea-card.krishna .mark { color: var(--color-accent-700); }
.idea-card.radha .mark { color: var(--color-accent-2-700); }

/* ── Registration ────────────────────────────────────────────────── */
.register-band { background: var(--color-neutral-100); padding: var(--space-8) var(--space-6); }
.register-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-8); align-items: start;
}
.register-aside {
  display: flex; flex-direction: column; gap: var(--space-4);
  position: sticky; top: 100px; align-items: flex-start;
}
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.check-dot {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--color-accent-2-200);
  display: flex; align-items: center; justify-content: center;
}
.register-form { padding: var(--space-8); gap: var(--space-6); border-radius: var(--radius-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-4); }
.form-group.photo-group { gap: var(--space-3); }
.group-head { display: flex; align-items: center; gap: var(--space-3); }
.group-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-accent-200); color: var(--color-accent-800);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 14px; flex: none;
}
.group-title { font-family: var(--font-heading); font-size: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-grid .full { grid-column: 1 / -1; }
.phone-row { display: flex; gap: var(--space-2); }
.phone-code { flex: none; width: auto; min-width: 116px; padding-inline: 12px; cursor: pointer; }
.phone-row .input[type="tel"] { flex: 1; min-width: 0; }
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--color-neutral-600); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--color-neutral-800); cursor: pointer; }
.consent input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--color-accent); cursor: pointer; }
.consent a { color: var(--color-accent-700); text-decoration: underline; text-underline-offset: 2px; }
.consent-sm { font-size: 13px; }
.consent-error { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--color-accent-700); }

.upload-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2); width: 100%; height: 210px;
  border: 2px dashed var(--color-neutral-400); border-radius: 18px;
  background: var(--color-neutral-100);
  cursor: pointer; text-align: center; padding: var(--space-4);
  color: var(--color-neutral-700); font-size: 14px;
  position: relative; overflow: hidden;
}
.upload-slot:hover, .upload-slot.dragover { border-color: var(--color-accent); background: var(--color-accent-100); }
.upload-slot:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.upload-slot input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.upload-slot img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-slot .hint { position: relative; z-index: 1; }
.upload-slot.has-photo .hint {
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  border-radius: 999px; padding: 6px 16px; font-weight: 600;
}
.upload-error { color: var(--color-accent-700); font-size: 13px; font-weight: 600; margin: 0; display: none; }
.upload-error.visible { display: block; }

.ai-warning {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--color-accent-100); border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.ai-warning .icon {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--color-accent-200);
  display: flex; align-items: center; justify-content: center;
}
.ai-warning .text { font-size: 14px; line-height: 1.5; color: var(--color-neutral-800); }

.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  background: var(--color-neutral-100); border-radius: var(--radius-lg);
  padding: var(--space-4) calc(var(--space-4) * 1.25);
}
.fee-label { font-size: 12px; color: var(--color-neutral-700); text-transform: uppercase; letter-spacing: 0.1em; }
.fee-value { font-family: var(--font-heading); font-size: 28px; }
.submit-btn { font-size: 17px; padding: 15px 40px; }

/* ── Audience split ──────────────────────────────────────────────── */
.audience-section { padding-block: var(--space-8) 0; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.audience-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.audience-card.enter { background: var(--color-accent-100); }
.audience-card.vote { background: var(--color-accent-2-100); }
.audience-kicker {
  font-family: var(--mono, var(--font-body)); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.audience-card.enter .audience-kicker { color: var(--color-accent-700); }
.audience-card.vote .audience-kicker { color: var(--color-accent-2-800); }
.audience-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 30px; line-height: 1.1; margin: 0; }
.audience-text { margin: 0; line-height: 1.6; color: var(--color-neutral-800); max-width: 42ch; flex: 1; }
.audience-card .btn { margin-top: var(--space-2); }
.audience-card.vote .btn-secondary { background: var(--color-bg); border-color: transparent; }
.audience-card.vote .btn-secondary:hover { background: color-mix(in srgb, var(--color-accent-2-800) 10%, var(--color-bg)); }

/* ── Voting console (gallery) ────────────────────────────────────── */
.gallery-section { padding-block: var(--space-8); }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6);
}
.gallery-head-left { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; max-width: 62ch; }
.vote-status {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  background: var(--color-neutral-100); color: var(--color-neutral-800);
}
.vote-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-neutral-400); }
.vote-status[data-state="open"] { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.vote-status[data-state="open"]::before { background: var(--color-accent-2); }
.vote-status[data-state="before"] { background: var(--color-accent-100); color: var(--color-accent-800); }
.vote-status[data-state="before"]::before { background: var(--color-accent); }
.vote-status[data-state="closed"]::before { background: var(--color-neutral-500); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gallery-toolbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.gallery-search {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; max-width: 380px;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: 999px; padding: 0 16px; color: var(--color-neutral-600);
}
.gallery-search:focus-within { border-color: var(--color-accent); }
.gallery-search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 15px; padding: 11px 0; color: var(--color-text); }
.filter-seg {
  display: inline-flex; flex: none; background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px; padding: 3px;
}
.filter-opt {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--color-neutral-700); padding: 8px 16px; border-radius: 999px; line-height: 1;
}
.filter-opt:hover { color: var(--color-accent-700); }
.filter-opt.is-active { background: var(--color-accent); color: var(--color-bg); }
.filter-opt:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.gallery-select select { min-height: 42px; min-width: 128px; padding-block: 0; cursor: pointer; }
.gallery-subbar { margin-bottom: var(--space-6); }
.entry-count { font-size: 14px; color: var(--color-neutral-700); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6) var(--space-4); align-items: start; }
.gallery-card { display: flex; flex-direction: column; gap: var(--space-3); scroll-margin-top: 90px; }
.entry-photo {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  overflow: hidden; aspect-ratio: 3 / 4; position: relative;
}
.entry-photo.arch { border-radius: 999px 999px 18px 18px; }
.entry-photo.block { border-radius: 18px 18px 18px 18px; }
.entry-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.entry-photo:hover img { transform: scale(1.04); }
.entry-photo:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.entry-photo::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s;
  background: color-mix(in srgb, var(--color-neutral-900) 14%, transparent);
}
.entry-photo:hover::after { opacity: 1; }
.gallery-card.is-target .entry-photo { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.entry-meta { display: flex; flex-direction: column; gap: 2px; }
.entry-name { font-family: var(--font-heading); font-size: 18px; line-height: 1.15; }
.entry-city { font-size: 13px; color: var(--color-neutral-700); }
.entry-actions { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.vote-btn { flex: 1; gap: 8px; }
.vote-btn .heart { width: 16px; height: 16px; }
.vote-btn.voted { background: var(--color-accent-2); }
.vote-btn.voted:hover { background: var(--color-accent-2); }
.vote-btn:disabled { opacity: 1; }
.vote-btn.is-locked { background: var(--color-neutral-300); color: var(--color-neutral-700); cursor: not-allowed; }
.share-btn { flex: none; width: 42px; height: 42px; padding: 0; }
.gallery-empty { text-align: center; color: var(--color-neutral-700); padding: var(--space-6); }

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: var(--space-8); }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--color-divider); background: var(--color-surface);
  color: var(--color-text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.page-btn:hover:not(:disabled):not(.is-active) { border-color: var(--color-accent); color: var(--color-accent-700); }
.page-btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); cursor: default; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.page-arrow { font-size: 20px; line-height: 1; }
.page-gap { color: var(--color-neutral-500); padding: 0 2px; }

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.lightbox-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, #000 82%, transparent); }
.lightbox-figure {
  position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column;
  align-items: center; gap: var(--space-3); max-width: min(92vw, 720px); max-height: 88vh;
}
.lightbox-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.lightbox-caption { font-family: var(--font-heading); font-size: 22px; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.lightbox-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.lightbox-actions .vote-btn { gap: 8px; font-size: 15px; padding: 12px 26px; }
.lightbox-actions .vote-btn .heart { width: 16px; height: 16px; }
.lightbox-share { gap: 8px; font-size: 15px; padding: 12px 22px; background: color-mix(in srgb, #fff 16%, transparent); color: #fff; border: 0; }
.lightbox-share:hover { background: color-mix(in srgb, #fff 28%, transparent); }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
  border: 0; background: color-mix(in srgb, #fff 14%, transparent); color: #fff;
  cursor: pointer; border-radius: 50%;
}
.lightbox-close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { background: color-mix(in srgb, #fff 28%, transparent); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Vote modal ──────────────────────────────────────────────────── */
.vote-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-4); }
.vote-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-neutral-900) 55%, transparent); }
.vote-dialog {
  position: relative; width: min(420px, 100%); gap: var(--space-4);
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.vote-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border: 0; background: none; cursor: pointer; color: var(--color-neutral-700);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.vote-close:hover { background: var(--color-neutral-100); }
.vote-entry { display: flex; align-items: center; gap: var(--space-3); }
.vote-entry-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.vote-entry-photo img { width: 100%; height: 100%; object-fit: cover; }
.vote-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-neutral-600); }
.vote-entry-name { font-family: var(--font-heading); font-size: 22px; line-height: 1.1; }
.vote-step { display: flex; flex-direction: column; gap: var(--space-3); }
.vote-step .field { gap: 5px; }
.vote-step .field > span { display: block; font-size: 12px; color: var(--color-neutral-700); }
.vote-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-neutral-700); }
.vote-error { margin: 0; font-size: 13px; font-weight: 600; color: var(--color-accent-700); }
.otp-row { display: flex; gap: var(--space-3); justify-content: center; }
.otp-box {
  width: 54px; height: 60px; text-align: center; font-size: 24px;
  font-family: var(--font-heading); color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.otp-box:focus-visible { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
.vote-success { align-items: center; text-align: center; }
.vote-tick {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent-2-200); color: var(--color-accent-2-800);
}

/* ── Videos ──────────────────────────────────────────────────────── */
.videos-band { background: var(--color-neutral-100); padding-block: var(--space-8); margin-top: var(--space-8); }
.videos-section { padding-block: 0; }
.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.video-card { display: flex; flex-direction: column; gap: var(--space-3); }
.video-card iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.video-caption { font-family: var(--font-heading); font-size: 20px; }

/* ── Rules accordion ─────────────────────────────────────────────── */
.rules-section { max-width: 1200px; margin: 0 auto; padding: var(--space-8) var(--space-6); }
.rules-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 840px; }
.rule-card { padding: 0; overflow: hidden; border-radius: var(--radius-lg); gap: 0; }
.rule-toggle {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: var(--space-4);
  width: 100%; padding: calc(var(--space-4) * 1.25) var(--space-6);
  font-family: var(--font-body);
}
.rule-toggle:hover { background: var(--color-neutral-100); }
.rule-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.rule-num {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--color-accent-2-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 16px; color: var(--color-accent-2-800);
}
.rule-title { font-family: var(--font-heading); font-size: 21px; flex: 1; }
.rule-chevron { flex: none; transition: transform 0.2s; }
.rule-toggle[aria-expanded="true"] .rule-chevron { transform: rotate(180deg); }
.rule-body {
  display: none;
  padding: 0 var(--space-6) calc(var(--space-4) * 1.25) calc(var(--space-6) + 38px + var(--space-4));
}
.rule-body.open { display: block; }
.rule-body ul {
  margin: 0; padding-left: 18px; line-height: 1.65;
  color: var(--color-neutral-800);
  display: flex; flex-direction: column; gap: 8px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-accent-2-900); color: var(--color-accent-2-100);
  padding: var(--space-8) var(--space-6) var(--space-6);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-8);
}
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.footer-wordmark { font-family: var(--font-heading); font-size: 28px; color: var(--color-bg); }
.footer-mission { margin: 0; line-height: 1.65; color: var(--color-accent-2-300); max-width: 36ch; }
.footer-heading {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; color: var(--color-accent-2-400);
}
.footer-col a.plain { color: var(--color-accent-2-100); text-decoration: none; }
.footer-col a.plain:hover { color: var(--color-bg); }
.footer-whatsapp { color: var(--color-bg); text-decoration: none; font-weight: 700; }
.footer-address { margin: 0; line-height: 1.65; color: var(--color-accent-2-300); }
.social-row { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent-2-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-2-100);
}
.social-btn:hover { background: var(--color-accent); color: var(--color-bg); }
.footer-bottom {
  max-width: 1200px; margin: var(--space-8) auto 0;
  padding-top: calc(var(--space-4) * 1.25);
  border-top: 1px solid var(--color-accent-2-800);
  font-size: 13px; color: var(--color-accent-2-400);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .steps-grid, .register-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; }
  .hero-photo { width: min(360px, 62vw); }
  .register-aside { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline-line { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  /* ── Mobile navigation ──
     The text links collapse into a dropdown behind the hamburger; the
     marigold Register button stays visible in the bar at all times. */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none; order: 3;
    border: 0; background: none; cursor: pointer; color: var(--color-text);
    border-radius: 50%; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:hover { background: var(--color-neutral-100); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
  .nav-register { margin-left: auto; order: 2; }

  .site-nav .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) var(--space-4) var(--space-3);
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .site-nav .nav-links.open {
    max-height: 70vh; overflow-y: auto; opacity: 1; visibility: visible;
  }
  .site-nav .nav-links > a:not(.btn) {
    display: block; font-size: 17px; padding: 15px 8px;
    border-bottom: 1px solid var(--color-neutral-200);
  }
  .site-nav .nav-links > a:not(.btn):last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .idea-grid, .videos-grid, .field-grid, .footer-grid, .audience-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .entry-name { font-size: 16px; }
  .entry-actions { flex-wrap: wrap; }
  .vote-btn { flex: 1 1 100%; }
  .gallery-toolbar { flex-direction: column; align-items: stretch; }
  .gallery-search { max-width: none; }
  .filter-seg { display: flex; }
  .filter-opt { flex: 1; text-align: center; padding: 11px 12px; }
  .gallery-select { flex: 1; }
  .gallery-select select { width: 100%; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .field-grid .full { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; gap: var(--space-6); }
  .milestone {
    display: grid; grid-template-columns: 36px 1fr;
    column-gap: var(--space-4); row-gap: 4px;
    text-align: left; align-items: start; justify-items: start;
  }
  .milestone-dot { grid-row: 1 / 3; }
  .milestone-title { margin-top: 4px; }
  .countdown-unit { width: 76px; height: 76px; }
  .countdown-value { font-size: 24px; }
  .section-title { font-size: 34px; }
  .register-form { padding: var(--space-6); }
  .rule-body { padding-left: var(--space-6); }
  .hero-side { display: none; }
  .hero-photo { width: 100%; max-width: 420px; }

  /* Reclaim side space: trim the wide gutters on small screens */
  .container, .hero, .countdown-band, .register-band,
  .rules-section, .site-footer { padding-inline: var(--space-4); }

  /* Prevent iOS Safari from zooming the viewport when a field is focused
     (any form control under 16px triggers it). Also gives fatter tap targets. */
  .input, select.input, .gallery-search input, #entry-search {
    font-size: 16px; min-height: 46px;
  }
  .phone-code { min-width: 104px; }

  /* Comfortable, thumb-friendly primary actions */
  .btn-lg, .submit-btn { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .form-footer { flex-direction: column; align-items: stretch; text-align: left; }
  .form-footer > div { display: flex; align-items: baseline; gap: var(--space-2); }
  .audience-card .btn { width: 100%; justify-content: center; }

  /* Tighten the bar so the wordmark, Register and hamburger sit on one line */
  .site-nav { padding-inline: var(--space-3); }
  .nav { gap: var(--space-2); }
  .site-nav .nav-brand { font-size: 15px; line-height: 1.1; }
  .site-nav .brand-mark { width: 30px; height: 30px; }
  .site-nav .btn-primary { padding: 9px 16px; font-size: 14px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: clamp(38px, 11vw, 48px); }
  .countdown-unit { width: 68px; height: 68px; }
}
