/*
 * HAR SHALOM — Search a Name, the full Cemetery Map and a grave's own page: the layouts, the
 * search box, the compact result rows, the grave panel, the 7-day yahrzeit card, the
 * lightbox, print.
 *
 * File     public/harshalom/static/find.css   (linked by app/harshalom/find/page.tsx,
 *          app/harshalom/map/page.tsx and app/harshalom/plot/[code]/page.tsx)
 * Version  0.019.3 · 2026-11-12 · harshalom/0.019-r5 (Har Shalom release 0.019; 0.018.5 before)
 * Owner    lane S (Search a Name, the full map, the grave view, grave pages, the plan)
 * Tokens   public/harshalom/static/hs.css (lane D): --hs-bg, --hs-surface, --hs-line, --hs-ink,
 *          --hs-accent … ; shared classes .hs-panel, .hs-btn, .hs-input, .hs-tabs
 * The map itself: static/map.css. The section plan: static/plan.css.
 *
 * v2 (owner, 29 Oct 2026: "extremely dark, depressing, unclear", "too big, I have to scroll",
 * "three different experiences"). LIGHT: white panels on the light stone page, dark ink, the
 * green only as a thin accent. THREE LAYOUTS, each designed, not squeezed:
 *   phone    < 700px     List | Map tabs (two radio buttons, CSS only), one panel at a time,
 *                        the grave as a sheet from the bottom, above the call bar ("Back to the
 *                        list", or "Back to the map" when it opened over the map);
 *   tablet   700-1199px  the box, the yahrzeits and the sections | the map (sized to the photo,
 *                        no grey bands), one screen; the grave opens over the left side;
 *   computer ≥ 1200px    the box and the sections | map | this week's yahrzeits until a pick, then
 *                        the grave (no empty pane, owner item 1); nothing to scroll but the lists.
 * The grid's areas: tabs (phone), list (the box and the results), yz (the 7-day yahrzeits), browse
 * (the section chips), map, detail (the grave). .hs-find.is-query (find.js; the server for ?q=): the
 * results take the left side and the yahrzeits step aside below a computer.
 *
 * Static file: no PostCSS, no nesting, no @import; every rule under .hs (BUILD_CONTRACT 5).
 *
 * CHANGELOG (Rule 45)
 *   0.019.3 · 2026-11-12 · harshalom/0.019-r5 (Z4, the round-4 repro check's known note) — 0.019.2's foot over the
 *     right-hand pane was the footer's whole corner (14 + 142 = 156 px) and hid three rows at 1440x900 (12 whole
 *     rows in sight before it, 9 with it). It is now only the room the Feedback button takes: from the pane's
 *     bottom to the button's top less the platform's gap (components/feedback/launcher-floor.ts, read:
 *     92 px corner, 12 px gap; the button's own pill from its classes, 42 px, 54 px on a touch screen, in rem
 *     so it follows a larger text setting), less the grid's padding under the pane, plus the part of the pane
 *     below a short screen (--hs-fb-room): 132 px on a computer, 147 on an iPad on its side, 157 at 1200x600.
 *     With a grave open the foot stays 0.019.2's (its last control carries data-oo-launcher-avoid; 24 px lower
 *     it stepped the button up onto the text above it at the end of the pane). Text under the button: still 0.
 *   0.019.2 · 2026-11-12 · harshalom/0.019-r4 (the live check of 0.018, fault 2) — the platform's floating
 *     Feedback button sat over the right-hand pane's rows (a section's Row · Plot and its תהלים pill on
 *     /find?s=9 and /map?s=18 at 1247x1222 and 1440x900; the same at 1366x649, 1920x1080 and an iPad on its
 *     side, 1180x820). Where that pane is the right-hand column, v3.1's room under its last row is now a
 *     foot pinned to the pane's bottom (position: sticky, the pane's own white, as tall as the room was):
 *     the rows scroll under it, never under the button; at the end the last row sits where it did. The
 *     keyboard's focus is scrolled clear of it (scroll-padding-bottom). Measured (real Chrome, the
 *     platform's launcher): text under the button at rest 0 (was 2-7 texts) at every one of those sizes.
 *     Phones, portrait tablets, short screens, paper and no JavaScript (no button) are as 0.019.1.
 *   0.019.1 · 2026-11-12 · harshalom/0.019-laneC3 (the lane C2 check's known note, B3) — on a phone's
 *     List tab the open sheet (74% of the screen) reached over the List | Map bar while the page was not
 *     scrolled: its top at 112 px at 320x640 and 149 at 360x780, the bar at 121-165, so a real tap on
 *     "Map" landed on the sheet's ‹ Back bar and closed the grave or the section (0.018 the same). The
 *     List tab's sheet is now at most min(74dvh, --hs-sheet-cap): find.js (0.019.3 listSheetCap)
 *     measures the room under the bar on every scroll. 74% as before where it fits and with no
 *     JavaScript; the Map tab's sheet and the Cemetery Map unchanged.
 *   0.018.5 · 2026-11-12 · harshalom/0.018-find4 (the checker of 0.018.4: G4-1, G4-2) —
 *     G4-1, the Cemetery Map with nothing open from 1200 px on a short window (1200-1279 px wide under
 *     750 px tall, 1280-1599 under 650: a 1366x768 Windows laptop's 1366x649, with the bookmarks bar
 *     1366x620): 0.018.4 put the credit back under the map there, in a column sized for two lines of
 *     the note while the note wrapped to five and the credit to three, so the photo was 13-25% smaller
 *     than 0.017's (1366x649 213 px, 0.017 244, 0.018.3 258; 1440x580 189, 0.017 251) with grey at
 *     its sides, and the same after Close. Now the credit is the left pane's foot at every height, the
 *     pane made shorter on a window under those floors (the 20 chips in two rows of ten; the year's
 *     count line for a screen reader only, the drop-down already says it; a few px less between its
 *     parts): every chip and the key whole above it. From 1340 px the map's column is at least the
 *     note's three-line width, so the note keeps three lines and the photo is at least 0.017's where
 *     0.017's wide card had made it the larger (1440x580 254 px, 1600x600 254 against 251, 1440x700
 *     296 against 294), from 2100 px its two-line width (2560x700 294 against 292); the map's box
 *     stays the photo's width, centred: white beside it, not grey. A window 560 px tall or less keeps
 *     the short screen's own layout with the credit in the card (0.018.4 drew the strip there from
 *     1600 px wide, on the photo or the yahrzeits).
 *     G4-2, a section or a grave open on a window under 750 px tall (1200-1799 px wide): the pane is
 *     0.017's width, so the chips took four rows of five and the key's last line, or with a year chosen
 *     chips 16-20, were cut by its edge (1366x657 14 px; with Windows' scroll bars 39; 1366x620 with
 *     2025, 85). Its chips are now seven to a row and, with a mouse, 36 px tall; with the lines above,
 *     the pane's content is 511 px, in a pane of 532 px at the least. The map is unchanged there. Up
 *     to 765 px tall the year's count line is for a screen reader only (with 2025 chosen at 1200x750
 *     and Windows' scroll bars the key was cut 22 px, in 0.018.4 too).
 *     Tall windows, Search a Name, phones, tablets and paper: unchanged.
 *   0.018.4 · 2026-11-11 · harshalom/0.018-find3 (the checker of 0.018.3: F3-1, F3-2) —
 *     F3-1, the Cemetery Map from 1200 px: the photo's credit was drawn over the left pane's last 56 px
 *     (its room was the pane's bottom padding, inside the box that scrolls), so on a short window
 *     (1366x657, the 1366x768 laptop's; 1280x720; 1200x700) it lay over the last row of section chips
 *     and the key, and from 950 px tall with something open over the yahrzeits' last rows. Now the pane
 *     at the left column's foot ends above the credit (a margin, --hs-cred-h) and the credit is that
 *     pane's foot, under a line: nothing of a pane is ever under it. Only where the column holds its
 *     content and the strip (measured: nothing open from 750 px tall, 650 from 1280 px wide, always
 *     from 1600; open from 750, 710 from 1800 wide); elsewhere the credit is under the map, in the card,
 *     as 0.017 drew it, the pane has the whole column and the map is 0.017's size there.
 *     F3-2, a section's list: a list under 18.75em of its own font (300 px at 16 px) puts the pill at the
 *     end of the English name's line and gives the Hebrew name the row's whole width on every screen
 *     and pointer (0.018.3: only from 1200 px with a mouse), so the Cemetery Map on an iPad on its side
 *     (1024x768, a 273 px list) is back to two Hebrew lines at most (0.018.3: three in sections 9, 15,
 *     19 and 20); on a touch screen and under 1200 px that line is 44 px, the pill's height, and the
 *     English name and Row · Plot keep 0.018.2's 8 px (with 10, most of section 18's rows needed a line
 *     more): its rows are no taller than 0.018.2's in any section (section 18: 79 px, 0.018.2 81). The
 *     320 px phone's 286 px list (15 px type, 19.1em) keeps 0.018.3's compact rows. Paper: unchanged.
 *     Measured on the checker's harness: every section's list on /map and /find at 21 sizes, 520 of 546
 *     the same as 0.018.3, the 26 others the Cemetery Map at 1024x768; 349 of 396 page states the same.
 *   0.018.3 · 2026-11-11 · harshalom/0.018-find2 (the checker of 0.018.2: F2-1, F2-3) —
 *     F2-1, the Cemetery Map from 1200 px. With a section or a grave open, 0.018.2 kept the map's column
 *     at the photo's width: a zoomed section drawn 13-18% smaller from 1280 px up (1920x1080: 489 -> 405
 *     px) beside a 667 px left pane half white. Now the map takes the rest between panes capped at
 *     side-w + 40 / + 80 (0.017's), and never less than the photo's column (so the owner's 1247 window
 *     keeps 0.018.2's 422 px section); on a screen 950 px tall or more the week's yahrzeits go under the
 *     box and the sections. Nothing open: the photo-width column stays (grey 0-6%, 0.017 23-50%), and the
 *     photo's credit is drawn at the foot of the left pane, so the note under the map takes no more
 *     height than 0.017's note and credit and the photo is never smaller than 0.017's (0.018.2: 3-5%
 *     smaller from 1280 to 2560; 1920x1080 502 -> 480, now 506). On a tall window whose panes leave the
 *     map narrower than the photo, the map is no taller than the photo (no grey above and below).
 *     F2-3, a section's list: the row is no taller than its two names. The "תהלים" pill is centred on
 *     the row at its end (every line keeps its room), so it no longer makes the English name's line
 *     44 px on a touch screen (rows that fit 79 -> 53 px at 390x844, 55 in 0.017); the English name and
 *     Row · Plot sit together under the Hebrew name, at the row's end (1920: the English name was
 *     636 px from its Hebrew name's line). A list under 300 px on a computer (1247: 286) keeps 0.018.2's
 *     placing, the pill on the English name's line, where the Hebrew name needs the row's whole width.
 *     Every name still whole: Hebrew at most 2 lines, English 1, nothing cut. Markup unchanged.
 *   0.018.2 · 2026-11-11 · harshalom/0.018-findA1 (the owner's screen, 11 Nov ~4 PM ET; audit F1, F2, F4) —
 *     a section's list (the server's and find.js's, Search a Name and the Cemetery Map): the Hebrew
 *     name is a line of its own across the row, the English name under it, then Row · Plot and the
 *     "תהלים" pill at the end of that line. Row · Plot and the pill sat beside the names and never
 *     shrank: at 1247x1222 each name got 12-38 px, 50 of 51 Hebrew names one word a line, long words
 *     off the panel. From 1200 px Close sits in the pane's top corner (absolute; the title row keeps
 *     its room) instead of floating right: .hs-focus is a container, so it was laid out beside the
 *     float for its whole height and lost 71-73 px down every list and grave ("Section" cut to
 *     "ection", "Dedicate / Donate" on 4 lines, the wide grave layout never reached). The Cemetery
 *     Map from 1200 px: the map's column is the photo's width at the screen's height (its own
 *     --hs-map-col, as Search a Name's) and the two side panes share the rest; it was 1fr between
 *     panes capped at side-w + 40 / + 80 px, 23-50% of the map's box grey. On paper a section's list
 *     keeps its page count (the pill and its line no taller than the words; a row never splits).
 *     Markup unchanged.
 *   0.018.1 · 2026-11-11 · harshalom/0.018-findA2 (the map lane's checker) — the phone's sheet: the
 *     "Add to Home Screen" card is not drawn while a sheet is open (.hs-detail-open): hidden under the
 *     sheet, it lifted the Feedback button onto the grave's name. find.js now fits the sheet at every
 *     phone height (it scrolls the map up when the room is short; never the old 48% again) and keeps
 *     the Feedback button's corner under the grave's names. On paper under 700 CSS px wide
 *     (A5, Letter with 1in margins) the Cemetery Map with a grave or a section open prints its map
 *     whole (the card kept a phone screen's height: a cropped strip with no red dot).
 *   0.018 · 2026-11-11 · harshalom/0.018-map (the live check of 0.015, F1; the same in 0.014) — a phone's
 *     grave sheet over the map (the Cemetery Map, Search a Name's Map tab) is at most the room find.js
 *     measures under the map's + − ⤢ (--hs-sheet-room), and never more than its 48% of the screen: it
 *     covered the chosen grave's red dot, its gold box and ⤢ (at 320x640 the whole map). Before
 *     find.js runs, and with no JavaScript, 48% as before.
 *     F3: the Cemetery Map on paper (its own @media print block near the end): no week's yahrzeits
 *     card and no empty panel; a grave open (.hs-grave-open) prints as the grave's own page does, the
 *     grave then its map 3.3in tall, on ONE Letter page (it gave 3); with nothing open the map 8in
 *     tall with its key on ONE page (it gave 2: the yahrzeits card alone, then the map).
 *   2026-11-06 harshalom/0.013-site (review round 2, print) — the dedications are not printed: with the
 *     giver's words, or two of them, a grave no longer fit its ONE US Letter page (v3.2). Paper = 0.012.
 *   2026-11-06 harshalom/0.013-site (audit 6 Nov, B-F8 part 2) — .hs-grave__deds: the dedications shown on a
 *     grave (an English line, the Yiddish under it, the giver's words), between Section · Row · Plot and
 *     the actions; its own 'deds' row in the wide and the printed grave grids (empty, 0px, when none).
 *   2026-11-06 harshalom/0.013-site (review round 2, A-09) — a phone held sideways (700-939px wide, under
 *     500px tall, where the Feedback launcher is a 44px circle): the map's column is the photo at 0.012's size plus a 48px band each side (the Feedback
 *     circle's room on the right) and the + − ⤢ gutter, at least 336px so the aerial credit keeps 0.012's
 *     two lines. Round 1's column squeezed the credit onto a third line and the photo shrank (168x294 ->
 *     157x276 at 844x390, /map 181x318 -> 171x299) with the circle on it (66-81%). Now the photo is
 *     0.012's size, the grey is about half, the list wider, the circle on none of it. 940px and wider
 *     (where 0.012's credit could be one line) and 500-560px tall (the launcher is a pill) keep 0.012's
 *     1fr : 1.25fr. The column uses 100lvh (the
 *     largest viewport), so it does not change width while a phone's toolbar hides.
 *   2026-11-06 harshalom/0.013-site (audit 6 Nov, A-05) — a tablet held upright: the map's box is the
 *     photo's shape beside its + − ⤢ gutter (.hs-map[data-js]: content-box, the gutter as padding), so the
 *     photo fills the view with no grey above and below it (320x655 around a 320x562 photo at 820x1180).
 *   2026-11-06 harshalom/0.013-site (audit 6 Nov, A-09) — a phone held sideways: the map's column worked out
 *     from the screen's height and the photo's proportions (was 1.25fr, half of it grey). Superseded the
 *     same day by the review round 2 line above.
 *   2026-11-02 fix/hs-v32-site — print, "v3.2 … ONE US Letter page": a grave opened on the section plan
 *     prints (find.js .hs-printing-plan: the plan's sheet steps aside, only its grave is drawn; it printed
 *     no grave at all); every printed grave comes first, then its map; the photo 1in x 1.33in beside the
 *     names (the print block's display:block had put it on a row of its own), the map 3.3in, the note
 *     and the address line compact — one Letter page from the finder, the map, the plan and a plot page
 *     with a photo, with and without the browser's margins (the live check found two).
 *   2026-11-02 fix/hs-gps-review (GPS review finding 6) — the phone's quiet text-button style for a
 *     grave's next steps is scoped to them (`> .hs-grave__yz .hs-btn`, `> .hs-grave__walk .hs-btn`,
 *     `> .hs-grave__ded`): it also hit the GPS block inside .hs-grave__more, so on a phone "Save this
 *     spot" (the primary button) and "Save its GPS spot" looked like plain links.
 *   2026-11-02 fix/hs-phone-tidy (v3.1) — polish k: the panes that run to the bottom of the screen (the
 *     yahrzeits, the grave, the phone's grave sheet) end with the Feedback button's room, so their last
 *     row scrolls clear.
 *     The phone (ticket #1696): no empty 40px between the List | Map tabs and the map; "Browse by
 *     section" five even columns (four rows of five), and the
 *     grave's next steps (Add to calendar, Walk there, Show on the map, Dedicate) quiet text buttons, so
 *     Directions stays the one strong action and the bordered buttons stop competing.
 *   2026-11-02 fix/hs-phone-tidy (v3.1) — polish f: the yahrzeit card is a container; under 400px wide
 *     its day's date runs across the top and the names take the whole width (an iPad on its side at
 *     1024x768 squeezed them to a word a line); that iPad's yahrzeit pane is at least 340px.
 *   2026-11-02 fix/hs-phone-tidy (v3.1) — polish a: a printed grave carries its next yahrzeit and the
 *     walk from the gate (no buttons), its map 3.6in tall, so the grave page prints on ONE Letter page.
 *   2026-11-02 feat/harshalom-v3-audit, review fix F1 — a result's date and place share a line only
 *     where the list itself is wide enough (a container query; R2-01: they ran into each other on an
 *     iPad or a phone on its side), else each has its own line; on paper the map keeps the photo's
 *     shape at any paper width (R3-02: a grave's page and the finder on landscape paper printed no map).
 *   2026-11-02 feat/harshalom-v3-audit, lane L3 — audit V-07: panes that use the screen on its side:
 *     an iPad held sideways (1000-1199px wide, over 560px tall) gets the computer's three panes, and
 *     on a computer and that iPad the map's column is as wide as the photo is at the screen's height
 *     (--hs-map-col: no grey bands, no stamp), the side panes take the rest (from --hs-side-w, so
 *     they widen on a big screen); a short screen on its side (a phone sideways, under 560px tall)
 *     keeps the list and a map that stays in view beside it, the grave in a side sheet. V-15: a
 *     result shows the whole name and date (they wrap; nothing is cut to "…"). V-16: Print shows the
 *     grave with its place on the cemetery map, on white, with its address; the Cemetery Map page
 *     prints its map (L3m's ask). V-28: the year drop-down is 16 px on a phone and a tablet (no
 *     iPhone zoom). V-51: the List | Map radios are gone from 700px (Tab no longer stops on them).
 *     V-54: a grave in a wide panel lays out its photo beside the names and its actions in a row
 *     (container query). V-46/V-47/V-13: the grave's next yahrzeit, the walk from the gate and
 *     Dedicate (.hs-grave__more). V-39: "Sifrei Torah · שמות". V-42: "Show all years". V-49: the
 *     tabs' Yiddish. Wave-1 asks: 13 px text and 44 px touch floors (--hs-fs-min, --hs-tap), the
 *     .hs-tpill 44 px on any touch screen, the photo viewer above the feedback button.
 *   2026-10-29 feat/harshalom-v2-light, fix lane "find" — the v2 reviews: the yahrzeits and the
 *     section chips are panels of their own on the grid (the right pane on a computer until a pick,
 *     owner item 1); the "תהלים" pill on every name of the yahrzeits and of a section's list (.hs-tpill,
 *     item 7); the year-of-passing drop-down (.hs-yearf, item 8); the sheet's "Back to the map"
 *     (.hs-detail__x-m); the map pane sized to the photo on a tablet; 44 px touch targets below a
 *     computer (search ×, back, actions, pills, the year, the tabs).
 *   2026-10-29 feat/harshalom-v2-light, lane S — v2: rewritten light, three layouts, compact
 *     rows, the grave panel / sheet, the full map's side panel, print the grave; the map's
 *     own rules moved to static/map.css.
 *   2026-10-28 feat/harshalom-cemetery-site, lane P — a static file the pages link (offline).
 *   2026-10-28 feat/harshalom-cemetery-site, lane B1 — created.
 */

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

.hs.hs-findpage,
.hs.hs-plotpage {
  background: var(--hs-bg);
}

/* `hidden` always wins on these pages (a class that sets display must never show what the
   markup or a script has hidden: the plan sheet, the grave panel's Close, the tip). */
.hs.hs-findpage [hidden],
.hs.hs-plotpage [hidden] {
  display: none !important;
}

.hs .hs-find {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'tabs'
    'list'
    'yz'
    'browse'
    'map';
  align-content: start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px 16px;
}

/* The two radio buttons behind the phone's tabs: there, never seen. */
.hs .hs-view__r {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.hs .hs-view__tabs {
  grid-area: tabs;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--hs-shadow);
}

.hs .hs-view__tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--hs-r);
  color: var(--hs-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.hs .hs-view__yi {
  font-family: var(--hs-serif);
  font-size: 0.93em;
  font-weight: 600;
  opacity: 0.85;
}

.hs #hs-view-list:checked ~ .hs-view__tabs .hs-view__tab--list,
.hs #hs-view-map:checked ~ .hs-view__tabs .hs-view__tab--map {
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  box-shadow: var(--hs-shadow);
}

.hs #hs-view-list:focus-visible ~ .hs-view__tabs .hs-view__tab--list,
.hs #hs-view-map:focus-visible ~ .hs-view__tabs .hs-view__tab--map {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

.hs .hs-find__list {
  grid-area: list;
  min-width: 0;
  padding: 14px;
}

.hs .hs-find__map {
  grid-area: map;
  min-width: 0;
}

/* This week's yahrzeits (a panel of its own) and the section chips (another). */
.hs .hs-find__yz {
  grid-area: yz;
  min-width: 0;
  padding: 12px 14px;
}

.hs .hs-find__browse {
  grid-area: browse;
  min-width: 0;
  padding: 12px 14px 14px;
}

.hs .hs-find__h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  margin: 0 0 10px;
  font-family: var(--hs-serif);
  font-size: var(--hs-h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--hs-accent-ink);
}

.hs .hs-find__h:focus {
  outline: none;
}

.hs .hs-find__yi {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--hs-muted);
}

/* ── the search box ─────────────────────────────────────────────────────── */

.hs .hs-search {
  margin: 0;
}

.hs .hs-search__box {
  position: relative;
}

.hs .hs-search__ic {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--hs-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.hs .hs-search__input {
  padding-left: 38px;
  padding-right: 40px;
}

.hs .hs-search__input::-webkit-search-decoration,
.hs .hs-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.hs .hs-search__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--hs-muted);
  transform: translateY(-50%);
}

.hs .hs-search__clear:hover {
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
}

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

.hs .hs-search__hint {
  margin: 8px 0 0;
  font-size: var(--hs-fs-sm);
  color: var(--hs-muted);
}

.hs .hs-search__hint [lang] {
  display: block;
  text-align: right;
}

/* ── the year of passing (HsYearFilter) ─────────────────────────────────── */

.hs .hs-yearf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 8px;
}

.hs .hs-yearf__l {
  font-size: var(--hs-fs-sm);
  font-weight: 600;
  color: var(--hs-muted);
}

.hs .hs-yearf__l [lang] {
  font-weight: 500;
}

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

.hs .hs-yearf__sel {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 4px 30px 4px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235b645e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  font-size: 14px;
  cursor: pointer;
}

/* V-28: iOS zooms the page when a field under 16px is tapped: 16px on a phone and a tablet. */
@media (max-width: 1199px), (pointer: coarse) {
  .hs .hs-yearf__sel,
  .hs .hs-yearf__go {
    font-size: 16px;
  }
}

.hs .hs-yearf__go {
  min-height: 38px;
  padding: 4px 12px;
  font-size: 14px;
}

/* find.js applies the year the moment it changes: Show is for a page with no JavaScript (hidden
   from the first paint where the browser can say scripts run, else once find.js has started). */
.hs[data-js] .hs-yearf__go {
  display: none;
}

@media (scripting: enabled) {
  .hs .hs-yearf__go {
    display: none;
  }
}

.hs .hs-yearform {
  margin: 0;
}

.hs .hs-yearform__n {
  margin: 4px 0 0;
  font-size: var(--hs-fs-min, 13px);
  font-weight: 600;
  color: var(--hs-accent);
}

.hs .hs-find__count {
  margin: 10px 0 4px;
  font-size: var(--hs-fs-sm);
  font-weight: 600;
  color: var(--hs-muted);
}

/* ── the compact result rows ────────────────────────────────────────────── */

.hs .hs-results {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  /* The rows lay out by the list's own width, not the screen's (review R2-01: an iPad on its side
     gives the list 277px, where the date and the place could not share a line). */
  container: hs-results / inline-size;
}

.hs .hs-results:empty {
  display: none;
}

.hs .hs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--hs-line);
}

.hs .hs-row:last-child {
  border-bottom: 0;
}

.hs .hs-row__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  /* V-15: every part whole; the date and the place share a line where the list is wide (R2-01). */
  grid-template-areas:
    'en en'
    'kind kind'
    'he he'
    'date date'
    'loc loc';
  align-items: baseline;
  gap: 0 10px;
  min-width: 0;
  padding: 7px 6px 7px 8px;
  border-radius: 8px;
  color: var(--hs-ink);
  line-height: 1.3;
  text-decoration: none;
}

.hs .hs-row__main:hover {
  background: var(--hs-accent-soft);
}

.hs .hs-row.is-active .hs-row__main {
  background: var(--hs-accent-soft);
  box-shadow: inset 3px 0 0 var(--hs-accent);
}

.hs .hs-row__en {
  grid-area: en;
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hs .hs-row__kind {
  grid-area: kind;
  font-size: var(--hs-fs-min, 13px);
  font-weight: 600;
  color: var(--hs-gold);
}

.hs .hs-row__he {
  grid-area: he;
  min-width: 0;
  font-family: var(--hs-serif);
  font-size: 1.05em;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.hs .hs-row__date {
  grid-area: date;
  min-width: 0;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

/* The Hebrew date and the English one each stay whole; the line breaks between them. */
.hs .hs-row__date > span {
  white-space: nowrap;
}

.hs .hs-row__loc {
  grid-area: loc;
  min-width: 0;
  font-size: var(--hs-fs-min, 13px);
  font-weight: 600;
  color: var(--hs-accent);
}

/* The date and the place share a line only where the LIST is wide enough (review R2-01: from 700px
   by the screen, the iPad on its side and a phone on its side ran the Hebrew date under the place).
   Even then the date's column is never narrower than its unbreakable Hebrew date, and the place
   wraps rather than run into it. Narrower, each has its own line. */
@container hs-results (min-width: 360px) {
  .hs .hs-row__main {
    grid-template-columns: minmax(min-content, 1fr) auto;
    grid-template-areas:
      'en en'
      'kind kind'
      'he he'
      'date loc';
  }

  .hs .hs-row__loc {
    text-align: right;
  }
}

.hs .hs-row__t {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: var(--hs-tap, 44px);
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--hs-muted);
  font-family: var(--hs-serif);
  font-size: var(--hs-fs-min, 13px);
  text-decoration: none;
}

.hs .hs-row__t:hover {
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
}

.hs .hs-row--none {
  display: block;
  padding: 12px;
  border: 1px dashed var(--hs-line-2);
  border-radius: var(--hs-r);
  color: var(--hs-ink);
}

.hs .hs-row--none p {
  margin: 0;
}

.hs .hs-row__hint {
  margin-top: 4px;
  font-size: var(--hs-fs-sm);
  color: var(--hs-muted);
}

.hs .hs-row__hint[dir='rtl'] {
  text-align: right;
}

/* V-42: the name is there in other years — one tap shows them. */
.hs .hs-row__all {
  margin-top: 10px;
}

/* ── the start: the 7-day yahrzeits and the sections ────────────────────── */

.hs .hs-find__start {
  margin-top: 12px;
}

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

.hs .hs-findpage .hs-yz,
.hs.hs-findpage .hs-yz {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hs .hs-yz h2 {
  margin: 0;
  font-family: var(--hs-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .hs-yz__h-yi {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--hs-muted);
}

.hs .hs-yz__today {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--hs-muted);
}

.hs .hs-yz__today-l b {
  font-size: 15px;
  color: var(--hs-ink);
}

.hs .hs-yz__shkiah {
  font-size: 13px;
}

.hs .hs-yz__shkiah b {
  font-family: var(--hs-sans);
  font-weight: 700;
  color: var(--hs-gold);
  unicode-bidi: isolate;
}

.hs .hs-yz__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 4px 0 0;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-yz__key::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 4px;
  border-radius: 2px;
  background: var(--hs-yz-c);
}

.hs .hs-yz__key--past,
.hs .hs-yz__day--past {
  --hs-yz-c: #7c8aa6;
  --hs-yz-bg: #f3f5f9;
}

.hs .hs-yz__key--today,
.hs .hs-yz__day--today {
  --hs-yz-c: #a87a1f;
  --hs-yz-bg: #fcf6e7;
}

.hs .hs-yz__key--next,
.hs .hs-yz__day--next {
  --hs-yz-c: #2f7a52;
  --hs-yz-bg: #f0f8f3;
}

.hs .hs-yz__days {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hs .hs-yz__day {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-left: 3px solid var(--hs-yz-c);
  border-radius: 6px;
  background: var(--hs-yz-bg);
}

.hs .hs-yz__day--today {
  box-shadow: inset 0 0 0 1px #e7d4a6;
}

.hs .hs-yz__day.is-empty {
  align-items: center;
  padding-block: 3px;
}

.hs .hs-yz__when {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  color: var(--hs-yz-c);
}

.hs .hs-yz__wd {
  font-size: 13px;
  font-weight: 700;
}

.hs .hs-yz__he {
  font-size: 13.5px;
  font-weight: 700;
}

.hs .hs-yz__en {
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
  white-space: nowrap;
}

.hs .hs-yz__day.is-empty .hs-yz__when {
  flex-direction: row-reverse;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  flex-basis: auto;
}

.hs .hs-yz__nobody {
  margin-inline-start: auto;
  color: var(--hs-faint);
}

.hs .hs-yz__names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs .hs-yz__entry {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hs .hs-yz__name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--hs-ink);
  text-decoration: none;
}

/* The small "תהלים" link after a name (HsTehillimPill): Tehillim & Mishnayos for that one person. */
.hs .hs-tpill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 30px;
  padding: 2px 8px;
  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: var(--hs-fs-min, 13px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.hs .hs-tpill:hover {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hs-tpill svg {
  color: var(--hs-muted);
}

.hs .hs-yz__name:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hs .hs-yz__name-he {
  font-family: var(--hs-serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.hs .hs-yz__name-he[dir='rtl'] {
  text-align: right;
}

.hs .hs-yz__name-sm {
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-yz__name.is-light {
  opacity: 0.75;
}

/* v3.1 (polish f): a NARROW yahrzeit pane (an iPad on its side at 1024x768 gave it ~300px, a phone
   ~330px) stacked the day's date column beside the names and squeezed each name to one or two words
   a line. The card measures its own width (a container): under 400px the day's date runs across the
   top in one line and the names take the whole width under it. */
.hs .hs-yz {
  container-type: inline-size;
  container-name: hs-yz;
}

@container hs-yz (max-width: 399.98px) {
  .hs .hs-yz__day {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .hs .hs-yz__day.is-empty {
    flex-direction: row;
    align-items: center;
  }

  .hs .hs-yz__when,
  .hs .hs-yz__day.is-empty .hs-yz__when {
    flex: none;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0 8px;
  }

  .hs .hs-yz__names {
    flex: none;
  }
}

.hs .hs-yz__foot {
  margin-top: 6px;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-yz__foot > span {
  display: block;
  text-align: right;
}

.hs .hs-browse {
  margin-top: 14px;
}

/* The finder's section chips are a panel of their own now (the grid places it). */
.hs .hs-find__browse.hs-browse {
  margin-top: 0;
}

.hs .hs-browse__h {
  margin: 0 0 8px;
  font-family: var(--hs-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .hs-browse__yi {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--hs-muted);
}

.hs .hs-browse__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
}

.hs .hs-browse__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 3px 2px;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  line-height: 1.1;
  text-decoration: none;
}

.hs .hs-browse__chip:hover {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs .hs-browse__n {
  font-size: 15px;
  font-weight: 700;
}

.hs .hs-browse__c {
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-browse__chip.is-zero {
  color: var(--hs-faint);
}

.hs .hs-browse__chip.is-sel {
  border-color: var(--hs-accent);
  background: var(--hs-accent);
  color: #fff;
}

.hs .hs-browse__chip.is-sel .hs-browse__c {
  color: rgba(255, 255, 255, 0.85);
}

.hs .hs-browse__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-accent);
  text-decoration: none;
}

.hs .hs-browse__map:hover {
  text-decoration: underline;
}

/* ── the grave panel (beside the map; a sheet on a phone) ───────────────── */

.hs .hs-find__detail {
  grid-area: detail;
  min-width: 0;
  padding: 14px 16px 18px;
}

.hs .hs-detail__x {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin: -4px 0 6px -6px;
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--hs-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hs .hs-detail__x:hover {
  background: var(--hs-accent-soft);
}

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

.hs .hs-detail__x-s,
.hs .hs-detail__x-m {
  display: none;
}

.hs .hs-focus__empty {
  padding: 18px 4px;
  color: var(--hs-muted);
  font-size: 14px;
  text-align: center;
}

.hs .hs-focus__empty p {
  margin: 0 0 4px;
}

.hs .hs-focus__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hs .hs-focus__yi {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.hs .hs-grave__names {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 10px;
}

.hs .hs-name__he {
  font-family: var(--hs-serif);
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hs-ink);
  text-align: right;
}

.hs .hs-name__en {
  font-size: 1em;
  font-weight: 600;
  color: var(--hs-ink);
}

.hs .hs-name__father {
  font-family: var(--hs-serif);
  color: var(--hs-muted);
  text-align: right;
}

.hs .hs-name__date {
  font-size: 13px;
  color: var(--hs-muted);
}

.hs .hs-name__date--he {
  font-size: 14px;
  text-align: right;
}

.hs .hs-grave__loc {
  margin: 0 0 10px;
}

.hs .hs-loc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
  overflow: hidden;
}

.hs .hs-loc__c {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  text-align: center;
}

.hs .hs-loc__c + .hs-loc__c {
  border-left: 1px solid var(--hs-line);
}

.hs .hs-loc__l {
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
  white-space: nowrap;
}

.hs .hs-loc__v {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hs-accent-ink);
}

.hs .hs-grave__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.hs .hs-grave__photo {
  display: block;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--hs-bg);
}

.hs .hs-grave__photo img {
  display: block;
  width: 72px;
  height: 96px;
  object-fit: cover;
}

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

.hs .hs-grave__nophoto {
  margin: 0 0 10px;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-nophoto {
  display: inline-flex;
}

/* 0.013 (audit 6 Nov, B-F8 part 2): the dedications shown on the grave — only those the family agreed
   to and the office confirmed (lib/harshalom/grave-dedications.ts). Each: the English line, the Yiddish
   line under it (right-aligned), and the giver's own words when there are some. A quiet gold rule on
   the start side; light, never a dark block. HsGrave.tsx HsGraveDedications and find.js draw it. */
.hs .hs-grave__deds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.hs .hs-grave__dedline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-inline-start: 3px solid var(--hs-gold, #b08d3c);
  border-radius: 0 8px 8px 0;
  background: var(--hs-bg);
  font-size: 14px;
  line-height: 1.4;
  color: var(--hs-ink);
}

.hs .hs-grave__ded-yi {
  text-align: right;
}

.hs .hs-grave__ded-t {
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
  white-space: pre-line;
}

.hs .hs-grave__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.hs .hs-act {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 14px;
}

.hs .hs-grave__note {
  margin: 0 0 12px;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-grave__note-yi {
  display: block;
  text-align: right;
}

.hs .hs-grave__msg {
  padding-top: 10px;
  border-top: 1px solid var(--hs-line);
}

.hs .hs-grave__msg:empty {
  display: none;
}

/* A section in the panel. */
.hs .hs-secview__plan {
  width: 100%;
  margin-bottom: 10px;
}

.hs .hs-secview__count,
.hs .hs-secview__none {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--hs-muted);
}

.hs .hs-secview__list {
  margin: 0;
  padding: 0;
  list-style: none;
  /* 0.018.3: the rows below choose where the pill goes by the list's own width */
  container: hs-secl / inline-size;
}

/* 0.018 (the owner's screen, F1): every name in a section's list has the row's whole width. The
   Hebrew name is a line of its own across the row; under it the English name and "Row A · Plot 8",
   together at the line's end, under the Hebrew name. Row · Plot and the pill sat beside the names and
   never shrank, so the names alone gave way: at 1247 px they had 12-38 px, one word a line, long words
   off the panel's edge. How: the names' wrapper steps aside (display: contents), so the two names and
   Row · Plot share one wrapping row, set to the row's end; the Hebrew name takes a line of its own.
   0.018.3 (F2-3, the checker of 0.018.2): the row is no taller than its two names. The "תהלים" pill
   (a link of its own, outside the name's link) is centred on the row's height at its end, and every
   line keeps the pill's room (the link's end padding), so the pill no longer sets the height of the
   English name's line (44 px on a touch screen: rows that fit had grown 55 -> 79 px, a third fewer
   names a screen). The English name and Row · Plot sit together under the Hebrew name, at the end
   of the row where the Hebrew name ends: at 1920 px the English name had sat at the row's far left,
   636-856 px from its Hebrew name's line. Row · Plot goes to a line of its own only when the English
   name and it do not fit on one. The pill's room is set from the same font size as the pill's own
   width (--hs-fs-min), so it is the pill's whatever the screen's font size. The markup, and find.js's
   copy of it, are unchanged. */
.hs .hs-secview__li {
  position: relative;
  border-bottom: 1px solid var(--hs-line);
}

.hs .hs-secview__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  justify-content: flex-end;
  gap: 0 10px;
  min-width: 0;
  padding: 6px;
  /* the pill's room on every line: its width (2.5em + 32px at --hs-fs-min), its 6 px from the edge, 8 px */
  padding-right: calc(2.5 * var(--hs-fs-min, 13px) + 46px);
  color: var(--hs-ink);
  text-decoration: none;
}

.hs .hs-secview__item:hover {
  background: var(--hs-accent-soft);
}

.hs .hs-secview__names {
  display: contents;
}

.hs .hs-secview__he {
  flex: 1 0 100%;
  min-width: 0;
  font-family: var(--hs-serif);
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.hs .hs-secview__en {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--hs-muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.hs .hs-secview__rp {
  flex: none;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-accent);
  white-space: nowrap;
}

.hs .hs-secview__li > .hs-tpill {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 1;
  width: calc(2.5em + 32px);
  padding-inline: 0;
  transform: translateY(-50%);
}

/* 0.018.3 (F2-3) and 0.018.4 (F3-2): A NARROW LIST, whatever the screen and the pointer: under 18.75em
   of the list's own font (300 px at 16 px: the owner's 1247 window, 286 px, 271 px with Windows' scroll
   bar; the Cemetery Map on an iPad on its side, 1024x768, 273 px). The pill sits at the end of the
   English name's line, as 0.018.2 had it, and the Hebrew name has the row's whole width. With the
   pill's room kept on every line the Hebrew name had 183 px at 1024x768 and the longest names went to
   three lines (sections 9, 15, 19, 20; 0.018.2: two at most). Row · Plot keeps the pill's room at its
   line's end and is as tall as the pill: 30 px for a mouse from 1200 px, 44 px on a touch screen and
   under 1200 px (below), where that line is 44 px tall, as 0.018.2 drew it there.
   Measured in Chrome, every section's longest name with the pill's room on every line: three lines
   under 286 px at 16 px (17.8em) and under 272 px at a phone's 15 px (18.1em). So the measure is the
   list's em (a container query's em is the container's font): the 320 px phone's 286 px list (19.1em)
   keeps its compact rows. Screens only: paper keeps 0.018.3's rows (its page count). */
@media screen {
  @container hs-secl (max-width: 18.74em) {
    /* 0.018.2's 8 px between the English name and Row · Plot: at 1024x768 most of section 18's rows
       fit the two and the pill on one line with 8 and not with 10 (median row 79 px, 98 with 10) */
    .hs .hs-secview__item {
      column-gap: 8px;
      padding-right: 6px;
    }

    .hs .hs-secview__rp {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      margin-right: calc(2.5em + 38px);
    }

    .hs .hs-secview__li > .hs-tpill {
      top: auto;
      bottom: 6px;
      transform: none;
    }
  }
}

/* The pill is 44 px tall under 1200 px and on any touch screen (below): so is its line here. */
@media screen and (max-width: 1199px), screen and (pointer: coarse) {
  @container hs-secl (max-width: 18.74em) {
    .hs .hs-secview__rp {
      min-height: var(--hs-tap, 44px);
    }
  }
}

/* On paper nothing is tapped: the pill is as tall as its word, so a section's list prints on no
   more pages than before (0.018.3, Letter with 0.4in margins: the Cemetery Map with section 18 open
   4 pages, was 5; Search a Name's section 18 on A4 4, was 5; nothing else changes). */
@media print {
  .hs .hs-secview__li > .hs-tpill {
    min-height: 0;
    padding-block: 1px;
  }

  /* a name and its English and Row · Plot stay on one page */
  .hs .hs-secview__li {
    break-inside: avoid;
  }
}

/* The section plan, once open, is the one thing on the screen (a phone's sheet would cover it). */
.hs.hs-plan-open .hs-find .hs-find__detail,
.hs.hs-plan-open .hs-find .hs-find__detail.is-open {
  display: none;
}

/* ── the full map's side panel ──────────────────────────────────────────── */

.hs .hs-mapside__count {
  margin: 8px 0 0;
  font-size: var(--hs-fs-sm);
  color: var(--hs-muted);
}

.hs .hs-mapside__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 12px 0 0;
  font-size: var(--hs-fs-min, 13px);
  color: var(--hs-muted);
}

.hs .hs-mapside__li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.hs .hs-mapside__k {
  display: inline-block;
  width: 12px;
  height: 12px;
}

.hs .hs-mapside__k--dot {
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--hs-dot);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.hs .hs-mapside__k--sec {
  border: 1.5px solid var(--hs-accent);
  border-radius: 2px;
}

.hs .hs-mapside__k--sel {
  border: 2px solid var(--hs-gold);
  border-radius: 2px;
  background: rgba(184, 137, 43, 0.15);
}

/* ── the lightbox (find.js builds it): light, the photo framed ──────────── */

.hs .hs-lb {
  position: fixed;
  inset: 0;
  /* Above the feedback launcher (z 9998, components/feedback): it never sits on the photo or its ×. */
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(60px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, 0.97);
}

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

.hs .hs-lb__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
}

.hs .hs-lb__img {
  width: auto;
  height: auto;
  max-width: min(100%, 1000px);
  max-height: 76vh;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: #fff;
  box-shadow: var(--hs-shadow);
  object-fit: contain;
}

.hs .hs-lb__cap {
  font-family: var(--hs-serif);
  font-size: 17px;
  color: var(--hs-ink);
  text-align: center;
}

.hs .hs-lb__x {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hs-line-2);
  border-radius: 50%;
  background: var(--hs-surface);
  color: var(--hs-ink);
  cursor: pointer;
}

.hs .hs-lb__next {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-weight: 600;
  cursor: pointer;
}

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

/* ── PHONE  (< 700px): List | Map, the grave as a sheet ─────────────────── */

@media (max-width: 699px) {
  .hs #hs-view-list:checked ~ .hs-find__map,
  .hs #hs-view-map:checked ~ .hs-find__list,
  .hs #hs-view-map:checked ~ .hs-find__yz,
  .hs #hs-view-map:checked ~ .hs-find__browse {
    display: none;
  }

  /* The grave opened over the map: its button goes back to the map. */
  .hs #hs-view-map:checked ~ .hs-find__detail .hs-detail__x-l,
  .hs .hs-find--map .hs-find__detail .hs-detail__x-l {
    display: none;
  }

  .hs #hs-view-map:checked ~ .hs-find__detail .hs-detail__x-m,
  .hs .hs-find--map .hs-find__detail .hs-detail__x-m {
    display: inline;
  }

  .hs .hs-view__tab {
    min-height: 44px;
  }

  .hs .hs-find__map .hs-mapcard {
    height: calc(100dvh - 190px - var(--hs-callbar-h));
    min-height: 380px;
  }

  .hs .hs-find__detail {
    display: none;
  }

  .hs .hs-find__detail.is-open {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--hs-callbar-h);
    z-index: 45;
    display: block;
    max-height: 74dvh;
    margin: 0;
    /* v3.1 (polish k): the end of the sheet scrolls clear of the Feedback button */
    padding: 6px 16px calc(18px + var(--hs-launcher-room, 0px));
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* On the map tab the sheet stays low, so the grave's dot shows above it. 0.018: at most 48% of
     the screen as before, and never over the map's + − ⤢: find.js measures the room left under
     them (--hs-sheet-room) and aims the grave into the map still in sight. Before find.js runs,
     and with no JavaScript, 48% as before. */
  .hs #hs-view-map:checked ~ .hs-find__detail.is-open,
  .hs .hs-find--map .hs-find__detail.is-open {
    max-height: 48dvh;
    max-height: min(48dvh, var(--hs-sheet-room, 48dvh));
  }

  /* 0.019 (lane C3): on the List tab the sheet stops under the List | Map bar (find.js measures the
     room under it, --hs-sheet-cap), so a tap on "Map" is the tab's own; at 320x640 and 360x780 the
     74% sheet reached over the bar while the page was not scrolled and the tap closed the grave.
     74% as before wherever it fits, and with no JavaScript. */
  .hs #hs-view-list:checked ~ .hs-find__detail.is-open {
    max-height: 74dvh;
    max-height: min(74dvh, var(--hs-sheet-cap, 74dvh));
  }

  /* 0.018 (lane A2): while a grave's or a section's sheet is open, the "Add to Home Screen" card
     (install-hint.js; z-index 44, under the sheet's 45) is not drawn. Hidden under the sheet it was
     still a launcher floor, and lifted the Feedback button onto the sheet's title and the grave's
     name (an iPhone at 375x667). It comes back when the sheet closes. */
  .hs.hs-detail-open .hs-install {
    display: none;
  }

  .hs .hs-detail__x {
    position: sticky;
    top: -6px;
    z-index: 2;
    display: flex;
    width: calc(100% + 32px);
    margin: -6px -16px 6px;
    padding: 12px 16px 8px;
    border-radius: 16px 16px 0 0;
    background: var(--hs-surface);
  }

  .hs .hs-detail__x::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--hs-line-2);
    transform: translateX(-50%);
  }

  /* The full map on a phone: the box and a strip of sections over the map (no yahrzeits: the map
     fills the screen; they are one tab away on Search a Name and Yahrzeits). */
  .hs .hs-find--map {
    grid-template-areas:
      'list'
      'map';
  }

  .hs .hs-find--map .hs-find__yz {
    display: none;
  }

  /* The year beside the name box (one row), so the map still fills the phone's screen; its words
     stay for a screen reader, the chips' counts show the year. */
  .hs .hs-mapside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }

  .hs .hs-mapside > .hs-find__h,
  .hs .hs-mapside > .hs-browse {
    grid-column: 1 / -1;
  }

  .hs .hs-mapside .hs-yearf {
    margin-top: 0;
  }

  .hs .hs-mapside .hs-yearf__l {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hs .hs-mapside .hs-yearf__sel {
    width: 124px;
    min-width: 0;
  }

  .hs .hs-mapside .hs-yearform__n {
    display: none;
  }

  .hs .hs-find--map .hs-view__tabs {
    display: none;
  }

  .hs .hs-mapside {
    padding: 10px 12px;
  }

  .hs .hs-mapside .hs-find__h {
    margin-bottom: 8px;
  }

  .hs .hs-mapside .hs-browse {
    margin-top: 8px;
  }

  .hs .hs-mapside .hs-browse__h,
  .hs .hs-mapside__count,
  .hs .hs-mapside__legend {
    display: none;
  }

  .hs .hs-mapside .hs-browse__grid {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hs .hs-mapside .hs-browse__chip {
    flex: 0 0 48px;
    min-height: 44px;
  }

  .hs .hs-find--map .hs-find__map .hs-mapcard {
    height: calc(100dvh - 270px - var(--hs-callbar-h));
    min-height: 360px;
  }
}

/* ── TABLET  (700-1199px): list | map, one screen; the grave over the list ─ */

@media (min-width: 700px) {
  /* The left pane top to bottom: the box, the sections, this week's yahrzeits (the rest of the
     height) — the order the keyboard meets them too (V-22: the DOM is list, browse, map, yz). */
  .hs .hs-find {
    grid-template-columns: minmax(max(300px, var(--hs-side-w)), 380px) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      'list map'
      'browse map'
      'yz map';
    align-content: stretch;
    gap: 12px;
    height: calc(100dvh - var(--hs-sticky-top));
    min-height: 560px;
    padding: 12px 16px;
  }

  /* A name typed (or a year chosen): the results take the whole left side. */
  .hs .hs-find.is-query {
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'list map';
  }

  .hs .hs-find--map {
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      'list map'
      'yz map';
  }

  .hs .hs-view__tabs {
    display: none;
  }

  /* V-51: the phone's List | Map radios are not there from 700px, so Tab never stops on them. No
     rule from here reads :checked (the tabs themselves are gone). */
  .hs .hs-view__r {
    display: none;
  }

  .hs .hs-find__list,
  .hs .hs-find__yz {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* v3.1 (polish k): the last row of a pane that runs to the bottom of the screen (the yahrzeits, the
     open grave) scrolls clear of the floating Feedback button. Both panes are stretched to the
     screen's height, so the room adds no height of its own; the box-and-sections pane is sized by what
     it holds (and sits on the left, away from the button), so it gets none. */
  .hs .hs-find__yz,
  .hs .hs-find__detail {
    padding-bottom: calc(14px + var(--hs-launcher-room, 0px));
  }

  .hs .hs-find__list .hs-search {
    position: sticky;
    top: -14px;
    z-index: 3;
    margin: 0 -14px;
    padding: 0 14px 6px;
    background: var(--hs-surface);
  }

  .hs .hs-find__map {
    display: flex;
    min-height: 0;
  }

  .hs .hs-find__map .hs-mapcard {
    flex: 1;
    min-height: 0;
  }

  /* The grave: over the whole left side. */
  .hs .hs-find__detail {
    grid-column: 1;
    grid-row: 1 / -1;
    display: none;
    z-index: 4;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hs .hs-find__detail.is-open {
    display: block;
  }

  .hs .hs-row__main {
    padding-block: 9px;
  }
}

/* ── TABLET only: the map pane is the photo's own shape (no grey bands) ─── */

@media (min-width: 700px) and (max-width: 1199px) {
  .hs .hs-find__map {
    align-items: flex-start;
  }

  /* The photo's proportions, as wide as the pane allows and never taller than the screen leaves
     (a tablet held upright: the width decides). A floor, so a squat window never gets a stamp. */
  .hs .hs-find__map .hs-map {
    flex: none;
    width: min(100%, max(240px, calc((100dvh - var(--hs-sticky-top) - 190px) * var(--hs-map-arn, 0.5695))));
    min-height: 0;
    margin-inline: auto;
    aspect-ratio: var(--hs-map-arn, 0.5695);
  }
}

/* 0.013 (audit 6 Nov, A-05): the box above had the photo's shape, but once map.js runs the view in it
   stops 52px short of the right edge for the + − ⤢ gutter (map.css), so the photo, fitted to a view
   narrower than the box, left 93px of grey above and below it (320x655 around a 320x562 photo at
   820x1180). Now the shape is the VIEW's: the box's content is the photo's proportions and the gutter
   is padding beside it (the view, inset 0 then 52px off the right, is exactly the content box). Only
   where the tablet rule above is the one in force: upright, not on a short screen or an iPad on its
   side (those fill their pane, below). */
@media (min-width: 700px) and (max-width: 899.98px) and (min-height: 560.02px),
  (min-width: 900px) and (max-width: 1199px) and (orientation: portrait) {
  .hs .hs-find__map .hs-map[data-js] {
    box-sizing: content-box;
    width: min(
      100% - var(--hs-tap, 44px) - 8px - 2px,
      max(240px, calc((100dvh - var(--hs-sticky-top) - 190px) * var(--hs-map-arn, 0.5695)))
    );
    padding-right: calc(var(--hs-tap, 44px) + 8px);
  }
}

/* ── TOUCH (phone and tablet): every control at least 44 px (DESIGN_V2) ── */

@media (max-width: 1199px) {
  .hs .hs-find.is-query .hs-find__yz {
    display: none;
  }
}

/* Any touch screen too (a touch laptop over 1199px): the targets stay 44px (wave-1 --hs-tap). */
@media (max-width: 1199px), (pointer: coarse) {
  .hs .hs-search__clear {
    right: 0;
    width: 44px;
    height: 44px;
  }

  .hs .hs-search__input {
    min-height: 44px;
    padding-right: 48px;
  }

  .hs .hs-detail__x,
  .hs .hs-act,
  .hs .hs-yearf__sel,
  .hs .hs-yearf__go,
  .hs .hs-secview__item,
  .hs .hs-browse__map,
  .hs .hs-lb__next,
  .hs .hs-view__tab {
    min-height: var(--hs-tap, 44px);
  }

  .hs .hs-tpill {
    min-width: var(--hs-tap, 44px);
    min-height: var(--hs-tap, 44px);
    padding-inline: 10px;
  }

  .hs .hs-yz__name {
    justify-content: center;
    min-height: var(--hs-tap, 44px);
  }
}

/* ── COMPUTER  (≥ 1200px): list | map | grave, one screen ───────────────── */

@media (min-width: 1200px) {
  /* The right-hand pane: this week's yahrzeits until a grave or a section is picked (owner item 1:
     no pane left empty waiting), then the grave. The sections stay under the box.
     V-07/V-15 (v3): the map's column is as wide as the photo is at the screen's height
     (--hs-map-col: the card's padding and lines taken off), so the whole cemetery fills it with no
     grey bands; the panes beside it take the rest of the width (at least --hs-side-w, which grows
     on a big screen), so a result's names and date have room. */
  .hs .hs-find {
    --hs-map-col: calc((100dvh - var(--hs-sticky-top) - 150px) * var(--hs-map-arn, 0.5695) + 24px);
    grid-template-columns:
      minmax(var(--hs-side-w), 1fr) minmax(0, var(--hs-map-col))
      minmax(var(--hs-side-w), 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      'list map yz'
      'browse map yz'
      '. map yz';
    gap: 14px;
    padding: 14px 20px;
  }

  .hs .hs-find.is-query {
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'list map yz';
  }

  /* 0.018 (F4) and 0.018.3 (F2-1): the Cemetery Map from 1200 px.
     NOTHING OPEN: the map's column is as wide as the photo is at the screen's height (its own
     --hs-map-col, as Search a Name's) and the two side panes share the rest; 0.017 gave the map 1fr
     between panes capped at side-w + 40 / + 80 px, so the portrait photo sat in a box 23-50% grey. The
     photo's credit ("Aerial photo: NYS ITS …") is drawn at the foot of the left pane (below), so in the
     narrower column the note under the map takes no more height than 0.017's note and credit did, and
     the photo is drawn at least as large as 0.017's (0.018.2 drew it 3-5% smaller from 1280 to 2560 px:
     the note and credit wrapped two lines more). --hs-map-col takes off the card's padding, its gap
     and two lines of the note (60px + 2.8 x the note's size): a third or fourth line leaves a few px
     of grey at the photo's sides instead of drawing it narrower.
     A SECTION OR A GRAVE OPEN (.hs-detail-open): the map takes the rest again, between panes capped at
     side-w + 40 and side-w + 80 px, as 0.017, and never less than the photo's column above (or all the
     panes at side-w leave it): 0.018.2 kept the photo's width here, and drew a zoomed section 13-18%
     smaller from 1280 px up beside a 667 px left pane mostly blank at 1920; 0.017's caps alone drew it
     smaller than 0.018.2 on a tall window (the owner's 1247x1222: 324 -> 422 px is kept). So the map is
     the larger of the two, the panes have their 0.017 width wherever there is room for both, and with
     Close no longer floated (below) the section's list has the pane's whole width: every name whole.
     The columns move when something opens and when it closes.
     0.018.4 (F3-1): the credit is drawn at the left column's foot only where the column has room for
     it (the blocks after this one, by the window's size); elsewhere it is under the map, in the card,
     as 0.017 drew it, and --hs-map-col here takes its two lines off too (0.018.2's 140 px, the note's
     and the credit's lines in --hs-fs-min). The blocks that draw the credit at the foot take only the
     note's (60px + 2.8 x the note's size), as 0.018.3. --hs-cred-h: the credit's strip there, its two
     lines, its padding and its border. 0.018.5 (G4-1): with nothing open the credit is at the foot at
     every height, so this column (66px + 5.6 x fs-min) is now only the floor of the map's column with
     a section or a grave open on a short window, as in 0.018.4. */
  .hs .hs-find--map {
    --hs-map-col: calc(
      (100dvh - var(--hs-sticky-top) - 66px - 5.6 * var(--hs-fs-min, 13px)) *
        var(--hs-map-arn, 0.5695) + 24px
    );
    --hs-cred-h: calc(16px + 2.8 * var(--hs-fs-min, 13px));
    grid-template-columns:
      minmax(var(--hs-side-w), 1fr) minmax(0, var(--hs-map-col))
      minmax(var(--hs-side-w), 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'list map yz';
  }

  .hs.hs-detail-open .hs-find--map {
    grid-template-columns:
      minmax(var(--hs-side-w), calc(var(--hs-side-w) + 40px))
      minmax(min(var(--hs-map-col), 100% - 28px - 2 * var(--hs-side-w)), 1fr)
      minmax(var(--hs-side-w), calc(var(--hs-side-w) + 80px));
  }

  /* Nothing open, on a tall window whose side panes leave the map less than the photo's width at the
     screen's height (the owner's 1247x1222): the map is no taller than the photo at its column's width
     (100cqw: .hs-find__map is a container), so the room left is the card's white, not grey bands
     above and below the photo. */
  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map .hs-find__map {
    container-type: inline-size;
  }

  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map .hs-find__map .hs-map {
    max-height: calc((100cqw - 24px) / var(--hs-map-arn, 0.5695) + 2px);
  }

  .hs .hs-find__detail {
    position: relative;
    grid-column: 3;
    grid-row: 1 / -1;
  }

  .hs.hs-detail-open .hs-find__yz {
    display: none;
  }

  .hs .hs-detail__x-l {
    display: none;
  }

  .hs .hs-detail__x-s {
    display: inline;
  }

  /* 0.018 (the owner's screen, F1 and F2): Close sits in the panel's top corner, beside the title row,
     and takes no width from what is under it. It floated right, and .hs-focus (a container, so a
     formatting context of its own) was laid out beside the float for its whole height: every section
     list and every grave lost 71-73 px down its right side (215 of 286 px at 1247), "Section" was cut
     to "ection" and the wide grave layout never came. The title row keeps Close's room at its end. */
  .hs .hs-detail__x {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    margin: 0;
  }

  .hs .hs-find__detail .hs-focus__title {
    padding-right: 84px;
  }

  .hs .hs-row__main:focus-visible,
  .hs .hs-row__t:focus-visible {
    outline-offset: -2px;
  }
}

/* 0.018.4 (F3-1, the checker of 0.018.3): THE PHOTO'S CREDIT AT THE FOOT OF THE LEFT COLUMN, NEVER
   OVER IT. 0.018.3 laid the credit (absolute, white) over the pane's last 56 px and kept that room as
   the pane's bottom padding; padding is inside the box that scrolls, so on a short window (the
   1366x768 laptop's 1366x657, 1280x720, 1200x700) the credit lay over the last row of section chips
   (the chosen one half hidden) and the key, and from 950 px tall over the yahrzeits' last rows.
   Now the pane at the column's foot ENDS above the credit (its bottom margin is the credit's strip,
   --hs-cred-h), and the credit is drawn in that room as the pane's foot: the pane's line above it, its
   sides, its rounded corners and its shadow (clipped above, so nothing falls on the pane). Whatever
   the pane holds, and wherever it scrolls, nothing of it is under the credit.
   Only where the column has the room: the box, the year, the 20 chips and the key, and under them the
   strip. Measured in Chrome over every 10 px of height from 600 to 1000 at 13 widths from 1200 to 2560
   (the pane's own content at its width, which moves with the height: the chips reflow), the room is
     nothing open: 1200-1279 px wide from 750 px tall (12 px to spare; at 1200x740 only 2), 1280-1599
       from 650 px (5 px to spare; the 1366x768 laptop's 1366x657: 12), 1600 and wider at every height;
     a section or a grave open (the pane at side-w + 40 px, the chips in four rows): from 750 px tall
       (12 to spare), 1800 and wider from 710 (fs-min 14-15 px, a 440-500 px pane: 13-18 to spare).
   Content that grows (another line of the count) can only make that pane scroll a little: the
   credit is never over it.
   Below that the credit stays under the map, in the card's flow, as 0.017 drew it (and with nothing
   open --hs-map-col takes its lines off: the photo as 0.018.2 drew it there, 0.017's width or more),
   and the pane has the whole column: every chip whole, the key whole where 0.017 had it whole.
   Screens only: on paper the page is one column and the credit prints under the map (a sheet 1200 px
   wide or more, A3 or Tabloid on its side, got 0.018.3's absolute credit at the printout's foot).
   0.018.5 (G4-1, the checker of 0.018.4): WITH NOTHING OPEN THE STRIP IS USED AT EVERY HEIGHT. Under
   the floors above the credit went back under the map, in a column sized for two lines of the note
   while the note wrapped to five and the credit to three: the photo 13-25% smaller than 0.017's
   (1366x649, the 1366x768 Windows laptop with its taskbar: 213 px, 0.017 244, 0.018.3 258; 1440x580:
   189, 0.017 251), grey at its sides. On a window under those floors the left pane is compact instead
   (the blocks after the next one: the 20 chips in two rows of ten, the year's count line not drawn),
   so the box, the year, every chip and the key hold above the strip at every height from 561 px. With
   something open the floors stay (the pane is 0.017's width there; its own compact rules below). A
   window 560 px tall or less has the short screen's own layout (the page scrolls beside the map) and
   keeps the credit in the card, as 0.017: 0.018.4 drew the strip there from 1600 px wide and 0.018.3
   from 1200, and it lay on the map's photo or the yahrzeits. */
@media screen and (min-width: 1200px) and (min-height: 560.02px) {
  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map {
    --hs-map-col: calc(
      (100dvh - var(--hs-sticky-top) - 60px - 2.8 * var(--hs-fs-min, 13px)) *
        var(--hs-map-arn, 0.5695) + 24px
    );
  }

  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map .hs-find__list {
    margin-bottom: var(--hs-cred-h);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  /* placed on the grid (.hs-find is its containing block): its top at the pane's foot, as wide as the
     left column (nothing open: half of what the map's column leaves, at least side-w) */
  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map .hs-mapcard__credit {
    position: absolute;
    top: calc(100% - 14px - var(--hs-cred-h));
    left: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    width: max(var(--hs-side-w), (100% - 68px - var(--hs-map-col)) / 2);
    min-height: var(--hs-cred-h);
    margin: 0;
    padding: 5px 14px 10px;
    border: 1px solid var(--hs-line);
    border-top: 0;
    border-radius: 0 0 var(--hs-r) var(--hs-r);
    background: var(--hs-surface);
    box-shadow: var(--hs-shadow);
    clip-path: inset(0 -12px -12px);
  }
}

@media screen and (min-width: 1200px) and (min-height: 750px),
  screen and (min-width: 1800px) and (min-height: 710px) {
  .hs.hs-mappage.hs-detail-open .hs-find--map {
    --hs-map-col: calc(
      (100dvh - var(--hs-sticky-top) - 60px - 2.8 * var(--hs-fs-min, 13px)) *
        var(--hs-map-arn, 0.5695) + 24px
    );
  }

  .hs.hs-mappage.hs-detail-open .hs-find--map .hs-find__list {
    margin-bottom: var(--hs-cred-h);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  /* open: the left column is side-w plus its share of what is left over the map's floor, at most 40 px */
  .hs.hs-mappage.hs-detail-open .hs-find--map .hs-mapcard__credit {
    position: absolute;
    top: calc(100% - 14px - var(--hs-cred-h));
    left: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    width: calc(
      var(--hs-side-w) +
        min(40px, max(0px, 100% - 68px - 2 * var(--hs-side-w) - var(--hs-map-col)) / 2)
    );
    min-height: var(--hs-cred-h);
    margin: 0;
    padding: 5px 14px 10px;
    border: 1px solid var(--hs-line);
    border-top: 0;
    border-radius: 0 0 var(--hs-r) var(--hs-r);
    background: var(--hs-surface);
    box-shadow: var(--hs-shadow);
    clip-path: inset(0 -12px -12px);
  }
}

/* 0.018.5 (G4-1): NOTHING OPEN FROM 1340 PX, THE NOTE IN THREE LINES. A column the photo's width at the
   screen's height is sized for two lines of the note, but the note wraps to four or five in it, and
   the photo, limited by the height those lines leave, is drawn narrower than its column. 0.017's
   wide card held the note in two lines and the credit in one from 1370 px, so its photo was the
   larger there (1440x580: 251 px against 0.018.3's 234; 1600x600: 251 against 234; 1440x700: 294
   against 287). From 1340 px the column is at least the note's three-line width (31 x fs-min + 26 px:
   the card's padding, borders and margins; Chrome wraps the note to three lines from 28.6 x fs-min),
   so the note keeps three lines and the photo is never smaller than 0.017's (1440x580: 254). The map's
   box is never wider than the photo's own column (--hs-map-photo, 0.018.3's, on the grid's real
   height: it is at least 560 px), centred in the card: white beside it, not grey. A tall window,
   whose photo column is wider than that, is unchanged. Left of 1340 the side panes have no width
   to spare for it (the key would take two lines and the count five). */
@media screen and (min-width: 1340px) and (min-height: 560.02px) {
  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map {
    --hs-map-photo: calc(
      (max(100dvh - var(--hs-sticky-top), 560px) - 60px - 2.8 * var(--hs-fs-min, 13px)) *
        var(--hs-map-arn, 0.5695) + 24px
    );
    --hs-map-col: max(var(--hs-map-photo), 31 * var(--hs-fs-min, 13px) + 26px);
  }

  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map .hs-find__map .hs-map {
    width: 100%;
    max-width: calc(var(--hs-map-photo) - 22px);
    margin-inline: auto;
  }
}

/* From 2100 px 0.017's card (the width less two panes at side-w + 40 and + 80) held the note in ONE
   line and the credit in one (2560x700: 292 px against 283 with three lines here), so the column is
   at least the note's two-line width (45 x fs-min + 26 px; Chrome: two lines from 42.1-42.4 x fs-min). */
@media screen and (min-width: 2100px) and (min-height: 560.02px) {
  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map {
    --hs-map-col: max(var(--hs-map-photo), 45 * var(--hs-fs-min, 13px) + 26px);
  }
}

/* 0.018.5 (G4-1, G4-2): THE LEFT PANE ON A SHORT WINDOW (under 750 px tall, from 1200 px). Its content
   is made shorter, never cut: the "37 graves in 2025" line is kept for a screen reader only (the year
   drop-down already reads "2025 · 37"; a phone does the same), the gap above the sections is 10 px
   (14) and above the key 8 px (12), the key's items 10 px apart (14), so it keeps one line in a
   370 px pane. The year's line goes up to 765 px tall: from 750 a section open with a year chosen
   had 617 px of content over the strip in a 605 px pane (0.018.4 the same; it fits from 762), and
   with Windows' scroll bars the pane's own bar narrowed it further, so the key was cut 12-22 px at
   1200-1279 x 750-760. */
@media screen and (min-width: 1200px) and (min-height: 560.02px) and (max-height: 764.98px) {
  .hs.hs-mappage .hs-find--map .hs-yearform__n {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media screen and (min-width: 1200px) and (min-height: 560.02px) and (max-height: 749.98px) {
  .hs.hs-mappage .hs-find--map .hs-mapside > .hs-browse {
    margin-top: 10px;
  }

  .hs.hs-mappage .hs-find--map .hs-mapside__legend {
    gap: 4px 10px;
    margin-top: 8px;
  }
}

/* 0.018.5 (G4-1): NOTHING OPEN, WHERE THE STRIP USED TO FALL BACK (1200-1279 px under 750 tall, 1280
   px and wider under 650) and from 1340 px under 750 (the three-line column takes width from the
   pane): the 20 chips in two rows of ten, each 30-56 px wide (the pane's width less nine 6 px gaps),
   44 px tall as always. Measured in Chrome, the pane's content with the strip under it then fits at
   every height from 561 px (the grid is never under 560 px; the page scrolls below that): 1200x600
   470 px of content in a 480 px pane, 1366x620 442 in 480, 1440x580 442 in 480. */
@media screen and (min-width: 1200px) and (max-width: 1279.98px) and (min-height: 560.02px) and (max-height: 749.98px),
  screen and (min-width: 1280px) and (min-height: 560.02px) and (max-height: 649.98px),
  screen and (min-width: 1340px) and (min-height: 560.02px) and (max-height: 749.98px) {
  .hs.hs-mappage:not(.hs-detail-open) .hs-find--map .hs-browse__grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

/* 0.018.5 (G4-2): A SECTION OR A GRAVE OPEN ON A SHORT WINDOW (under 750 px tall, 1200-1799 px wide).
   The pane is 0.017's width (side-w + 40 px: the map keeps its size, F2-1) and the credit is under
   the map; the chips took four rows of five and the key's last line ("a plot"), or with a year chosen
   chips 16-20 (the chosen 18 among them), were cut by the pane's edge (1366x657: 14 px; with Windows'
   scroll bars 39 px; 1366x620 with 2025: 85 px). Here the chips are at least 38 px wide (seven to a
   row, three rows, also with a scroll bar in the pane) and, with a mouse, 36 px tall (a touch screen
   keeps 44). From 1800 px the pane is 440 px and its chips already take three rows. */
@media screen and (min-width: 1200px) and (max-width: 1799.98px) and (min-height: 560.02px) and (max-height: 749.98px) {
  .hs.hs-mappage.hs-detail-open .hs-find--map .hs-browse__grid {
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  }
}

@media screen and (min-width: 1200px) and (max-width: 1799.98px) and (min-height: 560.02px) and (max-height: 749.98px) and (pointer: fine),
  screen and (min-width: 1200px) and (max-width: 1799.98px) and (min-height: 560.02px) and (max-height: 749.98px) and (pointer: none) {
  .hs.hs-mappage.hs-detail-open .hs-find--map .hs-browse__chip {
    min-height: 36px;
    padding-block: 1px;
  }
}

/* 0.018.3 (F2-1): THE CEMETERY MAP WITH A SECTION OR A GRAVE OPEN, ON A SCREEN 950 PX TALL OR MORE.
   The grave or the section's list takes the right-hand pane, where this week's yahrzeits were; the
   yahrzeits go under the box and the sections instead of leaving the screen, so the left pane is not
   left half blank (0.017 at 1920x1080: 47% of it white under the chips, 61% at 2560x1440; 0.018.2: a
   667 px pane, 54%). The tablet's order (V-22: the box, the sections, the yahrzeits). Under 950 px
   there is no room for more than a sliver of them, and the pane keeps 0.017's look.
   0.018.4 (F3-1): the yahrzeits' pane is now the column's foot, so it is the one that ends above the
   credit's strip (it scrolls: 0.018.3's credit lay over its last 56 px, a card cut mid-line at
   1200x950); the box and the sections get their own corners back. On the left, away from the
   Feedback button, the yahrzeits keep no room for it. */
@media (min-width: 1200px) and (min-height: 950px) {
  .hs.hs-mappage.hs-detail-open .hs-find--map {
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      'list map side'
      'yz map side';
  }

  .hs.hs-mappage.hs-detail-open .hs-find--map .hs-find__yz {
    display: block;
    margin-bottom: var(--hs-cred-h);
    padding-bottom: 14px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .hs.hs-mappage.hs-detail-open .hs-find--map .hs-find__list {
    margin-bottom: 0;
    border-bottom-right-radius: var(--hs-r);
    border-bottom-left-radius: var(--hs-r);
  }
}

/* ── AN iPAD ON ITS SIDE (1000-1199 x 561+, landscape): three panes, as on a computer (V-07) ──
   The audit's 1024x768 and 1180x820 had the upright layout: a 285px map in a 755px pane and one
   row of yahrzeits. Here: the box and the sections | the map as wide as the photo is at this height
   (the + − ⤢ in their gutter, map.css) | this week's yahrzeits, then the grave. Touch sizes stay. */

@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) and (min-height: 561px) {
  .hs .hs-find {
    --hs-map-col: calc((100dvh - var(--hs-sticky-top) - 170px) * var(--hs-map-arn, 0.5695) + 74px);
    /* v3.1 (polish f): the yahrzeit pane at least 340px (its rows stack under 400px, the container
       rule above), the box and sections at least the side width, the map the rest */
    grid-template-columns:
      minmax(var(--hs-side-w), 1fr) minmax(0, var(--hs-map-col))
      minmax(340px, 1.15fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      'list map yz'
      'browse map yz'
      '. map yz';
  }

  .hs .hs-find.is-query {
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'list map yz';
  }

  /* The yahrzeits stay beside a search here (there is a pane for them). */
  .hs .hs-find.is-query .hs-find__yz {
    display: block;
  }

  .hs .hs-find__map {
    align-items: stretch;
  }

  .hs .hs-find__map .hs-map {
    flex: 1 1 auto;
    width: 100%;
    aspect-ratio: auto;
    margin-inline: 0;
  }

  .hs .hs-find__detail {
    grid-column: 3;
    grid-row: 1 / -1;
  }

  .hs.hs-detail-open .hs-find__yz {
    display: none;
  }

  .hs .hs-detail__x-l {
    display: none;
  }

  .hs .hs-detail__x-s {
    display: inline;
  }

  /* The full map's own panes (map/page.tsx): its list | the map | its yahrzeits. */
  .hs .hs-find--map {
    grid-template-columns:
      minmax(var(--hs-side-w), 1fr) minmax(0, var(--hs-map-col))
      minmax(var(--hs-side-w), 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'list map yz';
  }
}

/* ── THE FEEDBACK BUTTON'S CORNER OVER THE RIGHT-HAND PANE (0.019.2, round 4, R6) ─────────────
   The live check of 0.018 (fault 2): where a section or a grave is open in the right-hand pane (the
   computer's three panes; an iPad on its side, 900-1199 px wide), the platform's floating Feedback button
   (92 px above the bottom-right corner) sat over the pane's rows: one row's Row · Plot and its תהלים pill
   on /find?s=9 and /map?s=18 at 1247 and 1440. The end of the pane already scrolled clear of it (v3.1
   polish k's room under the last row). Now that room is a FOOT pinned to the pane's bottom (sticky): the
   rows scroll under the foot, never under the button, which sits in the foot's blank; scrolled to the end,
   the last row sits on the foot (0.019.2: where it sat on the room before; 0.019.3: the foot is only the
   button's room, so the end comes 24 px lower). The keyboard's focus is scrolled
   clear of it (scroll-padding). Only these layouts: elsewhere the button is over the map or over a
   phone's sheet, as before; paper as before; and only where scripts run (the button is a script's:
   with no JavaScript there is none, and the pane is 0.018's). */
@media screen and (min-width: 1200px) and (min-height: 560.02px) and (scripting: enabled),
  screen and (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) and (min-height: 561px) and (scripting: enabled) {
  /* 0.019.3 (round 5, Z4): the foot is only the room the button takes. It was 14 + 142 = 156 px (the
     footer's whole corner) and hid three rows at 1440x900 (12 whole rows in sight before it, 9 with it).
     Now it reaches from the pane's bottom to the Feedback button's top plus the platform's gap
     (components/feedback/launcher-floor.ts, read: LAUNCHER_LOWEST_BOTTOM 92 px, LAUNCHER_FLOOR_GAP 12 px),
     the button's own box being its pill (FloatingLauncher: a 1 px border round a 0.25rem frame round the
     2rem button; min-h-11, 2.75rem, on a touch screen): 92 + 42 + 12 - 14 = 132 px on a computer, 147 on
     an iPad on its side. Less the grid's padding under the pane (14 px; 11 measured on the tablet), plus
     the part of the pane below the screen where the grid's 560 px minimum runs past it (1200x600). */
  .hs:not(.hsa) .hs-find__detail.is-open {
    --hs-fb-h: calc(2px + 2.5rem);
    --hs-fb-inset: 14px;
    --hs-fb-room: calc(
      92px + var(--hs-fb-h) + 12px - var(--hs-fb-inset) + max(0px, var(--hs-sticky-top, 0px) + 560px - 100dvh)
    );
    padding-bottom: 0;
    scroll-padding-bottom: var(--hs-fb-room);
  }

  .hs:not(.hsa) .hs-find__detail.is-open::after {
    content: '';
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: block;
    height: var(--hs-fb-room);
    margin: 0 -16px;
    background: var(--hs-surface);
  }

  /* A grave open keeps 0.019.2's foot (the footer's whole corner): its last control, "Write to the office
     about this grave", carries data-oo-launcher-avoid, and ending 24 px lower it came into the button's
     corner at the end of the pane, so the button stepped up onto "The red dot marks the grave in..." (1440:
     0 texts under it at the end before, 2 after). */
  .hs.hs-grave-open:not(.hsa) .hs-find__detail.is-open {
    --hs-fb-room: calc(14px + var(--hs-launcher-room, 0px));
  }
}

@media screen and (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) and (min-height: 561px) and (scripting: enabled) {
  .hs:not(.hsa) .hs-find__detail.is-open {
    --hs-fb-inset: 11px;
  }
}

@media screen and (min-width: 900px) and (min-height: 560.02px) and (scripting: enabled) and (pointer: coarse) {
  .hs:not(.hsa) .hs-find__detail.is-open {
    --hs-fb-h: calc(2px + 3.25rem);
  }
}

/* ── A SHORT SCREEN ON ITS SIDE (a phone sideways, 700+ wide and under 561 tall; V-07) ───────
   The audit's 844x390 had a 42px map. Here the page scrolls (the header scrolls away, hs.css
   V-29); the box, the sections and the yahrzeits run down the left, and the map beside them stays
   in view, as tall as the screen (map.css sizes its box). A grave opens in a sheet from the left,
   over the list, with the map still showing on the right. */

@media (min-width: 700px) and (max-height: 560px) {
  .hs .hs-find {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      'list map'
      'browse map'
      'yz map';
    align-items: start;
    height: auto;
    min-height: 0;
    padding-block: 8px;
  }

  .hs .hs-find.is-query {
    grid-template-rows: auto;
    grid-template-areas: 'list map';
  }

  .hs .hs-find--map {
    grid-template-rows: auto auto;
    grid-template-areas:
      'list map'
      'yz map';
  }

  .hs .hs-find__list,
  .hs .hs-find__yz {
    overflow: visible;
  }

  .hs .hs-find__map {
    position: sticky;
    top: 8px;
    grid-row: 1 / -1;
    align-items: stretch;
    height: calc(100dvh - 16px);
  }

  .hs .hs-find__map .hs-map {
    flex: 1 1 auto;
    width: 100%;
    aspect-ratio: auto;
    margin-inline: 0;
  }

  .hs .hs-find__detail,
  .hs .hs-find__detail.is-open {
    grid-column: auto;
    grid-row: auto;
  }

  .hs .hs-find__detail.is-open {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(460px, 52vw);
    max-height: none;
    margin: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* 0.013 (audit 6 Nov, A-09; review round 2) — A PHONE HELD SIDEWAYS: LESS GREY, THE PHOTO NO SMALLER.
   At 844x390 the 1.25fr column gave a 376px view around a 168x294 photo: 104px of grey each side. The
   photo is as tall as the column leaves (the screen less the page's 8px edges, the card's padding and
   border, its heading on the finder, and the aerial credit's two lines: --hs-map-chrome, 96px on the
   finder and 72px on the full map, which has no heading), so its width is known. The column is that
   width, plus a 48px band each side (the photo is centred, and the floating Feedback circle stands
   40px inside the view's right edge: it sits on the band, never on the photo), plus the + − ⤢ gutter
   and the card's edges (68px). At least 336px, so the credit stays on the two lines it had in 0.012:
   squeezed onto three, it took 19px from the photo (round 1: 157x276 at 844x390). 100lvh, the largest
   viewport: the column keeps its width while a phone's toolbar hides (the photo is then a little
   smaller and its bands a little wider). Only up to 939px wide: from 940px 0.012's column could carry
   the credit on one line, so those screens keep 0.012's 1.25fr (above). Only under 500px tall, where
   the Feedback launcher is that 44px circle (lib/feedback/floater-position.ts FLOATER_DOCK_MAX_HEIGHT);
   from 500px it is a 199px pill no band can hold, so 500-560px keeps 0.012's 1.25fr too. Only where
   lvh is known. */
@media (min-width: 700px) and (max-width: 939.98px) and (max-height: 499.98px) {
  @supports (height: 1lvh) {
    .hs .hs-find {
      --hs-map-chrome: 96px;
      --hs-map-col: max(
        336px,
        calc((100lvh - var(--hs-map-chrome)) * var(--hs-map-arn, 0.5695) + 96px + 68px)
      );
      /* never wider than 0.012's column (1.25fr of the width less the 12px gap), so the list is never
         narrower than it was (a screen near 700x499 meets the list's 280px floor first) */
      grid-template-columns: minmax(280px, 1fr) minmax(0, min(var(--hs-map-col), (100% - 12px) * 5 / 9));
    }

    .hs .hs-find--map {
      --hs-map-chrome: 72px;
    }
  }
}

/* ── THE GRAVE in its panel (V-54): it uses the room it has ───────────────────────────────────
   A wide panel (a grave's own page on a computer, the grave over a tablet's list) puts the photos
   beside the names and Section · Row · Plot, and the actions in one row; a narrow one keeps the
   column. Measured on the panel (a container), not the screen. */

.hs .hs-focus,
.hs .hs-plot__grave {
  container-type: inline-size;
}

@container (min-width: 520px) {
  .hs .hs-grave {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'title title'
      'names photos'
      'loc photos'
      'deds deds'
      'actions actions'
      'more more'
      'note note'
      'url url'
      'msg msg';
    column-gap: 20px;
    align-items: start;
  }

  .hs .hs-grave > .hs-focus__title {
    grid-area: title;
  }

  .hs .hs-grave__names {
    grid-area: names;
  }

  .hs .hs-grave__loc {
    grid-area: loc;
  }

  .hs .hs-grave__photos,
  .hs .hs-grave__nophoto {
    grid-area: photos;
    max-width: 260px;
  }

  .hs .hs-grave__photos {
    justify-content: flex-end;
  }

  .hs .hs-grave__photo img {
    width: 120px;
    height: 160px;
  }

  .hs .hs-grave__deds {
    grid-area: deds;
  }

  .hs .hs-grave__actions {
    grid-area: actions;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .hs .hs-grave__more {
    grid-area: more;
  }

  .hs .hs-grave__note {
    grid-area: note;
  }

  .hs .hs-grave__url {
    grid-area: url;
  }

  .hs .hs-grave__msg {
    grid-area: msg;
  }
}

/* ── the grave's next steps (V-46 next yahrzeit, V-47 the walk from the gate, V-13 Dedicate) ── */

.hs .hs-grave__more {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--hs-line);
}

.hs .hs-grave__yz,
.hs .hs-grave__walk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
}

.hs .hs-grave__k {
  flex: 1 1 100%;
  font-size: var(--hs-fs-min, 13px);
  font-weight: 700;
  color: var(--hs-accent);
  letter-spacing: 0.01em;
}

.hs .hs-grave__k [lang] {
  font-weight: 600;
  color: var(--hs-muted);
}

.hs .hs-grave__v {
  flex: 1 1 100%;
  color: var(--hs-ink);
  font-size: 14px;
}

.hs .hs-grave__v b[lang] {
  font-family: var(--hs-serif);
  font-size: 1.06em;
  unicode-bidi: isolate;
}

.hs .hs-grave__ded {
  align-self: flex-start;
}

/* The two buttons that need find.js (an .ics written in the browser; the map moved). Over the
   section plan the map is underneath: the plan's own "Show on the Cemetery Map" does that there. */
.hs[data-hs-find]:not([data-js]) .hs-grave__ics,
.hs[data-hs-find]:not([data-js]) .hs-grave__walkmap,
.hs .hs-plan .hs-grave__walkmap {
  display: none;
}

/* "Sifrei Torah · שמות" (V-39): what is buried here, above its names. */
.hs .hs-name__kind {
  font-size: var(--hs-fs-min, 13px);
  font-weight: 700;
  color: var(--hs-gold);
  letter-spacing: 0.01em;
}

/* The grave's address: on paper only (V-16). */
.hs .hs-grave__url {
  display: none;
}

/* ── print: the grave and where it is ──────────────────────────────────── */

@media print {
  .hs.hs-findpage,
  .hs.hs-plotpage {
    background: #fff;
  }

  .hs.hs-findpage .hs-find {
    display: block;
    height: auto;
    padding: 0;
  }

  .hs .hs-view__tabs,
  .hs .hs-view__r,
  .hs .hs-find__list,
  .hs .hs-plan,
  .hs .hs-detail__x,
  .hs .hs-grave__actions,
  .hs .hs-grave__nophoto,
  .hs .hs-grave__msg,
  .hs .hs-plot__again {
    display: none !important;
  }

  /* v3.1 (polish a): the next yahrzeit and the walk from the gate print (they are on the screen
     version); their buttons and Dedicate stay off the paper. */
  .hs .hs-grave__more {
    display: block !important;
    margin: 0 0 6pt;
    padding: 4pt 0 0;
  }

  .hs .hs-grave__more .hs-btn,
  .hs .hs-grave__more .hs-grave__ded {
    display: none !important;
  }

  .hs .hs-grave__yz,
  .hs .hs-grave__walk {
    display: block;
    margin: 0 0 3pt;
    font-size: 10.5pt;
  }

  .hs .hs-grave__k,
  .hs .hs-grave__v {
    display: inline;
    font-size: inherit;
  }

  .hs .hs-grave__k::after {
    content: ': ';
  }

  /* The finder prints the map only with a grave (its place) — never the whole finder; the Cemetery
     Map page prints its map (L3m, V-16), except while one grave is printed from it. */
  .hs.hs-findpage:not(.hs-mappage):not(.hs-detail-open):not(.hs-printing) .hs-find__map,
  .hs.hs-mappage.hs-printing:not(.hs-detail-open) .hs-find__map {
    display: none !important;
  }

  /* A grave printed (its Print button): the grave, then its place on the cemetery map (map.css
     prints the whole cemetery with the grave's pin and red dot), nothing else. */
  .hs.hs-printing .hs-find__yz,
  .hs.hs-printing .hs-find__browse,
  .hs.hs-printing .hs-mapside {
    display: none !important;
  }

  .hs.hs-findpage.hs-detail-open .hs-find__map,
  .hs.hs-findpage.hs-printing .hs-find__map,
  .hs.hs-plotpage .hs-plot__map {
    display: block !important;
    margin-top: 12px;
    break-inside: avoid;
  }

  /* v3.1 (polish a): 3.6in tall (was 5in), so the grave, its next yahrzeit, the walk, the map and the
     footer fit ONE US Letter or A4 page with the browser's own margins. */
  .hs.hs-findpage.hs-printing .hs-find__map .hs-map,
  .hs.hs-findpage.hs-detail-open:not(.hs-mappage) .hs-find__map .hs-map,
  .hs.hs-plotpage .hs-plot__map .hs-map {
    width: min(100%, calc(3.6in * var(--hs-map-arn, 0.5695)));
  }

  /* Paper is never a tablet (review R3-02): a sheet 700-1199px wide matches the screen rules that
     let the map fill its pane (aspect-ratio: auto, plot.css and the iPad-on-its-side rules here), and
     on paper that left the map 2px tall. The photo's own shape, whatever the paper. */
  .hs.hs-findpage .hs-find__map .hs-map,
  .hs.hs-plotpage .hs-plot__map .hs-map {
    flex: none;
    height: auto;
    min-height: 0;
    margin-inline: auto;
    aspect-ratio: var(--hs-map-arn, 0.5695);
  }

  .hs .hs-find__detail,
  .hs .hs-find__detail.is-open {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .hs.hs-printing .hs-grave:not(.is-printing) {
    display: none;
  }

  .hs .hs-grave {
    display: block;
  }

  .hs .hs-grave__photo img {
    width: 150px;
    height: 200px;
  }

  .hs .hs-grave__url {
    display: block;
    margin: 4px 0 0;
    font-size: 12pt;
    color: #333;
  }
}

/* ── v3.2 (fix/hs-v32-site): a grave prints on ONE US Letter page, from everywhere ─────────────
   The live check (2 Nov): Print on a grave opened from the SECTION PLAN printed the header, a map with
   no pin and the footer — no grave (the plan's sheet is hidden on paper, and its grave with it); from
   the finder's panel and the map's grave the plot link and the footer spilled onto a 2nd page; on the
   plot page of a grave with a matzeiva photo the map went to page 2. Now:
   - the plan's grave (find.js marks the page .hs-printing-plan) prints where the finder's would: the
     plan's sheet steps out of the way, only its grave is drawn, the finder's own panel stays off;
   - a printed grave comes FIRST, then its place on the cemetery map (as on the plot page), so the
     name is at the top of the sheet;
   - the photo is smaller on paper (1in x 1.33in), the map 3.3in tall, the address line and the note
     compact — one page with or without the browser's margins (proof: print-proof.mjs). */
@media print {
  .hs.hs-printing-plan .hs-plan,
  .hs.hs-printing-plan .hs-plan.is-sheet {
    position: static !important;
    display: block !important;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  .hs.hs-printing-plan .hs-plan > :not(.hs-plan__info),
  .hs.hs-printing-plan .hs-plan__infotop,
  .hs.hs-printing-plan .hs-plan__tomap,
  .hs.hs-printing-plan .hs-find__detail {
    display: none !important;
  }

  .hs.hs-printing-plan .hs-plan__info {
    position: static;
    inset: auto;
    z-index: auto;
    display: block;
    background: none;
  }

  .hs.hs-printing-plan .hs-plan__infobody {
    overflow: visible;
    padding: 0;
  }

  .hs.hs-printing-plan .hs-plan__infobody .hs-grave {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  /* the grave first, then its place on the map */
  .hs.hs-findpage.hs-printing .hs-find {
    display: flex;
    flex-direction: column;
  }

  .hs.hs-findpage.hs-printing .hs-find__detail,
  .hs.hs-findpage.hs-printing-plan .hs-plan {
    order: -1;
  }

  .hs.hs-findpage.hs-printing .hs-find__map {
    margin-top: 8pt;
  }

  /* the photo smaller on paper, BESIDE the names and the place as on a wide screen (the print block's
     display:block had put it on a row of its own under them: 140px more, the map onto page 2) */
  .hs .hs-grave:has(> .hs-grave__photos) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'title title'
      'names photos'
      'loc photos'
      'deds deds'
      'actions actions'
      'more more'
      'note note'
      'url url'
      'msg msg';
    column-gap: 14pt;
    align-items: start;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-focus__title {
    grid-area: title;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__names {
    grid-area: names;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__loc {
    grid-area: loc;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__photos {
    grid-area: photos;
    justify-content: flex-end;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__deds {
    grid-area: deds;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__more {
    grid-area: more;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__note {
    grid-area: note;
  }

  .hs .hs-grave:has(> .hs-grave__photos) > .hs-grave__url {
    grid-area: url;
  }

  .hs .hs-grave__photos {
    margin: 0 0 6pt;
  }

  .hs .hs-grave__photo img,
  .hs .hs-plan__infobody .hs-grave__photo,
  .hs .hs-plan__infobody .hs-grave__photo img {
    width: 1in;
    height: 1.33in;
  }

  /* the map 3.3in tall (was 3.6in) */
  .hs.hs-findpage.hs-printing .hs-find__map .hs-map,
  .hs.hs-findpage.hs-detail-open:not(.hs-mappage) .hs-find__map .hs-map,
  .hs.hs-plotpage .hs-plot__map .hs-map {
    width: min(100%, calc(3.3in * var(--hs-map-arn, 0.5695)));
  }

  /* the note and the address line compact */
  .hs .hs-grave__note {
    margin: 0 0 3pt;
    font-size: 9pt;
  }

  .hs .hs-grave__url {
    margin: 2pt 0 0;
    font-size: 9.5pt;
  }

  /* 0.013 (review round 2): the dedications stay on the screen, off the paper. A grave prints on ONE
     US Letter page (v3.2, above); the giver's words run up to 1000 characters, so a grave with one
     dedication and its words, or two, pushed the map or the footer onto a 2nd page. On paper the
     sheet is the grave's name and its place, exactly as at 0.012. */
  .hs .hs-grave__deds {
    display: none;
  }
}

/* ── 0.018 (lane map; the live check of 0.015, F3; the same in 0.014): the Cemetery Map on paper ───
   The browser's own Print (Ctrl+P, the menu; the grave's Print button marks the page .hs-printing
   and was already right) of /harshalom/map?g=12-D-8 gave 3 Letter pages at every screen size, with
   and without Background graphics: page 1 the week's yahrzeits card alone, page 2 the map with the
   key and the top of the grave, page 3 the rest. With nothing open it gave 2: the yahrzeits card
   alone, then the map. Now:
   - the map page's paper never carries the week's yahrzeits (on the screen they fill the right pane
     until a pick), nor the empty panel's "Pick a name, a dot on the map or a section";
   - a grave open on the map (.hs-grave-open: map/page.tsx draws it, find.js keeps it) prints as its
     Print button prints it, and as its own page /plot/<cell> does: the grave first, then its place
     on the map 3.3in tall with the key, on ONE Letter page;
   - with nothing open: the map with the key on ONE Letter page (8in tall, was 9in, so the header
     above it and the footer under it fit). A section open prints as before, less the yahrzeits. */
@media print {
  .hs.hs-mappage .hs-find__yz,
  .hs.hs-mappage:not(.hs-detail-open) .hs-find__detail {
    display: none !important;
  }

  .hs.hs-mappage.hs-grave-open .hs-find {
    display: flex;
    flex-direction: column;
  }

  .hs.hs-mappage.hs-grave-open .hs-find__detail {
    order: -1;
  }

  .hs.hs-mappage.hs-grave-open .hs-find__map {
    margin-top: 8pt;
  }

  .hs.hs-mappage.hs-grave-open .hs-find__map .hs-map {
    width: min(100%, calc(3.3in * var(--hs-map-arn, 0.5695)));
  }

  .hs.hs-mappage:not(.hs-detail-open) .hs-find__map .hs-map {
    width: min(100%, calc(8in * var(--hs-map-arn, 0.5695)));
  }

  /* 0.018 (lane A2; the map lane's checker, a note): paper under 700 CSS px wide (A5; Letter with 1in
     margins) matched the phone's screen rule above, so the map's card kept a screen's height
     (calc(100dvh - 270px - the call bar), at least 360px) and the map printed as a cropped strip with
     no red dot. On paper the card is as tall as the map in it, as on a grave's own page. Only with
     a grave or a section open: the bare map's paper is left exactly as it was. */
  .hs.hs-mappage.hs-detail-open .hs-find__map .hs-mapcard {
    height: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs .hs-row__main,
  .hs .hs-browse__chip {
    transition: none;
  }
}

/* v3.1 (ticket #1696, "on the phone the site looks very very messy") — the phone's finder and grave:
   the section chips in five even columns (the 16px gutter made room for a sixth, which left 19 and 20
   alone on a last row), and the grave's next steps as quiet text buttons on the gutter (Directions is
   the one strong action; Share, Print and Tehillim keep their outline). Words and links unchanged. */
@media (max-width: 699px) {
  .hs .hs-find__browse .hs-browse__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* The Map tab: the three hidden blocks (the box, the yahrzeits, the sections) kept their empty grid
     rows, and every row its 10px gap, so 40px of nothing opened between the tabs and the map. With the
     Map tab chosen the grid has just the tabs and the map. */
  .hs .hs-find:not(.hs-find--map):has(#hs-view-map:checked) {
    grid-template-areas:
      'tabs'
      'map';
  }

  /* Only the grave's own next steps (the yahrzeit's and the walk's buttons, Dedicate): the GPS block
     inside .hs-grave__more keeps its real buttons, "Save this spot" a primary one (GPS review). */
  .hs .hs-grave__more > .hs-grave__yz .hs-btn,
  .hs .hs-grave__more > .hs-grave__walk .hs-btn,
  .hs .hs-grave__more > .hs-grave__ded {
    min-height: var(--hs-tap, 44px);
    margin-inline-start: -10px;
    padding: 0 10px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--hs-accent);
    text-decoration: underline;
    text-decoration-color: rgba(44, 81, 64, 0.35);
    text-underline-offset: 3px;
  }

  .hs .hs-grave__more > .hs-grave__yz .hs-btn:hover,
  .hs .hs-grave__more > .hs-grave__walk .hs-btn:hover,
  .hs .hs-grave__more > .hs-grave__ded:hover {
    background: var(--hs-accent-soft);
  }

  .hs .hs-grave__more .hs-grave__ded {
    margin-top: -4px;
  }

  /* 0.020: chunky mobile section box selections on Search a Name */
  .hs .hs-browse__grid .hs-browse__chip {
    min-height: 52px;
    border-width: 1.5px;
    border-radius: 12px;
    background: #fbfaf7;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .hs .hs-browse__grid .hs-browse__chip.is-sel,
  .hs .hs-browse__grid .hs-browse__chip[aria-current='true'] {
    border-color: var(--hs-accent);
    background: var(--hs-accent-soft);
  }
}

