/* 15 Nov 2026: every control in the top bar is the same height (44px), the same corner rounding and the
 * same border, on phone and desktop. Sits in the shared header layer so it outranks the older skins. */
@layer dimau-header-standard{
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions]{display:flex!important;align-items:center!important;gap:8px!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] :is(#blToggle,#bgToggle,.dk-account,[data-dimau-menu-toggle]){
  box-sizing:border-box!important;height:44px!important;min-height:44px!important;margin:0!important;
  border:1px solid var(--bx-line,#cfe3ee)!important;border-radius:12px!important;
  background-color:var(--bx-card,#fff)!important;box-shadow:0 1px 3px rgba(18,48,61,.06)!important;flex:none!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] :is(#bgToggle,[data-dimau-menu-toggle]){width:44px!important;min-width:44px!important;padding:0!important;display:inline-grid!important;place-items:center!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .dk-account{align-items:center!important;padding:0 14px!important;font:600 14px/1 Manrope,Lexend,system-ui,sans-serif!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] #blToggle{display:inline-flex!important;padding:3px!important;gap:2px!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] #blToggle button{box-sizing:border-box!important;height:36px!important;min-height:36px!important;min-width:36px!important;padding:0 12px!important;border-radius:9px!important;font:700 13px/1 Manrope,Lexend,system-ui,sans-serif!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] #bgToggle svg{width:20px!important;height:20px!important}
@media (max-width:640px){
  html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions]{gap:6px!important}
  html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] #blToggle button{min-width:40px!important;padding:0 8px!important}
}
/* The hero Bible stands on its own: no wavy line, no shape behind it. */
html:root:not(#e1):not(#e2):not(#e3) body .bx-welcome-mark::before{content:none!important;display:none!important}
html:root:not(#e1):not(#e2):not(#e3) body .bx-welcome-mark .bx-masi{display:none!important}
/* Music now lives in the Menu as a normal row. */
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-menu-panel] .bx-music-item{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:44px!important;padding:4px 12px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important}
}

/* "Get the app" in the top bar (18 Nov 2026): installs, or shows the iPhone steps, from the first visit.
   dimau-install.js handles the click and hides it once the app is installed. Same height and rounding as the bar. */
@layer dimau-header-standard{
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-get-app{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;padding:0 14px!important;margin:0!important;flex:none!important;border:1px solid #9fd0e8!important;border-radius:12px!important;background:#e8f6fd!important;color:#075b94!important;font:700 14px/1 Manrope,Lexend,system-ui,sans-serif!important;cursor:pointer!important;box-shadow:0 1px 4px rgba(18,48,61,.08)!important;white-space:nowrap!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-get-app:hover{background:#d4eefa!important}
.bx-get-app small{display:none}
@media (max-width:767px){
  html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-get-app{width:44px!important;min-width:44px!important;padding:0!important}
  .bx-get-app-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
}

/* "Wasea · Share" in the top bar (owner, 18 Nov 2026: "a noticeable share button"). Filled navy so it stands out
   from the pale bar; icon only under 768px so the logo keeps its room. Uses the page's share() (Dimau share card, phone share sheet, copy). */
@layer dimau-header-standard{
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-share-app{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;padding:0 16px 0 12px!important;margin:0!important;flex:none!important;border:1px solid #075b94!important;border-radius:12px!important;background:#075b94!important;color:#fff!important;font:800 15px/1 Manrope,Lexend,system-ui,sans-serif!important;cursor:pointer!important;box-shadow:0 2px 8px rgba(7,91,148,.35)!important;white-space:nowrap!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-share-app:hover{background:#05497a!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-share-app:focus-visible{outline:3px solid #f5b301!important;outline-offset:2px!important}
.bx-share-app small{margin-left:5px;font-weight:600;opacity:.85}
@media (max-width:767px){
  html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-share-app{width:44px!important;min-width:44px!important;padding:0!important}
  .bx-share-app-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
}

/* "Dimau apps" (21 Nov 2026): opens the Dimau app switcher (dimau-shell.js). The same 44px control as the
   theme and Menu buttons. Below 1024px the bar is already full (logo, Share, Get the app, FJ/EN, theme, Menu),
   so there the header button hides and the "Dimau apps" row in the Menu opens the switcher instead. */
@layer dimau-header-standard{
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-header-apps{display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;flex:none!important;
  border:1px solid var(--bx-line,#cfe3ee)!important;border-radius:12px!important;background-color:var(--bx-card,#fff)!important;color:inherit!important;box-shadow:0 1px 3px rgba(18,48,61,.06)!important;cursor:pointer!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-header-apps svg{display:block!important;width:22px!important;height:22px!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-header-apps[aria-expanded=true]{border-color:#075b94!important;color:#075b94!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-header-apps:focus-visible{outline:3px solid #f5b301!important;outline-offset:2px!important}
html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-menu-panel] .bx-menu-apps{display:none!important}
@media (max-width:1023px){
  html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-header-actions] .bx-header-apps{display:none!important}
  html:root:not(#e1):not(#e2):not(#e3) body [data-dimau-menu-panel] .bx-menu-apps{display:flex!important}
}
}
/* The reader menu already includes a language selector. Keep the phone bar focused on the book. */
@layer bogidua {
  .bx-topbar #bxHeaderMenu .bx-install-row { display: none !important; }
  @media (max-width: 640px) {
    .bx-topbar .bx-header-actions > .bx-get-app,
    .bx-topbar .bx-header-actions > #blToggle { display: none !important; }
    .bx-topbar #bxHeaderMenu .bx-install-row { display: flex !important; }
    html:root body .bx-topbar [data-dimau-brand] { gap: 6px !important; }
    html:root:not(#e1):not(#e2):not(#e3) body .bx-topbar [data-dimau-brand] [data-dimau-title] {
      display: block !important;
      font: 700 clamp(20px, 5.7vw, 24px)/1.05 Georgia, serif !important;
    }
    .bx-topbar [data-dimau-header-bar] {
      padding-inline: clamp(8px, 3vw, 16px) !important;
      gap: 4px !important;
    }
    .bx-topbar [data-dimau-header-actions] { gap: 1px !important; }
    .bx-topbar [data-dimau-logo-frame],
    .bx-topbar img[data-dimau-logo] {
      width: 48px !important;
      min-width: 48px !important;
      max-width: 48px !important;
      height: 48px !important;
      min-height: 48px !important;
      max-height: 48px !important;
    }
    .bx-topbar [data-dimau-logo-frame] { flex-basis: 48px !important; }
    .bx-topbar [data-dimau-logo-frame],
    .bx-topbar [data-dimau-menu-toggle],
    .bx-topbar #bgToggle {
      background: transparent !important;
      border-color: transparent !important;
      box-shadow: none !important;
    }
    .bx-topbar #bgToggle {
      --theme-button-fill: transparent;
      --theme-button-border: 0;
    }
    .bx-topbar #bxShareApp {
      color: var(--bx-ink, #12303d) !important;
      border-color: transparent !important;
      background: transparent !important;
      box-shadow: none !important;
    }
  }
}
