/* Phones (html.kp-narrow): every page of the site (Main, About) moves one
   screen at a time. Shared by all pages; loaded right after base.css. */

/* ---- the page never moves sideways ---- */
/* only the root clips: a clipping body would become its own scroller and break the paging */
html.kp-narrow { overflow-x: hidden; }
@supports (overflow: clip) { html.kp-narrow { overflow-x: clip; } }
html.kp-narrow { scroll-snap-type: y mandatory; }
html.kp-narrow .ks.kpage { overflow: hidden; max-width: 100vw; }

/* ---- the browser bar ----
   A phone page never changes size while the page scrolls: it is as tall as the
   screen with the browser's bar hidden (--kscreen, kpage.js), whether the bar
   shows or not, so nothing jumps when the bar slides in or out. While the bar
   shows it covers the bottom --kbar of a page, so what sits at a page's bottom is
   kept above that. The page stops only at the top of a page: small markers at
   each page's top are the snap points (kpage.js), never the pages themselves, as
   a page taller than the screen would let the page rest part-way through it. */
html.kp-narrow { --kscreen: 100lvh; --kbar: calc(100lvh - 100svh); }
html.kp-narrow .ks.kpage, html.kp-narrow .ks.fi-foot { scroll-snap-align: none !important; }
html.kp-narrow .kp-snaps { position: absolute; left: 0; top: 0; width: 1px; height: 0; pointer-events: none; visibility: hidden; }
html.kp-narrow .kp-snaps i { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; }
html.kp-narrow .kp-snaps i.end { scroll-snap-align: end; }
html.kp-narrow .ks.kpage#top { height: var(--kscreen); min-height: 480px; overflow: hidden; }
