:is(.ps004-case, .ps004-about) {
  --case-navy: #0c2340;
  --case-blue: #1168cf;
  --case-line: #dbe6f0;
  --case-tint: #f4f8fc;
}

.ps004-case .case-back {
  font-size: 15px;
  font-weight: 650;
}

:is(.ps004-case, .ps004-about) .case-overview {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-width: 0;
  margin: 13px 0 clamp(20px, 3vw, 32px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--case-navy);
  color: #fff;
}

:is(.ps004-case, .ps004-about) .case-overview:not(:has(figure)) {
  grid-template-columns: minmax(0, 1fr);
}

:is(.ps004-case, .ps004-about) .case-overview-copy {
  align-self: center;
  padding: clamp(24px, 4.2vw, 58px);
  min-width: 0;
}

:is(.ps004-case, .ps004-about) .case-overview-copy time {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .06em;
  color: #9ec9fc;
}

:is(.ps004-case, .ps004-about) .case-overview h1 {
  margin: 12px 0;
  color: inherit;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  text-wrap: balance;
}

:is(.ps004-case, .ps004-about) .case-overview p {
  max-width: 38em;
  margin: 0;
  color: #dceaf9;
  font-size: 17px;
  line-height: 1.7;
}

:is(.ps004-case, .ps004-about) .case-overview p:empty {
  display: none;
}

:is(.ps004-case, .ps004-about) .case-overview-photo {
  position: relative;
  min-height: clamp(225px, 27vw, 330px);
  margin: 0;
}

:is(.ps004-case, .ps004-about) .case-overview-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.ps004-case .case-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ps004-case .case-body .detail-document {
  display: grid;
  gap: 16px;
  border: 0;
}

.ps004-case .case-body .detail-chapter {
  min-width: 0;
  padding: clamp(19px, 2.2vw, 27px);
  border: 1px solid var(--case-line);
  border-radius: 12px;
}

.ps004-case .case-body h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.05vw, 25px);
  line-height: 1.35;
  text-wrap: pretty;
}

.ps004-case .case-body p,
.ps004-case .case-body li {
  font-size: 17px;
  line-height: 1.7;
}

.ps004-case .case-body .detail-chapter p + p {
  margin-top: 9px;
}

.ps004-case .case-body .detail-chapter p {
  margin-bottom: 0;
}

.ps004-case .case-body .detail-chapter:has(> ul) {
  background: var(--case-tint);
}

.ps004-case .case-body .detail-chapter > ul {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ps004-case .case-body .detail-chapter > ul > li {
  position: relative;
  padding: 10px 0 10px 23px;
  margin: 0;
  border-bottom: 1px solid var(--case-line);
}

.ps004-case .case-body .detail-chapter > ul > li::before {
  position: absolute;
  inset-inline-start: 1px;
  content: "✓";
  color: var(--case-blue);
  font-weight: 700;
}

.ps004-case .case-body .detail-chapter > ul > li:last-child {
  padding-bottom: 0;
  border: 0;
}

.ps004-case .case-body .detail-table-wrap {
  min-width: 0;
  margin-top: 12px;
  overflow-x: auto;
}

.ps004-case .case-body .detail-table :is(th, td) {
  padding: 9px 12px;
  font-size: 15px;
  line-height: 1.55;
}

.ps004-case .case-body .detail-table tbody tr:nth-child(even) :is(th, td) {
  background: #f7fafc;
}

.ps004-case .case-body .detail-faq {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
}

.ps004-case .case-body .detail-faq > div {
  min-width: 0;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--case-tint);
}

.ps004-case .case-body .detail-faq h3 {
  font-size: 17px;
  line-height: 1.45;
}

.ps004-case .case-body figcaption {
  font-size: 14px;
}

.ps004-case .case-body .detail-illustration {
  margin: 0 0 15px;
}

.ps004-case .case-body .detail-illustration img {
  margin: 0;
  aspect-ratio: 16 / 10;
}

.ps004-case .case-body .short-photo-section {
  display: grid;
  gap: 14px;
}

.ps004-case .case-body .short-photo-section .detail-illustration {
  margin: 0;
}

@media (min-width: 821px) {
  .ps004-case .case-body .short-photo-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
    gap: clamp(20px, 3.3vw, 38px);
    align-items: center;
  }

  .ps004-case .case-body .short-photo-section:nth-of-type(even) > div {
    grid-column: 2;
    grid-row: 1;
  }

  .ps004-case .case-body .short-photo-section:nth-of-type(even) .detail-illustration {
    grid-column: 1;
    grid-row: 1;
  }
}

:is(.ps004-case, .ps004-about) :is(.case-body, .about-body) .detail-next {
  margin: 0;
  padding: clamp(19px, 3vw, 32px);
  border: 0;
  border-radius: 12px;
  background: var(--case-navy);
}

:is(.ps004-case, .ps004-about) :is(.case-body, .about-body) .detail-next h2 {
  color: #fff;
}

:is(.ps004-case, .ps004-about) :is(.case-body, .about-body) .detail-next p {
  color: #dceaf9;
}

:is(.ps004-case, .ps004-about) :is(.case-body, .about-body) .detail-next .button {
  min-height: 46px;
  padding: 9px 20px;
  border: 1px solid #c4defc;
  border-radius: 7px;
  background: #e7f2ff;
  color: var(--case-navy);
  font-size: 16px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

:is(.ps004-case, .ps004-about) :is(.case-body, .about-body) .detail-next .button:hover {
  background: #fff;
}

:is(.ps004-case, .ps004-about):has(.detail-next) + .cta {
  display: none;
}

@media (min-width: 880px) {
  .ps004-case .case-body .detail-document {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ps004-case .case-body .detail-document > * {
    grid-column: 1 / -1;
  }

  .ps004-case .case-body .detail-document:has(> .detail-chapter:nth-child(3) + .detail-chapter > ul)
    > .detail-chapter:nth-child(-n+3) {
    grid-column: span 2;
  }

  .ps004-case .case-body .detail-document:has(> .detail-chapter:nth-child(3) + .detail-chapter > ul)
    > .detail-chapter:nth-child(-n+3) > h2 {
    font-size: clamp(20px, 1.8vw, 24px);
    text-wrap: balance;
  }

  .ps004-case .case-body .detail-document > .detail-chapter:has(> ul):has(+ .detail-chapter > .detail-table-wrap) {
    grid-column: span 2;
  }

  .ps004-case .case-body .detail-document > .detail-chapter:has(> ul) + .detail-chapter:has(> .detail-table-wrap) {
    grid-column: span 4;
  }

  .ps004-case .case-body .detail-chapter:nth-child(-n+3) .detail-split {
    grid-template-columns: minmax(0,1fr);
    gap: 15px;
  }
}

@media (max-width: 900px) {
  body:has(main:is(.ps004-case, .ps004-about)) .site-header .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .brand > span {
    min-width: 0;
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .brand :is(b, small) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle {
    position: relative;
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle span,
  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle::after {
    position: absolute;
    inset-block-start: calc(50% - 1px);
    inset-inline-start: calc(50% - 11px);
    width: 22px;
    height: 2px;
    margin: 0;
    background: var(--ink);
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle::after {
    content: "";
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle span:first-child {
    transform: translateY(-6px);
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle span:last-child {
    transform: translateY(6px);
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  body:has(main:is(.ps004-case, .ps004-about)) .site-header .menu-toggle[aria-expanded="true"]::after {
    display: none;
  }
}

@media (max-width: 370px) {
  body:has(main:is(.ps004-case, .ps004-about)) .fh-whatsapp-rail > span {
    white-space: nowrap;
    overflow-wrap: normal;
    letter-spacing: -.2px;
  }
}

@media (max-width: 760px) {
  :is(.ps004-case, .ps004-about) .case-overview,
  .ps004-case .case-body .detail-faq {
    grid-template-columns: minmax(0,1fr);
  }

  :is(.ps004-case, .ps004-about) .case-overview-copy {
    padding: 22px 18px;
  }

  :is(.ps004-case, .ps004-about) .case-overview-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ps004-case .case-overview {
    margin-bottom: 16px;
  }

  .ps004-case .case-overview-copy {
    padding: 14px 16px;
  }

  .ps004-case .case-overview h1 {
    margin: 6px 0 8px;
    font-size: clamp(24px, 6.5vw, 28px);
  }

  .ps004-case .case-overview p {
    line-height: 1.5;
  }

  .ps004-case .case-overview-photo {
    aspect-ratio: auto;
    height: clamp(104px, 30vw, 140px);
  }

  .ps004-case .case-overview-photo img {
    object-position: 66% 62%;
  }

  :is(.ps004-case, .ps004-about) .case-overview p,
  .ps004-case .case-body p,
  .ps004-case .case-body li {
    font-size: 16px;
  }

  :is(.ps004-case, .ps004-about) :is(.case-body, .about-body) .detail-next {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ps004-case .case-body .detail-next,
  .ps004-case + .cta .cta-inner {
    padding: 14px;
    border: 1px solid var(--case-line, #dbe6f0);
    border-radius: 14px;
    background: var(--case-tint, #f4f8fc);
  }

  .ps004-case + .cta {
    padding-bottom: 18px;
    background: transparent;
  }

  .ps004-case + .cta .cta-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ps004-case .case-body .detail-next h2,
  .ps004-case + .cta .cta-inner :is(h2, .eyebrow) {
    margin: 0 0 5px;
    color: #0c2340;
  }

  .ps004-case .case-body .detail-next p,
  .ps004-case + .cta .cta-inner p:not(.eyebrow) {
    margin: 0;
    color: #344b62;
    line-height: 1.55;
  }

  .ps004-case .case-body .detail-next .button,
  .ps004-case + .cta .cta-inner > .button {
    align-self: flex-start;
    justify-self: start;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #0d57a7;
    border-radius: 7px;
    background: #0d57a7;
    color: #fff;
    font-size: 16px;
  }

  .ps004-case .case-body .detail-next .button:hover,
  .ps004-case + .cta .cta-inner > .button:hover {
    background: #0c2340;
  }

  body:not(:has(main.ps004-case)) > .cta {
    margin-inline: 18px;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  body:not(:has(main.ps004-case)) > .cta > .cta-inner {
    width: auto;
    margin-inline: 14px;
  }

  .ps004-about .about-body .detail-next,
  main .rich-text .detail-next {
    border-radius: 14px;
  }

  body > footer:has(> .footer-grid) {
    margin-inline: 18px;
    padding: 19px 12px 13px;
    border-radius: 14px;
    background: #0c2340;
    color: #e4eef8;
    font-size: 14px;
  }

  body > footer:has(> .footer-grid) > .wrap {
    width: auto;
  }

  body > footer:has(> .footer-grid) .footer-grid {
    grid-template-columns: minmax(80px, .63fr) minmax(0, 1.87fr);
    gap: 12px 10px;
    padding-bottom: 3px;
  }

  body > footer:has(> .footer-grid) .footer-grid > div:first-child {
    padding-bottom: 8px;
    border-bottom: 1px solid #ffffff26;
  }

  body > footer:has(> .footer-grid) .business-contact-list > div {
    display: grid;
    grid-template-columns: 6em minmax(0, 1fr);
    gap: 5px;
  }

  body > footer:has(> .footer-grid) .business-contact-list dt {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  body > footer:has(> .footer-grid) .fh-footer-links > span {
    flex-basis: 100%;
    font-weight: 650;
    color: #fff;
  }

  body > footer:has(> .footer-grid) :is(.footer-bottom, .motion-toggle, .brand small) {
    font-size: 14px;
  }

  body > footer:has(> .footer-grid) .footer-bottom {
    gap: 6px 12px;
  }
}

@media (max-width: 351px) {
  body > footer:has(> .footer-grid) .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body > footer:has(> .footer-grid) .footer-grid > div > a:not(.brand) {
    display: inline-block;
    margin: 0 12px 0 0;
  }
}

.ps004-about .case-overview {
  margin-top: 0;
}

.ps004-about .case-overview-copy {
  padding: clamp(22px, 3.4vw, 45px);
}

.ps004-about .case-overview .eyebrow {
  color: #9ec9fc;
  font-size: 14px;
}

.ps004-about .about-metrics {
  width: 100%;
  margin: 20px 0 0;
  padding: 14px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #c4defc45;
  border-radius: 0;
}

.ps004-about .about-metrics .medical-stats-heading {
  display: none;
}

.ps004-about .about-metrics .medical-stats-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr) minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.ps004-about .about-metrics .medical-stat {
  min-width: 0;
  padding-inline: 0 3px;
}

.ps004-about .about-metrics .medical-stat + .medical-stat {
  border-inline-start: 1px solid #c4defc45;
  padding-inline-start: clamp(5px, 1.1vw, 14px);
}

.ps004-about .about-metrics .medical-stat-value {
  gap: 2px;
}

.ps004-about .about-metrics .medical-stat-value strong {
  color: #fff;
  font-size: clamp(21px, 2.5vw, 36px);
}

.ps004-about .about-metrics .medical-stats .medical-stat p,
.ps004-about .about-metrics .medical-stats .medical-stat-value sup {
  color: #dceaf9;
}

.ps004-about .about-metrics .medical-stats .medical-stat p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  text-wrap: balance;
}

.ps004-about .about-metrics .medical-stats .medical-stats-note {
  margin-top: 11px;
  color: #dceaf9;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.ps004-about .about-body {
  overflow-wrap: anywhere;
}

.ps004-about .about-document {
  display: grid;
  gap: clamp(24px, 3.5vw, 42px);
  border: 0;
}

.ps004-about .about-story {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
}

.ps004-about .about-story-copy,
.ps004-about .about-story-media {
  min-width: 0;
}

.ps004-about .about-story-media {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--case-tint);
}

.ps004-about .about-story-media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ps004-about .about-document h2 {
  margin: 0 0 13px;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.25;
  text-wrap: pretty;
}

.ps004-about .about-document p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.7;
}

.ps004-about .about-document p:last-child {
  margin-bottom: 0;
}

.ps004-about .about-points,
.ps004-about .about-process {
  padding: 0;
  padding-inline-start: 1.45em;
  margin: 12px 0 0;
}

.ps004-about .about-points li,
.ps004-about .about-process li {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.6;
}

.ps004-about .about-points li::marker,
.ps004-about .about-process li::marker {
  color: var(--case-blue);
  font-weight: 700;
}

.ps004-about .about-process {
  padding-inline-start: 2em;
  list-style-type: decimal-leading-zero;
}

.ps004-about .about-process li + li {
  padding-top: 8px;
  border-top: 1px solid var(--case-line);
}

.ps004-about .about-process strong,
.ps004-about .about-process span {
  display: block;
}

.ps004-about .about-process strong {
  color: var(--ink);
}

.ps004-about .about-document .detail-next h2 {
  font-size: clamp(22px, 2vw, 27px);
}

html body .ps004-about:has(> .fh-partners:not([hidden])) > article.inner-article {
  padding-bottom: clamp(12px, 1.6vw, 22px);
}

html body .ps004-about > .fh-partners {
  padding-block: clamp(24px, 3.1vw, 42px);
}

@media (min-width: 821px) {
  .ps004-about .about-story-photo-first {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .ps004-about .about-story-photo-first .about-story-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .ps004-about .about-story-photo-first .about-story-media {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 820px) {
  .ps004-about .case-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps004-about .case-overview-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ps004-about .about-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .ps004-about .case-overview-copy {
    padding: 21px 15px;
  }

  .ps004-about .about-document p {
    font-size: 16px;
  }

  .ps004-about .about-story-media img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 370px) {
  .ps004-about .about-metrics .medical-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps004-about .about-metrics .medical-stat,
  .ps004-about .about-metrics .medical-stat + .medical-stat {
    padding-inline: 1px;
    text-align: center;
  }

  .ps004-about .about-metrics .medical-stat-value {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  @supports (grid-template-columns: subgrid) {
    body > footer:has(> .footer-grid) .business-contact-list {
      display: grid;
      grid-template-columns: max-content minmax(0, 1fr);
      column-gap: 5px;
    }

    body > footer:has(> .footer-grid) .business-contact-list > div {
      grid-column: 1 / -1;
      grid-template-columns: subgrid;
    }
  }
}

/* Phone footer enquiry cards must leave room for their full button label. */
@media (max-width: 760px) {
  body > .cta > .cta-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  body > .cta > .cta-inner > .button {
    justify-self: start;
    max-width: 100%;
    padding-inline: 16px;
    text-wrap: balance;
  }
}
