/*
 * HAR SHALOM CEMETERY — the Contact page, the "message to the office" form, and the small
 * call / copy pieces.
 *
 * Module   public/harshalom/static/contact.css  (served at /harshalom/static/contact.css)
 * Version  0.008 · 2026-11-12 · harshalom/0.019-phone (the count of its changelog entries; no line
 *          before 0.006)
 * Owner    lane M (messages and forms); release 0.019, lane phone (0.008)
 * Linked   by app/harshalom/contact/contact-parts.tsx (HsContactSheet), which the Contact page,
 *          HsMessageForm (on any grave view), the funeral form and the application all draw;
 *          React keeps one copy. A static file, so the offline worker can keep it.
 *
 * DESIGN_V2: light, quiet, proportionate. The tokens are lane D's (--hs-* on .hs, static/hs.css);
 * nothing here hard-codes a colour the tokens name. No text on a solid red or green block: the
 * numbers are outlined pills on a soft tint. Every rule is scoped under `.hs`. No words in CSS.
 *
 * Three layouts (DESIGN_V2 "three experiences"):
 *   phone    < 700px     one column. 0.008: where scripts run, the title, then big buttons: "Send a
 *                        message to the office" (.ct-acts; the form opens under it only once
 *                        pressed, :target), the numbers and the address under it. With no
 *                        JavaScript, or a message that came back not sent, the form first, as before
 *   tablet   700-1199px  two panes: the form | the numbers and the address; 44px targets
 *   computer >= 1200px   the same two panes, wider; the page fits 1440x900 without scrolling
 *
 * THE SWITCH'S LINE (.hs-off, HsOffNotice; owner item 4, audit V-12): ONE calm amber line beside
 * Send while a form's delivery switch is off ("saved for the office; email delivery is still being
 * set up — for anything urgent, please call" + the number). The form comes first; no red block. A
 * line whose page did not read the switch (`data-hs-off-auto`, a grave's form inside the finder) is
 * hidden here when the page's call bar says its lane is on (`.hs-callbar[data-hs-on~=lane]`,
 * HsCallBar). Without :has() it simply stays: the honest side.
 *
 * SEND AND THE LINE (.hs-msg__actions) answer the FORM's width, not the screen's (a container
 * query on .hs-msg__fields): the line above a full-width Send in a narrow form (a phone, a grave's
 * side panel, a tablet's form pane), the line beside Send once the form is 520px wide.
 *
 * CHANGELOG (Rule 45)
 *   2026-11-12 harshalom/0.019-phone (0.008) — the owner, 11 Nov 2026, on his phone: "Instead of having
 *     like a clean view with like buttons, it's like a whole bunch of empty fields". Contact opened on a
 *     phone with the form's empty boxes (4 at 390x844) and no button. Now, on a phone (< 700px) where
 *     scripts run and :has() is understood, the title, then "Send a message to the office" (.ct-acts,
 *     48px on a touch screen), then the numbers and the address; the form opens under the button once
 *     pressed (#ct-write:target), "Close the message" puts it away (what was typed stays). A message
 *     that came back not sent (.ct-result--error) shows the form at once. Scoped to the Contact page
 *     (.ct-*): the grave's message form, the funeral form and the application are not touched. A
 *     tablet, a computer, no JavaScript and paper: as 0.007.
 *   2026-11-11 harshalom/0.018-pages2 (0.007) — P2-4: under 360px the topic "Burial / Chevra Kadisha"
 *     has the row to itself (both columns). 0.006 kept its English whole, 152px in a 140px chip, and at
 *     320-343px its letters ran up to 6px past the chip's border (the "B" across it). The other four
 *     keep two a row; from 360px nothing changes.
 *   2026-11-11 harshalom/0.018-pagesB (0.006) — R16: a topic's English and its Yiddish each stay whole
 *     (the chip breaks only between them, centred: "Burial / Chevra / Kadisha" took three lines on a
 *     phone), and the numbers' short Yiddish label and the Shabbos note's "פארמאכט אויף שבת" too.
 *   2026-11-06 harshalom/0.013-site (audit 6 Nov, A-06) — on a short computer screen (<= 800px tall) the
 *     form and the side share the width 5:4 (was 3:2), so Contact fits 1280x720 as the v3 notes
 *     said (main ended at 753px: a 33px scroll; now 695px). 1366x768 still fits (678px, was 716px);
 *     1440x900, larger screens and the tablets are not touched.
 *   2026-11-02 fix/hs-phone-tidy (v3.1, ticket #1696) — on a phone the message's topics are two even
 *     columns.
 *   2026-10-29 feat/harshalom-v2-light, lane M — created.
 *   2026-10-29 feat/harshalom-v2-light, shell fix lane — the "not active yet" notice (.hs-off) and
 *     its call-bar switch; Contact fits a 1366x768 laptop and, with the notice, 1440x900 (tighter
 *     on a short screen); Copy buttons 44px on a tablet (DESIGN_V2 touch targets).
 *   2026-11-02 feat/harshalom-v3-audit, lane L4 — audits V-12, V-23, V-53: the red "not active
 *     yet" block became one amber line beside Send (a container query decides beside or above);
 *     Contact's computer view fits a 1280x720 laptop (a shorter message box, tighter rhythm), its
 *     tablet view is the form | the numbers and the address with nothing squeezed; 44px touch
 *     targets on any touch screen (topic chips, Copy, the numbers), the 13px text floor; Send
 *     marked for the feedback launcher (in the markup).
 */

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

.hs .ct-main {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 12px 12px 24px;
}

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

.hs .ct-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

/* 0.008: the phone's buttons (.ct-acts): never shown from a tablet up, with no JavaScript, on paper. */
.hs .ct-acts {
  display: none;
}

/* 0.008: ON A PHONE, WHERE YOU ARE AND BIG BUTTONS. Only where the browser can test :has() and says
   scripts run; else the form is open first, as 0.007. Opening (#ct-write:target) keeps the page at its
   top, the title in view (scroll-margin: the browser stops at the top); Close goes to the title. */
@supports selector(:has(*)) {
  @media screen and (max-width: 699px) and (scripting: enabled) {
    .hs .ct-main:not(:has(.ct-result--error)) > .ct-acts {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
      scroll-margin-top: 100vh;
    }

    .hs .ct-main:not(:has(.ct-result--error)) > .ct-acts:not(:target) ~ .ct-grid .ct-formpanel {
      display: none;
    }

    .hs .ct-act {
      display: flex;
      justify-content: flex-start;
      gap: 10px;
      width: 100%;
      min-height: 48px;
      padding: 10px 14px;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.25;
      text-align: left;
      color: var(--hs-accent-ink);
      background: var(--hs-surface);
    }

    .hs .ct-act__t {
      flex: 1 1 auto;
      min-width: 0;
    }

    /* the English, then its Yiddish whole on the line under it */
    .hs .ct-act__t .ct-en,
    .hs .ct-act__t .ct-yi {
      display: block;
      text-align: left;
    }

    .hs .ct-act__t .ct-yi {
      font-size: 15px;
      font-weight: 600;
      color: var(--hs-muted);
    }

    .hs .ct-act__go {
      flex: 0 0 auto;
      font-size: 22px;
      line-height: 1;
      color: var(--hs-muted);
    }

    .hs .ct-act.ct-act--close,
    .hs .ct-acts:target .ct-act.ct-act--write {
      display: none;
    }

    .hs .ct-acts:target .ct-act.ct-act--close {
      display: flex;
    }
  }
}

.hs .ct-en {
  color: inherit;
}

.hs .ct-yi {
  font-family: var(--hs-serif);
  /* never under the 13px floor (--hs-fs-min), even inside a small label */
  font-size: max(0.92em, var(--hs-fs-min));
  font-weight: 500;
  color: var(--hs-muted);
}

.hs .ct-result {
  border-color: var(--hs-line-2);
  background: var(--hs-accent-soft);
}

.hs .ct-result--sent {
  background: var(--hs-green-soft);
}

.hs .ct-result--failed {
  border-color: #e7d4a6;
  background: #fbf5e6;
}

.hs .ct-result--error {
  border-color: #efc7c3;
  background: var(--hs-red-soft);
}

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

.hs .ct-ref strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
}

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

/* the numbers */
.hs .ct-call {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--hs-line);
}

.hs .ct-calls .hs-panel__h + .ct-call {
  padding-top: 0;
  border-top: 0;
}

.hs .ct-call__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hs .ct-call--red .ct-call__label {
  color: var(--hs-red);
}

.hs .ct-call--green .ct-call__label {
  color: var(--hs-green);
}

.hs .ct-call__words,
.hs .ct-call__note {
  margin: 0;
  font-size: var(--hs-fs-sm);
  line-height: 1.4;
  color: var(--hs-muted);
}

.hs .ct-call__words [lang='yi'] {
  display: block;
  font-family: var(--hs-serif);
}

/* 0.018 (R16): a number's short Yiddish label and the Shabbos note's "פארמאכט אויף שבת" stay whole
   (at 390 the note's Yiddish broke after its second word); the line breaks before them instead. */
.hs .ct-call__label .ct-yi,
.hs .ct-call__note .ct-yi {
  white-space: nowrap;
}

.hs .ct-fax {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hs-line);
}

.hs .ct-fax__k {
  font-size: 14px;
  font-weight: 700;
}

.hs .ct-fax__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* the address */
.hs .ct-addr {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
}

.hs .ct-addr__he {
  justify-self: start;
  font-family: var(--hs-serif);
  font-size: 1.1em;
  font-weight: 600;
  color: var(--hs-accent-ink);
}

.hs .ct-addr__en {
  font-weight: 600;
}

.hs .ct-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hs-line);
  font-size: 14px;
}

.hs .ct-more dt {
  margin-top: 6px;
  font-size: var(--hs-fs-sm);
  font-weight: 600;
  color: var(--hs-muted);
}

.hs .ct-more dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

  .hs .ct-grid {
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 16px;
  }

}

@media (min-width: 1200px) {
  .hs .ct-main {
    padding: 20px 32px 28px;
  }

  .hs .ct-more {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 14px;
    align-items: center;
  }

  .hs .ct-more dt {
    margin-top: 0;
  }

  .hs .ct-grid {
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
    gap: 20px;
  }
}

/* ── the message form (HsMessageForm) ───────────────────────────────────── */

.hs .hs-msg {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

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

.hs .hs-msg__en {
  color: inherit;
}

.hs .hs-msg__yi {
  font-family: var(--hs-serif);
  font-size: max(0.95em, var(--hs-fs-min));
  font-weight: 500;
  color: var(--hs-muted);
}

.hs .hs-msg__about,
.hs .hs-msg__note {
  margin: 0;
  font-size: var(--hs-fs-sm);
  line-height: 1.4;
  color: var(--hs-muted);
}

.hs .hs-msg__about-text {
  color: var(--hs-ink);
  font-weight: 600;
}

.hs .hs-msg__fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

/* The honeypot: off-screen for everyone, not merely invisible. */
.hs .hs-msg__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hs .hs-msg__f {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hs .hs-msg__lab {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-ink);
}

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

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

.hs textarea.hs-msg__in {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.hs .hs-msg--compact textarea.hs-msg__in {
  min-height: 84px;
}

/* topics: quiet chips, one chosen */
.hs .hs-msg__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hs .hs-msg__topic {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  font-size: 14px;
  cursor: pointer;
}

.hs .hs-msg__topic input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.hs .hs-msg__topic-txt .hs-msg__yi {
  font-size: max(0.92em, var(--hs-fs-min));
}

/* 0.018 (R16): a topic's English and its Yiddish each stay whole: a chip breaks only between them,
   the two lines centred. On a phone "Burial / Chevra Kadisha" took three lines ("Burial / Chevra /
   Kadisha"), its Yiddish two, and "קויפן א חלקה" and "יארצייט / באזוך" broke inside. */
.hs .hs-msg__topic-txt {
  text-align: center;
}

.hs .hs-msg__topic-txt .hs-msg__en,
.hs .hs-msg__topic-txt .hs-msg__yi {
  white-space: nowrap;
}

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

.hs .hs-msg__topic:has(input:checked) {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  color: var(--hs-accent-ink);
  font-weight: 600;
}

.hs .hs-msg__topic:has(input:focus-visible) {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

/* A finger needs 44px (DESIGN_V2; audit V-26): any touch screen, a big one held sideways too. */
@media (pointer: coarse), (max-width: 1199.98px) {
  .hs .hs-msg__topic {
    min-height: var(--hs-tap);
  }
}

/* a box's error line: drawn by the server, shown when the box's data-error names it */
.hs .hs-msg__err {
  display: none;
  font-size: var(--hs-fs-sm);
  font-weight: 600;
  color: var(--hs-red);
}

.hs .hs-msg__f[data-error='required'] .hs-msg__err[data-code='required'],
.hs .hs-msg__f[data-error='long'] .hs-msg__err[data-code='long'],
.hs .hs-msg__f[data-error='bad'] .hs-msg__err[data-code='bad'],
.hs .hs-msg__f[data-error='phone'] .hs-msg__err[data-code='phone'],
.hs .hs-msg__f[data-error='email'] .hs-msg__err[data-code='email'],
.hs .hs-msg__f[data-error='reach'] .hs-msg__err[data-code='reach'],
.hs .hs-msg__f[data-error='choose'] .hs-msg__err[data-code='choose'] {
  display: block;
}

.hs .hs-msg__f[data-error] .hs-msg__in {
  border-color: var(--hs-red);
  background: var(--hs-red-soft);
}

.hs .hs-msg__f--topic[data-error] .hs-msg__topic {
  border-color: var(--hs-red);
}

/* the form's own line (no box to blame) */
.hs .hs-msg__ferrs {
  display: contents;
}

.hs .hs-msg__ferr {
  display: none;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #efc7c3;
  border-radius: var(--hs-r);
  background: var(--hs-red-soft);
  color: var(--hs-red);
  font-size: 14px;
  font-weight: 600;
}

.hs .hs-msg[data-err='invalid'] .hs-msg__ferr[data-code='invalid'],
.hs .hs-msg[data-err='busy'] .hs-msg__ferr[data-code='busy'],
.hs .hs-msg[data-err='big'] .hs-msg__ferr[data-code='big'],
.hs .hs-msg[data-err='retry'] .hs-msg__ferr[data-code='retry'],
.hs .hs-msg[data-err='down'] .hs-msg__ferr[data-code='down'],
.hs .hs-msg[data-err='store'] .hs-msg__ferr[data-code='store'],
.hs .hs-msg[data-err='grave'] .hs-msg__ferr[data-code='grave'],
.hs .hs-msg[data-err='offline'] .hs-msg__ferr[data-code='offline'],
.hs .hs-msg[data-err='broke'] .hs-msg__ferr[data-code='broke'] {
  display: block;
}

/* The fields answer the form's own width (a phone, a grave's side panel, a tablet's pane, a wide
   computer form), so Send and its line are laid out by the room they really have. */
.hs .hs-msg__fields {
  container: hs-msgf / inline-size;
}

/* Narrow: the switch's line (when drawn), then a full-width Send. */
.hs .hs-msg__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.hs .hs-msg__send {
  width: 100%;
}

/* Room enough: the line on the left, Send at the end of the same row. */
@container hs-msgf (min-width: 520px) {
  .hs .hs-msg__actions {
    flex-direction: row;
    align-items: center;
  }

  .hs .hs-msg__actions > .hs-off {
    flex: 1 1 auto;
  }

  .hs .hs-msg__actions > .hs-msg__send {
    flex: none;
    width: auto;
    min-width: 200px;
  }
}

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

/* the Yiddish on the solid main button reads in the button's own colour, not muted */
.hs .hs-msg__send .hs-msg__yi {
  color: inherit;
  opacity: 0.9;
}

.hs .hs-msg[data-state='sending'] .hs-msg__idle {
  display: none;
}

.hs .hs-msg[data-state='sending'] .hs-msg__busy {
  display: inline;
}

.hs .hs-msg[data-state='sending'] .hs-msg__send {
  cursor: progress;
}

/* the answer: drawn three ways, one shown */
.hs .hs-msg__done,
.hs .hs-msg__out {
  display: none;
}

.hs .hs-msg[data-state='held'] .hs-msg__fields,
.hs .hs-msg[data-state='sent'] .hs-msg__fields,
.hs .hs-msg[data-state='failed'] .hs-msg__fields,
.hs .hs-msg[data-state='held'] .hs-msg__about,
.hs .hs-msg[data-state='sent'] .hs-msg__about,
.hs .hs-msg[data-state='failed'] .hs-msg__about {
  display: none;
}

.hs .hs-msg[data-state='held'] .hs-msg__done,
.hs .hs-msg[data-state='sent'] .hs-msg__done,
.hs .hs-msg[data-state='failed'] .hs-msg__done {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--hs-line-2);
  border-radius: var(--hs-r);
  background: var(--hs-accent-soft);
}

.hs .hs-msg[data-state='sent'] .hs-msg__done {
  background: var(--hs-green-soft);
}

.hs .hs-msg[data-state='failed'] .hs-msg__done {
  border-color: #e7d4a6;
  background: #fbf5e6;
}

.hs .hs-msg[data-state='held'] .hs-msg__out[data-out='held'],
.hs .hs-msg[data-state='sent'] .hs-msg__out[data-out='sent'],
.hs .hs-msg[data-state='failed'] .hs-msg__out[data-out='failed'] {
  display: grid;
  gap: 4px;
}

.hs .hs-msg__out-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .hs-msg__out-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.hs .hs-msg__out-p--yi {
  font-family: var(--hs-serif);
  color: var(--hs-muted);
}

.hs .hs-msg__refline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.hs .hs-msg__ref {
  width: 22ch;
  padding: 2px 6px;
  border: 1px dashed var(--hs-line-2);
  border-radius: 6px;
  background: var(--hs-surface);
  color: var(--hs-ink);
  font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.3px;
}

.hs .hs-msg__again {
  justify-self: start;
}

@media (min-width: 700px) {
  .hs .hs-msg__pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* Send alone (the switch is on) keeps its own width at the start of the row. */
  .hs .hs-msg__actions > .hs-msg__send:only-child {
    align-self: flex-start;
    width: auto;
    min-width: 220px;
  }

  .hs .hs-msg--compact .hs-msg__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A grave's folded form (a side panel or a sheet): always the line, then a full-width Send. */
.hs .hs-msg.hs-msg--compact .hs-msg__actions {
  flex-direction: column;
  align-items: stretch;
}

.hs .hs-msg.hs-msg--compact .hs-msg__actions > .hs-msg__send {
  align-self: stretch;
  width: 100%;
}

/* the compact fold on a grave view */
.hs .hs-msgbox {
  min-width: 0;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
}

.hs .hs-msgbox__sum {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--hs-accent-ink);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.hs .hs-msgbox__sum::-webkit-details-marker {
  display: none;
}

.hs .hs-msgbox__sum:hover {
  background: var(--hs-accent-soft);
  border-radius: var(--hs-r);
}

.hs .hs-msgbox__txt {
  flex: 1 1 auto;
  min-width: 0;
}

.hs .hs-msgbox__yi {
  font-family: var(--hs-serif);
  font-weight: 500;
  color: var(--hs-muted);
}

.hs .hs-msgbox__chev {
  flex: none;
  transition: transform 0.15s ease;
}

.hs .hs-msgbox[open] .hs-msgbox__chev {
  transform: rotate(90deg);
}

.hs .hs-msgbox > .hs-msg {
  padding: 0 12px 12px;
}

/* ── the switch's line beside Send (HsOffNotice; owner item 4, audit V-12) ──────────────────
   Calm amber (the "saved, the email did not go out" tone), never red: nothing is wrong with what
   the person is doing. The English, then the office's number, then the Yiddish under it. */

.hs .hs-off {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #e7d4a6;
  border-radius: var(--hs-r);
  background: #fbf5e6;
  color: #5e4410;
  font-size: var(--hs-fs-sm);
  line-height: 1.4;
}

.hs .hs-off__icon {
  flex: none;
  margin-top: 2px;
  color: #8a6116;
}

.hs .hs-off__txt {
  min-width: 0;
}

.hs .hs-off__yi {
  display: block;
  margin-top: 2px;
  font-family: var(--hs-serif);
  color: #6b5a2e;
  text-align: right;
}

/* the number: a small pill inside the line (it dials on a phone, copies on a computer) */
.hs .hs-off .hs-off__call {
  min-height: 30px;
  padding: 1px 10px;
  font-size: var(--hs-fs-sm);
  vertical-align: middle;
}

@media (pointer: coarse), (max-width: 1199.98px) {
  .hs .hs-off .hs-off__call {
    min-height: var(--hs-tap);
    margin-block: 2px;
  }
}

/* A notice whose page did not read the switch: gone when the call bar says its lane is on. */
.hs:has(.hs-callbar[data-hs-on~='grave']) .hs-off[data-hs-off='grave'][data-hs-off-auto],
.hs:has(.hs-callbar[data-hs-on~='contact']) .hs-off[data-hs-off='contact'][data-hs-off-auto],
.hs:has(.hs-callbar[data-hs-on~='application'])
  .hs-off[data-hs-off='application'][data-hs-off-auto] {
  display: none;
}

/* ── a number to call (HsCallLink) and a Copy button (HsCopy) ───────────── */

.hs .hs-calllink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.hs .hs-calllink--red {
  border-color: #e9b7b2;
  background: var(--hs-red-soft);
  color: var(--hs-red);
}

.hs .hs-calllink--green {
  border-color: #b9d8c6;
  background: var(--hs-green-soft);
  color: var(--hs-green);
}

.hs .hs-calllink__txt {
  font-weight: 600;
}

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

/* A pointer that hovers (a computer): callbar.js copies the number; show the copy mark.
   Never on a phone-sized screen, where the number dials. */
@media (hover: hover) and (pointer: fine) {
  .hs .hs-calllink {
    cursor: copy;
  }

  .hs .hs-calllink__copy {
    display: inline-flex;
    opacity: 0.7;
  }

  .hs .hs-calllink:hover {
    border-color: currentColor;
  }
}

.hs .hs-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--hs-tap);
  padding: 3px 14px;
  border: 1px solid var(--hs-line-2);
  border-radius: 999px;
  background: var(--hs-surface);
  color: var(--hs-accent-ink);
  font-family: inherit;
  font-size: var(--hs-fs-sm);
  font-weight: 600;
  cursor: pointer;
}

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

.hs .hs-copy [lang='yi'] {
  font-family: var(--hs-serif);
  font-weight: 500;
}

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

.hs .hs-copy[data-copied] .hs-copy__idle {
  display: none;
}

.hs .hs-copy[data-copied] .hs-copy__done {
  display: inline;
}

.hs .hs-copy[data-copied] {
  border-color: var(--hs-green);
  background: var(--hs-green-soft);
  color: var(--hs-green);
}

@media (max-width: 699px) {
  .hs .hs-calllink {
    cursor: pointer;
  }

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

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

.hs .hs-addr__text {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 44px touch targets on a phone and a tablet, and on any touch screen (DESIGN_V2; audit V-26:
   Copy was 32px, the base rule above); slim on a computer with a mouse. */
@media (min-width: 1200px) and (pointer: fine) {
  .hs .hs-copy {
    min-height: 30px;
    padding: 3px 10px;
  }
}

/* ── computer: the whole Contact page on one screen (1440x900, and a 1366x768 laptop) ──
   The form: name | phone | email on one row. The side: each number beside its words, the
   Directions button beside the address. On a short screen (<= 800px tall) a smaller message box
   and tighter spacing. The main view then fits without scrolling (owner items 1, 11). */
@media (min-width: 1200px) {
  .hs .ct-main {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hs .ct-formpanel .hs-msg__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
  }

  .hs .ct-formpanel .hs-msg__fields > * {
    grid-column: 1 / -1;
  }

  .hs .ct-formpanel .hs-msg__fields > [data-f='name'] {
    grid-column: 1;
  }

  .hs .ct-formpanel .hs-msg__fields > .hs-msg__pair {
    display: contents;
  }

  .hs .ct-formpanel .hs-msg__pair > [data-f='phone'] {
    grid-column: 2;
  }

  .hs .ct-formpanel .hs-msg__pair > [data-f='email'] {
    grid-column: 3;
  }

  .hs .ct-formpanel .hs-msg__ferr {
    grid-column: 1 / -1;
  }

  /* rows=5 would make it ~130px whatever min-height says: a set height, the person can drag it */
  .hs .ct-formpanel textarea.hs-msg__in {
    min-height: 64px;
    height: 112px;
  }

  .hs .ct-formpanel .hs-msg__topics {
    gap: 4px 6px;
  }

  /* each number beside its words */
  .hs .ct-call {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 8px 0;
  }

  .hs .ct-call__label,
  .hs .ct-call__words,
  .hs .ct-call__note {
    grid-column: 1;
  }

  .hs .ct-call__num {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  /* the Directions button beside the address */
  .hs .ct-visit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: start;
  }

  .hs .ct-visit > .hs-panel__h,
  .hs .ct-visit > .ct-more {
    grid-column: 1 / -1;
  }

  .hs .ct-visit .ct-addr {
    margin: 0;
  }

  .hs .ct-visit .ct-dir {
    align-self: end;
  }

  .hs .ct-more {
    margin-top: 10px;
    padding-top: 10px;
  }
}

@media (min-width: 1200px) and (max-height: 800px) {
  .hs .ct-main {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* 0.013 (audit 6 Nov, A-06): at 1280x720 the page still needed a 33px scroll (main ended at 753px).
     The tall pane is the side (the numbers, their words, the address), whose lines wrapped in its
     two-fifths; the form beside it ended ~100px higher. On a short screen the side gets 4/9 of the
     width (was 2/5): its words wrap less, and the form keeps its topics on two rows. */
  .hs .ct-grid {
    grid-template-columns: minmax(0, 5fr) minmax(340px, 4fr);
  }

  .hs .ct-grid,
  .hs .ct-side {
    gap: 12px;
  }

  .hs .ct-main .hs-panel {
    padding: 12px 14px;
  }

  .hs .ct-formpanel .hs-msg,
  .hs .ct-formpanel .hs-msg__fields {
    gap: 10px;
  }

  /* a 1280x720 laptop (audit V-53): Send stays on the first screen */
  .hs .ct-formpanel textarea.hs-msg__in {
    height: 84px;
  }

  .hs .ct-formpanel .hs-msg__hint {
    margin-top: -4px;
  }

  .hs .ct-formpanel .hs-off {
    padding: 4px 10px;
  }

  .hs .ct-call {
    padding: 6px 0;
  }

  .hs .ct-addr {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media print {
  .hs .hs-msg,
  .hs .hs-msgbox,
  .hs .hs-copy {
    display: none;
  }
}

/* v3.1 (ticket #1696, "on the phone the site looks very very messy") — "What is it about?" on a phone:
   the five topics in two even columns (they wrapped 2-1-2 at five different widths). A long topic
   wraps inside its own chip. */
@media (max-width: 699.98px) {
  .hs .hs-msg__topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hs .hs-msg__topic {
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--hs-r);
    text-align: center;
  }
}

/* 0.018 (pages2, P2-4): under 360px "Burial / Chevra Kadisha" (152px, kept whole by R16) does not fit
   half the row (140px at 320): it takes the whole row; General · Buy a plot above it, Yahrzeit / visit ·
   Other under it, two a row as before. */
@media (max-width: 359.98px) {
  .hs .hs-msg__topics .hs-msg__topic:has(input[value='burial']) {
    grid-column: 1 / -1;
  }
}
