/* ================================================================
   ONOGolf — editorial landing page
   System: Playfair Display (display) + Inter (UI)
   Palette: olive / amber / orange on sand/cream, with dark mode
   ================================================================ */

:root {
  /* Neutrals */
  --ink: 26 26 24;
  --ink-2: 58 58 52;
  --muted: 107 107 100;
  --muted-2: 154 154 144;
  --line: 224 223 216;
  --line-2: 212 212 204;
  --cream: 250 250 248;
  --sand: 246 245 240;
  --sand-2: 238 241 232;
  --paper: 255 255 255;

  /* Brand */
  --olive: 92 107 58;
  --olive-deep: 42 48 32;
  --olive-soft: 170 175 152;
  --gold: 191 154 56;
  --orange: 196 112 58;
  --wine: 160 64 64;
  --sea: 58 107 122;
  --navy: 74 94 138;

  /* Accent (tweakable) */
  --accent: var(--olive);
  --accent-deep: var(--olive-deep);

  /* Semantic */
  --bg: var(--cream);
  --bg-2: var(--sand);
  --bg-3: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --fg-faint: var(--muted-2);
  --border: var(--line);
  --border-2: var(--line-2);

  /* Type scale */
  --font-display: "Playfair Display", "Tiempos", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1280px;

  /* Radii + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-card: 0 1px 0 rgb(0 0 0 / 0.02), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-lifted: 0 2px 0 rgb(0 0 0 / 0.03), 0 12px 32px -8px rgb(0 0 0 / 0.12);
}

[data-theme="dark"] {
  --bg: 18 20 15;
  --bg-2: 26 28 22;
  --bg-3: 34 36 29;
  --fg: 240 238 228;
  --fg-muted: 170 170 160;
  --fg-faint: 120 120 112;
  --border: 52 54 44;
  --border-2: 68 70 58;
  --paper: 26 28 22;
  --sand: 22 24 18;
  --sand-2: 32 36 26;
  --ink: 240 238 228;
  --shadow-card: 0 1px 0 rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-lifted: 0 2px 0 rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.5);
}

[data-accent="amber"] {
  --accent: var(--gold);
  --accent-deep: 120 95 30;
}
[data-accent="orange"] {
  --accent: var(--orange);
  --accent-deep: 130 72 36;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: rgb(var(--fg));
  background: rgb(var(--bg));
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--fg));
  line-height: 0.98;
}
.display-xl { font-size: clamp(54px, 8.5vw, 136px); }
.display-lg { font-size: clamp(42px, 5vw, 78px); line-height: 1.02; }
.display-md { font-size: clamp(32px, 3vw, 48px); line-height: 1.08; }
.display-sm { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }

.italic-ink { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: rgb(var(--accent));
  display: inline-block;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
}

.lede {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgb(var(--fg-muted));
  max-width: 58ch;
}

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-wide { max-width: 1440px; }

.section {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  position: relative;
}
.section-tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

.divider {
  border: 0;
  border-top: 1px solid rgb(var(--border));
  margin: 0;
}

.divider-dotted {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgb(var(--border)) 50%, transparent 0%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(var(--bg) / 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgb(var(--border));
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgb(var(--fg));
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgb(var(--accent));
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  position: relative;
  box-shadow: inset 0 -8px 14px rgb(0 0 0 / 0.15);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgb(255 255 255 / 0.5);
  border-radius: 999px;
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 13px;
  color: rgb(var(--fg-muted));
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-links a:hover { background: rgb(var(--border) / 0.6); color: rgb(var(--fg)); }
.nav-links a.active { background: rgb(var(--accent) / 0.1); color: rgb(var(--accent)); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: rgb(var(--accent));
  color: white;
  border-color: rgb(var(--accent));
}
.btn-primary:hover { background: rgb(var(--accent-deep)); border-color: rgb(var(--accent-deep)); }
.btn-ghost {
  background: transparent;
  color: rgb(var(--fg));
  border-color: rgb(var(--border));
}
.btn-ghost:hover { background: rgb(var(--border) / 0.4); }
.btn-dark {
  background: rgb(var(--fg));
  color: rgb(var(--bg));
  border-color: rgb(var(--fg));
}
.btn-dark:hover { opacity: 0.9; }
.btn-lg { padding: 14px 26px; font-size: 14px; }
.btn-xl { padding: 18px 30px; font-size: 15px; }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card-hover { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lifted);
  border-color: rgb(var(--border-2));
}

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgb(var(--sand-2));
  color: rgb(var(--olive));
  border: 1px solid rgb(var(--olive) / 0.15);
}
.chip-gold { background: rgb(var(--gold) / 0.1); color: rgb(var(--gold)); border-color: rgb(var(--gold) / 0.3); }
.chip-orange { background: rgb(var(--orange) / 0.1); color: rgb(var(--orange)); border-color: rgb(var(--orange) / 0.3); }
.chip-neutral { background: rgb(var(--sand)); color: rgb(var(--fg-muted)); border-color: rgb(var(--border)); }

.chip-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgb(var(--accent) / 0.08), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgb(var(--gold) / 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-title .word-stroke {
  -webkit-text-stroke: 1.5px rgb(var(--fg));
  color: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero-title .word-gold {
  color: rgb(var(--gold));
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgb(var(--border));
  padding-top: 24px;
  margin-top: 40px;
}
.hero-meta > div { padding-right: 16px; border-right: 1px solid rgb(var(--border)); }
.hero-meta > div:last-child { border-right: 0; padding-right: 0; padding-left: 0; }
.hero-meta > div + div { padding-left: 16px; }
.hero-meta .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgb(var(--fg));
}
.hero-meta .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--fg-muted));
  margin-top: 10px;
}

/* ---------- Full-bleed hero ---------- */
.hero-full {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 0 36px;
  color: white;
}
.hero-full-photo {
  position: absolute; inset: 0;
  background: url("4f312e0f-b954-42b4-bde9-1da661148821") center / cover no-repeat;
  filter: saturate(0.85) contrast(1.03) brightness(0.85);
  z-index: -2;
}
.hero-full-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,26,24,0.55) 0%,
      rgba(26,26,24,0.15) 30%,
      rgba(26,26,24,0.25) 55%,
      rgba(42,48,32,0.85) 100%),
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(0,0,0,0.35), transparent 75%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(191,154,56,0.22), transparent 60%);
  z-index: -1;
}
.hero-full-topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.hero-full-inner {
  text-align: center;
  padding-top: clamp(48px, 10vw, 140px);
  padding-bottom: clamp(40px, 8vw, 100px);
  max-width: 1080px !important;
}
.hero-full-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 32px 0 0;
  color: white;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.italic-ink-white {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.word-gold { color: rgb(var(--gold)); }
.hero-full-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 58ch;
  margin: 36px auto 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-full-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-full-bottom > div { padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.18); }
.hero-full-bottom > div:last-child { border-right: 0; }
.hero-full-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: white;
}
.hero-full-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}
.hero-full-corner {
  position: absolute;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.5);
  z-index: 1;
  pointer-events: none;
}
.hero-full-corner.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hero-full-corner.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hero-full-corner.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hero-full-corner.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

/* Legacy hero (kept for safety if referenced) */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  box-shadow: var(--shadow-lifted);
}
.hero-photo {
  position: absolute; inset: 0;
  background: url("4f312e0f-b954-42b4-bde9-1da661148821") center / cover no-repeat;
  /* tone it toward the palette without over-filtering */
  filter: saturate(0.88) contrast(1.02);
}
[data-theme="dark"] .hero-photo { filter: saturate(0.85) contrast(1.05) brightness(0.85); }

.hero-photo-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,26,24,0.28) 0%,
      rgba(26,26,24,0) 35%,
      rgba(26,26,24,0) 55%,
      rgba(42,48,32,0.55) 100%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(191,154,56,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(196,112,58,0.12), transparent 60%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  top: 20px;
  left: 22px;
  max-width: 220px;
  z-index: 2;
}

.hero-corner {
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.45);
  pointer-events: none;
}
.hero-corner-tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hero-corner-br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* Floating stat cards */
.hero-float {
  position: absolute;
  padding: 16px 18px;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-md);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.04);
  font-size: 12px;
  z-index: 3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgb(var(--bg-3) / 0.96);
}
.hero-float-tr { top: 24px; right: 20px; width: 190px; }
.hero-float-bl { bottom: 26px; left: 20px; width: 240px; }

/* ---------- Marquee / tournament ticker ---------- */
.marquee-row {
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
  overflow: hidden;
  background: rgb(var(--bg-3));
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  color: rgb(var(--fg));
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  background: rgb(var(--accent));
  border-radius: 999px;
}
.marquee-item .tag {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
  font-weight: 500;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 8-Phase Journey ---------- */
.journey {
  background: rgb(var(--bg-2));
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background-image:
    linear-gradient(to right, rgb(var(--border) / 0.4) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}
.journey > * { position: relative; }

.phase-path {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 56px;
  position: relative;
}
.phase-path::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 6.25%;
  right: 6.25%;
  height: 2px;
  background: linear-gradient(to right,
    rgb(var(--orange)),
    rgb(var(--gold)),
    rgb(var(--olive)));
  opacity: 0.7;
  z-index: 0;
}

.phase-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s;
}
.phase-col:hover { transform: translateY(-3px); }

.phase-node {
  width: 80px; height: 80px;
  border-radius: 999px;
  background: rgb(var(--bg-3));
  border: 2px solid rgb(var(--border));
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: rgb(var(--fg));
  position: relative;
  transition: all 0.2s;
}
.phase-node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px dashed rgb(var(--border-2));
  opacity: 0;
  transition: opacity 0.2s;
}
.phase-col.current .phase-node {
  background: rgb(var(--accent));
  color: white;
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 6px rgb(var(--accent) / 0.15);
}
.phase-col.current .phase-node::after { opacity: 1; border-color: rgb(var(--accent) / 0.5); }
.phase-col.done .phase-node {
  background: rgb(var(--orange) / 0.1);
  color: rgb(var(--orange));
  border-color: rgb(var(--orange) / 0.3);
}
.phase-col.done .phase-node::before {
  content: "✓";
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: rgb(var(--orange));
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
  font-family: var(--font-ui);
}

.phase-label {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgb(var(--fg));
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.phase-sub {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
  text-align: center;
}
.phase-hcp {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgb(var(--fg-muted));
}

@media (max-width: 900px) {
  .phase-path { grid-template-columns: repeat(4, 1fr); gap: 24px 0; }
  .phase-path::before { display: none; }
}
@media (max-width: 560px) {
  .phase-path { grid-template-columns: repeat(2, 1fr); }
}

/* Detail card below path */
.phase-detail {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 40px;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
}
@media (max-width: 860px) {
  .phase-detail { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}

.phase-detail-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(120px, 14vw, 220px);
  line-height: 0.8;
  color: rgb(var(--accent) / 0.9);
  letter-spacing: -0.04em;
}

.phase-gate {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(var(--border));
}
.phase-gate:last-child { border-bottom: 0; }
.phase-gate .marker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgb(var(--fg-muted));
  min-width: 32px;
}
.phase-gate .g-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: rgb(var(--fg));
}
.phase-gate .g-desc {
  font-size: 13px;
  color: rgb(var(--fg-muted));
  margin-top: 2px;
}

/* ---------- Archetypes ---------- */
.archetypes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgb(var(--border));
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
}
@media (max-width: 960px) { .archetypes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .archetypes { grid-template-columns: 1fr; } }

.archetype {
  background: rgb(var(--bg));
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 440px;
  transition: background 0.2s;
}
.archetype:hover { background: rgb(var(--bg-3)); }
.archetype-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgb(var(--fg-muted));
}
.archetype-sigil {
  width: 100%;
  aspect-ratio: 1;
  max-height: 160px;
  display: grid;
  place-items: center;
  background: rgb(var(--bg-2));
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.archetype-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgb(var(--fg));
}
.archetype-kind {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgb(var(--accent));
}
.archetype-desc {
  font-size: 13px;
  color: rgb(var(--fg-muted));
  line-height: 1.5;
  flex: 1;
}
.archetype-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 10px;
  border-top: 1px solid rgb(var(--border));
  padding-top: 12px;
}
.archetype-stats .k { text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--fg-muted)); }
.archetype-stats .v { font-family: var(--font-mono); color: rgb(var(--fg)); font-weight: 600; margin-top: 2px; }

/* ---------- Tournament map ---------- */
.tourney-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .tourney-grid { grid-template-columns: 1fr; } }

.track-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
  overflow: hidden;
}
.track-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgb(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: rgb(var(--bg-2));
}
.track-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.track-sub { font-size: 12px; color: rgb(var(--fg-muted)); margin-top: 4px; }

.track-body { padding: 0; }
.tour-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgb(var(--border));
  gap: 16px;
}
.tour-row:last-child { border-bottom: 0; }
.tour-row:hover { background: rgb(var(--bg-2) / 0.5); }
.tour-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: rgb(var(--fg));
}
.tour-meta { font-size: 12px; color: rgb(var(--fg-muted)); margin-top: 3px; display: flex; gap: 12px; }
.tour-meta span { display: flex; gap: 4px; align-items: center; }

/* ---------- Money hub ---------- */
.money {
  background: rgb(var(--olive-deep));
  color: rgb(245 245 240);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.money::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgb(var(--gold) / 0.3), transparent 40%),
    radial-gradient(circle at 0% 100%, rgb(var(--orange) / 0.2), transparent 50%);
  pointer-events: none;
}
.money > * { position: relative; }

.money-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: rgb(var(--gold));
}
.money-title .frac {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255 255 255 / 0.85);
  font-weight: 400;
}

.money-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-top: 48px;
}
@media (max-width: 860px) { .money-grid { grid-template-columns: 1fr; } }

.ledger {
  background: rgba(255 255 255 / 0.05);
  border: 1px solid rgba(255 255 255 / 0.1);
  border-radius: var(--r-md);
  padding: 20px 24px;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(255 255 255 / 0.15);
  font-size: 14px;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .k { color: rgba(255 255 255 / 0.75); }
.ledger-row .v { font-family: var(--font-mono); color: rgb(var(--gold)); font-weight: 500; }
.ledger-row.total .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: white;
}
.ledger-row.total .k { color: white; font-size: 16px; }

.ledger-meter {
  position: relative;
  margin-top: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(255 255 255 / 0.1);
}
.ledger-meter .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255 255 255 / 0.1);
  overflow: hidden;
  position: relative;
}
.ledger-meter .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 24%;
  background: rgb(var(--orange));
  border-radius: 999px;
}
.ledger-meter .fill-gold {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, rgb(var(--orange)), rgb(var(--gold)));
  border-radius: 999px;
}
.roi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgb(var(--gold));
}
.roi-num .x {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgb(255 255 255 / 0.6);
}

/* ---------- Spanish / MobSync ---------- */
.mobsync {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 860px) { .mobsync { grid-template-columns: 1fr; } }

.mobsync-side {
  padding: 40px 36px;
  position: relative;
}
.mobsync-side + .mobsync-side { border-left: 1px solid rgb(var(--border)); }
@media (max-width: 860px) {
  .mobsync-side + .mobsync-side { border-left: 0; border-top: 1px solid rgb(var(--border)); }
}
.mobsync-side h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}
.mobsync-side p { color: rgb(var(--fg-muted)); font-size: 14px; line-height: 1.55; }

.transcript {
  background: rgb(var(--bg-2));
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  border: 1px solid rgb(var(--border));
}
.transcript-en .en { color: rgb(var(--fg)); }
.transcript-en .es { color: rgb(var(--fg-faint)); font-style: italic; }
.transcript-es .es { color: rgb(var(--fg)); font-weight: 500; }
.transcript-es .en { color: rgb(var(--fg-faint)); font-style: italic; }

/* ---------- CTA ---------- */
.cta-big {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
  position: relative;
  overflow: hidden;
}
.cta-big::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgb(var(--gold) / 0.08), transparent 50%),
    radial-gradient(circle at 80% 50%, rgb(var(--orange) / 0.08), transparent 50%);
}
.cta-big > * { position: relative; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 32px;
  font-size: 13px;
  color: rgb(var(--fg-muted));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--fg));
  margin: 0 0 16px;
  font-weight: 600;
}
.footer a { color: rgb(var(--fg-muted)); text-decoration: none; display: block; padding: 6px 0; }
.footer a:hover { color: rgb(var(--fg)); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgb(var(--border));
  font-size: 12px;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 14px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.18);
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgb(var(--fg));
  width: 260px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(var(--border));
}
.tweaks-head h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin: 0;
}
.tweaks-close {
  background: transparent;
  border: 0;
  color: rgb(var(--fg-muted));
  cursor: pointer;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
}
.tweaks-row { margin-bottom: 12px; }
.tweaks-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--fg-muted)); margin-bottom: 6px; }
.tweaks-seg {
  display: inline-flex;
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex-wrap: wrap;
}
.tweaks-seg button {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: rgb(var(--fg-muted));
  cursor: pointer;
  font-weight: 500;
}
.tweaks-seg button.active {
  background: rgb(var(--fg));
  color: rgb(var(--bg));
}
.tweaks-row .range { width: 100%; }
.tweaks-swatches { display: flex; gap: 6px; }
.tweaks-swatches button {
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 2px solid rgb(var(--border));
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.tweaks-swatches button.active { border-color: rgb(var(--fg)); box-shadow: 0 0 0 2px rgb(var(--bg)), 0 0 0 3px rgb(var(--fg) / 0.3); }

/* ---------- Utils ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.aic { align-items: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 32px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.muted { color: rgb(var(--fg-muted)); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Illustrative SVG accents */
.topo-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flag-stick { position: absolute; }


/* ---------- Tutorial cards ---------- */
.tut-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.tut-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lifted);
}
.tut-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tut-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-family: "Inter";
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.tut-body {
  padding: 14px;
}
.tut-level {
  display: inline-block;
  font-family: "Inter";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------- App download buttons ---------- */
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s;
  border: 1px solid rgba(0,0,0,0.1);
}
.app-btn:hover { transform: translateY(-2px); }

/* ---------- Analysis page ---------- */
.analysis-hero {
  background: rgb(var(--olive-deep));
  color: white;
  padding: 64px 0 80px;
}
.analysis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191,154,56,0.15);
  border: 1px solid rgba(191,154,56,0.4);
  color: rgb(var(--gold));
  font-family: "Inter";
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.analysis-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.analysis-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.analysis-card .sub {
  font-size: 12px;
  color: rgb(var(--fg-muted));
  margin-bottom: 18px;
}
.upload-drop {
  border: 1.5px dashed rgb(var(--border));
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgb(var(--bg-2));
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.upload-row .status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
}
.metric-card {
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  padding: 18px 20px;
}
.metric-card .ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgb(var(--accent) / 0.1);
  color: rgb(var(--accent));
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.metric-card .val {
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric-card .delta {
  font-family: "JetBrains Mono";
  font-size: 11px;
  color: rgb(var(--fg-muted));
  margin-top: 6px;
}
.metric-card .delta.up { color: rgb(92,107,58); }
.metric-card .delta.down { color: rgb(160,64,64); }
.metric-card .k {
  font-family: "Inter";
  font-size: 11px;
  color: rgb(var(--fg-muted));
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.pro-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(var(--border));
}
.pro-row:last-child { border-bottom: none; }
.pro-row .av {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  color: white;
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 15px;
}
.pro-row .bar {
  height: 5px; border-radius: 3px;
  background: rgb(var(--border));
  overflow: hidden;
  flex: 1;
}
.pro-row .bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.improve-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgb(var(--bg-2));
  border-radius: 10px;
  margin-bottom: 8px;
}
.improve-item.priority {
  background: rgb(244,225,225);
  border: 1px solid rgb(var(--wine) / 0.2);
}
[data-theme="dark"] .improve-item.priority {
  background: rgb(80,40,40);
  border-color: rgb(var(--wine) / 0.3);
}
.improve-item .sq {
  width: 14px; height: 14px;
  background: rgb(var(--fg));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Radar chart */
.radar-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgb(var(--border));
  margin-bottom: 28px;
}
.tab-btn {
  padding: 10px 18px;
  font-family: "Inter";
  font-size: 13px;
  font-weight: 500;
  color: rgb(var(--fg-muted));
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-btn.active {
  color: rgb(var(--fg));
  border-bottom-color: rgb(var(--accent));
  background: rgb(var(--bg-2));
  border-radius: 8px 8px 0 0;
}

/* ---------- Progress page ---------- */
.progress-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(180deg, rgb(58,107,122) 0%, rgb(92,107,58) 100%);
}
.progress-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(191,154,56,0.2) 0%, transparent 50%);
}
.progress-chip {
  position: absolute;
  padding: 10px 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.phase-rail {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 30px 0;
}
.phase-rail::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: rgb(var(--border));
}
.phase-node-sm {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 13px;
  background: rgb(var(--bg-3));
  border: 2px solid rgb(var(--border));
  color: rgb(var(--fg-muted));
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.phase-node-sm.done {
  background: rgb(var(--orange));
  border-color: rgb(var(--orange));
  color: white;
}
.phase-node-sm.cur {
  background: rgb(var(--gold));
  border-color: rgb(var(--gold));
  color: rgb(var(--olive-deep));
  width: 44px; height: 44px;
  font-size: 15px;
  box-shadow: 0 0 0 4px rgb(var(--gold) / 0.2);
}
.phase-pcard {
  flex: 1;
  padding: 16px;
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
  margin: 0 8px;
  position: relative;
  z-index: 1;
}
.phase-pcard.cur {
  background: rgb(255,248,225);
  border-color: rgb(var(--gold));
  box-shadow: 0 4px 16px rgb(var(--gold) / 0.15);
}
[data-theme="dark"] .phase-pcard.cur {
  background: rgb(60,52,20);
}
.phase-pcard h5 {
  font-family: "Inter";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgb(var(--orange));
  margin: 0 0 4px;
  text-transform: uppercase;
}
.phase-pcard.cur h5 { color: rgb(var(--gold)); }
.phase-pcard h4 {
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.phase-pcard .tag {
  font-size: 11px;
  color: rgb(var(--fg-muted));
  margin-bottom: 10px;
}
.phase-pcard .hcp {
  font-family: "JetBrains Mono";
  font-size: 10px;
  color: rgb(var(--fg-muted));
  margin-bottom: 8px;
}
.phase-pcard ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: rgb(var(--fg));
}
.phase-pcard ul li {
  padding: 3px 0 3px 14px;
  position: relative;
}
.phase-pcard ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: rgb(var(--fg-muted));
}
.phase-pcard .progress-bar {
  margin-top: 10px;
  height: 3px;
  background: rgb(var(--border));
  border-radius: 2px;
  overflow: hidden;
}
.phase-pcard .progress-bar > span {
  display: block;
  height: 100%;
  background: rgb(var(--gold));
  border-radius: 2px;
}
.phase-pcard .progress-label {
  font-family: "JetBrains Mono";
  font-size: 9px;
  color: rgb(var(--fg-muted));
  margin-top: 4px;
}

.achievement-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  border-radius: 10px;
}
.achievement-item .icn {
  width: 36px; height: 36px;
  background: rgb(var(--fg));
  border-radius: 6px;
  flex-shrink: 0;
}
.achievement-item h5 {
  font-family: "Inter";
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 3px;
}
.achievement-item p {
  font-size: 11px;
  color: rgb(var(--fg-muted));
  margin: 0 0 4px;
}
.achievement-item .when {
  font-family: "JetBrains Mono";
  font-size: 10px;
  color: rgb(var(--orange));
}

.tour-pill-card {
  background: rgb(var(--bg-2));
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tour-pill-card .match {
  font-family: "Inter";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tour-pill-card .lvl-pill {
  font-family: "Inter";
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  color: rgb(var(--fg-muted));
  background: rgb(var(--bg-3));
  border: 1px solid rgb(var(--border));
}
.tour-pill-card .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgb(var(--fg-muted));
}
.tour-btn {
  padding: 10px;
  background: rgb(var(--olive));
  color: white;
  border-radius: 8px;
  border: none;
  font-family: "Inter";
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
}
.tour-btn.alt {
  background: rgb(var(--bg-3));
  color: rgb(var(--fg));
  border: 1px solid rgb(var(--border));
}


/* ================================================================
   ONOGolf — Unified Nav + Footer + Scorecard Feature (v2)
   ================================================================ */

.ono-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ono-nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.ono-wordmark { display: inline-flex; align-items: center; line-height: 0; }
.ono-wordmark svg { display: block; }

.ono-nav-links {
  display: flex; gap: 36px; justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 17px; font-weight: 500;
}
.ono-nav-links a {
  color: rgb(60, 62, 50);
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  transition: color .15s;
}
.ono-nav-links a:hover { color: rgb(var(--olive)); }
.ono-nav-links a.active { color: rgb(var(--olive-deep)); font-weight: 700; }
.ono-nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: rgb(var(--olive));
}

.ono-nav-right { display: flex; align-items: center; gap: 14px; }
.ono-icon-btn {
  position: relative;
  background: transparent; border: 0; cursor: pointer;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgb(var(--olive-deep));
  border-radius: 999px;
}
.ono-icon-btn:hover { background: rgba(92,107,58,0.08); }
.ono-dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 999px;
  background: rgb(var(--orange));
  box-shadow: 0 0 0 2px white;
}
.ono-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, rgb(var(--olive)) 0%, rgb(var(--olive-deep)) 100%);
  color: white; font-family: "Playfair Display", serif; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ono-lang-toggle {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: rgb(var(--fg-muted)); letter-spacing: 0.1em;
}
.ono-btn-ghost, .ono-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 14px;
  text-decoration: none; transition: all .15s;
  border: 1px solid transparent;
}
.ono-btn-ghost { color: rgb(var(--olive-deep)); }
.ono-btn-ghost:hover { background: rgba(92,107,58,0.08); }
.ono-btn-primary {
  background: rgb(var(--olive)); color: white;
  border-color: rgb(var(--olive));
}
.ono-btn-primary:hover { background: rgb(var(--olive-deep)); border-color: rgb(var(--olive-deep)); }
.ono-btn-primary .arr { transition: transform .15s; }
.ono-btn-primary:hover .arr { transform: translateX(3px); }

@media (max-width: 1100px) {
  .ono-nav-inner { padding: 14px 20px; gap: 16px; }
  .ono-nav-links { gap: 20px; font-size: 15px; }
}
@media (max-width: 880px) {
  .ono-nav-links { display: none; }
}

/* ---------- Unified Footer ---------- */
.ono-footer {
  background: #0d0f0a;
  color: rgba(255,255,255,0.78);
  padding: 64px 40px 32px;
  margin-top: 80px;
}
.ono-footer-inner { max-width: 1440px; margin: 0 auto; }
.ono-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ono-footer-brand .ono-wordmark svg text { fill: rgb(var(--gold)); }
.ono-footer-brand .ono-wordmark svg circle { stroke: rgb(var(--gold)); fill: none; }
.ono-footer-brand .ono-wordmark svg circle[r="1.2"] { fill: rgb(var(--gold)); }
.ono-footer-brand p {
  margin-top: 16px;
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.ono-footer-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  margin: 24px 0 12px;
  text-transform: uppercase;
}
.ono-social-row { display: flex; gap: 10px; }
.ono-social-row a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all .15s;
}
.ono-social-row a:hover { color: rgb(var(--gold)); border-color: rgb(var(--gold)); }
.ono-footer-apps { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ono-app-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,0.85);
  text-decoration: none; min-width: 180px;
  cursor: pointer; transition: all .15s;
}
.ono-app-pill:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

.ono-footer-grid > div h4 {
  font-family: "Inter", sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.95);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.ono-footer-grid > div a {
  display: block;
  font-size: 14px; color: rgba(255,255,255,0.65);
  text-decoration: none; padding: 5px 0;
  cursor: pointer; transition: color .12s;
}
.ono-footer-grid > div a:hover { color: rgb(var(--gold)); }

.ono-footer-bottom {
  display: flex; justify-content: space-between;
  padding: 22px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 980px) {
  .ono-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ono-footer-brand { grid-column: 1 / -1; }
}

/* ---------- Scorecard Homepage Feature ---------- */
.sc-feature {
  background: linear-gradient(180deg, rgba(92,107,58,0.04) 0%, transparent 100%);
  padding: 120px 40px;
  border-top: 1px solid rgb(var(--border));
}
.sc-feature-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.sc-feature-bullets {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15px; line-height: 1.5;
}
.sc-feature-bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  color: rgb(var(--fg));
}
.sc-check {
  display: inline-flex; flex: 0 0 22px;
  width: 22px; height: 22px;
  background: rgb(var(--olive));
  color: white; border-radius: 999px;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  margin-top: 1px;
}

.sc-feature-mock {
  position: relative;
  min-height: 580px;
}
.sc-mock-phone {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(42,48,32,0.35), 0 8px 24px -8px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 480px;
  margin: 0 auto;
}
.sc-mock-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 16px; border-bottom: 1px solid rgb(var(--border));
}
.sc-mock-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.15em;
  color: rgb(var(--fg-muted)); text-transform: uppercase;
}
.sc-mock-course {
  font-family: "Playfair Display", serif;
  font-size: 20px; font-weight: 700;
  color: rgb(var(--olive-deep));
  margin-top: 4px;
}
.sc-mock-pill {
  background: rgb(var(--olive));
  color: white; font-size: 11px;
  padding: 5px 12px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.sc-mock-players {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 16px 0;
}
.sc-mock-player {
  background: rgba(92,107,58,0.06);
  border: 1px solid rgba(92,107,58,0.15);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.sc-mock-player.sc-olive  { border-color: rgba(92,107,58,0.4); background: rgba(92,107,58,0.12); }
.sc-mock-player.sc-gold   { border-color: rgba(191,154,56,0.4); background: rgba(191,154,56,0.12); }
.sc-mock-player.sc-orange { border-color: rgba(196,112,58,0.4); background: rgba(196,112,58,0.12); }
.sc-mock-player.sc-deep   { border-color: rgba(42,48,32,0.4); background: rgba(42,48,32,0.08); }
.sc-mock-name {
  display: block; font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: rgb(var(--fg-muted));
  text-transform: uppercase; margin-bottom: 2px;
}
.sc-mock-score {
  display: block; font-family: "Playfair Display", serif;
  font-size: 18px; font-weight: 700;
  color: rgb(var(--olive-deep));
}

.sc-mock-grid {
  border-top: 1px solid rgb(var(--border));
  padding-top: 12px;
}
.sc-mock-grid-head, .sc-mock-row {
  display: grid; grid-template-columns: 32px 32px repeat(4, 1fr);
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.sc-mock-grid-head {
  color: rgb(var(--fg-muted));
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sc-mock-grid-head span, .sc-mock-row span { text-align: center; }
.sc-mock-h { color: rgb(var(--fg-muted)); }
.sc-mock-par { color: rgb(var(--olive)); font-weight: 600; }
.sc-mock-stroke { color: rgb(var(--fg)); font-weight: 500; }
.sc-mock-row.active {
  background: rgba(191,154,56,0.08);
  border-radius: 6px;
  border-bottom-color: rgba(191,154,56,0.2);
}
.sc-mock-row.active .sc-mock-stroke { color: rgb(var(--fg-muted)); }
.sc-mock-row.active .sc-mock-h { color: rgb(var(--gold)); font-weight: 700; }

.sc-mock-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 14px;
}
.sc-mock-btn {
  border: 0; border-radius: 999px;
  padding: 12px; font-size: 13px;
  font-family: "Inter", sans-serif; font-weight: 500;
  cursor: pointer;
}
.sc-mock-btn-ghost {
  background: rgba(92,107,58,0.08); color: rgb(var(--olive-deep));
}
.sc-mock-btn-primary {
  background: rgb(var(--olive)); color: white;
}

.sc-feature-badge {
  position: absolute;
  top: 40px; right: -10px;
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px -6px rgba(42,48,32,0.18);
  border: 1px solid rgb(var(--border));
  transform: rotate(2deg);
  z-index: 2;
}
.sc-feature-badge-2 {
  top: auto; right: auto;
  bottom: 40px; left: -10px;
  transform: rotate(-3deg);
}
.sc-feature-badge-num {
  font-family: "Playfair Display", serif;
  font-size: 28px; font-weight: 800;
  color: rgb(var(--olive));
  line-height: 1;
}
.sc-feature-badge-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--fg-muted));
  margin-top: 4px;
}

@media (max-width: 900px) {
  .sc-feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .sc-feature { padding: 64px 20px; }
}


/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url("3cc231ff-3059-4cfa-8199-78ea207f0b63");
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url("147711ec-ee6e-4ebb-92d9-798e08d7f448");
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url("6dfa75e2-3bd7-445c-81fc-7c5aea2fd461");
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}



    .tm-hero { background:rgb(var(--olive-deep)); color:white; padding:48px 0 0; position:relative; overflow:hidden; }
    .tm-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 80% 10%, rgba(191,154,56,0.18),transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(58,107,122,0.2),transparent 55%); pointer-events:none; }
    .tm-hero-inner { position:relative; }
    .tm-eyebrow { font-family:var(--font-mono); font-size:10px; letter-spacing:0.2em; text-transform:uppercase; color:rgb(var(--gold)); margin-bottom:12px; }
    .tm-title { font-family:var(--font-display); font-weight:700; font-size:clamp(34px,4.6vw,58px); letter-spacing:-0.025em; line-height:1.02; margin:0 0 14px; }

    /* Layout: map left, controls right */
    .tm-stage { display:grid; grid-template-columns:1fr 360px; gap:0; border-top:1px solid rgba(255,255,255,0.1); }
    .tm-map-wrap { position:relative; background:rgb(var(--bg-2)); min-height:560px; }
    .tm-map-inner { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:12px; }
    .tm-map-legend { position:absolute; left:20px; bottom:18px; background:rgba(255,255,255,0.92); backdrop-filter:blur(8px); border:1px solid rgb(var(--border)); border-radius:10px; padding:12px 14px; }
    .tm-side { background:rgb(var(--olive-deep)); padding:24px; }

    /* Division filter pills */
    .tm-div-row { display:flex; flex-direction:column; gap:6px; }
    .tm-div { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; cursor:pointer; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.04); transition:all .12s; }
    .tm-div:hover { background:rgba(255,255,255,0.08); }
    .tm-div.on { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.3); }
    .tm-div-dot { width:12px; height:12px; border-radius:999px; flex-shrink:0; }
    .tm-div-count { margin-left:auto; font-family:var(--font-mono); font-size:11px; color:rgba(255,255,255,0.55); }

    /* Year timeline */
    .tm-timeline { background:rgb(var(--bg-3)); border-top:1px solid rgb(var(--border)); border-bottom:1px solid rgb(var(--border)); padding:22px 0; }
    .tm-tl-track { display:flex; gap:4px; align-items:flex-end; height:90px; }
    .tm-tl-month { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; }
    .tm-tl-bar-wrap { width:100%; display:flex; flex-direction:column-reverse; gap:2px; height:64px; justify-content:flex-start; }
    .tm-tl-seg { width:100%; border-radius:2px; transition:opacity .12s; min-height:5px; }
    .tm-tl-lbl { font-family:var(--font-mono); font-size:10px; color:rgb(var(--fg-muted)); padding:3px 6px; border-radius:5px; transition:all .12s; }
    .tm-tl-month.on .tm-tl-lbl { background:rgb(var(--olive-deep)); color:white; }
    .tm-tl-month:hover .tm-tl-lbl { background:rgb(var(--border)); }
    .tm-season { display:inline-block; padding:2px 8px; border-radius:999px; font-family:var(--font-mono); font-size:9.5px; }

    /* List */
    .tm-list-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
    .tm-sort { display:flex; gap:4px; }
    .tm-sort-btn { padding:7px 14px; border-radius:999px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:0.05em; border:1px solid rgb(var(--border)); background:white; color:rgb(var(--fg-muted)); cursor:pointer; transition:all .12s; }
    .tm-sort-btn.on { background:rgb(var(--olive-deep)); color:white; border-color:rgb(var(--olive-deep)); }

    .tm-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
    @media (max-width:1080px){ .tm-card-grid{ grid-template-columns:repeat(2,1fr); } }
    @media (max-width:720px){ .tm-card-grid{ grid-template-columns:1fr; } }
    .tm-card { display:flex; flex-direction:column; background:white; border:1px solid rgb(var(--border)); border-radius:14px; overflow:hidden; transition:box-shadow .15s, border-color .15s; }
    .tm-card:hover { box-shadow:var(--shadow-lifted); }
    .tm-card.sel { border-color:rgb(var(--gold)); box-shadow:0 0 0 2px rgb(var(--gold) / 0.3); }
    .tm-thumb { position:relative; height:104px; display:flex; flex-direction:column; justify-content:space-between; padding:13px 16px; color:white; }
    .tm-thumb::after { content:""; position:absolute; inset:0; background:linear-gradient(160deg, rgba(255,255,255,0.12), transparent 50%, rgba(0,0,0,0.28)); pointer-events:none; }
    .tm-thumb > * { position:relative; z-index:1; }
    .tm-thumb-abbr { font-family:var(--font-display); font-weight:700; font-size:26px; letter-spacing:-0.02em; }
    .tm-card-body { padding:16px 18px; flex:1; }
    .tm-card-side { padding:16px 18px; border-top:1px solid rgb(var(--border)); background:rgb(var(--sand)); display:flex; flex-direction:column; gap:10px; }
    .tm-reg { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-family:var(--font-mono); font-size:10px; letter-spacing:0.04em; font-weight:500; }
    .tm-reg.open    { background:rgba(58,138,58,0.12); color:#2a6a2a; }
    .tm-reg.closing { background:rgba(200,64,64,0.12); color:#c84040; }
    .tm-reg.soon    { background:rgba(191,154,56,0.15); color:#7a5a10; }
    .tm-reg.closed  { background:rgb(var(--sand)); color:rgb(var(--fg-faint)); }
    .tm-perk { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:6px; font-family:var(--font-mono); font-size:9.5px; background:rgb(var(--sand-2)); color:rgb(var(--olive)); }
    .tm-perk.augusta { background:rgba(26,42,24,0.1); color:#1a2a18; font-weight:600; }
    .tm-stat-mini { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:10.5px; padding:5px 0; border-bottom:1px solid rgb(var(--border)); }
    .tm-stat-mini:last-child { border-bottom:0; }
    .scout-dots { display:inline-flex; gap:2px; }
    .scout-dot { width:6px; height:6px; border-radius:999px; }

    .tm-site-btn { padding:9px 0; text-align:center; border-radius:8px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:0.06em; text-decoration:none; background:rgb(var(--olive-deep)); color:white; transition:opacity .12s; }
    .tm-site-btn:hover { opacity:.85; }
    .tm-detail-btn { padding:9px 0; text-align:center; border-radius:8px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:0.06em; border:1px solid rgb(var(--border)); background:white; color:rgb(var(--fg)); cursor:pointer; }
    .tm-detail-btn:hover { border-color:rgb(var(--olive)); color:rgb(var(--olive)); }

    @media (max-width:1080px){ .tm-stage{ grid-template-columns:1fr; } .tm-side{ order:-1; } }

    /* ── Leaflet map pins ── */
    .tm-map-wrap .leaflet-container { background:rgb(238,241,232); font-family:"Inter",sans-serif; }
    .map-pin { position:relative; border-radius:999px; background:var(--pc); border:2.5px solid #fff; box-shadow:0 2px 7px rgba(0,0,0,0.35); display:grid; place-items:center; color:#fff; font-weight:700; line-height:1; transition:transform .12s; }
    .map-pin:hover { transform:scale(1.18); z-index:600; }
    .map-pin.sel { box-shadow:0 0 0 4px rgba(191,154,56,0.55), 0 3px 10px rgba(0,0,0,0.4); z-index:650; }
    .map-pin.sel::after { content:""; position:absolute; inset:-9px; border-radius:999px; border:2px solid var(--pc); animation:pinPulse 1.7s infinite; }
    @keyframes pinPulse { 0%{ transform:scale(1); opacity:.7; } 100%{ transform:scale(1.9); opacity:0; } }
    .leaflet-tooltip.map-tip { background:rgb(42,48,32); color:#fff; border:0; box-shadow:0 3px 10px rgba(0,0,0,0.3); font-family:"JetBrains Mono",monospace; font-size:10px; padding:3px 9px; border-radius:6px; font-weight:500; }
    .leaflet-tooltip.map-tip::before { border-top-color:rgb(42,48,32); }
    .tm-map-legend { z-index:600; }
    .tm-map-modes { position:absolute; top:14px; right:14px; z-index:600; display:flex; gap:2px; background:rgba(255,255,255,0.95); backdrop-filter:blur(8px); border:1px solid rgb(var(--border)); border-radius:999px; padding:3px; box-shadow:0 2px 10px rgba(0,0,0,0.14); }
    .tm-map-modes button { border:0; background:transparent; font-family:var(--font-mono); font-size:10px; letter-spacing:0.04em; padding:6px 13px; border-radius:999px; cursor:pointer; color:rgb(var(--fg-muted)); transition:all .12s; }
    .tm-map-modes button:hover { color:rgb(var(--fg)); }
    .tm-map-modes button.on { background:rgb(var(--olive-deep)); color:#fff; }

    /* ── Suggest-a-tournament modal ── */
    .sg-scrim { position:fixed; inset:0; z-index:2000; background:rgba(42,48,32,0.45); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; padding:24px; }
    .sg-modal { background:#fff; border-radius:18px; width:100%; max-width:560px; max-height:90vh; overflow-y:auto; box-shadow:0 24px 64px rgba(0,0,0,0.32); }
    .sg-head { padding:22px 26px 16px; border-bottom:1px solid rgb(var(--border)); display:flex; justify-content:space-between; align-items:flex-start; }
    .sg-body { padding:22px 26px; }
    .sg-field { margin-bottom:14px; }
    .sg-label { font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.1em; text-transform:uppercase; color:rgb(var(--fg-muted)); margin-bottom:6px; display:block; }
    .sg-input, .sg-select, .sg-textarea { width:100%; padding:10px 12px; border:1px solid rgb(var(--border)); border-radius:9px; font-family:var(--font-ui); font-size:13px; background:rgb(var(--bg)); color:rgb(var(--fg)); box-sizing:border-box; }
    .sg-input:focus, .sg-select:focus, .sg-textarea:focus { outline:none; border-color:rgb(var(--olive)); box-shadow:0 0 0 3px rgb(var(--olive)/0.12); }
    .sg-input.err, .sg-select.err { border-color:#c84040; }
    .sg-err { color:#c84040; font-family:var(--font-mono); font-size:9.5px; margin-top:4px; }
    .sg-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .sg-suggest-btn { display:inline-flex; align-items:center; gap:6px; padding:9px 18px; border-radius:999px; font-family:var(--font-mono); font-size:11px; letter-spacing:0.05em; cursor:pointer; border:1.5px dashed rgb(var(--olive)); background:rgba(92,107,58,0.05); color:rgb(var(--olive)); transition:all .12s; }
    .sg-suggest-btn:hover { background:rgb(var(--olive-deep)); color:#fff; border-color:rgb(var(--olive-deep)); border-style:solid; }
    .tm-track-btn { padding:9px 0; text-align:center; border-radius:8px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:0.06em; border:none; background:rgb(var(--gold)); color:rgb(var(--olive-deep)); font-weight:600; cursor:pointer; transition:opacity .12s; }
    .tm-track-btn:hover { opacity:.88; }
    /* Track-reminder modal channel options */
    .trk-opt { display:flex; align-items:center; gap:12px; padding:13px 15px; border:1.5px solid rgb(var(--border)); border-radius:11px; cursor:pointer; transition:all .12s; margin-bottom:8px; }
    .trk-opt:hover { border-color:rgb(var(--olive-soft)); }
    .trk-opt.on { border-color:rgb(var(--olive)); background:rgba(92,107,58,0.06); }
    .trk-radio { width:20px; height:20px; border-radius:999px; border:2px solid rgb(var(--border-2)); flex-shrink:0; display:grid; place-items:center; transition:all .12s; }
    .trk-opt.on .trk-radio { border-color:rgb(var(--olive)); }
    .trk-acct { display:flex; gap:10px; }
    .trk-acct button { flex:1; padding:11px 0; border-radius:10px; font-family:var(--font-mono); font-size:11px; letter-spacing:0.04em; cursor:pointer; border:1.5px solid rgb(var(--border)); background:white; color:rgb(var(--fg)); transition:all .12s; }
    .trk-acct button.on { border-color:rgb(var(--olive)); background:rgb(var(--olive-deep)); color:white; }

    /* ── Full directory index table ── */
    .idx-table { display:flex; flex-direction:column; }
    .idx-row { display:grid; grid-template-columns:minmax(0,2.2fr) 0.9fr 1.1fr 0.95fr 0.65fr 0.85fr; gap:14px; align-items:center; padding:11px 10px; border-bottom:1px solid rgb(var(--border)); border-radius:8px; transition:background .1s; }
    .idx-row:hover { background:rgb(var(--bg-2)); }
    .idx-cell { min-width:0; }
    .idx-name { font-size:13px; overflow:hidden; text-overflow:ellipsis; }
    @media (max-width:900px){ .idx-row { grid-template-columns:1fr auto; gap:6px 12px; } .idx-cell:nth-child(3),.idx-cell:nth-child(4){ grid-column:1/-1; } }

    /* ── Season scrubber ── */
    .scrub-bars { display:flex; gap:6px; align-items:flex-end; height:74px; padding:0 2px; }
    .scrub-bar-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; cursor:pointer; position:relative; }
    .scrub-stack { width:74%; display:flex; flex-direction:column-reverse; gap:2px; transition:opacity .15s; }
    .scrub-count { position:absolute; top:-18px; font-family:var(--font-display); font-weight:700; font-size:14px; color:rgb(var(--olive-deep)); }
    .scrub-track { position:relative; height:48px; margin-top:8px; cursor:pointer; touch-action:none; }
    .scrub-line { position:absolute; top:23px; left:0; right:0; height:6px; border-radius:999px; background:rgb(var(--border)); }
    .scrub-fill { position:absolute; top:23px; left:0; height:6px; border-radius:999px; background:linear-gradient(90deg, rgb(var(--orange)), rgb(var(--gold)), rgb(var(--olive))); pointer-events:none; }
    .scrub-tick { position:absolute; top:19px; width:2px; height:14px; background:rgb(var(--border-2)); transform:translateX(-1px); pointer-events:none; }
    .scrub-handle { position:absolute; top:9px; width:30px; height:30px; border-radius:999px; background:#fff; border:3px solid rgb(var(--olive-deep)); box-shadow:0 4px 14px rgba(0,0,0,0.25); transform:translateX(-15px); display:grid; place-items:center; cursor:grab; transition:left .14s cubic-bezier(.2,.85,.25,1); }
    .scrub-handle:active, .scrub-handle.dragging { cursor:grabbing; }
    .scrub-handle.dragging { transition:none; }
    .scrub-handle.parked { opacity:.45; border-color:rgb(var(--border-2)); }
    .scrub-flag { position:absolute; bottom:38px; left:50%; transform:translateX(-50%); background:rgb(var(--olive-deep)); color:#fff; padding:5px 11px; border-radius:8px; white-space:nowrap; font-family:var(--font-mono); font-size:11px; font-weight:500; }
    .scrub-flag::after { content:""; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%) rotate(45deg); width:8px; height:8px; background:rgb(var(--olive-deep)); }
    .scrub-labels { display:flex; margin-top:2px; }
    .scrub-mlabel { flex:1; text-align:center; font-family:var(--font-mono); font-size:10.5px; color:rgb(var(--fg-muted)); cursor:pointer; padding:4px 0; border-radius:6px; transition:all .12s; }
    .scrub-mlabel:hover { background:rgb(var(--border)); }
    .scrub-mlabel.on { color:rgb(var(--olive-deep)); font-weight:600; }
  