/* SPARK-O-FEST Theme — matches official mockup
   Brand: Maroon #6C000D · Gold #F7C100 · Clean academic festival look */

:root,
html[data-theme="classic"] {
  --maroon: #6c000d;
  --maroon-deep: #4a0009;
  --maroon-soft: #8a1a28;
  --gold: #f7c100;
  --gold-dark: #d4a017;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-warm: #faf8f6;
  --footer-bg: #f0f0f0;
  --surface: #ffffff;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(108, 0, 13, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.12);
  --container: 1400px;
  --container-narrow: 1180px;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --header-h: 86px;
  --topbar-h: 38px;
  --tag-bg: rgba(108, 0, 13, 0.08);
  --color-scheme: light;
}

html[data-theme="emerald"] {
  --maroon: #0b5c45;
  --maroon-deep: #063c2d;
  --maroon-soft: #1a7a5c;
  --gold: #e8c547;
  --gold-dark: #c9a62a;
  --ink: #14241f;
  --muted: #4f665c;
  --line: #d7e5df;
  --bg: #ffffff;
  --bg-soft: #f3f8f5;
  --bg-warm: #f6faf7;
  --footer-bg: #e8f1ec;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(11, 92, 69, 0.1);
  --tag-bg: rgba(11, 92, 69, 0.1);
  --color-scheme: light;
}

html[data-theme="ruby"] {
  --maroon: #8b1538;
  --maroon-deep: #5f0e26;
  --maroon-soft: #a82d52;
  --gold: #e8c36a;
  --gold-dark: #c9a445;
  --ink: #221018;
  --muted: #6b525a;
  --line: #ead8de;
  --bg: #ffffff;
  --bg-soft: #fbf5f7;
  --bg-warm: #fcf8f6;
  --footer-bg: #f3e8ec;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(139, 21, 56, 0.1);
  --tag-bg: rgba(139, 21, 56, 0.1);
  --color-scheme: light;
}

html[data-theme="wine"] {
  --maroon: #5c1a2e;
  --maroon-deep: #3d101e;
  --maroon-soft: #7a2f46;
  --gold: #d8b56a;
  --gold-dark: #b89445;
  --ink: #1f1218;
  --muted: #67525a;
  --line: #e5d6db;
  --bg: #ffffff;
  --bg-soft: #faf5f7;
  --bg-warm: #fbf8f5;
  --footer-bg: #f0e6ea;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(92, 26, 46, 0.1);
  --tag-bg: rgba(92, 26, 46, 0.1);
  --color-scheme: light;
}

html[data-theme="olive"] {
  --maroon: #4a5c2a;
  --maroon-deep: #31401c;
  --maroon-soft: #64783c;
  --gold: #d4b84a;
  --gold-dark: #b49830;
  --ink: #1c2214;
  --muted: #5e6750;
  --line: #dde4d0;
  --bg: #ffffff;
  --bg-soft: #f6f8f1;
  --bg-warm: #f8f7f2;
  --footer-bg: #ebeedf;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(74, 92, 42, 0.1);
  --tag-bg: rgba(74, 92, 42, 0.1);
  --color-scheme: light;
}

html[data-theme="teal"] {
  --maroon: #0a6b6b;
  --maroon-deep: #064848;
  --maroon-soft: #1c8585;
  --gold: #f0c75e;
  --gold-dark: #d0a83a;
  --ink: #102424;
  --muted: #4f6868;
  --line: #d4e6e6;
  --bg: #ffffff;
  --bg-soft: #f2f8f8;
  --bg-warm: #f6faf8;
  --footer-bg: #e4f0f0;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(10, 107, 107, 0.1);
  --tag-bg: rgba(10, 107, 107, 0.1);
  --color-scheme: light;
}

html[data-theme="navy"] {
  --maroon: #123a63;
  --maroon-deep: #0a2440;
  --maroon-soft: #1f548a;
  --gold: #d4a017;
  --gold-dark: #b88810;
  --ink: #152233;
  --muted: #526074;
  --line: #d8e0ea;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-warm: #f7f9fc;
  --footer-bg: #e8eef6;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(18, 58, 99, 0.1);
  --tag-bg: rgba(18, 58, 99, 0.1);
  --color-scheme: light;
}

html[data-theme="sapphire"] {
  --maroon: #1a4f8c;
  --maroon-deep: #103560;
  --maroon-soft: #2d69ad;
  --gold: #e0b84a;
  --gold-dark: #bf9830;
  --ink: #12233a;
  --muted: #51647a;
  --line: #d5e2f0;
  --bg: #ffffff;
  --bg-soft: #f3f7fc;
  --bg-warm: #f7f9fc;
  --footer-bg: #e6eef8;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(26, 79, 140, 0.1);
  --tag-bg: rgba(26, 79, 140, 0.1);
  --color-scheme: light;
}

html[data-theme="ocean"] {
  --maroon: #0c4a6e;
  --maroon-deep: #07324c;
  --maroon-soft: #1a668f;
  --gold: #f5c451;
  --gold-dark: #d4a52f;
  --ink: #0f2433;
  --muted: #4f6878;
  --line: #d2e4ef;
  --bg: #ffffff;
  --bg-soft: #f1f7fb;
  --bg-warm: #f5f9fb;
  --footer-bg: #e3eef5;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(12, 74, 110, 0.1);
  --tag-bg: rgba(12, 74, 110, 0.1);
  --color-scheme: light;
}

html[data-theme="slate"] {
  --maroon: #3d4451;
  --maroon-deep: #2a303a;
  --maroon-soft: #555e6d;
  --gold: #c9842a;
  --gold-dark: #a86b1c;
  --ink: #1c1f26;
  --muted: #5c6470;
  --line: #dde1e7;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-warm: #f8f7f5;
  --footer-bg: #eceef2;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(61, 68, 81, 0.1);
  --tag-bg: rgba(61, 68, 81, 0.1);
  --color-scheme: light;
}

html[data-theme="midnight"] {
  --maroon: #c45a68;
  --maroon-deep: #8f2f3d;
  --maroon-soft: #d97a86;
  --gold: #f7c100;
  --gold-dark: #d4a017;
  --ink: #f3efe8;
  --muted: #b7b0a6;
  --line: #35303a;
  --bg: #161218;
  --bg-soft: #1e1a21;
  --bg-warm: #221c24;
  --footer-bg: #121016;
  --surface: #1e1a21;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
  --tag-bg: rgba(247, 193, 0, 0.12);
  --color-scheme: dark;
}

html[data-theme="dusk"] {
  --maroon: #7eb6e8;
  --maroon-deep: #4f8fc7;
  --maroon-soft: #a4cdf0;
  --gold: #f0c75e;
  --gold-dark: #d0a83a;
  --ink: #e8eef6;
  --muted: #9aabbf;
  --line: #243247;
  --bg: #0f172a;
  --bg-soft: #152036;
  --bg-warm: #18243b;
  --footer-bg: #0b1220;
  --surface: #152036;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
  --tag-bg: rgba(240, 199, 94, 0.14);
  --color-scheme: dark;
}

html[data-theme="forest"] {
  --maroon: #5dca9a;
  --maroon-deep: #2f9f70;
  --maroon-soft: #86dbb4;
  --gold: #e8c547;
  --gold-dark: #c9a62a;
  --ink: #e8f3ec;
  --muted: #9ab8a8;
  --line: #1f372c;
  --bg: #0c1f17;
  --bg-soft: #12281e;
  --bg-warm: #163024;
  --footer-bg: #091610;
  --surface: #12281e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
  --tag-bg: rgba(232, 197, 71, 0.14);
  --color-scheme: dark;
}

html {
  color-scheme: var(--color-scheme, light);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--maroon-soft);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--container));
}

.container--full {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--maroon);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem;
}

.btn--primary {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.btn--primary:hover {
  background: var(--maroon-deep);
  border-color: var(--maroon-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--maroon-deep);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--maroon-deep);
}

.btn--outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.btn--outline:hover {
  background: var(--maroon);
  color: #fff;
}

.section {
  padding: 4.5rem 0;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header--center {
  text-align: center;
}

.section-cta {
  margin-top: 2.25rem;
  text-align: center;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--maroon);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Top bar */
.top-bar {
  background: var(--maroon);
  color: #fff;
  font-size: 0.8rem;
  min-height: var(--topbar-h);
}

.top-bar .container,
.top-bar .container--wide {
  width: 100%;
  max-width: none;
  padding-inline: 2.5rem;
  box-sizing: border-box;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
}

.top-bar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-bar a {
  color: #fff;
  opacity: 0.95;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--gold);
}

.top-bar__contact i {
  margin-right: 0.4rem;
  color: var(--gold);
}

.top-bar__social {
  display: flex;
  gap: 0.85rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

.site-header .container,
.site-header .container--wide {
  width: 100%;
  max-width: none;
  padding-inline: 2.5rem;
  box-sizing: border-box;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.site-logo:hover {
  color: var(--ink);
}

.site-logo__img {
  width: 58px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo--footer .site-logo__img {
  width: 48px;
}

.site-logo__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--maroon);
  line-height: 1.1;
}

.site-logo__tag {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-menu > li > a {
  display: block;
  padding: 0.45rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--maroon);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--maroon);
}

/* Color theme picker */
.theme-picker {
  position: relative;
}

.theme-picker__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.theme-picker__toggle:hover,
.theme-picker.is-open .theme-picker__toggle {
  border-color: var(--maroon);
  color: var(--maroon);
}

.theme-picker__toggle i {
  color: var(--maroon);
  font-size: 0.9rem;
}

.theme-picker__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 120;
  min-width: 240px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.theme-picker__heading {
  margin: 0 0 0.45rem;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-picker__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.45rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.theme-picker__option:hover,
.theme-picker__option.is-active {
  background: var(--bg-soft);
}

.theme-picker__option.is-active {
  color: var(--maroon);
  font-weight: 600;
}

.theme-picker__swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, var(--swatch) 55%, var(--accent) 55%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.theme-picker__name {
  flex: 1;
}

html[data-theme="midnight"] .site-header,
html[data-theme="midnight"] .nav-toggle,
html[data-theme="midnight"] .primary-nav,
html[data-theme="dusk"] .site-header,
html[data-theme="dusk"] .nav-toggle,
html[data-theme="dusk"] .primary-nav,
html[data-theme="forest"] .site-header,
html[data-theme="forest"] .nav-toggle,
html[data-theme="forest"] .primary-nav {
  border-color: var(--line);
}

/* Hero — full-bleed campus imagery */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  width: 100%;
}

.hero--full {
  width: 100%;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.35) 62%, rgba(26, 10, 12, 0.25) 100%),
    linear-gradient(180deg, rgba(108, 0, 13, 0.12) 0%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding-block: 4rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--maroon);
  margin-bottom: 0.85rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  color: var(--ink);
  font-weight: 600;
}

.hero__meta i {
  color: var(--maroon);
  width: 1.2rem;
  margin-right: 0.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__countdown {
  background: var(--maroon);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeUp 0.8s ease both 0.2s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.countdown__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.countdown__unit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 193, 0, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 0.35rem;
}

.countdown__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.countdown__key {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.3rem;
}

.countdown__ended {
  padding: 0.5rem 0.25rem 0.25rem;
}

.countdown__ended-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown__ended-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__countdown.is-ended {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%);
}

/* Stats */
.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
  width: 100%;
}

.stats--full {
  width: 100%;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-item__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--maroon);
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Current edition */
.current-edition {
  background: var(--bg-warm);
}

.current-edition__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.85fr;
  gap: 1.75rem;
  align-items: stretch;
}

.current-edition__copy p {
  color: var(--muted);
}

.video-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-card__play i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--maroon);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
}

.video-card:hover .video-card__play i {
  transform: scale(1.08);
}

.register-cta {
  background:
    radial-gradient(circle at top right, rgba(247, 193, 0, 0.18), transparent 45%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.register-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.03) 24px
  );
  pointer-events: none;
}

.register-cta__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.register-cta__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.register-cta h3 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.register-cta p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.35rem;
}

/* Info grid */
.info-grid {
  background: var(--surface);
}

.info-grid__layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  background: var(--surface);
  min-height: 100%;
}

.info-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--maroon);
}

.info-panel__head h2 {
  font-size: 1.15rem;
  color: var(--maroon);
  margin: 0;
}

.info-panel__head a {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.news-list__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-list__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-soft);
}

.news-list__item a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}

.news-list__item a:hover {
  color: var(--maroon);
}

.news-list__date {
  display: block;
  font-size: 0.72rem;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.news-list__item p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.showcase-grid {
  display: grid;
  gap: 0.85rem;
}

.showcase-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.showcase-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.showcase-card__media {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: var(--bg-soft);
}

.showcase-card__body {
  padding-right: 0.75rem;
}

.showcase-card h3 {
  font-size: 0.9rem;
  margin: 0;
}

.event-list__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.event-list__item:last-child {
  border-bottom: 0;
}

.event-list__date {
  background: var(--maroon);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 0.45rem 0.25rem;
}

.event-list__day {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold);
}

.event-list__month {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.event-list__item h3 {
  font-size: 0.92rem;
  margin: 0 0 0.2rem;
}

.event-list__item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Speakers */
.speakers {
  background: var(--bg-soft);
}

.speakers__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.speaker-card {
  text-align: center;
}

.speaker-card__photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 20px rgba(108, 0, 13, 0.15);
  transition: transform 0.3s ease;
  background: var(--bg-soft);
}

.speaker-card:hover .speaker-card__photo {
  transform: translateY(-4px);
}

.speaker-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.speaker-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Sponsors / Our Partners */
.sponsors,
.elementor-section.sponsors {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(247, 193, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(108, 0, 13, 0.06), transparent 50%),
    var(--bg-warm) !important;
}

.sponsors::before,
.elementor-section.sponsors::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(108, 0, 13, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(108, 0, 13, 0.03) 25%, transparent 25%);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.sponsors > .container,
.sponsors .elementor-widget-wrap {
  position: relative;
  z-index: 1;
}

.sponsors__intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.sponsors__intro p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sponsors__tier {
  margin-bottom: 2.25rem;
}

.sponsors__tier:last-of-type {
  margin-bottom: 1.5rem;
}

.sponsors__tier-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 auto 1.15rem;
}

.sponsors__tier-title::before,
.sponsors__tier-title::after {
  content: "";
  width: min(72px, 12vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.sponsors__tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 193, 0, 0.55);
  background: linear-gradient(180deg, rgba(247, 193, 0, 0.18), rgba(247, 193, 0, 0.06));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.sponsors__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

.sponsor-logo {
  position: relative;
  min-width: 150px;
  min-height: 88px;
  padding: 1.1rem 1.5rem;
  border: 1px solid rgba(108, 0, 13, 0.1);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #fff 0%, #fbf9f7 100%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--maroon);
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px rgba(108, 0, 13, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
}

.sponsor-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.sponsor-logo span {
  position: relative;
  z-index: 1;
}

.sponsor-logo img {
  position: relative;
  z-index: 1;
  max-width: 140px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsors__tier--title .sponsor-logo img {
  max-width: 200px;
  max-height: 72px;
}

.sponsor-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 193, 0, 0.85);
  box-shadow: 0 16px 36px rgba(108, 0, 13, 0.12);
}

/* Title sponsor — hero card */
.sponsors__tier--title .sponsor-logo {
  min-width: min(280px, 86vw);
  min-height: 118px;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  border: 2px solid rgba(247, 193, 0, 0.65);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 193, 0, 0.22), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fff8e8 100%);
  box-shadow: 0 14px 40px rgba(108, 0, 13, 0.1);
}

.sponsors__tier--title .sponsor-logo::before {
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon));
  opacity: 1;
}

.sponsors__tier--title .sponsors__tier-badge {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold), #e6b000);
  color: var(--maroon-deep);
  box-shadow: 0 4px 14px rgba(247, 193, 0, 0.35);
}

/* Platinum */
.sponsors__tier--platinum .sponsor-logo {
  min-width: 170px;
  min-height: 96px;
  border-color: rgba(120, 120, 130, 0.28);
  background:
    linear-gradient(145deg, #ffffff 0%, #f3f4f7 55%, #eef0f4 100%);
}

.sponsors__tier--platinum .sponsor-logo::before {
  background: linear-gradient(90deg, transparent, #b8bcc8, transparent);
}

.sponsors__tier--platinum .sponsors__tier-badge {
  border-color: rgba(140, 145, 160, 0.55);
  background: linear-gradient(180deg, #f4f5f8, #e6e8ee);
  color: #3d4250;
}

/* Gold tier */
.sponsors__tier--gold .sponsor-logo {
  min-width: 140px;
  min-height: 82px;
  font-size: 0.98rem;
  border-color: rgba(247, 193, 0, 0.35);
  background:
    linear-gradient(180deg, #fffef9 0%, #fff6d9 100%);
}

.sponsors__tier--gold .sponsors__tier-badge {
  border-color: rgba(247, 193, 0, 0.7);
  background: linear-gradient(180deg, rgba(247, 193, 0, 0.28), rgba(247, 193, 0, 0.1));
}

@media (max-width: 640px) {
  .sponsor-logo {
    min-width: calc(50% - 0.5rem);
    flex: 1 1 calc(50% - 0.5rem);
  }

  .sponsors__tier--title .sponsor-logo {
    min-width: 100%;
  }
}

/* Gallery */
/* Gallery — full-bleed edge-to-edge */
.gallery--full {
  padding-left: 0;
  padding-right: 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.gallery__grid--full {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--maroon);
  display: block;
  border-radius: 0;
}

.gallery__grid:not(.gallery__grid--full) .gallery__item {
  border-radius: var(--radius);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery__item:hover {
  box-shadow: none;
}

/* FAQ */
.faq {
  background: var(--bg-soft);
}

.faq__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--maroon);
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--gold-dark);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Newsletter */
.newsletter {
  background: var(--maroon);
  color: #fff;
  padding: 2rem 0;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.newsletter__copy h2 {
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.newsletter__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.newsletter__form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
  max-width: 520px;
}

.newsletter__form input {
  flex: 1;
  min-width: 220px;
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font: inherit;
}

.newsletter__form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding-top: 3.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--maroon);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--maroon);
}

.footer-col--brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: grid;
  place-items: center;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--maroon-deep);
}

.footer-contact li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--maroon);
  margin-top: 0.2rem;
}

.footer-bottom {
  background: var(--maroon);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 0;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .fa-heart {
  color: var(--gold);
}

/* Inner pages */
.page-hero {
  background:
    linear-gradient(120deg, rgba(108, 0, 13, 0.88), rgba(74, 0, 9, 0.82)),
    url("../images/hero/slide-2.webp") center/cover no-repeat;
  color: #fff;
  padding: 3.5rem 0 3rem;
  width: 100%;
}

.page-hero--full {
  width: 100%;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.4rem;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}

.breadcrumb a {
  color: #fff;
}

.content-section {
  padding: 3.5rem 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.content-card h2,
.content-card h3 {
  color: var(--maroon);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--surface);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(108, 0, 13, 0.25);
  border-color: var(--maroon);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
}

.category-card:hover,
.category-card.is-active {
  border-color: var(--maroon);
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin-bottom: 0.4rem;
  color: var(--maroon);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hub-card i {
  font-size: 1.6rem;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

.hub-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hub-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(108, 0, 13, 0.08), rgba(247, 193, 0, 0.12)),
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(0,0,0,0.03) 24px, rgba(0,0,0,0.03) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(0,0,0,0.03) 24px, rgba(0,0,0,0.03) 25px),
    var(--bg-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .current-edition__grid,
  .info-grid__layout,
  .speakers__grid,
  .gallery__grid,
  .site-footer__grid,
  .steps,
  .hub-grid,
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .speakers__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid,
  .gallery__grid--full {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .theme-picker__label {
    display: none;
  }

  .theme-picker__menu {
    right: 0;
    left: auto;
  }

  .site-header__tools {
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow);
    margin-left: 0;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu > li > a {
    padding: 0.7rem 0.25rem;
    font-size: 0.95rem;
  }

  .header-cta {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero__content,
  .faq__layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero__countdown {
    max-width: 420px;
  }

  .newsletter__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter__form {
    justify-content: stretch;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .top-bar__contact span,
  .top-bar__contact a:first-child {
    display: none;
  }

  .stats__grid,
  .current-edition__grid,
  .info-grid__layout,
  .speakers__grid,
  .gallery__grid,
  .gallery__grid--full,
  .site-footer__grid,
  .steps,
  .hub-grid,
  .category-cards,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery__grid--full {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Wireframe page system */
.subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}

.subnav__heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.subnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.55rem 0 0.75rem;
}

.subnav__list a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

.subnav__list li.is-active a,
.subnav__list a:hover {
  background: rgba(108, 0, 13, 0.08);
  color: var(--maroon);
}

.portal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.portal-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  position: sticky;
  top: calc(var(--header-h) + 4.5rem);
}

.portal-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.portal-sidebar a:hover,
.portal-sidebar a.is-active {
  background: rgba(108, 0, 13, 0.08);
  color: var(--maroon);
}

.portal-sidebar i {
  width: 1.1rem;
  color: var(--maroon);
}

.portal-main .content-card h2 {
  margin-top: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--bg-soft);
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(108, 0, 13, 0.08);
  color: var(--maroon);
}

.status-pill--ok {
  background: rgba(22, 120, 70, 0.12);
  color: #167846;
}

.status-pill--warn {
  background: rgba(212, 160, 23, 0.18);
  color: #8a6a00;
}

.qr-card {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.qr-card__code {
  width: 180px;
  height: 180px;
  margin: 1rem auto;
  background:
    repeating-linear-gradient(0deg, #111 0 8px, #fff 8px 16px),
    repeating-linear-gradient(90deg, #111 0 8px, #fff 8px 16px);
  background-blend-mode: difference;
  border: 8px solid #fff;
  box-shadow: var(--shadow);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.wizard-steps__item {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.wizard-steps__item.is-active,
.wizard-steps__item.is-done {
  border-color: var(--maroon);
  color: var(--maroon);
  background: rgba(108, 0, 13, 0.04);
}

.wizard-steps__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold);
  font-size: 0.8rem;
}

.timeline {
  border-left: 3px solid var(--gold);
  margin-left: 0.75rem;
  padding-left: 1.5rem;
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--maroon);
  border: 2px solid var(--gold);
}

.notice-banner {
  background: #fff3cd;
  border-left: 4px solid var(--gold-dark);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.notice-banner--success {
  background: #e8f6ee;
  border-left-color: #167846;
}

.notice-banner--alert {
  background: #fde8ea;
  border-left-color: var(--maroon);
}

.admin-note {
  background: var(--maroon);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.admin-note a {
  color: var(--gold);
  font-weight: 700;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sitemap-card h3 {
  color: var(--maroon);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.sitemap-card li {
  margin-bottom: 0.4rem;
}

.sitemap-card a {
  font-size: 0.9rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--maroon);
  line-height: 1.1;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .portal-layout,
  .sitemap-grid,
  .stat-cards,
  .wizard-steps {
    grid-template-columns: 1fr 1fr;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .sitemap-grid,
  .stat-cards,
  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .top-bar .container,
  .top-bar .container--wide,
  .site-header .container,
  .site-header .container--wide {
    padding-inline: 1.25rem;
  }
}

/* Official registration form (SDC reference) */
.reg-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.reg-check input {
  width: auto;
  margin: 0;
}

.spark-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.reg-radio-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.fee-box,
.payment-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem !important;
}

.captcha-box {
  background: var(--surface);
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: 1rem !important;
}

.fee-box h3,
.payment-box h3 {
  color: var(--maroon);
  margin-top: 0;
}

.fee-note {
  color: var(--maroon);
  font-weight: 600;
}

.fee-due {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}

.qr-pay {
  margin: 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.qr-pay img {
  margin: 0 auto;
  max-width: 220px;
}

.qr-pay figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--maroon);
}

@media (max-width: 700px) {
  .payment-grid {
    grid-template-columns: 1fr;
  }
}
