:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --text: #2b2620;
  --muted: #8a8174;
  --line: #e7e0d2;
  --accent: #8a5a2b;
  --accent-soft: #f1e6d6;
  --sel: #fbe9b7;
  --scrim: rgba(30, 24, 16, .42);
  --on-accent: #ffffff;
  --fs: 19px;
  --lh: 1.8;
}
:root[data-theme="dark"] {
  --bg: #17150f;
  --surface: #221f18;
  --text: #e9e3d7;
  --muted: #9a917f;
  --line: #36312a;
  --accent: #d9a56a;
  --accent-soft: #3a2f22;
  --sel: #4a3d1e;
  --scrim: rgba(0, 0, 0, .6);
  --on-accent: #17150f;
}
:root[data-theme="sepia"] {
  --bg: #f3e7cf;
  --surface: #fbf3e2;
  --text: #3d2f1f;
  --muted: #8b7458;
  --line: #e2d1b0;
  --accent: #8a5a2b;
  --accent-soft: #ead8b6;
  --sel: #f2d78c;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ui, header, .sheet, .selbar, .toast, .pager, .chip { font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif; }

/* 상단 바 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.ref { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 700; padding: 6px 4px; min-width: 0; }
.ref span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--muted); font-size: 13px; }
.actions { display: flex; align-items: center; gap: 2px; flex: none; }
.chip {
  font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap; max-width: 150px;
  overflow: hidden; text-overflow: ellipsis;
}
.icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.icon:active { background: var(--accent-soft); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aa { font-family: system-ui, sans-serif; font-weight: 700; font-size: 17px; }
@media (max-width: 400px) {
  .top { padding-left: 12px; padding-right: 6px; gap: 4px; }
  .ref { font-size: 17px; }
  .icon { width: 34px; height: 34px; }
  .icon svg { width: 20px; height: 20px; }
  .chip { padding: 5px 8px; font-size: 12px; max-width: 96px; }
}

/* 본문 */
main { max-width: 720px; margin: 0 auto; padding: 8px 20px calc(env(safe-area-inset-bottom) + 96px); outline: none; }
.chap-title { font-size: calc(var(--fs) * 1.25); margin: 18px 0 14px; color: var(--accent); font-weight: 700; }
#verses { font-size: var(--fs); line-height: var(--lh); word-break: keep-all; overflow-wrap: anywhere; }
.v { margin: 0 0 .35em; padding: 2px 4px; border-radius: 6px; transition: background .15s; }
.v.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: var(--sel); } 100% { background: transparent; } }
.vn { font-family: system-ui, sans-serif; font-size: .62em; font-weight: 700; color: var(--accent); vertical-align: .35em; margin-right: .3em; }
.par { display: block; color: var(--muted); font-size: .9em; margin-top: .15em; padding-left: .9em; border-left: 2px solid var(--line); }
.par .tag { font-family: system-ui, sans-serif; font-size: .7em; font-weight: 700; margin-right: .4em; }
.fn {
  font-family: system-ui, sans-serif; color: var(--accent); font-size: .78em; font-weight: 700;
  padding: 0 .15em; border-radius: 4px; vertical-align: .2em; cursor: pointer;
}
.fn:active { background: var(--accent-soft); }
.fnbadge {
  display: inline-block; font-family: system-ui, sans-serif; font-size: .58em; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border-radius: 4px;
  padding: .05em .4em; margin-left: .35em; vertical-align: .3em; cursor: pointer;
}
.empty { color: var(--muted); font-style: italic; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pager button {
  flex: 1; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.pager button:disabled { opacity: .35; }

/* 하단 장 이동 바 (절을 선택하면 선택 바가 대신 나옴) */
.navbar {
  position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 14px); z-index: 19;
  width: min(440px, calc(100% - 32px)); margin: 0 auto;
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.14);
  transition: transform .22s ease, opacity .22s ease;
}
.navbar.away { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.nav-arrow { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.nav-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-arrow:disabled { opacity: .3; }
.nav-arrow:not(:disabled):active, .nav-ref:active { background: var(--accent-soft); }
.nav-ref { flex: 1; min-width: 0; height: 44px; border-radius: 999px; font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 선택 패널 (아래에서 올라옴) */
.selbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 16px calc(env(safe-area-inset-bottom) + 16px);
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 20px 20px 0 0; box-shadow: 0 -6px 28px rgba(0,0,0,.18);
  animation: up .2s ease;
}
.grip { width: 100%; height: 22px; display: grid; place-items: center; }
.grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .6; }
.sel-info { font-size: 14px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-actions { display: flex; gap: 8px; justify-content: center; margin-top: 4px; width: 100%; }
.act {
  flex: 1 1 0; min-width: 0; max-width: 70px; height: 70px; border-radius: 16px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: system-ui, sans-serif; font-size: 13px; font-weight: 600;
}
.act svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act:active { background: var(--accent-soft); }
.act[aria-pressed="true"] { color: var(--accent); }
.act[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 360px) { .sel-actions { gap: 5px; } .act { height: 64px; font-size: 12px; } }

/* 선택한 절: 점선 밑줄 */
.v.sel { background: transparent; text-decoration: underline dotted; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: .3em; }
.v.sel .par { text-decoration: none; }
/* 책갈피 */
.v .bm { display: inline-block; width: .55em; height: .75em; margin-left: .3em; vertical-align: -.02em;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }

/* 메모 */
.memobadge {
  display: inline-block; font-family: system-ui, sans-serif; font-size: .58em; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: 4px;
  padding: .05em .4em; margin-left: .35em; vertical-align: .3em; cursor: pointer;
}
.v.hasmemo { box-shadow: inset 3px 0 0 var(--accent); }
.passage { font-family: "Noto Serif KR", serif; font-size: 15px; line-height: 1.7; padding: 12px; background: var(--bg); border-radius: 10px; max-height: 30vh; overflow-y: auto; }
.passage .vn { font-size: .7em; }
textarea.memo {
  width: 100%; min-height: 140px; margin-top: 12px; padding: 12px; border-radius: 12px; resize: vertical;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, sans-serif; outline: none;
}
textarea.memo:focus { border-color: var(--accent); }
.row-btns { display: flex; gap: 8px; margin-top: 12px; }
.row-btns button { flex: 1; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 15px; background: var(--bg); }
.row-btns button.primary { background: var(--accent); color: var(--on-accent); }
.row-btns button.danger { color: #b3261e; flex: 0 0 auto; padding: 12px 16px; }
.memo-item { padding: 12px 0; border-top: 1px solid var(--line); }
.memo-item .r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.memo-item .r small { color: var(--muted); font-weight: 400; }
.memo-item .m { font-size: 15px; line-height: 1.6; margin: 4px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.memo-item .acts { display: flex; gap: 6px; }
.memo-item .acts button { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--bg); }
.memo-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.memo-tools .count { flex: 1; font-size: 13px; color: var(--muted); }
.memo-tools button { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--accent); color: var(--on-accent); }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* 시트 */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 30; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  max-width: 720px; margin: 0 auto;
  animation: up .2s ease;
}
.sheet.tall { height: 86vh; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 20px; }
.sheet-head h2 { margin: 0; font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 4px 20px 20px; }

.tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.tabs button { flex: 1; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--bg); }
.tabs button.on { background: var(--accent); color: var(--on-accent); }
.grid { display: grid; gap: 6px; }
.grid.books { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.grid.chaps { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.grid button {
  padding: 11px 4px; border-radius: 10px; background: var(--bg); font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid button.on { background: var(--accent); color: var(--on-accent); }
.backlink { font-size: 14px; color: var(--accent); font-weight: 600; padding: 4px 0 12px; }

.label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; }
.label:first-child { margin-top: 4px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; text-align: left;
  padding: 13px 14px; border-radius: 12px; background: var(--bg); font-size: 15px;
}
.opt small { color: var(--muted); font-size: 12px; }
.opt.on { outline: 2px solid var(--accent); background: var(--accent-soft); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 11px; border-radius: 10px; background: var(--bg); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; accent-color: var(--accent); }
.range b { min-width: 42px; text-align: right; font-size: 14px; }
.preview { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--bg); font-family: "Noto Serif KR", serif; }

.note-ref { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.note-text { font-family: "Noto Serif KR", serif; font-size: 16px; line-height: 1.7; margin: 0 0 14px; padding: 12px; background: var(--bg); border-radius: 10px; }
.note-item { display: flex; gap: 8px; font-size: 15px; line-height: 1.65; padding: 10px 0; border-top: 1px solid var(--line); }
.note-item b { color: var(--accent); flex: none; }
.note-item.on { background: var(--accent-soft); margin: 0 -8px; padding: 10px 8px; border-radius: 8px; border-top-color: transparent; }
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

.search-box { display: flex; gap: 8px; position: sticky; top: 0; background: var(--surface); padding-bottom: 10px; }
.search-box input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 16px; outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button { padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.scope { display: flex; gap: 6px; margin-bottom: 8px; }
.scope button { padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.scope button.on { background: var(--accent-soft); color: var(--accent); }
.sres-info { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.sres { display: block; width: 100%; text-align: left; padding: 11px 0; border-top: 1px solid var(--line); }
.sres .r { font-size: 13px; font-weight: 700; color: var(--accent); }
.sres .t { font-family: "Noto Serif KR", serif; font-size: 15px; line-height: 1.6; margin-top: 2px; }
mark { background: var(--sel); color: inherit; border-radius: 3px; padding: 0 1px; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translateX(-50%);
  z-index: 50; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px;
}
/* 선택 패널이 열려 있으면 마지막 절이 가려지지 않게 */
body.selecting main { padding-bottom: calc(env(safe-area-inset-bottom) + 200px); }
.backup-link { display: block; margin: -4px 0 12px auto; font-size: 13px; font-weight: 600; color: var(--accent); padding: 4px 0; }
.toast { max-width: calc(100% - 40px); text-align: center; border-radius: 16px; }

/* 새번역 각주: 절 바로 아래 */
.vnotes {
  display: block; margin: .3em 0 .1em; padding: .35em .7em; border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif; font-size: .7em; line-height: 1.6; color: var(--muted);
}
.vnotes .nt { display: block; padding-left: 1.5em; text-indent: -1.5em; border-radius: 4px; }
.vnotes .nt + .nt { margin-top: .15em; }
.vnotes .nt b { color: var(--accent); margin-right: .35em; font-weight: 700; }
.vnotes .nt.flash { animation: flash 1.6s ease; }
.v.sel .vnotes { text-decoration: none; }
/* 각주 속 다른 구절 링크 */
.xref {
  color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 2px; cursor: pointer; border-radius: 3px; text-indent: 0;
}
.xref:active { background: var(--accent-soft); }
.passage.pop { max-height: 50vh; font-size: 16px; }
.passage.pop > div + div { margin-top: .3em; }

/* ---------- 주일설교 연결 (성경(AFCC)판) ---------- */
.sbadge {
  display: inline-block; font-family: system-ui, sans-serif; font-size: .58em; font-weight: 700;
  color: #b3261e; background: color-mix(in srgb, #b3261e 12%, transparent); border-radius: 4px;
  padding: .05em .4em; margin-left: .35em; vertical-align: .3em; cursor: pointer; white-space: nowrap;
}
:root[data-theme="dark"] .sbadge { color: #ff8a80; background: color-mix(in srgb, #ff8a80 16%, transparent); }
.chap-sermons {
  display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 14px; padding: 7px 12px; border-radius: 999px;
  font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700;
  color: #b3261e; background: color-mix(in srgb, #b3261e 10%, transparent);
}
:root[data-theme="dark"] .chap-sermons { color: #ff8a80; background: color-mix(in srgb, #ff8a80 14%, transparent); }
.sermons { display: flex; flex-direction: column; }
.sermon { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.sermon:active { background: var(--accent-soft); }
.sermon .play {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #b3261e; color: #fff; font-size: 12px; margin-top: 2px;
}
.sermon .sbody { display: flex; flex-direction: column; min-width: 0; }
.sermon .st { font-size: 15px; font-weight: 600; line-height: 1.45; }
.sermon .sm { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sermon .sm b { color: var(--accent); }
.more-btn { width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--bg); font-weight: 700; font-size: 14px; }
/* 선택 패널 버튼이 5개여도 한 줄에 */
.sel-actions { width: 100%; }
.act { flex: 1 1 0; width: auto; max-width: 76px; }
.src-h { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 2px; font-size: 14px; font-weight: 700; color: var(--accent); }
.src-h small { color: var(--muted); font-weight: 400; font-size: 12px; }
/* 새 버전 알림 */
.upd-ver { margin: 0 0 6px; font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.upd-ver small { color: var(--muted); font-weight: 400; font-size: 13px; }
.upd-rel { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.upd-rel b { color: var(--accent); flex: none; }
.upd-rel ul { margin: 0; padding-left: 18px; }
.btnlink { flex: 1; display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: var(--bg); color: inherit; text-decoration: none; }
.btnlink.primary { background: var(--accent); color: var(--on-accent); }
/* 성경 읽기 영상 (AFCC: 마인드리셋) — 장 제목 아래 맨 앞 */
.chap-reading { display: flex; gap: 8px; align-items: stretch; margin: -4px 0 12px; }
.rd-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px;
  background: var(--accent-soft); color: inherit; text-decoration: none; font-family: system-ui, sans-serif; }
.rd-main:active { filter: brightness(.96); }
.rd-main .play { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #b3261e; color: #fff; font-size: 12px; }
.rd-main .sbody { display: flex; flex-direction: column; min-width: 0; }
.rd-main .st { font-size: 14px; font-weight: 700; color: var(--accent); }
.rd-main .sm { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-more { flex: none; padding: 0 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  font-family: system-ui, sans-serif; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ---------- 새번역 듣기 ---------- */
.listen-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: -6px 8px 12px 0; padding: 7px 14px; border-radius: 999px;
  font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700;
  color: var(--on-accent); background: var(--accent);
}
.listen-btn.on { background: var(--accent-soft); color: var(--accent); }
.player {
  position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 74px); z-index: 19;
  width: min(480px, calc(100% - 24px)); margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.16);
  font-family: system-ui, sans-serif;
}
.pl-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 16px; }
.pl-mid { flex: 1; min-width: 0; }
.pl-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-seek { width: 100%; margin: 2px 0 0; accent-color: var(--accent); }
.pl-time { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-speed { flex: none; padding: 6px 8px; border-radius: 10px; background: var(--bg); font-size: 12px; font-weight: 700; }
.pl-close { flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
body.listening main { padding-bottom: calc(env(safe-area-inset-bottom) + 170px); }
body.selecting .player { display: none; }
.v.reading { background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.pl-mode { white-space: nowrap; }
.listen-btn.webonly { background: var(--bg); color: var(--muted); border: 1px solid var(--line); font-weight: 600; }

/* 설교가 많을 때: 소제목 + 2열 작은 카드 */
.sub-h { margin: 10px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sermons.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.sermon.mini { flex-direction: column; gap: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.sermon.mini .st { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sermon.mini .sm { font-size: 11.5px; margin-top: 0; }

/* 새번역 소제목·시편 머리글 */
.shead { font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif; font-size: .82em; font-weight: 700; color: var(--accent); margin: 1.3em 4px .4em; line-height: 1.4; }
.shead:first-child { margin-top: .2em; }
.shead .xref { font-weight: 400; font-size: .9em; }
.psbook { font-family: system-ui, sans-serif; font-size: .78em; font-weight: 700; color: var(--muted); text-align: center; margin: .6em 0 .2em; letter-spacing: .05em; }
.pstitle { font-size: .85em; color: var(--muted); margin: 0 4px .5em; line-height: 1.5; }

/* 원어 보기 */
.owords { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.owords.rtl { direction: rtl; }
.oword { direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 8px 5px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); min-width: 54px; max-width: 46%; }
.oword:active { background: var(--accent-soft); }
.ow { font-family: "SBL Greek", "Gentium Plus", "Times New Roman", "Noto Serif", serif; font-size: 20px; line-height: 1.3; }
.ow[lang=he] { font-family: "SBL Hebrew", "Ezra SIL", "Noto Serif Hebrew", "Times New Roman", serif; font-size: 22px; }
.ow.big { font-size: 34px; }
.ow.big[lang=he] { font-size: 38px; }
.oe { font-family: system-ui, sans-serif; font-size: 12px; color: var(--text); text-align: center; line-height: 1.25; }
.on { font-family: system-ui, sans-serif; font-size: 10.5px; color: var(--muted); }
.ot { font-family: system-ui, sans-serif; font-size: 11.5px; color: var(--accent); font-style: italic; text-align: center; line-height: 1.2; }
.odict-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 6px 0 12px; }
.otr { font-family: system-ui, sans-serif; font-size: 14px; color: var(--muted); }
.odict-row { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-family: system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.odict-row b { color: var(--muted); font-weight: 600; font-size: 13px; }
.ouse { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.ouse .xref { padding: 4px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-family: system-ui, sans-serif; font-size: 13px; text-decoration: none; }
