:root {
  --r: 14px;
  --bg: #fbf8f1; --surface: #fffdf8; --ink: #2a2622; --muted: #7a7166; --line: #e7dfce;
  --accent: #9b2c2c; --accent-ink: #fff; --gold: #b08a3e;
  --hl-yellow: rgba(240, 200, 60, .38); --hl-green: rgba(110, 190, 120, .35); --hl-blue: rgba(100, 160, 230, .33); --hl-pink: rgba(235, 120, 160, .32);
  --shadow: 0 8px 30px rgba(40, 30, 10, .14);
  --zoom: 1;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --top: 52px; --tab: 58px; --toc: 292px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sepia"]) { --bg: #17150f; --surface: #1f1c15; --ink: #e9e2d2; --muted: #9a917f; --line: #342f24; --accent: #e07a6e; --accent-ink: #1a0f0d; --gold: #d2ad5e; --shadow: 0 8px 30px rgba(0,0,0,.5); } }
:root[data-theme="dark"] { --bg: #17150f; --surface: #1f1c15; --ink: #e9e2d2; --muted: #9a917f; --line: #342f24; --accent: #e07a6e; --accent-ink: #1a0f0d; --gold: #d2ad5e; --shadow: 0 8px 30px rgba(0,0,0,.5); }
:root[data-theme="sepia"] { --bg: #f1e5cc; --surface: #f7edd8; --ink: #3b2f20; --muted: #85735a; --line: #dccdac; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; padding-top: var(--top); transition: background .2s; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* progress */
#progress { position: fixed; z-index: 60; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); }

/* top bar */
#top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; gap: 4px; padding: 0 max(12px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-family: var(--sans); }
#brand { text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; padding: 6px 8px; white-space: nowrap; overflow: hidden; }
#brand em { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 2px; }
.cross { color: var(--accent); width: 18px; height: 18px; stroke-width: 2.4; }
.spacer { flex: 1; }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .9rem; font-weight: 500; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; line-height: 1.1; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 11px; font-size: .8rem; }
.btn svg { width: 18px; height: 18px; }

/* layout */
#toc { position: fixed; z-index: 55; top: var(--top); bottom: 0; left: 0; width: var(--toc); overflow-y: auto; padding: 14px 10px 90px; background: var(--bg); border-right: 1px solid var(--line); font-family: var(--sans); font-size: .9rem; transition: transform .22s ease; }
#scrim { position: fixed; z-index: 54; inset: 0; background: rgba(0,0,0,.4); }
main { max-width: calc(44rem * var(--zoom)); margin: 0 auto; padding: 28px 20px 120px; outline: none; }
@media (min-width: 960px) {
  main { margin-left: calc(var(--toc) + max(24px, (100vw - var(--toc) - 44rem * var(--zoom)) / 2)); margin-right: auto; padding-top: 40px; }
  .only-narrow { display: none !important; }
}
@media (max-width: 959px) {
  #toc { transform: translateX(-102%); width: min(86vw, 330px); box-shadow: var(--shadow); }
  body.toc-open #toc { transform: none; }
  .only-wide { display: none !important; }
  main { padding-bottom: calc(var(--tab) + 80px); }
  #brand em { display: none; }
}

/* toc */
#toc h4 { margin: 18px 10px 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
#toc a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
#toc a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
#toc a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 500; }

/* tab bar */
#tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); font-family: var(--sans); }
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; text-decoration: none; color: var(--muted); }
#tabbar a svg { width: 22px; height: 22px; }
#tabbar a[aria-current="page"] { color: var(--accent); }
#tabbar .tab-today { font-weight: 600; }

/* typography */
h1, h2, h3 { font-weight: 500; line-height: 1.2; letter-spacing: .005em; }
h1 { font-size: 2.1rem; margin: 0 0 .2em; }
h2 { font-size: 1.5rem; margin: 2em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.lede { color: var(--muted); font-size: 1.05rem; margin: .2em 0 1.2em; }
.sans { font-family: var(--sans); }
.muted { color: var(--muted); }
hr.orn { border: 0; text-align: center; margin: 2.2em 0; color: var(--gold); }
hr.orn::before { content: "❦"; font-size: 1.3rem; }

/* blocks */
.blk { position: relative; margin: 0 0 .85em; }
.blk .txt { display: block; hyphens: manual; text-wrap: pretty; }
.blk.t-c { text-align: center; font-weight: 500; margin-top: 1.4em; }
.blk.t-rubric .txt, .r { color: var(--accent); font-style: italic; font-size: .93em; }
.blk.t-rubric.c .txt { text-align: center; }
.blk.t-rubric { margin-top: 1.1em; }
.blk .bm { position: absolute; left: -34px; top: 2px; width: 28px; height: 28px; border: 0; background: none; border-radius: 8px; cursor: pointer; opacity: 0; color: var(--muted); display: grid; place-items: center; transition: opacity .15s; }
.blk .bm svg { width: 17px; height: 17px; }
.blk:hover .bm, .blk .bm:focus-visible, .blk.saved .bm { opacity: 1; }
.blk.saved .bm { color: var(--accent); }
.blk.saved .bm svg { fill: currentColor; }
@media (max-width: 959px), (hover: none) { .blk .bm { display: none; } .blk.saved::before { content: ""; position: absolute; left: -12px; top: 5px; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); opacity: .7; } }
.blk.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--gold) 28%, transparent); } 100% { background: transparent; } }
.verse { display: grid; grid-template-columns: 2.2em 1fr; gap: 0; }
.verse .vn { font-family: var(--sans); font-size: .62em; color: var(--muted); padding-top: .72em; text-align: right; padding-right: .7em; user-select: none; }
.verse { margin-bottom: .35em; }
.verse.head { display: block; text-align: center; font-style: italic; margin-top: 1.2em; color: var(--muted); }
mark.hl { color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; }
mark.hl.yellow { background: var(--hl-yellow); } mark.hl.green { background: var(--hl-green); } mark.hl.blue { background: var(--hl-blue); } mark.hl.pink { background: var(--hl-pink); }
.psalm-title { text-align: center; margin: 2em 0 .7em; }
.psalm-title h3 { margin: 0; font-size: 1.3rem; }
.psalm-title .latin { font-style: italic; color: var(--muted); }
.gloria { text-align: center; color: var(--muted); font-style: italic; margin: 1em 0 2em; font-size: .95em; }

a.ref { text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 70%, transparent); color: inherit; cursor: help; }
a.ref:hover, a.ref.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* cards and lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.card + .card { margin-top: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); font-family: var(--sans); }
.tile { font-family: var(--sans); display: block; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: .92rem; }
.tile:hover { border-color: var(--gold); transform: translateY(-1px); }
.tile b { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; margin-bottom: 2px; }
.tile span { color: var(--muted); font-size: .82rem; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; font-family: var(--sans); }
.nums a { text-align: center; padding: 8px 0; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .88rem; background: var(--surface); }
.nums a:hover { border-color: var(--accent); color: var(--accent); }
.nums a.now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 999px; font-family: var(--sans); font-size: .85rem; }
.seg a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; font-family: var(--sans); }
.chip { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.chip b { font-weight: 600; color: var(--accent); margin-right: 4px; }
.note { font-family: var(--sans); font-size: .82rem; color: var(--muted); border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; margin: 8px 0; }
.insert { margin: 1.4em -14px; padding: 4px 14px 10px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); border-radius: 0 12px 12px 0; }
.insert > h3 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--gold); margin: 12px 0 4px; font-weight: 600; }
.insert .ref-head { font-size: 1.2rem; margin: 0 0 .6em; }
details.alt { margin: .8em 0; } details.alt summary { cursor: pointer; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 3em; font-family: var(--sans); }
.pager a { flex: 1; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: .85rem; background: var(--surface); }
.pager a small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.pager a:last-child { text-align: right; }
table.t { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .82rem; }
table.t th, table.t td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
table.t tr.now td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.scrollx { overflow-x: auto; margin: 0 calc(-20px / var(--zoom)); padding: 0 calc(20px / var(--zoom)); }
@media (max-width: 640px) { table.t { min-width: 560px; } }
.saved-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saved-item a.go { flex: 1; text-decoration: none; }
.saved-item .lab { font-family: var(--sans); font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.saved-item .snip { margin-top: 3px; }
.saved-item .snip mark { padding: 1px 3px; border-radius: 3px; color: inherit; }
.empty { text-align: center; color: var(--muted); padding: 3em 1em; font-family: var(--sans); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: .92rem; }
.row small { display: block; color: var(--muted); }
select, input[type=range] { font: inherit; accent-color: var(--accent); }
select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.loading { color: var(--muted); font-family: var(--sans); }

/* popover (reference text) */
#pop { position: fixed; z-index: 80; width: min(420px, calc(100vw - 24px)); max-height: min(60vh, 440px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .98rem; line-height: 1.5; }
#pop .ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 8px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: .8rem; }
#pop .ph b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
#pop .ph a { color: var(--accent); text-decoration: none; white-space: nowrap; }
#pop .pb { overflow-y: auto; padding: 10px 14px 14px; }
#pop .pb p { margin: 0 0 .5em; }
#pop sup { font-family: var(--sans); font-size: .62em; color: var(--muted); margin-right: 3px; }
#pop .more { color: var(--muted); font-family: var(--sans); font-size: .8rem; }
@media (max-width: 640px) { #pop { left: 8px !important; right: 8px; top: auto !important; bottom: calc(var(--tab) + 8px + env(safe-area-inset-bottom)); width: auto; max-height: 52vh; } }

/* highlight toolbar */
#hl { position: fixed; z-index: 90; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--ink); color: var(--bg); border-radius: 999px; box-shadow: var(--shadow); font-family: var(--sans); font-size: .8rem; }
#hl button { border: 0; background: none; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: inherit; }
#hl button.dot { width: 22px; height: 22px; margin: 3px; border: 2px solid rgba(255,255,255,.55); }
#hl .dot.yellow { background: #f0c83c; } #hl .dot.green { background: #6ebe78; } #hl .dot.blue { background: #64a0e6; } #hl .dot.pink { background: #eb78a0; }
#hl button.txtbtn { width: auto; padding: 0 10px; border-radius: 999px; white-space: nowrap; }
#hl button:hover { background: rgba(255,255,255,.16); }
#hl .sep { width: 1px; height: 18px; background: currentColor; opacity: .3; }
#hl svg { width: 16px; height: 16px; }

#toast { position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab) + 20px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-family: var(--sans); font-size: .85rem; box-shadow: var(--shadow); }
@media (min-width: 960px) { #toast { bottom: 24px; } }

/* search */
dialog#search { width: min(640px, calc(100vw - 20px)); max-height: 78vh; margin-top: 8vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
dialog#search::backdrop { background: rgba(0,0,0,.4); }
#q { width: 100%; padding: 18px 20px; font: 1.1rem var(--sans); background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; outline: none; }
#results { overflow-y: auto; max-height: calc(78vh - 62px); font-family: var(--sans); }
#results a { display: block; padding: 11px 20px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .9rem; }
#results a:hover, #results a.sel { background: color-mix(in srgb, var(--accent) 9%, transparent); }
#results a b { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 500; }
#results a span { color: var(--muted); font-size: .82rem; }
#results mark { background: var(--hl-yellow); color: inherit; border-radius: 2px; }
#results .none { padding: 24px; color: var(--muted); text-align: center; }

@media print {
  #top, #toc, #tabbar, #progress, #hl, #pop, #toast, .pager, .blk .bm { display: none !important; }
  body { padding: 0; background: #fff; color: #000; font-size: 12pt; } main { margin: 0; max-width: none; padding: 0; }
  mark.hl { background: #eee; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* home sections, install card */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2em 0 .6em; }
.sec-head h2 { margin: 0; }
.sec-head a { font-family: var(--sans); font-size: .85rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.mini-list { font-family: var(--sans); }
.mini-list .saved-item { padding: 12px 0; }
.mini-list .saved-item:first-child { padding-top: 4px; }
.mini-list .snip { font-family: var(--serif); font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-empty { font-family: var(--sans); font-size: .88rem; color: var(--muted); padding: 10px 0 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: .9rem; }
.quick .seg a { padding: 6px 12px; cursor: pointer; }
.quick .sizes { display: flex; gap: 6px; }
.quick .sizes button { width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: var(--serif); }
.link-card { display: flex; align-items: center; gap: 14px; }
.link-card:hover { border-color: var(--gold); }
.link-card b { margin-bottom: 2px; }
.link-card .arrow { margin-left: auto; color: var(--muted); font-size: 1rem; }
.panel { font-family: var(--sans); font-size: .92rem; }
.panel h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin: 0 0 .25em; }
.panel .desc { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.install .status { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
.install .status i { width: 8px; height: 8px; border-radius: 50%; background: #5aa469; display: inline-block; }
.install ol { margin: 10px 0 14px; padding-left: 1.3em; } .install li { margin: 6px 0; }
.install details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.install summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.install .plat { margin: 12px 0 0; } .install .plat h4 { margin: 0 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.install .glyph { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Today: simple reading */
details.alt-canticle { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
details.alt-canticle > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; cursor: pointer; padding: 11px 14px; font-family: var(--sans); font-size: .88rem; border-radius: var(--r); }
details.alt-canticle > summary::-webkit-details-marker { display: none; }
details.alt-canticle > summary::before { content: ""; flex: none; align-self: center; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
details.alt-canticle[open] > summary::before { transform: rotate(45deg); }
details.alt-canticle > summary:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.alt-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.alt-name { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.alt-ref { margin-left: auto; color: var(--muted); font-size: .8rem; }
details.alt-canticle > .blk { margin: .2em 14px 1em; }
details.alt-canticle > .sentences { padding: .3em 14px .2em; border-top: 1px solid var(--line); }
details.alt-canticle > .sentences .blk { margin: .9em 0; }
details.alt-canticle > .sentences .blk:last-child { margin-bottom: .5em; }
.chip { cursor: pointer; font: inherit; font-family: var(--sans); font-size: .8rem; color: inherit; }
.chip span { color: var(--muted); }

main > * { zoom: var(--zoom); }
/* text size: four steps, whole reading area scales at once */
.size-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-family: var(--sans); }
.size-opts button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; color: var(--ink); }
.size-opts button b { font-family: var(--serif); font-weight: 500; line-height: 1; }
.size-opts button span { font-size: .7rem; color: var(--muted); }
.size-opts button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.size-opts.compact button { padding: 6px 4px; } .size-opts.compact button span { display: none; }
.preview { margin: 1em 0 0; }

h2.reading-h { font-size: 1.25rem; margin: 1.8em 0 .15em; }
.reading-ref { margin: 0 0 .8em; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* design review: spacing and typography */
.sentences .blk { margin-bottom: .8em; }
.blk.t-title { margin: .2em 0 1em; font-size: 1.7em; line-height: 1.2; }
.blk.t-sub { margin: 0 0 1.4em; font-weight: 400; font-style: italic; color: var(--muted); }
.blk.t-title + .blk.t-sub { margin-top: -1.35em; }
h1 + .blk, h1 + .lede + .blk, .eyebrow + h1 + .blk { margin-top: 1.1em; }
table.t td a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
table.t td a:hover { color: var(--accent); border-color: var(--accent); }
table.t td { line-height: 1.5; }
.insert .blk:last-child { margin-bottom: .4em; }

/* lines within versicles, responses and creeds */
.ln { display: block; }
.ln + .ln { margin-top: .15em; }
.ln.resp { padding-left: 1.5em; }
.ln.resp + .ln:not(.resp) { margin-top: .7em; }
.blk.spaced .ln + .ln { margin-top: .5em; }

/* Table of Kindred: two columns */
.kindred { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em 2em; margin: 1.5em 0; }
.kindred h3 { font-style: italic; font-weight: 400; font-size: 1em; margin: 0 0 .6em; }
.kindred ul { list-style: none; margin: 0; padding: 0; }
.kindred li { padding: .12em 0; }
@media (max-width: 560px) { .kindred { grid-template-columns: 1fr; } }

/* Articles of Religion: contents with jump links */
.art-toc { margin: 1em 0 2em; padding: 0; list-style: none; columns: 2; column-gap: 2em; }
.art-toc li { break-inside: avoid; padding: .15em 0; }
.art-toc li::before { content: attr(value) ". "; color: var(--muted, inherit); }
.art-toc a { text-decoration: none; }
.art-toc a:hover { text-decoration: underline; }
[id^="article-"] { scroll-margin-top: 4.5em; }
@media (max-width: 640px) { .art-toc { columns: 1; } }
