/* Keep page transitions compact without changing type, photos or touch targets. */
:root { --section-space: clamp(32px, 4vw, 56px); }
main .section { padding-block: var(--section-space); }
main .section-heading { margin-bottom: 28px; }
main > .patient-breadcrumb { margin-top: 20px; }
main > .patient-breadcrumb + .section,
.faq-page .questions.section,
.contact-page .contact.section { padding-top: 24px; }
main .page-related { margin-top: 28px; padding-top: 22px; }

/* The homepage flows directly from the introduction to the six links. */
.home-page .home-introduction { padding-block: 36px 28px; row-gap: 22px; }
.home-intro-copy > :last-child { margin-bottom: 0; }
.home-page .home-navigation { padding-block: 20px 36px; }
.home-page .home-visit { padding-block: 40px; }
.home-visit-heading { margin-bottom: 28px; }

/* Condition, audience, service and information pages share these layouts. */
.guide-main, .about-main { padding-top: 24px; padding-bottom: 40px; }
.guide-breadcrumb { margin-bottom: 18px; }
.guide-hero { padding-block: 8px 28px; margin-bottom: 28px; }
.guide-hero h1 { margin-block: 12px 16px; }
.guide-hero > div > :last-child { margin-bottom: 0; }
.guide-section, .guide-references, .guide-faqs { margin-block: 30px; }
.guide-related { margin-block: 28px; }
.guide-main > :last-child { margin-bottom: 0; }
.guide-next { margin-top: 28px; }
.services-section { padding-bottom: 28px; margin-bottom: 28px; }
.services-section-heading { margin-bottom: 24px; }
.services-photographs { margin-bottom: 30px; }

/* Avoid extra space above biographies and inside short team cards. */
.about-hero { padding-block: 6px 24px; }
.about-hero h1 { margin-block: 12px 16px; }
.about-subheading { margin-bottom: 0; }
.about-jump-links { padding-block: 12px; }
.about-section, .about-team-section { padding-block: 36px; }
.about-main > :last-child { padding-bottom: 0; }
.about-team-grid { align-items: start; margin-top: 24px; }
.team-profiles .about-team-grid { margin-top: 0; }
.about-person, .about-team-preview .about-person { min-height: 0; }
.about-person .about-person-role { min-height: 0; margin-bottom: 16px; }
.about-person-initials, .about-person-portrait { margin-bottom: 20px; }
.about-invitation { margin-top: 32px; padding: 30px; }
main .team-introduction.section, main .team-biography.section { padding-block: 36px; }
.team-bio-row + .team-bio-row { margin-top: 28px; padding-top: 28px; }

/* Practical patient pages retain one clear gap between each content block. */
.first-visit-page.section { padding-bottom: 40px; }
.first-visit-page .section-heading { margin-bottom: 22px; }
.first-visit-page > .first-visit-overview { margin-bottom: 30px; }
.fees-page-content .fee-grid { margin-top: 32px; }
.fees-intro-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.fees-intro-layout .fees-booking-note { margin: 0; max-width: none; }
.fees-intro-layout .fees-subtitle { margin-bottom: 0; }
.visit-practical, .fees-information { margin-top: 28px; }
.policy-main { padding-top: 24px; padding-bottom: 40px; }
.policy-main > .patient-breadcrumb { margin-top: 0; }
.testimonial-heading { margin-top: 24px; }
.testimonials-page .patient-feedback.section { padding-top: 28px; }
.wl-wrap { padding-top: 24px; padding-bottom: 40px; gap: 40px; }
.news-page .page-intro { padding-block: 28px; }
.journal-hero { padding-block: 32px; }
.journal-layout { padding-block: 32px 36px; }
.journal-endnotes { padding-block: 30px 36px; }
footer.site-footer { padding-top: 32px; }
.site-footer .footer-brand-row { padding-bottom: 26px; }
.site-footer .footer-columns { padding-block: 28px; }

/* Keep photos beside the relevant content, with no empty image slots. */
.first-visit-page .visit-layout { grid-template-areas: "gallery steps" "consultation steps"; gap: 28px; }
.team-introduction.team-introduction-text { grid-template-areas: "heading copy"; align-items: center; }
.team-introduction-text .team-heading { align-self: center; }
.journal-hero.journal-hero-text { display: block; max-width: 800px; }
.care-page .assessment-photo { width: min(100%, 190px); justify-self: center; }
.care-page .assessment-photo img { height: auto; aspect-ratio: auto; }
.services-hero-photo .service-feature-photo {
  width: min(100%, 250px); margin: 0; padding: 10px; justify-self: center;
  border: 1px solid #163e35; background: #fff;
  box-shadow: 0 10px 28px #163e3514, inset 0 0 0 3px #fff, inset 0 0 0 4px #c6b487;
}
.services-hero-photo.guide-hero .service-feature-photo img { display: block; width: 100%; height: auto; max-width: none; border: 0; box-shadow: none; border-radius: 0; }

@media (max-width: 900px) {
  .first-visit-page .visit-layout { grid-template-areas: "gallery" "steps" "consultation"; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .team-introduction.team-introduction-text { grid-template-areas: "heading" "copy"; }
  .fees-intro-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 700px) {
  :root { --section-space: 30px; }
  .home-page .home-introduction { padding-block: 28px 24px; row-gap: 24px; }
  .home-page .home-navigation { padding-block: 12px 28px; }
  .home-page .home-visit { padding-block: 30px; }
  .home-visit-grid { gap: 28px; }
  .guide-main, .about-main { padding-top: 20px; padding-bottom: 30px; }
  .guide-breadcrumb { margin-bottom: 14px; }
  .guide-hero { padding-block: 6px 24px; margin-bottom: 24px; }
  .guide-section, .guide-references, .guide-faqs { margin-block: 26px; }
  .about-hero { padding-block: 6px 22px; }
  .about-section, .about-team-section { padding-block: 28px; }
  .about-invitation { padding: 24px; margin-top: 26px; }
  main .team-introduction.section, main .team-biography.section { padding-block: 28px; }
  .team-bio-row { row-gap: 16px; }
  .team-bio-row + .team-bio-row { margin-top: 24px; padding-top: 24px; }
  .first-visit-page > .first-visit-overview { margin-bottom: 26px; }
  .first-visit-page.section, .policy-main { padding-bottom: 30px; }
  .wl-wrap { padding-bottom: 30px; gap: 28px; }
  .journal-hero { padding-block: 26px; }
  .journal-layout, .journal-endnotes { padding-block: 26px 30px; }
  footer.site-footer { padding-top: 28px; }
}
