/* ===================================================================
   DUX DE LUX FC — DESIGN SYSTEM
   Palette drawn from the club crest:
   burgundy (primary), rosewood (the "pink"), gold, ink, cream, navy
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,600&display=swap');

:root{
  --burgundy: #6E1E39;
  --burgundy-dark: #45122A;
  --burgundy-darker: #2E0C1C;
  --rosewood: #D6237E;
  --rosewood-light: #F566AC;
  --rosewood-dark: #93195A;
  --gold: #E3B94F;
  --gold-light: #F0D48A;
  --ink: #201113;
  --ink-soft: #3A2226;
  --cream: #FBF4E8;
  --cream-dim: #F2E6D0;
  --navy: #1C2B45;
  --white: #FFFFFF;

  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 6px 20px rgba(46, 12, 28, 0.12);
  --shadow-card: 0 10px 30px rgba(46, 12, 28, 0.16);

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em 0;
  color: var(--burgundy-darker);
  text-transform: uppercase;
}

h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3{ font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p{ margin: 0 0 1em 0; }

a{ color: var(--burgundy); text-decoration: none; }
a:hover{ color: var(--rosewood); }

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

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

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow{
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rosewood);
  background: rgba(163, 72, 104, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ===================== STRIPE MOTIF =====================
   The club crest is built from vertical stripes — we reuse
   that as the site's structural signature throughout.
=========================================================== */
.stripes-burgundy{
  background-image: repeating-linear-gradient(
    90deg,
    var(--burgundy) 0px, var(--burgundy) 34px,
    var(--rosewood-dark) 34px, var(--rosewood-dark) 68px
  );
}

.stripes-header{
  position: relative;
  background-image: repeating-linear-gradient(
    90deg,
    var(--burgundy-darker) 0px, var(--burgundy-darker) 34px,
    var(--rosewood-dark) 34px, var(--rosewood-dark) 68px
  );
  overflow: hidden;
}
.stripes-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 40px,
    transparent 40px, transparent 80px
  );
  pointer-events: none;
}

.gold-rule{
  height: 5px;
  background: linear-gradient(90deg, var(--rosewood), var(--rosewood-light), var(--rosewood));
}

/* ===================== NAV ===================== */
.site-header{
  background: var(--burgundy-darker);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-soft);
}

.nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand img{ height: 52px; width: 52px; }
.brand-text{
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  line-height: 1;
}
.brand-text span{
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--rosewood-light);
  margin-top: 4px;
}
.brand:hover{ color: var(--cream); }
.brand:hover .brand-text{ color: var(--cream); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a{
  color: var(--cream-dim);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 100px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover{
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.nav-links a.active{
  background: var(--rosewood);
  color: var(--white);
}

.nav-cta{
  background: var(--rosewood) !important;
  color: var(--white) !important;
}
.nav-cta:hover{ background: var(--rosewood-light) !important; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 10px;
}

@media (max-width: 900px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--burgundy-darker);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    display: none;
    gap: 2px;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 12px 16px; }
}

/* ===================== HERO ===================== */
.hero{
  position: relative;
  color: var(--cream);
  padding: 80px 0 90px;
}
.hero .container{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-badge-wrap{
  display: flex;
  justify-content: center;
}
.hero-badge-wrap img{
  width: min(280px, 80%);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.35));
}
.hero h1{ color: var(--cream); margin-bottom: 0.25em; }
.hero .lede{
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

@media (max-width: 800px){
  .hero .container{ grid-template-columns: 1fr; text-align: center; }
  .hero .lede{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-badge-wrap{ order: -1; }
}

/* ===================== BUTTONS ===================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover{ transform: translateY(-2px); }

.btn-gold{
  background: var(--gold);
  color: var(--burgundy-darker);
}
.btn-gold:hover{ background: var(--gold-light); color: var(--burgundy-darker); box-shadow: var(--shadow-card); }

.btn-outline{
  background: transparent;
  border-color: rgba(251,244,232,0.5);
  color: var(--cream);
}
.btn-outline:hover{ border-color: var(--cream); color: var(--white); }

.btn-burgundy{
  background: var(--rosewood);
  color: var(--white);
}
.btn-burgundy:hover{ background: var(--rosewood-dark); color: var(--white); }

.btn-sm{ padding: 9px 18px; font-size: 0.85rem; }
.btn:disabled{ opacity: 0.55; cursor: not-allowed; transform: none; }

/* ===================== SECTIONS ===================== */
.section{ padding: 72px 0; }
.section-tight{ padding: 44px 0; }
.section-cream{ background: var(--cream); }
.section-white{ background: var(--white); }
.section-dim{ background: var(--cream-dim); }
.section-ink{ background: var(--ink); color: var(--cream-dim); }
.section-ink h2, .section-ink h3{ color: var(--cream); }

.section-head{
  max-width: 640px;
  margin: 0 0 40px 0;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ===================== CARDS ===================== */
.card{
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.grid{ display: grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

.stat-tile{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  border-top: 4px solid var(--rosewood);
}
.stat-tile .num{
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--rosewood-dark);
  line-height: 1;
}
.stat-tile .label{
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ===================== TICKET-STUB CARDS (fixtures) ===================== */
.ticket{
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}
.ticket-main{
  padding: 22px 24px;
  display: grid;
  gap: 10px;
}
.ticket-comp{
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosewood);
}

.subsection-heading{
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dim);
}
.subsection-heading:not(:first-child){
  margin-top: 36px;
}
.gender-chip{
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 4px;
  vertical-align: middle;
}
.ticket-teams{
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  flex-wrap: wrap;
}
.ticket-teams .vs{
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--rosewood-light);
  font-size: 0.85rem;
}
.ticket-teams .dux{ color: var(--rosewood-dark); }
.ticket-score{
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: var(--cream-dim);
  padding: 3px 12px;
  border-radius: 6px;
}
.ticket-meta{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.ticket-meta span{ display: inline-flex; align-items: center; gap: 6px; }

.ticket-stub{
  background: var(--rosewood);
  color: var(--white);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  position: relative;
  border-left: 2px dashed rgba(255,255,255,0.35);
}
.ticket-stub::before, .ticket-stub::after{
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  background: var(--cream);
  border-radius: 50%;
  left: -9px;
}
.ticket-stub::before{ top: -9px; }
.ticket-stub::after{ bottom: -9px; }
.ticket-stub .stub-label{
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.ticket-stub .stub-value{
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 4px;
  text-align: center;
}

.ticket.result-win{ border-left: 5px solid #4C8B5F; }
.ticket.result-loss{ border-left: 5px solid var(--rosewood); }
.ticket.result-draw{ border-left: 5px solid var(--gold); }

.pill{
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-win{ background: #E4F2E7; color: #2C6B3F; }
.pill-loss{ background: rgba(163,72,104,0.12); color: var(--rosewood); }
.pill-draw{ background: rgba(227,185,79,0.2); color: #8A6A16; }

@media (max-width: 640px){
  .ticket{ grid-template-columns: 1fr; }
  .ticket-stub{ flex-direction: row; gap: 20px; border-left: none; border-top: 2px dashed rgba(251,244,232,0.35); }
  .ticket-stub::before, .ticket-stub::after{ left: 50%; top: -9px; transform: translateX(-9px); }
  .ticket-stub::after{ bottom: auto; top: unset; bottom: -9px; }
}

/* ===================== TABS / FILTERS ===================== */
.filter-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn{
  background: var(--white);
  border: 2px solid var(--cream-dim);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover{ border-color: var(--rosewood-light); }
.filter-btn.active{
  background: var(--rosewood);
  border-color: var(--rosewood);
  color: var(--white);
}

/* ===================== TABLE (league / stats) ===================== */
.table-wrap{
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
thead th{
  background: var(--rosewood);
  color: var(--white);
  text-align: left;
  padding: 14px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}
tbody td{
  padding: 13px 16px;
  border-bottom: 1px solid var(--cream-dim);
  font-weight: 600;
  color: var(--ink);
}
tbody tr:last-child td{ border-bottom: none; }
tbody tr:hover{ background: var(--cream); }
tbody tr.highlight{ background: rgba(227,185,79,0.15); }
td.num, th.num{ text-align: center; }

/* ===================== STATS TABLE — FROZEN HEADER + FROZEN NAME COLUMN =====================
   A long, wide table on a small screen means constant back-and-forth
   scrolling just to remember which column or which player you're
   looking at. Freezing the header row (stays visible as you scroll
   down) and the Player column (stays visible as you scroll across)
   keeps both anchors on screen at all times, like a spreadsheet.
================================================================================================ */
.table-wrap:has(.stats-table){
  max-height: 70vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.stats-table{ min-width: 640px; }

.stats-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
}

.stats-table tbody td:first-child,
.stats-table thead th:first-child{
  position: sticky;
  left: 0;
  box-shadow: 2px 0 6px rgba(46,12,28,0.10);
}
.stats-table thead th:first-child{ z-index: 3; }
.stats-table tbody td:first-child{
  z-index: 1;
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--rosewood-dark);
}
.stats-table tbody tr:hover td:first-child{ background: var(--cream); }
.stats-table tbody tr.highlight td:first-child{ background: #FBF5E5; }

@media (max-width: 680px){
  .table-wrap:has(.stats-table){ max-height: 65vh; }
}

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--ink);
  color: var(--cream-dim);
  padding: 56px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand{ display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img{ height: 56px; }
.footer-brand h4{ color: var(--cream); margin-bottom: 6px; }
.site-footer h4{
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.site-footer a{ color: var(--cream-dim); }
.site-footer a:hover{ color: var(--gold-light); }
.site-footer li{ margin-bottom: 8px; }
.footer-bottom{
  border-top: 1px solid rgba(251,244,232,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(251,244,232,0.55);
}
@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* ===================== FORMS ===================== */
.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-dim);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--rosewood-light);
}
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .field-row{ grid-template-columns: 1fr; } }

.form-note{
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream-dim);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* ===================== GALLERY ===================== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px){ .gallery-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }

.gallery-item{
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-end;
}
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-item .placeholder-fill{
  position: absolute; inset: 0;
}
.placeholder-fill{
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-fill::after{
  content: "📷";
  font-size: 1.8rem;
  opacity: 0.5;
}
.swatch-rosewood{ background: repeating-linear-gradient(90deg, var(--rosewood) 0 22px, var(--rosewood-light) 22px 44px); }
.swatch-gold{ background: repeating-linear-gradient(90deg, var(--gold) 0 22px, var(--gold-light) 22px 44px); }
.swatch-navy{ background: repeating-linear-gradient(90deg, var(--navy) 0 22px, #2C3F63 22px 44px); }
.stripes-burgundy.placeholder-fill{ background-image: repeating-linear-gradient(90deg, var(--burgundy) 0px, var(--burgundy) 22px, var(--rosewood-dark) 22px, var(--rosewood-dark) 44px); }
.gallery-caption{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px 12px 10px;
  background: linear-gradient(0deg, rgba(32,17,19,0.85), transparent);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.gallery-item:hover .gallery-caption{ opacity: 1; }
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-item img{ transition: transform 0.25s ease; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(32,17,19,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
}
.lightbox.open{ display: flex; }
.lightbox-inner{ max-width: 800px; width: 100%; text-align: center; }
.lightbox-inner .placeholder-fill{ aspect-ratio: 4/3; border-radius: var(--radius-md); }
.lightbox-caption{ color: var(--cream); margin-top: 16px; font-weight: 700; }
.lightbox-close{
  position: absolute;
  top: 24px; right: 30px;
  background: none; border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
}

/* ===================== TIMELINE ===================== */
.timeline{
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--cream-dim);
}
.timeline-item{
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--rosewood);
}
.timeline-year{
  font-family: var(--font-display);
  color: var(--rosewood);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

/* ===================== MISC ===================== */
.badge-count{
  background: var(--gold);
  color: var(--burgundy-darker);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
}

.divider{
  height: 1px;
  background: var(--cream-dim);
  margin: 40px 0;
}

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px){ .two-col{ grid-template-columns: 1fr; } }

.tag-list{ display: flex; gap: 10px; flex-wrap: wrap; }
.tag{
  background: var(--cream-dim);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 100px;
}

.callout{
  background: linear-gradient(135deg, var(--rosewood), var(--burgundy-dark));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}
.callout h2{ color: var(--cream); }
.callout p{ color: var(--cream-dim); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ===================== MEMBERSHIP CARD ===================== */
.member-card{
  display: none;
  max-width: 420px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, var(--rosewood), var(--burgundy-darker));
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--cream);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--gold);
  position: relative;
}
.member-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 20px, transparent 20px 40px);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.member-card-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.member-card-top img{ height: 40px; }
.member-card-tier{
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--burgundy-darker);
  padding: 4px 12px;
  border-radius: 100px;
}
.member-card-name{
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 22px 0 2px;
  position: relative;
  z-index: 1;
}
.member-card-code{
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.member-card-qr{
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: inline-flex;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.member-card-foot{
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(251,244,232,0.65);
  position: relative;
  z-index: 1;
}

.perks-list{
  display: grid;
  gap: 14px;
}
.perk-row{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.perk-row .icon{
  font-size: 1.4rem;
  flex: none;
}

/* ===================== STANDINGS ===================== */
.standings-block{
  margin-top: 56px;
}
.standings-block:first-child{ margin-top: 0; }
.standings-block h3{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 18px;
  padding-top: 40px;
  border-top: 2px solid var(--cream-dim);
}
.standings-block:first-child h3{
  padding-top: 0;
  border-top: none;
}
tbody tr.highlight td{ font-weight: 800; }

.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mb-0{ margin-bottom: 0; }

/* ===================== SPONSOR BAR (scrolling, sits above the header on every page) ===================== */
.sponsor-bar{
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  position: relative;
}
.sponsor-bar-track{
  display: inline-flex;
  align-items: center;
  animation: sponsorScroll 100s linear infinite;
  will-change: transform;
}
.sponsor-bar:hover .sponsor-bar-track{ animation-play-state: paused; }
.sponsor-item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: 0.82rem;
  color: var(--cream-dim);
  white-space: nowrap;
}
.sponsor-item img{
  height: 24px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  flex: none;
  background: var(--white);
  border-radius: 4px;
  padding: 3px 5px;
}
.sponsor-item .sponsor-name{
  font-weight: 800;
  color: var(--gold-light);
}
.sponsor-item .sponsor-desc{ color: var(--cream-dim); }
.sponsor-item .sponsor-contact{ color: var(--rosewood-light); font-weight: 700; }
.sponsor-item .sponsor-sep{ color: rgba(251,244,232,0.25); padding: 0 4px; }
@keyframes sponsorScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .sponsor-bar-track{ animation: none; }
}

/* ===================== 4-UP GRID (Join Us men's teams) ===================== */
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px){ .grid-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid-4{ grid-template-columns: 1fr; } }

.team-group-label{
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosewood);
  margin-bottom: 14px;
}

/* ===================== SPONSOR CARD (Become a Sponsor page) ===================== */
.sponsor-card{
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 36px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  align-items: center;
}
.sponsor-card .sponsor-logo-box{
  width: 160px;
  height: 120px;
  background: var(--white);
  border: 1px solid var(--cream-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.sponsor-card img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sponsor-card h3{ margin-bottom: 8px; }
.sponsor-card p{ color: var(--ink-soft); }
.sponsor-card-links{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-weight: 800;
  font-size: 0.9rem;
}
@media (max-width: 640px){
  .sponsor-card{ grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .sponsor-card .sponsor-logo-box{ margin: 0 auto; }
  .sponsor-card-links{ justify-content: center; }
}
