:root {
  --bg: #09090b;
  --paper: #141416;
  --ink: #f4f0e8;
  --muted: #b7b1a6;
  --line: rgba(198, 161, 94, 0.28);
  --gold: #c6a15e;
  --gold-2: #e7d3a1;
  --blue: #2f6cb5;
  --purple: #7a3eab;
  --ember: #d4652a;
  --sans: "Barlow", "Segoe UI", sans-serif;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}

a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, background-color 0.2s ease, transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--gold-2);
}

::selection { background: #6a4a1e; color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

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

.screen-reader-text:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  background: var(--gold);
  color: #1a140c;
  padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.mark {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #070708;
  border-bottom: 1px solid var(--line);
}

body.admin-bar .site-header { top: 32px; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 2rem));
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 1px var(--gold);
}

.brand__name { display: block; font-size: 1.15rem; line-height: 1.1; color: var(--ink); }
.brand__sub { display: block; margin-top: 0.1rem; color: var(--gold-2); font-size: 0.82rem; }

.header-cluster { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.icon-row { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-top: 0.75rem; }
.header-socials { flex-wrap: nowrap; margin-top: 0; }
.header-account { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(198, 161, 94, 0.55);
  border-radius: 50%;
  color: var(--gold-2);
  text-decoration: none;
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.icon-btn:hover { background: var(--gold); color: #1a140c; text-decoration: none; }

.site-nav {
  padding-right: 0.85rem;
  border-right: 1px solid var(--line);
}

.nav-list { display: flex; gap: 0.15rem; list-style: none; }

.nav-list a {
  position: relative;
  display: block;
  padding: 0.45rem 0.42rem 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
  color: var(--gold-2);
  background: transparent;
  text-decoration: none;
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }

.header-login,
.header-user { color: var(--gold-2); text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }

.header-login {
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
}

.header-login:hover { background: var(--gold); color: #1a140c; }

.nav-toggle {
  display: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.banner {
  position: relative;
  padding: 2.8rem 0 1.8rem;
  background:
    radial-gradient(460px 280px at 86% 42%, rgba(122, 62, 171, 0.38), transparent 70%),
    radial-gradient(420px 260px at 8% 78%, rgba(36, 86, 168, 0.4), transparent 68%),
    #070708;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.banner--art {
  padding: 1.15rem 0 0.2rem;
  background: #070708;
  border-bottom: 0;
}

.banner__stage {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 94, 0.55);
  border-radius: 12px;
  background: #070708;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  animation: rise 0.7s ease both;
}

.banner__art {
  display: block;
  width: 100%;
  height: auto;
}

.banner__dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 0.7rem 0.85rem;
  background: #121214;
  border-top: 1px solid rgba(198, 161, 94, 0.35);
}

.banner--art .banner__links { margin: 0; }

.banner--art .banner-next {
  flex: 1 1 340px;
  margin: 0;
  padding: 0.2rem 0.15rem 0.2rem 1rem;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.banner .wrap { position: relative; }

.banner__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.banner__kicker { color: var(--gold-2); font-weight: 600; margin-bottom: 0.35rem; }
.banner h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.banner__lede { margin-top: 0.55rem; max-width: 30rem; color: var(--muted); font-size: 1.12rem; }
.banner__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.15rem; }

.banner__crest { perspective: 900px; }

.banner .mark {
  width: 210px;
  height: 210px;
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 2px rgba(198, 161, 94, 0.85),
    0 22px 40px rgba(0, 0, 0, 0.55);
  animation: crest-in 0.9s ease both, crest-float 6.5s ease-in-out 0.9s infinite;
}

.banner-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.7rem 1.2rem;
  align-items: center;
  margin-top: 1.7rem;
  padding: 0.85rem 1rem;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}

.banner-next:hover {
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-3px);
  text-decoration: none;
}

.banner-next__label { color: var(--gold-2); font-weight: 700; }
.banner-next strong { font-size: 1.2rem; }
.banner-next span { color: var(--muted); }
.banner-next__where { text-align: right; }

.home-intro { padding: 1.3rem 0 0; animation: rise 0.7s ease 0.05s both; }
.home-intro__row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.home-intro h2 { font-size: 1.35rem; }
.home-intro p { color: var(--muted); }
.home-intro a { font-weight: 700; white-space: nowrap; }

.section { padding: 1.4rem 0 2rem; }

.home-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.72fr);
  gap: 1.1rem;
  align-items: start;
}

.panel,
.about-aside,
.contact-form,
.rsvp,
.sponsor,
.player,
.name-list li,
.fixture,
.spec div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel { padding: 1rem 1.05rem 0.35rem; animation: rise 0.7s ease 0.12s both; }
.home-gallery { animation: rise 0.7s ease 0.2s both; }
.sponsor-band { animation: rise 0.7s ease 0.28s both; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.section-head h2,
.subhead { font-size: 1.4rem; }
.subhead { margin: 0 0 0.7rem; }
.subhead--spaced { margin-top: 1.6rem; }
.section-head a { font-weight: 700; }
.section-note { color: var(--muted); margin: 0 0 0.65rem; font-size: 0.95rem; }

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  background: linear-gradient(180deg, #e7d3a1, #c6a15e);
  color: #1a140c;
  text-decoration: none;
  border: 1px solid #f0e2c0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.btn:hover,
button.btn:hover {
  color: #1a140c;
  background: #f3e6c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.btn--quiet {
  background: transparent;
  color: var(--gold-2);
  border-color: rgba(231, 211, 161, 0.55);
  box-shadow: none;
}

.btn--quiet:hover {
  background: rgba(231, 211, 161, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn--small { padding: 0.5rem 0.75rem; }

.fixture-list { display: flex; flex-direction: column; gap: 0.45rem; }

.fixture {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
}

.panel .fixture {
  padding: 0.72rem 0.1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.panel .fixture:last-child { border-bottom: 0; }

.fixture:hover {
  color: inherit;
  text-decoration: none;
  border-color: var(--gold);
}

.fixture:hover .fixture__title { color: var(--gold-2); }
.fixture__day { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--gold-2); }
.fixture__month,
.fixture__format,
.fixture__time,
.fixture__count,
.fixture__place { color: var(--muted); font-size: 0.92rem; }
.fixture__title { display: block; font-weight: 700; color: var(--ink); transition: color 0.2s ease; }
.fixture__side { text-align: right; }
.fixture__flag { display: block; color: var(--ember); font-size: 0.85rem; font-weight: 700; }

.page-hero {
  padding: 2.2rem 0 1.15rem;
  background:
    radial-gradient(500px 180px at 10% 0%, rgba(47, 108, 181, 0.18), transparent 70%),
    #070708;
  border-bottom: 1px solid var(--line);
}

.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero__lede { margin-top: 0.4rem; color: var(--muted); max-width: 36rem; }
.page-hero .btn,
.page-hero .search-form { margin-top: 1rem; }
.eyebrow { color: var(--gold-2); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }

.prose { max-width: 42rem; }
.prose--gap { margin-bottom: 1rem; }
.prose p + p { margin-top: 0.9rem; }
.prose a { font-weight: 600; }
.prose + .btn,
.wrap > p .btn { margin-top: 1.1rem; }

.about-grid,
.contact-grid,
.sheet__grid {
  display: grid;
  gap: 1.3rem;
  align-items: start;
}

.about-grid { grid-template-columns: minmax(0, 1fr) 250px; }
.contact-grid,
.sheet__grid { grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr); }

.about-aside,
.rsvp,
.contact-form { padding: 1rem 1.05rem 1.1rem; }
.about-aside .section-note { margin-top: 0.35rem; }
.aside-list div + div { margin-top: 0.8rem; }
.aside-list dt { color: var(--gold-2); font-size: 0.85rem; font-weight: 600; }
.aside-list dd { margin: 0.1rem 0 0; font-weight: 700; }
.about-aside .btn { margin-top: 1rem; }

.name-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.name-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.name-list li:hover { border-color: var(--gold); transform: translateX(4px); }
.name-list a { font-weight: 700; text-decoration: none; color: var(--ink); }
.name-list a:hover { color: var(--gold-2); }
.name-list span { color: var(--muted); }

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.spec div { padding: 0.65rem 0.75rem; }
.spec dt { color: var(--gold-2); font-size: 0.82rem; }
.spec dd { margin: 0.15rem 0 0; font-weight: 700; }

.sample-flag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(212, 101, 42, 0.15);
  color: #f0c2a4;
  font-size: 0.9rem;
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.rsvp h2 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.rsvp h3 { font-size: 0.95rem; margin: 0.9rem 0 0.25rem; }
.rsvp h3 span { color: var(--muted); font-weight: 500; }
.rsvp__choices { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.rsvp__choice {
  border: 1px solid var(--line);
  background: #0e0e10;
  color: var(--ink);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.rsvp__choice:hover,
.rsvp__choice.is-picked {
  background: var(--blue);
  border-color: #6ea0d8;
  color: #fff;
  transform: translateY(-2px);
}
.rsvp__hint,
.rsvp .empty,
.empty { color: var(--muted); }
.rsvp__hint,
.rsvp .empty { font-size: 0.92rem; }
.rsvp__people { list-style: none; }
.rsvp__people li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.rsvp__people span { display: block; color: var(--muted); font-size: 0.9rem; }

.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.field span { color: var(--gold-2); font-size: 0.88rem; font-weight: 600; }
.field input,
.field textarea,
.field select,
.search-form input[type="search"] {
  width: 100%;
  background: #0c0c0e;
  border: 1px solid rgba(198, 161, 94, 0.35);
  border-radius: 4px;
  padding: 0.62rem 0.7rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus,
.search-form input:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(198, 161, 94, 0.2);
  outline: none;
}

.hp { position: absolute; left: -9999px; }
.form-note { border: 1px solid var(--line); padding: 0.65rem 0.75rem; margin-bottom: 0.75rem; border-radius: 4px; background: #0e0e10; }
.form-note--bad { border-color: #8c4a3a; color: #f0c2a4; }

.map-block { width: min(1080px, calc(100% - 2rem)); margin: 1.2rem auto 0; }
.or-map {
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: #101014;
}
.map-credit { margin-top: 0.45rem; color: var(--muted); font-size: 0.85rem; }
.map-credit a { font-weight: 600; }

.my-sponsors { margin: 0 0 1.6rem; padding: 1rem 1.05rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.my-sponsors h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.sponsor-edit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.6rem; }
.member-sponsor-name { font-size: 1.05rem; margin: 1rem 0 0.45rem; }
.member-sponsor-name a { text-decoration: none; color: var(--ink); }
.member-sponsor-name a:hover { color: var(--gold-2); }

.sponsor-band { padding: 0 0 2.2rem; }
.sponsor-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
  list-style: none;
  perspective: 900px;
}
.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 92px;
  padding: 0.85rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transform-style: preserve-3d;
}
.sponsor:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-8px) rotateX(7deg);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}
.sponsor__logo { max-height: 88px; max-width: 100%; width: auto; object-fit: contain; }

.roster { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 0.7rem; }
.player {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.player:hover { border-color: var(--gold); color: var(--ink); text-decoration: none; transform: translateY(-4px); }
.player__index { display: none; }
.player__photo { display: block; aspect-ratio: 3 / 4; background: #101014; }
.player__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__call { display: block; font-weight: 700; padding: 0.65rem 0.75rem 0; }
.player__role,
.player__loc { display: block; color: var(--muted); font-size: 0.85rem; padding: 0.1rem 0.75rem 0; }
.player__loc { padding-bottom: 0.75rem; }
.sponsor__name { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.sponsor-profiles { display: flex; flex-direction: column; gap: 0.75rem; }
.sponsor-profile {
  padding: 1rem 1.05rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sponsor-profile h2 { font-size: 1.4rem; }
.sponsor-profile h2 a { color: var(--ink); text-decoration: none; }
.sponsor-profile h2 a:hover { color: var(--gold-2); }
.sponsor-profile .prose { margin-top: 0.45rem; color: var(--muted); }
.sponsor-code { margin-top: 0.7rem; color: var(--gold-2); font-weight: 700; }
.founders { margin-top: 1.6rem; }
.founders h2 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.founders > p { color: var(--muted); margin-bottom: 0.8rem; }
.founders .roster { margin-top: 0.8rem; }

.home-gallery .section-head { margin-bottom: 0.55rem; }
.slider { position: relative; }
.slider__frame {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101014;
}
.slider__slide { position: absolute; inset: 0; margin: 0; }
.slider__slide a { display: block; height: 100%; color: inherit; text-decoration: none; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 2rem 0.45rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}
.slider__slide--empty { display: flex; align-items: flex-end; padding: 0.75rem; }
.slider__slide--empty figcaption {
  position: static;
  padding: 0;
  background: none;
  color: var(--muted);
  font-weight: 500;
}
.slider__nav {
  position: absolute;
  top: calc(50% - 8px);
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(7, 7, 8, 0.8);
  color: var(--gold-2);
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider__nav--prev { left: 6px; }
.slider__nav--next { right: 6px; }
.slider__nav:hover { background: var(--gold); color: #1a140c; transform: translateY(-1px); }

.prints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.print {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #101014;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
}
.print:hover { border-color: var(--gold); text-decoration: none; color: #fff; transform: translateY(-4px); }
.print__photo { position: absolute; inset: 0; }
.print__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.print:hover .print__photo img { transform: scale(1.06); }
.print__fallback { position: absolute; inset: 0; }
.print__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.7rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.print__title { font-weight: 700; }
.print__date,
.print__format { display: block; color: #e8e0d4; font-size: 0.85rem; }
.gallery-note { margin-top: 1rem; }

.player-sheet {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 1.3rem;
}
.player-sheet__photo img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }

.result { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.result h2 { font-size: 1.3rem; }
.result a { text-decoration: none; color: var(--ink); }
.result a:hover { color: var(--gold-2); }

.search-form { display: flex; gap: 0.5rem; max-width: 28rem; }
.search-form input { flex: 1; }
.text-link { font-weight: 700; }

.site-footer {
  margin-top: 0.5rem;
  padding: 1.7rem 0 1rem;
  background: #070708;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}
.footer-brand .mark {
  width: 64px;
  height: 64px;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 0 1px var(--gold);
}
.footer-brand__name { color: var(--ink); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem; }
.footer-list { list-style: none; }
.footer-list a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-list a:hover { color: var(--gold-2); }
.footer-list li + li { margin-top: 0.35rem; }
.footer-contact .eyebrow { color: var(--gold-2); }
.footer-contact .text-link,
.footer-contact .footer-mail { display: block; margin-top: 0.35rem; }
.footer-mail,
.socials a { display: inline-block; margin-top: 0.4rem; font-weight: 600; }
.socials { list-style: none; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.footer-visits span { color: var(--gold-2); font-weight: 700; }
.footer-credit a { font-weight: 700; text-decoration: none; }
.footer-credit a:hover { color: #fff; }

.post-list { display: flex; flex-direction: column; gap: 0.7rem; }
.post-card {
  padding: 1rem 1.05rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.post-card time { color: var(--gold-2); font-size: 0.85rem; font-weight: 600; }
.post-card h2 { font-size: 1.45rem; margin: 0.2rem 0 0.4rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold-2); }
.post-card p { color: var(--muted); }
.post-card .text-link { display: inline-block; margin-top: 0.65rem; }
.pagination { margin-top: 1.2rem; }
.pagination .nav-links { display: flex; gap: 0.9rem; }
.pagination .nav-links a { font-weight: 700; text-decoration: none; }

@keyframes crest-in {
  from { opacity: 0; transform: rotateY(-28deg) translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes crest-float {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(-6deg); }
  50% { transform: translateY(-10px) rotateX(8deg) rotateY(8deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.lightbox {
  width: min(1080px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(198, 161, 94, 0.5);
  border-radius: 10px;
  background: #0c0c0e;
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 5, 6, 0.86); }
.lightbox img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: #000;
}
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem 0.85rem;
}
.lightbox__copy strong { display: block; }
.lightbox__copy p { margin: 0.15rem 0 0; color: var(--muted); }
.lightbox__controls { display: flex; gap: 0.4rem; flex-shrink: 0; }
.lightbox__controls button {
  border: 1px solid rgba(198, 161, 94, 0.55);
  background: transparent;
  color: var(--gold-2);
  border-radius: 4px;
  min-width: 2.2rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.lightbox__controls button:hover { background: var(--gold); color: #1a140c; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .header-cluster { top: calc(4.5rem + 46px); }
}

@media (max-width: 1180px) {
  body.logged-in .nav-toggle { display: inline-flex; position: relative; z-index: 210; }
  body.logged-in .site-nav { padding: 0; border: 0; }
  body.logged-in .header-cluster {
    position: fixed;
    top: 4.5rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: auto;
    background: #070708;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 1.25rem 1.6rem 2rem;
    gap: 1rem;
    transform: translateY(-110%);
    visibility: hidden;
  }
  body.admin-bar.logged-in .header-cluster { top: calc(4.5rem + 32px); }
  body.logged-in .header-cluster.is-open { transform: none; visibility: visible; }
  body.logged-in .nav-list { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  body.logged-in .nav-list a { font-size: 1.45rem; padding: 0.2rem 0; }
  body.logged-in .nav-list a::after { display: none; }
  body.logged-in .header-account { flex-direction: column; align-items: flex-start; }
  body.logged-in .header-socials { flex-direction: row; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 210; }
  .site-nav { padding: 0; border: 0; }
  .header-cluster {
    position: fixed;
    top: 4.5rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: auto;
    background: #070708;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 1.25rem 1.6rem 2rem;
    gap: 1rem;
    transform: translateY(-110%);
    visibility: hidden;
  }
  body.admin-bar .header-cluster { top: calc(4.5rem + 32px); }
  .header-cluster.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .nav-list a { font-size: 1.45rem; padding: 0.2rem 0; }
  .nav-list a::after { display: none; }
  .nav-list a:hover,
  .nav-list .current-menu-item > a { color: var(--gold-2); }
  .header-account { flex-direction: column; align-items: flex-start; }
  .header-cluster .header-login { margin-top: 0; }
  .header-socials { flex-direction: row; }
  .banner__row,
  .home-intro__row,
  .home-board,
  .about-grid,
  .sheet__grid,
  .contact-grid,
  .footer-grid,
  .player-sheet,
  .prints,
  .banner-next,
  .sponsor-row,
  .sponsor-edit { grid-template-columns: 1fr; }
  .banner__dock { flex-direction: column; align-items: stretch; }
  .banner--art .banner-next {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 0.7rem 0.1rem 0.15rem;
  }
  .banner-next__where { text-align: left; }
  .lightbox__bar { flex-direction: column; align-items: flex-start; }
  .home-intro a { white-space: normal; }
  .fixture { grid-template-columns: 3.3rem minmax(0, 1fr); }
  .fixture__side { grid-column: 2; text-align: left; }
  .footer-base,
  .section-head,
  .search-form { flex-direction: column; align-items: flex-start; }
  .or-map { height: 240px; }
}

@media (max-width: 782px) {
  body.admin-bar .header-cluster,
  body.admin-bar.logged-in .header-cluster { top: calc(4.5rem + 46px); }
}

@media (prefers-reduced-motion: reduce) {
  .header-cluster,
  .banner .mark,
  .banner__stage,
  .home-intro,
  .panel,
  .home-gallery,
  .sponsor-band { animation: none; }
  .print__photo img,
  .sponsor,
  .player,
  .fixture,
  .btn { transition: none; }
}
