/* How every LZRsuite tool shares the screen between its controls and its preview, so what you're
   adjusting never leaves the screen (Chris, 2026-11-21). A tool page links this before its own
   styles and marks:
     .lzr-side   the control panel (the side bar)
     .lzr-stage  the preview column
     .lzr-pin    on phones, what stays pinned at the top: the preview column itself, or a wrapper
                 around the part of it that pins. It's full width with no background of its own,
                 since it gets the page's.
   Computer: the tool fills the window. The control panel scrolls on its own and the preview stays
   put beside it; a preview column taller than the window scrolls on its own too. The page itself
   scrolls only down to the About section the Worker adds under each tool (src/seo.ts), with no
   scrollbar, which would narrow the tool. FoldForm and Stencil Bridge, built apart, do the same in
   their own styles, and seo.ts's fullScreenFrom places their About.
   Phone: one column. The preview comes first and stays pinned at the top while the controls scroll
   underneath it. Each page caps its own preview at about a third of the screen, so the pinned part
   stays under half and the controls keep the rest. */

@media screen and (min-width: 901px) {
  html { overflow-y: auto; scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body > * { flex: none; }
  body > main { flex: 1 1 auto; min-height: 0; width: 100%; grid-template-rows: minmax(0, 1fr); overflow-y: auto; overscroll-behavior: contain; }
  /* A link straight to a tool's tab (Font Builder's /font#library) opens it without scrolling the
     header off the top. */
  body > main[id] { scroll-margin-top: 100vh; }
  /* position:relative makes each column the box that what's inside it is placed in. The hidden radio
     behind a toggle (.seg input, .chips input { position:absolute }) is otherwise placed from the
     page, where the unscrolled column would put it, often far below the window; clicking its label
     focused it and scrolled the whole page there, leaving a blank screen (Patch Press, 2026-11-23). */
  .lzr-side, .lzr-stage { position: relative; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .lzr-about { position: absolute; top: 100%; left: 0; right: 0; }
}

@media screen and (max-width: 900px) {
  .lzr-stage { order: -1; }
  .lzr-pin { position: sticky; top: 0; z-index: 5; background: var(--bg); box-shadow: 0 10px 12px -12px rgba(0, 0, 0, .45); }
}
