/* Spacing shared by the Vitality and Harmony homepages. */
:root {
  --section-space: clamp(24px, 3vw, 38px);
  --grid-gap: clamp(12px, 1.6vw, 22px);
  --card-pad: clamp(16px, 1.8vw, 24px);
  --card-radius: 12px;
}
.section, .availability, .location { padding-block: var(--section-space); }
.section .eyebrow, .availability .eyebrow { margin-bottom: 10px; }
.section h2, .availability h2 { margin-bottom: 14px; }
.sectionhead { align-items: end; gap: var(--grid-gap); margin-bottom: 18px; }
.sectionhead h2, .sectionhead > p { margin-block: 0; }
.split, .contact, .career, .availability, .open-days, .tax-support, .transport {
  gap: var(--grid-gap);
}
.gallery, .services, .steps, .team, .staff, .request-grid {
  gap: var(--grid-gap);
  align-items: stretch;
}
.services, .steps, .request-grid, .staff { grid-auto-rows: 1fr; }
.services > *, .steps > *, .staff > *, .request-grid > *, .team > * { min-width: 0; }
.steps, .team, .staff, .contract-docs, .note { margin-top: 18px; }
.services article { padding-top: 14px; }
.services h3, .steps h3 { min-height: 0; font-size: clamp(18px, 1.7vw, 23px); margin-bottom: 10px; }
.services h3 { margin-top: 14px; }
.steps b { font-size: clamp(23px, 2vw, 30px); margin-bottom: 13px; padding-bottom: 8px; }
.facts { padding-inline: var(--page-pad); padding-block: 17px; }
.facts strong { font-size: clamp(21px, 2.3vw, 32px); }
.photo img { height: auto; aspect-ratio: 3/2; }
.photo figcaption, .gallery span { margin-top: 6px; }
.gallery button { display:flex; flex-direction:column; justify-content:flex-start; }
.gallery img, #life-photos img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--card-radius); }
#life-photos:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin: 0 0 18px; }
.team img { height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center 26%; }
.team article, .staff > div, .request-grid article, .availability-box, .career-card, .contact-card, .open-days-card, .tax-recipient, .contract-docs { border-radius: var(--card-radius); }
.staff > div, .request-grid article, .availability-box, .career-card, .contact-card, .open-days-card, .tax-recipient, .contract-docs { padding: var(--card-pad); }
.team article { padding-bottom: var(--card-pad); }
.team h3, .team p, .team a { margin-inline: var(--card-pad); }
.team h3 { margin-top: 14px; }
.team p { min-height: 0; }
.availability-box, .career-card, .contact-card { height: auto; }
.career-card h3 { margin-block: 12px 8px; }
.contact-card hr { margin-block: 14px; }
.docrow { padding-block: 13px; }
.note { padding: 12px var(--card-pad); }
details { padding-block: 14px; }
.funding p { margin-bottom: 14px; }
.section > :last-child, .section > div > p:last-child { margin-bottom: 0; }
@media (max-width: 780px) {
  .sectionhead > p { margin-top: 8px; }
  .steps, .services, .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery, #life-photos:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); }
  .facts { gap: 12px; }
  .docrow { row-gap: 6px; }
  .hero { min-height: auto; height: auto; max-height: none; }
  .hero-copy { padding-block: 36px 62px; }
}
@media (max-width: 520px) {
  .services, .steps, .staff, .request-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .team { grid-template-columns: 1fr; }
  .team img { aspect-ratio: 3/2; }
  .section .filters { gap: 6px; margin-bottom: 14px; }
}
@media (min-width: 781px) {
  .hero { min-height: max-content; height: clamp(450px, 64vh, 630px); }
  .hero-copy { padding-block: 36px 56px; }
}

/* Display the original 1134 × 283 artwork at more than two source pixels per CSS pixel. */
.section.funding {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  padding-block: clamp(20px, 2.5vw, 32px);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.funding .eyebrow { margin: 0 0 7px; }
.funding h2 { font-size: clamp(21px, 2.1vw, 30px); line-height: 1.18; margin: 0 0 7px; }
.funding p { max-width: 70ch; margin: 0; font-size: .94rem; line-height: 1.5; }
.funding p + p { margin-top: 5px; font-size: .82rem; }
.funding img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0; justify-self: end; }
body > footer:has(.legal-footer) { padding-block: 22px; row-gap: 14px; }
@media (max-width: 720px) {
  .section.funding { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .funding img { justify-self: start; max-width: 430px; }
}
