/* PHO_TANGCHI_SUTTA_TOC_V1: route-only floating scripture index */
.ph-tc-sutta-toc-v1{position:fixed;left:8px;top:50%;transform:translateY(-50%);z-index:70;font-family:inherit;color:#392b1d;max-width:calc(100vw - 24px)}
.ph-tc-sutta-toc-v1[hidden],.ph-tc-sutta-toc-v1 [hidden]{display:none!important}
.ph-tc-sutta-toggle-v1{display:flex;flex-direction:column;align-items:center;gap:7px;width:48px;min-height:122px;padding:12px 8px;background:#faf5e9;border:1px solid #cfb98d;border-radius:12px;color:#704d27;-webkit-text-fill-color:#704d27;font:inherit;font-size:13px;font-weight:700;line-height:1.35;box-shadow:0 4px 18px #21160926;cursor:pointer}
.ph-tc-sutta-toggle-v1>span:last-child{writing-mode:vertical-rl}.ph-tc-sutta-toggle-v1>span:first-child{font-size:19px}
.ph-tc-sutta-panel-v1{position:absolute;left:58px;top:50%;transform:translateY(-50%);width:300px;max-width:calc(100vw - 86px);max-height:min(70vh,560px);display:flex;flex-direction:column;background:#fffdf8;border:1px solid #d6c5a5;border-radius:16px;box-shadow:0 12px 40px #21160933;overflow:hidden;color:#392b1d;-webkit-text-fill-color:#392b1d}
.ph-tc-sutta-panel-v1 header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 16px 14px;border-bottom:1px solid #e7dcc8;background:#f8f1e3}.ph-tc-sutta-panel-v1 small{display:block;font-size:10px;letter-spacing:.09em;color:#886d47;-webkit-text-fill-color:#886d47;margin-bottom:5px}.ph-tc-sutta-panel-v1 strong{display:block;font-size:16px;line-height:1.4;color:#5b3e20;-webkit-text-fill-color:#5b3e20}
.ph-tc-sutta-panel-v1 header button{flex-shrink:0;width:32px;height:32px;border:1px solid #dccbab;border-radius:8px;background:#fffdf8;color:#704d27;-webkit-text-fill-color:#704d27;font-size:24px;cursor:pointer;line-height:1}
.ph-tc-sutta-panel-v1 nav{overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-width:thin}.ph-tc-sutta-panel-v1 ol,.ph-tc-sutta-panel-v1 li{list-style:none!important;margin:0!important;padding:0!important}.ph-tc-sutta-panel-v1 a{display:block;padding:11px 12px;margin:2px 0;border-radius:8px;font-size:14px;line-height:1.45;color:#59432c!important;-webkit-text-fill-color:#59432c!important;text-decoration:none!important;overflow-wrap:anywhere}.ph-tc-sutta-panel-v1 a:hover,.ph-tc-sutta-panel-v1 a[aria-current]{background:#f1e5cc;color:#704012!important;-webkit-text-fill-color:#704012!important}.ph-tc-sutta-panel-v1 a[aria-current]{font-weight:750;box-shadow:inset 3px 0 #b68a3b}.ph-tc-sutta-toc-v1 button:focus-visible,.ph-tc-sutta-toc-v1 a:focus-visible{outline:3px solid #b68a3b;outline-offset:2px}.ph-tc-reader-v4 .ph-tc-sutta-target-v1{scroll-margin-top:110px!important}.ph-tc-sutta-empty-v1{padding:12px 16px}
@media(max-width:760px){.ph-tc-sutta-toc-v1{left:0}.ph-tc-sutta-toggle-v1{width:34px;min-height:110px;padding:10px 5px;font-size:11px;border-radius:0 10px 10px 0;opacity:.94}.ph-tc-sutta-panel-v1{left:42px;width:300px;max-width:calc(100vw - 54px);max-height:65vh}.ph-tc-sutta-panel-v1 header{padding:14px 12px}.ph-tc-sutta-panel-v1 a{min-height:44px}.ph-tc-reader-v4 .ph-tc-sutta-target-v1{scroll-margin-top:96px!important}}
@media print{.ph-tc-sutta-toc-v1{display:none!important}}
/* PHO_TOC_CREAM_CONTRAST_V2: override global dark section/header theme */
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1{background:#fffaf0!important;background-image:none!important;color:#1c140d!important;-webkit-text-fill-color:#1c140d!important;border-color:#cdb485!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 header{background:#fbf3e3!important;background-image:none!important;color:#1c140d!important;-webkit-text-fill-color:#1c140d!important;border-bottom-color:#d9bf8b!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 nav,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 ol,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 li{background:transparent!important;color:#1c140d!important;-webkit-text-fill-color:#1c140d!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 strong{color:#1c140d!important;-webkit-text-fill-color:#1c140d!important;font-weight:800!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 small{color:#65482b!important;-webkit-text-fill-color:#65482b!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a{color:#1c140d!important;-webkit-text-fill-color:#1c140d!important;font-weight:750!important;transition:background-color .18s ease,box-shadow .18s ease,color .18s ease!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a[aria-current]{background:#efddb5!important;color:#1c140d!important;-webkit-text-fill-color:#1c140d!important;box-shadow:inset 3px 0 #a87926!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a:hover,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a:focus-visible{background:#ffe6a2!important;color:#20160d!important;-webkit-text-fill-color:#20160d!important;box-shadow:inset 3px 0 #d99b24,0 0 14px rgba(225,164,43,.52)!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-toggle-v1,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 header button{background:#fff8eb!important;background-image:none!important;color:#392819!important;-webkit-text-fill-color:#392819!important}
@media(prefers-reduced-motion:reduce){body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a{transition:none!important}}
/* PHO_TOC_HOMEPAGE_PALETTE_V4: homepage #0d0502 + heading #fff2d2 */
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1{background:#0d0502!important;color:#fff2d2!important;-webkit-text-fill-color:#fff2d2!important;border-color:#79552c!important;box-shadow:0 12px 40px #0007!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 header{background:#0d0502!important;color:#fff2d2!important;-webkit-text-fill-color:#fff2d2!important;border-bottom-color:#674722!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 nav,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 ol,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 li{color:#fff2d2!important;-webkit-text-fill-color:#fff2d2!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 strong{color:#fff2d2!important;-webkit-text-fill-color:#fff2d2!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 small{color:#e5c98e!important;-webkit-text-fill-color:#e5c98e!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a{color:#fff2d2!important;-webkit-text-fill-color:#fff2d2!important;font-weight:750!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a[aria-current]{background:#38240f!important;color:#ffe3a1!important;-webkit-text-fill-color:#ffe3a1!important;box-shadow:inset 3px 0 #d9a536!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a:hover,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 a:focus-visible{background:#513516!important;color:#fff4cc!important;-webkit-text-fill-color:#fff4cc!important;box-shadow:inset 3px 0 #ffd36a,0 0 15px rgba(225,164,43,.45)!important}
body .ph-tc-sutta-toc-v1 .ph-tc-sutta-toggle-v1,body .ph-tc-sutta-toc-v1 .ph-tc-sutta-panel-v1 header button{background:#0d0502!important;color:#fff2d2!important;-webkit-text-fill-color:#fff2d2!important;border-color:#79552c!important}
