/* Ezra’s Desk: a clean page to write on. The words are the design; everything else stays thin and quiet.
   Colour schemes are only these variables, and tests/contrast.py measures every pair (WCAG 2.2). */
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-wght-normal.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-wght-italic.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root, [data-theme="day"] {
  --page: #ffffff; --side: #f6f6f3; --ink: #1a1d23; --soft: #555a64; --rule: #e2e2dc; --line: #85888f; --accent: #7b1e2b; --accent-ink: #ffffff;
  --sel: #efe6d0; --hit: #f7e08a; --christ: #a3172a; --gold: #f8ecba; --rose: #f9dfdf; --blue: #dbe8f5;
  --c-red: #a3172a; --c-blue: #1c4f94; --c-green: #20613a; --c-purple: #6a3492; --c-brown: #754a12; --h-yellow: #fbeb9e; --h-green: #d3eed3; --h-blue: #d3e6fa; --h-pink: #fbdbe6; color-scheme: light; }
[data-theme="night"] {
  --page: #16181c; --side: #1d2025; --ink: #e9e6de; --soft: #aeada6; --rule: #31353c; --line: #7d828b; --accent: #eaa0a6; --accent-ink: #1c1114;
  --sel: #3b3522; --hit: #4e400c; --christ: #ff9ea6; --gold: #443b1b; --rose: #4b282e; --blue: #22374d;
  --c-red: #ff9ea6; --c-blue: #9cc7fa; --c-green: #93d6a5; --c-purple: #d3b2f5; --c-brown: #e6bd85; --h-yellow: #4f430f; --h-green: #1f4429; --h-blue: #1f3d5c; --h-pink: #562a3c; color-scheme: dark; }
[data-theme="parchment"] {
  --page: #f7eedb; --side: #efe3c9; --ink: #33271a; --soft: #614d35; --rule: #dccdad; --line: #8d7756; --accent: #7a2c14; --accent-ink: #fff8ea;
  --sel: #e8d5a6; --hit: #f1d067; --christ: #95182a; --gold: #f0d98f; --rose: #f2cfc2; --blue: #d5dfe0;
  --c-red: #95182a; --c-blue: #1d4a82; --c-green: #205632; --c-purple: #602f84; --c-brown: #6a400c; --h-yellow: #f6df84; --h-green: #d6e4b9; --h-blue: #d2e1e8; --h-pink: #f5d2cf; color-scheme: light; }
[data-theme="sage"] {
  --page: #edf2e8; --side: #e1e9da; --ink: #1c2920; --soft: #435546; --rule: #c9d5c1; --line: #6c806d; --accent: #1d5738; --accent-ink: #ffffff;
  --sel: #cfe0c3; --hit: #eadb7d; --christ: #97172a; --gold: #ece2a4; --rose: #f0d5d0; --blue: #cfe0ea;
  --c-red: #97172a; --c-blue: #1b4a86; --c-green: #17532f; --c-purple: #5f2f86; --c-brown: #67400f; --h-yellow: #f2e694; --h-green: #c6e3bd; --h-blue: #cde1f0; --h-pink: #f3d5dc; color-scheme: light; }
[data-theme="harbour"] {
  --page: #10213a; --side: #172b47; --ink: #e8eef6; --soft: #adc0d6; --rule: #2a4163; --line: #7690b0; --accent: #a5cdf7; --accent-ink: #0c1a2e;
  --sel: #2b4a70; --hit: #4f430c; --christ: #ffadb3; --gold: #4c4520; --rose: #53303f; --blue: #23507a;
  --c-red: #ffadb3; --c-blue: #a5cdf7; --c-green: #9bdcb0; --c-purple: #d9bdf8; --c-brown: #ecc792; --h-yellow: #544a14; --h-green: #1f4d3a; --h-blue: #23507a; --h-pink: #5b3049; color-scheme: dark; }
[data-theme="ink"] {
  --page: #ffffff; --side: #ffffff; --ink: #000000; --soft: #262626; --rule: #000000; --line: #000000; --accent: #00307e; --accent-ink: #ffffff;
  --sel: #cfe3ff; --hit: #ffe45c; --christ: #8a0014; --gold: #fff0a3; --rose: #ffe0e0; --blue: #dcecff;
  --c-red: #8a0014; --c-blue: #00307e; --c-green: #004a1c; --c-purple: #4d0f7d; --c-brown: #573200; --h-yellow: #fff0a3; --h-green: #d4f7d4; --h-blue: #dcecff; --h-pink: #ffe0ec; color-scheme: light; }
[data-theme="beacon"] {
  --page: #000000; --side: #000000; --ink: #ffffff; --soft: #e2e2e2; --rule: #ffffff; --line: #ffffff; --accent: #ffe600; --accent-ink: #000000;
  --sel: #003a70; --hit: #5c4a00; --christ: #ffb3ba; --gold: #453a00; --rose: #561722; --blue: #003a70;
  --c-red: #ffb3ba; --c-blue: #a8d4ff; --c-green: #a1f0b4; --c-purple: #e2c6ff; --c-brown: #ffd297; --h-yellow: #453a00; --h-green: #00401a; --h-blue: #003a70; --h-pink: #561736; color-scheme: dark; }
:root { --size: 21px; --serif: "EB Garamond", "Garamond", Georgia, serif; --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif; --read: var(--serif); --vh: 100dvh; --vt: 0px; --share: 42%; accent-color: var(--accent); }
:root[data-face="sans"] { --read: var(--sans); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; overflow: hidden; background: var(--page); }
body { margin: 0; height: 100%; overflow: hidden; background: var(--page); color: var(--ink); font: 17px/1.5 var(--sans); overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
p, figure { margin: 0; } a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a.button { cursor: pointer; background: none; border: 0; padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; text-align: left; text-decoration: none; touch-action: manipulation; }
.set button, dialog .foot button, dialog .foot a, .after button, .do button, .row > button, .row > a.button, .ver > button, .shead button, .shead a { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .28em; }
button:hover, a.button:hover { color: var(--accent); }
button:disabled { opacity: .38; cursor: default; color: inherit; }
button.solid { background: var(--accent); color: var(--accent-ink); padding: 8px 18px; font-weight: 500; text-decoration: none; }
button.solid:hover { color: var(--accent-ink); filter: brightness(1.12); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
input, select, textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 2px; min-height: 44px; font-size: max(16px, 1em); min-width: 0; }
input:not([type=checkbox], [type=range], [type=date], [type=file]) { -webkit-appearance: none; appearance: none; } select { -webkit-appearance: none; appearance: none; padding-right: 22px; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 10px center / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 5px center / 5px 5px no-repeat; } option { background: var(--page); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--soft); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
input[type=checkbox] { min-height: 0; width: 20px; height: 20px; margin: 0 9px 0 0; flex: none; } input[type=range] { border: 0; padding: 0; width: 220px; }
label.check { display: inline-flex; align-items: center; min-height: 44px; margin-right: 22px; }
.i { width: 21px; height: 21px; flex: none; } .ib { padding: 0; width: 44px; justify-content: center; flex: none; }
.ib[aria-pressed=true] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.gap { flex: 1; } .muted { color: var(--soft); } .small { font-size: .9rem; } .error { color: var(--christ); min-height: 1.5em; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; } .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg { display: inline-flex; flex-wrap: wrap; } .seg button { color: var(--soft); text-decoration: none; padding-inline: 2px; margin-right: 18px; box-shadow: none; } .seg button[aria-pressed=true] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.field { display: block; margin-top: 10px; } .field > span { display: block; font-size: .92rem; color: var(--soft); } .field input:not([type=range]) { width: 100%; }
.empty { font: italic 1.2rem/1.5 var(--serif); color: var(--soft); padding: 24px 0; }

/* the shell: list of studies | study | Bible and Message */
#shell { position: fixed; left: 0; right: 0; top: var(--vt); height: var(--vh); display: flex; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
#side { width: 300px; flex: none; background: var(--side); border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: env(safe-area-inset-top) 14px env(safe-area-inset-bottom); }
#shade { position: absolute; inset: 0; z-index: 14; background: rgb(0 0 0 / .42); }
@media (max-width: 1199px) { #side { position: absolute; z-index: 15; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); padding-left: max(14px, env(safe-area-inset-left)); } }
.sidehead { display: flex; justify-content: space-between; align-items: center; min-height: 52px; } .brand { font: 600 1.45rem var(--serif); padding-left: 4px; }
#side .new { font-weight: 700; padding-inline: 4px; } #side > input { margin: 2px 4px 6px; }
#side .list { flex: 1; overflow: auto; overscroll-behavior: contain; margin: 0 -6px; } #side .list > p { padding: 10px; }
#side h3 { font: 500 .88rem var(--sans); color: var(--soft); padding: 16px 10px 3px; } #side ul { list-style: none; margin: 0; padding: 0; }
#side li button { display: block; width: 100%; padding: 7px 10px; } #side li b { display: block; font: 600 1.12rem/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #side li small { display: block; color: var(--soft); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
#side [aria-current] { background: var(--sel); } #side [aria-current] small { color: var(--ink); }
.sidefoot { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; padding: 4px 0; } .sidefoot button, .sidefoot a.button { padding-inline: 4px; font-size: .98rem; }

#desk { flex: 1; min-width: 0; display: flex; flex-direction: column; } #desk.beside { flex-direction: row; }
#work { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
#panel { flex: none; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--side); }
#desk[data-panel=half] #panel { flex-basis: var(--share); } #desk[data-panel=full] #work, #desk[data-panel=full] #divide { display: none; } #desk[data-panel=full] #panel { flex: 1; padding-top: env(safe-area-inset-top); }
#divide { display: none; flex: none; background: var(--rule); position: relative; touch-action: none; }
#desk[data-panel=half] #divide { display: block; height: 1px; cursor: row-resize; } #desk[data-panel=half].beside #divide { height: auto; width: 1px; cursor: col-resize; }
#divide::before { content: ""; position: absolute; inset: -11px 0; z-index: 3; } .beside #divide::before { inset: 0 -11px; }
#divide::after { content: ""; position: absolute; left: 50%; top: -2px; width: 44px; height: 5px; margin-left: -22px; background: var(--line); z-index: 3; } .beside #divide::after { left: -2px; top: 50%; width: 5px; height: 44px; margin: -22px 0 0; }
.dragging { user-select: none; -webkit-user-select: none; }
/* minimized: one thin strip */
#desk[data-panel=min] #panel { border-top: 1px solid var(--rule); } #desk[data-panel=min].beside { flex-direction: column; }
#desk[data-panel=min] :is(.pfind, .pmain, .selbar, .tabs), #desk[data-keys=work] #panel :is(.pfind, .pmain, .selbar, .tabs) { display: none; }
.place { display: none; font: 600 1.1rem var(--serif); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #desk[data-panel=min] .place, #desk[data-keys=work] .place { display: block; }
#desk[data-keys=work][data-panel=half] #panel { flex-basis: auto; } #desk[data-keys=work] #divide::after { display: none; }
#desk[data-keys=panel][data-panel=half] #work, #desk[data-keys=panel][data-panel=half] #divide { display: none; } #desk[data-keys=panel][data-panel=half] #panel { flex: 1; padding-top: env(safe-area-inset-top); }

/* the study */
#top { display: flex; align-items: center; padding: env(safe-area-inset-top) 8px 0; min-height: 52px; flex: none; } #saved { color: var(--soft); font-size: .9rem; padding-left: 8px; white-space: nowrap; overflow: hidden; }
.named { width: auto; padding: 0 11px; gap: 7px; } @media (max-width: 759px) { .named span { display: none; } .named { width: 44px; padding: 0; } } .beside[data-panel=half] .named span { display: none; } .beside[data-panel=half] .named { width: 44px; padding: 0; }
@media (max-width: 400px) { #saved { display: none; } #top { padding-inline: 2px; justify-content: space-between; } }
#status { background: var(--sel); padding: 5px 20px; font-size: .94rem; flex: none; }
#page { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet { max-width: calc(var(--size) * 33); min-height: 100%; margin: 0 auto; padding: clamp(14px, 4vh, 54px) clamp(20px, 5vw, 48px) 0; display: flex; flex-direction: column; }
textarea.title { font: 600 calc(var(--size) * 1.72)/1.18 var(--serif); border: 0; box-shadow: none !important; padding: 0; resize: none; overflow: hidden; width: 100%; min-height: 0; flex: none; } textarea.title::placeholder { color: var(--soft); }
button.facts { color: var(--soft); padding: 2px 0; min-height: 34px; align-self: start; }
.hint { color: var(--soft); align-self: start; padding: 10px 0; margin-top: 18px; white-space: normal; } .hint b { font: 600 1.1rem var(--serif); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .25em; display: inline; }
.pad { flex: 1; min-height: 32vh; cursor: text; } .mount { margin-top: calc(var(--size) * .55); flex: none; }

/* the words themselves: in the editor and at the pulpit */
.prose { font: var(--size)/1.58 var(--read); outline: 0; position: relative; word-wrap: break-word; white-space: pre-wrap; white-space: break-spaces; -webkit-font-variant-ligatures: none; font-variant-ligatures: none; font-feature-settings: "liga" 0; caret-color: var(--accent); }
.prose > * + * { margin-top: .62em; } .prose :where(p) { margin: 0; } .prose p + p { margin-top: .5em; }
.prose h2 { font-size: 1.36em; margin-top: 1.15em; } .prose h3 { font-size: 1.16em; margin-top: 1em; } .prose h4 { font-size: 1em; font-style: italic; margin-top: .9em; } .prose > :first-child { margin-top: 0; }
.prose .empty::before { content: attr(data-placeholder); color: var(--soft); float: left; height: 0; pointer-events: none; }
.prose :where(ul, ol) { margin: 0; } .prose ul, .prose ol { padding-left: 1.5em; } .prose li + li { margin-top: .28em; } .prose li > * + * { margin-top: .28em; } .prose ul.tasks { list-style: none; padding-left: 0; } .prose ul.tasks ul.tasks { padding-left: 1.6em; }
.prose ul.tasks > li { display: flex; gap: .55em; } .prose ul.tasks > li > input { margin: calc((1.58em - 22px) / 2) 0 0; font-size: inherit; width: 22px; height: 22px; } .prose ul.tasks > li > div { flex: 1; min-width: 0; margin: 0; } .prose li[data-done=true] > div { color: var(--soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.prose blockquote { margin-inline: 0; padding-left: .9em; border-left: 2px solid var(--line); } .prose blockquote.scripture, .prose blockquote.message { border-left: 3px solid var(--accent); }
.prose blockquote.message { border-left-style: double; border-left-width: 5px; } .prose cite { display: block; font: 500 .76em/1.5 var(--sans); color: var(--accent); cursor: pointer; user-select: none; -webkit-user-select: none; padding-bottom: .1em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; } .prose sup, .prose sub { font-size: .66em; line-height: 0; } .prose blockquote sup { color: var(--soft); font-family: var(--sans); }
.prose a { color: var(--accent); text-underline-offset: .18em; } .prose .ref { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.al-center { text-align: center; } .al-right { text-align: right; } .al-justify { text-align: justify; hyphens: auto; } .in-1 { margin-left: 1.6em !important; } .in-2 { margin-left: 3.2em !important; } .in-3 { margin-left: 4.8em !important; } .in-4 { margin-left: 6.4em !important; } .in-5 { margin-left: 8em !important; } .in-6 { margin-left: 9.6em !important; }
.c-red { color: var(--c-red); } .c-blue { color: var(--c-blue); } .c-green { color: var(--c-green); } .c-purple { color: var(--c-purple); } .c-brown { color: var(--c-brown); }
.h-yellow { background: var(--h-yellow); } .h-green { background: var(--h-green); } .h-blue { background: var(--h-blue); } .h-pink { background: var(--h-pink); }
.s-small { font-size: .8em; } .s-large { font-size: 1.25em; } .s-xlarge { font-size: 1.6em; }
.prose figure { margin-block: .8em; } .prose figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; } .prose figure[data-size=small] img { max-width: 34%; } .prose figure[data-size=medium] img { max-width: 64%; }
.prose figure.missing { border: 1px dashed var(--line); padding: 14px; } .missing img { display: none !important; } .missing::after { content: attr(data-missing); font: 1rem var(--sans); color: var(--soft); }
.attached { display: flex; align-items: center; border: 1px solid var(--line); font: 1rem var(--sans); } .attached button { flex: 1; min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .2em; } .attached small { color: var(--soft); padding-right: 12px; white-space: nowrap; }
.ProseMirror-selectednode { outline: 3px solid var(--accent); outline-offset: 2px; } .prose .found { background: var(--hit); } .prose .found.now { outline: 2px solid var(--accent); } .drop { background: var(--accent); }
.prose table { border-collapse: collapse; width: 100%; table-layout: fixed; overflow: hidden; } .prose td, .prose th { border: 1px solid var(--line); padding: .35em .5em; vertical-align: top; text-align: left; position: relative; } .prose th { background: var(--side); font-weight: 600; } .prose .selectedCell { background: var(--sel); }
.ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; } .ProseMirror-gapcursor::after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid var(--ink); } .ProseMirror-focused .ProseMirror-gapcursor { display: block; }
.ProseMirror-hideselection *::selection { background: transparent; } ::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* formatting bar, find, pop-ups */
#tools { display: flex; flex: none; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; border-top: 1px solid var(--rule); padding: 2px 6px max(2px, env(safe-area-inset-bottom)); background: var(--page); } #tools::-webkit-scrollbar { display: none; } #tools > :first-child { margin-left: auto; } #tools > :last-child { margin-right: auto; }
#desk[data-panel=half]:not(.beside) #tools, #desk[data-panel=min] #tools, #desk[data-keys=work] #tools { padding-bottom: 2px; } #tools .i { width: 20px; height: 20px; } .sep { width: 1px; background: var(--rule); margin: 9px 5px; flex: none; } .stylepick { white-space: nowrap; flex: none; }
#finder { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; border-top: 1px solid var(--rule); padding: 4px 14px; flex: none; } #finder input { flex: 1 1 130px; max-width: 260px; }
.pop { position: fixed; z-index: 40; background: var(--page); border: 1px solid var(--line); box-shadow: 0 6px 26px rgb(0 0 0 / .2); max-width: calc(100vw - 16px); max-height: 80vh; overflow: auto; } .menu { display: grid; padding: 5px; min-width: 190px; } .menu p { padding: 4px 10px 6px; }
.menu .st-h1 { font: 600 1.45rem var(--serif); } .menu .st-h2 { font: 600 1.22rem var(--serif); } .menu .st-h3 { font: italic 600 1.08rem var(--serif); } .dots { display: flex; flex-wrap: wrap; padding: 5px; } .dots button { min-width: 48px; justify-content: center; font-weight: 700; margin: 2px; } .dots .none { font-weight: 400; } .dots button[class*="c-"]:hover { color: inherit; }
#bubble { position: fixed; z-index: 12; display: flex; background: var(--ink); color: var(--page); } #bubble button { color: inherit; min-height: 42px; white-space: nowrap; } #bubble button[aria-pressed=true] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* Bible and Message */
.phead { display: flex; align-items: center; min-height: 48px; padding: 0 6px 0 14px; flex: none; } .tabs { display: flex; } .tabs button { color: var(--soft); padding-inline: 4px; margin-right: 14px; font-size: 1.06rem; } .tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.pfind { display: flex; align-items: center; padding: 0 14px 4px 4px; flex: none; } .pfind input { flex: 1; }
.pmain { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; } .reading { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px clamp(16px, 4cqi, 40px) 60px; outline: 0; } .pmain { container-type: inline-size; }
.reading > * { max-width: calc(var(--size) * 33); margin-inline: auto; }
.detail { position: absolute; inset: auto 0 0 0; max-height: 74%; min-height: 40%; overflow: auto; overscroll-behavior: contain; background: var(--page); border-top: 2px solid var(--accent); padding: 6px clamp(14px, 4cqi, 26px) 40px; box-shadow: 0 -8px 26px rgb(0 0 0 / .16); } .detail header { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -6px; background: var(--page); } .detail h2 { font-size: 1.35rem; }
@container (min-width: 900px) { .detail { inset: 0 0 0 auto; width: 40%; max-height: none; border-top: 0; border-left: 1px solid var(--rule); box-shadow: none; } .reading:has(+ .detail:not([hidden])) { margin-right: 40%; } }
.selbar { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); background: var(--page); padding: 3px 6px max(3px, env(safe-area-inset-bottom)) 14px; flex: none; } .selbar b { font: 600 1.08rem var(--serif); white-space: nowrap; margin-right: 9px; } .selbar button { white-space: nowrap; flex: none; padding-inline: 8px; } .selbar button.solid { padding-inline: 14px; margin-right: 4px; } .selbar .ib { margin-left: auto; position: sticky; right: -6px; background: var(--page); }
.chead { display: flex; align-items: center; } .chead .pickb { font: 600 1.5rem var(--serif); padding-inline: 6px; } .chead .ib:first-child { margin-left: -12px; } .filters, .shead { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; } .filters input, .shead input { flex: 1 1 130px; } .stitle { font-size: 1.6rem; padding-top: 6px; } .shead { margin-bottom: 14px; }
.after { display: flex; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 6px; } .after button { padding-inline: 0; }
.scripture { font: var(--size)/1.6 var(--read); } .scripture .sect { font: italic 600 1.06em/1.3 var(--serif); margin: 1.4em 0 .3em; } .scripture .cross { font-size: .8em; color: var(--soft); margin: -.1em 0 .4em; } .scripture .title { font: italic .92em/1.4 var(--serif); color: var(--soft); margin: .2em 0 .7em; } .scripture .para { margin: 0 0 .75em; }
.prose .scripture, .prose.scripture { font: inherit; }
.v, .p { cursor: pointer; scroll-margin: 60px; } .scripture.lines .v { display: block; margin: 0 -8px; padding: .14em 8px .14em calc(1.9em + 8px); text-indent: -1.9em; } .scripture.lines .v sup.n { display: inline-block; text-indent: 0; width: 2.57em; font-size: .74em; margin-right: 0; vertical-align: .12em; }
.v sup.n { font: 500 .6em/1 var(--sans); color: var(--soft); margin-right: .32em; vertical-align: .55em; font-variant-numeric: tabular-nums; }
.v.gold, .p.gold .t { background: var(--gold); } .v.rose, .p.rose .t { background: var(--rose); } .v.blue, .p.blue .t { background: var(--blue); } .v.on, .p.on { background: var(--sel) !important; } .v.on sup.n, .v.on .mk, .p.on .num { color: var(--ink); }
.red { color: var(--christ); } .added { font-style: italic; } .mk { font: 500 .62em/1 var(--sans); color: var(--accent); margin-left: .35em; vertical-align: .5em; } .star { color: var(--accent); font-size: .8em; } .hasnote::after { content: "✎"; font: .7em var(--sans); color: var(--accent); margin-left: .3em; }
mark { background: var(--hit); color: inherit; } mark.now { outline: 2px solid var(--accent); }
.sermon { font: var(--size)/1.58 var(--read); } .p { position: relative; margin: 0 -8px; padding: .28em 8px .28em calc(2.3em + 8px); } .p .num { position: absolute; left: 0; top: 0; min-height: 0; padding: .72em 8px; font: 500 .68em/1.2 var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; } .p.s { margin-left: 1.2em; font-style: italic; } .p.h { font-size: 1.3em; font-weight: 600; text-align: center; padding-top: 1em; }
.lk { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; } .lk.k1 { text-decoration-color: var(--accent); text-decoration-thickness: 2px; } .lk.k3, .lk.k4 { text-decoration-style: dotted; text-decoration-thickness: 2px; } .lk:hover { color: var(--accent); }
.sermons { list-style: none; padding: 0; } .sermons h3 { font-size: 1.35rem; padding: 18px 0 4px; border-bottom: 1px solid var(--rule); } .sermons li { content-visibility: auto; contain-intrinsic-size: auto 62px; } .sermons button { display: block; width: 100%; padding: 8px 0; border-bottom: 1px solid var(--rule); } .sermons b { display: block; font: 600 1.15rem/1.25 var(--serif); } .sermons span { color: var(--soft); font-size: .92rem; }
.hits { margin: 0; padding: 0; } .hits > li { list-style: none; padding: 12px 0 4px; border-bottom: 1px solid var(--rule); } .where { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; font-size: .93rem; color: var(--soft); } .where .name { color: var(--ink); font-weight: 700; font-size: 1rem; padding: 0; min-height: 30px; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .2em; } .tags { font-style: italic; }
.txt { font: calc(var(--size) * .92)/1.5 var(--read); overflow-wrap: anywhere; } .txt.long { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; } .txt.nt { white-space: pre-wrap; } .do button { padding: 4px 0; margin-right: 22px; font-size: .95rem; color: var(--soft); }
.kinds { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: .95rem; } .ver { padding: 8px 0 4px; border-bottom: 1px solid var(--rule); } .ver b { font: 500 .92rem var(--sans); color: var(--soft); } .ver p { font: calc(var(--size) * .95)/1.5 var(--read); } .ver sup { font-size: .6em; color: var(--soft); } .ver > button { padding-inline: 0; }
.options { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: .97rem; } .facets { display: flex; flex-wrap: wrap; font-size: .95rem; } .facets button { padding: 3px 0; margin-right: 15px; min-height: 36px; gap: 4px; color: var(--soft); } .facets small { font-size: .8em; } .facets button[aria-pressed=true] { color: var(--accent); font-weight: 700; }
.reflist { list-style: none; margin: 0; padding: 0; } .reflist button { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-inline: 0; } .reflist small { color: var(--soft); text-align: right; }
.swatch { width: 44px; padding: 0; border: 1px solid var(--line); } .swatch.none { background: var(--page); } .swatch.gold { background: var(--gold); } .swatch.rose { background: var(--rose); } .swatch.blue { background: var(--blue); } .swatch[aria-pressed=true] { outline: 3px solid var(--accent); outline-offset: 1px; } .mynote { width: 100%; min-height: 130px; font: calc(var(--size) * .95)/1.5 var(--read); border: 1px solid var(--line); padding: 10px 12px; margin-top: 12px; resize: vertical; } .saved { color: var(--soft); font-size: .92rem; }

/* dialogs and settings */
dialog { width: min(760px, calc(100vw - 20px)); max-height: min(92dvh, var(--vh)); overflow: auto; overscroll-behavior: contain; border: 0; border-top: 3px solid var(--accent); background: var(--page); color: var(--ink); padding: 20px clamp(18px, 4vw, 34px) 26px; } dialog:focus { outline: 0; } dialog::backdrop { background: rgb(0 0 0 / .5); } dialog.slim { width: min(480px, calc(100vw - 20px)); } dialog h2 { font-size: 1.6rem; margin-bottom: 8px; } dialog h3 { font-size: 1.2rem; margin: 14px 0 4px; } dialog .foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; }
.books { columns: 160px 4; column-gap: 24px; } .books button { width: 100%; border-bottom: 1px solid var(--rule); font: 1.12rem/1.2 var(--serif); padding-inline: 2px; break-inside: avoid; } .chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); } .chapters button { font: 1.2rem var(--serif); justify-content: center; min-height: 50px; }
.dhead { display: flex; justify-content: space-between; align-items: center; } .set section { border-top: 1px solid var(--rule); padding: 4px 0 14px; } .set p { max-width: 62ch; margin: 4px 0; } .set h3 { margin-top: 10px; } .sampletext { font: var(--size)/1.5 var(--read); }
.schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; padding: 4px 0 8px; } .scheme { display: block; padding: 0; background: var(--page); color: var(--ink); border: 1px solid var(--line); text-decoration: none !important; } .scheme:hover { color: var(--ink); } .scheme[aria-pressed=true] { outline: 3px solid var(--accent); outline-offset: 2px; }
.sample { display: flex; align-items: center; justify-content: space-between; font: 600 1.7rem var(--serif); padding: 12px 12px 8px; } .sample i { width: 20px; height: 20px; background: var(--accent); } .schemename { display: block; padding: 5px 12px 8px; font-size: .95rem; background: var(--side); }
#toast { position: fixed; left: 50%; top: calc(var(--vt) + var(--vh) - 96px); translate: -50% 0; z-index: 60; background: var(--ink); color: var(--page); padding: 10px 18px; max-width: 92vw; } #toast button { color: inherit; text-decoration: underline; min-height: 0; padding: 0 0 0 6px; }

/* pulpit */
#pulpit { position: fixed; left: 0; right: 0; top: var(--vt); height: var(--vh); z-index: 30; background: var(--page); display: flex; flex-direction: column; } #pulpit .bar { display: flex; flex-wrap: wrap; align-items: center; padding: env(safe-area-inset-top) clamp(8px, 2vw, 24px) 0; border-bottom: 1px solid var(--rule); } #pulpit .bar button { min-height: 50px; color: var(--soft); } #pulpit .clock { margin-left: auto; font: 500 1.4rem var(--sans); font-variant-numeric: tabular-nums; } #pulpit .timer { font-variant-numeric: tabular-nums; } #pulpit .timer.over { color: var(--christ); font-weight: 700; }
.psheet { flex: 1; overflow: auto; padding: 28px clamp(20px, 6vw, 90px) 45vh; overscroll-behavior: contain; outline: 0; --size: var(--pulpit, 30px); } .psheet > * { max-width: calc(var(--pulpit, 30px) * 32); margin-inline: auto; } .psheet h1 { font-size: calc(var(--pulpit, 30px) * 1.5); } .psheet .sub { color: var(--soft); font-size: calc(var(--pulpit, 30px) * .72); margin-bottom: 1em; } .psheet .prose .ref { text-decoration-thickness: 2px; cursor: pointer; }
.paging { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; } .paging button { width: 66px; height: 66px; justify-content: center; border: 1px solid var(--line); background: var(--page); }
.look { position: absolute; inset: auto 0 0 0; max-height: 66%; overflow: auto; background: var(--side); border-top: 3px solid var(--accent); padding: 8px clamp(20px, 6vw, 90px) calc(26px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgb(0 0 0 / .25); font: var(--pulpit, 30px)/1.45 var(--read); } .look h3 { font-size: .85em; display: flex; justify-content: space-between; align-items: center; } .look button { font: 1.05rem var(--sans); } .look form { display: flex; gap: 14px; } .look input { flex: 1; font: 1.4rem var(--serif); } .look sup { font: .5em var(--sans); color: var(--soft); margin-right: .3em; } .look p { margin: .25em 0; } .look .ref { text-decoration: underline; font-weight: 700; padding: 0; min-height: 0; } .jump button { width: 100%; font: 1.5rem var(--serif); border-bottom: 1px solid var(--rule); padding: 10px 0; } .jump .h3 { padding-left: 1.2em; } .jump .h4 { padding-left: 2.4em; font-style: italic; }
@media (max-width: 600px) { #pulpit .bar button { padding-inline: 7px; font-size: .98rem; } .paging button { width: 56px; height: 56px; } }

/* sign in and help */
html:has(.signin, .help-page) { overflow: auto; } body.signin, body:has(.help-page) { height: auto; min-height: 100dvh; overflow: auto; } .signin { display: grid; place-items: center; padding: 16px; background: #f6f6f3; } .signin form { width: min(400px, 100%); background: #fff; color: #1a1d23; padding: 40px 36px; display: grid; gap: 14px; border-top: 3px solid #7b1e2b; } .signin h1 { font-size: 2.7rem; } .motto { font: italic 1.12rem/1.4 var(--serif); color: var(--soft); } .motto cite { display: block; font: .92rem var(--sans); } .signin button { justify-content: center; }
.help-top { display: flex; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 24px 0; } .help-page { max-width: 760px; margin: 0 auto; padding: 14px 24px 80px; font: 1.16rem/1.6 var(--serif); } .help-page h1 { font-size: 2.5rem; } .help-page h2 { font-size: 1.6rem; margin: 1.5em 0 .4em; padding-top: .5em; border-top: 1px solid var(--rule); } .help-page h3 { font-size: 1.2rem; margin: 1em 0 .2em; } .help-page p, .help-page li { margin-bottom: .5em; } .help-page ul { padding-left: 1.2em; }

@media print {
  html, body { overflow: visible; height: auto; } #shell, #toast, #bubble, .pop, dialog, #pulpit .bar, .paging, .look { display: none !important; } :root, [data-theme] { --page: #fff; --side: #fff; --ink: #000; --soft: #333; --accent: #7b1e2b; --christ: #7b1e2b; --line: #888; } #pulpit { position: static; display: block; height: auto; } .psheet { overflow: visible; padding: 0; --size: 12.5pt; --pulpit: 12.5pt; } .prose :is(blockquote, figure, tr) { break-inside: avoid; } .prose :is(h2, h3, h4) { break-after: avoid; } }

/* the hosted site's own pages: account, people */
.signin p b { overflow-wrap: anywhere; } .signin .button { justify-content: center; } .people form { max-width: 440px; } .people form > button.solid, .madelink .button { margin-top: 14px; } .people .error:empty { display: none; }
.people a.button.solid { background: var(--accent); color: var(--accent-ink); padding: 8px 18px; }
main.people .plist { list-style: none; margin: 22px 0 34px; padding: 0; } .plist li { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: flex-start; padding: 14px 0; margin: 0; border-top: 1px solid var(--rule); } .plist li:last-child { border-bottom: 1px solid var(--rule); } .plist span { overflow-wrap: anywhere; } .plist .row { align-items: flex-start; } .plist .row > * { margin: 0; } .plist button { min-height: 44px; } .plist details { max-width: 250px; } .plist summary { cursor: pointer; padding: 8px 12px; min-height: 44px; }
.madelink h2 { border: 0; margin-top: 8px; padding-top: 4px; }
.madelink { border-left: 3px solid var(--accent); background: var(--side); padding: 6px 20px 20px; margin: 20px 0; }
