/* Heichal shared desktop template 1.1.0. Mobile is intentionally untouched. */
body.heichal-desktop-presentation{--hx-canvas:1672px;--hx-content:1500px;--hx-sidebar:282px;--hx-gap:36px;--hx-cream:#fbf7ed;--hx-surface:#fffdf8;--hx-navy:#061f31;--hx-navy-deep:#031827;--hx-gold:#c59a37;--hx-gold-dark:#9d741f;--hx-text:#071d2d;--hx-muted:#667084;--hx-line:rgba(169,128,34,.34);--hx-shadow:0 4px 14px rgba(55,39,8,.07)}

@media (min-width:1024px){
html,body.heichal-desktop-presentation{min-height:100%;background:var(--hx-cream)!important}
body.heichal-desktop-presentation{overflow-x:hidden;color:var(--hx-text)}
body.heichal-desktop-presentation :where(.heichal-home-desktop,.heichal-inner-site){width:min(100%,var(--hx-canvas));min-height:100vh;margin-inline:auto;position:relative;overflow:hidden;background:var(--hx-cream) url('../mockup/site-background.png') center top/cover no-repeat!important}
body.heichal-desktop-presentation :where(#content,.page-content,.heichal-web,.heichal-app){background:transparent!important}

/* Existing dedication shell; only its presentation changes. */
body.heichal-desktop-presentation :where(.dedication-hero,.inner-dedication){width:100%!important;height:116px!important;min-height:116px!important;margin:0!important;position:relative;overflow:hidden;border:0!important;border-bottom:1px solid var(--hx-gold)!important;border-radius:0!important;background:var(--hx-navy) url('../mockup/header-background.png') center/cover no-repeat!important}
body.heichal-desktop-presentation :where(.dedication-hero__title,.inner-dedication strong){color:#f6d77f!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:40px!important;line-height:1!important;font-weight:700!important;text-shadow:0 2px 2px rgba(0,0,0,.5)}
body.heichal-desktop-presentation :where(.dedication-hero__candle,.inner-dedication img){width:118px!important;height:112px!important;object-fit:contain!important;filter:drop-shadow(0 0 8px rgba(244,185,74,.55));transform-origin:50% 88%;animation:hx-candle-glow 2.4s ease-in-out infinite}
body.heichal-desktop-presentation :where(.dedication-hero__candle,.inner-dedication img){content:url('../mockup/header-candle.png')!important}
body.heichal-desktop-presentation :where(.dedication-hero__button,.inner-dedication a){min-width:190px!important;height:50px!important;padding-inline:24px!important;display:inline-flex!important;align-items:center;justify-content:center;border:2px solid var(--hx-gold)!important;border-radius:12px!important;background:rgba(3,24,39,.36)!important;color:#f9e9b1!important;font-size:17px!important;font-weight:700!important}
@keyframes hx-candle-glow{0%,100%{transform:rotate(-.45deg) scale(1);filter:drop-shadow(0 0 6px rgba(244,185,74,.45))}50%{transform:rotate(.55deg) scale(1.018);filter:drop-shadow(0 0 13px rgba(255,202,87,.8))}}

/* One existing navigation row on every desktop page. */
body.heichal-desktop-presentation :where(.main-nav,.inner-nav){width:100%!important;height:55px!important;min-height:55px!important;margin:0!important;border:0!important;border-bottom:1px solid rgba(169,128,34,.18)!important;background:rgba(255,253,248,.98)!important}
body.heichal-desktop-presentation :where(.main-nav__inner,.inner-nav){display:grid!important;grid-template-columns:330px minmax(0,1fr) 330px!important;align-items:center!important;padding-inline:48px!important;direction:ltr!important}
body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools){grid-column:1!important;grid-row:1!important;position:static!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:18px!important}
body.heichal-desktop-presentation :where(.main-nav__links,.inner-nav__links){grid-column:2!important;grid-row:1!important;height:55px!important;display:flex!important;align-items:stretch!important;justify-content:center!important;gap:clamp(34px,4vw,79px)!important;direction:rtl!important}
body.heichal-desktop-presentation :where(.main-nav__link,.inner-nav__links a){min-width:64px;height:55px!important;display:flex!important;align-items:center!important;justify-content:center!important;color:var(--hx-text)!important;font-size:16px!important;font-weight:700!important;text-decoration:none!important}
body.heichal-desktop-presentation :where(.main-nav__brand,.inner-nav::after){display:none!important}
body.heichal-desktop-presentation nav.inner-nav::after{display:none!important;content:none!important;background:none!important}
body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand,
body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.inner-brand{width:100%!important;height:157px!important;min-height:157px!important;padding:10px 20px!important;display:grid!important;place-items:center!important;border:0!important;background:transparent!important}
body.heichal-desktop-presentation .inner-brand img{content:url('../mockup/brand-web.png')!important;width:355px!important;height:152px!important;max-width:90%!important;max-height:152px!important;object-fit:contain!important}
body.heichal-desktop-presentation .hx-brand-home-link{display:contents!important;color:inherit!important;text-decoration:none!important}
body.heichal-desktop-presentation .hx-brand-home-link .hx-reader-nav-brand{pointer-events:auto!important;cursor:pointer!important}
body.heichal-desktop-presentation .heichal-more-menu{top:100%!important;margin-top:0}

/* Shared content width. */
body.heichal-desktop-presentation :where(.home-content,.heichal-app__shell,.heichal-inner){width:min(calc(100% - 120px),var(--hx-content))!important;max-width:var(--hx-content)!important;margin-inline:auto!important;position:relative;z-index:2}
body.heichal-desktop-presentation .heichal-home-desktop>.home-content{display:block!important}

/* Home template: existing dynamic data and links. */
body.hx-template-home .home-layout{display:grid!important;grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;column-gap:var(--hx-gap)!important;align-items:start!important;direction:ltr!important}
body.hx-template-home :where(.home-sidebar,.home-main){direction:rtl!important}
body.hx-template-home .home-sidebar{width:var(--hx-sidebar)!important;padding-top:78px!important;gap:14px!important}
body.hx-template-home .brand-section{height:184px!important;min-height:184px!important;padding:12px 0 8px!important;display:grid!important;place-items:center!important}
body.hx-template-home .brand-lockup__image{content:url('../mockup/brand-web.png')!important;width:355px!important;height:152px!important;max-width:min(500px,78%)!important;object-fit:contain!important}
body.hx-template-home :where(.brand-tagline,.brand-divider){display:none!important}
body.hx-template-home .hx-home-intro{margin:-5px auto 8px!important;text-align:center!important}
body.hx-template-home .hx-home-intro h1{margin:0!important;color:#10254a!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:31px!important;line-height:1.12!important}
body.hx-template-home .hx-home-intro p{margin:5px 0 0!important;color:var(--hx-muted)!important;font-size:15px!important}
body.hx-template-home .weekly-parasha{width:770px!important;max-width:100%;height:47px!important;margin-inline:auto!important;border-radius:14px!important}
body.hx-template-home .home-search{width:770px!important;max-width:100%;height:47px!important;margin:10px auto 0!important;border-radius:14px!important}
body.hx-template-home .category-grid{margin-top:12px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 13px!important}
body.hx-template-home .category-card{height:66px!important;padding-inline:14px!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:1fr 1fr!important;border-radius:12px!important;box-shadow:var(--hx-shadow)!important}
body.hx-template-home .category-card__icon{width:46px!important;height:46px!important;filter:contrast(1.08) saturate(1.12)}
body.hx-template-home .category-card__icon{grid-row:1/3!important}
body.hx-template-home .category-card__title{grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:18px!important}
body.hx-template-home .hx-card-description{grid-column:2!important;grid-row:2!important;align-self:start!important;color:var(--hx-muted)!important;font-size:11px!important;line-height:1.2!important}
body.hx-template-home .recent-card{min-height:170px!important;padding:14px 17px!important}
body.hx-template-home .recent-item{min-height:54px!important;grid-template-columns:48px minmax(0,1fr)!important}
body.hx-template-home .sidebar-item__icon{width:38px!important;height:38px!important}
body.hx-template-home .zmanim-card{min-height:227px!important;padding:14px 16px!important}
body.hx-template-home .zmanim-row{height:35px!important;grid-template-columns:55px 1fr 24px!important}
body.hx-template-home .zmanim-list{max-height:none!important;overflow:visible!important}
body.hx-template-home .featured-prayer{height:150px!important;margin-top:15px!important;grid-template-columns:49% minmax(0,1fr) 190px!important;border-radius:16px!important}
body.hx-template-home .featured-prayer__image-wrap::after{background:linear-gradient(90deg,transparent 42%,rgba(255,253,248,.48) 72%,rgba(255,253,248,.9) 91%,#fffdf8)!important}
body.hx-template-home .hx-sidebar-feature{min-height:145px;padding:17px;display:flex!important;flex-direction:column;justify-content:flex-end;border:1px solid var(--hx-gold)!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(3,24,39,.08),rgba(3,24,39,.94)),url('../mockup/side-book.webp') center/cover no-repeat!important;color:#f8e5ab!important;text-align:right;text-decoration:none!important;box-shadow:var(--hx-shadow)!important}
body.hx-template-home .hx-sidebar-feature span{color:#e8c467;font-size:14px;font-weight:700}
body.hx-template-home .hx-sidebar-feature strong{font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif;font-size:24px;line-height:1.15}
body.hx-template-home .hx-sidebar-feature small{margin-top:5px;color:#fff0c3;font-size:12px}

/* Category template: the middle changes; the shell does not. */
body.hx-template-category .heichal-app__shell{padding:0 0 38px!important}
body.hx-template-category .heichal-app__category{width:100%!important;display:grid!important;grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;gap:var(--hx-gap)!important;align-items:start!important;direction:ltr!important;padding:0!important}
body.hx-template-category :where(.heichal-app__side,.heichal-app__main){direction:rtl!important}
body.hx-template-category .heichal-app__side{width:var(--hx-sidebar)!important;position:sticky!important;top:16px!important;gap:14px!important}
body.hx-template-category .heichal-app__side-card{border:1px solid var(--hx-line)!important;border-radius:16px!important;background:rgba(255,253,248,.97)!important;box-shadow:var(--hx-shadow)!important}
body.hx-template-category .heichal-app__zmanim{background:linear-gradient(180deg,var(--hx-navy),var(--hx-navy-deep))!important;color:#fff!important}
body.hx-template-category .heichal-app__main{min-width:0!important;text-align:center}
body.hx-template-category .heichal-app__breadcrumbs{margin:0 0 5px!important;color:var(--hx-muted)!important}
body.hx-template-category .heichal-app__title{margin:0!important;color:#12284a!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:31px!important;line-height:1.08!important;text-align:center!important}
body.hx-template-category .heichal-app__description{margin:7px 0 12px!important;color:var(--hx-muted)!important;font-size:15px!important;text-align:center!important}
body.hx-template-category .heichal-app__search{display:block!important;width:770px!important;max-width:100%!important;height:47px!important;margin:0 auto 17px!important;border:1px solid var(--hx-line)!important;border-radius:14px!important;background:rgba(255,253,248,.96)!important}
body.hx-template-category .heichal-app__grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 13px!important;margin:0!important}
body.hx-template-category .heichal-app__grid[hidden]{display:none!important}
body.hx-template-category .heichal-app__item{min-height:66px!important;height:66px!important;padding:7px 14px!important;grid-template-columns:52px minmax(0,1fr) 18px!important;gap:9px!important;border:1px solid var(--hx-line)!important;border-radius:12px!important;background:rgba(255,253,248,.96)!important;box-shadow:var(--hx-shadow)!important}
body.hx-template-category .heichal-app__item img{width:50px!important;height:50px!important;object-fit:contain!important}
body.hx-template-category .heichal-app__item strong{color:var(--hx-text)!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:18px!important;line-height:1.1!important}
body.hx-template-category .heichal-app__item small{color:var(--hx-muted)!important;font-size:11px!important;line-height:1.2!important}
body.hx-template-category .heichal-library-menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 13px!important;margin:0!important;text-align:right}
body.hx-template-category .heichal-library-menu__group{min-width:0;border:1px solid var(--hx-line)!important;border-radius:12px!important;background:rgba(255,253,248,.96)!important;box-shadow:var(--hx-shadow)!important;overflow:hidden}
body.hx-template-category .heichal-library-menu__group.is-open{grid-column:1/-1!important}
body.hx-template-category .heichal-library-menu__trigger{width:100%!important;min-height:52px!important;padding:0 17px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--hx-text)!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:18px!important;font-weight:700!important;text-align:right!important}
body.hx-template-category .heichal-library-menu__service-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.hx-template-category .heichal-library-menu__service{border:1px solid rgba(169,128,34,.22)!important;border-radius:10px!important;background:#fffdf9!important;overflow:hidden}
body.hx-template-category .heichal-library-menu__service-trigger{min-height:44px!important;padding-inline:14px!important;font-weight:700!important}
body.hx-template-category .heichal-library-menu__nusach-row{min-height:43px!important;padding:7px 12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
body.hx-template-category .heichal-library-menu__variant-actions{display:flex!important;gap:6px!important;white-space:nowrap}
body.hx-template-category .heichal-library-menu__variant-actions a{padding:3px 8px!important;border:1px solid var(--hx-line)!important;border-radius:999px!important;text-decoration:none!important}
body.heichal-desktop-presentation.hx-template-category .heichal-app__main>section.heichal-library-menu[hidden]{display:none!important}
body.hx-template-category .hx-category-showcase{width:100%;margin:0!important}
body.hx-template-category .hx-category-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 13px!important}
body.hx-template-category .hx-category-card{height:66px!important;padding:7px 14px!important;display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:1fr 1fr!important;align-items:center!important;column-gap:10px!important;border:1px solid var(--hx-line)!important;border-radius:12px!important;background:rgba(255,253,248,.96)!important;color:var(--hx-text)!important;text-align:right!important;text-decoration:none!important;box-shadow:var(--hx-shadow)!important;cursor:pointer}
body.hx-template-category .hx-category-card:hover,body.hx-template-category .hx-category-card:focus-visible,body.hx-template-category .hx-category-card.is-active{border-color:var(--hx-gold)!important;background:#fffaf0!important;box-shadow:0 7px 18px rgba(99,71,11,.12)!important;transform:translateY(-1px)}
body.hx-template-category .hx-category-card__icon{width:48px!important;height:48px!important;grid-column:1!important;grid-row:1/3!important;object-fit:contain!important;filter:sepia(.15) saturate(1.25) contrast(1.08)}
body.hx-template-category .hx-category-card__copy{min-width:0;grid-column:2!important;grid-row:1/3!important;display:flex;flex-direction:column;justify-content:center}
body.hx-template-category .hx-category-card__copy strong{font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:18px!important;line-height:1.15!important}
body.hx-template-category .hx-category-card__copy small{margin-top:3px;color:var(--hx-muted)!important;font-size:11px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.hx-template-category .hx-category-choice-panel{margin-top:12px;padding:14px 16px 16px;border:1px solid var(--hx-line)!important;border-radius:14px!important;background:rgba(255,253,248,.98)!important;box-shadow:var(--hx-shadow)!important;text-align:right}
body.hx-template-category .hx-category-choice-panel[hidden]{display:none!important}
body.hx-template-category .hx-category-choice-panel h2{margin:0 0 10px!important;color:var(--hx-gold-dark)!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:23px!important}
body.hx-template-category .hx-category-choice-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.hx-template-category .hx-category-choice{min-height:60px;padding:9px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px 8px;border:1px solid rgba(169,128,34,.22);border-radius:10px;background:#fffdf9}
body.hx-template-category .hx-category-choice>strong{grid-column:1;grid-row:1;color:var(--hx-text);font-size:15px}
body.hx-template-category .hx-category-choice>small{grid-column:1;grid-row:2;color:var(--hx-muted);font-size:11px}
body.hx-template-category .hx-category-choice-actions{grid-column:2;grid-row:1/3;display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
body.hx-template-category .hx-category-choice-actions a{padding:4px 8px;border:1px solid var(--hx-line);border-radius:999px;color:var(--hx-gold-dark);font-size:12px;text-decoration:none}

/* Reader template: side panels stay fixed; only the prayer text scrolls. */
body.hx-template-reader .heichal-app__shell{width:min(calc(100% - 120px),var(--hx-content))!important;padding:18px 0 0!important}
body.hx-template-reader .heichal-app__reader{width:100%!important;min-height:calc(100vh - 390px)!important;display:grid!important;grid-template-columns:248px minmax(0,1fr) 248px!important;gap:24px!important;align-items:stretch!important;direction:ltr!important;padding:0 0 18px!important}
body.hx-template-reader .heichal-app__reader>*{direction:rtl!important}
body.hx-template-reader :where(.heichal-app__tools,.heichal-app__toc){position:sticky!important;top:18px!important;align-self:start!important}
body.hx-template-reader .heichal-app__tools{padding:18px 16px!important;border:1px solid var(--hx-gold)!important;border-radius:16px!important;background:linear-gradient(180deg,var(--hx-navy),var(--hx-navy-deep))!important;color:#fff!important}
body.hx-template-reader [data-reader-autoscroll]{min-height:48px!important;background:#d4a637!important;color:var(--hx-navy)!important;border-color:#f2d37c!important;font-weight:800!important;box-shadow:0 0 0 3px rgba(234,211,138,.18)!important}
body.hx-template-reader .heichal-app__paper{height:calc(100vh - 382px)!important;min-height:520px!important;display:flex!important;flex-direction:column!important;padding:24px 54px 14px!important;overflow:hidden!important;border:1px solid var(--hx-line)!important;border-radius:16px!important;background:rgba(255,253,248,.97)!important;box-shadow:var(--hx-shadow)!important}
body.hx-template-reader .heichal-app__paper h1{margin:0 0 2px!important;color:var(--hx-gold-dark)!important;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:50px!important;line-height:1.08!important}
body.hx-template-reader .heichal-app__reader-search{display:block!important;flex:0 0 42px;height:42px!important;margin:10px 0 16px!important}
html body.heichal-desktop-presentation.hx-template-reader .heichal-app__paper > input.heichal-app__reader-search{display:block!important;visibility:visible!important;opacity:1!important}
body.hx-template-reader .heichal-app__dedication{display:none!important}
body.hx-template-reader .heichal-app__text{width:100%;max-width:820px!important;min-height:0!important;flex:1 1 auto!important;margin-inline:auto!important;padding:0 10px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;font-size:29px!important;line-height:1.82!important}
body.hx-template-reader .heichal-app__source{flex:0 0 auto!important;max-height:42px!important;margin-top:8px!important;padding-top:7px!important;overflow:auto!important;font-size:11px!important;line-height:1.25!important}
body.hx-template-reader .heichal-app__toc{display:grid!important;gap:12px!important}
body.hx-template-reader .heichal-app__toc-card{padding:16px!important;border:1px solid var(--hx-line)!important;border-radius:16px!important;background:rgba(255,253,248,.97)!important;box-shadow:var(--hx-shadow)!important}

/* One footer geometry. */
body.heichal-desktop-presentation :where(.heichal-home-footer,.inner-footer){width:100%!important;min-height:58px!important;margin:18px 0 0!important;padding:0 62px!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;background:linear-gradient(180deg,var(--hx-navy),var(--hx-navy-deep))!important;color:#f6e6b5!important}

html.heichal-night-mode body.heichal-desktop-presentation :where(.heichal-home-desktop,.heichal-inner-site,.heichal-app){background:#07131d!important}
html.heichal-night-mode body.heichal-desktop-presentation :where(.category-card,.heichal-app__item,.heichal-app__paper,.heichal-app__toc-card,.heichal-app__side-card){background:#102a3b!important;color:#f6ead0!important;border-color:rgba(218,181,88,.35)!important}
html.heichal-night-mode body.heichal-desktop-presentation,
body.heichal-night-mode.heichal-desktop-presentation,
html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__reader,
html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__paper,
html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__text,
html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__text :where(p,h1,h2,h3,h4,h5,h6,li,span){background-color:#102a3b!important;color:#f6ead0!important}
html.heichal-night-mode body.heichal-desktop-presentation :where(.heichal-app__item strong,.heichal-app__toc-card h2){color:#f6ead0!important}
}

/* 1.9.106: explicit return route on the dedication inquiry page. */
.hx-dedication-home-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:42px;
  margin:0 0 14px auto;
  padding:8px 18px;
  border:1px solid #c89b31;
  border-radius:999px;
  background:#fffdf8;
  color:#8a6518;
  font-weight:700;
  line-height:1.2;
  text-decoration:none!important;
  box-shadow:0 6px 18px rgba(55,40,12,.08);
}
.hx-dedication-home-link:hover,
.hx-dedication-home-link:focus-visible{
  background:#071d2d;
  color:#f4d77a;
  outline:2px solid #d7aa3d;
  outline-offset:2px;
}
.heichal-night-mode .hx-dedication-home-link{
  background:#0b293b;
  color:#f4d77a;
}
@media(max-width:640px){
  .hx-dedication-home-link{
    min-height:40px;
    margin:0 0 12px auto;
    padding:7px 14px;
    font-size:14px;
  }
}

/* 1.9.104: contextual in-prayer search. Keep the full prayer visible and
   emphasize matches inside their original paragraphs. */
.hx-reader-search-status{
  min-height:1.4em;
  margin:6px 2px 12px;
  color:#7b6841;
  font-size:14px;
  line-height:1.4;
  text-align:right;
}
.heichal-app__text mark.hx-reader-search-match{
  padding:.04em .14em;
  border-radius:.22em;
  background:#f6d86f;
  color:#071d2d;
  box-shadow:0 0 0 2px rgba(180,130,28,.22);
}
html.heichal-night-mode .heichal-app__text mark.hx-reader-search-match,
body.heichal-night-mode .heichal-app__text mark.hx-reader-search-match{
  background:#d7aa32;
  color:#041522;
  box-shadow:0 0 0 2px rgba(255,226,142,.24);
}

/* 1.9.108: sticky reader search below the recent-items card. */
.hx-reader-search-card{display:grid;gap:10px}
.hx-reader-search-card .heichal-app__reader-search{display:block!important;width:100%;height:44px;margin:0!important;padding:0 12px;border:1px solid #d9bd86;border-radius:10px;background:#fffdf8;color:#071d2d;font:inherit;text-align:right;box-sizing:border-box}
.hx-reader-search-card__nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hx-reader-search-card__nav button{min-height:38px;border:1px solid #d9bd86;border-radius:9px;background:transparent;color:#936b20;font:inherit;cursor:pointer}
.hx-reader-search-card__nav button:hover,.hx-reader-search-card__nav button:focus-visible{background:#f3ead8;outline:2px solid #d9b75e;outline-offset:1px}
.hx-reader-search-card .hx-reader-search-status{margin:0;min-height:1.4em;text-align:center}
.heichal-app__text mark.hx-reader-search-match.is-current{background:#ffd54a;box-shadow:0 0 0 3px rgba(169,128,34,.38)}
html.heichal-night-mode .hx-reader-search-card .heichal-app__reader-search,body.heichal-night-mode .hx-reader-search-card .heichal-app__reader-search{background:#182432;color:#f7edcf;border-color:#8e7335}
@media(max-width:1023px){.hx-reader-search-card{display:none!important}}


/* 1.9.71: favorite controls are overlays, not extra card-grid children. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation :is(a.category-card,a.hx-category-card,a.heichal-site-card,.heichal-app__item){
    position:relative!important;
  }
  html body.heichal-desktop-presentation :is(a.category-card,a.hx-category-card,a.heichal-site-card,.heichal-app__item) > .hx-site-favorite{
    position:absolute!important;left:10px!important;right:auto!important;top:50%!important;bottom:auto!important;
    transform:translateY(-50%)!important;z-index:3!important;margin:0!important;
  }
}

/* 1.9.69: a complete desktop night palette. Legacy home/public cards carried
   opaque cream backgrounds, producing a half-light page after night mode was
   enabled. Keep the dedication/nav chrome and all content surfaces coherent. */
@media (min-width:1024px){
  html.heichal-night-mode body.heichal-desktop-presentation,
  html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-home-desktop,.home-workspace,.home-main,.home-sidebar,.heichal-app,.heichal-app__main,.heichal-app__category,.heichal-inner-site,.site-main,.page-content,.entry-content){
    background-color:#071d2d!important;color:#f2e6bd!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation :is(.sidebar-card,.featured-prayer,.category-card,.hx-category-card,.heichal-app__item,.heichal-app__paper,.heichal-app__toc-card,.heichal-app__side-card,.heichal-library-menu__group,.heichal-library-menu__service,.hx-site-favorites-list,article){
    background:#102a3b!important;color:#f2e6bd!important;border-color:rgba(212,164,47,.38)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation :is(.sidebar-card,.featured-prayer,.category-card,.hx-category-card,.heichal-app__item,.heichal-app__paper,.heichal-app__toc-card,.heichal-app__side-card,.heichal-library-menu__group,.heichal-library-menu__service,.hx-site-favorites-list,article) :is(h1,h2,h3,h4,p,span,strong,small,li,a){
    color:#f2e6bd!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .hx-site-favorites-list a{
    background:#0b2232!important;color:#f2d681!important;border-color:rgba(212,164,47,.34)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-wrap,.heichal-home-desktop,.heichal-inner-site){
    background-color:#071d2d!important;background-image:none!important;
  }
  body.heichal-desktop-presentation .hx-favorites-magen{display:inline-block;font-size:20px;line-height:1;color:#b78b29;}
}

/* 1.5.9 — one desktop frame.  Home, category and reader retain their own
   content, but share the same visible banner, navigation, parchment and
   footer.  The reader is the deliberate exception: its full brand is removed
   from the content area and the compact brand stays in the navigation row. */
@media (min-width:1024px){
  html:has(body.heichal-desktop-presentation),
  body.heichal-desktop-presentation{overflow-x:clip!important;}
  html body.heichal-desktop-presentation :is(.heichal-home-desktop,.heichal-inner-site){
    width:100vw!important;
    max-width:100vw!important;
    min-height:calc(100dvh - var(--hx-adminbar-offset))!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    background-color:#fbf7ed!important;
    background-image:url('../mockup/building.png'),url('../mockup/site-background.png')!important;
    background-repeat:no-repeat,repeat-y!important;
    background-position:right 42px bottom 74px,center top!important;
    background-size:300px auto,100% auto!important;
  }

  html body.heichal-desktop-presentation :is(.dedication-hero,.inner-dedication){
    height:114px!important;
    min-height:114px!important;
    background-color:#061b2d!important;
    background-image:url('../mockup/header-background.png')!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-size:cover!important;
  }
  html body.heichal-desktop-presentation :is(.main-nav,.inner-nav){
    height:54px!important;
    min-height:54px!important;
    width:100%!important;
    max-width:none!important;
    background:#fffdf8!important;
  }
  html body.heichal-desktop-presentation :is(.main-nav__inner,.inner-nav){
    height:54px!important;
    grid-template-columns:280px minmax(0,1fr) 280px!important;
    padding-inline:44px!important;
  }
  html body.heichal-desktop-presentation :is(.main-nav__links,.inner-nav__links){height:54px!important;}
  html body.heichal-desktop-presentation :is(.main-nav__link,.inner-nav__links a){height:54px!important;}

  /* The parchment must remain visible through every inner template, not only
     behind the home template. Individual reading cards still own their paper
     surface; the page around them does not replace the shared background. */
  html body.heichal-desktop-presentation :is(.heichal-inner-site>.heichal-app,.heichal-inner-site .heichal-app__shell){
    background:transparent!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.inner-brand *{
    display:none!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand{
    display:block!important;
    position:absolute!important;
    right:38px!important;
    top:5px!important;
    width:140px!important;
    height:44px!important;
    object-fit:contain!important;
  }

  /* Identical footer geometry across templates. The JS gives inner templates
     the same three semantic regions that the existing home footer already has. */
  html body.heichal-desktop-presentation :is(.heichal-home-footer,.inner-footer){
    width:100vw!important;
    max-width:100vw!important;
    min-height:58px!important;
    margin:18px calc(50% - 50vw) 0!important;
    padding:0 58px!important;
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    align-items:center!important;
    background:linear-gradient(180deg,#061f31,#031827)!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .inner-footer{margin-top:auto!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-footer{margin-top:0!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__social{justify-self:start!important;display:flex!important;gap:14px!important;direction:ltr!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__social a{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border:1px solid rgba(246,214,125,.72)!important;border-radius:50%!important;color:#f6d67d!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__social img{width:13px!important;height:13px!important;display:block!important;object-fit:contain!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__brand{justify-self:center!important;display:grid!important;justify-items:center!important;color:#f6d67d!important;line-height:1!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__brand small{font-size:11px!important;color:#f6e6b5!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__links{justify-self:end!important;display:flex!important;gap:16px!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__links a{color:#f6e6b5!important;text-decoration:none!important;font-size:13px!important;}

  /* The current home source publishes three verified times. Give the panel
     enough visual room for the full feed once the time engine is connected,
     without fabricating additional halachic times in the meantime. */
  html body.heichal-desktop-presentation.hx-template-home .zmanim-card{
    min-height:262px!important;
    padding:16px 18px!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row{min-height:36px!important;height:auto!important;}
}

/* Mobile is intentionally not re-skinned by this desktop presentation layer.
   This prevents a squeezed desktop shell from replacing the existing app-like
   mobile experience; desktop-only injected reader chrome is also hidden. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .hx-reader-nav-brand{display:none!important;}
}

/* 1.5.5: the category and its main area are siblings inside this wrapper. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{
    display:block!important;
    width:min(1480px,calc(100% - 48px))!important;
    max-width:1480px!important;
    margin:0 auto!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category{
    display:grid!important;
    grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;
    gap:var(--hx-gap)!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    direction:ltr!important;
    align-items:start!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category>.heichal-app__side{
    grid-column:1!important;
    width:var(--hx-sidebar)!important;
    min-width:0!important;
    direction:rtl!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category>.heichal-app__main{
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    direction:rtl!important;
  }
}

/* 1.5.6 final: shared header geometry and one reader brand. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{overflow:visible!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.dedication-hero{
    position:relative!important;
    width:100vw!important;
    max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand img{display:none!important;}
  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand{display:block!important;}
  html body.heichal-desktop-presentation :is(.main-nav__tools,.inner-nav__tools){flex-direction:row-reverse!important;}
}

/* 1.5.7 final cascade: the root, not a nested legacy component, owns the
   canvas and footer geometry. This must stay last. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation{--hx-adminbar-offset:0px;}
  html body.heichal-desktop-presentation > .site-footer{display:none!important;}
  html body.heichal-desktop-presentation :is(.page-content,.heichal-site-wrap,.heichal-site-shell){margin-bottom:0!important;padding-bottom:0!important;}

  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{
    width:100vw!important;max-width:100vw!important;min-height:calc(100vh - var(--hx-adminbar-offset))!important;
    margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
    display:flex!important;flex-direction:column!important;overflow:visible!important;
    background-position:right 42px bottom 74px,center top!important;background-size:300px auto,100% auto!important;background-repeat:no-repeat,repeat-y!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.home-content{flex:1 0 auto!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-footer{flex:0 0 58px!important;margin-top:auto!important;}

  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site{
    width:100vw!important;max-width:100vw!important;min-height:calc(100vh - var(--hx-adminbar-offset))!important;height:auto!important;
    margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
    display:flex!important;flex-direction:column!important;overflow:visible!important;
    background-position:right 42px bottom 74px,center top!important;background-size:300px auto,100% auto!important;background-repeat:no-repeat,repeat-y!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.heichal-app{flex:1 0 auto!important;min-height:0!important;}
  html body.heichal-desktop-presentation.hx-template-category .inner-footer{flex:0 0 58px!important;margin-top:auto!important;}

  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site{
    width:100vw!important;max-width:100vw!important;height:calc(100vh - var(--hx-adminbar-offset))!important;min-height:0!important;
    margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;overflow:hidden!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .inner-footer{flex:0 0 58px!important;min-height:58px!important;margin-top:0!important;}

  html body.heichal-desktop-presentation.hx-template-reader .inner-nav::before,
  html body.heichal-desktop-presentation.hx-template-reader .inner-nav::after{content:none!important;display:none!important;background:none!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand *{display:none!important;}
  html body.heichal-desktop-presentation :is(.dedication-hero__title,.inner-dedication strong)::after{display:none!important;}
}

/* 1.5.7 structural final: one full-width desktop canvas and one footer.
   The WordPress theme footer is intentionally suppressed only at desktop
   width; the existing mobile implementation remains untouched. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation{
    --hx-adminbar-offset:0px;
  }

  html body.heichal-desktop-presentation > .site-footer{
    display:none!important;
  }

  html body.heichal-desktop-presentation :is(.page-content,.heichal-site-wrap,.heichal-site-shell){
    margin-bottom:0!important;
    padding-bottom:0!important;
  }

  /* The home canvas, its banner and navigation are allowed to reach the edge
     of the browser. Content itself keeps the approved readable width. */
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{
    width:100vw!important;
    max-width:100vw!important;
    min-height:calc(100vh - var(--hx-adminbar-offset))!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:visible!important;
    background-position:right 42px bottom 74px,center top!important;
    background-size:300px auto,100% auto!important;
    background-repeat:no-repeat,repeat-y!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.home-content{
    flex:1 0 auto!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-footer{
    flex:0 0 58px!important;
    margin-top:auto!important;
  }

  /* Category pages use the same parchment canvas. Short categories expand to
     the footer instead of ending in an artificial blank/second background. */
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site{
    width:100vw!important;
    max-width:100vw!important;
    min-height:calc(100vh - var(--hx-adminbar-offset))!important;
    height:auto!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:visible!important;
    background-position:right 42px bottom 74px,center top!important;
    background-size:300px auto,100% auto!important;
    background-repeat:no-repeat,repeat-y!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.heichal-app{
    flex:1 0 auto!important;
    min-height:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .inner-footer{
    flex:0 0 58px!important;
    margin-top:auto!important;
  }

  /* Reader keeps its fixed workspace, but the height is now the usable
     viewport (not the viewport plus the WP administrator bar). */
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site{
    width:100vw!important;
    max-width:100vw!important;
    height:calc(100vh - var(--hx-adminbar-offset))!important;
    min-height:0!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    overflow:hidden!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .inner-footer{
    flex:0 0 58px!important;
    min-height:58px!important;
    margin-top:0!important;
  }

  /* Exactly one compact reader logo: any legacy pseudo logo is suppressed. */
  html body.heichal-desktop-presentation.hx-template-reader .inner-nav::before,
  html body.heichal-desktop-presentation.hx-template-reader .inner-nav::after{
    content:none!important;
    display:none!important;
    background:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand *{
    display:none!important;
  }

  /* The dedication already has the approved illuminated line; the extra
     ornament competes with it and is deliberately removed. */
  html body.heichal-desktop-presentation :is(.dedication-hero__title,.inner-dedication strong)::after{
    display:none!important;
  }
}

/* 1.5.6: shared header geometry and one reader brand. */
@media (min-width:1024px){
  /* The home header must span the viewport, not the centered content canvas. */
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{overflow:visible!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.dedication-hero{
    position:relative!important;
    width:100vw!important;
    max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
  }
  /* Keep one deliberate logo in the reader: the compact navigation brand. */
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand img{display:none!important;}
  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand{display:block!important;}
  /* Search belongs between the final menu item and the icon cluster. */
  html body.heichal-desktop-presentation :is(.main-nav__tools,.inner-nav__tools){flex-direction:row-reverse!important;}
}

/* 1.5.3 category grid repair — keep this at the true end of the stylesheet. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    grid-column:2!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main .hx-category-showcase,
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main .hx-category-card-grid,
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main .hx-category-continue{
    width:100%!important;
    max-width:none!important;
  }
}

/* 1.4.0 — compact desktop composition.
   At normal 1440/1920 desktop heights the complete category decision surface
   (identity, search, nine destinations and continuation) belongs in view.
   Short screens retain normal document flow rather than shrinking Hebrew copy
   below a readable size. */
@media (min-width:1280px) and (min-height:820px){
  body.heichal-desktop-presentation{--hx-sidebar:282px;--hx-gap:36px}

  body.hx-template-home .brand-section{height:144px!important;min-height:144px!important;padding:5px 0 0!important}
  body.hx-template-home .brand-lockup__image{width:290px!important;height:130px!important}
  body.hx-template-home .hx-home-intro{margin:-1px auto 7px!important}
  body.hx-template-home .hx-home-intro h1{font-size:28px!important}
  body.hx-template-home .hx-home-intro p{margin-top:3px!important;font-size:14px!important}
  body.hx-template-home .weekly-parasha,
  body.hx-template-home .home-search{height:43px!important}
  body.hx-template-home .home-search{margin-top:8px!important}
  body.hx-template-home .category-grid{margin-top:10px!important;gap:7px 12px!important}
  body.hx-template-home .category-card{height:58px!important;min-height:58px!important;grid-template-columns:46px minmax(0,1fr)!important}
  body.hx-template-home .category-card__icon{width:41px!important;height:41px!important}
  body.hx-template-home .category-card__title{font-size:17px!important}
  body.hx-template-home .featured-prayer{height:130px!important;margin-top:12px!important}
  body.hx-template-home .home-sidebar{padding-top:54px!important;gap:12px!important}
  body.hx-template-home .recent-card{min-height:154px!important;padding:12px 16px!important}
  body.hx-template-home .recent-item{min-height:48px!important}
  body.hx-template-home .zmanim-card{min-height:208px!important;padding:12px 15px!important}
  body.hx-template-home .zmanim-row{height:31px!important}

  body.hx-template-category .heichal-inner-site>.inner-brand{height:130px!important;min-height:130px!important;padding-top:2px!important;transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important}
  body.hx-template-category .inner-brand img{width:292px!important;height:126px!important;max-height:126px!important}
  body.hx-template-category .heichal-app__shell{padding-bottom:16px!important}
  body.hx-template-category .heichal-app__side{top:12px!important;gap:12px!important}
  body.hx-template-category .heichal-app__breadcrumbs{margin-bottom:2px!important;font-size:12px!important}
  body.hx-template-category .heichal-app__title{font-size:29px!important}
  body.hx-template-category .heichal-app__description{margin:4px 0 8px!important;font-size:14px!important}
  body.hx-template-category .heichal-app__search{height:43px!important;margin-bottom:11px!important}
  body.hx-template-category .hx-category-card-grid{gap:7px 12px!important}
  body.hx-template-category .hx-category-card{height:58px!important;min-height:58px!important;padding:5px 13px!important;grid-template-columns:46px minmax(0,1fr)!important}
  body.hx-template-category .hx-category-card__icon{width:42px!important;height:42px!important}
  body.hx-template-category .hx-category-card__copy strong{font-size:17px!important}
  body.hx-template-category .hx-category-card__copy small{margin-top:1px!important;font-size:10px!important}
  body.hx-template-category .hx-category-continue{height:128px!important;margin-top:12px!important;grid-template-columns:49% minmax(0,1fr) 184px!important}
  body.hx-template-category .hx-category-continue__copy{padding:12px 22px!important}
  body.hx-template-category .hx-category-continue__copy small{font-size:14px!important}
  body.hx-template-category .hx-category-continue__copy strong{font-size:29px!important}
  body.hx-template-category .hx-category-continue__copy em{font-size:12px!important}
  body.hx-template-category .hx-category-continue__action{min-width:150px!important;height:46px!important;font-size:17px!important}
  body.hx-template-category .heichal-app__side-card{border-radius:14px!important}
  body.hx-template-category .heichal-app__side-card:first-child{max-height:170px!important;overflow:hidden!important}
  body.hx-template-category .heichal-app__zmanim{max-height:220px!important;overflow:hidden!important}
  body.hx-template-category .heichal-app__zmanim .zmanim-row{min-height:29px!important;height:29px!important}
}

/* 1.5.1 final cascade position — keep this literal final block after all historic compatibility styles. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site .inner-nav,html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop .main-nav{grid-template-columns:350px minmax(0,1fr) 220px!important}
  html body.heichal-desktop-presentation :is(.inner-nav__tools,.main-nav__tools) .heichal-global-header-search{display:block!important;width:148px!important;min-width:148px!important;height:35px!important;opacity:1!important;overflow:visible!important;visibility:visible!important}
  html body.heichal-desktop-presentation .heichal-global-header-search input{display:block!important;width:100%!important;height:35px!important;min-height:35px!important;padding:0 13px!important;border:1px solid var(--hx-line)!important;border-radius:999px!important;background:rgba(255,253,248,.96)!important;color:var(--hx-text)!important;opacity:1!important;visibility:visible!important}
  html body.heichal-desktop-presentation .hx-nav-context{display:inline-flex!important;align-items:center!important;white-space:nowrap!important;color:var(--hx-gold-dark)!important;font-size:13px!important;font-weight:700!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__search,html body.heichal-desktop-presentation.hx-template-home .home-search{display:none!important}
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-app__breadcrumbs,.heichal-app__title,.heichal-app__description){display:none!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand{display:flex!important;align-items:center!important;justify-content:center!important;height:116px!important;min-height:116px!important;margin:0!important;padding:0!important;transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand img{width:260px!important;height:auto!important;max-height:106px!important;object-fit:contain!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app{min-height:0!important;height:auto!important;padding-bottom:0!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{display:grid!important;grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;gap:var(--hx-gap)!important;width:min(1480px,calc(100% - 48px))!important;max-width:1480px!important;margin:0 auto!important;padding:4px 0 14px!important;direction:ltr!important;align-items:start!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side,html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{min-width:0!important;direction:rtl!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side{grid-column:1!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{grid-column:2!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{padding-top:0!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category{align-items:start!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side{top:10px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card-grid{margin-top:0!important;gap:7px 12px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card{height:58px!important;min-height:58px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-continue{height:118px!important;min-height:118px!important;margin-top:10px!important}
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-home-footer,.inner-footer){margin-top:16px!important}
}

/* 1.5.2 geometry pass — kept after every legacy rule on purpose. */
@media (min-width:1024px){
  /* Never put a 100vw hero inside the overflow-hidden site canvas. */
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.dedication-hero{
    width:100%!important;
    max-width:none!important;
    margin-inline:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* One real, centred desktop grid: tools on the left, content on the right. */
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{
    display:grid!important;
    grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;
    gap:var(--hx-gap)!important;
    width:min(1480px,calc(100% - 48px))!important;
    max-width:1480px!important;
    margin:0 auto!important;
    padding:4px 0 14px!important;
    direction:ltr!important;
    align-items:start!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side,
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{
    min-width:0!important;
    direction:rtl!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side{grid-column:1!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{grid-column:2!important}
}

/* 1.5.1 final cascade position — keep this literal final block after all
   historic desktop compatibility styles. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site .inner-nav,
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop .main-nav{grid-template-columns:350px minmax(0,1fr) 220px!important}
  html body.heichal-desktop-presentation :is(.inner-nav__tools,.main-nav__tools) .heichal-global-header-search{display:block!important;width:148px!important;min-width:148px!important;height:35px!important;opacity:1!important;overflow:visible!important;visibility:visible!important}
  html body.heichal-desktop-presentation .heichal-global-header-search input{display:block!important;width:100%!important;height:35px!important;min-height:35px!important;padding:0 13px!important;border:1px solid var(--hx-line)!important;border-radius:999px!important;background:rgba(255,253,248,.96)!important;color:var(--hx-text)!important;opacity:1!important;visibility:visible!important}
  html body.heichal-desktop-presentation .hx-nav-context{display:inline-flex!important;align-items:center!important;white-space:nowrap!important;color:var(--hx-gold-dark)!important;font-size:13px!important;font-weight:700!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__search,
  html body.heichal-desktop-presentation.hx-template-home .home-search{display:none!important}
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-app__breadcrumbs,.heichal-app__title,.heichal-app__description){display:none!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand{display:flex!important;align-items:center!important;justify-content:center!important;height:116px!important;min-height:116px!important;margin:0!important;padding:0!important;transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand img{width:260px!important;height:auto!important;max-height:106px!important;object-fit:contain!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app{min-height:0!important;height:auto!important;padding-bottom:0!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{margin:0!important;padding:4px 0 14px!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{padding-top:0!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category{align-items:start!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side{top:10px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card-grid{margin-top:0!important;gap:7px 12px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card{height:58px!important;min-height:58px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-continue{height:118px!important;min-height:118px!important;margin-top:10px!important}
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-home-footer,.inner-footer){margin-top:16px!important}
}

/* 1.5.1 — canonical desktop category compacting.
   This is deliberately the final cascade layer: the content core is loaded
   after this presentation plugin and contains broad legacy desktop rules.
   Scope these overrides to the presentation body only; do not alter content,
   dedications, mail, payment or native-app integration. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site .inner-nav,
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop .main-nav{
    grid-template-columns:350px minmax(0,1fr) 220px!important;
  }

  html body.heichal-desktop-presentation :is(.inner-nav__tools,.main-nav__tools) .heichal-global-header-search{
    display:block!important;
    width:148px!important;
    min-width:148px!important;
    height:35px!important;
    opacity:1!important;
    overflow:visible!important;
    visibility:visible!important;
  }
  html body.heichal-desktop-presentation .heichal-global-header-search input{
    display:block!important;
    width:100%!important;
    height:35px!important;
    min-height:35px!important;
    padding:0 13px!important;
    border:1px solid var(--hx-line)!important;
    border-radius:999px!important;
    background:rgba(255,253,248,.96)!important;
    color:var(--hx-text)!important;
    opacity:1!important;
    visibility:visible!important;
  }
  html body.heichal-desktop-presentation .hx-nav-context{
    display:inline-flex!important;
    align-items:center!important;
    white-space:nowrap!important;
    color:var(--hx-gold-dark)!important;
    font-size:13px!important;
    font-weight:700!important;
  }

  /* Search belongs to the shared navigation; remove duplicate page controls. */
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__search,
  html body.heichal-desktop-presentation.hx-template-home .home-search{
    display:none!important;
  }

  /* Keep the compact category title beside the shared search, without spending
     a full row on title, breadcrumb and description. */
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-app__breadcrumbs,.heichal-app__title,.heichal-app__description){
    display:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:116px!important;
    min-height:116px!important;
    margin:0!important;
    padding:0!important;
    transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand img{
    width:260px!important;
    height:auto!important;
    max-height:106px!important;
    object-fit:contain!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app{
    min-height:0!important;
    height:auto!important;
    padding-bottom:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{
    margin:0!important;
    padding:4px 0 14px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{
    padding-top:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category{
    align-items:start!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side{
    top:10px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card-grid{
    margin-top:0!important;
    gap:7px 12px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card{
    height:58px!important;
    min-height:58px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-category-continue{
    height:118px!important;
    min-height:118px!important;
    margin-top:10px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-home-footer,.inner-footer){
    margin-top:16px!important;
  }
}

/* 1.5.0 — persistent navigation search and one-screen desktop composition.
   This block stays last so it decisively replaces earlier compatibility rules. */
@media (min-width:1024px){
  /* The global control is the single visible search entry point. */
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools) .heichal-global-header-search{
    display:block!important;
    flex:0 1 174px!important;
    min-width:132px!important;
  }
  body.heichal-desktop-presentation .heichal-global-header-search input{
    width:100%!important;
    height:34px!important;
    padding:0 14px!important;
    border:1px solid rgba(169,128,34,.48)!important;
    border-radius:999px!important;
    background:rgba(255,253,248,.98)!important;
    color:var(--hx-text)!important;
    font:14px "Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
    outline-offset:2px!important;
  }
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools){gap:10px!important;white-space:nowrap!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools)>a{width:24px!important;height:24px!important;flex:0 0 24px!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools)>a img{width:24px!important;height:24px!important}
  body.heichal-desktop-presentation .hx-nav-context{
    max-width:112px!important;
    overflow:hidden!important;
    color:var(--hx-gold-dark)!important;
    font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
    font-size:17px!important;
    font-weight:700!important;
    text-overflow:ellipsis!important;
  }

  /* The duplicate page-local fields are retained only as live data sources. */
  body.hx-template-home .home-search,
  body.hx-template-category .heichal-app__search{display:none!important}

  /* Category identity moves into the navigation context, releasing a full row. */
  body.hx-template-category :where(.heichal-app__breadcrumbs,.heichal-app__title,.heichal-app__description){
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  body.hx-template-category .heichal-app{min-height:0!important}
  body.hx-template-category .heichal-app__shell{padding-top:6px!important;padding-bottom:14px!important}
  body.hx-template-category .heichal-app__main{padding-top:0!important}
  body.hx-template-category .heichal-app__category{align-items:start!important}

  /* The parasha remains useful but no longer occupies a content row. */
  body.hx-template-home .weekly-parasha{
    width:min(360px,100%)!important;
    height:34px!important;
    min-height:34px!important;
    margin:0 auto 8px!important;
    border-radius:10px!important;
    font-size:14px!important;
  }
  body.hx-template-home .home-main{padding-bottom:0!important}
  body.hx-template-home .featured-prayer{margin-bottom:0!important}
  body.hx-template-home .home-content{padding-bottom:0!important}
  body.hx-template-home .heichal-home-footer{margin-top:18px!important}
}

@media (min-width:1280px) and (min-height:820px){
  body.hx-template-category .heichal-inner-site>.inner-brand{
    height:116px!important;
    min-height:116px!important;
    padding:0!important;
    transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important;
  }
  body.hx-template-category .inner-brand img{width:276px!important;height:116px!important;max-height:116px!important}
  body.hx-template-category .hx-category-card-grid{gap:7px 12px!important}
  body.hx-template-category .hx-category-card{height:56px!important;min-height:56px!important}
  body.hx-template-category .hx-category-continue{height:118px!important;margin-top:10px!important}
  body.hx-template-category .hx-category-continue__copy{padding:10px 20px!important}
  body.hx-template-category .hx-category-continue__copy strong{font-size:27px!important}
  body.hx-template-category .hx-category-continue__copy small{font-size:13px!important}
  body.hx-template-category .hx-category-continue__action{height:43px!important;font-size:16px!important}
}

/* Category visual alignment: mirror the approved desktop composition while keeping the live data and routes. */
@media (min-width:1024px){
  body.heichal-desktop-presentation :where(.main-nav__inner,.inner-nav){direction:rtl!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools){justify-content:flex-start!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools) .heichal-global-header-search{display:none!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools)>a{width:28px!important;height:28px!important;display:grid!important;place-items:center!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools)>a img{width:28px!important;height:28px!important;object-fit:contain!important}
  body.heichal-desktop-presentation :where(.inner-dedication){height:116px!important;min-height:116px!important}
  body.heichal-desktop-presentation .inner-dedication img{position:absolute!important;left:42px!important;top:3px!important;width:118px!important;height:112px!important;max-width:none!important;max-height:112px!important}
  body.heichal-desktop-presentation .inner-brand__tagline{display:none!important}
  /* Reader is a focused workspace: keep the brand present but compact in the nav. */
  body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.inner-brand{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important}
  body.heichal-desktop-presentation.hx-template-reader .inner-nav{position:relative!important;padding-right:184px!important}
  body.heichal-desktop-presentation.hx-template-reader nav.inner-nav:after{content:""!important;display:block!important;position:absolute!important;right:38px!important;top:5px!important;width:132px!important;height:45px!important;background:url('../mockup/brand-web.png') center/contain no-repeat!important;pointer-events:none!important}
  body.heichal-desktop-presentation.hx-template-reader .heichal-app__shell{padding-top:22px!important}
  body.heichal-desktop-presentation.hx-template-reader .heichal-app__reader{min-height:calc(100vh - 244px)!important}
  body.heichal-desktop-presentation.hx-template-reader .heichal-app__paper{height:calc(100vh - 244px)!important;min-height:600px!important}
  body.hx-template-category .heichal-app__search.heichal-search-source-hidden{display:block!important;width:770px!important;max-width:100%!important;height:47px!important;margin:0 auto 17px!important;padding:0 18px!important;border:1px solid var(--hx-line)!important;border-radius:14px!important;background:rgba(255,253,248,.96)!important;color:var(--hx-text)!important;font:17px "Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important}
  body.hx-template-category .heichal-app__nusach-wrap{display:none!important}
  body.hx-template-category .heichal-app__nusach{display:none!important}
  body.hx-template-category .hx-category-card__icon{filter:contrast(1.08) saturate(1.14)!important}
  body.hx-template-category .hx-category-continue{height:150px!important;margin-top:15px!important;display:grid!important;grid-template-columns:49% minmax(0,1fr) 210px!important;overflow:hidden!important;direction:ltr!important;border:1px solid var(--hx-line)!important;border-radius:16px!important;background:#fffdf8!important;box-shadow:var(--hx-shadow)!important;color:var(--hx-text)!important;text-decoration:none!important}
  body.hx-template-category .hx-category-continue__image{position:relative;display:block;background:#dac49b!important;overflow:hidden}
  body.hx-template-category .hx-category-continue__image img{width:100%;height:100%;display:block;object-fit:cover}
  body.hx-template-category .hx-category-continue__image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 42%,rgba(255,253,248,.48) 72%,rgba(255,253,248,.9) 91%,#fffdf8)}
  body.hx-template-category .hx-category-continue__copy{direction:rtl;padding:17px 29px;display:flex;flex-direction:column;justify-content:center;text-align:center}
  body.hx-template-category .hx-category-continue__copy small{font-size:16px;color:var(--hx-gold-dark);font-weight:700}
  body.hx-template-category .hx-category-continue__copy strong{margin:3px 0;color:#10254a;font:700 34px/1 "Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif}
  body.hx-template-category .hx-category-continue__copy em{font:14px/1.25 "Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif;color:#596372;font-style:normal}
  body.hx-template-category .hx-category-continue__action{align-self:center;justify-self:center;min-width:170px;height:52px;display:grid;place-items:center;border-radius:8px;background:var(--hx-navy);color:#fff;font-size:19px;font-weight:700;direction:rtl}
}

@media (min-width:1280px){
  /* Preserve flow; only visual columns move, avoiding logo/content collisions. */
  body.hx-template-category .heichal-app__shell{margin-top:0!important;padding-top:0!important}
  body.hx-template-category .heichal-app__main{padding-top:0!important;transform:none!important}
  body.hx-template-category .heichal-app__side{transform:translateY(-140px)!important}
  /* Centre the mark over the usable content column, not over the sidebar too. */
  body.hx-template-category .inner-brand{transform:translate(calc((var(--hx-sidebar) + var(--hx-gap)) / 2 - 24px),20px)!important}
  body.hx-template-reader .heichal-app__reader{margin-top:0!important}
  body.heichal-desktop-presentation :where(.dedication-hero,.inner-dedication){background-position:center 28%!important}
}

@media (min-width:1024px) and (max-width:1279px){
body.heichal-desktop-presentation{--hx-sidebar:250px;--hx-gap:24px}
body.heichal-desktop-presentation :where(.home-content,.heichal-app__shell,.heichal-inner){width:min(calc(100% - 32px),1120px)!important}
body.hx-template-reader .heichal-app__reader{grid-template-columns:220px minmax(0,1fr) 220px!important;gap:14px!important}
body.hx-template-reader .heichal-app__paper{padding-inline:28px!important}
}

/* The core stylesheet is intentionally loaded after this presentation layer.
   Repeat only the shared visual shell with a stronger desktop selector so it
   cannot replace the approved supplied artwork with its legacy gradients. */
@media (min-width:1024px){
  body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app){
    background:var(--hx-cream) url('../mockup/site-background.png') center top/cover no-repeat!important;
  }
  body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) .inner-dedication{
    height:116px!important;
    min-height:116px!important;
    background:var(--hx-navy) url('../mockup/header-background.png') center 28%/cover no-repeat!important;
  }
  body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) .inner-dedication img{
    content:url('../mockup/header-candle.png')!important;
    left:42px!important;
    top:3px!important;
    width:118px!important;
    height:112px!important;
    max-width:none!important;
    max-height:112px!important;
    object-fit:contain!important;
  }
  body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) .inner-dedication strong{
    color:#f6d77f!important;
    font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
    font-size:40px!important;
    line-height:1!important;
    font-weight:700!important;
    text-shadow:0 2px 2px rgba(0,0,0,.5)!important;
  }
  body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) .inner-nav{
    height:55px!important;
    min-height:55px!important;
    background:rgba(255,253,248,.98)!important;
  }
}

@media (prefers-reduced-motion:reduce){body.heichal-desktop-presentation *{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* 1.3.0 — authoritative desktop layouts.  These rules deliberately sit last:
   WordPress core keeps supplying the content and actions, while this plugin
   owns the desktop geometry. Mobile stays completely outside this breakpoint. */
@media (min-width:1024px){
  body.heichal-desktop-presentation{--hx-canvas:1672px;--hx-content:1494px;--hx-sidebar:282px;--hx-gap:36px;background:#fbf7ed!important}
  body.heichal-desktop-presentation :where(.heichal-home-desktop,.heichal-inner-site){width:min(100%,var(--hx-canvas))!important;min-height:100vh!important;margin-inline:auto!important;background:#fbf7ed url('../mockup/site-background.png') center top/cover no-repeat!important}

  /* Shared two-row header, always driven by the supplied artwork. */
  body.heichal-desktop-presentation :where(.dedication-hero,.inner-dedication){height:114px!important;min-height:114px!important;background:#061b2d url('../mockup/header-background.png') center/cover no-repeat!important}
  body.heichal-desktop-presentation :where(.dedication-hero__title,.inner-dedication strong){font-size:38px!important;color:#f3d371!important}
  body.heichal-desktop-presentation :where(.dedication-hero__candle,.inner-dedication img){width:104px!important;height:108px!important;max-height:108px!important;object-fit:contain!important}
  body.heichal-desktop-presentation .inner-dedication img{left:48px!important;top:2px!important}
  body.heichal-desktop-presentation :where(.dedication-hero__button,.inner-dedication a){min-width:185px!important;height:48px!important;border-radius:11px!important}
  body.heichal-desktop-presentation :where(.main-nav,.inner-nav){height:54px!important;min-height:54px!important;background:rgba(255,253,248,.985)!important}
  body.heichal-desktop-presentation :where(.main-nav__inner,.inner-nav){height:54px!important;grid-template-columns:280px minmax(0,1fr) 280px!important;padding-inline:44px!important}
  body.heichal-desktop-presentation :where(.main-nav__links,.inner-nav__links){height:54px!important;gap:clamp(34px,4.2vw,80px)!important}
  body.heichal-desktop-presentation :where(.main-nav__link,.inner-nav__links a){height:54px!important;font-size:16px!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools)>a{width:30px!important;height:30px!important}
  body.heichal-desktop-presentation :where(.main-nav__tools,.inner-nav__tools)>a img{width:27px!important;height:27px!important}

  /* Home and categories share exactly the approved desktop shell. */
  body.heichal-desktop-presentation :where(.home-content,.heichal-app__shell){width:min(calc(100% - 116px),var(--hx-content))!important;max-width:var(--hx-content)!important}
  body.hx-template-home .home-layout,
  body.hx-template-category .heichal-app__category{grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;gap:var(--hx-gap)!important}
  body.hx-template-home .home-sidebar{padding-top:76px!important}
  body.hx-template-category .heichal-app__side{width:var(--hx-sidebar)!important;transform:none!important;top:18px!important}
  body.hx-template-category .heichal-app__main{padding-top:0!important;text-align:center!important}

  /* Large brand only on home/category, centred over the usable main column. */
  body.hx-template-category .heichal-inner-site>.inner-brand{height:166px!important;min-height:166px!important;padding:8px 0 0!important;transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important}
  body.hx-template-category .inner-brand img{width:330px!important;height:150px!important;max-height:150px!important}
  body.hx-template-home .brand-section{height:176px!important;min-height:176px!important}
  body.hx-template-home .brand-lockup__image{width:330px!important;height:146px!important}
  body.hx-template-home .hx-home-intro{margin:-5px auto 10px!important}
  body.hx-template-home .hx-home-intro h1{font-size:30px!important}

  /* The category main area is a faithful 3×3 compact gallery, never the old
     library rows. The source menu remains in DOM for its actual routes. */
  body.hx-template-category .heichal-app__breadcrumbs{margin:0 0 4px!important}
  body.hx-template-category .heichal-app__title{font-size:33px!important;line-height:1.08!important}
  body.hx-template-category .heichal-app__description{margin:6px 0 12px!important;font-size:15px!important}
  body.hx-template-category .heichal-app__search{display:block!important;width:770px!important;max-width:100%!important;height:47px!important;margin:0 auto 17px!important}
  body.hx-template-category .hx-category-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 13px!important}
  body.hx-template-category .hx-category-card{height:66px!important;min-height:66px!important;padding:7px 15px!important;grid-template-columns:52px minmax(0,1fr)!important;border-radius:12px!important}
  body.hx-template-category .hx-category-card__icon{width:47px!important;height:47px!important}
  body.hx-template-category .hx-category-card__copy strong{font-size:18px!important}
  body.hx-template-category .hx-category-card__copy small{font-size:11px!important}
  body.hx-template-category .hx-category-continue{height:150px!important;margin-top:15px!important;grid-template-columns:49% minmax(0,1fr) 202px!important}

  /* Home uses the same visual rhythm as category. */
  body.hx-template-home .category-grid{gap:8px 13px!important}
  body.hx-template-home .category-card{height:66px!important;min-height:66px!important}
  body.hx-template-home .category-card__icon{width:47px!important;height:47px!important}
  body.hx-template-home .recent-card{min-height:171px!important}
  body.hx-template-home .zmanim-card{min-height:228px!important}
  body.hx-template-home .featured-prayer{height:150px!important}

  /* Reader is deliberately a separate workspace: its compact brand lives in
     the navigation, and the prayer column alone owns scrolling. */
  body.hx-template-reader .heichal-inner-site{height:100vh!important;min-height:730px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body.hx-template-reader .heichal-inner-site>.inner-brand{display:none!important}
  body.hx-template-reader .inner-nav{padding-right:198px!important}
  body.hx-template-reader .hx-reader-nav-brand{position:absolute!important;right:38px!important;top:5px!important;width:140px!important;height:44px!important;object-fit:contain!important;pointer-events:none!important}
  body.hx-template-reader .heichal-app__shell{flex:1 1 auto!important;min-height:0!important;width:min(calc(100% - 116px),var(--hx-content))!important;padding:16px 0!important}
  body.hx-template-reader .heichal-app__reader{height:100%!important;min-height:0!important;padding:0!important;grid-template-columns:248px minmax(0,1fr) 248px!important;gap:24px!important}
  body.hx-template-reader .heichal-app__paper{height:auto!important;min-height:0!important;padding:22px 48px 13px!important}
  body.hx-template-reader .heichal-app__paper h1{font-size:47px!important}
  body.hx-template-reader .heichal-app__text{font-size:29px!important;line-height:1.82!important}
  body.hx-template-reader :where(.heichal-app__tools,.heichal-app__toc){top:0!important}
  body.hx-template-reader .inner-footer{flex:0 0 58px!important;margin-top:0!important}

  /* Shared footer: links right, tagline centre, social links left. */
  body.heichal-desktop-presentation :where(.heichal-home-footer,.inner-footer){min-height:58px!important;margin-top:18px!important;padding-inline:58px!important;grid-template-columns:1fr auto 1fr!important}
  body.hx-template-reader .inner-footer{margin-top:0!important}
}

/* 1.3.2 — the supplied parchment artwork is structural, not a flat fill.
   Keep its native 1680×934 composition intact so the arches remain visible
   on the desktop canvas; the transparent building is a quiet second layer. */
@media (min-width:1024px){
  body.heichal-desktop-presentation :where(.heichal-home-desktop,.heichal-inner-site){
    background-color:#fbf7ed!important;
    background-image:url('../mockup/building.png'),url('../mockup/site-background.png')!important;
    background-position:right 42px bottom 74px,center top!important;
    background-size:300px auto,100% auto!important;
    background-repeat:no-repeat,repeat-y!important;
    background-attachment:scroll,scroll!important;
  }
  /* Core containers must stay transparent or they erase the supplied arches. */
  body.heichal-desktop-presentation :where(.heichal-home-desktop .home-content,.heichal-inner-site .heichal-app,.heichal-inner-site .heichal-app__shell){
    background:transparent!important;
  }
  body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site{
    background-position:right 34px bottom 92px,center top!important;
    background-size:254px auto,100% auto!important;
  }
}

/* 1.4.0 final overrides — intentionally last, after legacy compatibility
   selectors shipped by the content plugin. */
@media (min-width:1024px){
  /* brand-web already contains its tagline and ornament; suppress the old
     second tagline rather than stacking it below the image. */
  body.heichal-desktop-presentation .inner-brand>small{display:none!important}

  /* The home dedication strip is intentionally edge-to-edge. */
  body.hx-template-home .dedication-hero{width:100vw!important;margin-inline:calc(50% - 50vw)!important}

  /* Retain the simple warm, glowing line from the approved mockup. */
  body.heichal-desktop-presentation :where(.dedication-hero__title,.inner-dedication strong){position:relative!important}
  body.heichal-desktop-presentation :where(.dedication-hero__title,.inner-dedication strong)::after{content:"";width:168px;height:2px;display:block;margin:10px auto 0;background:linear-gradient(90deg,transparent,#d9a63b 22%,#fff0a0 50%,#d9a63b 78%,transparent);box-shadow:0 0 8px rgba(244,193,72,.72)}
}

@media (min-width:1280px) and (min-height:820px){
  body.hx-template-home .brand-section{height:144px!important;min-height:144px!important;padding:5px 0 0!important}
  body.hx-template-home .brand-lockup__image{width:290px!important;height:130px!important}
  body.hx-template-home .hx-home-intro{margin:-1px auto 7px!important}
  body.hx-template-home .hx-home-intro h1{font-size:28px!important}
  body.hx-template-home .hx-home-intro p{margin-top:3px!important;font-size:14px!important}
  body.hx-template-home .weekly-parasha,body.hx-template-home .home-search{height:43px!important}
  body.hx-template-home .home-search{margin-top:8px!important}
  body.hx-template-home .category-grid{margin-top:10px!important;gap:7px 12px!important}
  body.hx-template-home .category-card{height:58px!important;min-height:58px!important;grid-template-columns:46px minmax(0,1fr)!important}
  body.hx-template-home .category-card__icon{width:41px!important;height:41px!important}
  body.hx-template-home .category-card__title{font-size:17px!important}
  body.hx-template-home .featured-prayer{height:130px!important;margin-top:12px!important}
  body.hx-template-home .home-sidebar{padding-top:54px!important;gap:12px!important}
  body.hx-template-home .recent-card{min-height:154px!important;padding:12px 16px!important}
  body.hx-template-home .recent-item{min-height:48px!important}
  body.hx-template-home .zmanim-card{min-height:208px!important;padding:12px 15px!important}
  body.hx-template-home .zmanim-row{height:31px!important}

  body.hx-template-category .heichal-inner-site>.inner-brand{height:130px!important;min-height:130px!important;padding-top:2px!important;transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important}
  body.hx-template-category .inner-brand img{width:292px!important;height:126px!important;max-height:126px!important}
  body.hx-template-category .heichal-app__shell{padding-bottom:16px!important}
  body.hx-template-category .heichal-app__side{top:12px!important;gap:12px!important}
  body.hx-template-category .heichal-app__breadcrumbs{margin-bottom:2px!important;font-size:12px!important}
  body.hx-template-category .heichal-app__title{font-size:29px!important}
  body.hx-template-category .heichal-app__description{margin:4px 0 8px!important;font-size:14px!important}
  body.hx-template-category .heichal-app__search{height:43px!important;margin-bottom:11px!important}
  body.hx-template-category .hx-category-card-grid{gap:7px 12px!important}
  body.hx-template-category .hx-category-card{height:58px!important;min-height:58px!important;padding:5px 13px!important;grid-template-columns:46px minmax(0,1fr)!important}
  body.hx-template-category .hx-category-card__icon{width:42px!important;height:42px!important}
  body.hx-template-category .hx-category-card__copy strong{font-size:17px!important}
  body.hx-template-category .hx-category-card__copy small{margin-top:1px!important;font-size:10px!important}
  body.hx-template-category .hx-category-continue{height:128px!important;margin-top:12px!important;grid-template-columns:49% minmax(0,1fr) 184px!important}
  body.hx-template-category .hx-category-continue__copy{padding:12px 22px!important}
  body.hx-template-category .hx-category-continue__copy small{font-size:14px!important}
  body.hx-template-category .hx-category-continue__copy strong{font-size:29px!important}
  body.hx-template-category .hx-category-continue__copy em{font-size:12px!important}
  body.hx-template-category .hx-category-continue__action{min-width:150px!important;height:46px!important;font-size:17px!important}
  body.hx-template-category .heichal-app__side-card{border-radius:14px!important}
  body.hx-template-category .heichal-app__side-card:first-child{max-height:170px!important;overflow:hidden!important}
  body.hx-template-category .heichal-app__zmanim{max-height:220px!important;overflow:hidden!important}
  body.hx-template-category .heichal-app__zmanim .zmanim-row{min-height:29px!important;height:29px!important}
}

/* 1.5.2 canonical final cascade — must remain last. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site .inner-nav,html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop .main-nav{grid-template-columns:350px minmax(0,1fr) 220px!important}
  html body.heichal-desktop-presentation :is(.inner-nav__tools,.main-nav__tools) .heichal-global-header-search{display:block!important;width:148px!important;min-width:148px!important;height:35px!important;opacity:1!important;overflow:visible!important;visibility:visible!important}
  html body.heichal-desktop-presentation .heichal-global-header-search input{display:block!important;width:100%!important;height:35px!important;min-height:35px!important;padding:0 13px!important;border:1px solid var(--hx-line)!important;border-radius:999px!important;background:rgba(255,253,248,.96)!important;color:var(--hx-text)!important;opacity:1!important;visibility:visible!important}
  html body.heichal-desktop-presentation .hx-nav-context{display:inline-flex!important;align-items:center!important;white-space:nowrap!important;color:var(--hx-gold-dark)!important;font-size:13px!important;font-weight:700!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__search,html body.heichal-desktop-presentation.hx-template-home .home-search{display:none!important}
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-app__breadcrumbs,.heichal-app__title,.heichal-app__description){display:none!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand{display:flex!important;align-items:center!important;justify-content:center!important;height:116px!important;min-height:116px!important;margin:0!important;padding:0!important;transform:translateX(calc((var(--hx-sidebar) + var(--hx-gap)) / 2))!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.inner-brand img{width:260px!important;height:auto!important;max-height:106px!important;object-fit:contain!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app{min-height:0!important;height:auto!important;padding-bottom:0!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{display:grid!important;grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;gap:var(--hx-gap)!important;width:min(1480px,calc(100% - 48px))!important;max-width:1480px!important;margin:0 auto!important;padding:4px 0 14px!important;direction:ltr!important;align-items:start!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side,html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{min-width:0!important;direction:rtl!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__side{grid-column:1!important;top:10px!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{grid-column:2!important;padding-top:0!important}
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category{align-items:start!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card-grid{margin-top:0!important;gap:7px 12px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-card{height:58px!important;min-height:58px!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-category-continue{height:118px!important;min-height:118px!important;margin-top:10px!important}
  html body.heichal-desktop-presentation.hx-template-category :is(.heichal-home-footer,.inner-footer){margin-top:16px!important}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.dedication-hero{width:100%!important;max-width:none!important;margin-inline:0!important;margin-left:0!important;margin-right:0!important}
}

/* 1.5.3 final category layout override. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    grid-column:2!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main .hx-category-showcase,
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main .hx-category-card-grid,
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__main .hx-category-continue{
    width:100%!important;
    max-width:none!important;
  }
}

/* 1.5.5 final: the actual category grid owner. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__shell{
    display:block!important;
    width:min(1480px,calc(100% - 48px))!important;
    max-width:1480px!important;
    margin:0 auto!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category{
    display:grid!important;
    grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;
    gap:var(--hx-gap)!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    direction:ltr!important;
    align-items:start!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category>.heichal-app__side{
    grid-column:1!important;
    width:var(--hx-sidebar)!important;
    min-width:0!important;
    direction:rtl!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__category>.heichal-app__main{
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    direction:rtl!important;
  }
}

/* 1.5.6 final: shared header geometry and one reader brand. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{overflow:visible!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.dedication-hero{position:relative!important;width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,html body.heichal-desktop-presentation.hx-template-reader .inner-brand img{display:none!important;}
  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand{display:block!important;}
  html body.heichal-desktop-presentation :is(.main-nav__tools,.inner-nav__tools){flex-direction:row-reverse!important;}
}

/* 1.5.7 actual final cascade: root canvas and footer geometry. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation{--hx-adminbar-offset:0px;}
  html body.heichal-desktop-presentation > .site-footer{display:none!important;}
  html body.heichal-desktop-presentation :is(.page-content,.heichal-site-wrap,.heichal-site-shell){margin-bottom:0!important;padding-bottom:0!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{width:100vw!important;max-width:100vw!important;min-height:calc(100vh - var(--hx-adminbar-offset))!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;display:flex!important;flex-direction:column!important;overflow:visible!important;background-position:right 42px bottom 74px,center top!important;background-size:300px auto,100% auto!important;background-repeat:no-repeat,repeat-y!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop>.home-content{flex:1 0 auto!important;}
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-footer{flex:0 0 58px!important;margin-top:auto!important;}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site{width:100vw!important;max-width:100vw!important;min-height:calc(100vh - var(--hx-adminbar-offset))!important;height:auto!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;display:flex!important;flex-direction:column!important;overflow:visible!important;background-position:right 42px bottom 74px,center top!important;background-size:300px auto,100% auto!important;background-repeat:no-repeat,repeat-y!important;}
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.heichal-app{flex:1 0 auto!important;min-height:0!important;}
  html body.heichal-desktop-presentation.hx-template-category .inner-footer{flex:0 0 58px!important;margin-top:auto!important;}
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site{width:100vw!important;max-width:100vw!important;height:calc(100vh - var(--hx-adminbar-offset))!important;min-height:0!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;overflow:hidden!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-footer{flex:0 0 58px!important;min-height:58px!important;margin-top:0!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-nav::before,html body.heichal-desktop-presentation.hx-template-reader .inner-nav::after{content:none!important;display:none!important;background:none!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,html body.heichal-desktop-presentation.hx-template-reader .inner-brand *{display:none!important;}
  html body.heichal-desktop-presentation :is(.dedication-hero__title,.inner-dedication strong)::after{display:none!important;}
}

/* 1.5.8: make the desktop shell own the entire viewport.  The active theme
   inserts an empty #site-header on library routes; it is not a user/admin
   bar and must never reserve vertical space for the presentation. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation > #site-header{
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  html body.heichal-desktop-presentation > #content{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  html body.heichal-desktop-presentation :is(.heichal-home-desktop,.heichal-inner-site){
    width:100%!important;
    max-width:none!important;
    margin-inline:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-desktop{
    min-height:calc(100dvh - var(--hx-adminbar-offset))!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .main-nav{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .home-content{
    flex:1 1 auto!important;
    min-height:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .heichal-home-footer{
    width:100%!important;
    max-width:none!important;
    margin-top:auto!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site,
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site{
    display:flex!important;
    flex-direction:column!important;
    min-height:calc(100dvh - var(--hx-adminbar-offset))!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-inner-site>.heichal-app{
    flex:1 1 auto!important;
    min-height:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .inner-footer{
    width:100%!important;
    margin-top:auto!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site{
    height:calc(100dvh - var(--hx-adminbar-offset))!important;
    overflow:hidden!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.heichal-app{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .inner-footer{
    width:100%!important;
    margin-top:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand *{
    display:none!important;
  }
  html body.heichal-desktop-presentation .dedication-hero__ornament{
    display:none!important;
  }
  html body.heichal-desktop-presentation .dedication-hero__title-wrap::after{
    content:""!important;
    display:block!important;
    width:148px!important;
    height:2px!important;
    margin:8px auto 0!important;
    border-radius:999px!important;
    background:linear-gradient(90deg,transparent,#d7a932 24%,#fff1b0 50%,#d7a932 76%,transparent)!important;
    box-shadow:0 0 11px rgba(215,169,50,.55)!important;
  }
}

/* 1.5.9 final cascade — shared desktop shell on every route. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation :is(.heichal-home-desktop,.heichal-inner-site){
    width:100vw!important;max-width:100vw!important;
    min-height:calc(100dvh - var(--hx-adminbar-offset))!important;
    margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
    background-color:#fbf7ed!important;
    background-image:url('../mockup/building.png'),url('../mockup/site-background.png')!important;
    background-repeat:no-repeat,repeat-y!important;
    background-position:right 42px bottom 74px,center top!important;
    background-size:300px auto,100% auto!important;
  }
  html body.heichal-desktop-presentation :is(.dedication-hero,.inner-dedication){
    height:114px!important;min-height:114px!important;
    background-color:#061b2d!important;background-image:url('../mockup/header-background.png')!important;
    background-repeat:no-repeat!important;background-position:center!important;background-size:cover!important;
  }
  html body.heichal-desktop-presentation :is(.main-nav,.inner-nav){height:54px!important;min-height:54px!important;width:100%!important;max-width:none!important;background:#fffdf8!important;}
  html body.heichal-desktop-presentation :is(.main-nav__inner,.inner-nav){height:54px!important;grid-template-columns:280px minmax(0,1fr) 280px!important;padding-inline:44px!important;}
  html body.heichal-desktop-presentation :is(.main-nav__links,.inner-nav__links),html body.heichal-desktop-presentation :is(.main-nav__link,.inner-nav__links a){height:54px!important;}

  /* The shared parchment remains visible around every inner template. */
  html body.heichal-desktop-presentation :is(.heichal-inner-site>.heichal-app,.heichal-inner-site .heichal-app__shell){background:transparent!important;}

  /* Reader: one compact mark in the navigation; no second content-area logo. */
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .heichal-inner-site>.inner-brand *{display:none!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;}
  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand{display:block!important;position:absolute!important;right:38px!important;top:5px!important;width:140px!important;height:44px!important;object-fit:contain!important;}

  /* Footer geometry and content regions match the approved home layout. */
  html body.heichal-desktop-presentation :is(.heichal-home-footer,.inner-footer){width:100vw!important;max-width:100vw!important;min-height:58px!important;margin:18px calc(50% - 50vw) 0!important;padding:0 58px!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;background:linear-gradient(180deg,#061f31,#031827)!important;}
  html body.heichal-desktop-presentation.hx-template-category .inner-footer{margin-top:auto!important;}
  html body.heichal-desktop-presentation.hx-template-reader .inner-footer{margin-top:0!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__social{justify-self:start!important;display:flex!important;gap:14px!important;direction:ltr!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__social a{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border:1px solid rgba(246,214,125,.72)!important;border-radius:50%!important;color:#f6d67d!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__brand{justify-self:center!important;display:grid!important;justify-items:center!important;color:#f6d67d!important;line-height:1!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__brand small{font-size:11px!important;color:#f6e6b5!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__links{justify-self:end!important;display:flex!important;gap:16px!important;}
  html body.heichal-desktop-presentation .inner-footer .heichal-home-footer__links a{color:#f6e6b5!important;text-decoration:none!important;font-size:13px!important;}

  /* Current verified data contains three times only; leave room for a future
     real full feed instead of inventing halachic times. */
  html body.heichal-desktop-presentation.hx-template-home .zmanim-card{min-height:262px!important;padding:16px 18px!important;}
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row{min-height:36px!important;height:auto!important;}
}

/* Mobile is deliberately not re-skinned by the desktop layer. */
@media (max-width:1023px){html body.heichal-desktop-presentation .hx-reader-nav-brand{display:none!important;}}
/* Safety rail: desktop-only injected chrome must never affect mobile layout. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .hx-reader-nav-brand,
  html body.heichal-desktop-presentation .hx-category-choice-panel,
  html body.heichal-desktop-presentation .hx-nav-context{display:none!important;}
}
/* -------------------------------------------------------------------------
   1.6.0 — shared desktop composition
   One visual canvas for home, category and reader.  This deliberately
   supersedes the previous page-by-page overrides rather than adding another
   independent layout system.  Mobile remains owned by the existing app-like
   presentation below 1024px.
   ------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  html body.heichal-desktop-presentation {
    --hx-canvas: #fbf7ed;
    --hx-ink: #08263a;
    --hx-gold: #b78119;
    --hx-line: #e4c987;
    --hx-content-width: min(1280px, calc(100vw - 120px));
    --hx-side-width: 286px;
    --hx-layout-gap: 32px;
  }

  /* Keep the parchment as one continuous canvas; never render a decorative
     image as a detached tile inside the reader or an inner page. */
  html body.heichal-desktop-presentation :is(.heichal-home-desktop, .heichal-inner-site) {
    background-color: var(--hx-canvas) !important;
    background-image: url('../mockup/site-background.png') !important;
    background-repeat: repeat-y !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    isolation: isolate;
  }

  html body.heichal-desktop-presentation :is(.heichal-inner-site, .heichal-home-desktop)::before,
  html body.heichal-desktop-presentation :is(.heichal-inner-site, .heichal-home-desktop)::after {
    background-image: none !important;
  }

  /* The dedication banner and navigation are a shared full-bleed shell. */
html body.heichal-desktop-presentation :is(.dedication-hero, .inner-dedication) {
    min-height: 112px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
  }

  html body.heichal-desktop-presentation :is(.main-nav, .inner-nav) {
    min-height: 58px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    padding-inline: max(36px, calc((100vw - var(--hx-content-width)) / 2)) !important;
    box-sizing: border-box !important;
  }

  html body.heichal-desktop-presentation :is(.main-nav__inner, .inner-nav__inner, .inner-nav) {
    min-height: 58px !important;
    align-items: center !important;
  }

  /* Consistent visual weight for the three navigation zones. */
  html body.heichal-desktop-presentation :is(.main-nav__links, .inner-nav__links, .main-nav__menu, .inner-nav__menu) {
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(26px, 3vw, 52px) !important;
  }

  html body.heichal-desktop-presentation :is(.main-nav__utilities, .inner-nav__utilities, .hx-nav-tools, .hx-global-search) {
    align-items: center !important;
  }

  /* Reader logo is deliberately in the navigation line only. */
  html body.heichal-desktop-presentation.hx-template-reader .inner-brand,
  html body.heichal-desktop-presentation.hx-template-reader .heichal-app__brand {
    display: none !important;
  }

  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 138px !important;
    height: 50px !important;
    overflow: hidden;
  }

  html body.heichal-desktop-presentation.hx-template-reader .hx-reader-nav-brand img {
    display: block;
    width: 132px !important;
    max-height: 47px !important;
    object-fit: contain;
  }

  /* Shared side rails: breathe, but do not drift below a short page. */
  html body.heichal-desktop-presentation :is(.hx-template-home, .hx-template-category) :is(.zmanim-card, .hx-zmanim-card) {
    min-height: 292px !important;
  }

  html body.heichal-desktop-presentation :is(.zmanim-card, .hx-zmanim-card) :is(li, .zmanim-row, .hx-zmanim-row) {
    min-height: 39px;
    display: flex;
    align-items: center;
  }

  /* A single, stable rhythm for every desktop category/rubric card. */
  html body.heichal-desktop-presentation :is(.category-card, .hx-category-card, .hx-home-category-card, .heichal-category-card) {
    min-height: 70px !important;
    padding: 11px 18px !important;
    box-sizing: border-box !important;
  }

  html body.heichal-desktop-presentation :is(.category-card, .hx-category-card, .hx-home-category-card, .heichal-category-card) :is(.category-card__content, .hx-category-card__content, .card-content, .category-copy) {
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  html body.heichal-desktop-presentation :is(.category-card, .hx-category-card, .hx-home-category-card, .heichal-category-card) :is(h2, h3, h4, .category-card__title, .hx-category-card__title) {
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: right !important;
  }

  html body.heichal-desktop-presentation :is(.category-card, .hx-category-card, .hx-home-category-card, .heichal-category-card) :is(p, small, .category-card__description, .hx-category-card__description) {
    margin: 0 !important;
    line-height: 1.25 !important;
    text-align: right !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html body.heichal-desktop-presentation :is(.category-card, .hx-category-card, .hx-home-category-card, .heichal-category-card) :is(img, svg, .category-card__icon, .hx-category-card__icon) {
    flex: 0 0 auto;
    align-self: center;
  }

  /* Compact title lane for categories. Search belongs to the global nav. */
  html body.heichal-desktop-presentation .hx-category-heading {
    width: min(1120px, calc(100% - 32px));
    margin: 10px auto 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: var(--hx-ink);
  }

  html body.heichal-desktop-presentation .hx-category-heading h1 {
    margin: 0;
    color: #a97719;
    font-size: clamp(27px, 2vw, 38px);
    line-height: 1;
  }

  html body.heichal-desktop-presentation .hx-category-heading p {
    margin: 0;
    color: #667182;
    font-size: 14px;
  }

  /* Footer follows the page content without leaving a second canvas below it. */
  html body.heichal-desktop-presentation :is(.heichal-home-desktop, .heichal-inner-site) {
    min-height: calc(100dvh - var(--hx-adminbar-offset, 0px)) !important;
    display: flex;
    flex-direction: column;
  }

  html body.heichal-desktop-presentation :is(.heichal-home-desktop, .heichal-inner-site) :is(.home-footer, .inner-footer, .hx-unified-footer) {
    margin-top: auto !important;
    flex: 0 0 auto;
  }
}

/* Keep the same illuminated dedication underline on home and inner pages. */
html body.heichal-desktop-presentation :is(.dedication-hero__title, .inner-dedication strong)::after {
  content:"" !important;
  width:168px !important;
  height:2px !important;
  display:block !important;
  margin:10px auto 0 !important;
  background:linear-gradient(90deg,transparent,#d9a63b 22%,#fff0a0 50%,#d9a63b 78%,transparent) !important;
  box-shadow:0 0 8px rgba(244,193,72,.72) !important;
}

/* The home banner already owns its original ornament line; avoid duplicating it. */
html body.heichal-desktop-presentation.hx-template-home .dedication-hero__title::after {
  content:none !important;
  display:none !important;
}
/* 1.8.0 - reader controls and the final desktop behaviour layer.
   This remains desktop-only: the existing mobile presentation is untouched. */
@media (min-width: 1024px) {
  .hx-category-choice__nusach {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 4px;
    padding: 3px 9px;
    border: 1px solid rgba(185, 130, 25, .45);
    border-radius: 999px;
    color: #a66f10 !important;
    background: #fff8e8;
    font-weight: 700;
  }

  body.hx-template-reader .heichal-app__paper > h1,
  body.hx-template-reader .heichal-app__paper > .heichal-app__subtitle,
  body.hx-template-reader .heichal-app__paper > .heichal-app__reader-search,
  body.hx-template-reader .heichal-app__paper > .heichal-app__reader-meta,
  body.hx-template-reader .heichal-app__paper > .heichal-app__reader-heading {
    display: none !important;
  }

  body.hx-template-reader .heichal-app__paper {
    padding-top: 18px !important;
  }

  body.hx-template-reader .heichal-app__text {
    max-width: 920px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.hx-template-reader [data-reader-speed].hx-reader-speed-label {
    display: block !important;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid #c99525;
    border-radius: 10px;
    color: #fff7de;
    background: rgba(0, 26, 43, .92);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  body.hx-template-reader [data-reader-night].is-active {
    color: #071d31 !important;
    background: #d4a42f !important;
    box-shadow: 0 0 0 2px rgba(212, 164, 47, .2);
  }

  html.heichal-night-mode body.hx-template-reader,
  html.heichal-night-mode body.hx-template-reader .heichal-app__reader,
  html.heichal-night-mode body.hx-template-reader .heichal-app__paper {
    background-color: #071b2b !important;
  }

  html.heichal-night-mode body.hx-template-reader .heichal-app__paper,
  html.heichal-night-mode body.hx-template-reader .heichal-app__text,
  html.heichal-night-mode body.hx-template-reader .heichal-app__text * {
    color: #fff4d8;
  }
}

/* 1.9.72: “לילה” is a visible in-page theme toggle, never a page destination. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation .main-nav__link--night{display:inline-flex!important;}
}

/* 1.9.68: keep the full-bleed reader shell inside the scrollbar viewport. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-reader :is(.inner-dedication,.inner-nav){
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
  }
  html body.heichal-desktop-presentation :is(.heichal-app__favorite,.hx-site-favorite,.hx-reader-favorite){
    display:inline-grid!important;place-items:center!important;width:34px!important;height:34px!important;padding:0!important;
    border:1px solid rgba(169,119,25,.48)!important;border-radius:50%!important;background:#fffaf0!important;
    color:#9b741d!important;font-size:20px!important;line-height:1!important;cursor:pointer!important;
  }
  html body.heichal-desktop-presentation :is(.heichal-app__favorite,.hx-site-favorite,.hx-reader-favorite).is-favorite{
    background:#9b741d!important;color:#fffdf8!important;
  }
  html body.heichal-desktop-presentation .hx-site-favorites-list{
    display:grid!important;gap:10px!important;width:min(100% - 48px,820px)!important;margin:24px auto!important;padding:22px!important;
    border:1px solid rgba(169,128,34,.34)!important;border-radius:18px!important;background:#fffdf8!important;
  }
  html body.heichal-desktop-presentation .hx-site-favorites-list a{
    padding:13px 16px!important;border:1px solid rgba(169,128,34,.28)!important;border-radius:12px!important;color:#071d2d!important;text-decoration:none!important;
  }
}

/* 1.9.69 final night override: keep this last so legacy presentation rules
   cannot reintroduce cream surfaces after night mode is enabled. */
@media (min-width:1024px){
  html.heichal-night-mode body.heichal-desktop-presentation,
  html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-home-desktop,.home-workspace,.home-main,.home-sidebar,.heichal-app,.heichal-app__main,.heichal-app__category,.heichal-inner-site,.site-main,.page-content,.entry-content){
    background-color:#071d2d!important;color:#f2e6bd!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation :is(.sidebar-card,.featured-prayer,.category-card,.hx-category-card,.heichal-app__item,.heichal-app__paper,.heichal-app__toc-card,.heichal-app__side-card,.heichal-library-menu__group,.heichal-library-menu__service,.hx-site-favorites-list,article){
    background:#102a3b!important;color:#f2e6bd!important;border-color:rgba(212,164,47,.38)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation :is(.sidebar-card,.featured-prayer,.category-card,.hx-category-card,.heichal-app__item,.heichal-app__paper,.heichal-app__toc-card,.heichal-app__side-card,.heichal-library-menu__group,.heichal-library-menu__service,.hx-site-favorites-list,article) :is(h1,h2,h3,h4,p,span,strong,small,li,a){
    color:#f2e6bd!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .hx-site-favorites-list a{
    background:#0b2232!important;color:#f2d681!important;border-color:rgba(212,164,47,.34)!important;
  }
}

/* 1.9.69 final background-image neutralization. */
@media (min-width:1024px){
  html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-wrap,.heichal-home-desktop,.heichal-inner-site){
    background-color:#071d2d!important;background-image:none!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation.hx-template-home .heichal-site-wrap .heichal-home-desktop{
    background:#071d2d!important;background-color:#071d2d!important;background-image:none!important;
  }
  body.heichal-desktop-presentation .hx-favorites-magen{display:inline-block;font-size:20px;line-height:1;color:#b78b29;}
}
body.heichal-desktop-presentation [data-reader-font-family][aria-pressed="true"]{
  border-color:#b88a22!important;
  background:#fff8df!important;
  color:#7a5711!important;
}
/* 1.9.90: the supplied main-section line art needs a little more presence on
   desktop. This is intentionally scoped away from inner category/prayer art. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-home a.category-card img.hx-main-category-artwork{
    width:44px!important;
    height:44px!important;
    max-width:44px!important;
    object-fit:contain!important;
    justify-self:center!important;
    align-self:center!important;
  }
}

/* 1.9.99: show five genuinely upcoming zmanim on the desktop home card and
   make the immediate next time unmistakable. Mobile retains its compact UI. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-home .zmanim-card{
    min-height:332px!important;
    padding:16px 18px!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-list{
    display:grid!important;
    gap:4px!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row.hx-upcoming-zman{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr) 24px!important;
    align-items:center!important;
    min-height:38px!important;
    height:auto!important;
    padding:4px 8px!important;
    border:1px solid transparent!important;
    border-radius:10px!important;
    transition:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row.hx-upcoming-zman.is-next{
    min-height:47px!important;
    background:linear-gradient(90deg,rgba(211,164,49,.22),rgba(211,164,49,.08))!important;
    border-color:rgba(242,230,189,.62)!important;
    box-shadow:0 0 0 1px rgba(211,164,49,.12),0 7px 18px rgba(0,0,0,.16)!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row.hx-upcoming-zman.is-next .zmanim-row__time{
    color:#fff3bf!important;
    font-size:18px!important;
    font-weight:800!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row__label{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-home :is(.zmanim-row__badge,.zmanim-row__day){
    display:inline-flex!important;
    align-items:center!important;
    min-height:19px!important;
    padding:1px 6px!important;
    border-radius:999px!important;
    font-size:10px!important;
    font-weight:800!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row__badge{
    color:#071d2d!important;
    background:#f2e6bd!important;
  }
  html body.heichal-desktop-presentation.hx-template-home .zmanim-row__day{
    color:#f2e6bd!important;
    border:1px solid rgba(242,230,189,.45)!important;
    background:rgba(255,255,255,.04)!important;
  }
}
/* 1.9.101: keep the recent-history card intentionally concise. */
body.heichal-desktop-presentation .recent-card > .recent-item:nth-of-type(n + 3),
body.heichal-desktop-presentation .recent-card > .sidebar-link {
  display: none !important;
}

/* 1.9.102: real recent history and one semantic category structure on every
   viewport. Desktop follows the already-approved mobile hierarchy. */
body.heichal-desktop-presentation :is(.recent-card,.heichal-app__recent) .hx-recent-entry{
  color:inherit!important;
  text-decoration:none!important;
}
body.heichal-desktop-presentation :is(.recent-card,.heichal-app__recent) .hx-recent-empty{
  margin:14px 0 4px!important;
  color:var(--hx-muted)!important;
  font-size:14px!important;
  text-align:center!important;
}
body.heichal-desktop-presentation .recent-card>.hx-recent-entry{
  display:grid!important;
}

@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-category :is(.hx-category-showcase,.hx-category-continue){
    display:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-library-menu{
    display:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-groups{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
    margin:14px 0 28px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group{
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(169,128,34,.34)!important;
    border-radius:14px!important;
    background:rgba(255,253,248,.96)!important;
    box-shadow:0 7px 18px rgba(54,37,14,.06)!important;
    overflow:hidden!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group[open]{
    grid-column:1/-1!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group>summary{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:center!important;
    gap:10px!important;
    min-height:56px!important;
    padding:10px 16px!important;
    color:#071d2d!important;
    font-size:19px!important;
    font-weight:800!important;
    line-height:1.2!important;
    list-style:none!important;
    cursor:pointer!important;
    text-decoration:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group>summary::-webkit-details-marker{display:none!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group>summary small{
    color:#806b43!important;
    font-size:12px!important;
    font-weight:500!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group>summary::after{
    content:'⌄'!important;
    color:#9d731c!important;
    font-size:20px!important;
    transition:transform .2s ease!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group[open]>summary::after{
    transform:rotate(180deg)!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group__items{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
    padding:4px 12px 14px!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group:not([open])>.hx-mobile-category-group__items,
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-prayer-subgroup:not([open])>.heichal-app__item,
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-purpose-subgroup:not([open])>.heichal-app__item{
    display:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category :is(.hx-mobile-prayer-subgroup,.hx-mobile-purpose-subgroup){
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
    margin:0!important;
    padding:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-category :is(.hx-mobile-prayer-subgroup,.hx-mobile-purpose-subgroup)>summary{
    grid-column:1/-1!important;
    min-height:44px!important;
    padding:8px 12px!important;
    border:0!important;
    border-bottom:1px solid rgba(169,128,34,.2)!important;
    color:#8f6818!important;
    font-size:16px!important;
    font-weight:800!important;
    list-style:none!important;
    cursor:pointer!important;
    text-decoration:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category :is(.hx-mobile-prayer-subgroup,.hx-mobile-purpose-subgroup)>summary::-webkit-details-marker{display:none!important}
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 38px!important;
    grid-template-areas:'copy favorite'!important;
    align-items:center!important;
    gap:9px!important;
    min-height:76px!important;
    height:auto!important;
    padding:10px 12px!important;
    overflow:hidden!important;
    text-decoration:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card>img{
    display:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card>span{
    grid-area:copy!important;
    min-width:0!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card :is(a,strong,small,em,p,span){
    text-decoration:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card strong{
    display:block!important;
    margin:0 0 4px!important;
    font-size:17px!important;
    line-height:1.15!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card .hx-mobile-generic-description{
    display:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card .hx-mobile-item-subtitle{
    display:block!important;
    color:#75684f!important;
    font-size:12px!important;
    line-height:1.25!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card>.hx-site-favorite{
    position:static!important;
    grid-area:favorite!important;
    place-self:center!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    margin:0!important;
    transform:none!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__recent{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html body.heichal-desktop-presentation.hx-template-category .heichal-app__zmanim{
    min-height:370px!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation.hx-template-category :is(.hx-mobile-category-group,.hx-mobile-content-card){
    background:#102a3b!important;
    border-color:rgba(212,164,47,.38)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation.hx-template-category .hx-mobile-category-group>summary,
  html.heichal-night-mode body.heichal-desktop-presentation.hx-template-category .hx-mobile-content-card :is(strong,small,span){
    color:#f2e6bd!important;
  }
}

/* 1.9.107: site-wide content search results */
.hx-global-search-results{direction:rtl;max-width:980px;margin:0 auto;padding:18px 0 70px;color:#071b30}
.hx-global-search-results__crumbs{margin-bottom:14px;color:#7b7063;font-size:14px}
.hx-global-search-results__crumbs a{color:#9b6f1d}
.hx-global-search-results h1{margin:0 0 18px;color:#9b6f1d;font-family:"Frank Ruhl Libre","Noto Serif Hebrew",serif;font-size:clamp(36px,4vw,52px);text-align:right}
.hx-global-search-results__form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:16px}
.hx-global-search-results__form input{min-width:0;min-height:50px;padding:10px 16px;border:1px solid #d9bd86;border-radius:14px;background:#fffdf8;color:#071b30;font:inherit}
.hx-global-search-results__form button{min-height:50px;padding:10px 24px;border:1px solid #c99a3c;border-radius:14px;background:#071b30;color:#f6d98b;font:700 16px inherit;cursor:pointer}
.hx-global-search-results__status{margin:0 0 18px;color:#6f675e}
.hx-global-search-results__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hx-global-search-result{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center;min-height:128px;padding:16px 18px;border:1px solid #dfc997;border-radius:17px;background:#fffdf8;color:#071b30;text-decoration:none;box-shadow:0 6px 18px rgba(8,26,44,.05);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.hx-global-search-result:hover,.hx-global-search-result:focus-visible{transform:translateY(-2px);border-color:#aa7b2b;box-shadow:0 10px 24px rgba(8,26,44,.1);outline:2px solid #d4aa4f;outline-offset:2px}
.hx-global-search-result img{width:66px;height:66px;object-fit:contain}
.hx-global-search-result strong{display:block;margin-bottom:5px;font-family:"Frank Ruhl Libre","Noto Serif Hebrew",serif;font-size:23px;line-height:1.15;text-decoration:none}
.hx-global-search-result small{display:-webkit-box;overflow:hidden;color:#6f675e;font-size:15px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.hx-global-search-result em{display:block;margin-top:8px;color:#9b6f1d;font-size:13px;font-style:normal}
@media(max-width:1023px){.hx-global-search-results{padding:18px 14px 110px}.hx-global-search-results__grid{grid-template-columns:1fr}.hx-global-search-result{grid-template-columns:58px minmax(0,1fr);min-height:108px;padding:14px}.hx-global-search-result img{width:52px;height:52px}.hx-global-search-result strong{font-size:21px}}
@media(max-width:420px){.hx-global-search-results__form{grid-template-columns:1fr}.hx-global-search-results__form button{width:100%}}
/* 1.9.115: preserve the desktop home composition after restore/maximize. */
@media (min-width:1024px){
body.heichal-desktop-presentation.hx-template-home .home-layout{display:grid!important;grid-template-columns:var(--hx-sidebar) minmax(0,1fr)!important;align-items:start!important}
body.heichal-desktop-presentation.hx-template-home .home-main{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;min-width:0!important}
body.heichal-desktop-presentation.hx-template-home :is(.category-grid,.featured-prayer){width:100%!important;max-width:100%!important}
}

/* 1.9.116: ordinary editorial pages do not receive the content-library shell
   from the core plugin. Supply the same shared desktop dedication, navigation
   and brand rows without changing the article content itself. */
@media (min-width:1024px){
body.heichal-desktop-presentation .hx-generated-article-shell{width:100%;position:relative;z-index:20;background:#fffdf8}
body.heichal-desktop-presentation .hx-generated-article-shell .inner-dedication,
body.heichal-desktop-presentation .hx-generated-article-shell .inner-nav{width:100%!important;max-width:none!important;margin:0!important}
body.heichal-desktop-presentation .hx-generated-article-brand{min-height:112px;display:flex;align-items:center;justify-content:center;padding:16px 24px;background:#fbf7ed}
body.heichal-desktop-presentation .hx-generated-article-brand a{display:block;line-height:0}
body.heichal-desktop-presentation .hx-generated-article-brand img{display:block;width:auto;height:82px;max-width:min(280px,80vw);object-fit:contain}
}

/* 1.9.119: focused desktop reading template for editorial articles. Mobile
   keeps the existing app-like article presentation unchanged. */
@media (min-width:1024px){
body.heichal-desktop-presentation.hx-editorial-article main.site-main{width:100%;max-width:none;margin:0;padding:40px 24px 88px!important;background:radial-gradient(circle at 50% 0,rgba(255,255,255,.72),transparent 38%),#fbf7ed!important}
body.heichal-desktop-presentation.hx-editorial-article :is(.page-header,.page-content){width:min(1080px,calc(100vw - 64px));margin-inline:auto;box-sizing:border-box;background:#fffdf8;border-color:#dfc98f;border-style:solid}
body.heichal-desktop-presentation.hx-editorial-article .page-header{margin:40px auto 0!important;padding:44px 64px 26px;border-width:1px 1px 0;border-radius:26px 26px 0 0;text-align:center;box-shadow:0 16px 42px rgba(6,29,44,.08)}
body.heichal-desktop-presentation.hx-editorial-article .page-header h1{max-width:880px;margin:0 auto;color:#9a6c13;font-family:"Frank Ruhl Libre","Noto Serif Hebrew",serif;font-size:clamp(38px,3vw,50px);font-weight:700;line-height:1.14;letter-spacing:0}
body.heichal-desktop-presentation.hx-editorial-article .page-content{margin:0 auto 88px!important;padding:0 64px 64px!important;background:#fffdf8!important;border-width:0 1px 1px;border-radius:0 0 26px 26px;box-shadow:0 18px 42px rgba(6,29,44,.08)}
body.heichal-desktop-presentation.hx-editorial-article .page-content :where(p,li){font-size:19px;line-height:1.85}
body.heichal-desktop-presentation.hx-editorial-article .page-content .meta{margin:0 -64px 28px;padding:0 64px 22px;border-bottom:1px solid rgba(169,128,34,.18);color:#746c61;font-family:"Assistant",Arial,sans-serif;font-size:14px;line-height:1.5;text-align:center}
body.heichal-desktop-presentation.hx-editorial-article .page-content .answer{margin:0 0 30px;padding:20px 24px;border:1px solid rgba(169,128,34,.28);border-right:5px solid #a87a19;border-radius:14px;background:linear-gradient(135deg,#fff8df,#fffdf7);font-size:20px;line-height:1.75}
body.heichal-desktop-presentation.hx-editorial-article .page-content .toc{margin:0 0 38px;padding:22px 26px;border:1px solid #dfc98f;border-radius:18px;background:#fffaf0;box-shadow:0 6px 18px rgba(55,39,8,.04)}
body.heichal-desktop-presentation.hx-editorial-article .page-content .toc>strong{display:block;margin-bottom:12px;color:#071d2d;font-size:21px}
body.heichal-desktop-presentation.hx-editorial-article .page-content .toc ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px;margin:0;padding:0 22px 0 0}
body.heichal-desktop-presentation.hx-editorial-article .page-content .toc li{margin:0;padding:4px 0;font-size:16px;line-height:1.45}
body.heichal-desktop-presentation.hx-editorial-article .page-content .toc a{color:#805c0f;text-decoration-color:rgba(128,92,15,.35);text-underline-offset:3px}
body.heichal-desktop-presentation.hx-editorial-article .page-content h2{margin:48px 0 18px;padding:0 0 11px;border-bottom:1px solid rgba(169,128,34,.32);color:#071d2d;font-family:"Frank Ruhl Libre","Noto Serif Hebrew",serif;font-size:31px;line-height:1.25}
body.heichal-desktop-presentation.hx-editorial-article .page-content h2::before{content:"✦";display:inline-block;margin-left:10px;color:#b18322;font-size:17px;vertical-align:.2em}
body.heichal-desktop-presentation.hx-editorial-article .page-content h3{margin:34px 0 14px;color:#805c0f;font-size:24px}
body.heichal-desktop-presentation.hx-editorial-article .page-content p{margin:0 0 20px}
body.heichal-desktop-presentation.hx-editorial-article .page-content :is(.sources,.review,.verse-box){margin-top:38px;padding:22px 26px;border:1px solid #dfc98f;border-radius:18px;background:#fffaf0}
body.heichal-desktop-presentation.hx-editorial-article .page-content .sources ul{margin-bottom:0}
body.heichal-desktop-presentation.hx-editorial-article .page-content .sources li{font-size:16px;line-height:1.65}
body.heichal-desktop-presentation.hx-editorial-article .page-content .review.warning{background:#fff4cf;border-color:#d5a92f}
body.heichal-desktop-presentation.hx-editorial-article .page-content a{color:#805c0f}
body.heichal-desktop-presentation.hx-editorial-article .page-content table{width:100%;margin:28px 0;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #dfc98f;border-radius:14px}
body.heichal-desktop-presentation.hx-editorial-article .page-content :is(th,td){padding:13px 15px;border-bottom:1px solid rgba(169,128,34,.2);text-align:right}
body.heichal-desktop-presentation.hx-editorial-article .page-content th{background:#fff4d7;color:#071d2d}
}
