/* SLMG comp kit: desktop scale from a 1080p base.
 * Ported from spin-doctor public/lpdesign/_assets/desktop-scale.css (operator rule, 2026-10-19):
 * a large screen at 100 % browser zoom shows the 1920 x 1080 layout scaled up, the way browser zoom would,
 * not a small layout adrift in a huge canvas.
 *
 * How it works
 *   --vp-zoom steps when the window is at least 1920*k CSS px wide AND 980*k tall (980 = 1080 less browser chrome),
 *   and <html> is zoomed by it. 4K full screen (3840 x ~2000) gets 2.0, 1440p gets 1.3;
 *   phones, laptops and 1080p stay at 1. The height condition stops an ultrawide-but-short window from zooming
 *   content off the bottom.
 *
 * How a comp opts in (three rules)
 *   1. Link this file BEFORE the comp's own stylesheet:
 *        <link rel="stylesheet" href="../_kit/scale/desktop-scale.css">
 *   2. Every viewport-relative length is written  calc(N<unit> / var(--vp-zoom, 1))  so it still means
 *      "N % of the window" under the zoom. Run:  node ../_kit/scale/vp-units.mjs <direction-folder>
 *      (idempotent; rewrites vh/vw/svh/dvh/vmin/... in .css files, <style> blocks and style="" attributes).
 *   3. No layout breakpoint above 1920 px wide: media queries still see the real window (3840 at 4K),
 *      so a (min-width: 2400px) rule would give 4K a different layout from 1080p. The harness check
 *      "scale4k" catches this by comparing element boxes.
 *
 * JavaScript: window.innerWidth/innerHeight and getBoundingClientRect() report real (zoomed) pixels, while lengths
 * written into style are layout pixels. Anything that reads geometry and writes it back must divide by the zoom:
 *   const z = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--vp-zoom')) || 1;
 *   el.style.height = (window.innerHeight / z) + 'px';
 * vp-units.mjs lists the JS lines worth auditing. */
:root { --vp-zoom: 1; }
html { zoom: var(--vp-zoom); }
@media print { html { zoom: 1; } }
@media (min-width: 2016px) and (min-height: 1029px) { :root { --vp-zoom: 1.05; } }
@media (min-width: 2112px) and (min-height: 1078px) { :root { --vp-zoom: 1.1; } }
@media (min-width: 2208px) and (min-height: 1127px) { :root { --vp-zoom: 1.15; } }
@media (min-width: 2304px) and (min-height: 1176px) { :root { --vp-zoom: 1.2; } }
@media (min-width: 2400px) and (min-height: 1225px) { :root { --vp-zoom: 1.25; } }
@media (min-width: 2496px) and (min-height: 1274px) { :root { --vp-zoom: 1.3; } }
@media (min-width: 2592px) and (min-height: 1323px) { :root { --vp-zoom: 1.35; } }
@media (min-width: 2688px) and (min-height: 1372px) { :root { --vp-zoom: 1.4; } }
@media (min-width: 2784px) and (min-height: 1421px) { :root { --vp-zoom: 1.45; } }
@media (min-width: 2880px) and (min-height: 1470px) { :root { --vp-zoom: 1.5; } }
@media (min-width: 2976px) and (min-height: 1519px) { :root { --vp-zoom: 1.55; } }
@media (min-width: 3072px) and (min-height: 1568px) { :root { --vp-zoom: 1.6; } }
@media (min-width: 3168px) and (min-height: 1617px) { :root { --vp-zoom: 1.65; } }
@media (min-width: 3264px) and (min-height: 1666px) { :root { --vp-zoom: 1.7; } }
@media (min-width: 3360px) and (min-height: 1715px) { :root { --vp-zoom: 1.75; } }
@media (min-width: 3456px) and (min-height: 1764px) { :root { --vp-zoom: 1.8; } }
@media (min-width: 3552px) and (min-height: 1813px) { :root { --vp-zoom: 1.85; } }
@media (min-width: 3648px) and (min-height: 1862px) { :root { --vp-zoom: 1.9; } }
@media (min-width: 3744px) and (min-height: 1911px) { :root { --vp-zoom: 1.95; } }
@media (min-width: 3840px) and (min-height: 1960px) { :root { --vp-zoom: 2.0; } }
@media (min-width: 4320px) and (min-height: 2205px) { :root { --vp-zoom: 2.25; } }
@media (min-width: 4800px) and (min-height: 2450px) { :root { --vp-zoom: 2.5; } }
@media (min-width: 5280px) and (min-height: 2695px) { :root { --vp-zoom: 2.75; } }
@media (min-width: 5760px) and (min-height: 2940px) { :root { --vp-zoom: 3.0; } }
