/* The Fertility Index - design system v2 (Oct 20, 2026)
   Type: Fraunces (display) + Inter (text), self-hosted, SIL Open Font License. */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream: #F8F3EA;
  --card: #FFFEFA;
  --sage: #3B5A47;
  --sage-dark: #2F4A3A;
  --sage-light: #7A9B8A;
  --sage-wash: #EBF0EB;
  --terra: #D98E6A;
  --sand: #F3E4CC;
  --ink: #3D372E;
  --ink-soft: #6E6455;
  --line: #E8DFCE;
  --shadow-sm: 0 1px 2px rgba(74, 58, 36, .05);
  --shadow-md: 0 1px 2px rgba(74, 58, 36, .04), 0 10px 28px rgba(74, 58, 36, .07);
  --radius: 16px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(217, 142, 106, .10), rgba(217, 142, 106, 0)),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 10; border-radius: 8px; }

/* Header */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 24px; max-width: 760px; margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; color: var(--ink); }
.top nav a { color: var(--ink-soft); margin-left: 18px; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.top nav a:hover { color: var(--sage); }

main { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }

/* Type scale */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: 37px; line-height: 1.12; margin: 56px 0 14px; }
h2 { font-size: 25px; margin: 56px 0 6px; position: relative; padding-bottom: 12px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--terra); }
.sub { font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px; margin: 16px 0;
}
.clinic { transition: transform .18s ease, box-shadow .18s ease; }
.clinic:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(74,58,36,.05), 0 16px 36px rgba(74,58,36,.09); }

/* Forms */
form.card label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 6px;
}
form.card label:first-of-type { margin-top: 2px; }
form.card label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; }
form.card input, form.card select, .sortbar select, .sortbar input#clinic-q {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: var(--font-text);
  border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  color: var(--ink); min-height: 52px; box-shadow: inset 0 1px 2px rgba(74,58,36,.04);
  appearance: none; -webkit-appearance: none;
}
form.card select, .sortbar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6455' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
form.card input:focus, form.card select:focus, .sortbar select:focus {
  outline: none; border-color: var(--sage-light);
  box-shadow: 0 0 0 3px rgba(59, 90, 71, .14);
}
button {
  display: block; width: 100%; margin-top: 20px; padding: 15px; font-size: 16.5px; font-weight: 600;
  font-family: var(--font-text); letter-spacing: .01em;
  background: linear-gradient(180deg, #426350, var(--sage)); color: #fff; border: 0;
  border-radius: 12px; cursor: pointer; min-height: 52px;
  box-shadow: 0 1px 2px rgba(47,74,58,.3), 0 6px 16px rgba(47,74,58,.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
button:hover { background: linear-gradient(180deg, #3a5847, var(--sage-dark)); transform: translateY(-1px); box-shadow: 0 2px 3px rgba(47,74,58,.3), 0 10px 22px rgba(47,74,58,.26); }
button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
button:focus-visible { outline: 3px solid rgba(59,90,71,.35); outline-offset: 2px; }
.trust { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }
.scope, .note { font-size: 14.5px; color: var(--ink-soft); }

/* Clinic card anatomy */
.clinic h3 { margin: 0 0 3px; font-size: 20.5px; letter-spacing: -.01em; }
.clinic .city { font-size: 14px; color: var(--ink-soft); }
.dist { font-size: 13.5px; color: var(--ink-soft); margin: 3px 0 8px; font-weight: 500; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin: 10px 10px 4px 0;
}
.tag.verified { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.tag.est { background: var(--sand); color: var(--ink); }
.tag.none { background: transparent; color: var(--ink-soft); border: 1px dashed #c9bda6; }
.transparency { font-size: 13px; color: var(--sage); font-weight: 600; }
.price {
  font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.01em;
  color: var(--sage-dark); margin: 10px 0 4px; font-feature-settings: 'tnum';
}
.price small { font-family: var(--font-text); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.meds { font-size: 14px; line-height: 1.5; margin: 6px 0; }

/* Details accordion */
.clinic details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.clinic summary {
  cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--sage);
  list-style: none; display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 2px 0;
}
.clinic summary::-webkit-details-marker { display: none; }
.clinic summary::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  background: var(--sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' fill='none' stroke='%233B5A47' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .18s ease;
}
.clinic details[open] summary::before { transform: rotate(45deg); }
.clinic summary:hover { color: var(--sage-dark); }

table.breakdown { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
table.breakdown td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
table.breakdown td:last-child { text-align: right; font-weight: 600; white-space: nowrap; font-feature-settings: 'tnum'; }
.src { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.src a { color: var(--sage); }
.unknown { font-size: 14px; line-height: 1.55; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

/* Empty state */
.empty { text-align: center; padding: 36px 24px; color: var(--ink-soft); }
.empty strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); margin-bottom: 6px; }

/* Checklists */
.copy-btn {
  background: var(--card); color: var(--sage); border: 1.5px solid var(--sage);
  width: auto; padding: 11px 20px; margin-top: 12px; font-size: 14.5px; box-shadow: none;
}
.copy-btn:hover { background: var(--sage-wash); transform: none; box-shadow: none; }
.check { list-style: none; padding: 0; margin: 10px 0; }
.check li { padding: 9px 0 9px 30px; position: relative; font-size: 15px; }
.check li::before { content: ""; position: absolute; left: 0; top: 12px; width: 15px; height: 15px; border: 1.5px solid var(--sage-light); border-radius: 5px; background: var(--card); }

/* Sort bar */
.sortbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.sortbar select { width: auto; min-height: 42px; padding: 8px 36px 8px 12px; font-size: 14px; border-radius: 10px; }

/* Results entrance */
#results:not([hidden]) { animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #results:not([hidden]) { animation: none; }
  .clinic, button { transition: none; }
}

footer { border-top: 1px solid var(--line); padding: 22px 24px 36px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }
footer a, a { color: var(--sage); }
#payways ul { margin: 8px 0; padding-left: 20px; }
#payways li { margin: 10px 0; font-size: 15px; }

@media (min-width: 760px) {
  h1 { font-size: 46px; }
  .sub { font-size: 19px; }
}
.sortbar { }
h3.sub3 { font-size: 19px; margin: 30px 0 4px; }
.about-story { font-size: 17px; line-height: 1.7; }
.about-story p { margin: 0 0 14px; }
.about-story .sig { font-family: var(--font-display); font-size: 18px; color: var(--sage); margin-top: 18px; }

/* services list (schema v2) */
.services { margin-top: 10px; font-size: 0.9rem; }
.services ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.services li { margin: 3px 0; }
.services .svc-yes { color: #3B5A47; font-weight: 700; }
.services .muted, .muted { color: #8a8073; }

.privacy-badge{position:fixed;bottom:10px;inset-inline-start:10px;z-index:9999;background:#FFF4D6;border:1px solid #D9A441;color:#6B5410;border-radius:999px;padding:3px 10px;font-size:11px;line-height:1.5;pointer-events:none;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.tag.kind{background:#e8e2d2;color:#6b5c3f}
.sortbar{flex-wrap:wrap}
.sortbar input#clinic-q{flex:1 1 170px;min-width:0}
.wordmark{white-space:nowrap}
.explore-btn{display:block;width:100%;margin:4px 0 18px;padding:13px 16px;background:#fff;border:1.5px dashed var(--sage);border-radius:12px;color:var(--sage);font:600 15px/1.3 var(--font-body,inherit);cursor:pointer;text-align:center}
.explore-btn:hover{background:var(--sand,#F3E4CC)}
.ex-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 6px;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-soft)}
.ex-filters select{width:auto;min-height:40px;padding:7px 32px 7px 10px;font-size:14px;border-radius:10px}
.ex-check{display:flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0;font-weight:500;font-size:14px}
.count{font-size:13px;color:var(--ink-soft);margin:4px 0 8px}

/* cheaper-options explorer: oversight signal */
.tag.sig-strong { background: #E3EEE6; color: #2E5540; }
.tag.sig-mid { background: #F3E4CC; color: #7A5B2E; }
.tag.sig-weak { background: #F6E3D3; color: #8A4A2B; }
.note.travel { color: #4A4640; }
.meds.bundle { color: #4A4640; }
.meds.bundle em { color: #8A8378; font-style: normal; }

/* clinic detail page */
.sub2 { color: var(--muted); margin: -6px 0 18px; }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 4px 0; }
main#clinic h1 { font-size: 28px; margin: 10px 0 4px; }
main#clinic h2 { font-size: 19px; margin: 28px 0 10px; }

@media (max-width:560px) {
  table.breakdown { font-size: 13.5px; }
  table.breakdown td { display: block; width: 100%; padding: 6px 0 0; border-bottom: none; }
  table.breakdown td:last-child { text-align: left; white-space: normal; padding: 0 0 8px; border-bottom: 1px dashed var(--line); }
  .card { overflow-wrap: break-word; }
}

/* clinic detail page v2 */
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 14px 0 18px; }
.hero-card h1 { margin: 0 0 2px; }
.hero-card .sub2 { margin: 0 0 12px; }
.hero-price { font-size: 26px; }
details.sec { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
details.sec > summary { cursor: pointer; padding: 13px 18px; font-weight: 600; font-size: 15.5px; list-style: none; }
details.sec > summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
details.sec[open] > summary::after { content: '\2212'; }
details.sec .sec-body { padding: 2px 18px 16px; border-top: 1px solid var(--line); }
details.sec.more { border-style: dashed; }
details.sec.more > summary { font-weight: 500; color: var(--muted); }
.more-h { font-size: 14px; margin: 16px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* feedback widget */
.feedback { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 22px 0 10px; }
.fb-q { font-weight: 600; font-size: 15px; margin: 6px 0 6px; }
.fb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fb-btn { border: 1.5px solid var(--sage, #3B5A47); background: #fff; color: var(--sage, #3B5A47); border-radius: 22px; padding: 8px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
.fb-btn:hover:not(:disabled) { background: #eef4f0; }
.fb-btn:disabled { opacity: .45; cursor: default; }
.fb-priv { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.fb-thanks { color: var(--sage, #3B5A47); font-weight: 600; font-size: 14px; margin-top: 6px; }

/* Theme toggle (dark mode) */
.top nav { display: flex; align-items: center; }
#theme-toggle {
  width: 34px; height: 34px; min-height: 0; padding: 0; margin: 0 0 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-soft); font-size: 15px; line-height: 1; cursor: pointer; box-shadow: none;
}
#theme-toggle:hover { background: transparent; border-color: var(--sage-light); color: var(--sage); transform: none; box-shadow: none; }
#theme-toggle:focus-visible { outline: 3px solid rgba(59,90,71,.35); outline-offset: 2px; }

/* Dark mode - follows OS, manual toggle overrides, remembered locally */
[data-theme="dark"] {
  --cream: #1D1A15;
  --card: #29251E;
  --sage: #93BBA2;
  --sage-dark: #ACCFB8;
  --sage-light: #6E9180;
  --sage-wash: #2C3A31;
  --terra: #E4A37F;
  --sand: #3D362A;
  --ink: #EDE6DA;
  --ink-soft: #B8AE9D;
  --line: #463F33;
  --muted: #9A9184;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 1px 2px rgba(0,0,0,.28), 0 10px 28px rgba(0,0,0,.34);
}
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(228, 163, 127, .09), rgba(228, 163, 127, 0)),
    var(--cream);
}
[data-theme="dark"] form.card input, [data-theme="dark"] form.card select,
[data-theme="dark"] .sortbar select, [data-theme="dark"] .sortbar input#clinic-q {
  background: #211E19; box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
[data-theme="dark"] form.card select, [data-theme="dark"] .sortbar select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B8AE9D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[data-theme="dark"] form.card input:focus, [data-theme="dark"] form.card select:focus, [data-theme="dark"] .sortbar select:focus {
  box-shadow: 0 0 0 3px rgba(147, 187, 162, .2);
}
[data-theme="dark"] button {
  background: linear-gradient(180deg, #4E7260, #3F5D4C);
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.35);
}
[data-theme="dark"] button:hover { background: linear-gradient(180deg, #456855, #385444); box-shadow: 0 2px 3px rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.4); }
[data-theme="dark"] #theme-toggle { background: transparent; box-shadow: none; }
[data-theme="dark"] #theme-toggle:hover { background: transparent; box-shadow: none; }
[data-theme="dark"] .clinic:hover { box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 16px 36px rgba(0,0,0,.4); }
[data-theme="dark"] .clinic summary::before {
  background: var(--sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' fill='none' stroke='%2393BBA2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
}
[data-theme="dark"] .hero-card, [data-theme="dark"] details.sec, [data-theme="dark"] .feedback,
[data-theme="dark"] .fb-btn, [data-theme="dark"] .explore-btn, [data-theme="dark"] .copy-btn { background: var(--card); }
[data-theme="dark"] .explore-btn:hover, [data-theme="dark"] .copy-btn:hover { background: var(--sand); }
[data-theme="dark"] .fb-btn:hover:not(:disabled) { background: var(--sage-wash); }
[data-theme="dark"] .tag.verified { background: #3B5A47; color: #EAF3EC; }
[data-theme="dark"] .tag.none { border-color: #6E6455; }
[data-theme="dark"] .tag.kind { background: #3A3428; color: #CDBEA0; }
[data-theme="dark"] .tag.sig-strong { background: #2E4A3A; color: #BFE3CD; }
[data-theme="dark"] .tag.sig-mid { background: #4A3E28; color: #EBD5AE; }
[data-theme="dark"] .tag.sig-weak { background: #4E3226; color: #F2C4AD; }
[data-theme="dark"] .muted, [data-theme="dark"] .services .muted { color: var(--muted); }
[data-theme="dark"] .services .svc-yes { color: var(--sage); }
[data-theme="dark"] .note.travel, [data-theme="dark"] .meds.bundle { color: var(--ink-soft); }
[data-theme="dark"] .meds.bundle em { color: var(--muted); }
[data-theme="dark"] .unknown { background: #211E19; }

@media (max-width:560px) {
  .top { padding: 18px 16px; }
  .top nav a { margin-left: 10px; }
  #theme-toggle { margin-left: 8px; }
}

/* Price inclusion badge: every price states whether medications are included */
.inc { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 12px; margin: 4px 0 0; letter-spacing: .02em; }
.inc-yes { background: #E3EEE6; color: #2E5540; }
.inc-no { background: #F6E3D3; color: #8A4A2B; }
.inc-unk { background: transparent; color: var(--ink-soft); border: 1px dashed #c9bda6; }
[data-theme="dark"] .inc-yes { background: #2E4A3A; color: #BFE3CD; }
[data-theme="dark"] .inc-no { background: #4E3226; color: #F2C4AD; }
[data-theme="dark"] .inc-unk { border-color: #6E6455; color: var(--ink-soft); }

/* Explorer: one simple search box, advanced filters tucked away */
.ex-q-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin: 2px 0 6px; }
#ex-q { width: 100%; padding: 13px 14px; font-size: 16px; font-family: var(--font-text); border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); min-height: 52px; }
#ex-q:focus { outline: none; border-color: var(--sage-light); box-shadow: 0 0 0 3px rgba(59,90,71,.14); }
[data-theme="dark"] #ex-q { background: #211E19; }
.ex-more { margin: 8px 0 4px; }
.ex-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--sage); padding: 6px 0; list-style: none; }
.ex-more > summary::-webkit-details-marker { display: none; }
.ex-more > summary::before { content: "+ "; }
.ex-more[open] > summary::before { content: "\2212 "; }

/* Evidence labels for priced add-ons (HFEA ratings) */
.ev { display:inline-block; font-size:12px; font-weight:700; border-radius:20px; padding:1px 9px; text-decoration:none; vertical-align:1px; white-space:nowrap; }
.ev-red { background:#f7e2dc; color:#a03d2a; }
.ev-amber { background:#f6ecd4; color:#8a6a20; }
.ev-green { background:#e4ede7; color:var(--sage); }
.ev-note { color:var(--muted); font-size:12px; }
.addon-line { font-size:13px; color:var(--muted); margin:4px 0 2px; }
.addon-line a { color:#a03d2a; font-weight:600; }
[data-theme="dark"] .ev-red { background:#4a2b22; color:#eda58c; }
[data-theme="dark"] .ev-amber { background:#4a3d20; color:#e0c887; }
[data-theme="dark"] .ev-green { background:#22392c; color:#93BBA2; }
[data-theme="dark"] .addon-line a { color:#eda58c; }
.addon-entry { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin:14px 0; }
.inc a { color: inherit; text-decoration: underline; }
.ev-explain { font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin: 4px 0 2px; max-width: 52ch; }
.ev-explain a { color: inherit; }
.form-note { font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; line-height: 1.5; }

/* Open-message feedback widget (Uri 2026-10-20 23:47) */
.fb-msg { margin-top: 12px; }
.fb-msg-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.fb-msg-text { width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); resize: vertical; }
.fb-msg-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.fb-count { font-size: 12px; color: var(--muted); }
.fb-hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; opacity: 0; }
.fb-msg-status { font-size: 13px; color: #a03d2a; margin-top: 6px; }
.fb-msg-wrap { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.fb-bottom { display: flex; flex-direction: column; align-items: center; margin: 26px 0 18px; }
button.fb-link { background: none; border: none; box-shadow: none; color: var(--ink-soft); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: inherit; padding: 6px 10px; min-height: 0; width: auto; }
button.fb-link:hover { background: none; transform: none; box-shadow: none; color: var(--ink); }
[data-theme="dark"] button.fb-link { background: none; }
.fb-bottom-panel { max-width: 520px; margin: 10px auto 0; text-align: left; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); }
[data-theme="dark"] .fb-msg-text { background: #1D1A15; }
.fb-msg-row .fb-btn { width: auto; padding: 9px 18px; margin: 0; }

/* SART results tables - fixed layout so all columns fit the container at any width
   (Uri 2026-10-21 00:10: no horizontal scrolling to see the numbers). */
.tscroll { overflow-x: hidden; }
.sart-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; margin: 4px 0 2px; }
.sart-tbl th { text-align: right; color: var(--sage); font-size: 11px; border-bottom: 1.5px solid var(--line); padding: 4px 2px; white-space: normal; }
.sart-tbl td { border-bottom: 1px solid var(--line); padding: 5px 2px; text-align: right; white-space: normal; }
.sart-tbl td:first-child, .sart-tbl th:first-child { text-align: left; width: 34%; }
.sart-h { font-weight: 700; font-size: 13.5px; margin: 14px 0 2px; }
.sart-small { font-size: 10px; color: #a03d2a; font-weight: 400; }
.sart-more { margin-top: 10px; }
.sart-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--sage); }
[data-theme="dark"] .sart-tbl th { color: #93BBA2; }
[data-theme="dark"] .sart-more summary { color: #93BBA2; }

/* SART age picker (must beat the generic full-width button rule) */
.agepick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 6px; }
.agepick-label { font-size: 12.5px; color: var(--ink-soft); width: 100%; }
button.agechip { width: auto; flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 4px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; box-shadow: none; text-transform: none; letter-spacing: 0; }
button.agechip:hover { background: var(--sage-wash); transform: none; box-shadow: none; }
button.agechip.on, button.agechip.on:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
[data-theme="dark"] button.agechip { background: transparent; color: inherit; }
[data-theme="dark"] button.agechip:hover { background: #332e25; }
[data-theme="dark"] button.agechip.on, [data-theme="dark"] button.agechip.on:hover { background: #93BBA2; border-color: #93BBA2; color: #1D1A15; }

/* Fix: breakdown price column is nowrap (for prices); the inline HFEA explanation
   inside it must wrap or it pushes the whole table past the viewport (Uri 00:10). */
table.breakdown td:last-child .ev-explain,
table.breakdown td:last-child .ev-explain a { white-space: normal; }

/* National comparison line under a rate (SART national, same age band) */
.sart-us { font-size: 10px; color: var(--ink-soft); font-weight: 400; }

/* Plain-language source explainer at the bottom of the Results section */
.sart-usabout { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* Cumulative-odds line in Results (tied to age picker) */
.sart-cum { background: var(--sage-wash); border-radius: 12px; padding: 10px 14px; margin: 6px 0 10px; font-size: 14px; line-height: 1.5; }
[data-theme="dark"] .sart-cum { background: #2E3327; }
