/* Dentist Disaster — site styles. Sticker-style cards, mint & cream palette, rounded headings. */
:root {
  --ink: #12343b;
  --ink-soft: #40595e;
  --bg: #fbf8f2;
  --surface: #ffffff;
  --line: #12343b;
  --muted-line: #d9d3c7;
  --teal: #0b6e67;
  --teal-dark: #08524d;
  --mint: #bfe9dc;
  --mint-50: #e8f7f1;
  --coral: #b8321f;
  --coral-50: #ffe7e1;
  --sun: #ffcf5c;
  --sun-50: #fff4d6;
  --lilac-50: #ece8ff;
  --lilac: #cfc6ff;
  --sky-50: #e2f1fb;
  --sky: #b7dcf3;
  --blush-50: #ffe9ec;
  --blush: #ffc6cf;
  --sand-50: #f5eee0;
  --sand: #e8d9b8;
  --radius: 18px;
  --radius-sm: 12px;
  --pop: 3px 3px 0 var(--line);
  --pop-lg: 5px 5px 0 var(--line);
  --font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.05rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--sun); border-radius: 6px; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .3em; }
hr { border: 0; border-top: 2px dashed var(--muted-line); margin: 2rem 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }

/* ------------------------------------------------------------ top strip + header */
.alertbar { background: var(--ink); color: #fff; font-size: .9rem; }
.alertbar .wrap { display: flex; gap: .5rem; align-items: center; justify-content: center; padding-block: .45rem; text-align: center; }
.alertbar a { color: var(--sun); font-weight: 700; }
.alertbar .icon { color: var(--sun); }

.site-header { background: var(--surface); border-bottom: 2px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 900; font-size: 1.28rem; letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 42px; height: 42px; border: 2px solid var(--line); border-radius: 12px; }
.brand span b { color: var(--coral); font-weight: 900; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; align-items: center; }
.site-nav li + li { margin: 0; }
.site-nav a { display: block; padding: .45rem .62rem; font-size: .98rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 650; }
.site-nav a:hover { background: var(--mint-50); }
.site-nav a[aria-current="page"] { background: var(--mint); }
.btn-emergency, .site-nav a.btn-emergency { background: var(--coral); color: #fff; border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line); display: inline-flex; gap: .35rem; align-items: center; }
.site-nav a.btn-emergency:hover { background: #9e2a19; color: #fff; }

@media (max-width: 1059px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--line); }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; padding-bottom: 1rem; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { padding: .7rem .9rem; border-radius: 12px; }
  .site-nav ul { padding-bottom: .6rem; }
}

/* ------------------------------------------------------------ breadcrumbs */
.crumbs { font-size: .9rem; margin: 1.1rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ generic blocks */
main { display: block; padding-bottom: 3rem; }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.kicker { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); margin-bottom: .6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: 700 1rem/1.2 var(--font-body); padding: .8rem 1.25rem; border-radius: 999px; border: 2px solid var(--line); background: var(--sun); color: var(--ink); text-decoration: none; box-shadow: var(--pop); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { color: #fff; background: var(--teal-dark); }
.btn-white { background: var(--surface); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { color: #fff; background: #9e2a19; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

.card { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--pop); display: flex; flex-direction: column; gap: .5rem; transition: transform .15s ease, box-shadow .15s ease; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-lg); }
.card:focus-within { box-shadow: var(--pop-lg), 0 0 0 5px var(--sun); }
.card:focus-within a:focus-visible { outline: none; box-shadow: none; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card .card-foot { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.card .more { font-weight: 700; color: var(--teal); display: inline-flex; gap: .3rem; align-items: center; font-size: .95rem; }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; }

.bubble { width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; background: var(--mint); color: var(--ink); }
.bubble .icon { width: 28px; height: 28px; }
.bubble-lg { width: 76px; height: 76px; border-radius: 22px; }
.bubble-lg .icon { width: 42px; height: 42px; }
.tone-coral { background: var(--coral-50); }
.tone-sun { background: var(--sun-50); }
.tone-blush { background: var(--blush-50); }
.tone-lilac { background: var(--lilac-50); }
.tone-mint { background: var(--mint-50); }
.tone-sky { background: var(--sky-50); }
.tone-sand { background: var(--sand-50); }
.bubble.tone-coral { background: #ffc9bd; } .bubble.tone-sun { background: var(--sun); } .bubble.tone-blush { background: var(--blush); }
.bubble.tone-lilac { background: var(--lilac); } .bubble.tone-mint { background: var(--mint); } .bubble.tone-sky { background: var(--sky); } .bubble.tone-sand { background: var(--sand); }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; line-height: 1.2; padding: .28rem .65rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.badge .icon { width: 1em; height: 1em; vertical-align: 0; }
.badge-urgent { background: var(--coral); color: #fff; }
.badge-soon { background: var(--sun); }
.badge-routine { background: var(--mint); }
.badge-nhs-yes { background: var(--mint); }
.badge-nhs-sometimes { background: var(--sun-50); }
.badge-nhs-no { background: var(--lilac-50); }
.badge-cat { background: var(--sand-50); }

/* chips (filter + shortcuts) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips li + li { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.25; font-family: var(--font-body); }
.chip:hover { background: var(--mint-50); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: #fff; }
.chip .icon { width: 1.1em; height: 1.1em; }

/* ------------------------------------------------------------ home */
.hero { background: var(--mint-50); border-bottom: 2px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 2rem; padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 3.9rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 .1em; }
.hero .lede { color: var(--ink); }
.hero-art img { width: 100%; max-width: 520px; display: block; margin-inline: auto; }
.finder-box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--pop-lg); padding: 1.25rem; margin-top: 1.5rem; }
.finder-box h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.finder-box .btn-row { margin-top: 1rem; }
@media (max-width: 799px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
}

.emergency-callout { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; background: var(--coral-50); border: 2px solid var(--line); border-left: 10px solid var(--coral); border-radius: var(--radius); padding: 1.35rem 1.5rem; box-shadow: var(--pop); }
.emergency-callout .bubble { background: var(--coral); color: #fff; }
.emergency-callout h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.emergency-callout ul { margin: .25rem 0 1rem; }
.emergency-callout p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .emergency-callout { grid-template-columns: 1fr; } }

.cat-card { flex-direction: row; align-items: flex-start; gap: 1rem; }
.cat-card > div { display: flex; flex-direction: column; gap: .35rem; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { margin: 0; background: var(--surface); border: 2px dashed var(--ink-soft); border-radius: var(--radius); padding: 1.2rem; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--line); font: 900 1.1rem var(--font-head); margin-bottom: .6rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.band { background: var(--surface); border-block: 2px solid var(--line); }
.band-sand { background: var(--sand-50); border-block: 2px solid var(--line); }

/* ------------------------------------------------------------ page hero (inner pages) */
.page-hero { padding-block: 1.25rem 2rem; }
.page-hero-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .badges { margin: .2rem 0 1rem; }
.page-hero .lede { margin-bottom: 0; }
.page-hero-emergency { background: var(--coral-50); border-bottom: 2px solid var(--line); }
@media (max-width: 600px) { .page-hero-inner { flex-direction: column; gap: .75rem; } .page-hero .bubble-lg { width: 60px; height: 60px; } }

/* two-column article layout */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.article-grid > aside { position: sticky; top: 1rem; display: grid; gap: 1.25rem; }
@media (max-width: 959px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-grid > aside { position: static; } }
.prose { max-width: 72ch; }
.prose > section { margin-bottom: 2.4rem; }
.prose h2 { display: flex; align-items: center; gap: .55rem; }
.prose h2 .icon { color: var(--teal); width: 1.05em; height: 1.05em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .62rem; height: .62rem; border-radius: 50%; background: var(--mint); border: 2px solid var(--teal); }
.prose ol li::marker { font-weight: 800; color: var(--teal-dark); }

.toc { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.toc h2 { font-size: 1rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li + li { margin-top: .2rem; }
.side-box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.side-box h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.side-box p { font-size: .95rem; margin-bottom: .7rem; }
.side-box p:last-child { margin-bottom: 0; }
.side-box.tone-coral { border-left: 8px solid var(--coral); }
.side-box ul { padding-left: 1.1rem; margin: 0; font-size: .95rem; }

.urgency-panel { border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; margin-bottom: 2rem; }
.urgency-panel h2 { font-size: 1.2rem; margin-bottom: .25rem; }
.urgency-panel p { margin: 0 0 .5rem; }
.urgency-panel p:last-child { margin: 0; }
.urgency-urgent { background: var(--coral-50); border-left: 10px solid var(--coral); }
.urgency-soon { background: var(--sun-50); border-left: 10px solid #e0a300; }
.urgency-routine { background: var(--mint-50); border-left: 10px solid var(--teal); }
.urgency-panel .bubble { width: 44px; height: 44px; border-radius: 50%; }
.urgency-urgent .bubble { background: var(--coral); color: #fff; }
.urgency-soon .bubble { background: var(--sun); }

.two-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.list-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.list-card h2, .list-card h3 { font-size: 1.15rem; }
.list-card ul { margin: 0; }

/* treatment options */
.options { list-style: none; padding: 0; margin: 0; counter-reset: opt; display: grid; gap: .9rem; }
.options > li { margin: 0; counter-increment: opt; position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 4.1rem; box-shadow: var(--pop); }
.options > li::before { content: counter(opt); position: absolute; left: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--line); font: 900 1.05rem var(--font-head); }
.options h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.options p { margin: 0 0 .5rem; }
.options .badges { margin-top: .2rem; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin: 0 0 2.2rem; }
.fact { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.fact dt { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-family: var(--font-head); margin-bottom: .35rem; }
.fact dt .icon { color: var(--teal); }
.fact dd { margin: 0; font-size: .97rem; color: var(--ink-soft); }

.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.proscons > div { border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.proscons .pros { background: var(--mint-50); }
.proscons .cons { background: var(--blush-50); }
.proscons h3 { display: flex; align-items: center; gap: .45rem; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding-left: 1.5rem; position: relative; }
.proscons li::before { position: absolute; left: 0; font-weight: 900; }
.proscons .pros li::before { content: "+"; color: var(--teal-dark); }
.proscons .cons li::before { content: "–"; color: var(--coral); }

.price-box { background: var(--sun-50); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.price-box .range { font: 800 1.25rem var(--font-head); margin: .2rem 0 .4rem; }

/* FAQs */
.faqs details { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .7rem; }
.faqs summary { cursor: pointer; padding: .9rem 3rem .9rem 1.1rem; font-weight: 700; position: relative; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mint); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; line-height: 1; }
.faqs details[open] summary::after { content: "–"; background: var(--sun); }
.faqs details > div { padding: 0 1.1rem 1rem; }
.faqs details > div p:last-child { margin-bottom: 0; }

/* sources + disclaimer */
.sources { font-size: .92rem; background: var(--surface); border: 2px dashed var(--ink-soft); border-radius: var(--radius); padding: 1rem 1.2rem; }
.sources h2 { font-size: 1.05rem; }
.sources ul { margin: 0; padding-left: 1.1rem; }
.sources p { margin: .6rem 0 0; color: var(--ink-soft); }
.disclaimer { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; background: var(--sand-50); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; margin: 2rem 0; }
.disclaimer .icon { width: 1.6rem; height: 1.6rem; color: var(--teal-dark); }
.disclaimer p { margin: 0; }

/* ------------------------------------------------------------ compare tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--pop); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1.5px solid var(--muted-line); }
thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-size: 1.02rem; }
thead th a { color: #fff; }
tbody th { background: var(--mint-50); width: 22%; font-weight: 750; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 719px) {
  .table-wrap.stack { overflow: visible; border: 0; background: none; box-shadow: none; }
  .stack table, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: 100%; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
  .stack tbody th { background: var(--ink); color: #fff; }
  .stack td { border-bottom: 1.5px solid var(--muted-line); }
  .stack td::before { content: attr(data-label); display: block; font-weight: 800; font-family: var(--font-head); color: var(--teal-dark); font-size: .9rem; }
}
.price { font-weight: 800; white-space: nowrap; font-family: var(--font-head); font-size: 1.1rem; }

.verdict { background: var(--sun-50); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }

/* ------------------------------------------------------------ finder */
.finder-form fieldset { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.2rem 1.2rem; margin: 0 0 1rem; }
.finder-form legend { display: flex; align-items: center; gap: .5rem; font: 800 1.1rem var(--font-head); padding: 0 .4rem; }
.finder-form legend .bubble { width: 36px; height: 36px; border-radius: 12px; }
.finder-form legend .bubble .icon { width: 22px; height: 22px; }
.check-chip { position: relative; display: inline-block; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip label { display: inline-flex; gap: .4rem; align-items: center; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; line-height: 1.3; }
.check-chip label::before { content: ""; width: 1rem; height: 1rem; border: 2px solid var(--line); border-radius: 5px; background: #fff; flex: none; }
.check-chip input:checked + label { background: var(--ink); color: #fff; }
.check-chip input:checked + label::before { background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312343b' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--sun); }
.check-chip input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); }
.check-chip label:hover { background: var(--mint-50); }
.check-chip input:checked + label:hover { background: var(--ink-soft); }
.finder-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 959px) { .finder-layout { grid-template-columns: 1fr; } }
.finder-results { position: sticky; top: 1rem; }
@media (max-width: 959px) { .finder-results { position: static; } }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.result-list > li { margin: 0; }
.result { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--pop); }
.result h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.result p { margin: 0 0 .5rem; font-size: .95rem; color: var(--ink-soft); }
.result .opts { font-size: .92rem; margin: .3rem 0 0; }
.result .match { font-size: .82rem; font-weight: 700; color: var(--teal-dark); }
.not-diagnosis { display: flex; gap: .6rem; align-items: flex-start; background: var(--sun-50); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .95rem; margin-bottom: 1rem; }
.not-diagnosis p { margin: 0; }
.empty { border: 2px dashed var(--ink-soft); border-radius: var(--radius); padding: 1.2rem; text-align: center; color: var(--ink-soft); background: var(--surface); }
[hidden] { display: none !important; }

/* A–Z list */
.az { columns: 3 220px; column-gap: 2rem; padding: 0; list-style: none; }
.az li { break-inside: avoid; margin: 0 0 .35rem; }

/* ------------------------------------------------------------ products */
.product-card { padding: 0; overflow: hidden; }
.product-card .ph { margin: 0; border-bottom: 2px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; }
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.ph-illustration { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.ph-illustration .icon { width: 38%; height: 60%; color: var(--ink); stroke-width: 1.5; }
.ph-illustration .ph-brand { position: absolute; left: .75rem; bottom: .6rem; font: 800 .8rem var(--font-head); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.ph-illustration::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.ph-illustration .icon { position: relative; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.product-hero .ph { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--pop-lg); }
@media (max-width: 799px) { .product-hero { grid-template-columns: 1fr; } }
.buy-box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.2rem 0; }
.buy-box .btn { width: 100%; }
.buy-box p { font-size: .88rem; color: var(--ink-soft); margin: .7rem 0 0; }
.tips { counter-reset: tip; list-style: none; padding: 0; display: grid; gap: .7rem; }
.tips li { counter-increment: tip; position: relative; padding: .8rem 1rem .8rem 3.2rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); margin: 0; }
.tips li::before { content: counter(tip); position: absolute; left: .8rem; top: .75rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--mint); border: 2px solid var(--line); display: grid; place-items: center; font: 800 .9rem var(--font-head); }

/* emergency page */
.triage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.triage a.tri { display: flex; flex-direction: column; gap: .35rem; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--pop); background: var(--surface); }
.triage a.tri strong { font: 900 1.35rem var(--font-head); display: flex; gap: .5rem; align-items: center; }
.triage a.tri span { font-size: .95rem; color: var(--ink); }
.triage a.tri:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-lg); }
.triage a.tri-999 { background: var(--coral); }
.triage a.tri-999 strong, .triage a.tri-999 span { color: #fff; }
.triage a.tri-111 { background: var(--sun); }
.triage a.tri-wait { background: var(--mint); }
.em-section { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; }
.em-section.sev-1 { border-left: 10px solid var(--coral); background: var(--coral-50); }
.em-section.sev-2 { border-left: 10px solid #e0a300; background: var(--sun-50); }
.em-section h2 { font-size: 1.35rem; }
.em-section ul:last-child, .em-section p:last-child { margin-bottom: 0; }
.em-links { margin-top: .8rem; font-size: .93rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.phone-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* costs */
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.band-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--pop); }
.band-card .price { font-size: 2rem; display: block; margin: .1rem 0 .4rem; color: var(--teal-dark); }
.band-card h3 { margin: 0; font-size: 1.05rem; }
.band-card p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.nation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #eef5f2; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #bfe9dc; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2rem; padding-block: 3rem 2rem; }
.footer-top h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .7rem; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li + li { margin-top: .35rem; }
.footer-brand p { color: #cfdcd8; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand span b { color: var(--sun); }
@media (max-width: 959px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, .2); padding-block: 1.25rem; display: grid; gap: .6rem; color: #d7e3df; }
.footer-disclaimer p { margin: 0; }
.footer-disclaimer strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); padding-block: 1rem 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: #cfdcd8; font-size: .9rem; }

/* 404 / pending */
.oops { text-align: center; padding-block: 3rem 1rem; }
.oops img { width: 200px; margin-bottom: 1rem; }
.oops .btn-row { justify-content: center; }

/* ------------------------------------------------------------ motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover, .triage a.tri:hover { transform: none; }
}
@media print {
  .alertbar, .site-header nav, .nav-toggle, .site-footer .footer-top, .btn, aside, .finder-form { display: none !important; }
  body { background: #fff; }
  .card, .options > li, .result { box-shadow: none; }
}
.prose .proscons li::before { width: auto; height: auto; border: 0; background: none; border-radius: 0; top: 0; left: .15rem; font-size: 1.1rem; line-height: 1.5; }
.prose .chips li { padding-left: 0; }
.prose .chips li::before { display: none; }
.finder-urgent { margin-bottom: 1rem; }
.urgency-panel h2 .badge { white-space: normal; }
@media (max-width: 420px) { .urgency-panel { grid-template-columns: 1fr; } .options > li { padding-left: 1.2rem; padding-top: 3.6rem; } .emergency-callout { padding: 1.1rem; } .emergency-callout ul { padding-left: 1.1rem; } }
@media (max-width: 440px) {
  .site-header .wrap { gap: .5rem; min-height: 62px; }
  .brand { font-size: 1.08rem; gap: .45rem; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .js .nav-toggle { padding: .35rem .7rem; font-size: .9rem; }
}
@media (max-width: 379px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .nav-toggle { padding: .45rem .55rem; }
  .js .nav-toggle .icon { width: 1.4em; height: 1.4em; }
}

/* ---------------------------------------------------------------- ads (5od) + cookie choice */
.ad-slot[hidden], .cookie-bar[hidden] { display: none !important; }
.ad-slot { display: block; margin: 1.5rem auto; }
.ad-slot:has(ins[data-fiveod="empty"], ins[data-fiveod="error"], ins[data-fiveod="nofit"]) { display: none; }
.ad-in { display: flex; justify-content: center; }
.ad-head { max-width: var(--wrap); padding-inline: var(--gutter); margin-top: 1rem; }
.ad-content { padding: 1.25rem 0; border-top: 2px dashed var(--muted-line); border-bottom: 2px dashed var(--muted-line); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--mint-50); color: var(--ink);
  border-top: 3px solid var(--line); box-shadow: 0 -5px 0 var(--mint); padding: 1rem 0 1.1rem; max-height: 80vh; overflow-y: auto; }
.cookie-in { display: grid; gap: .8rem 2rem; align-items: center; }
@media (min-width: 860px) { .cookie-in { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie-h { font-size: 1.35rem; margin: 0 0 .3rem; }
.cookie-txt p { margin: 0 0 .4rem; font-size: .98rem; }
.cookie-bar a { color: var(--teal-dark); font-weight: 700; }
.cookie-now { font-weight: 700; color: var(--teal-dark); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; font: 700 1rem/1.2 var(--font-body); padding: .8rem 1.25rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--pop); cursor: pointer; }
.cookie-btn:hover { background: var(--sun); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.cookie-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--sun); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } }
@media (prefers-reduced-motion: reduce) { .cookie-btn:hover, .cookie-btn:active { transform: none; } }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
@media print { .cookie-bar, .ad-slot { display: none !important; } }

/* Photos (openly licensed, credited) */
.hero-photo { margin: 0 0 1.5rem; }
.hero-photo img { display: block; width: 100%; height: auto; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--sand-50); }
.hero-photo figcaption { margin-top: .6rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.photo-credit a { color: inherit; }
.credits-list { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.credits-list li { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; box-shadow: var(--pop); font-size: .92rem; }
.credits-list img { width: 120px; height: auto; border-radius: 8px; flex: none; }
@media print { .hero-photo img { max-height: 70mm; width: auto; box-shadow: none; } }
