/* Clergy Portal — Ninety's layout in the manner of wordonfire.org: black, off-white and gold,
   a high-contrast serif for titles, letter-spaced capitals for navigation and labels. */

:root {
  --bg: #F9F7F6;
  --card: #FFFFFF;
  --text: #0B0B0B;
  --muted: #6F6C68;
  --line: #E6E2DC;
  --line-strong: #CFC9C0;
  --soft: #F3EFE8;
  --gold: #BA9342;               /* the gold of the chapel logo */
  --gold-hi: #CFAA55;
  --gold-ink: #86692A;          /* gold dark enough to read as text on white */
  --cream: #F9F4E7;
  --red: #B62025;
  --red-soft: #FBEAEA;
  --green: #2E7A4C;
  --green-soft: #E7F3EC;
  --black: #0B0B0B;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --caps: 0.18em;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

/* The live meeting is a black room, like the Word on Fire front page. */
.dark {
  --bg: #000000;
  --card: #121212;
  --text: #F3F1EE;
  --muted: #9C978F;
  --line: #262422;
  --line-strong: #3A3733;
  --soft: #1B1A18;
  --gold-ink: #D3B558;
  --cream: #1F1B12;
  --red-soft: #2A1112;
  --green-soft: #0F2418;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-ink); }
.boot { display: grid; place-items: center; height: 100vh; font: italic 500 28px var(--serif); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── shell ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: var(--black); color: #E8E8E9; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto; z-index: 30;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 26px 22px 22px; text-decoration: none; color: inherit; }
.brand img { height: 50px; width: auto; flex: none; }
.brand small { display: block; font: 600 10px/1.3 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold); }
.brand b { display: block; font: italic 600 22px/1.1 var(--serif); color: #fff; }
.nav { padding: 6px 0 14px; }
.nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 12px 22px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 22px; text-decoration: none;
  color: rgba(232,232,233,.72); font: 500 12.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase;
  border-left: 3px solid transparent;
}
.nav a svg { width: 17px; height: 17px; opacity: .8; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-left-color: var(--gold); background: rgba(255,255,255,.04); }
.nav a .live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(182,32,37,.3); }
.side-foot { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.side-foot .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.side-foot a { color: rgba(232,232,233,.7); font: 500 11px var(--sans); letter-spacing: var(--caps); text-transform: uppercase; text-decoration: none; }
.side-foot a:hover { color: #fff; }

.main { min-width: 0; }
.head {
  display: flex; align-items: flex-end; gap: 24px; padding: 34px 40px 20px; background: var(--bg);
}
.head .burger { display: none; }
.head .titles { flex: 1; min-width: 0; }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
h1 { font: 600 46px/1.02 var(--serif); margin: 0; letter-spacing: -.005em; }
h1 em { font-style: italic; font-weight: 500; }
.desc { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.head-tools { display: flex; gap: 10px; align-items: center; }

.tabs { display: flex; gap: 28px; padding: 0 40px; border-bottom: 1px solid var(--line); }
.tabs a {
  padding: 12px 0 13px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: 600 12px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase;
}
.tabs a.on { color: var(--text); border-bottom-color: var(--gold); }
.tabs a:hover { color: var(--text); }

.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 40px; border-bottom: 1px solid var(--line); background: var(--soft); }
.bar .grow { flex: 1; }
.content { padding: 26px 40px 60px; display: grid; gap: 24px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* ── controls ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1px solid var(--gold); background: var(--gold); color: #0B0B0B; cursor: pointer; border-radius: 2px;
  font: 700 11.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); }
.btn.dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn.dark:hover { background: #262422; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.small { height: 32px; padding: 0 12px; font-size: 10.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--gold-ink); cursor: pointer; font: 700 11.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; }
.link:hover { text-decoration: underline; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.field, .pill, select.pill {
  height: 40px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 2px; padding: 0 12px; outline: none;
}
.field:focus, .pill:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(186,147,66,.2); }
.pill { border-radius: 999px; padding: 0 14px; font-size: 13.5px; cursor: pointer; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search .field { padding-left: 38px; width: 260px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; user-select: none; }
.toggle input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--gold); }
.toggle input:checked::after { left: 18px; }
textarea.field { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; resize: vertical; width: 100%; }

/* ── cards and lists ──────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 2px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 14px; }
.card-head h2 { font: 600 27px/1.1 var(--serif); margin: 0; }
.card-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.card-head .grow { flex: 1; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; background: var(--cream); color: var(--gold-ink); font: 700 12.5px/1 var(--sans); border-radius: 2px; }
.card-foot { display: flex; align-items: center; gap: 16px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.empty { padding: 34px 24px 40px; text-align: center; color: var(--muted); }
.empty b { display: block; font: italic 600 23px/1.2 var(--serif); color: var(--text); margin-bottom: 6px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line);
  font: 600 10.5px/1.2 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .muted, .muted { color: var(--muted); }
.table .shrink { width: 1%; white-space: nowrap; }
.title-cell { font-weight: 500; }
.title-cell .n { color: var(--muted); font-weight: 600; margin-right: 6px; }
.done-text { color: var(--muted); text-decoration: line-through; }
.overdue { color: var(--red); font-weight: 600; }
.scroll-x { overflow-x: auto; }

.check {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer;
  display: inline-grid; place-items: center; padding: 0; flex: none; color: transparent;
}
.check:hover { border-color: var(--green); }
.check svg { width: 14px; height: 14px; }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--black); color: var(--gold-hi); font: 600 12px/1 var(--sans); letter-spacing: .04em; border: 1px solid var(--gold);
}
.dark .avatar { background: #1d1b18; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 2px; white-space: nowrap;
  font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent;
}
.tag.on { background: var(--green-soft); color: var(--green); border-color: rgba(46,122,76,.25); }
.tag.off { background: var(--red-soft); color: var(--red); border-color: rgba(182,32,37,.25); }
.tag.done { background: var(--cream); color: var(--gold-ink); border-color: rgba(188,156,82,.35); }
.tag.plain { background: var(--soft); color: var(--muted); border-color: var(--line); }
.tag.live { background: var(--red); color: #fff; }
select.tag { cursor: pointer; appearance: none; padding-right: 9px; }

.progress { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.progress .track { flex: 1; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.progress .fill { height: 100%; background: var(--gold); }
.progress span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.row-add { display: flex; gap: 10px; padding: 12px 24px 16px; }
.row-add .field { flex: 1; }

.menu { position: relative; display: inline-block; }
.menu-pop {
  position: fixed; min-width: 210px; background: var(--card); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 60; padding: 6px 0; border-radius: 2px;
}
.dark ~ .menu-pop, body:has(.room) .menu-pop { --card: #121212; --text: #F3F1EE; --line: #262422; --line-strong: #3A3733; --soft: #1B1A18; --muted: #9C978F; color: var(--text); }
.menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 16px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.menu-pop button:hover { background: var(--soft); }
.menu-pop button svg { width: 16px; height: 16px; color: var(--muted); }
.menu-pop button.danger { color: var(--red); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 340px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 60; max-height: 420px; overflow: auto; }
.results button { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; }
.results button:hover { background: var(--soft); }
.results .kind { font: 700 9.5px/2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); width: 72px; flex: none; }

/* ── hero (home and meetings) ─────────────────────────────────────────── */
.hero {
  background: var(--black); color: #fff; padding: 46px 44px; position: relative; overflow: hidden; border-radius: 2px;
  display: grid; gap: 14px; justify-items: start;
}
.hero::after { content: ''; position: absolute; inset: auto 44px 0 44px; border-top: 1px solid rgba(255,255,255,.18); }
.hero .eyebrow { color: var(--gold); }
.hero h2 { font: 500 54px/1 var(--serif); margin: 0; }
.hero h2 em { font-style: italic; }
.hero p { margin: 0; color: rgba(232,232,233,.75); font-size: 16px; max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn.ghost:hover { border-color: #fff; }
.hero .mark { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); height: 78%; opacity: .16; pointer-events: none; }

/* ── drawer and modal ─────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.36); z-index: 80; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--card); color: var(--text); z-index: 90;
  display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(0,0,0,.18);
}
.drawer.wide { width: min(640px, 100vw); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font: 600 28px/1.1 var(--serif); margin: 0; flex: 1; }
.drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; display: grid; gap: 18px; align-content: start; }
.drawer-foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.drawer-foot .grow { flex: 1; }
.label { display: grid; gap: 7px; }
.label > span { font: 600 10.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); }
.label .field, .label select { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal { position: fixed; z-index: 90; left: 50%; top: 12vh; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.3); border-radius: 2px; }

.section-label { font: 600 10.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); margin: 6px 0 -6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat { background: var(--soft); border: 1px solid var(--line); padding: 14px 16px; border-radius: 2px; }
.stat b { display: block; font: 600 32px/1 var(--serif); }
.stat span { font: 600 10px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mini-list { display: grid; border: 1px solid var(--line); border-radius: 2px; }
.mini-list > div, .mini-list > label { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mini-list > div:last-child, .mini-list > label:last-child { border-bottom: 0; }
.mini-list > label input { margin: 0; width: 16px; height: 16px; accent-color: var(--gold); }
.mini-list .grow { flex: 1 1 140px; min-width: 0; }
.mini-list .none { color: var(--muted); font-style: italic; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; background: var(--black); color: #fff;
  padding: 12px 20px; border-left: 3px solid var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100vw - 32px);
}
.toast.err { border-left-color: var(--red); }

/* ── scorecard ────────────────────────────────────────────────────────── */
.score td.cell { padding: 4px 6px; min-width: 92px; }
.score input.cell-in {
  width: 100%; height: 34px; text-align: center; border: 1px solid transparent; background: transparent; border-radius: 2px;
  font-variant-numeric: tabular-nums; outline: none;
}
.score input.cell-in:hover { border-color: var(--line-strong); }
.score input.cell-in:focus { border-color: var(--gold); background: var(--card); }
.score input.cell-in.good { background: var(--green-soft); color: var(--green); font-weight: 700; }
.score input.cell-in.bad { background: var(--red-soft); color: var(--red); font-weight: 700; }
.score th.week { text-align: center; }
.score th.week.now { color: var(--gold-ink); }

/* ── agenda editor ────────────────────────────────────────────────────── */
.agenda-row { display: grid; grid-template-columns: 28px minmax(160px, 1fr) 170px 110px 60px 40px; gap: 12px; align-items: center; padding: 8px 24px; }
.agenda-row.head { color: var(--muted); font: 600 10.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; padding-top: 14px; padding-bottom: 6px; }
.agenda-row .grip { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.agenda-row.dragging { opacity: .45; }
.agenda-row.drop { box-shadow: inset 0 2px 0 var(--gold); }
.agenda-row .note { grid-column: 2 / 5; }
.agenda-row .field { width: 100%; }

/* ── the live meeting ─────────────────────────────────────────────────── */
.room { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); color: var(--text); }
.room-top { display: flex; align-items: center; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.room-top .mark { height: 40px; width: auto; }
.room-top .t { flex: 1; min-width: 0; }
.room-top .t b { display: block; font: 600 24px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-top .t span { color: var(--muted); font-size: 13px; }
.clock { font: 500 30px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clock small { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); margin-top: 6px; text-align: center; }
.room-body { display: grid; grid-template-columns: 290px 1fr; min-height: 0; }
.rail { border-right: 1px solid var(--line); padding: 18px 0; overflow-y: auto; }
.rail button {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 22px;
  border: 0; border-left: 3px solid transparent; background: none; cursor: pointer; color: var(--muted);
}
.rail button:disabled { cursor: default; }
.rail button .i { font: 600 12px/1 var(--sans); color: var(--muted); }
.rail button .nm { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.rail button .tm { font: 500 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.rail button .tm small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.rail button.past { color: var(--text); opacity: .7; }
.rail button.on { color: var(--text); border-left-color: var(--gold); background: var(--soft); opacity: 1; }
.rail button.on .i { color: var(--gold); }
.rail .over { color: var(--red); }
.rail-total { margin: 14px 22px 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.stage { padding: 40px 56px 40px; overflow-y: auto; display: grid; gap: 26px; align-content: start; }
.stage-title h2 { font: 500 76px/0.98 var(--serif); margin: 0; letter-spacing: -.01em; }
.stage-title h2 em { font-style: italic; }
.stage-title p { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 760px; }
.stage-title .rule { border: 0; border-top: 1px solid var(--line-strong); margin: 26px 0 0; }
.stage-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 6px; }
.follow { color: var(--muted); font-size: 13.5px; font-style: italic; }
.rating { display: flex; flex-wrap: wrap; gap: 8px; }
.rating button { width: 46px; height: 46px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font: 500 22px/1 var(--serif); border-radius: 2px; }
.rating button:hover { border-color: var(--gold); }
.rating button.on { background: var(--gold); border-color: var(--gold); color: #0B0B0B; }

.signin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: #fff; }
.signin .left { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.signin h1 { font: 500 76px/0.98 var(--serif); }
.signin h1 em { font-style: italic; }
.signin p { color: rgba(232,232,233,.72); font-size: 17px; max-width: 460px; margin: 0; }
.signin .ms { background: #fff; color: #1b1b1b; border-color: #fff; height: 48px; padding: 0 22px; font-size: 12px; }
.signin .ms:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.signin .right { display: grid; place-items: center; }
.signin .right img { width: min(78%, 480px); height: auto; }
.signin .err { border-left: 3px solid var(--red); padding: 10px 14px; background: rgba(182,32,37,.14); color: #f4d7d8; max-width: 480px; }

/* ── issue ordering and voting (as in Ninety) ────────────────────────────── */
.grip-cell { cursor: grab; color: var(--muted); padding-right: 0 !important; }
.grip-cell svg { width: 16px; height: 16px; }
.table tr.dragging { opacity: .4; }
.table tr.drop td { box-shadow: inset 0 2px 0 var(--gold); }
.table tr.picked td { background: var(--cream); }
.pick-badge { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line-strong); display: inline-grid; place-items: center; font: 700 12px var(--sans); }
.pick-badge.on { background: var(--gold); border: 1.5px solid var(--gold); color: #0B0B0B; }
.icon-btn.tool { border: 1px solid var(--line); border-radius: 2px; width: 36px; height: 36px; }
.icon-btn.tool.on { background: var(--gold); border-color: var(--gold); color: #0B0B0B; }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.ids-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 24px 12px; padding: 12px 16px; background: var(--cream); border-left: 3px solid var(--gold); font-size: 14px; }
.ids-banner svg { width: 18px; height: 18px; color: var(--gold-ink); }
.vote { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.vote .icon-btn { width: 30px; height: 30px; }
.vote .icon-btn svg { width: 16px; height: 16px; }
.vote-count { min-width: 26px; height: 24px; display: inline-grid; place-items: center; border-radius: 2px; background: var(--soft); color: var(--muted); font: 700 12.5px var(--sans); margin-right: 2px; }
.vote-count.on { background: var(--gold); color: #0B0B0B; }
.vote-mine { font-size: 11.5px; color: var(--gold-ink); margin-left: 2px; }

/* ── V/TO ─────────────────────────────────────────────────────────────── */
.vto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.vto-col { display: grid; gap: 24px; align-content: start; }
.vto-card.wide { grid-column: 1 / -1; }
.vto-card { border-top: 3px solid var(--gold); }
.vto-body { padding: 0 24px 22px; display: grid; gap: 14px; }
.vto-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vto-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vto-label { font: 600 10.5px/1.4 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold-ink); }
.vto-value { font-size: 15px; min-width: 0; }
.vto-pre, .vto-text { white-space: pre-wrap; margin: 0; }
.vto-none { color: var(--muted); font-style: italic; margin: 0; }
.vto-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.vto-list li::marker { color: var(--gold-ink); font-weight: 700; }
.vto-link { cursor: pointer; }
.vto-link:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--gold); }
.vto-link .avatar { vertical-align: middle; }
.vto-values { margin: 0; display: grid; gap: 4px; }
.vto-values dt { font: 600 22px/1.2 var(--serif); margin-top: 8px; }
.vto-values dt:first-child { margin-top: 0; }
.vto-values dd { margin: 0 0 4px; color: var(--muted); white-space: pre-wrap; }
.swot.s { border-top-color: var(--green); } .swot.w { border-top-color: var(--red); }
.swot.o { border-top-color: var(--gold); } .swot.t { border-top-color: #0B0B0B; }
@media (max-width: 900px) { .vto-grid { grid-template-columns: 1fr; } .vto-row { grid-template-columns: 1fr; gap: 4px; } }
@media print { body.print-vto .vto-card { box-shadow: none; break-inside: avoid; } body.print-vto .vto-card .icon-btn { display: none; } }

/* ── accountability chart ─────────────────────────────────────────────── */
.chart-wrap { overflow: auto; padding: 8px 0 40px; margin: 0 -40px; }
.chart { display: flex; justify-content: center; min-width: max-content; padding: 10px 40px; }
.tree, .tree .branch { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; }
.tree .branch { padding-top: 30px; }
.tree .node { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 12px 0; }
.tree > .node { padding-top: 0; }
.tree .node::before, .tree .node::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 30px; border-top: 1.5px solid var(--line-strong); }
.tree .node::after { right: auto; left: 50%; border-left: 1.5px solid var(--line-strong); }
.tree .node:only-child::before, .tree .node:only-child::after, .tree > .node::before, .tree > .node::after { display: none; }
.tree .node:only-child { padding-top: 0; }
.tree .node:first-child::before, .tree .node:last-child::after { border: 0 none; }
.tree .node:last-child::before { border-right: 1.5px solid var(--line-strong); }
.tree .branch::before { content: ''; position: absolute; top: 0; left: 50%; height: 30px; border-left: 1.5px solid var(--line-strong); }
.seat {
  position: relative; width: 264px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow); border-radius: 2px; padding: 22px 20px 16px; cursor: pointer; text-align: center; transition: opacity .15s, box-shadow .15s;
}
.seat:hover, .seat:focus-visible { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.10); outline: none; }
.seat.hit { box-shadow: 0 0 0 3px rgba(186,147,66,.45), var(--shadow); }
.seat.dim { opacity: .35; }
.seat-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.seat:hover .seat-tools, .seat:focus-within .seat-tools { opacity: 1; }
.seat-tools .icon-btn { width: 28px; height: 28px; }
.seat-tools .icon-btn svg { width: 15px; height: 15px; }
.seat-people { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.seat-people .avatar { width: 46px; height: 46px; font-size: 15px; }
.avatar.open { background: var(--soft); color: var(--muted); border-style: dashed; border-color: var(--line-strong); }
.seat-name { font: 600 25px/1.1 var(--serif); }
.seat-who { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.seat-label { font: 600 10px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold-ink); margin: 16px 0 8px; text-align: left; }
.seat-roles { list-style: disc; margin: 0; padding-left: 18px; text-align: left; font-size: 13.5px; line-height: 1.45; display: grid; gap: 3px; }
.seat-roles li::marker { color: var(--gold-ink); font-size: 1.1em; }
.seat-roles li.has-desc { cursor: pointer; }
.seat-roles li.has-desc:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.role-chev { display: inline-block; margin-left: 4px; color: var(--gold-ink); vertical-align: -2px; }
.role-chev svg { width: 13px; height: 13px; }
.seat-desc-toggle { display: flex; justify-content: center; width: 100%; align-items: center; gap: 5px; margin: 10px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--gold-ink); font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.seat-desc-toggle svg { width: 13px; height: 13px; }
.seat-desc-toggle:hover { text-decoration: underline; }
@media print { .seat-desc-toggle, .role-chev { display: none; } }
.role-desc { margin: 4px 0 6px; padding: 7px 10px; background: var(--cream); border-left: 2px solid var(--gold); color: var(--text); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; cursor: auto; }
.seat-roles.full { display: grid; gap: 10px; font-size: 14.5px; }
.seat-roles.full .role-desc { font-size: 13.5px; }
.role-list { display: grid; gap: 12px; }
.role-row { border: 1px solid var(--line); border-radius: 2px; padding: 10px; display: grid; gap: 8px; background: var(--soft); }
.role-top { display: flex; gap: 4px; align-items: center; }
.role-top .field { flex: 1; min-width: 0; }
.role-top .icon-btn { width: 30px; height: 30px; }
.role-top .icon-btn svg { width: 15px; height: 15px; }
.role-row textarea.field { min-height: 64px; font-size: 14px; }
.seat-fold { display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.seat-fold svg { width: 16px; height: 16px; }
.seat-fold:hover { color: var(--text); }

/* ── narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cols3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .head { padding: 22px 16px 14px; flex-wrap: wrap; align-items: center; }
  .head .burger { display: inline-grid; }
  .head-tools { width: 100%; }
  .search { flex: 1; }
  .search .field { width: 100%; }
  h1 { font-size: 36px; }
  .tabs, .bar { padding-left: 16px; padding-right: 16px; }
  .tabs { overflow-x: auto; }
  .content { padding: 18px 16px 48px; }
  .cols3 { grid-template-columns: 1fr; }
  .hero { padding: 32px 22px; }
  .hero h2 { font-size: 40px; }
  .table th:first-child, .table td:first-child { padding-left: 14px; }
  .hide-sm { display: none; }
  .room-body { grid-template-columns: 1fr; }
  .rail { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail button { grid-template-columns: auto auto; min-width: 150px; border-left: 0; border-bottom: 3px solid transparent; }
  .rail button.on { border-bottom-color: var(--gold); }
  .rail button .tm { display: none; }
  .rail-total { display: none; }
  .stage { padding: 26px 16px; }
  .stage-title h2 { font-size: 48px; }
  .room-top { padding: 12px 16px; flex-wrap: wrap; }
  .signin { grid-template-columns: 1fr; }
  .signin .right { display: none; }
  .signin .left { padding: 40px 22px; }
  .signin h1 { font-size: 54px; }
  .agenda-row { grid-template-columns: 24px 1fr 90px 44px 36px; padding: 8px 14px; }
  .agenda-row .tool { display: none; }
  .agenda-row .note { grid-column: 2 / 4; }
  .grid2 { grid-template-columns: 1fr; }
  .chart-wrap { margin: 0 -16px; }
  .chart { padding: 10px 16px; }
}

@media print {
  .side, .head-tools, .tabs, .bar, .scrim, .drawer-foot, .drawer-head button, .toast { display: none !important; }
  .shell { display: block; }
  .drawer { position: static; width: auto; box-shadow: none; }
  body.printing .main { display: none; }
  body.print-chart .content { padding: 0; }
  body.print-chart .chart-wrap { overflow: visible; margin: 0; }
  body.print-chart .seat { box-shadow: none; break-inside: avoid; }
  body.print-chart .seat-tools, body.print-chart .seat-fold { display: none; }
}

/* ── quick links (Home) ───────────────────────────────────────────────── */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.quick .eyebrow { margin-right: 6px; }
.quick-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; background: var(--card); border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px;
}
.quick-link:hover { border-color: var(--gold); color: var(--gold-ink); }
.quick-link svg { width: 14px; height: 14px; color: var(--gold-ink); }

/* ══ The Library ══════════════════════════════════════════════════════════
   What the research library adds to the clergy portal's look: covers on shelves, a reading page
   set in EB Garamond, search results, answers with numbered references, saved passages. */

:root { --read: 'EB Garamond', 'Iowan Old Style', Georgia, serif; }
mark { background: #F6E7B8; color: inherit; padding: 0 1px; border-radius: 2px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.pad { padding: 20px 24px; }
.content.wide { max-width: none; }
.link.danger-link { color: var(--red); }
.click { cursor: pointer; }
.click:hover { background: var(--soft); }
.small-print { font-size: 12.5px; margin: 14px 0 0; }
.err { border-left: 3px solid var(--red); padding: 10px 14px; background: var(--red-soft); color: var(--red); }
.pill.small { height: 30px; font-size: 12.5px; }

/* the search box */
.qbox { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 4px 0 12px; height: 42px; flex: 1 1 380px; min-width: 0; max-width: 760px; }
.qbox:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(186,147,66,.2); }
.qbox svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.qbox input { border: 0; outline: none; background: none; flex: 1; min-width: 0; height: 100%; font-size: 15px; }
.qbox .btn { height: 34px; }
.qbox.big { height: 56px; max-width: 820px; padding-left: 16px; }
.qbox.big input { font-size: 17px; }
.qbox.big .btn { height: 44px; padding: 0 22px; }

.lib-hero { background: var(--black); color: #fff; padding: 44px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.lib-hero .qbox { position: relative; z-index: 1; }
.lib-hero .actions { position: relative; z-index: 1; }

/* covers and shelves */
.cover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.08); }
.cover.blank { display: grid; place-items: center; padding: 10px; text-align: center; background: linear-gradient(160deg, #1d1b18, #0b0b0b); color: var(--gold); font: italic 600 15px/1.2 var(--serif); }
.cover.sm { width: 54px; flex: none; }
.cover.xs { width: 44px; flex: none; }
.cover.big { max-width: 240px; }
.cover.xs.blank, .cover.sm.blank { font-size: 0; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 22px; }
.book-tile { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; }
.book-tile:hover .cover { border-color: var(--gold); transform: translateY(-2px); }
.book-tile .cover { transition: transform .15s; }
.book-tile b { font: 600 17px/1.15 var(--serif); margin-top: 6px; }
.book-tile span { color: var(--muted); font-size: 13px; }
.book-tile small { color: var(--gold-ink); font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.shelf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; padding: 0 24px 22px; }
.mini-book { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 6px; margin: -6px; }
.mini-book:hover { background: var(--soft); }
.mini-book span { display: grid; gap: 2px; min-width: 0; }
.mini-book b { font: 600 17px/1.15 var(--serif); }
.mini-book small { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.subject { background: var(--card); padding: 18px 24px; text-decoration: none; color: inherit; display: grid; gap: 4px; }
.subject:hover { background: var(--cream); }
.subject b { font: 600 20px/1.15 var(--serif); }
.subject span { color: var(--muted); font-size: 13px; }
.tips ul { margin: 0; padding: 0 24px 22px 44px; display: grid; gap: 8px; color: var(--muted); }
.tips b { color: var(--text); font-weight: 600; }

/* a book's page and its contents */
.book-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.book-side { display: grid; gap: 18px; position: sticky; top: 20px; }
.book-side .qbox { flex: none; height: 40px; }
.toc-wrap { padding: 0 16px 20px; max-height: 70vh; overflow: auto; }
.toc, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul { padding-left: 20px; border-left: 1px solid var(--line); margin-left: 11px; }
.toc-row { display: flex; align-items: flex-start; gap: 2px; }
.toc a { display: block; flex: 1; padding: 5px 8px; text-decoration: none; color: var(--text); font-size: 14.5px; line-height: 1.35; border-radius: 2px; }
.toc a:hover { background: var(--soft); }
.toc li.on > .toc-row a { background: var(--cream); color: var(--gold-ink); font-weight: 600; }
.twist { width: 22px; height: 28px; flex: none; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; }
.twist svg { width: 14px; height: 14px; transition: transform .12s; }
.twist.open svg { transform: rotate(90deg); }
.twist.none { cursor: default; }
.finder { margin-left: auto; }
.finder .field { width: 240px; }

/* reading */
.chapter-title { font-size: 40px; }
.reader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.reader.with-toc { grid-template-columns: 320px minmax(0, 1fr); }
.reader-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding-top: 14px; }
.reader-toc .finder { margin: 0 16px 10px; }
.reader-toc .finder .field { width: 100%; }
.reader-toc .toc-wrap { max-height: none; flex: 1; }
.page { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 48px clamp(22px, 6vw, 72px) 40px; max-width: 820px; width: 100%; margin: 0 auto; font-family: var(--read); line-height: 1.6; color: #1a1815; }
.page .sub-head { font: 600 1.3em/1.2 var(--serif); margin: 1.6em 0 .6em; text-align: center; }
.page h4.sub-head { font-size: 1.15em; }
.page h5.sub-head { font-size: 1.05em; font-style: italic; }
.bp { margin: 0 0 .85em; text-align: justify; hyphens: auto; border-radius: 2px; cursor: pointer; transition: background .1s; padding: 2px 6px; margin-left: -6px; margin-right: -6px; }
.bp:hover { background: #FBF7EC; }
.bp.quote { margin-left: 1.6em; margin-right: 1.2em; font-size: .94em; }
.bp.chosen { background: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }
.page .more { text-align: center; margin: 20px 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--sans); }
.pager .btn { max-width: 48%; height: auto; min-height: 40px; padding: 8px 14px; white-space: normal; text-align: left; line-height: 1.3; }
.pager .btn span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.source { font: 13px/1.5 var(--sans); margin: 22px 0 0; text-align: center; }
.selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: var(--black); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.3); border-radius: 2px; max-width: calc(100vw - 24px); flex-wrap: wrap; }
.selbar .n { font: 600 11px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.selbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.selbar .icon-btn { color: rgba(255,255,255,.7); }
.selbar .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* search results */
.bar .qbox { max-width: 560px; height: 40px; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--gold); background: var(--cream); color: var(--gold-ink); border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip svg { width: 13px; height: 13px; }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.search-layout > .hits:only-child { grid-column: 1 / -1; max-width: 900px; }
.hits { display: grid; gap: 14px; }
.hits .more { text-align: center; }
.hit { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); padding: 18px 20px; position: relative; }
.hit-cover { flex: none; }
.hit-body { min-width: 0; flex: 1; }
.hit-src { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.hit-src .cite em { color: var(--text); }
.hit .bp { font-family: var(--read); font-size: 18px; line-height: 1.55; cursor: auto; margin: 0 0 8px; padding: 0; text-align: left; }
.hit .bp:hover { background: none; }
.hit-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 6px; }
.facets { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.facets .mini-list { border: 0; border-top: 1px solid var(--line); }
.facets .mini-list > div { padding: 9px 20px; }
.facets b { font-weight: 600; font-size: 13.5px; }

/* ask */
.ask-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.ask-main { display: grid; gap: 22px; min-width: 0; }
.ask-box { display: grid; gap: 12px; }
.ask-box textarea { width: 100%; padding: 12px 14px; font-size: 16px; resize: vertical; }
.question { font: italic 600 30px/1.15 var(--serif); margin: 0 0 14px; }
.answer { display: grid; gap: 22px; }
.answer-text { font-family: var(--read); font-size: 19px; line-height: 1.6; }
.answer-text p { margin: 0 0 .9em; }
.ref { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; margin: 0 1px; vertical-align: super; font: 700 10.5px/1 var(--sans); background: var(--cream); color: var(--gold-ink); border: 1px solid rgba(186,147,66,.4); border-radius: 2px; text-decoration: none; }
.ref:hover { background: var(--gold); color: #0b0b0b; }
.quoted { display: grid; gap: 12px; }
.refnum { position: absolute; left: -14px; top: 16px; min-width: 28px; height: 28px; display: grid; place-items: center; background: var(--gold); color: #0b0b0b; font: 700 12px/1 var(--sans); border-radius: 2px; }
.quoted .hit { padding-left: 28px; margin-left: 14px; }
.searches { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.searches summary { cursor: pointer; }
.searches ul { margin: 8px 0 0; }

/* saved */
.saved-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.folders { position: sticky; top: 16px; }
.folder-list { display: grid; padding: 0 0 12px; }
.folder-list a { display: flex; align-items: center; gap: 10px; padding: 9px 24px; text-decoration: none; color: var(--text); font-size: 14.5px; border-left: 3px solid transparent; }
.folder-list a:hover { background: var(--soft); }
.folder-list a.on { border-left-color: var(--gold); background: var(--cream); }
.folder-list a svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.folder-list a span:not(.count) { flex: 1; min-width: 0; }
.saved-main { display: grid; gap: 16px; min-width: 0; }
.folder-notes { width: 100%; margin-top: 12px; padding: 10px 12px; resize: vertical; font-size: 15px; }
.saved-item { padding: 18px 22px; display: grid; gap: 12px; }
.saved-head { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.saved-text .bp { font-family: var(--read); font-size: 18px; line-height: 1.55; cursor: auto; padding: 0; margin: 0 0 .6em; text-align: left; }
.saved-text .bp:hover { background: none; }
.saved-item .note { width: 100%; padding: 8px 10px; font-size: 14px; resize: vertical; }
blockquote.preview { margin: 0; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--gold); font: 17px/1.5 var(--read); }

@media (max-width: 1100px) {
  .search-layout, .ask-layout { grid-template-columns: 1fr; }
  .facets, .folders { position: static; max-height: none; }
  .reader.with-toc { grid-template-columns: 1fr; }
  .reader-toc { position: static; max-height: 50vh; }
}
@media (max-width: 900px) {
  .book-page, .saved-layout { grid-template-columns: 1fr; }
  .book-side { position: static; grid-template-columns: 120px 1fr; }
  .book-side .stack { grid-column: 1 / -1; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 20px 14px; }
  .lib-hero { padding: 28px 22px; }
  .page { padding: 28px 18px; }
  .chapter-title { font-size: 30px; }
  .finder .field { width: 100%; }
  .qbox.big { height: 50px; }
  .qbox.big .btn { padding: 0 14px; }
}
@media print {
  .side, .head-tools, .bar, .selbar, .pager, .reader-toc { display: none !important; }
  .page { border: 0; box-shadow: none; padding: 0; }
}

/* Scripture */
.bible-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.bible-book, .chapter-n { display: block; padding: 9px 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font: 600 16px/1.2 var(--serif); background: var(--card); }
.bible-book:hover, .chapter-n:hover { border-color: var(--gold); background: var(--cream); }
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.chapter-n { text-align: center; font-family: var(--sans); font-size: 14px; }
.bible-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.bible-layout.with-cites { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.bible-page { font-size: 19px; }
.verse { margin: 0 0 .5em; cursor: pointer; padding: 3px 8px; margin-left: -8px; border-radius: 2px; }
.verse:hover { background: #FBF7EC; }
.verse.on { background: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }
.vn { font: 700 11px/1 var(--sans); color: var(--gold-ink); margin-right: 5px; }
.vcount { display: inline-block; margin-left: 8px; padding: 1px 6px; font: 700 10.5px/1.5 var(--sans); color: var(--gold-ink); background: var(--cream); border: 1px solid rgba(186,147,66,.35); border-radius: 2px; vertical-align: 2px; }
.cites { display: grid; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 2px; }
.verse-text { font: 19px/1.5 var(--read); margin: 0; }
.chip.on { background: var(--gold); color: #0b0b0b; }
a.sref { color: inherit; text-decoration: underline; text-decoration-color: rgba(186,147,66,.6); text-underline-offset: 2px; }
a.sref:hover { color: var(--gold-ink); }
.ref-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); border-left: 3px solid var(--gold); }
.ref-card b { font: 600 20px/1.2 var(--serif); }
.ref-card svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; }
.bp.note { font-size: .82em; color: var(--muted); margin-left: 1.4em; }
@media (max-width: 1100px) { .bible-layout.with-cites { grid-template-columns: 1fr; } .cites { position: static; max-height: none; } }
.pgno { display: block; float: right; margin: 0 -56px 0 8px; font: 600 10.5px/1.8 var(--sans); color: var(--muted); }
@media (max-width: 900px) { .pgno { margin-right: 0; } }

/* This Sunday */
.sunday-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.reading-text { font: 18px/1.55 var(--read); margin-top: 10px; }
.reading-text p { margin: 0 0 .45em; }
@media (max-width: 1100px) { .sunday-layout { grid-template-columns: 1fr; } }
.saint-name { font: 600 26px/1.15 var(--serif); margin: 0; }
.saint-text { font: 18px/1.55 var(--read); margin-top: 10px; }
.saint-text .bp { cursor: auto; padding: 0; margin: 0 0 .7em; }
.saint-text .bp:hover { background: none; }
