/* Royal Boxing League — static theme (cPanel-friendly) */
:root {
  --bg-0: #06080f;
  --bg-1: #0c1224;
  --royal: #142a6e;
  --royal-bright: #1e4a8a;
  --gold: #c9a44a;
  --gold-dim: #8a702e;
  --text: #e8ebf4;
  --text-muted: #9aa4ba;
  --border: rgba(201, 164, 74, 0.22);
  --glow: rgba(30, 74, 138, 0.45);
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 2px;
  --header-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(30, 74, 138, 0.35), transparent),
    radial-gradient(900px 600px at 90% 20%, rgba(201, 164, 74, 0.08), transparent),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 45%, #070a12);
  min-height: 100vh;
}

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

a {
  color: #9ec5ff;
  text-decoration: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: #fff;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.muted {
  color: var(--text-muted);
  font-weight: 400;
}

/* Scroll-driven image fade-in (editorial landings) */
main img.js-img-reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--img-rv, 0ms);
}

main img.js-img-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 15, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 164, 74, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-home .site-header {
  background: rgba(6, 8, 15, 0.78);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.page-home .site-header.site-header--scrolled {
  background: rgba(6, 8, 15, 0.94);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.42);
}

.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(201, 164, 74, 0.5) 50%, transparent 95%);
  opacity: 0.85;
}

.nav-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

/* Hard caps so a cached / missing stylesheet cannot blow the mark up to intrinsic 644×181 */
.brand > img,
.brand__logo-img {
  height: 34px;
  width: auto;
  max-width: min(128px, 34vw);
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 1000px) {
  .brand > img,
  .brand__logo-img {
    height: 36px;
    max-width: min(140px, 38vw);
    max-height: 42px;
  }
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--royal-bright), var(--bg-1));
  border: 1px solid var(--border);
  box-shadow: 0 0 12px rgba(201, 164, 74, 0.25);
  flex-shrink: 0;
}

.brand__accent {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201, 164, 74, 0.35);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav__toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 1.65rem;
}

.nav__li-cta {
  margin-left: 0.25rem;
  padding-left: 1.35rem;
  border-left: 1px solid rgba(201, 164, 74, 0.25);
}

.nav__link,
.nav a.nav__link {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 235, 244, 0.78);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a.nav__link:hover {
  color: #fff;
}

.nav__link--active,
.nav a.nav__link.nav__link--active {
  color: #fff;
  border-bottom-color: var(--gold);
}

.nav__cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: #0a0c12 !important;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(201, 164, 74, 0.22);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  border-bottom: none !important;
}

.nav__cta:hover {
  filter: brightness(1.08);
  color: #0a0c12 !important;
}

.nav__cta.nav__cta--active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 22px rgba(201, 164, 74, 0.35);
}

@media (max-width: 520px) {
  .brand {
    gap: 0.45rem;
  }

  .brand__text {
    font-size: 1.05rem;
    letter-spacing: 0.025em;
  }

  .brand__logo-img {
    height: 30px;
    max-width: 112px;
  }
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero__media {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #0f1730 0%, #1a2550 40%, #0a0e1c 100%);
  box-shadow: 0 0 40px var(--glow);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-placeholder.svg") center / cover no-repeat;
  opacity: 0.9;
}

.hero__media::after {
  content: "Video / photo placeholder — replace with league asset";
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(30, 74, 138, 0.5);
}

.hero__content .tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(180deg, var(--royal-bright), var(--royal));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px var(--glow);
}

.button--gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  color: #0a0c12;
  border-color: rgba(255, 255, 255, 0.2);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.section {
  margin-bottom: 3rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.text-link {
  font-weight: 600;
  color: var(--gold);
}

.text-link:hover {
  color: #e4c97a;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

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

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(12, 18, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(201, 164, 74, 0.45);
  box-shadow: 0 0 20px rgba(30, 74, 138, 0.25);
  transform: translateY(-2px);
}

.card--result .card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}

.card__vs {
  color: var(--gold);
  font-weight: 600;
}

.card__meta {
  margin: 0;
  font-size: 0.95rem;
}

.card__foot {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.event-block:hover {
  box-shadow: 0 0 28px rgba(30, 74, 138, 0.22);
}

.event-block__date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  border-left: 2px solid var(--gold-dim);
  padding-left: 0.5rem;
}

.event-block__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.event-block__loc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.event-block__headline {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.leader-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 12, 24, 0.6);
}

table.leader-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.leader-table th,
.leader-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leader-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(20, 42, 110, 0.25);
}

.leader-table tr:last-child td {
  border-bottom: 0;
}

.champion-row {
  background: linear-gradient(90deg, rgba(201, 164, 74, 0.12), transparent);
}

.champion-row td {
  border-bottom-color: rgba(201, 164, 74, 0.2);
}

.crown {
  color: var(--gold);
  margin-right: 0.15rem;
  filter: drop-shadow(0 0 6px rgba(201, 164, 74, 0.6));
}

.rank-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
}

.fighter-coming-soon {
  display: inline-block;
  font-weight: 600;
  line-height: 1.22;
  color: #9ec5ff;
}

.card--result .card__title--coming-soon {
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.cta-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(600px 200px at 50% 0%, rgba(30, 74, 138, 0.35), transparent),
    rgba(12, 18, 36, 0.5);
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-panel p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.site-footer a {
  color: var(--text-muted);
}

/* Rankings page */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--text);
  border-color: rgba(201, 164, 74, 0.4);
}

.tab--active {
  background: rgba(30, 74, 138, 0.35);
  color: var(--text);
  border-color: var(--royal-bright);
  box-shadow: 0 0 16px var(--glow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.filters label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filters select {
  background: rgba(12, 18, 36, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-body);
}

/* Events list */
.event-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: rgba(8, 12, 24, 0.55);
  transition: border-color 0.2s ease;
}

.event-list-row__main {
  flex: 1 1 16rem;
  min-width: 0;
}

.event-list-row:hover {
  border-color: rgba(201, 164, 74, 0.35);
}

.event-list-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.event-list-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-list-row__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.event-list-row__kicker {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: rgba(154, 164, 186, 0.88);
  line-height: 1.45;
  max-width: 52ch;
}

.event-list-row--has-poster {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1rem 1rem 1.15rem;
}

.event-list-row--has-poster .event-list-row__thumb {
  flex: none;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 164, 74, 0.28);
  background: rgba(4, 6, 12, 0.92);
  align-self: stretch;
  aspect-ratio: 4 / 5;
  max-height: min(58vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-list-row--has-poster .event-list-row__thumb picture,
.event-list-row--has-poster .event-list-row__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

.event-list-row--has-poster .event-list-row__thumb img {
  object-fit: contain;
  object-position: center center;
  max-height: min(58vh, 460px);
}

.event-list-row--has-poster .event-list-row__meta {
  width: 100%;
  margin-left: 0;
  justify-content: space-between;
}

@media (min-width: 720px) {
  .event-list-row--has-poster .event-list-row__thumb,
  .event-list-row--has-poster .event-list-row__thumb img {
    max-height: min(52vh, 520px);
  }
}

@media (max-width: 520px) {
  .event-list-row__meta {
    width: 100%;
    justify-content: space-between;
  }
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.badge--upcoming {
  color: #9ec5ff;
  border-color: rgba(158, 197, 255, 0.35);
}

.badge--done {
  color: var(--text-muted);
}

.badge--tbd {
  color: rgba(232, 235, 244, 0.72);
  border-color: rgba(201, 164, 74, 0.32);
}

/* Bout cards */
.bout-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .bout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bout-card {
  padding: 1rem;
  background: rgba(12, 18, 36, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bout-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.bout-card__fighters {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.bout-card__vs {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.bout-card__weight {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Results */
.results-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-controls input {
  flex: 1 1 200px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 12, 24, 0.8);
  color: var(--text);
  font-family: var(--font-body);
}

/* Profile */
.profile-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .profile-hero {
    grid-template-columns: 260px 1fr;
  }
}

.profile-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #1a2550, #0a0e1c);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px var(--glow);
}

.profile-photo::after {
  content: none;
}

.profile-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-title .nickname {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0.25rem 0 0.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.stat {
  padding: 0.75rem;
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.stat__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose.join-page {
  max-width: none;
}

.join-box {
  border: 1px dashed var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(20, 42, 110, 0.12);
  margin-bottom: 1.5rem;
}

.join-box--intro {
  border: 1px solid rgba(201, 164, 74, 0.22);
  background: rgba(6, 10, 20, 0.65);
  box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.06);
}

/* Join / registration */
.page-join {
  color-scheme: dark;
}

.join-page {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  box-sizing: border-box;
}

.join-page > h1,
.join-page > .join-page__lead,
.join-page > .join-box,
.join-page > .join-feedback,
.join-page > .join-form {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.join-page > h1,
.join-page > .join-page__lead {
  text-align: center;
}

.join-page > .join-box {
  text-align: left;
}

.join-feedback {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 164, 74, 0.35);
  background: rgba(30, 74, 138, 0.2);
  color: var(--text);
  font-size: 0.95rem;
  margin: 1rem 0 1.25rem;
}

.join-feedback__nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 42rem;
  margin: -0.5rem auto 1.25rem;
}

.join-feedback__nav .button {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
}

.join-feedback__nav .button--small {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.join-form {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.join-form__fieldset {
  position: relative;
  border: none;
  border-radius: 10px;
  margin: 0 0 2rem;
  padding: 2rem 1.35rem 1.75rem;
  text-align: left;
  background:
    linear-gradient(168deg, rgba(10, 14, 26, 0.96), rgba(5, 7, 12, 0.9)) padding-box,
    linear-gradient(132deg, rgba(201, 164, 74, 0.55), rgba(30, 74, 138, 0.42), rgba(201, 164, 74, 0.28)) border-box;
  border: 1px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(201, 164, 74, 0.08);
}

.join-form__legend {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: rgba(252, 250, 245, 0.98);
  padding: 0.42rem 1.2rem;
  margin: 0 auto 1.35rem;
  display: table;
  text-align: center;
  width: auto;
  max-width: calc(100% - 1rem);
  border-radius: 6px;
  border: 1px solid rgba(201, 164, 74, 0.42);
  background: linear-gradient(180deg, rgba(30, 74, 138, 0.38), rgba(8, 10, 18, 0.92));
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.join-form__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1.05rem;
  margin: 0;
  padding: 0;
  table-layout: fixed;
}

.join-form__table tr:first-child th,
.join-form__table tr:first-child td {
  padding-top: 0;
}

.join-form__table th,
.join-form__table td {
  vertical-align: middle;
  padding: 0;
}

.join-form__table th {
  width: 38%;
  font-weight: 600;
  text-align: right;
  padding: 0.2rem 1rem 0.2rem 0;
  vertical-align: middle;
}

.join-form__table td {
  width: 62%;
}

.join-form__th--top {
  vertical-align: top;
  padding-top: 0.65rem;
}

.join-form__label {
  display: inline;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232, 235, 244, 0.88);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.join-form__req {
  color: var(--gold);
}

.join-form__hint {
  font-weight: 400;
  color: rgba(154, 164, 186, 0.85);
}

.join-form__table input,
.join-form__table select,
.join-form__table textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.68rem 0.9rem;
  min-height: 2.8rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 164, 74, 0.38);
  background-color: #0a0d14;
  color: #e8ebf4;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.35;
}

.page-join .join-form__table input:not([type="checkbox"]):not([type="file"]),
.page-join .join-form__table select,
.page-join .join-form__table textarea {
  background-color: #0a0d14 !important;
  color: #e8ebf4 !important;
  border-color: rgba(201, 164, 74, 0.42) !important;
}

.page-join .join-form__table select,
.page-join .join-form__table option,
.page-join .join-form__table optgroup {
  background-color: #0a0d14;
  color: #e8ebf4;
}

.join-form__table textarea {
  min-height: 6rem;
  resize: vertical;
}

.join-form__table select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(201, 164, 74, 0.75) 50%),
    linear-gradient(135deg, rgba(201, 164, 74, 0.75) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.2rem), calc(100% - 0.8rem) calc(50% - 0.2rem);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.page-join .join-form__table select {
  background-color: #0a0d14 !important;
}

.join-form__table input::placeholder,
.join-form__table textarea::placeholder {
  color: rgba(154, 164, 186, 0.45);
}

.join-form__table input:focus,
.join-form__table select:focus,
.join-form__table textarea:focus {
  outline: none;
  border-color: rgba(201, 164, 74, 0.6);
  box-shadow: 0 0 0 2px rgba(30, 74, 138, 0.4);
}

.join-form__table input:-webkit-autofill,
.join-form__table input:-webkit-autofill:hover,
.join-form__table input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8ebf4 !important;
  caret-color: #e8ebf4;
  box-shadow: 0 0 0 1000px #0a0d14 inset !important;
  transition: background-color 9999s ease-out 0s;
}

.page-join .join-form__table input[type="date"] {
  color-scheme: dark;
}

.page-join .join-form__table input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.85);
  opacity: 0.75;
  cursor: pointer;
}

.join-form__intro {
  margin: -0.5rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(154, 164, 186, 0.95);
  max-width: 52rem;
}

.join-form__intro strong {
  color: rgba(232, 235, 244, 0.92);
  font-weight: 600;
}

.join-form__file-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(154, 164, 186, 0.88);
}

.join-form__term {
  font-style: italic;
  color: rgba(201, 164, 74, 0.82);
}

/* Hidden video row on join form — remove class from <tr> in join.html to show sparring video upload again. */
.join-form__tr--video-upload-hidden {
  display: none;
}

.join-media-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(232, 235, 244, 0.88);
}

.join-media-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.38rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(201, 164, 74, 0.2);
  background: rgba(12, 18, 36, 0.45);
}

.join-media-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.join-media-list__status {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(201, 164, 74, 0.95);
}

.join-media-list__status--ok {
  color: rgba(120, 200, 160, 0.95);
}

.join-media-list__status--err {
  color: rgba(255, 150, 130, 0.95);
}

.join-media-list button {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 3px;
  border: 1px solid rgba(154, 164, 186, 0.35);
  background: rgba(8, 12, 24, 0.6);
  color: rgba(232, 235, 244, 0.85);
  cursor: pointer;
}

.join-media-list button:hover {
  border-color: rgba(201, 164, 74, 0.45);
  color: var(--text);
}

.join-upload-progress {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(30, 74, 138, 0.45);
  background: linear-gradient(165deg, rgba(12, 18, 36, 0.75), rgba(8, 12, 24, 0.55));
  box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.08) inset;
}

.join-upload-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.join-upload-progress__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 164, 74, 0.92);
}

.join-upload-progress__pct {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.85rem;
  color: rgba(232, 235, 244, 0.9);
}

.join-upload-progress__track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(6, 8, 15, 0.85);
  border: 1px solid rgba(201, 164, 74, 0.22);
  overflow: hidden;
}

.join-upload-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(30, 74, 138, 0.95), rgba(201, 164, 74, 0.88));
  transition: width 0.12s ease-out;
}

.join-upload-progress__hint {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.page-join .join-form__table input[type="file"] {
  padding: 0.5rem 0.65rem;
  min-height: auto;
  cursor: pointer;
  font-size: 0.88rem;
  background-color: #0a0d14 !important;
  color: rgba(232, 235, 244, 0.9) !important;
  border-color: rgba(201, 164, 74, 0.42) !important;
}

.page-join .join-form__table input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(201, 164, 74, 0.45);
  background: rgba(30, 74, 138, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.page-join .join-form__table input[type="file"]::file-selector-button:hover {
  background: rgba(30, 74, 138, 0.5);
}

.page-join .join-form__table input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(201, 164, 74, 0.45);
  background: rgba(30, 74, 138, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.join-feedback--error {
  border-color: rgba(220, 90, 90, 0.55);
  background: rgba(60, 18, 18, 0.42);
}

.join-form__check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.15rem 0 0.1rem;
}

.join-form__check-wrap input[type="checkbox"] {
  width: 1.08rem;
  height: 1.08rem;
  min-height: 0;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.join-form__checklabel {
  font-weight: 400;
  color: rgba(232, 235, 244, 0.9);
  line-height: 1.5;
  font-size: 0.92rem;
  margin: 0;
}

.join-form__tr--check th {
  width: 0;
  padding: 0;
  border: none;
}

@media (max-width: 640px) {
  .join-form__fieldset {
    padding: 1.65rem 1rem 1.5rem;
    border-radius: 8px;
  }

  .join-form__table {
    border-spacing: 0 1.15rem;
  }

  .join-form__table th,
  .join-form__table td {
    display: block;
    width: 100%;
  }

  .join-form__table th {
    text-align: left;
    padding: 0 0 0.4rem;
  }

  .join-form__table td {
    padding: 0 0 0.15rem;
  }

  .join-form__tr--check th {
    display: none;
  }
}

.join-form__actions {
  margin-top: 0.5rem;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(201, 164, 74, 0.2);
  text-align: center;
}

.join-form__actions .button {
  border: none;
  cursor: pointer;
  min-height: 3rem;
  padding: 0.65rem 1.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .nav__cluster {
    flex: 1 1 100%;
    order: 3;
    justify-content: stretch;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 1rem 1.25rem 1.25rem;
  }

  .nav__li-cta {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(201, 164, 74, 0.2);
  }

  .nav__toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 8, 15, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav--open {
    max-height: 420px;
  }

  .hero__media::after {
    font-size: 0.65rem;
  }

  .event-block {
    grid-template-columns: 1fr;
  }

  .event-block__date {
    writing-mode: horizontal-tb;
    transform: none;
    border-left: 0;
    border-bottom: 2px solid var(--gold-dim);
    padding: 0 0 0.5rem;
  }
}

/* --- Homepage (cinematic landing, inspired by long-form event pages) --- */
.page-home main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-home .home-inner,
.page-home .home-feed {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-home .home-feed {
  padding-top: 2rem;
  padding-bottom: 0;
}

.page-home .site-footer {
  margin-top: 0;
}

/* Full-viewport gate: one image, no side-by-side crop on 1080p */
.home-splash {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem max(5rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
  overflow: hidden;
}

.home-splash__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050810;
}

.home-splash__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subject focal left/center (wide fight frame) */
  object-position: 32% 38%;
  display: block;
  transform: scale(1.03);
  opacity: 1;
  animation: rblHeroPhotoIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.02s;
}

@media (min-width: 900px) and (max-width: 1920px) {
  .home-splash__photo {
    object-position: 30% 40%;
  }
}

@media (min-width: 1921px) {
  .home-splash__photo {
    object-position: 28% 42%;
  }
}

@keyframes rblHeroPhotoIn {
  from {
    opacity: 0.92;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

.home-splash__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(2, 4, 10, 0.88) 0%, rgba(2, 4, 10, 0.5) 45%, rgba(4, 8, 18, 0.78) 100%),
    radial-gradient(ellipse 95% 75% at 35% 45%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* Semi-transparent dot texture (depth over photo) */
.home-splash__dots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 1.1px, transparent 1.2px);
  background-size: 14px 14px;
}

.home-splash__gridlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(201, 164, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 74, 138, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.home-splash__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 0.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.home-splash__inner .home-splash__brand {
  margin-bottom: 0.5rem;
}

.home-splash__inner .home-hero__eyebrow {
  margin: 0;
}

.home-splash__inner .home-hero__title {
  margin: 0;
}

.home-splash__inner .home-splash__deck {
  margin: 0;
}

.home-splash__inner .home-splash__actions {
  margin: 0.4rem 0 0;
}

.home-splash__inner .home-hero__credit {
  margin: 0.35rem 0 0;
  max-width: 34ch;
}

/* Hero badge: logo + tagline in one gold-framed panel (high-contrast border so it reads on photo) */
.home-splash__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem 1.15rem 0.72rem;
  max-width: min(92vw, 20rem);
  text-align: center;
  border: 1px solid rgba(201, 164, 74, 0.58);
  background: rgba(6, 10, 20, 0.78);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(201, 164, 74, 0.15),
    0 0 28px rgba(201, 164, 74, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-splash__tagline {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.35;
  color: rgba(232, 235, 244, 0.88);
  border-top: 1px solid rgba(201, 164, 74, 0.22);
  padding-top: 0.45rem;
  margin-top: 0.05rem;
  width: 100%;
  max-width: 18rem;
}

.home-splash__mark {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: clamp(4.5rem, 12.5vw, 6.75rem);
  max-width: min(36vw, 9.5rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.55));
}

.home-splash__deck {
  margin-left: auto;
  margin-right: auto;
  max-width: 38ch;
}

.home-splash__actions {
  justify-content: center;
}

.home-splash__scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-splash__scroll-hint:hover {
  color: var(--gold);
}

.home-splash__scroll-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  opacity: 0.85;
}

.home-splash__scroll-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.home-league {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  position: relative;
}

.home-league::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 1px, transparent 1.1px);
  background-size: 18px 18px;
}

.page-home .home-league > * {
  position: relative;
  z-index: 1;
}

/* Visible by default: if animations are off or fail, copy still shows (avoids “empty” hero). */
.js-hero-fade {
  opacity: 1;
  transform: none;
}

@supports (animation: rblHeroLine 0.01s linear forwards) {
  @media (prefers-reduced-motion: no-preference) {
    .js-hero-fade {
      opacity: 0;
      transform: translateY(16px);
      animation: rblHeroLine 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      animation-delay: var(--d, 0ms);
    }
  }
}

@keyframes rblHeroLine {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid var(--border);
  background: rgba(6, 10, 20, 0.65);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.home-hero__mark {
  flex-shrink: 0;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.home-hero__badge-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.home-hero__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(30, 74, 138, 0.45);
}

.home-hero__title-line {
  display: block;
}

.home-hero__title-line--gold {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(201, 164, 74, 0.35);
}

.home-hero__deck {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.home-hero__credit {
  font-size: 0.7rem;
  color: rgba(154, 164, 186, 0.75);
  margin: 0 auto;
  max-width: 40ch;
}

.home-band {
  padding: 3rem 0;
}

.home-band--quote {
  background: linear-gradient(180deg, rgba(20, 42, 110, 0.22), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.home-pullquote__accent {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201, 164, 74, 0.3);
}

.home-pullquote__dim {
  color: var(--text-muted);
}

.home-spotlight {
  padding: 3rem 0 1rem;
}

.home-spotlight__card {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  background: rgba(10, 14, 28, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(30, 74, 138, 0.12);
}

@media (min-width: 800px) {
  .home-spotlight__card {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    align-items: center;
    column-gap: 1.5rem;
  }

  .home-spotlight__card:has(.home-spotlight__thumb--poster) {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, min(28vw, 18rem));
    align-items: stretch;
    column-gap: clamp(1rem, 2.5vw, 2rem);
  }
}

@media (min-width: 1100px) {
  .home-spotlight__card:has(.home-spotlight__thumb--poster) {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, min(26vw, 20rem));
  }
}

.home-spotlight__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.home-spotlight__body {
  min-width: 0;
}

.home-spotlight__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.35rem 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-spotlight__name a {
  color: var(--text);
}

.home-spotlight__loc {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.home-spotlight__lead {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1rem;
  max-width: 52ch;
  line-height: 1.5;
}

.home-spotlight__thumb {
  position: relative;
  min-height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.home-spotlight__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.home-spotlight__thumb--poster {
  background: rgba(4, 6, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1rem);
  min-height: clamp(180px, 34vh, 280px);
}

.home-spotlight__thumb--poster picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.home-spotlight__thumb--poster img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(34vh, 320px);
  min-height: 0;
  min-width: 0;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 800px) {
  .home-spotlight__card:has(.home-spotlight__thumb--poster) .home-spotlight__body {
    align-self: center;
  }

  .home-spotlight__thumb--poster {
    min-height: min(36vh, 340px);
  }

  .home-spotlight__thumb--poster img {
    max-height: min(34vh, 360px);
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 799px) {
  .home-spotlight__card:has(.home-spotlight__thumb--poster) .home-spotlight__thumb--poster {
    order: -1;
    min-height: min(36vh, 300px);
  }
}

.event-detail__poster {
  margin: 0 auto 1.75rem;
  max-width: min(28rem, 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(8, 12, 24, 0.65);
}

.event-detail__poster img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.home-pillars {
  padding: 2rem 0 3rem;
}

.home-pillars__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.home-pillars__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .home-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .home-pillars__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-pillar {
  padding: 1.15rem;
  background: rgba(12, 18, 36, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-pillar:hover {
  border-color: rgba(201, 164, 74, 0.35);
  box-shadow: 0 0 20px rgba(30, 74, 138, 0.12);
}

.home-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  color: var(--gold);
}

.home-pillar p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rv, 0ms);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-home .cta-panel {
  margin: 0 auto 4rem;
  max-width: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  .js-hero-fade,
  .home-splash__photo {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-splash__photo {
    transform: scale(1.03) !important;
  }

  .js-reveal,
  main img.js-img-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .rbl-footer-sponsors__track {
    animation: none !important;
  }
}

/* —— Footer sponsors strip (js/sponsors.js): title + row / marquee —— */
.rbl-footer-sponsors {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid rgba(201, 164, 74, 0.22);
  box-sizing: border-box;
}

.rbl-footer-sponsors__title {
  font-family: var(--font-display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  color: rgba(201, 164, 74, 0.96);
}

.rbl-footer-sponsors__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

/* Static row (≤ 4 sponsors): all logos visible, no animation, no duplicates */
.rbl-footer-sponsors__row--static {
  flex-wrap: wrap;
  max-height: none;
}

.rbl-footer-sponsors__row--static .rbl-footer-sponsors__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
}

.rbl-footer-sponsors__row--single {
  max-height: 160px;
  overflow: hidden;
}

.rbl-footer-sponsors__row--single .rbl-footer-sponsors__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  max-height: 160px;
}

/* Never let footer sponsor art exceed 125px tall (matches tlf-footer.jpg). */
.rbl-footer-sponsors img.rbl-footer-sponsors__logo {
  display: block;
  max-height: 160px;
  height: auto;
  width: auto;
  max-width: min(240px, 90vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.rbl-footer-sponsors__marquee-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.rbl-footer-sponsors__marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.rbl-footer-sponsors__track {
  display: flex;
  width: max-content;
  animation: rbl-footer-sponsors-marquee 48s linear infinite;
}

.rbl-footer-sponsors__track--static {
  animation: none;
  transform: translateX(0);
}

@keyframes rbl-footer-sponsors-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.rbl-footer-sponsors__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0 1rem;
}

.rbl-footer-sponsors__slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 160px;
}

.page-gallery .gallery-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* —— Full gallery viewer (gallery.html + js/gallery.js) —— */
.page-gallery .rbl-gallery {
  margin-top: 0.75rem;
}

.page-gallery .rbl-gallery__lead {
  margin: 0 0 1rem;
  max-width: 56ch;
  font-size: 0.92rem;
  line-height: 1.5;
}

.page-gallery .rbl-gallery__chrome {
  position: relative;
  width: 100%;
  /* Fixed viewport: arrows stay at same vertical centre when photo aspect ratio changes */
  height: min(76vh, 720px);
  min-height: min(76vh, 720px);
  max-height: min(76vh, 720px);
}

.page-gallery .rbl-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  min-width: 2.5rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(232, 235, 244, 0.95);
  background: rgba(12, 18, 36, 0.82);
  border: 1px solid rgba(201, 164, 74, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.page-gallery .rbl-gallery__arrow[data-rbl-gallery-prev] {
  left: clamp(0.2rem, 1.5vw, 0.45rem);
}

.page-gallery .rbl-gallery__arrow[data-rbl-gallery-next] {
  right: clamp(0.2rem, 1.5vw, 0.45rem);
}

.page-gallery .rbl-gallery__arrow:hover {
  border-color: rgba(201, 164, 74, 0.65);
  color: var(--gold);
  background: rgba(20, 28, 48, 0.92);
}

.page-gallery .rbl-gallery__arrow:focus-visible {
  outline: 2px solid rgba(201, 164, 74, 0.85);
  outline-offset: 2px;
}

.page-gallery .rbl-gallery__stage {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem clamp(2.85rem, 8vw, 3.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 164, 74, 0.28);
  background: radial-gradient(ellipse 85% 75% at 50% 42%, rgba(22, 32, 56, 0.42), rgba(5, 7, 13, 0.98));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

/* Fit inside fixed stage; letterboxing handled by stage background */
.page-gallery .rbl-gallery__img {
  position: relative;
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.page-gallery .rbl-gallery__counter {
  text-align: center;
  margin: 0.5rem 0 0.65rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-gallery .rbl-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.15rem 0 0.5rem;
}

.page-gallery .rbl-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  width: 4.6rem;
  height: 3.05rem;
  flex: 0 0 auto;
  opacity: 0.72;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.page-gallery .rbl-gallery__thumb:hover,
.page-gallery .rbl-gallery__thumb.is-active {
  opacity: 1;
  border-color: rgba(201, 164, 74, 0.8);
}

.page-gallery .rbl-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-gallery .rbl-gallery__thumb,
  .page-gallery .rbl-gallery__arrow {
    transition: none;
  }
}
