/* =========================================================
   SFPN — South Florida Pickleball Network
   Design system: Coastal Preppy / Palm Beach
   Typography: Cormorant Garamond (display) + Inter (body)
   ========================================================= */

:root {
  /* Palette */
  --bone:        #F7F3EA;
  --cream:       #FAF6EC;
  --sand:        #E8DDC4;
  --sand-2:      #DCCDA8;
  --navy:        #0B2545;
  --navy-2:      #10305C;
  --navy-ink:    #081B36;
  --green:       #1F4A3C;
  --green-2:     #2C6753;
  --brass:       #B8893A;
  --brass-2:     #E6C77A;
  --brass-dk:    #8C6720;
  --ink:         #15161A;
  --ink-2:       #2A2C32;
  --muted:       #5B5F66;
  --muted-2:     #8A8F97;
  --line:        #E2D9C2;
  --line-2:      #D2C7AA;
  --white:       #FFFFFF;
  --red:         #B3261E;
  --amber:       #C18B26;
  --shadow-sm:   0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow-md:   0 8px 24px rgba(11, 37, 69, 0.08), 0 2px 6px rgba(11, 37, 69, 0.05);
  --shadow-lg:   0 24px 60px rgba(11, 37, 69, 0.12), 0 8px 24px rgba(11, 37, 69, 0.06);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Sizing */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --maxw:      1180px;
  --gutter:    clamp(20px, 4vw, 40px);

  --header-h: 78px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}
a:hover { color: var(--green); }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 500; letter-spacing: -0.018em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 19px; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass-dk);
  font-weight: 600;
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 64ch;
  line-height: 1.6;
}

.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }
.mono  { font-family: var(--font-mono); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-2), transparent);
  border: 0;
  margin: 48px 0;
}

.center { text-align: center; }

/* =========================================================
   Top nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(247, 243, 234, 0.78);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid rgba(210, 199, 170, 0.5);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}
.brand-mark { width: 38px; height: 38px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--green);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 880px) {
  .nav-links { display: flex; align-items: center; }
}
.nav-links a {
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --bg: var(--navy);
  --fg: #F4ECD8;
  --br: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--br);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--navy); --fg: #F4ECD8; }
.btn-primary:hover { --bg: var(--navy-2); color: #FBF3DC; }
.btn-secondary {
  --bg: transparent;
  --fg: var(--navy);
  --br: var(--navy);
}
.btn-secondary:hover { --bg: var(--navy); --fg: #F4ECD8; }
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink-2);
  --br: var(--line-2);
}
.btn-ghost:hover { --br: var(--navy); --fg: var(--navy); }
.btn-brass {
  --bg: linear-gradient(135deg, var(--brass-2), var(--brass));
  --fg: #2A1E07;
  --br: var(--brass-dk);
}
.btn-danger {
  --bg: transparent;
  --fg: var(--red);
  --br: rgba(179,38,30,0.45);
}
.btn-danger:hover { --bg: var(--red); --fg: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* =========================================================
   Cards & surfaces
   ========================================================= */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.surface {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: var(--green);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* =========================================================
   Forms
   ========================================================= */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #FFFEF9;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11,37,69,0.08);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err  { font-size: 13px; color: var(--red); }

.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; gap: 16px; } }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

/* =========================================================
   Toast / alerts
   ========================================================= */
.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14.5px;
  margin: 12px 0;
  border: 1px solid;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-info    { background: #F1ECDC; border-color: var(--line-2); color: var(--ink); }
.alert-success { background: #E9F2EC; border-color: #B5D3BE;       color: #1F4A3C; }
.alert-warn    { background: #FBF1D9; border-color: #E5C57A;       color: #6B4E12; }
.alert-error   { background: #FBE9E7; border-color: #E1B2AD;       color: #7C211A; }

#toast {
  position: fixed;
  z-index: 200;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--navy);
  color: #F4ECD8;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: t-in .25s ease;
}
.toast.err  { background: var(--red); }
.toast.ok   { background: var(--green-2); }
@keyframes t-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0 clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(184,137,58,0.10), transparent 60%),
    radial-gradient(70% 70% at 10% 90%, rgba(31,74,60,0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--navy) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta b { color: var(--navy); font-weight: 700; }
.hero-crest {
  display: flex;
  justify-content: center;
}
.hero-crest svg {
  width: min(420px, 80vw);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(11,37,69,0.25));
}

/* =========================================================
   Pricing
   ========================================================= */
.tier {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tier:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tier.featured {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(184,137,58,0.18), var(--shadow-md);
}
.tier .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
  color: #2A1E07;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.tier .name {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 4px;
}
.tier .desc { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.tier .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.tier .price .amt {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.tier .price .per { font-size: 14px; color: var(--muted); }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.tier ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
  box-shadow: inset 0 0 0 3px var(--cream);
}
.tier .cta { margin-top: auto; }

/* =========================================================
   Quote / pillar blocks
   ========================================================= */
.pillars { display: grid; gap: 24px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 28px; background: rgba(255,255,255,0.4); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pillar .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-2);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pillar h4 { color: var(--navy); margin: 0 0 6px; }
.pillar p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.55; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--brass);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--ink-2); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--navy);
  color: #C9D3E4;
  padding: 60px 0 28px;
  margin-top: 60px;
}
.footer a { color: #C9D3E4; }
.footer a:hover { color: var(--brass-2); }
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-body);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-2);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #8DA0BD;
}

/* =========================================================
   Auth pages
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 60px var(--gutter);
  background:
    radial-gradient(80% 60% at 90% 5%, rgba(184,137,58,0.10), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(31,74,60,0.10), transparent 65%),
    var(--bone);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 34px;
}
.auth-card .brand { justify-content: center; margin-bottom: 12px; }
.auth-card h1 { font-size: 32px; text-align: center; margin: 8px 0 6px; }
.auth-card .lede { text-align: center; margin: 0 auto 22px; font-size: 15px; }

/* =========================================================
   Portal layout (member + admin)
   ========================================================= */
.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 980px) {
  .app-shell { grid-template-columns: 260px 1fr; }
}
.sidebar {
  background: var(--navy);
  color: #C9D3E4;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sidebar .brand { color: #F4ECD8; }
.sidebar .brand-text { color: #F4ECD8; }
.sidebar .brand-text small { color: var(--brass-2); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #C9D3E4;
  font-size: 14.5px;
  border-radius: var(--radius);
}
.sidebar nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar nav a.active {
  background: rgba(230,199,122,0.14);
  color: var(--brass-2);
}
.sidebar .who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
  color: #2A1E07;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.who-meta { font-size: 13px; line-height: 1.3; }
.who-meta b { color: #fff; display: block; font-weight: 600; }
.who-meta span { color: #8DA0BD; }

.main {
  padding: clamp(24px, 4vw, 48px);
  background: var(--bone);
}
.main-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.main-head h1 { font-size: clamp(28px, 3.5vw, 40px); margin: 0; }

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.stat .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
}
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 24px; margin: 0; }

/* Tables */
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(232, 221, 196, 0.18); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.pill-casual { background: #EAF1E9; color: #2C6753; }
.pill-pro    { background: #F4E8C8; color: #6B4E12; }
.pill-admin  { background: #DDE4F1; color: #0B2545; }
.pill-active { background: #E5F1E8; color: #1F4A3C; }
.pill-pending { background: #FBF1D9; color: #6B4E12; }
.pill-paused { background: #F1E5DA; color: #6B3A12; }
.pill-canceled { background: #F1DBD8; color: #7C211A; }

/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 54, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.modal-bg.open { display: flex; }
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: m-in .18s ease;
}
@keyframes m-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0 0 6px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* Visit log entry */
.log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.log-row:last-child { border: none; }
.log-row .when { font-family: var(--font-display); font-size: 18px; color: var(--navy); }
.log-row .who  { font-size: 13.5px; color: var(--muted); }

/* Misc helpers */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Print-friendly + focus */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(184,137,58,0.35); color: var(--navy-ink); }

/* =========================================================
   v2 hero & layout refinements — Apple-tier polish
   ========================================================= */

/* Tighter eyebrow chip with a brass dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--brass-dk);
  font-weight: 600;
  margin: 0 0 18px;
}
.dot-brass {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
  box-shadow: 0 0 0 3px rgba(184,137,58,0.12);
}

/* Hero typography — larger display serif, italic mid-sentence accent */
.hero { padding: clamp(96px, 12vw, 168px) 0 clamp(72px, 10vw, 120px); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 112px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero-title .accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--green);
  max-width: 22ch;
  margin: 0 0 22px;
}
.hero-lede {
  max-width: 56ch;
  font-size: clamp(16.5px, 1.25vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
}
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta b { color: var(--navy); font-weight: 600; }

.hero-crest svg,
.hero-crest img {
  width: min(420px, 80vw);
  height: auto;
  max-height: min(620px, 90vh);
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(11,37,69,0.20));
}

/* Section heads — centered, refined */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { margin: 0 0 14px; }
.section-head .lede { margin: 0 auto; }

/* When-we-play schedule list */
.play-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.play-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.play-list li:last-child { border-bottom: none; }
.play-day {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}
.small { font-size: 13.5px; }

/* Quote card */
.quote-card { padding: 40px; position: relative; overflow: hidden; }
.quote-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 80% 10%, rgba(184,137,58,0.10), transparent 60%);
  pointer-events: none;
}
.quote-card blockquote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.4;
  color: var(--navy);
  margin: 18px 0 22px;
}
.quote-attr {
  position: relative;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Invite card layout */
.invite-card {
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

/* Footer blurb */
.footer-blurb {
  margin: 18px 0 0;
  color: #8DA0BD;
  font-size: 13.5px;
  max-width: 32ch;
  line-height: 1.55;
}

/* Subtle hero radial wash refresh */
.hero::before {
  background:
    radial-gradient(50% 60% at 88% 8%, rgba(184,137,58,0.13), transparent 55%),
    radial-gradient(60% 70% at 8% 95%, rgba(31,74,60,0.08), transparent 60%);
}

/* Nav refinement — slightly larger brand text on tab focus */
.nav-inner { gap: 32px; }
.brand-text { font-size: 22px; font-weight: 600; line-height: 1.05; }
.brand-text small {
  font-size: 9.5px;
  letter-spacing: 0.32em;
  font-weight: 600;
  margin-top: 3px;
}
.nav-links a { font-weight: 500; font-size: 14px; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--navy); }

/* =========================================================
   Waiver — modal + admin column
   ========================================================= */
.waiver-shell {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 28px;
  max-width: 780px;
}
.waiver-shell h2 { margin-top: 0; }
.waiver-body {
  background: #FFFEF9;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-height: 360px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 20px 0;
}
.waiver-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin: 14px 0 6px;
}
.waiver-body h3:first-child { margin-top: 0; }
.waiver-body p { margin: 0 0 10px; }
.waiver-signature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .waiver-signature { grid-template-columns: 2fr 1fr; }
}
.signed-banner {
  background: #E9F2EC;
  border: 1px solid #B5D3BE;
  color: #1F4A3C;
  padding: 14px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.pill-signed   { background: #E9F2EC; color: #1F4A3C; }
.pill-unsigned { background: #FBE9E7; color: #7C211A; }

/* =========================================================
   v4 — refined hero tone, philosophy aphorism block
   ========================================================= */

/* Hero "Invitation only. Capped at 80 members." — refined caption */
.hero-cap {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dk);
  margin: 18px 0 0;
}

/* Smaller / lighter line beneath the hero paragraph */
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 44ch;
  line-height: 1.45;
}

/* Philosophy aphorism block — sits between How-We-Play and Membership */
.philosophy {
  padding: clamp(72px, 9vw, 120px) 0;
  background: transparent;
}
.philosophy-inner {
  text-align: center;
  max-width: 760px;
}
.philosophy-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brass), transparent);
  margin: 0 auto;
  opacity: 0.8;
}
.philosophy-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 36px 0;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

/* Make sure the original hero-sub class (if any leftover) stays compatible */
.hero-sub { display: none; }
