.guide-page {
  --ink: #173952;
  --body: #384f60;
  --blue: #21598d;
  --sand: #f4f0e9;
  --rule: #cbd6dd;
  color: var(--ink);
}
.guide-page main { overflow-wrap: anywhere; }
.guide-page .guide-intro { padding-top: 26px; }
.guide-cover {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  overflow: hidden;
  border-radius: 24px 24px 64px 24px;
  background: var(--sand);
}
.guide-cover-copy { padding: clamp(28px, 4.4vw, 64px); align-self: center; }
.guide-cover-copy .guide-name, .guide-heading > p {
  color: var(--blue);
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 16px;
}
.guide-page .guide-cover h1 { font-weight: 600; font-size: clamp(34px, 3.6vw, 55px); line-height: 1.24; letter-spacing: -.055em; text-wrap: balance; }
.guide-cover .guide-lead { font-size: 18px; line-height: 1.82; margin-top: 24px; color: var(--body); }
.guide-figure { margin: 0; min-width: 0; }
.guide-image { position: relative; overflow: hidden; }
.guide-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guide-cover .guide-figure { display: flex; flex-direction: column; background: #e9edf1; }
.guide-cover .guide-image { flex: 1; min-height: 310px; }
.guide-cover .guide-image img { position: absolute; inset: 0; }
.guide-cover img[src*="/treatments/"] { object-fit: contain; background: #f4f7f8; }
.guide-cover .guide-anatomy .guide-image { display: grid; grid-template-columns: 54% 46%; min-height: 330px; background: #ebe0d2; }
.guide-cover .guide-anatomy img { position: static; align-self: stretch; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.guide-figure figcaption { font-size: 13px; line-height: 1.6; color: #546270; margin-top: 10px; }
.guide-cover figcaption { background: #e8e6e0; padding: 9px 24px; margin: 0; }
.guide-related a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 530; }
.guide-page main :is(summary,a):focus-visible { outline: 2px solid #2270b6; outline-offset: 3px; }
.guide-page .guide-exam, .guide-page .guide-course, .guide-choices, .guide-questions, .guide-booking { padding-block: clamp(54px, 6.4vw, 94px); }
.guide-page .guide-heading h2 { font-weight: 570; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.045em; line-height: 1.35; text-wrap: balance; }
.guide-exam-body { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.guide-exam .guide-image { aspect-ratio: 3 / 2; border-radius: 12px 44px 12px 12px; background: #f1f4f6; }
.guide-exam .guide-image img[src*="/treatments/"] { object-fit: contain; }
.guide-findings, .guide-comparison { margin: 0; }
.guide-findings > div + div { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.guide-page main :is(.guide-findings,.guide-comparison) dt, .guide-page .guide-course h3 { font-size: 21px; font-weight: 600; line-height: 1.46; }
.guide-findings dd, .guide-comparison dd, .guide-course li p, .guide-care p, .guide-answer, .guide-questions details p, .guide-booking .guide-heading + p { margin: 8px 0 0; font-size: 17px; line-height: 1.84; color: var(--body); }
.guide-choices { background: #edf3f7; }
.guide-choice-grid, .guide-question-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 92px); }
.guide-comparison { border-top: 2px solid var(--blue); }
.guide-comparison > div { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.5fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.guide-comparison dd { margin: 0; }
.guide-related { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 15px; }
.guide-related a { text-decoration: underline; text-underline-offset: 4px; }
.guide-course ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; counter-reset: treatment-step; margin: 32px 0 0; padding: 0; gap: 32px; }
.guide-course li { border-top: 1px solid var(--rule); counter-increment: treatment-step; }
.guide-course li::before { display: block; content: counter(treatment-step, decimal-leading-zero); margin: 14px 0 22px; color: var(--blue); font-size: 15px; font-variant-numeric: tabular-nums; }
.guide-care { padding: 24px 30px; margin-top: 32px; background: var(--sand); border-left: 3px solid #b39874; }
.guide-questions { background: #f7f8f9; }
.guide-question-grid { grid-template-columns: 1fr 1.3fr; }
.guide-answer { margin-top: 16px; }
.guide-questions details { border-bottom: 1px solid var(--rule); }
.guide-questions details:first-child { border-top: 1px solid var(--rule); }
.guide-questions summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; list-style: none; padding-block: 18px; font-weight: 550; font-size: 18px; }
.guide-questions summary::-webkit-details-marker { display: none; }
.guide-questions summary::after { content: '+'; font-size: 22px; color: var(--blue); }
.guide-questions details[open] summary::after { content: '−'; }
.guide-questions details p { margin: 0 0 18px; }
.guide-questions .guide-sources summary { font-size: 14px; color: var(--body); }
.guide-sources ul { margin: 0 0 16px; padding-left: 20px; line-height: 1.9; }
.guide-sources a { text-decoration: underline; }
.guide-booking { background: #193e58; color: white; }
.guide-booking .wrap { display: grid; grid-template-columns: minmax(0,2fr) auto; gap: 32px; align-items: center; }
.guide-booking .guide-heading > p, .guide-booking .guide-heading + p { color: #d4e3ed; }
.guide-actions { display: grid; justify-items: center; gap: 4px; }
.guide-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-actions a:first-child { background: white; color: var(--ink); border-radius: 32px; padding: 4px 24px; font-weight: 600; }
@media(max-width: 820px) {
  .guide-cover-copy { padding: 28px; }
  .guide-choice-grid, .guide-question-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media(max-width: 680px) {
  .guide-page .guide-intro { padding-top: 14px; }
  .guide-cover { grid-template-columns: 1fr; border-radius: 16px 16px 32px 16px; }
  .guide-cover-copy { padding: 26px 22px; }
  .guide-cover .guide-lead { margin-top: 14px; font-size: 16px; }
  .guide-cover .guide-image { min-height: 0; height: clamp(180px, 52vw, 250px); flex: none; }
  .guide-cover .guide-anatomy .guide-image { min-height: 230px; height: auto; grid-template-columns: minmax(0, min(50%, 200px)) 1fr; }
  .guide-cover figcaption { padding: 8px 16px; }
  .guide-exam-body, .guide-booking .wrap { grid-template-columns: 1fr; gap: 22px; }
  .guide-exam-body { margin-top: 20px; }
  .guide-exam .guide-image { aspect-ratio: 16 / 10; }
  .guide-comparison > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .guide-course ol { grid-template-columns: 1fr; gap: 20px; }
  .guide-course li { display: grid; grid-template-columns: 30px minmax(0,1fr); column-gap: 8px; padding-top: 16px; }
  .guide-course li::before { margin: 4px 0 0; }
  .guide-course li p { grid-column: 2; }
  .guide-care { padding: 18px 20px; }
  .guide-actions { justify-self: start; justify-items: start; }
}
.guide-exam .guide-panorama { background: #141a1e; aspect-ratio: 2 / 1; border-radius: 10px; }
.guide-exam .guide-panorama img { object-fit: contain; }
.guide-choices .guide-figure { margin-top: 22px; max-width: 480px; }
.guide-choices .guide-image { aspect-ratio: 3 / 2; border-radius: 12px; background: #f4f7f8; }
.guide-choices .guide-image img { object-fit: contain; }
.guide-symptoms { background: var(--sand); padding: clamp(20px, 3vw, 38px); border-radius: 12px 40px 12px 12px; }
.guide-symptoms figcaption { color: var(--blue); font-weight: 600; margin: 0 0 16px; font-size: 15px; }
.guide-symptoms dl { margin: 0; }
.guide-symptoms dl > div { padding: 12px 0; }
.guide-symptoms dl > div + div { border-top: 1px solid #d9d4cb; }
.guide-symptoms dt { font-weight: 600; }
.guide-symptoms dd { margin: 4px 0 0; color: var(--body); line-height: 1.65; }

@media (min-width: 681px) {
  .guide-exam-body:has(.guide-image) { align-items: stretch; }
  .guide-exam-body:has(.guide-panorama) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .guide-exam-body .guide-figure { display: flex; flex-direction: column; }
  .guide-exam-body .guide-image { flex-grow: 1; }
  .guide-exam-body .guide-image img { position: absolute; inset: 0; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .guide-exam-body:has(.guide-panorama) { grid-template-columns: 1fr; gap: 24px; }
  .guide-exam-body:has(.guide-panorama) .guide-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .guide-exam-body:has(.guide-panorama) .guide-findings > div + div { margin: 0; padding: 0; border: 0; }
}

.guide-cover .guide-anatomy img, .guide-part-overlay { grid-area: 1 / 1; }
.guide-part-overlay { position: relative; pointer-events: none; }
.guide-part-pin {
  position: absolute; top: 24%; left: 12%; transform: translateY(-50%);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #17486a; color: white; font-size: 12px; font-weight: 650;
  box-shadow: 0 0 0 3px #ffffffa6; transition: top .26s ease-out;
}
.guide-part-pin::after { content: ''; position: absolute; left: 100%; width: clamp(8px,1.3vw,22px); height: 1px; background: #17486a; }
.guide-part-pin[data-part="1"] { top: 46%; }
.guide-part-pin[data-part="2"] { top: 72%; }
.guide-part-list { grid-area: 1 / 2; display: grid; align-content: center; gap: 6px; padding: 8px; }
.guide-part-list button {
  text-align: left; cursor: pointer; padding: 10px clamp(6px,1vw,16px); min-height: 44px;
  border: 1px solid transparent; border-radius: 12px; color: #193e58; background: transparent;
  transition: background-color .18s, border-color .18s;
}
.guide-part-list button:hover { background: #ffffff55; }
.guide-part-list button[aria-pressed="true"] { background: #fff9ef; border-color: #c7b8a4; }
.guide-part-list button:focus-visible { outline: 2px solid #175a93; outline-offset: 1px; }
.guide-part-name { display: block; font-size: 16px; font-weight: 650; }
.guide-part-name small { margin-right: 5px; color: #536879; font-size: 11px; }
.guide-part-description { display: block; margin-top: 4px; color: #495157; font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .guide-part-pin, .guide-part-list button { transition: none; }
}

.treatment-photo { background: #faf8f4; overflow: hidden; border-radius: 16px; scroll-margin-top: 130px; }
.guide-cover .treatment-photo { justify-content: center; border-radius: 0; background: #f2f6f8; }
.guide-choices .treatment-photo { margin-top: 20px; }
.photo-frame { width: 100%; aspect-ratio: 940 / 632; display: flex; justify-content: center; background: #f2f6f8; overflow: hidden; }
.photo-plane { position: relative; width: 100%; height: 100%; overflow: hidden; }
.photo-plane.square { width: auto; aspect-ratio: 1; }
.photo-layer { position: absolute; inset: 0; transition: transform .32s ease; }
.photo-layer img { object-fit: contain; }
.photo-point { position: absolute; width: 22px; height: 22px; border: 2px solid white; border-radius: 50%; background: #17679735; box-shadow: 0 0 0 2px #154a6c; transform: translate(-50%, -50%); transition: left .25s, top .25s; pointer-events: none; }
.guide-page .treatment-photo figcaption { padding: 14px 16px; margin: 0; background: #faf8f4; }
.photo-switch { display: flex; flex-wrap: wrap; gap: 5px; }
.photo-switch button { padding: 4px 10px; min-height: 44px; background: transparent; border: 1px solid #d0d9df; border-radius: 10px; color: #314f63; cursor: pointer; font: inherit; font-weight: 600; }
.photo-switch button[aria-pressed=true] { background: #e2edf4; color: #17496b; border-color: #7298af; }
.photo-switch button:focus-visible { outline: 2px solid #175a93; outline-offset: 1px; }
.treatment-photo figcaption p { margin: 8px 0 0; min-height: 3.2em; color: #314f63; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .photo-point, .photo-layer { transition: none; } }
