/* The frame's Apple lessons (20 Oct 2026, chat FRAME SPLIT, step 6 of the
   map's "If B"). Measured 19 and 20 Oct on apple.com/au (research/apple-study,
   iphone-18-pro and apple-homeview): Apple pads every section 144px at 1440
   and 112px on a phone; this template's sections pad themselves (Virgin 64
   and 48, Bupa 114 and 96). Apple's prose sits at 43 to 53 characters a line
   at 1440 and 32 to 46 on a phone; ours runs to 65 (Virgin) and 82 (Bupa).
   Words a screen (Apple 70 to 90) and the type ladder (2 Five) already match;
   the rail's Apple fold shows the count.

   His picks (20 Oct 2026): pace "site" and measure "apple" for every study,
   set by the head script in index.html; a review link may name another
   (pace= and measure=, the rail's locks; review.js "Apple lessons"). The
   rules key on <html data-pace> and <html data-measure> and touch only the
   middle: the sections' own CSS is never edited. Absent flags change nothing. */

:root {
  --cs-pace-site: var(--section-padding);   /* the site's own rhythm: 114 at 1280x800, 128 at 1440, 96 on phones */
  --cs-pace-apple: clamp(var(--space-900), 10vw, var(--space-1100));   /* Apple's 144 at 1440 is 10% of the width; 128 at 1280, 96 on phones */
}

/* Section pace: every top section of the middle takes the one padding. A
   section's own class rule (one class) loses to this (root flag + wrapper +
   section), with no !important. Nested sections keep their own. */
:root[data-pace="site"] .cs-middle section[id]:not(section section) { padding-block: var(--cs-pace-site); }
:root[data-pace="apple"] .cs-middle section[id]:not(section section) { padding-block: var(--cs-pace-apple); }

/* Line length: a paragraph the type ladder snapped to a reading rung (label,
   caption, base, body: type-ladder.js marks them) is capped in ems of its own
   size, so a 12px caption and an 18px body each keep the same count of
   characters. An average character is about half an em (Apple's 17px body
   at 43 to 53 characters is 21 to 27em wide; a ch, the width of a zero, is
   0.62em in Work Sans, so it is no measure here). Headings, cards' big lines
   and coded parts are not touched. A centred paragraph keeps its centre
   (type-ladder.js marks data-cs-align). */
:root[data-measure="apple"] .cs-middle p:is([data-cs-rung="label"], [data-cs-rung="caption"], [data-cs-rung="base"], [data-cs-rung="body"]) { max-width: 26em; }   /* about 52 characters */
:root[data-measure="wide"] .cs-middle p:is([data-cs-rung="label"], [data-cs-rung="caption"], [data-cs-rung="base"], [data-cs-rung="body"]) { max-width: 33em; }    /* about 66, the classic measure */
:root:is([data-measure="apple"], [data-measure="wide"]) .cs-middle p[data-cs-align="center"] { margin-inline: auto; }

/* Load hold (21 Oct 2026, chat VIRGIN MASTER MOVE, his ask): index.html sets data-cs-hold on a study that opts in, and
   its kit sets data-cs-ready once the picks and hero modules have laid the page out (six seconds at most, from the
   head script). Until then the page is faded out and does not take taps, so a visitor never sees the plain page first. */
html[data-cs-hold] main { transition: opacity .35s ease; }
html[data-cs-hold]:not([data-cs-ready]) main { opacity: 0; pointer-events: none; }
html[data-motion="still"][data-cs-hold] main { transition: none; }
/* The hold still (24 Oct 2026, chat VIRGIN LOAD): the hero's first frame in the hero's box (index.html sizes it), under
   main, so the page fades in on top of the same picture; it goes once main has faded in. */
.cs-hold-still { display: none; }
html[data-cs-hold] .cs-hold-still { display: block; position: absolute; left: 0; right: 0; z-index: -1; overflow: hidden; background: var(--neutral-950); }
.cs-hold-still picture { display: contents; }
.cs-hold-still img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* the hero film's shade (film/film.css uses the same value), at every width: phones put the words on the film too since
   10 Nov 2026 (his pick, chat VA HERO PHONE; subject/subject.css) */
.cs-hold-still, .vf-hground, .vs-hground { --vf-shade:
  linear-gradient(to top, color-mix(in oklab, var(--neutral-950) 88%, transparent) 0, color-mix(in oklab, var(--neutral-950) 72%, transparent) 28%, color-mix(in oklab, var(--neutral-950) 50%, transparent) 50%, color-mix(in oklab, var(--neutral-950) 15%, transparent) 68%, transparent 100%),
  linear-gradient(to bottom, color-mix(in oklab, var(--neutral-950) 72%, transparent) 0, color-mix(in oklab, var(--neutral-950) 45%, transparent) 22%, transparent 38%); }
.cs-hold-still::after { content: ""; position: absolute; inset: 0; background: var(--vf-shade); }
html[data-cs-hold][data-cs-ready] .cs-hold-still { visibility: hidden; transition: visibility 0s .35s; }
