/* ═══════════════════════════════════════════════════════════════════
   MINNESOTA MULTIGUN — PRODUCTION STYLESHEET
   Northwoods tactical · olive military, cream paper, distressed type
═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  /* Background family */
  --bg:        #0d0e0a;
  --bg-2:      #14150f;
  --bg-3:      #1c1d16;
  --rail:      #2a2c20;
  --rail-2:    #3a3c2c;
  --mute:      #4a4c3a;
  --smoke:     #8a8c7a;

  /* Olive military — primary brand */
  --olive:        #7a8838;
  --olive-bright: #95a44a;
  --olive-deep:   #4f5a25;
  --olive-fade:   rgba(122, 136, 56, 0.12);
  --olive-glow:   rgba(149, 164, 74, 0.35);

  /* Paper / cream */
  --paper:     #ece4d0;
  --paper-dim: #c8c0aa;
  --cream:     #e8e3d3;
  --light:     #ece4d0;
  --white:     #f5efe0;

  /* Target color codes — used semantically */
  --steel-yellow: #efc91d;
  --steel-blue:   #3d6dab;
  --steel-orange: #d9701f;
  --steel-red:    #b8241a;

  /* Legacy aliases (in case any inline color refs need them) */
  --fire:    var(--olive);
  --ember:   var(--olive-deep);
  --gold:    var(--olive-bright);
  --fire-dim: var(--olive-fade);
  --fire-glow: var(--olive-glow);

  /* Type */
  --display: 'Big Shoulders Display', 'Bebas Neue', sans-serif;
  --stencil: 'Stardos Stencil', 'Big Shoulders Display', sans-serif;
  --body:    'Outfit', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --max: 1320px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --hh: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
  mix-blend-mode: overlay;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font: inherit; background: none; }
img { display: block; max-width: 100%; }
.grunge-filter { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
body > header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--hh);
  z-index: 900;
  background: rgba(13, 14, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rail);
}
body > header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--olive) 30%, var(--olive) 70%, transparent);
  opacity: 0.6;
}
.hdr {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}
.hdr-logo-img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.hdr-logo-sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.75;
  line-height: 1.2;
  max-width: 14ch;
}

nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.15s;
  cursor: pointer;
  position: relative;
}
.nav-a::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--olive-bright);
  transition: width 0.2s var(--ease);
}
.nav-a:hover { color: var(--paper); }
.nav-a:hover::after { width: 100%; }
.nav-a-active { color: var(--olive-bright) !important; }
.nav-a-active::after { width: 100%; }

.hdr-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  background: var(--olive);
  color: var(--bg);
  border: 1px solid var(--olive-bright);
  border-radius: 2px;
  transition: all 0.15s var(--ease);
  flex-shrink: 0;
}
.hdr-cta:hover {
  background: var(--olive-bright);
  transform: translateY(-1px);
}

/* Mobile nav — hidden on desktop, surfaced via @media below */
.hdr-mobile { display: none; position: relative; }
.hdr-mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--rail);
  border-radius: 2px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.hdr-mobile > summary::-webkit-details-marker { display: none; }
.hdr-mobile > summary::marker { content: ''; }
.hdr-mobile > summary > span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
  transition: transform 0.18s var(--ease), opacity 0.15s;
}
.hdr-mobile[open] > summary { border-color: var(--olive); }
.hdr-mobile[open] > summary > span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--olive-bright); }
.hdr-mobile[open] > summary > span:nth-child(2) { opacity: 0; }
.hdr-mobile[open] > summary > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--olive-bright); }

.hdr-mobile-panel {
  position: fixed;
  top: var(--hh);
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rail);
  padding: 0.5rem 0;
  max-height: calc(100vh - var(--hh));
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.hdr-mobile-link {
  display: block;
  padding: 0.85rem var(--pad);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rail);
}
.hdr-mobile-link:last-of-type { border-bottom: none; }
.hdr-mobile-link:hover,
.hdr-mobile-link:active { color: var(--paper); background: var(--olive-fade); }
.hdr-mobile-link.is-active { color: var(--olive-bright); }
.hdr-mobile-cta {
  display: block;
  margin: 0.6rem var(--pad) 0.4rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--olive);
  color: var(--bg);
  border: 1px solid var(--olive-bright);
  border-radius: 2px;
  text-decoration: none;
}
.hdr-mobile-cta:active { background: var(--olive-bright); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--hh);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  /* Fallback gradient — visible until/unless media files are present */
  background:
    radial-gradient(ellipse at 35% 30%, rgba(122, 136, 56, 0.18) 0%, transparent 60%),
    linear-gradient(to bottom, var(--bg) 0%, var(--bg-2) 100%);
}

/* Background media — absolute-positioned video + image fallback + dark overlay */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.85);
}
/* Mobile: hide video (don't load it), show static image */
.hero-image { display: none; }
@media (max-width: 900px) {
  .hero-video { display: none; }
  .hero-image { display: block; }
}
/* Dark vignette so text stays readable on top of the media */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13,14,10,0.85) 0%, rgba(13,14,10,0.55) 45%, rgba(13,14,10,0.35) 100%),
    linear-gradient(to bottom, rgba(13,14,10,0.4) 0%, rgba(13,14,10,0.2) 50%, rgba(13,14,10,0.85) 100%);
}

.hero-body {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 3rem var(--pad) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .hero-body { padding: 2rem var(--pad) 2rem; gap: 1rem; }
}

.hero-logo-wrap {
  margin: 0;
  line-height: 0;
  opacity: 0;
  animation: fadeUp 0.85s 0.1s var(--ease) forwards;
}
.hero-logo {
  display: block;
  width: clamp(280px, 42vw, 540px);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6));
}

.hero-text { display: flex; flex-direction: column; max-width: 600px; }

.hero-label,
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s var(--ease) forwards;
}
.hero-label-dot,
.hero-meta-dot {
  width: 8px;
  height: 8px;
  background: var(--olive-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--olive-glow);
  animation: pulse 2.5s infinite;
}
.hero-label-text,
.hero-meta-text {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-bright);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--paper);
  max-width: 540px;
  line-height: 1.65;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.75s 0.5s var(--ease) forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-sub strong { color: var(--paper); font-weight: 700; }

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.75s 0.7s var(--ease) forwards;
}

/* Buttons */
.btn-fire,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 1.8rem;
  background: var(--olive);
  color: var(--bg);
  border: 1px solid var(--olive-bright);
  border-radius: 2px;
  transition: all 0.15s var(--ease);
  position: relative;
}
.btn-fire::before,
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--olive-deep);
  opacity: 0;
  transition: opacity 0.15s, inset 0.15s;
  pointer-events: none;
}
.btn-fire:hover,
.btn-primary:hover {
  background: var(--olive-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 136, 56, 0.3);
}
.btn-fire:hover::before,
.btn-primary:hover::before { opacity: 1; inset: -6px; }

.btn-outline,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 1.8rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  transition: all 0.15s var(--ease);
}
.btn-outline:hover,
.btn-secondary:hover {
  border-color: var(--olive-bright);
  color: var(--olive-bright);
  transform: translateY(-2px);
}

/* Hero stats strip */
.hero-stats {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
  background: rgba(13, 14, 10, 0.7);
  backdrop-filter: blur(8px);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.stat-block {
  padding: 1.75rem 0;
  padding-right: 2.5rem;
  border-right: 1px solid var(--rail);
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-block:first-child { padding-left: 0; }
.stat-block:not(:first-child) { padding-left: 2.5rem; }
.stat-block:last-child { border-right: none; }
.stat-block:nth-child(1) { animation-delay: 0.8s; }
.stat-block:nth-child(2) { animation-delay: 0.9s; }
.stat-block:nth-child(3) { animation-delay: 1s; }

.stat-series-name,
.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.5rem;
}
.stat-title,
.stat-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 0.4rem;
  font-style: italic;
}
.stat-value.accent { color: var(--olive-bright); }
.stat-next {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.stat-next-date {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--olive-bright);
}
.stat-next-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.7;
}

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

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
section { padding: 5.5rem 0; }

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Section label — restyled as olive pill (legacy line hidden) */
.section-label {
  display: inline-flex;
  align-items: center;
  background: var(--olive);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.25rem;
  font-style: italic;
  border-radius: 2px;
  gap: 0.65rem;
}
.section-label-line { display: none; }
.section-label-text {
  color: var(--bg);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-weight: inherit;
}

.section-heading {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 0.95;
  filter: url(#stamped);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--paper-dim);
  max-width: 460px;
  line-height: 1.7;
  margin-top: 0.85rem;
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.see-all:hover { color: var(--olive-bright); border-bottom-color: var(--olive-bright); }
.see-all::after { content: ' →'; }

/* ─────────────────────────────────────────
   UPCOMING EVENTS
───────────────────────────────────────── */
.events-section {
  background: var(--bg-2);
  position: relative;
}
.events-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--olive) 50%, transparent);
  opacity: 0.4;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  overflow: hidden;
}
.event-row {
  display: grid;
  grid-template-columns: 100px auto 1fr auto auto;
  align-items: center;
  background: var(--bg-3);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rail);
}
.event-row:last-child { border-bottom: none; }
.event-row:hover { background: #21221a; }
.event-row:hover .event-register-btn { background: var(--olive); color: var(--bg); border-color: var(--olive-bright); }
.event-row:hover .event-date-block { background: var(--paper); }
.event-row:hover .edb-day { color: var(--bg); }
.event-row:hover .edb-month { color: var(--olive-deep); }
.event-row:hover .edb-dow { color: var(--olive-deep); }

.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 0;
  width: 100px;
  border-right: 1px solid var(--rail-2);
  background: var(--bg-2);
  transition: background 0.15s;
}
.edb-month {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-bright);
  margin-bottom: 0.15rem;
  transition: color 0.15s;
}
.edb-day {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--paper);
  font-style: italic;
  transition: color 0.15s;
}
.edb-dow {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.2rem;
  opacity: 0.7;
  transition: color 0.15s;
}

.event-series-col { padding: 0 1.5rem; flex-shrink: 0; }

.event-info {
  padding: 1.4rem 1.4rem 1.4rem 0;
  flex: 1;
  min-width: 0;
}
.event-name {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.05;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-venue {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--paper-dim);
  letter-spacing: 0.06em;
}

.event-fee-col { padding: 0 2rem; text-align: center; flex-shrink: 0; }
.event-fee {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.event-fee-label {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 0.15rem;
}

.event-register-col { padding: 0 1.75rem 0 0; text-align: right; flex-shrink: 0; }
.event-register-btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--rail-2);
  color: var(--paper-dim);
  background: transparent;
  border-radius: 2px;
  transition: all 0.15s;
  margin-top: 0.4rem;
  white-space: nowrap;
}

/* Status / round chips — semantic target color coding */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 1px;
  border: 1px solid;
  white-space: nowrap;
}
.chip-mn3gg, .chip-completed { color: var(--steel-orange); border-color: rgba(217, 112, 31, 0.35); background: rgba(217, 112, 31, 0.08); }
.chip-wed, .chip-round       { color: var(--olive-bright); border-color: var(--olive); background: var(--olive-fade); }
.chip-t2g                    { color: var(--steel-red); border-color: rgba(184, 36, 26, 0.3); background: rgba(184, 36, 26, 0.08); }
.chip-open                   { color: var(--steel-yellow); border-color: rgba(239, 201, 29, 0.35); background: rgba(239, 201, 29, 0.08); }
.chip-soon                   { color: var(--paper-dim); border-color: var(--rail-2); background: rgba(255,255,255,0.02); }

/* ─────────────────────────────────────────
   RESULTS CARDS
───────────────────────────────────────── */
.results-section { background: var(--bg); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.result-card {
  background: var(--bg-2);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  border-color: var(--olive);
}
.result-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.result-thumb::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-2), transparent);
}
/* Cover photo layered above the gradient fallback. If the image fails to
   load, onerror removes it and the gradient + round number show through. */
.result-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}
/* Pseudo-element bottom-fade and series bar must sit on top of the photo */
.result-thumb::after { z-index: 2; }
.result-series-bar { z-index: 3; }
.result-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14160d, #1f2415) !important;
}
.result-thumb-num {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 6rem;
  letter-spacing: 0.02em;
  opacity: 0.1;
  color: var(--olive-bright);
  user-select: none;
}
.result-series-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.rb-mn3gg { background: var(--steel-orange); }
.rb-wed   { background: var(--olive); }
.rb-t2g   { background: var(--steel-red); }

.result-body { padding: 1.5rem; }
.result-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.result-date {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.result-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.05;
  margin-bottom: 0.65rem;
}
.result-excerpt {
  font-size: 0.9rem;
  color: var(--paper-dim);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.result-link {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-bright);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.result-link:hover { color: var(--paper); }
.result-link::after { content: ' →'; }

/* ─────────────────────────────────────────
   LEADERBOARD TEASER
───────────────────────────────────────── */
.lb-section {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.lb-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(270deg, rgba(122, 136, 56, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.lb-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lb-board {
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.lb-board::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--olive);
}
.lb-board-head {
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.25);
}
.lb-board-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
}
.lb-board-sub {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 2px;
  opacity: 0.7;
}
.lb-board-body { padding: 0.4rem 0; }

.lb-entry {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 0.8rem 1.6rem;
  transition: background 0.1s;
  border-bottom: 1px solid rgba(122, 136, 56, 0.04);
}
.lb-entry:hover { background: rgba(122, 136, 56, 0.04); }
.lb-entry-rank {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
}
.rank-gold   { color: var(--steel-yellow); }
.rank-silver { color: #a8a8a0; }
.rank-bronze { color: #b88a45; }
.rank-other  { color: var(--rail-2); font-size: 1.1rem; }

.lb-entry-name {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper);
  padding: 0 0.85rem;
}
.lb-entry-pct {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--olive-bright);
}
.lb-board-foot {
  padding: 0.9rem 1.6rem;
  border-top: 1px solid var(--rail);
  background: rgba(0,0,0,0.25);
}
.lb-board-matches {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.7;
}

/* ─────────────────────────────────────────
   EMAIL CTA
───────────────────────────────────────── */
.cta-section { background: var(--bg); padding: 6rem 0; }
.cta-inner { max-width: 680px; margin: 0 auto; text-align: center; padding: 0 var(--pad); }
.cta-heading {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin-bottom: 1.25rem;
  filter: url(#stamped);
}
.cta-heading em {
  font-style: italic;
  color: var(--olive-bright);
  background: none;
  -webkit-text-fill-color: var(--olive-bright);
}
.cta-sub {
  font-size: 1.05rem;
  color: var(--paper-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-form {
  display: flex;
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  transition: border-color 0.15s;
}
.cta-form:focus-within { border-color: var(--olive-bright); }
.cta-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: none;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
  outline: none;
}
.cta-input::placeholder { color: var(--mute); }
.cta-btn {
  padding: 1rem 1.75rem;
  background: var(--olive);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cta-btn:hover { background: var(--olive-bright); }
.cta-note {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   PRESENTED + FOOTER
───────────────────────────────────────── */
.presented-section {
  background: var(--bg-2);
  padding: 2.5rem 0;
  border-top: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
}
.presented-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.presented-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 3rem;
  border-right: 1px solid var(--rail);
}
.presented-block:last-child { border-right: none; }
.presented-org-logo {
  width: 42px;
  height: 42px;
  background: var(--rail);
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.presented-org-logo-text {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--olive-bright);
  letter-spacing: 0.05em;
}
.presented-org-name {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--paper);
}
.presented-org-url {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  text-transform: lowercase;
}
.presented-caption {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: center;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.hero-presented {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rail);
  flex-wrap: wrap;
}
.presented-by-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-dim);
  flex-shrink: 0;
}
.presented-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  transition: all 0.15s;
}
.presented-chip:hover { border-color: var(--olive-bright); color: var(--olive-bright); }

footer {
  background: var(--bg);
  border-top: 1px solid var(--rail);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-tag {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-bright);
}
.footer-tag span { color: var(--paper); }
.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.6;
}
.footer-ig {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
  transition: color 0.15s;
}
.footer-ig:hover { color: var(--olive-bright); }

/* ─────────────────────────────────────────
   STANDINGS PAGE
───────────────────────────────────────── */
.standings-section {
  background: var(--bg-2);
  padding: 7rem 0 5rem;
  min-height: 60vh;
  position: relative;
}
.div-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rail-2);
  margin-bottom: 2rem;
  overflow-x: auto;
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
}
.div-tab {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  color: var(--paper-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  background: none;
}
.div-tab:hover { color: var(--paper); background: rgba(122, 136, 56, 0.04); }
.div-tab.active {
  color: var(--olive-bright);
  border-bottom-color: var(--olive-bright);
  background: rgba(122, 136, 56, 0.06);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  overflow: hidden;
}
.standings-table th {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rail-2);
  background: rgba(0,0,0,0.25);
}
.standings-table th.numeric { text-align: right; }
/* Click-to-sort headers. js/standings.js adds .js-sortable on init; the sort
   affordances (pointer, arrows) only show then, so a no-JS page keeps plain
   labels. The button always just inherits the th typography. */
.standings-table th .th-sort {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.standings-table th.numeric .th-sort { flex-direction: row-reverse; }
.standings-table.js-sortable th .th-sort { cursor: pointer; }
.standings-table.js-sortable th .th-sort:hover,
.standings-table.js-sortable th .th-sort:focus-visible { color: var(--olive-bright); outline: none; }
.standings-table.js-sortable th .th-sort::after {
  content: "\2195";          /* ↕ idle */
  opacity: 0.3;
  font-size: 0.95em;
  line-height: 1;
}
.standings-table.js-sortable th[aria-sort="ascending"] .th-sort::after { content: "\25B2"; opacity: 1; }   /* ▲ */
.standings-table.js-sortable th[aria-sort="descending"] .th-sort::after { content: "\25BC"; opacity: 1; }   /* ▼ */
.standings-table.js-sortable th[aria-sort] .th-sort { color: var(--olive-bright); }
.standings-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(122, 136, 56, 0.04);
  color: var(--paper);
  font-size: 0.95rem;
}
.standings-table td.numeric { text-align: right; font-family: var(--mono); }
.standings-table tr:hover td { background: rgba(122, 136, 56, 0.03); }
.standings-table tr:last-child td { border-bottom: none; }

.standings-place {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  width: 50px;
}
.standings-name { font-weight: 600; }
.standings-total { color: var(--olive-bright); font-weight: 700; }
.ineligible-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-left: 0.5rem;
  padding: 2px 6px;
  border: 1px solid var(--mute);
  border-radius: 2px;
}

.standings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
.standings-meta-item { display: flex; flex-direction: column; gap: 2px; }
.standings-meta-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.standings-meta-value {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--paper);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   SCHEDULE & MATCH DETAIL PAGES
───────────────────────────────────────── */
.schedule-section,
.match-detail-section {
  background: var(--bg-2);
  padding: 7rem 0 5rem;
  min-height: 60vh;
}

/* MATCH COVER HERO — cinematic 21:9 banner with title overlay. The fixed
   site header floats over the top of the photo (backdrop blur softens it).
   When this hero is present, the section below collapses its top padding. */
.match-cover-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 600px;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rail);
}
.match-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.match-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13, 14, 10, 0.88) 0%,
    rgba(13, 14, 10, 0.45) 50%,
    rgba(13, 14, 10, 0.10) 100%);
  pointer-events: none;
}
.match-cover-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 2.5rem;
  z-index: 1;
}
/* Title styles inherit from .match-hero-title; bump shadow for legibility */
.match-cover-content .match-hero-title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  filter: none; /* drop the stamped svg filter when overlaying photo */
}
.match-cover-content .match-hero-meta {
  color: var(--paper);
}
/* Section directly under the cover doesn't need the 7rem header clearance */
.match-cover-hero + .match-detail-section {
  padding-top: 3rem;
}
.schedule-section .event-list { margin-top: 1rem; }

.match-hero {
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.match-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--olive);
}
.match-hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.5rem;
  filter: url(#stamped);
}
.match-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* ─────────────────────────────────────────
   ADMIN
───────────────────────────────────────── */
.admin-body {
  padding: 7rem 0 3rem;
  min-height: 80vh;
  background: var(--bg-2);
}
.admin-card {
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 3px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.admin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--olive);
  opacity: 0.6;
}
.admin-card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--paper);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rail-2);
}
.admin-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(122, 136, 56, 0.04);
  color: var(--paper);
}
.admin-table tr:last-child td { border-bottom: none; }

.admin-input,
.admin-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--bg-2);
  border: 1px solid var(--rail-2);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.admin-input:focus,
.admin-textarea:focus { border-color: var(--olive-bright); }

.admin-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.5rem;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  background: var(--olive);
  color: var(--bg);
  border: 1px solid var(--olive-bright);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-btn:hover { background: var(--olive-bright); transform: translateY(-1px); }
.admin-btn-outline {
  background: transparent;
  border: 1px solid var(--rail-2);
  color: var(--paper-dim);
}
.admin-btn-outline:hover {
  border-color: var(--olive-bright);
  color: var(--olive-bright);
  background: transparent;
  transform: translateY(-1px);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-family: var(--body);
}
.alert-success {
  background: rgba(149, 164, 74, 0.08);
  border: 1px solid rgba(149, 164, 74, 0.3);
  color: var(--olive-bright);
}
.alert-error {
  background: rgba(184, 36, 26, 0.08);
  border: 1px solid rgba(184, 36, 26, 0.3);
  color: #d65a4f;
}
.alert-info {
  background: rgba(239, 201, 29, 0.06);
  border: 1px solid rgba(239, 201, 29, 0.25);
  color: var(--steel-yellow);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  border: 1px solid;
}
.status-scheduled         { color: var(--paper-dim); border-color: var(--rail-2); }
.status-registration_open { color: var(--steel-yellow); border-color: rgba(239, 201, 29, 0.35); }
.status-results_pending   { color: var(--steel-orange); border-color: rgba(217, 112, 31, 0.35); }
.status-completed         { color: var(--olive-bright); border-color: var(--olive); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .results-grid { grid-template-columns: 1fr 1fr; }
  .lb-boards { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 100px auto 1fr auto; }
  .event-fee-col { display: none; }
}
@media (max-width: 900px) {
  nav { display: none; }
  .hdr-cta { display: none; }
  .hdr-mobile { display: block; }
  .hdr { gap: 1rem; }
}

@media (max-width: 768px) {
  /* Mobile: hide the right register column entirely — the whole .event-row
     is already an <a> linking to PractiScore (when reg is open) or the
     match results page (when completed), so the chip + button are
     redundant tap targets on a small screen. Title gets the full width. */
  .event-row { grid-template-columns: 80px 1fr; }
  .event-series-col { display: none; }
  .event-register-col { display: none; }
  .event-name {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  .event-venue {
    font-size: 0.7rem;
    overflow-wrap: anywhere;
  }
  .event-info { padding: 1rem 1.1rem 1rem 0; min-width: 0; }
  .results-grid { grid-template-columns: 1fr; }
  .presented-inner { flex-direction: column; gap: 0; }
  .presented-block {
    border-right: none;
    border-bottom: 1px solid var(--rail);
    padding: 1.5rem 0;
    width: 100%;
    justify-content: center;
  }
  .presented-block:last-child { border-bottom: none; }
  .hero-stats-inner { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--rail); padding: 1.25rem 0; }
  .stat-block:not(:first-child) { padding-left: 0; }
  .stat-block:last-child { border-bottom: none; }

  /* Hero logo — proportional on tablets/phones, capped well below screen width */
  .hero-logo { width: clamp(200px, 52vw, 320px); }

  /* Tighter logo on mobile — hide subtitle, shrink wordmark */
  .hdr-logo-sub { display: none; }
  .hdr-logo-img { height: 44px; }

  /* Leader rotator — tighter avatar + name sizing in the stacked block */
  .leader-row { grid-template-columns: 12px 24px 1fr auto; gap: 0.45rem; }
  .leader-avatar { width: 24px; height: 24px; }
  .leader-wordmark { font-size: 0.65rem; }
  .leader-place { font-size: 0.85rem; }
  .leader-row .shooter-link { font-size: 0.8rem; }
  .leader-pct { font-size: 10px; }

  /* Standings page — wrap meta items, allow tabs to wrap, scroll table */
  .standings-meta { flex-wrap: wrap; gap: 1rem 1.5rem; }
  .div-tabs { flex-wrap: wrap; gap: 0.4rem; }
  .standings-table-wrap, .div-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Standings page — hide Matches + Counting cols on mobile (keep Place/Shooter/Avg/Total) */
  .standings-section .standings-table th:nth-child(3),
  .standings-section .standings-table td:nth-child(3),
  .standings-section .standings-table th:nth-child(4),
  .standings-section .standings-table td:nth-child(4) { display: none; }

  /* Match detail page — hide Penalties col on mobile (keep Place/Shooter/Time/Pts/Match%) */
  .match-detail-section .standings-table th:nth-child(4),
  .match-detail-section .standings-table td:nth-child(4) { display: none; }

  .standings-table th, .standings-table td { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  .standings-place { width: 36px; }

  /* Hero CTA stack */
  .hero-actions { flex-wrap: wrap; gap: 0.6rem; }
  .btn-fire, .btn-outline { flex: 1 1 auto; text-align: center; min-width: 140px; }

  /* Section headings: smaller margins on mobile */
  .section-heading { font-size: 1.6rem; }
  .section-row { flex-wrap: wrap; gap: 0.75rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

  /* Match detail page — tighter section padding and inner hero */
  .match-detail-section { padding: calc(var(--hh) + 1.5rem) 0 3rem; }
  .match-hero { padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; }

  /* Sponsor cards already collapse here */
  .sponsor-ribbon { padding: 1.5rem 0; }

  /* Rules content tighter */
  .rules-hero, .div-hero { padding: 2rem 0 1.5rem; }
  .rules-main { padding: 1.5rem 0 3rem; }
  .rule-h2 { font-size: 1.45rem; margin-top: 2rem; }
  .rule-h3 { font-size: 1.1rem; }
  .div-card-name { font-size: 1.4rem; }
  .div-card-grid { grid-template-columns: 1fr; }

  /* Section-jump bar — less padding so chips fit */
  .section-jump { padding: 0.4rem 0; }
  .section-jump-list a { padding: 0.35rem 0.7rem; font-size: 9.5px; }

  /* Admin tables overflow on mobile */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .hdr-logo-img { height: 38px; }
  .hdr { gap: 0.5rem; }
  .hdr-logo { gap: 0.5rem; }
  /* Even tighter on very narrow phones */
  :root { --pad: 1rem; }
  .rules-hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  /* Hero logo — proportional, never wider than ~half the viewport */
  .hero-logo { width: clamp(170px, 48vw, 240px); }
  .standings-table th, .standings-table td { padding: 0.45rem 0.5rem; font-size: 0.8rem; }
  /* Standings avatar — drop to 24px on narrow phones, less visual weight per row */
  .standings-avatar { width: 24px; height: 24px; }
  .standings-name-row { gap: 0.45rem; }
}

/* ─────────────────────────────────────────
   SPONSORS — homepage ribbon + dedicated page
───────────────────────────────────────── */
.sponsor-ribbon {
  background: var(--bg-2);
  border-top: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
  padding: 2rem 0;
}
.sponsor-ribbon-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.sponsor-ribbon-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: stretch;
}
/* Homepage ribbon — vertical 4:5 cards. Logo (1:1) on top, name underneath. */
.sponsor-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 144px;
  aspect-ratio: 4 / 5;
  padding: 0.7rem;
  background: var(--bg-3);
  border: 1px solid var(--rail);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  flex-shrink: 0;
}
.sponsor-chip:hover {
  border-color: var(--olive);
  background: var(--bg);
}
/* Logo tile — square, fills the top of the card. Expects 1:1 sponsor PNGs. */
.sponsor-chip-mark {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--rail);
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sponsor-chip-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sponsor-chip-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--olive-bright);
}
.sponsor-chip-name {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
  /* Two-line cap: clip past the second line */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dedicated sponsors page */
.sponsor-tier {
  margin-top: 2.5rem;
}
.sponsor-tier-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rail);
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.sponsor-card {
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 2px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.sponsor-card:hover {
  border-color: var(--olive);
  background: var(--bg-3);
}
/* Card-mark and image expect 1:1 sponsor logos. onerror swaps img → wordmark span. */
.sponsor-card-mark {
  width: 96px;
  height: 96px;
  background: var(--rail);
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sponsor-card-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sponsor-card-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--olive-bright);
  letter-spacing: 0.05em;
}
.sponsor-card-name {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  margin-bottom: 0.4rem;
  line-height: 1;
}
.sponsor-card-blurb {
  font-size: 0.95rem;
  color: var(--paper);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.sponsor-card-bio {
  font-size: 0.9rem;
  color: var(--paper-dim);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.sponsor-card-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-bright);
  text-decoration: none;
}
.sponsor-card-link:hover { color: var(--paper); }

.sponsor-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 2px;
  text-align: center;
}
.sponsor-cta-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 0.6rem;
}
.sponsor-cta-text {
  color: var(--paper-dim);
  max-width: 560px;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .sponsor-ribbon-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sponsor-card {
    grid-template-columns: 72px 1fr;
    padding: 1.25rem;
  }
  .sponsor-card-mark {
    width: 72px;
    height: 72px;
  }
}

/* ─────────────────────────────────────────
   RULES + DIVISIONS — shared hero
───────────────────────────────────────── */
.rules-hero, .div-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--rail);
  padding: 3rem 0 2.5rem;
}
.rules-hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--paper);
  line-height: 0.95;
  margin: 0.6rem 0 1rem;
  text-transform: uppercase;
}
.rules-hero-sub {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--paper-dim);
}
.rules-hero-sub a { color: var(--olive-bright); }
.rules-hero-sub a:hover { color: var(--paper); }
.rules-hero-meta {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.rules-hero-meta a { color: var(--olive-bright); text-decoration: none; }
.rules-hero-meta a:hover { color: var(--paper); }

/* ─────────────────────────────────────────
   SECTION-JUMP NAV (sticky chip bar under header)
───────────────────────────────────────── */
.section-jump {
  position: sticky;
  top: var(--hh);
  z-index: 50;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rail);
  padding: 0.55rem 0;
}
.section-jump-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.section-jump-list::-webkit-scrollbar { height: 4px; }
.section-jump-list::-webkit-scrollbar-thumb { background: var(--rail-2); border-radius: 2px; }
.section-jump-list li { flex: 0 0 auto; }
.section-jump-list a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  border: 1px solid var(--rail);
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.section-jump-list a:hover {
  color: var(--paper);
  border-color: var(--olive);
  background: var(--olive-fade);
}

/* ─────────────────────────────────────────
   RULES MAIN — single column content
───────────────────────────────────────── */
.rules-main {
  padding: 2.5rem 0 4rem;
}
.rules-main .wrap {
  max-width: 960px;
}
.rules-section {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--paper);
  line-height: 1.65;
}
.rules-section + .rules-section { margin-top: 1rem; }

/* Headings */
.rule-h {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-transform: uppercase;
  scroll-margin-top: calc(var(--hh) + 70px);
}
.rule-h2 {
  font-size: 1.85rem;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rail);
}
.rule-h2:first-child,
.rules-section > .rule-h2:first-of-type { margin-top: 0; }
.rule-h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.85rem;
  color: var(--olive-bright);
}
.rule-p {
  margin: 0 0 0.9rem;
  color: var(--paper);
}
.rule-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  border-left: 2px solid var(--olive);
  color: var(--paper-dim);
  font-style: italic;
  font-size: 0.95rem;
}

/* Numbered rules with the number pulled out into a gutter */
.rule {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  margin: 0.1rem 0;
  border-radius: 2px;
  scroll-margin-top: calc(var(--hh) + 70px);
}
.rule:target {
  background: var(--olive-fade);
  outline: 1px solid var(--olive-deep);
}
.rule-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive-bright);
  text-align: right;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-top: 0.2rem;
  white-space: nowrap;
}
.rule-num:hover { color: var(--paper); }
.rule-body {
  color: var(--paper);
  font-size: 0.97rem;
  line-height: 1.6;
  min-width: 0;
}
.rule-body strong { color: var(--paper); font-weight: 600; }
.rule-d2 { padding-left: 1.5rem; }
.rule-d3 { padding-left: 3rem; }
.rule-d4 { padding-left: 4.5rem; }
.rule-d2 .rule-num,
.rule-d3 .rule-num,
.rule-d4 .rule-num { color: var(--smoke); }

.rule-bullets, .rule-numbered {
  margin: 0.75rem 0 1rem 1.5rem;
  padding: 0;
  color: var(--paper);
}
.rule-bullets li, .rule-numbered li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.rule-divider {
  border: none;
  border-top: 1px solid var(--rail);
  margin: 2.5rem 0;
}

/* Tables — used by rules tables and the divisions compare table */
.rule-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--rail);
  border-radius: 2px;
}
.rule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rule-table th {
  background: var(--bg-3);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rail);
}
.rule-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rail);
  color: var(--paper);
  vertical-align: top;
}
.rule-table tr:last-child td { border-bottom: none; }
.rule-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

.rule-body code,
.rules-section code,
.about-section code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-2);
  border: 1px solid var(--rail);
  padding: 0.05em 0.35em;
  border-radius: 2px;
  color: var(--olive-bright);
}

/* ─────────────────────────────────────────
   DIVISIONS BLOCK (lives inside rules.php #divisions)
───────────────────────────────────────── */
.div-compare-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
}
.div-compare-name:hover { color: var(--olive-bright); }
.div-compare-rule {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.div-compare-fine {
  font-size: 0.78rem;
  color: var(--paper-dim);
}
.div-compare-tag {
  font-size: 0.85rem;
  color: var(--paper-dim);
  font-style: italic;
}

/* Top-of-page teaser: compact chip grid linking down to the §6 detail cards.
   Lives above §1 so readers know which divisions exist before they hit the
   rules. Each chip jumps to its detail card in the §6 block. */
.div-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.div-teaser-chip {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--bg-3);
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}
.div-teaser-chip:hover {
  border-color: var(--olive);
  background: var(--bg-2);
  transform: translateY(-1px);
}
.div-teaser-rule {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-bright);
  margin-bottom: 0.25rem;
}
.div-teaser-name {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.4rem;
}
.div-teaser-tagline {
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--paper-dim);
  line-height: 1.4;
}
@media (max-width: 480px) {
  .div-teaser-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .div-teaser-chip { padding: 0.75rem 0.9rem; }
  .div-teaser-name { font-size: 1.05rem; }
  .div-teaser-tagline { font-size: 0.78rem; }
}

.div-card {
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 2px;
  padding: 1.5rem;
  margin: 1.25rem 0;
  scroll-margin-top: calc(var(--hh) + 70px);
}
.div-card:target {
  border-color: var(--olive);
  background: var(--bg-3);
}
.div-card-head {
  margin-bottom: 1.25rem;
}
.div-card-rule {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 0.4rem;
}
.div-card-name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--paper);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.div-card-tagline {
  color: var(--paper-dim);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0;
}
.div-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.div-spec {
  background: var(--bg-3);
  border: 1px solid var(--rail);
  border-radius: 2px;
  padding: 1rem 1.1rem;
}
.div-spec-label {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--olive-bright);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rail);
}
.div-spec-list {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.4rem 0.85rem;
  font-size: 0.86rem;
}
.div-spec-list dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  padding-top: 0.15rem;
}
.div-spec-list dd {
  margin: 0;
  color: var(--paper);
  line-height: 1.45;
}
.div-card-note {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border-left: 2px solid var(--olive);
  color: var(--paper-dim);
  font-size: 0.9rem;
  font-style: italic;
}

/* ─────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────── */
.about-section {
  padding: 3rem 0 5rem;
}
.about-wrap {
  max-width: 780px;
}
.about-block {
  margin-bottom: 3rem;
}
.about-block:last-child { margin-bottom: 0; }
.about-h {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rail);
}
.about-block p {
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-block p:last-child { margin-bottom: 0; }
.about-block strong { color: var(--paper); font-weight: 600; }
.about-block a { color: var(--olive-bright); }
.about-block a:hover { color: var(--paper); }
.about-presented {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.about-presented li {
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 2px;
  margin-bottom: 0.6rem;
  color: var(--paper);
  line-height: 1.55;
}
.about-presented li strong a { color: var(--olive-bright); }
.about-presented li strong a:hover { color: var(--paper); }
.about-note {
  font-size: 0.92rem;
  color: var(--paper-dim);
  font-style: italic;
}
.about-steps {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--paper);
}
.about-steps li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 700px) {
  .rule {
    grid-template-columns: 52px 1fr;
    gap: 0.6rem;
  }
  .rule-d2 { padding-left: 0.85rem; }
  .rule-d3 { padding-left: 1.7rem; }
  .rule-d4 { padding-left: 2.55rem; }
  .div-card { padding: 1.1rem; }
  .div-spec-list { grid-template-columns: 70px 1fr; }
  .rules-hero, .div-hero { padding: 2rem 0 1.5rem; }
}

/* ─────────────────────────────────────────
   SHOOTER PAGES (per-profile + index)
───────────────────────────────────────── */

/* Cell-level link wrapper used in standings + match results tables.
   Inherits color from parent so existing rank styling stays intact. */
.shooter-link {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.shooter-link:hover {
  color: var(--olive-bright);
  border-bottom-color: var(--olive);
}

/* SEASON LEADERS RIBBON — cycling top-3 podium per division on the homepage.
   Blocks are stacked in a single grid cell so the parent sizes to the tallest
   one; only the .is-active block is visible (opacity + transform fade). */
.stat-leaders { padding-right: 0; }
.leader-rotator {
  display: grid;
  grid-template-areas: "stack";
  position: relative;
}
.leader-block {
  grid-area: stack;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.leader-block.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.leader-div-name {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--olive-bright);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.leader-podium {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.leader-row {
  display: grid;
  grid-template-columns: 14px 28px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.leader-place {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--olive-bright);
  text-align: center;
  line-height: 1;
}
.leader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--rail);
  border: 1px solid var(--rail-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leader-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--olive-bright);
  letter-spacing: 0.02em;
  line-height: 1;
}
.leader-row .shooter-link {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.leader-pct {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--paper-dim);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .leader-block { transition: none; }
}

/* Leaderboard row avatar — small circular thumbnail. Renders only when a
   shooter has a `photo` set in shooters.json; absent rows are name-only. */
.standings-name-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.standings-name-stack {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}
.standings-avatar {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--rail);
  border: 1px solid var(--rail-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.standings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Armored Category badge — small shield icon shown next to division/name when
   the shooter ran the "Armored (Plate Carrier)" PractiScore category. */
.armored-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  vertical-align: -2px;
  color: var(--olive-bright);
  cursor: help;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.armored-badge:hover {
  color: var(--paper);
  transform: translateY(-1px);
}
.armored-badge svg {
  display: block;
}

.shooter-section-heading {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* HERO BANNER — locked at 8:3, capped on tall screens */
.shooter-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 3;
  max-height: 520px;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rail);
}
.shooter-hero-banner {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}
.shooter-hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, var(--olive-fade), transparent 60%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3) 60%, var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shooter-hero-watermark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(8rem, 30vw, 24rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--olive);
  opacity: 0.18;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}
.shooter-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(13, 14, 10, 0.92) 0%,
    rgba(13, 14, 10, 0.55) 50%,
    rgba(13, 14, 10, 0.20) 100%);
  pointer-events: none;
}
.shooter-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: end;
  gap: 2rem;
  padding-bottom: 2rem;
}
.shooter-hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--paper);
  background: var(--rail);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.shooter-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shooter-photo-wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 3.6rem;
  letter-spacing: 0.02em;
  color: var(--olive-bright);
  line-height: 1;
}
.shooter-hero-info { flex: 1; min-width: 0; }
.shooter-hero-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  transition: color 0.2s var(--ease);
}
.shooter-hero-back:hover { color: var(--olive-bright); }
.shooter-hero-name {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.shooter-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.shooter-hero-meta-item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  text-transform: uppercase;
}

/* AT-A-GLANCE STATS TILES */
.shooter-stats-section {
  padding: 2rem 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rail);
}
.shooter-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.shooter-stat {
  background: var(--bg-3);
  border: 1px solid var(--rail);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.shooter-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--smoke);
  text-transform: uppercase;
}
.shooter-stat-value {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.shooter-stat-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper-dim);
  letter-spacing: 0.1em;
}

/* SEASON TIMELINE TABLE */
.shooter-timeline-section { padding: 2.5rem 0 1rem 0; }
.shooter-timeline-wrap { overflow-x: auto; }
.shooter-timeline-date {
  color: var(--smoke);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.counted-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  border-radius: 2px;
  border: 1px solid;
  text-transform: uppercase;
  white-space: nowrap;
}
.counted-yes {
  color: var(--olive-bright);
  border-color: var(--olive);
  background: var(--olive-fade);
}
.counted-no {
  color: var(--smoke);
  border-color: var(--rail-2);
  background: var(--bg-3);
}
.shooter-footnote {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: 0.05em;
}

/* DIVISION BREAKDOWN CARDS */
.shooter-breakdown-section { padding: 1.5rem 0 3rem 0; }
.shooter-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.shooter-breakdown-card {
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
}
.shooter-breakdown-name {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--olive-bright);
  margin-bottom: 1rem;
}
.shooter-breakdown-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.shooter-breakdown-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.bd-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--smoke);
  text-transform: uppercase;
}
.bd-value {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--paper);
  line-height: 1.1;
}

/* BIO + EXTERNAL LINKS */
.shooter-bio-section { padding: 0 0 3rem 0; }
.shooter-bio {
  max-width: 60ch;
  color: var(--paper-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.shooter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.shooter-link-chip {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rail-2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.shooter-link-chip:hover {
  border-color: var(--olive);
  color: var(--olive-bright);
}

/* SHOOTERS INDEX (grid of cards) */
.shooter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.shooter-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
  color: var(--paper);
}
.shooter-card:hover {
  border-color: var(--olive);
  background: var(--bg-3);
  transform: translateY(-1px);
}
.shooter-card-photo {
  width: 64px; height: 64px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--rail);
  border: 1px solid var(--rail-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shooter-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shooter-card-photo .shooter-photo-wordmark {
  font-size: 1.4rem;
}
.shooter-card-info { min-width: 0; }
.shooter-card-name {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--paper);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shooter-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.shooter-card-stat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--smoke);
  text-transform: uppercase;
}

/* SHOOTER PAGE — RESPONSIVE */
@media (max-width: 900px) {
  .shooter-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .standings-avatar { width: 28px; height: 28px; }
  .standings-name-row { gap: 0.55rem; }
  .match-cover-hero {
    aspect-ratio: 16 / 9;
    max-height: 400px;
  }
  .match-cover-content { padding-bottom: 1.5rem; }
}
@media (max-width: 768px) {
  /* Banner taller-aspect on mobile so the stacked photo + name + meta actually
     fit without being clipped by overflow:hidden. Drops to a 5:3 ratio that
     reads as a proportional banner on phone widths. */
  .shooter-hero {
    aspect-ratio: 5 / 3;
    max-height: 380px;
  }
  .shooter-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-bottom: 1rem;
  }
  /* Photo shrinks with the banner so it stays nested, not overlapping */
  .shooter-hero-photo { width: 64px; height: 64px; border-width: 2px; }
  .shooter-photo-wordmark { font-size: 1.5rem; }
  .shooter-hero-watermark { font-size: clamp(6rem, 28vw, 14rem); }
  .shooter-hero-name { font-size: clamp(1.6rem, 7vw, 2.4rem); margin-bottom: 0.4rem; }
  .shooter-hero-back { font-size: 10px; margin-bottom: 0.3rem; letter-spacing: 0.14em; }
  .shooter-hero-meta { gap: 0.5rem; }
  .shooter-hero-meta-item { font-size: 11px; }
  .shooter-hero-meta .chip { font-size: 8.5px; padding: 0.25rem 0.55rem; }

  .shooter-stats { grid-template-columns: repeat(2, 1fr); }
  .shooter-stat { padding: 0.85rem 0.9rem; gap: 0.25rem; }
  .shooter-stat-value { font-size: 1.5rem; }

  /* Trim columns: hide Date and Pen on tablet */
  .shooter-timeline th:nth-child(2),
  .shooter-timeline td:nth-child(2),
  .shooter-timeline th:nth-child(6),
  .shooter-timeline td:nth-child(6) { display: none; }

  /* Shooters index card — tighter avatar, single column on narrow widths */
  .shooter-card-photo { width: 52px; height: 52px; }
  .shooter-card-photo .shooter-photo-wordmark { font-size: 1.15rem; }
  .shooter-card { grid-template-columns: 52px 1fr; padding: 0.85rem 1rem; }
}
@media (max-width: 480px) {
  /* Even tighter on small phones */
  .shooter-hero {
    aspect-ratio: 4 / 3;
    max-height: 340px;
  }
  .shooter-hero-photo { width: 56px; height: 56px; }
  .shooter-photo-wordmark { font-size: 1.3rem; }
  .shooter-hero-name { font-size: clamp(1.5rem, 8vw, 2rem); }

  .shooter-stats { grid-template-columns: 1fr 1fr; }
  /* Phone: also hide Final time */
  .shooter-timeline th:nth-child(5),
  .shooter-timeline td:nth-child(5) { display: none; }
  .shooter-breakdown-stats { grid-template-columns: 1fr 1fr 1fr; }
  .shooter-card-name { font-size: 1.05rem; }
  .shooter-card-photo { width: 44px; height: 44px; }
  .shooter-card-photo .shooter-photo-wordmark { font-size: 1rem; }
  .shooter-card { grid-template-columns: 44px 1fr; gap: 0.75rem; padding: 0.7rem 0.85rem; }
}
