/* Spacing pass, 19 Nov 2026: tighter section rhythm on desktop, and one gap (not two paddings) where two sections share a background. Uses the site's own variables. */
:root{--join-b:48px;--join-t:40px}
@media (min-width:721px){
  html:root{--sec:clamp(48px,5vw,72px)}
  .h-sec{padding:72px 0}
  .phero{padding-bottom:clamp(48px,5vw,72px)}
}
@media (min-width:1001px){.h-close{padding:72px 0}}
@media (max-width:720px){:root{--join-b:28px;--join-t:24px}}
.sec.bg-sheet:has(+ .sec.bg-sheet),
.sec.bg-sheet:has(+ .sec.night),
.sec.bg-sheet:has(+ .sec-tight.night),
[class="sec-tight"]:has(+ [class="sec"]),
[class="sec"]:has(+ [class="sec-tight"]),
.h-sec:has(+ .h-sec){padding-bottom:var(--join-b)}
.sec.bg-sheet + .sec.bg-sheet,
.sec.bg-sheet + .sec.night,
.sec.bg-sheet + .sec-tight.night,
[class="sec-tight"] + [class="sec"],
[class="sec"] + [class="sec-tight"],
.h-sec + .h-sec,
.h-work + .h-sec{padding-top:var(--join-t)}
/* phones: the duty photos are hidden, so the empty photo column goes too */
@media (max-width:699px){.h-duties .h-trow:not(.h-thead){grid-template-columns:minmax(0,1fr);grid-template-areas:"name" "std" "txt";column-gap:0}}
/* sideways scrolling, 19 Nov 2026: the jump links wrap onto a second line instead of running off the screen */
.h-jump{flex-wrap:wrap;overflow-x:visible;row-gap:8px}
@media (max-width:720px){.h-jump{column-gap:6px}.h-jump a{padding:7px 11px;font-size:.85rem}}
