/* ==========================================================================
   Main stylesheet — everything below the fold. Loaded without blocking
   render, so nothing in here delays first paint.
   ========================================================================== */

/* --- Marquee ticker ------------------------------------------------------- */
.ticker {
  background: var(--bg-dark);
  color: #fff;
  padding: .95rem 0;
  max-width: 100%;
  overflow-x: clip;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }

.ticker__group { display: flex; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding-inline: 1.9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item .icon { width: 18px; height: 18px; color: var(--gold); }

@keyframes ticker-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .ticker__group:last-child { display: none; }
}

/* --- Quick info cards ----------------------------------------------------- */
/* The photograph is fixed. A white veil leaves it at .4. The cards stay
   solid, so the photo shows in the gaps around them. overflow stays
   visible or the fixed background is clipped. */
.quick {
  position: relative;
  isolation: isolate;
  background-color: #fff;
  background-image: url("../img/facilities/facilities-1280.jpg");
  background-image: image-set(
    url("../img/facilities/facilities-1280.webp") type("image/webp"),
    url("../img/facilities/facilities-1280.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.quick::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .6);
}
.quick > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .quick { background-attachment: scroll; }
}
.quick__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.qcard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.45rem, 2.4vw, 1.85rem);
  background: #fff;
  border: 1px solid rgba(16, 42, 67, .06);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(16, 42, 67, .08);
  transition: box-shadow .25s ease;
}
.qcard:hover { box-shadow: 0 20px 44px rgba(16, 42, 67, .14); }
.qcard h3 { font-size: 1.2rem; margin: 0; letter-spacing: -.02em; }
.qcard p { font-size: .92rem; margin: 0; line-height: 1.55; }
.qcard__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--gold-ink);
  background:
    radial-gradient(circle at 50% 46%, var(--gold) 0 20px, transparent 21px),
    var(--gold-tint);
  box-shadow: 0 8px 18px rgba(224, 168, 0, .22);
  transition: transform .25s ease;
}
.qcard:hover .qcard__icon { transform: translateY(-2px); }
.qcard__icon .icon { width: 22px; height: 22px; }
.qcard__link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; text-decoration: none; margin-top: auto; }
.qcard__link .icon { width: 16px; height: 16px; transition: transform .25s ease; }
.qcard__link:hover .icon { transform: translateX(3px); }

.qcard--red { background: var(--gold); border-color: transparent; color: var(--gold-ink); box-shadow: 0 16px 36px rgba(224, 168, 0, .28); }
.qcard--red h3 { color: var(--gold-ink); }
.qcard--red .qcard__icon {
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 46%, var(--secondary) 0 20px, transparent 21px),
    rgba(16, 42, 67, .12);
  box-shadow: none;
}
.qcard--red .qcard__link { color: var(--gold-ink); }
.qcard--red .qcard__phone { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--gold-ink); text-decoration: none; }

.qcard--dark { background: var(--bg-dark); border-color: transparent; color: #e7eaee; box-shadow: 0 16px 36px rgba(11, 30, 51, .28); }
.qcard--dark h3 { color: #fff; }
.qcard--dark .qcard__icon {
  color: var(--gold-ink);
  background:
    radial-gradient(circle at 50% 46%, var(--gold) 0 20px, transparent 21px),
    rgba(253, 195, 28, .16);
  box-shadow: none;
}
.qcard--dark .qcard__link { color: #fff; }

/* --- About ---------------------------------------------------------------- */
.about {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
}
.about__media { margin: 0; }
.about__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--r-lg);
}
.about__statement {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.015em;
}
.about__copy p:last-child { margin-bottom: 0; }
.about__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}
.about__more:hover { color: var(--secondary-deep); }

.about-next { display: grid; gap: 1rem; }
@media (min-width: 760px) {
  .about-next { grid-template-columns: repeat(3, 1fr); }
}
.about-next a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  min-height: 100%;
  padding: 1.25rem 1.3rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
}
.about-next a:hover { box-shadow: 0 16px 36px rgba(16, 42, 67, .1); }
.about-next strong { font-size: 1.08rem; letter-spacing: -.02em; }
.about-next span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.about-next .more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .7rem;
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: minmax(16rem, .82fr) minmax(0, 1.18fr); }
}
.contact-cards { display: grid; gap: .75rem; }
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.contact-card__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  background: var(--gold-tint);
  border-radius: 14px;
  color: var(--secondary);
}
.contact-card__icon .icon { width: 20px; height: 20px; }
.contact-card h2 { margin: 0; font-size: .95rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-card a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}
.contact-card a:hover { color: var(--secondary-deep); }
.contact-form {
  padding: clamp(1.35rem, 2.6vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(16, 42, 67, .06);
}
.contact-form h2 { margin-bottom: .4rem; }
.contact-form > p { margin: 0; color: var(--muted); }
.contact-form .form { margin-top: 1.15rem; }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea { background: var(--bg-alt); border-color: var(--line); }
.contact-form .field label { color: var(--ink); }
.contact-form .notice--ok { background: var(--gold-tint); color: var(--ink); }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 4rem); }
}

/* --- Counters -------------------------------------------------------------
   Navy secondary, not gold: white figures need a dark ground. Gold stays
   as the tick above each number, where it clears 9:1 on this navy.
   ------------------------------------------------------------------------ */
.counters {
  background: var(--secondary);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.counters__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 1.5rem;
}
.counters__grid > div { display: flex; flex-direction: column; }
.counters__grid dd { order: -1; margin: 0; }

.counter__num {
  display: block;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.counter__num::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: .85rem;
  background: var(--gold);
  border-radius: 2px;
}
.counters__grid dt {
  margin-top: .65rem;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  color: #f6e4e3;
}

@media (min-width: 800px) {
  .counters__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .counters__grid > div { padding-inline: clamp(1.25rem, 2.5vw, 2.25rem); }
  .counters__grid > div + div { border-left: 1px solid rgba(255, 255, 255, .22); }
  .counters__grid > div:first-child { padding-left: 0; }
  .counters__grid > div:last-child { padding-right: 0; }
}

/* --- Department tiles ----------------------------------------------------- */
/* Photo on the left, linked tiles on the right. The photo sticks while the
   tiles scroll, so the column stays balanced. */
.depts-layout { display: grid; gap: var(--gap-lg); align-items: start; }
.depts__media { margin: 0; }
.depts__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--r-lg);
}
.depts-layout .section__head { margin-bottom: 1.35rem; }
.depts-layout .section__head > div { max-width: none; }

@media (min-width: 980px) {
  .depts-layout {
    grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.28fr);
    gap: clamp(1.75rem, 3.5vw, 3.25rem);
  }
  .depts__media {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
  .depts__media img {
    aspect-ratio: 3 / 4;
    max-height: calc(100svh - var(--header-h) - 2.5rem);
  }
}

.depts {
  display: grid;
  gap: .7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .depts { grid-template-columns: 1fr 1fr; }
}

.dept-tile {
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 5.1rem;
  padding: .85rem .95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dept-tile:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 28px rgba(16, 42, 67, .08);
}
/* The icon well scales with the tile width, and the glyph fills a fixed
   share of that well so it stays in proportion on a narrow or wide card. */
.dept-tile__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(2.7rem, 22cqi, 3.35rem);
  height: clamp(2.7rem, 22cqi, 3.35rem);
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--secondary);
  transition: background-color .2s ease, color .2s ease;
}
.dept-tile:hover .dept-tile__icon { background: var(--gold); color: var(--gold-ink); }
.dept-tile__icon .icon { width: 54%; height: 54%; }
.dept-tile__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.dept-tile__name {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
}
.dept-tile__badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--secondary);
}
.dept-tile__go { flex: 0 0 auto; color: var(--secondary); }
.dept-tile:hover .dept-tile__go .icon { transform: translateX(3px); }
.dept-tile__go .icon { transition: transform .2s ease; }

.dept__points { display: grid; gap: .6rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.dept__points li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink); }

/* --- Department inner page ------------------------------------------------ */
.page-hero {
  position: relative;
  z-index: 2;
  background: var(--secondary);
  color: #f6efe2;
  padding: calc(var(--header-h) + 2.25rem) 0 3.1rem;
}
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: .7rem; }
.page-hero .eyebrow { color: rgba(246, 239, 226, .82); }
.page-hero .eyebrow .icon { color: var(--gold); }
.page-hero__lead {
  max-width: 40rem;
  margin: 0;
  color: rgba(246, 239, 226, .9);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}
.page-hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.crumbs {
  position: absolute;
  z-index: 3;
  left: max(1.25rem, calc((100% - var(--container)) / 2));
  bottom: 0;
  transform: translateY(50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  width: fit-content;
  max-width: min(calc(100% - 2.5rem), var(--container));
  margin: 0;
  padding: .62rem 1.05rem .5rem;
  background: #fff;
  border-bottom: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(11, 30, 51, .14);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}
.crumbs a { color: var(--secondary); }
.crumbs a:hover { color: var(--secondary-deep); }
.crumbs [aria-current="page"] { color: var(--ink); }

.dept-page { display: grid; gap: var(--gap-lg); align-items: start; }
@media (min-width: 900px) {
  .dept-page { grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .7fr); }
  .dept-page__aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}
.dept-page__copy p { color: var(--muted); max-width: 68ch; }
.dept-unit { margin-top: .4rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.dept-unit h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .45rem; }
.dept-page__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.35rem 1.35rem 1.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 34px rgba(16, 42, 67, .06);
}
.dept-page__aside .eyebrow { margin-bottom: 0; }
.dept-page__badge {
  margin: 0;
  padding: .28rem .7rem;
  background: var(--gold-tint);
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--secondary);
}
.dept-page__note { margin: 0; color: var(--muted); font-size: .95rem; }
.dept-page__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--secondary);
  text-decoration: none;
}
.dept-page__more:hover { color: var(--secondary-deep); }

/* --- Sticky split: fixed heading on the left, content scrolling on the right
   `align-items: start` is what makes the sticky column work. Without it the
   grid item stretches to full row height and sticky never engages.
   ------------------------------------------------------------------------ */
.sticky-split { display: grid; gap: var(--gap-lg); align-items: start; }

/* The corridor photograph is a fixed background, so it stays put while the
   cards scroll. A scrim fades it into the same dark tone, and the left side
   stays dark enough for the heading. Cards stay solid white.
   overflow must stay visible: hidden clips a fixed background. */
.facilities-band {
  position: relative;
  isolation: isolate;
  background-color: var(--secondary-deep);
  background-image: url("../img/facilities/facilities-1280.jpg");
  background-image: image-set(
    url("../img/facilities/facilities-1280.webp") type("image/webp"),
    url("../img/facilities/facilities-1280.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 55%;
  background-attachment: fixed;
}
/* The scrim scrolls with the section. The photograph stays fixed, so a
   fixed gradient would pin one slice of the fade to the viewport. */
.facilities-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 62%, var(--secondary-deep) 100%),
    linear-gradient(100deg,
      rgba(11, 30, 51, .84) 0%,
      rgba(16, 42, 67, .74) 40%,
      rgba(16, 42, 67, .38) 70%,
      rgba(16, 42, 67, .22) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .facilities-band {
    background-attachment: scroll;
    /* Cover on this tall section would crop the corridor to a vertical
       slice. Keep the photograph in the top band, as before. */
    background-size: 100% min(920px, 100%);
    background-position: center top;
  }
}
/* On a phone the heading spans the full width, so the scrim stays even
   instead of opening up toward the right. */
@media (max-width: 979px) {
  .facilities-band::before {
    background:
      linear-gradient(180deg, transparent 0%, transparent 58%, var(--secondary-deep) 100%),
      rgba(11, 30, 51, .78);
  }
}
.facilities-band .sticky-split { position: relative; z-index: 1; }
.facilities-band .sticky-split__aside { color: #f4e6e5; }
.facilities-band .sticky-split__aside h2 { color: #fff; }
.facilities-band .sticky-split__aside .eyebrow,
.facilities-band .sticky-split__aside .lead { color: #f6e4e3; }

@media (min-width: 980px) {
  .sticky-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .sticky-split__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

.facilities { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.fcard {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .25s;
}
.fcard:hover { border-color: var(--red); }
.facilities-band .fcard { box-shadow: 0 12px 32px rgba(12, 6, 6, .22); }
.fcard__icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--gold); border-radius: var(--r-sm); color: var(--gold-ink); }
.fcard h3 { font-size: 1.06rem; margin: 0; }
.fcard p { font-size: .9rem; margin: 0; color: var(--muted); }
.fcard__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .3rem; }
.fcard__tags li { padding: .2rem .6rem; background: var(--bg-alt); border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; color: var(--body); }

/* --- Doctors -------------------------------------------------------------- */
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--gap); margin-bottom: var(--gap-lg); }
.section__head > div { max-width: 42rem; }
.section__head h2 { margin-bottom: .35rem; }

.doc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--gap-lg);
}
.doc-filter button {
  border: 1px solid rgba(16, 42, 67, .14);
  background: #fff;
  color: var(--secondary);
  border-radius: var(--r-pill);
  padding: .48rem .95rem;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.doc-filter button:hover { border-color: var(--secondary); }
.doc-filter button[aria-pressed="true"] {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #f6efe2;
}
.doc-filter button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.doc-group + .doc-group { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.doc-group__label {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.doc-group__label a { color: inherit; text-decoration: none; }
.doc-group__label a:hover { color: var(--secondary-deep); }

.docs { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }

.doc {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.doc__photo {
  position: relative;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  /* Navy holds the face; gold comes in below. Same stops are baked into
     the JPEG fallback, which cannot keep a transparent portrait. */
  background: linear-gradient(180deg, #102A43 0%, #102A43 28%, #b8923c 100%);
}
.doc__photo picture, .doc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc__photo img { object-fit: cover; object-position: top center; }
.doc__body { padding: 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; transition: background-color .25s; }
.doc:hover .doc__body { background: var(--gold); }
.doc__name { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 0; }
.doc__quals { font-size: .8rem; font-weight: 600; color: var(--secondary); letter-spacing: .03em; }
.doc__role { font-size: .88rem; color: var(--muted); }
.doc:hover .doc__name, .doc:hover .doc__quals, .doc:hover .doc__role,
.doc:hover .doc__more { color: var(--gold-ink); }
.doc__hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.doc__more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .45rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--secondary);
}
.doc__more .icon { transition: transform .2s ease; }
.doc:hover .doc__more .icon { transform: translateX(3px); }

.doc__tag {
  position: absolute;
  z-index: 1;
  left: .7rem;
  right: .7rem;
  bottom: .7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .4rem .4rem .4rem .85rem;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .18);
  opacity: 0;
  transform: translateY(.45rem);
  transition: opacity .22s ease, transform .22s ease;
}
.doc--tag:hover .doc__tag,
.doc--tag:focus-within .doc__tag { opacity: 1; transform: none; }
.doc__tag-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.doc__tag-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .25rem;
  padding: .42rem .7rem;
  background: var(--gold);
  border-radius: var(--r-pill);
  color: var(--gold-ink);
  font-size: .76rem;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .doc__tag { transition: none; }
}

.doctors-band {
  position: relative;
  isolation: isolate;
  background-color: var(--secondary-deep);
  background-image: url("../img/departments/depts-864.jpg");
  background-image: image-set(
    url("../img/departments/depts-864.webp") type("image/webp"),
    url("../img/departments/depts-864.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 28%;
  background-attachment: fixed;
}
.doctors-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(11, 30, 51, .42);
}
.doctors-band .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .doctors-band { background-attachment: scroll; }
}

.doctors-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: min(100%, 32rem);
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  border-radius: 24px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(253, 195, 28, .28), transparent 42%),
    rgba(16, 42, 67, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 22px 50px rgba(11, 30, 51, .35);
  color: #f6efe2;
}
.doctors-intro h2 { color: #fff; margin-bottom: .55rem; }
.doctors-intro .lead { margin: 0; color: rgba(246, 239, 226, .9); }
.doctors-intro .eyebrow { color: rgba(246, 239, 226, .8); }
.doctors-intro .eyebrow .icon { color: var(--gold); }
.doctors-intro .btn { align-self: flex-start; }

.page-hero--short {
  padding-top: calc(var(--header-h) + 1.15rem);
  padding-bottom: 1.7rem;
}

.profile {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .profile { grid-template-columns: minmax(17rem, 22.5rem) minmax(0, 1fr); gap: 1.75rem; }
  .profile__side { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}
.profile__side {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 42, 67, .06);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(16, 42, 67, .08);
}
.profile__photo {
  aspect-ratio: 3 / 3.45;
  background: linear-gradient(180deg, #102A43 0%, #102A43 28%, #b8923c 100%);
}
.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.profile__id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1.25rem 1.3rem 1.4rem;
}
.profile__id h1 { margin: 0; font-size: clamp(1.45rem, 2vw, 1.85rem); }
.profile__role { margin: 0; color: var(--muted); font-size: .95rem; }
.profile__quals { margin: 0; color: var(--secondary); font-size: .86rem; font-weight: 600; }
.profile__dept {
  display: inline-flex;
  margin-top: .2rem;
  padding: .28rem .7rem;
  background: var(--gold-tint);
  border-radius: var(--r-pill);
  color: var(--secondary);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.profile__dept:hover { color: var(--secondary-deep); }
.profile__actions { display: flex; flex-direction: column; gap: .55rem; width: 100%; margin-top: .55rem; }
.profile__actions .btn { justify-content: center; }
.profile__main { display: grid; gap: 1rem; }
.profile__card {
  padding: clamp(1.2rem, 2vw, 1.55rem);
  background: #fff;
  border: 1px solid rgba(16, 42, 67, .06);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(16, 42, 67, .06);
}
.profile__card h2 { margin-bottom: .55rem; font-size: 1.15rem; }
.profile__card a { display: inline-flex; align-items: center; gap: .35rem; }
.profile__card p:last-child { margin-bottom: 0; }
.profile__card p { color: var(--muted); }
.qual-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.qual-list li {
  padding: .42rem .75rem;
  background: var(--gold-tint);
  border-radius: var(--r-pill);
  color: var(--secondary);
  font-size: .84rem;
  font-weight: 600;
}

.cmo__label {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: var(--gap-lg) 0 var(--gap);
  font-weight: 700;
  color: var(--ink);
}
.cmo__label .icon { color: var(--secondary); }
.cmo__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.cmo__list li { padding: .45rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; color: var(--body); }

/* --- Trust ----------------------------------------------------------------
   Navy holds the copy; gold takes the photograph side. The split follows
   the layout: stacked on a phone, side by side from 900px.
   ------------------------------------------------------------------------ */
.trust-band {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary) 58%, var(--gold) 100%);
  color: #f6efe2;
}
.trust-band h2 { color: #fff; }
.trust-band .eyebrow,
.trust-band .eyebrow .icon { color: var(--gold); }
@media (min-width: 900px) {
  .trust-band {
    background: linear-gradient(105deg, var(--secondary) 0%, var(--secondary) 46%, var(--gold) 100%);
  }
}

.trust { display: grid; gap: var(--gap-lg); align-items: center; }
@media (min-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }

.trust__list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.trust__list li { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: #f6efe2; }
.trust__tick { display: grid; place-items: center; width: 26px; height: 26px; background: var(--gold); border-radius: 7px; color: var(--gold-ink); flex-shrink: 0; }
.trust__tick .icon { width: 16px; height: 16px; }

.trust__media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.trust__media img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; object-position: center 38%; }

.trust__stats { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; margin-top: .8rem; }
.trust__stat { padding: 1.2rem; border-radius: var(--r); background: var(--bg-alt); }
.trust__stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.trust__stat span { display: block; margin-top: .4rem; font-size: .88rem; color: var(--muted); }
.trust__stat--red { background: var(--secondary); }
.trust__stat--red strong, .trust__stat--red span { color: #fff; }

/* --- Appointment ---------------------------------------------------------- */
.appt { display: grid; overflow: hidden; border-radius: var(--r-lg); }
@media (min-width: 900px) { .appt { grid-template-columns: 1fr 1fr; } }

.appt__panel { background: var(--gold); color: var(--gold-ink); padding: clamp(1.75rem, 4vw, 3rem); }
.appt__panel h2 { color: var(--gold-ink); }
.appt__panel p { color: var(--gold-ink); }
.appt__panel a { color: var(--secondary); font-weight: 700; }
.appt__panel .btn { margin-top: 1.35rem; }
.page-hero--book h1 { max-width: 12em; }
.book-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 980px) {
  .book-layout { grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .72fr); }
  .book-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}
.book-form { max-width: none; }
.book-form .form__note { color: var(--muted); font-weight: 600; }
.book-form .form > button { width: 100%; margin-top: .35rem; }
.book-form input[type="number"] { appearance: textfield; }
.book-form input[type="number"]::-webkit-outer-spin-button,
.book-form input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }
.book-aside { display: grid; gap: .75rem; }
.book-aside article {
  padding: 1.15rem 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.book-aside h2 { margin: 0 0 .85rem; font-size: 1.05rem; }
.book-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.book-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; }
.book-step__n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: .85rem;
  font-weight: 700;
}
.book-steps strong { display: block; color: var(--ink); }
.book-steps li > span:last-child { color: var(--muted); font-size: .92rem; }
.book-now { background: var(--secondary) !important; color: #f6efe2; }
.book-now h2, .book-now p { color: #f6efe2; }
.book-now p { margin: 0 0 1rem; }
.book-now .btn { width: 100%; }
.book-hours p { margin: 0; color: var(--muted); }
.book-hours p + p { margin-top: .45rem; }
.book-hours a { color: var(--secondary); font-weight: 700; text-decoration: none; }

.appt__media { background: var(--bg-alt); }
.appt__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; min-height: 18rem; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 600;
}
.notice .icon { flex-shrink: 0; margin-top: .15rem; }
.notice--ok  { background: #fff; color: #14181f; }
.notice--bad { background: var(--secondary); color: #fff; }

.form-wait {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(11, 30, 51, .55);
}
.form-wait[hidden] { display: none; }
.form-wait__card {
  display: grid;
  justify-items: center;
  gap: .9rem;
  width: min(16rem, 100%);
  padding: 1.6rem 1.35rem;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.form-wait__card p { margin: 0; font-weight: 700; }
.form-wait__spin {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 3px solid rgba(16, 42, 67, .16);
  border-top-color: var(--secondary);
  animation: form-wait-spin .7s linear infinite;
}
@keyframes form-wait-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .form-wait__spin { animation: none; border-top-color: var(--secondary); }
}

.ack {
  width: min(26rem, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
}
.ack::backdrop { background: rgba(11, 30, 51, .62); }
.ack__body { padding: 1.75rem 1.5rem 1.45rem; text-align: center; }
.ack__mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
}
.ack--bad .ack__mark { background: var(--secondary); color: #fff; }
.ack h2 { margin: 0 0 .45rem; font-size: 1.45rem; }
.ack p { margin: 0 0 1.35rem; color: var(--ink); }
.ack .btn {
  width: auto;
  min-width: 7.5rem;
  min-height: 44px;
  padding: .6rem 1.85rem;
  justify-content: center;
  letter-spacing: .06em;
  box-shadow: 0 8px 18px rgba(16, 42, 67, .12);
}
.ack .btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.form { display: grid; gap: .8rem; margin-top: 1.6rem; }
.form__row {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  align-items: start;
}
.field { display: grid; gap: .35rem; min-width: 0; align-content: start; }
.field label { font-size: .85rem; font-weight: 600; color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  align-self: start;
  padding: .7rem 1rem;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
}
.field textarea { height: auto; min-height: 6.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field__opt { font-weight: 500; opacity: .75; }
.form__note { margin: 0; color: var(--gold-ink); font-size: .85rem; font-weight: 600; }
.field select option { color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.field__error {
  margin: 0;
  color: var(--secondary);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.contact-form .field.is-invalid input,
.contact-form .field.is-invalid select,
.contact-form .field.is-invalid textarea { border-color: var(--secondary); }
.appt__panel .field__error { color: var(--secondary-deep, #0b1e33); }

/* --- Emergency band -------------------------------------------------------
   The photograph is fixed to the viewport, so it stays put while the band
   scrolls (parallax). The gradient sits in the same background stack.
   overflow must stay visible: hidden clips a fixed background back to the
   element and the parallax stops. */
.emergency {
  position: relative;
  text-align: center;
  color: #f6efe2;
  background-color: var(--secondary-deep);
  background-image:
    linear-gradient(115deg, rgba(11, 30, 51, .9) 0%, rgba(16, 42, 67, .78) 46%, rgba(253, 195, 28, .42) 100%),
    url("../img/facilities/facilities-1280.jpg");
  background-image:
    linear-gradient(115deg, rgba(11, 30, 51, .9) 0%, rgba(16, 42, 67, .78) 46%, rgba(253, 195, 28, .42) 100%),
    image-set(
      url("../img/facilities/facilities-1280.webp") type("image/webp"),
      url("../img/facilities/facilities-1280.jpg") type("image/jpeg")
    );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  .emergency { background-attachment: scroll; }
}
.emergency__inner { position: relative; z-index: 1; max-width: 44rem; margin-inline: auto; }
.emergency h2 { color: #fff; }
.emergency p { color: #f6efe2; }
.emergency__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.2rem; background: var(--gold); color: var(--gold-ink); border-radius: 50%; }
.emergency .btn--onDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.emergency .btn--onDark:hover { background: rgba(255, 255, 255, .12); }
.emergency__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.8rem; }

/* --- FAQ ------------------------------------------------------------------ */
/* The photograph is fixed. A white veil leaves it at .4 so the dark type
   still clears the photo. overflow stays visible or the fixed background
   is clipped. */
.faq-band {
  position: relative;
  isolation: isolate;
  background-color: #fff;
  background-image: url("../img/facilities/facilities-1280.jpg");
  background-image: image-set(
    url("../img/facilities/facilities-1280.webp") type("image/webp"),
    url("../img/facilities/facilities-1280.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.faq-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .6);
}
.faq-band > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .faq-band { background-attachment: scroll; }
}
.faq { display: grid; gap: var(--gap-lg); align-items: start; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

.acc { display: grid; gap: .7rem; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.acc__item[open] { border-color: var(--red); }
.acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__item[open] .acc__q { color: var(--secondary); }
.acc__sign { display: grid; place-items: center; width: 30px; height: 30px; background: var(--bg-alt); border-radius: 8px; flex-shrink: 0; transition: transform .2s, background-color .2s; }
.acc__item[open] .acc__sign { background: var(--gold); color: var(--gold-ink); transform: rotate(45deg); }
.acc__a { padding: 0 1.25rem 1.25rem; font-size: .95rem; color: var(--muted); }

/* --- Final CTA ------------------------------------------------------------ */
/* A quarter of the card hangs over the footer. --finale-overlap is 25% of
   the card's own height (set in app.js); the fallback covers no-JS.
   The footer's matching padding keeps the logo and links clear. */
.finale-band {
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: calc(var(--finale-overlap, 6.5rem) * -1);
}
.finale-band .container {
  width: min(100% - 2rem, calc(var(--container) + 8rem));
}
.finale {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(11, 30, 51, .28);
}
.finale__media { position: absolute; inset: 0; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.finale__media::after { content: ""; position: absolute; inset: 0; background: rgba(10,13,18,.62); }
.finale__inner { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem); text-align: center; color: #fff; }
.finale__inner h2 { color: #fff; }
.finale__inner p { color: rgba(255,255,255,.88); }
.finale__inner .eyebrow { color: rgba(255,255,255,.8); }
.finale__inner .eyebrow .icon { color: var(--gold); }
.finale__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.7rem; }

/* --- Footer --------------------------------------------------------------- */
/* Navy into gold, with the corridor photograph kept faint underneath.
   The scrim stops the gold end from dropping link text under 4.5:1. */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--section-y);
  color: #f6efe2;
  background: var(--secondary);
}
body:has(.finale-band) .footer {
  padding-top: calc(var(--section-y) + var(--finale-overlap, 6.5rem));
}
.footer__bg { position: absolute; inset: 0; z-index: 0; }
.footer__bg picture,
.footer__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}
.footer__bg img { opacity: .5; }
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 30, 51, .78) 0%,
    rgba(16, 42, 67, .7) 68%,
    rgba(140, 96, 18, .78) 100%);
}
@media (min-width: 900px) {
  .footer__bg::after {
    background: linear-gradient(108deg,
      rgba(11, 30, 51, .76) 0%,
      rgba(16, 42, 67, .66) 50%,
      rgba(140, 96, 18, .74) 100%);
  }
}
.footer > .container { position: relative; z-index: 1; }
.footer__grid { display: grid; gap: var(--gap-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer__logo img { width: 150px; margin-bottom: 1rem; }
.footer h2 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer__links { display: grid; gap: .6rem; }
.footer__links a { color: #f6efe2; text-decoration: none; font-size: .94rem; }
.footer__links a:hover { color: var(--gold); }
.footer a { color: #f6efe2; }
.footer .footer__phone { display: block; font-size: 1.15rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.footer__meta { font-size: .92rem; }
.footer__bottom { margin-top: var(--gap-lg); padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .86rem; color: #f6efe2; text-align: center; }

/* --- Mobile drawer (native <dialog>: focus trap, Escape and backdrop free) -
   Anchored to the left edge and the top of the window, above the header.
   It slides in from the left. The closed position is off-screen; [open]
   brings it across. @starting-style plays that same move on open, and
   allow-discrete keeps it on screen long enough to slide back out. */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 500;
  width: min(26rem, calc(100% - 3rem));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--body);
  overflow-y: auto;
  box-shadow: 16px 0 40px rgba(11, 30, 51, .18);
  transform: translateX(-100%);
  transition:
    transform .32s ease,
    overlay .32s allow-discrete,
    display .32s allow-discrete;
}
.drawer[open] { transform: translateX(0); }
@starting-style {
  .drawer[open] { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}
.drawer::backdrop { background: rgba(10, 13, 18, .6); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.drawer__head img { width: 116px; }
.drawer__close { display: grid; place-items: center; width: 48px; height: 48px; background: var(--bg-alt); border: 0; border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.drawer__body { padding: 1rem 1.25rem 6rem; }

.dnav { display: grid; gap: .2rem; }
.dnav__link { display: block; padding: .85rem .5rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.dnav__link[aria-current="page"] { color: var(--secondary); }

/* <details> gives keyboard support and correct ARIA with no JavaScript. */
.dnav__group summary { display: flex; align-items: center; justify-content: space-between; padding: .85rem .5rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.dnav__group summary::-webkit-details-marker { display: none; }
.dnav__group summary .icon { transition: transform .2s; }
.dnav__group[open] summary .icon { transform: rotate(180deg); }
.dnav__sub { display: grid; gap: .1rem; padding: .2rem 0 .6rem .5rem; border-left: 2px solid var(--line); margin-left: .5rem; }
.dnav__sub a { display: block; padding: .6rem .8rem; font-size: .95rem; color: var(--body); text-decoration: none; border-radius: var(--r-sm); }
.dnav__sub a:hover, .dnav__sub a[aria-current="page"] { background: var(--bg-alt); color: var(--secondary); }

.drawer__cta { display: grid; gap: .6rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.drawer__cta .btn { justify-content: center; }

/* --- Search overlay ------------------------------------------------------- */
.searchbox { width: min(40rem, calc(100% - 2.5rem)); padding: 0; border: 0; border-radius: var(--r); background: transparent; }
.searchbox::backdrop { background: rgba(10, 13, 18, .65); }
.searchbox form { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem 1.4rem; background: #fff; border-radius: var(--r); }
.searchbox input { flex: 1; min-height: 52px; border: 0; background: none; font-size: 1.15rem; color: var(--ink); }
.searchbox input:focus { outline: none; }
.searchbox button { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: var(--r-sm); background: var(--gold); color: var(--gold-ink); cursor: pointer; }
.searchbox__list { margin: .45rem 0 0; padding: .35rem; list-style: none; background: #fff; border-radius: var(--r); max-height: min(22rem, 50vh); overflow: auto; }
.searchbox__list[hidden] { display: none; }
.searchbox__list a { display: grid; gap: .12rem; padding: .65rem .85rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.searchbox__list a:hover,
.searchbox__list a.is-active { background: var(--bg-alt); color: var(--secondary); }
.searchbox__group { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
.searchbox__title { font-weight: 600; }
.searchbox__empty { padding: .85rem 1rem; color: var(--muted); }

.page-hero--search h1 { max-width: 22ch; }
.page-search { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; max-width: 36rem; }
.page-search input { flex: 1 1 16rem; min-height: 52px; padding: 0 1rem; border: 0; border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem; }
.page-search input:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-count { margin: 0 0 1.5rem; color: var(--muted); }
.search-group { margin-bottom: 2rem; }
.search-group h2 { margin-bottom: .7rem; font-size: 1.2rem; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.search-results a { display: grid; gap: .25rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.search-results a:hover { border-color: var(--secondary); }
.search-results strong { font-size: 1.05rem; }
.search-results span { color: var(--muted); }
.search-results mark { background: var(--gold); color: var(--gold-ink); padding: 0 .12em; border-radius: 2px; }
.fcard, .acc__item, .gallery > li, .files > li { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* --- Back to top ---------------------------------------------------------- */
.totop {
  position: fixed;
  right: 1.1rem;
  bottom: 5.5rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  color: var(--gold-ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.totop[data-show="true"] { opacity: 1; visibility: visible; }
@media (min-width: 900px) { .totop { bottom: 1.5rem; } }

/* --- Mobile call bar -------------------------------------------------------
   Most mobile visitors to a hospital site want to phone it. This keeps that
   one tap away at all times.
   ------------------------------------------------------------------------ */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 56px;
  background: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.callbar a:first-child { background: var(--gold); color: var(--gold-ink); }

@media (min-width: 900px) { .callbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 56px; } }

/* --- Media pages ---------------------------------------------------------- */
.media-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.media-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill, 999px);
  background: #fff;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}
.media-nav a[aria-current="page"] { background: var(--secondary); border-color: var(--secondary); color: #f6efe2; }
.media-nav a:hover { color: var(--secondary-deep); }
.media-nav a[aria-current="page"]:hover { color: #f6efe2; }
.media-empty { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.gallery__card { display: grid; gap: .35rem; color: var(--ink); text-decoration: none; }
.gallery__card:hover { color: var(--secondary); }
.gallery__card:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.gallery__frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--secondary); }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(11, 30, 51, .45), rgba(11, 30, 51, .08)); }
.gallery__play > span { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--gold); color: var(--gold-ink); }
.gallery__title { font-weight: 700; }
.gallery__note { color: var(--muted); font-size: .9rem; font-weight: 500; }

.files { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.files li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.files__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 12px; background: var(--gold); color: var(--gold-ink); }
.files h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.files p { margin: 0 0 .45rem; color: var(--muted); }
.files a { color: var(--secondary); font-weight: 700; }

.lightbox {
  width: min(1100px, calc(100vw - 2rem));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f6efe2;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(11, 30, 51, .88); }
.lightbox__bar { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .65rem; }
.lightbox__bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f6efe2;
  color: var(--secondary);
  cursor: pointer;
}
.lightbox__bar button[hidden] { display: none; }
.lightbox__close { background: var(--gold); color: var(--gold-ink); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 8.5rem); width: auto; height: auto; border-radius: 12px; background: #0b1e33; }
.lightbox__video { width: min(960px, 100%); aspect-ratio: 16 / 9; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #0b1e33; }
.lightbox__caption { margin: 0; max-width: 40rem; text-align: center; font-weight: 600; }
