:root {
  --green: #0e6b3c;
  --green-deep: #0a4f2c;
  --leaf: #2fa35f;
  --leaf-soft: #e3f2e8;
  --yellow: #f5b700;
  --yellow-deep: #d99e00;
  --ink: #14261c;
  --ink-soft: #4b5f53;
  --line: #d8e2db;
  --paper: #f6f8f3;
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }

/* buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem; padding: 11px 20px; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--leaf-soft); }
.btn-sm { font-size: .9rem; padding: 8px 14px; }
.btn-lg { font-size: 1.1rem; padding: 14px 26px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-logo { height: 48px; width: auto; }
.brand-name { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--green); line-height: 1; }
.brand-tag { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:not(.btn):hover { border-bottom-color: var(--yellow); }

/* hero: the one bold element */
.hero { background: var(--green); color: var(--white); padding: 64px 0 56px; }
.hero h1, .hero-sub { max-width: 18ch; }
.hero-sub { max-width: 60ch; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: .5em; }
.hero-sub { font-size: 1.15rem; color: #d6ecdc; max-width: 60ch; margin-bottom: 1.6em; }
.search { display: flex; background: var(--white); border-radius: var(--r); padding: 6px; gap: 6px; max-width: 640px; box-shadow: 0 8px 0 var(--yellow); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.15rem; padding: 10px 14px; color: var(--ink); }
.search input::placeholder { color: #8a9a90; }
.search .btn { border-radius: 4px; }
.search-inline { box-shadow: none; border: 1px solid var(--line); max-width: 460px; }
.hero-chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.hero-chips a:hover { background: rgba(255,255,255,.12); }
.hero-chips small { color: var(--yellow); margin-left: 4px; }

/* sections */
.section { padding: 44px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--green); padding-bottom: 8px; }
.section-head h2 { margin: 0; }
.more { margin-top: 24px; }

/* hospital rows */
.hlist { list-style: none; counter-reset: h; padding: 0; margin: 0; }
.hlist[start] { counter-reset: h calc(attr(start integer, 1) - 1); }
.hrow { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.hrow-thumb { text-decoration: none; width: 160px; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--leaf-soft); display: grid; place-items: center; }
.hrow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--green); }
.hrow h3 { margin: 0 0 4px; font-size: 1.25rem; }
.hrow h3 a { color: var(--ink); text-decoration: none; }
.hrow h3 a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.hrow-meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.hrow-meta a { color: var(--green); text-decoration: none; }
.hrow-meta a:hover { text-decoration: underline; }
.hrow-desc { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.hrow-actions { display: flex; flex-direction: column; gap: 8px; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 6px; }
.pager-list { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pager-list a { display: inline-block; min-width: 40px; text-align: center; padding: 8px 6px; border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 500; }
.pager-list a:hover { background: var(--leaf-soft); }
.pager-list a[aria-current="page"] { background: var(--green); color: var(--white); }
.pager-list .gap { padding: 8px 4px; color: var(--ink-soft); }
.pager-arrow { text-decoration: none; font-weight: 600; }
.pager-arrow[aria-disabled="true"] { pointer-events: none; opacity: .35; }
.pager-note { text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* list layout */
.crumbs { padding: 18px 0 8px; font-size: .9rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--ink-soft); margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--ink-soft); }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.list-head h1 { margin-bottom: .2em; }
.list-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-bottom: 50px; }
.filters { position: sticky; top: 90px; align-self: start; }
.filter-h { font-weight: 600; margin: 18px 0 6px; font-size: .95rem; }
.filter-h:first-child { margin-top: 4px; }
.filters select { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { text-decoration: none; display: block; padding: 4px 0; }
.side-links small { color: var(--ink-soft); }
.empty { padding: 40px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.empty-page { text-align: center; padding: 80px 20px; }

/* types & cities */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); display: block; }
.type-card:hover { border-top-color: var(--green); }
.type-count { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--green); line-height: 1; }
.type-name { display: block; font-weight: 600; font-size: 1.15rem; margin: 6px 0 8px; }
.type-blurb { display: block; color: var(--ink-soft); font-size: .95rem; }
.city-list { list-style: none; padding: 0; margin: 0; columns: 4; column-gap: 24px; }
.city-list li { break-inside: avoid; }
.city-list a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.city-list a:hover { color: var(--green); }
.city-list .count { color: var(--ink-soft); }
.city-grid { list-style: none; padding: 0; margin: 20px 0 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.city-grid a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.city-grid a:hover { border-color: var(--green); }
.city-name { display: block; font-weight: 600; font-size: 1.1rem; }
.city-count { display: block; color: var(--ink-soft); font-size: .9rem; }
.how { background: var(--white); border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 50px; }
.steps { padding-left: 1.3em; margin: 0; max-width: 70ch; display: grid; gap: 10px; }
.steps li::marker { color: var(--green); font-weight: 700; }

/* hospital page */
.h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 6px 0 22px; }
.h-head h1 { margin-bottom: .2em; }
.h-meta { color: var(--ink-soft); display: flex; gap: 8px; margin: 0; }
.h-meta a { text-decoration: none; }
.h-gallery { display: grid; gap: 10px; margin-bottom: 30px; }
.h-gallery.multi { grid-template-columns: 2fr 1fr; }
.h-main { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--leaf-soft); aspect-ratio: 16/10; }
.h-main img { width: 100%; height: 100%; object-fit: cover; }
.h-main figcaption { font-size: .85rem; color: var(--ink-soft); padding: 6px 0; }
.h-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-thumbs figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/2; }
.h-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.h-placeholder { display: grid; place-items: center; align-content: center; color: var(--green); }
.h-placeholder span { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1; }
.h-placeholder p { margin: 8px 0 0; color: var(--ink-soft); }
.h-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding-bottom: 56px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.facts > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .85rem; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.facts dd a { text-decoration: none; color: var(--green); }
.h-about, .h-how { max-width: 68ch; }
.h-how { background: var(--leaf-soft); padding: 22px 24px; border-radius: var(--r); margin-top: 8px; }
.h-how p:last-child { margin: 0; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .95rem; }
.neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.nb { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-weight: 600; }
.nb small { display: block; color: var(--ink-soft); font-weight: 400; }
.nb.next { text-align: right; }
.nb:hover { border-color: var(--green); }
.h-side section { margin-bottom: 34px; }
.h-side h2 { font-size: 1.2rem; border-bottom: 2px solid var(--yellow); padding-bottom: 6px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { border-bottom: 1px solid var(--line); }
.mini-list a { display: flex; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); align-items: center; }
.mini-list a:hover strong { color: var(--green); }
.mini-list strong { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.mini-list small { color: var(--ink-soft); }
.mini-thumb { flex: none; width: 56px; height: 42px; border-radius: 4px; background: var(--leaf-soft); overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--green); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }

/* CTA + footer */
.cta-band { background: var(--green); color: var(--white); padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: #d6ecdc; max-width: 56ch; margin: 0; }
.site-footer { background: var(--green-deep); color: #cfe3d6; padding: 40px 0 20px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid a { display: block; color: var(--white); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: .3em; }
.footer-h { color: var(--yellow); font-weight: 600; margin-bottom: .5em; }
.footer-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 60; }

/* responsive */
@media (max-width: 900px) {
  .list-layout, .h-layout, .h-gallery.multi { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .filters form { display: contents; }
  .type-grid { grid-template-columns: 1fr; }
  .city-list { columns: 2; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .brand-tag { display: none; }
  .hero { padding: 44px 0 40px; }
  .search { flex-direction: column; }
  .search input { padding: 12px 10px; }
  .hrow { grid-template-columns: 96px 1fr; }
  .hrow-thumb { width: 96px; }
  .hrow-actions { grid-column: 1 / -1; flex-direction: row; }
  .neighbours { grid-template-columns: 1fr; }
  .nb.next { text-align: left; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .h-head .btn-lg { width: 100%; text-align: center; }
}

/* doctors */
.drow { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.drow-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--leaf-soft); display: grid; place-items: center; text-decoration: none; }
.drow-photo img { width: 100%; height: 100%; object-fit: cover; }
.drow-photo .ph { font-size: 1.6rem; }
.drow h3 { margin: 0 0 2px; font-size: 1.2rem; }
.drow h3 a { color: var(--ink); text-decoration: none; }
.drow h3 a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.drow-role { margin: 0; font-weight: 500; }
.drow-hosp { margin: 0 0 6px; color: var(--ink-soft); font-size: .95rem; }
.drow-hosp a { text-decoration: none; }
.drow-bio { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.d-head { display: flex; gap: 28px; align-items: center; margin: 6px 0 26px; flex-wrap: wrap; }
.d-photo { width: 160px; height: 160px; flex: none; border-radius: 50%; overflow: hidden; background: var(--leaf-soft); display: grid; place-items: center; border: 4px solid var(--yellow); }
.d-photo img { width: 100%; height: 100%; object-fit: cover; }
.d-photo span { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--green); }
.d-intro h1 { margin-bottom: .1em; }
.d-role { font-size: 1.15rem; font-weight: 500; margin: 0 0 4px; }
.d-intro .h-meta { margin-bottom: 14px; }
.dd-small { font-size: 1.05rem !important; line-height: 1.3; }
.points { padding-left: 1.2em; max-width: 68ch; display: grid; gap: 8px; }
.points li::marker { color: var(--yellow); }
.mini-thumb.round { width: 44px; height: 44px; border-radius: 50%; }
.h-doctors { margin: 6px 0 28px; }
.h-doctors h3 { margin: 18px 0 8px; font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.doc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-grid-home { grid-template-columns: repeat(3, 1fr); }
.doc-grid a { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.doc-grid a:hover { border-color: var(--green); }
.doc-grid strong { display: block; font-weight: 600; line-height: 1.25; }
.doc-grid small { display: block; color: var(--ink-soft); }
.doc-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--leaf-soft); overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--green); }
.doc-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .doc-grid-home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .drow { grid-template-columns: 64px 1fr; } .drow-photo { width: 64px; height: 64px; } .drow .hrow-actions { grid-column: 1 / -1; } .doc-grid, .doc-grid-home { grid-template-columns: 1fr; } .d-photo { width: 120px; height: 120px; } }
.srow a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.srow a:hover strong { color: var(--green); }
.srow strong { display: block; font-weight: 600; }
.srow small { color: var(--ink-soft); }
