/* sutra.<도메인> — 종이 화면(기본)과 먹빛 밤 화면. 짜임은 classics.css, 영어 낱말 발음(rt)은 quran.css 의 것을 그대로.
   틀: web/templates/sutra/base.html, 동작: sutra.js. 무거운 장식(흐림·무한 움직임·큰 그림자) 없이. */
:root {
  --paper: #f3ece0; --paper2: #e9dfcc; --card: #fbf7ef; --line: #ddd0b6; --ink: #1f1a14; --ink2: #463e33; --mute: #6a604f;
  --acc: #a8371b; --acc2: #8a2a12; --gold: #946a12; --rt: #8a5600; --rt-hi: #5a3000; --en: #1d3466; --link: #8a2a12; --ok: #15803d; --bad: #be123c;
  --zh-font: 'Noto Serif KR', 'AppleMyungjo', 'Songti TC', 'PMingLiU', serif;
  --ko-font: 'Noto Serif KR', 'AppleMyungjo', serif;
  --rt-font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui, sans-serif;
  --fs: 1.55rem;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0d1424; --paper2: #142036; --card: #16213a; --line: #2c3b5a; --ink: #eee7d5; --ink2: #cfc6b0; --mute: #a7adbb;
  --acc: #f09466; --acc2: #b8461f; --gold: #e6bd62; --rt: #f2cd76; --rt-hi: #ffe7a6; --en: #cfe3f7; --link: #f5ae84; --ok: #4ade80; --bad: #fb7185;
  color-scheme: dark;
}
:root[data-fs="1"] { --fs: 1.3rem; } :root[data-fs="3"] { --fs: 1.85rem; } :root[data-fs="4"] { --fs: 2.2rem; }
/* 공용 조각(_site_foot·_ad_slot 등)이 읽는 이름을 이 사이트 색으로 */
:root { --text: var(--ink); --text-sub: var(--ink2); --muted: var(--mute); --faint: var(--mute); --border: var(--line); --border2: var(--mute); --accent: var(--acc); --accent2: var(--gold); }

* { box-sizing: border-box; }
body.su { margin: 0; background: var(--paper); color: var(--ink); }
.su a { color: var(--link); }
.su [hidden] { display: none !important; }
.su-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.su-narrow { max-width: 800px; }

.su-nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.su-nav-in { max-width: 1040px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 10px; }
.su-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink) !important; font-weight: 800; flex: none; min-height: 44px; }
.su-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--acc); color: #fff6ea; }
.su-logo svg { width: 24px; height: 24px; }
.su-brand-t { font-size: 1rem; white-space: nowrap; }
.su-tabs { margin-left: auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.su-tabs::-webkit-scrollbar { display: none; }
.su-tabs a, .su-tabs button { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 8px;
  color: var(--ink2) !important; text-decoration: none; font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.su-tabs a b[lang] { font-family: var(--zh-font); font-weight: 700; font-size: 1rem; }
.su-tabs a.on, .su-tabs a:hover, .su-tabs button:hover { background: var(--paper2); color: var(--acc) !important; }
.su-tabs .ic svg { width: 20px; height: 20px; }
.su-tabs a:focus-visible, .su-tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.su-due { position: absolute; top: 4px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--acc); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; }

.su-main { padding: 20px 0 40px; min-height: 60vh; }
.su-hero { text-align: center; padding: 22px 0 18px; }
.su-hero-sm { padding: 10px 0 8px; }
.su-kick { font-family: var(--zh-font); color: var(--acc); letter-spacing: .12em; font-weight: 700; margin: 0 0 8px; overflow-wrap: anywhere; }
.su-hero h1, .su-chh h1 { font-family: var(--ko-font); font-size: clamp(1.45rem, 4.5vw, 2.3rem); margin: 0 0 10px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.su-chh { margin: 0 0 12px; }
.su-chh h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
.su-cht { font-family: var(--zh-font); color: var(--acc); margin: -4px 0 4px; font-size: 1.05rem; }
.su-lead { max-width: 660px; margin: 0 auto; color: var(--ink2); line-height: 1.75; word-break: keep-all; }
.su-lead-l { margin: 0; }
html:not([lang="ko"]) .su-lead, html:not([lang="ko"]) .su-book small { word-break: normal; }
.su-meta { color: var(--mute); font-size: .86rem; font-weight: 700; margin: 4px 0 0; }
.su-search { display: flex; gap: 8px; max-width: 560px; margin: 18px auto 0; }
.su-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.su-search input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.su-search button { width: 46px; flex: none; border-radius: 10px; border: 0; background: var(--acc); color: #fff; cursor: pointer; }
.su-search button svg { width: 20px; height: 20px; }
.su-hint, .su-count { color: var(--mute); font-size: .86rem; text-align: center; }

.su-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 0 0 16px; }
.su-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 10px; margin-bottom: 4px; flex-wrap: wrap; }
.su-card-h h2 { font-size: .9rem; letter-spacing: .06em; color: var(--acc); margin: 0; }
.su-card-t { font-family: var(--ko-font); font-size: 1.12rem; margin: 0 0 10px; }
.su-card-t a { color: inherit; text-decoration: none; }
.su-card-t span { color: var(--acc); font-family: var(--zh-font); }
.su-ref { font-size: .88rem; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.su-sec-h { font-family: var(--ko-font); font-size: 1.22rem; margin: 24px 0 12px; }
.su-sec-h small { color: var(--mute); font-size: .8rem; }
.su-note { color: var(--mute); font-size: .88rem; line-height: 1.65; margin: 0 0 10px; word-break: keep-all; }
html:not([lang="ko"]) .su-note { word-break: normal; }
.su-how ul { margin: 0; padding-left: 1.1em; line-height: 1.75; color: var(--ink2); }
.su-how li { margin: 4px 0; word-break: keep-all; }
html:not([lang="ko"]) .su-how li { word-break: normal; }
.su-src2 { font-size: .8rem; color: var(--mute); margin: 8px 0 0; overflow-wrap: anywhere; }

/* 홈 경전 목록 */
.su-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.su-book { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
.su-book:hover { border-color: var(--acc); }
.su-book-t { font-family: var(--zh-font); font-size: 1.7rem; font-weight: 700; color: var(--acc); line-height: 1.2; overflow-wrap: anywhere; }
.su-book b { font-size: 1.05rem; }
.su-book small { color: var(--ink2); line-height: 1.6; word-break: keep-all; }
.su-book-n { margin-top: auto; font-size: .8rem; color: var(--mute); font-weight: 700; }
.su-book-r { color: var(--acc) !important; }

/* 목차 */
.su-list, .su-results { list-style: none; margin: 0; padding: 0; }
.su-list li + li, .su-results li + li { border-top: 1px dashed var(--line); }
.su-list a, .su-results a { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; padding: 10px 2px; min-height: 44px; text-decoration: none; color: var(--ink) !important; }
.su-results a { grid-template-columns: 1fr; gap: 3px; }
.su-l { font-size: .84rem; color: var(--mute); font-weight: 700; word-break: keep-all; }
.su-s { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.su-s > span, .su-results span[lang] { font-family: var(--zh-font); font-size: 1.02rem; overflow-wrap: anywhere; }
.su-s small, .su-results small { color: var(--ink2); }
.su-list a.seen .su-l::after { content: " ✓"; content: " ✓" / ""; color: var(--acc); }

/* 장 화면 */
.su-where { margin: 0 0 6px; font-size: .9rem; }
.su-where a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.su-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.su-bar button, .su-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink2); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: none; }
.su-bar button[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.su-bar button.pri, .su-btn.pri { background: var(--acc2); border-color: var(--acc2); color: #fff !important; font-weight: 700; }
.su-btn:disabled { opacity: .5; cursor: default; }
.su-bar button:focus-visible, .su-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.su-sel { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--mute); }
.su-sel select { min-height: 44px; max-width: 100%; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .88rem; }
.su-sel-w { display: flex; margin-bottom: 10px; } .su-sel-w select { flex: 1; min-width: 0; }

.vs { list-style: none; margin: 0; padding: 0; }
.v { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.vs-one .v { grid-template-columns: minmax(0, 1fr); border: 0; padding: 4px 0 0; }
.v-num { grid-row: 1 / span 2; align-self: start; text-align: center; padding-top: 6px; color: var(--mute); font-size: .82rem; font-weight: 700; text-decoration: none; min-height: 32px; }
.v-body { min-width: 0; }
.v-act { display: flex; gap: 6px; margin-top: 6px; }
.vs-one .v-act { margin-top: 2px; }
.v-act button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; }
.v-act button svg { width: 18px; height: 18px; }
.v-act button[aria-pressed="true"] { color: var(--acc); border-color: var(--acc); }
.v.on { background: color-mix(in srgb, var(--acc) 7%, transparent); border-radius: 10px; }
.vt { margin: 0 0 8px; }
.vt-orig { font-family: var(--zh-font); font-size: var(--fs); line-height: 2.3; letter-spacing: .03em; overflow-wrap: anywhere; }
.vt-orig[lang="pi"] { font-size: calc(var(--fs) * .78); line-height: 2.1; letter-spacing: 0; }
.vt-orig ruby { ruby-position: over; }
.vt-orig rt { font-family: var(--ko-font); font-size: max(11px, .46em); color: var(--rt); font-weight: 600; letter-spacing: 0; user-select: none; -webkit-user-select: none; }
.vt-orig[lang="pi"] rt { font-size: .55em; }
.ruby-off .vt-orig rt { visibility: hidden; }
.vt-rd { color: var(--rt); font-size: .95rem; font-weight: 600; }
.ruby-off .vt-rd { display: none; }
.vt-ko { font-family: var(--ko-font); font-size: 1.06rem; line-height: 1.85; word-break: keep-all; }
.vt-opt { display: none; color: var(--ink2); }
.ko-on .vt-opt { display: block; }
.vt-hun { color: var(--mute); font-size: .85rem; }
.vt-src { margin: -4px 0 8px; font-size: .74rem; color: var(--mute); font-style: italic; }
.vs-big .vt-orig { --fs: 1.9rem; }
/* 팔리어 낱말: 위에 한글 음, 아래에 뜻(gk 한국어·ge 영어 — 켠 것만) — 낱말마다 끊기지 않는 세로 덩어리 */
.vt-w { line-height: 1.5; letter-spacing: 0; }
.pw { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; margin: 0 .3em .45em 0; max-width: 100%; }
.pw ruby { display: inline-flex; flex-direction: column-reverse; align-items: center; white-space: nowrap; }
.pw rt { display: block; font: 600 max(12px, .5em)/1.25 var(--rt-font); color: var(--rt); text-align: center; }
.pw rt i { font-style: normal; } .pw rt i.l { opacity: 1; font-weight: 800; } .pw rt i.e { font-size: .72em; opacity: .55; }
.pw small { display: none; font: 400 max(11.5px, .42em)/1.3 var(--rt-font); color: var(--mute); text-align: center; max-width: 9em; white-space: normal; overflow-wrap: anywhere; }
.gk-on .pw small.gk, .ge-on .pw small.ge { display: block; }
.vt-orig[lang="pi"].vt-w { font-size: calc(var(--fs) * .8); }
.v.say-orig .vt-orig, .v.say-ko .vt-ko, .v.say-en .vt-en { background: color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 6px; }

/* ── 영어 + 한글 발음: 낱말마다 끊기지 않는 세로 덩어리(quran.css 와 같은 규칙) ── */
.vt-en { font-size: 1.02rem; line-height: 1.6; color: var(--en); overflow-wrap: normal; word-break: normal; }
.vt-en ruby { display: inline-flex; flex-direction: column; align-items: center; vertical-align: bottom; white-space: nowrap; line-height: 1.22; margin: .14em 0; }
.vt-en ruby > rt { display: block; order: -1; font: 500 max(12.5px, .62em)/1.2 var(--rt-font); color: var(--rt); letter-spacing: -.015em; text-align: center; white-space: nowrap;
  margin-bottom: .14em; padding: 0 .05em; user-select: none; -webkit-user-select: none; }
rt b { font-weight: 800; font-size: 1.13em; color: var(--rt-hi); }
rt b.a::before { content: "ˈ"; content: "ˈ" / ""; font-weight: 600; opacity: .85; margin-right: .03em; }
rt b.s { font-weight: 650; font-size: 1em; color: inherit; }
rt i { font-style: normal; font-weight: 400; font-size: .92em; opacity: .66; }
rt i.e { font-size: .7em; opacity: .5; letter-spacing: -.02em; }
rt i.f { font-size: .92em; opacity: .62; }
rt i.f i.e { font-size: .76em; opacity: .85; }
rt sup.c { font-size: .7em; opacity: .7; vertical-align: baseline; }
.ruby-off .vt-en ruby > rt { display: none; }
.ruby-off .vt-en ruby { margin: 0; }

/* 발음 보는 법(_bible_pron_legend.html) — 그 끝 '낱말을 누르면 뜻' 안내는 이 사이트에 없는 기능이라 숨긴다 */
.pk-lg { margin: 4px 0 8px; font-size: .88rem; color: var(--ink2); }
.pk-lg > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); color: var(--mute); font-weight: 700; list-style: none; }
.pk-lg > summary::-webkit-details-marker { display: none; }
.pk-lg > summary::before { content: "ˈ"; font-weight: 800; color: var(--rt); }
.pk-lg .pk-ex { margin: 10px 0 6px; font-size: 1.1rem; line-height: 1.5; }
.pk-lg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pk-lg li { display: flex; align-items: baseline; gap: 10px; line-height: 1.55; word-break: keep-all; }
html:not([lang="ko"]) .pk-lg li { word-break: normal; }
.pk-lg .pk-k { flex: none; min-width: 2.2em; text-align: center; font: 500 1rem var(--rt-font); color: var(--rt); }
.pk-lg .pk-k b, .pk-lg .pk-k i { font-style: normal; }
.pk-lg .pk-k b { font-weight: 800; color: var(--rt-hi); }
.pk-lg .pk-k i { opacity: .66; }
.pk-lg .pk-tip { display: none; }

.su-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 8px; }
.su-mark-b { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--acc); background: transparent; color: var(--acc); font: inherit; font-weight: 700; cursor: pointer; }
.su-mark-b[aria-pressed="true"] { background: var(--acc); color: #fff; }
.su-mark a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.su-pn { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin: 8px 0 0; }
.su-pn a { text-decoration: none; font-weight: 700; font-size: .9rem; padding: 10px 0; min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
.su-pn .next { justify-content: flex-end; text-align: right; } .su-pn .up { color: var(--mute); padding: 10px 12px; justify-content: center; }
.su-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.su-go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; background: var(--acc2); color: #fff !important; font-weight: 700; text-decoration: none; }
.su-resume span { font-size: .8rem; color: var(--mute); font-weight: 700; }
.su-dueb p { margin: 0 0 10px; }

/* 하단 재생기(.pl — quran.css·bible.css 의 것과 같은 짜임, 이 사이트 종이·먹 색. 흐림·무한 움직임 없이). sutra.js buildBar 가 만든다.
   --player-h 는 sutra.js 가 캡슐 높이를 재서 넣는다 — 문서 끝을 그만큼 띄운다. */
body.has-player { padding-bottom: calc(var(--player-h, 96px) + 24px + env(safe-area-inset-bottom)); }
html:has(body.has-player) { scroll-padding-bottom: calc(var(--player-h, 96px) + 24px + env(safe-area-inset-bottom)); }
.pl { position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; width: min(760px, calc(100% - 20px)); margin: 0 auto; pointer-events: none; }
.pl > * { pointer-events: auto; }
.pl-in { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .35); }
.pl.is-playing .pl-in { border-color: var(--acc); }
.pl-prog { position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 1px; overflow: hidden; }
.pl-prog i { display: block; height: 100%; background: var(--acc); transition: width .4s; }
.pl-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pl-where { font: 700 .95rem var(--ko-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pl-state { font-size: .74rem; color: var(--mute); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sleep { font-size: .7rem; color: var(--gold); font-weight: 800; }
.pl-sleep:empty { display: none; }
.pl-row { display: flex; align-items: center; gap: 2px; flex: none; }
.pl-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: none; color: var(--ink2); cursor: pointer; font: inherit; padding: 0; }
.pl-btn svg { width: 20px; height: 20px; fill: currentColor; }
.pl-btn:hover { background: var(--paper2); color: var(--ink); }
.pl-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.pl-main { width: 52px; height: 52px; margin: 0 2px; color: #fff; background: var(--acc2); }
.pl-main:hover { background: var(--acc); color: #fff; }
.pl-main svg { width: 24px; height: 24px; }
.pl-main .i-pause, .pl.is-playing .pl-main .i-play { display: none; }
.pl.is-playing .pl-main .i-pause { display: block; }
.pl-ord, .pl-rep { width: auto; min-width: 44px; padding: 0 8px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.pl-rep.on { color: var(--acc); }
@media (max-width: 560px) {
  .pl-in { flex-wrap: wrap; border-radius: 22px; padding: 10px 10px 8px; row-gap: 6px; }
  .pl-info { flex: 1 1 100%; padding: 0 6px; }
  .pl-row { flex: 1 1 100%; justify-content: space-between; }
}
.pl-sheet { position: absolute; right: 0; bottom: calc(100% + 10px); width: 400px; max-width: 100%; max-height: 70vh; overflow-y: auto; padding: 14px 16px 10px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .45); color: var(--ink); }
.pl-sheet .sh-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pl-sheet .sh-h b { font: 700 1.02rem var(--ko-font); }
.x-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper2); border: 1px solid var(--line); color: var(--ink2); cursor: pointer; font-size: 1rem; }
.pl-sheet .row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.pl-sheet .lbl { flex: 0 0 100%; font-size: .76rem; font-weight: 800; color: var(--mute); }
.pl-sheet .note { flex: 0 0 100%; font-size: .74rem; color: var(--mute); }
.pl-sheet .arr { color: var(--mute); font-weight: 800; align-self: center; }
.pl-sheet input[type="range"] { flex: 1 1 auto; accent-color: var(--acc); height: 44px; min-width: 0; }
.pl-sheet .val { min-width: 52px; text-align: right; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: inherit; font-size: .82rem; font-weight: 800; color: var(--ink2); cursor: pointer; }
.seg button.on { background: var(--acc2); color: #fff; border-color: transparent; }
.sw { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9rem; font-weight: 700; cursor: pointer; }
.sw input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--paper2); border: 1px solid var(--line); position: relative; cursor: pointer; flex: none; margin: 0; }
.sw input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--mute); transition: transform .2s; }
.sw input:checked { background: var(--acc2); border-color: transparent; }
.sw input:checked::after { transform: translateX(18px); background: #fff; }
.pl-sheet .eng { font-size: .74rem; color: var(--mute); line-height: 1.5; }
@media (max-width: 560px) {
  .pl.sheet-open::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); pointer-events: auto; }
  .pl-sheet { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; width: 100%; max-height: 80vh; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.pl-gesture { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.pl-gesture button { min-height: 60px; padding: 0 30px; border-radius: 999px; border: 0; font: inherit; font-size: 1.05rem; font-weight: 800; color: #fff; background: var(--acc2); cursor: pointer; }
/* 읽는 낱말(boundary 가 오는 음성만) */
.tts-w { background: color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 4px; }
@media print { .pl { display: none !important; } }

/* 암송 */
.su-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.su-stats div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--paper); text-align: center; }
.su-stats b { font-size: 1.4rem; color: var(--acc); }
.su-stats span { font-size: .74rem; color: var(--mute); word-break: keep-all; }
.su-mzs .su-btn.pri { width: 100%; min-height: 52px; font-size: 1rem; border-radius: 14px; }
.su-qc-ref { font-size: .82rem; color: var(--mute); font-weight: 700; margin: 0 0 8px; }
.su-qc-front { font-family: var(--ko-font); font-size: 1.1rem; line-height: 1.8; margin: 0 0 8px; word-break: keep-all; }
html:not([lang="ko"]) .su-qc-front { word-break: normal; }
.su-qc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.su-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.su-grade button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.su-grade small { font-size: .7rem; color: var(--mute); font-weight: 500; }
.su-grade button[data-grade="1"] { border-color: var(--bad); } .su-grade button[data-grade="4"] { border-color: var(--ok); }
.su-mzl .row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.su-mzl .row a { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 4px 0; text-decoration: none; }
.su-mzl .row a b { font-size: .84rem; }
.su-mzl .row a span { font-family: var(--zh-font); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-mzl .row small { flex: none; font-size: .76rem; color: var(--mute); }
.su-mzl .row button { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--mute); cursor: pointer; border-radius: 8px; }
.su-io { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.su-imp { position: relative; }
.su-imp input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.su-imp:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }

/* 따라 익히기 */
.su-tabs2 { display: flex; gap: 6px; margin: 0 0 12px; }
.su-tabs2 button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); font: inherit; font-weight: 700; cursor: pointer; }
.su-tabs2 button[aria-selected="true"] { background: var(--acc2); border-color: var(--acc2); color: #fff; }
.px-mean { font-family: var(--ko-font); line-height: 1.75; margin: 0 0 10px; color: var(--ink2); word-break: keep-all; }
.px-ans { min-height: 60px; padding: 8px; border-radius: 12px; border: 1.5px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; margin: 0 0 10px; }
.px-pool { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.px-pool button, .px-ans button { min-height: 44px; padding: 4px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--zh-font); font-size: 1.05rem; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.px-ans button { background: var(--paper2); }
.px-in { display: block; width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; }
.px-res { margin: 10px 0 0; font-weight: 700; }
.px-res.ok { color: var(--ok); } .px-res.bad { color: var(--bad); }
.px-diff { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; } .px-diff .x { color: var(--bad); text-decoration: underline; } .px-diff .o { color: var(--ok); }

/* 읽은 장 지도 */
.su-pg-sum { font-size: 1.1rem; margin: 0 0 8px; } .su-pg-sum b { color: var(--acc); font-size: 1.4rem; }
.su-bar2 { height: 10px; border-radius: 5px; background: var(--paper2); overflow: hidden; } .su-bar2 i { display: block; height: 100%; width: 0; background: var(--acc); }
.su-pg-next { margin: 10px 0 0; }
.su-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.su-map a { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink2) !important; text-decoration: none; font-weight: 700; font-size: .85rem; }
.su-map a.seen { background: var(--acc); border-color: var(--acc); color: #fff !important; }

/* 푸터 */
.su-foot { max-width: 1040px; margin: 0 auto; padding: 10px 16px 90px; }
.pg-guide { margin: 12px 0 4px; font-size: .92rem; } .pg-guide a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.su-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--mute); margin: 16px 0 8px; }
.su-crumb a { color: var(--mute); text-decoration: none; }
.su-legal { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; margin: 8px 0; }
.su-legal a { color: var(--mute); }
.su-src { font-size: .78rem; color: var(--mute); line-height: 1.6; margin: 12px 0 0; overflow-wrap: anywhere; }
.su-empty { text-align: center; padding: 40px; }
.su-toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--card); font-size: .9rem; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.su-toast.on { opacity: 1; transform: translate(-50%, 0); }
a.skip { position: fixed; left: 8px; top: -80px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--card); font-weight: 700; text-decoration: none; }
a.skip:focus { top: 60px; }
main:focus { outline: none; }

@media (max-width: 560px) {
  .su-brand-t { display: none; }
  .su-card { padding: 14px; }
  .su-list a { grid-template-columns: 6.4em minmax(0, 1fr); }
  .v { grid-template-columns: 26px minmax(0, 1fr); column-gap: 6px; }
  .su-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .su-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
  .v-num { min-height: 44px; min-width: 32px; }
}
/* 팔리어 로마자(ā ṅ ṭ ṁ …): Noto Serif KR 에는 이 글자가 없어 다른 글꼴로 섞여 갈매기표가 어긋났다 — 이 글자들을 다 가진 기기 명조로 */
.vt-orig[lang="pi"], [lang="pi"] { font-family: 'Times New Roman', Times, 'Noto Serif', 'DejaVu Serif', serif; }
.su-where a { gap: .35em; }
.su-qc-back .vt-orig, .su-qc-back .vt-rd, .su-qc-back .vt-ko { white-space: pre-line; }
/* 좁은 폰: 경전 이름 칸은 홈·목차에 있으니 숨기고 암송·검색·밝기를 늘 보이게(칸이 넘쳐 옆으로 밀려 안 보였다) */
@media (max-width: 420px) { .su-tabs a.bk:not(.on) { display: none; } }

/* ── 행간 보기(2026-11-16, quran.css 의 것을 이 사이트 색으로 — /static/shared/interlinear.js): 원문 > 발음 > 뜻.
   영어 낱말은 위 한글 발음·아래 한국어 뜻, 한국어 어절은 위 로마자·아래 영어 뜻. 법구경 한국어 줄(.kl)은 줄마다 따로 입힌다. ── */
.vt-ko .kl { display: inline; }
.vt-en ruby > .ig, .vt-ko.il .ig, .vt-ko .il .ig { display: block; order: 2; font: 500 max(11px, .56em)/1.15 var(--rt-font); color: var(--mute); white-space: normal;
  max-width: 8.5em; text-align: center; margin-top: .12em; letter-spacing: -.01em; overflow-wrap: anywhere; }
.vt-ko.il .kw, .vt-ko .il .kw { display: inline-flex; flex-direction: column; align-items: center; vertical-align: bottom; margin: .1em 0; max-width: 100%; }
.vt-ko.il .kr, .vt-ko .il .kr { font: 500 max(11px, .6em)/1.2 var(--rt-font); color: var(--rt); white-space: nowrap; margin-bottom: .1em; }
.vt-ko.il .kt, .vt-ko .il .kt { white-space: nowrap; line-height: 1.3; }
.vt-ko.il, .vt-ko .il { line-height: 1.5; }
.vt-en ruby > .ig:empty, .vt-ko.il .ig:empty, .vt-ko .il .ig:empty { min-height: 1.15em; }
.vt-en ruby > .ig.f { opacity: .62; }
.ig .igp b { font-weight: 800; color: var(--rt-hi); }
.ig .igp b.a::before { content: "ˈ"; font-weight: 600; opacity: .85; }
.ig .igp b.s { font-weight: 650; color: inherit; }
.ig .igp i { font-style: normal; opacity: .66; }
.ig .igp i.e { font-size: .72em; opacity: .55; }
.ig .igp i.f { opacity: .62; }
.ig .igp { display: block; font-size: .84em; line-height: 1.15; opacity: .88; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }   /* 긴 뜻의 발음도 폰 폭 안에서 줄을 바꾼다 */
.il-note { margin: 14px 4px 0; font-size: .74rem; color: var(--mute); line-height: 1.5; }
.ruby-off .ig .igp, .ruby-off .vt-en ruby > .ig, .ruby-off .vt-ko .ig, .ruby-off .vt-ko .kr { display: none; }
.irl { display: none; }   /* 문장 성분 꼬리표 — 불경 데이터엔 없다 */
.px-mean > b { display: block; margin-bottom: 2px; font-size: .84rem; }
.su-qc-front .vt { margin: 0; }

/* ── 불경 정체성(2026-11-16, 운영자 「디자인을 불경 쪽을 더 강화」): 연꽃 · 단청(녹청·주홍·황·감청) · 은은한 금빛 · 법당 ──
   quran·law 와 같은 원칙: 그림은 전부 CSS·인라인 SVG(요청 0), 본문(원문·한글 음·한국어·영어)과 행간 글자 크기·대비·간격은 그대로,
   바탕 문양(꽃살문 창살)은 대문·목차·암송 첫 화면에만 아주 옅게 — 경전을 읽는 화면과 카드 안(본문 뒤)엔 문양 없음.
   움직임은 대문 연꽃이 처음 한 번 피고 풍경이 한 번 흔들리는 것뿐(움직임 줄이기면 없음). 흐림·무한 움직임·큰 그림자 없음. */
:root {
  --dc-g: #2a7a6b; --dc-r: #b8361e; --dc-y: #dea21f; --dc-b: #1f3a68; --dc-b2: #1f3a68;
  --pillar: #9c3418; --hall: #fbf4e6; --glow: rgba(222, 162, 31, .22); --roof: #34343a; --roof-edge: #8a6a2a;
  --dc-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Crect width='40' height='12' fill='%232a7a6b'/%3E%3Crect width='40' height='2' fill='%23b8361e'/%3E%3Crect y='10' width='40' height='2' fill='%231f3a68'/%3E%3Crect y='2.6' width='40' height='.7' fill='%23f7efe0'/%3E%3Crect y='8.7' width='40' height='.7' fill='%23f7efe0'/%3E%3Cpath d='M10 3.6L12.4 6L10 8.4L7.6 6Z' fill='%23dea21f'/%3E%3Ccircle cx='30' cy='6' r='2.2' fill='%23b8361e' stroke='%23f7efe0' stroke-width='.7'/%3E%3Cpath d='M0 6H5M15 6H25.5M34.5 6H40' stroke='%23f7efe0' stroke-width='.5' stroke-opacity='.55'/%3E%3C/svg%3E");
  --dc-raft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='22'%3E%3Crect width='24' height='22' fill='%231f3a68'/%3E%3Ccircle cx='12' cy='10.5' r='8.2' fill='%232a7a6b' stroke='%23dea21f' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='10.5' r='4.4' fill='%23b8361e'/%3E%3Ccircle cx='12' cy='10.5' r='1.6' fill='%23f7efe0'/%3E%3Crect y='20.4' width='24' height='1.6' fill='%23f7efe0' fill-opacity='.8'/%3E%3C/svg%3E");
  --su-petal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 37C13 36 5 31 2 23C9 22 15 26 20 37ZM20 37C27 36 35 31 38 23C31 22 25 26 20 37Z' fill-opacity='.2' stroke='%23000' stroke-opacity='.5' stroke-width='1.1'/%3E%3Cpath d='M20 3C31 10 36 20 32 30C30 35 25 37 20 37C15 37 10 35 8 30C4 20 9 10 20 3Z' fill-opacity='.13' stroke='%23000' stroke-opacity='.85' stroke-width='1.3'/%3E%3C/svg%3E");   /* 마스크(모양만) — 색은 CSS 가 칠한다 */
  --su-lotus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M16 21C9 21 3 17 1 11C7 11 12 14 16 21ZM16 21C23 21 29 17 31 11C25 11 20 14 16 21Z' fill='%23e98a6c' fill-opacity='.35' stroke='%23b8361e' stroke-width='1'/%3E%3Cpath d='M16 21C11 17 9 10 11 4C14 8 16 14 16 21ZM16 21C21 17 23 10 21 4C18 8 16 14 16 21Z' fill='%23e98a6c' fill-opacity='.5' stroke='%23b8361e' stroke-width='1'/%3E%3Cpath d='M16 20C13 15 13 7 16 1C19 7 19 15 16 20Z' fill='%23e98a6c' fill-opacity='.8' stroke='%23b8361e' stroke-width='1'/%3E%3Cpath d='M7 23H25' stroke='%23b8860b' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --su-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23a8803c'%3E%3Cpath d='M24 0V48M0 24H48M0 0L48 48M48 0L0 48' stroke-opacity='.04'/%3E%3Cpath d='M24 15C27 18 27 21 24 24C21 21 21 18 24 15ZM24 33C27 30 27 27 24 24C21 27 21 30 24 33ZM15 24C18 21 21 21 24 24C21 27 18 27 15 24ZM33 24C30 21 27 21 24 24C27 27 30 27 33 24Z' stroke-opacity='.09'/%3E%3Ccircle cx='24' cy='24' r='2' stroke-opacity='.09'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --dc-b2: #5a7fc0;
  --pillar: #8a2c16; --hall: #111c33; --glow: rgba(230, 189, 98, .15); --roof: #060b16; --roof-edge: #c99a3e;
}
/* 밤 화면: 밝은 주홍(--acc) 위 흰 글자는 대비가 낮아 짙은 주홍(--acc2)으로 */
:root[data-theme="dark"] .su-search button, :root[data-theme="dark"] .su-mark-b[aria-pressed="true"], :root[data-theme="dark"] .su-map a.seen,
:root[data-theme="dark"] .su-due, :root[data-theme="dark"] .pl-main:hover { background: var(--acc2); border-color: var(--acc2); }

/* 바탕: 꽃살문 창살 — 첫 화면 위쪽에만, 아래로 사라진다(경전 읽는 화면엔 없음) */
.su-main { position: relative; }
html[data-page="index"] .su-main::before, html[data-page="book"] .su-main::before, html[data-page="memorize"] .su-main::before,
html[data-page="progress"] .su-main::before, html[data-page="practice"] .su-main::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 820px; pointer-events: none;
  background: linear-gradient(transparent, var(--paper)), var(--su-lattice) 50% 0 / 48px 48px; }
.su-main > .su-wrap { position: relative; }

/* 머리: 아래 테두리를 단청 띠로, 로고는 주홍 바탕에 금테 */
.su-nav { border-bottom: 0; }
.su-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--dc-band) 0 50% / 20px 6px repeat-x; pointer-events: none; }
.su-logo { background: radial-gradient(circle at 50% 30%, #c94a2c, #8a2a12); color: #ffe7b8; box-shadow: inset 0 0 0 1.5px rgba(222, 162, 31, .75); }
.su-tabs a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--dc-y); }

/* 공용 장식: 가운데 작은 연꽃 + 양쪽으로 흐려지는 금빛 줄 */
.su-dang::after, .su-hero-sm::after {
  content: ''; display: block; width: min(340px, 82%); height: 24px; margin: 22px auto 0;
  background: var(--su-lotus) 50% 50% / 32px 24px no-repeat,
    linear-gradient(90deg, transparent, var(--gold)) 0 50% / calc(50% - 26px) 1px no-repeat,
    linear-gradient(90deg, var(--gold), transparent) 100% 50% / calc(50% - 26px) 1px no-repeat; }

/* ── 대문: 법당 — 처마(기와 곡선)·서까래 끝 단청·창방 띠 · 붉은 기둥 · 연꽃과 광배 ── */
.su-dang { --hp: clamp(14px, 5vw, 56px); position: relative; margin: 6px 0 24px; padding: 0 var(--hp) 26px;
  background: radial-gradient(55% 260px at 50% 120px, var(--glow), transparent 75%), linear-gradient(var(--hall), color-mix(in srgb, var(--hall) 35%, var(--paper)));
  border-inline: 6px solid var(--pillar); border-bottom: 1px solid var(--line); border-radius: 0 0 18px 18px;
  box-shadow: inset 1px 0 0 rgba(222, 162, 31, .45), inset -1px 0 0 rgba(222, 162, 31, .45); }
.su-eave { margin: 0 calc(-1 * (var(--hp) + 16px)); position: relative; }
.su-roof { display: block; width: 100%; height: 18px; }
.su-roof path { fill: var(--roof); }
.su-roof .edge { fill: none; stroke: var(--roof-edge); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.su-raft { display: block; height: 22px; margin: 0 16px; background: var(--dc-raft) 50% 0 / 24px 22px repeat-x; }
.su-dcb { display: block; height: 12px; margin: 0 16px; background: var(--dc-band) 50% 0 / 40px 12px repeat-x; }
.su-pung { position: absolute; top: 52px; width: 18px; height: 50px; transform-origin: 50% 0; }
.su-pung.l { left: 10px; } .su-pung.r { right: 10px; }
.su-lotus { display: block; width: clamp(150px, 30vw, 220px); height: auto; margin: 16px auto 4px; overflow: visible; }
.su-dang .su-kick { margin-top: 4px; }
.su-dang h1 { color: var(--ink); }
.su-dang .su-search input { background: var(--card); }
@media (prefers-reduced-motion: no-preference) {
  .su-lotus .pt { transform-box: fill-box; transform-origin: 50% 100%; animation: suBloom 1s cubic-bezier(.2, .7, .2, 1) both; }
  .su-lotus .p2 { animation-delay: .12s; } .su-lotus .p3 { animation-delay: .24s; } .su-lotus .p4 { animation-delay: .36s; }
  .su-lotus .halo { animation: suFade 1.4s ease-out .4s both; }
  .su-pung { animation: suSwing 2.4s ease-in-out .6s 1 both; }
  .su-pung.r { animation-delay: .9s; }
}
@keyframes suBloom { from { transform: scale(.35, .15); opacity: 0; } }
@keyframes suFade { from { opacity: 0; } }
@keyframes suSwing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(7deg); } 55% { transform: rotate(-4deg); } 80% { transform: rotate(1.5deg); } }
@media (max-width: 560px) {
  .su-dang { border-inline-width: 4px; padding-bottom: 20px; }
  .su-raft { height: 18px; background-size: 19.6px 18px; }
  .su-dcb { height: 10px; background-size: 33.3px 10px; }
  .su-pung { top: 44px; width: 14px; height: 39px; }
  .su-pung.l { left: 4px; } .su-pung.r { right: 4px; }
}

/* 섹션 제목: 연꽃 표지 + 단청 띠가 흐려지며 이어진다 */
.su-sec-h { display: flex; align-items: center; gap: 10px; }
.su-sec-h::before { content: ''; flex: none; width: 30px; height: 22px; background: var(--su-lotus) center / contain no-repeat; }
.su-sec-h::after { content: ''; flex: 1 1 40px; min-width: 24px; height: 6px; background: var(--dc-band) 0 50% / 20px 6px repeat-x;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent); mask: linear-gradient(90deg, #000 40%, transparent); }

/* 카드 머리 단청 띠(오늘의 구절·목차·암송 상자·처음 구절) */
.su-today, .su-toc, .su-mzs, .su-dueb { position: relative; overflow: hidden; padding-top: 26px; }
.su-today::before, .su-toc::before, .su-mzs::before, .su-dueb::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--dc-band) 0 0 / 26.7px 8px repeat-x; }

/* 오늘의 구절: 금빛 안쪽 테 + 위쪽 은은한 빛(글 뒤엔 문양 없음) */
.su-today { border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  background: radial-gradient(70% 90px at 50% 0, var(--glow), transparent), var(--card);
  box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px color-mix(in srgb, var(--gold) 28%, transparent); }
.su-today .su-card-h { padding: 0 4px; }
.su-today .su-card-h h2 { display: flex; align-items: center; gap: 8px; font-family: var(--ko-font); font-size: 1.05rem; letter-spacing: .04em; }
.su-today .su-card-h h2::before { content: ''; flex: none; width: 28px; height: 21px; background: var(--su-lotus) center / contain no-repeat; }

/* 대문 경전 세 권: 위 단청 띠, 오른쪽 아래 아주 옅은 연꽃 */
.su-book { position: relative; overflow: hidden; padding-top: 26px; transition: border-color .2s, transform .2s; }
.su-book::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--dc-band) 0 0 / 26.7px 8px repeat-x; }
.su-book::after { content: ''; position: absolute; right: -16px; bottom: -12px; width: 120px; height: 90px; background: var(--su-lotus) center / contain no-repeat; opacity: .08; pointer-events: none; }
.su-book:hover { border-color: var(--gold); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .su-book { transition: none; } .su-book:hover { transform: none; } }
.su-book-n { color: var(--acc); }
.su-how { border-left: 4px solid var(--dc-g); }
.su-how li::marker { color: var(--dc-r); }

/* 경전 목차 머리: 작은 연꽃 표지 */
.su-hero-sm::before { content: ''; display: block; width: 52px; height: 39px; margin: 0 auto 6px; background: var(--su-lotus) center / contain no-repeat; }

/* 품·분 목록: 번호를 연꽃잎 표지 안에, 읽은 장은 잎이 칠해진다 */
.su-list.has-no a { grid-template-columns: 40px 8.5em minmax(0, 1fr); align-items: center; }
.su-no { position: relative; isolation: isolate; width: 40px; height: 40px; display: grid; place-items: center; padding-top: 5px;
  color: var(--acc); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.su-no::before, .v-num::before { content: ''; position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 100%; background: var(--acc);
  -webkit-mask: var(--su-petal) center / 100% 100% no-repeat; mask: var(--su-petal) center / 100% 100% no-repeat; }
.su-list a.seen .su-no { background: radial-gradient(circle at 50% 58%, var(--acc2) 0 11px, transparent 12px); color: #fff; }
.su-list a { border-radius: 10px; }
.su-list a:hover { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.su-list li + li { border-top-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
@media (max-width: 560px) {
  .su-list.has-no a { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 2px; column-gap: 10px; }
  .su-list.has-no .su-no { grid-row: 1 / span 2; }
  .su-list.has-no .su-l, .su-list.has-no .su-s { grid-column: 2; }
}

/* 읽기 화면 머리: 단청 띠 + 주홍 원제 */
.su-chh::before { content: ''; display: block; height: 8px; margin: 0 0 14px; border-radius: 2px; background: var(--dc-band) 0 0 / 26.7px 8px repeat-x; }
.su-cht { color: var(--acc); }

/* 게송·구절 번호: 연꽃잎 표지 안에(누르는 칸은 그대로 44px) */
.v { grid-template-columns: 38px minmax(0, 1fr); border-bottom-color: color-mix(in srgb, var(--gold) 22%, var(--line)); }
.vs-one .v { grid-template-columns: minmax(0, 1fr); }
.v-num { display: block; min-height: 40px; padding-top: 13px; line-height: 1.2; color: var(--acc); font-size: .84rem; letter-spacing: -.02em;
  position: relative; isolation: isolate; font-variant-numeric: tabular-nums; }
.v-num::before { left: 50%; width: 38px; height: 40px; margin-left: -19px; }
.vs-one .v-num { justify-self: center; width: 38px; margin-bottom: 2px; }
@media (max-width: 560px) {
  .v { grid-template-columns: 32px minmax(0, 1fr); }
  .v-num { padding-top: 10px; min-height: 34px; }
  .v-num::before { width: 32px; height: 34px; margin-left: -16px; }
  .vs-one .v-num { width: 32px; }
}
@media (pointer: coarse) { .v-num { min-height: 44px; } }
.v.on { background: color-mix(in srgb, var(--gold) 9%, transparent); box-shadow: inset 3px 0 0 var(--dc-y); }
.v-act button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--paper)); }

/* 암송·진도: 네 칸 위에 단청 네 빛깔, 진도 막대는 녹청→황→주홍 */
.su-stats div { position: relative; overflow: hidden; padding-top: 14px; border: 1px solid var(--line); }
.su-stats div::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dc-g); }
.su-stats div:nth-child(2)::before { background: var(--dc-r); } .su-stats div:nth-child(3)::before { background: var(--dc-y); } .su-stats div:nth-child(4)::before { background: var(--dc-b2); }
.su-bar2 i { background: linear-gradient(90deg, var(--dc-g), var(--dc-y) 55%, var(--dc-r)); }
.su-qc-box { border-left: 3px solid var(--dc-y); padding-left: 12px; }

/* 하단 재생기: 금빛 테·단청 빛 진행 줄·주홍 단추 금테(동작은 그대로) */
.pl-in { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.pl.is-playing .pl-in { border-color: var(--gold); }
.pl-prog i { background: linear-gradient(90deg, var(--dc-g), var(--dc-y) 50%, var(--dc-r)); }
.pl-main { background: radial-gradient(circle at 50% 32%, #c94a2c, var(--acc2)); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--gold) 70%, transparent); }
.pl-sheet { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.pl-sheet::before { content: ''; display: block; height: 6px; margin: -14px -16px 10px; background: var(--dc-band) 0 0 / 20px 6px repeat-x; }
.pl-sleep { color: var(--gold); }


/* 11-25 나토 대화 띠 — 대문 밖 쪽에도 나토 대화 띠(_nato_bottom)가 붙는다(성경과 같음, 대표 「채팅창도 사라지고」).
   폰·태블릿(띠가 아래 56px): 재생 막대를 띠 위로. 넓은 화면(1100px~ — 띠가 오른쪽 360px 칸): 막대를 남은 폭 가운데로. */
html.nt-framed .pl { bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  html.nt-framed .pl { bottom: calc(12px + env(safe-area-inset-bottom)); }
  html.nt-framed:not(.dock-shut) .pl { right: 360px; width: min(760px, calc(100% - 380px)); }
}
