/* Shared accessibility improvements. Westside turquoise remains the brand color. */
/* Center the hospital subtitle beneath the Westside wordmark. */
.brand > span { text-align: center; }
.brand > span > small { margin-inline: auto; }

/* Visible actions and consistent feedback across each linked care panel. */
.care-panel { cursor: pointer; }
.care-panel .panel-cta { margin-top: .25rem; min-height: 48px; font-size: 1rem; }
.care-panel:is(:hover, :focus-visible) .panel-photo img { transform: scale(1.045); }
.care-panel:is(:hover, :focus-visible) .panel-cta {
  background: #8e2152;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #66153718;
}
.care-panel:is(:hover, :focus-visible) .panel-cta > span { transform: translateX(4px); }

/* Award images keep their original proportions and newest-first reading order. */
.awards-section { padding-top: clamp(3rem, 6vw, 5rem); }
.awards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); max-width: 760px; margin-inline: auto; }
.award { margin: 0; text-align: center; min-width: 0; }
.award-image { height: 280px; display: flex; align-items: center; justify-content: center; }
.award-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.award figcaption { margin-top: 1rem; font-family: var(--sans); line-height: 1.5; }
.award figcaption strong { display: block; font-size: 1.125rem; color: var(--ink); }
.award figcaption span { display: block; font-size: .9375rem; color: var(--muted); }
@media (max-width: 640px) {
  .awards-grid { grid-template-columns: 1fr; max-width: 360px; gap: 2rem; }
  .award-image { height: 240px; }
}

/* Review controls and a stable-height sliding track for short and long quotes. */
.family-quote.review-carousel { overflow-wrap: break-word; }
.family-quote.review-carousel > .review-controls { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: 1.5rem 0 .75rem; }
.review-controls button { min-height: 44px; padding: .6rem 1rem; border: 1px solid #006d7b; border-radius: 6px; background: #fff; color: #163b45; font: inherit; font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.review-controls button:hover { background: #e1f7f7; }
.review-controls .review-position { min-width: 4.5rem; color: #163b45; font-size: .9375rem; letter-spacing: normal; }
.family-quote.review-carousel > .review-viewport { display: block; width: 100%; overflow: hidden; touch-action: pan-y; }
.review-track { display: flex; align-items: stretch; width: 100%; transition: transform .45s ease; }
.review-track.review-jump { transition: none; }
.review-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 1rem 1rem 2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.review-stars { color: #9a285f; font-size: 1.5rem; letter-spacing: .12em; line-height: 1.4; margin: 0 0 1rem; }
.family-quote .review-slide blockquote { max-width: 48rem; font-size: clamp(1.4rem, 2.6vw, 2.7rem); line-height: 1.4; margin: 0 auto 1.5rem; }
.review-slide figcaption { color: #163b45; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.family-quote.review-carousel > .review-links { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 1rem; }
@media (max-width: 600px) {
  .review-controls [data-review-toggle] { flex-basis: 100%; }
  .review-slide { padding-inline: .5rem; }
  .family-quote.review-carousel > .review-links { flex-direction: column; }
}
:root {
  --focus-ink: #163b45;
  --nav-height: 7rem;
  --contact-bar-height: 0px;
}
html {
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  scroll-padding-bottom: calc(var(--contact-bar-height) + 1rem);
}
body { font-size: 1.0625rem; }
:where(a, button, summary, input, select, textarea, [tabindex]) {
  scroll-margin-block: 1rem;
}
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
  border-radius: 3px;
}
.skip { z-index: 1000; color: #163b45; font-size: 1rem; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Generous, labeled calling controls at every screen size. */
.nav-row { gap: 1.25rem; padding-block: .5rem; flex-wrap: wrap; }
.header-actions {
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  gap: .4rem;
  min-width: 11.5rem;
}
.header-actions .button {
  min-height: 44px;
  padding: .6rem .9rem;
  font-size: .875rem;
  gap: .7rem;
}
.button.clinic-call {
  background: #e1f7f7;
  border: 1px solid #006d7b;
  color: #163b45;
  font-size: .875rem;
  line-height: 1.4;
}
.button.clinic-call:hover { background: #bdeded; }
.button { max-width: 100%; overflow-wrap: anywhere; }
.button.clinic-call span { font-size: inherit; font-weight: 600; transform: none; }
.header-actions .call-number { display: none; }
.utility { font-size: .875rem; padding-block: .35rem; }
.utility .wrap { align-items: center; }
.utility .wrap > div { gap: 1.25rem; flex-wrap: wrap; }
.utility a { display: inline-flex; align-items: center; min-height: 32px; }
.desktop-nav { gap: 1.25rem; }
.desktop-nav a { font-size: .875rem; min-height: 44px; }
.nav-dropdown { position: relative; padding: 0; border: 0; }
.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .75rem 0;
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: '';
  position: static;
  flex: 0 0 auto;
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg);
}
.nav-dropdown[open] > summary::after { content: ''; transform: translateY(.1rem) rotate(225deg); }
.nav-dropdown > summary:hover { color: #006d7b; }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 30;
  width: 15rem;
  max-height: max(5rem, calc(100dvh - var(--nav-height) - 2rem));
  overflow-y: auto;
  padding: .5rem;
  background: #fff;
  color: #163b45;
  border: 1px solid #557d86;
  border-radius: 7px;
  box-shadow: 0 8px 22px #163b4526;
}
.desktop-nav .nav-submenu a {
  display: flex;
  align-items: center;
  padding: .7rem .75rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nav-submenu a:hover { background: #effafa; }
.menu-toggle { flex: 0 0 46px; }
#mobile-menu {
  max-height: max(4rem, calc(100dvh - var(--nav-height) - 4rem));
  overflow-y: auto;
  padding-bottom: 1.5rem;
  scrollbar-gutter: stable;
}
.menu-open .brand, .menu-open .header-actions { pointer-events: none; }

/* Preserve large typography while lifting small body copy and control labels. */
.eyebrow, .cinema-content .eyebrow, .diagnostics-intro .eyebrow,
.visit-details .eyebrow, .family-quote .eyebrow, .menu-eyebrow,
.service-number, .card-link, .care-links a, .care-more a,
.visit-resources a, .footer-grid a, .footer-grid h2,
.footer-bottom, .visit-copy .appointment-note, .portrait-note,
.owner-caption > span, .owner-copy cite, .family-quote > div > span,
.photo-category, .panel-number, .diagnostic-number, .cinema-bottom,
.person p, .team-grid .role, .resource-grid > a > span,
.resource-grid b, .visit-hours h3, .small { font-size: .875rem; }
.panel-copy p, .owner-copy p, .team-grid p, .service-card p,
.diagnostic-list p, .diagnostics-intro .diagnostics-description,
.visit-details .urgent-note, .visit-card p, .resource-grid p,
.footer-grid p, .footer-grid address, .contact-info > p:last-child,
.heritage-rail span, .visit-hours dl > div, .hours > div,
.cta > div:last-child > p { font-size: 1rem; }
.owner-copy .story-lead { font-size: 1.13rem; }
.care-links a, .care-more a, .footer-grid a:not(.footer-logo-link),
.service-jump > a, .visit-resources a, .related a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.related a { display: flex; }
.footer-grid a:not(.footer-logo-link) { width: fit-content; }
.care-more a, .footer-grid a, .text-block a,
.accessibility-content a, article > p a, .cta > div > p a,
.contact-info > p a {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.panel-number { color: #45616b; }
.diagnostics-intro .eyebrow, .diagnostic-number, .diagnostic-arrow { color: #163b45; }
.portrait-initials, .portrait-doctor .portrait-initials { color: #276975; }
.button.outline { border-color: #557d86; }
.menu-toggle { border-color: #557d86; }
.photo-category {
  background: #163b45;
  padding: .45rem .6rem;
  width: fit-content;
  max-width: calc(100% - 6rem);
  border-radius: 2px;
  letter-spacing: .06em;
}
.cinema-content h1, .cinema-content .eyebrow, .hero-description,
.hero-care-link { text-shadow: 0 1px 3px #00313d; }
.hero-care-link { white-space: normal; }
.cinema-shade {
  background: linear-gradient(90deg, rgba(0, 62, 76, .94) 0%, rgba(0, 62, 76, .92) 55%, rgba(0, 62, 76, .82) 75%, rgba(0, 62, 76, .20) 100%);
}
.cinema-bottom > span, .cinema-bottom > a {
  background: #004451;
  padding: .3rem .55rem;
}
main :where(h1, h2, h3, p, blockquote) { overflow-wrap: anywhere; }
.heritage-rail .heritage-history strong { font-size: 1.5rem; line-height: 1.35; }
.accessibility-content { padding-top: 0; }
.accessibility-content h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.accessibility-content li { margin-bottom: .75rem; }
.accessibility-content address { font-style: normal; }
.accessibility-review { margin-top: 2.5rem; color: #45616b; }
.article-layout article, .new-grid > *, .contact-grid > *,
.footer-grid > *, .values-grid > *, .resource-grid > * { min-width: 0; }
.page-intro h1, .text-block h2, .visit-card h2 { overflow-wrap: anywhere; }
.hours > div, .visit-hours dl > div { flex-wrap: wrap; }
.hours dd, .visit-hours dd { margin-inline-start: 0; overflow-wrap: anywhere; }

@media (max-width: 1200px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  #mobile-menu { padding: 1rem 2rem 1.5rem; }
  #mobile-menu > a {
    display: block;
    min-height: 44px;
    padding: .75rem 0;
    border-bottom: 1px solid #bddddd;
    font-size: 1rem;
  }
  #mobile-menu .nav-dropdown > summary {
    padding: .75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #bddddd;
  }
  #mobile-menu .nav-submenu {
    position: static;
    width: auto;
    max-height: none;
    margin: .25rem 0 .75rem .5rem;
    padding: .25rem .75rem;
    border: 0;
    border-left: 2px solid #557d86;
    border-radius: 0;
    box-shadow: none;
  }
  #mobile-menu .nav-submenu a {
    display: block;
    min-height: 44px;
    padding: .75rem .25rem;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 721px) and (max-width: 1020px) {
  .cinema-shade { background: rgba(0, 62, 76, .84); }
}
@media (min-width: 1201px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .care-panel { display: block; }
  .header-actions { display: none; }
  .nav-row { padding-block: .25rem; }
  .utility .wrap > span { font-size: .875rem; text-align: center; }
  .mobile-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .mobile-actions a {
    min-height: 56px;
    font-size: .875rem;
    padding: .5rem;
    line-height: 1.4;
    gap: .3rem;
    min-width: 0;
    overflow-wrap: anywhere;
    flex-wrap: wrap;
  }
  .mobile-actions .clinic-call { flex-direction: column; gap: .1rem; }
  .mobile-actions .call-number { font-weight: 400; }
  .footer-bottom { padding-bottom: calc(var(--contact-bar-height) + 1.5rem); }
  .visit-hours dl > div, .hours > div { flex-wrap: wrap; }
  .visit-hours dd, .hours dd { margin-left: 0; }
  .care-more > div { min-width: 0; }
  .service-jump { flex-wrap: wrap; }
  .service-jump > a { font-size: .875rem; }
  .brand { flex: 1 1 auto; overflow-wrap: anywhere; }
  .brand .official-logo { flex-shrink: 0; }
  .brand small { font-size: .75rem; }
  .menu-toggle { margin-left: auto; }
  .cinema-content { padding-top: 350px; }
  .cinema-shade {
    background: linear-gradient(0deg, #005e6c 0%, #005e6c calc(100% - 335px), rgba(0, 94, 108, .84) calc(100% - 375px), transparent 100%);
  }
  .heritage-rail .heritage-history { grid-template-columns: 1fr; }
  .heritage-rail .heritage-history strong { font-size: 1.4rem; }
  .owner-date { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid a:not(.footer-logo-link) { max-width: 100%; overflow-wrap: anywhere; }
  .panel-photo { aspect-ratio: auto; }
  .panel-photo picture { position: static; display: block; height: auto; aspect-ratio: 1 / 1; }
  .panel-photo img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
  .panel-photo::after { display: none; }
  .photo-category {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    max-width: none;
    padding: .65rem .85rem;
    border-radius: 0;
    overflow-wrap: anywhere;
  }
  .photo-arrow, .panel-number, .diagnostic-number, .diagnostic-arrow { display: none; }
  .panel-copy, .diagnostic-list > a { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .team-editorial { grid-template-columns: 1fr; }
  .person .portrait-slot { aspect-ratio: 4/3; }
  .person p { max-width: none; }
  .visit-resources { grid-template-columns: 1fr; }
}
/* At high zoom or on short landscape screens, fixed controls must not cover content. */
@media (max-height: 500px) {
  .site-header { position: static; }
  .mobile-actions { position: static; }
  .footer-bottom { padding-bottom: 1.5rem; }
  html { scroll-padding-block: 1rem; }
}
.relaxed-controls { scroll-padding-block: 1rem; }
.relaxed-controls .site-header { position: static; }
.relaxed-controls .mobile-actions { position: static; grid-template-columns: 1fr; }
.relaxed-controls .footer-bottom { padding-bottom: 1.5rem; }
.relaxed-controls body.menu-open { overflow: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-reveal].reveal-ready { opacity: 1 !important; transform: none !important; }
  .button:hover, .button:hover span, .person:hover .portrait-slot img,
  .panel-photo:hover img, .underlink:hover > span { transform: none !important; }
  .care-panel:is(:hover, :focus-visible) .panel-photo img,
  .care-panel:is(:hover, :focus-visible) .panel-cta,
  .care-panel:is(:hover, :focus-visible) .panel-cta > span { transform: none !important; }
}
@media (forced-colors: active) {
  a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
  .button, .mobile-actions a, .menu-toggle { border: 1px solid ButtonText; }
}

/* Streamlined navigation and unnumbered content. */
.panel-copy { display: block; }
.steps > div { grid-template-columns: minmax(0, 1fr); }
.card-top { justify-content: flex-end; }
.diagnostic-item { padding: 1.5rem 0; border-top: 1px solid #3698a378; }
.diagnostic-item:last-child { border-bottom: 1px solid #3698a378; }
.diagnostic-item h3 { font-size: 1.25rem; font-weight: 600; }
.diagnostic-item p { font-size: 1rem; max-width: none; }
.vista-feature, .diagnostic-highlight { background: #ffffff60; padding: 1.5rem; margin-bottom: 1rem; border: 1px solid #3698a378; border-radius: 8px; }
.vista-feature .eyebrow { color: #174d56; margin-bottom: .75rem; font-size: .875rem; }
.vista-feature h3 { font-size: 1.6rem; }

/* Decorative homepage film retains the still until playback succeeds. */
.cinema-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; opacity: 0; pointer-events: none; }
.cinema-video.is-playing { opacity: 1; }
.hero-video-toggle { position: absolute; z-index: 3; right: 2rem; bottom: 1.25rem; min-height: 44px; padding: .6rem 1rem; border: 1px solid #fff; border-radius: 6px; background: #07393ee8; color: #fff; font-size: .875rem; cursor: pointer; }
.hero-video-toggle[hidden] { display: none; }
@media(max-width:720px) { .cinema-video { height: 70%; object-position: 60% center; } .hero-video-toggle { top: 1rem; bottom: auto; right: 1rem; } }
@media(prefers-reduced-motion:reduce) { .cinema-video { transition: none; } }

/* Keep the film visible to the right of the headline. */
@media(min-width:721px) { .cinema-shade { background: linear-gradient(90deg,rgba(0,45,55,.91) 0%,rgba(0,45,55,.75) 38%,rgba(0,45,55,.32) 65%,rgba(0,45,55,.08) 100%); } }

/* Matching three-column introduction and full-frame team photographs. */
.heritage-rail .wrap { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
.heritage-rail .wrap > p { display:flex; flex-direction:column; justify-content:center; padding:1rem 1.5rem; text-align:center; margin:0; }
.heritage-rail .wrap > p strong { font-family:var(--sans); font-size:clamp(1.05rem,1.5vw,1.35rem); font-weight:650; line-height:1.4; }
.heritage-rail .wrap > p span { font-size:.9375rem; line-height:1.5; margin-top:.4rem; }
.portrait-slot img { object-fit:cover; object-position:center 22%; }
.portrait-slot:has(img)::before { display:none; }
.faq-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:4rem; align-items:start; padding-top:1rem; }
.faq-item { margin:0 0 1rem; border:1px solid #91b9bf; border-radius:8px; background:#f4fbfb; padding:0; }
.faq-item > summary { padding:1.35rem 1.5rem; cursor:pointer; font-size:1.125rem; line-height:1.5; font-weight:600; }
.faq-answer { padding:0 1.5rem 1.25rem; }
.faq-answer p { margin:0; }
.faq-sources { padding-bottom:4rem; }
.faq-sources h2 { font-size:1.3rem; }
.faq-sources a { text-decoration:underline; }
@media(max-width:720px) { .heritage-rail .wrap { grid-template-columns:1fr; } .heritage-rail .wrap > p { border-right:0; border-bottom:1px solid #b9d1d3; } .heritage-rail .wrap > p:last-child { border-bottom:0; } .faq-layout { grid-template-columns:1fr; gap:2rem; } }

/* Quiet media controls keep a 44px target and an accessible name. */
.hero-video-toggle { width:44px; height:44px; min-height:44px; padding:0; border-radius:50%; display:grid; place-items:center; background:#07393ed9; }
.hero-video-toggle::before { content:''; display:block; width:0; height:0; border-top:7px solid transparent; border-bottom:7px solid transparent; border-left:10px solid white; margin-left:3px; }
.hero-video-toggle[data-playing="true"]::before { width:11px; height:14px; border:0; border-left:4px solid white; border-right:4px solid white; margin:0; }
.surgery-intro { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr); gap:clamp(2rem,6vw,6rem); align-items:center; padding-top:3.5rem; padding-bottom:4rem; }
.surgery-intro-copy { max-width:650px; }
.surgery-intro-copy .lead { font-size:clamp(1.4rem,2.4vw,2rem); line-height:1.4; }
.surgery-film { position:relative; width:100%; max-width:390px; justify-self:end; aspect-ratio:4/5; border-radius:14px; overflow:hidden; background:#d9ebec; isolation:isolate; }
.surgery-film > img,.surgery-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 52%; }
.surgery-video { opacity:0; }
.surgery-video.is-playing { opacity:1; }
.surgery-film-tint { position:absolute; inset:0; background:#00798412; pointer-events:none; }
.surgery-film .hero-video-toggle { top:auto; bottom:16px; right:16px; }
@media(max-width:720px) { .surgery-intro { grid-template-columns:1fr; padding-top:2.5rem; gap:1.5rem; } .surgery-film { justify-self:center; max-width:340px; aspect-ratio:4/5; } }
