/* Pool in Flammen — hand-rolled theme, no build step required.
   Palette: night-pool blue meets fire-pit orange. */

:root {
  --bg: #05070f;
  --bg-alt: #0a1120;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);

  --pool-300: #8fe9ff;
  --pool-400: #4fd6f7;
  --pool-500: #17b6e6;
  --pool-600: #0d84b3;
  --pool-900: #0a2540;

  --flame-300: #ffd166;
  --flame-400: #ffb703;
  --flame-500: #ff7b1c;
  --flame-600: #ff4d2e;
  --flame-700: #e8271f;

  --text: #f2f8fc;
  --text-muted: #a9bdd1;
  --text-dim: #7488a0;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-glow-pool: 0 0 60px -12px rgba(23, 182, 230, 0.45);
  --shadow-glow-flame: 0 0 60px -12px rgba(255, 77, 46, 0.45);

  --font-display: 'Poolflame Display', 'Segoe UI', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Poolflame Body', 'Segoe UI', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80vw 60vh at 15% -10%, rgba(23, 182, 230, 0.16), transparent 60%),
    radial-gradient(70vw 55vh at 110% 10%, rgba(255, 77, 46, 0.14), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }

a { color: var(--pool-300); text-decoration: none; }
a:hover { color: var(--pool-400); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(1.9rem, 5vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 1rem, 1.5rem); }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--pool-300), var(--flame-400) 70%, var(--flame-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-flame {
  background: linear-gradient(120deg, var(--flame-400), var(--flame-600) 70%, var(--flame-700));
  color: #1a0700;
  box-shadow: var(--shadow-glow-flame);
}
.btn-flame:hover { color: #1a0700; box-shadow: 0 0 70px -8px rgba(255, 77, 46, 0.65); transform: translateY(-2px); }

.btn-pool {
  background: linear-gradient(120deg, var(--pool-300), var(--pool-600));
  color: #001824;
  box-shadow: var(--shadow-glow-pool);
}
.btn-pool:hover { color: #001824; box-shadow: 0 0 70px -8px rgba(23, 182, 230, 0.65); transform: translateY(-2px); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--bg-card-strong); color: var(--text); }

.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text) !important;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: var(--bg-card);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.lang-switch a.is-active {
  background: linear-gradient(120deg, var(--pool-400), var(--flame-500));
  color: #04121c;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  28%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 2%, rgba(5, 7, 15, 0.35) 45%, rgba(5, 7, 15, 0.55) 100%),
    linear-gradient(100deg, rgba(23, 182, 230, 0.35), transparent 45%),
    linear-gradient(260deg, rgba(255, 77, 46, 0.35), transparent 45%);
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 120px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame-300);
  background: rgba(255, 123, 28, 0.14);
  border: 1px solid rgba(255, 123, 28, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 { max-width: 16ch; }
.hero .lede {
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  position: relative;
  z-index: 1;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  position: relative;
}
.section-tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.event-layout { grid-template-columns: 2fr 1fr; align-items: start; }

@media (max-width: 880px) {
  .grid-3, .grid-2, .event-layout { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pool-500), var(--flame-500));
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.35s ease;
}
.gallery a:hover img { transform: scale(1.035); }
.gallery a { cursor: zoom-in; }

/* ---------- Lightbox ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 7, 15, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card-strong);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card-strong);
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Event card / list ---------- */

.event-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  backdrop-filter: blur(12px);
}

.event-date-badge {
  flex: none;
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--pool-600), var(--flame-600));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: #fff;
  box-shadow: var(--shadow-glow-flame);
}
.event-date-badge .day { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }

.event-date-badge .count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--bg-alt);
  color: var(--pool-300);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.event-card .grow { flex: 1 1 260px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-registration { color: var(--pool-300); border-color: rgba(79, 214, 247, 0.35); background: rgba(79, 214, 247, 0.08); }
.badge-voting { color: var(--flame-300); border-color: rgba(255, 183, 3, 0.35); background: rgba(255, 183, 3, 0.08); }
.badge-closed { color: var(--text-dim); }

/* ---------- Calendar ---------- */

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-bottom: 6px;
}

.calendar-day {
  aspect-ratio: 1 / 0.85;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  position: relative;
  display: flex;
  flex-direction: column;
}

.calendar-day.is-outside { opacity: 0.35; }
.calendar-day.is-today { border-color: var(--pool-400); box-shadow: 0 0 0 1px var(--pool-400) inset; }

.calendar-day .date-num { font-weight: 700; color: var(--text-muted); }

.calendar-event {
  margin-top: auto;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  background: linear-gradient(120deg, var(--pool-500), var(--flame-500));
  color: #04121c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Datepicker (custom, Monday-first) ---------- */
/* Native <input type=datetime-local> pickers take their first-day-of-week
   from the browser/OS locale, not the page — there's no reliable way to
   force Monday-first on them. This is a small custom replacement. */

.datepicker { position: relative; }

.datepicker-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 280px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.datepicker-popover.is-open { display: block; }

.datepicker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.datepicker-nav button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.datepicker-nav span { font-weight: 700; font-size: 0.88rem; }

.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
}
.datepicker-weekday {
  text-align: center;
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 4px;
}
.datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
}
.datepicker-day:hover { border-color: var(--border); }
.datepicker-day.is-outside { opacity: 0.35; }
.datepicker-day.is-selected {
  background: linear-gradient(120deg, var(--pool-500), var(--flame-500));
  color: #04121c;
  font-weight: 700;
}
.datepicker-day.is-today:not(.is-selected) { border-color: var(--pool-400); }

.datepicker-time-row { display: flex; align-items: center; gap: 10px; }
.datepicker-time-row label { font-size: 0.8rem; color: var(--text-dim); flex: none; }

/* ---------- Forms ---------- */

.form-card {
  max-width: 620px;
  margin-inline: auto;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text);
}

.field .hint { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; }

.input,
textarea.input,
select.input {
  width: 100%;
  background: rgba(5, 10, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-dim); }
.input:focus {
  outline: none;
  border-color: var(--pool-400);
  box-shadow: 0 0 0 3px rgba(79, 214, 247, 0.18);
}

/* ---------- Star rating ---------- */

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  transition: color 0.1s ease;
}
.star-rating input:checked ~ label,
.star-rating input:checked ~ label ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--flame-400, #ffb703);
}

/* ---------- Account area ---------- */

.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.account-tabs a {
  padding: 10px 4px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.account-tabs a.is-active { color: var(--text); border-bottom-color: var(--pool-400); }

.account-menu { position: relative; }
.account-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card-strong);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.account-icon img { width: 100%; height: 100%; object-fit: cover; }
.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  z-index: 50;
}
.account-dropdown.is-open { display: block; }
.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-dropdown button:hover { background: rgba(255, 255, 255, 0.08); }

.error-text {
  color: var(--flame-300);
  font-size: 0.84rem;
  margin-top: 7px;
  font-weight: 600;
}

.alert {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 600;
  border: 1px solid;
}
.alert-success {
  background: rgba(23, 182, 230, 0.1);
  border-color: rgba(23, 182, 230, 0.35);
  color: var(--pool-300);
}
.alert-error {
  background: rgba(255, 77, 46, 0.1);
  border-color: rgba(255, 77, 46, 0.35);
  color: var(--flame-300);
}

/* ---------- Ballot / voting ---------- */

.ballot-counter {
  position: sticky;
  top: 88px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
}

.ballot-counter .count { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }

.ballot-list { display: flex; flex-direction: column; gap: 12px; }

.ballot-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ballot-item:hover { border-color: rgba(255, 255, 255, 0.24); }
.ballot-item.is-checked {
  border-color: var(--pool-400);
  background: rgba(79, 214, 247, 0.08);
}
.ballot-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pool-400);
  flex: none;
}
.ballot-item .title { font-weight: 700; flex: 1; }
.ballot-item .own-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--flame-300);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}
.ballot-item .vote-count {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------- Results ---------- */

.results-list { display: flex; flex-direction: column; gap: 10px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.result-row .rank {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-dim);
  width: 2ch;
}
.result-row.is-winner {
  border-color: var(--flame-500);
  background: rgba(255, 123, 28, 0.08);
}
.result-row.is-winner .rank { color: var(--flame-400); }
.result-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pool-500), var(--flame-500));
  border-radius: 999px;
}
.result-row .votes { font-weight: 700; font-size: 0.9rem; color: var(--text-muted); width: 5ch; text-align: right; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--text-muted); }

/* ---------- Utilities ---------- */

.stack-sm > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: rgba(5,7,15,0.97); padding: 12px; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
  }
  .nav-primary-actions { display: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .container { padding-inline: 16px; }

  .hero { min-height: 100vh; align-items: center; }
  .hero-content { padding: 96px 0 56px; }
  .hero .lede { font-size: 1.02rem; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { margin-bottom: 32px; }

  .card { padding: 20px; }

  .event-card { padding: 20px; flex-direction: column; align-items: flex-start; }
  .event-date-badge { width: 64px; height: 64px; }
  .event-date-badge .day { font-size: 1.3rem; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery img { height: 130px; }

  .calendar-grid { gap: 4px; }
  .calendar-weekday { font-size: 0.62rem; }
  .calendar-day { padding: 4px; font-size: 0.7rem; border-radius: 8px; }
  .calendar-day .date-num { font-size: 0.72rem; }
  .calendar-event { font-size: 0; padding: 0; height: 8px; border-radius: 999px; margin-top: auto; }

  .calendar-nav { flex-wrap: wrap; }
  .calendar-nav h2 { font-size: 1.3rem; }

  .ballot-counter { top: 64px; padding: 12px 16px; flex-wrap: wrap; }
  .ballot-item { padding: 13px 14px; }

  .site-header .container { height: 64px; }
  .brand span { font-size: 1rem; }

  .site-footer { padding: 32px 0; text-align: center; }
  .site-footer .container { flex-direction: column; }
}
