/* =====================================================================================================
   LAYOUT SYSTEM (loaded last). One content edge, one type scale, one spacing scale for every page.
   Born from the measured audit of 15.11.2026 (tools/layout_audit.py): on desktop titles sat on three different
   edges (56, 100 and 156 px from the right), section paddings used ten different values (84-174 px), h2 sizes ran
   from 26 to 92 px, and text covered faces on the cards and the quotes page.
   ===================================================================================================== */
:root {
  --gutter: clamp(20px, 4.4vw, 64px);                         /* phone side margin: 20 px, never less */
  --E: max(var(--gutter), calc((100vw - 1240px) / 2));        /* THE content edge: header, titles, text, footer */
  --sec: clamp(72px, 9vw, 136px);                             /* space above and below a section */
  --sec-lg: clamp(96px, 13vw, 190px);                         /* moments: the statement, the quote band */
  --t-h1: clamp(50px, 8.4vw, 128px);                          /* page title */
  --t-h2: clamp(38px, 5.2vw, 82px);                           /* section title, everywhere */
  --t-h3: clamp(26px, 2.6vw, 40px);                           /* sub-section title (gallery eras, about) */
  --t-gap: clamp(18px, 1.8vw, 28px);                          /* title to the text under it */
  --eyebrow-gap: 14px;                                        /* small label to its title */
}
html { scroll-padding-top: calc(var(--bar-h) + 16px); }        /* an anchored title never lands under the header */

/* ---- one content edge ---- */
.bar, .home-hero, .page-hero, .wrap, .statement, .chapter, .quote-band, .q, .next-page, .foot,
.voice-stage, .voice-after, .un-stage, .un-intro { padding-inline: var(--E); }
.wrap, .page-hero-in, .statement, .next-page, .q-in, .ch-grid, .war-grid, .intel-grid, .legacy-grid, .mosaic, .voice-after, .un-stage { max-width: none; }
.statement, .next-page, .voice-after, .un-stage { margin-inline: 0; }
.pres-head { margin-inline: 0; max-width: 860px; }
/* the two sticky chapters carry the edge on their inner stages, not twice (phone measured 40 px instead of 20) */
.ch-voice, .ch-un { padding-inline: 0; }
/* chapter 5 opened centred, the only chapter title off the edge (587 px from the right on desktop): now it starts on the edge */
.un-intro { margin-inline: 0; max-width: none; text-align: start; }
.un-intro .ch-num { justify-content: flex-start; }
.un-intro p { max-width: 68ch; }
/* the verse and its source: one tight pair, then the normal gap to the text (measured 2 px under the verse) */
.legacy-quote { margin-bottom: 10px; }
.legacy-src { margin-top: 0; margin-bottom: var(--t-gap); }
.hero-cue { inset-inline-start: var(--E); inset-block-end: calc(22px + env(safe-area-inset-bottom)); }
.statement p { max-width: 1000px; }

/* ---- one spacing scale ---- */
.section, .chapter, .work { padding-block: var(--sec); }
.statement { padding-block: var(--sec-lg) var(--sec); }
.quote-band { padding-block: var(--sec-lg); }
.page-hero { padding-top: calc(var(--bar-h) + clamp(48px, 9vw, 128px)); padding-bottom: clamp(40px, 6vw, 88px); }
.next-page { padding-block: clamp(56px, 8vw, 112px); }
.era { padding-top: var(--sec); }
.ch-voice, .ch-un { padding-top: var(--sec); }
.voice-after { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 0; }
.tl-decade { margin: clamp(28px, 5vw, 72px) 0 clamp(8px, 1.4vw, 20px); }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.pres-head { margin-bottom: clamp(36px, 5vw, 64px); }
.farewell { padding-top: var(--sec-lg); }

/* ---- one type scale, one distance from title to text ---- */
.eyebrow, .ch-num { margin-bottom: var(--eyebrow-gap); }
.page-hero h1 { font-size: var(--t-h1); line-height: 1.02; margin-bottom: var(--t-gap); max-width: 14ch; }
.chapter h2, .work h2, .section-head h2, .continuity h2, .pres-head h2, .un-intro h2 { font-size: var(--t-h2); line-height: 1.06; margin-bottom: var(--t-gap); }
.voice-text h2 { margin-bottom: var(--t-gap); }                    /* "the voice" keeps its larger size on purpose */
.intel-file h2 { font-size: calc(var(--t-h2) * .82); }
.section-head h2 { margin-bottom: 0; }                               /* its link sits beside it; the head itself has the gap */
.era-head h2, .prose h2 { font-size: var(--t-h3); }
.prose h2 { margin: clamp(40px, 5vw, 64px) 0 var(--t-gap); }
p { max-width: 68ch; }
.statement p, .quote-band p, .q blockquote p, .voice-words, .un-line { max-width: none; }

/* ---- cards: picture on top, words below. The words never sit on a face ---- */
.work-card { display: flex; flex-direction: column; min-height: 0 !important; background: #1d2435; }
.work-card::after { display: none; }
.work-card > img:not(.wc-emblem) { position: relative; inset: auto; z-index: 0; display: block; width: 100%; height: var(--card-img, clamp(190px, 16vw, 250px)); object-fit: cover; opacity: .9; }
.wc-1, .wc-2 { --card-img: clamp(220px, 25vw, 360px); }
.work-card .wc-in { position: relative; inset: auto; flex: 1; display: flex; flex-direction: column; padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) clamp(20px, 2.2vw, 30px); }
.work-card .wc-go { margin-top: auto; align-self: flex-start; }
.works-grid { align-items: stretch; }

/* ---- the quotes page: the portrait has its own side, the words have theirs ---- */
.q { min-height: min(88svh, 960px); }
.q-photo { inset-inline-start: auto; inset-inline-end: 0; width: min(46vw, 700px); }
.q-photo { -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 96%), linear-gradient(to top, transparent 0%, #000 40%); mask-image: linear-gradient(to right, #000 30%, transparent 96%), linear-gradient(to top, transparent 0%, #000 40%); }
.q blockquote { max-width: min(54%, 780px); }
.q-photo img { opacity: .5; }

@media (max-width: 900px) {
  /* the home portrait: the face sits above the name, not under it */
  .scene .hero-photo { height: 62%; }
  .scene .hero-photo img { object-position: 50% 30%; }
  /* quotes: the portrait across the top, the words below it */
  .q { align-items: end; min-height: 92svh; padding-top: 46svh; }
  .q-photo { inset: 0 0 auto 0; width: 100%; height: 54svh; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 45%); mask-image: linear-gradient(to top, transparent 0%, #000 45%); }
  .q-photo img { opacity: .55; }
  .q blockquote { max-width: none; }
  .work-card > img:not(.wc-emblem), .wc-1, .wc-2 { --card-img: 220px; }
  .work-card > img:not(.wc-emblem) { height: 220px; }
}

/* ---- desktop: two content edges only. The start edge (--E) and the start of the second half of the grid.
   Measured before: chapter titles at 100, 556, 749 and 756 px from the right. One column gap makes it 100 and 756. ---- */
:root { --col-gap: clamp(28px, 5vw, 80px); }
.voice-stage, .legacy-grid, .work-grid, .continuity, .intel-grid, .ch-grid { column-gap: var(--col-gap); }
@media (min-width: 901px) {
  /* chapter 2 was a three-column triptych whose title sat on its own edge: portrait on the start half, words and the second photo on the other */
  .war-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "main text" "main side"; column-gap: var(--col-gap); row-gap: clamp(28px, 3vw, 44px); align-items: start; }
  .photo-war-main { grid-area: main; align-self: center; justify-self: start; width: min(100%, 460px); }
  .war-text { grid-area: text; align-self: end; }
  .photo-war-side { grid-area: side; align-self: start; justify-self: start; width: min(64%, 380px); }
}
/* a name and its role are one pair (measured 7 px apart, now even with the verse pair) */
.person h3 { margin-bottom: 10px; }

/* ---- no lone last word (Daniel's rule, memory no-orphan-words): short blocks balance their lines, paragraphs avoid
   a one-word last line. Measured on the sheets of 15.11: "מאנגלית)" and "הרצוג)" alone under a source line, "עיניו." alone. ---- */
p, li, blockquote p { text-wrap: pretty; }
h1, h2, h3, cite, figcaption, .eyebrow, .ch-num, .wc-line, .ll-text p, .un-src, .legacy-src, .yt-note, .lead, .viewer-fig figcaption { text-wrap: balance; }

/* ---- the UN stage on a short phone (up to 700 px tall): document, three lines and the source must fit one screen.
   Measured on 320 x 568: the source line ran over the last line. ---- */
@media (max-width: 900px) and (max-height: 700px) {
  .un-stage { gap: 10px; padding-bottom: 44px; }
  .un-doc { width: min(46vw, 210px); }
  .un-line { font-size: 17px; margin-bottom: 8px; }
  .un-after { font-size: 14px; padding-top: 10px; }
  .un-src { font-size: 12px; inset-block-end: 12px; }
}

/* ===== UI/UX review pass 2 (16.11.2026, review/uiux/UIUX-PROMPT.md) ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.chapter { scroll-margin-top: var(--bar-h); }

/* G-05 reading text (captions, sources, dates, notes) never under 14 px on phones, 15 px from 900 px */
.tl-date small, .yt-note, .book-he, .un-src, .viewer-fig small, .quote-trio cite, .work blockquote cite, .brand-years { font-size: 14px; }
@media (min-width: 901px) {
  figcaption, .tl-date small, .yt-note, .book-he, .un-src, .viewer-fig small, .quote-trio cite, .work blockquote cite { font-size: 15px; }
}
@media (max-width: 900px) and (max-height: 700px) { .un-src { font-size: 14px; } }

/* G-06 no tracking on Hebrew letters (digits and Latin keep theirs); 14 px makes up for the lost width */
.eyebrow, .ch-num, .next-page small { letter-spacing: 0; font-size: 14px; }
.file-stamp { letter-spacing: 0; font-size: 16px; }

/* G-03 the bronze eyebrow on the family banner stood on light stone (2.39:1): a soft graphite veil behind the words only */
.ph-veil .page-hero-in { position: relative; }
.ph-veil .page-hero-in::before { content: ""; position: absolute; z-index: -1; inset: -28px calc(-1 * var(--gutter)); pointer-events: none;
  background: radial-gradient(120% 90% at 65% 45%, rgba(30,33,38,.9) 0%, rgba(30,33,38,.72) 50%, rgba(30,33,38,0) 88%); }

/* G-08 the open photo viewer hides the page behind it (the header showed through under the close button) */
.viewer::backdrop { background: rgba(10,12,16,.95); }

/* G-10 reading width on wide screens: single-column paragraphs stop at about 68 characters, on the start edge */
@media (min-width: 901px) {
  .pres-head p, .prose p:not(.lead), .legacy-text p { max-width: 68ch; }
}

/* G-11 a focus ring that shows on bronze buttons */
.btn-primary:focus-visible, .yt button:focus-visible .yt-play { outline: 2px solid var(--stone); outline-offset: 2px; box-shadow: 0 0 0 2px var(--graphite); }

/* S2-01 chapter index on the story banner (the works index component) */
.story-index { margin-top: clamp(28px, 4vw, 44px); max-width: 760px; }

/* S2-03 the "secret" stamp gets its own line on phones instead of touching the chapter line */
@media (max-width: 600px) {
  .intel-file .file-stamp { position: relative; top: auto; inset-inline-end: auto; display: table; margin: 0 0 16px auto; margin-inline-start: auto; margin-inline-end: 0; }
}

/* S4-01 on phones the paper moon of the timeline banner sat half under the header: crop the art from the right */
@media (max-width: 600px) { .ph-bg img[src*="bg-hills"] { object-position: 78% 50%; } }

/* S7-01 family rows on phones: picture on top, words below at full width (25 characters per line before) */
@media (max-width: 600px) {
  .person { display: block; }
  .person > .photo { width: min(100%, 240px); margin: 0 0 18px; }
  .person > div { width: auto; }
}

/* S3-02 video facade states: the poster stays until the player has loaded, then the player fades in over it */
.yt .yt-media { opacity: 0; transition: opacity 240ms cubic-bezier(.16,1,.3,1); z-index: 1; }
.yt.is-playing .yt-media { opacity: 1; z-index: 3; }
.yt button { z-index: 2; }
.yt.is-loading .yt-play[data-wait] { color: transparent; }
.yt.is-loading .yt-play[data-wait] svg { visibility: hidden; }
.yt.is-loading .yt-play[data-wait]::after { content: attr(data-wait); position: absolute; inset: 0; display: grid; place-items: center; color: var(--graphite); }
.yt.is-loading button { cursor: progress; }
.yt-fail { position: absolute; inset: auto 0 0; z-index: 3; padding: 14px 16px; background: rgba(30,33,38,.92); color: var(--stone); text-align: center; font: 600 15px/1.4 var(--sans); }
html.reduce-motion .yt .yt-media { transition: none; }

/* S2-02 redaction bars: one bar per line fragment (an absolute ::before on a mark that wraps over two lines drew a thin
   vertical sliver instead of covering both lines); the bar shrinks toward the left, so words reveal in reading order */
.redact mark::before { content: none; }
.redact mark { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: left center;
  background-size: calc(var(--cover, 1) * 100%) 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 450ms cubic-bezier(.77,0,.175,1); }
html:not(.js) .redact mark, .redact.is-open mark { background-size: 0 100%; }
html.reduce-motion .redact mark { background-size: 0 100%; transition: none; }

/* G-01 the home portrait fades in as soon as it has loaded (same 1.6 s and curve as the old GSAP tween), so the first
   meaningful paint no longer waits for the motion library */
.js .hero-photo img { transition: opacity 1.6s cubic-bezier(.215,.61,.355,1), transform 1.6s cubic-bezier(.215,.61,.355,1); }
.js .hero-photo img.is-loaded { opacity: 1; transform: none; }
html.reduce-motion .hero-photo img { transition: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hero-photo img { transition: none; opacity: 1; transform: none; } }

/* Daniel 16.11.2026: a photo under the pointer shows its original print (the colour photos in colour) instead of
   fading toward black and white; keyboard focus does the same. Touch keeps the blue toning (the viewer shows the original). */
.photo-btn img { transition: transform 220ms cubic-bezier(.16,1,.3,1), filter 260ms cubic-bezier(.16,1,.3,1); }
.photo-btn::before { transition: opacity 260ms cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) {
  .photo-btn:hover img { filter: none; }
  .photo-btn:hover::before { opacity: 0; }
}
.photo-btn:focus-visible img { filter: none; }
.photo-btn:focus-visible::before { opacity: 0; }

/* ===== Hero, Daniel 16.11.2026: the name written letter by letter (tools/hero_name.py paths), a strong black shadow,
   and on wide screens the text block raised into the sky above the hills (it sat on the hills and the cypresses) ===== */
.hero-name .mask { overflow: visible; padding: 0; margin: 0; }
.hero-name .mask-in, .js .hero-name .mask-in { transform: none; }
.hero-name .hn { display: block; overflow: visible;
  filter: drop-shadow(0 .025em 0 rgba(0,0,0,.65)) drop-shadow(0 .07em .12em rgba(0,0,0,.8)); }
.hn-l { fill: var(--stone); }
.hn-l.is-writing { stroke: var(--stone); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
@media (min-width: 901px) {
  .home-hero { align-items: center; padding-bottom: calc(max(14.2vw, 104px) + 3vh); }
  .home-hero .hero-name { font-size: clamp(84px, min(13vw, 20vh), 220px); margin-bottom: 20px; }
  .home-hero .hero-eyebrow { font-size: 16px; margin-bottom: 12px; }
  .home-hero .hero-roles { margin-bottom: 26px; }
}
/* the letter paths carry 0.04 em of air on each side for the pen stroke: pull the name back onto the content edge */
.hero-name .hn { margin-inline-start: -.04em; }
/* Daniel 16.11.2026: on phones "חיים הרצוג" sits on one line, as wide as the column allows */
@media (max-width: 600px) {
  .home-hero .hero-name { display: flex; flex-direction: row; align-items: flex-end; gap: .1em; font-size: calc((100vw - 2 * var(--E)) / 4.18); }
  .home-hero .hero-name .mask { flex: none; }
}

/* ===== Smooth scrolling (16.11.2026): Lenis glides the page; its required rules, and shorter sticky stages so a held
   stage never feels stuck (voice 260 -> 210 vh, UN 300 -> 240 vh, the same steps over less scroll) ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.voice-track { height: 210vh; }
.un-track { height: 240vh; }

/* ===== Hero buttons (Daniel 16.11.2026: "they feel very plain"). One clear primary, in the site's own language: a bronze
   plaque with an engraved inner frame and the arrow in a dark seal; the second action is a quiet underlined line,
   not a second box. Hover: the plaque lifts, the seal slides toward the reading direction, the underline draws in. ===== */
.hero-actions { align-items: center; gap: 14px 30px; }
.btn-plaque { position: relative; min-height: 58px; padding-block: 0; padding-inline: 26px 10px; gap: 16px; border-radius: 3px;
  font: 700 19px/1 var(--serif); letter-spacing: 0; background: var(--bronze); color: var(--graphite);
  box-shadow: inset 0 0 0 1px rgba(30,33,38,.32), inset 0 0 0 5px var(--bronze), inset 0 0 0 6px rgba(30,33,38,.26),
              0 2px 0 rgba(0,0,0,.55), 0 14px 26px -8px rgba(0,0,0,.75);
  transition: transform 220ms cubic-bezier(.16,1,.3,1), box-shadow 220ms cubic-bezier(.16,1,.3,1), background-color 160ms ease; }
.btn-plaque .btn-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--graphite); color: var(--bronze);
  transition: transform 260ms cubic-bezier(.16,1,.3,1); }
.btn-plaque .btn-i svg { width: 18px; height: 18px; }
.btn-line { min-height: 48px; padding: 0 2px; gap: 10px; border: 0; border-radius: 0; font: 700 19px/1 var(--serif); color: var(--stone);
  background: linear-gradient(var(--bronze), var(--bronze)) no-repeat; background-size: 34% 1px; background-position: right calc(50% + 17px);
  transition: background-size 320ms cubic-bezier(.16,1,.3,1), color 160ms ease; }
.btn-line svg { width: 16px; height: 16px; opacity: .7; transition: transform 260ms cubic-bezier(.16,1,.3,1), opacity 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .btn-plaque:hover { background-color: #c3ad8b; transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(30,33,38,.32), inset 0 0 0 5px #c3ad8b, inset 0 0 0 6px rgba(30,33,38,.26),
                0 3px 0 rgba(0,0,0,.55), 0 20px 30px -8px rgba(0,0,0,.8); }
  .btn-plaque:hover .btn-i { transform: translateX(-4px); }
  .btn-line:hover { background-size: 100% 1px; }
  .btn-line:hover svg { transform: translateX(-4px); opacity: 1; }
}
.btn-plaque:active { transform: scale(.97); }
.btn-line:focus-visible { outline: 2px solid var(--stone); outline-offset: 4px; }
html.reduce-motion .btn-plaque, html.reduce-motion .btn-plaque .btn-i, html.reduce-motion .btn-line, html.reduce-motion .btn-line svg { transition: none; }
@media (max-width: 600px) { .btn-plaque, .btn-line { font-size: 18px; } .btn-plaque { min-height: 54px; } }

/* ===== The portrait breathes (Daniel 16.11.2026: "push in, push out, gently"): 4% over 12 s each way, centred just
   above the chin so the face never moves toward the name; starts when the fade-in ends ===== */
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
.js .hero-photo img.is-loaded { transform-origin: 50% 55%; animation: hero-breathe 12s cubic-bezier(.45,0,.55,1) 1.6s infinite alternate; }
html.reduce-motion .hero-photo img.is-loaded { animation: none; }
@media (prefers-reduced-motion: reduce) { .js .hero-photo img.is-loaded { animation: none; } }
.is-off .hero-photo img { animation-play-state: paused; }

/* ===== Page to page (16.11.2026): a soft cross-fade instead of a white flash between pages (cross-document View
   Transitions; browsers without them simply load the page as before). The header stays put. ===== */
@view-transition { navigation: auto; }
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: vt-out 260ms cubic-bezier(.55,0,1,.45) both; }
::view-transition-new(root) { animation: vt-in 420ms cubic-bezier(.16,1,.3,1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* no flash before the script runs: the letters and the moon stay hidden until the writing and the placing begin
   (seen in the first recording: the whole name and the moon in its old place blinked for a moment) */
.js .hero-name:not(.is-written) .hn-l { fill-opacity: 0; }
.js .home-hero .sc-moon, .js .home-hero .sc-cloud { opacity: 0; }
html.reduce-motion .hero-name .hn-l { fill-opacity: 1 !important; }
html.reduce-motion .home-hero .sc-moon, html.reduce-motion .home-hero .sc-cloud { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-name .hn-l { fill-opacity: 1 !important; }
  .js .home-hero .sc-moon, .js .home-hero .sc-cloud { opacity: 1 !important; }
}

/* ===== Hero roles (Daniel 16.11.2026): the role words lead, "היה" stays quiet; roles share one cell and change with
   anticipation and overshoot (site.js); a bronze line marks the current one ===== */
.hero-roles { text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.hero-roles > span[aria-hidden]:not(.roles-window) { font-weight: 400; color: var(--stone-dim); }
.roles-window { display: inline-grid; height: auto; overflow: visible; }
.roles-track { display: grid; justify-items: start; color: var(--stone); font-weight: 700; }
.roles-track .role { grid-area: 1 / 1; position: relative; white-space: nowrap; height: auto; line-height: 1.25; padding-bottom: .12em; }
.roles-track .role::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--bronze);
  transform: scaleX(var(--u, 0)); transform-origin: var(--uo, right); box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.rm { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em .2em; margin-block: -.08em -.2em; }
.rw { display: inline-block; will-change: transform; }
.js .roles-track .role + .role .rw { transform: translateY(118%); }
html:not(.js) .roles-track .role:not(:last-child), .roles-track.is-static .role:not(:last-child) { visibility: hidden; }
html:not(.js) .roles-track .role:last-child, .roles-track.is-static .role:last-child { --u: 1; }
.roles-track.is-static .rw { transform: none !important; }

/* ===== "המשיכו מכאן" reads as a button (Daniel 16.11.2026): a framed panel on the content edges, the same engraved
   bronze frame as the hero plaque, the arrow in a bronze seal; the whole panel lifts on hover and gives on press ===== */
.next-page { position: relative; isolation: isolate; padding-inline: calc(var(--E) + clamp(22px, 3vw, 48px)); align-items: center;
  transition: transform 260ms cubic-bezier(.16,1,.3,1); }
.next-page::before { content: ""; position: absolute; z-index: -1; inset-block: clamp(30px, 5vw, 70px); inset-inline: var(--E); border-radius: 4px;
  background: rgba(30,36,58,.82);
  box-shadow: inset 0 0 0 1px rgba(182,160,127,.5), inset 0 0 0 7px rgba(30,36,58,.82), inset 0 0 0 8px rgba(182,160,127,.22),
              0 2px 0 rgba(0,0,0,.5), 0 22px 44px -14px rgba(0,0,0,.85);
  transition: box-shadow 260ms cubic-bezier(.16,1,.3,1), background-color 200ms ease; }
.next-page .np-i { display: grid; place-items: center; width: clamp(58px, 6vw, 84px); height: clamp(58px, 6vw, 84px); border-radius: 50%;
  background: var(--bronze); color: var(--graphite); box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 10px 20px -6px rgba(0,0,0,.7);
  transition: transform 260ms cubic-bezier(.16,1,.3,1); }
.next-page .np-i svg { width: 46%; height: 46%; color: var(--graphite); transition: none; }
@media (hover: hover) and (pointer: fine) {
  .next-page:hover { transform: translateY(-3px); }
  .next-page:hover::before { background-color: rgba(36,44,70,.9);
    box-shadow: inset 0 0 0 1px rgba(182,160,127,.85), inset 0 0 0 7px rgba(36,44,70,.9), inset 0 0 0 8px rgba(182,160,127,.35),
                0 3px 0 rgba(0,0,0,.5), 0 30px 54px -14px rgba(0,0,0,.9); }
  .next-page:hover .np-i { transform: translateX(-8px); }
  .next-page:hover svg { transform: none; }
}
.next-page:active { transform: scale(.985); }
.next-page:focus-visible { outline: none; }
.next-page:focus-visible::before { box-shadow: inset 0 0 0 2px var(--stone), inset 0 0 0 7px rgba(30,36,58,.82), 0 22px 44px -14px rgba(0,0,0,.85); }
html.reduce-motion .next-page, html.reduce-motion .next-page .np-i { transition: none; }
@media (max-width: 600px) { .next-page { gap: 16px; } .next-page strong { font-size: clamp(30px, 8.6vw, 38px); } }

/* ===== Paper-portrait loader (16.11.2026, assets/loader.js, tools/loader.py) ===== */
.loader { display: none; }
html.js.show-loader .loader { display: grid; place-items: center; align-content: center; gap: 18px; position: fixed; inset: 0; z-index: 2000;
  background: radial-gradient(70% 60% at 50% 42%, #2b3a7a 0%, #202a46 48%, #17191d 100%);
  animation: ld-safety .5s 8s forwards; }
html.js.show-loader { overflow: hidden; }
.ld-stage { position: relative; width: min(66vw, 52vh, 460px); aspect-ratio: 3 / 4; }
.ld-piece { position: absolute; inset: 0; background: url("loader.webp") center / 100% 100% no-repeat; will-change: transform, opacity; }
.ld-years { margin: 0; font: 700 clamp(18px, 2.2vw, 24px)/1 var(--serif); color: var(--stone); letter-spacing: 0; text-shadow: 0 2px 10px rgba(0,0,0,.6); opacity: 0; }
@keyframes ld-safety { to { opacity: 0; visibility: hidden; } }

/* ===== Page titles written letter by letter (tools/write_titles.py, Daniel 16.11.2026) ===== */
.writ .wt { display: inline; }
.writ .ww { display: inline-block; overflow: visible;
  filter: drop-shadow(0 .02em 0 rgba(0,0,0,.6)) drop-shadow(0 .06em .1em rgba(0,0,0,.65)); }
.writ .ww-first { margin-inline-start: -.02em; }
.writ .wt-keep { white-space: nowrap; }
.writ .hn-l { fill: currentColor; }
.js .writ:not(.is-written) .hn-l { fill-opacity: 0; }
html.reduce-motion .writ .hn-l { fill-opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .js .writ .hn-l { fill-opacity: 1 !important; } }
.writ .ww { margin-block: -.06em; }            /* the shared frame is a little taller than a text line: keep the lines tight */
@media (min-width: 601px) { .ph-bg img[src*="bg-hills"] { object-position: 50% 85%; } }   /* the paper moon no longer peeks under the header */

/* Gallery (Daniel 16.11.2026): every photo in its original colours, no blue toning; hover only zooms a little */
.g-grid .photo-btn img { filter: none; }
.g-grid .photo-btn::before { display: none; }

/* ===== About: the concept (Daniel 16.11.2026) ===== */
.page-hero { overflow-x: clip; overflow-y: visible; }   /* Flow art is never cut flat by the banner's edge */
.about-concept { padding-block: var(--sec) var(--sec-lg); position: relative; }
.about-concept h2 { font-size: var(--t-h2); margin-bottom: var(--t-gap); }
.ac-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.ac-text p { max-width: 62ch; }
.ac-art { margin: 0; justify-self: center; width: min(100%, 360px); }
.ac-quote { margin: clamp(28px, 4vw, 56px) 0; padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 40px); position: relative; isolation: isolate; max-width: 900px; }
.ac-quote::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px; background: rgba(30,36,58,.82);
  box-shadow: inset 0 0 0 1px rgba(182,160,127,.5), inset 0 0 0 7px rgba(30,36,58,.82), inset 0 0 0 8px rgba(182,160,127,.22), 0 22px 44px -14px rgba(0,0,0,.85); }
.ac-quote p { font: 700 clamp(24px, 2.6vw, 36px)/1.35 var(--serif); margin: 0 0 12px; color: var(--stone); }
.ac-quote cite { font-style: normal; color: var(--stone-dim); font-size: 15px; }
.ac-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.ac-card { padding: clamp(20px, 2.4vw, 30px); border-radius: 4px; background: rgba(23,25,29,.55); box-shadow: inset 0 0 0 1px rgba(236,230,218,.1); }
.ac-card h3 { font: 700 clamp(22px, 2vw, 28px)/1.2 var(--serif); margin: 0 0 10px; color: var(--stone); }
.ac-card p { margin: 0; color: var(--stone-dim); }
.ac-credit { margin: clamp(28px, 4vw, 48px) 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.ac-credit span { color: var(--bronze); font: 600 14px/1.4 var(--sans); }
.ac-credit b { font: 700 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); color: var(--stone); }
@media (max-width: 760px) { .ac-grid, .ac-cards { grid-template-columns: 1fr; } .ac-art { width: min(70%, 260px); order: -1; } }
.legal-links li { margin-bottom: 10px; }

/* video facades: our own credited posters (no request to YouTube before a click) and a plain note on what the click does */
.yt .yt-art { object-fit: contain; background: var(--navy); filter: none; mix-blend-mode: normal; opacity: 1; padding: 6% 18%; box-sizing: border-box; }
.yt-privacy { position: absolute; inset: auto 0 0; z-index: 2; margin: 0; padding: 8px 12px; font-size: 13px; line-height: 1.4; color: var(--stone);
  background: linear-gradient(to top, rgba(23,25,29,.88), rgba(23,25,29,0)); text-align: start; pointer-events: auto; }
.yt-privacy a { color: var(--stone); }
.yt.is-playing .yt-privacy, .yt.is-failed .yt-privacy { display: none; }

/* ===== Legal pages (privacy, cookies, terms, accessibility; 16.11.2026) ===== */
.page-hero-legal { padding-bottom: clamp(30px, 5vh, 56px); }
.legal-doc { padding-bottom: var(--sec); }
.legal-doc h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 44px 0 14px; }
.legal-doc p, .legal-doc li { max-width: 68ch; }
.legal-summary { padding: clamp(18px, 2.4vw, 28px); border-radius: 4px; background: rgba(30,36,58,.82);
  box-shadow: inset 0 0 0 1px rgba(182,160,127,.5), inset 0 0 0 7px rgba(30,36,58,.82), inset 0 0 0 8px rgba(182,160,127,.22); }
.legal-summary h2 { margin-top: 0; }
.legal-table { overflow-x: auto; margin: 10px 0 18px; }
.legal-table:focus-visible { outline: 2px solid var(--stone); outline-offset: 4px; }
.legal-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(236,230,218,.14); }
.legal-table th { color: var(--bronze); font-weight: 600; }
.legal-msg { color: var(--stone); margin-inline-start: 12px; }
.todo-contact { color: #e8c58a; font-weight: 600; }
.foot-meta a { white-space: nowrap; }

.btn-ghost { background: transparent; }   /* a <button> with this class kept the browser's grey (axe: 4.28:1) */

.motion-note { display: block; margin-top: 6px; font-size: 13px; color: var(--stone-dim); }

/* ===== Books: our own cut-paper covers from Flow (Daniel 16.11.2026), the title set on the cover's empty upper part ===== */
.books { perspective: 1100px; gap: clamp(14px, 2vw, 28px) clamp(12px, 1.8vw, 24px); }
.book { aspect-ratio: 436 / 640; padding: 0; background: none !important; box-shadow: none; display: block; transform-style: preserve-3d; }
.book-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.book-face { position: absolute; inset-block-start: 9%; inset-inline: 12% 17%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.book-title { font: 700 clamp(14px, 1.25vw, 19px)/1.2 var(--serif); color: var(--stone); direction: ltr; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.book-he { font-size: 13px; color: var(--stone); opacity: .92; line-height: 1.35; }
.book-year { font: 400 clamp(15px, 1.2vw, 18px)/1 var(--serif); color: #e2cfa6; font-variant-numeric: lining-nums; margin-top: 2px; }
.book[data-tone="light"] .book-title { color: #1a1b1f; text-shadow: none; }
.book[data-tone="light"] .book-he { color: #2f3138; opacity: 1; }
.book[data-tone="light"] .book-year { color: #6f5640; }
@media (hover: hover) and (pointer: fine) {
  .book { transition: transform 360ms cubic-bezier(.16,1,.3,1); }
  .book:hover { transform: translateY(-8px) rotateY(-10deg) rotateZ(-1deg); }
}
@media (max-width: 600px) { .book-title { font-size: 14px; } .book-he { font-size: 12.5px; } }

/* ===== President Isaac Herzog (Daniel 16.11.2026: a real place for the current President, no memorial candle) ===== */
.president-son { padding-block: var(--sec-lg); }
.ps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--col-gap); align-items: center; }
.ps-visual { position: relative; display: grid; justify-items: center; gap: 18px; }
.ps-art { margin: 0; width: min(100%, 300px); }
.ps-photo { width: min(100%, 460px); }
.ps-photo + .ps-art { position: absolute; width: min(42%, 170px); inset-block-end: -6%; inset-inline-start: -4%; }
.ps-text h2 { font-size: var(--t-h2); margin-bottom: var(--t-gap); }
.ps-text p { max-width: 62ch; }
.ps-quote { margin: 26px 0 0; padding-inline-start: 18px; border-inline-start: 2px solid var(--bronze); }
.ps-quote p { font: 700 clamp(20px, 1.9vw, 26px)/1.4 var(--serif); margin: 0 0 8px; color: var(--stone); max-width: 52ch; }
.ps-quote cite { font-style: normal; font-size: 14px; color: var(--stone-dim); }
.ps-quote cite a { color: var(--stone-dim); }
@media (max-width: 900px) { .ps-grid { grid-template-columns: 1fr; } .ps-visual { order: -1; } }

.ps-photo-2 { margin-top: 26px; max-width: 560px; }
.ps-photo-2 .photo-btn { aspect-ratio: 16 / 9; }
.ps-photo .photo-btn { aspect-ratio: 4 / 5; }
.ps-photo ~ .ps-art { display: none; }   /* the door icon stays on the timeline; next to the portrait it covered the caption */

/* ===== Roles line, with more love (Daniel 16.11.2026): "היה" + a paper plaque holding the role, its years and its
   cut-paper emblem, linking to that chapter; five ticks fill while each role is shown ===== */
.hero-roles { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; font: 500 clamp(22px, 2.6vw, 34px)/1.2 var(--serif); }
.hr-was { font-weight: 400; color: var(--stone-dim); }
.role-card { position: relative; display: inline-grid; padding: 10px 16px 14px; padding-inline-end: calc(16px + 1.9em); border-radius: 4px; text-decoration: none; color: var(--stone);
  background: rgba(30,36,58,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(182,160,127,.55), inset 0 0 0 6px rgba(30,36,58,.78), inset 0 0 0 7px rgba(182,160,127,.22), 0 14px 30px -10px rgba(0,0,0,.8);
  transition: transform 260ms cubic-bezier(.16,1,.3,1), box-shadow 260ms cubic-bezier(.16,1,.3,1); }
.role-card .roles-track { display: grid; justify-items: start; font-weight: 700; }
.role-card .role { grid-area: 1 / 1; display: grid; grid-template-columns: auto; position: relative; white-space: nowrap; padding: 0; }
.role-card .role::after { content: none; }
.role-txt { font: 700 clamp(26px, 3vw, 40px)/1.15 var(--serif); }
.role-yr { font: 600 clamp(13px, 1.1vw, 15px)/1.3 var(--sans); color: #d9c49d; letter-spacing: 0; margin-top: 2px; font-variant-numeric: lining-nums; }
.role-ic { position: absolute; inset-inline-end: calc(-1.9em - 8px); top: 50%; width: 1.9em; height: 1.9em; margin-top: -1.05em; display: grid; place-items: center; }
.role-ic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.role-ticks { position: absolute; inset-inline: 16px; bottom: 5px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.role-ticks i { height: 2px; border-radius: 2px; background: rgba(236,230,218,.18); position: relative; overflow: hidden; }
.role-ticks i::after { content: ""; position: absolute; inset: 0; background: var(--bronze); transform-origin: right; transform: scaleX(var(--f, 0)); }
@media (hover: hover) and (pointer: fine) {
  .role-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(182,160,127,.9), inset 0 0 0 6px rgba(30,36,58,.78), inset 0 0 0 7px rgba(182,160,127,.35), 0 20px 36px -10px rgba(0,0,0,.85); }
}
.role-card:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.js .role-card .role + .role .rw { transform: translateY(118%); }
html:not(.js) .role-card .role:not(:last-child), .roles-track.is-static .role:not(:last-child) { visibility: hidden; }
.roles-track.is-static .rw, .roles-track.is-static .role-ic, .roles-track.is-static .role-yr { transform: none !important; opacity: 1 !important; }
html:not(.js) .role-ticks, .roles-track.is-static ~ .role-ticks { display: none; }
@media (max-width: 600px) { .hero-roles { gap: .4em; } .role-card { padding: 8px 12px 13px; padding-inline-end: calc(12px + 1.8em); } .role-ic { width: 1.8em; height: 1.8em; } }
/* the emblem sits at the plaque's far end for every role (it followed the words, so short roles left a hole) */
.role-card .role { position: static; }
.role-card { padding-inline-end: calc(22px + 1.9em); }
.role-ic { inset-inline-end: 12px; }
@media (max-width: 600px) { .role-card { padding-inline-end: calc(18px + 1.8em); } .role-ic { inset-inline-end: 9px; } }
/* Daniel 16.11.2026: no frame and no emblem on the roles line */
.role-card { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 0 12px; padding-inline-end: 0; }
.role-ic { display: none; }
.role-ticks { inset-inline: 0; bottom: 0; }
@media (hover: hover) and (pointer: fine) { .role-card:hover { box-shadow: none; transform: none; } }
@media (max-width: 600px) { .role-card { padding: 0 0 12px; } }

/* ===== Phones (Daniel 16.11.2026: "center it and make it a bit bigger"): a centred stack under the name. The kicker
   is centred, the sentence "היה <role>" is centred, the years and the five ticks sit on the column's centre line under
   it. site.js gives the track the width of the role on show, so "היה" glides beside each new role ===== */
@media (max-width: 600px) {
  .home-hero .hero-eyebrow { justify-content: center; text-align: center; }
  /* the name's letters have no descenders, so its reserved descender room plus 24 px left the roles line floating */
  .home-hero .hero-name { margin-bottom: 6px; }
  .home-hero .hero-roles { position: relative; justify-content: center; align-items: baseline; gap: .3em;
    font-size: clamp(24px, 7vw, 30px); padding-bottom: 44px; }
  .home-hero .role-card { position: static; padding: 0; }
  /* one column as wide as the track (an auto column would stay as wide as the longest role and push short ones off centre) */
  .home-hero .role-card .roles-track { justify-items: center; grid-template-columns: minmax(0, 1fr); }
  .home-hero .role-txt { font-size: clamp(31px, 9.4vw, 42px); }
  .home-hero .role-yr { position: absolute; inset-inline: 0; bottom: 14px; margin: 0; text-align: center; font-size: 16px; }
  .home-hero .role-ticks { inset-inline: auto; left: 50%; bottom: 2px; width: 150px; margin-left: -75px; gap: 5px; }
}
/* the years of the waiting roles stay hidden until site.js takes over (they share one spot and flashed stacked) */
.js .role-card .role + .role .role-yr { opacity: 0; }

/* ===== The journey map (journey.html, Daniel 16.11.2026: "מפה זה מצויין"). A Flow cut-paper map painted over real
   coastlines (tools/journey.py), a bronze thread from stop to stop, pins that keep their size while the map zooms
   (--iz = 1 / zoom, set by site.js). Phones: the map sticks under the bar and the stops scroll beneath it; wide screens:
   stops on the reading side, the map beside them. Nothing holds the scroll still. ===== */
.journey { position: relative; padding: 0 var(--E) var(--sec); --jr-stroke: 11; }
.jr-map { position: sticky; top: var(--bar-h); z-index: 3; margin-inline: calc(-1 * var(--E)); }
.jr-frame { position: relative; overflow: hidden; aspect-ratio: 2400 / 1792; background: #1b2340;
  box-shadow: 0 16px 26px -14px rgba(0,0,0,.85); }
.jr-world { position: absolute; inset: 0; transform-origin: 0 0; --iz: 1; }
.jr-img { display: block; width: 100%; height: 100%; }
.jr-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.6)); }
.jr-seg { fill: none; stroke: var(--bronze); stroke-width: var(--jr-stroke); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.jr-pin { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  border: 0; background: none; cursor: pointer; transform: scale(var(--iz)); -webkit-tap-highlight-color: transparent; }
.jr-pin img { position: absolute; left: 50%; top: 50%; pointer-events: none; transition: opacity 240ms cubic-bezier(.16,1,.3,1), transform 240ms cubic-bezier(.16,1,.3,1); }
.jr-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; opacity: .6; }
.jr-dot-on { width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0; transform: scale(.6); }
.jr-pin.is-past .jr-dot { opacity: 1; }
.jr-pin.is-on .jr-dot { opacity: 0; }
.jr-pin.is-on .jr-dot-on { opacity: 1; transform: none; }
.jr-name { position: absolute; left: 50%; bottom: calc(50% + 15px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 700 15px/1.1 var(--serif); color: #1E2126; opacity: 0; transition: opacity 240ms cubic-bezier(.16,1,.3,1);
  text-shadow: 0 0 2px #ECE6DA, 0 0 4px #ECE6DA, 0 0 8px #ECE6DA; }
.jr-pin.is-on .jr-name { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .jr-pin:hover .jr-name { opacity: 1; } .jr-pin:hover .jr-dot { opacity: 1; } }
.jr-pin:focus-visible { outline: 2px solid var(--stone); outline-offset: -6px; border-radius: 50%; }

.jr-stops { list-style: none; margin: 0; padding: 8px 0 34vh; position: relative; z-index: 1; }
.jr-stop { min-height: 58vh; padding-top: 26px; opacity: .42; transition: opacity 360ms cubic-bezier(.16,1,.3,1); }
.jr-stop.is-on { opacity: 1; }
html.reduce-motion .jr-stop { transition: none; }
.jr-when { font: 600 15px/1.3 var(--sans); color: var(--bronze); font-variant-numeric: lining-nums; margin: 0 0 6px; }
.jr-stop h2 { font: 700 var(--t-h3, 30px)/1.15 var(--serif); margin: 0 0 var(--t-gap, 12px); }
.jr-stop p:not(.jr-when) { max-width: 46ch; margin: 0 0 14px; }
.jr-more { font: 600 15px/1.4 var(--sans); color: var(--stone); text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 4px; }
.js .jr-stop h2:focus { outline: none; }
@media (min-width: 900px) {
  .journey { display: grid; grid-template-columns: minmax(280px, 34%) 1fr; column-gap: var(--col-gap, 64px); align-items: start; --jr-stroke: 7; }
  .jr-map { grid-column: 2; grid-row: 1; top: calc(var(--bar-h) + 28px); margin: 0; }
  .jr-frame { border-radius: 4px; }
  .jr-stops { grid-column: 1; grid-row: 1; padding: 14vh 0 40vh; }
  .jr-stop { min-height: 64vh; }
}
/* the waiting stops stay readable (axe: .42 failed contrast on 41 nodes); the stop on show is still the brightest */
.jr-stop { opacity: .64; }
/* President Isaac Herzog in his own colours (Daniel 16.11.2026): the father's archive stays blue-toned, the present
   day is shown as it is */
.president-son .photo-btn img { filter: none; }
.president-son .photo-btn::before { display: none; }

/* ===== Strong words in quotes (Daniel 16.11.2026): the quote is quiet, a few strong words carry it. Bona Nova has only
   400 and 700, so the quiet words are 400 and dimmed, the strong words 700 in full stone; site.js lights them up in
   turn while the quote is scrolled (with reduced motion they are simply lit). ===== */
p.has-hl { color: rgba(236,230,218,.58); font-weight: 400; }
p.has-hl .w > span { font-weight: inherit; }
p.has-hl .hl { color: var(--stone); font-weight: 700; }

/* ===== Life line years and titles (Daniel 16.11.2026): years roll like a counter (site.js yearRoll), nodes pop ===== */
.yr { display: inline-flex; direction: ltr; unicode-bidi: isolate; font-variant-numeric: lining-nums tabular-nums; vertical-align: top; }
.yr-d { display: inline-block; height: 1em; overflow: hidden; }
.yr-c { display: flex; flex-direction: column; }
.yr-c > span { display: block; height: 1em; line-height: 1; }
.ll-anim .ll-item::before { transform: rotate(45deg) scale(0); transition: transform 520ms cubic-bezier(.34,1.56,.64,1); }
.ll-anim .ll-item.ln-in::before { transform: rotate(45deg) scale(1); }

/* Banner art fits inside its banner on wide screens (Daniel 16.11.2026, the pen on "בדבריו" was cut by the first quote):
   the figure spans the banner's height under the bar and the art is contained in it, never taller than the banner */
@media (min-width: 901px) {
  .ph-art { top: calc(var(--bar-h) + 20px); bottom: 20px; translate: none; display: flex; align-items: center; justify-content: center; }
  .ph-art img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
}

/* ===== The end of "בדבריו" (Daniel 16.11.2026: a moving ending, not a button cut by the torn edge): after the last
   words, his signature writes itself like the end of a letter, the years under it; the next page waits below ===== */
.words-end { display: grid; justify-items: center; gap: 16px; text-align: center; padding: clamp(150px, 24vh, 260px) var(--E) clamp(70px, 12vh, 140px); }
.words-end .sig { width: min(72vw, 420px); }
.we-years { font: 300 clamp(24px, 2.4vw, 34px)/1 var(--serif); letter-spacing: .12em; color: var(--bronze); font-variant-numeric: lining-nums; margin: 6px 0 0; }
/* the dates stay full bronze on every stop (axe: bronze at .64 fell under 4.5:1); only the words of waiting stops rest */
.jr-stop { opacity: 1; }
.jr-stop > *:not(.jr-when) { transition: opacity 360ms cubic-bezier(.16,1,.3,1); }
.jr-stop:not(.is-on) > *:not(.jr-when) { opacity: .64; }

/* Quote portraits melt into the page on every inner side (Daniel 16.11.2026: "still very cropped... a fade?"): the two
   masks used to ADD (so the top edge stayed hard); now they intersect: side fade x top-and-bottom fade */
.q-photo { -webkit-mask-image: linear-gradient(to right, #000 28%, transparent 94%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to right, #000 28%, transparent 94%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 900px) {
  .q-photo { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 50%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
}

/* ===== Journey map, take 2 (Daniel 16.11.2026: "fit the phone better, it is choppy and fragmented"). The camera now
   follows the scroll (site.js). Phones: the map fills the screen under the bar, the cards scroll over it with a long
   stretch of open map between them; places sit in the upper third, above the cards. Wide screens: as before, stops
   beside the map. ===== */
.jr-stop { opacity: 1; }
.jr-stop:not(.is-on) > *:not(.jr-when) { opacity: 1; }
.jr-card > * { transition: opacity 360ms cubic-bezier(.16,1,.3,1); }
.jr-card > p:not(.jr-when) { max-width: 46ch; margin: 0 0 14px; }
.jr-card .jr-more { display: inline-block; }
@media (min-width: 900px) {
  .jr-stop:not(.is-on) .jr-card > *:not(.jr-when) { opacity: .64; }
}
@media (max-width: 899px) {
  .journey { padding: 0 0 var(--sec); }
  .jr-map { top: var(--bar-h); height: calc(100svh - var(--bar-h)); margin: 0; z-index: 1; }
  .jr-frame { height: 100%; aspect-ratio: auto; background: #1f2848; box-shadow: none; }
  .jr-world { inset: 0 auto auto 0; width: 100%; height: auto; aspect-ratio: 2400 / 1792; }
  .jr-stops { position: relative; z-index: 2; margin-top: calc(-100svh + var(--bar-h)); padding: 0 16px 46svh; pointer-events: none; }
  .jr-intro { min-height: 0; padding-top: 64svh; }
  .jr-stop { min-height: 0; padding-top: 72svh; }
  .jr-card { pointer-events: auto; background: rgba(24,27,33,.95); border-radius: 4px; padding: 18px 20px 20px;
    box-shadow: 0 20px 40px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(182,160,127,.18) inset; }
  .jr-intro .jr-card p { margin: 0; font-size: 19px; }
  .jr-card h2 { font-size: 26px; }
  .jr-card > p:not(.jr-when) { margin-bottom: 12px; }
  .jr-name { font-size: 16px; }
}

/* phones, take 3: each card rests at the same height (sticky) for most of its stretch of scroll, so the map above it
   stays clear; at the hand-over the old card fades as it leaves and the next one fades in, while the camera glides */
@media (max-width: 899px) {
  .jr-intro, .jr-stop { min-height: 0; padding-top: 0; height: 92svh; }
  .jr-card { position: sticky; top: 55svh; transition: opacity 320ms cubic-bezier(.16,1,.3,1); }
  .jr-stops { padding-bottom: 8svh; }
  .js .jr-stops > li:not(.is-on) .jr-card { opacity: 0; }
  .js .jr-stops > li:not(.is-on) .jr-card:focus-within { opacity: 1; }
  html.reduce-motion .jr-card { transition: none; }
}
@media (max-width: 899px) { .jr-world { -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent); mask-image: linear-gradient(to bottom, #000 90%, transparent); } }

/* Books: three per row on phones too (Daniel 16.11.2026); the cover text follows the size of its own book */
.book { container-type: inline-size; }
.book-title { font-size: clamp(11px, 10.5cqi, 19px); }
.book-he { font-size: clamp(9.5px, 8.4cqi, 13px); line-height: 1.3; }
.book-year { font-size: clamp(11.5px, 10cqi, 18px); }
@media (max-width: 900px) { .books { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; } .book-face { gap: 3px; } }

/* Wide screens (Daniel 16.11.2026: "the map should stay in the middle, not ride up"): the sticky box is the height of
   the screen under the bar and the map sits in its centre; on short screens the map shrinks to fit */
@media (min-width: 900px) {
  .jr-map { top: var(--bar-h); height: calc(100vh - var(--bar-h)); display: flex; align-items: center; justify-content: center; }
  .jr-frame { width: min(100%, calc((100vh - var(--bar-h) - 56px) * 1.3393)); }
}

/* the roles line never wraps (Daniel 16.11.2026: a two-line role made the home page jump); with the role of 1967 now
   "המרגיע של 1967" every role fits one line down to 320 px, and nowrap guards the rest */
.home-hero .hero-roles { flex-wrap: nowrap; }
.home-hero .role-card .role, .home-hero .role-txt { white-space: nowrap; }

/* ===== English site (/en/, 16.11.2026): left to right. Arrows that mean "forward" point right; the viewer's arrows
   follow; the name on one line on phones uses its own width (Chaim Herzog = 6.69 em with the gap) ===== */
html[dir="ltr"] svg:has(> path[d^="M19 12H5"]) { transform: scaleX(-1); }
html[dir="ltr"] .v-nav svg { transform: scaleX(-1); }
@media (max-width: 600px) { html[lang="en"] .home-hero .hero-name { font-size: calc((100vw - 2 * var(--E)) / 6.69); } }
/* the language switch: a quiet link in the bar and in the menu, like the menu button */
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--stone-dim); text-decoration: none;
  font: 600 15px/1 var(--sans); border-bottom: 1px solid rgba(182,160,127,.5); white-space: nowrap; }
.lang-switch:hover { color: var(--stone); }
.lang-switch:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.menu-lang { margin: 22px 0 0; }
.menu-lang .lang-switch { font-size: 17px; }

/* English hero and bar fits (16.11.2026): the longest English role ("an intelligence officer") fits a 320 px phone; on
   narrow phones the bar drops the years (the hero shows them) so the name, the language switch and Menu stay on one line;
   on wide screens the English text sits on the right like the Hebrew, clear of the portrait on the left */
@media (max-width: 600px) { html[lang="en"] .home-hero .role-txt { font-size: clamp(22px, 7.2vw, 34px); } }
@media (max-width: 440px) { .bar .brand-years { display: none; } }
.brand-name { white-space: nowrap; }
@media (min-width: 901px) { html[dir="ltr"] .home-hero .hero-text { justify-self: end; } }

/* ===== The tear, looping behind "לצפייה בנאום" (Daniel 16.11.2026: "הקריעה של הנייר כגיף"). Our own Flow animation
   (the UN footage needs a UN licence): muted, plays only while on screen, gone once the speech plays; reduced motion
   keeps the still of the torn page (the poster) ===== */
.yt-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.yt.is-playing .yt-loop { visibility: hidden; }

/* English pages fill left to right (Daniel 16.11.2026: the role ticks filled right to left): every fill that grows
   from the start side takes the left on LTR pages */
html[dir="ltr"] .role-ticks i::after, html[dir="ltr"] .bar-progress i, html[dir="ltr"] .rule, html[dir="ltr"] .nav a::after { transform-origin: left center; }
html[dir="ltr"] .roles-track .role { --uo: left; }

/* ===== Classroom page (classroom.html, 16.11.2026): a lesson plan, a printable worksheet, a quiz ===== */
.cls-part { margin-top: var(--sec); }
.cls-part:first-child { margin-top: 0; }
.cls-goals { max-width: 68ch; margin-top: var(--t-gap, 14px); }
.cls-goals h3, .cls-step h3 { font: 700 var(--t-h3, 26px)/1.2 var(--serif); margin: 0 0 8px; }
.cls-goals ul { margin: 0 0 12px; padding-inline-start: 1.2em; }
.cls-goals li { margin-bottom: 6px; }
.cls-fit { color: var(--stone-dim); font-size: 15px; }
.cls-steps { list-style: none; margin: 34px 0 0; padding: 0; position: relative; display: grid; gap: 26px; max-width: 760px; }
.cls-steps::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 5px; width: 1px; background: rgba(182,160,127,.45); }
.cls-step { position: relative; padding-inline-start: 34px; }
.cls-step::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 11px; height: 11px; background: var(--graphite); border: 1px solid var(--bronze); transform: rotate(45deg); }
.cls-min { font: 600 14px/1.3 var(--sans); color: var(--bronze); margin: 0 0 4px; font-variant-numeric: lining-nums; }
.cls-step p:not(.cls-min) { max-width: 62ch; margin: 0; }
.cls a { color: var(--stone); text-decoration-color: var(--bronze); text-underline-offset: 3px; }
/* the worksheet: a sheet of paper on screen, and the only thing on the page when printed */
.ws-print { margin-inline-start: 10px; }
.ws-sheet { margin-top: 26px; max-width: 760px; background: #ECE6DA url("art/grain.webp"); background-blend-mode: soft-light; color: #1E2126;
  padding: clamp(22px, 4vw, 44px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.8); }
.ws-head { font: 700 18px/1.4 var(--serif); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 0 0 18px; }
.ws-head span { font: 400 15px/1.4 var(--sans); }
.ws-q { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 16px; }
.ws-q li { font-size: 17px; line-height: 1.5; }
.ws-lines { display: block; height: 66px; margin-top: 6px; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(30,33,38,.35) 31px 32px); }
.ws-foot { margin: 22px 0 0; font-size: 13px; color: #4a4d55; }
@media print {
  html.print-ws body > *:not(main), html.print-ws main > *:not(.cls), html.print-ws .cls > *:not(.ws), html.print-ws .ws > *:not(.ws-sheet),
  html.print-ws .backdrop, html.print-ws .bar { display: none !important; }
  html.print-ws, html.print-ws body { background: #fff !important; }
  html.print-ws .ws-sheet { box-shadow: none; transform: none; background: #fff; max-width: none; padding: 0; margin: 0; }
  html.print-ws .ws-lines { height: 80px; }
}
/* the quiz: one question at a time to answer, the answer explained, a score at the end */
.quiz { margin-top: 26px; display: grid; gap: 22px; max-width: 820px; }
.qz { border: 0; margin: 0; padding: 20px 22px 22px; background: rgba(24,27,33,.55); box-shadow: inset 0 0 0 1px rgba(182,160,127,.2); border-radius: 4px; }
.qz legend { float: inline-start; width: 100%; font: 700 clamp(19px, 2vw, 23px)/1.35 var(--serif); margin: 0 0 14px; padding: 0; }
.qz-n { display: inline-block; min-width: 1.6em; color: var(--bronze); font-variant-numeric: lining-nums; }
.qz-opts { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .qz-opts { grid-template-columns: 1fr; } }
.qz-opts button { appearance: none; text-align: start; font: 500 16px/1.4 var(--sans); color: var(--stone); background: rgba(236,230,218,.05);
  border: 1px solid rgba(236,230,218,.22); border-radius: 4px; padding: 12px 14px; min-height: 48px; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 150ms cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) { .qz:not(.is-done) .qz-opts button:hover { background: rgba(236,230,218,.1); border-color: rgba(182,160,127,.7); } }
.qz-opts button:active { transform: scale(.98); }
.qz-opts button:focus-visible { outline: 2px solid var(--stone); outline-offset: 2px; }
.qz.is-done .qz-opts button { cursor: default; opacity: .55; }
.qz-opts button.is-right { opacity: 1 !important; border-color: var(--bronze); background: rgba(182,160,127,.18); }
.qz-opts button.is-right::after { content: " ✓"; color: var(--bronze); font-weight: 700; }
.qz-opts button.is-wrong { opacity: 1 !important; border-color: rgba(236,230,218,.5); text-decoration: line-through; text-decoration-color: rgba(236,230,218,.5); }
.qz-why { display: none; margin: 14px 0 0; color: var(--stone-dim); max-width: 66ch; }
.qz.is-done .qz-why { display: block; }
.qz-res { display: block; font: 600 15px/1.4 var(--sans); color: var(--bronze); margin-top: 12px; }
.quiz-score { font: 700 clamp(22px, 2.4vw, 28px)/1.3 var(--serif); margin: 6px 0 0; }
.quiz-again { margin-top: 12px; }

/* ===== Arabic site (/ar/, 16.11.2026): Amiri for headings and quotes, IBM Plex Sans Arabic for text; the Latin and digits
   keep the site's own faces (Bona Nova, IBM Plex), so years look the same in all three languages ===== */
html[lang="ar"] { --serif: "Amiri", "Bona Nova", serif; --sans: "IBM Plex Sans Arabic", "IBM Plex Sans Hebrew", Arial, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
html[lang="ar"] .split .w { padding-block: .14em .22em; margin-block: -.14em -.22em; }
.lang-links { display: inline-flex; gap: 14px; align-items: center; }

/* ===== Arabic home name (16.11.2026): "حاييم هرتسوغ" is 4.24 em wide with the gap and its غ swash is real ink below the
   baseline, so the box keeps most of that descent (the letter paths pull it up by .6 em) and the name stays on one line
   at every width; marks above and below Arabic letters get more room inside the reveal masks ===== */
html[lang="ar"] .hero-name .hn { margin-bottom: -.16em !important; }
html[lang="ar"] .rm { padding-block: .3em .35em; margin-block: -.3em -.35em; }
/* site.css gives every span in the roles track a 1.25 em border-box height, which ate the bigger padding and cut the
   ج and ي under the line */
html[lang="ar"] .roles-track .rm { height: auto; }
html[lang="ar"].js .role-card .role + .role .rw { transform: translateY(175%); }
@media (max-width: 600px) { html[lang="ar"] .home-hero .hero-name { font-size: calc((100vw - 2 * var(--E)) / 4.26); margin-bottom: .2em; } }
@media (min-width: 601px) {
  html[lang="ar"] .home-hero .hero-name { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: .1em; }
  html[lang="ar"] .home-hero .hero-name .mask { flex: none; }
}
@media (min-width: 601px) and (max-width: 900px) { html[lang="ar"] .home-hero .hero-name { font-size: min(calc((100vw - 2 * var(--E)) / 4.3), 20vh); } }
@media (min-width: 901px) { html[lang="ar"] .home-hero .hero-name { font-size: clamp(72px, min(10.5vw, 17vh), 160px); } }

/* ===== Primary sources (16.11.2026): the original UN documents under the UN quote on works.html, and the list on
   about.html#primary. Quiet like a cite; links keep a 44 px tap area through padding ===== */
.src-docs { font-size: 14px; color: var(--stone-dim); margin-top: 14px; line-height: 1.6; }
.src-docs a { color: var(--stone); text-underline-offset: 3px; display: inline-block; padding-block: 10px; margin-block: -10px; }
.src-primary li { margin-bottom: 10px; }
.src-primary li b { color: var(--stone); }
@media (max-width: 600px) { .src-docs { font-size: 15px; } }

/* ===== Projection mode on story.html (25.11.2026): the start button under the chapter index, and a quiet bar at the
   bottom while the story plays (pause/resume, end, a hairline of progress). Hidden in print. ===== */
.story-play { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 22px 0 0; }
.story-play .sp-start svg { width: 14px; height: 14px; opacity: .9; }
.story-play .sp-note { font-size: 15px; color: var(--stone-dim); max-width: 46ch; }
.story-print { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 12px 0 0; }
.story-print .sp-start svg { width: 15px; height: 15px; opacity: .9; margin-inline-end: 8px; }
.story-print .sp-note { font-size: 15px; color: var(--stone-dim); max-width: 46ch; }
.story-play + .story-print { margin-top: 12px; }
.sp-bar { position: fixed; z-index: 60; inset-inline: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin-inline: auto; width: max-content;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(24,27,33,.92);
  box-shadow: 0 0 0 1px rgba(182,160,127,.35), 0 10px 26px -10px #000; overflow: hidden;
  opacity: 0; transform: translateY(12px); transition: opacity 240ms cubic-bezier(.16,1,.3,1), transform 240ms cubic-bezier(.16,1,.3,1); }
.sp-bar.is-on { opacity: 1; transform: none; }
.sp-bar button { appearance: none; border: 0; background: transparent; color: var(--stone); font: 600 15px/1 var(--sans);
  min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; transition: background-color 150ms ease; }
.sp-bar .sp-toggle { background: rgba(182,160,127,.18); }
.sp-bar.is-paused .sp-toggle { background: var(--bronze); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sp-bar button:hover { background: rgba(236,230,218,.12); } .sp-bar.is-paused .sp-toggle:hover { background: #c6b190; } }
.sp-bar button:focus-visible { outline: 2px solid var(--stone); outline-offset: -2px; }
.sp-prog { position: absolute; inset-inline: 18px; bottom: 3px; height: 2px; background: rgba(236,230,218,.12); pointer-events: none; }
.sp-prog i { position: absolute; inset: 0; background: var(--bronze); transform-origin: right center; transform: scaleX(0); }
html[dir="ltr"] .sp-prog i { transform-origin: left center; }
@media print { .story-play, .sp-bar { display: none !important; } }

/* ===== Teacher's answer key under the worksheet (25.11.2026): folded by default, never printed with the sheet ===== */
.ws-key { margin-top: 22px; max-width: 820px; border-top: 1px solid rgba(182,160,127,.3); }
.ws-key summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px;
  font: 700 19px/1.3 var(--serif); color: var(--stone); }
.ws-key summary::-webkit-details-marker { display: none; }
.ws-key summary::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(182,160,127,.6);
  border-radius: 50%; color: var(--bronze); font: 400 18px/1 var(--sans); transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.ws-key[open] summary::before { content: "−"; }
.ws-key summary:focus-visible { outline: 2px solid var(--stone); outline-offset: 4px; }
.ws-key-note { color: var(--stone-dim); font-size: 15px; margin: 0 0 12px; }
.ws-key ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 10px; color: var(--stone); }
.ws-key li { line-height: 1.6; max-width: 72ch; }
@media print { .ws-key { display: none !important; } }
/* footer share (25.11.2026) */
.foot-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.foot-acts:has(.share-btn[hidden]) { display: none; }
.share-msg { font-size: 14px; color: var(--bronze); }

/* UN document from Flow paper (25.11.2026, tools/un_doc.py): an intact sheet until the tear starts, then two halves
   torn along one line (white fibre core on half A). The text stays HTML, masked by each half's own shape.
   .has-art is added by site.js when the chapter comes near, so the three images never compete with the page's top. */
.un-whole { position: absolute; inset: 0; display: none; }
.un-doc.has-art { aspect-ratio: var(--un-ar, 900 / 1203); }
.un-doc.has-art .un-whole { display: block; }
.un-doc.has-art .un-whole, .un-doc.has-art .un-half { clip-path: none; filter: drop-shadow(0 22px 28px rgba(0,0,0,.42)); }
.un-doc.has-art .un-paper { background: center / 100% 100% no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; box-shadow: none; }
/* named per layer: WebKit drops a mask url() passed through a custom property */
.un-doc.has-art .un-whole .un-paper { background-image: url("art/un-sheet.webp"); -webkit-mask-image: url("art/un-sheet.webp"); mask-image: url("art/un-sheet.webp"); }
.un-doc.has-art .un-half-a .un-paper { background-image: url("art/un-half-a.webp"); -webkit-mask-image: url("art/un-half-a.webp"); mask-image: url("art/un-half-a.webp"); }
.un-doc.has-art .un-half-b .un-paper { background-image: url("art/un-half-b.webp"); -webkit-mask-image: url("art/un-half-b.webp"); mask-image: url("art/un-half-b.webp"); }
.un-doc.has-art:not(.is-torn) .un-half { visibility: hidden; }
.un-doc.has-art.is-torn .un-whole { visibility: hidden; }
/* the typed text scales with the sheet, so the operative line always lands on the paper (on a phone the text used to
   run past the bottom edge); on a small sheet the "recalling" paragraph steps aside, the rest is the document as is */
.un-doc.has-art { container-type: inline-size; }
.un-doc.has-art .un-paper { font-size: min(3.3cqi, 15px); padding: 12% 12% 9%; }
@container (max-width: 330px) {
  .un-doc.has-art .un-paper { font-size: 4.3cqi; }
  .un-doc.has-art .d-text:not(.d-op) { display: none; }
}

/* ===== Story page on paper (25.11.2026): for a teacher who prints the seven chapters for a class. White paper, ink only
   for text, the photos as real prints, the UN document as a typed sheet, no decoration, no navigation. Scoped to the
   story page (the only page with #ch1); the worksheet keeps its own print (html.print-ws). ===== */
@media print {
  @page { size: A4; margin: 15mm 16mm 16mm; }
  html:not(.print-ws):has(#ch1), html:not(.print-ws) body:has(#ch1) { background: #fff !important; }
  html:not(.print-ws) body:has(#ch1) * { color: #161616 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important;
    opacity: 1 !important; transform: none !important; filter: none !important; mix-blend-mode: normal !important; animation: none !important; transition: none !important; }
  html:not(.print-ws) body:has(#ch1) *::before, html:not(.print-ws) body:has(#ch1) *::after { background: none !important; box-shadow: none !important; }
  html:not(.print-ws) body:has(#ch1) :is(.loader, .backdrop, .bar, .bar-progress, .foot, .menu, .viewer, .art, .year-ghost, .story-index, .story-play, .story-print, .sp-bar,
    .edge, .voice-radio, .voice-dial, .farewell-candle, .share-msg, .un-src, .skip, h1 .wt, .photo-btn > :not(img)) { display: none !important; }
  html:not(.print-ws) body:has(#ch1) .photo-btn { display: block !important; width: 100% !important; border: 0 !important; padding: 0 !important; clip-path: none !important; }
  html:not(.print-ws) body:has(#ch1) h1 .sr-only { position: static !important; width: auto !important; height: auto !important; clip: auto !important; clip-path: none !important; overflow: visible !important; white-space: normal !important; display: inline !important; margin: 0 !important; }
  html:not(.print-ws) body:has(#ch1) :is(main, section, .chapter, .sheet, header, .page-hero, .page-hero-in, .voice-track, .voice-stage, .un-track, .un-stage, .mosaic, .legacy-grid, .war-grid, .intel-grid, .ch-grid, div) {
    position: static !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; margin-inline: 0 !important; overflow: visible !important; clip-path: none !important; -webkit-mask: none !important; mask: none !important; }
  html:not(.print-ws) body:has(#ch1) :is(.chapter, .sheet)::before, html:not(.print-ws) body:has(#ch1) :is(.chapter, .sheet)::after { display: none !important; }
  html:not(.print-ws) body:has(#ch1) main { display: block !important; }
  html:not(.print-ws) body:has(#ch1) :is(.ch-grid, .war-grid, .intel-grid, .legacy-grid, .voice-stage, .un-stage) { display: block !important; }
  html:not(.print-ws) body:has(#ch1) { font: 11.5pt/1.55 var(--sans); }
  html:not(.print-ws) body:has(#ch1) .page-hero { margin: 0 0 8mm !important; border-bottom: 1px solid #b6a07f; padding-bottom: 5mm !important; }
  html:not(.print-ws) body:has(#ch1) h1 { font: 700 24pt/1.15 var(--serif) !important; margin: 0 0 3mm !important; }
  html:not(.print-ws) body:has(#ch1) h1 svg { display: none !important; }
  html:not(.print-ws) body:has(#ch1) .chapter { margin: 0 0 7mm !important; }
  html:not(.print-ws) body:has(#ch1) .ch-num { font: 600 9.5pt/1.3 var(--sans) !important; color: #6b5a3c !important; margin: 0 0 1mm !important; display: block !important; }
  html:not(.print-ws) body:has(#ch1) h2 { font: 700 17pt/1.2 var(--serif) !important; margin: 0 0 2.5mm !important; break-after: avoid; }
  html:not(.print-ws) body:has(#ch1) :is(p, li, blockquote) { font-size: 11.5pt !important; line-height: 1.55 !important; max-width: none !important; margin-block: 0 2.6mm !important; orphans: 3; widows: 3; }
  html:not(.print-ws) body:has(#ch1) :is(.voice-words, .un-line, .pull, .legacy-quote, blockquote) { font: 500 13pt/1.5 var(--serif) !important; border-inline-start: 2px solid #b6a07f; padding-inline-start: 4mm !important; }
  html:not(.print-ws) body:has(#ch1) .un-after { border: 0 !important; padding: 0 !important; font: 400 11.5pt/1.55 var(--sans) !important; }
  html:not(.print-ws) body:has(#ch1) :is(b, strong, .hl, .un-line-key) { font-weight: 700 !important; }
  /* the photos print as photos: their own tones (the screen tints them studio blue), one size, beside nothing */
  html:not(.print-ws) body:has(#ch1) .photo { display: block !important; width: 62mm !important; max-width: 62mm !important; margin: 1mm 0 4mm !important; break-inside: avoid; float: inline-end; margin-inline-start: 6mm !important; }
  html:not(.print-ws) body:has(#ch1) .photo img { width: 100% !important; height: auto !important; max-height: 80mm; object-fit: contain; border-radius: 0 !important; display: block; }
  html:not(.print-ws) body:has(#ch1) .photo-oval img { border-radius: 0 !important; }
  html:not(.print-ws) body:has(#ch1) :is(figcaption, cite, small) { font: 400 8.5pt/1.35 var(--sans) !important; color: #555 !important; margin-top: 1mm !important; display: block; }
  html:not(.print-ws) body:has(#ch1) .chapter::after { content: ""; display: block !important; clear: both; }
  html:not(.print-ws) body:has(#ch1) .mosaic { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin: 3mm 0 5mm !important; }
  html:not(.print-ws) body:has(#ch1) .tile { position: static !important; width: auto !important; height: auto !important; inset: auto !important; margin: 0 !important; break-inside: avoid; }
  html:not(.print-ws) body:has(#ch1) .tile img { width: 100% !important; height: 30mm !important; object-fit: cover; display: block; }
  /* the resolution as a typed sheet with a rule around it (background graphics are often off in print dialogs) */
  html:not(.print-ws) body:has(#ch1) .un-doc { position: relative !important; width: 78mm !important; aspect-ratio: auto !important; height: auto !important; margin: 2mm 0 5mm !important; float: inline-end; margin-inline-start: 6mm !important; }
  html:not(.print-ws) body:has(#ch1) .un-whole { display: block !important; position: static !important; visibility: visible !important; }
  html:not(.print-ws) body:has(#ch1) .un-half { display: none !important; }
  html:not(.print-ws) body:has(#ch1) :is(.un-doc, .un-whole, .un-paper, .un-lines, .farewell) { break-inside: avoid !important; page-break-inside: avoid !important; }
  html:not(.print-ws) body:has(#ch1) .un-doc { display: block !important; }
  html:not(.print-ws) body:has(#ch1) .un-whole .un-paper { position: static !important; border: 1px solid #888 !important; padding: 5mm 5mm 3mm !important; font: 400 8pt/1.4 var(--mono) !important; direction: ltr; text-align: left; }
  html:not(.print-ws) body:has(#ch1) .un-whole .d-text:not(.d-op) { display: none !important; }   /* the elided "recalling ..." line, as on a phone */
  html:not(.print-ws) body:has(#ch1) .un-lines { clear: none; }
  html:not(.print-ws) body:has(#ch1) .ch-un::after { content: ""; display: block !important; clear: both; }
  html:not(.print-ws) body:has(#ch1) .farewell { break-inside: avoid; margin-top: 6mm !important; text-align: center; border-top: 1px solid #b6a07f; padding-top: 5mm !important; }
  html:not(.print-ws) body:has(#ch1) .sig { display: block !important; width: 40mm !important; height: auto !important; margin: 0 auto 2mm !important; clip-path: none !important; }
  html:not(.print-ws) body:has(#ch1) :not(h1) > .sr-only { display: none !important; }
  html:not(.print-ws) body:has(#ch1) a { text-decoration: none !important; }
  html:not(.print-ws):has(#ch1) { color-scheme: light !important; }
  html:not(.print-ws) body:has(#ch1) :is(.more, .next, .file-stamp) { display: none !important; }
  html:not(.print-ws) body:has(#ch1) :is(.ch-head, .pres-head, .un-intro) { break-inside: avoid; }
  html:not(.print-ws) body:has(#ch1) :is(.ch-num, h2) { break-after: avoid; }
  html:not(.print-ws) body:has(#ch1) .tile figcaption { position: static !important; inset: auto !important; padding: 0 !important; margin-top: 1mm !important; font-size: 7.5pt !important; }
  html:not(.print-ws) body:has(#ch1) .mosaic { align-items: start; grid-auto-rows: auto !important; grid-template-rows: none !important; grid-template-areas: none !important; }
  html:not(.print-ws) body:has(#ch1) .tile { grid-area: auto !important; aspect-ratio: auto !important; align-self: start !important; }
  html:not(.print-ws) body:has(#ch1) .tile .photo-btn { aspect-ratio: auto !important; }
  html:not(.print-ws) body:has(#ch1) .tile .photo-btn, html:not(.print-ws) body:has(#ch1) .tile img { position: static !important; inset: auto !important; }
  html:not(.print-ws) body:has(#ch1) .tile img { height: 26mm !important; }
}
