/* =====================================================================
   Sản Khoa Hà Nội — Design System v2
   Goals: faster reading, stronger SEO signals, LLM-citable structure
   ===================================================================== */

/* -------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-50:  #effaf9;
  --brand-100: #d6f1ee;
  --brand-200: #aee2dd;
  --brand-300: #7accc4;
  --brand-500: #0d6e7a;
  --brand-600: #095a64;
  --brand-700: #07434b;
  --brand-800: #053238;

  /* Accent (warm) — for human touch in a medical site */
  --accent-50:  #fff5ed;
  --accent-100: #ffe5cf;
  --accent-500: #d97742;
  --accent-600: #b85e2c;

  /* Neutral */
  --gray-0:   #ffffff;
  --gray-50:  #fafbfc;
  --gray-100: #f3f5f7;
  --gray-200: #e4e9ec;
  --gray-300: #d2dade;
  --gray-400: #a5b1b8;
  --gray-500: #738089;
  --gray-600: #4d5a62;
  --gray-700: #2e3a42;
  --gray-800: #1a2229;
  --gray-900: #0e151b;

  /* Semantic */
  --success-50:  #e6f7ee;
  --success-500: #1a7a4a;
  --success-700: #0f5a35;
  --warning-50:  #fff8e1;
  --warning-500: #b07310;
  --danger-50:   #fef2f2;
  --danger-500:  #b42318;

  /* Page mapping (light) */
  --bg:        var(--gray-50);
  --surface:   var(--gray-0);
  --surface-2: var(--gray-100);
  --text:      var(--gray-800);
  --text-soft: var(--gray-600);
  --text-mute: var(--gray-500);
  --border:    var(--gray-200);
  --border-strong: var(--gray-300);
  --primary:        var(--brand-500);
  --primary-hover:  var(--brand-600);
  --primary-strong: var(--brand-700);
  --primary-soft:   var(--brand-50);
  --accent:         var(--accent-500);
  --accent-soft:    var(--accent-50);
  --link:           var(--brand-600);
  --link-hover:     var(--brand-700);
  --focus-ring:     0 0 0 3px rgba(13, 110, 122, 0.35);

  /* Typography */
  --font-sans: "Inter", "Be Vietnam Pro", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia,
                "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
               "Liberation Mono", monospace;

  --fs-xs:   0.8125rem;   /* 13px */
  --fs-sm:   0.9375rem;   /* 15px */
  --fs-base: 1.0625rem;   /* 17px — readable for Vietnamese diacritics */
  --fs-md:   1.1875rem;   /* 19px */
  --fs-lg:   1.375rem;    /* 22px */
  --fs-xl:   1.75rem;     /* 28px */
  --fs-2xl:  2.125rem;    /* 34px */
  --fs-3xl:  2.625rem;    /* 42px */

  --lh-tight: 1.25;
  --lh-snug:  1.4;
  --lh-base:  1.7;
  --lh-loose: 1.8;

  /* Layout */
  --content-narrow: 68ch;
  --content-wide:   78rem;
  --content-text:   42rem;
  --sidebar:        18rem;
  --gutter:         clamp(1rem, 4vw, 2.5rem);

  /* Radii / shadows */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 40, 0.04),
               0 1px 3px rgba(15, 30, 40, 0.06);
  --shadow-md: 0 2px 6px rgba(15, 30, 40, 0.05),
               0 8px 20px rgba(15, 30, 40, 0.06);
  --shadow-lg: 0 4px 12px rgba(15, 30, 40, 0.06),
               0 18px 38px rgba(15, 30, 40, 0.10);

  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t-base: 200ms cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d1418;
    --surface:   #131c22;
    --surface-2: #1a242c;
    --text:      #e8eef2;
    --text-soft: #b7c2c9;
    --text-mute: #8896a0;
    --border:    #243038;
    --border-strong: #34424b;
    --primary:        #4ac2c9;
    --primary-hover:  #6fd0d6;
    --primary-strong: #97e0e4;
    --primary-soft:   #0e2a2c;
    --accent:         #ea8a55;
    --accent-soft:    #2a1a10;
    --link:           #6fd0d6;
    --link-hover:     #a8e1e5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,.45);
    --shadow-lg: 0 12px 36px rgba(0,0,0,.55);
  }
}

/* -------------------------------------------------------------------
   2. Reset + base
   ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html:focus-within { scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text);
  letter-spacing: 0;
}

h1 { font-size: var(--fs-2xl); margin: 0 0 0.5em; }
h2 { font-size: var(--fs-xl);  margin: 2em 0 0.6em; line-height: var(--lh-snug); }
h3 { font-size: var(--fs-lg);  margin: 1.6em 0 0.5em; }
h4 { font-size: var(--fs-md);  margin: 1.4em 0 0.4em; }

p, ul, ol, dl, blockquote, table {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t-fast);
}
a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--text-soft);
  font-style: italic;
}

/* -------------------------------------------------------------------
   3. Accessibility helpers
   ------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  inset: 0.5rem auto auto 0.5rem;
  width: auto;
  height: auto;
  padding: 0.625rem 1rem;
  background: var(--primary-strong);
  color: #fff;
  text-decoration: none;
  z-index: 9999;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------
   4. Site chrome — header
   ------------------------------------------------------------------- */
.site-header {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(13, 20, 24, 0.88); }
}

.site-header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1;
  white-space: nowrap;
}
.site-brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.site-nav a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-weight: 600;
}

/* mobile nav toggle (progressive enhancement, JS optional) */
.site-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.6rem;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

/* -------------------------------------------------------------------
   5. Layout containers
   ------------------------------------------------------------------- */
main {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 4rem;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 1024px) {
  .page--with-aside {
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
    align-items: start;
  }
  .page__aside {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

/* -------------------------------------------------------------------
   6. Breadcrumbs
   ------------------------------------------------------------------- */
.breadcrumbs {
  margin: 0 0 1rem;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-mute);
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--border-strong);
}
.breadcrumbs__item a {
  color: var(--text-mute);
  text-decoration: none;
}
.breadcrumbs__item a:hover { color: var(--primary); }
.breadcrumbs__item--current {
  color: var(--text-soft);
  font-weight: 500;
}

/* -------------------------------------------------------------------
   7. Hero patterns
   ------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.page-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  margin: 0 0 0.75rem;
  color: var(--text);
  max-width: 28ch;
}
.page-hero__lead {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 0 1rem;
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-top: 0.75rem;
}
.page-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.page-hero__meta-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

.page-hero--landing {
  background: linear-gradient(180deg, var(--primary-soft), transparent 80%);
  border-bottom: none;
  padding-bottom: 2rem;
}

/* -------------------------------------------------------------------
   8. Editorial meta strip (author/date/sources) — E-E-A-T signal
   ------------------------------------------------------------------- */
.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}
.editorial-meta__label {
  font-weight: 600;
  color: var(--text);
}
.editorial-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.editorial-meta__item svg {
  width: 14px; height: 14px;
  color: var(--text-mute);
  flex: none;
}

/* -------------------------------------------------------------------
   9. Buttons
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.1rem;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.btn--secondary {
  background: var(--surface);
  color: var(--primary-strong);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}
.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn--large { padding: 0.85rem 1.6rem; font-size: var(--fs-base); }
.btn--sm    { padding: 0.4rem 0.75rem; font-size: var(--fs-xs); }
.btn[aria-disabled="true"],
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* -------------------------------------------------------------------
   10. Key-answer (LLM-citable "TL;DR")
   ------------------------------------------------------------------- */
.key-answer {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  background: var(--primary-soft);
  border: 1px solid var(--brand-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
  color: var(--text);
}
.key-answer::before {
  content: "✦";
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}
.key-answer__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-strong);
  margin-bottom: 0.35rem;
}
.key-answer__body {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  margin: 0;
}
.key-answer__body strong { color: var(--text); }

/* -------------------------------------------------------------------
   11. At-a-glance fact cards
   ------------------------------------------------------------------- */
.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.glance__item {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.glance__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.glance__value {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.glance__value--small { font-size: var(--fs-sm); }

/* -------------------------------------------------------------------
   12. Article / prose body
   ------------------------------------------------------------------- */
.prose {
  max-width: var(--content-text);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
}
.prose--wide { max-width: 56rem; }

.prose h2 {
  font-size: var(--fs-xl);
  margin-top: 2.4em;
  margin-bottom: 0.5em;
  scroll-margin-top: 5rem;
}
.prose h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 0.65rem;
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: 1.8em;
  scroll-margin-top: 5rem;
}
.prose h4 {
  font-size: var(--fs-md);
  scroll-margin-top: 5rem;
}
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.25em 0; }
.prose li > ul, .prose li > ol { margin: 0.25em 0; }

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(13, 110, 122, 0.35);
  text-underline-offset: 0.22em;
}
.prose a:hover { text-decoration-color: currentColor; }

.prose img {
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}

.prose figure {
  margin: 1.5rem 0;
}
.prose figcaption {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  text-align: center;
  margin-top: 0.4rem;
}

/* tables in prose */
.prose table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prose th,
.prose td,
.data-table th,
.data-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th,
.data-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose tbody tr:last-child td,
.data-table tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) { background: var(--gray-50); }
@media (prefers-color-scheme: dark) {
  .prose tbody tr:nth-child(even),
  .data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
}

/* tabular wrapping container */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin: 1.25rem 0;
}
.table-scroll > table {
  margin: 0;
  border: none;
  border-radius: 0;
}

/* inline citations */
.prose [data-cite],
sup.cite {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  vertical-align: super;
  padding: 0 0.15em;
}
.prose [data-cite]:hover,
sup.cite:hover { text-decoration: underline; }

/* -------------------------------------------------------------------
   13. TOC (sticky on desktop)
   ------------------------------------------------------------------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-size: var(--fs-sm);
}
.toc__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin: 0 0 0.6rem;
}
.toc nav ul,
.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc nav ul ul { padding-left: 0.9rem; margin: 0.25rem 0; }
.toc li { margin: 0.2rem 0; }
.toc a {
  text-decoration: none;
  color: var(--text-soft);
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-xs);
  border-left: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
}
.toc a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.toc a.is-active {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* collapse to inline accordion on narrow screens */
@media (max-width: 1023px) {
  .toc {
    margin-bottom: 1.5rem;
  }
  .toc details > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
  }
  .toc details > summary::-webkit-details-marker { display: none; }
  .toc details > summary::after {
    content: " ▾";
    font-size: 0.8em;
    color: var(--text-mute);
  }
  .toc details[open] > summary::after { content: " ▴"; }
}

/* -------------------------------------------------------------------
   14. Clinic profile
   ------------------------------------------------------------------- */
.clinic {
  display: grid;
  gap: 1.5rem;
}
.clinic-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.clinic-hero__img {
  width: 100%;
  height: clamp(180px, 30vw, 280px);
  object-fit: cover;
  display: block;
}
.clinic-hero__placeholder {
  height: 8rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(135deg, var(--brand-100), var(--brand-300));
}
.clinic-hero__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.clinic-hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  padding: 0.2rem 0.55rem;
  background: var(--primary-soft);
  border-radius: var(--r-pill);
  margin-bottom: 0.6rem;
}
.clinic-hero__name {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  line-height: var(--lh-tight);
  color: var(--text);
}
.clinic-hero__summary {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
  font-size: var(--fs-md);
  max-width: 60ch;
}
.clinic-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.clinic-hero__score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent-600);
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
}

/* trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}
.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-strip__item::before {
  content: "✓";
  color: var(--success-500);
  font-weight: 700;
}
.trust-strip__item--open::before { content: "●"; }
.trust-strip__item--closed::before { content: "●"; color: var(--danger-500); }

/* -------------------------------------------------------------------
   15. Quick facts
   ------------------------------------------------------------------- */
.quickfacts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quickfacts__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin: 0 0 0.75rem;
}
.quickfacts__list { margin: 0; }
.quickfacts__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  align-items: baseline;
}
.quickfacts__row:last-child { border-bottom: none; }
.quickfacts__row dt {
  color: var(--text-mute);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.quickfacts__row dt svg {
  width: 14px; height: 14px; flex: none;
  color: var(--primary);
}
.quickfacts__row dd { margin: 0; color: var(--text); }

/* hours sub-list */
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.1rem 0;
}
.hours-list .hours-days { font-weight: 600; color: var(--text); }

/* -------------------------------------------------------------------
   16. Section card (generic container)
   ------------------------------------------------------------------- */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.section-card + .section-card { margin-top: 1.5rem; }
.section-card__title {
  margin: 0 0 0.75rem;
  font-size: var(--fs-lg);
  color: var(--text);
}

/* -------------------------------------------------------------------
   17. FAQ accordion
   ------------------------------------------------------------------- */
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.faq__title { margin: 0 0 1rem; font-size: var(--fs-lg); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  margin-left: auto;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-base);
  flex: none;
  margin-top: 0.45rem;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-item__body {
  padding: 0 0.25rem 0.9rem;
  color: var(--text-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}
.faq-item__body :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------
   18. Sources / citations
   ------------------------------------------------------------------- */
.sources {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  font-size: var(--fs-sm);
}
.sources__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin: 0 0 0.65rem;
}
.sources__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.sources__list li { margin: 0.3rem 0; }
.sources__date { color: var(--text-mute); font-size: var(--fs-xs); }
.sources__verified {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sources__verified::before {
  content: "🛡";
  color: var(--success-500);
}

/* -------------------------------------------------------------------
   19. Disclaimer / aside
   ------------------------------------------------------------------- */
.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.disclaimer a {
  color: var(--accent-600);
  font-weight: 600;
}

/* -------------------------------------------------------------------
   20. Cards: clinic / district / service / article
   ------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.clinic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color var(--t-base), box-shadow var(--t-base),
              transform var(--t-base);
}
.clinic-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.clinic-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.clinic-card__name {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.3;
}
.clinic-card__name a {
  text-decoration: none;
  color: var(--text);
}
.clinic-card__name a:hover { color: var(--primary); }
.clinic-card__type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text-mute);
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.clinic-card__summary {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  flex: 1;
}
.clinic-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.clinic-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.clinic-card__score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-600);
}
.clinic-card__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* badges */
.badge {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.badge--district {
  background: #eef6ff;
  color: #1a5fa8;
}
.badge--service {
  background: var(--primary-soft);
  color: var(--primary-strong);
}
@media (prefers-color-scheme: dark) {
  .badge--district { background: #142a44; color: #7eb6ee; }
}

/* district / service overview cards */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t-base), background var(--t-base),
              transform var(--t-base);
}
.tile:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}
.tile__name { font-weight: 600; font-size: var(--fs-base); line-height: 1.3; }
.tile__sub  { font-size: var(--fs-xs); color: var(--text-mute); }

/* article cards (guides etc.) */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.article-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.article-card__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.article-card__title {
  margin: 0 0 0.4rem;
  font-size: var(--fs-md);
  line-height: 1.3;
}
.article-card__title a {
  text-decoration: none;
  color: var(--text);
}
.article-card__title a:hover { color: var(--primary); }
.article-card__summary {
  margin: 0 0 0.6rem;
  color: var(--text-soft);
  font-size: var(--fs-sm);
}
.article-card__meta {
  display: flex;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

/* -------------------------------------------------------------------
   21. Filters
   ------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}
.filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 160px;
}
.filters__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filters__select {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
}
.filters__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.empty-state {
  color: var(--text-mute);
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  margin: 1rem 0;
}

/* -------------------------------------------------------------------
   22. Price range / call-out block
   ------------------------------------------------------------------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-100);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout__title {
  margin: 0 0 0.3rem;
  font-size: var(--fs-sm);
  color: var(--accent-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.callout p { margin: 0; }
.callout strong { color: var(--text); }

/* -------------------------------------------------------------------
   23. Map
   ------------------------------------------------------------------- */
.clinic-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.clinic-map__trigger {
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  background: none;
  display: block;
}
.clinic-map__thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.clinic-map__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-weight: 600;
}
.clinic-map__link {
  display: block;
  padding: 0.6rem 1rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  background: var(--primary-soft);
}

/* -------------------------------------------------------------------
   24. Stats row (homepage)
   ------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}
.stat {
  text-align: center;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.stat__num {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--primary-strong);
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* -------------------------------------------------------------------
   25. Sticky CTA (mobile)
   ------------------------------------------------------------------- */
.clinic-cta-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  gap: 0.6rem;
  box-shadow: 0 -4px 16px rgba(15,30,40,0.10);
}
.btn--sticky { flex: 1; justify-content: center; }
@media (max-width: 680px) {
  .clinic-cta-sticky { display: flex; }
  main { padding-bottom: 5rem; }
}

/* -------------------------------------------------------------------
   26. Compare tray + table
   ------------------------------------------------------------------- */
.btn--compare {
  border-color: var(--border-strong);
  color: var(--text-soft);
  background: var(--surface);
}
.btn--compare-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.btn--compare:disabled { opacity: 0.45; cursor: not-allowed; }

.compare-tray {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -6px 24px rgba(15,30,40,0.12);
}
.compare-tray__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.compare-tray__label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  white-space: nowrap;
}
.compare-tray__list {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  flex-wrap: wrap;
}
.compare-tray__item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary-soft);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.7rem;
  font-size: var(--fs-xs);
  color: var(--primary-strong);
}
.compare-tray__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mute);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.1rem;
}
.compare-tray__remove:hover { color: var(--text); }
.compare-tray__actions { display: flex; gap: 0.4rem; }
body:has(.compare-tray:not([hidden])) main { padding-bottom: 6rem; }

.compare-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 540px;
}
.compare-table thead th {
  background: var(--surface-2);
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th a { text-decoration: none; color: var(--primary-strong); }
.compare-table tbody th {
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: var(--text-mute);
  background: var(--surface);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table tbody td {
  padding: 0.65rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tfoot td {
  padding: 0.85rem 1rem;
  text-align: center;
  background: var(--surface-2);
}
.compare-back {
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* -------------------------------------------------------------------
   27. Footer
   ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin-top: 4rem;
}
.site-footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.site-footer__col h2 {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin: 0 0 0.85rem;
}
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__list a {
  color: var(--text-soft);
  text-decoration: none;
}
.site-footer__list a:hover { color: var(--primary); }
.site-footer__about p {
  margin: 0.4rem 0 0.7rem;
  color: var(--text-soft);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: var(--fs-md);
  text-decoration: none;
}
.site-footer__bottom {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 1rem var(--gutter) 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

@media (max-width: 800px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------
   28. Site search
   ------------------------------------------------------------------- */
.site-search {
  position: relative;
  flex-shrink: 0;
}
.site-search__input {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  width: 200px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: width var(--t-base), border-color var(--t-base);
}
.site-search__input::placeholder { color: var(--text-mute); }
.site-search__input:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: none;
  width: 260px;
}
.site-search__results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 400;
}
.search-result {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result:focus {
  background: var(--primary-soft);
  outline: none;
}
.search-result__title {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.search-result__excerpt {
  display: -webkit-box;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-top: 0.2rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-result--empty,
.search-result--info {
  padding: 1rem;
  color: var(--text-mute);
  font-size: var(--fs-sm);
}

/* -------------------------------------------------------------------
   29. Error / 404
   ------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-page h1 {
  font-size: var(--fs-2xl);
  color: var(--primary-strong);
}
.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------
   30. Responsive overrides
   ------------------------------------------------------------------- */
@media (max-width: 800px) {
  .site-search__input { width: 140px; }
  .site-search__input:focus { width: 180px; }
  .site-search__results { width: 92vw; right: -1rem; }
  .quickfacts__row { grid-template-columns: 1fr; gap: 0.1rem; }
  .quickfacts__row dt { font-size: var(--fs-xs); }
}
@media (max-width: 640px) {
  .site-search { display: none; }
  .compare-tray__inner { padding: 0.625rem 1rem; }
  .compare-tray__label { flex: 1 0 100%; }
  .clinic-hero__ctas .btn--large { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------
   31. Print
   ------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .clinic-cta-sticky,
  .compare-tray,
  .toc,
  .site-search { display: none !important; }
  main { max-width: none; padding: 0; }
  .clinic-hero,
  .quickfacts,
  .faq,
  .section-card,
  .sources {
    box-shadow: none;
    border-color: #ccc;
    page-break-inside: avoid;
  }
  a { color: #000; text-decoration: underline; }
}

/* =====================================================================
   Sản Khoa Hà Nội — OBGYN editorial redesign
   ===================================================================== */

:root {
  color-scheme: light;
  --rose-50: #fff7f4;
  --rose-100: #fde8e1;
  --rose-200: #f8d8cd;
  --rose-300: #eeb8aa;
  --rose-500: #c75f63;
  --rose-600: #a94750;
  --teal-50: #edf7f6;
  --teal-100: #d7eeec;
  --teal-500: #407e83;
  --teal-700: #174e5b;
  --teal-900: #12313b;
  --sage-50: #f3f7ef;
  --sage-400: #9bb58f;
  --ink: #17313a;
  --ink-soft: #48636b;
  --ink-mute: #728188;
  --paper: #fffdfb;
  --paper-2: #fff8f4;
  --linen: #f9efe8;
  --line: #ead9cf;
  --line-strong: #d7bfb3;
  --gold: #b98a44;

  --brand-50: var(--teal-50);
  --brand-100: var(--teal-100);
  --brand-200: #b7ddda;
  --brand-300: #7fbfbd;
  --brand-500: var(--teal-500);
  --brand-600: #2b6871;
  --brand-700: var(--teal-700);
  --brand-800: var(--teal-900);
  --accent-50: var(--rose-50);
  --accent-100: var(--rose-200);
  --accent-500: var(--rose-500);
  --accent-600: var(--rose-600);

  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: var(--paper-2);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-mute: var(--ink-mute);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --primary: var(--teal-700);
  --primary-hover: var(--teal-900);
  --primary-strong: var(--teal-900);
  --primary-soft: var(--teal-50);
  --accent: var(--rose-500);
  --accent-soft: var(--rose-50);
  --link: #245f69;
  --link-hover: var(--rose-600);
  --focus-ring: 0 0 0 3px rgba(199, 95, 99, 0.28);

  --font-sans: "Be Vietnam Pro", "Inter", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 4.25rem;
  --lh-tight: 1.08;
  --lh-snug: 1.42;
  --lh-base: 1.72;

  --content-wide: 76rem;
  --content-text: 45rem;
  --gutter: 1.25rem;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 8px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(69, 44, 33, 0.06), 0 7px 18px rgba(69, 44, 33, 0.06);
  --shadow-md: 0 2px 7px rgba(69, 44, 33, 0.08), 0 18px 34px rgba(69, 44, 33, 0.08);
  --shadow-lg: 0 8px 18px rgba(69, 44, 33, 0.09), 0 28px 52px rgba(69, 44, 33, 0.10);
}

*,
*::before,
*::after {
  letter-spacing: 0 !important;
}

html {
  background: var(--paper);
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #fff4ef 0, #fffdfb 440px),
    var(--paper);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 760;
  color: var(--primary-strong);
  letter-spacing: 0;
}

h1 {
  font-size: var(--fs-2xl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
}

a {
  color: var(--link);
  text-decoration-color: rgba(36, 95, 105, 0.28);
}

a:hover {
  color: var(--link-hover);
}

main {
  padding-top: 1.25rem;
}

.skip-link:focus {
  background: var(--primary-strong);
  border-radius: var(--r-md);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border: 0;
  background: transparent;
  padding: 0.85rem var(--gutter) 0;
}

.site-header__inner {
  max-width: var(--content-wide);
  min-height: 4.25rem;
  margin: 0 auto;
  padding: 0.55rem 0.7rem 0.55rem 0.75rem;
  border: 1px solid rgba(215, 191, 179, 0.82);
  border-radius: var(--r-pill);
  background: rgba(255, 253, 251, 0.92);
  box-shadow: 0 8px 24px rgba(62, 42, 34, 0.10);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.site-brand {
  gap: 0.65rem;
  color: var(--primary-strong);
  min-width: max-content;
}

.site-brand__mark {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background:
    linear-gradient(150deg, var(--teal-700), var(--teal-900));
  color: #fff8f4;
  box-shadow: inset 0 0 0 3px rgba(255, 248, 244, 0.24);
}

.site-brand__mark::after {
  content: "";
  position: absolute;
  right: -0.18rem;
  top: 0.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px 999px 999px 0;
  background: var(--rose-500);
  transform: rotate(18deg);
}

.site-brand__glyph {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.site-brand__text {
  display: grid;
  gap: 0.08rem;
  line-height: 1.05;
}

.site-brand__text strong {
  font-size: 1.04rem;
  font-weight: 780;
}

.site-brand__text small {
  color: var(--text-mute);
  font-size: 0.72rem;
  font-weight: 650;
}

.site-nav {
  justify-content: center;
  gap: 0.15rem;
}

.site-nav a {
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 680;
  padding: 0.58rem 0.82rem;
}

.site-nav a:hover {
  background: var(--rose-50);
  color: var(--primary-strong);
}

.site-nav a[aria-current="page"] {
  background: var(--teal-50);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(64, 126, 131, 0.2);
}

.site-search__input {
  width: 15.5rem;
  border-color: rgba(215, 191, 179, 0.88);
  background: #fff8f4;
  color: var(--text);
  padding: 0.62rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-search__input:focus {
  width: 18rem;
  border-color: var(--accent);
}

.site-search__results {
  border-color: var(--border);
  border-radius: var(--r-md);
  background: #fffdfb;
}

.search-result:hover,
.search-result:focus {
  background: var(--rose-50);
}

.breadcrumbs {
  margin: 0 0 1.1rem;
}

.breadcrumbs__list {
  color: var(--text-mute);
}

.breadcrumbs__item a {
  color: var(--text-mute);
}

.home-hero {
  min-height: 38rem;
  margin: -1.25rem calc(50% - 50vw) 0;
  padding: 4.25rem max(var(--gutter), calc((100vw - var(--content-wide)) / 2 + var(--gutter))) 3rem;
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(255, 231, 224, 0.03) 0%, rgba(255, 231, 224, 0.08) 38%, rgba(255, 239, 234, 0.72) 58%, rgba(255, 239, 234, 0.93) 100%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.24), rgba(255, 245, 241, 0.18)),
    url("/img/hero-obgyn.webp");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.home-hero__content {
  width: min(100%, 41rem);
  margin-left: auto;
}

.home-hero h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  color: var(--primary-strong);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
}

.home-hero .page-hero__lead {
  max-width: 34rem;
  margin-bottom: 1.25rem;
  color: #244954;
  font-size: 1.22rem;
  line-height: 1.52;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.home-hero__note {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: #5a7076;
  font-size: var(--fs-sm);
  font-weight: 650;
}

.page-hero {
  margin-bottom: 1.6rem;
  padding: 2.2rem 2.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(90deg, rgba(255, 247, 244, 0.97), rgba(237, 247, 246, 0.78)),
    linear-gradient(135deg, transparent 0 58%, rgba(248, 216, 205, 0.52) 58% 60%, transparent 60% 100%);
}

.page-hero--landing {
  background: none;
}

.page-hero__eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--rose-600);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero__eyebrow::before,
.section-kicker::before {
  content: "";
  width: 2.35rem;
  height: 1px;
  background: currentColor;
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 0.8rem;
  font-size: var(--fs-2xl);
}

.page-hero__lead {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: var(--fs-md);
}

.page-hero__meta {
  color: var(--text-soft);
}

.page-hero__meta-item::before {
  background: var(--rose-500);
}

.directory-page,
.districts-page,
.district-page,
.services-page,
.service-page,
.compare-page {
  display: grid;
  gap: 1.35rem;
}

.directory-page > .page-hero,
.districts-page > .page-hero,
.district-page > .page-hero,
.services-page > .page-hero,
.service-page > .page-hero,
.compare-page > .page-hero {
  margin-bottom: 0.15rem;
}

.page--single-column {
  grid-template-columns: minmax(0, 1fr);
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2.2rem;
  margin: 4rem 0 2rem;
  align-items: start;
}

.section-heading {
  margin: 0;
  color: var(--primary-strong);
  font-size: 2.25rem;
  line-height: 1.15;
}

.home-intro__body .key-answer {
  margin-bottom: 1.25rem;
}

.home-section {
  margin-top: 3.8rem;
}

.home-section--tint {
  margin-right: -1.25rem;
  margin-left: -1.25rem;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.96), rgba(243, 247, 239, 0.62));
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.home-section__header > div {
  max-width: 42rem;
}

.home-section__header p:not(.section-kicker) {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2.2rem 0 0;
}

.feature-card {
  min-height: 12rem;
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--rose-300);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-600);
  font-size: var(--fs-xs);
  font-weight: 850;
}

.feature-card__title {
  color: var(--primary-strong);
  font-size: var(--fs-md);
  font-weight: 780;
  line-height: 1.25;
}

.feature-card__text {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.btn {
  min-height: 2.45rem;
  min-width: 0;
  border-radius: var(--r-pill);
  font-weight: 760;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.btn--large {
  min-height: 3rem;
  padding: 0.82rem 1.35rem;
  font-size: var(--fs-base);
}

.btn--primary {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff8f4;
  box-shadow: 0 10px 22px rgba(18, 49, 59, 0.18);
}

.btn--primary:hover {
  background: var(--rose-600);
  border-color: var(--rose-600);
  color: #fff;
}

.btn--secondary {
  background: rgba(255, 253, 251, 0.85);
  border-color: var(--line-strong);
  color: var(--primary-strong);
}

.btn--secondary:hover {
  background: var(--rose-50);
  border-color: var(--rose-300);
  color: var(--primary-strong);
}

.btn--ghost {
  border-color: rgba(64, 126, 131, 0.18);
  background: rgba(237, 247, 246, 0.58);
  color: var(--primary-strong);
}

.btn--ghost:hover {
  background: var(--teal-50);
  color: var(--primary-strong);
}

.key-answer {
  border: 1px solid #e8cec3;
  border-left: 4px solid var(--rose-500);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff9f6, #fff3ee);
  box-shadow: none;
}

.key-answer::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--rose-500);
  background: transparent;
  box-shadow: inset 0 0 0 4px #fff8f4;
}

.key-answer__label {
  color: var(--rose-600);
}

.key-answer__body {
  color: var(--text);
}

.stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.45rem 0 0;
}

.stat {
  position: relative;
  overflow: hidden;
  min-height: 5.4rem;
  padding: 0.85rem 0.8rem;
  text-align: left;
  border-color: rgba(215, 191, 179, 0.65);
  border-radius: var(--r-md);
  background: rgba(255, 253, 251, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stat::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
  width: 1.8rem;
  height: 1px;
  background: var(--rose-500);
}

.stat__num {
  color: var(--primary-strong);
  font-size: 2.25rem;
  font-weight: 850;
}

.stat__label {
  color: var(--text-soft);
  font-weight: 720;
  text-transform: none;
}

.glance {
  gap: 0.85rem;
}

.glance__item {
  border-color: var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.glance__label {
  color: var(--text-mute);
  text-transform: none;
}

.glance__value {
  color: var(--primary-strong);
}

.tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.85rem;
}

.tile {
  min-height: 7.25rem;
  justify-content: space-between;
  border-color: var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, #fff, #fffaf7);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tile:hover {
  border-color: var(--rose-300);
  background:
    linear-gradient(180deg, #fff8f4, #ffffff);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tile__name {
  color: var(--primary-strong);
}

.tile__sub {
  color: var(--text-mute);
}

.card-grid {
  gap: 1rem;
}

.card-grid--articles {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)) !important;
}

.card-grid--editorial {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.clinic-card,
.article-card,
.section-card,
.faq,
.sources,
.toc,
.quickfacts,
.filters,
.compare-table-wrap,
.clinic-map {
  border-color: var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.section-card {
  box-shadow: none;
}

.clinic-card {
  position: relative;
  gap: 0.72rem;
  padding: 1.2rem;
}

.clinic-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: linear-gradient(180deg, var(--rose-500), var(--teal-500));
}

.clinic-card:hover,
.article-card:hover {
  border-color: var(--rose-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.clinic-card__name {
  font-size: 1.05rem;
}

.clinic-card__name a,
.article-card__title a {
  color: var(--primary-strong);
}

.clinic-card__name a:hover,
.article-card__title a:hover {
  color: var(--rose-600);
}

.clinic-card__type {
  border-color: #ead6cc;
  background: var(--rose-50);
  color: var(--rose-600);
  text-transform: none;
}

.clinic-card__summary,
.article-card__summary {
  color: var(--text-soft);
}

.clinic-card__footer {
  border-top-color: var(--line);
}

.clinic-card__score {
  color: var(--gold);
}

.badge {
  border: 1px solid transparent;
  font-weight: 700;
}

.badge--district {
  background: var(--sage-50);
  color: #55704b;
}

.badge--service {
  background: var(--teal-50);
  color: var(--primary-strong);
}

.article-card {
  padding: 1.35rem;
}

.article-card__eyebrow {
  color: var(--rose-600);
  text-transform: none;
  font-weight: 800;
}

.article-card__title {
  margin-top: 0;
}

.article-card__meta {
  color: var(--text-mute);
}

.listing-section {
  margin-top: 1.2rem;
}

.listing-section__title {
  margin: 0 0 1rem;
  color: var(--primary-strong);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

.filters {
  align-items: end;
  padding: 1rem;
  background:
    linear-gradient(180deg, #fffdfb, #fff8f4);
}

.filters__group {
  flex: 1 1 12rem;
}

.filters__label {
  color: var(--text-soft);
  text-transform: none;
  font-weight: 800;
}

.filters__select {
  width: 100%;
  min-height: 2.65rem;
  border-color: var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
}

.empty-state {
  border-color: var(--line-strong);
  border-radius: var(--r-md);
  color: var(--text-soft);
  background: var(--paper-2);
}

.prose {
  color: var(--text);
}

.prose h2 {
  color: var(--primary-strong);
}

.prose h2::before {
  width: 3rem;
  height: 2px;
  background: var(--rose-500);
}

.prose a {
  text-decoration-color: rgba(199, 95, 99, 0.35);
}

.prose table,
.data-table,
.compare-table {
  background: #fff;
}

.prose th,
.data-table th,
.compare-table thead th {
  background: var(--teal-50);
  color: var(--primary-strong);
  text-transform: none;
}

.prose tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
  background: #fffaf7;
}

.clinic-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-color: var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, #fff8f4, #edf7f6);
  box-shadow: var(--shadow-md);
}

.clinic-hero__img {
  width: 100%;
  height: 100%;
  min-height: 25rem;
  object-fit: cover;
}

.clinic-hero__placeholder {
  min-height: 25rem;
  background:
    linear-gradient(135deg, #f8d8cd 0 35%, #edf7f6 35% 100%);
}

.clinic-hero__body {
  align-self: center;
  padding: 2.4rem;
}

.clinic-hero__eyebrow {
  background: #fff;
  color: var(--rose-600);
  text-transform: none;
  border: 1px solid var(--line);
  font-weight: 800;
}

.clinic-hero__name {
  color: var(--primary-strong);
  font-size: 2.25rem;
}

.clinic-hero__summary {
  color: var(--text-soft);
}

.trust-strip {
  border-top-color: rgba(215, 191, 179, 0.8);
  color: var(--text-soft);
}

.trust-strip__item::before {
  color: var(--teal-500);
}

.quickfacts {
  padding: 1.25rem;
}

.quickfacts__title,
.sources__title,
.toc__title {
  color: var(--rose-600);
  text-transform: none;
}

.quickfacts__row {
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  border-bottom-color: var(--line);
}

.quickfacts__row dt {
  color: var(--text-soft);
  text-transform: none;
}

.quickfacts__row dt svg {
  color: var(--rose-500);
}

.quickfacts__note {
  color: var(--text-mute);
  font-size: var(--fs-xs);
}

.editorial-meta__link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.editorial-meta__link:hover {
  color: var(--rose-600);
}

.related-list {
  margin-top: 1rem;
}

.related-list__items {
  font-size: var(--fs-sm);
}

.toc a:hover,
.toc a.is-active {
  background: var(--rose-50);
  color: var(--primary-strong);
  border-left-color: var(--rose-500);
}

.faq {
  padding: 1.4rem;
}

.faq__title {
  color: var(--primary-strong);
}

.faq-item {
  border-bottom-color: var(--line);
}

.faq-item summary {
  color: var(--primary-strong);
}

.faq-item summary::after {
  border-color: var(--rose-500);
}

.faq-item__body {
  color: var(--text-soft);
}

.sources__verified {
  border-top-color: var(--line);
}

.disclaimer {
  background: var(--teal-50);
  border-left-color: var(--teal-500);
  color: var(--text-soft);
}

.callout {
  border-color: #edcfc4;
  border-left-color: var(--rose-500);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, #fff7f4, #fffdfb);
}

.callout__title {
  color: var(--rose-600);
  text-transform: none;
}

.editorial-promise {
  margin-top: 3.5rem;
}

.compare-tray {
  border-top-color: var(--rose-500);
  background: #fffdfb;
}

.compare-tray__item {
  background: var(--rose-50);
  color: var(--primary-strong);
}

.compare-table tbody th {
  color: var(--text-soft);
  text-transform: none;
}

.site-footer {
  margin-top: 4rem;
  border-top-color: var(--line);
  background:
    linear-gradient(180deg, #fff8f4, #fffdfb 42%);
}

.site-footer__inner {
  padding-top: 3rem;
}

.site-footer__contact {
  color: var(--text-mute);
  font-size: var(--fs-xs);
}

.site-footer__contact a {
  color: inherit;
}

.site-footer__brand {
  color: var(--primary-strong);
}

.site-footer__col h2 {
  color: var(--rose-600);
  text-transform: none;
}

.site-footer__list a {
  color: var(--text-soft);
}

.site-footer__list a:hover {
  color: var(--rose-600);
}

.site-footer__bottom {
  border-top-color: var(--line);
}

.site-footer__bottom p {
  margin: 0;
}

.clinic-cta-sticky {
  background: rgba(255, 253, 251, 0.96);
  border-top-color: var(--line);
}

@media (min-width: 900px) {
  :root {
    --gutter: 2rem;
  }
}

@media (max-width: 1120px) {
  .site-header__inner {
    border-radius: 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-brand {
    flex: 1 1 auto;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
  }

  .site-search {
    margin-left: auto;
  }
}

@media (max-width: 920px) {
  .home-hero {
    min-height: auto;
    padding-top: 21rem;
    background-image:
      linear-gradient(180deg, rgba(255, 245, 241, 0.02) 0, rgba(255, 245, 241, 0.2) 36%, rgba(255, 245, 241, 0.96) 58%, rgba(255, 253, 251, 1) 100%),
      url("/img/hero-obgyn.webp");
    background-position: 28% top;
  }

  .home-hero__content {
    margin-left: 0;
  }

  .home-hero h1 {
    max-width: 16ch;
    font-size: 3rem;
  }

  .home-intro,
  .clinic-hero {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-section__header {
    align-items: start;
    flex-direction: column;
  }

  .clinic-hero__img,
  .clinic-hero__placeholder {
    min-height: 15rem;
    max-height: 20rem;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, #fff4ef 0, #fffdfb 300px),
      var(--paper);
  }

  main {
    padding-inline: 1rem;
  }

  .site-header {
    padding: 0.5rem 0.75rem 0;
  }

  .site-header__inner {
    min-height: 0;
    padding: 0.55rem;
    border-radius: 1.25rem;
    gap: 0.55rem;
  }

  .site-brand__text small {
    display: none;
  }

  .site-nav {
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.05rem;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.38rem 0.36rem;
    font-size: 0.78rem;
  }

  .site-search {
    display: none;
  }

  .home-hero {
    margin: -1.25rem -1rem 0;
    padding: 7.75rem 1rem 0.85rem;
    background-position: 24% top;
  }

  .home-hero h1 {
    font-size: 1.98rem;
  }

  .home-hero .page-hero__lead {
    margin-bottom: 0.95rem;
    font-size: var(--fs-base);
    line-height: 1.48;
  }

  .home-hero__note {
    margin-top: 0.7rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .home-hero__actions .btn {
    width: 100%;
    flex: none;
    min-height: 2.65rem;
    padding: 0.68rem 0.82rem;
    font-size: 0.95rem;
  }

  .home-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.95rem;
    padding-bottom: 0;
  }

  .stat {
    min-height: 3.85rem;
    padding: 0.55rem 0.7rem;
  }

  .stat__num {
    font-size: 1.55rem;
  }

  .home-section--tint {
    margin-right: -1rem;
    margin-left: -1rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .page-hero {
    overflow: hidden;
    padding: 1.5rem;
  }

  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero h1,
  .section-heading {
    font-size: 2rem;
  }

  .home-intro {
    margin-top: 1rem;
  }

  .feature-card {
    min-height: 0;
  }

  .clinic-hero__body {
    padding: 1.35rem;
  }

  .clinic-hero__ctas {
    display: grid;
    grid-template-columns: 1fr;
  }

  .clinic-hero__ctas .btn {
    width: 100%;
  }

  .clinic-hero__name {
    font-size: 1.75rem;
  }

  .quickfacts__row {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compare-tray__actions,
  .compare-tray__actions .btn {
    width: 100%;
  }
}
