/* Cicero World family: paper, blue ink, muted rules; one left rail, native working surfaces. */
body[data-cw-suite]{--cws-paper:#f7f8f6;--cws-ink:#283c48;--cws-rule:#d5dddf;--cws-accent:#244d60;box-sizing:border-box;margin:0!important;padding-left:206px!important;background:var(--bg,var(--cws-paper));color:var(--fg,var(--ink,var(--text,var(--cws-ink))))}
#cws-sidebar,#cws-sidebar *{box-sizing:border-box}
#cws-sidebar{position:fixed;inset:0 auto 0 0;width:206px;height:100dvh;overflow:auto;overscroll-behavior:contain;background:#eff3f3;border-right:1px solid #d4dddb;padding:26px 18px;z-index:900;font:13px/1.5 system-ui,'PingFang SC',sans-serif;color:#283c48;text-align:left;box-shadow:none}
#cws-sidebar a{color:inherit;text-decoration:none;border:0}#cws-sidebar small{display:block;font-size:13px;font-weight:400;line-height:1.6;color:#65757d}
#cws-sidebar .cws-brand{display:flex;align-items:center;gap:10px;margin-bottom:24px;font-weight:650;letter-spacing:.01em}
#cws-sidebar .cws-brand b{display:grid;place-items:center;width:35px;height:35px;border:1px solid #b6c1be;border-radius:50%;font:24px Georgia,serif;color:#244d60;flex-shrink:0}
#cws-sidebar .cws-current{display:block;font:600 14px/1.5 system-ui;margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid #d4dddb;overflow-wrap:anywhere}
#cws-sidebar .cws-world-links{display:grid;gap:3px;margin:0;padding:0;border:0;background:transparent;position:static}
#cws-sidebar .cws-world-links a,#cws-local button{display:block;width:100%;margin:0;padding:8px 10px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;line-height:1.5;text-align:left;cursor:pointer;white-space:normal}
#cws-sidebar .cws-world-links a:hover,#cws-local button:hover{background:#dde7ec}#cws-local button[aria-pressed=true]{background:#fffefa;color:#244d60;box-shadow:inset 3px 0 #244d60;font-weight:650}#cws-local button:disabled{opacity:.5;cursor:default}
#cws-sidebar details{background:transparent;border:0;border-top:1px solid #d4dddb;border-radius:0;margin:16px 0 0;padding:12px 0 0;width:auto;max-width:100%;box-shadow:none}
#cws-sidebar summary{cursor:pointer;font:600 13px/1.6 system-ui;color:#244d60;padding:4px 0;white-space:normal}
#cws-sidebar details p{font:13px/1.7 system-ui;margin:10px 0}#cws-sidebar details:not([open])>:not(summary){display:none}
#cws-sidebar .cws-group,#cws-sidebar .cws-caesar{display:block;margin-top:16px;font-size:13px;color:#244d60}
#cws-companions{overflow-wrap:anywhere}#cws-companions :is(nav,.corpus-law-bridge){position:static;display:block;width:auto;padding:0;margin:12px 0;font:13px/1.6 system-ui;background:transparent;border:0;box-shadow:none}#cws-companions a{display:block;margin:8px 0}
#cws-sidebar [hidden],#cws-toggle[hidden]{display:none!important}.cws-proxied{display:none!important}
.cws-skip{position:fixed;left:220px;top:-80px;z-index:1100;background:#fffefa;color:#244d60;padding:12px}.cws-skip:focus{top:8px}#cws-reading-start{display:block;height:0;scroll-margin-top:80px}
#cws-toggle{display:none}body[data-cw-suite] :is(#cws-sidebar,#cws-toggle) :focus-visible,body[data-cw-suite] #cws-toggle:focus-visible{outline:3px solid #244d60;outline-offset:2px}
/* Working content uses available width; chart palettes and evidence states retain their own colours. */
body[data-cw-suite]>:is(main,.wrap,.container){box-sizing:border-box;max-width:1500px;width:auto;margin-inline:auto;padding-inline:clamp(18px,3vw,42px)}
body[data-cw-suite]>:is(header.top,header.app-header){box-sizing:border-box;width:auto;max-width:100%;padding:18px 30px;background:#fffefa;color:#283c48;border-bottom:1px solid #d5dddf;box-shadow:none}
body[data-cw-suite]>:is(header.top,header.app-header) h1{font:500 clamp(22px,2.2vw,30px)/1.25 'Iowan Old Style',Georgia,'Songti SC',serif;letter-spacing:-.02em;margin:0 0 8px}
body[data-cw-suite]>:is(header.top,header.app-header)>a:first-child{display:none!important}
body[data-cw-suite]>:is(header.top,header.app-header) .controls{margin-top:8px;gap:8px;flex-wrap:wrap}
body[data-cw-suite] :is(.cq-tools,.cq-pagebar,.cws-related-menu){background:#fffefa;border:1px solid #d5dddf;border-radius:5px;color:#283c48}
.cws-related-menu{padding:8px 12px;margin:12px 0;font:13px/1.6 system-ui}.cws-related-menu summary{cursor:pointer}.cws-related-menu:not([open])>:not(summary){display:none}
body[data-cw-suite] .cq-context-return{background:#eaf0f2;border-bottom:1px solid #d5dddf;font-size:13px;padding:8px 30px}
body[data-cw-suite] .cw-area{margin:30px auto;padding:20px 30px;border-top:1px solid #d5dddf;max-width:1400px}
body[data-cw-suite] .reader{grid-template-columns:minmax(185px,230px) minmax(0,1fr);gap:24px}body[data-cw-suite] .reader>*{min-width:0}
body[data-cw-suite] #reader-body{font-family:'Iowan Old Style',Georgia,'Songti SC',serif;line-height:var(--lh-text,1.5)}
@media(min-width:841px){body[data-cw-suite] .reader{grid-template-columns:minmax(150px,185px) minmax(0,1fr);gap:16px}body[data-cw-suite]>:is(header.top,header.app-header){padding-inline:20px}}
@media(max-width:840px){body[data-cw-suite]{padding-left:0!important;padding-top:54px!important}#cws-sidebar{width:min(280px,85vw);transform:translateX(-100%);visibility:hidden;transition:transform .15s ease;z-index:1001}.cws-menu-open #cws-sidebar{transform:translateX(0);visibility:visible;box-shadow:14px 0 40px #283c4825}#cws-toggle{display:block;position:fixed;top:0;left:0;width:100%;text-align:left;z-index:1002;border:0;border-bottom:1px solid #d5dddf;border-radius:0;background:#eff3f3;color:#283c48;font:14px/1.4 system-ui;min-height:54px;padding:12px 18px}.cws-menu-open #cws-sidebar{padding-top:62px}.cws-skip{left:12px}body[data-cw-suite]>:is(header.top,header.app-header){padding:16px 18px}body[data-cw-suite] .reader{grid-template-columns:minmax(0,1fr)}body[data-cw-suite] #reader-toc{position:static;max-height:230px;overflow:auto}body[data-cw-suite] .cw-area{padding:18px}body[data-cw-suite] .cq-context-return{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){#cws-sidebar{transition:none}}
@media print{body[data-cw-suite]{padding:0!important;margin:0!important;background:white}#cws-sidebar,#cws-toggle,.cws-skip,#cws-reading-start{display:none!important}body[data-cw-suite]>:is(main,.wrap,.container){max-width:none;padding:0}.cws-related-menu>*{display:revert!important}}

/* Colour-coded analysis canvases retain their calibrated dark palette inside the shared shell. */
body[data-cw-suite="analysis"]:has(>main.app){background:#f7f8f6}body[data-cw-suite="analysis"]:has(>main.app)>:is(footer,.cw-area){color:#283c48}body[data-cw-suite="analysis"]>main.app{background:var(--bg);border-radius:6px;margin:20px 18px;padding:22px;max-width:none;color:var(--ink)}
body[data-cw-suite] #cws-reading-start{position:absolute;width:0;height:0;overflow:hidden}
body[data-cw-suite] #reader-body :is(p,.tx){max-width:var(--measure,65ch)}
@media(min-width:841px){body[data-cw-suite] #tree{width:240px;flex-basis:240px}}
body[data-cw-suite="analysis"] .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
@media(max-width:840px){body[data-cw-suite="analysis"]>main.app{margin:12px 0;padding:18px;border-radius:0}}

@media(max-width:840px){body[data-cw-suite]:not(.cws-ready){padding-top:0!important}body[data-cw-suite]:not(.cws-ready) #cws-sidebar{position:static;width:auto;height:auto;transform:none;visibility:visible}}

body[data-cw-suite]{max-width:none!important;min-width:0}
#cws-sidebar .cws-native-index{position:static!important;inset:auto!important;width:auto!important;max-width:100%;height:auto;max-height:52dvh;overflow:auto;padding:0!important;margin:0!important;background:transparent;border:0;font:13px/1.5 system-ui}
#cws-sidebar .cws-native-index input{box-sizing:border-box;width:100%;min-width:0;padding:8px;margin:8px 0;background:#fffefa;color:#283c48;border:1px solid #b8c4c0}
#cws-sidebar .cws-native-index a{display:block;padding:7px 3px;font:13px/1.5 system-ui}

@media print{body[data-cw-suite="analysis"]>main.app{background:white;color:black;margin:0}}

/* Shared hierarchy and calm reading chrome; specialist evidence colours stay native. */
#cws-sidebar .cws-brand{font:500 16px/1.3 Georgia,'Songti SC',serif;margin-bottom:24px}
#cws-sidebar .cws-location{font:600 13px/1.5 system-ui;color:#65757d;margin:0 0 10px}
#cws-sidebar .cws-current{padding:10px;margin:0 0 16px;border:0;border-radius:4px;background:#dde7ec;box-shadow:inset 3px 0 #244d60}
#cws-sidebar :is(.cws-world-links,.cws-family-links){list-style:none;margin:8px 0 0;padding:0}
#cws-sidebar :is(.cws-world-links,.cws-family-links) li{margin:0;padding:0;list-style:none;border:0}
#cws-sidebar .cws-family-links a{display:block;padding:9px 10px;border-radius:4px;overflow-wrap:anywhere}
#cws-sidebar .cws-family-links a:hover{background:#dde7ec}
#cws-sidebar .cws-group{padding:9px 10px;margin-top:8px;border-top:1px solid #d5dddf}
#cws-sidebar #greenidge-companion{display:block!important;position:static;inset:auto;width:auto;max-width:100%;max-height:none;overflow:visible;z-index:auto;background:transparent;color:#283c48;box-shadow:none;border:0;border-top:1px solid #d5dddf;border-radius:0;padding:12px 0 0;margin:12px 0;font:13px/1.6 system-ui}
#cws-sidebar #greenidge-companion :is(summary,strong,p,nav,a){color:inherit;background:transparent;font:inherit;box-shadow:none}
#cws-sidebar #greenidge-companion summary{padding:4px 0;font-weight:600;color:#244d60}
#cws-sidebar #greenidge-companion nav{display:block}
body[data-cw-suite] .cw-all-builds{color:#283c48}
body[data-cw-suite] .cw-all-builds h3{border-color:#d5dddf;color:#244d60}
body[data-cw-suite] .cw-all-builds li{border-color:#d5dddf}
body[data-cw-suite] .cw-area{color:#283c48;--paper:#f7f8f6;--ink:#283c48;--mute:#65757d;--rule:#d5dddf;--accent:#244d60}
body[data-cw-suite] #all-builds{scroll-margin-top:70px}
body[data-cw-suite="analysis"]>.mwf-toggle{color:#244d60;background:#fffefa;border-color:#d5dddf;margin:8px 18px;opacity:1}
/* A full-window teaching deck shares the available canvas with the reading rail. */
body[data-cw-suite]>#deck.deck{width:100%;height:100dvh}
body[data-cw-suite]>#deck .slide{box-sizing:border-box;width:100%;height:100%}
@media(max-width:840px){body[data-cw-suite]>#deck.deck{height:calc(100dvh - 54px)}body[data-cw-suite]>#deck .slide{padding-inline:18px;overflow:auto}}
@media(min-width:841px){body[data-cw-suite]>#deck~.hint{left:calc(206px + 2.2vw)}}
@media print{body[data-cw-suite]>#deck .slide{height:98vh;overflow:visible}}

/* Reading tasks first; specialist modes and catalogue families are disclosed on request. */
#cws-sidebar .cws-primary{margin-top:18px;border-top:1px solid #d5dddf;padding-top:10px}
#cws-sidebar .cws-primary .cws-world-links a{padding:6px 8px}
#cws-sidebar .cws-primary small{font-size:13px}
#cws-sidebar .cws-reference{margin:8px 0 12px;padding-top:6px}
#cws-sidebar .cws-reference summary{font-weight:500}
body[data-cw-suite] #portal-slot:has(.mwp){display:none}
body[data-cw-suite] .cws-speech-picker{display:contents}
body[data-cw-suite] .cws-speech-picker>summary{display:none}
body[data-cw-suite] .cws-speech-picker:not([open])>#reader-toc{display:block}
body[data-cw-suite] .cws-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
body[data-cw-suite] .cws-start-card{display:flex;flex-direction:column;padding:22px;border:1px solid #d5dddf;border-radius:5px;background:#fffefa}
body[data-cw-suite] .cws-start-card h3{font:600 19px/1.4 Georgia,'Songti SC',serif;color:#244d60;margin:0 0 8px}
body[data-cw-suite] .cws-start-card p{font:15px/1.65 system-ui;color:#65757d;margin:0 0 20px}
body[data-cw-suite] .cws-start-card>div{margin-top:auto;display:grid;gap:10px}
body[data-cw-suite] .cws-start-card a{color:#244d60;text-decoration:underline;text-underline-offset:3px;font:14px/1.5 system-ui;overflow-wrap:anywhere}
body[data-cw-suite] .cws-library-links{display:flex;gap:16px;flex-wrap:wrap;font:14px/1.5 system-ui}
body[data-cw-suite] .cws-shortcuts{margin:24px 0;padding:14px 0;border-block:1px solid #d5dddf}
body[data-cw-suite] .cws-shortcuts>summary{cursor:pointer;font:600 14px/1.5 system-ui;color:#244d60}
body[data-cw-suite] #all-builds{margin-top:32px}
body[data-cw-suite] #cws-catalogue-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0;font:14px/1.5 system-ui}
body[data-cw-suite] #cws-catalogue-tools[hidden],body[data-cw-suite] #all-builds [hidden]{display:none!important}
body[data-cw-suite] #cws-catalogue-tools label{display:grid;gap:6px;flex:1 1 230px;min-width:0;color:#283c48}
body[data-cw-suite] #cws-catalogue-tools :is(input,select,button){box-sizing:border-box;min-height:44px;width:100%;max-width:100%;background:#fffefa;color:#283c48;border:1px solid #b8c4c0;border-radius:4px;padding:8px;font:14px system-ui}
body[data-cw-suite] #cws-catalogue-tools button{width:auto;cursor:pointer}
body[data-cw-suite] #cws-catalogue-count{flex-basis:100%;margin:0;color:#65757d;font:13px/1.5 system-ui}
body[data-cw-suite] .cws-catalogue-group{border:0;border-top:1px solid #d5dddf;border-radius:0;background:transparent;padding:0;margin:0}
body[data-cw-suite] .cws-catalogue-group>summary{display:flex;align-items:center;gap:12px;padding:16px 0;cursor:pointer;list-style:none;color:#244d60}
body[data-cw-suite] .cws-catalogue-group>summary::before{content:'+';font:20px system-ui}
body[data-cw-suite] .cws-catalogue-group[open]>summary::before{content:'−'}
body[data-cw-suite] .cws-catalogue-group h3{font:600 17px/1.5 system-ui;display:inline;margin:0;border:0}
body[data-cw-suite] .cws-group-count{margin-left:auto;font:13px system-ui;color:#65757d}
body[data-cw-suite] .cws-catalogue-group>p{font:14px/1.6 system-ui;color:#65757d;margin:0 0 12px}
body[data-cw-suite] #all-builds summary:focus-visible,body[data-cw-suite] #cws-starts a:focus-visible{outline:3px solid #244d60;outline-offset:3px}
@media(max-width:840px){body[data-cw-suite] .cws-speech-picker{display:block;margin-bottom:18px;border:1px solid #d5dddf;border-radius:4px}body[data-cw-suite] .cws-speech-picker>summary{display:block;cursor:pointer;font:600 14px/1.5 system-ui;padding:12px;color:#244d60}body[data-cw-suite] .cws-speech-picker:not([open])>#reader-toc{display:none}body[data-cw-suite] .cws-speech-picker>#reader-toc{padding:12px;max-height:50dvh}body[data-cw-suite] .cws-start-grid{grid-template-columns:minmax(0,1fr)}body[data-cw-suite] .cws-start-card{padding:18px}}
@media print{body[data-cw-suite] :is(.cws-speech-picker,.cws-shortcuts)>summary,body[data-cw-suite] #cws-catalogue-tools{display:none!important}body[data-cw-suite] .cws-speech-picker>#reader-toc{display:none!important}body[data-cw-suite] .cws-catalogue-group{break-inside:avoid}body[data-cw-suite] .cws-catalogue-group>:not(summary){display:block!important}body[data-cw-suite] .cws-shortcuts>.grid{display:grid!important}}
/* The site bar already supplies a home link and synchronizes the native language selector. */
body[data-cw-suite].mwf-has-bar .controls select#lang{display:none}
body[data-cw-suite].mwf-has-bar>.topbar{display:none}
body[data-cw-suite] :is(.cws-library-links,#all-builds) a{color:#244d60}
#cws-companions #site-map-lead{margin:12px 0!important;max-width:100%}
#cws-companions #site-map-lead summary{font:600 13px/1.6 system-ui!important;color:#244d60!important;flex-wrap:wrap}
