/* Shared legibility and intrinsic layout corrections. Keep the approved palette. */
.aurelia-app-shell :is(main,section,article,aside,form,fieldset,header,nav,div){min-width:0;box-sizing:border-box}
.aurelia-app-shell :is(h1,h2,h3,p,li,label,small,button,a,code,dd,dt){overflow-wrap:anywhere}
.aurelia-app-shell main :is(p,li,label,input,select,textarea){font-size:16px;line-height:1.6}
.aurelia-app-shell :is(button,input,select,textarea){max-width:100%;box-sizing:border-box}
.aurelia-app-shell :is(button,input,select){min-height:44px}
.aurelia-app-shell input[type=checkbox],.aurelia-app-shell input[type=radio]{min-height:0;flex:none}
.aurelia-app-shell main :is(pre,.table-scroll){max-width:100%;overflow:auto}
.aurelia-app-shell main pre{white-space:pre-wrap;overflow-wrap:anywhere}
.aurelia-app-shell main :is(h1,h2,h3){line-height:1.12!important}
.aurelia-app-shell :is(.ll-kicker,.ll-topline,.ll-entry-proof,.ll-mast-index,.ll-mast-copy>p,.ll-mast-authority span,.ll-mast-authority small,.ll-core small,.ll-network-core small,.eyebrow,.small-tag,.governance-meta,.governance-kicker,.governance-state,.input-tabs button,.map-tabs button,.primary,.ll-component-index a,.ll-journey-heading>span,.ll-journey-heading>small,.ll-journey li small,.ll-agent-stages span,.ll-network-caption){font-size:13px!important;line-height:1.5!important;letter-spacing:.08em!important}
.aurelia-app-shell :is(.ll-mast-authority small,.ll-network-core small,.ll-core small,.ll-journey li small,.ll-journey-heading>small){color:#b9c3ba!important}
.aurelia-app-shell .lang{display:inline-flex!important;align-items:center;justify-content:center;font-size:13px!important}
.aurelia-app-shell .aurelia-os-header{height:auto!important;min-height:88px!important;gap:20px!important;padding-block:16px!important}
.aurelia-app-shell .manjoro-wordmark small{font-size:11px!important;line-height:1.5!important;white-space:normal}
/* Landing: copy and the circle occupy separate grid cells, never translated overlays. */
.aurelia-app-shell .living-land{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr)!important;grid-template-areas:'top top' 'copy core' 'note note';gap:44px 64px!important;min-height:0!important;padding:32px clamp(24px,5vw,90px) 80px!important}
.living-land .ll-topline{grid-area:top;gap:20px;flex-wrap:wrap}
.living-land .ll-copy{grid-area:copy;width:100%!important;margin:24px 0!important;padding:0!important;align-self:center}
.living-land .ll-copy h1{font-size:clamp(48px,6.5vw,100px)!important;max-width:none;overflow-wrap:normal}
.living-land .ll-intro{box-sizing:border-box;width:100%!important;max-width:570px}
.living-land .ll-core.ll-core-nazio{grid-area:core;position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:min(100%,350px)!important;min-height:350px;aspect-ratio:1;margin:40px 0!important;justify-self:center;align-self:center;padding:28px!important}
.living-land .ll-core.ll-core-nazio>small{font-size:12px!important;line-height:1.5!important;letter-spacing:.06em!important}
.living-land .ll-note{grid-area:note;position:relative!important;inset:auto!important;width:100%!important;max-width:500px;display:block!important}
.living-land .ll-note span,.living-land .ll-note p{font-size:13px!important;line-height:1.6!important;color:#b9c3ba}
.living-land .ll-landmarks{display:none!important}
.aurelia-app-shell #main>.page{inset:auto!important;opacity:1!important}
/* Every workspace mast uses normal flow, including long translated titles. */
.aurelia-app-shell .ll-workspace-mast{grid-template-columns:minmax(0,1fr) minmax(200px,.35fr)!important;gap:40px;min-height:0;padding:32px 0 48px;overflow:visible}
.ll-workspace-mast .ll-mast-index{position:relative;inset:auto;grid-column:1/-1;gap:20px;flex-wrap:wrap}
.ll-workspace-mast .ll-mast-copy h1{font-size:clamp(40px,5.8vw,84px)!important;max-width:14ch}
.ll-workspace-mast .ll-mast-copy>span{font-size:16px!important;line-height:1.65!important}
.ll-workspace-mast+.ll-component-index{margin-top:0!important}
.ll-component-index{display:flex!important;flex-wrap:wrap!important}
.ll-component-index a{flex:1 1 180px;min-height:64px!important;height:auto!important;padding:16px!important}
.ll-journey ol{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px}
.ll-journey li:after{display:none!important}
.ll-journey li a{height:auto!important;padding:18px!important}
.ll-workspace-closing{gap:32px;flex-wrap:wrap}
/* Nazio: the portrait, composer and context must fit their actual available width. */
.aurelia-app-shell .ll-nazio .ask-layout{grid-template-columns:minmax(160px,.6fr) minmax(0,1.6fr)!important;gap:32px!important;margin-top:40px!important}
.ll-nazio .ask-layout>.context-panel{grid-column:1/-1}
.aurelia-app-shell .ll-nazio .halo-aside{position:relative!important;inset:auto!important;min-height:0!important;max-width:none!important;padding:24px 16px!important;display:flex!important;flex-direction:column!important;gap:16px}
.aurelia-app-shell .ll-nazio .ask-content{padding:24px!important}
.ll-nazio .input-tabs{flex-wrap:wrap;overflow:visible}
.ll-nazio .input-tabs button{white-space:normal!important;flex:1 1 100px}
.voice-controls{flex-wrap:wrap}
.first-dashboard .dashboard-heading,.dashboard-heading{gap:24px;flex-wrap:wrap}
/* Network: size portrait and labels together instead of absolute bottom offsets. */
.ll-agent-overview .ll-network-core.ll-core-nazio{position:relative!important;inset:auto!important;translate:none!important;transform:none!important;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(280px,100%)!important;min-height:280px;margin:24px auto 40px;padding:28px}
.ll-network-core.ll-core-nazio .ll-nazio-portrait{position:relative!important;inset:auto!important;width:110px!important;height:110px!important;flex:none;margin-bottom:20px}
.ll-network-core.ll-core-nazio>strong,.ll-network-core.ll-core-nazio>small{position:relative!important;inset:auto!important;transform:none!important;translate:none!important;flex:none}
.aurelia-app-shell .ll-agent-overview{height:auto!important;min-height:0!important;padding:32px!important;overflow:hidden}
.ll-agent-overview .ll-agent-stages{position:relative;inset:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.ll-agent-overview .ll-agent-stages span{position:relative;inset:auto!important;flex:0 1 140px;text-align:center}
.ll-agent-overview .ll-network-caption{position:relative;inset:auto;margin:24px 0 0;flex-wrap:wrap;line-height:1.8!important}
.agent-operations{grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)}
/* Governance, proof and evaluation retain all controls and let status text wrap. */
.governance-shell :is(.governance-panel,.comparison-stat,.native-case){min-width:0}
.governance-panel header{flex-wrap:wrap}
.governance-state{white-space:normal;max-width:100%}
.governance-shell .governance-mast h1{font-size:clamp(40px,5.5vw,80px);line-height:1.12}
.governance-shell .evidence-row{grid-template-columns:minmax(0,.75fr) minmax(0,1.5fr) minmax(0,.5fr)}
.governance-shell .evidence-row code,.governance-shell .comparison-stat span{font-size:13px;line-height:1.5}
.governance-shell .native-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Field, Land, Demo and Developer Reference: no sticky panel above its own content. */
.aurelia-app-shell :is(.reference-sidebar,.doc-sidebar,.extension-index,.review-queue){position:relative!important;inset:auto!important}
.aurelia-app-shell :is(.reference-layout,.doc-layout){grid-template-columns:minmax(180px,.35fr) minmax(0,1fr)!important;gap:32px!important}
.reference-section :is(code,td,th),.endpoint :is(code,p){overflow-wrap:anywhere;white-space:normal}
.aurelia-app-shell :is(.ll-nazio-command){position:relative!important;inset:auto!important;margin:24px clamp(24px,5vw,80px)!important;max-width:calc(100% - 48px)}
.aurelia-app-shell footer{flex-wrap:wrap;gap:20px;padding-bottom:32px}
@media(max-width:1100px){
 .aurelia-app-shell .living-land{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'top' 'copy' 'core' 'note';gap:24px!important}
 .aurelia-app-shell .ll-workspace-mast{grid-template-columns:minmax(0,1fr)!important}
 .ll-mast-authority{max-width:400px}
 .aurelia-app-shell :is(.agent-operations,.extension-command,.review-studio,.observatory,.request-studio,.evaluation-studio,.reference-layout,.doc-layout){grid-template-columns:minmax(0,1fr)!important}
 .aurelia-app-shell .ll-field .extension-workspace:has(.case-list){grid-template-columns:minmax(0,1fr)!important}
 .aurelia-header-centre,.aurelia-live{display:none!important}
}
@media(max-width:600px){
 .aurelia-app-shell .aurelia-os-header{gap:12px!important;padding-inline:16px!important}
 .aurelia-app-shell .brand-mark{display:none!important}
 .aurelia-app-shell .manjoro-wordmark small{font-size:10px!important;max-width:22ch}
 .aurelia-app-shell .living-land{padding-inline:24px!important}
 .living-land .ll-core.ll-core-nazio{width:280px!important;max-width:100%;min-height:280px;padding:20px!important}
 .living-land .ll-core.ll-core-nazio .ll-nazio-portrait{width:110px!important;height:110px!important;margin-bottom:16px!important}
 .living-land .ll-core.ll-core-nazio>strong{font-size:27px!important}
 .aurelia-app-shell .ll-nazio .ask-layout{grid-template-columns:minmax(0,1fr)!important}
 .aurelia-app-shell .ll-nazio .ask-content{padding:20px 12px!important}
 .ll-journey ol{grid-template-columns:minmax(0,1fr)!important}
 .ll-journey-heading{flex-wrap:wrap}
 .governance-shell .evidence-row,.governance-shell .native-review-grid{grid-template-columns:minmax(0,1fr)}
 .ll-mast-index{letter-spacing:.02em!important}
 .aurelia-app-shell .ll-agent-overview{padding:24px 16px!important}
}

.governance-shell .governance-mast h2{font:400 clamp(32px,4vw,56px)/1.15 Georgia,serif;letter-spacing:-.03em;margin:.5rem 0 1.4rem}
[data-governed-tools],[data-evaluation-tools]{margin-top:56px}
.aurelia-app-shell .governance-shell{padding-inline:clamp(16px,3vw,40px)}
/* Readable supporting copy, including status ledgers and developer navigation. */
.aurelia-app-shell main small{font-size:13px!important;line-height:1.5!important}
.aurelia-app-shell main :is(label,.reference-index a,.reference-sidebar a,.doc-sidebar a){font-size:14px!important;line-height:1.6!important}
.aurelia-app-shell :is(.ledger-line span,.ledger-status,.ledger-path,.aurelia-capability-truth article span){font-size:13px!important;line-height:1.5!important;letter-spacing:.06em!important}
.ledger-path{flex-wrap:wrap}
/* Section headers have their own intrinsic dimensions; only the global header is fixed. */
.aurelia-app-shell main header{height:auto!important;min-height:0!important;flex-wrap:wrap}
.aurelia-app-shell main .ll-workspace-mast{padding:40px!important;overflow:hidden!important;align-items:start!important}
.aurelia-app-shell main .ll-mast-copy h1{max-width:none!important;font-size:clamp(32px,4.6vw,68px)!important;overflow-wrap:normal!important;word-break:normal!important;letter-spacing:-.035em!important}
.aurelia-app-shell #main .ll-original-heading{display:none!important}
.aurelia-app-shell .aurelia-os-header :is(.manjoro-wordmark,#aurelia-clock){color:#eee9dd!important}
.aurelia-app-shell .aurelia-os-header :is(.aurelia-live,.aurelia-greeting,.aurelia-header-centre>span){color:#c3cbbf!important;font-size:12px!important}
.aurelia-app-shell #main>.page :is(h2,h3,h4,p,li,label,small,strong):not(.governance-shell *):not(.aurelia-intelligence-ledger *):not(.aurelia-capability-truth *):not(.eyebrow):not([class*='eyebrow']):not([class*='kicker']){color:#e9e2d7!important}
.aurelia-app-shell :is(.aurelia-intelligence-ledger,.aurelia-capability-truth){background:#f1eadc!important;color:#243b2e!important;padding:24px!important}
.aurelia-app-shell :is(.aurelia-intelligence-ledger,.aurelia-capability-truth) :is(p,span,small,strong,h2,b,a,button){color:#243b2e!important}
.aurelia-app-shell main :is(.c4ir-ops__header,.c4ir-channel-workbench>header,.c4ir-workbench-proof>header,.c4ir-demo-journey>header){display:block!important;padding:24px 0!important;background:transparent!important}
.aurelia-app-shell main :is(.c4ir-ops__header,.c4ir-channel-workbench>header) h2{max-width:none!important;font-size:clamp(28px,3.5vw,48px)!important}
.aurelia-app-shell footer{font-size:13px!important;line-height:1.5}
@media(max-width:600px){.aurelia-app-shell main .ll-workspace-mast{padding:28px 20px!important}.aurelia-app-shell main .ll-mast-copy h1{font-size:clamp(28px,7.2vw,42px)!important}}
