/*
 * HAR SHALOM — Tehillim & Mishnayos by Name: the page's own look.
 *
 * Module   public/harshalom/static/prayers.css  (served at /harshalom/static/prayers.css)
 * Version  0.015 · 2026-11-11 · harshalom/0.018-pages2 (the count of its changelog entries; no line
 *          before 0.015)
 * Owner    lane T (Tehillim & Mishnayos, Yahrzeits, the names list); was lane B3
 * Linked   by app/harshalom/prayers/page.tsx, a <link precedence="next"> after hs.css
 *
 * A STATIC FILE, NOT A BUNDLER IMPORT, so the offline worker (sw-harshalom.js) keeps it: an
 * import is served from /_next/, which the worker never touches (Rule 31), and the page a family
 * holds at the tziyun came up unstyled offline. Served exactly as written: no PostCSS, no nesting.
 *
 * Every rule sits under `.hs` (BUILD_CONTRACT 5). v2 LOOK (OWNER_FEEDBACK_20261029 items 1, 7, 11;
 * DESIGN_V2.md): light everywhere, the tokens of static/hs.css (--hs-bg, --hs-surface, --hs-line,
 * --hs-ink, --hs-muted, --hs-accent …) and its shared classes (.hs-panel, .hs-btn, .hs-btn--primary,
 * .hs-btn--ghost, .hs-chip, .hs-input); no colour is written here but the paper's black on white. Green only as an accent (links,
 * the active state, the letters), gold only as a thin rule. Proportionate type: the TEXT is the one
 * large thing on the page, as a reading view should be.
 *
 * THREE LAYOUTS (item 11):
 *   PHONE    (< 700px)     the name box, then the text under it; a slim reading bar sticks on top
 *                          of the text (jump chips, A− A+, Full page)
 *   TABLET   (700-1199px)  the text and the name box side by side (the box on the right, where a
 *                          Hebrew line starts), the box sticky; touch targets 44px
 *   COMPUTER (>= 1200px)   the same with a wider box and a wide reading column; hover states,
 *                          focus rings; the main view fits 1440 x 900 with no scrolling but the text
 * "Full page" (data-reading on the root) puts away the header, the name box, the footer and the
 * sources: only the bar and the text, larger. The phone's call bar stays (the tziyun page).
 * THE OPTIONS (the owner, 29 Oct 2026: "give options to people … a drop-down menu"): a light strip
 * between the reading bar and the text (.hs-pr-opts) — two drop-downs and four boxes. From a tablet
 * it is open; on a phone, and in "Full page", it folds to one line that says what is chosen
 * ([data-open] opens it). Never printed (.hs-pr-ui). "Mishnayos only" puts the Mishnayos heading
 * right under the name, on screen and on paper (no page with the name alone).
 * Rule 40: the shell fills the screen; only the reading column caps its line length (fullbleed-ok).
 * The printed page ("Print") uses a NAMED @page, so it never touches another page's print.
 *
 * CHANGELOG (Rule 45)
 *   2026-10-28 feat/harshalom-cemetery-site, lane B3 — created.
 *   2026-10-28 feat/harshalom-cemetery-site, prayers fixer — the page now carries the call bar
 *     (HsCallBar); "Print this page" hides it, its Shabbos note and the install hint, and drops the
 *     bottom room hs.css keeps for it, so only the text reaches the paper.
 *   2026-10-28 review round 2, lane X — moved from app/harshalom/prayers/ to a static file the
 *     page links and the worker precaches (offline styles). No rule changed.
 *   2026-10-29 feat/harshalom-v2-light, lane T — rewritten for v2: light tokens only, the reading
 *     view (bar, jump chips, A−/A+ via --hs-pr-scale, Full page), the name box beside the text from
 *     700px, the "for whom" card, quiet buttons with one primary (Print); print rules kept and
 *     extended to the new header and bar.
 *   2026-10-29 feat/harshalom-v2-light, lane T (options) — the options strip (.hs-pr-opts); a
 *     section right under the title (Mishnayos only) keeps to the first sheet; tablet touch
 *     targets 44px (review: jump chips 34, A−/A+ 40, the card's map link and the PDF links 36-40).
 *   2026-11-02 feat/harshalom-v3-audit, lane L4 — audit V-31: a phone opened for one person (?b=)
 *     leads with that person and the text: the page title steps aside (still read aloud), the
 *     name box folds to the card's name and one row of Print · PDF · Share · Change the name
 *     (#hs-pr-change unfolds it: data-pr-edit); held sideways (under 500px tall) the title steps
 *     aside for a person's link and the options fold. V-57: the card's "Show on the map" pill centres
 *     its words. The v3 tokens: 44px touch targets on every touch screen (A−/A+ were 36, the jump
 *     chips 34), the 13px text floor (hints, labels, the English under the text's headings), and
 *     hs.css's one focus ring on the name box and the drop-downs (no outline:none, no glow).
 *   2026-11-02 feat/harshalom-v3-audit, review fix F3 — under 380px the jump chips fit their row
 *     (tighter gaps and padding) and wrap rather than clip (R2-12: "משניות" read "משניו" at 360px).
 *   2026-11-11 harshalom/0.015-kaddish — a fourth jump chip, קדיש (Kaddish d'Rabbanan
 *     at the end). Measured in Chrome at 320-820px: at 380-400px the fourth chip was cut off, so the
 *     tighter gaps and the wrap now hold below 420px, and below 380px the chips' own padding is 6px
 *     (and the bar's 6px): one row from 360px up, nothing clipped at any width (two rows at 340px
 *     and less, as the three chips had at 320px).
 *   2026-11-11 harshalom/0.015-kaddish, review fix (Law 1) — the fourth chip made the bar two rows on an
 *     upright iPad (810-869px: 61px → 111px) and on 340-354px phones (57px → 105px), and the fixed
 *     scroll-margin-top (sticky top + 64px) then landed every chip's heading 41-47px BEHIND the bar.
 *     Now (1) scroll-margin-top is the sticky top + the bar's measured height (--hs-pr-bar-h, set by
 *     prayers.js; 64px until then) + 6px, so a jump lands below the bar however many rows it has; and
 *     (2) from 700 to 879px "Full page" is its icon alone and the chips and tools sit closer (6px at
 *     700-759px), every chip at least 44px wide: one row from 740px up. Measured in Chrome at 320-1440px
 *     (every chip, the page and "Full page"): every heading lands 5.5-6.5px below the bar.
 *   2026-11-11 harshalom/0.015-kaddish, review fix (privacy) — the 0.015 line above gives no ticket
 *     number (this file is served). No rule changed.
 *   2026-11-11 harshalom/0.016-print (release 0.016, lane print) — print rules only: Kaddish d'Rabbanan
 *     prints on one sheet with what leads into it. The live check of 0.015 found a grave's sheet ending
 *     a page with "Before the Kaddish, say:" and its lead-in, and the next page holding only the Kaddish's
 *     heading and its five paragraphs (and on other names the Kaddish's own paragraphs ran over to a last
 *     sheet). Now the group from #hs-pr-a-kaddish (the lead-in's heading, or the Kaddish's heading when
 *     the office leaves the lead-in out) to the end of the text neither breaks inside nor between its
 *     blocks, so a sheet that cannot hold all of it ends after the last mishna and the whole Kaddish
 *     starts the next. Each heading still stays with its text. The reading view, and a sheet without the
 *     Kaddish (&kaddish=0, "Tehillim only"), do not change.
 *   2026-11-11 harshalom/0.016-print2 (release 0.016) — the group is ONE box: prayers.js draws it inside
 *     .hs-pr-keep (prayers-core.js keepTogether), and on paper that box is display: block + break-inside:
 *     avoid, the one construct every browser keeps whole; on screen it is display: contents, so the
 *     reading view draws exactly as before. It replaces lane print's rules on #hs-pr-a-kaddish's siblings
 *     and the grid heading, which held in Chrome only while the block before the group was a mishna:
 *     after an empty "letters of the name" heading (a name with no Hebrew letters, Neshama off) Chrome
 *     still broke inside the group, and Firefox, which does not honour break-after: avoid, held nothing
 *     (on one grave it left "Before the Kaddish, say:" alone at the foot of a page).
 *   2026-11-11 harshalom/0.015-fix2-prayers-sw, review 2 fix (Law 1) — from 370 to 419px a jump chip is
 *     never under a 44px target again (min-width, its word centred): the tighter padding had made the קי״ט
 *     chip 42.4px wide on a 380-419px phone, where 0.014 had 46.4px. Below 370px the chips keep their own
 *     width, because at 360px four 44px chips wrap the bar to two rows. Measured in Chrome at 360-430px:
 *     one row from 360px up, no chip under 44px wide from 370px up, every jump lands 5.5-6.5px below
 *     the bar, no sideways scroll.
 *   2026-11-11 harshalom/0.018-pagesA (the site audit of 11 Nov 2026, R5) — "Full page" on a phone is full
 *     page: a person's folded box (Print · PDF · Share · Change the name) no longer stays above the
 *     text, and the reading panel sits inside the screen (it ran 16px past both edges; at 600x900 the
 *     page scrolled sideways). Two rules under [data-reading] that outrank the phone's; from 700px up
 *     nothing changes (the panel had no pull there and the box was already put away).
 *   2026-11-11 harshalom/0.018-pages2 — Rule 45: the Version line above (0.015, the count of these
 *     entries), as hs.css and the other 0.018 sheets carry one. No rule changed.
 */

/* ── the page ──────────────────────────────────────────────────────────── */

/* The shared .hs-main is a capped reading column; this page's shell fills the screen (Rule 40). */
.hs.hs-pr .hs-pr-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px 24px;
}

.hs.hs-pr .hs-pr-nojs {
  margin-bottom: 12px;
  color: var(--hs-red);
  text-align: center;
}

.hs.hs-pr .hs-pr-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hs.hs-pr .hs-pr-side,
.hs.hs-pr .hs-pr-read {
  min-width: 0;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  box-shadow: var(--hs-shadow);
}

.hs.hs-pr .hs-pr-side {
  padding: 14px;
}

/* The bar sticks inside the reading panel, so the panel must not clip it. */
.hs.hs-pr .hs-pr-read {
  overflow: visible;
  padding: 0;
}

/* ── the name box ──────────────────────────────────────────────────────── */

.hs.hs-pr .hs-pr-h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.hs.hs-pr .hs-pr-h2__en {
  font-family: var(--hs-sans);
  font-weight: 650;
  color: var(--hs-ink);
}

.hs.hs-pr .hs-pr-h2__yi {
  font-family: var(--hs-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--hs-accent-ink);
}

.hs.hs-pr .hs-pr-intro {
  margin: 0;
  font-family: var(--hs-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--hs-ink);
  text-align: right;
}

.hs.hs-pr .hs-pr-intro-en {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hs-muted);
}

.hs.hs-pr .hs-pr-field {
  margin-top: 12px;
}

.hs.hs-pr .hs-pr-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--hs-ink);
}

.hs.hs-pr .hs-pr-label [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-accent-ink);
}

.hs.hs-pr .hs-pr-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  color: var(--hs-ink);
  font-family: var(--hs-serif);
  font-size: 22px;
  line-height: 1.3;
  text-align: right;
}

.hs.hs-pr .hs-pr-input::placeholder {
  color: var(--hs-faint);
}

/* The focus ring is hs.css's one solid ring (audit V-56); the border only darkens with it. */
.hs.hs-pr .hs-pr-input:focus {
  border-color: var(--hs-accent);
}

.hs.hs-pr .hs-pr-input[aria-invalid='true'] {
  border-color: var(--hs-red);
}

.hs.hs-pr .hs-pr-hint {
  margin: 4px 0 0;
  font-size: var(--hs-fs-min);
  color: var(--hs-faint);
}

.hs.hs-pr .hs-pr-err {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--hs-red);
  border-radius: 8px;
  background: var(--hs-red-soft);
  color: var(--hs-red);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.hs.hs-pr .hs-pr-err[hidden] {
  display: none;
}

.hs.hs-pr .hs-pr-err__en {
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

/* ── "for whom": the grave the Tehillim were opened for ────────────────── */

.hs.hs-pr .hs-pr-who {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hs-line);
  border-inline-end: 2px solid var(--hs-accent);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
}

.hs.hs-pr .hs-pr-who[hidden] {
  display: none;
}

.hs.hs-pr .hs-pr-who__tag {
  margin: 0;
  font-family: var(--hs-serif);
  font-size: 13px;
  color: var(--hs-muted);
  text-align: right;
}

.hs.hs-pr .hs-pr-who__he {
  margin: 0;
  font-family: var(--hs-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hs-ink);
  text-align: right;
}

.hs.hs-pr .hs-pr-who__meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--hs-muted);
}

.hs.hs-pr .hs-pr-who__plot {
  white-space: nowrap;
}

.hs.hs-pr .hs-pr-who__plot [lang='yi'] {
  font-family: var(--hs-serif);
}

.hs.hs-pr .hs-pr-who__go {
  display: inline-flex;
  flex-wrap: wrap;
  /* the words sit in the middle of the pill at any height (audit V-57: at 44px they hugged the top) */
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 0 4px;
  margin-top: 8px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hs.hs-pr .hs-pr-who__go [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 14px;
}

/* ── the letters ───────────────────────────────────────────────────────── */

.hs.hs-pr .hs-pr-letters {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
}

.hs.hs-pr .hs-pr-lrow {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 8px;
}

.hs.hs-pr .hs-pr-lrow + .hs-pr-lrow {
  margin-top: 6px;
}

.hs.hs-pr .hs-pr-ltag {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 60px;
  padding-top: 2px;
  font-family: var(--hs-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--hs-accent-ink);
}

.hs.hs-pr .hs-pr-ltag small {
  font-family: var(--hs-sans);
  font-size: var(--hs-fs-min);
  font-weight: 500;
  color: var(--hs-muted);
}

.hs.hs-pr .hs-pr-chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 34px;
}

.hs.hs-pr .hs-pr-chips__none {
  align-self: center;
  color: var(--hs-faint);
  font-size: 18px;
}

.hs.hs-pr .hs-pr-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  border: 1px solid var(--hs-line-2);
  border-radius: 7px;
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
  font-family: var(--hs-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.hs.hs-pr .hs-pr-chip--n {
  border-color: var(--hs-gold);
  background: var(--hs-surface);
}

.hs.hs-pr .hs-pr-chip--off {
  opacity: 0.45;
  text-decoration: line-through;
}

.hs.hs-pr .hs-pr-lnote {
  margin: 6px 0 0;
  font-size: var(--hs-fs-min);
  color: var(--hs-muted);
  text-align: right;
}

.hs.hs-pr .hs-pr-lnote[hidden] {
  display: none;
}

/* ── the actions ───────────────────────────────────────────────────────── */

.hs.hs-pr .hs-pr-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.hs.hs-pr .hs-pr-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 10px;
  font-size: 14px;
}

.hs.hs-pr .hs-pr-act svg {
  flex: none;
}

/* The two quiet actions carry their Yiddish over their English, so they fit side by side. */
.hs.hs-pr .hs-pr-act__txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}

.hs.hs-pr .hs-pr-act [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 15px;
}

.hs.hs-pr .hs-pr-act__en {
  font-size: var(--hs-fs-min);
  white-space: nowrap;
}

/* Print is the one primary action: a whole row, its two words on one line. */
.hs.hs-pr #hs-pr-print {
  grid-column: 1 / -1;
}

.hs.hs-pr #hs-pr-print .hs-pr-act__txt {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.hs.hs-pr #hs-pr-print .hs-pr-act__en {
  font-size: 14px;
}

.hs.hs-pr .hs-pr-act:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hs.hs-pr .hs-pr-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--hs-muted);
  overflow-wrap: anywhere;
}

/* Empty: no room kept (it is still in the page, so a screen reader hears what it later says). */
.hs.hs-pr .hs-pr-status:empty {
  min-height: 0;
  margin: 0;
}

.hs.hs-pr .hs-pr-status [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 15px;
}

.hs.hs-pr .hs-pr-status--busy {
  color: var(--hs-accent);
}

.hs.hs-pr .hs-pr-status--ok {
  color: var(--hs-green);
  font-weight: 600;
}

.hs.hs-pr .hs-pr-status--error {
  color: var(--hs-red);
  font-weight: 600;
}

.hs.hs-pr .hs-pr-result {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.hs.hs-pr .hs-pr-result[hidden],
.hs.hs-pr .hs-pr-btn2[hidden] {
  display: none;
}

.hs.hs-pr .hs-pr-btn2 {
  min-height: 40px;
  padding: 4px 12px;
  font-size: 13px;
  text-decoration: none;
}

.hs.hs-pr .hs-pr-btn2 [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 15px;
}

/* ── the reading view ──────────────────────────────────────────────────── */

.hs.hs-pr .hs-pr-bar {
  position: sticky;
  /* Under hs.css's sticky site header (--hs-sticky-top: 0 on a phone, its height from a tablet). */
  top: var(--hs-sticky-top, 0px);
  z-index: 3;
  /* Right to left like the text: the jump chips on the right, by its first word. */
  direction: rtl;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hs-line);
  border-radius: var(--hs-r) var(--hs-r) 0 0;
  background: var(--hs-surface);
}

.hs.hs-pr .hs-pr-jump {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.hs.hs-pr .hs-pr-jump__a[hidden] {
  display: none;
}

.hs.hs-pr .hs-pr-jump__a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 2px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-family: var(--hs-serif);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.hs.hs-pr .hs-pr-tools {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.hs.hs-pr .hs-pr-tool {
  min-width: 40px;
  min-height: 36px;
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 600;
}

.hs.hs-pr .hs-pr-tool--big {
  font-size: 16px;
}

.hs.hs-pr .hs-pr-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hs.hs-pr .hs-pr-full__on,
.hs.hs-pr .hs-pr-full__off {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hs.hs-pr .hs-pr-full__off,
.hs.hs-pr[data-reading] .hs-pr-full__on {
  display: none;
}

.hs.hs-pr[data-reading] .hs-pr-full__off {
  display: inline-flex;
}

/* The text: the one large thing on the page. --hs-pr-scale is A− / A+ (prayers.js). */
.hs.hs-pr .hs-pr-doc {
  --hs-pr-base: 20px;
  box-sizing: border-box;
  /* fullbleed-ok: a reading column caps its line length (Rule 40); the shell around it fills. */
  max-width: 62rem;
  margin: 0 auto;
  padding: 16px 16px 28px;
  color: var(--hs-ink);
  font-family: var(--hs-serif);
  font-size: calc(var(--hs-pr-base) * var(--hs-pr-scale, 1));
  line-height: 1.9;
  text-align: justify;
  /* A jump lands under the sticky header AND the reading bar, however tall the bar is: prayers.js
     keeps its measured height on the page root as --hs-pr-bar-h (two rows where the chips wrap);
     64px stands in until then (0.015 review: a fixed 64px hid the heading 47px under a 111px bar). */
  scroll-margin-top: calc(var(--hs-sticky-top, 0px) + var(--hs-pr-bar-h, 64px) + 6px);
}

.hs.hs-pr .hs-pr-doc:empty {
  min-height: 40vh;
}

.hs.hs-pr .hs-pr-doc:focus {
  outline: none;
}

.hs.hs-pr .hs-pr-title {
  margin: 4px 0 10px;
  text-align: center;
  line-height: 1.3;
}

.hs.hs-pr .hs-pr-title p {
  margin: 0;
}

.hs.hs-pr .hs-pr-title__top,
.hs.hs-pr .hs-pr-title__bottom {
  font-size: 0.8em;
  color: var(--hs-muted);
}

.hs.hs-pr .hs-pr-title__name {
  margin: 2px 0;
  font-size: 1.45em;
  font-weight: 700;
  color: var(--hs-accent-ink);
  overflow-wrap: anywhere;
}

.hs.hs-pr .hs-pr-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--hs-gold);
}

.hs.hs-pr .hs-pr-h,
.hs.hs-pr .hs-pr-sec,
.hs.hs-pr .hs-pr-ch {
  /* hs.css sizes every h3/h4 for the interface; inside the text they follow the reading size. */
  font-family: var(--hs-serif);
  font-size: 1em;
  letter-spacing: 0;
}

.hs.hs-pr .hs-pr-h,
.hs.hs-pr .hs-pr-sec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 1.4em 0 0.4em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hs-line);
  line-height: 1.35;
  scroll-margin-top: calc(var(--hs-sticky-top, 0px) + var(--hs-pr-bar-h, 64px) + 6px);
}

.hs.hs-pr .hs-pr-h__yi {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--hs-accent-ink);
  text-align: right;
}

.hs.hs-pr .hs-pr-h__en,
.hs.hs-pr .hs-pr-ch__en,
.hs.hs-pr .hs-pr-sec__en {
  font-family: var(--hs-sans);
  font-size: var(--hs-fs-min);
  font-weight: 500;
  color: var(--hs-muted);
  text-align: left;
}

.hs.hs-pr .hs-pr-sec {
  align-items: center;
  margin-top: 2em;
  padding-top: 0.8em;
  border-top: 1px solid var(--hs-line);
}

/* "Mishnayos only": the section opens the text, right under the name. */
.hs.hs-pr .hs-pr-title + .hs-pr-sec {
  margin-top: 0.6em;
  padding-top: 0;
  border-top: 0;
}

.hs.hs-pr .hs-pr-sec__yi {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs.hs-pr .hs-pr-ch {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0.9em 0 0.1em;
}

.hs.hs-pr .hs-pr-ch__yi {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--hs-accent);
}

.hs.hs-pr .hs-pr-p {
  margin: 0 0 0.5em;
}

/* The part kept on one sheet (prayers.js: Kaddish d'Rabbanan with its lead-in). On screen it draws no
   box of its own: its blocks lay out exactly as the text's other blocks. Paper: the print rules below. */
.hs.hs-pr .hs-pr-keep {
  display: contents;
}

/* A letter beside its eight verses (or its mishna), a thin gold rule between. */
.hs.hs-pr .hs-pr-letter {
  display: flex;
  gap: 10px;
  margin: 0.7em 0;
  break-inside: avoid;
}

.hs.hs-pr .hs-pr-letter__l {
  flex: none;
  width: 1.6em;
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--hs-accent);
  text-align: center;
}

.hs.hs-pr .hs-pr-letter__body {
  flex: 1;
  min-width: 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--hs-gold);
  /* A short verse justified on a phone opens gaps of half a line; the PDF justifies its wider lines. */
  text-align: start;
}

.hs.hs-pr .hs-pr-v {
  margin: 0;
  padding-inline-start: 1em;
  text-indent: -1em;
}

.hs.hs-pr .hs-pr-mlabel {
  margin: 0;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--hs-accent-ink);
  text-align: right;
}

.hs.hs-pr .hs-pr-src {
  margin: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--hs-line);
  font-size: var(--hs-fs-min);
  line-height: 1.5;
  color: var(--hs-muted);
}

/* ── the family's options (the owner, 29 Oct 2026) ─────────────────────── */

.hs.hs-pr .hs-pr-opts {
  border-bottom: 1px solid var(--hs-line);
  background: var(--hs-bg);
}

/* The fold-out line: a phone, and "Full page". */
.hs.hs-pr .hs-pr-opts__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--hs-ink);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}

.hs.hs-pr .hs-pr-opts__toggle svg {
  flex: none;
  color: var(--hs-accent);
}

.hs.hs-pr .hs-pr-opts__name {
  flex: none;
  font-weight: 650;
}

.hs.hs-pr .hs-pr-opts__name [lang='yi'],
.hs.hs-pr .hs-pr-opts__h [lang='yi'] {
  font-family: var(--hs-serif);
  font-weight: 600;
  color: var(--hs-accent-ink);
}

/* What is chosen, small, at the end of the line (one line each; never taller than the button). */
.hs.hs-pr .hs-pr-opts__sum {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  overflow: hidden;
  font-size: var(--hs-fs-min);
  line-height: 1.2;
  color: var(--hs-muted);
  text-align: right;
}

.hs.hs-pr .hs-pr-opts__sum > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs.hs-pr .hs-pr-opts__sum [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 14px;
}

.hs.hs-pr .hs-pr-opts[data-changed] .hs-pr-opts__sum {
  color: var(--hs-accent-ink);
  font-weight: 600;
}

.hs.hs-pr .hs-pr-opts__chev {
  flex: none;
  display: inline-flex;
  color: var(--hs-muted);
  transition: transform 0.15s ease;
}

.hs.hs-pr .hs-pr-opts[data-open] .hs-pr-opts__chev {
  transform: rotate(180deg);
}

.hs.hs-pr .hs-pr-opts__body {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'sels sels'
    'boxes boxes'
    'reset reset';
  gap: 8px 12px;
  padding: 2px 12px 10px;
}

.hs.hs-pr .hs-pr-opts[data-open] .hs-pr-opts__body {
  display: grid;
}

.hs.hs-pr .hs-pr-opts__h {
  grid-area: h;
  display: none;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--hs-ink);
}

.hs.hs-pr .hs-pr-opts__sels {
  grid-area: sels;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 12px;
}

.hs.hs-pr .hs-pr-optsel__l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 650;
  color: var(--hs-ink);
}

.hs.hs-pr .hs-pr-optsel__l [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-accent-ink);
}

/* The drop-downs keep the browser's own arrow (light, outlined like .hs-input). */
.hs.hs-pr .hs-pr-sel {
  display: block;
  box-sizing: border-box;
  width: 100%;
  /* fullbleed-ok: a drop-down no wider than its words on a big screen (the strip still fills) */
  max-inline-size: var(--hs-field-max);
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--hs-line-2);
  border-radius: var(--hs-r);
  background-color: var(--hs-surface);
  color: var(--hs-ink);
  font: inherit;
  /* 16px on a phone, so iOS does not zoom into the page. */
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}

.hs.hs-pr .hs-pr-sel:focus-visible {
  border-color: var(--hs-accent);
}

/* One column on a phone, two on a tablet, the four in a row on a computer. */
.hs.hs-pr .hs-pr-opts__boxes {
  grid-area: boxes;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px 12px;
}

/* The box beside the first line of its words (a label may wrap to three lines). */
.hs.hs-pr .hs-pr-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0 4px;
  cursor: pointer;
}

.hs.hs-pr .hs-pr-opt__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--hs-accent);
  cursor: pointer;
}

/* Its Yiddish over its English, as on the action buttons. */
.hs.hs-pr .hs-pr-opt__txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.hs.hs-pr .hs-pr-opt__txt [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 15px;
  color: var(--hs-ink);
}

.hs.hs-pr .hs-pr-opt__en {
  font-size: var(--hs-fs-min);
  color: var(--hs-muted);
}

.hs.hs-pr .hs-pr-opt__en bdi {
  font-family: var(--hs-serif);
  font-size: 14px;
}

/* An option that does not apply to what is chosen (the chapters with Mishnayos only): greyed. */
.hs.hs-pr .hs-pr-opt:has(.hs-pr-opt__box:disabled) {
  opacity: 0.5;
  cursor: default;
}

.hs.hs-pr .hs-pr-opts__reset {
  grid-area: reset;
  justify-self: start;
  min-height: 40px;
  padding: 4px 12px;
  font-size: 13px;
}

.hs.hs-pr .hs-pr-opts__reset[hidden] {
  display: none;
}

.hs.hs-pr .hs-pr-opts__reset [lang='yi'] {
  font-family: var(--hs-serif);
  font-size: 15px;
}

/* From a tablet the strip is open (the page has room); "Full page" folds it like a phone. */
@media (min-width: 700px) {
  .hs.hs-pr:not([data-reading]) .hs-pr-opts__toggle {
    display: none;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-opts__body {
    display: grid;
    grid-template-areas:
      'h reset'
      'sels sels'
      'boxes boxes';
    align-items: center;
    padding: 10px 14px 8px;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-opts__h {
    display: flex;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-opts__reset {
    justify-self: end;
  }

  .hs.hs-pr .hs-pr-sel {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .hs.hs-pr:not([data-reading]) .hs-pr-opts__body {
    gap: 6px 16px;
    padding: 10px 16px 6px;
  }

  .hs.hs-pr .hs-pr-sel {
    min-height: 38px;
  }

  .hs.hs-pr .hs-pr-opt {
    min-height: 38px;
  }

  .hs.hs-pr .hs-pr-opts__reset {
    min-height: 32px;
    padding: 2px 12px;
  }
}

/* ── hover and focus (a mouse or a keyboard) ───────────────────────────── */

@media (hover: hover) {
  .hs.hs-pr .hs-pr-jump__a:hover {
    border-color: var(--hs-accent);
    background: var(--hs-accent-soft);
  }

  .hs.hs-pr .hs-pr-sel:hover {
    border-color: var(--hs-accent);
  }

  .hs.hs-pr .hs-pr-opts__toggle:hover .hs-pr-opts__name {
    color: var(--hs-accent-ink);
  }
}

.hs.hs-pr .hs-pr-jump__a:focus-visible,
.hs.hs-pr .hs-pr-tool:focus-visible,
.hs.hs-pr .hs-pr-act:focus-visible,
.hs.hs-pr .hs-pr-opts__toggle:focus-visible,
.hs.hs-pr .hs-pr-opt__box:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

/* ── PHONE (< 700px): the reading bar stays one line ───────────────────── */

@media (max-width: 699px) {
  .hs.hs-pr .hs-pr-bar {
    flex-wrap: nowrap;
    padding: 6px 8px;
  }

  .hs.hs-pr .hs-pr-jump__a {
    padding: 2px 10px;
  }

  /* "Full page" as its icon alone (its words stay for a screen reader). */
  .hs.hs-pr .hs-pr-full {
    gap: 0;
    padding: 2px 8px;
    font-size: 0;
  }

  .hs.hs-pr .hs-pr-tool {
    min-width: 36px;
    padding: 2px 6px;
  }

  /* A narrow drop-down: every pixel for its words (Yiddish first; the English end may be cut). */
  .hs.hs-pr .hs-pr-sel {
    padding: 6px 4px 6px 8px;
  }

  /* Opened for one person (?b=, or picked from the list): the box loses its long words, so the
     text comes sooner. Typing a new name unfolds it. */
  .hs.hs-pr[data-picked] .hs-pr-intro,
  .hs.hs-pr[data-picked] .hs-pr-intro-en,
  .hs.hs-pr[data-picked] .hs-pr-hint,
  .hs.hs-pr[data-picked] .hs-pr-letters {
    display: none;
  }

  /* … and until "Change the name" opens it (data-pr-edit), the person and the TEXT lead (audit
     V-31: a shared link showed no Tehillim on the first screen). The page title steps aside (still
     read aloud: the skip link lands on it); the box is the card's name and one row of actions. */
  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-head {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-side > * {
    margin-top: 0;
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-h2,
  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-field,
  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-who__meta,
  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-who__go {
    display: none;
  }

  /* the name first, small and quiet: "לעילוי נשמת" and the name on one line where it fits */
  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-who {
    order: -1;
    display: flex;
    /* right to left like the words: the tag at the right, the name after it (wraps under it) */
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0 8px;
    padding: 6px 10px;
  }

  /* Print · PDF / Share · Change the name: two rows of two, every one 44px */
  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) #hs-pr-print {
    grid-column: auto;
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) #hs-pr-print .hs-pr-act__txt {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) #hs-pr-print .hs-pr-act__en {
    font-size: var(--hs-fs-min);
  }

  .hs.hs-pr[data-picked]:not([data-pr-edit]) .hs-pr-change {
    display: inline-flex;
  }
}

/* "Change the name" exists only on a phone's folded box (above). */
.hs.hs-pr .hs-pr-change {
  display: none;
}

/* ── TABLET (700-1199px): the text and the name box side by side ───────── */

@media (min-width: 700px) {
  .hs.hs-pr .hs-pr-main {
    padding: 16px 20px 28px;
  }

  .hs.hs-pr .hs-pr-split {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: 'read side';
    gap: 16px;
  }

  .hs.hs-pr .hs-pr-read {
    grid-area: read;
  }

  .hs.hs-pr .hs-pr-side {
    grid-area: side;
    position: sticky;
    top: calc(var(--hs-sticky-top, 0px) + 12px);
    max-height: calc(100vh - var(--hs-sticky-top, 0px) - 24px);
    overflow-y: auto;
  }

  .hs.hs-pr .hs-pr-doc {
    --hs-pr-base: 21px;
    padding: 18px 22px 30px;
  }

  .hs.hs-pr .hs-pr-tool {
    min-height: 40px;
  }
}

/* A phone or a tablet is touched, and so is a big touch screen: every target 44px (DESIGN_V2;
   review 29 Oct at 820x1180; audit V-26: A−/A+ were 36px and the jump chips 34px on a phone). */
@media (pointer: coarse), (max-width: 1199.98px) {
  .hs.hs-pr .hs-pr-jump__a,
  .hs.hs-pr .hs-pr-tool,
  .hs.hs-pr .hs-pr-btn2,
  .hs.hs-pr .hs-pr-who__go,
  .hs.hs-pr .hs-pr-opts__reset {
    min-height: var(--hs-tap);
  }

  .hs.hs-pr .hs-pr-tool {
    min-width: var(--hs-tap);
  }
}

/* An upright tablet (700-879px: an iPad held upright is 768-834px) reads in a ~390-500px column
   beside the name box. With the fourth chip (קדיש) its bar wrapped to two rows (61px → 111px at
   820x1180), so here "Full page" is its icon alone, as on a phone (its words stay for a screen
   reader), and the chips and tools sit closer: one row from about 760px up. A chip is never under
   a 44px target (min-width), and the A− / A+ / Full page targets stay 44px (the touch rule above).
   In "Full page" the bar has the whole width and keeps its words. Below about 760px it may still
   wrap: the jump targets follow the bar's measured height (--hs-pr-bar-h), so nothing lands under it. */
@media (min-width: 700px) and (max-width: 879.98px) {
  .hs.hs-pr:not([data-reading]) .hs-pr-bar {
    gap: 6px;
    padding: 8px;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-jump {
    gap: 4px;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-jump__a {
    justify-content: center;
    min-width: var(--hs-tap);
    padding: 2px 8px;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-tools {
    gap: 4px;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-full {
    gap: 0;
    padding: 2px 8px;
    font-size: 0;
  }
}

/* … and an iPad mini held upright (744px): the chips' and the bar's sides 6px, as on the narrowest
   phones, and it is one row too (from about 740px). */
@media (min-width: 700px) and (max-width: 759.98px) {
  .hs.hs-pr:not([data-reading]) .hs-pr-bar {
    padding: 8px 6px;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-jump__a {
    padding: 2px 6px;
  }
}

/* v3 review (R2-12): on the narrowest phones (360px) the three jump chips were 21px too wide for
   their row, and "משניות" was cut to "משניו" with no sign of more. Tighter gaps and chip padding
   give them the room; should a phone's font still need more, the chips wrap to a second line —
   a Hebrew label is never clipped. Since 0.015 there are four chips (קדיש), and at 380-400px the
   fourth was cut: so this holds below 420px, and below 380px the chips are tighter still.
   The tighter padding never takes a chip under a 44px target (min-width, its word centred): the
   short קי״ט chip was 42.4px wide on a 390-412px phone (46.4px in 0.014). Measured in Chrome, four
   such chips fit one row from 361px up; at 360px they would need 8px more, so the narrowest
   phones keep the chips' own width (the block below 370px). */
@media (max-width: 419.98px) {
  .hs.hs-pr .hs-pr-bar {
    gap: 6px;
  }

  .hs.hs-pr .hs-pr-jump {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hs.hs-pr .hs-pr-jump__a {
    padding: 2px 8px;
    justify-content: center;
    min-width: var(--hs-tap);
  }

  .hs.hs-pr .hs-pr-tools {
    gap: 4px;
  }
}

@media (max-width: 379.98px) {
  .hs.hs-pr .hs-pr-bar {
    padding: 6px;
  }

  .hs.hs-pr .hs-pr-jump__a {
    padding: 2px 6px;
  }
}

/* The narrowest phones (360px): four chips 44px wide would wrap the bar to two rows, so here the
   short chips keep their own width (קי״ט 38.4px, as before this floor). */
@media (max-width: 369.98px) {
  .hs.hs-pr .hs-pr-jump__a {
    min-width: auto;
  }
}

/* ── COMPUTER (>= 1200px): everything for the task on one screen ───────── */

@media (min-width: 1200px) {
  .hs.hs-pr .hs-pr-main {
    padding: 16px 24px 32px;
  }

  .hs.hs-pr .hs-pr-split {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }

  .hs.hs-pr .hs-pr-side {
    padding: 16px 18px;
  }

  .hs.hs-pr .hs-pr-h2 {
    font-size: 20px;
  }

  .hs.hs-pr .hs-pr-doc {
    --hs-pr-base: 23px;
    padding: 22px 40px 36px;
  }

  .hs.hs-pr .hs-pr-act,
  .hs.hs-pr .hs-pr-tool {
    min-height: 40px;
  }

  .hs.hs-pr .hs-pr-bar {
    padding: 8px 16px;
  }
}

/* A big touch screen (a 1366px tablet held sideways): the computer's slimmer controls stay 44px. */
@media (min-width: 1200px) and (pointer: coarse) {
  .hs.hs-pr .hs-pr-act,
  .hs.hs-pr .hs-pr-tool,
  .hs.hs-pr .hs-pr-sel,
  .hs.hs-pr .hs-pr-opt,
  .hs.hs-pr .hs-pr-opts__reset {
    min-height: var(--hs-tap);
  }
}

/* A phone held sideways (any screen under 500px tall from 700px wide; audit V-31 at 844x390):
   the text comes first. A person's link puts the page title aside (still read aloud), and the
   options fold to their one line as on a phone ([data-open] opens them). */
@media (min-width: 700px) and (max-height: 500px) {
  .hs.hs-pr[data-picked] .hs-head {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-opts__toggle {
    display: flex;
  }

  .hs.hs-pr:not([data-reading]) .hs-pr-opts:not([data-open]) .hs-pr-opts__body,
  .hs.hs-pr:not([data-reading]) .hs-pr-opts__h {
    display: none;
  }
}

/* ── "Full page": only the bar and the text ────────────────────────────── */

.hs.hs-pr[data-reading] .hs-site,
.hs.hs-pr[data-reading] .hs-head,
.hs.hs-pr[data-reading] .hs-skip,
.hs.hs-pr[data-reading] .hs-footer,
.hs.hs-pr[data-reading] .hs-pr-side,
.hs.hs-pr[data-reading] .hs-pr-src,
.hs.hs-pr[data-reading] .hs-install {
  display: none;
}

/* The header is put away, so nothing sticks above the bar. */
.hs.hs-pr[data-reading] {
  --hs-sticky-top: 0px;
}

.hs.hs-pr[data-reading] .hs-pr-main {
  padding: 0;
}

.hs.hs-pr[data-reading] .hs-pr-split {
  display: block;
}

.hs.hs-pr[data-reading] .hs-pr-read {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hs.hs-pr[data-reading] .hs-pr-bar {
  border-radius: 0;
}

.hs.hs-pr[data-reading] .hs-pr-doc {
  --hs-pr-base: 22px;
}

/* 2026-11-11 (the 11 Nov audit, R5) — Full page on a phone is the text alone, inside the screen. Two
   phone rules outranked the ones above: the folded box of a person opened by link or picked from the
   list (.hs-pr-side display: flex, under [data-picked]) stayed on top of the text, and hs.css's flat
   sections still pulled the reading panel 16px out past both edges, a margin meant to cancel the
   main's 16px gutter, which Full page takes away (A− sat on the left edge, the last chip was cut, and
   at 600px the page scrolled sideways). */
.hs.hs-pr[data-reading][data-picked] .hs-pr-side,
.hs.hs-pr[data-reading][data-pr-edit] .hs-pr-side {
  display: none;
}

.hs.hs-pr.hs-page[data-reading]:not(.hsa) > main .hs-panel:not(.hs-panel .hs-panel) {
  margin-right: 0;
  margin-left: 0;
}

@media (min-width: 700px) {
  /* The numbers live in the header on a tablet or a computer; the header is put away. */
  .hs.hs-pr[data-reading] .hs-callbar {
    display: none;
  }

  .hs.hs-pr[data-reading] .hs-pr-doc {
    --hs-pr-base: 25px;
  }
}

@media (min-width: 1200px) {
  .hs.hs-pr[data-reading] .hs-pr-doc {
    --hs-pr-base: 27px;
    padding: 28px 48px 48px;
  }
}

/* ── printing ("Print"): only the text, large ──────────────────────────── */

@page hs-prayers {
  size: letter;
  margin: 14mm 16mm;
}

@media print {
  .hs.hs-pr {
    page: hs-prayers;
    min-height: 0;
    padding: 0;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .hs.hs-pr .hs-site,
  .hs.hs-pr .hs-head,
  .hs.hs-pr .hs-topbar,
  .hs.hs-pr .hs-footer,
  .hs.hs-pr .hs-pr-ui,
  .hs.hs-pr .hs-pr-bar,
  .hs.hs-pr .hs-skip,
  .hs.hs-pr .hs-callbar,
  .hs.hs-pr .hs-note-wrap,
  .hs.hs-pr .hs-install {
    display: none !important;
  }

  /* hs.css keeps room for the fixed call bar (.hs:has(.hs-callbar)); on paper there is none. */
  .hs.hs-pr:has(.hs-callbar) {
    padding-bottom: 0;
  }

  .hs.hs-pr .hs-main,
  .hs.hs-pr .hs-pr-main {
    max-width: none;
    padding: 0;
  }

  .hs.hs-pr .hs-pr-split {
    display: block;
  }

  .hs.hs-pr .hs-pr-read {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hs.hs-pr .hs-pr-doc {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 17pt;
    line-height: 1.7;
  }

  .hs.hs-pr .hs-pr-title__name {
    font-size: 28pt;
  }

  .hs.hs-pr .hs-pr-h,
  .hs.hs-pr .hs-pr-ch,
  .hs.hs-pr .hs-pr-mlabel {
    break-after: avoid;
  }

  /* A heading never splits (its Yiddish line on one sheet, its English on the next). */
  .hs.hs-pr .hs-pr-letter,
  .hs.hs-pr .hs-pr-title,
  .hs.hs-pr .hs-pr-h,
  .hs.hs-pr .hs-pr-ch,
  .hs.hs-pr .hs-pr-sec {
    break-inside: avoid;
  }

  .hs.hs-pr .hs-pr-sec {
    break-before: page;
    margin-top: 0;
    border-top: 0;
  }

  /* "Mishnayos only": no sheet with the name alone. */
  .hs.hs-pr .hs-pr-title + .hs-pr-sec {
    break-before: auto;
  }

  /* Kaddish d'Rabbanan on one sheet with what leads into it (0.016). prayers.js draws the part the
     document keeps together (prayers-core.js keepTogether: from the heading carrying #hs-pr-a-kaddish,
     "Before the Kaddish, say:" or the Kaddish's own heading when the office leaves the lead-in out, to
     the end of the text) inside one .hs-pr-keep box. On paper the box is one block that does not break,
     the construct every browser keeps (Firefox does not honour break-after: avoid): a sheet that cannot
     hold it ends after the last mishna (or Mikvaos 7, or the last letter of Tehillim) and the box starts
     the next sheet. A box taller than a sheet starts a sheet and runs on. Without the Kaddish there is
     no box: no change. */
  .hs.hs-pr .hs-pr-keep {
    display: block;
    break-inside: avoid;
  }
}
