/* Heichal mobile shell. Deliberately scoped below the desktop breakpoint so
   the native mobile/app layout remains the content and interaction owner. */
@media (max-width:1023px){
  html,
  body.heichal-desktop-presentation{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body.heichal-desktop-presentation :is(.heichal-inner-site,.inner-dedication,.inner-nav,.heichal-app,.inner-footer){
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation .heichal-inner-site{
    min-height:100dvh!important;
    overflow-x:hidden!important;
  }

  body.heichal-desktop-presentation :is(.inner-dedication,.inner-nav){
    padding-inline:12px!important;
  }

  body.heichal-desktop-presentation img[alt="היכל"]{
    content:url('../mockup/brand-web.png') !important;
    object-fit:contain !important;
  }

  /* Mobile header: keep the dedication, brand and navigation as three
     deliberate rows instead of allowing the desktop grid to collapse into a
     vertical stack. */
  body.heichal-desktop-presentation .inner-dedication{
    min-height:112px!important;
    height:112px!important;
    padding:14px 18px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    background:#062236!important;
    border-bottom:2px solid #c9972d!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation .inner-dedication img{
    display:block!important;
    position:absolute!important;
    inset-inline-start:18px!important;
    top:18px!important;
    width:42px!important;
    height:42px!important;
    object-fit:contain!important;
  }

  body.heichal-desktop-presentation .inner-dedication strong{
    display:block!important;
    width:auto!important;
    margin:0!important;
    color:#f2d681!important;
    font-size:clamp(22px,6vw,30px)!important;
    line-height:1.1!important;
    text-align:center!important;
  }

  body.heichal-desktop-presentation .inner-dedication a{
    display:block!important;
    position:static!important;
    width:max-content!important;
    margin:2px 0 0!important;
    padding:3px 12px!important;
    border:1px solid #c9972d!important;
    border-radius:999px!important;
    color:#f2d681!important;
    font-size:12px!important;
    text-decoration:none!important;
  }

  body.heichal-desktop-presentation .inner-nav{
    min-height:70px!important;
    height:70px!important;
    padding:0 10px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    overflow:hidden!important;
    background:#fffdf8!important;
    border-bottom:1px solid rgba(201,151,45,.35)!important;
    box-sizing:border-box!important;
  }

  /* Category pages use the compact app-like mobile surface. The data and
     links remain unchanged; only the presentation changes below 1024px. */
  body.heichal-desktop-presentation.hx-template-category .heichal-app{
    padding:0 12px 104px!important;
    min-height:0!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__shell,
  body.heichal-desktop-presentation.hx-template-category .heichal-app__category{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__side{
    display:none!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__main{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category :is(.heichal-app__breadcrumbs,.heichal-app__title,.heichal-app__description){
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__breadcrumbs{
    margin:14px 0 4px!important;
    color:#a97719!important;
    font-size:13px!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__title{
    margin:0!important;
    color:#a97719!important;
    font-size:clamp(32px,9vw,46px)!important;
    line-height:1.1!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__description{
    margin:7px 0 12px!important;
    color:#777!important;
    font-size:17px!important;
    line-height:1.35!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-app__search{
    display:block!important;
    width:100%!important;
    height:48px!important;
    margin:0 0 16px!important;
    padding:0 15px!important;
    border:1px solid rgba(169,128,34,.42)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    color:#071d2d!important;
    box-sizing:border-box!important;
    font-size:17px!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu,
  body.heichal-desktop-presentation.hx-template-category .heichal-app__grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
    margin:0!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu__group,
  body.heichal-desktop-presentation.hx-template-category .heichal-app__item{
    width:100%!important;
    min-height:66px!important;
    height:auto!important;
    margin:0!important;
    border:1px solid rgba(169,128,34,.32)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-shadow:0 2px 8px rgba(77,52,12,.08)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu__trigger,
  body.heichal-desktop-presentation.hx-template-category .heichal-app__item strong{
    min-height:66px!important;
    padding:13px 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    color:#071d2d!important;
    font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
    font-size:22px!important;
    line-height:1.15!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu__service-list,
  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu__group.is-open .heichal-library-menu__service-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:8px!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu__service{
    min-width:0!important;
    border:1px solid rgba(169,128,34,.25)!important;
    border-radius:10px!important;
    background:#fffaf0!important;
  }

  body.heichal-desktop-presentation.hx-template-category .heichal-library-menu__service-trigger{
    min-height:48px!important;
    padding:8px 10px!important;
    color:#071d2d!important;
    font-size:16px!important;
    line-height:1.2!important;
  }

  body.heichal-desktop-presentation.hx-template-category .hx-category-card-grid,
  body.heichal-desktop-presentation.hx-template-category .hx-category-choice-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    width:100%!important;
  }

  body.heichal-desktop-presentation.hx-template-category .hx-category-card{
    min-width:0!important;
    height:auto!important;
    min-height:112px!important;
    padding:13px 11px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    border:1px solid rgba(169,128,34,.28)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-shadow:0 2px 8px rgba(77,52,12,.08)!important;
    box-sizing:border-box!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation.hx-template-category .hx-category-card__icon{
    width:32px!important;
    height:32px!important;
    margin-bottom:5px!important;
  }

  body.heichal-desktop-presentation.hx-template-category .hx-category-card__copy strong{
    color:#071d2d!important;
    font-size:18px!important;
    line-height:1.15!important;
  }

  body.heichal-desktop-presentation.hx-template-category .hx-category-card__copy small{
    max-width:100%!important;
    margin-top:4px!important;
    color:#777!important;
    font-size:12px!important;
    white-space:normal!important;
  }

  body.heichal-desktop-presentation .hx-mobile-category-bar{
    position:fixed!important;
    z-index:9998!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    min-height:76px!important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;
    background:#062236!important;
    border-top:1px solid #c9972d!important;
    box-shadow:0 -6px 24px rgba(0,0,0,.16)!important;
    box-sizing:border-box!important;
    direction:ltr!important;
  }

  body.heichal-desktop-presentation .hx-mobile-category-bar__item{
    min-width:0!important;
    min-height:58px!important;
    padding:5px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    color:#f2d681!important;
    text-decoration:none!important;
    direction:rtl!important;
  }

  body.heichal-desktop-presentation .hx-mobile-category-bar__item strong{
    font-size:22px!important;
    line-height:1!important;
  }

  body.heichal-desktop-presentation .hx-mobile-category-bar__item small{
    color:#fff8df!important;
    font-size:11px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }

  body.heichal-desktop-presentation .hx-mobile-category-bar__item.is-home{
    width:58px!important;
    height:58px!important;
    justify-self:center!important;
    border:1px solid #f2d681!important;
    border-radius:50%!important;
    background:#102a3b!important;
  }

  body.heichal-desktop-presentation.hx-template-category .inner-footer{
    display:none!important;
  }

  body.heichal-desktop-presentation .inner-nav::before{
    display:none!important;
    content:none!important;
  }

  body.heichal-desktop-presentation .inner-nav__links{
    width:auto!important;
    min-width:0!important;
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-around!important;
    gap:2px!important;
    overflow:hidden!important;
  }

  body.heichal-desktop-presentation .inner-nav__links a{
    flex:1 1 0!important;
    min-width:0!important;
    padding:9px 2px!important;
    color:#062236!important;
    font-size:13px!important;
    line-height:1.1!important;
    text-align:center!important;
    white-space:nowrap!important;
    text-decoration:none!important;
  }

  body.heichal-desktop-presentation .inner-nav__links a:nth-child(n+4){
    display:none!important;
  }

  body.heichal-desktop-presentation .heichal-app{
    min-height:0!important;
    padding-inline:12px!important;
    overflow:visible!important;
  }

  body.heichal-desktop-presentation .heichal-app__shell{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding-inline:0!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation .heichal-app__reader{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0 0 88px!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation :is(.heichal-app__tools,.heichal-app__toc){
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation .heichal-app__paper{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:18px 12px 28px!important;
    border-radius:24px 24px 0 0!important;
    border:1px solid rgba(201,151,45,.32)!important;
    background:#fffdf8!important;
    box-shadow:0 3px 16px rgba(6,34,54,.08)!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation .heichal-app__text{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }

  body.heichal-desktop-presentation .heichal-app__paper > h1{
    margin:8px 0 4px!important;
    color:#a87718!important;
    font-size:clamp(34px,9vw,48px)!important;
    line-height:1.1!important;
    text-align:center!important;
  }

  body.heichal-desktop-presentation .heichal-app__meta{
    margin:0 0 14px!important;
    color:#777!important;
    font-size:18px!important;
    text-align:center!important;
  }

  body.heichal-desktop-presentation .heichal-app__reader-search{
    display:block!important;
    width:100%!important;
    height:48px!important;
    margin:0 0 18px!important;
    padding:0 14px!important;
    border:1px solid #9b9b9b!important;
    border-radius:7px!important;
    box-sizing:border-box!important;
    font-size:18px!important;
    text-align:right!important;
  }

  body.heichal-desktop-presentation .heichal-app__dedication{
    width:100%!important;
    margin:0 0 16px!important;
    padding:12px 14px!important;
    border-radius:14px!important;
    background:#062236!important;
    color:#f2d681!important;
    font-size:16px!important;
    line-height:1.45!important;
    text-align:center!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation .inner-footer{
    min-height:72px!important;
    height:auto!important;
    margin:24px 0 0!important;
    padding:16px 12px!important;
    box-sizing:border-box!important;
  }

  body.heichal-desktop-presentation #bottomBar{
    display:none!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar{
    position:fixed!important;
    z-index:9998!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    min-height:76px!important;
    padding:8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right))!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;
    background:#062236!important;
    border-top:1px solid #c9972d!important;
    box-shadow:0 -6px 24px rgba(0,0,0,.16)!important;
    box-sizing:border-box!important;
    direction:ltr!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item{
    min-width:0!important;
    min-height:58px!important;
    padding:5px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    color:#f2d681!important;
    font:inherit!important;
    direction:rtl!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item strong{
    display:block!important;
    color:#f2d681!important;
    font-size:22px!important;
    line-height:1!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item small{
    display:block!important;
    color:#fff8df!important;
    font-size:11px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item.is-home{
    background:#d2a334!important;
    border-radius:50%!important;
    width:58px!important;
    height:58px!important;
    justify-self:center!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item.is-home strong{
    color:#062236!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item.is-home small{
    color:#062236!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__item.is-scroll{
    background:rgba(255,255,255,.08)!important;
    border-radius:14px!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__group{
    display:grid!important;
    grid-template-columns:22px minmax(20px,1fr) 22px!important;
    grid-template-rows:1fr auto!important;
    align-items:center!important;
    gap:0!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__mini{
    width:22px!important;
    height:28px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#f2d681!important;
    font-size:20px!important;
    font-weight:700!important;
    line-height:1!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__value{
    color:#f2d681!important;
    font-size:20px!important;
    line-height:1!important;
    text-align:center!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-bar__group small{
    grid-column:1 / -1!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-tools{
    position:fixed!important;
    z-index:9997!important;
    left:10px!important;
    right:10px!important;
    bottom:84px!important;
    width:auto!important;
    max-height:58vh!important;
    margin:0!important;
    padding:12px!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    overflow-y:auto!important;
    background:#062236!important;
    border:1px solid #c9972d!important;
    border-radius:18px!important;
    box-shadow:0 10px 30px rgba(0,0,0,.25)!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-tools[hidden]{
    display:none!important;
  }

  body.heichal-desktop-presentation .hx-mobile-reader-tools > *{
    min-width:0!important;
  }

  body.heichal-desktop-presentation .hx-mobile-more-panel{
    position:fixed!important;
    z-index:10000!important;
    left:14px!important;
    right:14px!important;
    bottom:88px!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:14px!important;
    background:#062236!important;
    border:1px solid #c9972d!important;
    border-radius:18px!important;
    box-shadow:0 12px 32px rgba(0,0,0,.32)!important;
    direction:rtl!important;
  }

  body.heichal-desktop-presentation .hx-mobile-more-panel[hidden]{
    display:none!important;
  }

  body.heichal-desktop-presentation .hx-mobile-more-panel h3{
    grid-column:1 / -1!important;
    margin:0!important;
    color:#f2d681!important;
    font-size:20px!important;
    text-align:center!important;
  }

  body.heichal-desktop-presentation .hx-mobile-more-panel__action{
    min-height:42px!important;
    padding:8px!important;
    border:1px solid rgba(201,151,45,.75)!important;
    border-radius:10px!important;
    background:transparent!important;
    color:#fff8df!important;
    font:inherit!important;
  }

  body.heichal-desktop-presentation .heichal-app__reader{
    padding-bottom:104px!important;
  }

  body.heichal-desktop-presentation :is(.inner-dedication,.dedication-hero){
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:10001!important;
  }

  body.heichal-desktop-presentation .inner-nav{
    margin-top:116px!important;
  }

  /* The app-like dark reading surface applies only when the existing reader
     night state is active. */
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__paper,
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__reader{
    background:#071d2d!important;
    color:#f2e6bd!important;
  }

  html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__text,
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__text *{
    color:#f2e6bd!important;
  }

  html.heichal-night-mode body.heichal-desktop-presentation .inner-nav{
    background:#071d2d!important;
    border-bottom-color:#c9972d!important;
  }

  html.heichal-night-mode body.heichal-desktop-presentation .inner-nav__links a{
    color:#f2d681!important;
  }

  html.heichal-night-mode body.heichal-desktop-presentation .heichal-app__meta{
    color:#dfd4b5!important;
  }
}

/* 1.9.100: this stylesheet is enqueued last on the public site. Keep the
   desktop zmanim card height here so later legacy layout rules cannot shrink
   the five-row presentation. The rule remains desktop-only. */
@media (min-width:1024px){
  html body.heichal-desktop-presentation.hx-template-home .zmanim-card{
    min-height:332px!important;
    height:auto!important;
    padding:16px 18px!important;
  }
}

/* 1.9.96: use the prayer typeface as the site's shared visual voice.
   Reader text remains independently switchable to Assistant, and symbol-only
   controls keep a system font so their glyphs cannot be replaced or clipped. */
html body.heichal-desktop-presentation {
  --hx-site-font:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif;
  font-family:var(--hx-site-font)!important;
}
html body.heichal-desktop-presentation
  :where(.heichal-home-desktop,.heichal-inner-site,.heichal-site-wrap,.heichal-site-mobile,.heichal-site-desktop,.heichal-app,.home-footer,.inner-footer,.hx-unified-footer)
  :where(h1,h2,h3,h4,h5,h6,p,a,button,label,input,select,textarea,option,summary,li,dt,dd,strong,b,em,small,time):not(.heichal-app__text *) {
  font-family:var(--hx-site-font)!important;
}
html body.heichal-desktop-presentation :is(button.heichal-app__favorite,button.hx-site-favorite,button.hx-reader-favorite,.hx-favorites-magen) {
  font-family:Arial,sans-serif!important;
}

html.heichal-night-mode body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) :is(.inner-nav,.inner-brand),
html.heichal-night-mode body.heichal-desktop-presentation .heichal-home-desktop :is(.main-nav,.main-nav__inner,.brand-section){
  background:#0c283a!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.28)!important;
}

/* 1.9.68 final responsive consolidation. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication{
    width:100%!important;max-width:100%!important;height:74px!important;min-height:74px!important;
    margin:0!important;padding:8px 12px!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    gap:0!important;overflow:hidden!important;direction:rtl!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication :is(.dedication-hero__title,strong){
    position:relative!important;width:auto!important;
    max-width:calc(100% - 142px)!important;height:auto!important;min-height:0!important;
    margin:0!important;padding:0!important;text-align:center!important;
    font-size:19px!important;line-height:1.12!important;white-space:normal!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication :is(.dedication-hero__title-wrap){
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication>img,
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication :is(.dedication-hero__candle,.heichal-site-candle){
    position:absolute!important;right:12px!important;left:auto!important;top:15px!important;
    width:38px!important;min-width:38px!important;height:44px!important;margin:0!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication>img{
    object-fit:contain!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication :is(.dedication-hero__candle img,.heichal-site-candle img){
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication>a{
    position:absolute!important;left:10px!important;right:auto!important;top:25px!important;
    width:auto!important;max-width:84px!important;height:auto!important;margin:0!important;
    padding:4px 8px!important;border-radius:999px!important;font-size:10px!important;
    line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation .inner-dedication.hx-mobile-shared-dedication{
    position:fixed!important;top:var(--hx-adminbar-offset,0px)!important;left:0!important;right:0!important;z-index:999!important;
  }
  html body.heichal-desktop-presentation .inner-dedication.hx-mobile-shared-dedication + .inner-nav{
    margin-top:74px!important;
  }

  html body.heichal-desktop-presentation .inner-brand.hx-mobile-inner-brand{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;height:54px!important;min-height:54px!important;margin:0!important;padding:3px 0!important;
    transform:none!important;background:#fffdf8!important;overflow:hidden!important;
  }
  html body.heichal-desktop-presentation .inner-brand.hx-mobile-inner-brand small{display:none!important;}
  html body.heichal-desktop-presentation .inner-brand.hx-mobile-inner-brand .hx-brand-home-link{
    display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:48px!important;
  }
  html body.heichal-desktop-presentation .inner-brand.hx-mobile-inner-brand img{
    display:block!important;width:auto!important;max-width:104px!important;height:44px!important;max-height:44px!important;object-fit:contain!important;
  }

  html body.heichal-desktop-presentation .heichal-app__grid.hx-mobile-grouped-grid{display:none!important;}
  html body.heichal-desktop-presentation .hx-mobile-category-groups{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;margin:0!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-category-group{
    width:100%!important;border:1px solid rgba(169,128,34,.34)!important;border-radius:15px!important;
    background:#fffdf8!important;box-shadow:0 2px 9px rgba(77,52,12,.08)!important;overflow:hidden!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-category-group>summary{
    min-height:54px!important;padding:10px 14px!important;display:flex!important;align-items:center!important;
    justify-content:space-between!important;gap:12px!important;cursor:pointer!important;list-style:none!important;
    color:#071d2d!important;font-size:19px!important;font-weight:700!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-category-group>summary::-webkit-details-marker{display:none!important;}
  html body.heichal-desktop-presentation .hx-mobile-category-group>summary::after{
    content:'⌄';margin-inline-start:auto;color:#a97719;font-size:22px;transition:transform .2s ease;
  }
  html body.heichal-desktop-presentation .hx-mobile-category-group[open]>summary::after{transform:rotate(180deg);}
  html body.heichal-desktop-presentation .hx-mobile-category-group>summary small{
    color:#806b43!important;font-size:11px!important;font-weight:500!important;white-space:nowrap!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-category-group__items{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:0 8px 9px!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-category-group__items .heichal-app__item{height:auto!important;min-height:64px!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:30px!important;height:30px!important;min-width:30px!important;
    padding:0!important;border:1px solid rgba(169,119,25,.45)!important;border-radius:50%!important;
    background:#fffaf0!important;color:#9b741d!important;font-size:19px!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:8px!important;width:min(100% - 28px,680px)!important;margin:18px auto 100px!important;padding:16px!important;
    border:1px solid rgba(169,128,34,.34)!important;border-radius:16px!important;background:#fffdf8!important;
  }
  html body.heichal-desktop-presentation .hx-site-favorites-list a{
    padding:12px!important;border:1px solid rgba(169,128,34,.28)!important;border-radius:11px!important;color:#071d2d!important;text-decoration:none!important;
  }
}

/* One complete night palette on every template and breakpoint. */
html.heichal-night-mode body.heichal-desktop-presentation,
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-home-desktop,.heichal-inner-site,.heichal-site-mobile,.heichal-site-desktop,.heichal-app,.heichal-app__main,.heichal-app__category,.heichal-app__reader,.heichal-app__paper,.home-main,.inner-footer){
  background-color:#071d2d!important;color:#f2e6bd!important;
}
html.heichal-night-mode body.heichal-desktop-presentation :is(.main-nav,.main-nav__inner,.inner-nav,.inner-brand,.brand-section){
  background:#0c283a!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.28)!important;
}
html.heichal-night-mode body.heichal-desktop-presentation :is(.main-nav a,.inner-nav a,.main-nav button,.inner-nav button,.heichal-app__text,.heichal-app__text *,h1,h2,h3,p,strong,small){
  color:#f2e6bd!important;
}
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-card,.category-card,.hx-category-card,.heichal-app__item,.heichal-library-menu__group,.heichal-library-menu__service,.hx-mobile-category-group,.hx-site-favorites-list,.heichal-app__search,.heichal-app__reader-search){
  background:#102d40!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.38)!important;box-shadow:none!important;
}
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-card,.category-card,.hx-category-card,.heichal-app__item,.heichal-library-menu__group,.heichal-library-menu__service,.hx-mobile-category-group,.hx-site-favorites-list) *{
  color:#f2e6bd!important;
}

/* 1.9.114: the generated bottom bar is active through 1023px. Keep its
   More panel fixed and visible across that same full responsive range. */
@media (max-width: 1023px){
  body.heichal-desktop-presentation :is(.hx-mobile-category-more-panel,.hx-mobile-home-more-panel){
    position:fixed!important;
    z-index:10050!important;
    left:14px!important;
    right:14px!important;
    bottom:88px!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:18px!important;
    background:#062236!important;
    border:1px solid #c9972d!important;
    border-radius:18px!important;
    box-shadow:0 16px 40px rgba(0,0,0,.35)!important;
    direction:rtl!important;
  }
  body.heichal-desktop-presentation :is(.hx-mobile-category-more-panel,.hx-mobile-home-more-panel)[hidden]{display:none!important}
  body.heichal-desktop-presentation :is(.hx-mobile-category-more-panel,.hx-mobile-home-more-panel) h3{grid-column:1/-1;margin:0;color:#f2d681;text-align:center;font-size:20px}
  body.heichal-desktop-presentation :is(.hx-mobile-category-more-panel,.hx-mobile-home-more-panel) a{padding:10px 6px;border:1px solid rgba(201,151,45,.75);border-radius:10px;color:#fff8df;text-decoration:none;text-align:center;font:inherit}
  body.heichal-desktop-presentation :is(.hx-mobile-category-more-panel__close,.hx-mobile-home-more-panel__close){position:absolute;top:4px;left:8px;border:0;background:none;color:#f2d681;font-size:28px;line-height:1}
}

/* Consolidated mobile polish: keep the dedication readable and leave room
   for the actual content and fixed navigation. */
@media (max-width: 640px){
  body.heichal-desktop-presentation .inner-dedication{
    min-height:92px!important;
    height:92px!important;
    padding:10px 14px!important;
    gap:3px!important;
  }
  body.heichal-desktop-presentation .inner-dedication strong{
    max-width:calc(100% - 58px)!important;
    font-size:clamp(17px,5vw,23px)!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.heichal-desktop-presentation .inner-dedication img{
    width:34px!important;
    height:34px!important;
    top:12px!important;
    inset-inline-start:12px!important;
  }
  body.heichal-desktop-presentation .inner-dedication a{
    font-size:11px!important;
    padding:2px 10px!important;
  }
  body.heichal-desktop-presentation .inner-nav{
    min-height:52px!important;
    height:52px!important;
  }
  body.heichal-desktop-presentation img[alt="היכל"]{
    max-width:128px!important;
    max-height:48px!important;
  }
  body.heichal-desktop-presentation.hx-template-category .heichal-app{
    padding-top:0!important;
  }
}

/* 1.9.48 mobile category DOM alignment. These selectors intentionally carry
   the same html/body specificity as the late desktop category rules so the
   mobile presentation remains authoritative at the breakpoint. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) .heichal-app__category .heichal-app__search{
    display:block!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__search{
    display:block!important;
    width:100%!important;
    height:48px!important;
    margin:0 0 16px!important;
    padding:0 15px!important;
    border:1px solid rgba(169,128,34,.42)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-sizing:border-box!important;
    font-size:17px!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__nusach-wrap{
    display:block!important;
    width:100%!important;
    margin:0 0 10px!important;
    color:#777!important;
    font-size:16px!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__nusach-wrap select{
    display:block!important;
    width:100%!important;
    height:48px!important;
    margin-top:6px!important;
    padding:0 14px!important;
    border:1px solid rgba(169,128,34,.42)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    color:#071d2d!important;
    font-size:17px!important;
    box-sizing:border-box!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
    margin:0!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__item{
    width:100%!important;
    min-height:68px!important;
    height:auto!important;
    padding:11px 14px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    align-items:center!important;
    gap:10px!important;
    border:1px solid rgba(169,128,34,.32)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-shadow:0 2px 8px rgba(77,52,12,.08)!important;
    box-sizing:border-box!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__item :is(strong,.heichal-app__item-copy){
    min-width:0!important;
    color:#071d2d!important;
    font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
    font-size:20px!important;
    line-height:1.15!important;
    text-align:right!important;
  }

  html body.heichal-desktop-presentation.hx-template-category .heichal-app__item :is(small,p){
    margin:3px 0 0!important;
    color:#777!important;
    font-size:12px!important;
    line-height:1.25!important;
    text-align:right!important;
  }

  /* The live category template does not always receive hx-template-category
     on body, so anchor the same mobile rules to its stable content wrapper. */
  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__search{
    display:block!important;
    width:100%!important;
    height:48px!important;
    margin:0 0 16px!important;
    padding:0 15px!important;
    border:1px solid rgba(169,128,34,.42)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-sizing:border-box!important;
    font-size:17px!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__nusach-wrap{
    display:block!important;
    width:100%!important;
    margin:0 0 10px!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__nusach-wrap select{
    display:block!important;
    width:100%!important;
    height:48px!important;
    margin-top:6px!important;
    padding:0 14px!important;
    border:1px solid rgba(169,128,34,.42)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-sizing:border-box!important;
    font-size:17px!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
    margin:0!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__item{
    width:100%!important;
    min-height:68px!important;
    height:68px!important;
    padding:8px 14px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    align-items:center!important;
    gap:10px!important;
    border:1px solid rgba(169,128,34,.32)!important;
    border-radius:14px!important;
    background:#fffdf8!important;
    box-shadow:0 2px 8px rgba(77,52,12,.08)!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__item>img{
    grid-column:2!important;
    grid-row:1!important;
    width:36px!important;
    height:36px!important;
    object-fit:contain!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__item>span{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__item>span strong{
    color:#071d2d!important;
    font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
    font-size:19px!important;
    line-height:1.1!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__item>span :is(small,em){
    max-width:100%!important;
    margin-top:3px!important;
    color:#777!important;
    font-size:11px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html body.heichal-desktop-presentation .heichal-app__category .heichal-app__favorite{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:end!important;
    width:24px!important;
    height:24px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#a97719!important;
    font-size:20px!important;
  }
}

/* Accessibility is available from the mobile “More” surfaces. Keep the
   vendor trigger out of the fixed bottom navigation so it cannot overlap it. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .ddas-root .ddas-trigger{
    display:none!important;
  }
}

@media (max-width:640px){
  html body.heichal-desktop-presentation .heichal-site-dedication{
    min-height:92px!important;
    height:92px!important;
    padding:10px 14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  html body.heichal-desktop-presentation .heichal-site-dedication>strong{
    max-width:calc(100% - 58px)!important;
    font-size:clamp(17px,5vw,23px)!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation .heichal-site-dedication .heichal-site-candle{
    width:42px!important;
    min-width:42px!important;
    height:70px!important;
  }
}

/* 1.9.66: unified inner-page header and mobile navigation. */
@media (max-width:640px){
  html body.heichal-desktop-presentation :is(.inner-dedication,.dedication-hero){
    height:74px!important;
    min-height:74px!important;
    padding:8px 12px!important;
    flex-direction:row!important;
    justify-content:center!important;
    gap:0!important;
  }
  html body.heichal-desktop-presentation .inner-dedication strong{
    width:auto!important;
    max-width:calc(100% - 116px)!important;
    font-size:clamp(17px,5vw,22px)!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation .inner-dedication img{
    inset-inline-start:12px!important;
    top:20px!important;
    width:34px!important;
    height:34px!important;
  }
  html body.heichal-desktop-presentation .inner-dedication a{
    position:absolute!important;
    inset-inline-end:10px!important;
    top:25px!important;
    width:auto!important;
    max-width:82px!important;
    margin:0!important;
    padding:3px 6px!important;
    font-size:10px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation .inner-nav{margin-top:74px!important;}
  html body.heichal-desktop-presentation img[alt="היכל"]{max-width:112px!important;max-height:42px!important;}

  /* Keep the two illustration-heavy cards optically subordinate to their
     labels, including cloned mobile cards whose original CSS is external. */
  html body.heichal-desktop-presentation .heichal-site-mobile .heichal-site-grid .heichal-site-card :is(img,svg){
    width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;object-fit:contain!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile .heichal-site-grid a[href*="category=kabbalah"] :is(img,svg),
  html body.heichal-desktop-presentation .heichal-site-mobile .heichal-site-grid a[href*="category=selichot"] :is(img,svg){
    width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;
  }
  html body.heichal-desktop-presentation:has(.hx-mobile-category-bar) .heichal-site-mobile,
  html body.heichal-desktop-presentation:has(.hx-mobile-category-bar) .heichal-app:not(.heichal-app__reader){padding-bottom:88px!important;}
}

/* Night mode must cover the page surface, cards, category groups and timing
   pages, not only the reader navigation strip. */
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-mobile,.heichal-site-desktop,.heichal-app,.heichal-app__category,.heichal-app__main,.heichal-app__paper,.heichal-app__reader,.inner-footer){
  background:#071d2d!important;color:#f2e6bd!important;
}
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-card,.category-card,.hx-category-card,.heichal-app__item,.heichal-library-menu__group,.heichal-library-menu__service,.heichal-app__search,.heichal-app__reader-search){
  background:#102d40!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.42)!important;
}
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-card *, .category-card *, .hx-category-card *, .heichal-app__item *, .heichal-library-menu__group *, .heichal-library-menu__service *, .heichal-app__category .heichal-app__title, .heichal-app__category .heichal-app__description){color:#f2e6bd!important;}
html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-app__category,.heichal-site-mobile) a{color:#f2d681!important;}

/* 1.9.88: optional, persistent alternate typeface across the complete site UI. */
html.hx-site-font-assistant body.heichal-desktop-presentation,
html.hx-site-font-assistant body.heichal-desktop-presentation *{
  font-family:'Assistant',Arial,sans-serif!important;
}
html.hx-site-font-assistant body.heichal-desktop-presentation :is(button.heichal-app__favorite,button.hx-site-favorite,button.hx-reader-favorite,.hx-favorites-magen){
  font-family:Arial,sans-serif!important;
}
body.heichal-desktop-presentation [data-site-font-toggle][aria-pressed="true"],
body.heichal-desktop-presentation [data-reader-font-family][aria-pressed="true"]{
  border-color:#f2d681!important;
  color:#f2d681!important;
}

/* 1.9.79: mobile reading controls use five clear tap-to-cycle levels. The
   former +/- controls were too small, unbalanced and easy to mis-tap. */
@media (max-width:1023px){
  body.heichal-desktop-presentation .hx-mobile-reader-bar__group{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
  }
  body.heichal-desktop-presentation .hx-mobile-reader-bar__group .hx-mobile-reader-bar__value{
    display:block!important;
    width:100%!important;
    color:#f2d681!important;
    font-size:18px!important;
    line-height:1!important;
    text-align:center!important;
  }
  body.heichal-desktop-presentation .hx-mobile-reader-bar__group small{
    display:block!important;
    width:100%!important;
    text-align:center!important;
  }

  html body.heichal-desktop-presentation .hx-mobile-times-page-title{display:none!important;}
  html body.heichal-desktop-presentation .hx-mobile-generic-memorial-hidden{display:none!important;}

  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card{
    height:auto!important;
    min-height:72px!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    position:relative!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card a,
  html body.heichal-desktop-presentation .heichal-app__category a.hx-mobile-content-card,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card strong{
    text-decoration:none!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card *{
    text-decoration:none!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card :is(a,strong,small,em,p,span),
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-no-underline{
    text-decoration:none!important;
    text-decoration-line:none!important;
    border-bottom:0!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card .hx-mobile-generic-description{display:none!important;}
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card .hx-mobile-item-subtitle{
    display:block!important;
    max-width:100%!important;
    margin-top:4px!important;
    color:#806b43!important;
    font-size:13px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card>img,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card>svg,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card>picture,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card>.heichal-app__item-icon{display:none!important;}
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card>span{
    grid-column:1!important;
    grid-row:1!important;
    padding-inline-end:2px!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card .hx-site-favorite,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card .heichal-app__favorite{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    align-self:center!important;
    width:32px!important;
    height:32px!important;
    border:1px solid rgba(169,119,25,.45)!important;
    border-radius:50%!important;
    background:#fffaf0!important;
    color:#9b741d!important;
  }
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-app__category .hx-mobile-content-card .heichal-app__favorite.is-favorite{
    background:#9b741d!important;
    color:#fffdf8!important;
  }

  /* The home tiles retain their illustrations; their favorite action no longer
     consumes a fourth visual row beneath the label. */
  html body.heichal-desktop-presentation .heichal-site-mobile .heichal-site-card,
  html body.heichal-desktop-presentation .heichal-site-mobile .category-card,
  html body.heichal-desktop-presentation .heichal-site-mobile .hx-category-card{position:relative!important;}
  html body.heichal-desktop-presentation .heichal-site-mobile .heichal-site-card .hx-site-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile .category-card .hx-site-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile .hx-category-card .hx-site-favorite{
    position:absolute!important;
    inset-inline-start:8px!important;
    inset-block-start:8px!important;
    z-index:2!important;
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    font-size:16px!important;
  }
  html body.heichal-desktop-presentation .heichal-site-bottom-nav :is(a,button){
    min-height:56px!important;
    justify-content:center!important;
  }
  html body.heichal-desktop-presentation .heichal-site-bottom-nav :is(a,button)[aria-label="בית"],
  html body.heichal-desktop-presentation .heichal-site-bottom-nav :is(a,button).is-home,
  html body.heichal-desktop-presentation .heichal-site-bottom-nav :is(a,button).active{
    transform:translateY(-5px) scale(.88)!important;
  }

  html body.heichal-desktop-presentation .hx-mobile-prayer-subgroup{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-prayer-subgroup>summary{
    margin:5px 4px 0!important;
    padding:6px 8px!important;
    border:0!important;
    border-bottom:0!important;
    color:#8f6818!important;
    font-size:15px!important;
    font-weight:700!important;
    line-height:1.2!important;
    text-align:right!important;
    cursor:pointer!important;
    list-style:none!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-prayer-subgroup>summary::-webkit-details-marker{display:none!important}
  html body.heichal-desktop-presentation .hx-mobile-prayer-subgroup>summary::after{content:'⌄';float:left;font-size:18px;transition:transform .2s ease}
  html body.heichal-desktop-presentation .hx-mobile-prayer-subgroup[open]>summary::after{transform:rotate(180deg)}

  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup>summary{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin:4px 0!important;
    padding:10px 12px!important;
    border:1px solid rgba(169,128,34,.28)!important;
    border-radius:12px!important;
    background:#fffaf0!important;
    color:#071d2d!important;
    font-size:16px!important;
    font-weight:700!important;
    line-height:1.2!important;
    list-style:none!important;
    cursor:pointer!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup>summary small{
    color:#806b43!important;
    font-size:12px!important;
    font-weight:400!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup>summary::-webkit-details-marker{display:none!important}
  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup>summary::after{content:'⌄';font-size:18px;transition:transform .2s ease}
  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup[open]>summary::after{transform:rotate(180deg)}

  /* Native details hiding was previously overridden by the grid declarations
     above. Keep every category, nusach and purpose group genuinely collapsed
     until the visitor explicitly opens it. */
  html body.heichal-desktop-presentation .hx-mobile-category-group:not([open])>.hx-mobile-category-group__items,
  html body.heichal-desktop-presentation .hx-mobile-prayer-subgroup:not([open])>.heichal-app__item,
  html body.heichal-desktop-presentation .hx-mobile-purpose-subgroup:not([open])>.heichal-app__item{
    display:none!important;
  }

  /* Apply the stable reader header immediately, before JavaScript adds its
     normalization classes. This prevents the alternate reader template from
     flashing an oversized legacy header and memorial prompt while loading. */
  html body.heichal-desktop-presentation:has(.heichal-app__reader) .inner-dedication{
    position:relative!important;
    min-height:74px!important;
    height:74px!important;
    margin:0!important;
    padding:8px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    background:#062236!important;
    border-bottom:3px solid #c9972d!important;
    box-sizing:border-box!important;
  }
  html body.heichal-desktop-presentation:has(.heichal-app__reader) .heichal-app__paper>.heichal-app__dedication{
    display:none!important;
  }
}

/* 1.9.81: complete dark surfaces for the WordPress utility-page wrapper used
   by Favorites. Inline page styles otherwise leave a white card with pale text. */
html.heichal-night-mode body.heichal-desktop-presentation :is(.site-main,.page-content,.heichal-tool-page){
  background:#071d2d!important;color:#f2e6bd!important;
}
html.heichal-night-mode body.heichal-desktop-presentation .heichal-tool-page__card{
  background:#102d40!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.38)!important;box-shadow:none!important;
}
html.heichal-night-mode body.heichal-desktop-presentation .heichal-tool-page__card :is(h1,h2,h3,p,a){color:#f2e6bd!important}

/* 1.9.82: finish the mobile night palette on home, zmanim and legal pages.
   These templates carry inline light backgrounds that need explicit overrides. */
@media (max-width:1023px){
  html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-parsha,.heichal-site-search,.hx-zmanim,.hx-zmanim__next,.hx-zmanim__row,.hx-zmanim select,.hx-zmanim option){
    background:#102d40!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.42)!important;box-shadow:none!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation :is(.heichal-site-parsha,.heichal-site-search,.hx-zmanim,.hx-zmanim__next,.hx-zmanim__row,.hx-zmanim__nav) :is(h1,h2,h3,p,span,strong,small,a,label,time){
    color:#f2e6bd!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .hx-zmanim__brand,
  html.heichal-night-mode body.heichal-desktop-presentation .hx-zmanim__brand-text{color:#f2e6bd!important;}
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-search input{
    color:#f2e6bd!important;background:transparent!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-search input::placeholder{color:#cfc3a0!important;opacity:1!important;}
  html.heichal-night-mode body.heichal-desktop-presentation.hx-legal-page .page-content section{
    background:#102d40!important;color:#f2e6bd!important;border-color:rgba(242,214,129,.42)!important;box-shadow:none!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation.hx-legal-page .page-content section :is(h1,h2,h3,h4,p,li,a,strong,span){color:#f2e6bd!important;}
  html.heichal-night-mode body.heichal-desktop-presentation.hx-legal-page .page-content [style*="background:#f8f5ed"]{
    background:#102d40!important;color:#f2e6bd!important;box-shadow:none!important;
  }
}

/* 1.9.69: home already includes its own bottom navigation. */
@media (max-width:1023px){
  body.heichal-desktop-presentation .inner-nav{display:none!important;height:0!important;min-height:0!important;overflow:hidden!important;}
  body.hx-template-home .hx-mobile-category-bar,
  body.hx-template-home .hx-mobile-category-more-panel{display:none!important;}
  body.heichal-desktop-presentation .hx-favorites-magen{display:block;font-size:21px;line-height:1;color:#d7ad3e;}
}

/* 1.9.67: the live site also has a separate dedication-hero markup on
   home, holidays and custom prayer sections. Keep its geometry identical to
   the inner header instead of inheriting the oversized legacy layout. */
@media (max-width:640px){
  html body.heichal-desktop-presentation :is(.heichal-site-dedication,.dedication-hero){
    min-height:74px!important;height:74px!important;padding:8px 12px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    position:relative!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  html body.heichal-desktop-presentation :is(.heichal-site-dedication>strong,.dedication-hero__title){
    display:block!important;max-width:calc(100% - 116px)!important;margin:0!important;
    font-size:clamp(17px,5vw,22px)!important;line-height:1.05!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation :is(.heichal-site-dedication .heichal-site-candle,.dedication-hero img){
    position:absolute!important;inset-inline-start:12px!important;top:18px!important;
    width:34px!important;min-width:34px!important;height:38px!important;object-fit:contain!important;
  }
  html body.heichal-desktop-presentation :is(.heichal-site-dedication>a,.dedication-hero__button){
    position:absolute!important;inset-inline-end:10px!important;top:25px!important;
    width:auto!important;max-width:82px!important;margin:0!important;padding:3px 6px!important;
    font-size:10px!important;line-height:1.1!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body.heichal-desktop-presentation :is(.dedication-hero,.heichal-site-dedication) + .inner-nav{margin-top:74px!important;}
}

/* Keep this last: it overrides legacy inline-sized dedication templates. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication{
    height:74px!important;min-height:74px!important;padding:8px 12px!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication :is(.dedication-hero__title,strong){
    max-width:calc(100% - 142px)!important;margin:0!important;padding:0!important;
    font-size:19px!important;line-height:1.12!important;white-space:normal!important;text-align:center!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication>img,
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication :is(.dedication-hero__candle,.heichal-site-candle){
    right:12px!important;left:auto!important;top:15px!important;width:38px!important;height:44px!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-shared-dedication>a{
    left:10px!important;right:auto!important;top:25px!important;
    min-height:0!important;height:19px!important;box-sizing:border-box!important;
  }
  html body.heichal-desktop-presentation .heichal-inner-site:has(.heichal-app) .inner-dedication.hx-mobile-shared-dedication{
    height:74px!important;min-height:74px!important;
  }
  html body.heichal-desktop-presentation .hx-mobile-dedication-spacer{
    display:block!important;width:100%!important;height:74px!important;min-height:74px!important;margin:0!important;padding:0!important;
  }
  html body.heichal-desktop-presentation .heichal-memorial.hx-mobile-shared-dedication{
    width:calc(100% + 18px)!important;max-width:calc(100% + 18px)!important;margin-left:-9px!important;margin-right:-9px!important;
  }
}

/* 1.9.72: a truthful empty dedication state and one legal-page surface. */
body.heichal-desktop-presentation .hx-generic-dedication :is(.hx-generic-dedication__primary,.hx-generic-dedication__secondary){
  display:block!important;white-space:normal!important;
}
body.heichal-desktop-presentation .hx-generic-dedication .hx-generic-dedication__primary{
  font-size:.9em!important;line-height:1.05!important;
}
body.heichal-desktop-presentation .hx-generic-dedication .hx-generic-dedication__secondary{
  margin-top:4px!important;font-size:.52em!important;font-weight:600!important;line-height:1.15!important;
}
html body.heichal-desktop-presentation.hx-legal-page,
html body.heichal-desktop-presentation.hx-legal-page :is(main,article,.site-main,.entry-content,h1,h2,h3,h4,p,li,a){
  font-family:"Noto Serif Hebrew","David Libre",Georgia,serif!important;
}
html body.heichal-desktop-presentation.hx-legal-page :is(article,.page-content){
  box-sizing:border-box!important;width:min(920px,calc(100% - 32px))!important;max-width:920px!important;
  margin:34px auto!important;padding:clamp(24px,4vw,48px)!important;color:#2f251a!important;
  background:#fffdf8!important;border:1px solid rgba(155,112,36,.35)!important;border-radius:20px!important;
  box-shadow:0 12px 35px rgba(54,37,14,.09)!important;
}
html body.heichal-desktop-presentation.hx-legal-page .page-header{
  box-sizing:border-box!important;width:min(920px,calc(100% - 32px))!important;max-width:920px!important;margin:32px auto 0!important;
}
html.heichal-night-mode body.heichal-desktop-presentation.hx-legal-page :is(article,.page-content){
  color:#f4ead7!important;background:#17130f!important;border-color:rgba(218,174,83,.42)!important;
}
@media(max-width:640px){
  body.heichal-desktop-presentation .hx-generic-dedication .hx-generic-dedication__primary{font-size:18px!important}
  body.heichal-desktop-presentation .hx-generic-dedication .hx-generic-dedication__secondary{margin-top:2px!important;font-size:11px!important}
  html body.heichal-desktop-presentation.hx-legal-page :is(article,.page-content){width:calc(100% - 20px)!important;margin:16px auto 88px!important;padding:22px 18px!important;border-radius:15px!important}
  html body.heichal-desktop-presentation.hx-legal-page .page-header{width:calc(100% - 20px)!important;margin:16px auto 0!important}
}

/* 1.9.74: generated headers use the same visible offset as the home header
   for signed-in mobile QA; public visitors have no admin bar. */
@media(max-width:782px){
  html body.admin-bar.heichal-desktop-presentation .inner-dedication.hx-mobile-shared-dedication{top:46px!important}
}
@media(min-width:783px) and (max-width:1023px){
  html body.admin-bar.heichal-desktop-presentation .inner-dedication.hx-mobile-shared-dedication{top:32px!important}
}
/* 1.9.90: centre the supplied home artwork independently of the favorite
   action, and reduce only that action's visual footprint on small screens. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) img.hx-main-category-artwork{
    width:34px!important;
    height:34px!important;
    max-width:34px!important;
    display:block!important;
    margin-inline:auto!important;
    object-fit:contain!important;
    justify-self:center!important;
    align-self:center!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite{
    inset-inline-start:6px!important;
    inset-block-start:6px!important;
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    min-height:20px!important;
    padding:0!important;
    font-size:13px!important;
    line-height:20px!important;
  }
}
/* 1.9.91: mobile home cards need optical, not merely mathematical, balance.
   Keep the illustration centred and make both favorite states quiet, round
   brand-coloured corner actions. Desktop and inner content cards are untouched. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card){
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    padding:8px 18px!important;
    text-align:center!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) img.hx-main-category-artwork{
    width:40px!important;
    height:40px!important;
    max-width:40px!important;
    flex:0 0 40px!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center!important;
    align-self:center!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) :is(strong,.category-card__title,.heichal-site-card__title){
    width:100%!important;
    margin:0!important;
    text-align:center!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    inset-inline-start:4px!important;
    inset-block-start:4px!important;
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #caa23b!important;
    border-radius:50%!important;
    background:#fffdf8!important;
    box-shadow:none!important;
    color:#9f7519!important;
    font-size:10px!important;
    line-height:1!important;
    transform:none!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    border-color:#b8891e!important;
    background:#c99c2c!important;
    color:#fffdf8!important;
  }
}
/* 1.9.92: mobile home artwork is a quiet watermark rather than a competing
   layout item. The label remains the primary action, while the favorite keeps
   a dedicated corner and an unmistakable selected state. Desktop is unchanged. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card){
    position:relative!important;
    isolation:isolate!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:96px!important;
    padding:12px 20px!important;
    overflow:hidden!important;
    text-align:center!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .heichal-site-card-icon,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .category-card__icon{
    position:absolute!important;
    inset:50% auto auto 50%!important;
    z-index:0!important;
    width:82px!important;
    height:82px!important;
    margin:0!important;
    padding:0!important;
    transform:translate(-50%,-50%)!important;
    pointer-events:none!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) img.hx-main-category-artwork{
    width:82px!important;
    height:82px!important;
    max-width:82px!important;
    margin:0!important;
    opacity:.17!important;
    object-fit:contain!important;
    filter:saturate(.78) contrast(.9)!important;
    transform:none!important;
    pointer-events:none!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) :is(strong,.category-card__title,.heichal-site-card__title){
    position:relative!important;
    z-index:2!important;
    width:100%!important;
    margin:0!important;
    color:#071d2d!important;
    font-weight:800!important;
    line-height:1.12!important;
    text-align:center!important;
    text-decoration:none!important;
    text-shadow:0 1px 0 rgba(255,253,248,.95),0 0 7px rgba(255,253,248,.9)!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    position:absolute!important;
    inset-inline-start:5px!important;
    inset-block-start:5px!important;
    z-index:3!important;
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    min-height:19px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:50%!important;
    background:rgba(255,253,248,.82)!important;
    box-shadow:0 0 0 1px rgba(7,29,45,.2)!important;
    color:#050505!important;
    font-size:13px!important;
    line-height:1!important;
    transform:none!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    background:#050505!important;
    box-shadow:none!important;
    color:#fffdf8!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) img.hx-main-category-artwork{
    opacity:.14!important;
    filter:saturate(.8) brightness(1.2)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) :is(strong,.category-card__title,.heichal-site-card__title){
    color:#fff6dd!important;
    text-shadow:0 1px 0 rgba(0,0,0,.85),0 0 7px rgba(0,0,0,.72)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite{
    background:rgba(4,18,29,.84)!important;
    box-shadow:0 0 0 1px rgba(231,197,111,.45)!important;
    color:#f2d986!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    background:#f2d986!important;
    color:#071d2d!important;
  }
}
/* 1.9.94: physical-device correction. Keep the watermark composition but make
   the supplied line artwork genuinely visible, and separate the favorite's
   finger-sized touch target from its compact visual marker. */
@media (max-width:1023px){
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .heichal-site-card-icon,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .category-card__icon{
    width:90px!important;
    height:90px!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) img.hx-main-category-artwork{
    width:90px!important;
    height:90px!important;
    max-width:90px!important;
    opacity:.43!important;
    filter:saturate(.96) contrast(1.02)!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    inset-inline-start:0!important;
    inset-block-start:0!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    isolation:isolate!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#050505!important;
    font-size:13px!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite::before{
    content:""!important;
    position:absolute!important;
    inset:6px!important;
    z-index:-1!important;
    border:1px solid rgba(7,29,45,.26)!important;
    border-radius:50%!important;
    background:rgba(255,253,248,.9)!important;
    pointer-events:none!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    color:#fffdf8!important;
  }
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite::before,
  html body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]::before{
    border-color:#050505!important;
    background:#050505!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) img.hx-main-category-artwork{
    opacity:.36!important;
    filter:saturate(.96) brightness(1.2) contrast(1.04)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite{
    background:transparent!important;
    box-shadow:none!important;
    color:#f2d986!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite::before{
    border-color:rgba(231,197,111,.55)!important;
    background:rgba(4,18,29,.9)!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite,
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]{
    background:transparent!important;
    color:#071d2d!important;
  }
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite.is-favorite::before,
  html.heichal-night-mode body.heichal-desktop-presentation .heichal-site-mobile a:is(.category-card,.heichal-site-card) .hx-site-favorite[aria-pressed="true"]::before{
    border-color:#f2d986!important;
    background:#f2d986!important;
  }
}

/* 1.9.98: the home dedication heading is emitted outside the standard site
   content shells on desktop. Keep it on the same prayer typeface too. */
html body.heichal-desktop-presentation .dedication-hero,
html body.heichal-desktop-presentation h1.dedication-hero__title,
html body.heichal-desktop-presentation .dedication-hero h1.dedication-hero__title,
html body.heichal-desktop-presentation .inner-dedication strong{
  font-family:"Noto Serif Hebrew","Frank Ruhl Libre",Georgia,serif!important;
}
/* 1.9.110: the shared header search remains an actual editable control on
   mobile. Legacy header overlays must not intercept taps meant for the field. */
@media (max-width: 1023px) {
  body.heichal-desktop-presentation .heichal-global-header-search {
    position: relative !important;
    z-index: 80 !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  body.heichal-desktop-presentation .heichal-global-header-search::before,
  body.heichal-desktop-presentation .heichal-global-header-search::after {
    pointer-events: none !important;
  }

  body.heichal-desktop-presentation .heichal-global-header-search input[type="search"] {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    opacity: 1 !important;
  }
}

/* 1.9.111: the mobile home template originally renders search as a decorative
   div. The presentation script inserts this real input into the same shell. */
@media (max-width: 1023px) {
  body.heichal-desktop-presentation .heichal-site-search {
    cursor: text !important;
    pointer-events: auto !important;
  }

  body.heichal-desktop-presentation .heichal-site-search input[type="search"] {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #172b3a !important;
    font: inherit !important;
    text-align: right !important;
    direction: rtl !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
  }

  body.heichal-desktop-presentation .heichal-site-search input[type="search"]::placeholder {
    color: #8a8379 !important;
    opacity: 1 !important;
  }
}
/* 1.9.112: content-pack reader fallback */
.heichal-app__text .heichal-pack-marker{display:block;margin-bottom:4px;color:#9a741b;font-size:.72em;font-weight:700;letter-spacing:.02em}
.heichal-app__text .heichal-pack-line{display:block}
.heichal-app__source .heichal-pack-license{margin:8px 0;line-height:1.5}
