/* Shared reading and print layout for the 23 individual patient guides. */
body.patient-guide-detail {
  background: #f3f6f8;
}

.patient-guide-detail .patient-guide {
  width: min(100%, 1168px);
  margin: 36px auto 64px;
  padding: 0 24px;
}

.patient-guide-detail .patient-guide .guide-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: center;
  gap: 40px;
  padding: 42px;
  border: 1px solid #dbe4e9;
  border-top: 4px solid var(--guide-green);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(17, 49, 72, 0.035);
}

.patient-guide-detail .guide-hero::before,
.patient-guide-detail .guide-hero::after {
  content: none;
}

.patient-guide-detail .guide-hero-copy {
  min-width: 0;
}

.patient-guide-detail .guide-kicker {
  margin-bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.075em;
  line-height: 1.5;
}

.patient-guide-detail .guide-hero h1 {
  max-width: 23ch;
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.patient-guide-detail .guide-intro {
  max-width: 62ch;
  margin-top: 22px;
  padding: 0;
  border: 0;
}

.patient-guide-detail .guide-intro p {
  color: #435b6b;
  font-size: 1.025rem;
  line-height: 1.75;
}

.patient-guide-detail .guide-intro p + p {
  margin-top: 12px;
}

.patient-guide-detail .guide-actions {
  margin-top: 23px;
}

.patient-guide-detail .guide-print-button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: none;
}

.patient-guide-detail .guide-figure {
  width: 100%;
  max-width: 330px;
  border: 1px solid #e0e7eb;
  border-radius: 10px;
  box-shadow: none;
}

.patient-guide-detail .guide-image-frame {
  height: 235px;
  min-height: 0;
  padding: 0;
  background: #f4f7f8;
}

.patient-guide-detail .guide-figure--object .guide-image-frame,
.patient-guide-detail .guide-figure--diagram .guide-image-frame {
  padding: 16px;
  background: #f8fafb;
}

.patient-guide-detail .guide-figure--portrait .guide-image-frame {
  height: 255px;
}

.patient-guide-detail .guide-figure--wide .guide-image-frame {
  height: 180px;
  padding: 14px;
}

.patient-guide-detail .guide-figure figcaption {
  padding: 14px 16px;
}

.patient-guide-detail .guide-figure-caption {
  color: #526775;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.patient-guide-detail .patient-guide > .guide-layout--no-toc {
  width: 100%;
  margin-top: 22px;
}

.patient-guide-detail .guide-article {
  padding: 8px 42px 30px;
  border: 1px solid #dbe4e9;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(17, 49, 72, 0.025);
}

.patient-guide-detail .patient-guide .guide-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  column-gap: 36px;
  max-width: none;
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid #e1e8ec;
  border-radius: 0;
  background: none;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.patient-guide-detail .guide-section h2 {
  margin: 0;
  color: var(--guide-navy-deep);
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.patient-guide-detail .guide-section-body {
  min-width: 0;
  max-width: 72ch;
}

.patient-guide-detail .guide-section-body p,
.patient-guide-detail .guide-section-body li {
  color: #304957;
  font-size: 1.025rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.patient-guide-detail .guide-section-body > :first-child {
  margin-top: 0;
}

.patient-guide-detail .guide-section-body > :last-child {
  margin-bottom: 0;
}

.patient-guide-detail .guide-section-body p + p,
.patient-guide-detail .guide-section-body ul + p,
.patient-guide-detail .guide-section-body p + ul {
  margin-top: 14px;
}

/* Stronger scope prevents the main site's custom bullets overriding guides. */
.patient-guide-detail .guide-section-body ul {
  display: block;
  margin: 0;
  padding: 0 0 0 1.2rem;
  list-style: disc outside;
  columns: auto;
}

.patient-guide-detail .guide-section-body ul li {
  display: list-item;
  margin: 0;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
}

.patient-guide-detail .guide-section-body ul li + li {
  margin-top: 9px;
}

.patient-guide-detail .guide-section-body li::before {
  content: none;
  display: none;
}

.patient-guide-detail .guide-section-body li::marker {
  color: #527969;
  font-size: 0.85em;
}

.patient-guide-detail .patient-guide .guide-section--reassurance,
.patient-guide-detail .patient-guide .guide-section--contact {
  margin: 24px 0;
  padding: 24px;
  grid-template-columns: 196px minmax(0, 1fr);
  border: 1px solid #d5e5dc;
  border-left: 4px solid var(--guide-green);
  border-radius: 10px;
  background: #f4f9f6;
}

.patient-guide-detail .patient-guide .guide-section--contact {
  border-color: #e9d9c6;
  border-left-color: #aa713b;
  background: #fcf8f3;
}

.patient-guide-detail .guide-section--contact h2 {
  color: #774c24;
}

.patient-guide-detail .guide-section--contact li::marker {
  color: #aa713b;
}

.patient-guide-detail .guide-footer-actions {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 0;
}

.patient-guide-detail .guide-footer-actions .guide-back-link {
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: none;
}

.patient-guide-detail .guide-review-note {
  margin-top: 24px;
  padding-top: 18px;
  font-size: 0.75rem;
}

.patient-guide-detail .guide-detail-image-credit {
  margin-top: 14px;
}

.patient-guide-detail .guide-detail-image-credit .guide-credit {
  margin: 0;
  color: #647784;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.guide-print-brand,
.guide-print-contact {
  display: none;
}

@media (max-width: 960px) {
  .patient-guide-detail .patient-guide .guide-hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    padding: 30px;
    gap: 28px;
  }

  .patient-guide-detail .guide-article {
    padding: 4px 30px 26px;
  }

  .patient-guide-detail .patient-guide .guide-section {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 26px;
  }

  .patient-guide-detail .patient-guide .guide-section--reassurance,
  .patient-guide-detail .patient-guide .guide-section--contact {
    grid-template-columns: 156px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .patient-guide-detail .patient-guide {
    margin: 24px auto 44px;
    padding: 0 16px;
  }

  .patient-guide-detail .patient-guide .guide-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
  }

  .patient-guide-detail .guide-hero h1 {
    max-width: 26ch;
    font-size: clamp(1.9rem, 5.7vw, 2.6rem);
  }

  .patient-guide-detail .guide-figure {
    width: 100%;
    max-width: 460px;
    justify-self: start;
  }

  .patient-guide-detail .guide-article {
    padding: 2px 26px 26px;
  }

  .patient-guide-detail .patient-guide .guide-section,
  .patient-guide-detail .patient-guide .guide-section--reassurance,
  .patient-guide-detail .patient-guide .guide-section--contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .patient-guide-detail .guide-section h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 440px) {
  .patient-guide-detail .patient-guide {
    padding: 0 12px;
  }

  .patient-guide-detail .patient-guide .guide-hero {
    padding: 25px 20px 20px;
  }

  .patient-guide-detail .guide-article {
    padding: 2px 20px 24px;
  }

  .patient-guide-detail .patient-guide .guide-section {
    padding: 26px 0;
  }

  .patient-guide-detail .patient-guide .guide-section--reassurance,
  .patient-guide-detail .patient-guide .guide-section--contact {
    padding: 20px 16px;
  }

  .patient-guide-detail .guide-section-body p,
  .patient-guide-detail .guide-section-body li {
    font-size: 1rem;
  }
}


@media (min-width: 761px) {
  .patient-guide-detail .guide-section-body ul.guide-example-list {
    columns: 2;
    column-gap: 28px;
  }

  .patient-guide-detail .guide-example-list li {
    break-inside: avoid;
  }
}

@media print {
  .patient-guide-detail .patient-guide {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .patient-guide-detail .guide-print-brand {
    display: block;
    margin: 0 0 12pt;
    color: #153953;
    font-size: 12pt;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .patient-guide-detail .patient-guide .guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2in;
    gap: 18pt;
    padding: 0 0 16pt;
    overflow: visible;
    border: 0;
    border-bottom: 1.5pt solid #153953;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    break-inside: avoid;
  }

  .patient-guide-detail .guide-kicker {
    margin-bottom: 8pt;
    font-size: 8pt;
  }

  .patient-guide-detail .guide-hero h1 {
    max-width: none;
    font-size: 22pt;
    line-height: 1.15;
  }

  .patient-guide-detail .guide-intro {
    margin-top: 12pt;
  }

  .patient-guide-detail .guide-intro p {
    font-size: 10pt;
    line-height: 1.5;
  }

  .patient-guide-detail .guide-figure {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    break-inside: avoid;
  }

  .patient-guide-detail .guide-figure .guide-image-frame {
    height: 1.35in;
    min-height: 0;
    padding: 6pt;
  }

  .patient-guide-detail .guide-figure--wide .guide-image-frame {
    height: 0.9in;
  }

  .patient-guide-detail .guide-figure figcaption {
    padding: 6pt 8pt;
  }

  .patient-guide-detail .guide-figure-caption {
    font-size: 8pt;
    line-height: 1.45;
  }

  .patient-guide-detail .patient-guide > .guide-layout--no-toc {
    margin-top: 4pt;
  }

  .patient-guide-detail .guide-article {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .patient-guide-detail .patient-guide .guide-section,
  .patient-guide-detail .patient-guide .guide-section--contact,
  .patient-guide-detail .patient-guide .guide-section--reassurance {
    display: block;
    margin: 0;
    padding: 12pt 0;
    border: 0;
    border-bottom: 0.5pt solid #dbe1e5;
    border-radius: 0;
    background: #ffffff;
    break-inside: auto;
  }

  .patient-guide-detail .guide-section h2 {
    margin-bottom: 7pt;
    font-size: 13pt;
    break-after: avoid;
  }

  .patient-guide-detail .guide-section-body {
    max-width: none;
  }

  .patient-guide-detail .guide-section-body p,
  .patient-guide-detail .guide-section-body li {
    color: #222222;
    font-size: 10pt;
    line-height: 1.5;
    orphans: 3;
    widows: 3;
  }

  .patient-guide-detail .guide-section-body ul li {
    padding-left: 2pt;
    break-inside: avoid;
  }

  .patient-guide-detail .guide-section-body ul li + li {
    margin-top: 4pt;
  }

  .patient-guide-detail .guide-section-body p + p,
  .patient-guide-detail .guide-section-body p + ul,
  .patient-guide-detail .guide-section-body ul + p {
    margin-top: 7pt;
  }

  .patient-guide-detail .guide-print-contact {
    display: block;
    margin: 14pt 0 0;
    color: #222222;
    font-size: 9pt;
    line-height: 1.5;
    break-inside: avoid;
  }

  .patient-guide-detail .guide-review-note,
  .patient-guide-detail .guide-detail-image-credit .guide-credit {
    margin-top: 9pt;
    font-size: 8pt;
  }
}
