/* Direction: clinical public service. See Website-Discovery-Plan.md §6.
   Role rules: --cta is for buttons only. --camp / --hosp are semantic tags only. */
:root {
  --canvas: #ffffff;
  --tint: #f2f5fa;
  --line: #dbe2ec;
  --ink: #0f1b33;
  --ink-2: #47536a;
  --ink-3: #6a7489;
  --blue: #1d4ea0;
  --blue-700: #163d80;
  --cta: #f59a23;
  --cta-hover: #e3870f;
  --camp: #1d6b35; --camp-bg: #e4f3e8;
  --hosp: #1d4ea0; --hosp-bg: #e6eefa;
  --wrap: 1160px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.6 "Public Sans", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; }

/* Buttons: --cta only lives here */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 8px; font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; white-space: nowrap;
}
.btn-cta { background: var(--cta); color: var(--ink); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--tint); }
.btn svg { width: 18px; height: 18px; }

/* Top bar + header (client ref: info bar, horizontal menu) */
.topbar { background: var(--ink); color: #b8c3d8; font-size: .85rem; letter-spacing: .01em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }
.tb-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 24px; }
.topbar a:hover { text-decoration: underline; }
.topbar a { color: #fff; text-decoration: none; }
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 62px; height: 62px; }
.brand b { display: block; font-size: 1.05rem; line-height: 1.2; }
.brand small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .09em; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.nav .btn { margin-left: 10px; padding: 0 20px; box-shadow: none; }
.menu { display: none; }

 /* Photos */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hero: full-bleed photograph with navy overlay (client ref) */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: center; color: #dbe5f6; overflow: hidden; }
.hero > .photo { position: absolute; inset: 0; border-radius: 0; }
.hero > .photo img { object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,27,51,.92) 0%, rgba(15,27,51,.78) 42%, rgba(15,27,51,.15) 80%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 96px; }
.hero .label { color: var(--cta); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { font-size: 1.18rem; max-width: 46ch; margin-top: 22px; color: #d3ddef; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

 /* Pathway: three photo-led steps */
.path { padding-block: 88px; }
.path .head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.path li { counter-increment: step; }
.path .photo { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.path h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.path h3::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--blue); color: #fff; font-size: .95rem;
}
.path p { color: var(--ink-2); padding-left: 46px; }

/* About: split with an inline fact row */
.band-tint { background: var(--tint); }
.about { padding-block: 88px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about .photo { aspect-ratio: 4 / 5; }
.about h2 { margin-bottom: 20px; }
.about p { color: var(--ink-2); font-size: 1.08rem; }
.about p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 700; color: var(--ink); }

/* Services: hospital directory board */
.services { padding-block: 96px; display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.services .intro { position: sticky; top: 120px; }
.services .intro p { color: var(--ink-2); margin-top: 14px; }
.services .photo { aspect-ratio: 4 / 3; margin-top: 28px; }
.legend { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; font-size: .9rem; color: var(--ink-2); }
.board { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.board li { display: grid; grid-template-columns: 44px 1fr auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.board svg { width: 28px; height: 28px; color: var(--blue); margin-top: 2px; }
.board p { color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tag { font-size: .74rem; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.tag.camp { background: var(--camp-bg); color: var(--camp); }
.tag.hosp { background: var(--hosp-bg); color: var(--hosp); }

 /* Mission / Vision: photo beside two stacked statements */
.mv { padding-block: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; border-top: 1px solid var(--line); }
.mv .photo { aspect-ratio: 5 / 4; }
.mv article + article { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.mv p { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink); }

/* Volunteer: full-bleed brand blue */
.volunteer { background: var(--blue); color: #dbe6f7; }
.volunteer .wrap { padding-block: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.volunteer .photo { aspect-ratio: 4 / 3; }
.roles { margin-top: 28px !important; }
.volunteer h2 { color: #fff; }
.volunteer .label { color: #a9c3ee; }
.volunteer p { font-size: 1.1rem; margin-top: 14px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.roles li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 600; }
.volunteer .actions { margin-top: 28px; }

/* People: a row list */
.people { padding-block: 88px; }
.people-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; margin-top: 36px; align-items: center; }
.founder { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--tint); border-radius: 14px; overflow: hidden; }
.founder .portrait { margin: 0; min-height: 380px; background: #fff; }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.founder-body { display: flex; flex-direction: column; justify-content: center; padding: 40px 36px; }
.founder-body h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.founder-body p { margin-top: 14px; color: var(--ink-2); }
.trustees { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trustees li { display: flex; align-items: center; gap: 22px; padding: 26px 0 26px 5px; border-bottom: 1px solid var(--line); }
.avatar { margin: 0; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex: none; background: var(--tint); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.trustees b { display: block; font-size: 1.2rem; letter-spacing: -.01em; }
.trustees span { display: block; margin-top: 2px; color: var(--ink-3); }

/* Contact: the phone number is the hero */
/* Contact blocks: cards only where the whole card is a tap target */
.reach { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.reach-main { display: flex; flex-direction: column; align-items: flex-start; background: var(--ink); color: #c3cee3; border-radius: 14px; padding: 44px; }
.reach-main .label { color: var(--cta); margin: 24px 0 8px; }
.reach-phone { display: inline-block; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: #fff; text-decoration: none; }
.reach-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.reach-main p { margin: 14px 0 28px; max-width: 40ch; font-size: 1.05rem; }
.reach-side { display: grid; gap: 16px; align-content: start; }
.c-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.c-card:hover { border-color: #b9c8e0; box-shadow: 0 8px 24px rgba(15,27,51,.08); transform: translateY(-1px); }
.c-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hosp-bg); color: var(--blue); flex: none; }
.c-icon svg { width: 22px; height: 22px; }
.c-icon.on-dark { background: rgba(255,255,255,.1); color: #fff; }
.c-label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.c-value { display: block; margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
.c-text { display: block; margin-top: 4px; color: var(--ink-2); }
.c-more { display: block; margin-top: 10px; font-size: .94rem; font-weight: 600; color: var(--blue); }
.where { display: flex; align-items: flex-start; gap: 16px; padding: 8px 24px; }
.where .c-icon { background: transparent; border: 1px solid var(--line); }
.alert-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 18px; border-radius: 10px; background: #fdf0ec; color: #6b2a1d; font-size: .95rem; }
.alert-note svg { width: 20px; height: 20px; margin-top: 2px; color: #c2410c; flex: none; }
.alert-note a { color: #9a2c12; font-weight: 700; }
.help { padding-block: 88px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.help .reach-phone { color: var(--ink); margin-top: 20px; }
.help .actions { margin-top: 24px; }
.help-offices { display: grid; gap: 16px; }

/* Inner pages */
.page-hero { position: relative; color: #dbe5f6; overflow: hidden; }
.page-hero > .photo { position: absolute; inset: 0; border-radius: 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,27,51,.93) 0%, rgba(15,27,51,.8) 50%, rgba(15,27,51,.35) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: 88px 80px; }
.page-hero .label { color: var(--cta); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-hero p { margin-top: 18px; max-width: 56ch; font-size: 1.12rem; color: #d3ddef; }
.page-hero .crumbs { font-size: .85rem; color: #b8c3d8; margin: 0 0 20px; }
.crumbs a { color: #fff; }
.section { padding-block: 88px; }
.section.tint { background: var(--tint); }
.section .head { max-width: 640px; margin-bottom: 40px; }
.section .head p { color: var(--ink-2); margin-top: 14px; font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split .photo { aspect-ratio: 4 / 3; }
.prose h2 { margin-bottom: 20px; }
.prose p { color: var(--ink-2); font-size: 1.08rem; }
.prose p + p { margin-top: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .photo { aspect-ratio: 4 / 3; }
.details { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin: 0; border-top: 1px solid var(--line); }
.details div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.details dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.board.plain li { grid-template-columns: 44px 1fr; }
.callout { margin-top: 28px; padding: 18px 20px; background: var(--tint); border-radius: 6px; color: var(--ink-2); font-size: .98rem; }
.section.tint .callout { background: #fff; }
.cta-band { background: var(--blue); color: #dbe6f7; }
.cta-band .wrap { padding-block: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 10px; font-size: 1.08rem; max-width: 52ch; }
.cta-band .actions { margin-top: 0; }
.btn-onblue { border-color: #fff; color: #fff; }
.btn-onblue:hover { background: rgba(255,255,255,.12); }
.office h3 { margin-bottom: 8px; }
.office p { color: var(--ink-2); }
.office a { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: #aab6cc; font-size: .94rem; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.2fr; gap: 48px; padding-block: 72px 56px; }
.foot-logo { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.foot-logo img { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.foot-logo b { display: block; font-size: 1.05rem; line-height: 1.25; }
.foot-logo small { display: block; margin-top: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .09em; color: #8d9ab3; }
.foot-brand p { margin-top: 20px; max-width: 34ch; }
.social { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-weight: 600; font-size: .9rem; }
.social:hover { background: rgba(255,255,255,.08); }
.social svg { width: 18px; height: 18px; }
.footer h3 { color: #fff; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #fff; text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 10px; }
.footer .k { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8d9ab3; }
.footer li + li .k { margin-top: 14px; }
.footer .em { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #8d9ab3; }

/* Laptop widths: tighten the header so the menu fits on one line */
@media (min-width: 901px) and (max-width: 1100px) {
  .header .wrap { gap: 16px; }
  .nav a { padding: 10px 9px; }
  .nav .btn { margin-left: 6px; padding: 0 16px; }
  .brand b { font-size: .98rem; }
}

/* Mobile: <details> is only the toggle; nav opens beside it. No JS. */
@media (max-width: 900px) {
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 16px; }
  .menu summary::-webkit-details-marker { display: none; }
  .nav { display: none; }
  .menu[open] + .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }

  .hero { min-height: 0; }
  .hero > .photo img { object-position: 90% 40%; }
  .hero::before { background: linear-gradient(180deg, rgba(15,27,51,.2) 0%, rgba(15,27,51,.9) 62%); }
  .hero .wrap { padding-block: 160px 56px; }
  .about, .services, .volunteer .wrap, .mv { grid-template-columns: 1fr; gap: 32px; }
  .path .head { display: block; }
  .services .intro { position: static; }
  .path ol { grid-template-columns: 1fr; gap: 36px; }
  .about .photo { aspect-ratio: 4 / 3; }
  .reach, .help { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder { grid-template-columns: 1fr; }
  .founder .portrait { min-height: 0; aspect-ratio: 4 / 4; }
  .founder-body { padding: 28px 24px 32px; }
  .avatar { width: 84px; height: 84px; }
  .help { gap: 32px; }
  .reach-main { padding: 32px 24px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .page-hero::before { background: linear-gradient(180deg, rgba(15,27,51,.7) 0%, rgba(15,27,51,.92) 100%); }
  .page-hero .wrap { padding-block: 64px 56px; }
  .section { padding-block: 64px; }
  .split, .details { grid-template-columns: 1fr; gap: 32px; }
  .details { gap: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .path, .about, .services, .mv, .people, .help { padding-block: 64px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar .hide-sm { display: none; }
  .tb-contact { justify-content: flex-start; flex-direction: column; font-size: .8rem; }
  .tb-contact a { overflow-wrap: anywhere; }
  .brand img { width: 50px; height: 50px; }
  .brand b { font-size: .95rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
  .board li { grid-template-columns: 32px 1fr; }
  .board .tags { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .footer .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer .cols { gap: 36px; }
  .btn { width: 100%; justify-content: center; }
}

/* Photo framing + spacing utilities (replace inline style attributes so CSP needs no 'unsafe-inline') */
.pos-20 { object-position: 50% 20%; }
.pos-30 { object-position: 50% 30%; }
.pos-35 { object-position: 50% 35%; }
.pos-40 { object-position: 50% 40%; }
.pos-right { object-position: 70% 40%; }
.pos-left { object-position: 40% 40%; }
.mt-28 { margin-top: 28px; }

/* 404 page heading */
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
