/* ==========================================================================
   SixGP — design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ink (background scale) */
  --ink-950: #06080b;
  --ink-900: #0b0f15;
  --ink-850: #10151d;
  --ink-800: #161c25;
  --ink-700: #1e2531;
  --ink-600: #2a3140;
  --ink-500: #3a4252;

  /* foreground */
  --fg-50:  #f7f9fc;
  --fg-100: #e6eaf2;
  --fg-300: #a6aebd;
  --fg-500: #7d8696;  /* lightened for WCAG AA body contrast on ink-950 */
  --fg-700: #4a5161;

  /* brand */
  --brand:      #ffd60a;
  --brand-dim:  #e0b400;
  --brand-soft: rgba(255, 214, 10, 0.14);
  --brand-glow: rgba(255, 214, 10, 0.35);

  /* accents */
  --warm:  #ff7849;
  --cool:  #38bdf8;

  /* axes (data viz) */
  --axis-strength:  #ff8a50;  /* warm orange — red reads as an error state */
  --axis-power:     #a3e635;
  --axis-speed:     #38bdf8;
  --axis-endurance: #4ade80;
  --axis-agility:   #c084fc;
  --axis-grip:      #f472b6;

  /* states */
  --success: #34d399;
  --danger:  #f87171;
  --warning: #fbbf24;

  /* fonts */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* radii */
  --r-xs: 4px;  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --r-xl: 28px; --r-full: 999px;

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px var(--brand-soft), 0 0 40px var(--brand-glow);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ink-950);
  color: var(--fg-100);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 214, 10, 0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(56, 189, 248, 0.05), transparent 60%),
    radial-gradient(900px 600px at 0% 80%, rgba(255, 120, 73, 0.04), transparent 60%),
    var(--ink-950);
  min-height: 100vh;
}

a {
  color: var(--fg-100);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--brand); }

::selection {
  background: var(--brand);
  color: var(--ink-950);
}

/* Keyboard focus — the default outline disappears against the dark
   theme, so give every interactive element a visible brand ring. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  color: var(--fg-50);
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 28px); margin: var(--s-7) 0 var(--s-5); }
h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
     text-transform: uppercase; color: var(--fg-500); margin-bottom: var(--s-3); }
h4 { font-size: 14px; margin: 0 0 var(--s-2); }

p { margin: 0 0 var(--s-3); color: var(--fg-100); }
.muted { color: var(--fg-500); }
.mono  { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.tabular { font-variant-numeric: tabular-nums; }

code, pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--ink-800);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  border: 1px solid var(--ink-700);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--s-5); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.grid       { display: grid; gap: var(--s-4); }
.grid-2     { grid-template-columns: 1fr 1fr; }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }
.grid-6     { grid-template-columns: repeat(6, 1fr); }
.grid-hero  { grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--s-7); }
.grid-hero--top { align-items: start; }  /* headline top aligns with card top */

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4, .grid-6, .grid-hero { grid-template-columns: 1fr; }
}

main.container { padding: var(--s-8) var(--s-5) var(--s-9); }

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 21, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-700);
}
.topbar .row { padding: var(--s-4) 0; }

.brand {
  display: inline-flex; align-items: baseline; gap: var(--s-3);
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: 28px;
  line-height: 1;
  color: var(--fg-50);
  text-decoration: none;
  transition: opacity var(--transition);
}
.brand:hover { color: var(--fg-50); opacity: 0.9; }
.brand-logo {
  width: 28px; height: 28px;
  flex-shrink: 0;
  align-self: center;
  filter: drop-shadow(0 0 10px var(--brand-glow));
}
.brand-logo-live { display: inline-flex; }
.brand-logo-live .hexm-fill { filter: none; }

/* The rev logo (macros/logo.html). Static = lit. */
.hexrev { display: block; }
.hexrev .seg { stroke-dasharray: 101; stroke-dashoffset: 0; }
/* Rev once: arrival/achievement moments only. Each segment fills in
   sequence (per-seg duration/delay via --d/--t), then the mark
   punches and glows. */
.hexrev--once .seg {
  stroke-dashoffset: 101;
  animation: hexrev-fill var(--d) var(--t) linear forwards;
}
.hexrev--once .seg.s1 { animation-timing-function: cubic-bezier(.45, 0, 1, 1); }
@keyframes hexrev-fill { to { stroke-dashoffset: 0; } }
.hexrev--once .mark {
  transform-origin: 48px 48px;
  animation: hexrev-punch .38s 1.05s ease-out,
             hexrev-glow .6s 1.05s ease-out;
}
@keyframes hexrev-punch { 50% { transform: scale(1.05); } }
@keyframes hexrev-glow { 35% { filter: drop-shadow(0 0 10px rgba(255, 214, 10, .9)); } }
/* Loop: loading states ONLY. Perpetual motion = "still working". */
.hexrev--loop .seg {
  stroke-dashoffset: 101;
  animation: hexrev-chase 1.5s calc(var(--i) * .18s) linear infinite;
}
@keyframes hexrev-chase {
  0%   { stroke-dashoffset: 101; }
  35%  { stroke-dashoffset: 0; }
  72%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 101; }
}
@media (prefers-reduced-motion: reduce) {
  .hexrev .seg { animation: none !important; stroke-dashoffset: 0; }
  .hexrev .mark { animation: none !important; }
}

/* Hex loader: the loop variant + label, swapped in for spinners. */
.hex-loader {
  display: none;
  align-items: center; gap: var(--s-3);
  margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-300);
}
.hex-loader.is-active { display: flex; }
.brand-text {
  display: inline-flex; align-items: baseline; gap: 10px;
}
.brand-word { letter-spacing: -0.035em; }
.brand-accent {
  color: var(--brand);
  text-shadow: 0 0 24px var(--brand-glow);
}
.brand-text small {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--fg-500);
  text-transform: uppercase;
  position: relative;
  padding-left: 10px;
}
.brand-text small::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 1px; height: 12px;
  background: var(--ink-500);
  transform: translateY(-50%);
}

.nav {
  display: flex; align-items: center; gap: var(--s-1);
}
.nav a {
  color: var(--fg-300); font-size: 15px; font-weight: 500;
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { color: var(--fg-50); background: var(--ink-800); }
.nav a.active { color: var(--brand); }

.nav .btn-cta { margin-left: var(--s-2); }

/* ==========================================================================
   Buttons
   ========================================================================== */

/* The global button rule below is author-origin and would otherwise
   override the UA [hidden] { display:none }, rendering hidden buttons
   (e.g. the leaderboard's Enter-submit helper) as empty boxes. */
[hidden] { display: none !important; }

button, .btn, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--ink-600); background: var(--ink-800); color: var(--fg-50);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; line-height: 1;
}
button:hover, .btn:hover {
  background: var(--ink-700); border-color: var(--ink-500);
  transform: translateY(-1px);
}

.btn-primary, button.primary {
  background: var(--brand); color: var(--ink-950); border-color: transparent;
  font-weight: 700;
}
.btn-primary:hover, button.primary:hover {
  background: var(--brand-dim); color: var(--ink-950);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-ghost {
  background: transparent; border-color: var(--ink-600); color: var(--fg-100);
}
.btn-ghost:hover { background: var(--ink-800); }

.btn-cta {
  background: var(--brand); color: var(--ink-950) !important;
  padding: 9px 16px; border-radius: var(--r-full);
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.btn-cta:hover { background: var(--brand-dim); transform: translateY(-1px);
                 box-shadow: 0 6px 20px var(--brand-glow); }

.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-md); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}
.card:hover { border-color: var(--ink-600); }

a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-2px); border-color: var(--brand-soft); }
a.card:hover h3 { color: var(--brand); }

.card-elevated { box-shadow: var(--shadow-md); }
.card-glow {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Pills, chips, badges
   ========================================================================== */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--ink-800); border: 1px solid var(--ink-600);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 500; color: var(--fg-300);
  letter-spacing: 0.02em;
}
.pill-brand   { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.pill-warm    { background: rgba(255,120,73,0.14); border-color: transparent; color: var(--warm); }
.pill-success { background: rgba(52,211,153,0.14); border-color: transparent; color: var(--success); }
.pill-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
}

/* status pills (registration / event statuses) */
.pill[data-status="open"], .pill[data-status="confirmed"], .pill[data-status="active"]
  { background: rgba(52,211,153,0.14); color: var(--success); border-color: transparent; }
.pill[data-status="draft"], .pill[data-status="pending"]
  { background: var(--ink-800); color: var(--fg-300); }
.pill[data-status="closed"], .pill[data-status="complete"]
  { background: rgba(56,189,248,0.14); color: var(--cool); border-color: transparent; }
.pill[data-status="checked_in"]
  { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* ==========================================================================
   Forms
   ========================================================================== */

form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
form label  { color: var(--fg-300); font-size: 12px; font-weight: 600;
              letter-spacing: 0.04em; text-transform: uppercase; }

input, select, textarea {
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  color: var(--fg-50);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font: inherit; font-family: var(--font-sans);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type=number] { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
input::placeholder { color: var(--fg-700); }

input[type=checkbox] {
  width: auto; accent-color: var(--brand);
  vertical-align: middle; margin-right: 6px;
}

select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-300) 50%),
                    linear-gradient(135deg, var(--fg-300) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* ==========================================================================
   Flash
   ========================================================================== */

.flash {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
  border: 1px solid var(--ink-700);
  background: var(--ink-850);
  font-size: 14px;
}
.flash-success { border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); color: var(--success); }
.flash-error   { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); color: var(--danger); }
.flash-info    { border-color: var(--ink-600); }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ink-700); }
th {
  color: var(--fg-500); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink-900);
}
th:first-child { border-top-left-radius: var(--r-md); }
th:last-child  { border-top-right-radius: var(--r-md); }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: var(--ink-850); }
tbody tr:last-child td { border-bottom: 0; }

.rank-cell { font-family: var(--font-mono); font-weight: 600; color: var(--fg-500); width: 64px; }
.rank-badge {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: var(--r-full); font-family: var(--font-mono); font-weight: 700;
  font-size: 13px; color: var(--ink-950);
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffae00); box-shadow: 0 4px 14px rgba(255,174,0,0.4); }
.rank-2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); }
.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); color: var(--fg-50); }

/* Leaderboard hex rank badges: one consistent shape down the list,
   only color marks the podium. Matches the hexagonal brand language. */
.hex-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 34px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  background: var(--ink-800); color: var(--fg-300);
}
.hex-rank.r1 { background: linear-gradient(135deg, #ffd700, #ffae00); color: var(--ink-950); }
.hex-rank.r2 { background: linear-gradient(135deg, #f8fafc, #94a3b8); color: var(--ink-950); }
.hex-rank.r3 { background: linear-gradient(135deg, #e08c3c, #9a5b1e); color: var(--ink-950); }

/* The Hex Meter: six edges = six axes, fill = axis score. */
.hexm { display: block; }
.hexm-base {
  stroke: var(--ink-700);
  stroke-linecap: round;
  fill: none;
}
.hexm-fill {
  stroke: var(--brand);
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 6px var(--brand-glow));
  transition: stroke-dasharray 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hexm-label {
  font-family: var(--font-mono);
  font-size: 7.5px; font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--fg-500);
}
.hexm-label-val { fill: var(--brand); font-weight: 700; }
.hexm-score {
  font-family: var(--font-sans);
  font-size: 19px; font-weight: 800;
  letter-spacing: -0.02em;
  fill: var(--fg-50);
}
.hexm-sub {
  font-family: var(--font-mono);
  font-size: 5.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--fg-500);
}

/* Per-row six-axis silhouette */
.spark-col { width: 44px; }
.spark-col .hexm-fill { filter: none; }  /* 100 glows per page lags */
.hex-spark { width: 34px; height: 34px; display: block; }
.hex-spark-frame { fill: none; stroke: var(--ink-600); stroke-width: 1; }
.hex-spark-data {
  fill: rgba(255, 214, 10, 0.16);
  stroke: var(--brand); stroke-width: 1.2; stroke-linejoin: round;
}

/* One score color, hard right edge */
.lb-score { font-size: 18px; font-weight: 700; color: var(--fg-50); }

/* Clickable rows */
.lb-table tbody tr[data-href] { cursor: pointer; transition: background var(--transition); }
.lb-table tbody tr[data-href]:hover { background: var(--ink-850); }
.lb-table tbody tr[data-href]:hover .lb-score { color: var(--brand); }

/* Segmented control (Verified / Open) */
.seg-control {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-full);
}
.seg-control a {
  padding: 7px 18px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; color: var(--fg-300);
  transition: all var(--transition);
}
.seg-control a:hover { color: var(--fg-50); }
.seg-control a.active { background: var(--brand); color: var(--ink-950); }
.seg-control a.active.active-open { background: #fb923c; color: var(--ink-950); }

/* Cohort pills, lightly coded by sex for scanning mixed views */
.pill-sex-M { border-color: rgba(56, 189, 248, 0.35); color: #7dd3fc; background: rgba(56, 189, 248, 0.08); }
.pill-sex-F { border-color: rgba(244, 114, 182, 0.35); color: #f9a8d4; background: rgba(244, 114, 182, 0.08); }

/* Themed autocomplete dropdown (replaces the unstyleable native
   <datalist>). The menu matches the input width via left/right:0 on a
   relatively-positioned wrapper. */
.lb-ac { position: relative; }
.lb-ac-menu {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  z-index: 40;
  background: var(--ink-850);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  max-height: 248px; overflow-y: auto;
  padding: 4px;
}
.lb-ac-opt {
  padding: 8px 10px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 13px;
  color: var(--fg-100); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-ac-opt:hover, .lb-ac-opt.is-active {
  background: var(--brand-soft); color: var(--brand);
}

/* Self-log disclosure on the exercise detail page */
.selflog { border-top: 1px solid var(--ink-800); padding-top: var(--s-3); }
.selflog > summary {
  cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--fg-300);
}
.selflog > summary::-webkit-details-marker { display: none; }
.selflog > summary::before { content: "+ "; color: var(--fg-500); }
.selflog[open] > summary::before { content: "− "; }
.selflog > summary:hover { color: var(--brand); }

/* Inline info tooltip dot */
.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 999px;
  border: 1px solid var(--ink-500); color: var(--fg-500);
  font-size: 9px; font-style: normal; font-weight: 700;
  font-family: var(--font-mono); text-transform: lowercase;
  cursor: help;
}
.info-dot:hover, .info-dot:focus-visible { color: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--ink-700);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  padding: var(--s-8) 0 var(--s-5);
  color: var(--fg-300);
  font-size: 14px;
  margin-top: var(--s-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

.footer-brand .muted { font-size: 13px; line-height: 1.6; }

.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s-4);
  padding: 6px 12px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-300);
}
.footer-status-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  animation: pulse 2.2s ease-in-out infinite;
}

.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-50);
  margin: 0 0 var(--s-3);
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  color: var(--fg-300);
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4); flex-wrap: wrap;
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-700);
  color: var(--fg-500);
  font-size: 12px;
}
.footer-legal a { color: var(--fg-300); }
.footer-legal a:hover { color: var(--brand); text-decoration: none; }

.footer-social {
  display: inline-flex; gap: var(--s-2);
}
.footer-social a {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  color: var(--fg-300);
  transition: all var(--transition);
}
.footer-social a:hover {
  color: var(--ink-950);
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--brand-glow);
  text-decoration: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  /* main.container already pads 64px above; anything more pushes the
     headline below the first eye-fixation zone. */
  padding: var(--s-4) 0 var(--s-8);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  opacity: 0.7;
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand); box-shadow: 0 0 12px var(--brand);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--s-4);
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, var(--fg-50) 30%, var(--fg-300) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, #ff9f0a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--fg-300);
  max-width: 560px;
  margin: 0 0 var(--s-6);
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Compact how-it-works strip between the lead and the CTAs. */
.hero-steps {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  list-style: none; margin: 0 0 var(--s-5); padding: 0;
  font-size: 14px; color: var(--fg-300);
}
.hero-steps li { display: inline-flex; align-items: center; gap: 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}

/* Proof strip under the CTAs — rendered only when the numbers persuade. */
.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  font-size: 13px; color: var(--fg-500);
}
.hero-proof strong { color: var(--fg-100); font-weight: 700; }
.hero-proof span + span { padding-left: var(--s-4); border-left: 1px solid var(--ink-700); }

/* Tier + archetype line under the hero score number. */
.score-tier {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-2); flex-wrap: wrap;
  margin: var(--s-2) 0 var(--s-3);
}
.tier-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tier-color, var(--brand));
  border: 1px solid color-mix(in srgb, var(--tier-color, var(--brand)) 40%, transparent);
  background: color-mix(in srgb, var(--tier-color, var(--brand)) 12%, transparent);
}
.archetype-line { font-size: 12px; color: var(--fg-300); }

/* hero metric panel */
.hero-panel {
  position: relative;
  padding: var(--s-6);
  background: linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 100%);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, var(--brand-glow), transparent 50%);
  opacity: 0.4; pointer-events: none;
}
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }

/* hero carousel — crossfades stacked hero-panels.
   No overflow:hidden wrapper, so each panel keeps its border-radius + glow shadow.
   The active slide is in normal flow and defines the stage height; the others
   sit absolutely on top at opacity 0, so there is never an empty gap. */
.hero-carousel { position: relative; }
.carousel-stage {
  position: relative;
  display: grid;
  grid-template-areas: 'stack';
}
.carousel-slide {
  grid-area: stack;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide > .hero-panel { height: 100%; }
.carousel-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-4); margin-top: var(--s-4);
}
.carousel-dots { display: inline-flex; align-items: center; gap: var(--s-2); }
.carousel-dot {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: var(--r-full);
  background: var(--ink-600); cursor: pointer;
  transition: width var(--transition), background var(--transition), box-shadow var(--transition);
}
.carousel-dot:hover { background: var(--ink-500); }
.carousel-dot.is-active {
  width: 22px; background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}
.carousel-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--ink-700); border-radius: var(--r-full);
  background: var(--ink-800); color: var(--fg-100);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.carousel-arrow:hover {
  border-color: var(--brand-soft); color: var(--brand);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* ==========================================================================
   Score display
   ========================================================================== */

.score-display {
  text-align: center;
  padding: var(--s-5) 0;
}
.score-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 128px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand);
  text-shadow: 0 0 60px var(--brand-glow);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.score-number-sm {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 36px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.score-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-500);
  margin-bottom: var(--s-2);
}
.score-meta {
  display: inline-flex; gap: var(--s-5);
  padding: var(--s-3) var(--s-5);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-full);
  margin-top: var(--s-3);
}
.score-meta .stat-num {
  font-family: var(--font-mono); font-weight: 700; color: var(--fg-50);
  font-size: 16px;
}
.score-meta .stat-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-500);
  display: block;
}

/* ==========================================================================
   Station tiles (six stations on landing)
   ========================================================================== */

.stations {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
  margin: var(--s-6) 0;
}
@media (max-width: 960px) { .stations { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stations { grid-template-columns: repeat(2, 1fr); } }

.station-tile {
  position: relative;
  padding: var(--s-4);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  transition: all var(--transition);
  overflow: hidden;
}
.station-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--axis-color, var(--brand));
}
.station-tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at bottom, var(--axis-color, var(--brand)), transparent 70%);
  opacity: 0.0; transition: opacity var(--transition);
  pointer-events: none;
}
.station-tile:hover { transform: translateY(-2px); border-color: var(--ink-500); }
.station-tile:hover::after { opacity: 0.08; }
.station-tile .axis-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--axis-color, var(--brand));
  margin-bottom: var(--s-2);
}
.station-tile .station-name {
  font-weight: 600; color: var(--fg-50); font-size: 14px;
  line-height: 1.3; margin-bottom: 4px;
}
.station-tile .station-meta {
  font-size: 11px; color: var(--fg-500);
  font-family: var(--font-mono);
}

/* Exercise catalog cards — the V1 storefront. Unlike .station-tile
   (a compact six-up strip), these are full destination cards: axis
   accent, big readable name, and an explicit CTA. */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}
.exercise-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s-5);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
}
.exercise-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--axis-color, var(--brand));
}
.exercise-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top, var(--axis-color, var(--brand)), transparent 65%);
  opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.exercise-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--axis-color, var(--brand)) 45%, transparent);
}
.exercise-card:hover::after { opacity: 0.07; }
.axis-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--axis-color, var(--brand));
}
.ex-name {
  display: block;
  font-size: 19px; font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.25; color: var(--fg-50);
  margin: 10px 0 6px;
}
.exercise-card .ex-meta {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-500);
}
.exercise-card .ex-meta .ex-first { color: var(--brand); }
.exercise-card .ex-cta {
  margin-top: auto; padding-top: var(--s-4);
  font-size: 13px; font-weight: 600; color: var(--brand);
  opacity: 0.75; transition: opacity var(--transition);
}
.exercise-card:hover .ex-cta { opacity: 1; }

.axis-color-strength  { --axis-color: var(--axis-strength); }
.axis-color-power     { --axis-color: var(--axis-power); }
.axis-color-speed     { --axis-color: var(--axis-speed); }
.axis-color-endurance { --axis-color: var(--axis-endurance); }
.axis-color-agility   { --axis-color: var(--axis-agility); }
.axis-color-grip      { --axis-color: var(--axis-grip); }

/* ==========================================================================
   Radar + profile blocks
   ========================================================================== */

.radar-wrap { max-width: 460px; margin: 0 auto; padding: var(--s-4); }

.axes-list { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.axes-list .axis-row {
  display: grid; grid-template-columns: 120px 1fr 50px;
  align-items: center; gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-700);
}
.axes-list .axis-row:last-child { border-bottom: 0; }
.axes-list .axis-name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--axis-color, var(--fg-300));
}
.axes-list .axis-bar {
  height: 6px; background: var(--ink-700); border-radius: var(--r-full);
  overflow: hidden;
}
.axes-list .axis-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--axis-color, var(--brand)), color-mix(in srgb, var(--axis-color, var(--brand)) 70%, white));
  border-radius: var(--r-full);
  box-shadow: 0 0 12px color-mix(in srgb, var(--axis-color, var(--brand)) 60%, transparent);
}
.axes-list .axis-value {
  font-family: var(--font-mono); font-weight: 600; text-align: right;
  color: var(--fg-50); font-variant-numeric: tabular-nums;
  font-size: 14px;
}

/* ==========================================================================
   Stat cards (admin dashboard, etc.)
   ========================================================================== */

.stat-card {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.stat-card .stat-label-up {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-500); margin-bottom: var(--s-3);
}
.stat-card .stat-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 40px; color: var(--fg-50);
  line-height: 1; font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.divider { border: 0; border-top: 1px solid var(--ink-700); margin: var(--s-6) 0; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }

.empty-state {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  color: var(--fg-500);
}
.empty-state .empty-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  background: var(--ink-800); border: 1px solid var(--ink-700);
  margin-bottom: var(--s-3);
  font-size: 24px;
}

/* ==========================================================================
   Avatars
   ========================================================================== */

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  flex-shrink: 0;
  display: block;
}
.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 96px; height: 96px; border-width: 2px; }
.avatar-xl {
  width: 140px; height: 140px;
  border: 3px solid var(--ink-700);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.avatar-ring {
  padding: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dim));
  border-radius: 50%;
  display: inline-block;
  line-height: 0;
}
.avatar-ring .avatar { border: 2px solid var(--ink-950); }

.avatar-upload {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4); background: var(--ink-900);
  border: 1px solid var(--ink-700); border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
.avatar-upload-actions {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.avatar-upload input[type=file] {
  background: transparent; border: 1px dashed var(--ink-600);
  padding: 10px; font-size: 13px; color: var(--fg-300);
  cursor: pointer;
}
.avatar-upload input[type=file]::file-selector-button {
  background: var(--ink-800); color: var(--fg-100);
  border: 1px solid var(--ink-600); border-radius: var(--r-sm);
  padding: 6px 12px; margin-right: 12px;
  font: inherit; cursor: pointer;
}
.avatar-upload input[type=file]::file-selector-button:hover {
  background: var(--ink-700);
}

/* ==========================================================================
   Visibility radio cards
   ========================================================================== */

.visibility-options { display: flex; flex-direction: column; gap: 8px; }
.visibility-option {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start; gap: var(--s-3);
  padding: 14px;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-sm);
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  color: var(--fg-100) !important;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.visibility-option:hover { border-color: var(--ink-500); }
.visibility-option input[type=radio] {
  width: auto; margin: 4px 0 0 0; accent-color: var(--brand);
}
.visibility-option:has(input:checked) {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.05), transparent);
}

/* ==========================================================================
   Capacity / progress bar
   ========================================================================== */

.capacity-bar {
  position: relative;
  height: 10px;
  background: var(--ink-700);
  border-radius: var(--r-full);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}
.capacity-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--fill-color, var(--brand)),
    color-mix(in srgb, var(--fill-color, var(--brand)) 65%, white)
  );
  border-radius: var(--r-full);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--fill-color, var(--brand)) 60%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Photo carousel (event galleries)
   ========================================================================== */

.photo-carousel { position: relative; }

.photo-carousel-stage {
  position: relative;
  display: grid;
  grid-template-areas: 'stack';
  aspect-ratio: 16 / 9;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.photo-slide {
  grid-area: stack;
  opacity: 0; visibility: hidden;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.photo-slide.is-active { opacity: 1; visibility: visible; }
.photo-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: none !important;
  transition: none;
}
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--s-5) var(--s-5) var(--s-4);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7) 60%);
  color: var(--fg-50);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.photo-arrow {
  position: absolute;
  top: calc(50% - 24px - 28px); /* offset to vertically center on image area */
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  background: rgba(6, 8, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg-50);
  border: 1px solid var(--ink-600);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 300;
  line-height: 0;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.photo-arrow:hover {
  background: var(--brand);
  color: var(--ink-950);
  border-color: var(--brand);
  box-shadow: 0 8px 24px var(--brand-glow);
}
.photo-arrow-prev { left: 16px; }
.photo-arrow-next { right: 16px; }

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.photo-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-800);
  border: 2px solid var(--ink-700);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: opacity var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0.55;
}
.photo-thumb:hover {
  opacity: 0.85;
  border-color: var(--ink-500);
  transform: none;
  background-color: var(--ink-800);
}
.photo-thumb.is-active {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 4px 16px var(--brand-glow);
}

/* Bright table link — bold, near-white default, brand-lime on hover. */
a.row-link {
  color: var(--fg-50);
  font-weight: 700;
  transition: color var(--transition);
}
a.row-link:hover { color: var(--brand); }

/* Event venue strip — gym name, address, get-directions button. */
.event-venue {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  max-width: 720px;
}
@media (max-width: 640px) {
  .event-venue { flex-direction: column; align-items: flex-start; }
}

/* keyboard-friendly focus */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ===========================================================
 *  TIER INDICATORS — Verified / Open / Estimate
 *  Single source of truth so every score-rendering surface
 *  uses the same green-check / yellow-star / dashed-estimate
 *  language. Macro lives at templates/macros/tier.html
 * =========================================================== */

/* Inline pill — used in tables, list rows, captions. */
.tier-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.tier-pill svg { width: 13px; height: 13px; }
/* Verified pill: muted emerald text/border. The hex SVG inside carries
 * its own deep-emerald body + white check; the pill chrome is just a
 * soft container in the same hue family. Mint-tinged emerald-300 for
 * the text reads as premium (not "checkbox-checked" toast green). */
.tier-pill--verified {
  background: rgba(6, 95, 70, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.tier-pill--open {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}
.tier-pill--estimate {
  background: rgba(251, 146, 60, 0.08);
  color: #fb923c;
  border: 1px dashed rgba(251, 146, 60, 0.4);
}

/* Inline tick wrapper — just a positioning container. The verified
 * variant has its own hexagon SVG inside, so no background or border
 * on the wrapper (the SVG is the badge). Open/estimate still use the
 * circular badge style since their content is a text glyph (★). */
.tier-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 0;
}
.tier-tick--verified {
  /* No bg / border / radius — the hex SVG IS the badge. The body
   * fill, inner highlight, and check all live in the SVG itself. */
  width: 18px; height: 18px;
}
.tier-tick--verified svg { width: 18px; height: 18px; display: block; }
.tier-tick--open {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.5);
  color: #fb923c;
  font-size: 11px;
}
.tier-tick--estimate {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.08);
  border: 1px dashed rgba(251, 146, 60, 0.5);
  color: #fb923c;
  font-size: 11px;
}

/* Superscript tick — sits at the top-right corner of a big score
 * exactly where a copyright/® mark would. Anchored to the score-
 * number's top-right by `top: 0` + a tiny negative right offset, so
 * the badge hugs the rightmost digit with a hair of breathing room.
 * Scales proportionally with the score's font-size at any size.
 * Parent needs `position: relative; display: inline-block`. */
.tier-tick--super {
  position: absolute;
  top: 0;
  right: -0.46em;
  width: 0.34em; height: 0.34em;
  margin-left: 0;
  font-size: inherit;
}
.tier-tick--super.tier-tick--verified svg {
  width: 100%; height: 100%;
  /* Subtle drop-shadow keeps the deep-emerald body legible against
   * radar/score colors behind it; doesn't add a glow. */
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.55));
}
