.cms-hospital-directory-page .hospital-directory-hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--brand-rgb), 0.13), transparent 30%),
    linear-gradient(135deg, #fff, #edf5fb);
}

.cms-hospital-directory-page .hospital-directory-hero .eyebrow {
  color: var(--brand-600);
}

.cms-hospital-directory-page .hospital-directory-hero p:last-child {
  color: var(--muted);
}

.cms-hospital-directory-page .directory-toolbar {
  position: static;
}

.cms-hospital-directory-page .hospital-directory-grid .directory-hospital-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 0;
  padding: 26px;
  column-gap: 20px;
  row-gap: 8px;
  overflow: visible;
}

.cms-hospital-directory-page .hospital-list-logo {
  grid-column: 1;
  grid-row: 1 / 4;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  align-self: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cms-hospital-directory-page .hospital-list-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-hospital-directory-page .hospital-logo-placeholder {
  color: var(--brand-700);
  background: var(--brand-soft);
  font-size: 16px;
  font-weight: 700;
}

.cms-hospital-directory-page .hospital-directory-grid .directory-card-body {
  display: contents;
}

.cms-hospital-directory-page .directory-location,
.cms-hospital-directory-page .directory-card-body h2,
.cms-hospital-directory-page .directory-tags {
  grid-column: 2;
  min-width: 0;
}

.cms-hospital-directory-page .directory-card-body h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.4;
}

.cms-hospital-directory-page .directory-card-body h2 a:hover {
  color: var(--brand-600);
}

.cms-hospital-directory-page .directory-card-body > p {
  grid-column: 1 / -1;
  display: -webkit-box;
  align-self: start;
  max-height: calc(5.4em - 1px);
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.cms-hospital-directory-page .directory-actions {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cms-hospital-directory-page .directory-actions a {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cms-hospital-directory-page .directory-actions a:hover {
  border-color: var(--brand-600);
  color: #fff;
  background: var(--brand-600);
  transform: translateY(-1px);
}

.cms-hospital-directory-page .directory-actions .primary:hover {
  border-color: var(--brand-900);
  background: var(--brand-900);
}

.cms-hospital-empty {
  margin: 0;
  padding: 54px 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.cms-hospital-profile-page {
  background: #f5f8fc;
}

.cms-hospital-profile-page .hospital-profile-breadcrumb {
  padding-top: 26px;
}

.cms-hospital-profile-page .hospital-profile-breadcrumb nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.cms-hospital-profile-page .hospital-profile-breadcrumb a:hover {
  color: #fff;
}

.cms-hospital-profile-page .hospital-hero {
  padding-top: 0;
}

.cms-hospital-profile-page .hospital-hero-grid {
  padding-top: 34px;
}

.cms-hospital-profile-page .hospital-hero-grid.no-photo {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.cms-hospital-profile-page .hospital-emblem-logo {
  padding: 8px;
}

.cms-hospital-profile-page .hospital-emblem-logo--overlay {
  display: none;
}

.cms-hospital-profile-page .hospital-emblem-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-hospital-profile-page .hospital-title > div:last-child {
  min-width: 0;
}

.cms-hospital-profile-page .hospital-title h1 {
  overflow-wrap: anywhere;
}

.cms-hospital-profile-page .hospital-keyfacts {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.cms-hospital-profile-page .cms-hospital-about-layout > div {
  min-width: 0;
}

.cms-hospital-profile-page .cms-hospital-rich {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.cms-hospital-profile-page .cms-hospital-rich h1,
.cms-hospital-profile-page .cms-hospital-rich h2,
.cms-hospital-profile-page .cms-hospital-rich h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.25;
}

.cms-hospital-profile-page .cms-hospital-rich p {
  margin: 0 0 14px;
}

.cms-hospital-profile-page .cms-hospital-rich > :last-child {
  margin-bottom: 0;
}

.cms-hospital-profile-page .department-layout.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.cms-hospital-profile-page .department-panels {
  min-width: 0;
  height: min(680px, calc(100vh - 140px));
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid #d7e2ee;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.78));
  box-shadow: 0 14px 34px rgba(var(--brand-rgb), 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  scrollbar-color: rgba(var(--brand-rgb), 0.38) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.cms-hospital-profile-page .department-panels .department-detail {
  min-height: 100%;
  padding: 28px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(var(--brand-rgb), 0.035);
}

.cms-hospital-profile-page .department-layout.is-single .department-panels {
  height: auto;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cms-hospital-profile-page .department-list {
  max-height: min(680px, calc(100vh - 140px));
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 10px;
  padding: 12px 8px 12px 12px;
  border: 1px solid #d7e2ee;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 251, 255, 0.68));
  box-shadow: 0 14px 34px rgba(var(--brand-rgb), 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  scrollbar-color: rgba(var(--brand-rgb), 0.38) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.cms-hospital-profile-page .department-list::-webkit-scrollbar {
  width: 8px;
}

.cms-hospital-profile-page .department-panels::-webkit-scrollbar {
  width: 8px;
}

.cms-hospital-profile-page .department-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.38);
  background-clip: padding-box;
}

.cms-hospital-profile-page .department-panels::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.38);
  background-clip: padding-box;
}

.cms-hospital-profile-page .department-list::-webkit-scrollbar-track {
  margin-block: 12px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.055);
}

.cms-hospital-profile-page .department-panels::-webkit-scrollbar-track {
  margin-block: 12px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.055);
}

.cms-hospital-profile-page .department-detail[hidden] {
  display: none;
}

.cms-hospital-profile-page .department-list button {
  grid-template-columns: 36px minmax(0, 1fr);
  flex: 0 0 auto;
  box-shadow: 0 5px 16px rgba(var(--brand-rgb), 0.035);
}

.cms-hospital-profile-page .department-list button > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #edf4fb;
}

.cms-hospital-profile-page .department-list button.is-active > span {
  color: #fff;
  background: var(--brand-700);
}

.cms-hospital-profile-page .department-list button strong {
  font-size: 16px;
  line-height: 1.45;
}

.cms-hospital-profile-page .department-list button small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cms-hospital-profile-page .department-list button.is-active {
  color: var(--ink);
  border-color: var(--brand-500);
  background: #eef5fd;
  box-shadow: inset 3px 0 0 var(--brand-600), 0 5px 18px rgba(var(--brand-rgb), 0.06);
}

.cms-hospital-profile-page .department-list button:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.cms-hospital-profile-page .department-rich {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.cms-hospital-profile-page .department-lead-team {
  margin: 7px 0 0;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 600;
}

.cms-hospital-profile-page .department-rich h2,
.cms-hospital-profile-page .department-rich h3,
.cms-hospital-profile-page .department-rich h4 {
  margin: 24px 0 9px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
}

.cms-hospital-profile-page .department-rich p {
  margin: 0 0 12px;
}

.cms-hospital-profile-page .department-rich > :last-child {
  margin-bottom: 0;
}

.cms-hospital-profile-page .department-doctors {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cms-hospital-profile-page .department-doctors-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cms-hospital-profile-page .department-doctors-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.cms-hospital-profile-page .department-doctors-heading span {
  color: var(--muted);
  font-size: 12px;
}

.cms-hospital-profile-page .hospital-doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cms-hospital-profile-page .hospital-doctor-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #f8fbfe;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cms-hospital-profile-page .hospital-doctor-card:hover {
  border-color: rgba(var(--brand-rgb), 0.38);
  background: #edf5fc;
  transform: translateY(-2px);
}

.cms-hospital-profile-page .hospital-doctor-card img,
.cms-hospital-profile-page .hospital-doctor-placeholder {
  width: 62px;
  height: 76px;
  border-radius: 11px;
  object-fit: cover;
  object-position: top center;
}

.cms-hospital-profile-page .hospital-doctor-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-700);
  background: var(--brand-soft);
  font-weight: 700;
}

.cms-hospital-profile-page .hospital-doctor-card > span:nth-child(2) {
  min-width: 0;
}

.cms-hospital-profile-page .hospital-doctor-card strong,
.cms-hospital-profile-page .hospital-doctor-card small {
  display: block;
}

.cms-hospital-profile-page .hospital-doctor-card strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.cms-hospital-profile-page .hospital-doctor-card small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cms-hospital-profile-page .hospital-doctor-card b {
  color: var(--brand-500);
  font-size: 15px;
}

.cms-hospital-profile-page .cms-hospital-capabilities .sp-card {
  min-height: 210px;
}

@media (max-width: 900px) {
  .cms-hospital-profile-page .hospital-profile-breadcrumb {
    padding-top: 20px;
  }

  .cms-hospital-profile-page .hospital-doctor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cms-hospital-profile-page .department-list {
    max-height: 520px;
  }

  .cms-hospital-profile-page .department-panels {
    height: auto;
    max-height: 620px;
  }
}

@media (max-width: 620px) {
  .cms-hospital-directory-page .hospital-directory-grid .directory-hospital-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 20px;
    column-gap: 14px;
  }

  .cms-hospital-directory-page .hospital-list-logo {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    padding: 7px;
    border-radius: 12px;
  }

  .cms-hospital-directory-page .directory-card-body h2 {
    font-size: 19px;
  }

  .cms-hospital-directory-page .directory-tags {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .cms-hospital-profile-page .hospital-title {
    flex-direction: row;
  }

  .cms-hospital-profile-page .hospital-emblem {
    width: 62px;
    height: 62px;
  }

  .cms-hospital-profile-page .department-detail {
    padding: 20px;
  }

  .cms-hospital-profile-page .hospital-doctor-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .cms-hospital-profile-page .hospital-doctor-card img,
  .cms-hospital-profile-page .hospital-doctor-placeholder {
    width: 54px;
    height: 66px;
  }
}
