*{box-sizing:border-box}
html,body{margin:0;height:100%;font-family:system-ui,-apple-system,Roboto,sans-serif;background:#f6f5f0;color:#222}
header{position:fixed;top:0;left:0;right:0;height:44px;background:#2f5d3a;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-weight:700;z-index:1000}
#netstatus{font-size:12px;font-weight:400}
main{position:absolute;top:44px;bottom:60px;left:0;right:0;overflow:auto}
.tab{padding:10px}
nav#tabs{position:fixed;bottom:0;left:0;right:0;height:60px;display:flex;background:#fff;border-top:1px solid #ccc;z-index:1000}
nav#tabs button{flex:1;border:0;background:none;font-size:12px;color:#555}
nav#tabs button.on{color:#2f5d3a;font-weight:700;background:#e8efe9}
button,select,input{font-size:16px;padding:8px;border-radius:6px;border:1px solid #bbb;background:#fff}
button{cursor:pointer}
.row{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.row select{flex:1;min-width:0}
input[type=search]{flex:1;min-width:0;width:100%}
#guide-search{margin-bottom:10px}
.toc-h{margin:14px 0 6px;font-size:15px;text-transform:uppercase;color:#7a1c1c}
.toc-h.g{color:#2f5d3a}
.toc-h.f{color:#5a3d8a}
.toc.faith a{border-inline-start:6px solid #7a5bb0}
.toc.prepare a{border-inline-start:6px solid #2f5d3a}
.toc a{display:block;padding:11px 12px;margin-bottom:6px;background:#fff;border:1px solid #ddd;border-radius:8px;text-decoration:none;color:#222}
.toc.emergency a{border-inline-start:6px solid #b22222;font-weight:600}
.disclaimer{background:#fff3cd;border:1px solid #e0c060;padding:8px;border-radius:6px;font-size:14px}
.small{font-size:13px;color:#555}
#guide-body img{max-width:100%;height:auto;display:block;margin:8px 0;border-radius:6px}
#guide-body table{border-collapse:collapse;font-size:13px;display:block;overflow-x:auto}
#guide-body td,#guide-body th{border:1px solid #ccc;padding:4px}
#guide-body blockquote{margin:8px 0;padding:8px;background:#fff3cd;border-inline-start:4px solid #e0a000}
#guide-body{line-height:1.5}
.back{margin:6px 0}
mark{background:#ffe066}
.hit{background:#fff;border:1px solid #ddd;border-radius:8px;padding:8px;margin-bottom:6px;font-size:14px}
.hit b{display:block}
#map{height:calc(100vh - 44px - 60px - 150px);min-height:300px;border-radius:8px}
.placebar{display:flex;gap:6px;margin-bottom:8px}
.placesearch{display:flex;gap:6px;flex:1}
.maptools{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#bible-text{background:#fff;padding:10px;border-radius:8px;line-height:1.6;font-size:17px}
#bible-text sup{color:#2f5d3a;font-size:11px;margin-inline-end:2px}
.cat{background:#fff;border:1px solid #ddd;border-radius:8px;padding:8px;margin-bottom:8px}
.cat .t{font-weight:700}
.sec{background:#fff;border:1px solid #ddd;border-radius:8px;padding:8px;margin-bottom:10px}
.sec h3{margin:2px 0 6px;font-size:16px}
.sec.local{border:2px solid #b22222;background:#fff6f6}
.alert{border-inline-start:5px solid #e0a000;padding:6px 8px;margin:6px 0;background:#fff}
.alert.Extreme,.alert.Severe{border-color:#b22222}
.item{padding:6px 0;border-bottom:1px solid #eee;font-size:14px}
.item a{color:#1a4a8a;text-decoration:none}
.bigbtn{display:inline-block;background:#2f5d3a;color:#fff;padding:14px 22px;border-radius:10px;text-decoration:none;font-size:18px;border:0;margin:6px 0}
.linkbtn{background:none;border:0;color:#1a4a8a;text-decoration:underline}
#firstrun{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}
#firstrun .card{background:#fff;border-radius:12px;padding:16px;max-width:420px;width:100%}
#firstrun .placesearch{margin:8px 0}
.choices button{display:block;width:100%;text-align:start;margin:4px 0}
[hidden]{display:none!important}
/* Desktop / wide screens: left sidebar nav, centered content */
@media (min-width: 900px){
  nav#tabs{top:44px;bottom:0;right:auto;width:110px;height:auto;flex-direction:column;border-top:0;border-right:1px solid #ccc}
  nav#tabs button{flex:0 0 80px;font-size:14px}
  main{left:110px;bottom:0}
  .tab{max-width:1000px;margin:0 auto;padding:16px 24px}
  #map{height:calc(100vh - 44px - 170px)}
  #guide-toc{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
  #guide-toc .toc-h{grid-column:1/-1}
  #guide-toc .toc{display:contents}
}

/* Language picker + right-to-left layouts (Arabic, Persian, Urdu, Hebrew, Uyghur, Kurdish) */
.ui-lang{max-width:9.5em;font-size:13px;padding:2px;border-radius:6px;border:0}
header .hright{display:flex;align-items:center;gap:8px}
#firstrun .ui-lang{border:1px solid #ccc;margin-bottom:8px;max-width:100%}
#ui-note{background:#eef4ff;border:1px solid #c9d8f5;padding:6px 8px;border-radius:6px}
.mt-banner{background:#fff3cd;border:2px solid #e0a000;border-radius:8px;padding:8px 10px;margin:8px 0}
.mt-banner p{margin:4px 0}
#map,.leaflet-container{direction:ltr}
@media (min-width:900px){
  [dir=rtl] nav#tabs{left:auto;right:0;border-right:0;border-left:1px solid #ccc}
  [dir=rtl] main{left:0;right:110px}
}
.mt-fix{display:inline-block;margin:6px 4px 0}

#bible-note{background:#fbf6e9;border:1px solid #e3d6b0;padding:8px 10px;border-radius:8px;margin:6px 0;line-height:1.45}
#bible-note b{display:block;margin-bottom:3px}
.tts-bar{background:#eef4ee;border:1px solid #cfe0cf;border-radius:8px;padding:6px 8px;margin:6px 0}
.tts-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tts-l{font-size:13px;display:inline-flex;gap:4px;align-items:center}
.tts-voice{max-width:170px}
.tts-note{margin-top:4px;color:#5b4a1f}
.tts-on{background:#fff3b0;border-radius:3px;box-shadow:0 0 0 2px #fff3b0}
.cat-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}.cat-tools input{flex:1 1 180px}.cat-g{margin-bottom:6px}.cat-g summary{padding:8px;background:#efeee8;border-radius:8px;cursor:pointer}.cat-g[open] summary{margin-bottom:6px}.nt-badge{font-size:.75em;font-weight:600;background:#e6eef7;border:1px solid #b9cbe0;border-radius:6px;padding:0 5px}
/* "If help is NOT coming" care boxes (grid down, no ambulance) */
.nohelp{background:#fdecea;border:3px solid #b3261e;border-radius:10px;padding:6px 12px;margin:12px 0;scroll-margin-top:70px;color:#222}
.nohelp h3{color:#8c1d18;margin:6px 0}
.nohelp ul{padding-left:20px;margin:6px 0}.nohelp li{margin:4px 0}
.nohelp p{margin:6px 0}.nohelp em{font-size:.85em;color:#444}
.nohelp-top a{display:inline-block;font-weight:bold;padding:4px 2px}
/* Dangerous-species photos under each care box */
.species{background:#f4f7f1;border:1px solid #b9c9b0;border-radius:10px;padding:4px 12px;margin:0 0 14px}
.species img{display:block;width:100%;max-width:520px;height:auto;border-radius:8px;margin:10px 0 4px}
.species .credit{color:#555;font-size:.75em}
/* Step-by-step figures (ch 16, 17, 17a) */
.stepfig{background:#f7f6f2;border:1px solid #d8d2c2;border-radius:10px;padding:2px 12px 8px;margin:6px 0 14px;font-size:.92em}
.stepfig img{display:block;width:auto;max-width:100%;height:auto;border-radius:6px;margin:10px 0 4px;background:#fff}
.stepfig .credit{display:block;color:#555;font-size:.78em;margin-top:2px}
.stepfig p{margin:4px 0}
/* Google Play (TWA) build: playmode.js adds html.play */
.play-only{display:none}
html.play .play-only{display:revert}
html.play .no-play{display:none!important}

.choose-bible{background:#2f5d3a;color:#fff;border-color:#2f5d3a;font-weight:600;display:inline-flex;flex-direction:column;align-items:center;line-height:1.2;padding:6px 12px}
.choose-bible small{font-weight:400;font-size:12px;opacity:.9}
.bible-hint{background:#eef5ee;border:1px solid #c7dcc9;border-radius:8px;padding:8px 10px;margin:0 0 8px}
#update-bar{position:fixed;left:0;right:0;bottom:64px;display:flex;justify-content:center;z-index:50;padding:0 10px}
#update-bar button{background:#2f5d3a;color:#fff;border:0;border-radius:20px;padding:10px 16px;box-shadow:0 2px 8px rgba(0,0,0,.3);font-weight:600}
#update-bar[hidden]{display:none}

#study-notes{margin-top:10px}#study-notes h3{margin:8px 0}.sn{background:#fff;border:1px solid #e3e1d8;border-radius:8px;padding:8px 10px;margin:6px 0;line-height:1.5}.sn>b.vn{color:#2f5d3a;margin-inline-end:6px}.sn p{margin:4px 0}
a[data-r],a[data-d],.sw{color:#1d5a8c;cursor:pointer;text-decoration:underline dotted}.sw{text-decoration:none;border-bottom:1px dotted #8aa9c6}
#bible-text .hl{background:#fff3b0}
#strongs-pop{position:fixed;left:8px;right:8px;bottom:70px;max-height:45vh;overflow:auto;background:#fff;border:1px solid #bbb;border-radius:10px;box-shadow:0 3px 12px rgba(0,0,0,.3);padding:10px 12px;z-index:60}#strongs-pop[hidden]{display:none}#strongs-pop .x{float:right}
.shelf{background:#fff;border:1px solid #e3e1d8;border-radius:8px;padding:8px 10px;margin:6px 0}.shelf .t{font-weight:600}.shelf button{margin:4px 6px 0 0}
#reader-body{background:#fff;padding:10px;border-radius:8px;line-height:1.6;font-size:17px}#reader-body img{max-width:100%;height:auto;display:block;margin:10px auto;border-radius:4px}#reader-body .cap{text-align:center;font-style:italic;font-size:14px;color:#444}
.dict-hit{display:block;padding:6px 4px;border-bottom:1px solid #eee}
.kidslinks{padding-left:18px}.kidslinks li{margin:8px 0}.tag{font-size:11px;font-weight:700;border-radius:6px;padding:0 5px;border:1px solid}.tag.free{color:#1e6b2e;border-color:#9cc9a6;background:#eef7ef}.tag.paid{color:#8a5a00;border-color:#e2c27f;background:#fdf6e6}

/* Kids Learning card (Guide) + quiet support line */
.kids-card{background:#fff;border:1px solid #ddd;border-inline-start:6px solid #d08a1e;border-radius:8px;padding:4px 12px 8px;margin:16px 0 10px}
.toc-h.k{color:#9a5b00;margin-top:10px}
.support{text-align:center;font-size:13px;color:#888;margin:28px 0 8px}
.support a{color:#888}
/* Kids Bible Stories picture reader */
.obs-h{margin:8px 0}
.obs-sel select{font-size:17px;padding:8px;max-width:100%;flex:1}
.obs-sel label{display:flex;gap:6px;align-items:center;flex:1;min-width:0}
.obs-sel select{min-width:0;width:100%}
#obs-frame{background:#fff;border:1px solid #ddd;border-radius:14px;padding:10px;margin:8px 0;touch-action:pan-y}
.obs-pic{aspect-ratio:16/9;background:#eef2ea;border-radius:10px;overflow:hidden}
.obs-pic img{width:100%;height:100%;object-fit:cover;display:block}
#obs-noimg{padding:14px;background:#f6f3e8;border-radius:10px;text-align:center}
.obs-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.obs-nav button{min-width:72px;min-height:52px;font-size:24px;border-radius:12px;background:#2f5d3a;color:#fff;border:0}
.obs-nav button:disabled{opacity:.35}
#obs-pos{font-weight:700;font-size:18px;color:#555}
#obs-text p{font-size:20px;line-height:1.55;margin:.4em 0}
#obs-ref{font-style:italic;color:#555}
#obs-pack{margin:10px 0}
#obs-credit{color:#555;border-top:1px solid #ddd;margin-top:12px}

/* ===== 2026-10-05: Today card, Ready Kit, Settings, What's new ===== */
#settings-btn{background:none;border:0;color:#fff;font-size:20px;padding:2px 6px}
.today{background:#fff;border:1px solid #ddd;border-inline-start:6px solid #5a3d8a;border-radius:10px;padding:6px 12px 8px;margin:0 0 10px}
.today h3{margin:6px 0;color:#5a3d8a;font-size:15px;text-transform:uppercase}
.today-i{border-top:1px solid #eee;padding:6px 0;position:relative}.today-i p{margin:4px 0;line-height:1.45}
.mini{font-size:13px;padding:3px 10px;border-radius:14px}
.kit-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.kit-grid button{text-align:start;padding:12px 10px;font-weight:600}
.kit-grid .kit-sos{background:#b22222;color:#fff;border-color:#b22222}
#kit-view h2{margin:8px 0}.kit-list li{margin:8px 0;line-height:1.45}
.call{display:grid;grid-template-columns:44px 1fr;gap:0 8px;align-items:center;background:#fff;border:2px solid #b22222;border-radius:12px;padding:10px;margin:8px 0;color:#222;text-decoration:none}
.call span{grid-row:span 3;font-size:30px}.call big{font-size:24px;font-weight:800;color:#b22222}.call small{color:#555}
.loc-tip{background:#eef5ee;border:1px solid #c7dcc9;border-radius:10px;padding:8px 12px;margin-top:10px}
.ck{background:#fff;border:1px solid #ddd;border-radius:10px;padding:6px 10px;margin:8px 0}.ck label{display:flex;gap:8px;align-items:center;padding:7px 0;border-top:1px solid #f0f0f0}.ck input{width:22px;height:22px}
.pf{display:block;margin:8px 0}.pf input,.pf textarea{display:block;width:100%;font:inherit;font-size:16px;padding:8px;border:1px solid #bbb;border-radius:6px;margin-top:3px}
.bigrow{display:block;width:100%;text-align:start;padding:14px;margin:6px 0;font-weight:600}
.drill{background:#fff;border:1px solid #ddd;border-radius:10px;padding:10px;margin:8px 0}.drill summary{cursor:pointer;font-weight:600}.drill p{background:#eef5ee;padding:8px;border-radius:8px;line-height:1.45}
.pref{display:flex;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e5e5e5}.pref input{width:22px;height:22px}
.kit-hits a{margin-inline-end:6px}
#whatsnew{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:2100;display:flex;align-items:center;justify-content:center;padding:16px}
#whatsnew>div{background:#fff;border-radius:12px;padding:14px 16px;max-width:420px}#whatsnew li{margin:6px 0}#whatsnew button{background:#2f5d3a;color:#fff;border:0;padding:10px 24px}
/* Settings: text size, night, contrast, reduce motion (classes set by playmode.js) */
html.rr-big main,html.rr-big #whatsnew{zoom:1.18}html.rr-xbig main,html.rr-xbig #whatsnew{zoom:1.38}
html.rr-calm *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.rr-night body,html.rr-night main{background:#111511;color:#e4e4e0}
html.rr-night :is(.toc a,.hit,.cat,.sec,#bible-text,#reader-body,.kids-card,.today,.alert,#obs-frame,.shelf,.sn,.ck,.drill,.call,button,select,input,textarea,nav#tabs,#firstrun .card,#whatsnew>div,.cat-g summary,.loc-tip,.drill p,#study-notes,.tts-bar){background:#1c211c;color:#e4e4e0;border-color:#3a443a}
html.rr-night :is(.small,.call small,.species .credit){color:#aab3aa}html.rr-night a{color:#8fc1ff}html.rr-night .disclaimer{background:#3a3218;color:#f3e7c0;border-color:#6b5a20}
html.rr-night header{background:#0c100c}html.rr-night .kit-grid .kit-sos{background:#8b1a1a;color:#fff}html.rr-night .call big{color:#ff8a80}
html.rr-contrast body,html.rr-contrast main{background:#fff;color:#000}html.rr-contrast :is(.small,.support,.support a,.call small){color:#000!important}
html.rr-contrast :is(.toc a,.hit,.cat,.today,.ck,.drill,.call,button,select,input){border:2px solid #000!important}html.rr-contrast a{color:#00e;text-decoration:underline}
html.rr-contrast.rr-night body,html.rr-contrast.rr-night main{background:#000;color:#fff}html.rr-contrast.rr-night :is(.small,.support a){color:#fff!important}html.rr-contrast.rr-night a{color:#9cf}
/* Print one Ready Kit page only */
@media print{body.print-kit header,body.print-kit nav#tabs,body.print-kit #guide-list,body.print-kit #guide-chapter,body.print-kit .tab:not(#tab-guide),body.print-kit #update-bar,body.print-kit .noprint{display:none!important}
 body.print-kit main{position:static;overflow:visible}body.print-kit #kit-view{display:block!important}body.print-kit .ck{break-inside:avoid}}
