/* Readable credential previews: show the complete supplied scan, never crop or shade it. */
.credential-paper {
  background: #fff !important;
}
.credential-paper img,
.premium-page img[alt*="credential"],
.premium-page img[alt*="certificate"] {
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  filter: none !important;
}
.credential-paper img,
.credential-card:hover img {
  transform: none !important;
}
.credential-shade {
  display: none !important;
}
.document-modal {
  max-width: 100vw;
  max-height: 100vh;
  overflow: auto;
}
.document-modal img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 2rem) !important;
  max-height: calc(100vh - 10rem) !important;
  object-fit: contain !important;
  margin-inline: auto;
}
@media (max-width: 600px) {
  .credentials-grid {
    grid-template-columns: 1fr !important;
  }
  .credential-paper {
    height: 210px !important;
  }
}
@media (max-width: 360px) {
  .credential-paper {
    height: 185px !important;
  }
}

/* Keep the Premium Advisory route inside the viewport and allow its content to shrink. */
.premium-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.premium-page .section-width {
  box-sizing: border-box;
  width: min(1400px, 100%);
  max-width: 100%;
}
.premium-page .engagement-dossier,
.premium-page .recruitment-dossier,
.premium-page .recruitment-dossier > *,
.premium-page .premium-footer,
.premium-page .premium-footer-brand,
.premium-page .premium-footer-brand > * {
  min-width: 0;
  max-width: 100%;
}
.premium-page .recruitment-dossier {
  overflow-x: clip;
}
.premium-page .recruitment-dossier p,
.premium-page .recruitment-dossier li,
.premium-page .recruitment-dossier h2,
.premium-page .recruitment-dossier h3,
.premium-page .premium-footer-brand > div {
  overflow-wrap: anywhere;
}
.premium-page .premium-footer-brand > div {
  flex: 1 1 13rem;
}
@media (max-width: 600px) {
  .premium-page .premium-footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .premium-page .premium-footer-brand > div {
    width: 100%;
    flex-basis: auto;
  }
  .premium-page .premium-footer-brand img {
    width: min(150px, 100%);
    max-width: 100%;
    height: auto;
  }
}

/* Keep the profile portrait clear: retain text contrast on the left, but remove dark veils over faces. */
.hero-section {
  background-image: linear-gradient(90deg, rgba(5, 42, 35, .96) 0%, rgba(5, 42, 35, .70) 38%, rgba(5, 42, 35, .10) 72%, rgba(5, 42, 35, 0) 100%), url("/manus-storage/fffea95a-b903-4330-98c1-1dd65221252f_87877e65.jpg") !important;
  background-position: 62% 16% !important;
  background-size: cover !important;
}
.hero-lattice {
  opacity: 0 !important;
}
.leader-image {
  background-image: linear-gradient(0deg, rgba(8, 47, 41, .20) 0%, rgba(8, 47, 41, 0) 55%), url("/manus-storage/fffea95a-b903-4330-98c1-1dd65221252f_87877e65.jpg") !important;
}
.team-card-image {
  background-image: linear-gradient(0deg, rgba(8, 47, 41, .34) 0%, rgba(8, 47, 41, 0) 62%), url("/manus-storage/fffea95a-b903-4330-98c1-1dd65221252f_87877e65.jpg") !important;
}
.premium-hero {
  background-image: linear-gradient(90deg, rgba(8, 47, 41, .97) 0%, rgba(8, 47, 41, .78) 40%, rgba(8, 47, 41, .12) 72%, rgba(8, 47, 41, 0) 100%), url("/manus-storage/medicable-premium-portrait-optimized_eaa8d263.png") !important;
  background-position: 62% 16% !important;
  background-size: cover !important;
}
.premium-hero-pattern {
  display: none !important;
}
.premium-page .engagement-portrait.room-01 {
  background-image: linear-gradient(0deg, rgba(8, 47, 41, .25) 0%, rgba(8, 47, 41, 0) 60%), url("/manus-storage/medicable-premium-portrait-optimized_eaa8d263.png") !important;
}
.premium-page .engagement-portrait.room-02 {
  background-image: linear-gradient(0deg, rgba(8, 47, 41, .25) 0%, rgba(8, 47, 41, 0) 60%), url("/manus-storage/medicable-family-legacy_fbbdb01e.jpg") !important;
}
.premium-page .engagement-portrait.room-03,
.premium-page .engagement-portrait.room-04 {
  background-image: linear-gradient(0deg, rgba(8, 47, 41, .25) 0%, rgba(8, 47, 41, 0) 60%), url("/manus-storage/medicable-transformation-portrait-refined_002fd3ce.png") !important;
}

@media (max-width: 600px) {
  /* Shift the homepage portrait away from the mobile headline. */
  .hero-section {
    background-position: 0% 16%, 0% 16% !important;
  }

  /* Put the Premium portrait above its copy so the face stays unobstructed. */
  .premium-hero {
    display: block;
    height: auto;
    min-height: 0;
    background-color: #082f29 !important;
    background-image: linear-gradient(180deg, rgba(8, 47, 41, 0) 0%, rgba(8, 47, 41, 0) 62%, rgba(8, 47, 41, .25) 82%, #082f29 100%), url("/manus-storage/medicable-premium-portrait-optimized_eaa8d263.png") !important;
    background-size: 100% auto, 100% auto !important;
    background-position: center top, center top !important;
    background-repeat: no-repeat, no-repeat !important;
  }
  .premium-hero-copy {
    width: 100%;
    padding: max(18rem, 90vw) 1.25rem 3rem;
  }

  /* Allow the Premium footer wordmark and supporting text to wrap on small screens. */
  .premium-page .premium-footer-brand > div {
    display: block;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }
  .premium-page .premium-footer-brand > div * {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
