/* The sections of the page, from the outside. Each is a band, which is how the pager finds a page (pager.js: .hero, .band, .foot) and how pages.css gives it a snap
   point; its content is a shadow root (sx.js). With the pager on (a window that is wide, tall and allows motion: html.pg) a section is the window under the header,
   which is --bar-h tall (hero.css); elsewhere it is as tall as its content. The legacy .band padding and rule are taken off: the section pads itself. */
.sx-band { display: block; position: relative; --sx-min: 0px; }
.sx-band.band { padding: 0; border: 0; }
html.pg .sx-band { --sx-min: calc(100vh - var(--bar-h)); }
/* on a phone or a tablet the window is the small viewport (the address bar shown), which is also what pager.js measures; the same as vh on a laptop */
@supports (height: 100svh) { html.pg .sx-band { --sx-min: calc(100svh - var(--bar-h)); } }
/* the band's own colour is the theme's ground, whatever its class (the class says which ground the section was drawn for, and the page now has one), so that nothing flashes before the
   content is built; and two sections in a row are told apart by a hairline */
.sx-band.band-dark, .sx-band.band-white { background: var(--th-bg); color: var(--th-fg); }
.sx-band + .sx-band { border-top: 1px solid var(--th-hair-2); }
/* A link to a section (the three boxes of the first one, a menu's) lands with the section's top edge, where its hairline is, on the bar's lower edge: the bar's glass has a hairline of its own there
   (nav.css), so the two are one line. It is a pixel and a half under the bar's height (--bar-h), not the bar's whole height, because the page scrolls to whole pixels and the bar's height is not one:
   this way the section's hairline is under the glass whichever way it rounds, and the bar's is the only one to be seen, with the section's first words just under it. */
html:not(.stg) .sx-band { scroll-margin-top: calc(var(--bar-h) - 1.5px); }
