/* Shared Dimau header v2: the Ai Vola Tabu adapter for the home page and the chapter/book pages.
 * dimau-header-standard.css (copied unchanged) fixes the bar: 64px on phones, 72px from 768px,
 * logo 36px in a 44px frame, name 18px, music and Menu 44px. This file only keeps the app's own
 * colours, lays out the Menu items and the chapter line, and fits the sidebar and page below the bar
 * now that the bar spans the full width and stays at the top while scrolling. */
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-header]{
  --dimau-header-bg:var(--bx-paper);--dimau-header-ink:var(--bx-ink);--dimau-header-line:var(--bx-line);
  --dimau-header-accent:var(--bx-accent);--dimau-header-hover:var(--bx-sand);
  --dimau-header-menu-bg:var(--bx-card);--dimau-header-menu-ink:var(--bx-ink);
  --dimau-header-control-bg:var(--bx-card);
  left:auto;right:auto}
/* Menu items: icon, label, and the language choice as a full row. */
[data-dimau-header] [data-dimau-menu-panel] svg{width:20px;height:20px;flex:none}
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-menu-panel] svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
:root:not(#dk) [data-dimau-header] [data-dimau-menu-panel] :is(button,a)>span{display:inline;position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;color:inherit;font:inherit;margin:0}
body.bible-prototype [data-dimau-menu-panel] .bx-type-icon{display:inline-flex;justify-content:center;width:20px;font-weight:700}
body.bible-prototype [data-dimau-menu-panel] .bx-language{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0;padding:4px 12px;font-size:14px;line-height:20px;color:inherit}
body.bible-prototype [data-dimau-menu-panel] .bx-language>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-weight:600}
body.bible-prototype [data-dimau-menu-panel] .bx-language select{width:auto;min-width:120px;font-size:14px}
/* The chapter line sits under the bar while reading or listening, and stays with the bar. */
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-context-row]{box-sizing:border-box;display:flex;align-items:center;min-width:0;min-height:40px;margin:0;padding:4px 16px;border-top:1px solid var(--bx-line);background:var(--bx-paper)}
body.bible-prototype:not([data-experience-view=read]):not([data-experience-view=listen]) [data-dimau-context-row]{display:none}
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-context-row] .bx-context-title{min-height:32px;padding:0;margin:0;text-align:left}
/* Pages flow under the bar instead of under a fixed one. */
:root:not(#dk) :is(body.bible-prototype,body.bible-static-shell) main.wrap{margin-top:0!important}
:root:not(#dk) body.bible-static-shell main.wrap{padding-top:24px!important}
/* Wide screens: the sidebar starts below the bar, and the header carries the app name instead. */
@media(min-width:761px){
  :is(body.bible-prototype,body.bible-static-shell) .bx-sidebar{top:64px;z-index:81}
  :is(body.bible-prototype,body.bible-static-shell) .bx-sidebar>.bx-brand{display:none}
  :is(body.bible-prototype,body.bible-static-shell) [data-dimau-context-row]{padding-left:calc(224px + 24px);padding-right:24px}
}
@media(min-width:768px){
  :is(body.bible-prototype,body.bible-static-shell) .bx-sidebar{top:72px}
}
@media(max-width:760px){
  :root:not(#dk) body.bible-static-shell main.wrap{padding-top:16px!important}
}
html:has(body.bible-prototype:is([data-experience-view=read],[data-experience-view=listen])),html:has(body.bible-static-shell){scroll-padding-top:128px}
/* The skip link stays out of sight until a keyboard user reaches it (the bar no longer covers it). */
body.bible-static-shell .landing-skip{position:absolute;top:8px;left:16px;z-index:200;padding:10px 14px;background:var(--bx-card);color:var(--bx-ink);border:1px solid var(--bx-line);border-radius:6px;transform:translateY(-200%)}
body.bible-static-shell .landing-skip:focus{transform:none}
/* Context row: brand label and page name side by side, centred, with a clear gap (was touching). */
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-context-row]{gap:12px;align-items:center}
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-context-row] .bx-eyebrow{margin:0;line-height:1;font-size:12px;letter-spacing:.12em;white-space:nowrap}
:is(body.bible-prototype,body.bible-static-shell) [data-dimau-context-row] .bx-context-title{display:flex;align-items:center;line-height:1.2;font-size:15px;font-weight:700}
