/* The Pickle Coaches, LLC — modern sports UI (homepage + chrome) */

:root {
  --tpc-ink: #07090b;
  --tpc-ink-2: #0c1014;
  --tpc-panel: #12171c;
  --tpc-panel-2: #181e25;
  --tpc-line: rgba(255, 255, 255, 0.1);
  --tpc-muted: rgba(255, 255, 255, 0.62);
  --tpc-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --tpc-ui: 'Manrope', Inter, system-ui, sans-serif;
  --tpc-score: 'Barlow Condensed', 'Oswald', sans-serif;
}

html.tpc-site {
  scroll-behavior: smooth;
}

body.tpc-site {
  font-family: var(--tpc-ui);
  background: #f4efe4;
  color: #14241c;
}

body.tpc-site.tpc-home-active {
  background: var(--tpc-ink);
}

/* —— Header: TPC club face —— */
body.tpc-site #header.tpc-navbar,
body.tpc-site #header {
  --tpc-nav: #14210A;
  --tpc-nav-gradient: linear-gradient(90deg, #121a08 0%, #3f6212 36%, #84cc16 58%, #365314 82%, #1a2e05 100%);
  --tpc-cream: #f4efe4;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--tpc-nav-gradient);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 239, 228, 0.08);
  box-shadow: none;
}

body.tpc-site.tpc-home-active #header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(18, 26, 8, 0.92) 0%, rgba(63, 98, 18, 0.28) 100%);
  border-bottom-color: transparent;
}

body.tpc-site #header::before,
body.tpc-site #header::after {
  display: none;
}

body.tpc-site #header.is-scrolled,
body.tpc-site:not(.tpc-home-active) #header {
  background: var(--tpc-nav-gradient);
  border-bottom-color: rgba(244, 239, 228, 0.1);
  box-shadow: 0 18px 40px rgba(12, 20, 6, 0.45);
}

body.tpc-site #header .header-bar {
  height: 5.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}

body.tpc-site #header #mobile-menu-btn {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
}

body.tpc-site #header .tpc-nav-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

body.tpc-site #header .header-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  gap: 0.7rem;
  z-index: 2;
}

body.tpc-site #header .header-end {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  gap: 0.5rem;
}

body.tpc-site #header .tpc-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: rgb(var(--color-primary-rgb));
  flex-shrink: 0;
}

body.tpc-site #header .tpc-mark svg {
  width: 2.7rem;
  height: 2.7rem;
  display: block;
}

html.has-custom-logo body.tpc-site #header .tpc-mark,
body.tpc-site #header.has-custom-logo .tpc-mark {
  display: none;
}

body.tpc-site #header .header-logo-wrap {
  display: none;
  height: 2.7rem;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

html.has-custom-logo body.tpc-site #header .header-logo-wrap,
body.tpc-site #header.has-custom-logo .header-logo-wrap {
  display: flex;
  align-items: center;
}

body.tpc-site #header [data-site="logo"] {
  height: 2.7rem !important;
  max-height: 2.7rem !important;
  width: auto !important;
  max-width: 9rem !important;
  object-fit: contain !important;
}

body.tpc-site #footer .tpc-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgb(var(--color-primary-rgb));
  flex-shrink: 0;
}

body.tpc-site #footer .tpc-mark svg {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
}

body.tpc-site #footer .tpc-footer-logo-wrap {
  display: none;
}

html.has-custom-logo body.tpc-site #footer .tpc-mark {
  display: none;
}

html.has-custom-logo body.tpc-site #footer .tpc-footer-logo-wrap {
  display: flex;
}

body.tpc-site #header .header-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

body.tpc-site #header .header-brand-short {
  display: none;
  font-family: var(--tpc-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tpc-cream);
  line-height: 1;
}

body.tpc-site #header .header-brand-name {
  font-family: var(--tpc-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tpc-cream);
  line-height: 1.08;
  white-space: normal;
  max-width: 11.5rem;
}

body.tpc-site #header .header-brand-tagline {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgb(var(--color-primary-rgb) / 0.9);
  margin-top: 0.18rem;
  max-width: none;
}

body.tpc-site #header .header-actions {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
}

body.tpc-site .tpc-club-nav {
  align-self: stretch;
  display: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  body.tpc-site .tpc-club-nav {
    display: flex;
  }
}

body.tpc-site .tpc-club-nav > .nav-link,
body.tpc-site .tpc-club-nav > .nav-dropdown {
  display: flex;
  align-items: stretch;
  height: 100%;
}

body.tpc-site .tpc-club-nav > .nav-link,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-width: 0;
  margin: 0;
  align-self: center;
  color: rgb(244 239 228 / 0.72);
  font-family: var(--tpc-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  box-shadow: none;
}

body.tpc-site .tpc-club-nav > .nav-link::after,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0.28rem;
  width: 1.15rem;
  height: 2px;
  border-radius: 99px;
  background: rgb(var(--color-primary-rgb));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

body.tpc-site .tpc-club-nav > .nav-link:hover,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn:hover,
body.tpc-site .tpc-club-nav > .nav-link:focus-visible,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn:focus-visible {
  color: var(--tpc-cream);
  background: rgb(244 239 228 / 0.06);
  outline: none;
}

body.tpc-site .tpc-club-nav > .nav-link:focus,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn:focus {
  outline: none;
}

body.tpc-site .tpc-club-nav > .nav-link:hover::after,
body.tpc-site .tpc-club-nav > .nav-dropdown.is-open > .nav-dropdown-btn::after {
  transform: translateX(-50%) scaleX(1);
}

body.tpc-site #header .nav-link.nav-active,
body.tpc-site .tpc-club-nav > .nav-link.nav-active,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn.nav-active {
  color: var(--tpc-cream) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.tpc-site .tpc-club-nav > .nav-link.nav-active::after,
body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn.nav-active::after {
  transform: translateX(-50%) scaleX(1);
}

body.tpc-site .nav-dropdown-btn .nav-chevron {
  margin-left: 0.35rem;
  font-size: 0.5rem;
  opacity: 0.65;
}

body.tpc-site .nav-dropdown-panel {
  top: calc(100% - 0.35rem);
  left: 50%;
  transform: translateX(-25%);
  background: #14210A;
  border: 1px solid rgba(244, 239, 228, 0.12);
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.55);
  box-shadow: 0 22px 50px rgba(12, 20, 6, 0.45);
  border-radius: 1rem;
  padding: 0.45rem;
  min-width: 13.5rem;
}

body.tpc-site .tpc-nav-right .nav-dropdown-panel {
  left: auto;
  right: 0;
  transform: none;
}

body.tpc-site .nav-dropdown-panel .nav-link {
  color: rgb(244 239 228 / 0.82);
  font-family: var(--tpc-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
}

body.tpc-site .nav-dropdown-panel .nav-link:hover,
body.tpc-site .nav-dropdown-panel .nav-link.nav-active {
  color: #1a2e05 !important;
  background: rgb(var(--color-primary-rgb)) !important;
  box-shadow: none !important;
}

body.tpc-site #header .portal-link {
  color: rgb(244 239 228 / 0.7) !important;
  font-family: var(--tpc-ui);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  border-radius: 999px;
}

body.tpc-site #header .portal-link:hover {
  color: var(--tpc-cream) !important;
  background: transparent;
}

body.tpc-site #header .portal-register-link {
  background: transparent !important;
  color: var(--tpc-cream) !important;
  font-family: var(--tpc-ui);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  border-radius: 999px !important;
  border: 1px solid rgb(var(--color-primary-rgb));
  box-shadow: none !important;
  padding: 0.58rem 1.05rem;
}

body.tpc-site #header .portal-register-link:hover {
  background: rgb(var(--color-primary-rgb)) !important;
  color: #1a2e05 !important;
}

body.tpc-site #account-menu-btn {
  background: transparent;
  border: 1px solid rgba(244, 239, 228, 0.18);
  border-radius: 999px !important;
  padding: 0.28rem 0.75rem 0.28rem 0.28rem;
  box-shadow: none;
}

body.tpc-site #account-menu-btn:hover {
  border-color: rgb(var(--color-primary-rgb) / 0.7);
  background: rgb(244 239 228 / 0.05);
}

body.tpc-site #account-menu-btn [data-user-initials] {
  border-radius: 50% !important;
  box-shadow: none;
}

body.tpc-site #account-menu-btn .text-gray-900,
body.tpc-site #account-menu-btn [data-user-name] {
  color: var(--tpc-cream) !important;
  font-family: var(--tpc-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 9.5rem;
}

body.tpc-site #account-menu-panel {
  background: #14210A;
  border: 1px solid rgba(244, 239, 228, 0.12);
  border-top: 1px solid rgb(var(--color-primary-rgb) / 0.55);
  border-radius: 1rem;
  box-shadow: 0 22px 50px rgba(12, 20, 6, 0.45);
}

body.tpc-site #account-menu-panel .bg-gray-50\/80,
body.tpc-site #account-menu-panel .border-gray-100 {
  background: rgba(244, 239, 228, 0.05) !important;
  border-color: rgba(244, 239, 228, 0.1) !important;
}

body.tpc-site #account-menu-panel [data-user-name] {
  color: var(--tpc-cream) !important;
}

body.tpc-site #account-menu-panel [data-user-meta],
body.tpc-site #account-menu-panel .text-gray-500 {
  color: rgb(244 239 228 / 0.5) !important;
}

body.tpc-site #account-menu-panel a,
body.tpc-site #account-menu-panel button[data-logout] {
  color: rgb(244 239 228 / 0.85) !important;
  border-radius: 0.7rem;
}

body.tpc-site #account-menu-panel a:hover {
  background: rgb(var(--color-primary-rgb)) !important;
  color: #1a2e05 !important;
}

body.tpc-site #mobile-menu-btn {
  color: var(--tpc-cream);
  border: 1px solid rgba(244, 239, 228, 0.2);
  border-radius: 999px;
}

body.tpc-site #mobile-menu-btn:hover {
  background: rgb(244 239 228 / 0.08);
}

body.tpc-site #mobile-menu {
  background: #14210A;
  border-top: 1px solid rgba(244, 239, 228, 0.1);
  box-shadow: 0 24px 50px rgba(12, 20, 6, 0.45);
}

body.tpc-site #mobile-menu .text-gray-900,
body.tpc-site #mobile-menu [data-user-name] {
  color: var(--tpc-cream) !important;
}

body.tpc-site #mobile-menu .text-gray-500,
body.tpc-site #mobile-menu [data-user-meta] {
  color: rgb(244 239 228 / 0.5) !important;
}

body.tpc-site .mobile-nav-link {
  color: rgb(244 239 228 / 0.9);
  font-family: var(--tpc-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0.85rem;
}

body.tpc-site .mobile-nav-link:hover,
body.tpc-site .mobile-nav-link.nav-active {
  color: #1a2e05;
  background: rgb(var(--color-primary-rgb));
  border-color: transparent;
}

body.tpc-site .mobile-nav-group-label {
  color: rgb(var(--color-primary-rgb));
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 500;
}

@media (max-width: 1279px) {
  body.tpc-site .tpc-club-nav > .nav-link,
  body.tpc-site .tpc-club-nav > .nav-dropdown > .nav-dropdown-btn {
    padding: 0.5rem 0.62rem;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
  }
  body.tpc-site #header .header-brand-tagline {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.tpc-site #header .header-bar {
    height: 4.5rem;
    gap: 0.5rem;
  }
  body.tpc-site #header .header-brand-name,
  body.tpc-site #header .header-brand-tagline {
    display: none !important;
  }
  body.tpc-site #header .header-brand-short {
    display: block;
  }
  body.tpc-site #header .tpc-mark,
  body.tpc-site #header .tpc-mark svg {
    width: 2.35rem;
    height: 2.35rem;
  }
  body.tpc-site #header .header-logo-wrap,
  body.tpc-site #header [data-site="logo"] {
    height: 2.35rem !important;
    max-height: 2.35rem !important;
  }
}

/* —— Homepage shell —— */
#home.tpc-home {
  background: var(--tpc-ink);
  color: #fff;
  overflow: clip;
}

#home.tpc-home .tpc-container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Hero */
#hero-section.tpc-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #05070a;
}

#hero-section.tpc-hero .home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: tpcKen 22s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.05);
}

@keyframes tpcKen {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-2%, -1.5%, 0); }
}

.tpc-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.92) 0%, rgba(7, 9, 11, 0.55) 46%, rgba(7, 9, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 9, 11, 0.35) 0%, transparent 28%, rgba(7, 9, 11, 0.88) 100%);
  pointer-events: none;
}

.tpc-court {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.tpc-court path,
.tpc-court line,
.tpc-court rect {
  fill: none;
  stroke: rgb(var(--color-primary-rgb));
  stroke-width: 2;
  stroke-dasharray: 14 18;
  animation: tpcDash 18s linear infinite;
}

@keyframes tpcDash {
  to { stroke-dashoffset: -640; }
}

.tpc-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.tpc-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7.5rem 0 4.5rem;
}

.tpc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--color-primary-rgb));
}

.tpc-kicker-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgb(var(--color-primary-rgb));
  box-shadow: 0 0 0 0 rgb(var(--color-primary-rgb) / 0.7);
  animation: tpcPulse 1.8s ease-out infinite;
}

@keyframes tpcPulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--color-primary-rgb) / 0.55); }
  70% { box-shadow: 0 0 0 12px rgb(var(--color-primary-rgb) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--color-primary-rgb) / 0); }
}

#home .tpc-headline {
  font-family: var(--tpc-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 11ch;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

#home .tpc-sub {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tpc-muted);
  margin-bottom: 1.5rem;
}

#home #hero-current-league .hero-league-pill {
  background: rgb(var(--color-primary-rgb) / 0.12);
  border: 1px solid rgb(var(--color-primary-rgb) / 0.45);
  color: #fff;
  box-shadow: 0 0 32px rgb(var(--color-primary-rgb) / 0.18);
}

.tpc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.tpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.tpc-btn:hover {
  transform: translateY(-2px);
}

.tpc-btn-primary {
  background: linear-gradient(135deg, #d9f99d 0%, #84cc16 46%, #4d7c0f 100%);
  color: #14210a;
  box-shadow: 0 12px 30px rgb(132 204 22 / 0.38);
}

.tpc-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.tpc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tpc-hero-meta {
  display: none;
}

@media (min-width: 1024px) {
  .tpc-hero-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: end;
  }

  .tpc-hero-meta {
    display: block;
    justify-self: end;
    width: min(22rem, 100%);
    margin-bottom: 0.5rem;
  }
}

.tpc-score-card {
  position: relative;
  padding: 1.25rem 1.3rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(10, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.tpc-score-card::before {
  content: '';
  position: absolute;
  inset: auto -20% 40% auto;
  width: 9rem;
  height: 9rem;
  background: rgb(var(--color-primary-rgb) / 0.25);
  filter: blur(30px);
}

.tpc-score-card h3 {
  position: relative;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--color-primary-rgb));
  margin-bottom: 0.85rem;
}

.tpc-score-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.tpc-score-row:last-child {
  border-bottom: 0;
}

.tpc-score-row span:last-child {
  font-family: var(--tpc-score);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Ticker */
.tpc-ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  background: rgb(var(--color-primary-rgb));
  color: #07110c;
  min-height: 2.75rem;
}

.tpc-ticker-label {
  flex-shrink: 0;
  padding: 0 1.1rem 0 1.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #07110c;
  color: rgb(var(--color-primary-rgb));
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.tpc-ticker-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: tpcMarquee 28s linear infinite;
  font-family: var(--tpc-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tpc-ticker:hover .tpc-ticker-track {
  animation-play-state: paused;
}

@keyframes tpcMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.tpc-section {
  position: relative;
  padding: 5.5rem 0;
}

.tpc-section-dark {
  background: var(--tpc-ink-2);
}

.tpc-section-panel {
  background: var(--tpc-panel);
}

.tpc-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--color-primary-rgb));
  margin-bottom: 0.7rem;
}

.tpc-h2 {
  font-family: var(--tpc-display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.tpc-lead {
  color: var(--tpc-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}

.tpc-grid-4 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .tpc-grid-4 { grid-template-columns: 1fr 1fr; }
}

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

.tpc-feature {
  position: relative;
  padding: 1.45rem 1.3rem 1.4rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--tpc-line);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tpc-feature::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--color-primary-rgb)), rgb(var(--color-accent-rgb)));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tpc-feature:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--color-primary-rgb) / 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tpc-feature:hover::after {
  transform: scaleX(1);
}

.tpc-feature-num {
  font-family: var(--tpc-score);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgb(var(--color-primary-rgb));
  line-height: 1;
  margin-bottom: 0.85rem;
}

.tpc-feature h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.tpc-feature p {
  color: var(--tpc-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* How it works */
.tpc-steps {
  display: grid;
  gap: 0;
  margin-top: 2.75rem;
  counter-reset: tpcstep;
}

@media (min-width: 900px) {
  .tpc-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tpc-step {
  position: relative;
  padding: 1.5rem 1.2rem 0.4rem;
  counter-increment: tpcstep;
}

.tpc-step::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0.55rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.tpc-step::after {
  content: counter(tpcstep);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--tpc-ink);
  border: 2px solid rgb(var(--color-primary-rgb));
  color: rgb(var(--color-primary-rgb));
  font-family: var(--tpc-score);
  font-weight: 700;
  font-size: 1.05rem;
}

.tpc-step h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.tpc-step p {
  color: var(--tpc-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Mission banner (CMS: mission_image / mission_headline) */
#home .tpc-mission {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  background: var(--tpc-ink);
  color: #fff;
}

#home .tpc-mission-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
  opacity: 0.32;
}

#home .tpc-mission::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.55) 0%, rgba(7, 9, 11, 0.82) 100%);
  pointer-events: none;
}

#home .tpc-mission-copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

#home .tpc-mission .tpc-h2 {
  max-width: 16ch;
}

/* Path to play — CMS injects .home-journey-step */
#home .home-journey {
  position: relative;
  margin-top: 2.75rem;
}

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

@media (min-width: 900px) {
  #home .home-journey-grid,
  #home .home-journey-grid[data-step-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #home .home-journey-grid[data-step-count="1"],
  #home .home-journey-grid[data-step-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home .home-journey-grid[data-step-count="3"],
  #home .home-journey-grid[data-step-count="5"],
  #home .home-journey-grid[data-step-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#home .home-journey-step {
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--tpc-line);
  background: var(--tpc-panel-2);
}

#home .home-journey-step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

#home .home-journey-dot {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tpc-score);
  font-weight: 700;
  font-size: 0.85rem;
  color: #04140e;
  background: rgb(var(--color-primary-rgb));
}

#home .home-journey-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

#home .home-journey-step-body {
  color: var(--tpc-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

#league .league-works-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #league .league-works-grid[data-col-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
  }

  #league .league-works-grid[data-col-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #league .league-works-grid[data-col-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #league .league-works-grid[data-col-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #league .league-works-grid[data-col-count="5"],
  #league .league-works-grid[data-col-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Inner pages: club face —— */
body.tpc-site section.tpc-page {
  background: #f4efe4;
  color: #14241c;
}

body.tpc-site .tpc-page-wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

body.tpc-site .tpc-page-narrow {
  max-width: 48rem;
}

body.tpc-site .tpc-page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 80% -10%, rgb(var(--color-primary-rgb) / 0.38), transparent 55%),
    linear-gradient(135deg, #1a2e05 0%, #3f6212 48%, #14210A 100%);
  color: #f4efe4;
  padding: 4.75rem 0 3.4rem;
}

body.tpc-site .tpc-page-hero-photo {
  padding: 0;
  background: #14210A;
}

body.tpc-site .tpc-page-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 26, 8, 0.9) 0%, rgba(54, 83, 20, 0.55) 48%, rgba(132, 204, 22, 0.18) 100%),
    linear-gradient(180deg, rgba(18, 26, 8, 0.35) 0%, transparent 40%, rgba(18, 26, 8, 0.88) 100%);
  pointer-events: none;
}

body.tpc-site .tpc-page-hero-center {
  text-align: center;
}

body.tpc-site .tpc-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: rgb(var(--color-primary-rgb));
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.tpc-site .tpc-page-title,
body.tpc-site .tpc-page-hero h1 {
  font-family: var(--tpc-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe4;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

body.tpc-site .tpc-page-hero-center .tpc-page-title,
body.tpc-site .tpc-page-hero-center h1 {
  margin-inline: auto;
}

body.tpc-site .tpc-page-lede {
  font-family: var(--tpc-ui);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: rgb(244 239 228 / 0.88);
  max-width: 32rem;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

body.tpc-site .tpc-page-sub {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  color: rgb(244 239 228 / 0.68);
  font-size: 1.05rem;
  line-height: 1.65;
}

body.tpc-site .tpc-page-sub-center {
  margin-inline: auto;
}

body.tpc-site .tpc-page-body,
body.tpc-site .tpc-page-band {
  background: #f4efe4;
  padding: 3.25rem 0 4.25rem;
}

body.tpc-site .tpc-page-band {
  border-top: 1px solid rgba(20, 33, 10, 0.08);
  border-bottom: 1px solid rgba(20, 33, 10, 0.08);
  background: #fffdf8;
}

body.tpc-site .tpc-page h2 {
  font-family: var(--tpc-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #14210A;
}

body.tpc-site .tpc-page h3 {
  color: #14210A;
}

body.tpc-site .tpc-page .text-gray-900 {
  color: #14241c !important;
}

body.tpc-site .tpc-page .text-gray-600,
body.tpc-site .tpc-page .text-gray-500 {
  color: #4d5f56 !important;
}

body.tpc-site .tpc-page .bg-white {
  background: #fffdf8 !important;
}

body.tpc-site .tpc-page .bg-gray-50,
body.tpc-site .tpc-page .bg-gray-50\/80,
body.tpc-site .tpc-page .from-green-50,
body.tpc-site .tpc-page .from-orange-50 {
  background: #f4efe4 !important;
}

body.tpc-site .tpc-page .border-gray-200,
body.tpc-site .tpc-page .border-gray-100 {
  border-color: rgba(20, 33, 10, 0.1) !important;
}

body.tpc-site .tpc-page .rounded-2xl,
body.tpc-site .tpc-page .rounded-xl {
  border-radius: 1.15rem !important;
}

body.tpc-site #league .league-works-col {
  padding: 1.35rem 1.2rem 1.5rem;
  border: 1px solid rgba(20, 33, 10, 0.1);
  background: #fffdf8;
  border-radius: 1.15rem;
}

body.tpc-site #league .league-works-col .text-primary {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

body.tpc-site #schedules .bg-white {
  box-shadow: 0 10px 30px rgba(20, 33, 10, 0.06);
}

body.tpc-site #schedules article.rounded-xl {
  background: #fffdf8 !important;
}

body.tpc-site #schedules .schedule-view-btn {
  border-radius: 999px !important;
  font-family: var(--tpc-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.tpc-site #schedules .schedule-view-btn.bg-primary {
  color: #1a2e05 !important;
}

body.tpc-site #standings table {
  font-variant-numeric: tabular-nums;
}

body.tpc-site #standings thead {
  background: #14210A !important;
  color: #f4efe4 !important;
}

body.tpc-site #standings thead th {
  color: rgb(244 239 228 / 0.72) !important;
  font-family: var(--tpc-ui);
  letter-spacing: 0.1em;
}

body.tpc-site #standings tbody tr:hover {
  background: rgb(var(--color-primary-rgb) / 0.08) !important;
}

body.tpc-site #standings tbody tr:first-child td {
  font-weight: 800;
}

body.tpc-site #locations .locations-item {
  background: #fffdf8;
  border-color: rgba(20, 33, 10, 0.1);
}

body.tpc-site #locations .locations-item:hover,
body.tpc-site #locations .locations-item.ring-1,
body.tpc-site #locations .locations-item[class*="border-primary"] {
  border-color: rgb(var(--color-primary-rgb)) !important;
  background: #fff !important;
}

body.tpc-site #locations iframe + div,
body.tpc-site #locations [id="locations-map-kicker"] {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

body.tpc-site #faq details,
body.tpc-site #rules .bg-white,
body.tpc-site #gameday .bg-white,
body.tpc-site #news a.block {
  background: #fffdf8 !important;
  border: 1px solid rgba(20, 33, 10, 0.1) !important;
  border-radius: 1.15rem !important;
  box-shadow: none !important;
}

body.tpc-site #faq details summary {
  font-family: var(--tpc-ui);
}

body.tpc-site .tpc-page-cta {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #14210A;
  border-radius: 1.15rem;
}

body.tpc-site .tpc-page-cta h3,
body.tpc-site .tpc-page-cta p {
  color: #f4efe4 !important;
}

body.tpc-site .tpc-gallery-body {
  background: #14210A;
  padding-top: 0.5rem;
}

body.tpc-site #gallery .gallery-album-grid,
body.tpc-site #gallery .gallery-photo-grid {
  background: #14210A;
  padding: 0;
  gap: 4px;
}

body.tpc-site #gallery .gallery-back-btn {
  color: #f4efe4 !important;
}

body.tpc-site #volunteer [data-site="volunteer_roles"] > div {
  padding: 1.25rem 1.15rem 1.4rem;
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 10, 0.1);
  border-radius: 1.15rem;
}

body.tpc-site #login-guide .tpc-btn {
  margin-top: 0.5rem;
}

body.tpc-site .tpc-page .tpc-btn-primary {
  color: #1a2e05;
}

body.tpc-site .tpc-page a.tpc-btn-primary:hover,
body.tpc-site .tpc-page button.tpc-btn-primary:hover {
  filter: brightness(1.05);
}

/* Scoreboard stats */
#stats-section.tpc-stats {
  position: relative;
  padding: 3.5rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgb(var(--color-primary-rgb) / 0.18), transparent 55%),
    #05070a;
  overflow: hidden;
}

#stats-section.tpc-stats::before {
  content: 'TPC';
  position: absolute;
  right: -2%;
  top: 10%;
  font-family: var(--tpc-display);
  font-size: 18rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.tpc-stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

@media (min-width: 900px) {
  .tpc-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.tpc-stat {
  padding: 0.4rem 0.2rem;
}

.tpc-stat-value {
  font-family: var(--tpc-score);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 28px rgb(var(--color-primary-rgb) / 0.35);
}

.tpc-stat-label {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--color-primary-rgb));
}

/* Testimonials / sponsors / CTA */
#testimonials-section.tpc-quotes {
  background: var(--tpc-ink-2);
}

#home #public-testimonials-list {
  margin-top: 2.4rem;
}

#home #public-testimonials-list figure {
  background: var(--tpc-panel) !important;
  border: 1px solid var(--tpc-line) !important;
  box-shadow: none !important;
  color: #fff;
}

#home #public-testimonials-list blockquote {
  color: rgba(255, 255, 255, 0.78) !important;
}

#home #public-testimonials-list figcaption .font-bold,
#home #public-testimonials-list .text-gray-900 {
  color: #fff !important;
}

#home #public-testimonials-list .text-gray-500 {
  color: rgba(255, 255, 255, 0.48) !important;
}

#home-sponsors-section.tpc-sponsors {
  background: #05070a;
  border-top: 1px solid var(--tpc-line);
}

#cta-banner-section.tpc-cta {
  position: relative;
  background:
    linear-gradient(135deg, rgb(var(--color-primary-rgb) / 0.16), transparent 42%),
    var(--tpc-ink);
  overflow: hidden;
}

#cta-banner-section.tpc-cta::before {
  content: '';
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -6rem;
  bottom: -10rem;
  border-radius: 50%;
  border: 2px solid rgb(var(--color-primary-rgb) / 0.25);
  animation: tpcRipple 6s ease-out infinite;
}

@keyframes tpcRipple {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

#cta-banner-section.tpc-cta .tpc-h2 {
  max-width: 16ch;
}

/* Reveals */
.tpc-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: tpcReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tpc-d1 { animation-delay: 0.08s; }
.tpc-d2 { animation-delay: 0.16s; }
.tpc-d3 { animation-delay: 0.24s; }
.tpc-d4 { animation-delay: 0.34s; }
.tpc-d5 { animation-delay: 0.44s; }

.tpc-inview {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tpc-inview.is-in {
  opacity: 1;
  transform: none;
}

@keyframes tpcReveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Footer polish */
body.tpc-site #footer {
  background: #05070a;
  border-top: 1px solid var(--tpc-line);
}

@media (prefers-reduced-motion: reduce) {
  #hero-section.tpc-hero .home-hero-img,
  .tpc-court path,
  .tpc-ticker-track,
  .tpc-kicker-dot,
  #cta-banner-section.tpc-cta::before {
    animation: none !important;
  }
  .tpc-reveal,
  .tpc-inview {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
