/* Netzach round-1 canvas app.
   Layout: one centred column (1120 max); the date leads, the day's lead story is the biggest thing under it,
   the rest a clear step smaller, then all of history. Three looks, each dark first with a proper light version:
   Gallery (pictures on bare walls under one spotlight), Olive (framed prints on solid cards), Morning (glass under a
   dawn sky in Yizkor's night blue). */

/* ---------- looks (dark first; every colour is a token) ---------- */
:root {
  color-scheme: dark;
  --bg: #100f0e; --card: #1a1816; --card-2: #23201d; --chip: #27231f; --line: rgba(255, 246, 230, .13); --line-2: rgba(255, 246, 230, .22);
  --ink-h: #fffdf9; --ink: #ece6dc; --ink-2: #e0d9ce; --acc: #e3bd84; --acc-ink: #1b140a; --acc-soft: rgba(227, 189, 132, .17);
  --sel: rgba(255, 250, 240, .17); --sel-sh: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(0, 0, 0, .25);
  --scrim: rgba(6, 5, 4, .62); --glass: rgba(38, 34, 30, .62); --glass-line: rgba(255, 246, 230, .16);
  --sh: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .32); --sh-pop: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
  --glow: radial-gradient(30% 1100px at 50% -160px, rgba(255, 236, 204, .16), transparent 72%), radial-gradient(60% 420px at 50% -120px, rgba(255, 236, 204, .07), transparent 70%);
  --none-a: #2a2622; --none-b: #1c1916;
  --fh: 'Newsreader', Georgia, serif; --fb: 'IBM Plex Sans', system-ui, sans-serif; --fh-w: 500; --fh-scale: 1; --fh-track: -0.02em;
  --page: 1120px; --read: 700px; --r: 20px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
}
:root[data-look="gallery"][data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1ed; --card: #ffffff; --card-2: #faf8f5; --chip: #e9e5de; --line: #d4ccbf; --line-2: #bfb5a6;
  --ink-h: #0b0907; --ink: #211d17; --ink-2: #352f27; --acc: #8b5a1b; --acc-ink: #ffffff; --acc-soft: rgba(139, 90, 27, .12);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(45, 32, 12, .14), 0 2px 8px rgba(45, 32, 12, .1);
  --scrim: rgba(30, 24, 16, .38); --glass: rgba(255, 255, 255, .72); --glass-line: rgba(60, 45, 25, .16);
  --sh: 0 1px 2px rgba(45, 32, 12, .07), 0 12px 30px rgba(45, 32, 12, .1); --sh-pop: 0 2px 6px rgba(45, 32, 12, .1), 0 24px 60px rgba(45, 32, 12, .18);
  --glow: radial-gradient(30% 1100px at 50% -160px, rgba(255, 222, 168, .5), transparent 72%);
  --none-a: #e7e1d7; --none-b: #f4f0ea;
}
:root[data-look="olive"] {
  --bg: #10160c; --card: #1a2413; --card-2: #222e19; --chip: #27341d; --line: rgba(214, 228, 170, .16); --line-2: rgba(214, 228, 170, .28);
  --ink-h: #fffff6; --ink: #ecebd8; --ink-2: #e0dfc7; --acc: #dac97c; --acc-ink: #181a0d; --acc-soft: rgba(218, 201, 124, .18);
  --sel: rgba(250, 250, 236, .16);
  --scrim: rgba(5, 8, 3, .62); --glass: rgba(30, 40, 22, .66); --glass-line: rgba(214, 228, 170, .18);
  --glow: radial-gradient(55% 640px at 10% -180px, rgba(236, 240, 214, .09), transparent 70%);
  --none-a: #283520; --none-b: #1a2413; --r: 26px;
}
:root[data-look="olive"][data-theme="light"] {
  color-scheme: light;
  --bg: #eeefe6; --card: #fbfbf6; --card-2: #ffffff; --chip: #e1e3d4; --line: #c6c9b0; --line-2: #a9ad8f;
  --ink-h: #0c1207; --ink: #1d2516; --ink-2: #2e3725; --acc: #4f6526; --acc-ink: #ffffff; --acc-soft: rgba(79, 101, 38, .12);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(35, 40, 15, .14), 0 2px 8px rgba(35, 40, 15, .1);
  --scrim: rgba(24, 30, 14, .36); --glass: rgba(251, 251, 246, .76); --glass-line: rgba(40, 50, 20, .17);
  --sh: 0 1px 2px rgba(35, 40, 15, .08), 0 12px 30px rgba(35, 40, 15, .11); --sh-pop: 0 2px 6px rgba(35, 40, 15, .1), 0 24px 60px rgba(35, 40, 15, .18);
  --glow: radial-gradient(55% 640px at 10% -180px, rgba(255, 255, 250, .9), transparent 70%);
  --none-a: #dfe2cf; --none-b: #f3f4ec;
}
:root[data-look="morning"] {
  --bg: #0a0f1e; --card: #121a2e; --card-2: #18223a; --chip: #1b2541; --line: rgba(214, 226, 255, .13); --line-2: rgba(214, 226, 255, .23);
  --ink-h: #ffffff; --ink: #e8ecf6; --ink-2: #dce3f2; --acc: #f4b862; --acc-ink: #1c1206; --acc-soft: rgba(244, 184, 98, .17);
  --sel: rgba(244, 247, 255, .17);
  --scrim: rgba(3, 6, 14, .62); --glass: rgba(22, 30, 52, .6); --glass-line: rgba(214, 226, 255, .16);
  /* a dawn sky: gold at the top edge, through violet, into Yizkor's night blue; never orange straight onto navy */
  --glow: linear-gradient(180deg, rgba(255, 196, 112, .62) 0, rgba(246, 150, 84, .42) 54px, rgba(150, 104, 196, .34) 150px, rgba(76, 84, 186, .22) 270px, rgba(10, 15, 30, 0) 460px);
  --none-a: #1d2846; --none-b: #121a2e;
}
:root[data-look="morning"][data-theme="light"] {
  color-scheme: light;
  --bg: #eef2fb; --card: #ffffff; --card-2: #f7f9fd; --chip: #dfe6f2; --line: #c7d1e3; --line-2: #aebbd2;
  --ink-h: #050a17; --ink: #172036; --ink-2: #263049; --acc: #a85600; --acc-ink: #ffffff; --acc-soft: rgba(168, 86, 0, .11);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(15, 30, 60, .14), 0 2px 8px rgba(15, 30, 60, .1);
  --scrim: rgba(12, 19, 35, .34); --glass: rgba(255, 255, 255, .74); --glass-line: rgba(20, 35, 70, .15);
  --sh: 0 1px 2px rgba(15, 30, 60, .07), 0 12px 30px rgba(15, 30, 60, .1); --sh-pop: 0 2px 6px rgba(15, 30, 60, .1), 0 24px 60px rgba(15, 30, 60, .18);
  --glow: linear-gradient(180deg, rgba(255, 200, 140, .75) 0, rgba(255, 214, 178, .6) 60px, rgba(214, 200, 246, .5) 170px, rgba(200, 216, 250, .3) 290px, rgba(238, 242, 251, 0) 460px);
  --none-a: #dbe3f0; --none-b: #f2f5fb;
}

/* Round 2: Netzach blue, Yizkor orange. "sky" puts Netzach on blue walls; "pair" keeps one neutral wall for both
   halves and lets only the accent and the light change. */
:root[data-look="sky"] {
  --bg: #0b1428; --card: #122040; --card-2: #182a50; --chip: #1b2d55; --line: rgba(200, 220, 255, .15); --line-2: rgba(200, 220, 255, .27);
  --ink-h: #ffffff; --ink: #e6edfa; --ink-2: #d8e2f5; --acc: #8cc4ff; --acc-ink: #06121f; --acc-soft: rgba(140, 196, 255, .18);
  --sel: rgba(235, 243, 255, .17); --glass: rgba(20, 34, 64, .62); --glass-line: rgba(200, 220, 255, .18); --scrim: rgba(3, 8, 20, .62);
  --glow: radial-gradient(30% 1100px at 50% -160px, rgba(186, 218, 255, .2), transparent 72%), radial-gradient(70% 520px at 50% -160px, rgba(90, 140, 230, .14), transparent 72%);
  --none-a: #1a2c52; --none-b: #122040;
}
:root[data-look="sky"][data-theme="light"] {
  color-scheme: light;
  --bg: #dde9fa; --card: #ffffff; --card-2: #f4f8fe; --chip: #cddcf2; --line: #c3d3ea; --line-2: #a6bbdc;
  --ink-h: #04102a; --ink: #13213d; --ink-2: #223150; --acc: #1c55a8; --acc-ink: #ffffff; --acc-soft: rgba(28, 85, 168, .12);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(15, 30, 60, .14), 0 2px 8px rgba(15, 30, 60, .1); --glass: rgba(255, 255, 255, .74); --glass-line: rgba(20, 35, 70, .15); --scrim: rgba(12, 19, 35, .34);
  --sh: 0 1px 2px rgba(15, 30, 60, .07), 0 12px 30px rgba(15, 30, 60, .1); --sh-pop: 0 2px 6px rgba(15, 30, 60, .1), 0 24px 60px rgba(15, 30, 60, .18);
  --glow: radial-gradient(30% 1100px at 50% -160px, rgba(255, 255, 255, .95), transparent 72%), radial-gradient(70% 520px at 50% -160px, rgba(150, 196, 255, .45), transparent 72%);
  --none-a: #d7e3f4; --none-b: #f1f6fd;
}
:root[data-look="pair"] {
  --bg: #0f1013; --card: #18191d; --card-2: #202227; --chip: #24262c; --line: rgba(235, 238, 245, .13); --line-2: rgba(235, 238, 245, .24);
  --ink-h: #ffffff; --ink: #eaecf0; --ink-2: #dcdfe6; --acc: #8cc4ff; --acc-ink: #06121f; --acc-soft: rgba(140, 196, 255, .17);
  --sel: rgba(245, 247, 252, .16); --glass: rgba(30, 32, 38, .62); --glass-line: rgba(235, 238, 245, .16);
  --glow: radial-gradient(34% 1100px at 50% -160px, rgba(120, 170, 255, .30), transparent 72%), radial-gradient(80% 560px at 50% -200px, rgba(80, 130, 240, .16), transparent 72%);
  --sel: rgba(140, 196, 255, .22);
  --none-a: #26282e; --none-b: #18191d;
}
:root[data-look="pair"][data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f6; --card: #ffffff; --card-2: #fafafb; --chip: #e5e7eb; --line: #d0d4dc; --line-2: #b5bbc6;
  --ink-h: #07090d; --ink: #1c1f26; --ink-2: #2c3039; --acc: #1c55a8; --acc-ink: #ffffff; --acc-soft: rgba(28, 85, 168, .11);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(20, 25, 35, .14), 0 2px 8px rgba(20, 25, 35, .1); --glass: rgba(255, 255, 255, .74); --glass-line: rgba(20, 25, 35, .14); --scrim: rgba(15, 18, 25, .34);
  --sh: 0 1px 2px rgba(20, 25, 35, .07), 0 12px 30px rgba(20, 25, 35, .1); --sh-pop: 0 2px 6px rgba(20, 25, 35, .1), 0 24px 60px rgba(20, 25, 35, .18);
  --glow: radial-gradient(34% 1100px at 50% -160px, rgba(120, 170, 255, .42), transparent 72%), radial-gradient(80% 560px at 50% -200px, rgba(150, 190, 255, .3), transparent 72%);
  --none-a: #e3e5ea; --none-b: #f6f7f9;
}

/* Gallery: no boxes. Pictures hang on the wall under one spotlight; the words sit beside them like museum labels. */
:root[data-frame="gallery"] .card { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
:root[data-frame="gallery"] .card .card-pic { border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 50px -12px rgba(0, 0, 0, .55); transition: transform .2s var(--ease); }
:root[data-frame="gallery"][data-theme="light"] .card .card-pic { box-shadow: 0 2px 4px rgba(45, 32, 12, .12), 0 26px 50px -14px rgba(45, 32, 12, .32); }
:root[data-frame="gallery"] .card--lead .card-text, :root[data-frame="gallery"] .more--1 .card--card .card-text { padding: 16px 8px 16px 48px; }
:root[dir="rtl"][data-frame="gallery"] .card--lead .card-text, :root[dir="rtl"][data-frame="gallery"] .more--1 .card--card .card-text { padding: 16px 48px 16px 8px; }
:root[data-frame="gallery"] .card--card .card-text { padding: 18px 4px 8px; }
:root[data-frame="gallery"] .card:has(.card-hit:hover) { transform: none; }
:root[data-frame="gallery"] .card:has(.card-hit:hover) .card-pic { transform: translateY(-3px); }
:root[data-frame="gallery"] .card.is-open { background: var(--card); border-color: var(--line); }
:root[data-frame="gallery"] .daylist, :root[data-frame="gallery"] .more { gap: 72px; }
:root[data-frame="gallery"] .era-list { background: none; border-color: transparent; padding: 0; }
:root[data-frame="gallery"] .pic--row, :root[data-frame="gallery"] .fig-img { border-radius: 4px; }

/* Olive: every picture a print framed inside its card. */
:root[data-look="olive"] .card .card-pic { margin: 12px; border-radius: calc(var(--r) - 12px); }
:root[data-look="olive"] .card--lead .card-pic, :root[data-look="olive"] .more--1 .card-pic { margin: 14px 0 14px 14px; border-radius: calc(var(--r) - 14px); }
:root[dir="rtl"][data-look="olive"] .card--lead .card-pic, :root[dir="rtl"][data-look="olive"] .more--1 .card-pic { margin: 14px 14px 14px 0; }
:root[data-look="olive"] .card--card .card-text { padding-top: 10px; }
:root[data-look="olive"] .pic--row { border-radius: 10px; box-shadow: 0 0 0 4px var(--card-2); }

/* Morning: the stories on glass under the dawn sky. */
:root[data-look="morning"] .glow { height: 480px; }
:root[data-look="morning"]:not([data-theme="light"]) .app { background: var(--bg); }
:root[data-look="morning"]:not([data-theme="light"]) .glow { mix-blend-mode: screen; }
:root[data-look="morning"] .card, :root[data-look="morning"] .era-list, :root[data-look="morning"] .next-card { background: color-mix(in srgb, var(--card) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
:root[data-look="morning"] .card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--sh); }
:root[data-look="morning"] .arrow, :root[data-look="morning"] .btn--filter { background: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--fb); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 10px; }
.flip { transform: scaleX(-1); }
h1, h2, h3, .date, .tl-title, .era-h, .card-title, .row-title, .story-title, .next-title, .rail-name, .sw--name .sw-b, .cal-month, .yr {
  font-family: var(--fh); font-weight: var(--fh-w); letter-spacing: var(--fh-track); text-wrap: balance; color: var(--ink-h); font-variant-numeric: lining-nums;
}
.yr { letter-spacing: 0; }

.app { position: relative; min-height: 100vh; isolation: isolate; }
.glow { position: absolute; inset: 0 0 auto; height: 720px; background: var(--glow); pointer-events: none; z-index: -1; overflow: clip; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.page { max-width: var(--page); margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 120px max(24px, env(safe-area-inset-left, 0px)); }

/* ---------- top bar ---------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 20px max(24px, env(safe-area-inset-right, 0px)) 8px max(24px, env(safe-area-inset-left, 0px)); }
.top-l { display: flex; align-items: center; gap: 12px; }
.top-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.top--name { grid-template-columns: auto 1fr; }
.top--tabs { display: flex; justify-content: center; }
.tabs-row { display: flex; justify-content: center; padding: 4px 16px 0; }
.ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink-h); transition: background-color .16s, transform .12s; }
.ibtn:hover:not(:disabled) { background: var(--chip); }
.ibtn:active:not(:disabled) { transform: scale(.94); }
.ibtn--sm { width: 36px; height: 36px; }
.ibtn--lang { font-weight: 700; font-size: 16px; }
.ibtn-gap { width: 44px; height: 44px; }

/* the Netzach / Yizkor switch: both names, equal weight, a lens that slides */
.sw { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--sh); }
.sw-b { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 18px; color: var(--ink-h); transition: transform .14s; }
.sw-b:active { transform: scale(.97); }
.sw-flame { width: 19px; height: 23px; object-fit: contain; margin: -3px -2px -3px -6px; }
/* Netzach's crown (the shipped logo): the body is about 26 x 20 px; the dark-ground file carries its glow, which spills
   past the layout box the way Yizkor's flame glow does */
.sw-crown { width: 23px; height: 17px; object-fit: contain; margin-inline-start: -4px; }
:root:not([data-theme="light"]) .sw-crown, .yz:not(.yz--new) .sw-crown { width: 33px; height: 28px; margin: -5px -5px -6px -9px; }
:root[dir="rtl"]:not([data-theme="light"]) .sw-crown, :root[dir="rtl"] .yz:not(.yz--new) .sw-crown { margin: -5px -9px -6px -5px; }
.sw-lens { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--sel); box-shadow: var(--sel-sh); transition: transform .34s var(--spring), width .34s var(--spring); }
.sw--name { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 6px; }
.sw--name .sw-b { height: 48px; padding: 0 10px; font-size: 28px; font-weight: var(--fh-w); }
.sw--name .sw-b:first-child { padding-inline-start: 0; }
.sw--name .sw-lens { top: auto; bottom: 4px; height: 3px; background: var(--acc); box-shadow: none; }
.sw--name .sw-flame { width: 18px; height: 22px; }
.sw--name .sw-crown { width: 28px; height: 21px; }
:root:not([data-theme="light"]) .sw--name .sw-crown, .yz:not(.yz--new) .sw--name .sw-crown { width: 41px; height: 34px; margin: -6px; }

/* segmented controls (language, sort, calendar, how sure): the chosen one is the lighter filled pill, like the switch */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); gap: 2px; }
.seg button { height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background-color .16s, box-shadow .16s; }
.seg button[aria-pressed="true"] { background: var(--sel); box-shadow: var(--sel-sh); color: var(--ink-h); }
.seg--sm button { height: 34px; padding: 0 12px; }
.seg--full { display: flex; }
.seg--full button { flex: 1; }
.tabs { display: inline-flex; gap: 4px; }
.tabs button { height: 44px; padding: 0 14px; font-weight: 700; font-size: 16px; border-radius: 999px; position: relative; color: var(--ink-h); }
.tabs button[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--acc); }
.tabs button:hover { background: var(--chip); }

/* the floating dock (phones only) */
.dock { position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--sh-pop); }
.dock .sw { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.dock .sw-lens { top: 0; bottom: 0; }

/* ---------- the date ---------- */
.day-head { display: grid; justify-items: center; gap: 12px; padding: 44px 0 8px; text-align: center; }
.day-row { display: flex; align-items: center; gap: 20px; }
.arrow { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-h); transition: background-color .16s, transform .12s; }
.arrow:hover { background: var(--card-2); }
.arrow:active { transform: scale(.94); }
.date-wrap { position: relative; }
.date-h { margin: 0; font-size: inherit; }
.date { display: inline-flex; align-items: center; gap: 14px; font-family: var(--fd, var(--fh)); font-weight: var(--fd-w, var(--fh-w)); font-size: calc(clamp(56px, 8.4vw, 108px) * var(--fd-scale, var(--fh-scale)) * var(--fit, 1)); line-height: 1.02; padding: 4px 12px; border-radius: 18px; transition: background-color .16s; }
.date:hover { background: color-mix(in srgb, var(--chip) 70%, transparent); }
.date-text { display: inline-block; animation: settle .26s var(--ease); white-space: nowrap; }
.date-cal { display: inline-grid; color: var(--acc); }
@keyframes settle { from { opacity: .2; transform: translateY(4px); } }
.day-sub { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; color: var(--ink); }
.today { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--acc-soft); color: var(--ink-h); font-weight: 700; font-size: 16px; }
.today:hover { background: var(--chip); }

/* popovers: appear at once, from where they live */
.pop { position: absolute; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-pop); animation: pop .14s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.cal { top: calc(100% + 8px); left: 50%; translate: -50% 0; width: 340px; padding: 16px; display: grid; gap: 12px; text-align: center; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-month { font-size: 21px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wk { font-size: 16px; font-weight: 700; padding: 4px 0; }
.cal-d { height: 40px; border-radius: 12px; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 16px; position: relative; }
.cal-d:hover:not(:disabled) { background: var(--chip); }
.cal-d.has { font-weight: 800; }
.cal-d.has::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 9px; background: var(--acc); }
.cal-d.now { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal-d.sel { background: var(--ink-h); color: var(--bg); }
.cal-d.sel::after { background: var(--bg); }

/* ---------- filters ---------- */
.fzone { display: grid; justify-items: center; gap: 12px; width: 100%; }
.picks { width: 100%; min-height: 44px; display: flex; justify-content: center; }
.picks-in { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.picks-in::-webkit-scrollbar { display: none; }
.picks .chip { flex: none; animation: pop .16s var(--ease); }
.four { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.four-wrap { position: relative; }
.four-b { display: grid; justify-items: start; gap: 0; min-width: 132px; padding: 8px 16px 9px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: start; transition: background-color .16s, border-color .16s, transform .12s; }
.four-b:hover { background: var(--card-2); }
.four-b:active { transform: scale(.97); }
.four-b[aria-expanded="true"] { border-color: var(--line-2); }
.four-b.is-set { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.four-k { font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-h); }
:root[lang="he"] .four-k { letter-spacing: 0; }
.four-v { font-family: var(--fh); font-weight: var(--fh-w); font-size: calc(19px * var(--fh-scale)); color: var(--ink-h); white-space: nowrap; }
.fp--one { width: min(440px, calc(100vw - 32px)); }
.fp--when { width: min(560px, calc(100vw - 32px)); }
.chip--all { font-weight: 800; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 15px; }
/* When: a timeline with the eras marked on it */
.when { display: grid; gap: 10px; padding: 4px 0; }
.when-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.when-val { font-family: var(--fh); font-weight: var(--fh-w); font-size: calc(21px * var(--fh-scale)); color: var(--ink-h); font-variant-numeric: lining-nums; }
.when-track { position: relative; height: 44px; touch-action: none; cursor: pointer; }
.when-band { position: absolute; top: 15px; width: 20%; height: 14px; background: var(--chip); }
.when-band:first-child { border-start-start-radius: 99px; border-end-start-radius: 99px; }
.when-band:nth-child(5) { border-start-end-radius: 99px; border-end-end-radius: 99px; }
.when-band.alt { background: color-mix(in srgb, var(--chip) 55%, var(--line-2)); }
.when-band + .when-band { box-shadow: inset 2px 0 0 var(--card); }
:root[dir="rtl"] .when-band + .when-band { box-shadow: inset -2px 0 0 var(--card); }
.when-fill { position: absolute; top: 19px; height: 6px; background: var(--acc); border-radius: 99px; pointer-events: none; }
/* era boundaries stay visible on the track, picked or not */
.when-tick { position: absolute; top: 9px; width: 2px; height: 26px; margin-inline-start: -1px; border-radius: 2px; background: var(--line-2); pointer-events: none; }
.when-thumb { position: absolute; top: 8px; width: 28px; height: 28px; margin-inline-start: -14px; border-radius: 99px; background: var(--ink-h); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 0 0 4px var(--acc-soft); cursor: grab; }
:root[dir="rtl"] .when-thumb { margin-inline-start: 0; margin-inline-end: -14px; }
.when-thumb:active { cursor: grabbing; }
.when-eras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.when-eras span { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); text-align: center; }
.story-note { margin: -4px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink); max-width: 60ch; }

.fbar-row { display: flex; justify-content: center; padding: 20px 0 36px; }
.fbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 900px; }
.fbtn-wrap { position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 16px; white-space: nowrap; color: var(--ink-h); transition: background-color .16s, transform .12s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn--filter { background: var(--card); border: 1px solid var(--line); }
.btn--filter:hover { background: var(--card-2); }
.btn--filter[aria-expanded="true"] { border-color: var(--line-2); }
.btn--main { background: var(--ink-h); color: var(--bg); }
.btn--quiet { background: var(--chip); }
.btn--quiet:hover:not(:disabled) { background: var(--card-2); }
.count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font-size: 15px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px; border-radius: 999px; background: var(--chip); font-weight: 600; font-size: 16px; white-space: nowrap; text-decoration: none; color: var(--ink-h); transition: background-color .16s, box-shadow .16s, transform .12s; }
.chip:hover { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip--on { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px var(--acc); }
.chip--view { height: 42px; padding: 0 17px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.chip--view[aria-pressed="true"] { background: var(--sel); box-shadow: var(--sel-sh), inset 0 0 0 1.5px var(--line-2); }
.fp { top: calc(100% + 10px); left: 50%; translate: -50% 0; width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow: auto; padding: 22px; display: grid; gap: 22px; text-align: start; }
.fp-group { display: grid; gap: 10px; }
.fp-group h3, .foot-label { margin: 0; font-family: var(--fb); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-h); }
:root[lang="he"] .fp-group h3, :root[lang="he"] .foot-label { letter-spacing: 0; }
.seg--sure button { height: 44px; font-size: 16px; padding: 0 8px; min-width: 0; }
.fp-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }

.sf-wrap { position: relative; width: min(600px, 100%); }
.sf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px 6px 18px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); cursor: text; transition: border-color .16s, box-shadow .16s; }
:root[dir="rtl"] .sf { padding: 6px 18px 6px 8px; }
.sf.is-open { border-color: var(--line-2); box-shadow: 0 0 0 4px var(--acc-soft); }
.sf input { flex: 1; min-width: 140px; height: 42px; border: 0; background: none; color: var(--ink-h); font: inherit; font-size: 18px; outline: none; }
.sf input::placeholder { color: var(--ink); opacity: 1; }
.sf .chip { height: 36px; }
.sf-pop { top: calc(100% + 8px); inset-inline: 0; max-height: min(64vh, 560px); overflow: auto; padding: 18px; display: grid; gap: 18px; text-align: start; }
.hit { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; border-radius: 14px; text-align: start; transition: background-color .14s; }
.hit:hover { background: var(--chip); }
.hit-yr { font-family: var(--fh); font-weight: var(--fh-w); font-variant-numeric: lining-nums; flex: none; min-width: 64px; color: var(--ink-h); }
.hit-title { font-family: var(--fh); font-weight: var(--fh-w); font-size: 18px; line-height: 1.25; color: var(--ink-h); }
.hit-text { display: grid; gap: 2px; }
.empty-line { margin: 0; font-weight: 600; }

/* the search panel (from the top bar) */
.search { top: 76px; inset-inline-end: max(24px, calc((100vw - 1240px) / 2 + 24px)); width: 460px; padding: 14px; display: grid; gap: 12px; }
.search--phone { position: fixed; top: 8px; inset-inline: 8px; width: auto; }
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 14px 6px; border-radius: 16px; background: var(--chip); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink-h); font: inherit; font-size: 18px; outline: none; }
.search-field input::placeholder { color: var(--ink); opacity: 1; }
.search-hits { display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.pic--hit { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.chips--ideas { padding: 2px 2px 4px; }

/* ---------- pictures ---------- */
.pic { position: relative; overflow: hidden; background: var(--card-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic--none { display: grid; place-items: center; background: linear-gradient(160deg, var(--none-a), var(--none-b)); }
.pic--none span { font-family: var(--fh); font-weight: var(--fh-w); font-size: calc(28px * var(--fh-scale)); color: var(--ink-h); padding: 20px; text-align: center; line-height: 1.2; text-wrap: balance; }

/* ---------- the day's stories ---------- */
.daylist { display: grid; gap: 40px; }
.card { position: relative; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; scroll-margin-top: 16px; }
.card:has(.card-hit:hover) { transform: translateY(-2px); border-color: var(--line-2); }
.card:has(.card-hit:active) { transform: scale(.995); }
.card-hit { display: grid; text-decoration: none; color: inherit; border-radius: inherit; }
.card-text { display: grid; gap: 10px; align-content: start; padding: 24px 26px 28px; min-width: 0; }
.meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.meta .yr { font-size: 18px; }
.hnote { font-weight: 600; color: var(--ink); }
.card-title { margin: 0; font-size: calc(28px * var(--fh-scale)); line-height: 1.12; }
.card-why { margin: 0; font-size: 18px; line-height: 1.5; }
.sure { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; color: var(--ink); }
.sure svg { color: var(--acc); align-self: center; }
/* the lead and a lone second story share one grid, so their pictures and words line up */
.card--lead .card-hit, .more--1 .card-hit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card--lead .card-hit { min-height: 460px; }
.more--1 .card-hit { min-height: 300px; }
.card--lead .card-pic, .more--1 .card-pic { min-height: 100%; }
.card--lead .card-pic img, .more--1 .card-pic img { position: absolute; inset: 0; }
.card--lead .card-text, .more--1 .card-text { padding: 40px 44px; align-content: center; gap: 14px; }
.card--lead .card-title { font-size: calc(clamp(34px, 3.6vw, 46px) * var(--fh-scale)); line-height: 1.06; }
.card--lead .card-why { font-size: 21px; }
.more { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more--1 { grid-template-columns: minmax(0, 1fr); }
.more--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card--card .card-pic { aspect-ratio: 16 / 10; }
.more--1 .card--card .card-pic { aspect-ratio: auto; }
.empty { display: grid; justify-items: center; gap: 16px; padding: 48px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-align: center; }
.empty p { margin: 0; font-size: 21px; font-weight: 600; color: var(--ink-h); }

/* unfold in place */
.unfold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.is-open > .unfold { grid-template-rows: 1fr; }
.unfold-in { overflow: hidden; min-height: 0; }
.card.is-open { grid-column: 1 / -1; transform: none; }
.card.is-open .card-hit { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.story--inline { padding: 28px 26px 32px; }
.card--lead.is-open .story--inline { padding: 32px 44px 44px; }

/* day to day, at the end of the day view */
.ps-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.next-card { display: grid; gap: 6px; padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: start; transition: background-color .16s, transform .12s; }
.next-card:hover { background: var(--card-2); }
.next-card:active { transform: scale(.98); }
.next-card--end { text-align: end; justify-items: end; }
.next-dir { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; color: var(--ink); }
.next-title { font-size: 21px; line-height: 1.2; }

/* ---------- all of history ---------- */
.tl { margin-top: 112px; scroll-margin-top: 16px; }
[data-view="timeline"] .tl { margin-top: 8px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tl-title { margin: 0; font-size: calc(clamp(30px, 3.6vw, 46px) * var(--fh-scale)); line-height: 1.05; }
.btn--sort svg { color: var(--acc); }
.erarow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.era-b { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--chip); font-weight: 600; font-size: 16px; color: var(--ink-h); transition: background-color .16s, transform .12s; }
.era-b:hover:not(:disabled) { background: var(--card-2); }
.era-b:active:not(:disabled) { transform: scale(.97); }
.era-b.on { background: var(--sel); box-shadow: var(--sel-sh); }
.era-n { font-variant-numeric: tabular-nums; font-weight: 500; }
.era-today { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; margin-inline-end: -6px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 700; }
.tl-body { display: grid; gap: 48px; }
.tl--rail .tl-body { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.rail-col { position: sticky; top: 24px; }
.rail { display: grid; gap: 4px; }
.rail-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 14px; text-align: start; transition: background-color .16s; }
.rail-b:hover:not(:disabled) { background: var(--card); }
.rail-b.on { background: var(--sel); box-shadow: var(--sel-sh); }
.rail-name { font-size: 20px; line-height: 1.2; }
.rail-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-eras { display: grid; gap: 64px; min-width: 0; }
.era { scroll-margin-top: 20px; }
.era-h { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: calc(30px * var(--fh-scale)); line-height: 1.1; }
.era-range { font-family: var(--fb); font-weight: 500; font-size: 17px; letter-spacing: 0; color: var(--ink); }
.era-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.row-wrap { border-radius: 14px; scroll-margin-top: 16px; }
.row-wrap.is-open { background: var(--card-2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 24px; align-items: center; padding: 16px; border-radius: 14px; text-decoration: none; color: inherit; transition: background-color .14s; }
.row--nopic { grid-template-columns: minmax(0, 1fr); }
.row:hover { background: var(--card-2); }
.row:active { transform: scale(.995); }
.pic--row { width: 104px; height: 78px; border-radius: 10px; }
.row-text { display: grid; gap: 6px; min-width: 0; }
.row .meta { font-size: 15px; }
.row .meta .yr { font-size: 17px; }
.row-title { font-size: calc(23px * var(--fh-scale)); line-height: 1.18; }
.row-why { font-size: 16px; line-height: 1.5; max-width: 62ch; }
.today-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--acc-soft); color: var(--ink-h); font-weight: 600; font-size: 15px; }
.row-wrap .story--inline { padding: 4px 16px 24px; }

/* ---------- a story ---------- */
.page--story { max-width: 1080px; }
.ps-bar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 20px; }
.story { display: grid; gap: 40px; }
.story-top { display: grid; gap: 28px; justify-items: center; }
.fig { margin: 0; display: grid; gap: 10px; justify-items: center; width: 100%; }
/* the picture in the shape it was taken, never stretched or padded with a blurred copy */
.fig-img { width: auto; max-width: 100%; height: auto; max-height: min(64vh, 640px); border-radius: 14px; box-shadow: var(--sh); }
.fig figcaption { font-size: 16px; font-weight: 500; color: var(--ink-2); max-width: 760px; text-align: center; }
.story-head { width: 100%; max-width: var(--read); display: grid; gap: 14px; }
.story--tall .story-top { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 48px; }
.story--tall .fig { justify-items: start; }
.story--tall .fig-img { max-height: min(78vh, 640px); }
.story--tall .fig figcaption { text-align: start; }
/* with a tall picture beside the title, the story reads on in the title's column */
.story--tall .story-col { margin: 0; margin-inline-start: calc(420px + 48px); max-width: min(620px, calc(100% - 468px)); }
.reader .story--tall .story-col { margin-inline-start: calc(340px + 36px); max-width: min(620px, calc(100% - 376px)); }
.ghost { position: fixed; z-index: 80; object-fit: cover; pointer-events: none; }
.arriving { opacity: 0; }
.story-col { width: 100%; max-width: var(--read); margin: 0 auto; display: grid; gap: 18px; }
.page--story .story-head, .page--story .story-col { animation: rise .42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.story-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-weight: 500; font-size: 16px; color: var(--ink-2); }
.story-title { margin: 0; font-size: calc(clamp(38px, 5vw, 56px) * var(--fh-scale)); line-height: 1.05; }
.story-why { margin: 0; font-size: 22px; line-height: 1.45; color: var(--ink); }
.story-summary { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink-h); }
.story-h { margin: 24px 0 2px; font-size: calc(28px * var(--fh-scale)); line-height: 1.15; }
.story-full p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; }
.story-foot { display: grid; gap: 14px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.foot-label { min-width: 120px; }
.chip--link svg { opacity: .9; }
.credit { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.btn--share { justify-self: start; }
.story--inline .story-col { max-width: 760px; margin: 0; }

/* the reader: over the day, one story after another */
.reader { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 32px; }
.scrim { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.reader-panel { position: relative; width: min(1000px, 100%); height: min(92vh, 1000px); display: grid; grid-template-rows: auto 1fr; border-radius: 28px; background: var(--bg); box-shadow: var(--sh-pop); overflow: hidden; animation: lift .26s var(--ease); }
@keyframes lift { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 0 28px; }
:root[dir="rtl"] .reader-bar { padding: 10px 28px 0 12px; }
.reader-pos { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-h); }
.reader-btns { display: flex; gap: 2px; }
.reader-scroll { overflow: auto; padding: 12px 40px 48px; overscroll-behavior: contain; }
.reader--closing .scrim { animation: fade-out .3s var(--ease) forwards; }
.reader--closing .reader-panel { animation: lower .3s var(--ease) forwards; }
@keyframes lower { to { opacity: 0; transform: translateY(10px) scale(.99); } }
.reader--grow .reader-panel { animation: lift-soft .32s var(--ease); }
@keyframes lift-soft { from { opacity: 0; } }
.reader-scroll.from-end { animation: in-end .28s var(--ease); }
.reader-scroll.from-start { animation: in-start .28s var(--ease); }
@keyframes in-end { from { opacity: 0; transform: translateX(28px); } }
@keyframes in-start { from { opacity: 0; transform: translateX(-28px); } }
:root[dir="rtl"] .reader-scroll.from-end { animation-name: in-start; }
:root[dir="rtl"] .reader-scroll.from-start { animation-name: in-end; }
.reader .story--tall .story-top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; }
.reader .fig-img { max-height: min(46vh, 460px); }
.reader .story--tall .fig-img { max-height: min(64vh, 520px); }
.reader .story-title { font-size: calc(clamp(32px, 4vw, 44px) * var(--fh-scale)); }

/* the bottom sheet (phones) */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
.sheet { position: relative; width: 100%; max-height: 86vh; display: grid; grid-template-rows: auto 1fr; border-radius: 26px 26px 0 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--sh-pop); animation: up .3s var(--ease); transition: transform .26s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes up { from { transform: translateY(100%); } }
.handle-zone { display: grid; place-items: center; height: 28px; touch-action: none; cursor: grab; }
.handle { width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); }
.sheet-body { overflow: auto; padding: 4px 20px 20px; display: grid; gap: 22px; text-align: start; }

/* ---------- Yizkor rebuilt in Netzach's layout (round 2) ---------- */
.yz.yz--new { background: var(--bg); color: var(--ink); color-scheme: inherit;
  --ink-h: inherit; --acc: #ffa155; --acc-ink: #1d0f04; --acc-soft: rgba(255, 161, 85, .17);
  --glow: radial-gradient(30% 1100px at 50% -160px, rgba(255, 200, 150, .16), transparent 72%), radial-gradient(60% 420px at 50% -120px, rgba(255, 150, 80, .08), transparent 70%); }
:root[data-theme="dark"] .yz.yz--new { --ink-h: #fffdf9; --ink: #ece6dc; --ink-2: #e0d9ce; }
:root[data-theme="light"] .yz.yz--new { --ink-h: #0b0907; --ink: #211d17; --ink-2: #352f27; --acc: #b4500a; --acc-ink: #ffffff; --acc-soft: rgba(180, 80, 10, .12);
  --glow: radial-gradient(30% 1100px at 50% -160px, rgba(255, 214, 170, .55), transparent 72%); }
/* on blue walls, Yizkor keeps Gallery's warm black so the switch reads as day and night */
:root[data-look="sky"] .yz.yz--new { --bg: #110d0a; --card: #1a1613; --card-2: #23201b; --chip: #29241f; --line: rgba(255, 240, 225, .13); --line-2: rgba(255, 240, 225, .24); --sel: rgba(255, 246, 236, .17); --glass: rgba(40, 33, 28, .62); --glass-line: rgba(255, 240, 225, .16); --none-a: #2b241e; --none-b: #1a1613; }
:root[data-look="sky"][data-theme="light"] .yz.yz--new { --bg: #f6f1ec; --card: #ffffff; --card-2: #fbf8f5; --chip: #ece4dc; --line: #d8cbbd; --line-2: #c2b2a1; --sel: #ffffff; --glass: rgba(255, 255, 255, .74); --glass-line: rgba(70, 45, 20, .16); --none-a: #ebe1d6; --none-b: #f8f3ee; }
:root[data-look="pair"] .yz.yz--new { --glow: radial-gradient(34% 1100px at 50% -160px, rgba(255, 160, 90, .26), transparent 72%), radial-gradient(80% 560px at 50% -200px, rgba(255, 130, 60, .12), transparent 72%); --sel: rgba(255, 180, 120, .2); }
:root[data-look="pair"][data-theme="light"] .yz.yz--new { --glow: radial-gradient(34% 1100px at 50% -160px, rgba(255, 170, 100, .42), transparent 72%), radial-gradient(80% 560px at 50% -200px, rgba(255, 200, 150, .3), transparent 72%); --sel: #ffffff; }
.page--yizkor { padding-bottom: 120px; }
.date--static { cursor: default; }
.date--static:hover { background: none; }
.yz-count { display: grid; justify-items: center; gap: 8px; padding: 20px 0 48px; text-align: center; }
.yz-n { margin: 0; font-family: var(--fh); font-weight: var(--fh-w); font-size: calc(26px * var(--fh-scale)); color: var(--ink-h); letter-spacing: var(--fh-track); }
.yz-cats { margin: 0; display: flex; gap: 20px; font-weight: 600; font-size: 16px; color: var(--ink); }
.yz-cats span, .person-cause { display: inline-flex; align-items: center; gap: 6px; }
.cat { color: var(--acc); flex: none; }
.people { list-style: none; margin: 0; padding: 0; display: grid; }
.people--wall { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 48px 24px; }
.people--wall .person { display: grid; justify-items: start; gap: 14px; }
.people--wall .por { border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 40px -14px rgba(0, 0, 0, .55); }
:root[data-theme="light"] .people--wall .por { box-shadow: 0 2px 4px rgba(45, 32, 12, .12), 0 22px 40px -14px rgba(45, 32, 12, .3); }
.people--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.people--cards .person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.people--cards .por { border-radius: 10px; }
.person-text { display: grid; gap: 4px; min-width: 0; }
.person-name { font-family: var(--fh); font-weight: var(--fh-w); font-size: calc(20px * var(--fh-scale)); line-height: 1.2; color: var(--ink-h); letter-spacing: var(--fh-track); text-wrap: balance; }
.person .meta { font-size: 16px; }
.person .meta .yr { font-size: 17px; }
.person-cause { font-size: 16px; line-height: 1.35; color: var(--ink); }
.por { flex: none; background-repeat: no-repeat; background-color: var(--card-2); }
.por--none { display: grid; place-items: center; background: linear-gradient(160deg, var(--none-a), var(--none-b)); color: var(--ink-h); font-family: var(--fh); font-weight: var(--fh-w); }
.yz-more { display: flex; justify-content: center; padding-top: 48px; }

/* ---------- Yizkor (the other half; a picture of the live site) ---------- */
.yz { position: fixed; inset: 0; z-index: 50; overflow: auto; }
.yz:not(.yz--new) { color: #f3f5fb; color-scheme: dark;
  background: radial-gradient(42% 520px at 0% 0%, rgba(22, 52, 104, .9), transparent 72%), radial-gradient(40% 520px at 100% 0%, rgba(92, 46, 32, .75), transparent 72%), #080c17;
  --ink-h: #ffffff; --ink: #f3f5fb; --ink-2: #dfe5f2; --chip: #1a2236; --card: #141b2c; --card-2: #1b2438; --line: rgba(214, 226, 255, .14); --line-2: rgba(214, 226, 255, .24);
  --glass: rgba(24, 31, 50, .62); --glass-line: rgba(214, 226, 255, .16); --sel: rgba(243, 245, 251, .16); --sel-sh: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(0, 0, 0, .25); --acc: #7aa7ff; --acc-soft: rgba(122, 167, 255, .16); --bg: #080c17; }
.yz-shot-wrap { max-width: 1360px; margin: -8px auto 0; }
.yz-shot { width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 220px), transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 220px), transparent); }
.yz--centre.yz--in { animation: fade .24s var(--ease); }
.yz--centre.yz--out { animation: fade-out .22s var(--ease) forwards; }
@keyframes fade-out { to { opacity: 0; } }
.yz--name.yz--in { animation: nightfall .56s cubic-bezier(.65, 0, .35, 1); }
.yz--name.yz--out { animation: sunrise .56s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes nightfall { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sunrise { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.yz--dock.yz--in { animation: slide-in .4s cubic-bezier(.65, 0, .35, 1); }
.yz--dock.yz--out { animation: slide-out .4s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
:root[dir="rtl"] .yz--dock.yz--in { animation-name: slide-in-rtl; }
:root[dir="rtl"] .yz--dock.yz--out { animation-name: slide-out-rtl; }
@keyframes slide-in-rtl { from { transform: translateX(-100%); } }
@keyframes slide-out-rtl { to { transform: translateX(-100%); } }
.app { transition: transform .4s cubic-bezier(.65, 0, .35, 1); }
.app--hidden { visibility: hidden; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink-h); color: var(--bg); font-weight: 700; font-size: 16px; box-shadow: var(--sh-pop); animation: toast .22s var(--spring); overflow-wrap: anywhere; text-align: center; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px) scale(.96); } }

/* ---------- tablets and phones ---------- */
@media (max-width: 1024px) {
  .more--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl--rail .tl-body { grid-template-columns: 200px minmax(0, 1fr); }
  .card--lead .card-text, .more--1 .card-text { padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-bottom: 96px; }
  [data-sw="dock"] .page { padding-top: 20px; padding-bottom: 140px; }
  [data-sw="dock"] .app--behind { transform: translateX(-24%); }
  [data-sw="dock"][dir="rtl"] .app--behind { transform: translateX(24%); }
  [data-sw="dock"] .yz { padding-bottom: 96px; }
  [data-sw="dock"] .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .top { padding: 12px max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px)); gap: 8px; }
  .sw-b { height: 44px; padding: 0 16px; font-size: 16px; }
  .seg button, .seg--sm button { height: 44px; }
  .chip, .chip--view, .sf .chip { height: 44px; }
  .today { height: 40px; }
  .sw--name .sw-b { font-size: 22px; height: 44px; padding: 0 8px; }
  .day-head { padding-top: 24px; gap: 8px; }
  .day-row { gap: 8px; }
  .arrow { width: 44px; height: 44px; }
  .date { gap: 8px; font-size: calc(clamp(44px, 15vw, 60px) * var(--fd-scale, var(--fh-scale)) * min(1, 8 / var(--len, 8)) * var(--fit, 1)); padding: 4px 8px; }
  .date-cal svg { width: 20px; height: 20px; }
  .day-sub { font-size: 18px; }
  .fbar-row { padding: 16px 0 24px; }
  /* ready-made views: one row that scrolls sideways, starting at the edge */
  .fbar--views { flex-wrap: nowrap; justify-content: flex-start; max-width: none; width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .fbar--views::-webkit-scrollbar { display: none; }
  .chip--view { height: 44px; padding: 0 15px; flex: none; }
  .card-text { padding: 18px 18px 22px; gap: 8px; }
  .card--lead .card-hit, .more--1 .card-hit { grid-template-columns: 1fr; min-height: 0; }
  .card--lead .card-pic, .more--1 .card-pic { aspect-ratio: 16 / 10; min-height: 0; }
  .card--lead .card-text, .more--1 .card-text { padding: 20px 20px 24px; gap: 10px; }
  :root[data-frame="gallery"] .card--lead .card-text, :root[data-frame="gallery"] .card--card .card-text, :root[data-frame="gallery"] .more--1 .card-text { padding: 18px 2px 8px; }
  :root[data-frame="gallery"] .daylist, :root[data-frame="gallery"] .more { gap: 48px; }
  :root[data-look="olive"] .card--lead .card-pic, :root[data-look="olive"] .more--1 .card-pic, :root[data-look="olive"] .card .card-pic { margin: 10px 10px 0; border-radius: calc(var(--r) - 10px); }
  .card--lead .card-title { font-size: calc(30px * var(--fh-scale)); }
  .card--lead .card-why { font-size: 18px; }
  .card-title { font-size: calc(24px * var(--fh-scale)); }
  .card-why { font-size: 16px; }
  .more, .more--3 { grid-template-columns: 1fr; gap: 24px; }
  .daylist { gap: 24px; }
  .story--inline, .card--lead.is-open .story--inline { padding: 20px 18px 24px; }
  .ps-next { grid-template-columns: 1fr; }
  .next-card--end { text-align: start; justify-items: start; }
  .tl { margin-top: 72px; }
  .tl-title { font-size: calc(30px * var(--fh-scale)); }
  .erarow { margin-bottom: 28px; }
  .era-b { height: 44px; padding: 0 14px; }
  .tl--rail .tl-body { grid-template-columns: 1fr; }
  .tl-eras { gap: 48px; }
  .era-h { font-size: calc(24px * var(--fh-scale)); }
  .era-range { font-size: 16px; }
  .era-list { padding: 4px; }
  .row { grid-template-columns: minmax(0, 1fr) 72px; gap: 14px; padding: 14px 12px; align-items: start; }
  .row--nopic { grid-template-columns: minmax(0, 1fr); }
  .pic--row { width: 72px; height: 72px; margin-top: 4px; }
  .row-title { font-size: calc(20px * var(--fh-scale)); }
  .row-wrap .story--inline { padding: 4px 12px 20px; }
  .ps-bar { padding: 12px 0 14px; }
  .story { gap: 28px; }
  .story-top, .story--tall .story-top { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .story--tall .story-col, .reader .story--tall .story-col { margin-inline-start: 0; max-width: none; }
  .fig-img, .story--tall .fig-img { max-height: 70vh; border-radius: 12px; }
  .story--tall .fig { justify-items: center; }
  .story--tall .fig figcaption { text-align: center; }
  .story-title { font-size: calc(32px * var(--fh-scale)); }
  .story-why { font-size: 19px; }
  .story-summary { font-size: 18px; }
  .story-full p { font-size: 17px; }
  .story-h { font-size: calc(24px * var(--fh-scale)); }
  .foot-label { min-width: 0; width: 100%; }
  .reader { padding: 0; place-items: end stretch; }
  .reader-panel { position: absolute; inset: 12px 0 0; width: auto; height: auto; border-radius: 24px 24px 0 0; animation: up .3s var(--ease); }
  .reader-bar { padding: 8px 8px 0 20px; }
  .reader-scroll { padding: 8px 16px 40px; }
  .reader .story--tall .story-top { grid-template-columns: 1fr; }
  .reader .fig-img, .reader .story--tall .fig-img { max-height: 44vh; }
  .reader .story-title { font-size: calc(30px * var(--fh-scale)); }
  .search { inset-inline: 8px; width: auto; }
  .cal { width: min(340px, calc(100vw - 24px)); }
  .fp { width: calc(100vw - 32px); }
  .dock { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .four-b { min-width: 0; width: 100%; }
  .four-v { font-size: calc(17px * var(--fh-scale)); overflow: hidden; text-overflow: clip; }
  .when-eras span { font-size: 15px; }
  .people--wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .people--cards { grid-template-columns: 1fr; gap: 12px; }
  .yz-count { padding: 12px 0 32px; }
  .yz-n { font-size: calc(22px * var(--fh-scale)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- round 2, after the fresh review ---------- */
:root[data-theme="light"] .sw:not(.sw--name) { background: var(--chip); border-color: transparent; box-shadow: none; }
:root[data-theme="light"] .sw-lens { background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 3px 10px rgba(0, 0, 0, .1); }
/* the big date stays centred; the calendar mark sits in its own space at the end */
.date { position: relative; padding-inline: 48px; }
.date-cal { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -40%; }
/* the Filter button's picks: room for one row, close to the date */
.fbar-row:has(.fzone) { padding-top: 0; }
.fzone { gap: 6px; }
.picks { min-height: 40px; align-items: center; }
/* softer picture corners on the bare walls */
:root[data-frame="gallery"] .card .card-pic, :root[data-frame="gallery"] .pic--row, :root[data-frame="gallery"] .fig-img { border-radius: 10px; }
/* rows on bare walls line up with their era heading; the hover light reaches outside them */
:root[data-frame="gallery"] .row { margin-inline: -12px; padding-inline: 12px; }
/* this day's stories: a quiet dot */
.today-dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--acc); flex: none; }
.era-b .today-dot { margin-inline-start: 2px; }
/* four small buttons: rounder, even padding */
.four-b { border-radius: 22px; padding: 8px 18px 9px; }
/* a story with a tall picture: the picture stays beside the whole text column */
.story--tall { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; align-items: start; }
.story-side { position: sticky; top: 24px; }
.story-main { display: grid; gap: 28px; min-width: 0; }
.story--tall .story-main .story-col, .story--tall .story-main .story-head { margin: 0; max-width: 640px; }
.reader .story--tall { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; }
.reader .story-side { top: 0; }
.story-note { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 16px; line-height: 1.45; color: var(--ink); max-width: 60ch; }
/* the reader's bar: where you are with its arrows, and share with close */
.reader-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: -10px; }
.reader-nav .reader-pos { padding: 0 6px; }
.reader-bar { padding-inline: 20px 12px; }
:root[dir="rtl"] .reader-bar { padding-inline: 20px 12px; }
/* Yizkor's people: every name starts on the same line; portraits at their own size */
.person { align-content: start; }
.people--wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 44px 20px; }
.people--wall .por { border-radius: 10px; }
.por--none { background: var(--card-2); color: var(--ink-2); font-weight: 400; letter-spacing: .02em; }
.person-cause { align-items: flex-start; }
.person-cause .cat { margin-top: 2px; }
.person { border-radius: 14px; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.person.is-lit { background: var(--acc-soft); box-shadow: 0 0 0 10px var(--acc-soft); }
@media (max-width: 640px) {
  :root[data-frame="gallery"] .more--1 .card--card .card-text, :root[dir="rtl"][data-frame="gallery"] .more--1 .card--card .card-text, :root[dir="rtl"][data-frame="gallery"] .card--lead .card-text { padding: 18px 2px 8px; }
  .date { padding-inline: 32px; }
  .date-cal { inset-inline-end: 6px; }
  /* the spotlight stays an oval on narrow screens, not a column */
  .glow { background-size: 300% 100%; background-position: 50% 0; height: 560px; }
  .four-b { padding: 8px 14px 9px; border-radius: 18px; }
  .four-v { font-size: calc(16px * var(--fh-scale)); }
  .more--1 .card--card .card-pic { aspect-ratio: 16 / 10; }
  .story--tall, .reader .story--tall { grid-template-columns: 1fr; gap: 20px; }
  .story-side { position: static; }
  .story--tall .fig { justify-items: center; }
  .reader .fig-img, .reader .story--tall .fig-img { max-height: 40vh; }
  .people--wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

/* ---------- round 3 ---------- */
/* Blue walls, three ways, with a smooth wide light (eased falloff and a little grain, so it never bands) */
:root[data-look="sky"] { --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(186, 218, 255, .24) 0%, rgba(186, 218, 255, .18) 18%, rgba(186, 218, 255, .11) 38%, rgba(186, 218, 255, .05) 58%, rgba(186, 218, 255, .014) 76%, transparent 92%); }
:root[data-look="sky"][data-theme="light"] { --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .7) 22%, rgba(255, 255, 255, .38) 44%, rgba(255, 255, 255, .14) 64%, transparent 90%); }
:root[data-look="royal"] {
  --bg: #0b1d4a; --card: #12275c; --card-2: #183170; --chip: #1c3679; --line: rgba(200, 220, 255, .17); --line-2: rgba(200, 220, 255, .3);
  --ink-h: #ffffff; --ink: #e9efff; --ink-2: #dbe4fb; --acc: #9ccbff; --acc-ink: #06152f; --acc-soft: rgba(156, 203, 255, .2);
  --sel: rgba(235, 243, 255, .18); --glass: rgba(18, 40, 92, .62); --glass-line: rgba(200, 220, 255, .2); --scrim: rgba(3, 9, 26, .62);
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(176, 210, 255, .3) 0%, rgba(176, 210, 255, .22) 18%, rgba(176, 210, 255, .13) 38%, rgba(176, 210, 255, .06) 58%, rgba(176, 210, 255, .016) 76%, transparent 92%);
  --none-a: #1f3a7c; --none-b: #12275c;
}
:root[data-look="royal"][data-theme="light"] {
  color-scheme: light;
  --bg: #d8e4fb; --card: #ffffff; --card-2: #f3f7ff; --chip: #c6d6f4; --line: #b5c8ea; --line-2: #97b0dc;
  --ink-h: #030c26; --ink: #101c3c; --ink-2: #1f2c4e; --acc: #1a4fb0; --acc-ink: #ffffff; --acc-soft: rgba(26, 79, 176, .13);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(10, 30, 70, .14), 0 2px 8px rgba(10, 30, 70, .1); --glass: rgba(255, 255, 255, .74); --glass-line: rgba(10, 30, 70, .15); --scrim: rgba(8, 18, 45, .34);
  --sh: 0 1px 2px rgba(10, 30, 70, .08), 0 12px 30px rgba(10, 30, 70, .12); --sh-pop: 0 2px 6px rgba(10, 30, 70, .1), 0 24px 60px rgba(10, 30, 70, .2);
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .62) 22%, rgba(255, 255, 255, .32) 44%, rgba(255, 255, 255, .1) 64%, transparent 90%);
  --none-a: #c8d7f3; --none-b: #eef3fd;
}
:root[data-look="steel"] {
  --bg: #111a28; --card: #182334; --card-2: #1f2c40; --chip: #243247; --line: rgba(210, 225, 245, .14); --line-2: rgba(210, 225, 245, .26);
  --ink-h: #ffffff; --ink: #e8edf5; --ink-2: #dae1ec; --acc: #a9c8ee; --acc-ink: #0b1420; --acc-soft: rgba(169, 200, 238, .18);
  --sel: rgba(236, 242, 250, .16); --glass: rgba(26, 37, 54, .62); --glass-line: rgba(210, 225, 245, .17); --scrim: rgba(5, 9, 15, .62);
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(206, 222, 245, .18) 0%, rgba(206, 222, 245, .13) 18%, rgba(206, 222, 245, .08) 38%, rgba(206, 222, 245, .035) 58%, rgba(206, 222, 245, .01) 76%, transparent 92%);
  --none-a: #26344a; --none-b: #182334;
}
:root[data-look="steel"][data-theme="light"] {
  color-scheme: light;
  --bg: #e4e9f1; --card: #ffffff; --card-2: #f7f9fc; --chip: #d3dbe7; --line: #c1ccdb; --line-2: #a5b3c7;
  --ink-h: #060b14; --ink: #172130; --ink-2: #263243; --acc: #2b5288; --acc-ink: #ffffff; --acc-soft: rgba(43, 82, 136, .12);
  --sel: #ffffff; --sel-sh: 0 1px 2px rgba(15, 25, 40, .14), 0 2px 8px rgba(15, 25, 40, .1); --glass: rgba(255, 255, 255, .74); --glass-line: rgba(15, 25, 40, .14); --scrim: rgba(12, 18, 28, .34);
  --sh: 0 1px 2px rgba(15, 25, 40, .07), 0 12px 30px rgba(15, 25, 40, .1); --sh-pop: 0 2px 6px rgba(15, 25, 40, .1), 0 24px 60px rgba(15, 25, 40, .18);
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 22%, rgba(255, 255, 255, .3) 44%, rgba(255, 255, 255, .1) 64%, transparent 90%);
  --none-a: #d5dde8; --none-b: #f2f5f9;
}
:root[data-look="royal"] .yz.yz--new, :root[data-look="steel"] .yz.yz--new { --bg: #110d0a; --card: #1a1613; --card-2: #23201b; --chip: #29241f; --line: rgba(255, 240, 225, .13); --line-2: rgba(255, 240, 225, .24); --sel: rgba(255, 246, 236, .17); --glass: rgba(40, 33, 28, .62); --glass-line: rgba(255, 240, 225, .16); --none-a: #2b241e; --none-b: #1a1613;
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 196, 140, .2) 0%, rgba(255, 196, 140, .15) 18%, rgba(255, 196, 140, .09) 38%, rgba(255, 196, 140, .04) 58%, rgba(255, 196, 140, .01) 76%, transparent 92%); }
:root[data-look="sky"] .yz.yz--new { --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 196, 140, .2) 0%, rgba(255, 196, 140, .15) 18%, rgba(255, 196, 140, .09) 38%, rgba(255, 196, 140, .04) 58%, rgba(255, 196, 140, .01) 76%, transparent 92%); }
:root[data-look="royal"][data-theme="light"] .yz.yz--new, :root[data-look="steel"][data-theme="light"] .yz.yz--new { --bg: #f6f1ec; --card: #ffffff; --card-2: #fbf8f5; --chip: #ece4dc; --line: #d8cbbd; --line-2: #c2b2a1; --sel: #ffffff; --glass: rgba(255, 255, 255, .74); --glass-line: rgba(70, 45, 20, .16); --none-a: #ebe1d6; --none-b: #f8f3ee;
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 220, 185, .7) 0%, rgba(255, 220, 185, .45) 26%, rgba(255, 220, 185, .18) 52%, transparent 88%); }
:root[data-look="sky"] .glow, :root[data-look="royal"] .glow, :root[data-look="steel"] .glow { -webkit-mask-image: none; mask-image: none; }
:root[data-look="sky"] .glow::after, :root[data-look="royal"] .glow::after, :root[data-look="steel"] .glow::after, :root[data-look="royal"] .yz .glow::after {
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 520px at 50% 0, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 75% 520px at 50% 0, #000 30%, transparent 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* The Filter pill grows into its own panel: one shape on one spring, the label and the panel cross-fading */
.mf-zone { display: grid; justify-items: center; gap: 6px; width: 100%; }
.mf { position: relative; height: 44px; }
.mf-size { visibility: hidden; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.mf-box { position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 45; overflow: hidden; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.mf-box.is-open { border-color: var(--line-2); box-shadow: var(--sh-pop); }
.mf-btn { position: absolute; top: -1px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; font-weight: 700; font-size: 16px; color: var(--ink-h); white-space: nowrap; }
.mf-btn:active { scale: .97; }
.mf-panel { position: absolute; top: 0; inset-inline-start: 0; padding: 14px 20px 20px; display: grid; gap: 20px; text-align: start; transform-origin: 50% 0; overflow-y: auto; overscroll-behavior: contain; opacity: 0; }
.mf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-inline-end: -8px; }
.mf-title { margin: 0; font-size: calc(24px * var(--fh-scale)); }
/* the glass version: clear glass with a top edge of light; while filters are on, a slow light runs round the pill */
.mf-box--glass { background: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--sh); background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 46px); }
:root[data-theme="light"] .mf-box--glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--sh); }
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.mf-box--glass.is-on:not(.is-open)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 62%, var(--acc) 82%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 3.6s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }

/* Yizkor's people, as they look today: a small photo, the name, year, age and years since, the cause, the tag */
.people--live { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.pcard .por { border-radius: 10px; }
.pcard .cat { align-self: center; }
.pcard-text { display: grid; gap: 3px; min-width: 0; }
.pcard-name { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink-h); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 15px; color: var(--ink); }
.pcard-meta .yr { font-family: var(--fb); font-weight: 700; font-size: 15px; color: var(--acc); }
.pcard-meta span + span::before { content: "·"; margin-inline-end: 8px; }
.pcard-cause { font-size: 15px; line-height: 1.35; color: var(--ink); }
.pcard.is-lit { background: var(--acc-soft); box-shadow: 0 0 0 3px var(--acc); }

/* the reader that grows out of its card: everything driven by one spring, nothing on timers */
.reader--morph .scrim { animation: none; opacity: 0; }
.reader--morph .reader-panel { animation: none; will-change: clip-path, transform; transform-origin: 50% 0; }
.reader-body { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; }
.ghost--morph { transform-origin: 0 0; object-fit: fill; border-radius: 0; will-change: transform, clip-path; }
.reader-grab { display: grid; touch-action: none; }
.grabber { justify-self: center; width: 40px; height: 5px; margin-top: 8px; border-radius: 9px; background: var(--line-2); }
.thumb-close { position: fixed; z-index: 75; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: var(--sh-pop); color: var(--ink-h); font-weight: 700; font-size: 16px; }
.thumb-close:active { scale: .96; }

@media (max-width: 1024px) { .people--live { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .people--live { grid-template-columns: 1fr; gap: 10px; }
  .reader--morph .reader-panel { inset: 56px 0 0; }
  .reader--morph.reader--thumb .reader-panel { inset: 12px 0 0; }
  .reader--morph.reader--thumb .reader-scroll { padding-bottom: 96px; }
}
.fbar-row:has(.mf-zone) { padding-top: 0; }
@media (max-width: 640px) { .mf-zone .picks { min-height: 34px; } .day-head { padding-bottom: 0; } }

/* ---------- round 3, after the fresh review ---------- */
/* the Filter pill rests at its own size; a dim sits behind the open panel so it never slices the page */
.mf-box { width: 100%; height: 100%; }
.mf-dim { position: fixed; inset: 0; z-index: 44; background: var(--scrim); opacity: 0; pointer-events: none; }
.mf-box--glass.is-open { background-color: color-mix(in srgb, var(--card) 88%, transparent); }
.fp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link { font-weight: 700; font-size: 16px; color: var(--acc); padding: 6px 0; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* When: one clean track inset by the handle, era marks as ticks, short era names on phones */
.when-track, .when-eras { margin-inline: 14px; }
.when-band, .when-band.alt { background: var(--chip); box-shadow: none; }
.lab-short { display: none; font-weight: 600; }
.lab-full { font-weight: 600; }
/* selected states carry the half's own colour */
:root[data-look="sky"], :root[data-look="royal"], :root[data-look="steel"] { --sel: rgba(140, 196, 255, .26); }
:root[data-look="sky"][data-theme="light"], :root[data-look="royal"][data-theme="light"], :root[data-look="steel"][data-theme="light"] { --sel: #ffffff; }
/* Yizkor on these blues: a neutral near-black with a true orange light (no brown), orange selection */
:root[data-look="sky"] .yz.yz--new, :root[data-look="royal"] .yz.yz--new, :root[data-look="steel"] .yz.yz--new {
  --bg: #0f0f10; --card: #19191b; --card-2: #212124; --chip: #27272a; --line: rgba(255, 245, 235, .13); --line-2: rgba(255, 245, 235, .24); --sel: rgba(255, 160, 90, .24); --glass: rgba(34, 33, 35, .62); --glass-line: rgba(255, 245, 235, .16); --none-a: #29262a; --none-b: #19191b;
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 140, 60, .22) 0%, rgba(255, 140, 60, .16) 18%, rgba(255, 140, 60, .09) 38%, rgba(255, 140, 60, .04) 58%, rgba(255, 140, 60, .01) 76%, transparent 92%); }
:root[data-look="sky"][data-theme="light"] .yz.yz--new, :root[data-look="royal"][data-theme="light"] .yz.yz--new, :root[data-look="steel"][data-theme="light"] .yz.yz--new {
  --bg: #f6f3f0; --card: #ffffff; --card-2: #fbf9f7; --chip: #e9e3dd; --line: #d9cfc5; --line-2: #c3b6a8; --sel: #ffffff; --glass: rgba(255, 255, 255, .74); --glass-line: rgba(70, 45, 20, .16); --none-a: #ebe1d6; --none-b: #f8f3ee;
  --glow: radial-gradient(ellipse 75% 640px at 50% -140px, rgba(255, 200, 150, .7) 0%, rgba(255, 200, 150, .42) 26%, rgba(255, 200, 150, .16) 52%, transparent 88%); }
/* one deliberate placeholder for people without a photo */
.por--none { background: var(--acc-soft); color: var(--ink-h); font-weight: 600; letter-spacing: .03em; }
/* Yizkor's cards: three across, everything starting on the same line, nothing orphaned */
.people--live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { align-items: start; }
.pcard .cat { align-self: start; margin-top: 3px; }
.pcard-meta span { white-space: nowrap; }
/* the reader: no blur on the strip of the day above a phone sheet; a soft fade at the foot; clearer steps in the text */
.reader--morph .scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
.reader--morph .reader-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 36px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.story-why { font-size: 24px; line-height: 1.4; }
.story-summary { font-size: 18px; line-height: 1.7; }
.fig figcaption { text-wrap: balance; }
.reader .story-top .fig { max-width: var(--read); margin-inline: auto; justify-items: start; }
.reader .story-top .fig figcaption { text-align: start; }
/* the date and its Hebrew date read as one group */
.day-head { gap: 4px; }
.date { line-height: .98; }
/* light blues: chips one step darker so they read as buttons; the three blues further apart */
:root[data-look="sky"][data-theme="light"] { --bg: #e8eff9; --chip: #c9d8ef; }
:root[data-look="royal"][data-theme="light"] { --bg: #d0dcf8; --chip: #b7cbef; }
:root[data-look="steel"][data-theme="light"] { --bg: #e6e8ec; --chip: #cfd4dc; }
:root[data-look="steel"] { --bg: #1b2433; --card: #232e41; --card-2: #2b384e; --chip: #303d54; --line: rgba(215, 228, 245, .16); --line-2: rgba(215, 228, 245, .28); }
:root[data-look="steel"][data-theme="light"] { --card: #ffffff; --card-2: #f7f8fa; --line: #c7cdd6; --line-2: #aeb6c3; }
@media (max-width: 1024px) { .people--live { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .people--live { grid-template-columns: 1fr; }
  .lab-full { display: none; }
  .lab-short { display: inline; }
  .when-eras span { font-size: 15px; }
  .fig figcaption, .story--tall .fig figcaption { text-align: start; }
  .story-why { font-size: 20px; }
  .story-summary { font-size: 17px; }
  .reader--morph.reader--thumb .reader-panel::after { height: 120px; }
  /* all of history: the sort on the heading row, the eras in one row that scrolls sideways */
  .tl-head { flex-wrap: nowrap; }
  .tl-head .seg button { padding: 0 10px; }
  .erarow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .erarow::-webkit-scrollbar { display: none; }
  .era-b { flex: none; }
  /* the language control is a small pill, like on computers */
  .ibtn--lang { width: auto; min-width: 44px; height: 44px; padding: 0 12px; background: var(--chip); }
}
@media (max-width: 640px) { .card--lead .card-title { font-size: calc(27px * var(--fh-scale)); } }
/* the closed panel never catches the tap meant for the pill */
.mf-box:not(.is-open) .mf-panel { pointer-events: none; }
.mf-box.is-open .mf-btn { pointer-events: none; }

/* ---------- Round 4 (13 Nov 2026): When and Where only, a timeline built for phones, the reader on transforms ---------- */
/* a soft blur over the page behind the filter and the story: blue on Netzach's blue walls */
:root { --veil: rgba(6, 10, 22, .36); }
:root[data-theme="light"] { --veil: rgba(236, 240, 248, .46); }
:root[data-look="sky"], :root[data-look="royal"], :root[data-look="steel"] { --veil: rgba(10, 26, 62, .42); }
:root[data-look="sky"][data-theme="light"], :root[data-look="royal"][data-theme="light"], :root[data-look="steel"][data-theme="light"] { --veil: rgba(206, 224, 250, .5); }
.mf-dim { background: var(--veil); -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15); }
/* the filter turns a light blue while it is open */
.mf-box { transition: background-color .32s var(--ease), border-color .32s var(--ease); }
:root[data-look="sky"] .mf-box.is-open { background-color: #1a3263; border-color: rgba(170, 205, 255, .3); }
:root[data-look="sky"][data-theme="light"] .mf-box.is-open { background-color: #e8f0fd; border-color: #b4c9e8; }
:root[data-look="sky"][data-theme="light"] .mf-box.is-open .seg { background: #d3e1f5; }

/* When: one line, knobs you can see are made to be dragged */
.when { gap: 4px; }
.when-track { position: relative; height: 52px; margin-inline: 18px; touch-action: none; cursor: pointer; }
.when-band { display: none; }
.when-rail { position: absolute; inset-inline: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 99px; background: var(--chip); }
:root[data-theme="light"] .when-rail { background: #c4d4ec; }
.when-fill { top: 50%; height: 8px; margin-top: -4px; }
.when-tick { top: 50%; height: 18px; margin-top: -9px; }
.when-thumb, :root[dir="rtl"] .when-thumb { top: 50%; width: 34px; height: 34px; margin: -17px 0 0; margin-inline-start: -17px; border-radius: 99px; background: #fff; border: 2.5px solid var(--acc);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .3); cursor: grab; touch-action: none; transition: box-shadow .18s var(--ease), scale .18s var(--ease); }
:root[data-theme="light"] .when-thumb { box-shadow: 0 1px 2px rgba(15, 30, 60, .2), 0 3px 10px rgba(15, 30, 60, .16); }
.when-thumb::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 12px; border-radius: 1px; background: linear-gradient(90deg, var(--acc) 0 2px, transparent 2px 6px, var(--acc) 6px); }
.when-thumb:hover { box-shadow: 0 0 0 7px var(--acc-soft), 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .3); }
.when-thumb.is-held { scale: 1.12; cursor: grabbing; box-shadow: 0 0 0 9px var(--acc-soft), 0 2px 4px rgba(0, 0, 0, .3), 0 8px 18px rgba(0, 0, 0, .3); }
.when-thumb:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--acc); }
.when-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 4px; padding: 5px 10px; border-radius: 10px; background: var(--ink-h); color: var(--bg); font-weight: 800; font-size: 15px; line-height: 1.2; white-space: nowrap; font-variant-numeric: lining-nums; opacity: 0; pointer-events: none; transition: opacity .14s, translate .14s; }
.when-thumb.is-held .when-tip, .when-thumb:focus-visible .when-tip { opacity: 1; translate: -50% 0; }
/* the eras are buttons: tap one to pick it, the next to add it */
.when-eras, .when-eras--grid { margin-inline: 4px; }
.when-eras--grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.when-era { min-height: 40px; padding: 4px 6px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ink); text-align: center; transition: background-color .16s, color .16s, box-shadow .16s; }
.when-era:hover { background: var(--chip); color: var(--ink-h); }
.when-era[aria-pressed="true"] { background: var(--acc-soft); color: var(--ink-h); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 55%, transparent); }
/* phones, across: the names alternate above and below the line */
.when-eras--up, .when-eras--down { display: block; position: relative; height: 40px; margin-inline: 18px; }
.when-eras--up .when-era, .when-eras--down .when-era { position: absolute; top: 2px; min-height: 36px; padding: 0 10px; border-radius: 99px; white-space: nowrap; }
.when-era.is-mid { translate: -50% 0; }
:root[dir="rtl"] .when-era.is-mid { translate: 50% 0; }
.when-era.is-first { margin-inline-start: -10px; }
.when-era.is-last { margin-inline-end: -10px; }
/* phones, down: the line runs down the side and every era has its own row */
.when-v { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; margin-block: 14px 10px; }
.when--down .when-track { height: 280px; width: 44px; margin: 0; }
.when--down .when-rail { top: 0; bottom: 0; height: auto; width: 8px; inset-inline: 50% auto; margin: 0; margin-inline-start: -4px; }
.when--down .when-fill { inset-inline-start: 50%; width: 8px; margin: 0; margin-inline-start: -4px; }
.when--down .when-tick { inset-inline-start: 50%; width: 22px; height: 2px; margin: -1px 0 0; margin-inline-start: -11px; }
.when--down .when-thumb { inset-inline-start: 50%; margin: -17px 0 0; margin-inline-start: -17px; }
.when--down .when-thumb::before { width: 12px; height: 8px; background: linear-gradient(180deg, var(--acc) 0 2px, transparent 2px 6px, var(--acc) 6px); }
.when--down .when-tip { bottom: auto; top: 50%; left: calc(100% + 12px); translate: 4px -50%; }
.when--down .when-thumb.is-held .when-tip, .when--down .when-thumb:focus-visible .when-tip { translate: 0 -50%; }
:root[dir="rtl"] .when--down .when-tip { left: auto; right: calc(100% + 12px); translate: -4px -50%; }
.when-rows { display: grid; grid-template-rows: repeat(5, 56px); }
.when-row { display: grid; align-content: center; gap: 2px; padding: 0 14px; border-radius: 14px; text-align: start; transition: background-color .16s, box-shadow .16s; }
.when-row b { font-weight: 800; font-size: 17px; line-height: 1.2; color: var(--ink-h); }
.when-row span { font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--ink); }
.when-row:hover { background: var(--chip); }
.when-row[aria-pressed="true"] { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 50%, transparent); }

/* the story opens over a soft blur; everything that moves is a transform or an opacity */
.reader--morph .scrim { background: var(--veil); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.reader--morph .reader-panel { will-change: auto; }
.reader-panel:focus { outline: none; }
.reader-body { transform-origin: 0 0; }
.fly { position: fixed; z-index: 3; overflow: hidden; transform-origin: 0 0; visibility: hidden; pointer-events: none; will-change: transform; }
.fly img { display: block; width: 100%; height: 100%; object-fit: fill; transform-origin: 0 0; will-change: transform; }
.carry { position: fixed; z-index: 2; pointer-events: none; visibility: hidden; text-align: start; will-change: transform, opacity; }
.carry > * { display: block !important; position: static !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important; overflow: visible !important; min-height: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.reader--run .reader-panel, .reader--run .reader-body, .reader--run .story-head, .reader--run .story-col, .reader--run .fig figcaption, .reader--run .reader-grab, .reader--run .thumb-close { will-change: transform, opacity; }

/* Significance, at the end of every story */
.story-sig { display: grid; gap: 10px; margin-top: 10px; padding: 20px 24px 24px; border-radius: 18px; background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent); }
.story-sig .story-h { margin: 0; }
.story-sig p { margin: 0; font-size: 19px; line-height: 1.65; color: var(--ink-h); }
@media (max-width: 640px) { .story-sig { padding: 16px 16px 18px; } .story-sig p { font-size: 17px; } }
.when-eras--grid .when-era { padding-inline: 2px; white-space: nowrap; }
/* nothing under the finger moves when a range is picked: the picks row and the value row keep their height */
.mf-zone .picks { min-height: 48px; }
.when-top { min-height: 44px; }
.when-val { white-space: nowrap; }
.when--down .when-track { height: 240px; }
.when-rows { grid-template-rows: repeat(5, 48px); }
/* after the fresh review: the line and buttons stay visible on the open dark panel; titles read as titles */
:root[data-look="sky"][data-theme="dark"] .mf-box.is-open { --chip: rgba(255, 255, 255, .15); }
:root[data-look="sky"][data-theme="light"] { --veil: rgba(150, 180, 225, .36); }
.mf-panel .fp-group h3 { font-family: var(--fh); font-weight: var(--fh-w); font-size: calc(22px * var(--fh-scale)); line-height: 1.15; letter-spacing: 0; text-transform: none; }
.when-val { font-family: var(--fb); font-weight: 700; font-size: 18px; }
.when-eras--grid { margin-inline: 18px; }
@media (hover: none) {
  .when-era:hover:not([aria-pressed="true"]) { background: none; color: var(--ink); }
  .when-row:hover:not([aria-pressed="true"]) { background: none; }
}
@media (max-width: 640px) {
  /* the story stops below the top like an iPhone sheet, so the blurred page shows above it */
  .reader--morph.reader--thumb .reader-panel { inset: 44px 0 0; }
  .reader--morph .scrim, .mf-dim { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* ---------- the real build (14 Nov 2026): additions only, the design is settled ---------- */
/* thousands of timeline rows: the browser lays out only the ones near the screen */
.row-wrap { content-visibility: auto; contain-intrinsic-size: auto 132px; }
@media (max-width: 640px) { .row-wrap { contain-intrinsic-size: auto 150px; } }
/* each Yizkor card opens that person's profile on Yizkor */
.pcard { position: relative; }
.pcard-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.pcard-hit:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pcard:has(.pcard-hit:hover) { background: var(--card-2); }
.yz-wait { min-height: 60vh; }
.credit a, .fig figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
/* loading: the cards' shapes fade in after 200ms (a quick load never flashes them) and breathe until the stories arrive */
.daylist--wait { opacity: 0; animation: skel-in .3s var(--ease) .2s forwards; }
.skel { pointer-events: none; }
.skel .card-pic { background: var(--card-2); }
.skel-line { display: block; height: 14px; border-radius: 7px; background: var(--chip); margin: 10px 0; animation: skel-breathe 1.6s ease-in-out infinite; }
.skel-line.big { height: 28px; border-radius: 9px; }
.skel-line.w30 { width: 30%; } .skel-line.w70 { width: 70%; } .skel-line.w90 { width: 90%; }
@keyframes skel-in { to { opacity: 1; } }
@keyframes skel-breathe { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .skel-line { animation: none; } }

/* the calendar the site runs on, under the date (14 Nov 2026) */
.cal-switch { margin-top: 12px; padding: 3px; }
.cal-switch button, .seg--sm.cal-switch button { height: 34px; padding: 0 14px; font-size: 15px; font-weight: 600; }
/* with What back the panel is taller than a phone: it scrolls, and Done stays at its foot */
.mf-panel .fp-foot { position: sticky; bottom: -20px; margin: 0 -20px -20px; padding: 12px 20px 20px; background: var(--card); }
:root[data-look="sky"] .mf-panel .fp-foot { background: #1a3263; }
:root[data-look="sky"][data-theme="light"] .mf-panel .fp-foot { background: #e8f0fd; }

/* the Yizkor half's foot: the rest of Yizkor (its register, statistics and about pages) and that it is independent */
.yz-foot { display: grid; justify-items: center; gap: 14px; margin: 48px auto 24px; max-width: 720px; text-align: center; }
.yz-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.yz-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--chip); color: var(--ink-h); font-weight: 600; font-size: 16px; text-decoration: none; }
.yz-links a:hover { background: var(--acc-soft); }
.yz-indep { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 56ch; }
