/* 321 PRAY V73 — robust compact header + portrait quotes-first lock */

/* The primary V52 header is physically reduced in V73 HTML to Explore only.
   These rules are a second safety layer so older/cached structural CSS cannot expand it. */
body.book-heaven.v70-living-heaven .header.v26-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 46px!important;
  align-items:center!important;
  gap:8px!important;
  width:min(1220px,calc(100% - 28px))!important;
  min-height:68px!important;
  margin:10px auto 0!important;
  padding:7px 10px!important;
  border:1px solid rgba(255,239,201,.38)!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(78,60,145,.34),rgba(255,255,255,.12))!important;
  box-shadow:0 12px 36px rgba(43,24,103,.12),inset 0 1px rgba(255,255,255,.30)!important;
  backdrop-filter:blur(13px)!important;
  -webkit-backdrop-filter:blur(13px)!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .brand{
  display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;
  color:#fff9e9!important;text-decoration:none!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .brand-emblem{
  width:42px!important;height:42px!important;min-width:42px!important;display:grid!important;place-items:center!important;
  border:1px solid rgba(255,231,169,.68)!important;border-radius:50%!important;
  background:radial-gradient(circle,rgba(255,248,214,.22),rgba(116,78,188,.34))!important;
  color:#fff3bc!important;font-size:22px!important;box-shadow:0 0 20px rgba(255,225,147,.24)!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .brand-words{
  display:flex!important;flex-direction:column!important;min-width:0!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .brand-words strong{
  display:block!important;font:500 20px/1 Georgia,serif!important;letter-spacing:.035em!important;color:#fffaf1!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .brand-words small{
  display:block!important;margin-top:3px!important;font:700 7px/1.1 system-ui,sans-serif!important;letter-spacing:.16em!important;color:#f3dfb5!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav{
  display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>*{display:none!important}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"]{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:auto!important;min-width:104px!important;min-height:44px!important;margin:0!important;padding:8px 15px!important;
  border:1px solid rgba(255,241,208,.50)!important;border-radius:18px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.20),rgba(161,126,214,.18))!important;
  color:#fffaf0!important;box-shadow:inset 0 1px rgba(255,255,255,.28)!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"] .v52-glyph{
  display:none!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"] .v26-nav-copy{
  display:block!important;text-align:center!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"] .v26-nav-copy strong{
  display:block!important;font:500 15px/1 Georgia,serif!important;text-transform:none!important;letter-spacing:.01em!important;color:#fffaf0!important;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"] .v26-nav-copy strong::after{
  content:"  ▾";font-size:10px;opacity:.78;
}
body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"] .v26-nav-copy small{display:none!important}
body.book-heaven.v70-living-heaven .header.v26-header .share-top{
  display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;
  border:1px solid rgba(255,236,190,.58)!important;border-radius:50%!important;background:rgba(111,79,176,.18)!important;
  color:#fff6d8!important;font-size:20px!important;
}

@media (max-width:900px) and (orientation:portrait){
  html,body{min-height:100%!important}
  body.book-heaven.v70-living-heaven[data-page="launcher"]{
    min-height:100svh!important;overflow-x:hidden!important;
  }
  body.book-heaven.v70-living-heaven .header.v26-header{
    grid-template-columns:minmax(0,1fr) auto 42px!important;
    width:calc(100% - 16px)!important;min-height:62px!important;margin:7px auto 0!important;padding:6px 8px!important;border-radius:20px!important;
  }
  body.book-heaven.v70-living-heaven .header.v26-header .brand-emblem{width:38px!important;height:38px!important;min-width:38px!important;font-size:19px!important}
  body.book-heaven.v70-living-heaven .header.v26-header .brand-words strong{font-size:17px!important}
  body.book-heaven.v70-living-heaven .header.v26-header .brand-words small{display:none!important}
  body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"]{min-width:84px!important;min-height:40px!important;padding:7px 10px!important;border-radius:16px!important}
  body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"] .v26-nav-copy strong{font-size:13px!important}
  body.book-heaven.v70-living-heaven .header.v26-header .share-top{width:40px!important;height:40px!important;min-width:40px!important;font-size:18px!important}

  /* Portrait HOME means Scripture only. Nothing else from the old launcher is allowed to occupy space. */
  body.book-heaven.v70-living-heaven[data-page="launcher"] .rotate-lock,
  body.book-heaven.v70-living-heaven[data-page="launcher"] .v26-landing-hero,
  body.book-heaven.v70-living-heaven[data-page="launcher"] .landing-showcase,
  body.book-heaven.v70-living-heaven[data-page="launcher"] .landing-secondary,
  body.book-heaven.v70-living-heaven[data-page="launcher"] .celestial-footer,
  body.book-heaven.v70-living-heaven[data-page="launcher"] .cyber-statusbar{display:none!important}
  body.book-heaven.v70-living-heaven[data-page="launcher"] .celestial-page-panel.launcher-panel{
    display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  body.book-heaven.v70-living-heaven[data-page="launcher"] .launcher-page{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:calc(100svh - 76px)!important;margin:0!important;padding:12px 0 18px!important;
  }
  body.book-heaven.v70-living-heaven[data-page="launcher"] .v70-home-word{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    width:min(94vw,520px)!important;max-width:94vw!important;min-height:calc(100svh - 112px)!important;max-height:none!important;
    margin:0 auto!important;padding:52px 22px 24px!important;border-radius:28px!important;overflow:hidden!important;
  }
  body.book-heaven.v70-living-heaven[data-page="launcher"] .v70-word-kicker{margin-top:0!important}
  body.book-heaven.v70-living-heaven[data-page="launcher"] .v70-home-word blockquote{margin:24px auto 14px!important}
  body.book-heaven.v70-living-heaven[data-page="launcher"] .v70-home-actions{margin-top:24px!important}

  /* If an old V52 modal somehow carries stale inline state, it still stays closed until explicitly opened. */
  body.book-heaven.v70-living-heaven[data-page="launcher"] #v52MenuBackdrop[hidden],
  body.book-heaven.v70-living-heaven[data-page="launcher"] [data-v52-menu][hidden]{display:none!important}
}

@media (max-width:390px) and (orientation:portrait){
  body.book-heaven.v70-living-heaven .header.v26-header .brand-words strong{font-size:15px!important}
  body.book-heaven.v70-living-heaven .header.v26-header .v52-nav>[data-v52-open="explore"]{min-width:76px!important;padding-left:8px!important;padding-right:8px!important}
}
