:root {
  --bg: #0d0d0d;
  --bg-dark: #000000;
  --surface: #1a1a1a;
  --surface-alt: #141414;
  --line: #333333;
  --text: #f5f5f5;
  --muted: #aaaaaa;
  --accent: #FA0000;
  --accent-light: #ff2222;
  --accent-soft: rgba(250, 0, 0, 0.15);
  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.15);
  --red: #FA0000;
  --red-bg: rgba(250, 0, 0, 0.15);
  --blue: #60a5fa;
  --blue-bg: rgba(96, 165, 250, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --max: 1140px;
  --font: "Helvetica", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
}

.nav-current {
  display: none;
  margin-left: auto;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav a,
.nav-parent {
  opacity: 0.55;
}

.nav a:hover,
.nav-parent:hover,
.nav-year-btn:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.nav a.active,
.nav-parent.active {
  background: var(--accent-soft);
  color: var(--accent-light);
  text-decoration: none;
  opacity: 1;
}

.nav-item {
  position: relative;
}

.nav-parent-row {
  display: flex;
  align-items: center;
}

a.nav-parent {
  text-decoration: none;
}

.nav-caret {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1;
}

.nav-parent,
.nav-year-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-year-btn {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  color: var(--text);
}

.nav-panel,
.nav-year-links {
  display: none;
  position: absolute;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
  z-index: 120;
}

.nav-panel {
  top: calc(100% - 2px);
  left: 0;
}

.nav-year {
  position: relative;
}

.nav-year-links {
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
}

.nav-item:hover > .nav-panel,
.nav-item.open > .nav-panel,
.nav-year:hover > .nav-year-links,
.nav-year.open > .nav-year-links {
  display: block;
}

.nav-panel a,
.nav-year-links a {
  display: block;
  border-radius: 8px;
}

.sponsors-showcase {
  max-width: 920px;
  margin: 0 auto;
}

.sponsors-poster.gallery-item {
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.sponsors-poster img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  transform: none !important;
}

.sponsors-poster:hover img,
.sponsors-poster:focus-visible img {
  transform: none !important;
  filter: brightness(1.04);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.edition-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.edition-card h3 { margin: 0.35rem 0 0.75rem; }

.edition-card .edition-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* Home views: one screen at a time */
body.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.home main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
  padding: 2.5rem 0 3rem;
}

body.home:not(.view-sobre):not(.view-edicoes):not(.view-instituicoes) .site-footer {
  display: none;
}

/* Hero */
.hero {
  background: radial-gradient(at center center, #1a1a1a 0%, #000000 100%);
  color: #fff;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#inicio.page-view.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  padding: 2rem 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 45%);
  pointer-events: none;
}

.hero > .container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 1.12rem;
  opacity: 0.92;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.hero-meta li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: #eee;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-showcase {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.hero-slide[data-kind="logo"] {
  max-width: min(340px, 100%);
}

.hero-slide[data-kind="logo"] img {
  max-width: min(340px, 100%);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.hero-slide[data-kind="sponsors"] {
  width: 100%;
}

.hero-slide[data-kind="sponsors"] img {
  width: 100%;
  max-height: min(360px, 52vh);
}

.hero-slide[data-kind="sponsors"]:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-logo img {
  max-width: min(340px, 100%);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}

.hero-stat:last-child { border-bottom: none; }
.hero-stat strong { font-size: 1.05rem; color: var(--accent-light); }

/* Sections */
section { padding: 4rem 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-alt { background: var(--surface-alt); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
}

.card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.card-logo img {
  max-width: 180px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}
  color: var(--muted);
  font-size: 0.93rem;
}

/* Edition banner */
.edition-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.edition-year {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.edition-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
  min-width: 100px;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sponsors */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.sponsor-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.sponsor-item span:last-child {
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.sponsor-tier {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--accent);
  padding: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tabs - prestação de contas */
.tabs-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-color: rgba(250, 0, 0, 0.35);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Summary cards in contas */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
}

.summary-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.summary-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.value-green { color: var(--green); }
.value-red { color: var(--red); }
.value-blue { color: var(--blue); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-alt);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }

tfoot td {
  font-weight: 700;
  background: var(--surface-alt);
  border-top: 2px solid var(--accent-soft);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-rec { background: var(--green-bg); color: var(--green); }
.badge-desp { background: var(--red-bg); color: var(--red); }
.badge-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.comprovante-link {
  font-size: 0.82rem;
  color: var(--blue);
  margin-right: 0.4rem;
  white-space: nowrap;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--surface-alt);
  color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

.empty-state {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #d6cfc4;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 0.75rem;
}

.footer-grid p, .footer-grid li {
  font-size: 0.9rem;
  margin: 0.35rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.82rem;
  text-align: center;
  color: #9a9080;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:hover video,
.gallery-item:focus-visible img,
.gallery-item:focus-visible video {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(920px, 92vw);
  max-height: 88vh;
}

.lightbox img,
.lightbox video,
.lightbox-media img,
.lightbox-media video {
  max-width: min(920px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  background: #000;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}

body.lightbox-open,
body.modal-open {
  overflow: hidden;
}

/* Modal de comprovante */
.comp-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.comp-modal.open {
  display: flex;
}
.comp-modal-box {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.comp-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.comp-modal-close:hover {
  background: #c00;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-current {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.35rem;
  }

  .nav.open {
    display: flex;
  }

  .nav.open ~ .nav-current {
    display: none;
  }

  .nav a,
  .nav-parent {
    width: 100%;
    text-align: left;
    border-radius: 10px;
  }

  .nav-parent-row {
    width: 100%;
    gap: 0.25rem;
  }

  .nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    color: #fff;
  }

  .nav-item.open > .nav-parent-row .nav-caret {
    color: var(--accent-light);
    border-color: var(--accent);
  }

  .nav-panel,
  .nav-year-links {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 0 0.75rem;
    margin: 0;
  }

  .nav-item:hover > .nav-panel,
  .nav-year:hover > .nav-year-links {
    display: none;
  }

  .nav-item.open > .nav-panel,
  .nav-year.open > .nav-year-links {
    display: block;
  }

  .editions-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .edition-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    text-align: center;
    gap: 1.75rem;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-logo img {
    max-width: min(220px, 70vw);
  }

  .hero-showcase {
    min-height: 200px;
  }

  .hero-slide[data-kind="logo"] {
    max-width: min(200px, 58vw);
  }

  .hero-slide[data-kind="logo"] img {
    max-width: min(200px, 58vw);
  }

  .hero-slide[data-kind="sponsors"] img {
    max-height: min(200px, 32vh);
  }

  .edition-banner { text-align: center; }
  .edition-metrics { justify-content: center; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
