:root{color-scheme:light dark}body{margin:0;font:15px/1.6 system-ui;background:#f9f9f7;color:#151515}header{max-width:1040px;margin:20px auto;padding:0 16px}a{color:#2a78d6}header h1{font-size:26px}nav{line-height:2.2}section{scroll-margin-top:16px}details{padding:12px;border-top:1px solid #898781;margin-top:14px}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere}button,a,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #2a78d6;outline-offset:3px}table{display:block;overflow-x:auto}*{min-width:0}#c-s2 .sc .v{white-space:normal}#c-s3 .map{grid-template-columns:140px repeat(5,minmax(0,1fr)) 8px minmax(0,1fr)}#c-d1 .bars{grid-template-columns:80px minmax(45px,1fr) 130px}#c-d4 .tr .v{left:auto!important;right:0;top:-4px}#c-d1 .face{min-width:0}#c-s2 .chip{overflow-wrap:anywhere}
@media(max-width:720px){#c-s3 .map{grid-template-columns:80px repeat(5,minmax(0,1fr))}#c-s3 .cell{font-size:14px}#c-d1 .face{padding:10px}#c-d1 .bars{grid-template-columns:72px minmax(20px,1fr) 120px}#c-d2 .row2{grid-template-columns:1fr}header h1{font-size:23px}}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) body{background:#0d0d0d;color:#eee}}:root[data-theme=dark] body{background:#0d0d0d;color:#eee}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

body{padding-bottom:64px}.c-evidence{font-size:14px}.c-evidence pre{max-height:360px;overflow:auto}.c-evidence button{margin:8px;padding:8px;font:inherit}#c-s3 .cell{font-size:14px}#c-s3 .h,#c-s3 .dl{font-size:14px}#c-s1 .nm{font-size:14px}

#c-d1 .bars .lb,#c-s2 .lb,#c-d3 .lb,#c-d4 .lb{font-size:14px}#c-s3 .h{overflow-wrap:anywhere}

.c-more{margin:12px 0;padding:10px 0;border-top:1px solid var(--grid,#898781)}.c-more>summary{font-size:14px;font-weight:600;cursor:pointer}.c-more[open]>summary{margin-bottom:12px}

.c-more>.c-extra-copy{display:block;font-size:13px;color:var(--ink-2);margin:4px 0}

/* rev1：四頁同一欄寬 */
[id^="c-"] .module{max-width:1072px!important;padding:16px!important}
#c-s3 .map{grid-template-columns:140px repeat(6,minmax(0,1fr))}#c-s3 .cell.ref,#c-s3 .h.ref{display:block;color:var(--ink);font-size:14px;font-weight:inherit}
@media(max-width:720px){#c-s3 .map{grid-template-columns:80px repeat(6,minmax(0,1fr))}}

#c-s3 .h.ref{font-weight:600}

/* Long source identifiers must wrap inside open evidence on narrow screens. */
:is(#c-s1,#c-s2,#c-s3,#c-d1,#c-d2,#c-d3,#c-d4) .c-evidence p{overflow-wrap:anywhere}

/* Keep source tables scrollable within their evidence panel after resizing. */
.plain-table-scroll{position:relative;width:100%;max-width:100%;overflow-x:auto}
.plain-table-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:is(#c-s1,#c-s2,#c-s3,#c-d1,#c-d2,#c-d3,#c-d4) [data-copy-paint]{max-width:100%}
