@font-face{font-family:QuietTibetan;src:url('/fonts/tibetan.woff2') format('woff2');font-display:swap}
:root{--paper:#f8f6f0;--ink:#353b34;--quiet:#73786b;--sage:#606d54;--line:#dedfd3;--reader-scale:1;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Georgia,'Times New Roman',serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,summary{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.3;cursor:default}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--sage);outline-offset:5px;border-radius:3px}::selection{background:#dce3d3}.skip{position:absolute;top:-100px;left:20px;padding:12px;background:var(--paper);z-index:5}.skip:focus{top:8px}.site-header{max-width:1200px;margin:auto;padding:28px 48px;display:flex;align-items:center;justify-content:flex-end;font-family:system-ui,sans-serif;font-size:13px}.wordmark{font-family:Georgia,serif;font-size:20px;letter-spacing:.04em;min-height:44px;display:flex;align-items:center}.wordmark span{color:var(--sage)}.language-menu{position:relative;z-index:2}.language-menu summary{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px;padding:0 8px;list-style:none}.language-menu summary::-webkit-details-marker{display:none}.language-menu svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.2}.chevron{margin-left:4px;color:var(--quiet)}.language-menu nav{position:absolute;right:0;top:50px;background:#fcfbf6;border:1px solid var(--line);border-radius:10px;padding:8px;box-shadow:0 8px 26px #31392c0b;min-width:195px}.language-menu nav a{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:10px 12px;border-radius:5px}.language-menu nav a:hover,.language-menu nav a[aria-current]{background:#eaf0e3}.language-menu a:lang(bo){font-family:QuietTibetan,'Microsoft Himalaya',serif;font-size:19px}main{max-width:784px;margin:0 auto;padding:44px 32px 64px}.title-block{text-align:center;margin-bottom:36px}.enso{width:36px;height:36px;border:1px solid #89947c;border-right-color:transparent;border-bottom-width:2px;border-radius:50%;transform:rotate(-30deg);margin:0 auto 29px}h1{font-family:'Noto Serif CJK SC','Songti SC','STSong','SimSun',serif;font-size:36px;line-height:1.6;font-weight:400;letter-spacing:.15em;margin:0;text-wrap:balance}.subtitle{font-family:system-ui,sans-serif;color:var(--quiet);font-size:12px;line-height:1.8;letter-spacing:.12em;margin:16px 0 0}.reading-tools{display:flex;justify-content:center;align-items:center;gap:6px;margin:0 0 34px;color:var(--quiet);font:13px system-ui,sans-serif}.reading-tools[hidden]{display:none}.reading-tools button{background:transparent;border:0;min-width:44px;min-height:44px;border-radius:6px}.reading-tools button:hover{background:#e9ebdf}.reading-tools button span{font-size:11px;margin-left:3px}.pinyin-toggle{display:flex;align-items:center;justify-content:center;gap:9px;padding:0 12px}.toggle-track{display:inline-block;width:25px;height:14px;background:var(--sage);border-radius:20px;position:relative}.toggle-track:after{content:'';width:10px;height:10px;background:var(--paper);position:absolute;top:2px;right:2px;border-radius:50%}[aria-pressed=false] .toggle-track{background:#b8bcb0}[aria-pressed=false] .toggle-track:after{right:13px}.tool-divider{height:13px;width:1px;background:var(--line);margin:0 8px}.sutra{outline:none;--base-size:25px;font-size:calc(var(--base-size)*var(--reader-scale));font-family:'Noto Serif CJK SC','Songti SC','STSong','SimSun',serif;line-height:2.6;letter-spacing:.08em;line-break:strict;overflow-wrap:break-word}.sutra p{margin:0 0 1.25em}.sutra ruby{ruby-align:center;ruby-position:over}.sutra rt{font-family:Georgia,'Times New Roman',serif;font-size:.43em;line-height:1.2;letter-spacing:.01em;color:#73786b}.no-pinyin .sutra rt,.no-pinyin .sutra rp{display:none}.no-pinyin .sutra{line-height:2.25}.japanese .sutra{line-height:2.25;letter-spacing:.1em}.japanese h1{font-size:31px;letter-spacing:.08em}.latin h1{font-family:Georgia,serif;font-size:44px;letter-spacing:-.025em}.latin .subtitle{letter-spacing:.025em;font-size:13px}.latin .sutra{font-family:Georgia,'Times New Roman',serif;--base-size:21px;line-height:1.95;letter-spacing:0}.latin .sutra p{margin-bottom:1.5em}.tibetan h1,.tibetan .sutra,.tibetan .subtitle{font-family:QuietTibetan,'Microsoft Himalaya',serif;letter-spacing:0}.tibetan h1{font-size:40px}.tibetan .subtitle{font-size:18px;line-height:2}.tibetan .sutra{--base-size:25px;line-height:2.4;word-break:normal}.closing-mark{text-align:center;color:#89947c;font-size:26px;margin:44px 0 52px}footer{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;font:12px/1.9 system-ui,sans-serif;color:var(--quiet)}.source-note{flex:1}.source-note summary{min-height:44px;cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none}.source-note summary::-webkit-details-marker{display:none}.source-note summary:after{content:'＋';font-size:12px}.source-note[open] summary:after{content:'−'}.source-content{font-size:13px;max-width:590px;padding:6px 0 20px}.source-content a{text-decoration:underline;text-underline-offset:3px}.source-content p{margin:10px 0}.back-top{min-height:44px;display:flex;align-items:center;white-space:nowrap}.ending{text-align:center}.not-found{text-align:center;padding-top:25vh}.not-found p{margin-top:32px}
@media(min-width:1100px){main{padding-top:24px}.title-block{margin-bottom:24px}.sutra{--base-size:27px}}
@media(max-width:600px){.site-header{padding:16px 20px}.wordmark{font-size:18px}main{padding:24px 24px 40px}.enso{width:28px;height:28px;margin-bottom:23px}h1{font-size:27px;letter-spacing:.09em}.title-block{margin-bottom:20px}.subtitle{font-size:11px;margin-top:13px}.reading-tools{margin-bottom:24px}.sutra{--base-size:22px;line-height:2.75;letter-spacing:.055em}.sutra p{margin-bottom:1.15em}.sutra rt{font-size:.46em}.latin h1{font-size:36px}.latin .sutra{--base-size:19px}.japanese h1{font-size:25px}.japanese .sutra{--base-size:22px}.tibetan .sutra{--base-size:24px}.tibetan h1{font-size:34px}.closing-mark{margin:30px 0 36px}footer{gap:12px}.back-top{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{body{background:white;color:black}.site-header,.reading-tools,footer,.enso,.closing-mark{display:none}main{max-width:none;padding:0}h1{font-size:24px}.sutra{font-size:16px;line-height:2.4}.sutra p{break-inside:avoid}.title-block{margin-bottom:25px}.subtitle{color:#333}}

/* One palette for every surface: calm paper by day, soft charcoal by night. */
:root{--paper:#f8f6f0;--ink:#353b34;--quiet:#68715f;--sage:#606d54;--line:#dedfd3;--panel:#fcfbf6;--hover:#e8eddf;--selection:#dce3d3;--ring:#89947c;--off:#a3aa99;--shadow:#31392c0b}
:root[data-theme=dark]{--paper:#1c211d;--ink:#dce2d7;--quiet:#a8b29e;--sage:#adbc9c;--line:#3c4437;--panel:#242b24;--hover:#2f392c;--selection:#40513a;--ring:#9ba88d;--off:#646f5b;--shadow:#00000025;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-theme]){--paper:#1c211d;--ink:#dce2d7;--quiet:#a8b29e;--sage:#adbc9c;--line:#3c4437;--panel:#242b24;--hover:#2f392c;--selection:#40513a;--ring:#9ba88d;--off:#646f5b;--shadow:#00000025;color-scheme:dark}}
:root[data-theme=light]{color-scheme:light}
::selection{background:var(--selection)}
.site-header{gap:12px;padding-top:calc(28px + env(safe-area-inset-top));padding-left:max(48px,env(safe-area-inset-left));padding-right:max(48px,env(safe-area-inset-right))}
.header-tools{display:flex;align-items:center;gap:12px;min-width:0}
.wordmark{flex-shrink:0;min-height:48px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border:0;min-width:48px;min-height:48px;border-radius:7px;padding:0 10px;white-space:nowrap;font:12px system-ui,sans-serif;color:var(--quiet)}
.theme-toggle[hidden]{display:none}
.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sun-icon{display:none}
[data-theme=dark] .moon-icon{display:none}
[data-theme=dark] .sun-icon{display:block}
.language-menu summary,.language-menu nav a,.reading-tools button,.source-note summary,.back-top{min-height:48px}
.reading-tools button{min-width:48px}
.language-menu nav{background:var(--panel);box-shadow:0 8px 26px var(--shadow);max-width:calc(100vw - 32px)}
.language-menu nav a:hover,.reading-tools button:hover{background:transparent}
.language-menu nav a[aria-current]{background:var(--hover)}
.sutra rt{color:var(--quiet)}
.enso{border-color:var(--ring);border-right-color:transparent}
.closing-mark{color:var(--ring)}
[aria-pressed=false] .toggle-track{background:var(--off)}
.source-content{overflow-wrap:anywhere}
.source-content a{display:inline-block;min-height:32px;padding:3px 0}
.tibetan .language-menu summary span:first-of-type{font:18px QuietTibetan,'Microsoft Himalaya',serif}
.tibetan .source-note summary{font:17px QuietTibetan,'Microsoft Himalaya',serif}
.tibetan .theme-label{display:none}
main{padding-bottom:max(64px,env(safe-area-inset-bottom))}
@media(hover:hover) and (pointer:fine){.theme-toggle:hover,.reading-tools button:hover,.language-menu nav a:hover{background:var(--hover)}}
@media(max-width:600px){.site-header{gap:8px;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}.header-tools{gap:4px}.language-menu summary{gap:7px;padding:0 5px}.chevron{margin-left:0}.theme-toggle{padding:0 7px;gap:6px}.theme-label{font-size:11px}main{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right));padding-bottom:max(40px,env(safe-area-inset-bottom))}}
@media(max-width:350px){.site-header{padding-left:12px;padding-right:12px}.header-tools{gap:0}.language-menu summary svg{display:none}.theme-toggle{padding:0 6px}main{padding-left:20px;padding-right:20px}h1{font-size:25px}.reading-tools{gap:2px}}
@media print{.sutra rt{color:#555}body{background:#fff;color:#000}}

.language-menu nav{max-height:min(65vh,560px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
h1{overflow-wrap:anywhere}
.edition-brief{font:12px/1.8 system-ui,sans-serif;color:var(--quiet);margin:14px auto 0;max-width:590px;text-wrap:balance;letter-spacing:0}
.korean h1{font-family:'AppleMyungjo','Batang',serif;font-size:30px;letter-spacing:.02em}
.korean .sutra{font-family:'AppleMyungjo','Batang',serif;--base-size:24px;line-height:2.25;letter-spacing:0;word-break:keep-all;overflow-wrap:break-word}
.site-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 28px;margin:26px 0 0;font:12px/1.8 system-ui,sans-serif;color:var(--quiet)}
.site-links a{min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.text-footnotes{padding-left:22px;line-height:1.9}
.information-page main{max-width:850px}
.information-page h1{text-align:left;font-size:32px;letter-spacing:0;line-height:1.5;font-family:Georgia,'Songti SC',serif}
.information-page h2{font:400 21px/1.6 Georgia,'Songti SC',serif;margin:30px 0 12px}
.information-page main p{font:16px/1.95 Georgia,'Songti SC',serif;overflow-wrap:anywhere}
.information-page main a{text-decoration:underline;text-underline-offset:4px}
.information-page .information-intro{color:var(--quiet)}
.edition-directory{list-style:none;margin:28px 0;padding:0}
.edition-directory li{border-top:1px solid var(--line);padding:12px 0 22px}
.edition-directory h2{margin:12px 0}
.edition-directory p{margin:8px 0;color:var(--quiet)}
.edition-directory [lang=bo]{font-family:QuietTibetan,serif}
@media(max-width:600px){.korean h1{font-size:26px}.korean .sutra{--base-size:21px}.edition-brief{font-size:11px;line-height:1.9}.information-page h1{font-size:27px}}

@font-face{font-family:QuietThai;src:url('/fonts/thai.woff2') format('woff2');font-display:swap}
.thai h1,.thai .sutra,.thai .subtitle{font-family:QuietThai,'Thonburi',serif;letter-spacing:0}
.thai h1{font-size:36px;line-height:1.7}
.thai .sutra{--base-size:23px;line-height:2.1;word-break:normal;overflow-wrap:break-word}
.thai .subtitle{line-height:1.9}
.edition-directory [lang=th]{font-family:QuietThai,'Thonburi',serif}
@media(max-width:600px){.thai h1{font-size:29px}.thai .sutra{--base-size:21px}}

.guide-contents{display:flex;flex-direction:column;gap:.65rem;margin:2rem 0;padding-left:1rem;border-left:1px solid var(--line)}
.information-page section[id]{scroll-margin-top:2rem}
