/* Chapter, book and verse pages (api/render.js) wear the same frame as the home page:
 * left sidebar on wide screens, top bar, and the four-tab bar at the bottom on phones.
 * Values copy bible-experience.css (body.bible-prototype); links stand in for its buttons. */
body.bible-static-shell{--bx-paper:#faf8f3;--bx-card:#fffdf8;--bx-ink:#172e3d;--bx-muted:#58676c;--bx-line:#dedfd8;--bx-accent:#245c65;--bx-soft:#edf2ed;--bx-sand:#f0ece2;--bx-scripture:Georgia,'Times New Roman',serif;--bx-heading:Manrope,system-ui,sans-serif;
  background:var(--bx-paper)!important;color:var(--bx-ink)}
body.bible-static-shell>.dk-header{display:none!important}
body.bible-static-shell .bx-sidebar{position:fixed;inset:0 auto 0 0;z-index:80;width:224px;display:flex;flex-direction:column;padding:30px 20px 24px;border-right:1px solid var(--bx-line);background:#f3f1e9;box-sizing:border-box}
body.bible-static-shell .bx-sidebar::after{content:'';position:absolute;inset:auto 0 0;height:7px;opacity:.42;background:linear-gradient(45deg,transparent 42%,#a08c6b 43% 56%,transparent 57%) 0 0/14px 14px,linear-gradient(-45deg,transparent 42%,#a08c6b 43% 56%,transparent 57%) 0 0/14px 14px;pointer-events:none}
body.bible-static-shell .bx-brand{display:flex;align-items:center;gap:12px;margin:0 0 44px;min-height:48px;color:var(--bx-ink);text-decoration:none}
body.bible-static-shell .bx-brand img{display:block;flex:none;width:42px;height:42px;object-fit:contain}
body.bible-static-shell .bx-brand strong{display:block;font-family:var(--bx-heading);font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.035em}
body.bible-static-shell .bx-brand small{display:block;margin-top:4px;color:var(--bx-muted);font-size:12px;letter-spacing:.13em;text-transform:uppercase}
body.bible-static-shell .bx-nav{display:flex;flex-direction:column;gap:8px;margin:0;padding:0}
body.bible-static-shell .bx-nav a{display:flex;align-items:center;gap:14px;min-height:52px;padding:12px 14px;border-radius:4px;color:var(--bx-ink);text-decoration:none;font-size:14px;line-height:1.3;box-sizing:border-box}
body.bible-static-shell .bx-nav a:hover{background:var(--bx-sand)}
body.bible-static-shell .bx-nav a[aria-current=page]{background:var(--bx-soft);color:var(--bx-accent);font-weight:800}
body.bible-static-shell .bx-nav svg,body.bible-static-shell .bx-topbar svg{flex:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.bible-static-shell .bx-nav-label{display:block;min-width:0}
body.bible-static-shell .bx-nav-label small{display:block;color:var(--bx-muted);font-size:12px;line-height:1.4;font-weight:400;margin-top:3px}
body.bible-static-shell .bx-sidebar-foot{margin-top:auto;padding:28px 10px 0;border-top:1px solid var(--bx-line);font-size:12px;line-height:1.8}
body.bible-static-shell .bx-topbar{position:fixed;top:0;right:0;left:224px;z-index:70;height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 40px;background:var(--bx-paper);border-bottom:1px solid var(--bx-line);box-sizing:border-box}
body.bible-static-shell .bx-mobile-brand{display:none}
body.bible-static-shell .bx-context{flex:1;min-width:0}
body.bible-static-shell .bx-eyebrow{display:block;font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.13em;color:var(--bx-muted);margin:0 0 3px}
body.bible-static-shell .bx-context-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.35;font-weight:600;color:var(--bx-ink)}
body.bible-static-shell .bx-top-actions{display:flex;align-items:center;gap:7px;flex:none}
body.bible-static-shell .bx-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:10px;box-sizing:border-box;border-radius:4px;color:var(--bx-ink);text-decoration:none;font-size:12px;line-height:1.4;background:transparent;border:0}
body.bible-static-shell .bx-icon-button svg{width:18px;height:18px}
body.bible-static-shell .bx-icon-button:hover{background:var(--bx-sand)}
body.bible-static-shell .bx-top-actions .dk-tools{display:flex;align-items:center;gap:4px;margin:0}
body.bible-static-shell .bx-top-actions .dk-account{padding:10px 12px;border:1px solid var(--bx-line);border-radius:4px;background:var(--bx-card);color:var(--bx-ink);text-decoration:none;font-size:12px;white-space:nowrap}
body.bible-static-shell main.wrap{box-sizing:border-box;width:auto;max-width:none;margin:0 0 0 224px;padding:96px 48px 48px}
body.bible-static-shell main.wrap>*{max-width:1060px;margin-left:auto;margin-right:auto}
body.bible-static-shell main.wrap h1{font-family:var(--bx-heading);font-weight:700;letter-spacing:-.035em}
@media(max-width:1100px){body.bible-static-shell .bx-topbar{padding:0 28px}body.bible-static-shell main.wrap{padding-left:28px;padding-right:28px}}
@media(max-width:760px){
  body.bible-static-shell .bx-sidebar{inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom);display:block;border:0;border-top:1px solid var(--bx-line);background:var(--bx-card);z-index:90}
  body.bible-static-shell .bx-sidebar::after,body.bible-static-shell .bx-sidebar>.bx-brand,body.bible-static-shell .bx-sidebar-foot{display:none}
  body.bible-static-shell .bx-nav{height:72px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  body.bible-static-shell .bx-nav a{position:relative;flex-direction:column;justify-content:center;gap:5px;min-width:0;min-height:64px;padding:9px 3px 8px;text-align:center;font-size:12px;line-height:1.25;border-radius:0}
  body.bible-static-shell .bx-nav a[aria-current=page]{background:transparent;color:var(--bx-accent)}
  body.bible-static-shell .bx-nav a[aria-current=page]::before{content:'';position:absolute;top:0;left:50%;margin-left:-15px;width:30px;height:2px;background:var(--bx-accent)}
  body.bible-static-shell .bx-nav-label small{display:none}
  body.bible-static-shell .bx-topbar{left:0;height:64px;padding:0 10px;gap:6px}
  body.bible-static-shell .bx-mobile-brand{display:flex;align-items:center;justify-content:center;flex:none;width:36px;min-height:44px}
  body.bible-static-shell .bx-mobile-brand img{width:31px;height:31px;object-fit:contain}
  body.bible-static-shell .bx-eyebrow{font-size:12px;letter-spacing:.1em;margin-bottom:2px}
  body.bible-static-shell .bx-context-title{font-size:12px}
  body.bible-static-shell .bx-top-actions{gap:0}
  body.bible-static-shell .bx-icon-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  /* The top bar is the shared Dimau header v2 (bible-header-v2.css): music and Menu on every width. */
  body.bible-static-shell main.wrap{margin-left:0;padding:80px 16px calc(96px + env(safe-area-inset-bottom))}
}
@media print{body.bible-static-shell :is(.bx-sidebar,.bx-topbar){display:none!important}body.bible-static-shell main.wrap{margin:0;padding:0}}
/* The Dimau kit styles header controls with :root:not(#dk) and !important; match it so the frame wins. */
:root:not(#dk) body.bible-static-shell main.wrap{margin-top:0!important}
:root:not(#dk) body.bible-static-shell .bx-top-actions .dk-share{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:4px!important;width:44px;height:44px;padding:10px!important}
@media(max-width:760px){
  :root:not(#dk) body.bible-static-shell main.wrap{padding-top:76px!important}
}
/* Page buttons in the home page's plain style: one teal main action, quiet secondary links. */
body.bible-static-shell .bx-page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:22px}
body.bible-static-shell :is(.bx-primary,.bx-link){display:inline-flex;align-items:center;min-height:48px;box-sizing:border-box;font:600 15px/1.35 Manrope,system-ui,sans-serif;text-decoration:none}
body.bible-static-shell .bx-primary{padding:12px 22px;border-radius:6px;background:var(--bx-accent);color:#fff}
body.bible-static-shell .bx-primary:hover{background:#1b4a52}
body.bible-static-shell .bx-link{padding:10px 2px;color:var(--bx-accent);text-decoration:underline;text-underline-offset:3px}
body.bible-static-shell .chip{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;box-sizing:border-box;padding:8px 12px;border-radius:6px;border:1px solid var(--bx-line);background:var(--bx-card);color:var(--bx-ink);text-decoration:none}
body.bible-static-shell .chip:hover{border-color:var(--bx-accent)}
body.bible-static-shell .card .bx-primary{margin:4px 0}
@media(max-width:760px){body.bible-static-shell .bx-page-actions .bx-primary{order:-1;width:100%;justify-content:center}}
/* Readable for older eyes (task #140): nothing under 12px, verse numbers scale with the verse. */
body.bible-static-shell :is(.coltitle,.crumbs,footer){font-size:max(12px,.8rem)}
body.bible-static-shell .v b{font-size:max(12px,.62em)}
body.bible-static-shell .bx-eyebrow{font-size:12px}
@media(max-width:760px){body.bible-static-shell .bx-nav a{font-size:12px}body.bible-static-shell .bx-context-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;font-size:13px;line-height:1.2}body.bible-static-shell .bx-context>.bx-eyebrow{display:none}}
