/* ==========================================================================
   Ichud Tosh — stylesheet
   Bilingual (English LTR / Yiddish RTL). Direction is driven by
   <html dir="rtl|ltr" lang="yi|en">, so all spacing uses CSS logical
   properties and flips automatically. No RTL-specific overrides needed.
   ========================================================================== */

:root{
  --ink:        #1c110c;
  --ink-2:      #2e1e14;
  --ink-3:      #43301f;
  --brass:      #a88b79;
  --brass-2:    #c7ae9f;
  --brass-soft: #efe3da;
  --cream:      #f5efe8;
  --paper:      #fffcf8;
  --line:       #e7dcd2;
  --line-2:     #d6c6b8;
  --text:       #2b211a;
  --muted:      #7c6c60;
  --ok:         #1d7a4c;
  --err:        #b3261e;

  --radius:   14px;
  --radius-s: 9px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(28,17,12,.06), 0 2px 8px rgba(28,17,12,.05);
  --shadow-m: 0 2px 6px rgba(28,17,12,.07), 0 12px 30px rgba(28,17,12,.09);
  --shadow-l: 0 10px 40px rgba(28,17,12,.16);

  --wrap: 1180px;
  --hdr: 74px;

  --font-en-display: "Frank Ruhl Libre", "Iowan Old Style", Georgia, serif;
  --font-en-body:    "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-yi-display: "Frank Ruhl Libre", "Narkisim", "David Libre", serif;
  --font-yi-body:    "Heebo", "Arial Hebrew", "Segoe UI", sans-serif;

  --font-display: var(--font-en-display);
  --font-body:    var(--font-en-body);
}

html[lang="yi"]{
  --font-display: var(--font-yi-display);
  --font-body:    var(--font-yi-body);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.7;
  color:var(--text);
  background:var(--cream);
  overflow-wrap:break-word;
}
html[lang="yi"] body{ font-size:18px; line-height:1.85; }

img{ max-width:100%; display:block; }
a{ color:var(--ink-2); text-decoration:none; }
a:hover{ color:var(--brass); }
button{ font:inherit; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  line-height:1.25;
  margin:0 0 .5em;
  font-weight:700;
}
h1{ font-size:clamp(2rem,4.2vw,3.1rem); letter-spacing:-.01em; }
h2{ font-size:clamp(1.5rem,2.8vw,2.15rem); }
h3{ font-size:1.22rem; }
h4{ font-size:1.03rem; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:22px; }
.section{ padding-block:64px; }
.section--tight{ padding-block:40px; }
.center{ text-align:center; }
.muted{ color:var(--muted); }
.small{ font-size:.88rem; }
.hidden{ display:none !important; }

/* text still to be supplied by the office */
.todo{
  display:inline-block; font-style:italic; color:#8f7360;
  background:#f9f1e9; border:1px dashed var(--line-2);
  border-radius:6px; padding:.2em .6em; font-size:.9rem;
}

/* ---------- ornament rule ---------- */
.rule{ display:flex; align-items:center; justify-content:center; gap:12px; margin:14px 0 26px; }
.rule::before,.rule::after{ content:""; height:1px; width:58px; background:linear-gradient(90deg,transparent,var(--line-2)); }
.rule span{ width:7px; height:7px; background:var(--brass); transform:rotate(45deg); }

.eyebrow{
  font-size:.76rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--brass); font-weight:600; margin-bottom:.55em;
}
html[lang="yi"] .eyebrow{ letter-spacing:.04em; text-transform:none; font-size:.9rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  padding:.72em 1.5em; border-radius:100px; border:1px solid transparent;
  font-weight:600; font-size:.97rem; cursor:pointer; text-align:center;
  transition:transform .15s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  line-height:1.3;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn--primary{ background:var(--ink); color:#fff; box-shadow:var(--shadow-s); }
.btn--primary:hover{ background:var(--ink-2); color:#fff; box-shadow:var(--shadow-m); }
.btn--gold{ background:linear-gradient(180deg,var(--brass-2),var(--brass)); color:#fff; box-shadow:var(--shadow-s); }
.btn--gold:hover{ color:#fff; box-shadow:var(--shadow-m); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-2); }
.btn--ghost:hover{ background:#fff; border-color:var(--brass); color:var(--ink); }
.btn--light{ background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.4); backdrop-filter:blur(4px); }
.btn--light:hover{ background:rgba(255,255,255,.24); color:#fff; }
.btn--sm{ padding:.5em 1.05em; font-size:.87rem; }
/* the other end of --sm: the one button on a page that is the whole point of
   it — order the matzos, give the gift, buy the album */
.btn--lg{ padding:.9em 2em; font-size:1.06rem; }
.btn--block{ width:100%; }
.btn[disabled]{ opacity:.5; pointer-events:none; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr{
  position:sticky; top:0; z-index:60;
  background:rgba(255,252,248,.93);
  backdrop-filter:saturate(1.4) blur(10px);
  border-block-end:1px solid var(--line);
}
.hdr__bar{ display:flex; align-items:center; gap:18px; height:var(--hdr); }

.brand{ display:flex; align-items:center; gap:11px; flex:none; }
.brand__mark{
  width:42px; height:42px; border-radius:11px; flex:none;
  background:linear-gradient(155deg,var(--ink-3),var(--ink));
  display:grid; place-items:center; color:var(--brass-2);
  font-family:var(--font-yi-display); font-size:1.28rem; font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(199,174,159,.45);
}
.brand__txt{ display:flex; flex-direction:column; line-height:1.15; }
.brand__name{ font-family:var(--font-display); font-weight:700; font-size:1.12rem; color:var(--ink); }
.brand__sub{ font-size:.7rem; color:var(--muted); letter-spacing:.07em; text-transform:uppercase; }
html[lang="yi"] .brand__sub{ letter-spacing:0; text-transform:none; font-size:.78rem; }

.nav{ display:flex; align-items:center; gap:2px; margin-inline-start:auto; }
.nav__link{
  padding:.55em .85em; border-radius:8px; font-size:.95rem; font-weight:500;
  color:var(--ink); white-space:nowrap; background:none; border:0; cursor:pointer;
  display:inline-flex; align-items:center; gap:.35em;
}
.nav__link:hover,.nav__link.is-active{ background:var(--brass-soft); color:var(--ink); }
.nav__link .caret{ width:9px; height:9px; border-inline-end:1.8px solid currentColor; border-block-end:1.8px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.nav__item.is-open .caret{ transform:rotate(225deg) translateY(-2px); }
.nav__item{ position:relative; }

.hdr__tools{ display:flex; align-items:center; gap:8px; flex:none; }

.langtog{ display:flex; border:1px solid var(--line-2); border-radius:100px; overflow:hidden; background:#fff; }
.langtog button{
  border:0; background:none; padding:.4em .8em; font-size:.84rem; font-weight:600;
  color:var(--muted); cursor:pointer;
}
.langtog button.is-on{ background:var(--ink); color:#fff; }

.cartbtn{ position:relative; border:1px solid var(--line-2); background:#fff; border-radius:100px; padding:.45em .9em; cursor:pointer; font-size:.88rem; font-weight:600; color:var(--ink); }
.cartbtn__n{
  position:absolute; inset-block-start:-7px; inset-inline-end:-7px;
  min-width:20px; height:20px; border-radius:100px; background:var(--brass);
  color:#fff; font-size:.7rem; display:grid; place-items:center; padding:0 5px;
}

.burger{ display:none; border:1px solid var(--line-2); background:#fff; border-radius:9px; padding:.5em .7em; cursor:pointer; }
.burger span{ display:block; width:19px; height:2px; background:var(--ink); border-radius:2px; }
.burger span+span{ margin-block-start:4px; }

/* ---------- mega menu ---------- */
/* fixed + physically centred so it never runs off the edge in either
   direction — the nav item sits near one side of the bar */
.mega{
  position:fixed; top:calc(var(--hdr) + 8px); left:50%; transform:translateX(-50%);
  width:min(94vw,940px); max-height:calc(100vh - var(--hdr) - 24px); overflow-y:auto;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-l);
  box-shadow:var(--shadow-l); padding:22px; z-index:70;
  display:none;
}
.nav__item.is-open .mega{ display:block; }
.mega__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px 20px; }
.mega__act{ padding:9px 11px; border-radius:11px; }
.mega__act:hover{ background:var(--cream); }
.mega__act > a{ display:flex; align-items:center; gap:9px; font-weight:600; color:var(--ink); font-size:.95rem; }
.mega__act ul{ list-style:none; margin:5px 0 0; padding-inline-start:36px; }
.mega__act ul a{ font-size:.855rem; color:var(--muted); display:block; padding:2px 0; }
.mega__act ul a:hover{ color:var(--brass); }
.mega__foot{ margin-block-start:16px; padding-block-start:14px; border-block-start:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }

.emblem{
  width:26px; height:26px; border-radius:7px; flex:none; display:grid; place-items:center;
  background:linear-gradient(155deg,#fff,var(--brass-soft));
  border:1px solid var(--line-2); color:var(--ink);
  font-family:var(--font-yi-display); font-size:.72rem; font-weight:700; line-height:1;
}
.emblem--lg{ width:56px; height:56px; border-radius:14px; font-size:1.32rem; }
.emblem--xl{ width:74px; height:74px; border-radius:18px; font-size:1.7rem; }

/* ---------- mobile drawer ---------- */
.drawer{ position:fixed; inset:0; z-index:100; display:none; }
.drawer.is-open{ display:block; }
.drawer__scrim{ position:absolute; inset:0; background:rgba(28,17,12,.45); }
.drawer__panel{
  position:absolute; inset-block:0; inset-inline-end:0; width:min(88vw,390px);
  background:var(--paper); overflow-y:auto; padding:18px; box-shadow:var(--shadow-l);
}
.drawer__head{ display:flex; align-items:center; justify-content:space-between; margin-block-end:14px; }
.drawer__x{ border:1px solid var(--line-2); background:#fff; border-radius:9px; width:36px; height:36px; cursor:pointer; font-size:1.1rem; line-height:1; }
.drawer a.drawer__link{ display:block; padding:.6em .5em; border-block-end:1px solid var(--line); font-weight:600; color:var(--ink); }
.drawer details{ border-block-end:1px solid var(--line); }
.drawer summary{ padding:.6em .5em; font-weight:600; cursor:pointer; list-style:none; color:var(--ink); }
.drawer summary::-webkit-details-marker{ display:none; }
.drawer details ul{ list-style:none; margin:0 0 .6em; padding-inline-start:14px; }
.drawer details ul a{ display:block; padding:.34em 0; font-size:.92rem; color:var(--muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:
    radial-gradient(1100px 460px at 78% -10%, rgba(199,174,159,.34), transparent 62%),
    linear-gradient(160deg,var(--ink-3) 0%, var(--ink) 55%, #150c07 100%);
}
.hero::after{
  content:""; position:absolute; inset:0; opacity:.16; pointer-events:none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.5) 0 1px, transparent 1px 22px);
  mask-image:radial-gradient(70% 80% at 50% 40%, #000, transparent 78%);
}
.hero__in{ position:relative; z-index:1; padding-block:88px 78px; max-width:750px; }
.hero h1{ color:#fff; margin-bottom:.28em; }
.hero__sub{ font-size:clamp(1.03rem,1.7vw,1.24rem); color:#ece3da; max-width:610px; margin-bottom:1.8em; }
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; }
.hero__crest{
  position:absolute; z-index:0; inset-block-start:50%; inset-inline-end:5%;
  transform:translateY(-50%);
  width:270px; height:270px; border-radius:50%;
  border:1px solid rgba(199,174,159,.4);
  display:grid; place-items:center; color:rgba(199,174,159,.5);
  font-family:var(--font-yi-display); font-size:4.6rem; font-weight:700;
}
@media(max-width:900px){ .hero__crest{ display:none; } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid{ display:grid; gap:18px; }
.grid--3{ grid-template-columns:repeat(auto-fill,minmax(285px,1fr)); }
.grid--4{ grid-template-columns:repeat(auto-fill,minmax(225px,1fr)); }
.grid--2{ grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); }

.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow-s);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex; flex-direction:column; gap:10px;
}
a.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-m); border-color:var(--line-2); }
.card__head{ display:flex; align-items:center; gap:13px; }
.card h3{ margin:0; }
.card__desc{ color:var(--muted); font-size:.93rem; margin:0; flex:1; }
.card__more{ font-size:.87rem; font-weight:600; color:var(--brass); }

.panel{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow-s);
}
.panel + .panel{ margin-block-start:18px; }

.stripe{
  background:linear-gradient(160deg,var(--ink-3),var(--ink)); color:#fff;
  border-radius:var(--radius-l); padding:36px; position:relative; overflow:hidden;
}
.stripe h2{ color:#fff; }
.stripe p{ color:#e7dcd2; }
.stripe--cream{ background:linear-gradient(160deg,#fff,var(--brass-soft)); color:var(--text); border:1px solid var(--line-2); }
.stripe--cream h2{ color:var(--ink); }
.stripe--cream p{ color:var(--muted); }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media(max-width:820px){ .split{ grid-template-columns:1fr; } }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.phead{
  background:linear-gradient(160deg,var(--ink-3),var(--ink)); color:#fff;
  padding-block:44px 40px; position:relative; overflow:hidden;
}
.phead h1{ color:#fff; margin-bottom:.3em; }
.phead__sub{ color:#e4d8cd; max-width:660px; margin:0; }
.phead__row{ display:flex; align-items:center; gap:16px; }
.phead .emblem{ background:rgba(255,255,255,.1); border-color:rgba(199,174,159,.5); color:var(--brass-2); }

.crumbs{ font-size:.85rem; color:#cbb9ab; margin-bottom:.9em; }
.crumbs a{ color:#cbb9ab; }
.crumbs a:hover{ color:#fff; }
.crumbs span{ margin-inline:.45em; opacity:.6; }
/* The pale sepia above is for the dark masthead, which is the only ground the
   reference build ever puts crumbs on. Ours also sit at the top of a cream
   section — the product page and an opened email — where that colour is all
   but gone. There they take the page's own muted ink instead. */
.section .crumbs,
.section .crumbs a{ color:var(--muted); }
.section .crumbs a:hover{ color:var(--text); }

/* ---------- tabs ---------- */
.tabs{ display:flex; gap:6px; flex-wrap:wrap; background:var(--paper); border:1px solid var(--line); border-radius:100px; padding:5px; box-shadow:var(--shadow-s); }
/* Server-rendered tabs are anchors — every tab is its own URL, so it can be
   linked, bookmarked and shared. Styled exactly like the reference's buttons. */
.tabs button,
.tabs a{
  display:inline-block; text-decoration:none;
  border:0; background:none; padding:.6em 1.25em; border-radius:100px; cursor:pointer;
  font-weight:600; font-size:.94rem; color:var(--muted); white-space:nowrap;
}
.tabs button:hover,
.tabs a:hover{ color:var(--ink); }
.tabs button.is-on,
.tabs a.is-on{ background:var(--ink); color:#fff; }
.tabbar{ margin-block:-26px 26px; position:relative; z-index:2; display:flex; }
@media(max-width:640px){
  .tabs{ border-radius:var(--radius); width:100%; }
  .tabs button,
  .tabs a{ flex:1 1 auto; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form{ display:grid; gap:16px; }
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:640px){ .form__row{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field > label{ font-size:.87rem; font-weight:600; color:var(--ink); }
.field .req{ color:var(--err); }
.field .hint{ font-size:.8rem; color:var(--muted); }
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=date],select,textarea{
  width:100%; padding:.7em .9em; border:1px solid var(--line-2); border-radius:var(--radius-s);
  background:#fff; color:var(--text); font:inherit; font-size:.96rem;
  transition:border-color .15s, box-shadow .15s;
}
input:focus,select:focus,textarea:focus{
  outline:0; border-color:var(--brass); box-shadow:0 0 0 3px rgba(199,174,159,.18);
}
textarea{ min-height:120px; resize:vertical; }
select{ appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-inline-end:2.2em; }
html[dir=ltr] select{ background-position:calc(100% - 17px) calc(1em + 3px),calc(100% - 12px) calc(1em + 3px); }
html[dir=rtl] select{ background-position:17px calc(1em + 3px),12px calc(1em + 3px); }

.checks{ display:grid; gap:9px; }
.check{ display:flex; align-items:flex-start; gap:10px; padding:.7em .9em; border:1px solid var(--line-2); border-radius:var(--radius-s); background:#fff; cursor:pointer; }
.check:hover{ border-color:var(--brass); }
.check input{ margin-block-start:.3em; accent-color:var(--ink); width:17px; height:17px; flex:none; }
.check span{ font-size:.95rem; }
/* the article's figure sits apart from its name, with the row's own
   spacing between them rather than a dash */
.check span{ display:flex; gap:.5em; justify-content:space-between; flex:1; }
.artamt{ white-space:nowrap; color:var(--ink); }

.formmsg{ padding:.9em 1.1em; border-radius:var(--radius-s); font-size:.94rem; }
.formmsg--ok{ background:#eaf6ef; border:1px solid #b9e0cb; color:var(--ok); }
.formmsg--err{ background:#fdecea; border:1px solid #f3c3bf; color:var(--err); }

/* ==========================================================================
   Reader (gilyon / blettel / email — always inside the page)
   ========================================================================== */
.reader{
  border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden;
  background:#fff; box-shadow:var(--shadow-m);
}
.reader__bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:.7em 1em; background:var(--ink); color:#fff; font-size:.9rem; font-weight:600;
}
.reader__bar .muted{ color:#cbb9ab; font-weight:400; }
.reader__frame{ width:100%; height:min(78vh,900px); border:0; background:var(--cream); display:block; }
.reader__ph{
  height:min(66vh,760px); display:grid; place-items:center; text-align:center; padding:30px;
  background:
    repeating-linear-gradient(0deg,rgba(28,17,12,.03) 0 1px,transparent 1px 28px),
    linear-gradient(180deg,#fff,var(--cream));
}
.reader__ph .emblem{ margin:0 auto 14px; }

.issuecard{ display:flex; flex-direction:column; gap:8px; }
.issuecard__thumb{
  aspect-ratio:3/4; border-radius:var(--radius-s); border:1px solid var(--line-2);
  background:
    repeating-linear-gradient(0deg,rgba(28,17,12,.045) 0 1px,transparent 1px 13px),
    linear-gradient(170deg,#fff,var(--brass-soft));
  display:grid; place-items:center; color:var(--ink); position:relative; overflow:hidden;
}
.issuecard__no{ font-family:var(--font-display); font-size:1.5rem; font-weight:700; }
.issuecard__t{ font-weight:600; font-size:.95rem; margin:0; }
.issuecard__d{ font-size:.83rem; color:var(--muted); }

/* ==========================================================================
   Tables / directories
   ========================================================================== */
.tablewrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); }
table.data{ width:100%; border-collapse:collapse; font-size:.94rem; }
table.data th,table.data td{ padding:.75em 1em; text-align:start; border-block-end:1px solid var(--line); }
table.data th{ background:var(--cream); font-weight:600; color:var(--ink); font-size:.85rem; letter-spacing:.03em; position:sticky; inset-block-start:0; }
table.data tr:last-child td{ border-block-end:0; }
table.data tbody tr:hover{ background:#fdfaf6; }

.pill{ display:inline-block; padding:.2em .75em; border-radius:100px; font-size:.79rem; font-weight:600; }
.pill--open{ background:#eaf6ef; color:var(--ok); }
.pill--taken{ background:#f4efe9; color:var(--muted); }
.pill--gold{ background:var(--brass-soft); color:#7a5f4c; }

.progress{ height:9px; border-radius:100px; background:var(--line); overflow:hidden; }
.progress i{ display:block; height:100%; background:linear-gradient(90deg,var(--brass-2),var(--brass)); }

.toolbar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-block-end:16px; }
.toolbar input[type=text],.toolbar select{ width:auto; min-width:190px; flex:1 1 190px; }

/* protected lists — view only */
.protected{ user-select:none; -webkit-user-select:none; }
.protected img{ pointer-events:none; }
.lockbar{
  display:flex; align-items:center; gap:9px; font-size:.86rem; color:#7a5f4c;
  background:var(--brass-soft); border:1px solid var(--line-2);
  border-radius:var(--radius-s); padding:.65em 1em; margin-block-end:14px;
}
@media print{
  .protected, .no-print{ display:none !important; }
  body::after{ content:"Ichud Tosh — printing is disabled."; font-size:20px; }
}

/* ==========================================================================
   Phone list
   ========================================================================== */
.phones{ display:grid; gap:10px; }
.phones a{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:.95em 1.1em; border:1px solid var(--line-2); border-radius:var(--radius-s);
  background:#fff; font-weight:600; color:var(--ink);
}
.phones a:hover{ border-color:var(--brass); background:#fffcf7; }
.phones .num{ font-family:var(--font-en-body); letter-spacing:.02em; direction:ltr; unicode-bidi:embed; color:var(--ink-2); }
.phones .lbl{ font-weight:500; color:var(--muted); font-size:.92rem; }

/* ==========================================================================
   Donate
   ========================================================================== */
.tier{
  display:flex; gap:14px; align-items:flex-start; padding:18px;
  border:1.5px solid var(--line-2); border-radius:var(--radius); background:#fff; cursor:pointer;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.tier:hover{ border-color:var(--brass-2); }
.tier.is-on{ border-color:var(--brass); background:#fffcf7; box-shadow:0 0 0 3px rgba(199,174,159,.16); }
.tier input{ margin-block-start:.35em; accent-color:var(--brass); width:18px; height:18px; flex:none; }
.tier__b{ flex:1; }
.tier__n{ font-weight:700; color:var(--ink); font-family:var(--font-display); font-size:1.06rem; }
.tier__d{ font-size:.9rem; color:var(--muted); margin:.25em 0 0; }
.tier__p{ font-size:.83rem; color:#7a5f4c; margin:.4em 0 0; }
.tier__amt{ font-family:var(--font-display); font-size:1.32rem; font-weight:700; color:var(--brass); white-space:nowrap; }
.tier__extra{ margin-block-start:14px; padding-block-start:14px; border-block-start:1px dashed var(--line-2); display:grid; gap:12px; }

.summary{ position:sticky; inset-block-start:calc(var(--hdr) + 18px); }
.summary__row{ display:flex; justify-content:space-between; gap:12px; padding:.5em 0; font-size:.94rem; border-block-end:1px solid var(--line); }
.summary__row:last-of-type{ border:0; }
.summary__total{ display:flex; justify-content:space-between; gap:12px; font-family:var(--font-display); font-size:1.3rem; font-weight:700; color:var(--ink); padding-block-start:.5em; border-block-start:2px solid var(--ink); }

/* ==========================================================================
   Store
   ========================================================================== */
.shoplay{ display:grid; grid-template-columns:230px 1fr; gap:26px; align-items:start; }
@media(max-width:860px){ .shoplay{ grid-template-columns:1fr; } }
.catlist{ list-style:none; margin:0; padding:0; display:grid; gap:3px; }
/* a shelf is its own URL here, so the categories are links; the rules cover
   both so the markup can be either */
.catlist button, .catlist a{
  display:block; text-decoration:none;
  width:100%; text-align:start; border:0; background:none; padding:.62em .9em;
  border-radius:9px; cursor:pointer; font-size:.95rem; font-weight:500; color:var(--ink);
}
.catlist button:hover, .catlist a:hover{ background:var(--cream); }
.catlist button.is-on, .catlist a.is-on{ background:var(--ink); color:#fff; font-weight:600; }

.prod{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-s); display:flex; flex-direction:column; transition:transform .18s, box-shadow .18s; }
.prod:hover{ transform:translateY(-3px); box-shadow:var(--shadow-m); }
.prod__img{
  aspect-ratio:1/1; display:grid; place-items:center; position:relative;
  background:linear-gradient(150deg,var(--ink-3),var(--ink));
  color:var(--brass-2); font-family:var(--font-yi-display); font-size:2rem; font-weight:700;
}
.prod__b{ padding:15px; display:flex; flex-direction:column; gap:7px; flex:1; }
.prod__t{ font-weight:600; font-size:.98rem; color:var(--ink); margin:0; line-height:1.4; }
.prod__c{ font-size:.79rem; color:var(--brass); font-weight:600; }
.prod__f{ margin-block-start:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-block-start:8px; }
.prod__p{ font-family:var(--font-display); font-size:1.15rem; font-weight:700; color:var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr{ background:var(--ink); color:#ded0c4; padding-block:52px 26px; margin-block-start:auto; }
.ftr h4{ color:#fff; font-size:.98rem; margin-bottom:.9em; }
.ftr a{ color:#ded0c4; }
.ftr a:hover{ color:var(--brass-2); }
.ftr__grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.4fr; gap:34px; }
@media(max-width:860px){ .ftr__grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:560px){ .ftr__grid{ grid-template-columns:1fr; } }
.ftr ul{ list-style:none; margin:0; padding:0; display:grid; gap:.42em; font-size:.9rem; }
.ftr__brand{ display:flex; align-items:center; gap:11px; margin-bottom:1em; }
.ftr__brand .brand__mark{ background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(199,174,159,.5); }
.ftr__brand .brand__name{ color:#fff; }
.ftr__contact{ font-size:.9rem; display:grid; gap:.35em; }
.ftr__contact .num{ direction:ltr; unicode-bidi:embed; display:inline-block; }
.ftr__sub{ display:flex; gap:8px; margin-block-start:.8em; }
.ftr__sub input{ flex:1; background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.2); color:#fff; }
.ftr__sub input::placeholder{ color:#b09c8c; }
.ftr__btm{ margin-block-start:34px; padding-block-start:18px; border-block-start:1px solid rgba(255,255,255,.12); font-size:.82rem; color:#b09c8c; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* ==========================================================================
   Misc
   ========================================================================== */
.empty{ text-align:center; padding:52px 20px; color:var(--muted); }
.empty .emblem{ margin:0 auto 14px; }

.toast{
  position:fixed; inset-block-end:22px; inset-inline-start:50%; transform:translateX(-50%);
  background:var(--ink); color:#fff; padding:.8em 1.4em; border-radius:100px;
  box-shadow:var(--shadow-l); z-index:200; font-size:.93rem; font-weight:600;
}
html[dir=rtl] .toast{ transform:translateX(50%); }

.gallery{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; }
.poster{
  aspect-ratio:3/4; border-radius:var(--radius); border:1px solid var(--line-2); overflow:hidden;
  background:linear-gradient(165deg,#fff,var(--brass-soft)); display:grid; place-items:center;
  text-align:center; padding:18px; box-shadow:var(--shadow-s); cursor:pointer;
}
.poster:hover{ box-shadow:var(--shadow-m); }

.lightbox{ position:fixed; inset:0; z-index:150; background:rgba(21,12,7,.88); display:grid; place-items:center; padding:26px; }
.lightbox img{ max-height:88vh; border-radius:var(--radius); box-shadow:var(--shadow-l); }
.lightbox__x{ position:absolute; inset-block-start:18px; inset-inline-end:18px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:100px; width:42px; height:42px; cursor:pointer; font-size:1.2rem; }

.infogrid{ display:grid; grid-template-columns:auto 1fr; gap:.55em 1.2em; font-size:.96rem; }
.infogrid dt{ font-weight:600; color:var(--muted); }
.infogrid dd{ margin:0; color:var(--text); }

.sefer{ display:grid; grid-template-columns:150px 1fr; gap:20px; align-items:start; }
@media(max-width:560px){ .sefer{ grid-template-columns:1fr; } }
.sefer__cover{
  aspect-ratio:3/4; border-radius:var(--radius-s); display:grid; place-items:center; text-align:center; padding:14px;
  background:linear-gradient(160deg,var(--ink-3),var(--ink)); color:var(--brass-2);
  font-family:var(--font-yi-display); font-size:1.05rem; font-weight:700; line-height:1.4;
  box-shadow:var(--shadow-m);
}

@media(max-width:940px){
  .nav{ display:none; }
  .burger{ display:block; }
  .hdr__tools .cartbtn span.lbl{ display:none; }
}

.skip{ position:absolute; inset-block-start:-60px; inset-inline-start:12px; background:#fff; padding:.6em 1em; border-radius:0 0 8px 8px; z-index:200; }
.skip:focus{ inset-block-start:0; }

@media(prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}


/* ==========================================================================
   Logos & later additions
   ========================================================================== */
[hidden]{ display:none !important; }

.brand__logo{ height:40px; width:auto; flex:none; }
.ftr__brand .brand__logo{ height:46px; }

/* activity logos sit on a white plaque — the set includes dark, cream and
   gold marks, and a plaque keeps every one of them readable */
.card__logo{
  height:126px; flex:none; overflow:hidden; padding:12px;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:6px;
}
.card__logo img{ max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; }
.card--act h3{ margin:0; font-size:1.14rem; }

.phead__logo{
  max-height:96px; max-width:250px; object-fit:contain; flex:none;
  background:#fffcf8; border-radius:14px; padding:10px 14px;
  box-shadow:var(--shadow-s);
}
@media(max-width:620px){
  .phead__row{ flex-direction:column; align-items:flex-start; }
  .phead__logo{ max-height:72px; }
}

.ext{ font-size:.8em; opacity:.72; }

.checks--2{ grid-template-columns:repeat(auto-fill,minmax(238px,1fr)); }
.check b.amt{ color:var(--brass); font-weight:700; white-space:nowrap; }

.tier{ position:relative; }
.tier__extra input[type=number]{ max-width:220px; }

#cardBox h3{ font-size:1rem; }


.hero__sub2{ display:block; }
.hebdate{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.phones .tosh{ font-size:1.06em; font-weight:800; letter-spacing:.04em; }
.phones .ext{ font-size:.72em; }
.phones a{ flex-wrap:wrap; }

/* ==========================================================================
   29 Jul round
   ========================================================================== */

/* activity logos inside the "Our Activities" mega menu */
.megalogo{
  width:48px; height:30px; flex:none; overflow:hidden; padding:2px;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--line); border-radius:7px;
}
.megalogo img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
/* the same box, panel-sized: a project's own logo where a lettered tile stood */
.megalogo--lg{ width:86px; height:56px; border-radius:12px; padding:5px; }
.mega__act ul{ padding-inline-start:58px; }

/* the Ichud logo inside the hero medallion */
.hero__crest img{ width:66%; height:auto; opacity:.92; }

/* an address is always English — force it to read left-to-right even on
   the Yiddish side of the site */
.addr{ direction:ltr; unicode-bidi:isolate; display:inline-block; text-align:left; }

/* reader toolbar (gilyon: download + print) */
.reader__tools{ display:flex; gap:6px; margin-inline-start:auto; }
.reader__bar{ flex-wrap:wrap; }
.reader__tools .btn{ padding:.3em .8em; font-size:.8rem; }

/* lightbox navigation */
.lightbox__nav{
  position:absolute; inset-block-start:50%; transform:translateY(-50%);
  width:52px; height:52px; border-radius:100px; cursor:pointer;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.35);
  color:#fff; font-size:1.3rem; line-height:1; display:grid; place-items:center;
}
.lightbox__nav:hover{ background:rgba(255,255,255,.26); }
.lightbox__l{ left:18px; }
.lightbox__r{ right:18px; }
.lightbox__cap{
  position:absolute; inset-block-end:18px; inset-inline:0; text-align:center;
  color:#fff; font-size:.92rem; padding-inline:80px;
}
.lightbox img{ max-width:calc(100% - 150px); }
@media(max-width:640px){
  .lightbox__nav{ width:42px; height:42px; }
  .lightbox__l{ left:8px; } .lightbox__r{ right:8px; }
  .lightbox img{ max-width:calc(100% - 110px); }
  .lightbox__cap{ padding-inline:20px; }
}

/* --------------------------------------------------------------------------
   Header overflow guard.
   The brand subtitle and the nav labels are editable from the back end, so
   the top bar has to survive text longer than the original. Nothing in the
   bar may push the language toggle or the cart off the edge.
   -------------------------------------------------------------------------- */
.hdr__bar{ min-width:0; }
.brand{ min-width:0; }
.brand__txt{ min-width:0; }
.brand__name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand__sub{
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:34ch;
}
.nav{ min-width:0; }

@media(max-width:1360px){
  .brand__sub{ display:none; }
  .nav__link{ padding-inline:.6em; font-size:.9rem; }
}
/* The Yiddish nav labels are long; between ~1100px and ~1290px the links ran
   over the language toggle (client screenshot at 1211px). Collapse to the
   burger while there is still room, not after the overlap begins. */
@media(max-width:1290px){
  .nav{ display:none; }
  .burger{ display:block; }
  .cartbtn .lbl{ display:none; }
}

/* phone-width header: shrink the tools so the bar never overflows */
@media(max-width:560px){
  .wrap{ padding-inline:14px; }
  .hdr__bar{ gap:8px; }
  .brand{ gap:8px; }
  .brand__logo{ height:34px; }
  .brand__name{ font-size:1rem; }
  .langtog button{ padding:.34em .55em; font-size:.78rem; }
  .cartbtn{ padding:.4em .62em; }
  .burger{ padding:.45em .58em; }
}

.preline{ white-space:pre-line; }

/* telephone-book covers keep their whole cover visible */
.poster--book{ aspect-ratio:auto; min-height:260px; background:#fff; padding:10px; }
.poster--book img{ max-height:340px; width:auto; margin-inline:auto; object-fit:contain; }

/* --------------------------------------------------------------------------
   30 Jul round
   -------------------------------------------------------------------------- */

/* the custom-amount box was collapsing to the width of its spinner */
.tier__b{ min-width:0; }
.tier__extra{ min-width:0; }
.tier__extra input[type=number]{
  width:100%; max-width:280px; min-width:200px;
  font-size:1.05rem; padding:.65em .9em;
}

/* every chabura shown as its own card */
.citycard{ max-width:none; }
.citycard h3{ color:var(--brass); }
.citycard .infogrid{ font-size:.95rem; }

/* caption under a book cover */
.poster__cap{ font-size:.86rem; font-weight:600; color:var(--ink); margin-top:8px; }
.poster--book{ flex-direction:column; }

/* the business and discount lists must not be copyable either */
.protected, .protected *{
  user-select:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none;
  -webkit-touch-callout:none;
}

.emailbody{ overflow-x:auto; }

/* optional hero photograph — the gradient stays over it for legibility */
.hero--photo{
  background-image:
    linear-gradient(160deg, rgba(28,17,12,.84) 0%, rgba(28,17,12,.80) 45%, rgba(21,12,7,.93) 100%),
    var(--hero-img);
  background-size:cover, cover;
  background-position:center, center;
  background-repeat:no-repeat, no-repeat;
}
.hero--photo::after{ opacity:.08; }
.hero--photo .hero__crest{ display:none; }

/* ❮ and ❯ are bidi-mirrored characters — in RTL the browser flipped them,
   so the arrows pointed the wrong way. Isolate them from the paragraph
   direction; their left/right placement is physical and already correct. */
.lightbox__nav{ direction:ltr; unicode-bidi:isolate; }
.lightbox img{ margin-inline:auto; }

/* the caption sat directly on top of a white book cover — give it a pill */
.lightbox__cap{
  width:fit-content; max-width:calc(100% - 160px); margin-inline:auto;
  background:rgba(21,12,7,.78); border:1px solid rgba(255,255,255,.18);
  padding:.45em 1.1em; border-radius:100px; backdrop-filter:blur(4px);
}
.lightbox img{ background:#fff; border-radius:var(--radius); }

/* real front-page picture inside an issue card.
   width:100% matters: the cover img is absolutely positioned (out of flow),
   so without it a thumb with margin-inline:auto collapses to its 2px border. */
.issuecard__thumb{ position:relative; overflow:hidden; width:100%; }
.issuecard__cover{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:top center;
}
.issuecard--hero .issuecard__thumb{
  box-shadow:var(--shadow-l); border-color:rgba(199,174,159,.55);
  transition:transform .18s ease;
}
.issuecard--hero:hover .issuecard__thumb{ transform:translateY(-3px) scale(1.01); }

/* מתאחדת אימעיל — boxes with a live miniature, like the gilyon cards */
.cardgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:22px; }
.mailcard{ display:flex; flex-direction:column; gap:8px; text-decoration:none; color:inherit; }
.mailcard__thumb{ display:block; position:relative; aspect-ratio:3/4; overflow:hidden;
  border-radius:10px; border:1px solid var(--line, #e5dad0); background:#fff;
  box-shadow:0 6px 18px rgba(31,26,18,.08); }
.mailcard__thumb iframe{ position:absolute; top:0; left:0; width:400%; height:400%;
  transform:scale(.25); transform-origin:0 0; border:0; pointer-events:none; background:#fff; }
.mailcard__none{ position:absolute; inset:0; display:grid; place-items:center;
  font-size:3rem; color:var(--muted,#8a7a6c); }
.mailcard:hover .mailcard__thumb{ box-shadow:0 10px 26px rgba(31,26,18,.16); }
.mailcard__t{ font-weight:600; font-size:.95rem; line-height:1.4; }
.mailcard__d{ font-size:.8rem; color:var(--muted,#8a7a6c); direction:ltr; text-align:end; }

/* ==========================================================================
   Homepage 2.0 — the designer's mockup: illustrated hero, circle badges,
   navy stats band, tiles, news cards, join band, rounded footer.
   ========================================================================== */
/* The illustrated hero is gone — the client asked for the picture of the
   houses to come off the front page (1 Sep 2026). The hero is now
   .hero--brand, at the end of this file. /img/hero-illus.jpg was deleted. */
.hero__mark{ height:74px; width:auto; margin-bottom:18px; }
.hero__tag{ display:flex; flex-direction:column; gap:.05em; margin:0 0 .45em;
  font-family:var(--font-display, "Frank Ruhl Libre", serif);
  font-size:clamp(2.6rem, 6.5vw, 4.2rem); font-weight:800; line-height:1.15; }
.hero__tag1{ color:var(--ink); }
.hero__tag2{ color:var(--brass); }
.hero__lead{ font-size:1.08rem; color:var(--text); max-width:520px; margin:0 auto 1.6em; line-height:1.8; }
.btn--navy{ background:var(--ink); color:#fff; }
.btn--navy:hover{ background:var(--ink-2); color:#fff; }

/* the four flagship cards */
.hcards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:20px; }
.hcard{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px 20px 22px;
  text-align:center; text-decoration:none; color:inherit; display:flex; flex-direction:column;
  align-items:center; gap:10px; box-shadow:0 8px 26px rgba(31,26,18,.07);
  transition:transform .15s, box-shadow .15s; }
.hcard:hover{ transform:translateY(-4px); box-shadow:0 16px 38px rgba(31,26,18,.13); }
.hcard__badge{ width:86px; height:86px; border-radius:100px; display:grid; place-items:center;
  background:radial-gradient(circle at 30% 25%, var(--ink-3), var(--ink)); overflow:hidden;
  box-shadow:inset 0 0 0 3px rgba(199,174,159,.55), 0 6px 16px rgba(28,17,12,.28); }
.hcard__badge img{ width:72%; height:72%; object-fit:contain; }
.hcard h3{ margin:0; font-size:1.08rem; }
.hcard p{ margin:0; font-size:.86rem; color:var(--muted); line-height:1.65; }
.hcard__more{ margin-top:auto; color:var(--brass); font-weight:600; font-size:.86rem; }

/* navy numbers band */
.statsband{ background:linear-gradient(135deg,#2e1e14,var(--ink)); color:#fff; border-radius:26px;
  padding:34px 30px; text-align:center; position:relative; overflow:hidden;
  box-shadow:0 18px 44px rgba(28,17,12,.3); }
.statsband h2{ color:#fff; margin-bottom:20px; }
.statsband__row{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px 0; margin-bottom:24px; }
.statcell{ flex:1 1 150px; min-width:140px; padding:0 18px; }
.statcell + .statcell{ border-inline-start:1px solid rgba(255,255,255,.18); }
.statcell b{ display:block; font-size:2.1rem; color:var(--brass-2); font-weight:800; line-height:1.1; }
.statcell span{ font-size:.85rem; color:#dccfc2; }

/* discover tiles */
.tiles{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; }
.tile{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px 12px 14px;
  text-align:center; text-decoration:none; color:inherit; display:flex; flex-direction:column;
  align-items:center; gap:8px; box-shadow:0 6px 18px rgba(31,26,18,.06);
  transition:transform .15s, box-shadow .15s; }
.tile:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(31,26,18,.12); }
.tile__badge{ width:56px; height:56px; border-radius:14px; display:grid; place-items:center;
  background:linear-gradient(150deg,var(--ink-3),var(--ink)); overflow:hidden;
  box-shadow:inset 0 0 0 2px rgba(199,174,159,.5); }
.tile__badge img{ width:70%; height:70%; object-fit:contain; }
.tile__badge--txt{ color:var(--brass-2); font-size:1.5rem; font-weight:700; }
.tile__t{ font-weight:600; font-size:.9rem; line-height:1.35; }
.tile__go{ font-size:.78rem; color:var(--brass); font-weight:600; }

/* news cards */
.newshead{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px; }
.newshead h2{ margin:0; }
.newshead__all{ color:var(--brass); font-weight:600; text-decoration:none; font-size:.92rem; }
.newscards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; }
.newscard{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px;
  text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:8px;
  box-shadow:0 6px 18px rgba(31,26,18,.06); transition:transform .15s, box-shadow .15s; }
.newscard:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(31,26,18,.12); }
.newscard__ic{ width:46px; height:46px; border-radius:12px; display:grid; place-items:center;
  background:linear-gradient(150deg,var(--ink-3),var(--ink)); color:var(--brass-2);
  font-weight:700; font-size:1rem; }
.newscard__d{ font-size:.78rem; color:var(--muted); direction:ltr; text-align:end; margin-top:-34px; }
.newscard__t{ font-weight:600; line-height:1.5; margin-top:6px; }

/* join band */
.joinband{ background:var(--cream); border:1px solid var(--line-2); border-radius:26px;
  padding:34px; display:flex; flex-wrap:wrap; align-items:center; gap:22px;
  box-shadow:0 12px 32px rgba(31,26,18,.08); }
.joinband__txt{ flex:1 1 300px; }
.joinband__txt h2{ margin-bottom:.3em; }
.joinband__txt p{ margin:0; color:var(--muted); }
.joinband__form{ flex:1 1 320px; display:flex; gap:10px; }
.joinband__form input{ flex:1; padding:.85em 1em; border:1px solid var(--line-2); border-radius:12px;
  font:inherit; background:#fff; }
.joinband__form input:focus{ outline:0; border-color:var(--brass); box-shadow:0 0 0 3px rgba(199,174,159,.25); }

/* footer: the mockup's rounded navy top */
.ftr{ border-radius:44px 44px 0 0; margin-top:40px; }

@media (max-width: 640px){
  .hero--illus{ padding:46px 0 110px; }
  .joinband{ padding:24px; }
  .newscard__d{ margin-top:0; }
}

/* ==========================================================================
   Inner pages 2.0 — the mockup's language carried through every page.
   Pure cascade layer: later rules win, no markup changes needed.
   ========================================================================== */

/* --- page header: navy band with the gold ribbon wave, rounded like the mockup --- */
.phead{
  background:
    radial-gradient(700px 260px at 85% -40%, rgba(199,174,159,.28), transparent 60%),
    linear-gradient(150deg,#43301f 0%,#2e1e14 45%,#1c110c 100%);
  border-radius:0 0 34px 34px;
  padding-block:50px 64px;
}
.phead::after{
  content:""; position:absolute; inset-inline:0; bottom:-1px; height:38px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 32 Q 150 0 330 22 T 660 26 T 990 18 T 1200 30 L 1200 60 L 0 60 Z' fill='%23c7ae9f' opacity='.55'/%3E%3Cpath d='M0 42 Q 180 14 380 32 T 720 36 T 1040 26 T 1200 40 L 1200 60 L 0 60 Z' fill='%23faf7f0'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.phead__logo{
  background:#fff; border-radius:100px; padding:10px;
  border:3px solid rgba(199,174,159,.65);
  box-shadow:0 6px 18px rgba(0,0,0,.25), 0 0 0 6px rgba(255,255,255,.06);
  height:88px; width:88px; object-fit:contain;
}
.phead .emblem{ box-shadow:0 0 0 6px rgba(255,255,255,.06); }
.phead h1{ text-shadow:0 2px 12px rgba(0,0,0,.25); }

/* --- tabs: gold active pill, like the mockup buttons --- */
.tabbar{ margin-top:-46px; position:relative; z-index:5; }
.tabs{ box-shadow:var(--shadow-m); border-color:var(--line-2); }
.tabs button.is-on,
.tabs a.is-on{
  background:linear-gradient(180deg,var(--brass-2),var(--brass)); color:#fff;
  box-shadow:0 2px 8px rgba(168,139,121,.4);
}
.tabs button:hover:not(.is-on),
.tabs a:hover:not(.is-on){ background:var(--brass-soft); color:var(--ink); }

/* --- cards & panels: the homepage's rounding and lift everywhere --- */
.panel, .tablewrap, .reader{ border-radius:18px; }
.tier, .citycard, .poster, .issuecard__thumb, .storecard{ border-radius:16px; }
.tier, .citycard{ transition:transform .18s, box-shadow .18s; }
.tier:hover, .citycard:hover{ transform:translateY(-3px); box-shadow:var(--shadow-m); }
.issuecard{ transition:transform .18s; }
.issuecard:hover{ transform:translateY(-4px); }
.issuecard:hover .issuecard__thumb{ box-shadow:var(--shadow-m); }

/* --- the PDF reader bar matches the stats band --- */
.reader__bar{ background:linear-gradient(135deg,#2e1e14,var(--ink)); }

/* --- forms: rounder fields, brass focus --- */
.field input, .field select, .field textarea{ border-radius:12px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--brass-2); box-shadow:0 0 0 3px rgba(199,174,159,.22);
}

/* --- inner section titles get the small gold rule, like the homepage --- */
.section > .wrap > h2:first-child{ position:relative; padding-bottom:14px; margin-bottom:.9em; }
.section > .wrap > h2:first-child::after{
  content:""; position:absolute; bottom:0; inset-inline-start:0;
  width:58px; height:3px; border-radius:3px;
  background:linear-gradient(90deg,var(--brass-2),var(--brass));
}

/* --- cart button: an icon so it never collapses into an empty pill --- */
.cartbtn{ display:inline-flex; align-items:center; gap:.45em; line-height:1; }
.cartbtn__ic{ width:19px; height:19px; flex:0 0 auto; color:var(--ink); }
.cartbtn:hover{ border-color:var(--brass); color:var(--ink); }
/* empty cart = no badge, and the badge sits clear of the rounded corner */
.cartbtn__n{ box-shadow:0 0 0 2px #fff; }

/* ==========================================================================
   Rebrand — 1 Sep 2026
   The company is rebranding, so the whole palette now comes off the new
   Ichud mark: espresso #1C110C for the letterforms, clay #A88B79 and tan
   #C7AE9F for the crown and the frame, on warm cream. Every token above was
   remapped from the old navy/gold; this layer adds the pieces the new
   homepage needs, plus the first motion the site has ever had.

   Craft notes (the reference the client gave was moiduah.com): one light
   airy ground, translucent white panels, soft 12–18px corners, a single
   display face, generous headings. Colour is ours, not the reference's.

   OLD DEVICES: no aspect-ratio, no inset shorthand, every clamp() preceded
   by a static fallback, no ?? or ?. anywhere in the JS that drives this.
   ========================================================================== */

/* ---------------------------------------------------------------- hero */
.hero--brand{
  background:
    radial-gradient(1100px 380px at 78% -8%, rgba(199,174,159,.30), rgba(199,174,159,0) 62%),
    radial-gradient(760px 320px at 12% 8%, rgba(168,139,121,.16), rgba(168,139,121,0) 60%),
    var(--cream);
  padding:58px 0 66px; position:relative; overflow:hidden;
  color:var(--text);
}
/* The base .hero is the old DARK band: white text and a white diagonal hatch
   over a near-black gradient. .hero--brand is light, so both of those have to
   be undone explicitly — `.hero h1` (specificity 0,1,1) otherwise beats
   `.hero__tag` and paints the title white on cream, which measured 1.14:1. */
.hero--brand h1,
.hero--brand .hero__tag{ color:var(--ink); }
.hero--brand::after{
  content:""; position:absolute; left:0; right:0; bottom:0; top:auto;
  height:1px; opacity:1; background-image:none; -webkit-mask-image:none; mask-image:none;
  background:linear-gradient(90deg,rgba(199,174,159,0),rgba(168,139,121,.55),rgba(199,174,159,0));
}
.herogrid{ display:block; }
.herotext{ max-width:680px; margin:0 auto; text-align:center; position:relative; z-index:1; }
.hero--brand .hero__mark{
  height:132px; width:auto; margin:0 auto 20px;
  filter:drop-shadow(0 10px 26px rgba(28,17,12,.16));
}
.hero__tag{
  display:block; margin:0 0 .28em; color:var(--ink);
  font-family:var(--font-display,"Frank Ruhl Libre",serif);
  font-size:3.1rem;                     /* static fallback first, for iOS < 13.1 */
  font-size:clamp(2.4rem, 6vw, 3.9rem);
  font-weight:800; line-height:1.14; letter-spacing:-.01em;
}
.hero__l2{
  margin:0 auto .18em; max-width:620px; color:var(--ink-3);
  font-family:var(--font-display,"Frank Ruhl Libre",serif);
  font-size:1.32rem; font-size:clamp(1.12rem,2.5vw,1.42rem); line-height:1.6;
}
.hero__l3{
  margin:0 auto 1.5em; max-width:620px; color:var(--muted);
  font-size:1.02rem; line-height:1.7;
}
/* the client's note: the two buttons were never actually centred — the flex
   row sat at the start of a centred box, which reads as off-centre */
.hero__cta--center{ justify-content:center; }

/* ------------------------------------------------- Parnas HaChodesh slot */
.herogrid--split{
  display:grid; grid-template-columns:1fr; gap:34px; align-items:center;
}
@media (min-width:900px){
  .herogrid--split{ grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); }
  .herogrid--split .herotext{ text-align:start; margin:0; }
  .herogrid--split .hero--brand .hero__mark,
  .herogrid--split .hero__mark{ margin-inline:0; }
  .herogrid--split .hero__l2,
  .herogrid--split .hero__l3{ margin-inline:0; }
  .herogrid--split .hero__cta--center{ justify-content:flex-start; }
}
.parnes{
  background:rgba(255,255,255,.72); border:1px solid var(--line);
  border-radius:18px; padding:14px 14px 16px;
  box-shadow:0 2px 6px rgba(28,17,12,.05), 0 16px 40px rgba(28,17,12,.09);
}
.parnes__k{
  display:block; text-align:center; margin-bottom:10px;
  font-family:var(--font-display,"Frank Ruhl Libre",serif);
  font-size:.95rem; color:var(--brass); letter-spacing:.02em;
}
.parnes__pics{ display:grid; grid-template-columns:1fr; gap:10px; }
.parnes--two .parnes__pics{ grid-template-columns:1fr 1fr; }
.parnes__pics img{ width:100%; height:auto; border-radius:10px; border:1px solid var(--line); }

/* ------------------------------------------- every project, one grid ---- */
.ptiles{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(158px,1fr)); gap:14px;
}
.ptile{
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  text-align:center; gap:10px; padding:20px 12px 16px; min-height:132px;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  color:var(--ink); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow:0 1px 2px rgba(28,17,12,.04);
}
.ptile:hover{
  transform:translateY(-3px); border-color:var(--brass-2); color:var(--ink);
  box-shadow:0 6px 14px rgba(28,17,12,.07), 0 18px 34px rgba(28,17,12,.08);
}
.ptile__badge{ display:block; }
.ptile__badge img{ height:44px; width:auto; margin:0 auto; }
.ptile__badge .emblem{ width:44px; height:44px; line-height:44px; }
.ptile__t{ font-size:.94rem; line-height:1.4; font-weight:600; }

/* the non-project links, said plainly — no "see more" heading over them */
.plinks{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:22px;
}
.plink{
  display:inline-block; padding:9px 18px; border-radius:999px;
  background:rgba(255,255,255,.8); border:1px solid var(--line);
  color:var(--ink-3); font-size:.95rem;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.plink:hover{ border-color:var(--brass-2); background:#fff; color:var(--ink); }

/* --------------------------------- this week's blettel + latest email --- */
.lboxes{ display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:760px){ .lboxes{ grid-template-columns:1fr 1fr; } }
.lbox{
  display:flex; gap:16px; align-items:flex-start; padding:16px;
  background:#fff; border:1px solid var(--line); border-radius:18px; color:var(--ink);
  box-shadow:0 1px 2px rgba(28,17,12,.04);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.lbox:hover{
  transform:translateY(-3px); border-color:var(--brass-2); color:var(--ink);
  box-shadow:0 8px 18px rgba(28,17,12,.08), 0 22px 44px rgba(28,17,12,.08);
}
.lbox__thumb{
  flex:0 0 108px; width:108px; height:146px; overflow:hidden; position:relative;
  border-radius:10px; border:1px solid var(--line); background:var(--cream);
}
.lbox__thumb img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
/* the email preview: a live miniature, so it plainly reads as an email */
.lbox__thumb--mail{ background:#fff; }
.lbox__thumb--mail iframe{
  position:absolute; top:0; left:0; width:420px; height:560px; border:0;
  transform:scale(.26); transform-origin:top left; pointer-events:none;
}
html[dir="rtl"] .lbox__thumb--mail iframe{ left:auto; right:0; transform-origin:top right; }
.lbox__none{
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
  font-family:var(--font-display,"Frank Ruhl Libre",serif); font-size:.9rem;
  color:var(--brass); text-align:center; padding:8px;
}
.lbox__txt{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.lbox__k{
  font-family:var(--font-display,"Frank Ruhl Libre",serif);
  color:var(--brass); font-size:.92rem;
}
.lbox__t{ font-weight:600; line-height:1.45; }
.lbox__d{ font-size:.82rem; color:var(--muted); direction:ltr; text-align:start; }

/* ------------------------------- sign up  +  become a member, side by side */
.joingrid{ display:grid; grid-template-columns:1fr; gap:18px; align-items:stretch; }
@media (min-width:860px){ .joingrid{ grid-template-columns:1.25fr .75fr; } }
.joingrid .joinband{ margin:0; height:100%; }
.memberbox{
  display:flex; flex-direction:column; justify-content:center; gap:.5em;
  padding:26px 28px; border-radius:22px; text-align:center;
  background:linear-gradient(160deg,#fff,var(--brass-soft));
  border:1px solid var(--line-2);
  box-shadow:0 2px 6px rgba(28,17,12,.05), 0 18px 40px rgba(28,17,12,.07);
}
.memberbox h2{ margin:0; font-size:1.4rem; color:var(--ink); }
.memberbox p{ margin:0 0 .5em; font-size:.95rem; color:var(--text); }
.memberbox .btn{ align-self:center; }

/* ---------------------------------------------- Kehilos U'Mosdos booklet */
.book{ max-width:1020px; margin:0 auto; }
.book__sheet{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  background:var(--ink); padding:10px; border-radius:14px;
  box-shadow:0 10px 26px rgba(28,17,12,.16), 0 40px 80px rgba(28,17,12,.14);
}
.book__sheet--single{ grid-template-columns:minmax(0,min(100%,420px)); justify-content:center; }
.book__pg{ background:#fff; overflow:hidden; }
.book__pg img{ width:100%; height:auto; display:block; }
/* the gutter shadow that makes it read as a bound booklet */
.book__sheet .book__pg:first-child{ border-radius:8px 0 0 8px;
  box-shadow:inset 8px 0 18px -10px rgba(28,17,12,.5); }
.book__sheet .book__pg:last-child{ border-radius:0 8px 8px 0;
  box-shadow:inset -8px 0 18px -10px rgba(28,17,12,.5); }
.book__sheet--single .book__pg{ border-radius:8px; box-shadow:none; }
html[dir="rtl"] .book__sheet .book__pg:first-child{ border-radius:0 8px 8px 0;
  box-shadow:inset -8px 0 18px -10px rgba(28,17,12,.5); }
html[dir="rtl"] .book__sheet .book__pg:last-child{ border-radius:8px 0 0 8px;
  box-shadow:inset 8px 0 18px -10px rgba(28,17,12,.5); }
.book__nav{
  display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap;
  margin-top:18px;
}
.book__count{ font-size:.92rem; color:var(--muted); }
.btn.is-off{ opacity:.38; pointer-events:none; }
@media (max-width:620px){
  /* Side by side would be unreadable on a phone, so the two pages of a
     spread stand one under the other. The second page used to be hidden
     here, but the arrows still step two pages at a time, so every other
     page (7, 9, 11...) could never be seen on a phone (office ticket #5,
     25 Nov 2026). */
  .book__sheet{ grid-template-columns:1fr; gap:10px; }
  .book__sheet .book__pg,
  html[dir] .book__sheet .book__pg:first-child,
  html[dir] .book__sheet .book__pg:last-child{ border-radius:8px; box-shadow:none; }
}

/* ------------------------------------------------ V'Levyim album shop --- */
.albums{ display:grid; grid-template-columns:1fr; gap:20px; }
@media (min-width:820px){ .albums{ grid-template-columns:1fr 1fr; } }
.album{
  display:flex; gap:18px; padding:18px; background:#fff;
  border:1px solid var(--line); border-radius:18px;
  box-shadow:0 1px 2px rgba(28,17,12,.04);
}
.album__cover{
  flex:0 0 132px; width:132px; height:132px; border-radius:12px; overflow:hidden;
  border:1px solid var(--line); background:var(--cream);
}
.album__cover img{ width:100%; height:100%; object-fit:cover; }
.album__body{ min-width:0; display:flex; flex-direction:column; gap:.45em; }
.album__body h3{ margin:0; font-size:1.15rem; }
.album__k{ font-size:.85rem; color:var(--brass); margin-top:.2em; }
.album__thumbs{ display:flex; flex-wrap:wrap; gap:8px; }
.album__thumbs img{
  width:56px; height:56px; object-fit:cover; border-radius:8px;
  border:1px solid var(--line);
}
.album__price{ font-weight:700; color:var(--ink); }

/* ======================================================================
   Motion — the site had none until now.
   Everything here is decoration: it may fail, be switched off, or never run
   at all, and the page must still read exactly the same. That is why the
   hiding half of the scroll reveal is scoped to html.js-motion, a class only
   added by script AFTER the observer is built (see revealInit in app.js).
   No JS, old iPad, or a filter that blocks our scripts => nothing hides.
   ====================================================================== */
@keyframes it-rise{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
@keyframes it-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }
@keyframes it-sheen{ 0%{ transform:translateX(-120%); } 60%,100%{ transform:translateX(220%); } }

html.js-motion .reveal{ opacity:0; }
/* `backwards`, never `both`: with `both` the 100% keyframe (transform:none)
   stays applied after the animation ends, and animations outrank ordinary
   rules — which silently killed every :hover lift on a revealed card. */
html.js-motion .reveal.is-in{ opacity:1; animation:it-rise .62s cubic-bezier(.22,.68,.36,1) backwards; }

/* the mark breathes, very slightly — the one piece of ambient motion */
.hero--brand .hero__mark{ animation:it-float 7s ease-in-out infinite; }

/* a slow sheen across the stats band, like light moving over brass */
.statsband{ position:relative; overflow:hidden; }
.statsband::after{
  content:""; position:absolute; top:0; bottom:0; left:0; width:38%;
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.13),rgba(255,255,255,0));
  transform:translateX(-120%); pointer-events:none;
}
html.js-motion .statsband.is-in::after{ animation:it-sheen 2.6s ease-out .35s 1; }

/* Numbers are LTR even inside Yiddish: "891+" was being drawn as "+891",
   because a trailing plus is bidi-neutral and RTL pulls it to the left. */
.statcell b{ direction:ltr; unicode-bidi:isolate; }

/* the numbers count up visually by rising into place, one after the other */
html.js-motion .statsband.is-in .statcell{ animation:it-rise .5s ease-out backwards; }
html.js-motion .statsband.is-in .statcell:nth-child(2){ animation-delay:.07s; }
html.js-motion .statsband.is-in .statcell:nth-child(3){ animation-delay:.14s; }
html.js-motion .statsband.is-in .statcell:nth-child(4){ animation-delay:.21s; }

/* project tiles arrive in a gentle stagger rather than all at once */
html.js-motion .ptile.reveal.is-in{ animation-duration:.5s; }
.ptile:active{ transform:translateY(-1px); }

@media (prefers-reduced-motion:reduce){
  html.js-motion .reveal,
  html.js-motion .reveal.is-in{ opacity:1; animation:none; }
  .hero--brand .hero__mark{ animation:none; }
  html.js-motion .statsband.is-in::after{ animation:none; }
}

/* ==========================================================================
   Client round, 1 Sep — header breathing room, footer, cart, donate steps
   ========================================================================== */

/* --- header: the tools were crowding the language toggle --- */
.hdr__bar{ gap:26px; }
.hdr__tools{ gap:14px; }
.nav{ gap:4px; }
.nav a{ padding-inline:.6em; }
.brand__name{ font-size:1.5rem; letter-spacing:-.01em; }
.brand__sub{ font-size:.8rem; }
@media(max-width:1290px){ .brand__name{ font-size:1.32rem; } }
@media(max-width:560px){ .brand__name{ font-size:1.12rem; } }

/* the tagline under the hero title matches the projects strapline */
.hero__lead, .hero__sub{ font-size:1.08rem; line-height:1.8; color:var(--text); }

/* --- projects grid: five across, so eleven fall 5 / 5 / 1 → he asked 5+3 --- */
@media (min-width:980px){
  .ptiles{ grid-template-columns:repeat(5,1fr); }
}
@media (min-width:700px) and (max-width:979px){
  .ptiles{ grid-template-columns:repeat(3,1fr); }
}

/* --- footer: the logo sat on its own dark plate against a dark bar --- */
.ftr{ background:linear-gradient(180deg,var(--ink-2),var(--ink)); }
.ftr__brand .brand__logo{
  background:#fff; border-radius:14px; padding:8px 10px; height:56px;
  box-shadow:0 4px 14px rgba(0,0,0,.28);
}
.ftr__brand .brand__mark{ background:#fff; color:var(--ink); }
/* the hairlines between footer blocks were a cold blue */
.ftr, .ftr *{ border-color:rgba(199,174,159,.30) !important; }
.ftr__bottom, .ftr__legal{ border-top:1px solid rgba(199,174,159,.30); }

/* --- home: this week's blettel / today's email --- */
.lcell{ display:flex; flex-direction:column; gap:8px; }
.lbox__h{
  font-family:var(--font-display); font-weight:700; font-size:1.18rem;
  color:var(--ink); display:block; margin-bottom:.15em;
}
.lbox__more{
  align-self:flex-start; font-size:.9rem; font-weight:600; color:var(--brass);
  text-decoration:none;
}
.lbox__more:hover{ text-decoration:underline; }

/* --- booklet: arrows at the sides, page turns in place --- */
.book__stage{ display:flex; align-items:center; gap:12px; justify-content:center; }
.book__turn{
  flex:0 0 auto; width:52px; height:52px; border-radius:100px; cursor:pointer;
  border:1px solid var(--line-2); background:#fff; color:var(--ink);
  font-size:1.7rem; line-height:1; display:grid; place-items:center;
  box-shadow:var(--shadow-s); transition:background .15s, transform .1s;
}
.book__turn:hover{ background:var(--brass-soft); border-color:var(--brass); }
.book__turn:active{ transform:scale(.94); }
.book__turn.is-off{ opacity:.3; cursor:default; }
.book__nav{ justify-content:center; margin-top:14px; }
@media(max-width:700px){
  .book__stage{ gap:6px; }
  .book__turn{ width:40px; height:40px; font-size:1.3rem; }
}

/* --- cart: a card per album, full-width footer --- */
.cartlist{ display:grid; gap:14px; }
.cartrow{
  display:flex; align-items:center; gap:16px; padding:14px 16px;
  background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-s);
}
.cartrow__img{
  flex:0 0 auto; width:84px; height:84px; border-radius:12px; overflow:hidden;
  background:var(--cream); display:grid; place-items:center;
}
.cartrow__img img{ width:100%; height:100%; object-fit:cover; }
.cartrow__body{ flex:1 1 auto; min-width:0; }
.cartrow__body h3{ margin:0 0 .2em; font-size:1.05rem; }
.cartrow__price{ font-weight:700; font-size:1.15rem; color:var(--ink); white-space:nowrap; }
.cartrow__bin{
  flex:0 0 auto; width:40px; height:40px; border-radius:100px; cursor:pointer;
  border:1px solid var(--line-2); background:#fff; color:#b3261e; display:grid; place-items:center;
}
.cartrow__bin svg{ width:20px; height:20px; }
.cartrow__bin:hover{ background:#fef2f2; border-color:#f0c9c9; }
.cartfoot{
  margin-top:22px; padding:20px 24px; border-radius:20px;
  background:linear-gradient(135deg,var(--ink-2),var(--ink)); color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.cartfoot__sum{ display:flex; align-items:baseline; gap:12px; font-size:1.05rem; }
.cartfoot__sum b{ font-size:1.9rem; color:var(--brass-2); }
.cartfoot__acts{ display:flex; gap:10px; flex-wrap:wrap; }

/* --- the "added to your box" banner --- */
.toast--top{
  inset-block-end:auto; inset-block-start:calc(var(--hdr) + 14px);
  display:flex; align-items:center; gap:12px; padding:.85em 1.3em;
  background:#3d5b3a; font-size:1rem;
}
.toast__tick{
  width:24px; height:24px; border-radius:100px; background:rgba(255,255,255,.2);
  display:grid; place-items:center; flex:0 0 auto;
}
.toast__go{ color:#ffe9a8; font-weight:700; text-decoration:none; white-space:nowrap; }

/* --- donate: three clear steps, the total alongside --- */
.donlayout{ display:grid; grid-template-columns:1fr; gap:18px; align-items:start; }
@media(min-width:1000px){
  .donlayout{ grid-template-columns:1.55fr .9fr; }
  .donsum{ grid-column:2; grid-row:1 / span 3; position:sticky; top:calc(var(--hdr) + 16px); }
}
.donstep{ background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-s); overflow:hidden; }
.donstep__h{
  display:flex; align-items:center; gap:12px; padding:14px 20px;
  background:var(--cream); border-bottom:1px solid var(--line);
}
.donstep__h h2{ margin:0; font-size:1.16rem; }
.donstep__n{
  flex:0 0 auto; width:30px; height:30px; border-radius:100px;
  background:linear-gradient(180deg,var(--brass-2),var(--brass)); color:#fff;
  display:grid; place-items:center; font-weight:700; font-size:.95rem;
}
.donstep__b{ padding:18px 20px; }
/* "you are settling promise #N" — it stands above the whole form, in the
   same red the open promises are listed in, so the page cannot be mistaken
   for an ordinary gift */
.donpledge{ margin:0 0 18px; border:2px solid #f0c0bb; background:#fdf3f2; color:#b3261e; font-weight:700; }
/* the amount box was too shallow to type into comfortably */
.tier__extra input[type=number]{ padding:.75em .9em; font-size:1.15rem; font-weight:600; }

/* --- the embedded Google form (matzo orders) --- */
.gform{ width:100%; min-height:min(1500px,150vh); border:0; background:#fff; }

/* the two hero lines read as one sentence — same face, same size, same colour */
.hero__l3{
  font-family:var(--font-display);
  font-size:22.72px; font-weight:400; color:var(--text);
}
@media(max-width:700px){ .hero__l2, .hero__l3{ font-size:1.15rem; } }

/* The nav needs ~843px of its own; with the brand and the tools that is about
   1460px of window. Below that it must collapse to the burger, or the last
   link ("קאמענטארן") runs into the language toggle — which is exactly what
   the client photographed at 1300px. */
@media(max-width:1460px){
  .nav{ display:none; }
  .burger{ display:block; }
  .cartbtn .lbl{ display:none; }
}
/* and never let it overflow even if a label grows later */
.nav{ flex-wrap:nowrap; overflow:hidden; }

/* the "enter an amount" box: an explicit height was eating the padding, so it
   read as a thin slot — he asked for it taller */
.tier__extra input[type=number]{
  height:auto; min-height:56px; padding:.85em 1em; font-size:1.2rem; font-weight:600;
}

/* ==========================================================================
   Client round 2, 1 Sep
   ========================================================================== */

/* --- the header bar can be wider than the reading column ------------------
   The nav needs ~1310px with the brand and the tools; the shared .wrap caps
   everything at 1180px, so the last link ran into the language toggle at ANY
   window width. The bar gets its own width; the rest of the site does not. */
.hdr .wrap{ max-width:1420px; }
@media(max-width:1480px){
  .nav{ display:none; }
  .burger{ display:block; }
  .cartbtn .lbl{ display:none; }
}

/* --- footer: warm, never blue --- */
.ftr__muted{ color:#c9b6a6; }
.ftr{ color:#e2d5c9; }
.ftr a{ color:#e2d5c9; }

/* --- the last row of project tiles sits centred --- */
.ptiles{ justify-content:center; }
/* phones: always two across; an odd last tile sits centred under the pair */
@media (max-width:699px){
  .ptiles{ grid-template-columns:repeat(4,1fr); }
  .ptiles > .ptile{ grid-column:span 2; }
  .ptiles > .ptile:last-child:nth-child(odd){ grid-column:2 / span 2; }
}
/* tablets: three across; a lone last tile sits in the middle */
@media (min-width:700px) and (max-width:979px){
  .ptiles > .ptile:last-child:nth-child(3n+1){ grid-column:2; }
}
@media (min-width:980px){
  /* 13 tiles = 5 / 5 / 3 — centre that last row of three */
  .ptiles{ grid-template-columns:repeat(10,1fr); }
  .ptiles > .ptile{ grid-column:span 2; }
  .ptiles > .ptile:nth-last-child(3):nth-child(11){ grid-column:3 / span 2; }
}

/* the tier list folds to just the chosen one after he picks */
#tierList.is-picked > .tier{ display:none; }
#tierList.is-picked > .tier.is-on{ display:grid; }
.tierreopen{
  margin-top:12px; border:1px dashed var(--line-2); background:none; cursor:pointer;
  border-radius:100px; padding:.5em 1.1em; font:inherit; font-size:.88rem;
  color:var(--brass); font-weight:600;
}
.tierreopen:hover{ background:var(--cream); }

/* Dates and the issue line sit on the RIGHT of their box. The dates keep
   direction:ltr so the digits read correctly, which makes `start` mean LEFT —
   so the alignment here has to be the physical right. */
.lbox__d, .mailcard__d{ text-align:right; }
.issueline{ direction:rtl; text-align:right; font-size:1rem; color:var(--muted); margin:0 0 .2em; }

/* the activity logo is now a link — keep it looking like a plate, not a link */
a.card__logo{ display:grid; place-items:center; text-decoration:none; }
a.card__logo:hover{ border-color:var(--brass); }

/* ==========================================================================
   Client round 4 — 1 Sep 2026 (evening)
   ========================================================================== */

/* --- activity logos were rendering enormous ------------------------------
   `a.card__logo` set display:grid, and a percentage max-height on the <img>
   resolves against the grid AREA, which is auto-sized by the image itself —
   so `max-height:100%` was indefinite and constrained nothing. The plaque is
   126px tall; the marks were coming out 175–186px and being cropped by
   overflow:hidden. Pinning the image to the row height fixes it for both the
   flex and the grid version of the plaque. */
a.card__logo{ grid-template-rows:minmax(0,1fr); }
.card__logo img{
  max-height:102px;              /* 126px plaque − 2×12px padding */
  max-width:100%; width:auto; height:auto; object-fit:contain;
}

/* --- the stray dash under the centred homepage heading -------------------
   `.section > .wrap > h2:first-child::after` is the little gold rule for
   inner-page titles, absolutely positioned at inset-inline-start:0. Under a
   CENTRED heading it detaches and floats out at the right-hand edge, which
   is the "small dash" he asked to have removed. Keep it where headings are
   left-aligned; drop it wherever the wrap is centred. */
.section > .wrap.center > h2:first-child{ padding-bottom:0; }
.section > .wrap.center > h2:first-child::after{ content:none; }

/* --- home: the two boxes read heading-first ------------------------------
   The label ("this week's Misachedes Blettel") is the headline and the file
   name ("Misachedes — Eikev") is the detail, so the sizes swap. One family
   throughout, per his note that everything should be the same font. */
.lbox__h{
  font-family:var(--font-display); font-weight:800;
  font-size:1.42rem; line-height:1.3; color:var(--ink); margin-bottom:.22em;
}
.lbox__t{
  font-family:var(--font-display); font-weight:400;
  font-size:.95rem; line-height:1.45; color:var(--muted);
}
.lbox__d{
  font-family:var(--font-display); font-size:.9rem; color:var(--brass);
  direction:rtl;                 /* Hebrew dates now, so no LTR override */
}
@media (max-width:520px){ .lbox__h{ font-size:1.2rem; } }

/* --- "see all the projects", under the six short links --- */
.morelink{
  display:inline-block; font-family:var(--font-display); font-size:1.05rem;
  font-weight:700; color:var(--brass); border-bottom:1px solid transparent;
}
.morelink:hover{ color:var(--ink); border-bottom-color:var(--brass-2); }

/* --- cart: slimmer rows, bigger album names, and the way back is a link --- */
.cartrow{ padding:10px 14px; gap:14px; align-items:center; }
.cartrow__img{ flex:0 0 68px; width:68px; height:68px; }
.cartrow__img img{ width:100%; height:100%; object-fit:cover; border-radius:8px; }
.cartrow__body h3{ font-size:1.16rem; line-height:1.35; margin:0; }
.cartrow__body .small{ margin:.1em 0 0; }
.cartrow__price{ font-size:1.05rem; font-weight:700; }
.cartrow__bin{ width:38px; height:38px; }
/* "keep shopping" was a ghost button inside the dark bar — white-on-dark
   border with near-invisible letters. It is a quiet link under the bar now. */
.cartback{ text-align:center; margin:14px 0 0; }
.cartback a{ font-size:.98rem; color:var(--brass); }
.cartback a:hover{ color:var(--ink); text-decoration:underline; }

/* --- donate: the rows are short now, so they can breathe less --- */
.tier{ padding:14px 16px; align-items:center; }
.tier__n{ font-size:1.06rem; font-weight:700; }
.tier__amt{ font-size:1.06rem; }

/* --- footer logo: the mark itself goes white, the ground stays dark -------
   The white plaque behind the logo was the wrong reading of his note. What
   he wants is the dark brown ground of the footer carrying a logo whose
   black letters have been turned white. /img/logo-white.png is that file. */
.ftr__brand .brand__logo{
  background:none; border-radius:0; padding:0; box-shadow:none; height:64px;
}

/* ==========================================================================
   Client round 5 — 2 Sep 2026
   ========================================================================== */

/* --- Yiddish headings: he likes the small (Heebo) type and not the big
   (Frank Ruhl Libre) one, so the display face for Yiddish is now Heebo at
   its heaviest weights. One family everywhere, which also reads as one
   system. English keeps Frank Ruhl. --- */
html[lang="yi"]{
  --font-display: "Heebo", "Arial Hebrew", "Segoe UI", sans-serif;
}
html[lang="yi"] h1, html[lang="yi"] h2, html[lang="yi"] h3,
html[lang="yi"] .hero__tag, html[lang="yi"] .lbox__h, html[lang="yi"] .statsband h2{
  font-weight:800; letter-spacing:-.01em;
}
html[lang="yi"] .hero__tag{ font-weight:900; }

/* --- number fields: no spinner arrows anywhere; a $ box for money --- */
input[type="number"]{ -moz-appearance:textfield; appearance:textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.money{ position:relative; display:block; }
.money::before{
  content:"$"; position:absolute; top:50%; transform:translateY(-50%);
  inset-inline-start:14px; font-weight:700; color:var(--muted); pointer-events:none;
}
.money input{ padding-inline-start:32px; width:100%; }

/* --- Parnassah B'yachad: the full register --- */
.bizcard h3{ margin:0 0 .15em; font-size:1.08rem; }
.bizcard__cat{ font-size:.82rem; color:var(--brass); margin-bottom:.35em; }
.bizcard__owner{ font-size:.95rem; color:var(--text); }
.bizcard__tel{ display:inline-block; margin:.35em 0; font-weight:600; direction:ltr; }
.bizcard .pill{ margin-top:.5em; }

/* --- Matzos: the boxes and the prices, then the order --- */
.matzos{ display:grid; grid-template-columns:1fr; gap:28px; align-items:center; }
@media (min-width:860px){ .matzos{ grid-template-columns:1.05fr .95fr; } }
.matzos__pic img{ width:100%; height:auto; }
.matzos__txt h2{ margin:0 0 .2em; }
.matzos__txt h3{ margin:1.2em 0 .5em; font-size:1.1rem; }
.pricelist{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:6px 16px; }
.pricerow{
  display:flex; justify-content:space-between; gap:12px; padding:9px 0;
  border-bottom:1px solid var(--line);
}
.pricerow:last-child{ border-bottom:0; }
.pricerow b{ direction:ltr; }
.matzos__notes{ margin:14px 0 20px; padding-inline-start:1.2em; color:var(--muted); }
.fnote{
  background:var(--brass-soft); border-radius:12px; padding:12px 16px; margin:14px 0;
  font-size:.95rem;
}
.fnote ul{ margin:.4em 0 0; padding-inline-start:1.2em; }
.qtys{ display:grid; gap:10px; margin:14px 0; }
.qtyrow{
  display:grid; grid-template-columns:1fr 110px; gap:6px 14px; align-items:center;
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 14px;
}
.qtyrow label{ margin:0; }
.qtyrow input{ width:110px; text-align:center; direction:ltr; }
.qtyrow > .small{ grid-column:1 / -1; }
/* an odd number of pounds: the row says so in red and the submit waits
   (app.js wireMatzos; plain colours first — no var() the old iPads lack) */
.qtyrow.is-bad{ border-color:#b3261e; background:#fdecea; }
.qtyrow.is-bad input{ border-color:#b3261e; color:#b3261e; }
.qtyerr{ display:block; grid-column:1 / -1; color:#b3261e; font-weight:600; font-size:.9rem; line-height:1.45; }
/* "log in first" on the matzo order — hidden until account.js has answered */
.fnote--login{ background:#fdf3e7; border:1px solid #ecd2a7; color:#5a3410; }
.fnote--login p{ margin:0 0 10px; }
.mztotal{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px;
  background:var(--ink); color:#fff; border-radius:14px; padding:14px 18px; margin-top:14px;
}
.mztotal b{ font-size:1.5rem; direction:ltr; }
.mztotal .small{ flex-basis:100%; color:rgba(255,255,255,.7); }

/* --- Kol Ichud: the map of the line --- */
.kkey{
  display:inline-grid; place-items:center; width:42px; height:42px; border-radius:12px;
  background:#fff; border:1px solid var(--line-2); color:var(--ink);
  font-family:var(--font-en-body); font-weight:800; font-size:1.15rem; direction:ltr;
  box-shadow:0 1px 2px rgba(28,17,12,.06), inset 0 -2px 0 rgba(28,17,12,.08);
}
.kpad{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:640px;
  margin:18px 0 30px; direction:ltr;        /* a phone keypad reads 1-2-3 left to right */
}
.kpad__k{
  display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 10px;
  background:#fff; border:1px solid var(--line); border-radius:14px; color:var(--ink);
  text-align:center; direction:rtl; transition:transform .18s, box-shadow .18s, border-color .18s;
}
.kpad__k:hover{ transform:translateY(-2px); border-color:var(--brass-2); box-shadow:var(--shadow-m); color:var(--ink); }
.kpad__t{ font-size:.86rem; line-height:1.35; }
.kolmap{ display:grid; gap:14px; }
.kolrow{
  display:grid; grid-template-columns:64px 34px minmax(0,1fr); gap:12px; align-items:start;
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px;
  scroll-margin-top:90px;
}
.kolrow__key .kkey{ width:52px; height:52px; font-size:1.4rem; }
.kolrow__arrow{ font-size:1.6rem; color:var(--brass); line-height:52px; text-align:center; }
.kolrow__body h3{ margin:.35em 0 .3em; font-size:1.12rem; }
.kollist{ list-style:none; margin:0; padding:0; display:grid; gap:6px; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); }
.kollist li{ display:flex; align-items:center; gap:10px; font-size:.96rem; }
.kollist .kkey{ width:30px; height:30px; font-size:.9rem; border-radius:8px; flex:0 0 auto; }
.kolrow--ctl .kolrow__body h3{ font-weight:600; font-size:1.02rem; }
.kolrow__sub{ font-size:.9rem; direction:rtl; }
@media (max-width:560px){
  .kolrow{ grid-template-columns:52px 24px minmax(0,1fr); padding:12px; }
  .kolrow__key .kkey{ width:44px; height:44px; font-size:1.2rem; }
  .kolrow__arrow{ line-height:44px; font-size:1.3rem; }
}

/* ==========================================================================
   Round 6 — 2 Sep 2026 (evening): the viewer, full-screen booklets,
   the blettel as a booklet, opening things in place on the homepage.
   ========================================================================== */
.book__tools{ display:flex; justify-content:center; gap:10px; margin-top:12px; flex-wrap:wrap; }

/* the layer — a fixed div, not the Fullscreen API (iPad Safari has none) */
html.has-viewer{ overflow:hidden; }
.viewer{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:200;
  background:rgba(21,12,7,.94); overflow:auto; -webkit-overflow-scrolling:touch;
  padding:52px 12px 24px;
}
.viewer__x{
  position:fixed; top:10px; inset-inline-end:14px; z-index:201;
  width:44px; height:44px; border-radius:100px; border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12); color:#fff; font-size:1.7rem; line-height:1; cursor:pointer;
}
.viewer__x:hover{ background:rgba(255,255,255,.22); }
.viewer__in{ max-width:1400px; margin:0 auto; }

/* a booklet at full size: pages as tall as the screen allows, side by side */
.book--full .book__sheet{
  display:flex; justify-content:center; align-items:flex-start; padding:8px;
  background:#000; border-radius:10px; box-shadow:none;
}
.book--full .book__pg{ flex:0 1 auto; max-width:48vw; }
.book--full .book__sheet--single .book__pg{ max-width:min(96vw, 900px); }
.book--full .book__pg img{ width:auto; height:auto; max-width:100%; max-height:calc(100vh - 190px); }
.book--full .book__turn{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.35); color:#fff; }
.book--full .book__turn:hover{ background:rgba(255,255,255,.26); }
.book--full .book__count{ color:rgba(255,255,255,.75); }
.book--full .book__tools .btn--light{ background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.4); color:#fff; }
@media (max-width:620px){
  .book--full .book__sheet{ flex-direction:column; align-items:center; }
  .book--full .book__pg{ max-width:96vw; }
  .book--full .book__pg img{ max-height:none; width:100%; }
}

/* an email (or a PDF fallback) in the layer */
.viewer__mail{ max-width:960px; margin:0 auto; background:#fff; border-radius:10px; overflow:hidden; }
.viewer__frame{ display:block; width:100%; height:calc(100vh - 100px); border:0; background:#fff; }

/* an old gilyon opened inside the archive, above the list */
.opened{ margin-bottom:34px; padding-bottom:26px; border-bottom:1px solid var(--line-2); }
.opened__back{ display:inline-block; margin-bottom:.6em; font-size:.95rem; color:var(--brass); }
.opened__back:hover{ color:var(--ink); }
.opened h2{ margin:0 0 .6em; font-size:1.3rem; }

/* admin: the ⇄ English row under a Yiddish/English pair */
.trrow{ display:flex; align-items:center; gap:10px; margin-top:6px; }

/* ==========================================================================
   Round 7 — 2 Sep 2026 (night)
   ========================================================================== */

/* --- the $ sits at the START of the box, which in Yiddish is the right.
   inset-inline-start is not understood by the older iPads here, so the
   physical side is written out for each direction. --- */
.money::before{ inset-inline-start:auto; }
html[dir="rtl"] .money::before{ right:14px; left:auto; }
html[dir="rtl"] .money input{ padding-right:32px; padding-left:14px; text-align:right; }
html[dir="ltr"] .money::before{ left:14px; right:auto; }
html[dir="ltr"] .money input{ padding-left:32px; padding-right:14px; }

/* --- the mega menu's lone last item goes under the last column, not the
   first — so the grid ends flush at the bottom --- */
.mega .mega__act:last-child:nth-child(3n+1){ grid-column:3; }

/* --- Kol Ichud keypad: centred, popups instead of a list --- */
.kpad--center{ margin-left:auto; margin-right:auto; }
.kkey-wrap{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:14px 10px; background:#fff; border:1px solid var(--line); border-radius:14px;
  color:var(--ink); text-align:center; direction:rtl; cursor:pointer; outline:none;
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.kkey-wrap:hover, .kkey-wrap.is-open, .kkey-wrap:focus{
  transform:translateY(-2px); border-color:var(--brass-2); box-shadow:var(--shadow-m);
}
.kkey-wrap--empty{ opacity:.35; cursor:default; }
.kkey-wrap--empty:hover{ transform:none; box-shadow:none; border-color:var(--line); }
.kpop{
  display:none; position:absolute; top:100%; left:50%; margin-top:10px; z-index:30;
  width:320px; max-width:86vw; transform:translateX(-50%);
  background:#fff; border:1px solid var(--line-2); border-radius:14px; padding:14px 16px;
  box-shadow:0 10px 26px rgba(28,17,12,.16), 0 30px 60px rgba(28,17,12,.12);
  text-align:start; direction:rtl; cursor:auto;
}
.kpop::before{
  content:""; position:absolute; top:-7px; left:50%; margin-left:-7px; width:14px; height:14px;
  background:#fff; border-left:1px solid var(--line-2); border-top:1px solid var(--line-2);
  transform:rotate(45deg);
}
/* the outer columns open inward so nothing runs off the screen */
.kpad .kkey-wrap:nth-child(3n+1) .kpop{ left:0; transform:none; }
.kpad .kkey-wrap:nth-child(3n+1) .kpop::before{ left:26px; }
.kpad .kkey-wrap:nth-child(3n) .kpop{ left:auto; right:0; transform:none; }
.kpad .kkey-wrap:nth-child(3n) .kpop::before{ left:auto; right:26px; margin-left:0; }
.kkey-wrap:hover .kpop, .kkey-wrap.is-open .kpop, .kkey-wrap:focus .kpop{ display:block; }
.kpop h4{ margin:0 0 .5em; display:flex; align-items:center; gap:8px; font-size:1.02rem; }
.kpop h4 .kkey{ width:30px; height:30px; font-size:.95rem; border-radius:8px; }
.kollist--pop{ grid-template-columns:1fr; gap:5px; }
.kollist--pop li{ font-size:.94rem; }
@media (hover:none){ .kkey-wrap:hover .kpop{ display:none; } .kkey-wrap.is-open .kpop{ display:block; } }

/* --- Parnassah cards: logo, website, the labelled discount --- */
.bizcard--logo{ padding-top:14px; }
.bizcard__logo{ display:block; height:56px; margin-bottom:8px; }
.bizcard__logo img{ height:56px; width:auto; max-width:160px; object-fit:contain; }
.bizcard__site{ display:inline-block; margin-top:.3em; font-size:.9rem; color:var(--brass); direction:ltr; }
.bizcard__site:hover{ color:var(--ink); text-decoration:underline; }
.bizcard .pill b{ font-weight:700; margin-inline-end:4px; }
.btnrow{ display:flex; gap:10px; flex-wrap:wrap; }

/* The hub card's list of sub-pages. The reference build writes these two
   declarations inline on the wrapper and on each link; they are the same
   rules, named so the markup stays clean. */
.card__subs{ border-block-start:1px solid var(--line); padding-block-start:10px; margin-block-start:10px; }
.card__subs a{ display:block; padding:2px 0; }
.fixlist{ display:grid; gap:8px; margin-top:10px; }
.fixrow{
  display:flex; flex-direction:column; gap:2px; padding:10px 14px; background:#fff;
  border:1px solid var(--line); border-radius:10px; color:var(--ink);
}
.fixrow:hover{ border-color:var(--brass-2); }
.fixrow span{ font-size:.85rem; color:var(--muted); }
.logo-preview{ height:60px; width:auto; margin-top:8px; border:1px solid var(--line); border-radius:8px; padding:4px; background:#fff; }

/* --- matzos: closed for the season --- */
.fnote--closed{ background:#fff3e6; border:1px solid #f1c9a2; color:#7a4a12; font-weight:600; }

/* ==========================================================================
   Homepage — a firmer first impression.
   The mark itself carries the ornament: the crown and frame from the logo,
   very faint and very large, behind the hero, with a second soft glow — so
   the first screen has depth without a stock photo. Section titles get the
   centred gold rule back; the stats band gets its corners and shadow.
   ========================================================================== */
.hero--brand{
  padding:66px 0 74px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(199,174,159,.38), rgba(199,174,159,0) 64%),
    radial-gradient(700px 300px at 15% 20%, rgba(168,139,121,.14), rgba(168,139,121,0) 60%),
    radial-gradient(700px 300px at 85% 20%, rgba(168,139,121,.14), rgba(168,139,121,0) 60%),
    var(--cream);
}
.hero--brand::before{
  content:""; position:absolute; top:-40px; left:50%; width:1100px; height:1100px; margin-left:-550px;
  background:url("/img/logo.png") center 0 / 100% auto no-repeat; opacity:.045; pointer-events:none;
  -webkit-mask-image:radial-gradient(60% 60% at 50% 30%, #000, transparent 70%);
  mask-image:radial-gradient(60% 60% at 50% 30%, #000, transparent 70%);
}
.hero--brand .hero__mark{ height:156px; }
.hero__tag{ font-size:3.4rem; font-size:clamp(2.6rem, 6.6vw, 4.3rem); }
.hero__l2{ font-size:1.45rem; font-size:clamp(1.18rem,2.7vw,1.55rem); color:var(--ink-2); }
.hero__l3{ font-size:1.06rem; letter-spacing:.01em; }
/* a little rule from the logo's frame under the three lines */
.herotext::after{
  content:""; display:block; width:120px; height:3px; margin:6px auto 0; border-radius:3px;
  background:linear-gradient(90deg,rgba(199,174,159,0),var(--brass),rgba(199,174,159,0));
}
.section > .wrap.center > h2:first-child{ position:relative; padding-bottom:16px; }
.section > .wrap.center > h2:first-child::after{
  content:""; position:absolute; bottom:0; left:50%; width:58px; height:3px; margin-left:-29px;
  border-radius:3px; background:linear-gradient(90deg,var(--brass-2),var(--brass));
}
.statsband{ border-radius:26px; box-shadow:0 18px 44px rgba(28,17,12,.22); }
.ptile{ background:linear-gradient(180deg,#fff,#fbf8f4); }
.lbox, .stripe{ box-shadow:0 12px 34px rgba(28,17,12,.10); }

/* ---- round 8 (3 Sep): the keypad card must come to the FRONT. The hovered
   key gets a transform, which starts a stacking context, so its card's
   z-index was trapped beneath the neighbouring keys. Lift the key itself. */
.kpad{ position:relative; z-index:5; }
.kkey-wrap:hover, .kkey-wrap.is-open, .kkey-wrap:focus{ z-index:40; }
/* a booklet with nothing to turn to shows no side arrows */
.book__stage--still{ gap:0; }

/* ---- round 8: header = the mark alone, bigger, drawn in toward the middle;
   the nav centred between the mark and the tools --- */
.brand__logo{ height:58px; }
@media (max-width:640px){ .brand__logo{ height:46px; } }
.nav{ margin-inline-start:0; flex:1 1 auto; justify-content:center; }
.hdr__bar{ gap:24px; }
@media (min-width:1300px){ .hdr__bar{ padding-inline:3.5vw; } }
/* the two projects without sub-pages share a cell; the orphan rule is moot */
.mega .mega__act:last-child:nth-child(3n+1){ grid-column:auto; }
.mega__pair2{ margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); }

/* ---- round 8: the links back on screen. Earlier rounds pushed the burger
   breakpoint up to 1480px to fit the long Yiddish labels BESIDE the site
   name; the name is gone and the nav is centred with room to spare, so the
   links show from 1180px and shrink a touch before that so nothing clips. */
@media (min-width:1180px){
  .nav{ display:flex; }
  .burger{ display:none; }
}
@media (min-width:1180px) and (max-width:1420px){
  .nav__link{ font-size:.9rem; padding-inline:9px; }
}

/* ==========================================================================
   Motion 2.0 — 4 Sep 2026. The client asked for animations; this layer, plus
   revealInit/countUp/pageIn/headerScroll in app.js, is all of them.

   Same contract as the first motion block above, and it is not negotiable:
   every rule that HIDES something is scoped to html.js-motion, a class only
   script adds, and only after the observer that un-hides is already built. A
   kosher filter that blocks /js/app.js, an old iPad with no
   IntersectionObserver, or a visitor who asked for reduced motion all get the
   same fully readable page — just a still one.

   Fill modes are `backwards`, never `both`. `both` leaves the last keyframe
   applied for good, and an animation outranks a normal rule, so `both` on a
   card silently disables its :hover transform.
   ========================================================================== */

@keyframes it-fade  { from{ opacity:0; } to{ opacity:1; } }
@keyframes it-pop   { from{ opacity:0; transform:translateY(14px) scale(.97); } to{ opacity:1; transform:none; } }
@keyframes it-rise-s{ from{ opacity:0; transform:translateY(9px); } to{ opacity:1; transform:none; } }
@keyframes it-drift { 0%,100%{ transform:translate3d(0,0,0) scale(1); } 50%{ transform:translate3d(-3%,2%,0) scale(1.07); } }

/* --- the entrance: hero, page head, and the fade on the content area ---

   These rules DO hide content: `backwards` fill shows the 0% keyframe, which
   is opacity 0, and CSS animations do not advance in a tab the browser never
   composites — so a hero that waits for its animation could wait for ever. The
   dead-man's switch in revealInit is what saves it: no observer callback
   within a second means js-motion comes off the <html> element entirely and
   every rule here stops matching at once. Timers run in a hidden tab; the
   rendering loop does not. */
html.js-motion #main.page-in{ animation:it-fade .32s ease-out backwards; }

html.js-motion .hero--brand .hero__mark{ animation:it-pop .72s cubic-bezier(.22,.68,.36,1) backwards; }
html.js-motion .hero--brand .hero__tag { animation:it-rise .7s cubic-bezier(.22,.68,.36,1) .10s backwards; }
html.js-motion .hero--brand .hero__l2  { animation:it-rise .7s cubic-bezier(.22,.68,.36,1) .18s backwards; }
html.js-motion .hero--brand .hero__l3  { animation:it-rise .7s cubic-bezier(.22,.68,.36,1) .26s backwards; }
html.js-motion .hero--brand .hero__cta { animation:it-rise .7s cubic-bezier(.22,.68,.36,1) .34s backwards; }
html.js-motion .hero--brand .parnes    { animation:it-rise .8s cubic-bezier(.22,.68,.36,1) .30s backwards; }

/* The brass wash behind the hero breathes. It is a gradient, not an image, so
   there is nothing to download and nothing to block first paint. */
.hero--brand::before{
  content:""; position:absolute; left:-10%; right:-10%; top:-35%; height:160%;
  pointer-events:none;
  background:radial-gradient(620px 280px at 68% 34%, rgba(199,174,159,.22), rgba(199,174,159,0) 66%);
}
html.js-motion .hero--brand::before{ animation:it-drift 22s ease-in-out infinite; }

/* --- inner pages: the dark head and its tab bar come in the same way --- */
html.js-motion .phead .crumbs { animation:it-rise-s .55s ease-out .04s backwards; }
html.js-motion .phead__row    { animation:it-rise .68s cubic-bezier(.22,.68,.36,1) .12s backwards; }
html.js-motion .tabbar        { animation:it-rise-s .55s ease-out .24s backwards; }

/* --- small blocks pop, big panels rise (the default above) --- */
html.js-motion .ptile.is-in,
html.js-motion .tile.is-in,
html.js-motion .hcard.is-in,
html.js-motion .newscard.is-in,
html.js-motion .prod.is-in,
html.js-motion .album.is-in,
html.js-motion .issuecard.is-in{ animation-name:it-pop; animation-duration:.5s; }

/* --- the header tightens up once the page moves under it --- */
.hdr{ transition:box-shadow .25s ease, background-color .25s ease; }
.hdr__bar{ transition:height .25s ease; }
.hdr .brand__logo{ transition:height .25s ease; }
.hdr.is-stuck{
  --hdr:60px;                     /* the sticky offsets read this too, so the
                                     mega menu and the donate summary follow */
  background:rgba(255,252,248,.98);
  box-shadow:0 6px 22px rgba(28,17,12,.10);
}
/* The header is the mark alone since round 8, and at 58px it very nearly
   fills the 74px bar. Shrink the two together or the logo gets clipped:
   74/58 and 60/44 both leave the same 16px of air. */
.hdr.is-stuck .brand__logo{ height:44px; }
@media (max-width:640px){ .hdr.is-stuck .brand__logo{ height:40px; } }

/* --- hover: the tiles answer back --- */
.ptile__badge img, .tile__badge img, .hcard__badge img, a.card__logo img{
  transition:transform .28s cubic-bezier(.22,.68,.36,1);
}
.ptile:hover .ptile__badge img,
.tile:hover .tile__badge img,
.hcard:hover .hcard__badge img,
a.card__logo:hover img{ transform:scale(1.09); }

/* a brass rule draws itself along the foot of a tile.
   transform-origin is `center`, which needs no RTL variant. */
.ptile, .tile{ position:relative; overflow:hidden; }
.ptile::after, .tile::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:linear-gradient(90deg,var(--brass-2),var(--brass));
  transform:scaleX(0); transform-origin:center;
  transition:transform .3s cubic-bezier(.22,.68,.36,1);
}
.ptile:hover::after, .tile:hover::after{ transform:scaleX(1); }

/* the plain links fill from the middle out */
.plink{ position:relative; overflow:hidden; z-index:0; }
.plink::before{
  content:""; position:absolute; left:0; top:0; width:100%; height:100%; z-index:-1;
  background:linear-gradient(90deg,var(--brass-soft),#fff,var(--brass-soft));
  transform:scaleX(0); transform-origin:center;
  transition:transform .28s cubic-bezier(.22,.68,.36,1);
}
.plink:hover::before{ transform:scaleX(1); }

/* light travels across the gold buttons on hover, the same sheen as the
   numbers band — one gesture used twice, not two different ideas */
.btn--gold{ position:relative; overflow:hidden; }
.btn--gold::after{
  content:""; position:absolute; top:0; bottom:0; left:0; width:45%;
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.4),rgba(255,255,255,0));
  transform:translateX(-160%); pointer-events:none;
}
.btn--gold:hover::after{ animation:it-sheen .9s ease-out 1; }

/* --- nothing above may move for a visitor who asked for stillness --- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  html.js-motion #main.page-in,
  html.js-motion .hero--brand .hero__mark,
  html.js-motion .hero--brand .hero__tag,
  html.js-motion .hero--brand .hero__l2,
  html.js-motion .hero--brand .hero__l3,
  html.js-motion .hero--brand .hero__cta,
  html.js-motion .hero--brand .parnes,
  html.js-motion .phead .crumbs,
  html.js-motion .phead__row,
  html.js-motion .tabbar,
  html.js-motion .hero--brand::before,
  .btn--gold:hover::after{ animation:none; }
  .ptile::after, .tile::after, .plink::before{ transition:none; }
}

/* the poster sits in the normal flow, so without this the hero's drifting
   wash (a positioned pseudo) would paint over it */
.parnes{ position:relative; z-index:1; }

/* ==========================================================================
   Motion 3.0 — 4 Sep 2026. The round above was all reaction: things moved
   when you scrolled to them or pointed at them. Anshel wanted motion you can
   simply SEE, the way sproutvitamins.com's hero cycles on its own. So this
   round is ambient — it runs whether or not the visitor does anything.

   Same contract as ever: anything that HIDES is scoped to html.js-motion, the
   class the dead-man's switch strips when the observer never reports. Every
   ambient loop below is decoration only — remove them all and the page reads
   identically, just still.
   ========================================================================== */

/* --- the hero showcase: their own things, changing on their own ----------
   Six scenes, 4.6s each, one 27.6s loop offset per scene by a negative delay
   set in the markup. The percentages below are cut for SIX — heroShow() pads
   the list by repetition rather than shortening it, so this stays in step. */
/* The slot is 100/6 = 16.667%. The fade-out deliberately runs PAST it, to
   19.7%, so the outgoing scene is still going while the next one comes up —
   that is what makes it a cross-fade. Ending exactly on the slot boundary
   leaves a 20ms hole and reads as a hard cut. The scale drifts 1.055 → 1.0
   across the whole visible span: the slow zoom, done in one property. */
@keyframes sc-scene{
  0%     { opacity:0; transform:scale(1.055); }
  3%     { opacity:1; }
  16.7%  { opacity:1; }
  19.7%  { opacity:0; transform:scale(1); }
  100%   { opacity:0; transform:scale(1); }
}
.showcase{
  position:relative; z-index:1; width:100%; max-width:430px;
  margin-inline:auto; height:352px;
}
.showcase__s{
  position:absolute; left:0; top:0; right:0; bottom:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px; text-decoration:none; color:var(--ink-3);
  opacity:0;                     /* the fallback below decides what shows */
}
/* If the animation never runs — a browser that ignores it, a tab the browser
   never composites — one scene still stands there. An empty hero column is
   not an acceptable resting state. */
.showcase__s:first-child{ opacity:1; }
html.js-motion .showcase__s{
  animation:sc-scene var(--sc-dur,27.6s) linear infinite;
}
.showcase__f{
  flex:1 1 auto; min-height:0; width:100%;
  display:flex; align-items:center; justify-content:center;
}
.showcase__f img{
  max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain;
  border-radius:12px;
  filter:drop-shadow(0 16px 30px rgba(28,17,12,.20));
}
.showcase__c{
  flex:none; font-family:var(--font-display); font-weight:700;
  font-size:1.06rem; color:var(--ink-3); text-align:center;
}
.showcase__s:hover .showcase__c{ color:var(--brass); }
@media (max-width:900px){ .showcase{ height:280px; max-width:340px; } }

/* --- gold motes drifting up through the hero -----------------------------
   Eight spans, no images, no script. They are pure ornament, so they are
   invisible unless js-motion says the animations are actually running —
   otherwise they would sit there as eight stray dots. */
@keyframes it-mote{
  0%   { opacity:0; transform:translateY(0) scale(.6); }
  12%  { opacity:.75; }
  70%  { opacity:.45; }
  100% { opacity:0; transform:translateY(-190px) scale(1.15); }
}
.motes{ display:none; }
html.js-motion .motes{
  display:block; position:absolute; left:0; right:0; top:0; bottom:0;
  pointer-events:none; overflow:hidden;
}
.motes i{
  position:absolute; bottom:-14px; width:7px; height:7px; border-radius:50%;
  background:radial-gradient(circle at 35% 32%, #e6d3c4, var(--brass));
  opacity:0; animation:it-mote 13s linear infinite;
}
.motes i:nth-child(1){ left:6%;  animation-duration:14s; animation-delay:0s;    }
.motes i:nth-child(2){ left:19%; animation-duration:17s; animation-delay:-3.5s; width:5px; height:5px; }
.motes i:nth-child(3){ left:31%; animation-duration:12s; animation-delay:-7s;   }
.motes i:nth-child(4){ left:44%; animation-duration:19s; animation-delay:-1.5s; width:4px; height:4px; }
.motes i:nth-child(5){ left:58%; animation-duration:15s; animation-delay:-9s;   }
.motes i:nth-child(6){ left:70%; animation-duration:13s; animation-delay:-5s;   width:5px; height:5px; }
.motes i:nth-child(7){ left:83%; animation-duration:18s; animation-delay:-11s;  }
.motes i:nth-child(8){ left:93%; animation-duration:16s; animation-delay:-2.5s; width:4px; height:4px; }

/* --- the waves actually move now -----------------------------------------
   The gold ribbon under every page head has been a still SVG since the
   mockup. Doubling its width and sliding it one half-width leftwards makes it
   run for ever with no seam, and costs one transform on the compositor. */
@keyframes it-wave{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ⚠️ Two RTL traps in four lines, both hit.
   (1) `inset-inline:0` on the original pins BOTH edges, and an absolutely
   positioned box cannot honour left, right and width at once — one is dropped,
   and which one depends on the writing direction.
   (2) The release must be the PHYSICAL right, not `inset-inline-end`. In RTL
   the inline end IS the left, so releasing it anchors the strip to the right
   and it grows leftwards — and `translateX(-50%)` then walks the whole thing
   off the page instead of scrolling the tile behind it. Measured: the wave
   simply vanished after half a cycle in Yiddish, and Yiddish is the default. */
html.js-motion .phead::after{
  left:0; right:auto; width:200%;
  background-repeat:repeat-x; background-size:50% 100%;
  animation:it-wave 26s linear infinite;
}

/* The homepage hero had a bare hairline where the inner pages have a ribbon.
   It gets a ribbon too — but drawn in brass on nothing, not the page-head's
   filled wave: the hero is cream and the section under it is cream, so a
   filled wave would be invisible and only the ribbon reads. */
.hero--brand::after{
  height:26px; bottom:0; top:auto; opacity:1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 150 2 330 22 T 660 26 T 990 16 T 1200 28' fill='none' stroke='%23a88b79' stroke-opacity='.55' stroke-width='3'/%3E%3Cpath d='M0 44 Q 180 16 380 34 T 720 38 T 1040 28 T 1200 42' fill='none' stroke='%23c7ae9f' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E") repeat-x bottom;
  background-size:50% 100%;
  -webkit-mask-image:none; mask-image:none;
}
html.js-motion .hero--brand::after{
  left:0; right:auto; width:200%;
  animation:it-wave 30s linear infinite;
}

/* --- the numbers band keeps catching the light --------------------------- */
html.js-motion .statsband.is-in::after{ animation:it-sheen 9s ease-out 1.2s infinite; }
/* and its button, so the one thing to press is the one thing that glints */
html.js-motion .statsband .btn--gold::after{ animation:it-sheen 7s ease-out 2.5s infinite; }

/* --- the thirteen marks breathe ------------------------------------------
   Long periods and different phases, so the grid is never in lockstep — that
   is the difference between alive and blinking. */
html.js-motion .ptile__badge img,
html.js-motion .ptile__badge .emblem{ animation:it-float 7.5s ease-in-out infinite; }
html.js-motion .ptile:nth-child(3n+2) .ptile__badge img,
html.js-motion .ptile:nth-child(3n+2) .ptile__badge .emblem{ animation-duration:9s;   animation-delay:-2.2s; }
html.js-motion .ptile:nth-child(3n+3) .ptile__badge img,
html.js-motion .ptile:nth-child(3n+3) .ptile__badge .emblem{ animation-duration:6.5s; animation-delay:-4.1s; }
html.js-motion .ptile:nth-child(4n+1) .ptile__badge img,
html.js-motion .ptile:nth-child(4n+1) .ptile__badge .emblem{ animation-delay:-1.3s; }
/* pointing at one stops it fidgeting and lifts it instead */
.ptile:hover .ptile__badge img,
.ptile:hover .ptile__badge .emblem{ animation-play-state:paused; }

/* --- the gilyon cover in the stripe drifts, very slightly ---------------- */
@keyframes it-sway{
  0%,100%{ transform:translateY(0) rotate(-.5deg); }
  50%    { transform:translateY(-9px) rotate(.5deg); }
}
html.js-motion .issuecard--hero .issuecard__thumb{ animation:it-sway 9s ease-in-out infinite; }
.issuecard--hero:hover .issuecard__thumb{ animation-play-state:paused; }

/* --- stillness, for anyone who asked for it ------------------------------ */
@media (prefers-reduced-motion:reduce){
  html.js-motion .showcase__s{ animation:none; opacity:0; }
  html.js-motion .showcase__s:first-child{ opacity:1; }
  html.js-motion .motes{ display:none; }
  html.js-motion .phead::after,
  html.js-motion .hero--brand::after{ width:100%; animation:none; }
  html.js-motion .statsband.is-in::after,
  html.js-motion .statsband .btn--gold::after,
  html.js-motion .ptile__badge img,
  html.js-motion .ptile__badge .emblem,
  html.js-motion .issuecard--hero .issuecard__thumb{ animation:none; }
}

/* Thirteen simultaneously floating marks is thirteen composited layers. That
   is nothing on a desktop and something on the six-year-old iPads this kehilla
   actually reads on, where the tile grid is three across and all of them are
   on screen at once. The showcase, the motes and the waves carry the movement
   there; the marks sit still. */
@media (max-width:640px){
  html.js-motion .ptile__badge img,
  html.js-motion .ptile__badge .emblem{ animation:none; }
}

/* ==========================================================================
   Parnas HaChodesh — size it by HEIGHT, and let the office set it (6 Sep)

   The office uploads a page rendered from a PDF. The Elul poster is
   1650x2550, and `.parnes__pics img{width:100%}` in the ~460px hero column
   drew it 711px tall — the poster swallowed the hero, which is exactly what
   the client reported. Width is the wrong dimension to constrain for a
   portrait page: cap the HEIGHT and let the width follow, and the same rule
   then holds for a landscape poster next month.

   --parnes-h is the one knob. The office picks a name for it in the back end
   (the `size` field on the Parnas HaChodesh screen); an unset value lands on
   the medium default, so the poster already on the site comes down to size
   without anyone touching anything.
   ========================================================================== */
.parnes{ --parnes-h:340px; }
.parnes--sm{ --parnes-h:230px; }
.parnes--md{ --parnes-h:340px; }
.parnes--lg{ --parnes-h:460px; }
.parnes--xl{ --parnes-h:600px; }

/* min-height reserves the slot. `width:auto` is what lets the card hug the
   poster instead of stretching it, but an <img> with no intrinsic size yet —
   and this one is a 1.5MB page render, so there IS a gap before it arrives —
   collapses to nothing under `width:auto`, and the whole hero reflowed when
   it landed. Reserving the height costs nothing for a portrait poster, which
   meets the cap exactly, and it also leaves a framed empty slot rather than a
   collapsed sliver if the picture ever 404s. */
.parnes__pics{
  justify-items:center;
  min-height:340px;
  min-height:var(--parnes-h,340px);
}
.parnes__pics img{
  width:auto; max-width:100%; height:auto;
  max-height:340px;                 /* static fallback first — old Safari */
  max-height:var(--parnes-h,340px);
}
/* two posters share the row, so each gets a shorter allowance */
.parnes--two .parnes__pics img{
  max-height:272px;
  max-height:calc(var(--parnes-h,340px) * .8);
}

/* Phones: scale the whole ladder down rather than clamping it flat, so
   "small" stays smaller than "large" instead of everything meeting in the
   middle. Must come after the size classes — same specificity, later wins. */
@media (max-width:900px){
  .parnes{ --parnes-h:280px; }
  .parnes--sm{ --parnes-h:200px; }
  .parnes--md{ --parnes-h:280px; }
  .parnes--lg{ --parnes-h:360px; }
  .parnes--xl{ --parnes-h:440px; }
}

/* Card and expiry inputs read left-to-right even on the Yiddish side: a PAN
   with spaces, and "MM/YY" with its slash, both reorder under RTL because the
   digits are bidi-neutral and the separator floats. text-align:right keeps the
   field itself sitting where an RTL reader expects it. Applies to all four
   forms that carry these names — donate, checkout, the matzo order and the
   nigun sponsorship — so none of them can drift apart. */
input[name="cardNumber"],
input[name="cardExp"],
input[name="cardCvv"]{
  direction:ltr;
  text-align:right;
}
html[dir="ltr"] input[name="cardNumber"],
html[dir="ltr"] input[name="cardExp"],
html[dir="ltr"] input[name="cardCvv"]{ text-align:left; }

/* ==========================================================================
   Client round, 8 Oct 2026 — the brass rule, the intro on two lines, and a
   full-screen booklet you can make BIGGER than the screen and drag around.
   ========================================================================== */

/* the little rule under the hero lines — he asked for it to go */
.herotext::after{ display:none; }

/* "פילצאליגע פראיעקטן, איין ציל." bold on its own line, the rest plain under it */
.intro2 b{ display:block; color:var(--ink); font-weight:700; margin-bottom:.15em; }

/* --- the full-screen booklet ------------------------------------------
   It used to come out SMALLER than the inline copy: a two-page spread was
   capped at 48vw a page and 100vh-190px tall, which on a laptop is a pair of
   narrow strips. Now one variable, --z, sets the size — 100% is "as tall as
   the screen", and the + and − buttons take it from 50% to 400%. Past 100%
   the page is bigger than the window, so the layer scrolls both ways and the
   mouse drags it (wirePan). Fingers already pan a scrolling layer. */
.book--full{ --z:1; }
.viewer__in{ max-width:none; width:max-content; min-width:100%; margin:0 auto; }
.book--full .book__stage{ width:max-content; margin:0 auto; }
.book--full .book__sheet{ width:max-content; max-width:none; }
.book--full .book__pg,
.book--full .book__sheet--single .book__pg{ max-width:none; flex:none; }
.book--full .book__pg img{
  max-height:none; max-width:none; width:auto;
  height:calc(100vh - 170px);                     /* static fallback first */
  height:calc((100vh - 170px) * var(--z,1));
  -webkit-user-drag:none; user-select:none; -webkit-user-select:none; cursor:grab;
}
.viewer.is-grabbing, .viewer.is-grabbing .book__pg img{ cursor:grabbing; }
.book__zoom{ display:inline-flex; align-items:center; gap:6px; }
.book__zoom button{
  width:34px; height:34px; border-radius:100px; cursor:pointer;
  border:1px solid rgba(255,255,255,.4); background:rgba(255,255,255,.14);
  color:#fff; font-size:1.25rem; line-height:1;
}
.book__zoom button:hover{ background:rgba(255,255,255,.26); }
.book__zoom b{ color:#fff; min-width:3.4em; text-align:center; font-size:.9rem; }
@media (max-width:620px){
  /* phones: size by width instead, the same variable */
  .book--full .book__pg img{ height:auto; width:96vw; width:calc(96vw * var(--z,1)); }
}

/* ==========================================================================
   9 Oct 2026 — the full-screen booklet, round two (office ticket Q9SP8)

   1. OFF-CENTRE on a wide screen. `.book{max-width:1020px;margin:0 auto}` —
      written for the inline booklet — also capped the full-screen copy. At
      1920px a two-page spread is ~1430px wide, it overflowed the 1020px box,
      and in a right-to-left page the overflow goes LEFT: measured, the spread's
      centre sat at 757 instead of 960. The full-screen book now takes the width
      of what it holds (never less than the window), so `margin:auto` on the
      stage actually centres it, at 100% and at every zoom.
   2. THE CONTROLS SCROLLED AWAY once zoomed. The page count, − 100% +, PDF and
      "back" now float in a bar pinned to the bottom of the screen, and the two
      turn arrows are pinned to the screen's edges — over the gilyon, always
      reachable, whatever the zoom or wherever it has been dragged.
   Physical left/right with a [dir] override, not inset-inline-*: the logical
   properties need Safari 14.1, and the office's readers are on older iPads.
   ========================================================================== */
.book--full{ max-width:none; width:max-content; min-width:100%; margin:0; padding-bottom:110px; }

.book--full .book__turn{
  position:fixed; top:50%; margin-top:-26px; z-index:203;
  box-shadow:0 4px 18px rgba(0,0,0,.35);
}
html[dir="rtl"] .book--full .book__turn--prev{ right:14px; left:auto; }
html[dir="rtl"] .book--full .book__turn--next{ left:14px; right:auto; }
html[dir="ltr"] .book--full .book__turn--prev{ left:14px; right:auto; }
html[dir="ltr"] .book--full .book__turn--next{ right:14px; left:auto; }
.book--full .book__turn.is-off{ display:none; }   /* nothing to turn to: no ghost button on the page */

.book--full .book__nav{
  position:fixed; bottom:66px; left:50%; z-index:203; margin:0;
  -webkit-transform:translateX(-50%); transform:translateX(-50%);
  background:rgba(21,12,7,.72); padding:3px 14px; border-radius:100px;
}
.book--full .book__tools{
  position:fixed; bottom:12px; left:50%; z-index:203; margin:0; flex-wrap:nowrap;
  -webkit-transform:translateX(-50%); transform:translateX(-50%);
  background:rgba(21,12,7,.86); padding:7px 10px; border-radius:100px;
  box-shadow:0 6px 24px rgba(0,0,0,.45); white-space:nowrap;
}
@media (max-width:620px){
  .book--full .book__tools{ bottom:8px; padding:6px 8px; gap:6px; }
  .book--full .book__tools .btn{ padding:.45em .8em; font-size:.8rem; }
  .book--full .book__nav{ bottom:58px; }
  .book--full .book__turn{ width:40px; height:40px; margin-top:-20px; }
}

/* ==========================================================================
   Client round — 18 Oct 2026
   ========================================================================== */
/* the second project in a shared mega-menu cell (חתן פעקעדזש under הוצאת
   ספרים) is laid out exactly like the first: logo beside the name, flush at
   the same edge. It was an inline link, so its logo broke onto a line of its
   own and the whole item sat off to one side. */
.mega__pair2 > a{ display:flex; align-items:center; gap:9px; font-weight:600; color:var(--ink); font-size:.95rem; }

/* store cards: the cover and the name open the album; "זעה" + "קויף יעצט" */
a.prod__img{ color:var(--brass-2); text-decoration:none; }
.prod__t a{ color:inherit; text-decoration:none; }
.prod__t a:hover{ color:var(--brass); }
.prod__f{ flex-wrap:wrap; }
.prod__btns{ display:flex; flex-wrap:wrap; margin:-3px; }
.prod__btns .btn{ white-space:nowrap; margin:3px; }     /* margins, not gap: old iPads */

/* 20 Oct 2026: the V'Levyim kuntres on the album's page in the store */
.kuntres{ margin:18px 0 6px; }
.kuntres h3{ margin:0 0 8px; color:var(--brass); }
.album__more{ display:inline-block; margin:0 6px; font-weight:700; font-size:.9rem; color:var(--brass); vertical-align:middle; }


/* ==========================================================================
   Client round 21 Oct
   ========================================================================== */
/* a password box had no style at all — the browser's tiny default ("the box
   is too small"); the same for search and web-address boxes */
input[type=password],input[type=search],input[type=url]{
  width:100%; padding:.7em .9em; border:1px solid var(--line-2); border-radius:12px;
  background:#fff; color:var(--text); font:inherit; font-size:.96rem;
}

/* "געשעפט" opens a small menu: אלבומס · מיין באקס · טאהש מצות · ספרים.
   Fixed, because the bar clips what hangs out of it; app.js lines it up
   under the button. */
.ddmenu{
  position:fixed; top:calc(var(--hdr) + 4px); left:0; z-index:70; display:none;
  min-width:220px; padding:8px; background:var(--paper); border:1px solid var(--line);
  border-radius:14px; box-shadow:var(--shadow-l);
}
.nav__item.is-open .ddmenu{ display:block; }
.ddmenu a{
  display:-webkit-box; display:-webkit-flex; display:flex; -webkit-box-align:center; -webkit-align-items:center; align-items:center;
  -webkit-box-pack:justify; -webkit-justify-content:space-between; justify-content:space-between;
  padding:.6em .85em; border-radius:9px; font-weight:600; color:var(--ink); white-space:nowrap;
}
.ddmenu a:hover, .ddmenu a:focus{ background:var(--cream); color:var(--ink); }
.navbadge{
  display:inline-block; min-width:18px; height:18px; line-height:18px; padding:0 5px; border-radius:100px;
  background:var(--brass); color:#fff; font-size:.68rem; font-weight:700; text-align:center; margin:0 .35em;
}
.drawer .navbadge{ vertical-align:1px; }

/* the older gilyonos: a box that says they are for members */
.gmore{ display:-webkit-box; display:-webkit-flex; display:flex; -webkit-box-align:center; -webkit-align-items:center; align-items:center;
  margin-top:22px; }
.gmore > .emblem, .gmore > .megalogo{ margin:0 0 0 16px; }
html[dir=ltr] .gmore > .emblem, html[dir=ltr] .gmore > .megalogo{ margin:0 16px 0 0; }
.gmore p{ margin:0 0 8px; }
.gmore .btn{ margin:2px 0; }

/* a member's archive — the few everyone sees, then this heading, then his */
.gmem__h{ display:-webkit-box; display:-webkit-flex; display:flex; -webkit-box-align:center; -webkit-align-items:center; align-items:center;
  margin:34px 0 16px; padding:14px 18px; border-radius:14px; background:var(--brass-soft); color:var(--ink); font-size:1.12rem; }
.gmem__h .emblem, .gmem__h .megalogo{ margin:0 0 0 12px; }
html[dir=ltr] .gmem__h .emblem, html[dir=ltr] .gmem__h .megalogo{ margin:0 12px 0 0; }

/* ---------------------------------------------------------------------------
   Paying. One row of ways to pay, then one card. Built out of the same pieces
   as .tier and .check so it sits in the page without a second visual language,
   and it reads with no script at all: with nothing hidden, every field is
   simply visible and the server works out what it needed.
   --------------------------------------------------------------------------- */
/* The processors read as one row of choices rather than a column of five:
   they share the row equally and shrink together, and only on a phone do
   they fall into two rows instead of squeezing to nothing. */
/* 1 Dec 2026: room between the box above (how often) and the payment cards */
* + .pay{ margin-top:18px; }
.pay{ display:-webkit-box; display:-webkit-flex; display:flex; -webkit-flex-wrap:wrap; flex-wrap:wrap;
  gap:9px; margin-block-end:16px; }
.pay__opt{
  display:-webkit-box; display:-webkit-flex; display:flex;
  -webkit-box-align:center; -webkit-align-items:center; align-items:center; gap:8px;
  padding:.66em .7em; border:1px solid var(--line-2); border-radius:var(--radius-s);
  background:#fff; cursor:pointer; min-width:0;
  /* three to a row, so the five processors read as 3 and 2 rather than five
     squeezed names; they do not grow to fill the short row, so the second
     row's two are the same size as the first row's three */
  -webkit-flex:0 1 calc(33.333% - 6px); flex:0 1 calc(33.333% - 6px);
}
.pay__opt:hover{ border-color:var(--brass); }
.pay__opt.is-on{ border-color:var(--brass); background:#fffcf7; box-shadow:0 0 0 3px rgba(199,174,159,.16); }
.pay__opt input{ accent-color:var(--brass); width:17px; height:17px; flex:none; }
.pay__name{ font-size:.92rem; font-weight:600; color:var(--ink); min-width:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pay__logos{ margin-inline-start:auto; display:-webkit-box; display:-webkit-flex; display:flex;
  -webkit-box-align:center; -webkit-align-items:center; align-items:center; flex:none; }
.pay__logo{ height:19px; width:auto; max-width:74px; object-fit:contain; }
/* in one row there is no room for a badge beside every name: the logos go
   first, and on a phone the row itself breaks in two */
@media(max-width:860px){ .pay__logos{ display:none; } }
@media(max-width:470px){ .pay__opt{ -webkit-flex:0 1 calc(50% - 5px); flex:0 1 calc(50% - 5px); } }

.paycard{ display:grid; gap:12px; padding:14px; border:1px dashed var(--line-2);
  border-radius:var(--radius-s); background:var(--cream); }
.paycard input{ font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.form__row--3{ grid-template-columns:repeat(3,1fr); }
.paysecure{ margin-block-start:12px; }
.paysecure[hidden], .paycard[hidden], [data-paycvv][hidden]{ display:none; }

@media (max-width:560px){
  .pay{ grid-template-columns:1fr; }
  .form__row--3{ grid-template-columns:1fr 1fr; }
  .form__row--3 > :last-child{ grid-column:1 / -1; }
}

/* The word that says the box took it — the office's other site puts it at the
   top of the page, green, and takes it away again on its own. */
.cart-toast{
	position:fixed; inset-block-start:86px; inset-inline:0; margin-inline:auto;
	z-index:80; inline-size:max-content; max-inline-size:calc(100vw - 32px);
	display:flex; align-items:center; gap:10px;
	padding:12px 18px; border-radius:999px;
	background:#2f6b47; color:#fff; box-shadow:var(--shadow-m);
	font-size:.95rem; font-weight:600;
	opacity:0; transform:translateY(-10px); transition:opacity .25s ease, transform .25s ease;
	pointer-events:none;
}
.cart-toast.is-on{ opacity:1; transform:translateY(0); pointer-events:auto; }
.cart-toast__ic{ inline-size:20px; block-size:20px; flex:0 0 auto; }
.cart-toast__a{ color:#fff; text-decoration:underline; font-weight:600; white-space:nowrap; }
.cart-toast__a:hover{ color:#fff; opacity:.85; }
@media (max-width:560px){
	.cart-toast{ inset-block-start:auto; inset-block-end:18px; font-size:.88rem; padding:11px 15px; }
}

/* a record's contents, as the reference site sets them: the list does the
   numbering, and a folder on a double album is a fold */
.tracklist{ margin:.4em 0 1em; padding-inline-start:1.5em; }
.tracklist li{ margin:.18em 0; }
/* #51 (30 Nov 2026): the list of tracks or folders on an album's page, in the
   book face and a little smaller */
.tracklist{ font-family:var(--font-display); font-size:.95rem; line-height:1.55; }
.tracklist li::marker{ color:var(--brass); font-variant-numeric:tabular-nums; }
.tracklist__n{ font-family:var(--font-body); font-size:.8em; color:var(--ink-2); opacity:.75; }
.trackfold{ margin:6px 0; border:1px solid var(--line); border-radius:10px; padding:0 12px; background:#fff; }
.trackfold > summary{ cursor:pointer; padding:.55em 0; font-weight:600; }
.trackfold > .tracklist{ margin-top:0; }

/* --- the open-amount box on /donate ------------------------------------
   It is a text box now, so a phone opens the decimal pad for it — and every
   rule that had ever given it room was written for input[type=number], so
   all four of them quietly stopped applying and it went back to being the
   thin slot it was twice complained about. Written for the box itself this
   time, with the room the $ needs kept on whichever side it sits. */
.tier__extra .money{ width:100%; max-width:280px; min-width:200px; }
.tier__extra .money input{
  height:auto; min-height:56px; font-size:1.2rem; font-weight:600;
  padding-block:.85em;
}
.tier__extra .money::before{ font-size:1.1rem; }
html[dir="rtl"] .tier__extra .money input{ padding-right:34px; padding-left:16px; }
html[dir="ltr"] .tier__extra .money input{ padding-left:34px; padding-right:16px; }

/* the second pay button, under the form itself */
.donend{ margin-block-start:18px; display:flex; justify-content:center; }
.donend .btn{ min-width:min(320px, 100%); }

/* ---- 24 Nov 2026: the mobile menu. Once the nav collapses, the tools are
   pushed to the far end of the bar, so in Yiddish the burger sits flush left
   (the office asked for that). The page behind the open drawer does not
   scroll. */
@media (max-width:1179px){
  .hdr__tools{ margin-inline-start:auto; }
}
body.drawer-open{ overflow:hidden; }
.drawer__head .brand__logo{ height:44px; }


/* Date fields (25 Nov 2026). The browser's own date field read backwards in a
   right-to-left page (25-11-2026 drawn right to left, its calendar opening at
   the far edge) and its digits came out pale like a placeholder. The date
   itself is written left to right, in the page's ink; clicking anywhere in
   the box opens the calendar (site.js), and the Hebrew date shows under it. */
input[type=date]{ direction:ltr; text-align:start; color:var(--text); min-height:2.75em; cursor:pointer; }
html[dir=rtl] input[type=date]{ text-align:right; }
input[type=date]::-webkit-datetime-edit,
input[type=date]::-webkit-datetime-edit-fields-wrapper,
input[type=date]::-webkit-datetime-edit-text,
input[type=date]::-webkit-datetime-edit-day-field,
input[type=date]::-webkit-datetime-edit-month-field,
input[type=date]::-webkit-datetime-edit-year-field{ color:var(--text); }
input[type=date]::-webkit-calendar-picker-indicator{ cursor:pointer; opacity:.75; }
.field .datehe{ font-size:.85rem; color:var(--muted); direction:rtl; min-height:1.2em; }

/* The Bootstrap date picker on the public site (site.js loads it). The
   standalone stylesheet brings what the widget needs without the rest of
   Bootstrap; these lines make it look like this site. */
input.it-date{ direction:ltr; cursor:pointer; color:var(--text); }
html[dir=rtl] input.it-date{ text-align:right; }
.bootstrap-datetimepicker-widget{ direction:ltr; font-family:inherit; font-size:.95rem; z-index:50;
  background:#fff; border:1px solid var(--line-2); border-radius:var(--radius-s); box-shadow:0 10px 30px rgba(0,0,0,.12); padding:8px; }
.bootstrap-datetimepicker-widget table{ border-collapse:collapse; }
.bootstrap-datetimepicker-widget table td.day,.bootstrap-datetimepicker-widget table th{ height:36px; width:38px; }
.bootstrap-datetimepicker-widget table td.active,.bootstrap-datetimepicker-widget table td.active:hover{ background:var(--brass); color:#fff; text-shadow:none; }
.bootstrap-datetimepicker-widget table td.today:before{ border-bottom-color:var(--brass); }
.bootstrap-datetimepicker-widget table td.day:hover,.bootstrap-datetimepicker-widget table th.picker-switch:hover,.bootstrap-datetimepicker-widget table th.prev:hover,.bootstrap-datetimepicker-widget table th.next:hover{ background:#f5efe9; border-radius:6px; }
.bootstrap-datetimepicker-widget ul{ list-style:none; margin:0; padding:0; }

/* Inbox #42 (25 Nov 2026): checkout — the order box is half as wide as before
   (a quarter of the row, the form gets the rest) and stays in view while the
   form scrolls. The aside stretches to the form's height so the sticky box
   inside it has room to travel. */
.split--chk{ grid-template-columns:minmax(0,3fr) minmax(250px,1fr); gap:26px; }
.split--chk > aside{ align-self:stretch; }
.split--chk .summary{ position:-webkit-sticky; position:sticky; top:calc(var(--hdr) + 18px); }
@media(max-width:820px){ .split--chk{ grid-template-columns:1fr; } .split--chk .summary{ position:static; } }

/* Inbox #42 (25 Nov 2026): every way of paying on one row — card, OJC,
   Matbia, Pledger, Donors Fund. Each choice is a small tile: the logo on
   top, the button and the name under it, so five fit side by side without
   cutting the names. Only on a phone do they fall into rows of three. */
.pay{ -webkit-flex-wrap:nowrap; flex-wrap:nowrap; gap:8px; }
.pay__opt{
  -webkit-flex:1 1 0; flex:1 1 0; min-width:0;
  display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:'logo logo' 'dot name';
  align-items:center; justify-items:start; column-gap:6px; row-gap:5px; padding:.55em .55em;
}
.pay__opt input{ grid-area:dot; width:15px; height:15px; margin:0; }
.pay__name{ grid-area:name; font-size:.84rem; }
.pay__logos{ grid-area:logo; margin:0; justify-self:center; display:flex; height:22px; }
.pay__logo{ height:22px; max-width:100%; }
@media(max-width:860px){ .pay__logos{ display:flex; } }
@media(max-width:600px){
  .pay{ -webkit-flex-wrap:wrap; flex-wrap:wrap; }
  .pay__opt{ -webkit-flex:0 1 calc(33.333% - 6px); flex:0 1 calc(33.333% - 6px); }
}

/* coupon box (26 Nov 2026): cart and checkout summary */
.coupon{margin:12px 0}
.coupon__form{display:flex;gap:8px;align-items:center}
.coupon__form input[type=text]{flex:1;min-width:0;height:40px;padding:6px 10px;border:1px solid #d1d5db;border-radius:8px;text-transform:uppercase}
.coupon__on{display:flex;justify-content:space-between;gap:8px;font-weight:600}
.coupon__x{background:none;border:0;padding:0;color:#6b7280;text-decoration:underline;cursor:pointer;font-size:13px}
.coupon__msg{font-size:13px;margin-top:6px}
.coupon__msg--err{color:#b91c1c}
.coupon__msg--ok{color:#15803d}

/* #53 (29 Nov 2026): coupon as a small "have a code?" line that opens;
   on the cart it sits under the list, out of the dark bar */
.coupon__ask > summary{ cursor:pointer; list-style:none; display:inline-block; color:var(--ink-3); font-size:.92rem; text-decoration:underline; text-underline-offset:3px; }
.coupon__ask > summary::-webkit-details-marker{ display:none; }
.coupon__ask[open] > summary{ margin-bottom:8px; }
.cartcoupon{ display:flex; justify-content:flex-end; margin-top:14px; }
.cartcoupon .coupon{ margin:0; width:min(100%,360px); }
.cartcoupon .coupon__ask > summary{ display:block; text-align:end; }
.cartq__join{ color:var(--brass-2); font-weight:700; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; margin-inline-start:6px; }
.cartq__join:hover{ color:#fff; }
/* checkout summary: the way to become a member, for one who is not */
.summary__join{ margin-top:14px; padding:12px 14px; border:1px dashed var(--line-2); border-radius:var(--radius-s); background:var(--cream); }
.summary__join p{ margin:0 0 8px; }

/* --- #57 (30 Nov 2026): an address is written in English. City, state and zip
   share one line, left to right (City | State | Zip) on every screen; the
   labels stay in the page's language. --- */
.form__row--csz{ grid-template-columns:2fr 1fr 1fr; }
html[dir="rtl"] .form__row--csz{ direction:ltr; }
html[dir="rtl"] .form__row--csz label{ direction:rtl; text-align:right; display:block; }
@media (max-width:560px){
  .form__row--csz{ grid-template-columns:2fr 1fr 1fr; gap:8px; }
  .form__row--csz > :last-child{ grid-column:auto; }
}
input[dir="ltr"], textarea[dir="ltr"]{ text-align:left; }
/* a box that turns itself round as he types (site.js, autodir) */
input[dir="rtl"], textarea[dir="rtl"]{ text-align:right; }

/* --- #57: the $ sits on the LEFT of a money box in both languages, and the
   figure is typed left to right after it. --- */
html[dir="rtl"] .money::before, html[dir="ltr"] .money::before{ left:14px; right:auto; }
html[dir="rtl"] .money input, html[dir="ltr"] .money input{ padding-left:32px; padding-right:14px; text-align:left; direction:ltr; }
html[dir="rtl"] .tier__extra .money input, html[dir="ltr"] .tier__extra .money input{ padding-left:34px; padding-right:16px; }

/* --- #66: an email address is typed left to right everywhere on the site.
   An empty box keeps its Yiddish hint on the right until one starts typing. --- */
input[type=email]{ direction:ltr; text-align:left; }
html[dir="rtl"] input[type=email][placeholder]:not([placeholder=""]):placeholder-shown{ direction:rtl; text-align:right; }

/* #77 (2 Dec 2026): the business forms (add / fix). The boxes of a row line
   up along their bottom edge, so a label that takes two lines does not push
   its box lower than the one beside it; and every box is the same height. */
.form--even .form__row{ align-items:end; }
.form--even .field input:not([type=file]), .form--even .field select{ height:52px; box-sizing:border-box; }
.form--even .field input[type=file]{ padding:10px; border:1px dashed var(--line, #d6c7b0); border-radius:12px; background:#fff; }
.form--even .bizfix__logo{ margin:2px 0 4px; }

/* #77 (2 Dec 2026): the card check under the card, expiry and CVV boxes */
.paycard .ccnote{ display:block; font-size:.8rem; min-height:0; }
.paycard .ccnote--bad{ color:var(--err, #dc2626); }
.paycard .ccnote--ok{ color:#16a34a; font-weight:600; }
.paycard .field input.is-bad, .paycard .field select.is-bad{ border-color:var(--err, #dc2626); }
.paycard .field input.is-good{ border-color:#16a34a; }

/* #77 item 35 (2 Dec 2026): Kol Ichud posters opened large get + 100% −
   and "back to small" (site.js), the same as the blettel read big. Bigger
   than the screen, the layer scrolls; the buttons stay where they are. */
.lightbox__tools{
  position:fixed; inset-block-start:18px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; align-items:center; gap:10px; padding:6px 12px; border-radius:100px;
  background:rgba(21,12,7,.78); border:1px solid rgba(255,255,255,.18);
}
.lightbox--zoom{ display:block; overflow:auto; padding:72px 26px 80px; }
.lightbox--zoom img{ display:block; margin:0 auto; cursor:grab; -webkit-user-drag:none; user-select:none; -webkit-user-select:none; }
.lightbox--zoom.is-grabbing, .lightbox--zoom.is-grabbing img{ cursor:grabbing; }
.lightbox--zoom .lightbox__x, .lightbox--zoom .lightbox__nav, .lightbox--zoom .lightbox__cap{ position:fixed; z-index:2; }
.lightbox--zoom .lightbox__cap{ left:0; right:0; }

/* #77 item 49 (2 Dec 2026): a form that went through shows only its notice */
.form:has(> .formmsg--done) > :not(.formmsg){display:none !important}
.form > .formmsg--done{margin:0}
