
/* AirBible v1.4: three icon tabs on Home, Discover and Air Read. */
.abLanding{padding-bottom:calc(52px + env(safe-area-inset-bottom))!important}
#abTabs.abTabs{
 position:fixed!important;z-index:35!important;bottom:0!important;left:0!important;right:0!important;transform:none!important;
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;
 width:100%!important;max-width:none!important;height:calc(52px + env(safe-area-inset-bottom))!important;
 padding:2px max(8px,calc((100vw - 650px)/2)) env(safe-area-inset-bottom)!important;margin:0!important;
 background:#111317!important;border:0!important;border-top:1px solid #33353b!important;
 border-radius:0!important;box-shadow:none!important;
}
#abTabs.abTabs button,#abTabs.abTabs button.selected,#abTabs.abTabs button.abTabAir{
 appearance:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
 margin:0!important;height:48px!important;min-height:48px!important;min-width:0!important;padding:8px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;color:#92939a!important;
}
#abTabs.abTabs button.selected{color:#f6e2b8!important}
#abTabs.abTabs button span{display:none!important}
#abTabs.abTabs button svg{width:27px!important;height:27px!important;stroke:currentColor!important;stroke-width:1.75!important}
#abTabs.abTabs button .abHandIcon{width:30px!important;height:30px!important;stroke-width:1.55!important}
body.abReaderMode #abTabs{background:var(--bg)!important;border-top-color:var(--border)!important}
body.abReaderMode #abTabs button{color:var(--muted)!important}
body.abReaderMode #abTabs button.abTabAir{color:var(--green)!important}

/* Camera preview has its own floating layer and does not modify verse geometry. */
#verseFrame,#verseFrame.previewActive{
 display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;min-height:150px!important
}
#verseFrame > .card,#verseFrame.previewActive > .card{
 display:flex!important;flex-direction:column!important;justify-content:safe center!important;
 grid-column:auto!important;grid-row:auto!important;align-self:auto!important;
 width:100%!important;height:100%!important;max-height:100%!important;min-height:150px!important;
 position:relative!important;padding:14px clamp(43px,9vw,83px) 38px!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;
}
#verseFrame > .card .verse,#verseFrame > .card .reference{flex-shrink:0!important}
#verseFrame > #save{
 position:absolute!important;top:auto!important;right:9px!important;bottom:calc(11% + 83px)!important;z-index:7!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:45px!important;height:45px!important;min-height:45px!important;padding:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
 color:var(--ink)!important;font-size:0!important;
}
#verseFrame > #save::before{content:'♡';font:38px/1 Georgia,serif}
#verseFrame > #save.saved::before{content:'♥';font:32px/1 Georgia,serif;color:#eb5776}
#verseFrame > #studyButton{top:auto!important;bottom:11%!important;right:10px!important;z-index:7!important}
#abCameraDock{
 position:fixed;z-index:36;top:calc(107px + env(safe-area-inset-top));
 right:max(13px,calc((100vw - 710px)/2 + 13px));width:88px;height:94px;pointer-events:none;
}
#abCameraDock #cam{
 position:absolute!important;inset:0!important;top:0!important;left:0!important;
 width:88px!important;height:94px!important;border-radius:13px!important;z-index:1!important;
}
#abCameraDock #cam.previewHidden{opacity:0!important;pointer-events:none!important}
#abCameraDock #previewToggle{
 appearance:none!important;position:absolute!important;z-index:3!important;top:-12px!important;left:-12px!important;
 right:auto!important;bottom:auto!important;width:34px!important;height:34px!important;min-height:34px!important;
 padding:8px!important;background:transparent!important;color:var(--green)!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;outline-offset:2px!important;
 display:flex;align-items:center;justify-content:center;pointer-events:auto!important;
}
#abCameraDock #previewToggle[hidden]{display:none!important}
#abCameraDock #previewToggle svg{width:19px!important;height:19px!important;stroke:currentColor!important;filter:drop-shadow(0 1px 2px var(--bg))}
#abCameraDock #cam .tag{font-size:12px}
@media(max-height:650px){#abCameraDock{top:calc(100px + env(safe-area-inset-top));width:77px;height:83px}#abCameraDock #cam{width:77px!important;height:83px!important}}

/* Eight original hand-authored outline illustrations for scripture topics. */
#abTopicGrid .abTopicGlyph{
 display:inline-flex!important;width:34px!important;height:34px!important;
 justify-content:center!important;align-items:center!important;color:#54594f!important
}
#abTopicGrid .abTopicGlyph svg{
 display:block;width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.7;
 stroke-linecap:round;stroke-linejoin:round
}


/* AirBible 1.5: camera and status live in a reserved, non-overlapping header lane. */
/* The lane never changes size when the camera is shown, hidden, or switched off. */
main #abTrackingBand{
 display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;
 gap:12px!important;align-items:center!important;
 height:102px!important;min-height:102px!important;max-height:102px!important;
 flex:0 0 102px!important;width:100%!important;min-width:0!important;
 padding:6px 10px 7px!important;border-bottom:1px solid var(--border)!important;
}
main #abTrackingBand > .status{
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 width:100%!important;max-width:100%!important;height:auto!important;
 min-height:50px!important;gap:5px 7px!important;justify-content:flex-start!important;
 align-content:center!important;align-items:center!important;text-align:left!important;
 padding:0!important;overflow:visible!important;font-size:11px!important;opacity:1!important;
}
#abTrackingBand #status{min-width:0!important;overflow-wrap:anywhere!important;text-align:left!important}
#abTrackingBand #guideButton{font-size:11px!important;white-space:nowrap!important}
#abTrackingBand #nightToggle{margin-left:0!important}
main #abTrackingBand #abCameraDock{
 position:relative!important;inset:auto!important;top:auto!important;left:auto!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 width:88px!important;height:88px!important;max-width:88px!important;
 z-index:10!important;justify-self:end!important;align-self:center!important;
 display:block!important;pointer-events:none!important;
}
main #abTrackingBand #abCameraDock #cam{
 position:absolute!important;top:0!important;left:0!important;right:auto!important;bottom:auto!important;
 width:88px!important;height:88px!important;border-radius:13px!important;overflow:hidden!important;
}
main #abTrackingBand #abCameraDock #previewToggle{
 position:absolute!important;left:2px!important;top:2px!important;right:auto!important;bottom:auto!important;
 z-index:12!important;width:34px!important;height:34px!important;min-height:34px!important;
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 color:var(--green)!important;pointer-events:auto!important;
}
main #abTrackingBand #abCameraDock #previewToggle svg{width:21px!important;height:21px!important;stroke-width:2.2!important}
body.abReaderMode #abTrackingBand{background:transparent!important}
@media(max-height:680px){
 main #abTrackingBand{
  height:83px!important;min-height:83px!important;max-height:83px!important;
  flex-basis:83px!important;grid-template-columns:minmax(0,1fr) 75px!important;padding:3px 8px!important;
 }
 main #abTrackingBand #abCameraDock{width:75px!important;height:75px!important}
 main #abTrackingBand #abCameraDock #cam{width:75px!important;height:75px!important}
}
/* Secondary AirBible identity: a hand above an open book, sized for a tab icon. */
#abTabs.abTabs button .abHandBibleIcon{width:38px!important;height:38px!important;stroke-width:2.1!important;overflow:visible}
#abTabs .abHandBibleIcon .abBookPages{stroke:var(--gold)!important}
#abTabs .abHandBibleIcon .abHoverHand{stroke:currentColor!important}
/* Undo is high-contrast, immediately actionable, and does not shift the verse when shown. */
.meta{height:44px!important;min-height:44px!important;flex:0 0 44px!important;margin:0!important;justify-content:center!important;align-items:center!important}
.meta #undoGesture[hidden]{display:none!important}
.meta #undoGesture:not([hidden]){
 appearance:none!important;display:inline-flex!important;gap:8px!important;
 align-items:center!important;justify-content:center!important;
 min-height:38px!important;padding:7px 15px!important;
 border:1.5px solid #d2ab5b!important;border-radius:23px!important;
 background:#f1d791!important;color:#27251e!important;
 font-weight:800!important;letter-spacing:.1px!important;font-size:13px!important;
 box-shadow:0 2px 12px #0002!important;opacity:1!important;line-height:1.1!important;
}
.meta #undoGesture svg{width:22px!important;height:22px!important;flex:none!important;stroke-width:2.6!important}
.meta #undoGesture span{display:inline!important;font-size:13px!important;font-weight:800!important}

/* AirBible 1.6: reclaim the Undo Swipe row for scripture. */
/* Hidden on every screen, not only in reader mode: the reader stays laid out under Home/Discover,
 * and a row that appears there makes the verse rail and icons jump when a swipe lands on the reader. */
.meta{display:none!important;height:0!important;min-height:0!important;flex:0 0 0!important;margin:0!important;padding:0!important}
main{padding-bottom:calc(62px + env(safe-area-inset-bottom))!important}
#verseFrame > .card,#verseFrame.previewActive > .card{padding-bottom:18px!important;padding-top:12px!important}
#verseFrame > .card .reference{margin-top:12px!important}
@media(max-height:730px){
 #verseFrame > .card .verse{line-height:1.39!important}
 #verseFrame > .card .reference{margin-top:8px!important}
}

/* Outline version of the original AirBible cross-and-open-book app mark. */
#abTabs.abTabs button .abBibleOutlineIcon{
 width:37px!important;height:37px!important;stroke:currentColor!important;
 stroke-width:2.4!important;fill:none!important;overflow:visible!important;
}
#abTabs.abTabs button .abBibleOutlineIcon path{
 fill:none!important;stroke:currentColor!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
#abTabs.abTabs button .abBibleOutlineIcon .abBibleCross{stroke-width:2.5!important}
#abTabs.abTabs button .abBibleOutlineIcon .abBiblePages{stroke-width:2.35!important}
#abTabs.abTabs button .abBibleOutlineIcon .abBibleFold{stroke-width:1.6!important}


/* Unified scripture action rail. Each icon has a 46px target and equal 28px artwork. */
#verseFrame #verseActions{
 position:absolute!important;z-index:11!important;right:2px!important;top:50%!important;
 bottom:auto!important;transform:translateY(-50%)!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:20px!important;width:48px!important;
 pointer-events:auto!important;
}
#verseFrame #verseActions button{
 position:static!important;inset:auto!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
 width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
 padding:8px!important;margin:0!important;border:0!important;border-radius:10px!important;
 box-shadow:none!important;background:transparent!important;color:var(--ink)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 transform:none!important;opacity:1!important;cursor:pointer!important;font-size:0!important;
}
#verseFrame #verseActions button svg{
 display:block!important;flex:none!important;width:29px!important;height:29px!important;
 fill:none!important;stroke:currentColor!important;stroke-width:1.85!important;
 stroke-linejoin:round!important;stroke-linecap:round!important;
}
#verseFrame #verseActions #save::before{display:none!important;content:none!important}
#verseFrame #verseActions #save.saved svg{
 fill:#e75872!important;stroke:#e75872!important;
}
#verseFrame #verseActions #studyButton svg{width:29px!important;height:29px!important;stroke-width:1.85!important}
#verseFrame #verseActions button:focus-visible{outline:2px solid var(--gold)!important;outline-offset:1px!important}
@media(min-width:800px){
 #verseFrame #verseActions{
   top:auto!important;bottom:5%!important;right:5%!important;
   transform:none!important;flex-direction:row!important;
   gap:17px!important;width:auto!important;height:46px!important;
 }
 #verseFrame > .card,#verseFrame.previewActive > .card{
  padding-right:clamp(45px,6vw,78px)!important;padding-bottom:84px!important;
 }
}
@media(max-height:640px) and (max-width:799px){
 #verseFrame #verseActions{gap:8px!important}
 #verseFrame #verseActions button{height:40px!important;min-height:40px!important}
}


/* Per-verse segmented progress. The only visible number is the chapter total. */
#verseRail{width:37px!important;touch-action:none;user-select:none}
#verseRail .railTrack,#verseRail #railSegments{
 position:absolute!important;left:10px!important;top:4px!important;bottom:25px!important;
 width:7px!important;height:auto!important;display:flex!important;
 flex-direction:column!important;gap:var(--rail-step-gap,3px)!important;
 background:transparent!important;border-radius:0!important;overflow:hidden!important;
}
#verseRail #railSegments .railStep{
 display:block!important;flex:1 1 0!important;min-height:0!important;width:100%!important;
 border-radius:4px!important;background:color-mix(in srgb,var(--muted) 55%,transparent)!important;
 transition:background-color .12s ease!important;
}
#verseRail #railSegments .railStep.is-past{background:color-mix(in srgb,var(--muted) 70%,transparent)!important}
#verseRail #railSegments .railStep.is-current{background:var(--ink)!important}
#railFirst,#railNumber,#railFill,#railThumb{display:none!important}
#railLast{position:absolute!important;left:8px!important;bottom:0!important;color:var(--ink)!important;font-size:12px!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;line-height:1.4!important}
/* The original outlined floating-hand and Bible mark is shared across navigation and header. */
header .brand .abHoverBibleLogo{width:29px!important;height:29px!important;flex:none;color:var(--green)}
#abTabs.abTabs button .abHoverBibleLogo{width:39px!important;height:39px!important;overflow:visible!important;stroke:currentColor!important;stroke-width:3.8!important;fill:none!important}
.abHoverBibleLogo .abHandOutline{stroke-width:4!important}
.abHoverBibleLogo .abWaveOutline{stroke-width:3.7!important}
.abHoverBibleLogo .abBookOutline{stroke-width:4.1!important}
/* Bare camera X: no shadow, glow, outline halo, or frame. */
#abCameraDock #previewToggle,#abTrackingBand #abCameraDock #previewToggle{box-shadow:none!important;text-shadow:none!important;filter:none!important;-webkit-filter:none!important;backdrop-filter:none!important;border:0!important;border-radius:0!important;background:transparent!important;outline:none!important}
#abCameraDock #previewToggle svg,#abTrackingBand #abCameraDock #previewToggle svg,.verseFrame.previewActive #previewToggle svg{filter:none!important;-webkit-filter:none!important;box-shadow:none!important;text-shadow:none!important;background:transparent!important}
#abCameraDock #previewToggle:focus-visible{outline:2px solid var(--gold)!important;outline-offset:2px!important}


/* Fixed control row below the camera action/status message.
   Gesture and Night Air controls never shift when status text changes. */
main #abTrackingBand #abTrackingStatusColumn{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:center!important;gap:4px!important;
 min-width:0!important;width:100%!important;height:100%!important;
}
main #abTrackingBand #abTrackingStatusColumn > .status{
 display:grid!important;grid-template-columns:8px minmax(0,1fr)!important;
 grid-auto-flow:row!important;gap:7px!important;align-items:center!important;
 justify-content:stretch!important;align-content:center!important;
 padding:0!important;margin:0!important;width:100%!important;min-width:0!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 flex:0 0 40px!important;overflow:hidden!important;text-align:left!important;
}
main #abTrackingBand #abTrackingStatusColumn > .status #dot{
 width:8px!important;height:8px!important;min-width:8px!important;
 align-self:center!important;justify-self:start!important;
}
main #abTrackingBand #abTrackingStatusColumn > .status #status{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 min-width:0!important;max-height:39px!important;overflow:hidden!important;
 line-height:1.48!important;font-size:11px!important;overflow-wrap:anywhere!important;
}
main #abTrackingBand #abTrackingControls{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;gap:13px!important;
 height:33px!important;min-height:33px!important;max-height:33px!important;
 flex:0 0 33px!important;width:100%!important;margin:0!important;padding:0!important;
 white-space:nowrap!important;
}
main #abTrackingBand #abTrackingControls #guideButton{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 height:32px!important;min-height:32px!important;margin:0!important;padding:4px 2px!important;
 font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;
}
main #abTrackingBand #abTrackingControls #nightToggle{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 height:32px!important;min-height:32px!important;width:32px!important;
 margin:0!important;padding:5px!important;flex:0 0 32px!important;
}
@media(max-height:680px){
 main #abTrackingBand #abTrackingStatusColumn{gap:2px!important}
 main #abTrackingBand #abTrackingStatusColumn > .status{
  height:34px!important;min-height:34px!important;max-height:34px!important;flex-basis:34px!important;
 }
 main #abTrackingBand #abTrackingStatusColumn > .status #status{
  max-height:32px!important;line-height:1.34!important;
 }
 main #abTrackingBand #abTrackingControls{
  height:29px!important;min-height:29px!important;max-height:29px!important;flex-basis:29px!important;
 }
}

/* The cross above the Air Read Bible icon levitates gently. */
@media (prefers-reduced-motion:no-preference){
 #abTabReader .abBibleCross{transform-box:fill-box;animation:abCrossLevitate 3.4s ease-in-out infinite}
 @keyframes abCrossLevitate{0%,100%{transform:translateY(.5px)}50%{transform:translateY(-3px)}}
}

/* Key verses (well-known and especially encouraging) are set in red; the reference stays as is.
 * Each red keeps at least 5.5:1 contrast on its theme's page colour. */
#verseText.keyVerse{color:#b42318!important}
body.dark #verseText.keyVerse{color:#ff7b72!important}
body.night-air #verseText.keyVerse,body.night-air .card .verse.keyVerse{color:#9f1f14!important}
