/* Chat2 TX only — original court law in first-party native selectable reader, not a replacement court rule. */
:root{color-scheme:light;--fg:#142b28;--bg:#fff;--border:#688982;--panel:#edf4f1}
html[data-tx-theme="dark"]{color-scheme:dark;--fg:#e7f4ee;--bg:#102722;--border:#a3c3b7;--panel:#233c35}
html,body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.6 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
a{color:inherit;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.tx-skip{position:absolute;left:8px;top:-120px;padding:8px;background:var(--panel);z-index:10}
.tx-skip:focus{top:8px}
.tx-head,.tx-foot{max-width:950px;padding:12px 16px;margin:auto;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.tx-head a{font-weight:700}
.tx-head button,.tx-tools button{font:inherit;color:var(--fg);background:var(--panel);border:1px solid var(--border);min-height:42px;border-radius:5px;cursor:pointer;padding:5px 10px}
.tx-rule{max-width:900px;padding:12px 20px 44px;margin:auto;overflow-wrap:break-word}
.tx-rule h1{font-size:clamp(25px,4vw,36px);line-height:1.2;margin:.3em 0}
.tx-rule h2{font-size:clamp(20px,3vw,25px);line-height:1.25}
.tx-rule h3{font-size:18px;line-height:1.3}
.tx-rule p,.tx-rule li{font-size:16px;line-height:1.67}
.tx-kicker{font-size:13px!important;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.tx-law{margin:18px 0 28px;border:1px solid var(--border);border-radius:8px;padding:14px 18px}
.tx-law p[data-court-part]{line-height:1.75;margin:.85em 0}
.tx-law p[data-court-part]:target{outline:2px solid var(--border);outline-offset:3px}
.tx-note{font-size:15px!important;max-width:75ch}
.tx-guide{border-left:4px solid var(--border);background:var(--panel);padding:12px 18px;margin:1.5em 0}
.tx-guide li{margin:.55em 0}
.tx-figure{width:min(100%,600px);margin:22px auto}
.tx-open{padding:0;display:block;width:100%;border:0;background:transparent;color:inherit;cursor:zoom-in}
.tx-open img{width:100%;max-height:780px;object-fit:contain;height:auto;display:block}
.tx-figure figcaption{font-size:16px;margin:.5em 0}
.tx-modal{background:var(--bg);color:var(--fg);border:2px solid var(--border);border-radius:8px;
 width:min(96vw,960px);max-width:96vw;height:min(94vh,990px);max-height:94vh;padding:10px}
.tx-modal::backdrop{background:rgba(0,0,0,.85)}
.tx-tools{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;align-items:center}
.tx-pan{height:calc(100% - 100px);min-height:180px;overflow:auto;overscroll-behavior:contain}
.tx-pan img{display:block;width:100%;max-width:none;height:auto}
.tx-rule :focus-visible,.tx-head :focus-visible{outline:3px solid #168a90;outline-offset:3px}
@media(max-width:390px){.tx-rule{padding:10px 12px 30px}.tx-law{padding:12px}.tx-guide{padding:10px 13px}.tx-tools{gap:4px}}
@page{size:6in 9in;margin:.36in}
@media print{
 html,body{background:#fff!important;color:#111!important;font:11pt/1.45 Georgia,serif!important}
 .tx-head,.tx-foot,.tx-modal,.tx-skip,.tx-menu,.tx-guide{display:none!important}
 .tx-rule{max-width:none;padding:0}
 .tx-law{padding:0;border:0;margin:0}
 .tx-law p[data-court-part]{font:11pt/1.48 Georgia,serif!important}
 .tx-kicker{font-size:10pt!important}
 .tx-figure-section{break-before:page;page-break-before:always}
 .tx-figure{width:5in;max-width:100%;margin:0 auto;break-inside:avoid;page-break-inside:avoid}
 .tx-open{display:block!important}
 .tx-open img{width:100%!important;max-height:7.45in!important;height:auto!important;object-fit:contain}
 .tx-figure figcaption,.tx-figure-section>p{display:none!important}
 a[href]::after{content:none!important}
}
