/* Find A Dentist: shared page styles (search, privacy, terms, 404).
 * PALETTE (matches the live pages): navy #001D41, dark navy #001030, blue #004FDE, aqua #98DBF8, greys #F3F5F7 / #D9DEE2.
 * Change colours here only. No teal anywhere.
 */
:root {
  --navy:         #001D41;
  --dnavy:        #001030;
  --brand:        #004FDE;   /* links, buttons, focus on light backgrounds (6.0:1 on white) */
  --brand-dark:   #0040B8;   /* hover */
  --brand-light:  #98DBF8;   /* aqua: decoration and focus on navy only, never text on white */
  --ink:          #001D41;   /* main text */
  --bg:           #F3F5F7;   /* page background */
  --muted:        #4A5663;   /* secondary text (AA on white and on the page background) */
  --brand-tint:   #E8F0FE;   /* soft backgrounds */
  --ok-text:      #166534;   /* success text (accessible on white) */
  --field-border: #66727F;   /* form control borders (3:1 or better on white) */
}
:root {
  --line: #D9DEE2;
  --card: #FFFFFF;
  --err: #B91C1C;
  --radius: 12px;
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, footer :focus-visible { outline-color: var(--brand-light); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: var(--navy); color: #fff; border-bottom: 3px solid var(--brand); }
.bar { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px; font-family: var(--font-head); }
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.2); }


main { max-width: 960px; margin: 0 auto; padding: 0 20px 48px; }
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -.8px; }
.hero p.lead { color: var(--muted); margin: 12px 0 0; max-width: 60ch; font-size: 16px; }

/* search box */
.search-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.search-card label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.search-row { display: flex; gap: 10px; flex-direction: column; }
@media (min-width: 640px) { .search-row { flex-direction: row; } .search-row input { flex: 1; } }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--field-border); border-radius: 10px; padding: 13px 14px;
}
input:focus { border-color: var(--brand); outline: 3px solid var(--brand); outline-offset: 0; }
.btn { font-family: var(--font-head); font-weight: 700; font-size: 16px; border: 0; border-radius: 10px; padding: 13px 22px; cursor: pointer; background: var(--brand); color: #fff; min-height: 48px; }
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn-link { display: inline-block; text-decoration: none; text-align: center; }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); padding: 11px 20px; }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.privacy-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.examples { margin: 16px 0 0; }
.examples h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { font: inherit; font-size: 14px; background: #fff; color: var(--ink); border: 1px solid var(--field-border); border-radius: 999px; padding: 9px 14px; cursor: pointer; text-align: left; min-height: 40px; }
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* results */
#results { margin-top: 28px; scroll-margin-top: 16px; }
#results:focus { outline: none; }
.results-head h2 { font-size: 22px; font-weight: 800; }
.results-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.heads-up { background: #FFFBEB; border: 1px solid #FCD34D; color: #78350F; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.info-box { background: var(--brand-tint); border: 1px solid #B3C9F4; color: var(--ink); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.group-title { font-size: 16px; font-weight: 800; margin: 26px 0 4px; }
.cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 18px; }
.card h3 { font-size: 19px; font-weight: 800; }
.card .where { color: var(--muted); font-size: 14px; margin: 3px 0 0; }
/* Basic (public-source) listings: visibly different from verified cards, not alarming */
.badge-basic { color: #374151; background: #F3F4F6; border-color: #D1D5DB; }
.card-basic { border-left-color: #9CA3AF; }
.tier-note { font-size: 13.5px; color: #374151; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }
.claim-line { font-size: 13.5px; margin: 12px 0 0; color: var(--muted); }
.claim-line a { color: var(--navy); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ok-text); background: #ECFDF3; border: 1px solid #BBF7D0; border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; font-family: var(--font-body); }
.why { background: var(--brand-tint); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.why strong { color: var(--brand-dark); }
.note { font-size: 13px; color: #92400E; margin: 8px 0 0; }
.bio { margin: 12px 0 0; font-size: 15px; }
.facts { margin: 12px 0 0; display: grid; gap: 4px; font-size: 14px; }
.facts dt { font-weight: 700; display: inline; }
.facts dd { display: inline; margin: 0; }
.facts div { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.tags li { font-size: 12.5px; background: var(--bg); color: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions .btn { padding: 11px 18px; font-size: 15px; min-height: 44px; }

/* empty / waitlist */
.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.empty h2 { font-size: 21px; font-weight: 800; }
.empty p { color: var(--navy); margin: 10px 0 0; }
.waitlist { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 14px; max-width: 460px; }
.waitlist h3 { font-size: 17px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.fad-err { color: var(--err); font-size: 13px; margin-top: 6px; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.fad-status { font-size: 14px; min-height: 1em; }
.fad-status-error { color: var(--err); font-weight: 600; }
.success-box { background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--ok-text); border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-weight: 600; }
.success-box:focus { outline: 3px solid var(--brand); }
.join-link { margin-top: 18px; font-size: 15px; }

footer { background: var(--dnavy); color: #D9DEE2; border-top: 3px solid var(--brand); }
.foot { max-width: 960px; margin: 0 auto; padding: 22px 20px 30px; font-size: 13px; color: #D9DEE2; display: grid; gap: 8px; }
.foot a { color: var(--brand-light); }
.foot strong { color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* safety banners (wording flagged for legal review in CLAIMS_TO_VERIFY.md) */
.alert { border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-size: 15px; }
.alert h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.alert p { margin: 4px 0 0; }
.alert-red { background: #FEF2F2; border: 2px solid #B91C1C; color: #7F1D1D; }
.alert-urgent { background: #FFF7ED; border: 2px solid #C2410C; color: #7C2D12; }
.alert a { color: inherit; font-weight: 700; }
.notice-line { font-size: 14px; color: var(--navy); margin: 12px 0 0; }

/* AI matching state, intent summary, fit labels (search page) */
.status-line { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; color: var(--navy); }
.status-line.is-fallback { border-left-color: #8A5A00; background: #FFF9EB; }
.spinner { width: 16px; height: 16px; border: 3px solid #D9DEE2; border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; flex: none; margin-top: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--brand); border-style: dotted; } }
.understood { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: 14px; }
.understood h3 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.understood dl { margin: 0; display: grid; gap: 3px; }
.understood dt { display: inline; font-weight: 700; }
.understood dd { display: inline; margin: 0; }
.understood .u-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.fit { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; font-family: var(--font-body); border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.fit-strong { background: var(--navy); color: #fff; }
.fit-good { background: var(--brand-tint); }
.sample-banner { background: #FFF9EB; border: 2px solid #8A5A00; color: #5A3B00; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; font-weight: 600; }
.err-box { background: #fff; border: 1px solid #B91C1C; border-left-width: 4px; border-radius: 10px; padding: 14px 16px; color: #7F1D1D; }
.err-box h2 { font-size: 18px; }
.err-box p { margin: 8px 0 0; color: var(--navy); }
.closest-title { font-size: 16px; font-weight: 800; margin: 22px 0 4px; }

/* national search: distance line and "which Richmond?" buttons */
.card .dist { margin: 0 0 .5rem; font-size: .95rem; color: #3a4a5a; }
.notice-line .btn-inline { font: inherit; padding: .15rem .6rem; margin: 0 .15rem; border: 1px solid #1f5f8b; border-radius: 999px; background: #fff; color: #174a6c; cursor: pointer; min-height: 32px; }
.notice-line .btn-inline:hover, .notice-line .btn-inline:focus-visible { background: #e8f1f7; outline: 2px solid #174a6c; outline-offset: 2px; }
