:root{
  --noteink:#1E3A8A; --warnink:#8A6D1F; --warnbg:#FFF4DA; --stripe:#FAFBFC; --pill:#F1F2F6; --pillink:#475467;
  --capbg:#FFF5F5; --offbg:#F1F2F6; --offink:#8A93A2;

  /* ---- design tokens ----
     Spacing, radius and motion as named steps rather than numbers scattered
     through the file, so the whole interface can be retuned in one place. */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --r1:8px;  --r2:12px; --r3:16px; --r4:22px;
  --t-fast:.12s; --t-mid:.2s; --ease:cubic-bezier(.2,.7,.3,1);
  --tap:44px;                 /* the smallest thing worth tapping */

  /* Oceanic blue on warm paper. Pure white reads clinical on a phone and
     pure black reads as a void, so the neutrals are tinted: a warm off-white
     ground, a near-black with a trace of blue in it, and an accent deepened
     from the old bright #377DFF so it carries authority rather than urgency.
     Brass picks up the hilt in the app icon and marks the small labels. */
  --blue:#1F5F96; --blue2:#3E86BE; --blue-l:#E4EDF5; --blue-d:#164A78;
  --brass:#8A6228; --brass-l:#F1E8D8;
  --bg:#F5F2EC; --card:#FFFDF9; --ink:#15181D; --ink2:#6E6A63;
  --line:#E4DFD4; --ok:#4E8A63; --amber:#D9A93F; --rose:#C06A78;
  --r:14px; --rs:10px;
  --disp:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  /* Nothing is downloaded. This stack reaches for the faces a Cambridge Bible
     would actually be set in, in order of preference: Iowan Old Style ships on
     iOS and macOS and was drawn for exactly this kind of text, Cambria is on
     every Windows machine, Noto Serif covers Android. */
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Palatino LT STD",
          Charter,"Bitstream Charter",Cambria,"Libre Baskerville",Baskerville,
          "Noto Serif","Times New Roman",Georgia,"Times",serif;
  --paper:#F6F1E4; --ink-dark:#241F17; --ink-mid:#6B5F4C;
  --text:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  /* shadows warmed to match the paper rather than sitting grey on it */
  --shadow:0 1px 2px rgba(40,32,20,.05),0 1px 3px rgba(40,32,20,.06);
  --shadow2:0 4px 16px rgba(40,32,20,.09);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:#E8E3DA}
body{font-family:var(--text);color:var(--ink);font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0}
input{font:inherit}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- device shell ---------- */
#phone{max-width:430px;margin:0 auto;background:var(--bg);
  height:100vh;height:100dvh;overflow:hidden;
  position:relative;display:flex;flex-direction:column;
  box-shadow:0 0 0 1px rgba(16,24,40,.06),0 18px 50px rgba(16,24,40,.14)}
@media(min-width:900px){#phone{min-height:100vh}}

/* ---------- top bar ---------- */
.top{position:sticky;top:0;z-index:30;background:var(--card);
  border-bottom:1px solid var(--line);padding:12px 16px calc(12px);
  padding-top:calc(12px + env(safe-area-inset-top));
  display:flex;align-items:center;gap:12px;min-height:56px}
.top h1{font-family:var(--disp);font-size:19px;font-weight:700;margin:0;letter-spacing:-.02em;flex:1}
.top .ver{font-family:var(--disp);font-size:15px;font-weight:600;flex:1;text-align:center}
.icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--ink2);flex:none}
.icon:hover{background:var(--bg);color:var(--blue)}
.icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}

/* ---------- scroll body ---------- */
#view{flex:1;overflow-y:auto;padding:16px 16px 96px;-webkit-overflow-scrolling:touch}

/* ---------- bottom nav ---------- */
#nav{position:sticky;bottom:0;z-index:30;background:var(--card);
  border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);
  padding-bottom:env(safe-area-inset-bottom)}
#nav button{padding:9px 0 8px;display:flex;flex-direction:column;align-items:center;gap:3px;
  color:var(--ink2);font-size:12px;font-weight:500;letter-spacing:-.01em}
#nav button svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
#nav button[aria-selected="true"]{color:var(--blue)}

/* ---------- generic ---------- */
.h2{font-family:var(--disp);font-size:17px;font-weight:700;margin:22px 0 10px;letter-spacing:-.01em}
.h2:first-child{margin-top:2px}
.sub{color:var(--ink2);font-size:13px;margin:-6px 0 12px}
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:14px;margin-bottom:10px}
.row{display:flex;align-items:center;gap:12px}
.spacer{flex:1;min-width:0}

.search{display:flex;align-items:center;gap:9px;background:var(--card);border:1px solid var(--line);
  border-radius:12px;padding:11px 13px;box-shadow:var(--shadow);margin-bottom:14px}
.search svg{width:17px;height:17px;stroke:var(--ink2);fill:none;stroke-width:2}
.search input{border:none;outline:none;flex:1;font-size:15px;background:none;color:var(--ink)}
.search input::placeholder{color:#9AA3B2}

.btn{background:var(--blue);color:#fff;border-radius:999px;padding:13px 20px;font-weight:600;
  font-size:14px;text-align:center;display:block;width:100%;letter-spacing:.01em}
.btn:hover{background:var(--blue-d)}
.btn.sec{background:var(--blue-l);color:var(--blue)}
.btn.gh{background:none;color:var(--blue);border:1px solid var(--line)}

.seg{display:flex;background:var(--blue-l);border-radius:999px;padding:3px;margin-bottom:16px}
.seg button{flex:1;padding:9px 6px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--blue)}
.seg button[aria-selected="true"]{background:var(--blue);color:#fff;box-shadow:var(--shadow)}

.chips{display:flex;gap:7px;overflow-x:auto;padding-bottom:9px;margin-bottom:4px;
  scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;padding:7px 13px;border-radius:999px;font-size:12.5px;font-weight:600;
  background:var(--blue-l);color:var(--blue)}
.chip[aria-selected="true"]{background:var(--blue);color:#fff}

/* ---------- hero verse ---------- */
.hero{border-radius:18px;padding:20px 18px 18px;color:#fff;margin-bottom:14px;position:relative;
  overflow:hidden;background:linear-gradient(150deg,#141C2C 0%,#1F4463 45%,#1F5F96 130%)}
.hero::after{content:"";position:absolute;inset:0;opacity:.5;
  background:radial-gradient(120% 80% at 80% -10%,rgba(255,255,255,.28),transparent 60%)}
.hero .tag{position:relative;font-size:12.5px;font-weight:700;letter-spacing:.1em;
  background:rgba(255,255,255,.2);padding:4px 9px;border-radius:6px;display:inline-block}
.hero .v{display:block;position:relative;font-family:var(--disp);font-size:19px;line-height:1.42;
  font-weight:600;margin-top:12px;letter-spacing:-.01em}
.hero .r{display:block;position:relative;font-size:12.5px;opacity:.85;margin-top:9px;font-weight:500}

/* ---------- list rows ---------- */
.item{display:flex;align-items:flex-start;gap:12px;background:var(--card);border-radius:var(--r);
  padding:13px;margin-bottom:8px;box-shadow:var(--shadow);width:100%;text-align:left}
.item:hover{box-shadow:var(--shadow2)}
.item .ic{width:34px;height:34px;border-radius:9px;background:var(--blue-l);display:grid;
  place-items:center;flex:none;color:var(--blue)}
.item .ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.item .tt{display:block;font-weight:600;font-size:14.5px;letter-spacing:-.01em}
.item .dd{display:block;color:var(--ink2);font-size:12.5px;line-height:1.45;margin-top:3px}
.item .go{color:#C3C9D4;flex:none;align-self:center}
.item .go svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}

/* ---------- book grid ---------- */
.bgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bk{background:var(--card);border-radius:var(--r);padding:12px;box-shadow:var(--shadow);
  text-align:left;position:relative;overflow:hidden}
.bk::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--bc,var(--blue))}
.bk:hover{box-shadow:var(--shadow2)}
.bk .n{display:block;font-family:var(--disp);font-weight:700;font-size:14.5px;padding-left:7px;letter-spacing:-.01em}
.bk .m{display:block;color:var(--ink2);font-size:13px;margin-top:3px;padding-left:7px}

/* ---------- era band ---------- */
.era{background:var(--card);border-radius:var(--r);margin-bottom:8px;box-shadow:var(--shadow);
  overflow:hidden;width:100%;text-align:left;display:block}
.era .hd{display:flex;gap:12px;padding:13px;align-items:stretch}
.era .swatch{width:5px;border-radius:3px;flex:none}
.era .nm{display:block;font-family:var(--disp);font-weight:700;font-size:15px;letter-spacing:-.01em}
.era .sp{display:block;color:var(--ink2);font-size:13px;margin-top:2px;font-weight:500}
.era .cp{display:block;font-size:12.5px;color:#475467;margin-top:7px;line-height:1.45}
.era .cnt{display:block;font-size:12.5px;color:var(--blue);font-weight:600;margin-top:7px}
.era .body{padding:0 13px 14px 30px;border-top:1px solid var(--line);margin-top:2px;padding-top:12px}

.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:13px}
.kv dt{color:var(--ink2);font-size:13px;font-weight:600;padding-top:2px}
.kv dd{margin:0}
.pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pills span{font-size:13px;background:var(--pill);color:var(--pillink);padding:4px 9px;border-radius:999px}

/* ---------- book page ---------- */
.bhead{margin-bottom:14px}
.bhead h2{font-family:var(--disp);font-size:27px;font-weight:800;margin:0;letter-spacing:-.025em}
.bhead .full{color:var(--ink2);font-size:12.5px;margin-top:4px}
.tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto;
  scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{padding:9px 0 10px;font-size:13.5px;font-weight:600;color:var(--ink2);
  border-bottom:2px solid transparent;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--blue);border-bottom-color:var(--blue)}
.lab{font-size:12.5px;font-weight:700;color:var(--brass);letter-spacing:.08em;
  text-transform:uppercase;margin-bottom:8px}
.tick{list-style:none;margin:0;padding:0}
.tick li{position:relative;padding-left:15px;margin-bottom:8px;font-size:13.5px;line-height:1.5;color:#374151}
.tick li:last-child{margin-bottom:0}
.tick li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;
  background:var(--blue)}
.tick.law li::before{background:var(--ok)}
.cap{background:var(--capbg);border-left:3px solid var(--rose);border-radius:0 var(--rs) var(--rs) 0;
  padding:12px 13px;margin-bottom:10px}
.cap .lab{color:#B4405A}
.cap p{margin:0;font-size:13.5px;color:#7A2E42;line-height:1.5}

/* ---------- timeline ---------- */
.tl{position:relative;padding-left:22px}
.tl::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl-i{position:relative;margin-bottom:16px}
.tl-i:last-child{margin-bottom:0}
.tl-i::before{content:"";position:absolute;left:-21px;top:5px;width:12px;height:12px;border-radius:50%;
  background:var(--card);border:2.5px solid var(--blue)}
.tl-r{font-size:12.5px;font-weight:700;color:var(--blue);letter-spacing:.04em;text-transform:uppercase}
.tl-t{font-family:var(--disp);font-weight:700;font-size:15px;margin-top:2px;letter-spacing:-.01em}
.tl-n{color:var(--ink2);font-size:13px;margin-top:3px;line-height:1.45}

/* ---------- chapters ---------- */
.chg{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px;margin-bottom:14px}
.chb{background:var(--card);border-radius:var(--rs);padding:10px 0;text-align:center;font-size:13px;
  font-weight:600;color:var(--ink2);box-shadow:var(--shadow)}
.chb.rich{color:var(--ink)}
.chb.read{background:var(--brass-l);color:var(--brass)}
.chb.read::before{content:"\2713";display:block;font-size:12px;line-height:1;margin-bottom:1px}
.chb.rich::after{content:"";display:block;width:3px;height:3px;border-radius:50%;opacity:.5;
  background:var(--blue);margin:3px auto 0}
.chb[aria-selected="true"]{background:var(--blue);color:#fff}
.chb[aria-selected="true"]::after{background:#fff}
.chd .num{font-family:var(--disp);font-size:30px;font-weight:800;color:var(--blue);line-height:1}
.chd .mv{font-size:12.5px;font-weight:700;color:var(--ink2);letter-spacing:.05em;
  text-transform:uppercase;margin-top:7px}
.chd .tx{margin-top:9px;font-size:14.5px;line-height:1.6;color:#374151}

/* ---------- facts ---------- */
.fact{background:var(--card);border-radius:var(--r);padding:14px;margin-bottom:9px;
  box-shadow:var(--shadow);border-left:4px solid var(--amber)}
.fact .k{font-size:12.5px;font-weight:800;color:#9A7B0A;letter-spacing:.1em;text-transform:uppercase}
.fact h4{font-family:var(--disp);font-size:15px;font-weight:700;margin:7px 0;letter-spacing:-.01em}
.fact p{margin:0;font-size:13.5px;color:#475467;line-height:1.55}
.fact .c{font-size:13px;color:var(--ink2);margin-top:9px;font-weight:600}

/* ---------- reader ---------- */
.rd{font-size:var(--rdsize,17px);line-height:1.70;color:#22252B}
.rd .v sup{font-size:.68em}
.rd .v{display:block;margin-bottom:10px;padding-left:26px;position:relative;
  border-radius:6px;transition:background .12s}
.rd .v sup{position:absolute;left:0;top:3px;font-size:12.5px;font-weight:700;color:var(--blue);
  font-feature-settings:"tnum"}
.rd .v.hl{background:#FEF6D0}
.rdbar{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.rdbar .pos{flex:1;text-align:center;font-size:13px;font-weight:600;color:var(--ink2)}
.rdbar button{width:38px;height:38px;border-radius:10px;background:var(--card);box-shadow:var(--shadow);
  display:grid;place-items:center;color:var(--blue)}
.rdbar button:disabled{color:#C3C9D4}
.rdbar button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
.chnote{background:var(--blue-l);border-radius:var(--rs);padding:12px 13px;margin-bottom:16px;
  font-size:13.5px;line-height:1.55;color:var(--noteink)}

/* ---------- drawer ---------- */
.scrim{position:fixed;inset:0;background:rgba(16,24,40,.42);z-index:60;opacity:0;pointer-events:none;
  transition:opacity .18s}
.scrim.on{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;left:0;width:min(320px,84vw);background:var(--card);z-index:61;
  transform:translateX(-100%);transition:transform .2s ease;display:flex;flex-direction:column}
.drawer.on{transform:none}
.drawer .dh{padding:calc(16px + env(safe-area-inset-top)) 16px 14px;border-bottom:1px solid var(--line);
  font-family:var(--disp);font-weight:700;font-size:15px}
.drawer .dl{overflow-y:auto;flex:1;padding-bottom:24px}
.drawer .dl button{display:block;width:100%;text-align:left;padding:11px 16px;font-size:14px;
  border-bottom:1px solid var(--line)}
.drawer .dl button:nth-child(even){background:var(--stripe)}
.drawer .dl button:hover{background:var(--blue-l);color:var(--blue)}
.drawer .dl .sec{padding:12px 16px 6px;font-size:12.5px;font-weight:800;color:var(--ink2);
  letter-spacing:.08em;text-transform:uppercase;background:var(--bg)}
.drawer .dl button{display:flex;align-items:center;gap:8px}
.drawer .dl .dn{margin-left:auto;font-size:12.5px;color:#A8B0BC;font-weight:600}
.drawer .dback{padding:0!important;border:none!important;background:none!important;
  font-size:12.5px;font-weight:800;color:var(--blue);letter-spacing:.06em;text-transform:uppercase}
.drawer .dtitle{padding:12px 16px 4px;font-family:var(--disp);font-size:17px;font-weight:700;
  display:flex;align-items:baseline;gap:8px}
.drawer .dtitle span{font-family:var(--text);font-size:13px;font-weight:500;color:var(--ink2)}
.dchg{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:10px 16px 20px}
.dch{padding:10px 0;border-radius:9px;background:var(--bg);font-size:13px;font-weight:600;
  color:var(--ink2);border:none!important}
.dch:hover{background:var(--blue);color:#fff}
.dch.rich{color:var(--ink)}
.dch.rich::after{content:"";display:block;width:4px;height:4px;border-radius:50%;
  background:var(--blue);margin:3px auto 0}
.dch.rich:hover::after{background:#fff}

/* ---------- search results ---------- */
.res{display:block;width:100%;text-align:left;background:var(--card);border-radius:var(--rs);
  padding:12px 13px;margin-bottom:7px;box-shadow:var(--shadow)}
.res .r{display:block;font-size:12.5px;font-weight:700;color:var(--blue);letter-spacing:.04em;text-transform:uppercase}
.res .t{display:block;font-size:13.5px;color:#374151;margin-top:4px;line-height:1.5}
.res mark{background:#FEF08A;color:inherit;padding:0 2px;border-radius:3px}
.empty{text-align:center;color:var(--ink2);font-size:13.5px;padding:34px 10px}

/* ---------- profile ---------- */
.prof{text-align:center;padding:12px 0 18px}
.prof .av{width:76px;height:76px;border-radius:50%;margin:0 auto 11px;
  background:linear-gradient(150deg,#377DFF,#5CA6FF);display:grid;place-items:center;
  color:#fff;font-family:var(--disp);font-size:24px;font-weight:800;letter-spacing:.02em}
.prof .nm{display:block;font-family:var(--disp);font-weight:700;font-size:17px}
.prof .em{display:block;color:var(--ink2);font-size:12.5px;margin-top:2px}
.stat{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.stat div{background:var(--card);border-radius:var(--rs);padding:12px 6px;text-align:center;
  box-shadow:var(--shadow)}
.stat b{display:block;font-family:var(--disp);font-size:19px;font-weight:800;color:var(--blue)}
.stat span{display:block;font-size:12.5px;color:var(--ink2)}
.about p{font-size:13.5px;color:#475467;line-height:1.6;margin:0 0 10px}

/* ---------- study sheets ---------- */
.sq{background:var(--card);border-radius:var(--r);padding:13px;margin-bottom:9px;
  box-shadow:var(--shadow)}
.sqh{display:flex;gap:9px;align-items:baseline}
.sqn{font-family:var(--disp);font-size:12px;font-weight:800;color:var(--blue);flex:none;
  min-width:20px}
.sqq{font-size:14.5px;font-weight:600;line-height:1.4;letter-spacing:-.01em}
.reflist{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ref{font-size:12px;font-weight:600;background:var(--blue-l);color:var(--blue);
  padding:6px 10px;border-radius:999px;white-space:nowrap}
.ref.off{background:var(--offbg);color:var(--offink);font-weight:500}
.ref.approx{background:var(--warnbg);color:var(--warnink)}
button.ref.approx:hover{background:#E0A93C;color:#fff}
button.ref:hover{background:var(--blue);color:#fff}
.snote{font-size:13.5px;color:#374151;margin-top:9px;line-height:1.5}
.sqf{display:flex;gap:14px;margin-top:11px}
.sqf button{font-size:12px;font-weight:600;color:var(--blue)}
.sqf button.del{color:var(--rose)}
.sbox2{width:100%;border:1px solid var(--line);border-radius:var(--rs);padding:12px;
  font-family:var(--text);font-size:15px;color:var(--ink);outline:none;margin-bottom:10px;
  background:var(--card)}
.sbox2:focus{border-color:var(--blue)}
.back{display:inline-block;font-size:12.5px;font-weight:600;color:var(--ink2);margin-bottom:12px}
.back:hover{color:var(--blue)}
.rd .v.jump{box-shadow:0 0 0 2px var(--blue);border-radius:8px}


/* ---------- library: dark shelf room ---------- */
.libwrap{position:relative;margin:-16px -16px -96px;padding:18px 16px 110px;
  min-height:calc(100vh - 56px);background:#0A1220}
/* the photograph carries the library; a dark veil over it keeps the covers
   and the type readable against the brighter patches of sky */
.libwrap::before{content:"";position:absolute;inset:0;z-index:0;
  background-image:url(library-bg.jpg);background-size:cover;background-position:50% 30%;
  background-attachment:scroll}
.libwrap::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,10,14,.34) 0%,rgba(8,10,14,.58) 55%,rgba(8,10,14,.86) 100%)}
.libwrap > *{position:relative;z-index:1}
.libhead{position:relative;margin-bottom:14px}
.libhead h2{font-family:var(--disp);font-size:26px;font-weight:800;color:#fff;margin:0;
  letter-spacing:-.02em}
.libhead p{margin:5px 0 0;font-size:13px;color:#93A4C2;line-height:1.5;max-width:34ch}
.cats{position:relative;margin-bottom:14px}
.cats .chip{background:rgba(255,255,255,.07);color:#B8C6DE;font-weight:600;
  border:1px solid rgba(255,255,255,.06)}
.cats .chip.on{background:var(--blue);color:#fff;border-color:transparent}

@media(max-width:360px){.covers{grid-template-columns:repeat(2,1fr)}}

.cover:hover,.cover:focus-visible{transform:translateY(-3px);
  box-shadow:0 4px 8px rgba(0,0,0,.4),0 16px 30px rgba(0,0,0,.35)}






/* the Apocrypha: red board, black lettering */
.cover.isapoc{background:linear-gradient(160deg,#9B1622,#4E0A11)}
.cover.isapoc .art svg{color:rgba(0,0,0,.55)}
.cover.isapoc .ct{color:#140305;text-shadow:0 1px 0 rgba(255,255,255,.18)}
.cover.isapoc .cn{color:rgba(0,0,0,.55)}
.cover.isapoc::after{border-color:rgba(0,0,0,.35)}
.apocrow{position:relative;display:flex;gap:12px;width:100%;text-align:left;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);
  border-radius:12px;padding:12px;margin-bottom:9px}
.apocrow:hover{background:rgba(255,255,255,.09)}
.ar{width:40px;height:56px;border-radius:3px 6px 6px 3px;flex:none;display:grid;place-items:center;
  background:linear-gradient(160deg,#9B1622,#4E0A11)}
.ar svg{width:60%;color:rgba(0,0,0,.55)}
.aw{flex:1;min-width:0}
.an{display:block;font-family:var(--disp);font-weight:700;font-size:15px;color:#fff}
.am{display:block;font-size:12.5px;color:#8FA6CC;margin-top:2px;letter-spacing:.05em;text-transform:uppercase}
.as{display:block;font-size:12.5px;color:#B8C6DE;line-height:1.5;margin-top:6px}

/* ---------- floating nav ---------- */
#nav{position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(12px + env(safe-area-inset-bottom));
  width:min(398px,calc(100% - 28px));
  background:rgba(255,253,249,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(40,32,20,.08);border-radius:999px;
  box-shadow:0 8px 30px rgba(40,32,20,.16),0 2px 6px rgba(40,32,20,.09);
  display:grid;grid-template-columns:repeat(5,1fr);padding:7px 8px;z-index:40;overflow:visible}
#nav button{padding:6px 0 5px;display:flex;flex-direction:column;align-items:center;gap:3px;
  color:#8C877E;font-size:12px;font-weight:600;letter-spacing:-.01em;border-radius:999px}
#nav button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
#nav button[aria-selected="true"]{color:var(--blue)}
#nav button.mid{position:relative}
#nav button.mid .bub{width:50px;height:50px;border-radius:50%;margin-top:-26px;margin-bottom:1px;
  background:linear-gradient(150deg,#2C74AE,#164A78);color:#fff;display:grid;place-items:center;
  box-shadow:0 6px 16px rgba(22,74,120,.40),0 0 0 5px rgba(255,253,249,.94)}
#nav button.mid .bub svg{width:23px;height:23px;stroke-width:1.9}
#nav button.mid[aria-selected="true"] .bub{box-shadow:0 6px 18px rgba(22,74,120,.55),0 0 0 5px rgba(255,253,249,.94)}
#view{padding-bottom:116px}

/* ---------- read aloud ---------- */
.sbar{display:flex;align-items:center;gap:11px;background:var(--card);border-radius:var(--r);
  padding:10px 12px;box-shadow:var(--shadow);margin-bottom:10px}
.sbar .play{width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;
  display:grid;place-items:center;flex:none;box-shadow:0 3px 10px rgba(55,125,255,.35)}
.sbar .play svg{width:19px;height:19px;stroke:currentColor;fill:currentColor;stroke-width:1.5;
  stroke-linejoin:round}
.sbar .play svg path[d^="M8 5"]{fill:none;stroke-width:2.4;stroke-linecap:round}
.sinfo{flex:1;min-width:0}
.sinfo .st1{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em}
.sinfo .st2{display:block;font-size:12px;color:var(--ink2);margin-top:1px}
.sbar .sbtn{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  color:var(--ink2);flex:none}
.sbar .sbtn:hover{background:var(--bg);color:var(--blue)}
.sbar .sbtn svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round}
.voicerow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  background:var(--card);border-radius:var(--r);padding:11px 13px;margin-bottom:10px;
  box-shadow:var(--shadow)}
.voicerow svg{width:19px;height:19px;stroke:var(--ink2);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;flex:none}
.voicerow.neural svg{stroke:var(--blue)}
.vlab{flex:1;min-width:0}
.vk{display:block;font-size:12.5px;font-weight:700;color:var(--ink2);letter-spacing:.07em;
  text-transform:uppercase}
.vv{display:block;font-size:14px;font-weight:600;margin-top:2px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.vch{font-size:12.5px;font-weight:600;color:var(--blue);flex:none}
.voicerow:hover .vch{text-decoration:underline}
.sizebar{display:flex;align-items:center;gap:6px;background:var(--card);border-radius:var(--r);
  padding:9px 12px;margin-bottom:10px;box-shadow:var(--shadow)}
.sizebar .lab{flex:1;margin:0}
.sizebar button{min-width:34px;padding:6px 8px;border-radius:8px;background:var(--bg);
  font-size:13px;font-weight:700;color:var(--ink2)}
.sizebar button[aria-selected="true"]{background:var(--blue);color:#fff}
.sopts{background:var(--card);border-radius:var(--r);padding:13px;box-shadow:var(--shadow);
  margin-bottom:10px}
.rates{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:11px}
.rates button{flex:1;min-width:52px;padding:8px 0;border-radius:9px;background:var(--bg);
  font-size:12.5px;font-weight:600;color:var(--ink2)}
.rates button[aria-selected="true"]{background:var(--blue);color:#fff}
.fol{display:block;width:100%;text-align:left;font-size:13px;color:var(--ink2);
  padding:8px 10px;border-radius:9px;background:var(--bg);font-weight:500}
.fol[aria-selected="true"]{color:var(--blue);font-weight:600}
.nospeak{background:#FFF8E6;border-radius:var(--rs);padding:11px 13px;font-size:12.5px;
  color:var(--warnink);margin-bottom:10px;line-height:1.5}
.vload{display:flex;align-items:center;gap:9px;background:var(--blue-l);border-radius:var(--rs);
  padding:11px 13px;font-size:12.5px;color:var(--noteink);margin-bottom:10px;font-weight:500}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(55,125,255,.3);
  border-top-color:var(--blue);animation:sp .8s linear infinite;flex:none}
@keyframes sp{to{transform:rotate(360deg)}}
.sbar .sbtn.on{background:var(--blue-l);color:var(--blue)}
.vpick .vnote{font-size:12.5px;color:var(--ink2);line-height:1.5;margin:0 0 11px}
.vgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.vopt{text-align:left;background:var(--bg);border-radius:9px;padding:9px 11px}
.vopt .vn{display:block;font-size:13px;font-weight:600}
.vopt .vd{display:block;font-size:12.5px;color:var(--ink2);margin-top:1px}
.vopt[aria-selected="true"]{background:var(--blue);color:#fff}
.vopt[aria-selected="true"] .vd{color:rgba(255,255,255,.8)}
.rd .v.speaking{box-shadow:inset 3px 0 0 var(--blue);background:#EAF0F6}
.rd .v.speaking sup{color:var(--blue-d)}

/* ---------- highlight colours ---------- */
.rd .v{cursor:pointer;padding-right:6px;margin-left:-6px;padding-left:32px}
.rd .v.sel{box-shadow:0 0 0 2px var(--blue)}
.rd .v .nb{display:inline-block;vertical-align:middle;margin-left:6px;color:var(--blue)}
.rd .v .nb svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}

/* ---------- bottom sheet ---------- */
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--card);
  border-radius:20px 20px 0 0;transform:translateY(102%);transition:transform .22s ease;
  padding:8px 16px calc(20px + env(safe-area-inset-bottom));max-width:430px;margin:0 auto;
  box-shadow:0 -8px 30px rgba(16,24,40,.16);max-height:82vh;overflow-y:auto}
.sheet.on{transform:none}
.sheet .grab{width:44px;height:5px;border-radius:3px;background:#D5CFC2;
  margin:6px auto 14px}
/* a wider target than the bar itself, so the gesture is easy to start */
.sheet .grabzone{display:block;padding:4px 0 2px;margin:-4px 0 0;cursor:grab;
  touch-action:none}
.sheet{touch-action:pan-y}
.sheet .ref{display:block;font-size:13px;font-weight:700;color:var(--blue);letter-spacing:.05em;
  text-transform:uppercase}
.sheet .vt{display:block;font-size:14.5px;line-height:1.55;color:#374151;margin:7px 0 15px;
  max-height:24vh;overflow-y:auto}
.sws{display:flex;gap:10px;margin-bottom:15px}
.sw{width:100%;aspect-ratio:1;border-radius:12px;position:relative;border:2px solid transparent;
  background:var(--bg);display:grid;place-items:center}
.sw[aria-selected="true"]{border-color:var(--ink)}
.swt{font-family:var(--serif);font-size:17px;line-height:1.1;color:var(--ink);
  border-bottom:4px solid;padding:0 3px 1px;border-radius:2px}
.sheet .acts{display:flex;flex-direction:column;gap:8px}
.rels{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;max-height:34vh;overflow-y:auto}
.rel{text-align:left;background:var(--bg);border-radius:10px;padding:10px 12px}
.rel:hover{background:var(--blue-l)}
.rr{display:block;font-size:13px;font-weight:700;color:var(--blue);letter-spacing:.04em;
  text-transform:uppercase}
.rt{display:block;font-size:13px;color:#475467;line-height:1.5;margin-top:4px}

/* ---------- notes ---------- */
.note{background:var(--card);border-radius:var(--r);padding:14px;margin-bottom:9px;
  box-shadow:var(--shadow);border-left:4px solid var(--blue)}
.note .nr{display:block;font-size:13px;font-weight:700;color:var(--blue);letter-spacing:.04em;
  text-transform:uppercase}
.note .nq{font-size:13px;color:#475467;line-height:1.5;margin:7px 0 0;font-style:italic;
  border-left:2px solid var(--line);padding-left:9px}
.note .nb{font-size:14px;color:#1F2937;line-height:1.55;margin:9px 0 0;white-space:pre-wrap}
.note .nf{display:flex;align-items:center;gap:10px;margin-top:11px}
.note .nd{font-size:13px;color:var(--ink2);flex:1}
.note .nf button{font-size:12px;font-weight:600;color:var(--blue)}
.note .nf button.del{color:var(--rose)}
.ta{width:100%;border:1px solid var(--line);border-radius:var(--rs);padding:12px;
  font-family:var(--text);font-size:15px;line-height:1.55;color:var(--ink);resize:vertical;
  min-height:130px;outline:none;background:var(--card)}
.ta:focus{border-color:var(--blue)}
.fab{position:fixed;right:calc(50% - 215px + 16px);bottom:calc(132px + env(safe-area-inset-bottom));
  width:54px;height:54px;border-radius:50%;background:var(--blue);color:#fff;z-index:25;
  display:grid;place-items:center;box-shadow:0 6px 18px rgba(55,125,255,.42)}
.fab svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
@media(max-width:462px){.fab{right:16px}}

/* ---------- saves ---------- */
.cfilter{display:flex;gap:7px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none}
.cfilter::-webkit-scrollbar{display:none}
.cf{white-space:nowrap;padding:7px 12px;border-radius:999px;font-size:12.5px;font-weight:600;
  background:var(--card);color:var(--ink2);box-shadow:var(--shadow);display:flex;
  align-items:center;gap:6px}
.cf i{width:10px;height:10px;border-radius:50%;flex:none}
.cf[aria-selected="true"]{background:var(--ink);color:#fff}
.sv{display:block;width:100%;text-align:left;border-radius:var(--r);padding:13px;
  margin-bottom:8px;box-shadow:var(--shadow);position:relative}
.sv .sr{display:block;font-size:13px;font-weight:700;color:#5A6472;letter-spacing:.04em;text-transform:uppercase}
.sv .st{display:block;font-size:14px;line-height:1.55;color:#1F2937;margin-top:5px}
.sv mark{background:rgba(255,255,255,.7);padding:0 2px;border-radius:3px}
.grp{font-size:13px;font-weight:800;color:var(--ink2);letter-spacing:.07em;
  text-transform:uppercase;margin:16px 0 8px}
.grp:first-child{margin-top:4px}
/* ---------- copy row and update bar ---------- */
.row2{display:flex;gap:8px}
.row2 .btn{flex:1}
.upd{position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(84px + env(safe-area-inset-bottom));z-index:50;
  width:min(398px,calc(100% - 28px));display:flex;align-items:center;gap:10px;
  background:#111827;color:#fff;border-radius:14px;padding:11px 13px;
  box-shadow:0 8px 26px rgba(16,24,40,.32);font-size:13px}
.upd span{flex:1}
.upd button{font-size:12.5px;font-weight:700;color:#7FB0FF;padding:4px 6px}
.upd button.x{color:#98A2B3;font-weight:600}

/* ---------- background loading strip ---------- */
.bf{display:flex;align-items:center;gap:9px;background:var(--blue-l);border-radius:var(--rs);
  padding:9px 12px;margin-bottom:10px;font-size:12.5px;color:var(--noteink);font-weight:500}

/* ---------- reading progress ---------- */
.readmark{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink2);background:var(--bg);border-radius:8px;padding:7px 11px;flex:none}
.readmark.on{background:var(--brass-l);color:var(--brass)}
.prog{flex:1;display:flex;align-items:center;gap:8px;justify-content:flex-end;
  font-size:13px;color:var(--ink2);font-weight:600}
.progbar{display:block;width:74px;height:5px;border-radius:3px;background:var(--line);
  overflow:hidden}
.progbar i{display:block;height:100%;background:var(--brass);border-radius:3px}
.progbar.big{width:100%;height:8px;margin-top:4px}
.bigpct{font-family:var(--disp);font-size:34px;font-weight:800;color:var(--brass);
  line-height:1;letter-spacing:-.02em}
/* on a cover, progress is a hairline along the foot of the board */
.cbar{position:absolute;left:11px;right:6px;bottom:5px;height:3px;border-radius:2px;
  background:rgba(255,255,255,.22);overflow:hidden}
.cbar i{display:block;height:100%;background:rgba(255,255,255,.85)}
.cdone{position:absolute;top:7px;right:8px;width:15px;height:15px;border-radius:50%;
  background:rgba(255,255,255,.92);color:#15181D;font-size:12px;font-weight:800;
  display:grid;place-items:center;line-height:1}
.cover.isapoc .cbar{background:rgba(0,0,0,.25)}
.cover.isapoc .cbar i{background:rgba(0,0,0,.6)}

/* ---------- tracker ---------- */
.cover.istracker{background:linear-gradient(160deg,#FFFDF9,#F1ECE1)}
.cover.istracker::before{background:linear-gradient(90deg,rgba(120,105,80,.20),rgba(255,255,255,.5))}
.cover.istracker::after{border-color:rgba(120,105,80,.22)}
/* the mark is pressed into the board rather than printed on it */
.cover.istracker .art svg{color:#EDE6D8}
.cover.istracker .ct{color:#2A2620;text-shadow:none}
.cover.istracker .cn{color:#8A8073}
.cover.istracker .cbar{background:rgba(120,105,80,.18)}
.cover.istracker .cbar i{background:rgba(120,105,80,.55)}

.tkhero{position:relative;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:18px;margin-bottom:16px}
.tkpct{font-family:var(--disp);font-size:52px;font-weight:800;color:#fff;line-height:1;
  letter-spacing:-.03em}
.tkpct span{font-size:22px;color:#9DB0CE;margin-left:3px}
.tkhero p{margin:10px 0 14px;font-size:13px;color:#9DB0CE}
.progbar.dark{background:rgba(255,255,255,.14)}
.progbar.dark i{background:#D8B25E}
.progbar.full{width:100%;height:6px;display:block}
.progbar.tiny{width:100%;height:3px;display:block;margin-top:6px}
.tksec{position:relative;margin-bottom:18px}
.tkhead{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:7px}
.tkhead span{font-family:var(--disp);font-size:15px;font-weight:700;color:#fff}
.tkhead b{font-size:12.5px;color:#D8B25E;font-weight:700}
.tkbooks{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.tkbook{text-align:left;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);
  border-radius:10px;padding:9px 10px}
.tkbook:hover{background:rgba(255,255,255,.10)}
.tkbook.done{border-color:rgba(216,178,94,.42)}
.tn{display:block;font-size:12.5px;font-weight:600;color:#EAF0F8;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.tv{display:block;font-size:12.5px;color:#8FA6CC;margin-top:2px}

/* ---------- back to top ---------- */
/* left side, so it never collides with the + button on the Notes tab */
#totop{position:fixed;left:calc(50% - 215px + 16px);
  bottom:calc(132px + env(safe-area-inset-bottom));z-index:26;
  width:42px;height:42px;border-radius:50%;background:rgba(255,253,249,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(40,32,20,.10);color:var(--blue);
  display:none;place-items:center;box-shadow:0 5px 18px rgba(40,32,20,.20)}
#totop.on{display:grid}
#totop svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
@media(max-width:462px){#totop{left:16px}}

/* ---------- chapter picker on the book page ---------- */
.pickhead{display:flex;align-items:baseline;justify-content:space-between;margin:18px 0 9px}
.pickhead .lab{margin:0}
.pickhead b{font-size:12px;color:var(--ink2);font-weight:600}

/* ================= TABLET AND LANDSCAPE =================
   The phone layout is a 430px column with a floating pill at the foot. On a
   tablet that wastes most of the screen and puts the controls a long way from
   the thumbs, so from 820px the frame widens and the nav becomes a rail down
   the left side. Nothing about the phone layout changes below that width. */
@media (min-width:820px){
  #phone{max-width:1180px;flex-direction:row;align-items:stretch}

  /* the nav becomes a fixed rail rather than a floating pill */
  #nav{position:fixed;left:max(0px, calc(50% - 590px));top:0;bottom:0;
    transform:none;width:96px;height:100%;border-radius:0;
    border:0;border-right:1px solid var(--line);
    display:flex;flex-direction:column;justify-content:center;gap:6px;
    padding:0 8px;box-shadow:none;background:var(--card);backdrop-filter:none}
  #nav button{padding:12px 0;font-size:12.5px;gap:5px;border-radius:14px}
  #nav button svg{width:23px;height:23px}
  #nav button[aria-selected="true"]{background:var(--blue-l)}
  /* the raised centre button is a phone idiom; on a rail it just looks odd */
  #nav button.mid .bub{width:auto;height:auto;margin:0;background:none;color:inherit;
    box-shadow:none;border-radius:0}
  #nav button.mid .bub svg{width:23px;height:23px;stroke-width:1.8}
  #nav button.mid[aria-selected="true"] .bub{box-shadow:none}
  #nav button.mid[aria-selected="true"]{background:var(--blue);color:#fff}

  /* content sits to the right of the rail */
  .top{margin-left:96px}
  #view{margin-left:96px;padding:22px 30px 40px}
  .scrim,.drawer{left:96px}

  /* long lines are hard to read, so the text column is capped and centred */
  .rd,.chnote,.sizebar,.sbar,.sopts,.voicerow,#backfill,.card,.fact,.note,.sq,
  .item,.res,.sv,.tl,.chg,.pickhead,.bhead,.tabs,.seg,.search,.rdbar,.row2{
    max-width:720px;margin-left:auto;margin-right:auto}
  .rd{font-size:calc(var(--rdsize,17px) + 1px);line-height:1.75}

  /* more books visible at once */
  .covers{grid-template-columns:repeat(5,1fr);gap:16px;max-width:960px}
  .libhead,.cats,.libfoot,.apocrow,.tkhero,.tksec{max-width:960px}
  .tkbooks{grid-template-columns:repeat(3,1fr)}
  .vgrid{grid-template-columns:repeat(3,1fr)}

  /* the floating buttons follow the content column, not the screen edge */
  .fab{right:max(24px, calc(50% - 560px));bottom:32px}
  #totop{left:calc(96px + max(24px, calc(50% - 590px)));bottom:32px}
  .upd{left:calc(50% + 48px);bottom:32px;width:min(420px,60%)}
  .sheet{left:96px;margin:0 auto;max-width:640px}
}

/* a phone held sideways: keep it usable rather than pretending it is a tablet */
@media (max-width:819px) and (orientation:landscape) and (max-height:520px){
  #phone{height:auto;min-height:100vh;overflow:visible}
  .top{position:sticky;padding-top:8px;padding-bottom:8px;min-height:46px}
  #view{padding:12px 16px 120px}
  .covers{grid-template-columns:repeat(5,1fr)}
  .libwrap{min-height:0}
  .hero{padding:14px}
}

/* the shelf of imported books uses the library panel without the night sky */
.libplain::before{display:none}
.libplain::after{background:linear-gradient(180deg,#0F1420,#0B0F18)}
.minewrap .item,.minewrap .card{background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);box-shadow:none}
.minewrap .tt,.minewrap .lab{color:#EAF0F8}
.minewrap .dd,.minewrap .vnote{color:#9DB0CE}
.minewrap .ic{background:rgba(255,255,255,.10);color:#BBD0EC}
.minewrap .empty{color:#9DB0CE}

/* ================= THE PAGE =================
   A printed Bible is warm paper, brown-black ink and an old-style serif, set
   justified in a narrow measure. This is that, using only faces already on the
   device, plus a 740-byte grain tile so the ground is not a flat colour. */
.rd.paper{
  font-family:var(--serif);
  color:var(--ink-dark);
  background:var(--paper) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACq0lEQVR42s1aW1LEMAwzHvHHGTgDB+D+l1p98MNC6ca27IaBzOzs0G3zcCRZMX16f3t9MTPad8Phb3x+H38/XrfT71hci1r0TNT3cW5f8/LFQCwmDqsbhXtWfSF5fhkcFyZEcWJIdkhZMJO+ooWaJ5DAYOAKHmzshhQoF7b72PlV+HR3phwLjYlAxWVw/87JfyHET9HFRqLSfq89cEAZlI3oWxN2EIi75B4KYlmQH86ajECOO5CIYJL1C086Y6EcFDUbwaeCBxTuIYhuds0CzUYj6lmmp4r/uwpN1OI88LOZ3cRkRnEhUnPBPmQRuj9zE+DFBBoTLwUFbxAhsFsiVSdgPhxgpTxMiHgWBhSiIOchL5SmS8hKSo8Lr+z0aAdUCVVd6DlXWOI6R9nYBV1n4Car65E4rCC4cq1UcsY5MthANjTPEyzEIrUUvhiAge9AgxMTlYqydDY2vOHhKURV6ScjKRdQS/utbqJIVgq2JIooCu5ZBSETjn9o4DOqLLCAZcdOL61EpsFs2oOODGfRLxfiiTSq59oJUTPFaRm7iZVQyQ3BnSocS88jECNNoRqnZFg2rkEIIBUZ7cIJgRyq5Uku+rAqD2SajEaSUs0chKwtq1An+UyOi1XiqxLaWBUqAkHgAwqCorDjv6pCmfx1SIyu9o+PbxcPPFPepIHbsQNoVOzYtCtlUHBholmEmWA9wn+3KjE60k0KuhAgnIlAVvqkQhiIBERi/pAkp27Uf5hO3xB1peSYyXaUHKXSijeZj4VkUqjvqJFtn8u90XllJVhkVA7GKnnrF8m8Mmq4AEl0hQY2T2K8wBnb9eyORDZNfFf+jfunC+CGnepJ1ZAnu/tZvs8Bq1+w+A8tfJ/DF3jjBbx2BINDxCCqC3XgVVmCLH9EtVclTzyc7D4AwpUzvNRmeYEAAAAASUVORK5CYII=) repeat;
  background-blend-mode:multiply;
  border-radius:10px;
  padding:22px 20px 26px;
  margin:0 -4px 4px;
  box-shadow:0 1px 2px rgba(60,48,30,.10),0 6px 22px rgba(60,48,30,.09),
             inset 0 0 60px rgba(120,100,70,.06);
  text-align:justify;
  hyphens:auto;-webkit-hyphens:auto;
  font-size:calc(var(--rdsize,17px) + 1px);
  line-height:1.62;
  letter-spacing:.002em;
}
.rd.paper .v{padding-left:30px}
/* verse numbers in old-style figures, set back so they do not shout */
.rd.paper .v sup{
  font-family:var(--serif);
  font-variant-numeric:oldstyle-nums;
  font-feature-settings:"onum" 1;
  color:var(--ink-mid);
  font-weight:600;
  font-size:.66em;
  top:2px;
}
/* the divine name in small capitals, as every Cambridge setting has it */
.sc{font-variant:small-caps;letter-spacing:.03em}
.rd.paper .v.speaking{background:rgba(190,160,90,.16);box-shadow:inset 3px 0 0 #9A7B3C}
.rd.paper .v.jump{box-shadow:0 0 0 2px #9A7B3C}
.rd.paper .nb svg{stroke:var(--ink-mid)}
/* highlights sit under ink rather than over it */

.pagebar{display:flex;align-items:center;gap:6px;background:var(--card);
  border-radius:var(--r);padding:9px 12px;margin-bottom:10px;box-shadow:var(--shadow)}
.pagebar .lab{flex:1;margin:0}
.pagebar button{min-width:56px;padding:6px 10px;border-radius:8px;background:var(--bg);
  font-size:13px;font-weight:700;color:var(--ink2)}
.pagebar button[aria-selected="true"]{background:var(--blue);color:#fff}

/* ---------- highlights ----------
   Marked as an underline rather than a block of colour, so the ink stays on
   paper rather than sitting in a swatch. The line is drawn per line of text,
   so a highlight spanning three lines gets three rules.

   Yellow is the exception. Against warm paper it cannot reach a usable
   contrast as a line at any weight that still reads as yellow (the best
   candidate manages 2.5:1), so it gets a heavier rule and a faint wash as
   well. Every other colour clears 4:1 as a line alone. */
.rd .v[class*="hl-"]{
  text-decoration-line:underline;
  text-decoration-thickness:3px;
  text-underline-offset:4px;
  text-decoration-skip-ink:none;
  border-radius:2px;
}
.rd .v.hl-yellow{text-decoration-color:#C8920A;text-decoration-thickness:4px;
  background:rgba(224,176,48,.22)}
.rd .v.hl-green {text-decoration-color:#2E8552}
.rd .v.hl-blue  {text-decoration-color:#2463AC}
.rd .v.hl-pink  {text-decoration-color:#BE455B}
.rd .v.hl-purple{text-decoration-color:#6A4CB0}
/* on the plain page the wash can be a shade lighter */
.rd:not(.paper) .v.hl-yellow{background:rgba(224,176,48,.18)}

/* the saved-verse cards keep a colour block, since there is no text to sit under */
.sv[data-hue="yellow"]{background:#F6EBCB}
.sv[data-hue="green"] {background:#DDE9DC}
.sv[data-hue="blue"]  {background:#DCE5EF}
.sv[data-hue="pink"]  {background:#F0DEE1}
.sv[data-hue="purple"]{background:#E3DDEE}
.sv{border-left:4px solid transparent}
.sv[data-hue="yellow"]{border-left-color:#C8920A}
.sv[data-hue="green"] {border-left-color:#2E8552}
.sv[data-hue="blue"]  {border-left-color:#2463AC}
.sv[data-hue="pink"]  {border-left-color:#BE455B}
.sv[data-hue="purple"]{border-left-color:#6A4CB0}

/* ---------- reader controls ---------- */
.rtools{display:flex;align-items:center;gap:8px;background:var(--card);
  border-radius:var(--r);padding:9px 12px;margin-bottom:10px;box-shadow:var(--shadow)}
.rtools .prog{flex:1}
.gear{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  color:var(--ink2);flex:none;background:var(--bg)}
.gear.on{background:var(--blue);color:#fff}
.gear svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.rpanel{background:var(--card);border-radius:var(--r);padding:13px;margin-bottom:10px;
  box-shadow:var(--shadow)}
.rpanel .lab{margin:0 0 7px}
.rpanel .lab:not(:first-child){margin-top:14px}
.rrow{display:flex;gap:6px;flex-wrap:wrap}
.rrow button{flex:1;min-width:52px;padding:8px 6px;border-radius:9px;background:var(--bg);
  font-size:12px;font-weight:600;color:var(--ink2)}
.rrow button[aria-selected="true"]{background:var(--blue);color:#fff}
.rrow .redtog[aria-selected="true"]{background:#9E2B2B}

/* ---------- your own cross references ---------- */
.rel.mine{display:flex;align-items:stretch;gap:0;padding:0;background:var(--brass-l)}
.rel.mine .relgo{flex:1;text-align:left;padding:10px 12px;display:block}
.rel.mine .rr{color:var(--brass)}
.relx{width:38px;flex:none;color:#A08A6A;font-size:18px;line-height:1;border-radius:0 10px 10px 0}
.relx:hover{background:rgba(160,138,106,.16);color:var(--rose)}
.refadd{display:flex;gap:7px;margin-bottom:14px}
.refadd input{flex:1;border:1px solid var(--line);border-radius:10px;padding:10px 12px;
  font-family:var(--text);font-size:14px;outline:none;background:var(--card);color:var(--ink)}
.refadd input:focus{border-color:var(--blue)}
.refadd .btn{width:auto;flex:none;padding:10px 16px}

/* ---------- restore points ---------- */
.snap{display:flex;align-items:center;gap:10px;background:var(--bg);border-radius:10px;
  padding:9px 11px;margin-top:7px}
.sw1{flex:1;font-size:12.5px;color:var(--ink)}
.snap button{font-size:12px;font-weight:700;color:var(--blue)}

/* ---------- words of Christ ---------- */
.wj{color:#9E2B2B}
.rd.paper .wj{color:#8E2420}          /* a shade deeper against warm paper */
.rd .v.speaking .wj{color:#8E2420}
.redtog{min-width:52px;padding:6px 10px;border-radius:8px;background:var(--bg);
  font-size:13px;font-weight:700;color:var(--ink2)}
.redtog[aria-selected="true"]{background:#9E2B2B;color:#fff}

/* ---------- search history ---------- */
.hist{margin-bottom:14px}
.hist .lab{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.histclear{font-size:12.5px;font-weight:700;color:var(--blue);letter-spacing:.04em;
  text-transform:uppercase}
.histrow{display:flex;align-items:stretch;background:var(--card);border-radius:10px;
  margin-bottom:6px;box-shadow:var(--shadow);overflow:hidden}
.histgo{flex:1;display:flex;align-items:center;gap:10px;padding:11px 13px;text-align:left}
.histgo svg{width:15px;height:15px;stroke:var(--ink2);fill:none;stroke-width:2;flex:none}
.histgo span{font-size:14px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.histx{width:40px;flex:none;color:#B4AFA6;font-size:19px;line-height:1}
.histx:hover{background:var(--bg);color:var(--rose)}

/* ---------- precept saved to notes ---------- */
.sqf .saved{color:var(--ok);font-weight:700}

/* ---------- atlas ---------- */
.cover.isatlas{background:linear-gradient(160deg,#E6DCC6,#B99F6F)}
.cover.isatlas .art svg{color:rgba(60,46,30,.55)}
.cover.isatlas .ct{color:#2A2016;text-shadow:none}
.cover.isatlas .cn{color:#6B5B40}
.atlasgrid{position:relative;display:grid;gap:12px}
.atlascard{text-align:left;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px;display:block}
.atlascard:hover{background:rgba(255,255,255,.11)}
.an{display:block;font-family:var(--disp);font-size:16px;font-weight:700;color:#fff}
.ad{display:block;font-size:12.5px;color:#8FA6CC;margin-top:2px;letter-spacing:.05em;
  text-transform:uppercase}
.ap{display:block;font-size:12.5px;color:#C8D6EC;margin-top:5px}
.mapbig{position:relative;border-radius:12px;overflow:hidden;
  box-shadow:0 6px 26px rgba(0,0,0,.35)}
.placelist{position:relative}
.placerow{background:rgba(255,255,255,.05);border-radius:10px;padding:10px 12px;
  margin-bottom:6px}
.placerow b{display:block;font-size:13.5px;color:#EAF0F8}
.placerow span{display:block;font-size:12.5px;color:#9DB0CE;margin-top:3px;line-height:1.45}
.minimap{display:block;width:100%;text-align:left;background:var(--card);border-radius:var(--r);padding:13px;margin-bottom:14px;box-shadow:var(--shadow)}
.minimap b{display:block;font-size:14px;color:var(--ink)}
.mmlab{display:block;font-size:13px;color:var(--ink2);margin-top:7px;font-weight:600}
.mapfull .libhead p{color:#B8C6DE}
.plate::-webkit-scrollbar{width:6px;height:6px}
.plate::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px}

/* ---------- surveyed plates ---------- */
.plateref{display:block;width:100%;text-align:left;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);border-radius:12px;padding:12px 13px;
  margin-bottom:8px}
.plateref:hover{background:rgba(255,255,255,.11)}
.plateref b{display:block;font-size:14px;color:#EAF0F8}
.plateref span{display:block;font-size:12.5px;color:#9DB0CE;margin-top:3px;line-height:1.45}
.plateload{position:relative;background:rgba(255,255,255,.06);border-radius:12px;
  padding:26px 16px;text-align:center;color:#9DB0CE;font-size:13.5px}

/* ---------- plate viewer ---------- */
.plate{position:relative;background:#fff;border-radius:12px;
  overflow:auto;-webkit-overflow-scrolling:touch;
  box-shadow:0 6px 26px rgba(0,0,0,.35);height:72vh;
  touch-action:pan-x pan-y pinch-zoom}
.platein{min-width:100%}
.plate svg{width:100%;height:auto;display:block}
.platebar{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.07);
  border-radius:11px;padding:7px 10px;margin-bottom:9px}
.platebar span{flex:1;text-align:center;font-size:12.5px;color:#C8D6EC;font-weight:600}
.platebar button{width:38px;height:32px;border-radius:8px;background:rgba(255,255,255,.10);
  color:#EAF0F8;font-size:17px;font-weight:700;line-height:1}
.platebar button.fit{width:auto;padding:0 13px;font-size:12.5px}
.platebar button[aria-disabled="true"]{opacity:.35}

/* ---------- one header, with history ---------- */
.top .brand{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
  margin:0;min-width:0}
.bmark{display:grid;place-items:center;width:22px;height:22px;flex:none}
.bmark svg{width:20px;height:20px;stroke:var(--brass);fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.bword{display:flex;align-items:baseline;gap:4px;font-family:var(--disp);
  white-space:nowrap;line-height:1}
.bword b{font-size:14px;font-weight:800;letter-spacing:.14em;color:var(--ink)}
.bword i{font-size:14px;font-style:normal;font-weight:400;letter-spacing:.14em;
  color:var(--brass)}
.top .icon.nav{width:32px}
.top .icon.nav.off{opacity:.28;pointer-events:none}

/* the selected tab reads as pressed in, not merely tinted */
#nav button[aria-selected="true"]{
  background:linear-gradient(180deg,#D9E4F2,#EAF0F8);
  box-shadow:inset 0 2px 4px rgba(31,95,150,.34),
             inset 0 -1px 0 rgba(255,255,255,.65);
  transform:translateY(1px)}
#nav button[aria-selected="true"] svg{stroke:var(--blue);transform:scale(.94)}
#nav button[aria-selected="true"] span{color:var(--blue);font-weight:700}
#nav button{transition:transform .09s,box-shadow .09s,background .12s}
#nav button:active{transform:translateY(1px) scale(.97)}

/* ---------- filing a verse into a note ---------- */
.filelist{margin-bottom:10px}
.filerow{display:block;width:100%;text-align:left;background:var(--bg);
  border-radius:10px;padding:10px 12px;margin-bottom:6px}
.filerow:hover{background:var(--blue-l)}
.filerow b{display:block;font-size:13.5px;color:var(--ink);font-weight:600}
.filerow span{display:block;font-size:13px;color:var(--ink2);margin-top:2px}

.chip.pl{background:var(--brass-l);color:var(--brass);font-weight:600}

/* ================= THE LIBRARY, REBUILT =================
   Calmer than it was. The old covers leaned on a full-bleed gradient with the
   title shadowed over the top of it, at 12px with an 8.5px label underneath —
   decorative, and below the size anything should be set at on a phone. These
   state what they are: a quiet section mark, the name at a readable size, the
   length in words rather than an abbreviation, and progress as a hairline
   rather than a badge. The palette is unchanged. */
.covers{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s3)}
@media (min-width:520px){ .covers{grid-template-columns:repeat(3,1fr)} }
@media (min-width:820px){ .covers{grid-template-columns:repeat(4,1fr)} }

.cover{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;
  justify-content:space-between;text-align:left;
  min-height:118px;padding:var(--s3);
  border-radius:var(--r2);
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:0 1px 2px rgba(31,41,55,.05);
  transition:transform var(--t-fast) var(--ease),
             box-shadow var(--t-fast) var(--ease),
             border-color var(--t-fast) var(--ease);
  overflow:hidden;
}
/* the section colour reads as a spine down the left edge, not a wash */
.cover::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,var(--a),var(--b));
}
.cover:active{transform:scale(.985);box-shadow:none}
.cover:hover{border-color:var(--blue2);box-shadow:0 3px 12px rgba(31,95,150,.10)}

.cmark{position:absolute;right:10px;top:10px;width:26px;height:26px;opacity:.30}
.cmark svg{width:100%;height:100%;fill:none;stroke:var(--a);stroke-width:5;
  stroke-linecap:round;stroke-linejoin:round}

.cbody{display:block;padding-right:30px;margin-top:auto}
.cover .ct{display:block;font-family:var(--disp);font-weight:700;
  font-size:15px;line-height:1.22;color:var(--ink);letter-spacing:-.008em}
.cover .cn{display:block;font-size:13px;color:var(--ink2);margin-top:3px;
  letter-spacing:0;text-transform:none}
.cbar{display:block;width:100%;height:3px;border-radius:2px;
  background:var(--line);margin-top:var(--s3);overflow:hidden}
.cbar i{display:block;height:100%;border-radius:2px;
  background:linear-gradient(90deg,var(--a),var(--b));
  transition:width var(--t-mid) var(--ease)}
.cover.finished{border-color:var(--ok)}
.cover.finished .cbar i{background:var(--ok)}
.cover.isapoc .ct{font-style:italic}

/* section headings get room to breathe */
.h2{font-family:var(--disp);font-size:12px;font-weight:700;letter-spacing:.10em;
  text-transform:uppercase;color:var(--ink2);margin:var(--s6) 2px var(--s3)}
.h2:first-of-type{margin-top:var(--s2)}

@media (prefers-reduced-motion:reduce){
  .cover,.cbar i{transition:none}
  .cover:active{transform:none}
}
.plateload small{display:block;margin-top:6px;opacity:.72;font-size:12px;line-height:1.5}
.spin{display:inline-block;width:13px;height:13px;margin-right:8px;vertical-align:-2px;
  border:2px solid rgba(255,255,255,.25);border-top-color:#C8D6EC;border-radius:50%;
  animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}

/* ---------- writing a note where you are ---------- */
.qn{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:var(--r1);
  padding:11px 12px;font-family:var(--text);font-size:14.5px;line-height:1.55;
  color:var(--ink);background:var(--card);outline:none;resize:vertical;
  margin-bottom:var(--s2)}
.qn:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,95,150,.12)}
.qnrow{display:flex;gap:var(--s2);margin-bottom:var(--s3)}
.qnrow .btn{width:auto;flex:1;padding:10px 12px}

/* ---------- covers carrying art ----------
   The plate fills the card; a scrim carries the type over it so the title
   stays readable whatever the painting does underneath. Books without art
   keep the typographic card, so the shelf never looks half-finished. */
.cover.hasart{aspect-ratio:3/4;min-height:0;padding:0;border:none;background:#1A1712}
.cover.hasart::before{z-index:3}
.cart{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  display:block;border-radius:var(--r2)}
.cscrim{position:absolute;left:0;right:0;bottom:0;height:62%;border-radius:0 0 var(--r2) var(--r2);
  background:linear-gradient(180deg,rgba(16,13,9,0) 0%,rgba(16,13,9,.42) 38%,
    rgba(16,13,9,.86) 78%,rgba(16,13,9,.94) 100%)}
.cover.hasart .cbody{position:relative;z-index:2;padding:0 12px 11px;width:100%;
  box-sizing:border-box}
.cover.hasart .ct{color:#FBF7EE;font-size:15.5px;
  text-shadow:0 1px 3px rgba(0,0,0,.55)}
.cover.hasart .cn{color:rgba(251,247,238,.80);text-shadow:0 1px 2px rgba(0,0,0,.5)}
.cover.hasart .cbar{position:absolute;left:0;right:0;bottom:0;z-index:2;margin:0;
  height:3px;border-radius:0 0 var(--r2) var(--r2);background:rgba(255,255,255,.18)}
.cover.hasart:hover{box-shadow:0 6px 20px rgba(31,41,55,.22)}
.cover.hasart.finished{box-shadow:0 0 0 2px var(--ok)}

/* the apocrypha rows carry their own plate rather than a shared motif */
.apocrow.hasart .ar{width:58px;height:78px;border-radius:8px;overflow:hidden;
  background:#1A1712;flex:none;padding:0;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.apocrow.hasart .ar img{width:100%;height:100%;object-fit:cover;display:block}

/* ================= DARK, CONTRAST, FOCUS =================
   A Bible app is read late at night more than at any other hour, and until now
   it had one blazing cream surface and no way to dim it. Dark is a real theme,
   not an inversion: the same navy-and-brass identity, warmed so the paper page
   still reads as paper. */
:root{ color-scheme:light; }

[data-theme="dark"]{
  color-scheme:dark;
  --bg:#12151B; --card:#191D25; --line:#2B313C;
  --ink:#EEF1F6; --ink2:#A3ABB8;
  --blue:#6FB0E8; --blue2:#8CC3F2; --blue-l:#1E2A38; --blue-d:#9CCBF5;
  --brass:#D9B463; --brass-l:#2A2418;
  --ok:#6FBE8A; --amber:#E7C065; --rose:#E28C99;
  --paper:#1E1B16; --ink-dark:#E8E1D2; --ink-mid:#B3A88F;
  --shadow:0 1px 2px rgba(0,0,0,.5),0 6px 20px rgba(0,0,0,.34);
}
[data-theme="dark"] .cover{background:var(--card);border-color:var(--line)}
[data-theme="dark"] .rd.paper{
  background:var(--paper) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACq0lEQVR42s1aW1LEMAwzHvHHGTgDB+D+l1p98MNC6ca27IaBzOzs0G3zcCRZMX16f3t9MTPad8Phb3x+H38/XrfT71hci1r0TNT3cW5f8/LFQCwmDqsbhXtWfSF5fhkcFyZEcWJIdkhZMJO+ooWaJ5DAYOAKHmzshhQoF7b72PlV+HR3phwLjYlAxWVw/87JfyHET9HFRqLSfq89cEAZlI3oWxN2EIi75B4KYlmQH86ajECOO5CIYJL1C086Y6EcFDUbwaeCBxTuIYhuds0CzUYj6lmmp4r/uwpN1OI88LOZ3cRkRnEhUnPBPmQRuj9zE+DFBBoTLwUFbxAhsFsiVSdgPhxgpTxMiHgWBhSiIOchL5SmS8hKSo8Lr+z0aAdUCVVd6DlXWOI6R9nYBV1n4Car65E4rCC4cq1UcsY5MthANjTPEyzEIrUUvhiAge9AgxMTlYqydDY2vOHhKURV6ScjKRdQS/utbqJIVgq2JIooCu5ZBSETjn9o4DOqLLCAZcdOL61EpsFs2oOODGfRLxfiiTSq59oJUTPFaRm7iZVQyQ3BnSocS88jECNNoRqnZFg2rkEIIBUZ7cIJgRyq5Uku+rAqD2SajEaSUs0chKwtq1An+UyOi1XiqxLaWBUqAkHgAwqCorDjv6pCmfx1SIyu9o+PbxcPPFPepIHbsQNoVOzYtCtlUHBholmEmWA9wn+3KjE60k0KuhAgnIlAVvqkQhiIBERi/pAkp27Uf5hO3xB1peSYyXaUHKXSijeZj4VkUqjvqJFtn8u90XllJVhkVA7GKnnrF8m8Mmq4AEl0hQY2T2K8wBnb9eyORDZNfFf+jfunC+CGnepJ1ZAnu/tZvs8Bq1+w+A8tfJ/DF3jjBbx2BINDxCCqC3XgVVmCLH9EtVclTzyc7D4AwpUzvNRmeYEAAAAASUVORK5CYII=) repeat;
  background-blend-mode:soft-light;
  box-shadow:0 1px 2px rgba(0,0,0,.5),0 6px 22px rgba(0,0,0,.4),
             inset 0 0 60px rgba(0,0,0,.35)}
[data-theme="dark"] .wj,[data-theme="dark"] .rd.paper .wj{color:#F08A80}
[data-theme="dark"] .rd .v.hl-yellow{background:rgba(224,176,48,.20);
  text-decoration-color:#E3B84A}
[data-theme="dark"] .rd .v.hl-green {text-decoration-color:#6FBE8A}
[data-theme="dark"] .rd .v.hl-blue  {text-decoration-color:#6FB0E8}
[data-theme="dark"] .rd .v.hl-pink  {text-decoration-color:#E28C99}
[data-theme="dark"] .rd .v.hl-purple{text-decoration-color:#B49BE8}
[data-theme="dark"] .plate{background:#EDE7DA}
[data-theme="dark"] .top,[data-theme="dark"] #nav{
  background:rgba(25,29,37,.92);border-color:var(--line)}
[data-theme="dark"] #nav button[aria-selected="true"]{
  background:linear-gradient(180deg,#243244,#1B2430);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.55),inset 0 -1px 0 rgba(255,255,255,.06)}

/* follow the system unless the reader has chosen for themselves */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#12151B; --card:#191D25; --line:#2B313C;
    --ink:#EEF1F6; --ink2:#A3ABB8;
    --blue:#6FB0E8; --blue2:#8CC3F2; --blue-l:#1E2A38; --blue-d:#9CCBF5;
    --brass:#D9B463; --brass-l:#2A2418;
    --ok:#6FBE8A; --amber:#E7C065; --rose:#E28C99;
    --paper:#1E1B16; --ink-dark:#E8E1D2; --ink-mid:#B3A88F;
    --shadow:0 1px 2px rgba(0,0,0,.5),0 6px 20px rgba(0,0,0,.34);
  }
}

/* readers who ask the system for more contrast get it */
@media (prefers-contrast:more){
  :root{ --ink2:#4A463F; --line:#B9B2A4; --blue:#0F4372; }
  [data-theme="dark"]{ --ink2:#D2D8E2; --line:#5A6270; --blue:#A8D2F7; }
  .cover,.card,.item,.histrow{border:1px solid var(--line)}
  .cbar{background:var(--line)}
}

/* Keyboard focus was nearly invisible: two rules in the whole stylesheet.
   One ring, on everything that can be reached by tab. */
:where(a,button,input,textarea,select,[tabindex]):focus-visible{
  outline:3px solid var(--blue);
  outline-offset:2px;
  border-radius:6px;
}
[data-theme="dark"] :where(a,button,input,textarea,select,[tabindex]):focus-visible{
  outline-color:var(--blue2);
}

/* Targets. Anything you tap should be reachable without aiming. */
.rdbar button,.gear,.sw,.relx,.histx,.platebar button{min-width:44px;min-height:44px}
#nav button{min-height:48px}
.chip,.rrow button,.rates button,.pagebar button{min-height:40px}

/* announcements for screen readers, visually hidden */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- continue reading ---------- */
.cont{display:flex;align-items:stretch;gap:0;width:100%;text-align:left;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r3);
  overflow:hidden;margin-bottom:var(--s4);box-shadow:var(--shadow);
  min-height:96px;transition:transform var(--t-fast) var(--ease),
  box-shadow var(--t-fast) var(--ease)}
.cont:active{transform:scale(.99)}
.cont:hover{box-shadow:0 6px 20px rgba(31,95,150,.16)}
.contart{width:74px;flex:none;object-fit:cover;display:block;background:#1A1712}
.contw{flex:1;min-width:0;padding:13px 14px;display:flex;flex-direction:column;
  justify-content:center;gap:2px}
.contk{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--blue)}
.contt{font-family:var(--disp);font-size:19px;font-weight:700;color:var(--ink);
  letter-spacing:-.015em;line-height:1.15}
.contm{font-size:12.5px;color:var(--ink2)}
.contbar{display:block;height:4px;border-radius:2px;background:var(--line);
  margin-top:7px;overflow:hidden}
.contbar i{display:block;height:100%;border-radius:2px;
  background:linear-gradient(90deg,var(--blue),var(--blue2))}
.contgo{display:grid;place-items:center;width:42px;flex:none;color:var(--ink2)}
.contgo svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){ .cont{transition:none} .cont:active{transform:none} }

/* Dark mode had been applied to the tokens but not to the surfaces that were
   written as fixed colours. Two were serious: the chapter note was dark blue
   ink on a dark blue card, and the book drawer striped every other row white
   behind near-white text, which hid half the books. */
[data-theme="dark"]{
  --noteink:#BBD3F2; --warnink:#E5C77A; --warnbg:#2E2717; --stripe:#1E232C; --pill:#252B35; --pillink:#B7BFCC;
  --capbg:#2A1E20; --offbg:#232830; --offink:#7E8794;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --noteink:#BBD3F2; --warnink:#E5C77A; --warnbg:#2E2717; --stripe:#1E232C; --pill:#252B35; --pillink:#B7BFCC;
    --capbg:#2A1E20; --offbg:#232830; --offink:#7E8794;
  }
}
[data-theme="dark"] .drawer,[data-theme="dark"] .drawer .dl button{color:var(--ink)}
[data-theme="dark"] .drawer{background:var(--card)}
[data-theme="dark"] .dh{background:var(--card);border-color:var(--line)}
[data-theme="dark"] .dch:hover,[data-theme="dark"] button.ref:hover,
[data-theme="dark"] button.ref.approx:hover{background:var(--blue-l);color:var(--ink)}
[data-theme="dark"] .hero{background:var(--card)}
[data-theme="dark"] .libhead h2{color:#EEF1F6}
[data-theme="dark"] .an{color:#EEF1F6}

/* ---------- gold foil on the wordmark ----------
   A stack of warm stops clipped to the letters, so the light appears to run
   across the metal rather than the type being flat gold. Browsers without
   background-clip:text keep the solid brass, which is why the colour is set
   first. */
.bword b,.bword i{
  background-image:linear-gradient(100deg,
    #8A6A22 0%, #C9A227 16%, #F3E2A0 30%, #FFF8DC 38%,
    #E8C766 48%, #B8912F 62%, #F0DC96 76%, #C9A227 88%, #8A6A22 100%);
  background-size:200% 100%;
  background-position:20% 0;
  -webkit-background-clip:text; background-clip:text;
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .bword b{color:transparent}
  .bword i{color:transparent}
}
.bword b{text-shadow:0 1px 0 rgba(255,255,255,.35)}
[data-theme="dark"] .bword b{text-shadow:0 1px 0 rgba(0,0,0,.5)}
.bmark svg{stroke:#C9A227}

/* ---------- the page as an old sheet ----------
   The paper had a grain but no edges: it read as a clean rectangle of texture.
   These are layered over the grain \u2014 a warm centre falling off to a darker
   rim, a few soft stains, and a torn deckle along the sides \u2014 all in
   gradients, so it costs nothing to ship. */
.rd.paper{
  background-image:
    /* stains, kept faint and irregular */
    radial-gradient(ellipse 22% 14% at 12% 8%,  rgba(150,116,64,.10), transparent 70%),
    radial-gradient(ellipse 18% 10% at 88% 24%, rgba(150,116,64,.09), transparent 70%),
    radial-gradient(ellipse 26% 12% at 74% 92%, rgba(140,106,58,.10), transparent 70%),
    radial-gradient(ellipse 16% 9%  at 22% 68%, rgba(150,116,64,.07), transparent 70%),
    /* the rim, darker where an old sheet is handled most */
    radial-gradient(ellipse 120% 100% at 50% 50%,
      transparent 58%, rgba(146,112,60,.05) 84%, rgba(132,100,52,.10) 100%),
    /* along the long edges */
    linear-gradient(90deg, rgba(140,106,56,.11), transparent 5%,
      transparent 95%, rgba(140,106,56,.11)),
    linear-gradient(180deg, rgba(140,106,56,.09), transparent 4%,
      transparent 96%, rgba(140,106,56,.09)),
    url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACq0lEQVR42s1aW1LEMAwzHvHHGTgDB+D+l1p98MNC6ca27IaBzOzs0G3zcCRZMX16f3t9MTPad8Phb3x+H38/XrfT71hci1r0TNT3cW5f8/LFQCwmDqsbhXtWfSF5fhkcFyZEcWJIdkhZMJO+ooWaJ5DAYOAKHmzshhQoF7b72PlV+HR3phwLjYlAxWVw/87JfyHET9HFRqLSfq89cEAZlI3oWxN2EIi75B4KYlmQH86ajECOO5CIYJL1C086Y6EcFDUbwaeCBxTuIYhuds0CzUYj6lmmp4r/uwpN1OI88LOZ3cRkRnEhUnPBPmQRuj9zE+DFBBoTLwUFbxAhsFsiVSdgPhxgpTxMiHgWBhSiIOchL5SmS8hKSo8Lr+z0aAdUCVVd6DlXWOI6R9nYBV1n4Car65E4rCC4cq1UcsY5MthANjTPEyzEIrUUvhiAge9AgxMTlYqydDY2vOHhKURV6ScjKRdQS/utbqJIVgq2JIooCu5ZBSETjn9o4DOqLLCAZcdOL61EpsFs2oOODGfRLxfiiTSq59oJUTPFaRm7iZVQyQ3BnSocS88jECNNoRqnZFg2rkEIIBUZ7cIJgRyq5Uku+rAqD2SajEaSUs0chKwtq1An+UyOi1XiqxLaWBUqAkHgAwqCorDjv6pCmfx1SIyu9o+PbxcPPFPepIHbsQNoVOzYtCtlUHBholmEmWA9wn+3KjE60k0KuhAgnIlAVvqkQhiIBERi/pAkp27Uf5hO3xB1peSYyXaUHKXSijeZj4VkUqjvqJFtn8u90XllJVhkVA7GKnnrF8m8Mmq4AEl0hQY2T2K8wBnb9eyORDZNfFf+jfunC+CGnepJ1ZAnu/tZvs8Bq1+w+A8tfJ/DF3jjBbx2BINDxCCqC3XgVVmCLH9EtVclTzyc7D4AwpUzvNRmeYEAAAAASUVORK5CYII=);
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,
    no-repeat,no-repeat,no-repeat,repeat;
  background-blend-mode:multiply,multiply,multiply,multiply,
    multiply,multiply,multiply,multiply;
  box-shadow:
    0 1px 2px rgba(60,48,30,.12),
    0 8px 26px rgba(60,48,30,.12),
    inset 0 0 70px rgba(146,112,60,.07);
}
.rd.paper{position:relative}
[data-theme="dark"] .rd.paper{
  box-shadow:0 1px 2px rgba(0,0,0,.5),0 8px 26px rgba(0,0,0,.42),
             inset 0 0 70px rgba(0,0,0,.42)}

/* A worn edge, done as a soft uneven shadow rather than a cut-out. The first
   attempt used a repeating gradient and came out looking like a barcode. */
.rd.paper{position:relative}
.rd.paper::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(140,106,56,.10),
             inset 0 2px 5px rgba(140,106,56,.09),
             inset 0 -2px 5px rgba(140,106,56,.09);
}

/* ---------- the drawer's settings row ---------- */
.dset{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:13px 16px;color:var(--blue);font-weight:600;font-size:14px}
.dset svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;flex:none}
.dset:hover{background:var(--blue-l)}
/* the hint under the chapter name, so the swipe is discoverable */
.poshint{display:block;font-style:normal;font-size:12px;font-weight:500;
  color:var(--ink2);letter-spacing:.04em;margin-top:2px;opacity:.85}
.rdbar .pos{line-height:1.25}

/* ---------- black on white ----------
   A third page style for anyone who needs the plainest, hardest contrast the
   screen can give: pure white, pure black, no texture, no warmth. */
.rd.contrast{
  background:#FFFFFF;color:#000000;
  border-radius:10px;padding:22px 20px 26px;margin-bottom:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.10),0 6px 20px rgba(0,0,0,.08);
  font-family:var(--serif);text-rendering:optimizeLegibility}
.rd.contrast .v{padding-left:30px}
.rd.contrast .v sup{color:#000;font-weight:700;opacity:.75}
.rd.contrast .wj{color:#A80000}
.rd.contrast .sc{color:#000}
.rd.contrast .v.speaking{background:#FFE9A8;box-shadow:inset 3px 0 0 #000}
.rd.contrast .v.jump{box-shadow:0 0 0 3px #000}
.rd.contrast .nb svg{stroke:#000}
[data-theme="dark"] .rd.contrast{background:#FFFFFF;color:#000000}

/* ---------- full screen reading ---------- */
body.immersive #top,
body.immersive #nav,
body.immersive .rdbar,
body.immersive #speakbar,
body.immersive #backfill,
body.immersive .rtools,
body.immersive .rpanel,
body.immersive .chnote,
body.immersive .rdfoot{display:none !important}
body.immersive #view{padding:26px 14px 40px}
.rd.immersive{margin-bottom:0}
.rd.immersive .nb{display:none}
body.immersive .imhint{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
  background:rgba(20,20,24,.78);color:#fff;font-size:12.5px;font-weight:600;
  padding:8px 15px;border-radius:999px;pointer-events:none;z-index:80;
  animation:imfade 3.4s ease forwards}
@keyframes imfade{0%{opacity:0}12%{opacity:1}70%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){ body.immersive .imhint{animation:none;opacity:.9} }

/* ================= THE REDESIGN =================
   From the canvas study: the header names the screen instead of the app and
   carries how far through the book you are; a chapter opens the way a printed
   one does; and it closes with a rule and an obvious way onward. */
.top .ctitle{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;
  gap:1px;padding:2px 0;border-radius:10px;transition:background var(--t-fast) var(--ease)}
.top .ctitle:hover{background:var(--bg)}
.top .ctitle.plain{pointer-events:none}
.ct1{display:flex;align-items:center;gap:6px;font-family:var(--serif);font-size:18px;
  font-weight:600;letter-spacing:-.01em;color:var(--ink);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ct1 .chev{display:inline-grid;place-items:center;flex:none}
.ct1 .chev svg{width:13px;height:13px;stroke:var(--ink2);fill:none;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round}
.ct2{font-size:12px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink2)}
.hprog{position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--line)}
.hprog i{display:block;height:100%;background:linear-gradient(90deg,#C9A227,#8A6228);
  transition:width .3s var(--ease)}
[data-theme="dark"] .hprog i{background:linear-gradient(90deg,#D9B463,#A8842E)}

/* a labelled rule before a block, and a closing one after it */
.eyebrow{display:flex;align-items:center;gap:9px;margin:0 2px 10px}
.eyebrow span{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brass)}
.eyebrow i{flex:1;height:1px;background:var(--line)}
.divider{display:flex;align-items:center;gap:10px;margin:18px 2px 0}
.divider i{flex:1;height:1px;background:var(--line)}
.divider span{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink2)}

/* the chapter opening */
.chopen{text-align:center;margin-bottom:20px}
.chopen .cw{display:block;font-family:var(--disp);font-size:12px;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;color:#A2907A}
.chopen .cnum{display:block;font-family:var(--serif);font-size:34px;font-weight:700;
  color:var(--ink-dark);line-height:1;margin-top:4px}
.chopen i{display:block;width:34px;height:1px;background:#C9B99A;margin:14px auto 0}
.rd:not(.paper) .chopen .cnum{color:var(--ink)}
[data-theme="dark"] .chopen .cw{color:#9A8B72}

/* the way onward */
.nextcard{display:flex;align-items:center;justify-content:space-between;width:100%;
  margin-top:12px;padding:15px 16px;border-radius:var(--r3);background:var(--card);
  box-shadow:var(--shadow);text-align:left;
  transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
.nextcard:hover{transform:translateY(-1px);box-shadow:0 4px 16px rgba(40,32,20,.11)}
.nextcard:active{transform:scale(.99)}
.nck{display:block;font-size:12px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink2)}
.ncn{display:block;font-family:var(--serif);font-size:17px;font-weight:600;
  color:var(--ink);margin-top:3px}
.ncgo{width:34px;height:34px;border-radius:50%;background:var(--blue-l);color:var(--blue);
  display:grid;place-items:center;flex:none}
.ncgo svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){
  .nextcard,.hprog i,.top .ctitle{transition:none}
  .nextcard:hover{transform:none}
}
.ncw{flex:1;min-width:0;text-align:left}

/* ---------- the reading pill ----------
   One floating control instead of three stacked bars. It sits over the text
   near where a thumb already rests, rather than pushing the words down the
   screen. Listen, keep your place, and the type controls. */
.player{position:sticky;bottom:calc(var(--navh,72px) + 10px);z-index:40;
  margin:16px auto 4px;width:max-content;max-width:calc(100% - 24px);
  display:flex;align-items:center;gap:2px;padding:5px 6px;
  background:rgba(255,253,249,.92);backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(40,32,20,.08);border-radius:999px;
  box-shadow:0 8px 26px rgba(40,32,20,.14),0 2px 6px rgba(40,32,20,.08)}
[data-theme="dark"] .player{background:rgba(25,29,37,.92);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 8px 26px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.3)}

.pl-listen{display:flex;align-items:center;gap:7px;padding:8px 13px 8px 11px;
  border-radius:999px;transition:background var(--t-fast) var(--ease);min-height:40px}
.pl-listen:hover{background:var(--bg)}
.pl-listen svg{width:17px;height:17px;stroke:var(--blue);fill:var(--blue);
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pl-listen span{font-size:13.5px;font-weight:600;color:var(--ink);white-space:nowrap}

.pl-sep{width:1px;height:20px;background:var(--line);flex:none;margin:0 3px}

.pl-mark{padding:8px 12px;border-radius:999px;min-height:40px;min-width:40px;
  display:grid;place-items:center;transition:background var(--t-fast) var(--ease)}
.pl-mark:hover{background:var(--bg)}
.pl-mark svg{width:18px;height:18px;stroke:var(--ink2);fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.pl-mark.on svg{stroke:var(--ok);fill:var(--ok)}

.pl-aa{display:flex;align-items:center;justify-content:center;padding:8px 15px;
  min-height:40px;border-radius:999px;background:var(--blue);color:#fff;
  font-family:var(--serif);font-size:15px;font-weight:700;line-height:1;
  transition:background var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
.pl-aa:hover{background:var(--blue-d,#164A78)}
.pl-aa:active{transform:scale(.96)}
.pl-aa.on{background:var(--ink)}
body.immersive .player{display:none}
@media (prefers-reduced-motion:reduce){
  .pl-listen,.pl-mark,.pl-aa{transition:none}
  .pl-aa:active{transform:none}
}

/* ---------- the reading sheet ----------
   One group open at a time. Each header shows what the setting currently is,
   so the sheet can be read at a glance without opening anything. */
.rsheet{position:sticky;bottom:calc(var(--navh,72px) + 10px);z-index:41;
  margin:12px 0 6px;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r4);box-shadow:0 10px 34px rgba(40,32,20,.18);
  overflow:hidden}
[data-theme="dark"] .rsheet{box-shadow:0 10px 34px rgba(0,0,0,.55)}
.rsgrab{width:38px;height:4px;border-radius:2px;background:var(--line);
  margin:9px auto 4px}
.rsg{border-top:1px solid var(--line)}
.rsg:first-of-type{border-top:none}
.rsh{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:13px 16px;min-height:48px}
.rsh:hover{background:var(--bg)}
.rst{flex:1;font-size:14.5px;font-weight:600;color:var(--ink)}
.rsv{font-size:13px;color:var(--ink2);white-space:nowrap}
.rsc{display:grid;place-items:center;width:18px;flex:none;
  transition:transform var(--t-mid) var(--ease)}
.rsc svg{width:15px;height:15px;stroke:var(--ink2);fill:none;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
.rsg.open .rsc{transform:rotate(180deg)}
.rsg.open .rst{color:var(--blue)}
.rsb{padding:2px 16px 16px}
.rsdone{width:100%;padding:14px;border-top:1px solid var(--line);
  font-size:14px;font-weight:700;color:var(--blue);background:var(--bg)}
.rsdone:hover{background:var(--blue-l)}
@media (prefers-reduced-motion:reduce){ .rsc{transition:none} }

/* ================= THE FOUR SCREENS =================
   One head for all of them: an optional eyebrow, the name in the serif, a line
   saying what is in it, and at most one action. Filters scroll sideways rather
   than wrapping into a block of buttons, which is what made these feel busy. */
.shead{margin:0 0 var(--s4)}
.shrow{display:flex;align-items:flex-end;gap:12px}
.shl{flex:1;min-width:0}
.sheyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:#A79F90}
.shead h2{font-family:var(--serif);font-size:25px;font-weight:700;letter-spacing:-.02em;
  margin:0;color:var(--ink);line-height:1.15}
.sheyebrow + h2{margin-top:4px}
.shead p{margin:4px 0 0;font-size:12.5px;color:var(--ink2);line-height:1.5}
.shbtn{width:36px;height:36px;flex:none;border-radius:11px;display:grid;place-items:center;
  color:var(--ink2);background:var(--bg);
  transition:background var(--t-fast) var(--ease)}
.shbtn:hover{background:var(--line)}
.shbtn.primary{background:var(--blue);color:#fff}
.shbtn.primary:hover{background:var(--blue-d,#164A78)}
.shbtn svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
/* the chips scroll instead of stacking */
.shchips{display:flex;gap:7px;margin-top:13px;overflow-x:auto;padding-bottom:2px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.shchips::-webkit-scrollbar{display:none}
.shchips .chip{white-space:nowrap;flex:none}
.chip.hue{display:flex;align-items:center;gap:7px}
.chip.hue i{width:9px;height:9px;border-radius:50%;flex:none}
.shrows{margin-top:13px}
.shpair{display:flex;gap:8px}
.shpair button{flex:1;padding:10px 0;border-radius:11px;background:var(--blue-l);
  color:var(--blue);font-size:13px;font-weight:600;
  transition:background var(--t-fast) var(--ease)}
.shpair button:hover{background:var(--blue2);color:#fff}
.seg{display:flex;background:var(--blue-l);border-radius:999px;padding:3px}
.seg button{flex:1;padding:9px 6px;border-radius:999px;font-size:13px;font-weight:600;
  color:var(--blue);transition:background var(--t-fast) var(--ease)}
.seg button[aria-selected="true"]{background:var(--blue);color:#fff;
  box-shadow:0 1px 3px rgba(40,32,20,.12)}
[data-theme="dark"] .sheyebrow{color:#9A8B72}
.libwrap .shead h2{color:#fff}
.libwrap .shead p{color:#93A4C2}
.libwrap .shbtn{background:rgba(255,255,255,.08);color:#C6D3E6}
.libwrap .shbtn:hover{background:rgba(255,255,255,.14)}

/* ---------- the shelf: full plates, not squat cards ---------- */
.cover.hasart .cbody{padding:0 12px 13px}
.cover.hasart .ct{font-size:15.5px}
.cover:hover{transform:translateY(-3px);
  box-shadow:0 4px 8px rgba(0,0,0,.28),0 16px 30px rgba(0,0,0,.22)}
.cover:active{transform:scale(.985)}

/* ---------- continue reading, as a plate and a line ---------- */
.cont{align-items:stretch;min-height:0;padding:10px;gap:12px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09)}
.cont:hover{background:rgba(255,255,255,.12)}
.contart{width:52px;height:70px;border-radius:7px;flex:none;object-fit:cover}
.contw{padding:0;gap:3px;justify-content:center}
.contk{font-size:12px;letter-spacing:.14em;color:#8FA6CC}
.contt{font-size:17px;color:#fff}
.contm{font-size:12px;color:#93A4C2}
.contbar{height:3px;margin-top:3px;background:rgba(255,255,255,.16)}
.contbar i{background:var(--brass)}
.contgo{align-self:center;width:auto;color:#7E90AE}

/* ---------- notes, set as notes ---------- */
.nitem{position:relative;margin-bottom:16px;border-radius:4px 12px 4px 4px;
  background:#FCF8EC;overflow:hidden;
  box-shadow:0 1px 2px rgba(60,48,30,.12),0 8px 20px rgba(60,48,30,.10)}
.nitem::before{content:'';position:absolute;left:34px;top:0;bottom:0;width:1px;
  background:rgba(176,120,60,.34)}
.nitem::after{content:'';position:absolute;right:0;top:0;width:22px;height:22px;
  background:linear-gradient(225deg,rgba(60,48,30,.16),transparent 62%)}
.nbody{padding:16px 18px 12px 48px}
[data-theme="dark"] .nitem{background:#1F1C16;
  box-shadow:0 1px 2px rgba(0,0,0,.5),0 8px 20px rgba(0,0,0,.35)}
[data-theme="dark"] .nitem::before{background:rgba(217,180,99,.30)}

/* the note's own parts, on the ruled stock */
.nitem .nr{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:#8A6228;margin-bottom:8px}
.nitem .nq{margin:0 0 10px;font-family:var(--serif);font-size:14px;line-height:1.55;
  color:#5E5545;font-style:italic;
  padding-bottom:10px;border-bottom:1px solid rgba(176,120,60,.22)}
.nitem .nb{margin:0;font-size:14.5px;line-height:1.6;color:#241F17;white-space:pre-wrap}
.nitem .nf{display:flex;align-items:center;gap:12px;margin-top:14px;
  padding-top:10px;border-top:1px solid rgba(176,120,60,.18)}
.nitem .nd{flex:1;font-size:12px;color:#8C8372}
.nitem .nf button{font-size:13px;font-weight:600;color:var(--blue)}
.nitem .nf button.del{color:var(--rose)}
[data-theme="dark"] .nitem .nr{color:#D9B463}
[data-theme="dark"] .nitem .nq{color:#B3A88F;border-bottom-color:rgba(217,180,99,.22)}
[data-theme="dark"] .nitem .nb{color:#E8E1D2}
[data-theme="dark"] .nitem .nf{border-top-color:rgba(217,180,99,.18)}
[data-theme="dark"] .nitem .nd{color:#9A9184}
.pl-eye{padding:8px 12px;border-radius:999px;min-height:40px;min-width:40px;
  display:grid;place-items:center;transition:background var(--t-fast) var(--ease)}
.pl-eye:hover{background:var(--bg)}
.pl-eye svg{width:18px;height:18px;stroke:var(--ink2);fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.pl-eye.on svg{stroke:var(--blue)}
.fol.on{color:var(--ok)}
.rbaa{min-width:44px;min-height:44px;border-radius:11px;background:var(--bg);
  font-family:var(--serif);font-size:15px;font-weight:700;color:var(--ink);
  transition:background var(--t-fast) var(--ease)}
.rbaa:hover{background:var(--line)}
.rbaa.on{background:var(--blue);color:#fff}
.player.live .pl-listen svg{stroke:var(--blue);fill:var(--blue)}
