/* Tokens follow the pidatahub design system: a token has a role, not a lightness. */
:root {
    color-scheme: dark;
    --bg: #0b0e11;
    --surface: #11161b;
    --panel: #171e24;
    --border: #29333d;
    --text: #f2f5f7;
    --muted: #a4b1bd;
    --accent: #a8e3c3;
    --accent-ground: #14231c;
    --accent-edge: #375245;
    --amber: #edce91;
    --amber-ground: #211e16;
    --amber-edge: #574b31;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -.04em; font-weight: 600; margin-bottom: 14px; overflow-wrap: anywhere; }
h1 .cred { color: var(--muted); font-weight: 500; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 13px; font-weight: 600; margin: 22px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
h3:first-child { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; max-width: 1192px; margin: 20px auto 0; padding: 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.logo { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 13px; padding: 6px 0; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 1240px) { .site-header { margin-inline: 16px; } }

.main { max-width: 1224px; margin: auto; padding: 32px 16px 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.eyebrow { color: var(--accent); font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; }
.lede { color: var(--muted); font-size: 17px; max-width: 680px; }
.note { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.hero { padding-bottom: 26px; }
.hero.home { padding: 28px 0 36px; max-width: 760px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; line-height: 1.5; color: var(--muted); background: var(--surface); text-decoration: none; white-space: nowrap; }
.badge.accent { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-ground); }
.badge.warn { color: var(--amber); border-color: var(--amber-edge); background: var(--amber-ground); }

.grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { display: grid; gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.col .panel { margin-bottom: 0; }
.panel > .note:last-child { margin-bottom: 0; }

ul.plain { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
ul.plain li { display: grid; gap: 2px; justify-items: start; }
address { font-style: normal; }
ul.columns { list-style: none; padding: 0; margin: 0 0 8px; columns: 3 220px; column-gap: 28px; }
ul.columns li { break-inside: avoid; padding: 3px 0; }
ul.dentists { list-style: none; padding: 0; margin: 0; columns: 2 320px; column-gap: 28px; }
ul.dentists li { break-inside: avoid; padding: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
ul.dentists a { text-decoration: none; }
ul.dentists a:hover { text-decoration: underline; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
dl.facts dt { color: var(--muted); font-size: 13px; }
dl.facts dd { margin: 0; }
.scroll { overflow-x: auto; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.search input { width: 100%; min-height: 54px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); outline: none; }
.results { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.results a { display: grid; gap: 1px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; }
.results a:hover { border-color: var(--accent-edge); }
.results span { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

.site-footer { max-width: 1192px; margin: 0 auto 40px; padding: 22px 16px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
@media (max-width: 1240px) { .site-footer { margin-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* UX review 2026-09-14: skip link, 44px touch targets, visible field edge, grouped lists. */
.skip { position: absolute; left: 16px; top: -48px; padding: 10px 14px; background: var(--accent); color: #10251a; border-radius: 8px; z-index: 10; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.site-nav a { padding: 12px 0; }
ul.dentists li { padding: 0; }
ul.dentists a { display: inline-block; padding: 10px 0; }
h2.group { font-size: 13px; font-weight: 600; margin: 24px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; scroll-margin-top: 16px; }
h2.group:first-child { margin-top: 0; }
h2.group a { color: var(--muted); text-decoration: none; display: inline-block; padding: 8px 0; }
h2.group a:hover { color: var(--text); text-decoration: underline; }
ul.columns a { display: inline-block; padding: 8px 0; }
ul.columns li { padding: 0; }
.definition { font-size: 13px; max-width: 760px; }
/* --field-border is at least 3:1 against both --bg and --panel (WCAG 1.4.11); --border is 1.3:1. */
:root { --field-border: #6b7885; }
.search input { border-color: var(--field-border); }
.search-status { margin: 10px 0 0; min-height: 1.4em; }
.results-group { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 6px 2px 0; }
.results a { min-height: 44px; }
.results .badge { justify-self: start; margin-top: 4px; }
.pager { flex-wrap: wrap; gap: 4px 6px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; }
.pager .current { color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
details.jump summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
details.jump[open] summary { margin-bottom: 10px; }

/* ---- Record scorecard (functions/_lib/scorecard.js) -------------------- */
/* Meaning is carried by a word ("State-verified"), never by colour alone. */
.scorecard { margin: 0 0 22px; }
.sc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.sc-dial { flex: 0 0 auto; min-width: 116px; padding: 14px 18px; border: 1px solid var(--accent-edge); border-radius: 12px; background: var(--accent-ground); text-align: center; }
.sc-dial.gated { border-color: var(--border); background: var(--surface); }
.sc-num { margin: 0; font: 700 32px/1 Inter, sans-serif; color: var(--accent); letter-spacing: -.02em; }
.sc-dial.gated .sc-num { color: var(--text); }
.sc-num span { font-size: 17px; font-weight: 600; color: var(--muted); }
.sc-cap { margin: 5px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.sc-lede { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 54ch; }
.sc-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.chks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.chk { display: flex; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--border); }
.chk:first-child { border-top: 0; }
.chk-mark { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; border: 1px solid var(--accent-edge); background: var(--accent); }
.chk.declared .chk-mark { background: var(--amber); border-color: var(--amber-edge); }
.chk.unknown .chk-mark { background: transparent; border-color: var(--field-border); }
.chk-body { min-width: 0; }
.chk-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 14px; }
.chk-state { font: 600 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.chk.declared .chk-state { color: var(--amber); }
.chk.unknown .chk-state { color: var(--muted); }
.chk-head { margin: 3px 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.chk.unknown .chk-head { color: var(--muted); }
.chk-src { display: inline-block; margin-top: 2px; color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .sc-top { gap: 14px; }
  .sc-dial { width: 100%; }
  .sc-num { font-size: 28px; }
}

/* ---- Dictation (site/js/dictate.js); hidden unless the browser supports it -- */
.search { position: relative; }
.dictate { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid var(--field-border); border-radius: 8px; background: var(--surface); color: var(--muted); font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.dictate:hover { color: var(--text); }
.dictate-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dictate.listening { color: var(--text); border-color: var(--accent-edge); background: var(--accent-ground); }
.dictate.listening .dictate-dot { background: var(--accent); animation: dictate-pulse 1.3s ease-in-out infinite; }
@keyframes dictate-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dictate.listening .dictate-dot { animation: none; } }
/* Keep typed text clear of the button and give it a real touch target. */
.search input { padding-right: 112px; }
@media (max-width: 460px) { .dictate { min-height: 44px; padding: 0 11px; } .search input { padding-right: 104px; } }

/* ---- Primary call to action -------------------------------------------- */
.cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--accent-edge); border-radius: 9px; background: var(--accent-ground); color: var(--accent); font-weight: 600; text-decoration: none; }
.cta:hover { color: var(--text); border-color: var(--accent); }

/* ---- Review collection form -------------------------------------------- */
.review form { margin-top: 16px; display: grid; gap: 14px; max-width: 560px; }
.rv-row { display: grid; gap: 6px; }
.rv-row label { font-size: 13px; font-weight: 600; color: var(--muted); }
.review select, .review textarea { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--panel); border: 1px solid var(--field-border); border-radius: 9px; }
.review textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.review select:focus, .review textarea:focus { border-color: var(--accent); outline: none; }
.review button { justify-self: start; }
.review button[disabled] { opacity: .55; cursor: default; }

/* ---- Tiering: locked panels and the account page ------------------------ */
/* A locked panel must read as a deliberate boundary, not as broken content:
   same frame as any other panel, one quiet rule down the edge. */
.locked { border-left: 2px solid var(--amber-edge); }
.locked h2 { color: var(--muted); }
.locked-what { margin: 6px 0 10px; color: var(--text); font-size: 15px; max-width: 46ch; }
.tier-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.accent-panel { border-color: var(--accent-edge); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; max-width: 54ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.accent-panel .cta { margin-top: 18px; }

/* ---- Typographic rhythm ------------------------------------------------- */
/* Long-form measure caps at ~62 characters: unbounded line length is the
   single most common reason a dense page reads as machine-generated. */
.panel p, .panel dd { max-width: 62ch; }
.panel + .panel { margin-top: 16px; }
h1 { letter-spacing: -0.021em; text-wrap: balance; }
.lede { text-wrap: pretty; }
.panel h2 { letter-spacing: -0.008em; }
.nav-cta { color: var(--accent) !important; font-weight: 600; }

/* ---- Hero stat row (record score, verified, reviews, action) ------------ */
/* A stat tile, not a chart: no plot, no axis, numbers in text tokens with a
   single accent carrying identity. Tiles share one frame so the row reads as
   one object rather than four floating cards. */
.herostats { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.stat { padding: 16px 18px; border-right: 1px solid var(--border); }
.stat:nth-child(3) { border-right: 0; }
.stat-lab { margin: 0; font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-num { margin: 8px 0 4px; font: 700 34px/1 Inter, sans-serif; letter-spacing: -.025em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-num span { font-size: 17px; font-weight: 600; color: var(--muted); }
.stat-num.quiet { color: var(--muted); }
.stat-cap { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
/* The masked score: the digits are not in the document at all. */
.stat-num.masked { color: var(--muted); }
/* Reads as a redacted value rather than missing content. There is no real
   number underneath: the digits were never sent. */
.mask { display: inline-block; font-size: 0; width: 62px; height: 30px; border-radius: 7px; vertical-align: -4px;
  background: repeating-linear-gradient(115deg, var(--accent-ground) 0 7px, var(--accent-edge) 7px 9px);
  border: 1px solid var(--accent-edge); }
.stat-actions { grid-column: 1 / -1; padding: 16px 18px; border-top: 1px solid var(--border); background: var(--panel); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.stat-actions .note { margin: 0; max-width: 46ch; }
@media (max-width: 560px) {
  .herostats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .stat-num { font-size: 28px; }
  .stat-actions .cta { width: 100%; justify-content: center; }
}
