/* Shared directory presentation layer — two distinct verification publications.
   GLP1Checked (body.site-glp1): clinical price & compliance ledger — cool porcelain slate, teal accent, Space Grotesk + IBM Plex Sans + IBM Plex Mono.
   ToxProof (body.site-medspa): medical-aesthetics & regulatory publication — gallery white, deep claret accent, Source Serif 4 + Plus Jakarta Sans + JetBrains Mono.
   Type scale (14px floor, no uppercase micro-labels): 14 / 15 / 16 / 18 / 20 / 28 / 40 / 52.
   Headings are upright 400 or 500; card & compact UI text sits 1px under surrounding body copy. */

:root {
  /* GLP1Checked clinical instrument tokens */
  --paper: #f4f7f9;
  --paper-2: #ffffff;
  --wash: #eaf0f5;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d5dfe7;
  --line-strong: #94a8b8;
  --accent: #0b5563;
  --accent-2: #083e49;
  --accent-soft: #e0f2f5;
  --accent-ink: #ffffff;
  --footer-bg: #0b1622;
  --footer-ink: #cbd5e1;
  --shadow-rgb: 11, 22, 34;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --heading-weight: 500;
  --shadow-1: 0 1px 2px rgba(var(--shadow-rgb), 0.05), 0 4px 12px -8px rgba(var(--shadow-rgb), 0.14);
  --shadow-2: 0 2px 6px rgba(var(--shadow-rgb), 0.08), 0 14px 28px -12px rgba(var(--shadow-rgb), 0.22);
  --radius: 3px;
}

body.site-medspa {
  /* ToxProof medical-aesthetics + Texas regulatory tokens */
  --paper: #ffffff;
  --paper-2: #ffffff;
  --wash: #f5f2f4;
  --ink: #1b1419;
  --muted: #594a53;
  --line: #e4dce1;
  --line-strong: #bfaebb;
  --accent: #6b1d3a;
  --accent-2: #4d1229;
  --accent-soft: #f5e6ec;
  --accent-ink: #ffffff;
  --footer-bg: #1b1217;
  --footer-ink: #dfd5db;
  --shadow-rgb: 44, 18, 30;
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --heading-weight: 400;
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
main.container { padding-top: 2.5rem; padding-bottom: 4.5rem; }

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { left: 1rem; }

/* ---- headings (upright 400/500, tight display leading, balanced wrap) ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  font-style: normal;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.875rem, 3.8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 3.25rem 0 1rem;
}
h2:first-child { margin-top: 0; }
h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.008em;
  margin: 1.75rem 0 0.5rem;
}
p { margin: 0 0 1rem; text-wrap: pretty; }
main ul, main ol { padding-left: 1.25rem; }
main li { margin: 0.3125rem 0; }

/* ---- masthead & progressive-enhancement mobile drawer ---- */
.site-header {
  background: var(--paper-2);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
body.site-medspa .site-header {
  border-top-width: 4px;
  border-bottom-color: var(--line-strong);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}
body.site-medspa .brand {
  font-size: 1.5rem;
  font-weight: 500;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.brand-mark { color: var(--accent); flex: none; }

.nav-menu { position: relative; }
.nav-toggle {
  display: none;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav-menu[open] .nav-toggle::after {
  transform: rotate(-135deg) translateY(-1px);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4375rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---- page head & hero (distinct per brand) ---- */
.page-head {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}
body.site-medspa .page-head {
  background: var(--wash);
  border-bottom-color: var(--line);
  padding: 2rem 0 2.5rem;
}
.breadcrumbs {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* GLP1Checked hero: clinical ledger canvas with subtle hairline grid */
.hero {
  background:
    linear-gradient(to right, rgba(11, 85, 99, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(11, 85, 99, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3.5rem;
}
.hero h1 {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.52;
  color: var(--muted);
  max-width: 44rem;
  margin: 1.25rem 0 2rem;
}

/* ToxProof hero: clean gallery surface with architectural claret rule */
body.site-medspa .hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  padding: 4.5rem 0 4rem;
}
body.site-medspa .hero .container::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}
body.site-medspa .hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 19ch;
}
body.site-medspa .hero-sub {
  font-size: 1.1875rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.375rem;
  min-height: 2.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--accent);
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}
.btn-quiet {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}
.btn-quiet:hover {
  background: var(--paper-2);
  border-color: var(--accent);
  color: var(--accent-2);
  text-decoration: none;
}

/* ---- trust strip ---- */
.trust-strip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
body.site-medspa .trust-strip {
  background: var(--wash);
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-strip li {
  margin: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.trust-strip li + li { padding-left: 1.5rem; }
.trust-strip li:last-child { border-right: 0; }
.trust-strip strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- stat strip (real computed numbers only) ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 0 0 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
}
body.site-medspa .stat-strip {
  border-color: var(--line-strong);
  box-shadow: none;
}
.stat {
  padding: 1.125rem 1.375rem;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stat:last-child { border-right: 0; }
.stat dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.stat dd {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
body.site-glp1 .stat dd.stat-value {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.stat dd.stat-value { font-size: 2rem; }
.stat dd.stat-note {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 0.375rem;
  line-height: 1.35;
}

/* ---- answer-first summary box ---- */
.answer-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-1);
}
body.site-medspa .answer-box {
  background: var(--wash);
  box-shadow: none;
  border-radius: 0;
}
.answer-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.58;
  max-width: 68ch;
}

/* ---- status badges (14px floor, calm structured tags, color never sole signal) ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius);
  letter-spacing: 0;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: baseline;
}
.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge-verified { background: #e3f3eb; color: #0c4d2d; border-color: #9dd0b6; }
.badge-clinic { background: #e7eef8; color: #1f3c68; border-color: #afc2df; }
.badge-clinic::before { border-radius: 1px; }
.badge-stale, .badge-pending { background: #fbf1da; color: #69410d; border-color: #dfc384; }
.badge-stale::before, .badge-pending::before { background: transparent; border: 1.5px solid currentColor; }
.badge-flagged { background: #fbe8e5; color: #841c12; border-color: #e3aaa2; }
.badge-flagged::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.badge-missing, .badge-unverified { background: var(--paper); color: var(--muted); border: 1px dashed var(--line-strong); }
.badge-missing::before, .badge-unverified::before { background: transparent; border: 1.5px dashed currentColor; }

/* ---- tables / ledger (sticky headers + sticky first column on wide ledgers) ---- */
.table-wrap {
  overflow: auto;
  max-width: 100%;
  max-height: min(75vh, 720px);
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
  -webkit-overflow-scrolling: touch;
}
body.site-medspa .table-wrap {
  box-shadow: none;
  border-color: var(--line-strong);
}
table {
  width: 100%;
  min-width: 34rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover th, tbody tr:hover td { background: color-mix(in srgb, var(--wash) 65%, var(--paper-2)); }

/* Sticky first column for multi-column comparison & ledger tables */
.compare-table thead th:first-child,
.ledger-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 1px 0 0 var(--line);
}
.compare-table tbody th:first-child,
.ledger-table tbody th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper-2);
  box-shadow: 1px 0 0 var(--line);
}
.compare-table tbody tr:hover th:first-child,
.ledger-table tbody tr:hover th:first-child {
  background: color-mix(in srgb, var(--wash) 65%, var(--paper-2));
}

td .badge { margin: 0.125rem 0.25rem 0.125rem 0; white-space: normal; }
.table-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 -0.5rem;
}

/* ---- cards (distinct geometry per brand) ---- */
.card-grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  margin: 0;
  padding: 1.375rem 1.375rem 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
  border-left-color: var(--accent);
}
body.site-medspa .card {
  border-left: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  box-shadow: none;
}
body.site-medspa .card:hover {
  border-color: var(--line-strong);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-1);
}
.card-top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; }
.card-top h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.card-top h3 a { color: var(--ink); text-decoration: none; }
.card-top h3 a::after { content: ""; position: absolute; inset: 0; }
.card a:not(h3 a) { position: relative; z-index: 1; }
.card-top h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }

.card-price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.375rem;
}
.card-price .amt {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
body.site-glp1 .card-price .amt {
  font-family: var(--font-mono);
  font-size: 1.75rem;
}
.card-price .per { color: var(--muted); font-size: 0.9375rem; }
.card-price .what {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}
.card-price.is-empty .what { margin: 0; }
.card-city { margin: -0.375rem 0 0; color: var(--muted); font-size: 0.9375rem; }

.card-facts {
  margin: auto 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
.card-facts div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.card-facts dt { color: var(--muted); font-size: 0.875rem; flex-shrink: 0; }
.card-facts dd { margin: 0; font-size: 0.875rem; text-align: right; min-width: 0; }

.mark { display: inline-flex; align-items: center; gap: 0.4375rem; color: var(--ink); }
.mark::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; background: var(--line-strong); }
.mark-verified::before { background: #146c43; }
.mark-clinic::before { background: #2d5596; border-radius: 1px; }
.mark-pending::before, .mark-stale::before { background: transparent; border: 1.5px solid #9a6510; }
.mark-flagged::before { background: #a82018; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mark-missing, .mark-unverified { color: var(--muted); }
.record-status { margin: 0 0 1.5rem; }

/* ---- filter / search bar (hidden until JS adds .js to <html>) ---- */
html:not(.js) .filters { display: none; }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.125rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 0.5rem;
  z-index: 15;
  box-shadow: var(--shadow-1);
}
body.site-medspa .filters {
  border-color: var(--line-strong);
  box-shadow: 0 2px 10px -6px rgba(var(--shadow-rgb), 0.18);
}
.filter-search { flex: 1 1 22rem; display: block; }
.filter-select {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.filters input[type="search"],
.table-tools input[type="search"],
.filters select {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  min-height: 2.75rem;
}
.filters input[type="search"],
.table-tools input[type="search"] { width: 100%; min-width: 12rem; }
.filters button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5625rem 0.875rem;
  min-height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
}
.filter-empty {
  padding: 1.75rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* ---- pagination ---- */
.pagination {
  display: flex;
  gap: 0.375rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.pagination a, .pagination span {
  padding: 0.5rem 0.875rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent);
  text-decoration: none;
  background: var(--paper-2);
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--accent); background: var(--wash); }
.pagination [aria-current="page"], .pagination .current {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}

/* ---- FAQ, notices, sponsored, corrections, claim form ---- */
.faq { padding: 1.125rem 0; border-top: 1px solid var(--line); }
.faq h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  margin: 0.5rem 0;
  background: var(--paper-2);
}
.faq summary { cursor: pointer; font-weight: 600; }

.disclaimer {
  border-left: 3px solid var(--line-strong);
  background: transparent;
  padding: 0.25rem 0 0.25rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.52;
  color: var(--muted);
  margin: 0.75rem 0 1.25rem;
}
.sponsored {
  border: 1px dashed #b97c1d;
  background: #fdf6e6;
  padding: 1.375rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.sponsored .sponsored-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #69410d;
  margin: 0 0 0.5rem;
}
.lead-bridge {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--wash);
  padding: 1.5rem;
  margin: 3rem 0 0;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.lead-bridge h2 { margin-top: 0; font-size: 1.5rem; }
.lead-bridge-cta a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  min-height: 2.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.lead-bridge-cta a:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.editorial-separation {
  border-top: 1px solid var(--line-strong);
  margin: 2rem 0;
  padding-top: 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.corrections {
  margin: 3rem 0 0;
  padding: 1.375rem 1.5rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted);
}
.corrections h2 { margin: 0 0 0.625rem; font-size: 1.25rem; color: var(--ink); }
.corrections p:last-child { margin-bottom: 0; }

/* Claim form styling */
#claim-listing {
  max-width: 36rem;
  padding: 1.75rem;
  background: var(--wash);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
#claim-listing label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
#claim-listing input[type="email"],
#claim-listing input:not([type]) {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.6875rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 2.75rem;
}
#claim-listing input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.5rem;
  vertical-align: -0.15em;
  accent-color: var(--accent);
}
#claim-listing button[type="submit"] {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.375rem;
  min-height: 2.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}
#claim-listing button[type="submit"]:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* ---- mono values: licence numbers, hashes, timestamps (14px floor) ---- */
code, kbd, samp, time {
  font-family: var(--font-mono);
  font-size: max(0.875rem, 0.9375em);
}

/* ---- footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.875rem;
}
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.5rem;
}
.footer-brand p:last-child { max-width: 38ch; margin: 0; line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.site-footer .disclaimer {
  border-left-color: rgba(255, 255, 255, 0.35);
  color: var(--footer-ink);
  margin: 1.75rem 0 0;
  font-size: 0.875rem;
}
.footer-fine {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--footer-ink);
  margin: 0.75rem 0 0;
  max-width: 78ch;
}

/* ---- 404 ---- */
.not-found {
  padding-top: 4rem;
  padding-bottom: 5rem;
  max-width: 42rem;
}

/* ---- directory bands & components ---- */
.band { padding: 4rem 0; }
.band:first-of-type { padding-top: 1.25rem; }
.band-wash {
  background: var(--wash);
  box-shadow: 0 0 0 100vmax var(--wash);
  clip-path: inset(0 -100vmax);
}
.home-records { padding-bottom: 0; }
.home-records > .answer-box { margin-bottom: 1.25rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: 0 0 1.75rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.section-head .section-lede {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 1rem;
  margin: 0.25rem 0 0;
}
.see-all {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.see-all:hover { text-decoration: underline; }
.see-all::after { content: " \2192"; }
.see-all-row { margin-top: 1.5rem; }
.home-links { padding: 0 0 4rem; font-weight: 600; }

/* hero search + stats */
.hero-search {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 0 2rem;
}
html:not(.js) .hero-search { display: none; }
.hero-search .filter-search { flex: 1; }
.hero-search input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.9375rem 1.25rem;
  min-height: 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.hero-search input[type="search"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow-1);
}
.hero-search .filter-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 0;
}
.hero .stat-strip { margin: 0 0 2.25rem; max-width: 58rem; }

/* treatment toggle row (calm sentence-case toggles, not candy chips) */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
html:not(.js) .pill-row { display: none; }
.pill-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.pill {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9375rem;
  min-height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* link cards (metros, treatments, related) */
.link-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.link-cards.cols-3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.link-cards li { margin: 0; }
.link-cards a {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  height: 100%;
  padding: 1.375rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.link-cards a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
  color: var(--ink);
}
body.site-medspa .link-cards a {
  box-shadow: none;
  border-color: var(--line-strong);
}
body.site-medspa .link-cards a:hover {
  box-shadow: var(--shadow-1);
  border-color: var(--accent);
}
.lc-kicker { color: var(--muted); font-size: 0.875rem; }
.lc-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lc-meta { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.metro-cards .lc-title { font-size: 1.625rem; }
body.site-medspa .metro-cards a {
  border-left: 3px solid var(--accent);
}

/* method + rules cards */
.method-grid, .rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.method-card, .rule-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.625rem;
  box-shadow: var(--shadow-1);
}
body.site-medspa .method-card,
body.site-medspa .rule-card {
  box-shadow: none;
  border-color: var(--line-strong);
}
.method-k { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin: 0 0 0.375rem; }
.method-v {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
body.site-glp1 .method-v.num { font-family: var(--font-mono); }
.method-card p:last-child { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.rule-card h3 { margin: 0; font-size: 1.5rem; font-weight: 500; }
.rule-card h3 a { color: var(--ink); text-decoration: none; }
.rule-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.rule-facts { margin: 1.25rem 0; display: grid; gap: 1rem; }
.rule-facts dt { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.rule-facts dd { margin: 0.25rem 0 0; color: var(--muted); max-width: 72ch; font-size: 0.9375rem; }
.rule-card .card-link { margin: 0; font-weight: 600; }

/* table helpers */
.num { font-variant-numeric: tabular-nums; }
th.num, td.num { text-align: right; }
.mono { font-family: var(--font-mono); font-size: 0.875rem; white-space: nowrap; }
.muted { color: var(--muted); }
.is-empty { color: var(--line-strong); }
.compare-table .per { color: var(--muted); font-size: 0.875rem; margin-left: 0.25rem; }
.compare-table thead th a { color: inherit; text-decoration: none; }
.compare-table thead th a:hover { color: var(--accent); text-decoration: underline; }
.price-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.price-link:hover { color: var(--accent); text-decoration: underline; }
.ledger-table td.subject { min-width: 18rem; color: var(--muted); }
.kv-table { min-width: 0; }
.kv-table tbody th { width: 32%; color: var(--muted); font-weight: 500; }
.empty-note { color: var(--muted); }

/* lists */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  margin: 0;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}
.source-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.source-list li { margin: 0; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.source-list a { font-weight: 600; text-decoration: none; }
.source-list a:hover { text-decoration: underline; }
main > ul:not([class]), main section > ul:not([class]) { padding-left: 1.25rem; }

/* ---- a11y ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-footer a:focus-visible { outline-color: #ffffff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .btn-primary:hover, .link-cards a:hover { transform: none; }
}

/* ---- desktop stat-strip equal columns ---- */
@media (min-width: 761px) {
  .stat-strip:has(> .stat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-strip:has(> .stat:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-menu:not([open]) .site-nav { display: flex; }
}

/* ---- mobile (390px clean, zero page horizontal overflow) ---- */
@media (max-width: 760px) {
  .container { padding: 0 1rem; }
  main.container { padding-top: 1.75rem; padding-bottom: 3rem; }
  .masthead {
    flex-wrap: wrap;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }
  .nav-menu { margin-left: auto; position: static; }
  .nav-toggle { display: inline-flex; }
  html.js .nav-menu[open] .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    padding: 0.375rem 1rem 0.75rem;
    margin-top: 0;
  }
  html:not(.js) .nav-menu[open] { width: 100%; margin-left: 0; }
  html:not(.js) .nav-toggle { display: none; }
  .nav-menu .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.375rem;
    border-top: 1px solid var(--line);
  }
  .nav-menu .site-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
  }
  .nav-menu .site-nav a:last-child { border-bottom: 0; }

  h2 { font-size: 1.5rem; margin-top: 2.5rem; }
  .hero, body.site-medspa .hero { padding: 2.75rem 0 2.5rem; }
  .hero-sub, body.site-medspa .hero-sub { font-size: 1.0625rem; margin: 1rem 0 1.5rem; }
  .hero-search { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .trust-strip ul { grid-template-columns: 1fr; }
  .trust-strip li, .trust-strip li + li {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-strip li:last-child { border-bottom: 0; }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:last-child { border-bottom: 0; }
  .stat:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .stat dd.stat-value { font-size: 1.625rem; }

  .card-grid { grid-template-columns: 1fr; }
  .card-facts div { flex-direction: column; gap: 0.125rem; }
  .card-facts dd { text-align: left; }

  .filters {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
  .filter-select, .filters select, .filters button { width: 100%; }
  .filter-count { margin-left: 0; }

  .band { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.25rem; }
  table { font-size: 0.875rem; }
  th, td { padding: 0.75rem 0.75rem; }
  .kv-table tbody th { width: 38%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
