/* =====================================================================
   Guides + trust pages (gen/pages_trust.py): /guides/**,
   /about/, /press/, /privacy/, /terms/, /support/, /404.html.
   Built on site.css tokens only; every class is prefixed .tr-.
   Motion: transform/opacity only, inside no-preference.
   ===================================================================== */

/* ---------- shared bits ---------- */
.tr-sec { margin-top: clamp(56px, 7vw, 88px); }
.tr-sec > .h3 { margin-bottom: 14px; }
.tr-sec > .h2 + .lede, .tr-sec > .h3 + .lede { margin-top: 14px; }
.tr-sec__head { margin-bottom: 26px; }
.tr-sec__head .h2 { font-size: clamp(1.95rem, 1.35rem + 2.2vw, 3rem); }
.tr-sec__head .lede { margin-top: 14px; max-width: calc(54 * var(--ch)); }
.tr-kick { margin-bottom: 14px; }
.tr-report { margin-top: 36px; }
.tr-report a { color: var(--gold); }
/* contact address: "(at)/(dot)" hint + "Show email address" (trust.js decodes data-mail on click) */
.tr-mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 100%; }
.tr-mail__addr { font-weight: 650; color: var(--fg); overflow-wrap: anywhere; }
.tr-mail.is-shown .tr-mail__addr { -webkit-user-select: all; user-select: all; }
.tr-mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tr-copy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 650 14px/1 var(--sans);
  color: var(--fg-2); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim), inset 0 1px 0 var(--rim); }
.tr-copy:hover { color: var(--fg); }
/* /support/#report: "The page you came from" (filled by trust.js from a same-site referrer) */
.tr-from:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 1.1em; padding: 14px 16px 14px 18px;
  border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-from > span { font-size: 14px; color: var(--dim); }
.tr-from__url { flex: 1 1 calc(14 * var(--ch)); min-width: 0; font-weight: 650; color: var(--fg); overflow-wrap: anywhere; }
.tr-short { position: relative; padding: 22px clamp(18px, 3vw, 28px) 24px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gold-fill) 13%, transparent), transparent 60%), var(--card);
  box-shadow: inset 0 0 0 1px var(--rim-dim), inset 0 1px 0 color-mix(in srgb, var(--rim) 60%, transparent); }
.tr-short > .card__k { margin-bottom: 12px; }
.tr-short .ticks li { color: var(--fg); }
.tr-list { display: grid; gap: 10px; }
.tr-list li { padding-left: 18px; position: relative; color: var(--fg-2); }
.tr-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-fill); }
.tr-col { padding: 20px 22px 22px; border-radius: var(--radius); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-col > .card__k { margin-bottom: 12px; }
.tr-col--src > .card__k { color: var(--marian); }
.tr-col--src .tr-list li::before { background: var(--marian-fill); }
a.tag:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 11%, transparent); }
.prose .tr-short, .prose .tr-ledger, .prose .tr-begin { margin-top: 1.6em; margin-bottom: 1.6em; }
.prose .tags { margin-top: .8em; }

/* ---------- guides hub ---------- */
.tr-hubcard { padding: 26px 26px 24px; min-height: 196px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.tr-hubcard__g { position: absolute; z-index: -1; right: 20px; top: 8px; font: 600 clamp(4.2rem, 3rem + 4vw, 6.4rem)/1 var(--serif);
  letter-spacing: -.02em; color: var(--gold-fill); opacity: .2; font-variant-numeric: lining-nums; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%); }
.tr-hubcard__g small { font-size: .5em; margin: 0 .08em; vertical-align: .35em; }
.tr-hubcard .card__t { margin-top: 10px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); max-width: calc(19 * var(--ch-serif)); }
.tr-hubcard .card__b { margin-top: 12px; max-width: calc(42 * var(--ch)); }

/* ---------- inline bars (one hue: gold; track = a light step of it) ---------- */
.tr-bar { display: block; height: 6px; margin-top: 7px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--gold-fill) 13%, transparent); }
.tr-bar > i { display: block; height: 100%; width: max(2px, calc(var(--w) * 1%)); border-radius: 0 4px 4px 0; background: var(--gold-fill); }

/* ---------- psalm numbering ---------- */
.tr-glance { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .tr-glance { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; } }
.tr-ledger { display: grid; gap: 8px; }
.tr-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 12px 16px;
  border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-ledger li.is-diff { background: radial-gradient(140% 160% at 50% 0%, color-mix(in srgb, var(--marian-fill) 13%, transparent), transparent 70%), var(--card-2); }
.tr-ledger__n { display: flex; flex-direction: column; min-width: 0; }
.tr-ledger__n small { font: 700 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tr-ledger__n b { font: 600 1.5rem/1.1 var(--serif); color: var(--fg); font-variant-numeric: lining-nums; }
.tr-ledger__n--h { text-align: right; align-items: flex-end; }
.tr-ledger__rel { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px;
  font: 700 13px/1 var(--sans); color: var(--gold); background: color-mix(in srgb, var(--gold-fill) 14%, transparent); }
.is-diff .tr-ledger__rel { color: var(--marian); background: color-mix(in srgb, var(--marian-fill) 16%, transparent); }
.tr-ledger__note { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: var(--dim); text-align: center; }
.tr-strip { display: flex; gap: 2px; height: 14px; margin-top: 18px; }
.tr-strip i { display: block; border-radius: 3px; background: var(--faint); opacity: .7; }
.tr-strip i.plus { background: var(--gold-fill); opacity: 1; }
.tr-strip i.diff { background: var(--marian-fill); opacity: 1; }
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.tr-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tr-legend i { width: 14px; height: 8px; border-radius: 2px; background: var(--faint); }
.tr-legend i.plus { background: var(--gold-fill); } .tr-legend i.diff { background: var(--marian-fill); }
.tr-strip-scale { display: flex; justify-content: space-between; margin-top: 6px; font: 600 12px/1 var(--sans); color: var(--dim); font-variant-numeric: tabular-nums; }

.tr-conv { padding: 22px clamp(18px, 3vw, 26px) 24px; border-radius: var(--radius);
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--gold-fill) 14%, transparent), transparent 62%), var(--card-2);
  box-shadow: inset 0 0 0 1px var(--rim-dim), inset 0 1px 0 var(--rim); }
.tr-conv .seg { margin-top: 14px; max-width: 100%; }
.tr-conv .seg__btn { padding: 0 16px; }
.tr-conv__hint { margin-top: 10px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.tr-conv__row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tr-conv__row label { font: 600 1.35rem/1 var(--serif); color: var(--fg); }
.tr-conv__in { width: 6.2em; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; font: 600 1.5rem/1 var(--serif); color: var(--fg);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-variant-numeric: lining-nums; }
.tr-conv__in:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tr-conv__out { margin-top: 18px; min-height: 3.2em; font: 500 1.3rem/1.35 var(--serif); color: var(--fg); text-wrap: pretty; font-variant-numeric: lining-nums; }
.tr-conv__out b { color: var(--gold); font-weight: 650; }
.tr-conv__out a { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font: 650 15px/1 var(--sans); color: var(--gold); text-decoration: none; }

.tr-uses { display: grid; gap: 14px; }
@media (min-width: 760px) { .tr-uses { grid-template-columns: 1fr 1fr; } }
.tr-uses .tr-col .h4 { font: 600 1.5rem/1.15 var(--serif); }
.tr-uses .tr-col .h4 small { display: block; margin-top: 4px; font: 500 14px/1.4 var(--sans); color: var(--dim); }
.tr-uses .tr-list { margin-top: 14px; }

.tr-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tr-jump a { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; padding: 0 10px; border-radius: 12px; text-decoration: none;
  font: 650 14px/1 var(--sans); color: var(--fg-2); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim); font-variant-numeric: tabular-nums; }
.tr-jump a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 11%, transparent); }
.tr-pscols { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .tr-pscols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tr-pstable th, .tr-pstable td { padding: 5px 12px; height: 44px; vertical-align: middle; }
.tr-pstable thead th { height: auto; padding: 12px 12px 10px; }
.tr-pstable caption { padding-left: 12px; }
.tr-pstable tbody th { width: 4.4em; }
.tr-pstable tbody th a { display: inline-flex; align-items: center; min-width: 44px; min-height: 40px; font: 650 1.2rem/1 var(--serif); color: var(--gold); text-decoration: none; font-variant-numeric: lining-nums; }
.tr-pstable tbody th a:hover { text-decoration: underline; }
.tr-pstable td.tr-h { font: 600 1.12rem/1.3 var(--serif); color: var(--fg); white-space: nowrap; width: 4.8em; font-variant-numeric: lining-nums; }
.tr-pstable td.tr-note { font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.tr-pstable td.tr-note i, .tr-inc { font-style: italic; color: var(--fg-2); }
.tr-famous td:last-child { padding-block: 10px; color: var(--fg); }
.tr-inc { display: block; margin-top: 2px; font-size: 14px; color: var(--dim); }
.tr-pstable tr.is-diff td.tr-h { color: var(--marian); }
.tr-pstable tr:target > * { background: color-mix(in srgb, var(--gold-fill) 16%, transparent); }
@media (prefers-reduced-motion: no-preference) { .tr-pstable tr:target > * { animation: tr-flash 1.6s var(--ease-out); } }
@keyframes tr-flash { from { opacity: .4; } }

/* ---------- the books by the numbers ---------- */
.tr-btables { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .tr-btables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-btable td, .tr-btable th { padding: 11px clamp(10px, 2.4vw, 18px); vertical-align: middle; }
.tr-btable thead th { vertical-align: bottom; }
.tr-btable tbody th a { color: var(--fg); text-decoration: none; font: 600 1.15rem/1.25 var(--serif); font-variant-numeric: lining-nums; }
.tr-btable tbody th a:hover { color: var(--gold); }
.tr-btable .tr-aka { display: block; margin-top: 2px; font: 500 13px/1.35 var(--sans); color: var(--dim); }
.tr-btable .tr-dc { display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--marian-fill); vertical-align: middle; }
.tr-btable td.num { color: var(--fg); }
.tr-btable td.tr-vcell { width: 40%; min-width: 96px; text-align: right; }
.tr-btable td.tr-vcell .tr-bar { margin-left: 0; }
.tr-btable tfoot th, .tr-btable tfoot td { padding: 13px 16px; border-top: 1px solid var(--line-2); font-weight: 650; color: var(--fg); }
.tr-btable tfoot .num { text-align: right; font-variant-numeric: tabular-nums; }
.tr-tot th, .tr-tot td { padding: 12px clamp(10px, 2.4vw, 18px); }
.tr-tot thead th { letter-spacing: .06em; }
.tr-sub { padding-left: 12px; font-weight: 500; color: var(--dim); }
.tr-key { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--dim); }
.tr-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--marian-fill); }
.tr-records { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tr-record { padding: 20px 22px; border-radius: var(--radius); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-record b { display: block; margin-top: 8px; font: 600 2.1rem/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.tr-record p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.tr-record p a { color: var(--fg); }

/* ---------- deuterocanonical books ---------- */
.tr-dcs { display: grid; gap: 16px; }
@media (min-width: 900px) { .tr-dcs { grid-template-columns: 1fr 1fr; } }
.tr-dcb { position: relative; display: flex; flex-direction: column; padding: 24px 24px 18px; border-radius: var(--radius); background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--rim-dim), inset 0 1px 0 color-mix(in srgb, var(--rim) 50%, transparent); }
.tr-dcb__t { margin-top: 4px; font: 600 clamp(1.8rem, 1.5rem + 1vw, 2.3rem)/1.05 var(--serif); }
.tr-dcb__t a { text-decoration: none; }
.tr-dcb__t a:hover { color: var(--gold); }
.tr-dcb__aka { margin-top: 6px; font-size: 14px; color: var(--dim); }
.tr-dcb__intro { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--fg-2); }
.tr-dcb__intro em { font-style: normal; font-weight: 650; color: var(--fg); }
.tr-dcb__v { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tr-dcb__q { font: 500 1.24rem/1.4 var(--serif); color: var(--fg); text-wrap: pretty; }
.tr-dcb__q::before { content: "“"; color: var(--gold-fill); margin-right: 1px; }
.tr-dcb__q::after { content: "”"; color: var(--gold-fill); margin-left: 1px; }
.tr-dcb__v .vref { margin-top: 8px; }
.tr-dcb__foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.tr-dcb__mass { font-size: 13.5px; line-height: 1.45; color: var(--dim); }

/* ---------- where to start ---------- */
.tr-begin { display: grid; gap: 16px; }
@media (min-width: 1000px) { .tr-begin { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tr-bcard { position: relative; display: flex; flex-direction: column; padding: 26px 24px 18px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim), inset 0 1px 0 var(--rim); }
.tr-bcard::before { content: ""; position: absolute; z-index: -1; inset: -30% -20% auto; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-fill) 18%, transparent), transparent); }
.tr-bcard .kicker { margin-bottom: 14px; }
.tr-bcard .verse { --vs: clamp(1.45rem, 1.25rem + .6vw, 1.75rem); }
.tr-bcard__for { margin-top: 18px; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; color: var(--fg-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-bcard__for b { color: var(--fg); }
.tr-bcard__p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--fg-2); }
.tr-bcard__facts { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.tr-bcard .more { margin-top: auto; padding-top: 10px; }
.tr-surprise { display: grid; gap: 8px 28px; align-items: center; margin-top: 16px; padding: 22px 24px; border-radius: 24px;
  background: radial-gradient(120% 160% at 100% 50%, color-mix(in srgb, var(--marian-fill) 14%, transparent), transparent 60%), var(--card-2);
  box-shadow: inset 0 0 0 1px var(--rim-dim); }
@media (min-width: 760px) { .tr-surprise { grid-template-columns: minmax(0, 1fr) auto; } }
.tr-surprise .kicker { margin-bottom: 8px; }
.tr-surprise p { color: var(--fg-2); max-width: calc(60 * var(--ch)); }

/* ---------- about: the honesty rules ---------- */
.tr-rules { counter-reset: r; display: grid; gap: 4px; margin-top: 1.4em; }
.tr-rules li { counter-increment: r; display: grid; grid-template-columns: clamp(34px, 6vw, 52px) minmax(0, 1fr); gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.tr-rules li:last-child { border-bottom: 1px solid var(--line); }
.tr-rules li::before { content: counter(r); grid-row: span 2; font: 600 2.2rem/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.tr-rules b { display: block; font: 600 1.3rem/1.25 var(--serif); color: var(--fg); }
.tr-rules span { display: block; margin-top: 4px; color: var(--fg-2); }
.prose .tr-rules li + li { margin-top: 0; }

/* ---------- privacy: your data at a glance ---------- */
.tr-data { display: grid; gap: 10px; }
@media (min-width: 640px) { .tr-data { grid-template-columns: 1fr 1fr; } }
.tr-data__i { padding: 16px 18px; border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-data__w { font-weight: 650; color: var(--fg); line-height: 1.4; }
.tr-data dl { margin-top: 10px; display: grid; gap: 4px; }
.tr-data dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.45; }
.tr-data dt { color: var(--dim); }
.tr-data dd { color: var(--fg-2); }
.prose > .tr-data { margin-top: 1.4em; }

/* ---------- aside cards ---------- */
.tr-aside { padding: 18px 20px 20px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.tr-aside .toc__t { margin-bottom: 8px; }
.tr-aside p { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.tr-aside p + p, .tr-aside p + .badge, .tr-aside .tr-mailrow + .badge { margin-top: 12px; }

/* ---------- press ---------- */
.tr-shots { display: grid; gap: 24px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.4em; }
@media (min-width: 640px) { .tr-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tr-shots figure { margin: 0; container-type: inline-size; }
.tr-shots .phone { --sw: calc(100cqw / 1.068); }
.tr-shots figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--dim); text-align: center; }
.tr-shots figcaption a { color: var(--gold); }
.tr-icon { display: flex; align-items: center; gap: 18px; margin-top: 1.2em; }
.tr-icon img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 1px var(--rim-dim), 0 14px 30px -14px var(--shadow); }
.tr-quote { padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rim-dim); color: var(--fg); }

/* ---------- 404 ---------- */
.kind-404 .page { padding-bottom: clamp(56px, 8vw, 104px); }
.tr-404 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; text-align: center; padding-top: clamp(8px, 3vw, 32px); }
.tr-404 > * { max-width: 100%; }
.tr-404__lumen { position: relative; width: 168px; }
.tr-404__lumen::before { content: ""; position: absolute; inset: -40% clamp(-100px, calc(92px - 50vw), 0px); z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(226 196 106 / .22), transparent 70%); }
.tr-404__lumen img { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .tr-404__lumen img { animation: tr-bob 4.6s var(--ease) infinite alternate; }
  .tr-404__lumen::before { animation: tr-glow 3.1s ease-in-out infinite alternate; }
}
@keyframes tr-bob { to { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes tr-glow { to { opacity: .55; } }
.tr-404 .kicker { justify-content: center; margin-bottom: 0; }
.tr-404 h1 { max-width: calc(15 * var(--ch-serif)); }
.tr-404 .lede { margin-inline: auto; max-width: min(calc(44 * var(--ch)), 100%); }
.tr-404 .verse { margin-inline: auto; text-align: left; }
.tr-404__links { width: 100%; max-width: 900px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); text-align: left; }
.tr-404__home { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
