/* PRINT FOR YOUR STUDY (companion/print.js): the builder (goals/print.css's bar, choices, and work area; the window
   prayer/prayer.css's .pp), and its pieces (the prayer printouts' paper and lines, .pp-piece) */
.bp-in { display: block; width: 100%; min-width: 0; min-height: 42px; box-sizing: border-box; padding: 8px 12px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--ink); font: 16px var(--sans); }
.bp-ta { min-height: 110px; resize: vertical; line-height: 1.45; }
.bp-secs { display: grid; gap: 8px; }
.bp-se { padding: 8px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--bg); }
.bp-se .bp-in { min-height: 38px; border-width: 1px; font-weight: 700; }
.bp-se-r { display: flex; gap: 4px; margin-top: 6px; }
.bp-se-r select { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-raised); color: var(--ink); font: 14px var(--sans); }
.bp-se-r select[data-se="s"] { flex: 0 0 96px; }
.bp-se-r button { flex: none; width: 34px; min-height: 34px; padding: 0; border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-raised); color: var(--ink); font: 700 14px var(--sans); cursor: pointer; }
.bp-se-r button:disabled { opacity: 0.35; cursor: default; }
.bp-add { margin-top: 8px; min-height: 38px; padding: 0 14px; border: 1.5px dashed var(--rule); border-radius: 999px; background: none; color: var(--ink); font: 700 13.5px var(--sans); cursor: pointer; }
.bp-tpl-a { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.bp-sbtn { min-height: 38px; padding: 0 14px; border: none; border-radius: 999px; background: var(--gold); color: var(--on-gold, #1c1a17); font: 800 13.5px var(--sans); cursor: pointer; }
.bp-sbtn.is-soft { background: color-mix(in srgb, var(--ink) 7%, var(--bg)); color: var(--ink); font-weight: 700; }
.bp-mz { margin: -6px 0 14px; }
.bp-kd { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; white-space: nowrap; }
.bp-kd i { width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.bp .gp-hint.is-flash { color: var(--gold); font-weight: 700; }
.bp-how { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-raised); border: 1px solid var(--rule); font: 13.5px/1.5 var(--sans); }
.bp-how b { display: block; margin-bottom: 4px; }
.bp-how ol { margin: 0; padding-left: 20px; }
.bp-how p { margin: 0; }

/* notes: their sections */
.bp-ref { font: italic 600 1em Georgia, serif; color: #3d3a35; }
.bp-sec { min-height: 0; overflow: hidden; } /* (a page too full: a section cut short, never run into the next) */
.bp-sec > .pp-lines { min-height: 4.6em; } /* (two lines at least, wherever there are lines) */
.bp-wrow b { white-space: nowrap; }
.pp-lines[data-mark] .pp-ln { display: flex; align-items: flex-end; gap: 1.2mm; padding-bottom: 0.25em; }
.pp-lines[data-mark] .pp-ln b { flex: none; min-width: 1.4em; font-size: 0.85em; color: var(--pp-acc); }
.pp-lines[data-mark="box"] .pp-ln .pp-box { margin-bottom: 0.05em; }
.pp-ln.is-sub { margin-left: 5mm; }
.bp-draw { flex: 1; min-height: 8mm; margin-top: 1mm; border: 0.3mm solid var(--pp-line); border-radius: 2mm; }
.bp-vt { margin: 0.6mm 0 0; font: italic 1em/1.45 Georgia, serif; color: #2b2925; }
.bp-vr { font-weight: 700; font-size: 0.78em; color: #6b655c; }
.bp-vline { margin-top: 1mm; }
.bp-vline .pp-blank { display: flex; white-space: nowrap; }
.bp-vline .pp-blank::after { flex: 1; width: auto; max-width: 30mm; min-width: 8mm; }
.bp-wrows { display: grid; gap: 0.6mm; margin-top: 0.8mm; font-size: 0.9em; }
.bp-wrow { display: grid; grid-template-columns: 6.8em 1fr; gap: 2mm; align-items: baseline; }
.bp-wrow b { font-size: 0.82em; color: #6b655c; text-transform: uppercase; letter-spacing: 0.04em; }
.bp-wl { height: 1.7em; border-bottom: 0.3mm solid var(--pp-line); }
.bp-xrefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(34mm, 1fr)); gap: 0.6mm 3mm; margin-top: 1mm; font-size: 0.9em; }
.bp-x { display: flex; align-items: baseline; gap: 1.2mm; min-width: 0; }
.bp-x i { flex: none; font-style: normal; font-size: 0.8em; color: #6b655c; }
.bp-x .pp-box { align-self: center; }

/* tabs: a strip, folded at its middle over the page's edge; the colored part, past the edge, with its name on both sides */
.pp-piece.bp-piece.is-tabs { background: #fff; } /* (no band of color along its top: the tab is its color) */
.bp-tab { display: grid; height: 100%; font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.bp-tab b { display: grid; place-items: center; overflow: hidden; padding: 0 1mm; background: var(--k); color: #fff; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; text-align: center; }
.bp-tab b.is-back { border-bottom: 0.3mm dotted rgba(255, 255, 255, 0.85); }
.bp-tab b.is-back span { transform: rotate(180deg); }
.bp-tab.is-black b { background: #fff; color: #1d1b18; }
.bp-tab.is-black b.is-back { border-bottom-color: #8f877b; }
.bp-tab i { display: block; }

/* a book's card */
.bp-intro { display: flex; flex-direction: column; gap: 1mm; }
.bp-intro .bp-wrows { gap: 0.8mm; font-size: 0.88em; }
.bp-intro .bp-wrow { grid-template-columns: 6.8em 1fr; }
.bp-then { font-size: 0.86em; color: #3d3a35; }
.bp-then b { display: block; font-size: 0.82em; color: var(--pp-acc); text-transform: uppercase; letter-spacing: 0.05em; }
.bp-piece.is-intro .pp-in { overflow: hidden; }

/* the chart: a box for each chapter */
.bp-chart { flex: 1; display: flex; flex-direction: column; gap: 0.9mm; min-height: 0; }
.bp-cr { display: grid; grid-template-columns: 24mm 1fr; align-items: start; }
.bp-cr > b { font-size: 7.5pt; line-height: var(--b); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1mm; }
.bp-cb { display: flex; flex-wrap: wrap; gap: 0.5mm; }
.bp-cb i { display: grid; place-items: center; box-sizing: border-box; width: var(--b); height: var(--b); border: 0.25mm solid var(--pp-line); border-radius: 0.5mm; font: 600 calc(var(--b) * 0.42)/1 -apple-system, "Segoe UI", system-ui, sans-serif; font-style: normal; color: #9a9387; }
.bp-cb i.is-read { background: color-mix(in srgb, var(--pp-acc) 30%, #fff); border-color: var(--pp-acc); color: #1d1b18; }

/* a memory verse card: folded, the reference outside, the verse inside; or on one side */
.bp-piece.is-verse .pp-in { gap: 0; }
.bp-vc { display: flex; flex-direction: column; height: 100%; }
.bp-vc.is-fold { flex-direction: row; }
.bp-vf, .bp-vb { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.bp-vf { align-items: center; justify-content: center; text-align: center; padding-right: 3mm; }
.bp-vf b { font: italic 600 1.35em/1.2 Georgia, serif; color: var(--pp-acc); }
.bp-vf small { margin-top: 1mm; font-weight: 700; font-size: 0.72em; letter-spacing: 0.08em; color: #6b655c; }
.bp-vb { padding-left: 3mm; border-left: 0.3mm dotted #8f877b; }
.bp-vc p { flex: 1; min-height: 0; overflow: hidden; margin: 0; font: italic 1em/1.42 Georgia, serif; color: #2b2925; }
.bp-vb small { margin-top: 1mm; font-weight: 700; font-size: 0.78em; color: #6b655c; }
.bp-vc:not(.is-fold) > b { margin-top: 1.2mm; font-weight: 800; font-size: 0.9em; color: var(--pp-acc); }
.bp-vc:not(.is-fold) > b small { font-weight: 700; font-size: 0.8em; color: #6b655c; }
.bp-piece.is-verse .bp-vf { padding-left: 0; }
@media print { .bp-piece { zoom: 1 !important; } }
.bp-piece.is-verse:has(.is-fold) .pp-credit { left: 50%; } /* (folded: under the verse, not across the fold) */
.bp-piece.is-verse .bp-vf b { font-size: 1.2em; }

/* commentary: its pages, the verses and the notes on them, run on from page to page (companion/print.js, commPages) */
.bp-piece.is-comm .pp-in { gap: 0; overflow: hidden; }
.bp-piece.is-comm .pp-in > * { flex: none; }
.bp-piece.is-comm .pp-h { margin-bottom: 2.5mm; }
.bp-cm-by { font: 700 0.78em/1.2 -apple-system, "Segoe UI", system-ui, sans-serif; letter-spacing: 0.03em; color: #6b655c; }
.bp-cm-run { display: flex; justify-content: space-between; gap: 4mm; margin-bottom: 2.5mm; padding-bottom: 1mm; border-bottom: 0.25mm solid #d9d2c5; font: 700 0.7em/1.2 -apple-system, "Segoe UI", system-ui, sans-serif; letter-spacing: 0.04em; color: #8a8275; }
.bp-cm-ch { margin: 1.5mm 0 1.5mm; font: italic 600 1.3em/1.2 Georgia, "Times New Roman", serif; color: var(--pp-acc); }
.bp-cm-v { margin: 1.8mm 0 1.4mm; padding-left: 2.4mm; border-left: 0.6mm solid var(--pp-acc); font: italic 1em/1.45 Georgia, "Times New Roman", serif; color: #3d3a35; }
.bp-cm-v b { margin: 0 0.25em 0 0.15em; font: normal 700 0.62em/1 -apple-system, "Segoe UI", system-ui, sans-serif; vertical-align: 0.45em; color: var(--pp-acc); }
.bp-cm-v b:first-child { margin-left: 0; }
.bp-cm-p { margin: 0 0 1.3mm; font: 1em/1.45 Georgia, "Times New Roman", serif; color: #1d1b18; }
.bp-cm-p b { font-weight: 700; }
.bp-cm-none { margin: 1mm 0 2mm; font: italic 1em/1.45 Georgia, "Times New Roman", serif; color: #6b655c; }
.bp-cm-src { margin: -1mm 0 2.5mm; font: 0.72em/1.4 -apple-system, "Segoe UI", system-ui, sans-serif; color: #8a8275; }
