/* Medical Cost Kenya — site styles
   Type: Atkinson Hyperlegible (body, built for legibility) + Schibsted Grotesk (headings).
   Colour: scrub teal for structure, one strong orange reserved for actions. */

:root {
  --ink: #13293d;
  --ink-2: #3f5568;
  --teal: #0e6f6a;
  --teal-dark: #0a4f4c;
  --teal-tint: #e3f2f0;
  --teal-line: #b9dcd8;
  --paper: #f4f8f8;
  --line: #d4e1e0;
  --white: #ffffff;
  --act: #c2410c;
  --act-dark: #9a330a;
  --wa: #157a42;
  --wa-dark: #0f5e32;
  --warm: #fdf2ea;
  --ok: #157a42;
  --bad: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;
  --head: 'Schibsted Grotesk', 'Segoe UI', Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; font-family: var(--head); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn-act { background: var(--act); color: #fff; border-color: var(--act); }
.btn-act:hover, .btn-act:focus { background: var(--act-dark); border-color: var(--act-dark); color: #fff; }
.btn-line { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ---------- Header ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small { font-weight: 600; color: var(--teal); font-size: .95rem; letter-spacing: 0; }
.menu { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.menu a { color: var(--ink-2); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: .96rem; padding: 8px 9px; border-radius: 8px; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-tint); }
.top .btn { margin-left: 8px; white-space: nowrap; flex-shrink: 0; }
.menu-toggle { display: none; margin-left: auto; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 14px; font: 600 1rem var(--head); color: var(--ink); cursor: pointer; align-items: center; gap: 8px; }
@media (max-width: 1199px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(19,41,61,.08); }
  .menu.is-open { display: flex; }
  .menu a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 560px) { .top .btn-top { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; margin-bottom: 24px; }
.search { display: flex; gap: 10px; flex-wrap: wrap; max-width: 600px; }
.search input { flex: 1 1 280px; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 1.1rem; border: 2px solid var(--teal-line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px var(--teal-tint); }
.search .btn { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.hero__try { margin: 14px 0 0; font-size: .98rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding: 32px 0 36px; } }

/* ---------- Reference-range panel (the signature component) ---------- */
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 20px; }
.ref__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.ref__head h2, .ref__head h3 { margin: 0; font-size: 1.25rem; }
.ref__meta { font-size: .9rem; color: var(--ink-2); }
.ref__scale { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr); gap: 0 18px; margin-top: 14px; font-size: .82rem; color: var(--ink-2); }
.ref__axis { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 4px; font-variant-numeric: tabular-nums; }
.ref__row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr); gap: 4px 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ref__row:last-child { border-bottom: 0; }
.ref__label { font-weight: 700; line-height: 1.3; }
.ref__label span { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-2); }
.ref__bar { position: relative; height: 12px; background: var(--paper); border-radius: 6px; }
.ref__seg { position: absolute; top: 0; bottom: 0; background: var(--teal); border-radius: 6px; min-width: 10px; }
.ref__seg::before, .ref__seg::after { content: ""; position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--teal-dark); border-radius: 2px; }
.ref__seg::before { left: -1px; } .ref__seg::after { right: -1px; }
.ref__val { grid-column: 2; font-family: var(--head); font-weight: 700; font-size: 1.02rem; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.ref__row--empty .ref__bar { background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); height: 4px; margin: 4px 0; }
.ref__row--empty .ref__val { color: var(--ink-2); font-family: var(--body); font-weight: 400; font-size: .95rem; }
.ref__foot { margin: 14px 0 0; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 560px) {
  .ref { padding: 18px 16px; }
  .ref__scale { grid-template-columns: minmax(0, 1fr); } .ref__scale > span:first-child { display: none; }
  .ref__row { grid-template-columns: minmax(0, 1fr); }
  .ref__val { grid-column: 1; }
}

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
.sec--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--tight { padding: 36px 0; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec__head h2 { margin: 0; }
.sec__head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.cat:hover { border-color: var(--teal); color: var(--ink); box-shadow: 0 0 0 3px var(--teal-tint); }
.cat__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; }
.cat h3 { margin: 2px 0 0; font-size: 1.15rem; }
.cat p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cats { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Price index list ---------- */
.index { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.index__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.index__row:last-child { border-bottom: 0; }
.index__row:hover { background: var(--paper); color: var(--ink); }
.index__name { font-family: var(--head); font-weight: 700; font-size: 1.08rem; }
.index__name span { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.index__price { font-family: var(--head); font-weight: 700; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.index__price.is-pending { font-family: var(--body); font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.index__go { color: var(--teal); font-weight: 700; font-family: var(--head); font-size: .95rem; white-space: nowrap; }
@media (max-width: 640px) { .index__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } .index__go { display: none; } }

/* ---------- Steps band ---------- */
.band { background: var(--teal-dark); color: #fff; padding: 56px 0; }
.band h2, .band h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.35); }
.steps li::before { content: counter(s); display: block; font-family: var(--head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: #ffb48a; margin-bottom: 10px; }
.steps p { color: rgba(255,255,255,.9); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form-panel--act { background: #fff; border: 2px solid var(--teal); box-shadow: 0 10px 30px rgba(14,111,106,.12); }
.form-panel h2, .form-panel h3 { margin: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--ink-2); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=date], input[type=search], input[type=url], select, textarea {
  font: inherit; font-size: 1.02rem; color: var(--ink); background: #fff;
  min-height: 48px; padding: 10px 12px; border: 1.5px solid #b8cac9; border-radius: var(--radius-sm); width: 100%;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px var(--teal-tint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--teal); flex-shrink: 0; }
.err { color: var(--bad); font-size: .9rem; font-weight: 700; }
.is-invalid { border-color: var(--bad) !important; }
.hp { position: absolute; left: -5000px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 18px; border: 1px solid; }
.alert-ok { background: #e8f5ec; border-color: #a7d7b5; color: #0f5130; }
.alert-err { background: #fdecea; border-color: #f2b8b2; color: #7a1a12; }
.alert-info { background: var(--teal-tint); border-color: var(--teal-line); color: var(--teal-dark); }

/* ---------- Procedure page ---------- */
.crumbs { font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--line); }
.phead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 24px 0 36px; }
.answer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; max-width: 780px; margin-top: 6px; }
.answer__range { font-family: var(--head); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--teal-dark); margin: 0; font-variant-numeric: tabular-nums; }
.answer__range small { display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.answer__why { margin: 8px 0 0; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; font-size: .93rem; color: var(--ink-2); }
.byline strong { color: var(--ink); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; padding-top: 40px; padding-bottom: 56px; }
.content > section { margin-bottom: 44px; }
.content > section:last-child { margin-bottom: 0; }
.aside { position: sticky; top: 92px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.factors li { padding-left: 18px; border-left: 3px solid var(--teal-line); }
.factors strong { display: block; font-family: var(--head); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; }
.tbl th { text-align: left; font-family: var(--head); font-size: .9rem; font-weight: 700; color: var(--ink-2); padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .price { font-family: var(--head); font-weight: 700; color: var(--teal-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .pending { color: var(--ink-2); white-space: nowrap; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .split { grid-template-columns: minmax(0, 1fr); } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.box--warm { background: var(--warm); border-color: #f2d3bd; }
.box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.box ul { margin: 0; padding-left: 20px; }
.box li { margin-bottom: 4px; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; background: var(--teal-tint); border: 1px solid var(--teal-line); border-radius: var(--radius); padding: 20px 24px; }
.inline-cta h2 { font-size: 1.25rem; margin: 0 0 2px; }
.inline-cta p { margin: 0; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { font-family: var(--head); font-weight: 700; font-size: 1.08rem; cursor: pointer; padding: 12px 32px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.5rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }
.sources { border-top: 1px solid var(--line); padding-top: 18px; font-size: .92rem; color: var(--ink-2); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* Mobile action bar on procedure pages */
.mbar { display: none; }
@media (max-width: 1000px) {
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(19,41,61,.08); }
  .mbar .btn { flex: 1; min-height: 50px; }
  .has-mbar { padding-bottom: 76px; }
}

/* ---------- Guides & prose ---------- */
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.guide:hover { border-color: var(--teal); color: var(--ink); }
.guide strong { font-family: var(--head); font-size: 1.08rem; line-height: 1.3; }
.guide span { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 1000px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guides { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- Clinic strip ---------- */
.clinic-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
@media (max-width: 700px) { .clinic-strip { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #dfe8ee; padding: 48px 0 0; font-size: .98rem; margin-top: auto; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__note { font-size: .9rem; color: #b8c7d2; }
.foot__base { margin-top: 36px; padding: 16px 0 22px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: #b8c7d2; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill--new { background: #fff4ec; border-color: #f6c9aa; color: var(--act-dark); }
.pill--contacted, .pill--quoted { background: var(--teal-tint); border-color: var(--teal-line); color: var(--teal-dark); }
.pill--booked, .pill--approved { background: #e8f5ec; border-color: #a7d7b5; color: #0f5130; }
.pill--lost, .pill--suspended, .pill--spam { background: #f2f4f6; border-color: #d5dbe0; color: #4b5563; }
.pill--pending { background: #fff8e1; border-color: #f3d98b; color: #6b4e00; }
.empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.page-min { min-height: 100vh; display: flex; flex-direction: column; }
.page-min main { flex: 1 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .ref__seg { transform-origin: left center; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
}
@media print { .top, .mbar, .aside, .foot { display: none; } }

/* =========================================================
   Portal (clinic dashboard + admin)
   ========================================================= */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.side { background: var(--ink); color: #dfe8ee; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; padding: 6px 8px 18px; font-size: 1.1rem; }
.side .brand small { color: #9fd8d2; }
.side__label { font-size: .78rem; color: #8fa5b5; padding: 14px 10px 4px; font-weight: 700; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; color: #dfe8ee; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: .96rem; }
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.nav.on { background: var(--teal); color: #fff; }
.side a.nav .count { margin-left: auto; background: var(--act); color: #fff; font-size: .75rem; border-radius: 999px; padding: 1px 8px; }
.side__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.side__foot button { background: none; border: 0; color: #dfe8ee; font: inherit; cursor: pointer; padding: 6px 10px; text-decoration: underline; }
.appmain { padding: 28px 32px 56px; min-width: 0; }
.apphead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.apphead h1 { font-size: 1.7rem; margin: 0; }
.apphead p { margin: 4px 0 0; color: var(--ink-2); }
.apptop { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; display: none; }
  .side.is-open { display: flex; }
  .apptop { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); }
  .apptop .brand { color: #fff; font-size: 1.05rem; }
  .apptop .menu-toggle { display: inline-flex; margin: 0; }
  .appmain { padding: 20px 16px 48px; }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card__head h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat__n { font-family: var(--head); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__l { color: var(--ink-2); font-size: .92rem; }
.stat--act { border-color: #f6c9aa; background: #fff8f3; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2 > .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.dtbl { width: 100%; border-collapse: collapse; font-size: .96rem; }
.dtbl th { text-align: left; font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtbl tr:last-child td { border-bottom: 0; }
.dtbl tr.is-new td { background: #fffaf6; }
.dtbl a.rowlink { font-weight: 700; text-decoration: none; }
.dtbl a.rowlink:hover { text-decoration: underline; }
.dtbl .actions { white-space: nowrap; text-align: right; }
.tblbox { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters form { display: flex; gap: 8px; margin-left: auto; }
.filters input, .filters select { min-height: 40px; padding: 6px 10px; font-size: .95rem; width: auto; }
.bar { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.bar__name { flex: 0 0 42%; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__track { display: block; flex: 1; height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--teal); border-radius: 5px; }
.bar__n { width: 32px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.dl dt { color: var(--ink-2); font-size: .94rem; }
.dl dd { margin: 0; font-weight: 700; }
@media (max-width: 560px) { .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .dl dd { margin-bottom: 10px; } }
.masked { filter: blur(5px); user-select: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid var(--teal-line); background: var(--teal-tint); color: var(--teal-dark); }
.notice--warn { border-color: #f3d98b; background: #fff8e1; color: #6b4e00; }
.notice p { margin: 0; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .formgrid { grid-template-columns: minmax(0, 1fr); } }
.mono-hint { font-size: .85rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.linkbtn--bad { color: var(--bad); }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.checkgrid .grouphead { grid-column: 1 / -1; font-family: var(--head); font-weight: 700; margin-top: 8px; }

/* Long-form SEO content */
.seo-content { border-top: 1px solid var(--line); padding-top: 28px; }
.seo-content h2 { font-size: 1.45rem; margin-top: 0; }
.seo-content h2 ~ h2 { margin-top: 1.4em; }
.seo-content h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
.seo-content p, .seo-content li { color: var(--ink); }
.sec--paper .seo-content { border-top: 0; padding-top: 0; }

/* Content from the editor */
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-family: var(--head); }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--teal-line); color: var(--ink-2); }
.prose .video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 1em 0; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.ref__none{margin:6px 0 0;padding-top:10px;border-top:1px dashed var(--line,#d7e0df)}

/* ---------- Treatment abroad ---------- */
.dests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.dest { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
.dest:hover { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); color: var(--ink); }
.dest__code { align-self: flex-start; font-family: var(--head); font-weight: 800; font-size: .85rem; letter-spacing: .06em; color: var(--teal-dark); background: var(--teal-tint); border-radius: 6px; padding: 3px 8px; }
.dest h3 { margin: 0; font-size: 1.2rem; }
.dest p { margin: 0; font-size: .93rem; color: var(--ink-2); flex: 1; }
.dest__go { color: var(--teal); font-weight: 700; font-family: var(--head); font-size: .95rem; }
.howto { list-style: none; counter-reset: h; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.howto li { counter-increment: h; position: relative; padding: 2px 0 0 52px; color: var(--ink-2); }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--head); font-weight: 800; display: grid; place-items: center; }
.howto strong { display: block; color: var(--ink); font-family: var(--head); }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 4px; color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid #b8cac9; border-radius: 999px; font-weight: 700; font-size: .95rem; background: #fff; }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--teal-tint); }
.abroad-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.abroad-band h2 { margin: 0 0 4px; }
.abroad-band p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .dests { grid-template-columns: 1fr; } }
