/*
 * HAR SHALOM CEMETERY — Dedicate / Donate (/harshalom/dedicate).
 *
 * File     public/harshalom/static/dedicate.css  (served at /harshalom/static/dedicate.css)
 * Version  0.004 · 2026-11-11 · harshalom/0.018-pages2 (the count of its changelog entries; no line
 *          before 0.003)
 * Owner    lane L6 (Dedicate / Donate, audit V-13)
 * Markup   app/harshalom/dedicate/page.tsx, app/harshalom/dedicate/dedicate-parts.tsx
 * Linked   by the page itself (<link precedence="next">), after hs.css: a static file the offline
 *          worker keeps (public/harshalom/sw-harshalom.js PRECACHE). Every rule is under `.hs`.
 *
 * THREE DESIGNED VIEWS (DESIGN_V2; owner item 11):
 *   PHONE    (< 700px)    one list of cards, then the form, one column; the cards compact (icon,
 *                         title, one line, for whom); choosing a card brings the form up (dedicate.js)
 *   TABLET   (700-1199)   the cards two a row; the form under them in portrait; from 1024px (a tablet
 *                         held sideways: 1024x768, 1180x820) to 1439px the cards three a row with
 *                         the form under them (0.018); 44px targets
 *   COMPUTER (>= 1200px)  from 1440px the cards | the form side by side, the whole task on one 1440x900 screen,
 *                         hover states and focus rings; from 1800px the cards three a row and the
 *                         form a little wider (the big-screen step, wave 1)
 * The tokens are hs.css's (wave 1): --hs-fs-min (no text under 13px), --hs-tap (44px targets on
 * touch), --hs-field-max (a form's readable width). Rule 40: the page fills the screen; only the
 * form keeps a readable width.
 *
 * NO JAVASCRIPT NEEDED FOR THE LOOK: a chosen card is `:checked` (its tick, its border); the form's
 * boxes wait for a card with `:has()` (a browser without it simply shows them at once).
 * dedicate.js adds data-kind / data-linked / data-state / data-err on the form and data-error on a
 * box; nothing here depends on a class it would have to add.
 *
 * CHANGELOG (Rule 45)
 *   2026-11-11 harshalom/0.018-pages2 (0.004) — P2-3: at 1024-1439px the page no longer changes its
 *     layout when a card is picked. 0.003 showed the cards three a row until a pick, then switched to
 *     cards | form (two a row), so the card just clicked jumped away from the pointer (at 1247x1222 the
 *     third card from the top right to row 2 on the left). Now the cards stay three a row and the form
 *     opens under them (dedicate.js brings it into view when it sits low, as on a tablet held upright).
 *     From 1440px and below 1024px nothing changes.
 *   2026-11-11 harshalom/0.018-pagesB (0.003) — R10: "לעילוי נשמת" stays whole (it broke on six of seven
 *     cards at 1247); a card's two-line "what" splits evenly; at 1024-1439px, until a card is chosen,
 *     the cards have the whole width (three a row; they were 263-356px beside a 400-560px form standing
 *     empty) and "Choose one of the cards first" is one line under them; the form opens beside the
 *     cards once one is picked, as before.
 *   2026-11-02 feat/harshalom-v3-audit, lane L6 — created.
 *   2026-11-02 feat/harshalom-v3-audit, review fix F3 — "In memory of" and the Grave line wrap
 *     (one-row textareas sized to their text, .dd-in--line), so a phone shows the whole name and
 *     place (R2-10).
 */

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

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

.hs .dd-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  margin: 0;
}

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

/* English first; the Yiddish beside it, its own language, a little quieter */
.hs .dd__yi,
.hs .dd-h__yi,
.hs .dd-intro__yi,
.hs .dd-nopay__yi {
  font-family: var(--hs-serif);
}

.hs .dd__yi,
.hs .dd-intro__yi,
.hs .dd-nopay__yi {
  color: var(--hs-muted);
}

/* ── the answer to a plain form post (no JavaScript) ───────────────────── */

.hs .dd-result {
  display: grid;
  gap: 6px;
}

.hs .dd-result p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.hs .dd-result--held,
.hs .dd-result--sent {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
}

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

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

/* ── the cards ──────────────────────────────────────────────────────────── */

.hs .dd-pick {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.hs .dd-for {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hs-line);
  border-left: 3px solid var(--hs-gold);
  border-radius: var(--hs-r);
  background: var(--hs-surface);
  font-size: 15px;
}

.hs .dd-for__k {
  width: 100%;
  font-size: var(--hs-fs-sm);
  color: var(--hs-muted);
}

.hs .dd-for__he {
  font-family: var(--hs-serif);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .dd-for__en {
  font-weight: 600;
}

.hs .dd-for__at {
  font-size: var(--hs-fs-sm);
  color: var(--hs-muted);
}

.hs .dd-pick__h {
  margin: 4px 0 0;
}

.hs .dd-intro,
.hs .dd-nopay {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  max-width: var(--hs-prose-max); /* fullbleed-ok: a reading line */
}

.hs .dd-intro__yi,
.hs .dd-nopay__yi {
  display: block;
  font-size: 0.95em;
}

/* "No payment is taken on the site": plain, calm, impossible to miss */
.hs .dd-nopay {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e7d4a6;
  border-radius: var(--hs-r);
  background: #fbf5e6;
  color: #4d3a12;
}

.hs .dd-nopay__ic {
  flex: none;
  margin-top: 2px;
  color: var(--hs-gold);
}

.hs .dd-nopay__en {
  font-weight: 600;
}

.hs .dd-nopay__yi {
  color: #6a5420;
}

.hs .dd-kinds {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.hs .dd-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: var(--hs-tap);
  padding: 10px 40px 10px 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);
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background-color 0.12s ease;
}

/* The radio: there for the keyboard, a screen reader and a plain form post; the card is its look. */
.hs .dd-card__in {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.hs .dd-card:has(.dd-card__in:checked) {
  border-color: var(--hs-accent);
  background: var(--hs-accent-soft);
  box-shadow: inset 0 0 0 1px var(--hs-accent);
}

.hs .dd-card:has(.dd-card__in:focus-visible) {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

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

.hs .dd-card__in:checked ~ .dd-card__ic {
  background: var(--hs-surface);
}

.hs .dd-card__txt {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.3;
}

.hs .dd-card__t {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
}

.hs .dd-card__en {
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-accent-ink);
}

.hs .dd-card__yi {
  font-family: var(--hs-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-muted);
}

.hs .dd-card__what {
  font-size: 14px;
  color: var(--hs-ink);
  /* 0.018 (R10): a line about the gift that needs two lines splits them evenly ("Tehillim, siddurim
     and other" left "sefarim" alone on a line) */
  text-wrap: balance;
}

.hs .dd-card__what-yi {
  display: block;
  font-family: var(--hs-serif);
  font-size: var(--hs-fs-min);
  color: var(--hs-muted);
}

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

.hs .dd-card__for [lang='yi'] {
  font-family: var(--hs-serif);
  /* 0.018 (R10): "לעילוי נשמת" stays whole; at 1247 it broke after "לעילוי" on six of seven cards.
     The line breaks before it instead (after "·"). */
  white-space: nowrap;
}

/* the tick: only on the chosen card (works with no script, by :checked) */
.hs .dd-card__tick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hs-accent);
  color: #fff;
}

.hs .dd-card__in:checked ~ .dd-card__tick {
  display: inline-flex;
}

/* the general donation is for the cemetery, not one person: it closes the list across the row */
.hs .dd-card[data-k='general'] {
  grid-column: 1 / -1;
}

@media (hover: hover) {
  .hs .dd-card:hover {
    border-color: var(--hs-accent);
  }
}

/* ── the form ───────────────────────────────────────────────────────────── */

.hs .dd-fill {
  display: grid;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: calc(var(--hs-sticky-top) + 12px);
}

.hs .dd-fill__h {
  margin: 0;
}

.hs .dd-chosen {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hs .dd-chosen__k {
  display: none;
  align-items: center;
  gap: 8px;
}

.hs .dd-chosen__ic {
  display: inline-flex;
  color: var(--hs-accent);
}

.hs .dd-chosen__none {
  color: var(--hs-muted);
  font-weight: 600;
}

/* The chosen card's title: by data-kind (dedicate.js) … */
.hs .dd-form[data-kind='candle_once'] .dd-chosen__k[data-k='candle_once'],
.hs .dd-form[data-kind='candle_yahrzeit'] .dd-chosen__k[data-k='candle_yahrzeit'],
.hs .dd-form[data-kind='oil_candle'] .dd-chosen__k[data-k='oil_candle'],
.hs .dd-form[data-kind='matzeiva'] .dd-chosen__k[data-k='matzeiva'],
.hs .dd-form[data-kind='seudah'] .dd-chosen__k[data-k='seudah'],
.hs .dd-form[data-kind='sefarim'] .dd-chosen__k[data-k='sefarim'],
.hs .dd-form[data-kind='general'] .dd-chosen__k[data-k='general'] {
  display: inline-flex;
}

/* … and by the checked radio, with no script. A rule of its own: a browser that does not know
   :has() drops the whole rule it is in, and the data-kind rule above must not go with it. */
.hs .dd-form:has(.dd-card__in[value='candle_once']:checked) .dd-chosen__k[data-k='candle_once'],
.hs .dd-form:has(.dd-card__in[value='candle_yahrzeit']:checked) .dd-chosen__k[data-k='candle_yahrzeit'],
.hs .dd-form:has(.dd-card__in[value='oil_candle']:checked) .dd-chosen__k[data-k='oil_candle'],
.hs .dd-form:has(.dd-card__in[value='matzeiva']:checked) .dd-chosen__k[data-k='matzeiva'],
.hs .dd-form:has(.dd-card__in[value='seudah']:checked) .dd-chosen__k[data-k='seudah'],
.hs .dd-form:has(.dd-card__in[value='sefarim']:checked) .dd-chosen__k[data-k='sefarim'],
.hs .dd-form:has(.dd-card__in[value='general']:checked) .dd-chosen__k[data-k='general'] {
  display: inline-flex;
}

.hs .dd-form:has(.dd-card__in:checked) .dd-chosen__none {
  display: none;
}

.hs .dd-form[data-kind='candle_once'] .dd-chosen__none,
.hs .dd-form[data-kind='candle_yahrzeit'] .dd-chosen__none,
.hs .dd-form[data-kind='oil_candle'] .dd-chosen__none,
.hs .dd-form[data-kind='matzeiva'] .dd-chosen__none,
.hs .dd-form[data-kind='seudah'] .dd-chosen__none,
.hs .dd-form[data-kind='sefarim'] .dd-chosen__none,
.hs .dd-form[data-kind='general'] .dd-chosen__none {
  display: none;
}

/* The boxes wait for a card (a browser without :has shows them at once: nothing is lost). */
.hs .dd-form:not(:has(.dd-card__in:checked)) .dd-fields {
  display: none;
}

.hs .dd-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
  container: dd-fields / inline-size;
}

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

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

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

.hs .dd-lab .dd__yi {
  font-weight: 600;
}

.hs .dd-hint {
  margin: 0;
  font-size: var(--hs-fs-min);
  line-height: 1.4;
  color: var(--hs-muted);
}

.hs .dd-hint .dd__yi {
  display: block;
}

.hs .dd-in {
  max-width: var(--hs-field-max);
}

.hs textarea.dd-in {
  min-height: 76px;
  resize: vertical;
}

/* v3 review (R2-10): "In memory of" and the Grave line — one line that wraps, never cut at the
   edge. A one-row textarea as tall as its text (field-sizing; static/js/dedicate.js sizes it where
   that is missing), the height of the other boxes when the text is one line. */
.hs textarea.dd-in.dd-in--line {
  min-height: 44px;
  padding-block: 11px;
  overflow: hidden;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  field-sizing: content;
}

@media (min-width: 1200px) and (pointer: fine) {
  .hs textarea.dd-in.dd-in--line {
    min-height: 42px;
    padding-block: 10px;
  }
}

/* The grave the form is linked to: read-only, quiet; not drawn while nothing is linked. */
.hs .dd-grave {
  border-style: dashed;
  background: var(--hs-bg);
  color: var(--hs-muted);
  font-size: 15px;
}

.hs .dd-form[data-linked='0'] .dd-f--grave {
  display: none;
}

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

@container dd-fields (min-width: 420px) {
  .hs .dd-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* "Show this on the grave": only while the form is linked to a grave; "the family agrees" with it */
.hs .dd-showbox {
  display: grid;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-r);
  background: var(--hs-bg);
}

.hs .dd-form[data-linked='0'] .dd-showbox {
  display: none;
}

.hs .dd-showbox:not(:has(.dd-show__in:checked)) .dd-consent {
  display: none;
}

.hs .dd-check__l {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--hs-tap);
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

.hs .dd-check__in {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--hs-accent);
}

.hs .dd-check__in:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

.hs .dd-check__l .dd__yi {
  display: block;
}

/* a box's error line: drawn by the server, shown when the box's data-error names it */
.hs .dd-errs {
  display: contents;
}

.hs .dd-err {
  display: none;
  font-size: var(--hs-fs-sm);
  font-weight: 600;
  color: var(--hs-red);
}

.hs .dd-f[data-error='required'] .dd-err[data-code='required'],
.hs .dd-f[data-error='long'] .dd-err[data-code='long'],
.hs .dd-f[data-error='bad'] .dd-err[data-code='bad'],
.hs .dd-f[data-error='phone'] .dd-err[data-code='phone'],
.hs .dd-f[data-error='email'] .dd-err[data-code='email'],
.hs .dd-f[data-error='reach'] .dd-err[data-code='reach'],
.hs .dd-f[data-error='choose'] .dd-err[data-code='choose'],
.hs .dd-f[data-error='nograve'] .dd-err[data-code='nograve'],
.hs .dd-f[data-error='consent'] .dd-err[data-code='consent'] {
  display: block;
}

.hs .dd-f[data-error] .dd-in {
  border-color: var(--hs-red);
  background: var(--hs-red-soft);
}

.hs .dd-kinds[data-error] .dd-card {
  border-color: #efc7c3;
}

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

.hs .dd-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 .dd-form[data-err='invalid'] .dd-ferr[data-code='invalid'],
.hs .dd-form[data-err='busy'] .dd-ferr[data-code='busy'],
.hs .dd-form[data-err='big'] .dd-ferr[data-code='big'],
.hs .dd-form[data-err='retry'] .dd-ferr[data-code='retry'],
.hs .dd-form[data-err='down'] .dd-ferr[data-code='down'],
.hs .dd-form[data-err='store'] .dd-ferr[data-code='store'],
.hs .dd-form[data-err='grave'] .dd-ferr[data-code='grave'],
.hs .dd-form[data-err='closed'] .dd-ferr[data-code='closed'],
.hs .dd-form[data-err='offline'] .dd-ferr[data-code='offline'],
.hs .dd-form[data-err='broke'] .dd-ferr[data-code='broke'] {
  display: block;
}

/* Send, and the calm line beside it (lane L4's tone: amber, one line, the office's number) */
.hs .dd-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

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

.hs .dd-saved__ic {
  flex: none;
  margin-top: 2px;
  color: var(--hs-gold);
}

.hs .dd-saved__yi {
  display: block;
  font-family: var(--hs-serif);
  color: #6a5420;
}

.hs .dd-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-weight: 700;
  color: var(--hs-green);
  text-decoration: none;
  white-space: nowrap;
}

.hs .dd-call:hover {
  text-decoration: underline;
}

.hs .dd-send {
  width: 100%;
}

.hs .dd-send .dd-send__yi {
  color: inherit;
  opacity: 0.9;
  font-family: var(--hs-serif);
}

.hs .dd-send__busy {
  display: none;
}

.hs .dd-form[data-state='sending'] .dd-send__idle {
  display: none;
}

.hs .dd-form[data-state='sending'] .dd-send__busy {
  display: inline;
}

.hs .dd-form[data-state='sending'] .dd-send {
  cursor: progress;
}

@container dd-fields (min-width: 520px) {
  .hs .dd-actions {
    flex-direction: row;
    align-items: center;
  }

  .hs .dd-actions > .dd-saved {
    flex: 1 1 auto;
  }

  .hs .dd-actions > .dd-send {
    flex: none;
    width: auto;
    min-width: 200px;
  }
}

/* the answer: drawn three ways, one shown; the boxes and the cards step aside */
.hs .dd-done,
.hs .dd-out {
  display: none;
}

.hs .dd-form[data-state='held'] .dd-fields,
.hs .dd-form[data-state='sent'] .dd-fields,
.hs .dd-form[data-state='failed'] .dd-fields {
  display: none;
}

.hs .dd-form[data-state='held'] .dd-done,
.hs .dd-form[data-state='sent'] .dd-done,
.hs .dd-form[data-state='failed'] .dd-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 .dd-form[data-state='sent'] .dd-done {
  background: var(--hs-green-soft);
}

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

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

.hs .dd-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 .dd-out__p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

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

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

.hs .dd-ref {
  width: 22ch;
  min-height: 32px;
  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 .dd-again {
  justify-self: start;
}

/* not open yet (the table waits): calm, the office's number */
.hs .dd-closed {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e7d4a6;
  border-radius: var(--hs-r);
  background: #fbf5e6;
  color: #4d3a12;
}

.hs .dd-closed__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

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

.hs .dd-closed__p--yi {
  font-family: var(--hs-serif);
  color: #6a5420;
}

.hs .dd-closed .dd-call {
  justify-self: start;
  min-height: var(--hs-tap);
}

/* ── PHONE (< 700px): compact cards, one list, then the form ────────────── */

@media (max-width: 699.98px) {
  .hs .dd-card {
    gap: 10px;
    padding: 8px 38px 8px 10px;
    box-shadow: none;
  }

  .hs .dd-card__ic {
    width: 34px;
    height: 34px;
  }

  .hs .dd-card__en {
    font-size: 15px;
  }

  .hs .dd-card__yi {
    font-size: 14px;
  }

  /* one line about it is enough on a phone; the Yiddish of the title stays */
  .hs .dd-card__what-yi {
    display: none;
  }

  .hs .dd-fill {
    padding: 14px 12px;
  }

  .hs .dd-saved .dd-call {
    min-height: var(--hs-tap);
  }
}

/* A phone held sideways (844x390): the boxes two a row where they fit; the page scrolls. */
@media (min-width: 700px) and (max-height: 500px) {
  .hs .dd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── TABLET (700-1199px): the cards two a row; the form under them ──────── */

@media (min-width: 700px) {
  .hs .dd-main {
    gap: 16px;
    padding: 16px max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
  }

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

  .hs .dd-card {
    min-height: 84px;
  }

  .hs .dd-fill {
    padding: 18px 20px;
  }
}

/* A tablet held sideways (1024x768, 1180x820): the form BESIDE the cards. */
@media (min-width: 1024px) {
  .hs .dd-form {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr);
    gap: 20px;
  }
}

/* 0.018 (R10): 1024-1439px, the cards have the whole width (three a row) and "Choose one of the cards
   first" is one line under them. Beside the empty form the cards were 263-356px at 1024-1366 (two a
   row), their lines squeezed, while the form stood empty at 400-560px. From 1440px the cards beside the
   form are wide enough, and from 1800px three a row already: as before. Only where the form is open
   (data-open='1'): a form that is not open yet says so beside the cards, as before.
   0.018 (pages2, P2-3): and the same once a card is chosen: the form opens UNDER the cards (dedicate.js
   brings it into view when it sits low). R10 switched to cards | form at the pick, so the page moved
   under the pointer and the card just clicked jumped away (1247x1222: from the top right to row 2 on
   the left). */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .hs .dd-form[data-open='1'] {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs .dd-form[data-open='1'] .dd-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── COMPUTER (>= 1200px): cards | form, one screen ─────────────────────── */

@media (min-width: 1200px) {
  .hs .dd-main {
    padding: 16px max(32px, env(safe-area-inset-right)) 24px max(32px, env(safe-area-inset-left));
  }

  .hs .dd-form {
    grid-template-columns: minmax(0, 1.3fr) minmax(400px, 1fr);
    gap: 24px;
  }

  .hs .dd-pick {
    gap: 8px;
  }

  .hs .dd-card {
    min-height: 76px;
    padding: 10px 40px 10px 12px;
  }

  .hs .dd-fill {
    gap: 10px;
    padding: 16px 20px;
  }

  .hs .dd-fields {
    gap: 10px;
  }

  .hs .dd-check__l {
    min-height: 36px;
    padding: 6px 0;
  }

  .hs textarea.dd-in {
    min-height: 64px;
  }
}

/* a big touch screen keeps 44px targets */
@media (min-width: 1200px) and (pointer: coarse) {
  .hs .dd-check__l {
    min-height: var(--hs-tap);
  }
}

/* a short laptop (1366x768, 1280x720): slimmer cards so the task stays on one screen */
@media (min-width: 1200px) and (max-height: 800px) {
  .hs .dd-card {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hs .dd-card__what-yi {
    display: none;
  }

  .hs .dd-intro__yi {
    display: inline;
  }
}

/* ── A BIG SCREEN (from 1800px): three cards a row, a wider form ─────────── */

@media (min-width: 1800px) {
  .hs .dd-main {
    padding: 24px max(56px, env(safe-area-inset-right)) 32px max(56px, env(safe-area-inset-left));
  }

  .hs .dd-form {
    grid-template-columns: minmax(0, 1.6fr) minmax(480px, 1fr);
    gap: 32px;
  }

  .hs .dd-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .hs .dd-card__en {
    font-size: 18px;
  }

  .hs .dd-card__yi {
    font-size: 17px;
  }

  .hs .dd-card__what,
  .hs .dd-intro,
  .hs .dd-nopay {
    font-size: 16px;
  }

  .hs .dd-card__ic {
    width: 46px;
    height: 46px;
  }
}

@media (min-width: 2400px) {
  .hs .dd-form {
    grid-template-columns: minmax(0, 1.8fr) minmax(560px, 1fr);
  }
}

/* ── print: the cards and the words; no form ────────────────────────────── */

@media print {
  .hs .dd-fill,
  .hs .dd-noscript {
    display: none;
  }

  .hs .dd-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs .dd-card {
    transition: none;
  }
}
