/* Canonical cross-language visuals. Language-specific files handle typography
   and text-length layout only. Sync this file into each site's assets. */
:root {
  --cms-banner-overlay: linear-gradient(90deg, rgba(247,250,253,.97) 0%, rgba(247,250,253,.88) 36%, rgba(247,250,253,.52) 70%, rgba(247,250,253,.3) 100%);
  --cms-care-overlay: linear-gradient(90deg, rgba(245,249,253,.99) 0%, rgba(245,249,253,.92) 34%, rgba(245,249,253,.35) 64%, rgba(7,31,59,.16) 100%);
}
html[lang] .sp-hero[style*="--cms-banner-image"] {
  background-image: var(--cms-banner-overlay), var(--cms-banner-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* Old locale overlays must not add a second white layer. */
html[lang] .sp-hero[style*="--cms-banner-image"]::before {
  content: none;
  background: none;
}
html[lang] body.zh-cms-service .page-hero[style*="--service-hero-image"] {
  background-image: var(--cms-care-overlay), var(--service-hero-image);
  background-position: center;
  background-size: cover;
}
html[lang] .sp-hero[style*="--cms-banner-image"] .sp-hero-copy h1 { color: var(--ink); }
html[lang] .sp-hero[style*="--cms-banner-image"] .sp-hero-copy p { color: var(--muted); }
html[lang] .sp-hero[style*="--cms-banner-image"] .sp-hero-copy h1 em,
html[lang] .sp-hero[style*="--cms-banner-image"] .sp-hero-copy .sp-eyebrow { color: var(--brand-600); }
html[lang] .page-heading h2,
html[lang] .section-heading h2,
html[lang] .sp-heading h2 {
  font-size: clamp(32px, 2.9vw, 46px);
  line-height: 1.18;
}
html[lang] .cms-hospital-card,
html[lang] .cms-doctor-card,
html[lang] .directory-expert-card { border-radius: 24px; }
html[lang] .cms-hospital-profile-page .hospital-title h1 {
  font-size: clamp(32px, 2.8vw, 46px);
  line-height: 1.12;
}
html[lang] .cms-hospital-profile-page .hospital-hero-copy > .sp-button { margin-top: 24px; }
html[lang] .site-footer { background: #06182c; }
/* Shared hospital-detail patient stories. */
html[lang] .hospital-related-cases .case-directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
html[lang] .hospital-related-cases .directory-case-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
html[lang] .hospital-related-cases .directory-case-image {
  min-height: 0;
  aspect-ratio: 3 / 2;
}
html[lang] .hospital-related-cases .directory-case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[lang] .hospital-related-cases .directory-case-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
html[lang] .hospital-related-cases .directory-case-content h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html[lang] .hospital-related-cases .directory-case-content > p {
  display: -webkit-box;
  flex: 0 0 auto;
  max-height: 5.4em;
  overflow: hidden;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
html[lang] .hospital-related-cases .directory-case-content h2 a {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 1050px) {
  html[lang] .hospital-related-cases .case-directory-grid { grid-template-columns: 1fr; }
  html[lang] .hospital-related-cases .directory-case-card {
    grid-template-columns: 38% 1fr;
    grid-template-rows: 1fr;
  }
  html[lang] .hospital-related-cases .directory-case-image { aspect-ratio: auto; }
}
@media (max-width: 600px) {
  html[lang] .hospital-related-cases .directory-case-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  html[lang] .hospital-related-cases .directory-case-image { aspect-ratio: 3 / 2; }
}

/* Hospital introduction: numbered sections and accessible disclosure. */
html[lang] .cms-hospital-rich h2,
html[lang] .cms-hospital-rich h3,
html[lang] .cms-hospital-rich h4 {
  margin: 30px 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
html[lang] .cms-hospital-rich h2:first-child,
html[lang] .cms-hospital-rich h3:first-child,
html[lang] .cms-hospital-rich h4:first-child { margin-top: 0; }
html[lang] .cms-hospital-rich h2 span,
html[lang] .cms-hospital-rich h3 span,
html[lang] .cms-hospital-rich h4 span { font: inherit !important; color: inherit !important; }
html[lang] .cms-hospital-rich p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
html[lang] .cms-hospital-rich.is-collapsible {
  position: relative;
  max-height: 22.8em;
  overflow: hidden;
}
html[lang] .cms-hospital-rich.is-collapsible:not(.is-expanded)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(transparent, #fff);
}
html[lang] .cms-hospital-rich.is-collapsible.is-expanded { max-height: none; }
html[lang] .hospital-rich-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-700);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
html[lang] .hospital-rich-toggle:hover { border-color: var(--brand-600); background: var(--brand-soft); }
html[lang] .hospital-rich-toggle[hidden] { display: none; }
html[lang] .hospital-rich-toggle__icon {
  display: inline-block;
  margin-inline-start: 8px;
  transition: transform .2s ease;
}
html[lang] .hospital-rich-toggle[aria-expanded="true"] .hospital-rich-toggle__icon {
  transform: rotate(180deg);
}
@media (max-width: 640px) {
  html[lang] .cms-hospital-rich.is-collapsible { max-height: 17.1em; }
  html[lang] .hospital-rich-toggle { width: 100%; justify-content: center; }
}
html[lang] .cms-hospital-about-layout > aside > span b {
  color: inherit;
  font-weight: 700;
}
