/* ==========================================================================
   Meridian Hospital — Core stylesheet
   Design system: institutional editorial. Hairlines over shadows,
   wayfinding-style labels, serif headlines, disciplined whitespace.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0b1f33;
  --navy-700: #12293f;
  --navy-600: #1a3a55;
  --blue: #1769aa;
  --blue-dark: #12558a;
  --blue-soft: #e8f1f8;
  --teal: #27b3b0;
  --teal-dark: #0f7a78;
  --teal-soft: #e6f6f6;
  --white: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-tint: #eef3f7;
  --ink: #17212b;
  --muted: #5b6a7d;
  --line: #dde5ec;
  --line-strong: #c6d3de;
  --line-dark: rgba(255, 255, 255, 0.14);
  --danger: #c1352b;
  --danger-soft: #fdf0ef;

  /* Type */
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-1: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.4rem + 0.9vw, 2.2rem);
  --step-4: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-5: clamp(2.4rem, 1.9rem + 2.6vw, 4.2rem);

  /* Space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;
  --sp-10: 112px;

  /* Shape */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.05);
  --shadow-md: 0 10px 30px -18px rgba(11, 31, 51, 0.35);
  --shadow-lg: 0 24px 60px -30px rgba(11, 31, 51, 0.4);

  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; display: block; }

svg { width: 20px; height: 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

strong { font-weight: 700; color: var(--navy); }

::selection { background: var(--teal); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; color: var(--white); }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--sp-10); }
.section--tight { padding-block: var(--sp-9); }
.section--flush-top { padding-top: 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.78); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--line-top { border-top: 1px solid var(--line); }

/* Section heading block */
.masthead { max-width: 660px; margin-bottom: var(--sp-8); }
.masthead--center { margin-inline: auto; text-align: center; }
.masthead--wide { max-width: 780px; }
.masthead p { color: var(--muted); font-size: var(--step-1); }
.masthead h2 { margin-bottom: var(--sp-4); }

.masthead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.masthead-row .masthead { margin-bottom: 0; }

/* Signature: wayfinding eyebrow — a teal tick + tracked caps label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  flex: none;
}
.eyebrow--light { color: var(--teal); }
.eyebrow--center { justify-content: center; }

.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-9);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

/* --------------------------------------------------------------------------
   4. Media wrappers (with graceful fallback if a photo fails to load)
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 65%, var(--teal-dark) 100%);
  border-radius: var(--r-md);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 51, 0.08);
  border-radius: inherit;
  pointer-events: none;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.media.is-failed img { display: none; }
.media.is-failed::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px);
}

.portrait {
  position: relative;
  overflow: hidden;
  background: var(--blue-soft);
  aspect-ratio: 4 / 5;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s var(--ease);
}
.portrait.is-failed img { display: none; }
.portrait.is-failed::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: linear-gradient(160deg, var(--blue-soft), var(--teal-soft));
}

/* --------------------------------------------------------------------------
   5. Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  text-align: center;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--blue); color: var(--white); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

.btn--ghost-light { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }

.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: #a32a22; color: var(--white); transform: translateY(-1px); }

.btn--sm { padding: 11px 18px; font-size: 0.82rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with animated rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--bg-tint);
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip--open { background: var(--teal-soft); color: var(--teal-dark); border-color: rgba(39, 179, 176, 0.3); }
.chip--soon { background: var(--blue-soft); color: var(--blue-dark); border-color: rgba(23, 105, 170, 0.2); }
.chip--referral { background: var(--bg-tint); color: var(--muted); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 40px;
}
.utility-bar a { color: rgba(255, 255, 255, 0.72); }
.utility-bar a:hover { color: var(--white); }
.utility-bar__list { display: flex; align-items: center; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.utility-bar__list li { margin: 0; }
.utility-emergency {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--white) !important;
  letter-spacing: 0.01em;
}
.utility-emergency svg { width: 15px; height: 15px; color: var(--teal); }
.utility-emergency .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(39, 179, 176, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 179, 176, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(39, 179, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 179, 176, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

/* Transparent variant used over the homepage hero.
   Stays sticky and in flow; the hero is pulled up underneath it. */
.site-header--overlay {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 31, 51, 0.78), rgba(11, 31, 51, 0));
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header--overlay.is-stuck::before { opacity: 0; }
.site-header--overlay .brand__name { color: var(--white); }
.site-header--overlay .brand__tagline { color: rgba(255, 255, 255, 0.62); }
.site-header--overlay .brand__mark { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.site-header--overlay .nav__link { color: rgba(255, 255, 255, 0.86); }
.site-header--overlay .nav__link:hover,
.site-header--overlay .nav__link[aria-current="page"] { color: var(--white); }
.site-header--overlay .icon-btn { color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.site-header--overlay .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.site-header--overlay .burger span { background: var(--white); }

.site-header.is-stuck {
  background: var(--white);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.04), 0 12px 30px -26px rgba(11, 31, 51, 0.5);
}
.site-header.is-stuck .brand__name { color: var(--navy); }
.site-header.is-stuck .brand__tagline { color: var(--muted); }
.site-header.is-stuck .brand__mark { border-color: var(--line-strong); color: var(--blue); }
.site-header.is-stuck .nav__link { color: var(--ink); }
.site-header.is-stuck .icon-btn { color: var(--navy); border-color: var(--line); }
.site-header.is-stuck .burger span { background: var(--navy); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--blue);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand__tagline {
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line-strong); }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; }
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.mobile-nav__list { list-style: none; margin: 0; padding: var(--sp-4) var(--sp-5); flex: 1; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
}
.mobile-nav__list a[aria-current="page"] { color: var(--blue); }
.mobile-nav__list a span { font-size: 0.65rem; letter-spacing: 0.16em; color: var(--muted); font-family: var(--font-sans); font-weight: 700; }
.mobile-nav__foot { padding: var(--sp-5); background: var(--bg-soft); border-top: 1px solid var(--line); display: grid; gap: var(--sp-3); }
.mobile-nav__emergency {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-sm);
}
.mobile-nav__emergency svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.mobile-nav__emergency small { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.mobile-nav__emergency strong { color: var(--white); font-size: 1rem; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(11, 31, 51, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__panel {
  background: var(--white);
  padding: var(--sp-8) var(--sp-5) var(--sp-7);
  transform: translateY(-16px);
  transition: transform 0.35s var(--ease);
}
.search-overlay.is-open .search-overlay__panel { transform: translateY(0); }
.search-overlay__form { display: flex; align-items: center; gap: var(--sp-4); border-bottom: 2px solid var(--navy); padding-bottom: var(--sp-4); }
.search-overlay__form input {
  flex: 1;
  border: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--navy);
  background: transparent;
  padding: 0;
}
.search-overlay__form input:focus { outline: none; }
.search-overlay__form input::placeholder { color: var(--line-strong); }
.search-suggest { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.search-suggest span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-right: 4px; }
.search-suggest a {
  font-size: 0.83rem;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
}
.search-suggest a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: var(--sp-9);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media.is-failed img { display: none; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(11, 31, 51, 0.94) 0%, rgba(11, 31, 51, 0.78) 42%, rgba(11, 31, 51, 0.32) 78%, rgba(11, 31, 51, 0.28) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 660px; }
.hero h1 {
  color: var(--white);
  font-size: var(--step-5);
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}
.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--step-1);
  max-width: 545px;
  margin-bottom: var(--sp-6);
}
.hero .btn-row { margin-bottom: var(--sp-8); }
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* --------------------------------------------------------------------------
   8. Quick access
   -------------------------------------------------------------------------- */
.quick {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}
.quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-md);
  overflow: hidden;
}
.quick__card {
  display: block;
  padding: var(--sp-6) var(--sp-5) var(--sp-6);
  border-right: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  transition: background-color 0.3s var(--ease);
}
.quick__card:last-child { border-right: 0; }
.quick__card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.quick__card:hover { background: var(--bg-soft); color: var(--ink); }
.quick__card:hover::before { transform: scaleX(1); }
.quick__card--urgent::before { background: var(--danger); }
.quick__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: var(--sp-4);
}
.quick__icon svg { width: 21px; height: 21px; }
.quick__card--urgent .quick__icon { background: var(--danger-soft); color: var(--danger); }
.quick__card .h3-like {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.2;
  margin-bottom: 7px;
}
.quick__card .p-like { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   9. Stats / about
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: var(--sp-7);
}
.stats__item { padding: var(--sp-5) var(--sp-5) 0 0; }
.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats__label {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.section--dark .stats { border-color: var(--line-dark); }
.section--dark .stats__value { color: var(--white); }
.section--dark .stats__label { color: rgba(255, 255, 255, 0.6); }

.about__media-wrap { position: relative; }
.about__media { aspect-ratio: 4 / 4.4; }
.about__badge {
  position: absolute;
  right: -28px;
  bottom: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  padding: var(--sp-5);
  max-width: 250px;
  box-shadow: var(--shadow-md);
  border-radius: var(--r-sm);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.about__badge span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; display: block; }

/* --------------------------------------------------------------------------
   10. Service cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service {
  background: var(--white);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  min-height: 236px;
  transition: background-color 0.35s var(--ease);
  position: relative;
}
.service:hover { background: var(--bg-soft); }
.service__icon {
  width: 38px; height: 38px;
  color: var(--blue);
  margin-bottom: var(--sp-5);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.service__icon svg { width: 100%; height: 100%; }
.service:hover .service__icon { transform: translateY(-3px); color: var(--teal-dark); }
.service h3 { font-size: 1.16rem; margin-bottom: 8px; }
.service p { font-size: 0.87rem; color: var(--muted); margin-bottom: var(--sp-5); }
.service .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   11. Doctor cards
   -------------------------------------------------------------------------- */
.doctor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.doctor-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.doctor-card:hover .portrait img { transform: scale(1.045); }
.doctor-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.doctor-card__spec {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.doctor-card h3 { font-size: 1.18rem; margin-bottom: 5px; }
.doctor-card__cred { font-size: 0.82rem; color: var(--muted); margin-bottom: var(--sp-4); }
.doctor-card__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.doctor-card__foot .chip { font-size: 0.66rem; padding: 4px 10px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   12. Why Meridian — asymmetric feature composition
   -------------------------------------------------------------------------- */
.why { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--sp-9); align-items: start; }
.why__list { border-top: 1px solid var(--line-dark); }
.why__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line-dark);
}
.why__item svg { width: 26px; height: 26px; color: var(--teal); }
.why__item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why__item p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); margin: 0; }
.why__media { aspect-ratio: 3 / 3.6; }

/* --------------------------------------------------------------------------
   13. Facility media cards
   -------------------------------------------------------------------------- */
.facility {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  color: var(--white);
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.facility--tall { aspect-ratio: 4 / 5.2; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.facility::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.88) 0%, rgba(11, 31, 51, 0.22) 52%, rgba(11, 31, 51, 0.05) 100%);
  transition: background 0.4s var(--ease);
}
.facility:hover img { transform: scale(1.05); }
.facility:hover::after { background: linear-gradient(to top, rgba(11, 31, 51, 0.92) 0%, rgba(11, 31, 51, 0.42) 60%, rgba(11, 31, 51, 0.18) 100%); }
.facility__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: var(--sp-5);
}
.facility__caption .h3-like {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 5px;
}
.facility__caption .p-like { display: block; font-size: 0.83rem; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }
.facility__tag {
  position: absolute;
  top: var(--sp-4); left: var(--sp-4);
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 31, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.facility.is-failed img { display: none; }

/* --------------------------------------------------------------------------
   14. Patient journey timeline
   -------------------------------------------------------------------------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); }
.journey::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 21px;
  height: 1px;
  background: var(--line-strong);
}
.journey__step { position: relative; padding-right: var(--sp-4); }
.journey__marker {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  position: relative;
  z-index: 2;
  margin-bottom: var(--sp-5);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.journey__step:hover .journey__marker { background: var(--navy); color: var(--white); border-color: var(--navy); }
.journey__step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.journey__step p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   15. Testimonials — editorial, not a carousel template
   -------------------------------------------------------------------------- */
.voices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--sp-9); align-items: center; }
.voice {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}
.voice:first-child { border-top: 1px solid var(--line); }
.voice blockquote {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.42;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.voice figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.84rem; color: var(--muted); }
.voice figcaption strong { color: var(--ink); font-weight: 600; }
.voice figcaption .rule { width: 26px; height: 1px; background: var(--teal); flex: none; }

.voices__aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-7);
}
.voices__score { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--sp-5); }
.voices__score b { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--navy); font-weight: 600; }
.voices__score span { font-size: 0.85rem; color: var(--muted); }
.bar { height: 4px; background: var(--bg-tint); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--teal); width: 0; transition: width 1.2s var(--ease); border-radius: 100px; }
.bar-row { margin-bottom: var(--sp-4); }
.bar-row__top { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.bar-row__top b { color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Emergency band
   -------------------------------------------------------------------------- */
.emergency-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}
.emergency-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 9px);
}
.emergency-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-9);
}
.emergency-band h2 { color: var(--white); margin-bottom: var(--sp-4); }
.emergency-band p { max-width: 520px; }
.emergency-call {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-sm);
  padding: var(--sp-6);
  background: rgba(255, 255, 255, 0.03);
}
.emergency-call small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}
.emergency-call a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.3rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
}
.emergency-call a:hover { color: var(--teal); }

/* --------------------------------------------------------------------------
   17. Articles
   -------------------------------------------------------------------------- */
.article-card { display: flex; flex-direction: column; }
.article-card .media { aspect-ratio: 3 / 2; margin-bottom: var(--sp-4); }
.article-card:hover .media img { transform: scale(1.04); }
.article-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.article-card__meta b { color: var(--teal-dark); font-weight: 700; }
.article-card__meta .sep { width: 12px; height: 1px; background: var(--line-strong); }
.article-card h3 { font-size: 1.14rem; line-height: 1.35; margin-bottom: 10px; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { font-size: 0.87rem; color: var(--muted); margin-bottom: var(--sp-4); }
.article-card .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }
.site-footer a { color: rgba(255, 255, 255, 0.62); }
.site-footer a:hover { color: var(--white); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: var(--sp-8);
  padding-block: var(--sp-9) var(--sp-8);
}
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__mark { border-color: rgba(255, 255, 255, 0.3); color: var(--teal); }
.site-footer .brand__tagline { color: rgba(255, 255, 255, 0.62); }
.footer-about { max-width: 300px; margin-top: var(--sp-5); line-height: 1.7; }
.footer-col h2 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-contact address { font-style: normal; line-height: 1.8; }
.footer-contact .em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-4);
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  color: var(--white);
  font-weight: 600;
}
.footer-contact .em svg { width: 15px; height: 15px; color: var(--teal); }
.socials { display: flex; gap: 10px; margin-top: var(--sp-6); }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.socials svg { width: 16px; height: 16px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  font-size: 0.8rem;
}
.site-footer__bottom ul { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.site-footer__bottom li { margin: 0; }
.footer-note { font-size: 0.76rem; color: rgba(255,255,255,0.58); padding-bottom: var(--sp-6); max-width: 720px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   19. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-9);
}
.page-hero__media { position: absolute; inset: 0; opacity: 0.28; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--navy) 25%, rgba(11, 31, 51, 0.65) 100%);
  z-index: 1;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 720px; }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-4); font-size: var(--step-4); }
.page-hero p { font-size: var(--step-1); color: rgba(255, 255, 255, 0.78); margin: 0; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 var(--sp-5); padding: 0; font-size: 0.78rem; }
.breadcrumb li { margin: 0; color: rgba(255, 255, 255, 0.55); display: flex; align-items: center; gap: 9px; }
.breadcrumb li::after { content: "/"; color: rgba(255, 255, 255, 0.3); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* --------------------------------------------------------------------------
   20. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 9px;
}
.field label .req { color: var(--danger); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6a7d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.13);
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa8b8; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 7px; }
.field .error {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 7px;
  align-items: center;
  gap: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); background: var(--danger-soft); }
.field.has-error .error { display: flex; }

.checkbox,
.field label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 0;
  cursor: pointer;
}
.checkbox input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--blue); }

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-7);
}
.form-legend {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
  width: 100%;
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--teal);
  background: var(--teal-soft);
  border-radius: var(--r-md);
}
.form-success.is-visible { display: block; animation: fadeUp 0.5s var(--ease) both; }
.form-success__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-5);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  border: 1px solid rgba(39, 179, 176, 0.35);
}
.form-success__icon svg { width: 26px; height: 26px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 460px; margin-inline: auto; }
.form-success dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  text-align: left;
  margin: var(--sp-6) auto 0;
  max-width: 460px;
  border-top: 1px solid rgba(39, 179, 176, 0.3);
  padding-top: var(--sp-5);
}
.form-success dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); font-weight: 700; }
.form-success dd { margin: 4px 0 0; font-size: 0.92rem; color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   21. Directory board (signature — departments as hospital wayfinding)
   -------------------------------------------------------------------------- */
.board {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
}
.board__head,
.board__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1.4fr) minmax(0, 1.9fr) 172px 44px;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
}
.board__head {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.board__row {
  border-top: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.25s var(--ease);
}
.board__row:hover { background: var(--bg-soft); color: var(--ink); }
.board__row:hover .board__go { background: var(--navy); color: var(--white); border-color: var(--navy); }
.board__code {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
}
.board__name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.board__desc { font-size: 0.85rem; color: var(--muted); }
.board__level { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }
.board__go {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.25s var(--ease);
  margin-left: auto;
}
.board__go svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   22. Filters
   -------------------------------------------------------------------------- */
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
  gap: var(--sp-4);
  align-items: end;
}
.filters .field label { font-size: 0.68rem; }
.search-field { position: relative; }
.search-field svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input { padding-left: 42px; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: var(--sp-6) 0 var(--sp-5);
  font-size: 0.86rem;
  color: var(--muted);
}
.results-bar b { color: var(--navy); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
}
.empty-state svg { width: 34px; height: 34px; color: var(--line-strong); margin-bottom: var(--sp-4); }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto var(--sp-5); }

/* --------------------------------------------------------------------------
   23. Accordion
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.25s var(--ease);
}
.accordion__trigger:hover { color: var(--blue); }
.accordion__sign {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.accordion__sign svg { width: 14px; height: 14px; }
.accordion__trigger[aria-expanded="true"] .accordion__sign {
  transform: rotate(45deg);
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.accordion__panel { overflow: hidden; height: 0; transition: height 0.35s var(--ease); }
.accordion__panel > div { padding: 0 0 var(--sp-5); max-width: 720px; color: var(--muted); }

/* --------------------------------------------------------------------------
   24. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(11, 31, 51, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: 1020px; width: 100%; text-align: center; }
.lightbox__figure img {
  max-height: 74vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox__figure figcaption { color: rgba(255, 255, 255, 0.78); margin-top: var(--sp-4); font-size: 0.9rem; }
.lightbox__figure figcaption b { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: var(--sp-6); left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   25. Doctor profile / department detail
   -------------------------------------------------------------------------- */
.profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.profile__card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.profile__card .portrait { aspect-ratio: 1 / 1.08; }
.profile__meta { padding: var(--sp-5); }
.profile__meta dl { margin: 0; }
.profile__meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: var(--sp-4);
}
.profile__meta dt:first-child { margin-top: 0; }
.profile__meta dd { margin: 5px 0 0; font-size: 0.9rem; color: var(--ink); }
.profile__actions { padding: var(--sp-5); border-top: 1px solid var(--line); display: grid; gap: var(--sp-3); background: var(--bg-soft); }

.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--muted); }
.prose > p:first-of-type { font-size: var(--step-1); color: var(--ink); }

.tick-list { list-style: none; padding: 0; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 0.92rem; color: var(--muted); }
.tick-list svg { width: 18px; height: 18px; color: var(--teal-dark); flex: none; margin-top: 3px; }

.timeline-list { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.timeline-list li { position: relative; padding: 0 0 var(--sp-5) var(--sp-5); margin: 0; }
.timeline-list li::before {
  content: "";
  position: absolute;
  left: -4px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.timeline-list b { display: block; color: var(--navy); font-weight: 600; }
.timeline-list span { font-size: 0.86rem; color: var(--muted); }

.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table caption {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  padding-bottom: var(--sp-4);
}
.info-table th, .info-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.info-table th { font-weight: 600; color: var(--navy); background: var(--bg-soft); width: 42%; }
.info-table td { color: var(--muted); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }

/* --------------------------------------------------------------------------
   26. Misc blocks
   -------------------------------------------------------------------------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}
.panel--accent { border-left: 3px solid var(--teal); }
.panel--danger { border-left: 3px solid var(--danger); background: var(--danger-soft); border-color: rgba(193, 53, 43, 0.2); }
.panel h3 { font-size: 1.1rem; margin-bottom: 10px; }
.panel p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.contact-line {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line svg { width: 20px; height: 20px; color: var(--teal-dark); flex: none; margin-top: 3px; }
.contact-line h3 { font-size: 0.95rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 3px; letter-spacing: 0.01em; }
.contact-line p, .contact-line address { font-size: 0.92rem; color: var(--muted); font-style: normal; margin: 0; line-height: 1.7; }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(23, 105, 170, 0.05), rgba(23, 105, 170, 0.05)),
    repeating-linear-gradient(0deg, var(--bg-tint) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--bg-tint) 0 1px, transparent 1px 44px),
    var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-6);
}
.map-embed__roads {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 46%, var(--line) 46%, var(--line) 47.2%, transparent 47.2%),
    linear-gradient(-20deg, transparent 62%, var(--line) 62%, var(--line) 63%, transparent 63%);
}
.map-embed__pin { position: relative; z-index: 2; }
.map-embed__pin svg { width: 34px; height: 34px; color: var(--danger); margin-bottom: 10px; }
.map-embed__pin strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.map-embed__pin span { font-size: 0.85rem; color: var(--muted); }

.notice {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  font-size: 0.88rem;
  color: var(--muted);
}
.notice svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 2px; }
.notice strong { display: block; color: var(--navy); margin-bottom: 3px; }

.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  padding: var(--sp-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.cta-band h2 { font-size: var(--step-3); margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0; max-width: 520px; }

.error-page { text-align: center; padding-block: var(--sp-10); }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  line-height: 0.9;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-5);
}
.error-page__code span { color: var(--teal-dark); }

/* Search results */
.result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.result:first-child { border-top: 1px solid var(--line); }
.result__type {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.result h3 { font-size: 1.14rem; margin-bottom: 5px; }
.result p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.result mark { background: rgba(39, 179, 176, 0.22); color: inherit; padding: 0 2px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   27. Scroll animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .utility-emergency .pulse { animation: none; }
}

/* --------------------------------------------------------------------------
   28. Health insights
   -------------------------------------------------------------------------- */
.insight-index {
  margin: var(--sp-7) 0 var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.insight-index a {
  display: block;
  padding: 11px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  width: 100%;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.insight-index a:last-child { border-bottom: 0; }
.insight-index a::before { content: "\2192"; color: var(--teal-dark); margin-right: 12px; }
.insight-index a:hover { color: var(--blue); padding-left: 6px; }

.insight { padding-bottom: var(--sp-9); margin-bottom: var(--sp-8); border-bottom: 1px solid var(--line); }
.insight:last-child { border-bottom: 0; margin-bottom: 0; }
.insight h2 { margin-bottom: var(--sp-5); font-size: var(--step-3); }
.insight .prose h3 { font-size: 1.16rem; margin-top: var(--sp-6); }
.insight .prose > p:first-of-type { font-size: var(--step-1); color: var(--ink); }
