/* ==================================================================
   On the Map SF — styles
   Palette: bay fog greys, a rust/green/blue triad for the three signals.
   Type: Bricolage Grotesque for headings + data, Newsreader for prose.
   ================================================================== */

:root {
  --paper: #eceff0;
  --surface: #ffffff;
  --surface-2: #f6f7f5;
  --ink: #15191b;
  --muted: #5d6763;
  --line: #d7dcd8;
  --line-strong: #b9c1bc;

  --rep: #a3591c;
  --search: #17594c;
  --site: #3c5f93;
  --accent: #17594c;
  --accent-ink: #0f3d34;

  --good: #17594c;
  --warn: #a3591c;
  --bad: #8d3b3b;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(21, 25, 27, .06), 0 8px 24px -16px rgba(21, 25, 27, .35);
  --maxw: 1140px;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14181a;
    --surface: #1b2022;
    --surface-2: #21272a;
    --ink: #e9eeeb;
    --muted: #9aa5a0;
    --line: #2e3538;
    --line-strong: #414a4d;
    --rep: #d99450;
    --search: #6cc3ac;
    --site: #8fb0e0;
    --accent: #6cc3ac;
    --accent-ink: #0f3d34;
    --good: #6cc3ac;
    --warn: #d99450;
    --bad: #e08b8b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -18px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --paper: #14181a;
  --surface: #1b2022;
  --surface-2: #21272a;
  --ink: #e9eeeb;
  --muted: #9aa5a0;
  --line: #2e3538;
  --line-strong: #414a4d;
  --rep: #d99450;
  --search: #6cc3ac;
  --site: #8fb0e0;
  --accent: #6cc3ac;
  --accent-ink: #0f3d34;
  --good: #6cc3ac;
  --warn: #d99450;
  --bad: #e08b8b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -18px rgba(0, 0, 0, .8);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  font-synthesis-weight: none;
}

h1, h2, h3, h4, th, .num, .btn-primary, .btn-secondary, .btn-ghost {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.04; margin: 0 0 .5em; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -0.025em; }
h3 { font-size: 1.08rem; line-height: 1.25; margin: 0 0 .35em; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------------- nav ---------------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em;
  font-size: 1.05rem; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: block;
  box-shadow: 0 3px 10px -6px rgba(15, 43, 37, .8);
}
.brand-name { display: inline-flex; align-items: baseline; gap: .28em; }
.brand-name strong {
  color: var(--accent);
  font-size: .78em;
  letter-spacing: .08em;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 7px 11px; border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-links .nav-cta {
  color: #fff; background: var(--accent); padding: 8px 14px;
}
:root[data-theme="dark"] .nav-links .nav-cta { color: #0f2b25; }
.nav-links .nav-cta:hover { background: var(--accent-ink); color: #fff; }

/* ---------------- hero photo ----------------------------- */
/* The hero is a full-bleed photo with a gradient overlay.
   On deployed sites the <img> loads from the src URL.
   In the artifact preview a CSS gradient stands in.       */

.hero-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0d2235;                /* shown while image loads / as fallback */
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: clamp(520px, 62vw, 720px);
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(.72) saturate(1.15);
}
.hero-photo-slim .hero-photo-img {
  height: clamp(160px, 22vw, 240px);
}

/* dark-to-transparent gradient so text is always readable */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(8, 18, 26, .94) 0%,
                              rgba(8, 18, 26, .70) 38%,
                              rgba(8, 18, 26, .28) 66%,
                              transparent           100%),
    linear-gradient(to right, rgba(8, 18, 26, .60) 0%,
                               transparent          60%);
  display: flex;
  align-items: flex-end;
}
.hero-photo-slim .hero-photo-overlay {
  background:
    linear-gradient(to top,  rgba(8, 18, 26, .88) 0%,
                              rgba(8, 18, 26, .55) 50%,
                              transparent          100%);
  align-items: flex-end;
}

.hero-photo-content {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 36px);
}

.hero-tag {
  font-family: var(--sans);
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.hero-tag::before {
  content: ""; width: 22px; height: 2px;
  background: #6cc3ac;            /* --search green works as accent on dark */
  border-radius: 2px;
}

.hero-photo-content h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 18em;
  text-wrap: balance;
}
.hero-slim-title {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem) !important;
  margin-bottom: 0 !important;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(.96rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.82);
  max-width: 58ch;
  margin: 0 0 28px;
  line-height: 1.55;
}

.hero-photo-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 38px;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: #6cc3ac; color: #0f2b25;
  font-family: var(--sans); font-size: .98rem; font-weight: 700;
  padding: 13px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent;
  transition: background .14s ease;
}
.btn-hero-primary:hover { background: #89d4bf; color: #0a1f19; }
.btn-hero-secondary {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  transition: background .14s ease, border-color .14s ease;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }

.hero-photo-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 18px;
}
.hero-photo-stat {
  display: flex; flex-direction: column; gap: 3px;
}
.hero-photo-stat-val {
  font-family: var(--sans);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em;
  color: #fff; line-height: 1;
}
.hero-photo-stat-label {
  font-family: var(--sans);
  font-size: .8rem; color: rgba(255,255,255,.62);
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .hero-photo-img { height: clamp(400px, 90vw, 560px); }
  .hero-photo-slim .hero-photo-img { height: clamp(140px, 40vw, 200px); }
  .hero-photo-stats { gap: 18px; }
  .hero-photo-stat-val { font-size: 1.25rem; }
}

/* ---------------- buttons ---------------- */


.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0f2b25; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--muted); border-color: var(--line);
  padding: 8px 12px; font-size: .86rem;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------------- hero photo ----------------------------- */
/* The hero is a full-bleed photo with a gradient overlay.
   On deployed sites the <img> loads from the src URL.
   In the artifact preview a CSS gradient stands in.       */

.hero-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0d2235;                /* shown while image loads / as fallback */
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: clamp(520px, 62vw, 720px);
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(.72) saturate(1.15);
}
.hero-photo-slim .hero-photo-img {
  height: clamp(160px, 22vw, 240px);
}

/* dark-to-transparent gradient so text is always readable */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(8, 18, 26, .94) 0%,
                              rgba(8, 18, 26, .70) 38%,
                              rgba(8, 18, 26, .28) 66%,
                              transparent           100%),
    linear-gradient(to right, rgba(8, 18, 26, .60) 0%,
                               transparent          60%);
  display: flex;
  align-items: flex-end;
}
.hero-photo-slim .hero-photo-overlay {
  background:
    linear-gradient(to top,  rgba(8, 18, 26, .88) 0%,
                              rgba(8, 18, 26, .55) 50%,
                              transparent          100%);
  align-items: flex-end;
}

.hero-photo-content {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) clamp(16px, 4vw, 36px);
}

.hero-tag {
  font-family: var(--sans);
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.hero-tag::before {
  content: ""; width: 22px; height: 2px;
  background: #6cc3ac;            /* --search green works as accent on dark */
  border-radius: 2px;
}

.hero-photo-content h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 18em;
  text-wrap: balance;
}
.hero-slim-title {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem) !important;
  margin-bottom: 0 !important;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(.96rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.82);
  max-width: 58ch;
  margin: 0 0 28px;
  line-height: 1.55;
}

.hero-photo-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 38px;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: #6cc3ac; color: #0f2b25;
  font-family: var(--sans); font-size: .98rem; font-weight: 700;
  padding: 13px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent;
  transition: background .14s ease;
}
.btn-hero-primary:hover { background: #89d4bf; color: #0a1f19; }
.btn-hero-secondary {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  transition: background .14s ease, border-color .14s ease;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }

.hero-photo-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 18px;
}
.hero-photo-stat {
  display: flex; flex-direction: column; gap: 3px;
}
.hero-photo-stat-val {
  font-family: var(--sans);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em;
  color: #fff; line-height: 1;
}
.hero-photo-stat-label {
  font-family: var(--sans);
  font-size: .8rem; color: rgba(255,255,255,.62);
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .hero-photo-img { height: clamp(400px, 90vw, 560px); }
  .hero-photo-slim .hero-photo-img { height: clamp(140px, 40vw, 200px); }
  .hero-photo-stats { gap: 18px; }
  .hero-photo-stat-val { font-size: 1.25rem; }
}

/* ---------------- buttons ---------------- */


.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0f2b25; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--muted); border-color: var(--line);
  padding: 8px 12px; font-size: .86rem;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------------- hero ---------------- */

/* REMOVED: .hero { background: var(--surface); border-bottom: 1px solid var(--line); } */
/* REMOVED: .hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 68px 22px 56px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
} */
/* REMOVED: .hero-eyebrow {
  font-family: var(--sans); font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
} */
.hero-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
/* REMOVED: .hero p.lede { font-size: 1.12rem; color: var(--ink); max-width: 56ch; } */


/* REMOVED: .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; } */
/* REMOVED: .hero-stats {
  display: flex; flex-wrap: wrap; gap: 30px;
  border-top: 1px solid var(--line); padding-top: 20px;
} */
/* REMOVED: .hero-stat-val { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; } */
/* REMOVED: .hero-stat-label { font-family: var(--sans); font-size: .82rem; color: var(--muted); } */

/* live standings card in the hero */
.standings {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.standings-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: var(--surface-2);
}
.standings-head strong { font-family: var(--sans); font-size: .95rem; }
.standings-head span { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.standings-row {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.standings-row:last-child { border-bottom: 0; }
.standings-foot {
  padding: 12px 18px; background: var(--surface-2); border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: .82rem; color: var(--muted);
}

/* ---------------- sections ---------------- */

.section { padding: 72px 0; }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section-header { max-width: 60ch; margin-bottom: 38px; }
.section-header p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--accent);
  margin-bottom: 8px;
}

/* process — a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.step-card { background: var(--surface); padding: 26px 22px; }
.step-card p { font-size: .94rem; color: var(--muted); margin-bottom: 0; }
.step-number {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--accent);
  border: 1px solid var(--line-strong); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
}

/* score buckets */
.buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bucket-card {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 12px; padding: 24px 22px;
}
.bucket-rep    { border-top-color: var(--rep); }
.bucket-search { border-top-color: var(--search); }
.bucket-site   { border-top-color: var(--site); }
.bucket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bucket-icon { font-size: 1.3rem; }
.bucket-weight { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.bucket-rep .bucket-weight { color: var(--rep); }
.bucket-search .bucket-weight { color: var(--search); }
.bucket-site .bucket-weight { color: var(--site); }
.bucket-card > p { font-size: .94rem; color: var(--muted); }
.bucket-signals { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 7px; }
.bucket-signal { font-family: var(--sans); font-size: .85rem; color: var(--muted); display: flex; gap: 8px; }
.bucket-signal::before { content: "—"; color: var(--line-strong); }

/* ---------------- tables ---------------- */

.table-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
thead th {
  text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th .sort-arrow { color: var(--line-strong); margin-left: 4px; }
th[aria-sort] .sort-arrow { color: var(--accent); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-excluded { opacity: .62; }
tbody tr.is-moved td { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.rank-badge {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.rank-1 { background: #f2c14b; color: #3b2c06; border-color: #d9a82f; }
.rank-2 { background: #d6dbdc; color: #2c3336; border-color: #b9c1c3; }
.rank-3 { background: #e0b48a; color: #40280f; border-color: #c89465; }

.biz-name { display: block; font-weight: 600; font-size: .97rem; }
.biz-address { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.biz-cell { min-width: 220px; }
.biz-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; }
.biz-icon-btn {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px; text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.biz-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.biz-icon-btn:hover { background: color-mix(in srgb, var(--accent) 17%, transparent); transform: translateY(-1px); }
.biz-icon-btn.is-disabled { color: var(--line-strong); background: var(--surface-2); border-color: var(--line); cursor: not-allowed; }
.biz-flag { font-size: .74rem; color: var(--warn); margin-top: 3px; }

.score-pill {
  display: inline-block; padding: 4px 10px; border-radius: 7px;
  font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.score-high { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.score-mid  { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.score-low  { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }

.bar-mini { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--surface-2); min-width: 150px; }
.bar-mini-seg { height: 100%; }
.bar-legend { display: flex; gap: 10px; margin-top: 5px; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.rating-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.rating-val::before { content: "★ "; color: var(--rep); }
.review-count { font-variant-numeric: tabular-nums; color: var(--muted); }

.pack-chip {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted);
  white-space: nowrap;
}
.pack-1, .pack-2, .pack-3 {
  font-weight: 800;
}
.pack-1 { background: #f2c14b; color: #3b2c06; border-color: #d9a82f; }
.pack-2 { background: #d6dbdc; color: #2c3336; border-color: #b9c1c3; }
.pack-3 { background: #e0b48a; color: #40280f; border-color: #c89465; }
.pack-none { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

.siteq { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.siteq-val { font-weight: 700; font-size: .95rem; }
.siteq-band {
  font-size: .72rem; font-weight: 600; padding: 2px 7px; border-radius: 20px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.siteq-strong { color: var(--good); border-color: color-mix(in srgb, var(--good) 34%, transparent); }
.siteq-fair { color: var(--muted); }
.siteq-weak { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 38%, transparent); }
.siteq-needs-work { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 34%, transparent); }

.board-lede { max-width: 66ch; margin: 14px 0 0; font-size: .98rem; color: var(--muted); }
.board-lede strong { color: var(--ink); }

.preview-section { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-cta { margin-top: 24px; }

/* ---------------- leaderboard ---------------- */

.board-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.board-head-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.board-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--muted);
}
.tag-sample { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.picker label { font-family: var(--sans); font-size: .85rem; color: var(--muted); }

select, input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="tel"], textarea {
  font-family: var(--sans); font-size: .92rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
}
textarea { font-family: var(--serif); min-height: 96px; resize: vertical; }
select:hover { border-color: var(--ink); }

.board-layout {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 72px;
  display: grid; grid-template-columns: 296px 1fr; gap: 28px; align-items: start;
}
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; margin-bottom: 18px;
}
.panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.sidebar { position: sticky; top: 72px; }

.help-btn {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); font-family: var(--sans); font-size: .74rem;
  cursor: pointer; line-height: 1; display: grid; place-items: center; padding: 0;
}
.help-btn:hover { color: var(--ink); border-color: var(--ink); }

.weight { margin-bottom: 18px; }
.weight-top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--sans); font-size: .9rem; margin-bottom: 7px;
}
.weight-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.weight-rep .weight-val, .weight-rep .weight-name { color: var(--rep); }
.weight-search .weight-val, .weight-search .weight-name { color: var(--search); }
.weight-site .weight-val, .weight-site .weight-name { color: var(--site); }

input[type="range"] { width: 100%; accent-color: var(--accent); margin: 0; }
.weight-rep input[type="range"] { accent-color: var(--rep); }
.weight-search input[type="range"] { accent-color: var(--search); }
.weight-site input[type="range"] { accent-color: var(--site); }

.weight-sum {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: .82rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px;
}
.weight-sum strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.field { margin-bottom: 14px; }
.field label, .field legend {
  display: block; font-family: var(--sans); font-size: .85rem; font-weight: 500;
  margin-bottom: 5px;
}
.field .hint { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: 4px; }
.req { color: var(--bad); }

.key-item { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 10px; font-size: .85rem; font-family: var(--sans); }
.key-dot { width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; flex: none; }
.key-item span { color: var(--muted); }
.key-item strong { display: block; color: var(--ink); font-weight: 600; }

.board-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
}
.stat-val { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-family: var(--sans); font-size: .78rem; color: var(--muted); }

.movement { font-family: var(--sans); font-size: .78rem; font-variant-numeric: tabular-nums; margin-top: 3px; }
.move-up { color: var(--good); }
.move-down { color: var(--bad); }

.board-note { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: 14px; }
.empty-state { padding: 46px 22px; text-align: center; color: var(--muted); font-family: var(--sans); }

#boardTable { table-layout: fixed; min-width: 760px; }
#boardTable th, #boardTable td { padding-left: 10px; padding-right: 10px; }
#boardTable .biz-cell { min-width: 0; }
#boardTable th:nth-child(1) { width: 8%; }
#boardTable th:nth-child(2) { width: 31%; }
#boardTable th:nth-child(3) { width: 15%; }
#boardTable th:nth-child(4) { width: 10%; }
#boardTable th:nth-child(5) { width: 11%; }
#boardTable th:nth-child(6) { width: 14%; }
#boardTable th:nth-child(7) { width: 11%; }

/* ---------------- methodology ---------------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose table { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 1.4em 0; font-size: .92rem; }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.formula {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 20px; margin: 1.4em 0;
  font-family: var(--sans); font-size: .95rem;
}
.formula .caption { color: var(--muted); font-size: .84rem; margin-top: 8px; }
.callout {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin: 1.6em 0; font-size: .96rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------------- get-listed form ---------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset > .legend {
  font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px;
}
.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: .94rem; }
.form-status-ok { background: color-mix(in srgb, var(--good) 12%, transparent); border: 1px solid color-mix(in srgb, var(--good) 34%, transparent); }
.form-status-err { background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 32%, transparent); }
.value-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.value-list li { display: flex; gap: 12px; }
.value-list .ico { font-size: 1.15rem; }
.value-list strong { display: block; font-family: var(--sans); font-size: .95rem; }
.value-list p { font-size: .9rem; color: var(--muted); margin: 2px 0 0; }

.submit-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .submit-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------- modal ---------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 20, 18, .55);
  display: grid; place-items: start center; padding: 28px 16px; overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  width: min(680px, 100%); box-shadow: var(--shadow); animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.modal-head p { font-size: .92rem; color: var(--muted); margin: 4px 0 0; }
.modal-body { padding: 22px; }
.modal-close {
  border: 0; background: transparent; color: var(--muted); font-size: 1.4rem;
  line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.modal-close:hover { color: var(--ink); background: var(--surface-2); }

/* ---------------- cta + footer ---------------- */

.cta-banner {
  background: var(--accent); color: #fff; text-align: center; padding: 64px 22px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 26px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-ink); }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,.88); color: var(--accent-ink); }
.cta-banner .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-banner .btn-secondary:hover { border-color: #fff; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: .85rem; color: var(--muted);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; padding: 48px 22px 44px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .buckets { grid-template-columns: 1fr; }
  .board-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .board-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .nav-inner { padding: 10px 16px; gap: 10px; }
  .nav-links a { padding: 6px 8px; font-size: .86rem; }
  .board-layout, .section-inner, .board-head-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
}

[hidden]{display:none!important}.board-layout>main{min-width:0}.nav-inner{flex-wrap:wrap}.form-grid .span-2{grid-column:1/-1}@media(max-width:620px){.nav-links{margin-left:0;width:100%}.picker select{min-width:0!important;width:100%!important}}

/* Prominent location labels and clear heading hierarchy. */
.hero-tag { font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.4; }
.hero-photo-content .hero-slim-title { font-size: clamp(2.5rem, 5vw, 3.5rem) !important; line-height: 1.08; }
.board-title h2 { font-size: clamp(1.4rem, 2.7vw, 1.9rem); }
.picker { align-items: flex-end; gap: 20px; }
.picker-field { display: grid; gap: 6px; min-width: 200px; }
@media(max-width:620px) { .picker-field { width:100%; min-width:0; } }
