.info-page {
  --info-black: #111;
  --info-muted: #555;
  --info-soft: #f5f5f5;
  background: #fff;
  color: var(--info-black);
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

.info-page main {
  padding-top: 78px;
}

.hospital-test-page main {
  padding-top: 0;
}

.info-container {
  width: min(100% - 120px, 1680px);
  margin: 0 auto;
}

.info-hero {
  position: relative;
  min-height: 728px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.info-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.info-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  z-index: 1;
}

.info-hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
}

.info-hero-copy h1,
.hospital-title h1 {
  margin: 0;
  font-family: "ABCArizonaFlare", Georgia, serif;
  font-size: clamp(58px, 6.8vw, 126px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.info-hero-copy p,
.hospital-title p {
  margin: 52px 0 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}

.doctors-intro {
  padding: 146px 0 86px;
  text-align: center;
}

.doctors-test-page .doctors-hero {
  min-height: 0;
  height: clamp(500px, 31vw, 600px);
}

.doctors-test-page .doctors-hero img {
  object-position: center 70%;
}

.doctors-test-page .doctors-hero .info-hero-copy h1 {
  font-size: clamp(38px, 3.15vw, 60px);
}

.doctors-test-page .doctors-hero .info-hero-copy p {
  margin-top: 24px;
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 600;
}

.info-section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.info-lead {
  margin: 42px auto 0;
  max-width: 940px;
  font-size: 15px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.doctors-test-page .doctor-list-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0 0 118px;
}

.doctors-test-page .doctor-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(1500px, calc(100vw - 120px));
  margin: 0 auto;
  column-gap: 86px;
  row-gap: 62px;
  align-items: start;
  justify-content: center;
}

.doctors-test-page .doctor-card {
  position: relative;
  display: block;
  grid-column: span 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
  cursor: default;
}

.doctors-test-page .doctor-card:nth-child(4) {
  grid-column: 2 / span 2;
  margin-top: 0;
}

.doctors-test-page .doctor-card:nth-child(5) {
  grid-column: 4 / span 2;
  margin-top: 0;
}

.doctors-test-page .doctor-photo {
  position: relative;
  height: 430px;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.doctors-test-page .doctor-photo img {
  width: 100%;
  height: 100%;
  display: block;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: none;
}

.doctors-test-page .doctor-card h3 {
  margin: 22px 0 0;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.doctors-test-page .doctor-card h3 span {
  margin-left: 9px;
  font-size: 16px;
  font-weight: 600;
}

.doctors-test-page .doctor-card p {
  margin: 18px 0 20px;
  min-height: 54px;
  font-size: 13px;
  line-height: 1.72;
  font-weight: 600;
}

.doctors-test-page .doctor-card ul {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid #111;
  list-style: none;
  font-size: 11px;
  line-height: 1.95;
  font-weight: 500;
}

.doctors-test-page .doctor-career-text {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid #111;
  font-size: 11px;
  line-height: 1.95;
  font-weight: 500;
  white-space: normal;
  word-break: keep-all;
}

.doctors-academic {
  padding: 156px 0 154px;
  background: #f4f4f4;
  text-align: center;
}

.doctors-academic .info-container {
  width: min(1680px, calc(100vw - 120px));
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 32px;
  margin-top: 112px;
}

.academic-card img {
  width: 100%;
  aspect-ratio: 1340 / 994;
  object-fit: cover;
  display: block;
}

.academic-card p {
  margin: 32px 0 0;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
}

.academic-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  height: 54px;
  margin-top: 110px;
  border: 1px solid #333;
  color: #111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

/* QA typography pass: keep lower content close to the comps without touching hero sections. */
.info-page .info-section-title {
  font-weight: 700;
}

.doctors-test-page .doctor-card h3 {
  font-weight: 800;
}

.doctors-test-page .doctor-card h3 span,
.doctors-test-page .doctor-card p {
  font-weight: 500;
}

.doctors-test-page .doctor-card ul {
  font-weight: 400;
}

.hospital-story-copy h2,
.hospital-feature-copy h2 {
  font-weight: 700;
}

.hospital-story-copy p,
.hospital-feature-copy p {
  font-weight: 400;
}

body.doctors-test-page .site-footer.site-footer-detail,
body.doctors-test-page .site-footer-detail {
  min-height: 332px !important;
  padding: 46px 20px 40px !important;
  background: #000 !important;
}

body.doctors-test-page .site-footer.site-footer-detail .footer-detail-logo,
body.doctors-test-page .site-footer-detail .footer-detail-logo {
  width: clamp(150px, 10.4vw, 200px) !important;
  margin-bottom: 20px !important;
}

body.doctors-test-page .site-footer.site-footer-detail .footer-detail-meta,
body.doctors-test-page .site-footer-detail .footer-detail-meta {
  gap: 5px !important;
  font-size: clamp(10px, .62vw, 12px) !important;
  line-height: 1.5 !important;
}

body.doctors-test-page .site-footer.site-footer-detail .footer-detail-links,
body.doctors-test-page .site-footer-detail .footer-detail-links {
  margin-top: 22px !important;
  gap: clamp(24px, 2vw, 36px) !important;
  font-size: clamp(10px, .62vw, 12px) !important;
}

.hospital-title {
  padding: 194px 0 72px;
  text-align: center;
}

.hospital-title h1 {
  color: #111;
}

.hospital-title p {
  margin-top: 28px;
  color: #111;
  font-size: 18px;
}

.hospital-video {
  width: min(100% - 700px, 1224px);
  height: 690px;
  margin: 0 auto 166px;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.hospital-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hospital-video-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-size: 40px;
  font-weight: 300;
}

.hospital-story {
  display: grid;
  grid-template-columns: minmax(0, 900px) 420px;
  width: min(1440px, calc(100vw - 160px));
  margin-top: 120px;
  gap: 106px;
  align-items: center;
  padding-bottom: 146px;
}

.hospital-story-slider,
.hospital-wide img,
.hospital-feature img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hospital-story-slider {
  min-height: 704px;
  overflow: hidden;
}

.hospital-story-track {
  display: flex;
  height: 704px;
  transition: transform .7s ease;
  will-change: transform;
}

.hospital-story-slide {
  flex: 0 0 100%;
  height: 100%;
}

.hospital-story-slide > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hospital-brand-panel {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .9), transparent 38%),
    linear-gradient(135deg, #e9e9e9 0%, #f9f9f9 48%, #dedede 100%);
}

.hospital-brand-panel img {
  width: min(46%, 410px);
  display: block;
  opacity: .86;
}

.hospital-story-copy h2,
.hospital-feature-copy h2 {
  margin: 0 0 34px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.45;
}

.hospital-story-copy p,
.hospital-feature-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #333;
  font-weight: 500;
}

.hospital-count {
  margin-top: 120px;
  font-size: 14px;
  letter-spacing: .06em;
}

.hospital-wide {
  margin: 0 calc(50% - 50vw);
}

.hospital-wide img {
  width: 100vw;
  height: 760px;
}

.hospital-feature {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  width: 100%;
  gap: 110px;
  align-items: center;
  padding: 178px 0 96px;
}

.hospital-gallery {
  display: block;
  padding-bottom: 132px;
  width: 100%;
  overflow: hidden;
}

.hospital-gallery-track {
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  overscroll-behavior-inline: contain;
}

.hospital-gallery-track::-webkit-scrollbar {
  display: none;
}

.hospital-gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hospital-gallery-thumb {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: min(520px, calc(100vw - 80px));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: .78;
  transition: opacity .2s ease, filter .2s ease;
}

.hospital-gallery-thumb:focus,
.hospital-gallery-thumb:focus-visible {
  outline: none;
  box-shadow: none;
}

.hospital-gallery-thumb.is-active,
.hospital-gallery-thumb:hover {
  opacity: 1;
}

.hospital-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1390 / 1097;
  display: block;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hospital-feature-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hospital-dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 38px;
}

.hospital-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d1d1;
}

.hospital-dots span.is-active {
  background: var(--lounge-bg, #f4f2ed);
}

.floor-section {
  padding: 128px 0;
  background: #f7f7f7;
}

.floor-section:nth-of-type(even) {
  background: #fff;
}

.floor-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 54px;
}

.floor-heading h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
}

.floor-heading p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.floor-grid img {
  width: 100%;
  aspect-ratio: 2004 / 1282;
  object-fit: cover;
  display: block;
}

@media (max-width: 1200px) {
  .info-container {
    width: min(100% - 48px, 960px);
  }

  .doctors-test-page .doctor-grid,
  .academic-grid,
  .floor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctors-test-page .doctor-grid {
    width: min(100% - 48px, 960px);
    column-gap: 40px;
    row-gap: 56px;
  }

  .doctors-academic .info-container {
    width: min(100% - 48px, 960px);
  }

  .doctors-test-page .doctor-card,
  .doctors-test-page .doctor-card:nth-child(4),
  .doctors-test-page .doctor-card:nth-child(5) {
    grid-column: auto;
    margin: 0;
  }

  .hospital-video {
    width: min(100% - 48px, 960px);
  }

  .hospital-story,
  .hospital-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html.hospital-test-root,
  html.hospital-test-root body.hospital-test-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  html,
  body.info-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .info-page main {
    padding-top: 64px;
  }

  .doctors-test-page main {
    padding-top: 0;
  }

  .doctors-test-page .info-lead br {
    display: none;
  }

  .hospital-test-page main {
    padding-top: 0;
  }

  .info-container {
    width: min(100% - 28px, 520px);
  }

  .info-hero {
    min-height: 430px;
  }

  .info-hero-copy h1,
  .hospital-title h1 {
    font-size: 48px;
  }

  .doctors-hero .info-hero-copy h1 {
    max-width: 320px;
    font-size: 34px;
    line-height: .95;
  }

  .doctors-test-page .doctors-hero {
    height: 310px;
  }

  .doctors-test-page .doctors-hero img {
    object-position: center center;
  }

  .hospital-title h1 {
    font-size: 42px;
  }

  .info-hero-copy p,
  .hospital-title p {
    margin-top: 26px;
    font-size: 17px;
  }

  .info-hero-copy,
  .info-lead,
  .hospital-title p,
  .hospital-story-copy,
  .hospital-feature-copy,
  .doctors-test-page .doctor-card p {
    max-width: min(285px, calc(100vw - 64px));
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .info-lead,
  .hospital-story-copy p,
  .hospital-feature-copy p {
    font-size: 14.5px;
    line-height: 1.9;
  }

  .hospital-title p {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }

  .doctors-intro,
  .hospital-title {
    padding: 74px 0 48px;
  }

  .info-section-title {
    font-size: 28px;
  }

  .info-lead {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.8;
  }

  .doctors-test-page .doctor-grid,
  .academic-grid,
  .hospital-gallery,
  .floor-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .doctors-test-page .doctor-grid {
    width: min(100% - 28px, 520px);
    row-gap: 44px;
  }

  .doctors-academic .info-container {
    width: min(100% - 28px, 520px);
  }

  .doctors-test-page .doctor-photo {
    height: 360px;
  }

  .doctors-test-page .doctor-card h3 {
    font-size: 28px;
  }

  .doctors-academic,
  .floor-section {
    padding: 80px 0;
  }

  .academic-grid {
    margin-top: 54px;
  }

  .academic-card p {
    font-size: 16px;
  }

  .hospital-video {
    width: min(100% - 28px, 520px);
    height: 280px;
    margin-bottom: 70px;
  }

  .hospital-video-copy {
    font-size: 26px;
  }

  .hospital-story,
  .hospital-feature {
    width: min(100% - 28px, 520px);
    margin-top: 56px;
    gap: 38px;
    padding-bottom: 70px;
  }

  body.hospital-test-page .hospital-story-copy,
  body.hospital-test-page .hospital-feature-copy {
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  body.hospital-test-page .hospital-story-copy h2,
  body.hospital-test-page .hospital-feature-copy h2 {
    font-size: 30px !important;
    line-height: 1.35 !important;
  }

  body.hospital-test-page .hospital-story-copy p,
  body.hospital-test-page .hospital-feature-copy p {
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  .hospital-story-slider {
    min-height: 420px;
  }

  .hospital-story-track {
    height: 420px;
  }

  .hospital-brand-panel img {
    width: 56%;
  }

  .info-page .floating-cta {
    width: calc(100vw - 48px) !important;
    min-width: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.doctors-test-page .site-footer.site-footer-detail,
  body.doctors-test-page .site-footer-detail {
    min-height: 292px !important;
    padding: 38px 18px 34px !important;
  }

  body.doctors-test-page .site-footer.site-footer-detail .footer-detail-logo,
  body.doctors-test-page .site-footer-detail .footer-detail-logo {
    width: 142px !important;
    margin-bottom: 18px !important;
  }

  body.doctors-test-page .site-footer.site-footer-detail .footer-detail-meta,
  body.doctors-test-page .site-footer-detail .footer-detail-meta,
  body.doctors-test-page .site-footer.site-footer-detail .footer-detail-links,
  body.doctors-test-page .site-footer-detail .footer-detail-links {
    font-size: 10px !important;
  }

  .hospital-wide img {
    height: 360px;
  }

  .floor-heading {
    display: block;
  }

  .floor-heading h2 {
    margin-bottom: 18px;
    font-size: 34px;
  }
}

/* Final typography locks for non-hero static sections. */
.info-page .hospital-story-copy h2,
.info-page .hospital-feature-copy h2 {
  font-weight: 700 !important;
}

.info-page .hospital-story-copy p,
.info-page .hospital-feature-copy p {
  font-weight: 400 !important;
}

body.doctors-test-page .site-footer.site-footer-detail,
body.doctors-test-page .site-footer-detail,
body.hospital-test-page .site-footer.site-footer-detail,
body.hospital-test-page .site-footer-detail {
  background: #000 !important;
  min-height: 0 !important;
  padding: 34px 20px 28px !important;
}

body.doctors-test-page .site-footer.site-footer-detail .footer-detail-logo,
body.doctors-test-page .site-footer-detail .footer-detail-logo,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-logo,
body.hospital-test-page .site-footer-detail .footer-detail-logo {
  width: clamp(136px, 9.2vw, 176px) !important;
  margin-bottom: 17px !important;
}

body.doctors-test-page .site-footer.site-footer-detail .footer-detail-meta,
body.doctors-test-page .site-footer-detail .footer-detail-meta,
body.doctors-test-page .site-footer.site-footer-detail .footer-detail-links,
body.doctors-test-page .site-footer-detail .footer-detail-links,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-meta,
body.hospital-test-page .site-footer-detail .footer-detail-meta,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-links,
body.hospital-test-page .site-footer-detail .footer-detail-links {
  font-size: clamp(9px, .56vw, 11px) !important;
  line-height: 1.48 !important;
}

body.doctors-test-page .site-footer.site-footer-detail .footer-detail-meta strong,
body.doctors-test-page .site-footer-detail .footer-detail-meta strong,
body.doctors-test-page .site-footer.site-footer-detail .footer-detail-links,
body.doctors-test-page .site-footer-detail .footer-detail-links,
body.doctors-test-page .site-footer.site-footer-detail .footer-detail-links a,
body.doctors-test-page .site-footer.site-footer-detail .footer-detail-links button,
body.doctors-test-page .site-footer-detail .footer-detail-links a,
body.doctors-test-page .site-footer-detail .footer-detail-links button,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-meta strong,
body.hospital-test-page .site-footer-detail .footer-detail-meta strong,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-links,
body.hospital-test-page .site-footer-detail .footer-detail-links,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-links a,
body.hospital-test-page .site-footer.site-footer-detail .footer-detail-links button,
body.hospital-test-page .site-footer-detail .footer-detail-links a,
body.hospital-test-page .site-footer-detail .footer-detail-links button {
  color: #fff !important;
  font-weight: 500 !important;
}

@media (min-width: 1201px) {
  body.hospital-test-page .hospital-story {
    width: min(1500px, calc(100vw - 220px)) !important;
    grid-template-columns: minmax(0, 760px) minmax(560px, 1fr) !important;
    gap: clamp(78px, 5.6vw, 112px) !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 118px !important;
    padding-bottom: 142px !important;
  }

  body.hospital-test-page .hospital-story-slider {
    width: 100% !important;
    max-width: 760px !important;
    min-height: 660px !important;
    justify-self: end !important;
  }

  body.hospital-test-page .hospital-story-track {
    height: 660px !important;
  }

  body.hospital-test-page .hospital-story-copy {
    width: min(100%, 660px) !important;
    max-width: none !important;
    justify-self: start !important;
  }

  body.hospital-test-page .hospital-story-copy h2 {
    margin-bottom: 40px !important;
    white-space: nowrap !important;
    font-size: clamp(29px, 1.82vw, 35px) !important;
    line-height: 1.32 !important;
  }

  body.hospital-test-page .hospital-story-copy p {
    max-width: 640px !important;
    font-size: clamp(16px, .98vw, 18px) !important;
    line-height: 1.86 !important;
  }

  body.hospital-test-page .hospital-count {
    margin-top: 112px !important;
  }

  body.hospital-test-page .hospital-feature-gallery {
    width: min(1540px, calc(100vw - 220px)) !important;
  }

  body.hospital-test-page .hospital-feature {
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr) !important;
    gap: clamp(78px, 5.6vw, 112px) !important;
    align-items: start !important;
    padding: 170px 0 94px !important;
  }

  body.hospital-test-page .hospital-feature-copy {
    width: min(100%, 520px) !important;
    max-width: none !important;
    padding-top: 8px !important;
  }

  body.hospital-test-page .hospital-feature-copy h2 {
    white-space: nowrap !important;
    font-size: clamp(29px, 1.82vw, 35px) !important;
    line-height: 1.32 !important;
  }

body.hospital-test-page .hospital-feature-copy p {
    max-width: 500px !important;
    font-size: clamp(16px, .98vw, 18px) !important;
    line-height: 1.86 !important;
  }
}

body.hospital-test-page .hospital-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
}

body.hospital-test-page .hospital-count-line {
  position: relative !important;
  display: block !important;
  width: 42px !important;
  height: 1px !important;
  overflow: hidden !important;
  background: rgba(26, 27, 28, .24) !important;
  opacity: 1 !important;
}

body.hospital-test-page .hospital-count-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--hospital-story-progress);
  background: #1a1b1c;
  transition: width .42s ease;
}

body.hospital-test-page .hospital-story-copy p br + br {
  display: block;
  content: "";
  margin-top: 28px;
}

/* Hospital scroll story and image-scan sections. */
body.hospital-test-page .hospital-story {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 300svh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  --hospital-story-progress: 0%;
}

body.hospital-test-page .ulthera-test-main {
  overflow: visible !important;
}

body.hospital-test-page .hospital-story-pin {
  position: sticky;
  top: 0;
  width: min(1500px, calc(100vw - 220px));
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(84px, 8vh, 118px) 0;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(520px, 1fr);
  gap: clamp(78px, 5.6vw, 112px);
  align-items: center;
  box-sizing: border-box;
}

body.hospital-test-page .hospital-story-slider {
  height: min(660px, calc(100svh - 170px)) !important;
  min-height: 0 !important;
}

body.hospital-test-page .hospital-story-track {
  height: 100% !important;
}

body.hospital-test-page .hospital-story::after {
  content: none;
}

body.hospital-test-page [data-hospital-scan] {
  --hospital-scan-y: -7%;
  overflow: hidden !important;
}

body.hospital-test-page [data-hospital-scan] > img {
  height: 116% !important;
  transform: translate3d(0, var(--hospital-scan-y), 0);
  will-change: transform;
}

body.hospital-test-page .hospital-feature-preview {
  overflow: hidden;
  aspect-ratio: 1390 / 1097;
}

body.hospital-test-page .hospital-feature-preview > img {
  min-height: 116%;
}

body.hospital-test-page .hospital-wide {
  --hospital-window-y: 0%;
  position: relative;
  width: 100%;
  height: clamp(460px, 38vw, 700px);
  margin: 0;
  overflow: hidden;
  background: #111;
}

body.hospital-test-page .hospital-wide > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, var(--hospital-window-y), 0);
  will-change: transform;
}

@media (max-width: 1200px) {
  body.hospital-test-page .hospital-story-copy h2,
  body.hospital-test-page .hospital-feature-copy h2 {
    white-space: normal !important;
  }
}

@media (max-width: 768px) {
  body.doctors-test-page .doctor-list-section {
    padding: 0 0 78px !important;
  }

  body.doctors-test-page .doctor-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: min(100% - 40px, 390px) !important;
    gap: 52px !important;
    margin: 0 auto !important;
  }

  body.doctors-test-page .doctor-card,
  body.doctors-test-page .doctor-card:nth-child(4),
  body.doctors-test-page .doctor-card:nth-child(5) {
    width: 100% !important;
    max-width: 360px !important;
    grid-column: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  body.doctors-test-page .doctor-photo {
    width: min(82vw, 320px) !important;
    height: auto !important;
    aspect-ratio: 320 / 390 !important;
    margin: 0 auto 18px !important;
  }

  body.doctors-test-page .doctor-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
  }

  body.doctors-test-page .doctor-card h3 {
    margin-top: 0 !important;
    text-align: center !important;
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  body.doctors-test-page .doctor-card h3 span {
    font-size: 18px !important;
  }

  body.doctors-test-page .doctor-card p {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 0 !important;
    margin: 18px auto 22px !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  body.doctors-test-page .doctor-card ul {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding-top: 22px !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
    word-break: keep-all !important;
  }

  body.doctors-test-page .doctor-career-text {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding-top: 22px !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
    word-break: keep-all !important;
  }

  body.doctors-test-page .doctor-card li {
    margin: 0 0 5px !important;
  }

  body.doctors-test-page .doctors-hero {
    height: 360px !important;
  }

  body.doctors-test-page .doctors-hero img {
    object-fit: cover !important;
    object-position: center top !important;
  }

  body.hospital-test-page .hospital-story,
  body.hospital-test-page .hospital-feature {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100vw - 40px) !important;
    max-width: 430px !important;
    margin: 60px auto 0 !important;
    gap: 28px !important;
    padding-bottom: 64px !important;
  }

  body.hospital-test-page .hospital-story {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 300svh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.hospital-test-page .hospital-story-pin {
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    width: calc(100vw - 40px) !important;
    max-width: 430px !important;
    height: 100svh !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 68px 0 32px !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.hospital-test-page .hospital-story-slider {
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  body.hospital-test-page .hospital-story-copy {
    order: 2 !important;
    flex: 0 0 auto !important;
  }

  body.hospital-test-page .hospital-story-copy,
  body.hospital-test-page .hospital-feature-copy {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    text-align: left !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  body.hospital-test-page .hospital-story-copy h2,
  body.hospital-test-page .hospital-feature-copy h2 {
    max-width: none !important;
    font-size: 24px !important;
    line-height: 1.34 !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  body.hospital-test-page .hospital-story-copy p,
  body.hospital-test-page .hospital-feature-copy p {
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    word-break: keep-all !important;
  }

  body.hospital-test-page .hospital-story-slider {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1390 / 1097 !important;
    overflow: hidden !important;
  }

  body.hospital-test-page .hospital-story-track {
    width: 100% !important;
    height: 100% !important;
  }

  body.hospital-test-page .hospital-story-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  body.hospital-test-page .hospital-brand-panel img {
    width: 62% !important;
  }

  body.hospital-test-page .hospital-count {
    margin-top: 24px !important;
  }

  body.hospital-test-page .hospital-wide {
    width: 100% !important;
    height: clamp(320px, 72vw, 520px) !important;
    margin: 32px auto 54px !important;
  }

  body.hospital-test-page .hospital-wide img {
    width: 100% !important;
    height: 220% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  body.hospital-test-page .hospital-feature-gallery {
    width: 100% !important;
    max-width: none !important;
    padding: 0 0 72px !important;
  }

  body.hospital-test-page .hospital-feature-preview {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
  }

  body.hospital-test-page .hospital-feature-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.hospital-test-page .hospital-gallery {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-top: 28px !important;
  }

  body.hospital-test-page .hospital-gallery-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    cursor: grab !important;
  }

  body.hospital-test-page .hospital-gallery-track::-webkit-scrollbar {
    display: none !important;
  }

  body.hospital-test-page .hospital-gallery-thumb {
    flex: 0 0 42% !important;
    width: 42% !important;
    min-width: 0 !important;
    scroll-snap-align: center !important;
  }

  body.hospital-test-page .hospital-gallery-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
  }

  body.hospital-test-page .hospital-dots {
    margin-top: 24px !important;
  }
}

/* Mobile scan images remain oversized so scroll movement never exposes an edge. */
@media (max-width: 768px) {
  body.hospital-test-page [data-hospital-scan] > img {
    width: 100% !important;
    height: 116% !important;
    min-height: 116% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    transform: translate3d(0, var(--hospital-scan-y), 0) !important;
  }
}

/* Final mobile doctor alignment lock. */
@media (max-width: 768px) {
  body.doctors-test-page {
    overflow-x: hidden !important;
  }

  body.doctors-test-page .doctor-list-section {
    display: flex !important;
    justify-content: center !important;
  }

  body.doctors-test-page .doctor-grid {
    width: min(calc(100vw - 40px), 390px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    align-items: center !important;
  }

  body.doctors-test-page .doctor-card,
  body.doctors-test-page .doctor-card:nth-child(4),
  body.doctors-test-page .doctor-card:nth-child(5) {
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    text-align: center !important;
  }

  body.doctors-test-page .doctor-photo,
  body.doctors-test-page .doctor-card h3,
  body.doctors-test-page .doctor-card p,
  body.doctors-test-page .doctor-card ul {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.doctors-test-page .doctor-card h3,
  body.doctors-test-page .doctor-card p {
    text-align: center !important;
  }

  body.doctors-test-page .doctor-card ul {
    width: min(100%, 340px) !important;
    text-align: left !important;
  }

  body.doctors-test-page .doctor-career-text {
    width: min(100%, 340px) !important;
    text-align: left !important;
  }
}

@media (max-width: 767.98px) {
  body.hospital-test-page .hospital-story::after {
    display: none !important;
  }
}

/* Doctors: preserve the mobile type scale while enlarging desktop profile copy. */
@media (min-width: 1201px) {
  body.doctors-test-page .doctor-card p {
    min-height: 52px;
    margin: 20px 0 24px;
    font-size: 16px;
    line-height: 1.62;
    word-break: keep-all;
  }

  body.doctors-test-page .doctor-card ul {
    padding-top: 24px;
    font-size: 13px;
    line-height: 1.9;
  }

  body.doctors-test-page .doctor-career-text {
    padding-top: 24px;
    font-size: 13px;
    line-height: 1.9;
  }

  body.doctors-test-page .doctor-card li {
    margin-bottom: 3px;
  }
}

/* Hospital story follows the SkinCeuticals scroll-story geometry on PC. */
@media (min-width: 901px) {
  body.hospital-test-page .hospital-story-pin {
    width: min(1360px, calc(100vw - 150px)) !important;
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 74px 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr) !important;
    gap: clamp(72px, 6vw, 118px) !important;
    align-items: center !important;
  }

  body.hospital-test-page .hospital-story-slider {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1390 / 1097 !important;
  }

  body.hospital-test-page .hospital-story-copy {
    position: relative !important;
    width: auto !important;
    max-width: none !important;
    min-height: clamp(430px, 48vh, 560px) !important;
    padding: 0 !important;
    align-self: center !important;
  }

  body.hospital-test-page .hospital-story-copy h2 {
    margin: 0 0 36px !important;
    font-size: clamp(24px, 1.8vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.42 !important;
    white-space: normal !important;
  }

  body.hospital-test-page .hospital-story-copy p {
    width: auto !important;
    max-width: none !important;
    margin: 0 0 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;
  }

  body.hospital-test-page .hospital-count {
    position: absolute !important;
    left: 0 !important;
    bottom: clamp(18px, 2.1vw, 34px) !important;
    margin: 0 !important;
    gap: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }
}
