/*
 * HAR SHALOM CEMETERY — Home: the welcome, the name search box, a card per tab, the photo.
 *
 * Module   public/harshalom/static/home.css  (linked by app/harshalom/page.tsx)
 * Version  0.015 · 2026-12-03 · desk/harshalom-034 (the count of its changelog entries; no line
 *          before 0.009)
 * Owner    lane D (design system + site shell + Home), was lane A1
 *
 * A plain file the offline worker precaches, linked after static/hs.css — see the note at
 * the top of that file for why it is not a bundler import. Every rule is scoped under
 * `.hs.hs-home`, and uses hs.css's tokens.
 *
 * v2 — LIGHT (OWNER_FEEDBACK_20261029 items 1 and 11; DESIGN_V2.md). No dark photo hero any
 * more: the gate photo is bright, rounded and framed BESIDE the text.
 *   PHONE    (< 700px)     the name and the search box first, the cards as a list, the photo
 *                          last.
 *   TABLET   (700-1199px)  the welcome and the search box beside the photo; the cards under
 *                          them across the page (two a row, three from 1000px).
 *   COMPUTER (>= 1200px)   two columns, the whole of Home on one 1440x900 screen with no
 *                          scrolling: welcome, search and the cards (two a row) on the left,
 *                          the photo on the right, the two centred in the space between the
 *                          header and the footer.
 *
 * The opening (David, 26 Oct, "some nice opening"), played by static/js/home.js: since v2 a
 * one-second fade of the photo and the name. The search box and the cards never hide.
 *
 * v3 (2 Nov 2026, lane L2): the PHONE Home is quieter (audit V-50: the same links three times,
 * and a "Search a Name" tile right under the search box) — that tile is not shown on a phone,
 * and the other five are a compact grid (two a row, Tehillim & Mishnayos across); every page is
 * still one tap away in the tab strip and the ☰. A BIG SCREEN (from 1800px, audit V-24) keeps
 * the welcome, the search and the cards to a readable column and gives the photo the rest.
 * Targets are 44px on touch (audit V-26: the Directions pill was 32px); no text under 13px.
 *
 * v3 (2 Nov 2026, lane L6, owner item 12): ONE quiet "Dedicate / Donate" line under the cards
 * (.hs-home__give): a slim link with a small candle, never a card, so the phone Home stays quiet and
 * the computer Home still fits one 1440x900 screen.
 *
 * CHANGELOG (Rule 45)
 *   2026-12-03 desk/harshalom-034 — release 0.034 (owner, 3 Dec): the entrance picture is back. The
 *     shipped home-photo.jpg/.webp is the entrance render again (as before 0.032), and on a phone it
 *     shows at the top of Home (the office-photo layout); the small crest steps aside on phones, the
 *     header logo stays. The office's own photo (Settings > Site photos) still wins when set.
 *   2026-12-01 agy/harshalom-033 — release 0.033 (ticket #1775): finished warm-ivory architectural Welcome &
 *     Logo Plaque on Phone with hero-proportioned 126x118px official Har Shalom crest, centered vertical
 *     balance eliminating the bottom void on tall phones while keeping 100svh single-screen fit in Chrome
 *     Mobile, and automatic pass-through when the office uploads a custom Home photo in Settings.
 *   2026-12-01 agy/harshalom-032 — release 0.032: official Har Shalom Cemetery vector crest on Home, pure
 *     English default (hiding .hs-home__bh and .hs-home__he until אידיש is selected), and app-identical
 *     100svh single-screen phone website layout with full dynamic callbar/install-strip clearance.
 *   2026-12-01 agy/harshalom-031 — release 0.031: clean, empty arrival modeled on David's original
 *     Tab AI v39 design (gate photo, cemetery name & address, and basic navigation doors), unfolding
 *     Search or More Options click-by-click on both Phone and Computer Website.
 *   2026-12-01 agy/harshalom-030 — release 0.030 (ticket #1768): progressive-enhancement switcher links
 *     highlighted directly from data-hs-exp, calm compact phone cards & quick pills that fit above the
 *     fold without call-bar overlap, 1-tap א–ת / A–Z jump link, and hydration-safe empty hints.
 *   2026-11-26 agy/harshalom-023 — release 0.023: three live toggleable experiences (`1 · Picture Split`,
 *     `2 · Live Map`, `3 · Big Kiosk & Letters`), top experience switcher bar, phone picture tiles above
 *     the gate photo for zero-scroll access, voice microphone button, and א–ת / A–Z stone browser.
 *   2026-11-11 harshalom/0.018-pages2 — Rule 45: the Version line above (0.009, the count of these
 *     entries), as hs.css and the other 0.018 sheets carry one. No rule changed.
 *   2026-11-11 harshalom/0.018-pagesA (the site audit of 11 Nov 2026, R16) — on a computer
 *     1200-1365px wide the cards drop their small › so "Tehillim & Mishnayos" stays on one line like
 *     the other five (it took two at 1200-1270px, the owner's 1247 among them). Nothing else moves;
 *     from 1366px the cards are as they were.
 *   2026-11-02 fix/hs-phone-tidy (v3.1, ticket #1696 "very very messy" on the phone) — the phone Home in one
 *     rhythm: the welcome and the search on hs.css's 16px gutter (the search a flat section), the cards
 *     even tiles, and "Dedicate / Donate" a tile across (was a dashed pill of its own shape), 16px
 *     between the blocks, 8px between the tiles. Words and links unchanged.
 *   2026-11-02 feat/harshalom-v3-audit, lane L6 — the quiet "Dedicate / Donate" line under the cards
 *     (its own row on a tablet, the last line of the left column on a computer); 44px on touch.
 *   2026-11-02 feat/harshalom-v3-audit, lane L2 — the quieter phone Home (no tile repeating the
 *     search box, a compact grid of the rest), 44px Directions pill on touch, the 13px floor,
 *     and the big-screen step from 1800px.
 *   2026-10-29 live check after v2 — phones show the name at once (no fade waiting on a photo below the screen).
 *   2026-10-28 feat/harshalom-cemetery-site — created.
 *   2026-10-28 review fixes — moved from app/harshalom/home.css (offline styles);
 *     `hs-leaving` hides Home while an old Tab link (#g=, #s=, #find …) is forwarded.
 *   2026-10-29 feat/harshalom-v2-light, lane D — v2: light, three layouts; the dark hero, the
 *     two big boxes and the 2.7 s opening are gone (the opening is a short fade).
 */

.hs.hs-home {
  display: flex;
  flex-direction: column;
}

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

/* PHONE: one column. `align-content: start`: the main grows to the footer, and its rows must
   not stretch with it (a tablet's portrait screen pulled the welcome away from the search). */
.hs.hs-home .hs-home__main {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  width: 100%;
  padding: 16px max(12px, env(safe-area-inset-right)) 20px max(12px, env(safe-area-inset-left));
}

.hs.hs-home .hs-home__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

/* ── the welcome ────────────────────────────────────────────────────────── */

.hs.hs-home .hs-home__welcome {
  position: relative;
  min-width: 0;
  padding: 2px 2px 0;
}

.hs.hs-home .hs-home__bh {
  position: absolute;
  top: 0;
  right: 2px;
  font-size: var(--hs-fs-min);
  color: var(--hs-faint);
}

.hs.hs-home .hs-home__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  outline: none;
}

.hs.hs-home .hs-home__he {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hs-accent);
}

.hs.hs-home .hs-home__en {
  font-size: var(--hs-h1);
  line-height: 1.15;
  color: var(--hs-accent-ink);
}

.hs.hs-home .hs-home__rule {
  margin: 10px 0 0;
}

.hs.hs-home .hs-home__addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--hs-muted);
}

.hs.hs-home .hs-home__addr-ic {
  color: var(--hs-accent);
}

.hs.hs-home .hs-home__dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

/* A 44px target on a phone, a tablet and any touch screen (audit V-26: it was 32px). */
@media (max-width: 1199.98px), (pointer: coarse) {
  .hs.hs-home .hs-home__dir {
    min-height: var(--hs-tap);
    padding: 0 14px;
  }
}

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

.hs.hs-home .hs-home__search {
  padding: 14px;
}

.hs.hs-home .hs-home__search-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  font-family: var(--hs-serif);
  font-size: var(--hs-h2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--hs-accent-ink);
}

.hs.hs-home .hs-home__search-h [lang] {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--hs-muted);
}

.hs.hs-home .hs-home__search-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hs.hs-home .hs-home__search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

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

.hs.hs-home .hs-home__q {
  padding-left: 38px;
}

.hs.hs-home .hs-home__go {
  flex: none;
  min-width: 92px;
}

.hs.hs-home .hs-home__hint {
  margin-top: 8px;
  font-size: var(--hs-fs-min);
  line-height: 1.45;
  color: var(--hs-muted);
}

/* The Hebrew line of the hint on a line of its own (it wrapped in two halves). */
.hs.hs-home .hs-home__hint [lang] {
  display: block;
  margin-top: 1px;
}

/* ── a card per tab ─────────────────────────────────────────────────────── */

.hs.hs-home .hs-home__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.hs.hs-home .hs-home__card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow);
  color: var(--hs-ink);
  text-decoration: none;
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease;
}

.hs.hs-home .hs-home__card:hover {
  border-color: var(--hs-accent);
  background: #fcfdfc;
}

.hs.hs-home .hs-home__card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hs-accent-soft);
  color: var(--hs-accent);
}

.hs.hs-home .hs-home__card-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.hs.hs-home .hs-home__card-en {
  font-size: 15px;
  font-weight: 600;
}

.hs.hs-home .hs-home__card-yi {
  font-size: 14px;
  color: var(--hs-muted);
}

.hs.hs-home .hs-home__card-go {
  color: var(--hs-faint);
}

.hs.hs-home .hs-home__card:hover .hs-home__card-go {
  color: var(--hs-accent);
}

/* PHONE (audit V-50): quieter. The search box is right above, so its tile is not shown here;
   the other five are a compact grid, two a row, Tehillim & Mishnayos across the middle (its
   name is the long one). Every page stays one tap away in the tab strip and the ☰. */
@media (max-width: 699.98px) {
  .hs.hs-home .hs-home__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs.hs-home .hs-home__card[data-hs-card='find'] {
    display: none;
  }

  .hs.hs-home .hs-home__card[data-hs-card='prayers'] {
    grid-column: 1 / -1;
  }

  .hs.hs-home .hs-home__card {
    gap: 10px;
    min-height: 52px;
    padding: 6px 10px;
    box-shadow: none;
  }

  .hs.hs-home .hs-home__card-ic {
    width: 32px;
    height: 32px;
  }

  .hs.hs-home .hs-home__card-en {
    font-size: 14px;
  }

  .hs.hs-home .hs-home__card-yi {
    font-size: var(--hs-fs-min);
  }

  .hs.hs-home .hs-home__card-go {
    display: none;
  }
}

/* The narrowest phones: a smaller mark, so "Cemetery Map" stays on one line. */
@media (max-width: 379.98px) {
  .hs.hs-home .hs-home__card {
    gap: 8px;
    padding: 6px 8px;
  }

  .hs.hs-home .hs-home__card-ic {
    width: 28px;
    height: 28px;
  }
}

/* ── Dedicate / Donate: one quiet line under the cards (lane L6) ────────── */

.hs.hs-home .hs-home__give {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: var(--hs-tap);
  padding: 4px 10px;
  border: 1px dashed var(--hs-line-2);
  border-radius: 999px;
  color: var(--hs-accent-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease;
}

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

.hs.hs-home .hs-home__give-ic {
  flex: none;
  color: var(--hs-gold);
}

.hs.hs-home .hs-home__give-yi {
  font-family: var(--hs-serif);
  font-size: var(--hs-fs-min);
  font-weight: 400;
  color: var(--hs-muted);
}

.hs.hs-home .hs-home__give-go {
  color: var(--hs-faint);
}

/* ── the photo: bright, framed, beside the text ─────────────────────────── */

.hs.hs-home .hs-home__photo {
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--hs-line);
  border-radius: 14px;
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow);
}

.hs.hs-home .hs-home__pic {
  display: block;
  width: 100%;
  height: 100%;
}

.hs.hs-home .hs-home__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  object-position: 30% 60%;
}

/* ── TABLET ─────────────────────────────────────────────────────────────── */

@media (min-width: 700px) {
  .hs.hs-home .hs-home__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'welcome photo'
      'search photo'
      'cards cards'
      'give give';
    align-items: start;
    column-gap: 24px;
    row-gap: 18px;
    padding: 24px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left));
  }

  .hs.hs-home .hs-home__lead {
    display: contents;
  }

  .hs.hs-home .hs-home__welcome {
    grid-area: welcome;
  }

  .hs.hs-home .hs-home__search {
    grid-area: search;
  }

  .hs.hs-home .hs-home__cards {
    grid-area: cards;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hs.hs-home .hs-home__give {
    grid-area: give;
  }

  /* The photo fills exactly the height of the welcome and the search box beside it: it is
     taken out of the row sizing (absolute), so it never stretches the rows. */
  .hs.hs-home .hs-home__photo {
    grid-area: photo;
    position: relative;
    align-self: stretch;
    min-height: 260px;
  }

  .hs.hs-home .hs-home__pic {
    position: absolute;
    inset: 6px;
    width: auto;
    height: auto;
  }

  .hs.hs-home .hs-home__img {
    aspect-ratio: auto;
  }

  .hs.hs-home .hs-home__he {
    font-size: 23px;
  }

  .hs.hs-home .hs-home__card {
    min-height: 64px;
    padding: 10px 14px;
  }
}

@media (min-width: 1000px) {
  .hs.hs-home .hs-home__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── COMPUTER: one screen, no scrolling ─────────────────────────────────── */

@media (min-width: 1200px) {
  .hs.hs-home .hs-home__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: 'lead photo';
    align-content: center;
    align-items: center;
    column-gap: 40px;
    padding: 24px max(40px, env(safe-area-inset-right)) 24px max(40px, env(safe-area-inset-left));
  }

  .hs.hs-home .hs-home__lead {
    grid-area: lead;
    display: grid;
    gap: 18px;
  }

  .hs.hs-home .hs-home__welcome,
  .hs.hs-home .hs-home__search,
  .hs.hs-home .hs-home__cards,
  .hs.hs-home .hs-home__give {
    grid-area: auto;
  }

  /* a computer: slimmer than a touch target (a mouse), still 40px like the site's buttons */
  .hs.hs-home .hs-home__give {
    min-height: 40px;
  }

  .hs.hs-home .hs-home__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hs.hs-home .hs-home__card {
    min-height: 60px;
  }

  .hs.hs-home .hs-home__he {
    font-size: 24px;
  }

  .hs.hs-home .hs-home__photo {
    position: static;
    align-self: center;
    min-height: 0;
  }

  .hs.hs-home .hs-home__pic {
    position: static;
    width: 100%;
    height: 100%;
  }

  /* Never taller than the room between the header and the footer. */
  .hs.hs-home .hs-home__img {
    aspect-ratio: 4 / 3;
    max-height: calc(100vh - var(--hs-sticky-top) - 200px);
    max-height: calc(100svh - var(--hs-sticky-top) - 200px);
  }
}

/* 2026-11-11 (the 11 Nov audit, R16): on a computer up to 1365px the cards are 255-293px wide, and
   "Tehillim & Mishnayos" (about 160px at 15px) broke over two lines at 1200-1270px while the other
   cards held one. Here the card's › goes (the whole card is the link, and its border marks the hover):
   its name gets 28px more and stays one line. From 1366px nothing changes. */
@media (min-width: 1200px) and (max-width: 1365.98px) {
  .hs.hs-home .hs-home__card-go {
    display: none;
  }
}

/* a big touch screen keeps the 44px target (lane L6) */
@media (min-width: 1200px) and (pointer: coarse) {
  .hs.hs-home .hs-home__give {
    min-height: var(--hs-tap);
  }
}

/* ── A BIG SCREEN (from 1800px, audit V-24) ─────────────────────────────── */

/* The welcome, the search and the cards keep a readable column (the search box was 1000px
   wide at 2560); the photo takes the rest of the width, so the page still fills the screen
   (Rule 40). */
@media (min-width: 1800px) {
  .hs.hs-home .hs-home__main {
    grid-template-columns: minmax(0, 880px) minmax(0, 1fr); /* fullbleed-ok: reading column */
    column-gap: 56px;
    padding: 32px max(56px, env(safe-area-inset-right)) 32px max(56px, env(safe-area-inset-left));
  }

  .hs.hs-home .hs-home__lead {
    gap: 22px;
  }

  .hs.hs-home .hs-home__he {
    font-size: 30px;
  }

  .hs.hs-home .hs-home__addr {
    font-size: 16px;
  }

  .hs.hs-home .hs-home__search {
    padding: 20px;
  }

  .hs.hs-home .hs-home__card {
    min-height: 72px;
    padding: 12px 16px;
  }

  .hs.hs-home .hs-home__card-ic {
    width: 44px;
    height: 44px;
  }

  .hs.hs-home .hs-home__card-en {
    font-size: 17px;
  }

  .hs.hs-home .hs-home__card-yi {
    font-size: 16px;
  }

  .hs.hs-home .hs-home__img {
    max-height: calc(100vh - var(--hs-sticky-top) - 240px);
    max-height: calc(100svh - var(--hs-sticky-top) - 240px);
  }
}

@media (min-width: 2400px) {
  .hs.hs-home .hs-home__main {
    grid-template-columns: minmax(0, 1000px) minmax(0, 1fr); /* fullbleed-ok: reading column */
  }

  .hs.hs-home .hs-home__he {
    font-size: 34px;
  }
}

/* ── the opening and an old link on its way ─────────────────────────────── */

/* `hs-leaving`: an old Tab link (/#g=17-H-29, #s=, #find, #search, #apply) is being
   forwarded to its page by the script at the top of Home: paint nothing of Home. The
   script takes the class off again if the new page has not come in 4 s. */
.hs.hs-home.hs-leaving {
  visibility: hidden;
}

/* `hs-intro`: decided before paint — the photo and the name start faint.
   `hs-intro-run`: home.js starts the fade once the photo is ready (at most 1.2 s).
   The search box and the cards are never hidden. */
.hs.hs-home.hs-intro .hs-home__img {
  opacity: 0;
  transform: scale(1.015);
}

.hs.hs-home.hs-intro .hs-home__title,
.hs.hs-home.hs-intro .hs-home__rule {
  opacity: 0;
  transform: translateY(4px);
}

.hs.hs-home.hs-intro.hs-intro-run .hs-home__img {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease,
    transform 1s ease;
}

.hs.hs-home.hs-intro.hs-intro-run .hs-home__title,
.hs.hs-home.hs-intro.hs-intro-run .hs-home__rule {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease 0.1s,
    transform 0.5s ease 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .hs.hs-home.hs-intro .hs-home__img,
  .hs.hs-home.hs-intro .hs-home__title,
  .hs.hs-home.hs-intro .hs-home__rule {
    opacity: 1;
    transform: none;
  }
}

/* On a phone the gate photo sits below the first screen, so the name is not held back
   waiting for it: it shows at once (29 Oct live check: a blank gap where the name was). */
@media (max-width: 699px) {
  .hs.hs-home.hs-intro .hs-home__title,
  .hs.hs-home.hs-intro .hs-home__rule {
    opacity: 1;
    transform: none;
  }
}

/* v3.1 (ticket #1696, "on the phone the site looks very very messy"): the Home of a phone in one
   rhythm — the welcome, the search and the cards on the 16px gutter (hs.css), the five cards as
   even tiles (two a row, Tehillim & Mishnayos across), and "Dedicate / Donate" a tile across like
   Tehillim instead of a dashed pill of its own shape; the same quiet look (no shadow), the same
   height, the same 8px between them all. The words and the link are unchanged. */
@media (max-width: 699.98px) {
  .hs.hs-home .hs-home__lead {
    gap: 16px;
  }

  .hs.hs-home .hs-home__welcome {
    padding: 0;
  }

  .hs.hs-home .hs-home__bh {
    right: 0;
  }

  .hs.hs-home .hs-home__search {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hs.hs-home .hs-home__card {
    min-height: 56px;
    padding: 6px 12px;
  }

  .hs.hs-home .hs-home__give {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    justify-self: stretch;
    gap: 0 12px;
    min-height: 56px;
    margin-top: -8px;
    padding: 6px 12px;
    border: 1px solid var(--hs-line);
    border-radius: var(--hs-r);
    background: var(--hs-surface);
    font-size: 14px;
  }

  .hs.hs-home .hs-home__give-ic {
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    padding: 7px;
    border-radius: 50%;
    background: #f8f0dc;
  }

  .hs.hs-home .hs-home__give-ic {
    grid-row: 1 / span 2;
  }

  /* English over the Yiddish, as on every other tile */
  .hs.hs-home .hs-home__give-en {
    line-height: 1.25;
  }

  .hs.hs-home .hs-home__give-yi {
    justify-self: start;
    line-height: 1.25;
  }

  .hs.hs-home .hs-home__give-go {
    display: none;
  }

  .hs.hs-home .hs-home__photo {
    padding: 4px;
    border-radius: 12px;
  }
}

/* the narrowest phones keep their slimmer tiles (above), so "Cemetery Map" stays on one line */
@media (max-width: 379.98px) {
  .hs.hs-home .hs-home__card,
  .hs.hs-home .hs-home__give {
    gap: 8px;
    padding: 6px 8px;
  }
}

/* ── 0.031: CLEAN & EMPTY ARRIVAL FROM DAVID'S ORIGINAL DESIGN, CLICK BY CLICK ── */

.hs.hs-home .hs-home__card-art {
  display: none;
}

.hs.hs-home .hs-home__doors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.hs.hs-home .hs-home__door {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  border: 1.5px solid var(--hs-line-2);
  border-radius: 14px;
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow);
  color: var(--hs-ink);
  text-decoration: none;
  transition:
    border-color 0.14s ease,
    background-color 0.14s ease,
    transform 0.12s ease;
}

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

.hs.hs-home .hs-home__door:active {
  transform: translateY(1px);
}

.hs.hs-home .hs-home__door--primary {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

.hs.hs-home .hs-home__door--primary:hover {
  background: #dfece4;
}

.hs.hs-home .hs-home__door-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hs-accent-soft);
  color: var(--hs-accent);
}

.hs.hs-home .hs-home__door--primary .hs-home__door-ic {
  background: var(--hs-surface);
  border: 1.5px solid var(--hs-accent);
}

.hs.hs-home .hs-home__door-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.hs.hs-home .hs-home__door-en {
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-accent-ink);
  line-height: 1.25;
}

.hs.hs-home .hs-home__door-yi {
  font-family: var(--hs-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.25;
}

.hs.hs-home .hs-home__door-go {
  flex: none;
  color: var(--hs-faint);
}

.hs.hs-home .hs-home__door:hover .hs-home__door-go,
.hs.hs-home .hs-home__door--primary .hs-home__door-go {
  color: var(--hs-accent);
}

.hs.hs-home .hs-home__subdoors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.hs.hs-home .hs-home__subdoor {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 7px;
  min-height: var(--hs-tap);
  padding: 6px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition:
    border-color 0.14s ease,
    background-color 0.14s ease;
}

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

.hs.hs-home .hs-home__subdoor-yi {
  font-family: var(--hs-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hs-muted);
}

/* ── CLICK-BY-CLICK PROGRESSIVE STEPS (#hs-search & #hs-more) ──────────── */

.hs.hs-home .hs-home__step {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.hs.hs-home[data-hs-open='search'] .hs-home__doors,
.hs.hs-home[data-hs-open='more'] .hs-home__doors {
  display: none;
}

.hs.hs-home[data-hs-open='search'] .hs-home__step[data-hs-step='search'],
.hs.hs-home[data-hs-open='more'] .hs-home__step[data-hs-step='more'] {
  display: grid;
}

/* No-JS fallback (:target): each :has() selector stands alone so older browsers never drop paired rules */
.hs.hs-home:not([data-hs-booted]):has(#hs-search:target) .hs-home__doors {
  display: none;
}

.hs.hs-home:not([data-hs-booted]):has(#hs-search:target) #hs-search {
  display: grid;
}

.hs.hs-home:not([data-hs-booted]):has(#hs-more:target) .hs-home__doors {
  display: none;
}

.hs.hs-home:not([data-hs-booted]):has(#hs-more:target) #hs-more {
  display: grid;
}

.hs.hs-home .hs-home__step-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.hs.hs-home .hs-home__step-title {
  font-family: var(--hs-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs.hs-home .hs-home__step-back {
  min-height: var(--hs-tap);
  font-weight: 700;
}

.hs.hs-home .hs-home__step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs.hs-home .hs-home__step-chip {
  min-height: var(--hs-tap);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hs.hs-home .hs-home__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.hs.hs-home .hs-home__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  min-height: var(--hs-tap);
  padding: 8px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: 10px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.hs.hs-home .hs-home__extra-yi {
  font-family: var(--hs-serif);
  font-size: 13.5px;
  color: var(--hs-muted);
}

/* Voice mic button, mic status hint & Saved Family Graves strip */

.hs.hs-home .hs-home__mic {
  flex: none;
  gap: 5px;
  padding: 0 12px;
  font-weight: 700;
}

.hs.hs-home .hs-home__mic.is-listening {
  border-color: var(--hs-red);
  background: var(--hs-red-soft);
  color: var(--hs-red);
}

.hs.hs-home .hs-home__mic-yi {
  font-family: var(--hs-serif);
  font-size: 13px;
  color: var(--hs-muted);
}

@media (max-width: 479.98px) {
  .hs.hs-home .hs-home__mic-yi {
    display: none;
  }
}

.hs.hs-home .hs-mic-status[hidden] {
  display: none;
}

.hs.hs-home .hs-mic-status {
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--hs-line-2);
  border-radius: 8px;
  background: var(--hs-bg);
  color: var(--hs-accent-ink);
  font-size: 13.5px;
  font-weight: 600;
}

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

.hs.hs-home .hs-home__saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid #e6d19a;
  border-radius: 12px;
  background: #fdf7e7;
}

.hs.hs-home .hs-home__saved-lbl {
  font-size: 13px;
  font-weight: 800;
  color: var(--hs-accent-ink);
}

.hs.hs-home .hs-home__saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--hs-tap);
  padding: 4px 12px;
  border: 1px solid #d4bc7d;
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ── 0.032–0.033: FINISHED LOGO PLAQUE, PURE ENGLISH DEFAULT & APP-IDENTICAL PHONE WEB ── */

.hs.hs-home .hs-home__crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 118px;
  margin: 0 auto 8px;
  padding: 6px;
  border: 1px solid #dfd7c6;
  border-radius: 18px;
  background: #fbfaf7;
  box-shadow:
    inset 0 0 0 2px #ffffff,
    var(--hs-shadow);
}

.hs.hs-home .hs-home__crest-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Pure English default on Home: hides בס״ד and Hebrew h1 line until אידיש is selected */
.hs.hs-home[data-hs-lang='en'] .hs-home__bh,
.hs.hs-home[data-hs-lang='en'] .hs-home__he {
  display: none;
}

/* ── PHONE (< 700px): Finished single-screen arrival in both Chrome & App ── */

@media (max-width: 699.98px) {
  /* Phone Home uses only the 52px top header + ☰ menu (no duplicate secondary tab strip) */
  .hs.hs-home {
    --hs-sticky-top: var(--hs-site-h1);
  }

  .hs.hs-home .hs-nav {
    display: none;
  }

  /* Full 100svh screen height pushes HsFooter cleanly below the first screen fold in Chrome Mobile,
     centers the Welcome Plaque & Doors cleanly on tall phones (zero empty bottom void), and keeps
     dynamic clearance above both the Call Bar and any docked Install-App strip. */
  .hs.hs-home .hs-home__main {
    min-height: calc(100vh - var(--hs-site-h1));
    min-height: calc(100svh - var(--hs-site-h1));
    align-content: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 84px;
    padding-bottom: max(92px, calc(var(--hs-callbar-h, 60px) + 28px));
  }

  .hs.hs-home[data-hs-open='search'] .hs-home__main,
  .hs.hs-home[data-hs-open='more'] .hs-home__main {
    align-content: start;
  }

  .hs.hs-home .hs-home__lead {
    gap: 12px;
  }

  /* Default shipped plaque uses the crisp inline vector crest inside .hs-home__welcome;
     when the office uploads a custom cemetery photograph in Settings → Site photos
     (data-hs-custom-photo="1"), display their photograph right at the top on Phone too. */
  .hs.hs-home .hs-home__photo {
    display: none;
  }

  .hs.hs-home[data-hs-custom-photo='1']:not([data-hs-open]) .hs-home__photo {
    display: block;
    order: -1;
    padding: 5px;
    border-radius: 16px;
  }

  .hs.hs-home[data-hs-custom-photo='1'] .hs-home__img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .hs.hs-home[data-hs-custom-photo='1'] .hs-home__crest {
    width: 68px;
    height: 64px;
    margin-bottom: 4px;
  }

  /* 0.034 (3 Dec 2026, owner: "put back the beautiful picture of the entrance"): the shipped
     photo is the entrance again, and a phone shows it at the top of Home the same way it shows
     an office photo. The small crest in the welcome card steps aside; the logo stays in the
     header on every page. */
  .hs.hs-home:not([data-hs-open]) .hs-home__photo {
    display: block;
    order: -1;
    padding: 5px;
    border-radius: 16px;
  }

  .hs.hs-home .hs-home__img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .hs.hs-home .hs-home__crest {
    display: none;
  }

  /* Framed warm-ivory architectural Welcome & Logo Plaque on Phone */
  .hs.hs-home .hs-home__welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 16px 14px;
    border: 1.5px solid var(--hs-line-2);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
    box-shadow:
      inset 0 0 0 3px #ffffff,
      inset 0 0 0 4px rgba(201, 168, 76, 0.36),
      var(--hs-shadow-card);
    text-align: center;
  }

  .hs.hs-home[data-hs-open='search'] .hs-home__welcome,
  .hs.hs-home[data-hs-open='more'] .hs-home__welcome {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hs.hs-home .hs-home__title {
    align-items: center;
    text-align: center;
  }

  .hs.hs-home .hs-home__rule {
    margin: 8px auto 0;
  }

  .hs.hs-home .hs-home__addr {
    justify-content: center;
    margin-top: 6px;
  }

  .hs.hs-home .hs-home__door {
    min-height: 54px;
    padding: 8px 14px;
  }

  /* When clicking into Search or More Options on a phone, step the arrival crest & address
     aside so the unfolded step sits cleanly at the top above the phone's keyboard. */
  .hs.hs-home[data-hs-open='search'] .hs-home__crest,
  .hs.hs-home[data-hs-open='more'] .hs-home__crest,
  .hs.hs-home[data-hs-open='search'] .hs-home__photo,
  .hs.hs-home[data-hs-open='more'] .hs-home__photo,
  .hs.hs-home[data-hs-open='search'] .hs-home__bh,
  .hs.hs-home[data-hs-open='more'] .hs-home__bh,
  .hs.hs-home[data-hs-open='search'] .hs-home__rule,
  .hs.hs-home[data-hs-open='more'] .hs-home__rule,
  .hs.hs-home[data-hs-open='search'] .hs-home__addr,
  .hs.hs-home[data-hs-open='more'] .hs-home__addr {
    display: none;
  }
}

/* ── TABLET & COMPUTER (>= 700px): Clean two-column arrival with framed Har Shalom Logo ── */

@media (min-width: 700px) {
  /* Right column displays the framed Har Shalom Logo (.hs-home__photo), so hide the small phone crest */
  .hs.hs-home .hs-home__crest {
    display: none;
  }

  .hs.hs-home .hs-home__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: 'lead photo';
    align-content: center;
    align-items: center;
  }

  .hs.hs-home .hs-home__lead {
    grid-area: lead;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hs.hs-home .hs-home__welcome,
  .hs.hs-home .hs-home__search,
  .hs.hs-home .hs-home__cards,
  .hs.hs-home .hs-home__give {
    grid-area: auto;
  }

  .hs.hs-home .hs-home__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hs.hs-home .hs-home__photo {
    grid-area: photo;
    position: static;
    align-self: center;
    min-height: 0;
    background: #fbfaf7;
  }

  .hs.hs-home .hs-home__pic {
    position: static;
    width: 100%;
    height: 100%;
  }

  .hs.hs-home .hs-home__img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fbfaf7;
    max-height: calc(100vh - var(--hs-sticky-top) - 200px);
    max-height: calc(100svh - var(--hs-sticky-top) - 200px);
  }
}

@media (min-width: 1800px) {
  .hs.hs-home .hs-home__main {
    grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
    column-gap: 56px;
  }
}
