/* 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; }
}

.top { align-items: center; gap: 12px; padding-block: 0; }
.top-shortcuts { display: flex; align-items: center; column-gap: clamp(15px, 2.4vw, 32px); }
.top-shortcuts a { display: inline-flex; align-items: center; min-height: 39px; color: #ffe0bd; font-size: .85rem; font-weight: 700; letter-spacing: normal; }
.top-shortcuts .top-phone { color: #fff; }
.top-shortcuts a:hover, .vitality-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }

.transport { background: #f3ece2; color: #302a24; }
.transport p, .transport-card li { color: #53483d; }
.transport .eyebrow { color: #80481f; }
.transport .button { background: #62412e; color: #fff; }
.transport .button:hover { background: #493022; }
.transport-details { text-decoration: underline; }
.transport-card { border-color: #d5c7b7; }
.transport-bottom { gap: 16px; flex-wrap: wrap; }
.transport-bottom p { flex: 1 1 125px; }
.transport-vehicle {
  flex: 0 1 250px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0 auto;
  text-align: center;
}
.transport-vehicle img { display: block; width: 100%; height: auto; }
.transport-vehicle figcaption { color: #53483d; font-weight: 600; }

.ways-to-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  background: #faf7f2;
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 3.6vw, 54px);
}
.action-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 16px;
  scroll-margin-top: 12px;
}
.work-panel { background: #323537; color: #fff; }
.give-panel { background: #f7dfbf; color: #352a23; }
.panel-label { display: flex; align-items: center; gap: 10px; font-size: .76rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.work-panel .panel-label { color: #ffce9d; }
.give-panel .panel-label { color: #70411f; }
.panel-label svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.action-panel h2 { color: inherit; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.12; margin: 18px 0 12px; }
.action-panel p { margin: 0 0 16px; max-width: 49ch; font-size: 1rem; color: inherit; line-height: 1.55; }
.work-panel .panel-note, .recipient-data { border-top: 1px solid; padding-top: 13px; margin: 0 0 20px; width: 100%; }
.work-panel .panel-note { max-width: none; border-color: #606263; color: #e3e0db; }
.recipient-data { display: flex; flex-wrap: wrap; gap: 10px 36px; border-color: #cfaf88; }
.recipient-data dt { font-size: .8rem; color: #614b39; }
.recipient-data dd { margin: 0; font-weight: 700; line-height: 1.4; }
.action-panel .panel-button { margin-top: auto; min-height: 46px; padding: 10px 19px; gap: 12px; }
.work-panel .panel-button { background: #ffdbb4; color: #30261e; }
.give-panel .panel-button { background: #483329; color: #fff; }
.panel-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.ways-to-help a:focus-visible, .top-shortcuts a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.work-panel a:focus-visible { outline-color: #fff; }

body > footer.vitality-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 22px clamp(24px, 4vw, 60px);
  align-items: start;
  background: #f7f5f1;
  padding-block: clamp(26px, 3vw, 42px) 20px;
}
.vitality-footer > div { display: block; }
.vitality-footer .brand { width: fit-content; }
.vitality-footer .brand img { width: 58px; height: 48px; }
.vitality-footer .brand span { font-size: 1.4rem; }
.vitality-footer .footer-identity p { margin: 12px 0 0; color: #544e47; font-size: .9rem; line-height: 1.55; }
.footer-group h2 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; letter-spacing: normal; }
.footer-group ul { list-style: none; padding: 0; margin: 0; }
.footer-group a, .vitality-footer .legal-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: .93rem; }
.vitality-footer .legal-footer { grid-column: 1 / -1; }
.vitality-footer .legal-footer p { margin: 8px 0 0; font-size: .8rem; }
@media (max-width: 700px) {
  .ways-to-help { grid-template-columns: minmax(0, 1fr); }
  body > footer.vitality-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vitality-footer .footer-identity { grid-column: 1 / -1; }
  .vitality-footer .legal-links { display: grid; gap: 0; }
  .footer-group a, .vitality-footer .legal-links a, .top-shortcuts a { min-height: 44px; }
  .top > span { display: none; }
  .top-shortcuts { width: 100%; }
  .top-shortcuts .top-phone { margin-left: auto; }
}
@media (max-width: 460px) {
  .transport-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .transport-vehicle { width: min(100%, 250px); }
}

/* Reach these direct links immediately, including while the galleries load. */
html:has(.action-panel:target, #doprava:target) { scroll-behavior: auto; }
