:root{--eba-blue:#123b65;--eba-gold:#b98b3d;--eba-paper:#fbfaf7;--ebibel-a11y-font-size:19px;--ebibel-a11y-line-height:1.7}
.ebibel-access-open{overflow:hidden}
#ebibel-tilgjengelighet-root{position:relative;z-index:2147483200;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ebibel-access-launch{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(274px,calc(env(safe-area-inset-bottom) + 268px));z-index:2147481900;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid rgba(18,59,101,.2);border-radius:999px;background:#fff;color:var(--eba-blue);box-shadow:0 6px 22px rgba(7,31,55,.2);font-weight:750;cursor:pointer}
.ebibel-access-launch span,.ebibel-access-shortcode span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--eba-blue);color:#fff;font:800 13px/1 Arial,sans-serif}
.ebibel-access-shortcode{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 17px;border:1px solid #cbd6dc;border-radius:999px;background:#fff;color:var(--eba-blue);box-shadow:0 5px 18px rgba(16,46,74,.13);font:inherit;cursor:pointer}
.ebibel-access-overlay[hidden]{display:none!important}
.ebibel-access-overlay{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:18px;background:rgba(7,22,38,.74);backdrop-filter:blur(5px)}
.ebibel-access-dialog{width:min(720px,100%);max-height:min(820px,calc(100vh - 36px));display:flex;flex-direction:column;overflow:hidden;border-radius:18px;background:var(--eba-paper);color:#26323d;box-shadow:0 28px 80px rgba(0,0,0,.35)}
.ebibel-access-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid rgba(18,59,101,.14)}
.ebibel-access-dialog h2{margin:0;color:#0d2948;font:750 26px/1.2 Georgia,serif}
.ebibel-access-dialog header p{margin:3px 0 0;color:#69737d;font-size:13px}
.ebibel-access-close{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(18,59,101,.08);color:var(--eba-blue);font-size:29px;cursor:pointer}
.ebibel-access-dialog>main{overflow-y:auto;padding:5px 22px 18px}
.ebibel-access-setting{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 2px;border-bottom:1px solid rgba(18,59,101,.12)}
.ebibel-access-setting h3{margin:0 0 4px;color:#24384a;font-size:16px}
.ebibel-access-setting p{margin:0;color:#68747d;font-size:12px;line-height:1.45}
.ebibel-access-font{display:flex;align-items:center;overflow:hidden;border:1px solid #bac6cd;border-radius:9px;background:#fff}
.ebibel-access-font button{width:43px;height:41px;padding:0;border:0;background:#fff;color:var(--eba-blue);font-weight:800;cursor:pointer}
.ebibel-access-font button:disabled{opacity:.35;cursor:default}
.ebibel-access-font output{min-width:102px;color:#4f606b;font-size:12px;font-weight:750;text-align:center}
.ebibel-access-options{display:flex;gap:5px}
.ebibel-access-options button{min-height:39px;padding:0 12px;border:1px solid #bac6cd;border-radius:8px;background:#fff;color:var(--eba-blue);font-weight:750;cursor:pointer}
.ebibel-access-options button.is-active{border-color:var(--eba-blue);background:var(--eba-blue);color:#fff}
.ebibel-access-switch{position:relative;width:52px;height:30px;padding:0;border:0;border-radius:999px;background:#cbd2d6;cursor:pointer;transition:background .15s ease}
.ebibel-access-switch span{position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .15s ease}
.ebibel-access-switch.is-active{background:#28734c}
.ebibel-access-switch.is-active span{transform:translateX(22px)}
.ebibel-access-preview{margin:18px 0 2px;padding:17px 18px;border:1px solid #d5dcdf;border-radius:11px;background:#fff}
.ebibel-access-preview small{display:block;margin-bottom:9px;color:#77828a;font-size:10px;font-weight:800;letter-spacing:.08em}
.ebibel-access-preview p{margin:0;color:#202c35;font-family:Georgia,serif;font-size:var(--ebibel-a11y-font-size);line-height:var(--ebibel-a11y-line-height)}
.ebibel-access-preview sup{margin-right:7px;color:#8b6530;font:800 11px Arial,sans-serif}
.ebibel-access-dialog>footer{display:flex;justify-content:space-between;gap:10px;padding:13px 22px;border-top:1px solid rgba(18,59,101,.13);background:#f2f0ea}
.ebibel-access-dialog>footer button{min-height:42px;padding:0 16px;border:1px solid #b9c4ca;border-radius:9px;background:#fff;color:var(--eba-blue);font-weight:750;cursor:pointer}
.ebibel-access-dialog>footer .ebibel-access-done{border-color:var(--eba-blue);background:var(--eba-blue);color:#fff}
.ebibel-access-dialog button:focus-visible,.ebibel-access-dialog select:focus-visible,.ebibel-access-launch:focus-visible,.ebibel-access-shortcode:focus-visible{outline:3px solid rgba(27,93,135,.42);outline-offset:3px}

/* Felles tekststørrelse og linjeavstand i lese- og notatflatene. */
html.ebibel-a11y-active.ebibel-a11y-bible-page main article p,
html.ebibel-a11y-active.ebibel-a11y-bible-page main .entry-content p,
html.ebibel-a11y-active .ebibel-offline-reader p,
html.ebibel-a11y-active .ebibel-msb-reader,
html.ebibel-a11y-active .ebibel-msb-reader p,
html.ebibel-a11y-active .ebibel-parallell-reading,
html.ebibel-a11y-active .ebibel-parallell-reading p,
html.ebibel-a11y-active .ebibel-harmony-columns article>div,
html.ebibel-a11y-active .ebibel-harmony-columns p,
html.ebibel-a11y-active .ebibel-plan-reading section p,
html.ebibel-a11y-active .ebibel-notes-body,
html.ebibel-a11y-active .ebibel-notes-body p,
html.ebibel-a11y-active .ebibel-access-preview p{font-size:var(--ebibel-a11y-font-size)!important;line-height:var(--ebibel-a11y-line-height)!important}

/* Lettlest skrifttype bruker bare lokale systemskrifter og virker derfor offline. */
html.ebibel-a11y-readable.ebibel-a11y-bible-page main article,
html.ebibel-a11y-readable.ebibel-a11y-bible-page main .entry-content,
html.ebibel-a11y-readable .ebibel-offline-reader,
html.ebibel-a11y-readable .ebibel-offline-reader p,
html.ebibel-a11y-readable .ebibel-msb-reader,
html.ebibel-a11y-readable .ebibel-parallell-reading,
html.ebibel-a11y-readable .ebibel-harmony-columns article>div,
html.ebibel-a11y-readable .ebibel-plan-reading,
html.ebibel-a11y-readable .ebibel-notes-body,
html.ebibel-a11y-readable .ebibel-access-preview p{font-family:Verdana,"Segoe UI",Arial,sans-serif!important;letter-spacing:.012em}

/* Mørk modus for nettsiden og alle eBibel-vinduene. */
html.ebibel-a11y-active:not(.ebibel-a11y-dark){color-scheme:light}
html.ebibel-a11y-dark{color-scheme:dark;background:#0d151c}
html.ebibel-a11y-dark body,
html.ebibel-a11y-dark #page,
html.ebibel-a11y-dark .site,
html.ebibel-a11y-dark .site-content,
html.ebibel-a11y-dark .content-area,
html.ebibel-a11y-dark .site-main{background:#0d151c!important;color:#edf2f4!important}
html.ebibel-a11y-dark.ebibel-a11y-bible-page main article,
html.ebibel-a11y-dark.ebibel-a11y-bible-page main .entry-content{background:#111c25!important;color:#edf2f4!important}
html.ebibel-a11y-dark.ebibel-a11y-bible-page main article p,
html.ebibel-a11y-dark.ebibel-a11y-bible-page main .entry-content p{color:#edf2f4!important}
html.ebibel-a11y-dark a{color:#8fd1ff}
html.ebibel-a11y-dark .ebibel-offline-dialog,
html.ebibel-a11y-dark .ebibel-offline-reader,
html.ebibel-a11y-dark .ebibel-offline-reference-sheet,
html.ebibel-a11y-dark .ebibel-offline-reference-body,
html.ebibel-a11y-dark .ebibel-msb-dialog,
html.ebibel-a11y-dark .ebibel-parallell-dialog,
html.ebibel-a11y-dark .ebibel-harmony-app,
html.ebibel-a11y-dark .ebibel-plan-dialog,
html.ebibel-a11y-dark .ebibel-notes-dialog,
html.ebibel-a11y-dark .ebibel-bokmerker-dialog,
html.ebibel-a11y-dark .ebibel-bookmarks-dialog,
html.ebibel-a11y-dark .ebibel-access-dialog{background:#111c25!important;color:#edf2f4!important}
html.ebibel-a11y-dark .ebibel-offline-reader p:not(.is-highlighted),
html.ebibel-a11y-dark .ebibel-offline-reference-body p,
html.ebibel-a11y-dark .ebibel-msb-reader p:not(.marked),
html.ebibel-a11y-dark .ebibel-parallell-reading,
html.ebibel-a11y-dark .ebibel-harmony-columns article>div,
html.ebibel-a11y-dark .ebibel-plan-reading section p,
html.ebibel-a11y-dark .ebibel-notes-body{color:#edf2f4!important}
html.ebibel-a11y-dark .ebibel-offline-nav,
html.ebibel-a11y-dark .ebibel-offline-marker-row,
html.ebibel-a11y-dark .ebibel-offline-reference-header,
html.ebibel-a11y-dark .ebibel-offline-reference-toolbar,
html.ebibel-a11y-dark .ebibel-offline-reference-sheet>footer,
html.ebibel-a11y-dark .ebibel-msb-nav,
html.ebibel-a11y-dark .ebibel-msb-tools,
html.ebibel-a11y-dark .ebibel-parallell-toolbar,
html.ebibel-a11y-dark .ebibel-parallell-column,
html.ebibel-a11y-dark .ebibel-harmony-toolbar,
html.ebibel-a11y-dark .ebibel-harmony-columns article,
html.ebibel-a11y-dark .ebibel-harmony-app>footer,
html.ebibel-a11y-dark .ebibel-plan-card,
html.ebibel-a11y-dark .ebibel-plan-days article,
html.ebibel-a11y-dark .ebibel-notes-body,
html.ebibel-a11y-dark .ebibel-access-preview,
html.ebibel-a11y-dark .ebibel-tts-toolbar{background:#182631!important;color:#edf2f4!important;border-color:#496070!important}
html.ebibel-a11y-dark .ebibel-offline-dialog input,
html.ebibel-a11y-dark .ebibel-offline-dialog select,
html.ebibel-a11y-dark .ebibel-offline-dialog button,
html.ebibel-a11y-dark .ebibel-msb-dialog input,
html.ebibel-a11y-dark .ebibel-msb-dialog select,
html.ebibel-a11y-dark .ebibel-msb-dialog button,
html.ebibel-a11y-dark .ebibel-parallell-dialog select,
html.ebibel-a11y-dark .ebibel-parallell-dialog button,
html.ebibel-a11y-dark .ebibel-plan-dialog button,
html.ebibel-a11y-dark .ebibel-notes-dialog input,
html.ebibel-a11y-dark .ebibel-notes-dialog textarea,
html.ebibel-a11y-dark .ebibel-access-dialog button{background:#223442;color:#f5f8fa;border-color:#5f7585}
html.ebibel-a11y-dark .ebibel-access-dialog>header,
html.ebibel-a11y-dark .ebibel-access-setting,
html.ebibel-a11y-dark .ebibel-access-dialog>footer{border-color:#405462}
html.ebibel-a11y-dark .ebibel-access-dialog h2,
html.ebibel-a11y-dark .ebibel-access-setting h3,
html.ebibel-a11y-dark .ebibel-offline-reference-header h3,
html.ebibel-a11y-dark .ebibel-offline-reference-body h2,
html.ebibel-a11y-dark .ebibel-offline-reference-body h3{color:#f5f8fa}
html.ebibel-a11y-dark .ebibel-access-dialog header p,
html.ebibel-a11y-dark .ebibel-access-setting p{color:#bdc9cf}
html.ebibel-a11y-dark .ebibel-access-dialog>footer{background:#0e1921}
html.ebibel-a11y-dark .ebibel-access-font{background:#223442;border-color:#5f7585}
html.ebibel-a11y-dark .ebibel-access-font button{background:#223442;color:#fff}
html.ebibel-a11y-dark .ebibel-access-font output,
html.ebibel-a11y-dark .ebibel-access-preview p{color:#f5f8fa}
html.ebibel-a11y-dark .is-highlighted,
html.ebibel-a11y-dark .marked,
html.ebibel-a11y-dark .ebibel-tts-active{color:#101820!important}
html.ebibel-a11y-dark .ebibel-mobilmeny-bar,
html.ebibel-a11y-dark .ebibel-mobilmeny-sheet,
html.ebibel-a11y-dark .ebibel-mobilmeny-more button{background:#16242e!important;color:#f5f8fa!important;border-color:#506674!important}
html.ebibel-a11y-dark .ebibel-mobilmeny-sheet h2{color:#f5f8fa!important}
html.ebibel-a11y-dark .ebibel-mobilmeny-close{background:#263a48!important;color:#fff!important}

/* Høy kontrast kan kombineres med både lys og mørk modus. */
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark) body{background:#fff!important;color:#000!important}
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark).ebibel-a11y-bible-page main p,
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark) .ebibel-offline-reader p:not(.is-highlighted),
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark) .ebibel-msb-reader p:not(.marked),
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark) .ebibel-parallell-reading,
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark) .ebibel-harmony-columns article>div,
html.ebibel-a11y-contrast:not(.ebibel-a11y-dark) .ebibel-plan-reading p{color:#000!important}
html.ebibel-a11y-contrast.ebibel-a11y-dark body,
html.ebibel-a11y-contrast.ebibel-a11y-dark .ebibel-offline-reader p:not(.is-highlighted),
html.ebibel-a11y-contrast.ebibel-a11y-dark .ebibel-msb-reader p:not(.marked),
html.ebibel-a11y-contrast.ebibel-a11y-dark .ebibel-parallell-reading,
html.ebibel-a11y-contrast.ebibel-a11y-dark .ebibel-harmony-columns article>div,
html.ebibel-a11y-contrast.ebibel-a11y-dark .ebibel-plan-reading p{color:#fff!important}
html.ebibel-a11y-contrast a{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px}
html.ebibel-a11y-contrast button,
html.ebibel-a11y-contrast input,
html.ebibel-a11y-contrast select,
html.ebibel-a11y-contrast textarea{border-width:2px!important}
html.ebibel-a11y-contrast button,
html.ebibel-a11y-contrast input,
html.ebibel-a11y-contrast select,
html.ebibel-a11y-contrast textarea{border-style:solid!important;border-color:currentColor!important}
html.ebibel-a11y-contrast :focus-visible{outline:4px solid #ffb000!important;outline-offset:3px!important}

/* Redusert bevegelse kan velges manuelt eller følge telefonen. */
html.ebibel-a11y-reduce-motion{scroll-behavior:auto!important}
html.ebibel-a11y-reduce-motion *,
html.ebibel-a11y-reduce-motion *::before,
html.ebibel-a11y-reduce-motion *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}
html.ebibel-a11y-reduce-motion [class*="loading"],
html.ebibel-a11y-reduce-motion [class*="loading"]::before,
html.ebibel-a11y-reduce-motion [class*="spinner"],
html.ebibel-a11y-reduce-motion [class*="spinner"]::before{animation-duration:1.5s!important;animation-iteration-count:infinite!important}

@media(max-width:720px){
  body.ebibel-mobilmeny-ready .ebibel-access-launch{display:none!important}
  .ebibel-access-launch{right:14px;bottom:142px;width:52px;height:52px;min-height:52px;padding:0;justify-content:center;background:var(--eba-blue);color:#fff}
  .ebibel-access-launch span{background:#fff;color:var(--eba-blue)}
  .ebibel-access-launch b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .ebibel-access-overlay{align-items:stretch;padding:0}
  .ebibel-access-dialog{width:100%;max-height:none;height:100%;border-radius:0}
  .ebibel-access-dialog>header{padding:14px 16px}
  .ebibel-access-dialog h2{font-size:22px}
  .ebibel-access-dialog>main{padding:3px 14px 18px}
  .ebibel-access-setting{grid-template-columns:1fr;gap:11px;padding:15px 1px}
  .ebibel-access-toggle-row{grid-template-columns:1fr auto;gap:14px}
  .ebibel-access-font,.ebibel-access-options{justify-self:stretch}
  .ebibel-access-font button{flex:0 0 48px}
  .ebibel-access-font output{flex:1}
  .ebibel-access-options button{flex:1}
  .ebibel-access-dialog>footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
  .ebibel-access-dialog>footer button{padding:0 11px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.ebibel-access-switch,.ebibel-access-switch span{transition:none}}
