/* The original Canva logo retains its proportions; the frame trims empty canvas only. */
.brand-logo-frame{position:relative;display:block;width:184px;height:64px;overflow:hidden;background:var(--cream);isolation:isolate}
.brand .brand-logo-frame img{position:absolute;inset:50% auto auto 50%;width:184px;height:auto;max-width:none;transform:translate(-50%,-50%);mix-blend-mode:multiply}
.header-inner{min-height:80px}
.brand{min-width:0}
.site-header,body[data-page=home] .site-header{background:var(--cream);color:#361322;border-color:#e6e2da}
body[data-page=home] .desktop-nav a[aria-current=page],body[data-page=home] .desktop-nav a:hover{color:#791f3f}
body[data-page=home] .desktop-nav a[aria-current=page]:after{background:#d4a362}
body[data-page=home] .header-contact{background:#08794e;border-color:#08794e;color:white}
body[data-page=home] .menu-toggle{color:#361322;border-color:#d8ccbb}
body[data-page=home] .mobile-menu{background:#fbf8f2;color:#361322}
body[data-page=home] .mobile-menu a{border-color:#e6e2da}
.page-intro h1{text-wrap:balance}
@media(max-width:1200px){.brand-logo-frame{width:176px;height:62px}.brand .brand-logo-frame img{width:176px}}
@media(max-width:1050px){.header-actions{display:none}.header-inner{min-height:76px;justify-content:space-between}.breadcrumb{display:none}.page-intro{padding-block:32px 40px}}
@media(max-width:680px){.brand-logo-frame{width:min(164px,calc(100vw - 100px));height:58px}.brand .brand-logo-frame img{width:100%}.header-inner{min-height:72px;gap:16px}.menu-toggle{width:44px;height:44px;flex-shrink:0}.page-intro{padding-block:30px 34px}.page-intro h1{font-size:clamp(30px,8vw,36px);line-height:1.24;margin-bottom:21px}.page-intro .intro-row{gap:0}.page-intro .intro-icon{display:none}.giving-page-intro h1{font-size:clamp(29px,7.6vw,35px);max-width:20ch;line-height:1.25}.giving-page-intro .giving-intro-copy{margin-bottom:16px}.giving-page-intro .giving-invitation{margin-bottom:18px}}
/* Optical adjustment balances the heavier burgundy symbol on the logo's left. */
@media(max-width:680px){.header-inner{display:grid;grid-template-columns:minmax(44px,1fr) auto minmax(44px,1fr);column-gap:12px}.header-inner .brand{grid-column:2;grid-row:1;justify-self:center;transform:translateX(8px)}.header-inner .menu-toggle{grid-column:3;grid-row:1;justify-self:end}.brand-logo-frame{width:145px;height:52px}}

/* Header actions replace the general dock on desktop; mobile/tablet keep it. */
@media (min-width:1051px){.contact-dock{display:none}.header-actions .btn{white-space:nowrap}}
@media (min-width:1051px) and (max-width:1280px){.header-inner{gap:14px}.desktop-nav{gap:14px}.desktop-nav a{font-size:14px}.header-actions{gap:8px}.header-actions .btn{font-size:14px;padding-inline:14px}}
/* News links appear only while there is current news (sketch.js adds html.has-news). */
html:not(.has-news) a[href="/news/"],html:not(.has-news) li:has(> a[href="/news/"]){display:none!important}
/* ---- Floating contact bar (phones/tablets): a compact centred capsule as wide as its two buttons, hidden only while typing in a form.
   The Shifra and Puah page keeps its own colours and buttons, with the same bar size. ---- */
@media (max-width:1050px){
 body:not([data-page="new-mothers"]) .contact-dock,body[data-page="new-mothers"] .contact-dock.nm-dock{display:grid;grid-template-columns:auto auto;left:0;right:0;margin-inline:auto;width:max-content;max-width:calc(100% - 20px);box-sizing:border-box;bottom:max(10px,env(safe-area-inset-bottom));gap:4px;padding:4px;border-radius:32px}
 body:not([data-page="new-mothers"]) .contact-dock a,body[data-page="new-mothers"] .contact-dock.nm-dock a{flex:none;min-height:40px;padding:7px 12px;font-size:13.5px;gap:6px;white-space:nowrap;min-width:0;line-height:1.2;justify-content:center}
 body:not([data-page="new-mothers"]) .contact-dock svg,body[data-page="new-mothers"] .contact-dock.nm-dock svg{width:17px;height:17px}
 body:not([data-page="new-mothers"]) footer.site-footer{padding-bottom:84px}
 body:not([data-page="new-mothers"]) .contact-dock{transition:opacity .2s ease,transform .2s ease}
 body:not([data-page="new-mothers"]) .s13-contact-dock{display:grid;opacity:1;translate:none;pointer-events:auto}
 html.is-typing body:not([data-page="new-mothers"]) .contact-dock,html.is-typing body[data-page="new-mothers"] .contact-dock.nm-dock{opacity:0;pointer-events:none;transform:translateY(140%)}
}
@media (max-width:340px){body:not([data-page="new-mothers"]) .contact-dock a,body[data-page="new-mothers"] .contact-dock.nm-dock a{font-size:12px;padding-inline:4px;gap:3px}body:not([data-page="new-mothers"]) .contact-dock svg,body[data-page="new-mothers"] .contact-dock.nm-dock svg{width:15px;height:15px}}
@media (prefers-reduced-motion:reduce){.contact-dock{transition:none!important}}
/* The ← glyph sits low next to Hebrew letters: lift it to the middle of the line (experience.py and the page scripts wrap it in .arw). */
.arw{position:relative;top:-.12em;display:inline-block;line-height:1}
/* Accessibility settings open from the footer and the phone menu (no floating button). */
.footer-a11y{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.footer-a11y:hover{color:#fff}
.mobile-menu .mobile-a11y{display:flex;align-items:center;width:100%;min-height:44px;margin:3px 0;padding:12px 14px;border:0;border-radius:10px;background:none;font:inherit;font-size:14px;line-height:1.5;color:#44212d;text-align:start;cursor:pointer}
.mobile-menu .mobile-a11y:hover{background:#eee4d7}
.footer-a11y[hidden],.mobile-a11y[hidden]{display:none}
/* Keyboard focus ring on scrollable regions (e.g. the thank-you letters on the Shifra and Puah page). */
[role=region][tabindex]:focus-visible{outline:3px solid #9c5b20;outline-offset:4px}
/* "נעים להכיר": the sentence that tells every visitor they belong here */
.about-quote{margin:0 auto;max-width:820px;padding:8px 26px;border-inline-start:4px solid #c9a25a;font-family:"Frank Ruhl Libre",Heebo,serif;font-weight:700;font-size:clamp(1.35rem,3.6vw,1.9rem);line-height:1.6;color:#70213f}
/* Small laptops: keep the six menu items on one line (the WhatsApp header button shows its icon only; its name stays for screen readers). */
@media (min-width:1051px){.desktop-nav a{white-space:nowrap}}
@media (min-width:1051px) and (max-width:1260px){.desktop-nav{gap:12px}.desktop-nav a{font-size:13.5px}.header-actions .header-contact{font-size:0;gap:0;padding-inline:13px}.header-actions .header-contact svg{width:20px;height:20px}}
/* ---- Light page header: more white and air; burgundy and gold as accents; a photo on the side ---- */
.page-intro.light{background:#fff;color:#2b1520;padding-block:26px 34px;border-bottom:1px solid #eee4d6}
.page-intro.light:before,.page-intro.light:after{display:none}
.page-intro.light h1{color:#70213f}
.page-intro.light h1::after{content:"";display:block;width:56px;height:3px;margin-top:14px;border-radius:2px;background:#c9a25a}
.page-intro.light .intro-row>div>p{color:#5a4a50}
.page-intro.light .breadcrumb{color:#8a7a72}
.page-intro.light .breadcrumb a{color:#70213f}
.page-intro.light .intro-icon{background:#f6efe4;color:#a0762e;border-color:#eadfcd}
.page-intro.has-photo .intro-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,44%);gap:40px;align-items:center}
.intro-photo{margin:0;border-radius:24px;overflow:hidden;aspect-ratio:16/10;background:#f6efe4;box-shadow:0 14px 34px rgba(58,15,34,.1)}
.intro-photo img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:760px){.page-intro.has-photo .intro-row{grid-template-columns:1fr;gap:18px}.intro-photo{order:-1;aspect-ratio:16/9;border-radius:18px}.page-intro.light{padding-block:18px 26px}}
/* "First time?" link at the top of the week page */
.first-time-callout{margin-top:22px}
.first-time-callout a{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:14px 20px;border:1px solid #eadfcd;border-radius:16px;background:#fffdf9;color:#2b1520;text-decoration:none}
.first-time-callout strong{color:#70213f;font-size:1.05rem}
.first-time-callout span{color:#5a4a50}
.first-time-callout a:hover{border-color:#c9a25a}
/* ---- The Rebbe page ---- */
.page-intro.has-photo .intro-photo img[src*="rebbe"]{object-fit:contain;background:#fff}
.rebbe-prose{max-width:760px}
.rebbe-prose p{font-size:1.08rem;line-height:1.9}
.rebbe-sign{font-family:"Frank Ruhl Libre",Heebo,serif;font-weight:700;color:#70213f}
.mivtza-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mivtza-card{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #eadfcd;border-radius:18px;background:#fff;color:#2b1520;text-decoration:none;transition:border-color .2s,transform .2s}
.mivtza-card:hover{border-color:#c9a25a;transform:translateY(-2px)}
.mivtza-card strong{font-family:"Frank Ruhl Libre",Heebo,serif;font-weight:900;font-size:1.25rem;color:#70213f}
.mivtza-card>span{color:#5a4a50;line-height:1.6}
.mivtza-card em{margin-top:auto;padding-top:6px;font-style:normal;font-weight:800;color:#a0762e;font-size:14px}
@media (max-width:900px){.mivtza-grid{grid-template-columns:1fr 1fr}}
@media (prefers-reduced-motion:reduce){.mivtza-card{transition:none}.mivtza-card:hover{transform:none}}
/* ---- Yahrzeit calculator ---- */
.yz-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;align-items:start}
.yz-card{padding:24px;border:1px solid #eadfcd;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(58,15,34,.06)}
.yz-card h2{margin-top:0;color:#70213f}
.yz-card .field{display:block;margin-bottom:14px}
.yz-card .field>span{display:block;font-weight:700;margin-bottom:6px}
.yz-card input[type=date],.yz-card input[type=text]{width:100%;min-height:48px;padding:10px 14px;border:1px solid #cdb9a4;border-radius:10px;font:inherit;background:#fffdf9}
.yz-check{display:flex;gap:10px;align-items:center;margin:0 0 16px;font-weight:600}
.yz-check input{width:22px;height:22px;flex:none}
.yz-error{color:#9b1c1c;font-weight:700}
.yz-heb{font-family:"Frank Ruhl Libre",Heebo,serif;font-weight:900;font-size:clamp(1.8rem,5vw,2.4rem);color:#70213f;margin:4px 0}
.yz-list{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:8px}
.yz-list li{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:12px;background:#fbf6ee}
.yz-list strong{color:#2b1520}
.yz-list span{color:#5a4a50;font-size:15px}
.yz-list small{color:#8a5a12;font-size:14px}
.yz-help{margin-top:18px;padding-top:16px;border-top:1px solid #eadfcd}
@media (max-width:860px){.yz-wrap{grid-template-columns:1fr}}
/* ---- Reminders (סת״ם centre), the next holiday (year page), add-to-calendar on events ---- */
.reminder-band{display:flex;flex-wrap:wrap;gap:18px 30px;align-items:center;justify-content:space-between;padding:24px;border:1px solid #eadfcd;border-radius:22px;background:#fffdf9}
.reminder-band h2{margin:4px 0 6px}
.reminder-buttons{display:flex;flex-wrap:wrap;gap:10px}
.next-holiday-section{padding:10px 0 6px}
.next-holiday{display:grid;gap:4px;padding:22px 24px;border:1px solid #eadfcd;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(58,15,34,.06)}
.next-holiday-kicker{color:#a0762e;font-weight:800;font-size:14px}
.next-holiday h2{margin:0;font-family:"Frank Ruhl Libre",Heebo,serif;font-weight:900;color:#70213f;font-size:clamp(1.6rem,4.5vw,2.2rem)}
.next-holiday p{margin:0;color:#5a4a50}
.next-holiday .btn{justify-self:start;margin-top:10px}
.news-cal{align-self:flex-start;margin-top:8px;padding:6px 14px;border:1px solid #cdb9a4;border-radius:999px;background:#fff;color:#70213f;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.week-strip-today{display:block;color:#685958;font-size:14px}
/* ---- A letter to the Ohel ---- */
.ohel-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:start}
.ohel-copy h2{margin-top:0}
.ohel-tips{padding-inline-start:20px;line-height:1.8;color:#4a3940}
.ohel-form{padding:24px;border:1px solid #eadfcd;border-radius:22px;background:#fff}
.ohel-form .field{display:block;margin-bottom:14px}
.ohel-form .field>span{display:block;font-weight:700;margin-bottom:6px}
.ohel-form input,.ohel-form textarea{width:100%;min-height:48px;padding:10px 14px;border:1px solid #cdb9a4;border-radius:10px;font:inherit;background:#fffdf9}
.ohel-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
@media (max-width:860px){.ohel-wrap{grid-template-columns:1fr}}
.ohel-honeypot{position:absolute;inset-inline-start:-10000px;width:1px;height:1px;overflow:hidden}
.ohel-alt{margin-top:4px}
.ohel-gift{margin:4px 0 16px;padding:14px 16px;border:1px solid #eadfcd;border-radius:14px;background:#fffaf1}
.ohel-gift>.fine{margin:6px 0 0}
.ohel-gift-toggle{display:flex;gap:10px;align-items:flex-start;font-weight:700;cursor:pointer}
.ohel-gift-toggle input{width:22px;height:22px;min-height:0;margin:2px 0 0;accent-color:#70213f;flex:none}
.ohel-amounts{border:0;padding:0;margin:14px 0 0}
.ohel-amounts legend{font-weight:700;margin-bottom:8px;padding:0}
.ohel-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ohel-presets label{position:relative}
.ohel-presets input{position:absolute;opacity:0;width:1px;height:1px}
.ohel-presets span{display:inline-block;min-width:72px;padding:10px 14px;border:1px solid #cdb9a4;border-radius:999px;background:#fff;text-align:center;font-weight:700;cursor:pointer}
.ohel-presets input:checked+span{background:#70213f;border-color:#70213f;color:#fff}
.ohel-presets input:focus-visible+span{outline:3px solid #c9a25a;outline-offset:2px}
.ohel-donate-link{display:inline-flex;margin-top:10px}
.ohel-form fieldset{border:0;padding:0;margin:0}
.ohel-form legend{font-weight:800;color:#70213f;margin-bottom:10px;padding:0}
.ohel-me{margin-bottom:6px!important}
.ohel-me-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ohel-request{position:relative;padding:16px!important;margin:0 0 12px!important;border:1px solid #eadfcd!important;border-radius:14px;background:#fffdf9}
.ohel-request legend{float:inline-start;margin-bottom:10px}
.ohel-request legend~*{clear:both}
.ohel-request .field:last-child{margin-bottom:0}
.ohel-remove{position:absolute;inset-inline-end:12px;top:12px;border:0;background:none;color:#70213f;font:inherit;font-size:15px;text-decoration:underline;cursor:pointer;padding:6px}
.ohel-add{margin:0 0 16px}
.ohel-add-note{margin:-6px 0 16px}
.ohel-done{max-width:min(440px,calc(100vw - 32px));border:0;border-radius:22px;padding:28px 24px 20px;box-shadow:0 20px 60px rgba(40,10,25,.25);text-align:center}
.ohel-done::backdrop{background:rgba(30,12,20,.45)}
.ohel-done h2{margin:0 0 8px;color:#70213f}
.ohel-done .btn{display:inline-flex;margin:6px 0}
.ohel-done-group{margin-top:16px;padding-top:16px;border-top:1px solid #eadfcd}
.ohel-done-group p{margin:0 0 8px}
.ohel-done-close{margin-top:12px;border:0;background:none;font:inherit;color:#5a4a50;text-decoration:underline;cursor:pointer;padding:8px}
@media (max-width:520px){.ohel-me-grid{grid-template-columns:1fr}}
