/* Approved CoSA explainer, scoped to the Method section. */
.cosa-animation{--ink:#292d2c;--muted:#59615d;--line:#d9dcd7;--paper:#fbfbf9;--accent:#8a4635;--wash:#f5ece6;--green:#4b6659;--green-wash:#edf2ed;--serif:Georgia,"Times New Roman",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:32px 0 40px;scroll-margin-top:25px;line-height:1.65}
.cosa-animation *{box-sizing:border-box}
.cosa-animation a{color:var(--accent);text-underline-offset:4px}
.cosa-animation button{font:inherit;cursor:pointer}
.cosa-animation button:disabled{cursor:default;opacity:.42}
.cosa-animation button, .cosa-animation a, .cosa-animation summary{-webkit-tap-highlight-color:transparent}
.cosa-animation button:focus-visible, .cosa-animation a:focus-visible, .cosa-animation summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.cosa-animation .eyebrow{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.cosa-animation .explainer{border-top:1px solid var(--line);scroll-margin-top:20px}
.cosa-animation .explainer-heading{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:23px 0 20px}
.cosa-animation .explainer-heading h3{font-size:20px}
.cosa-animation .schematic-label{font-size:11px;color:var(--muted)}
.cosa-animation .step-nav{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-bottom:0}
.cosa-animation .step-nav li{min-width:0}
.cosa-animation .step-nav button{width:100%;border:0;border-bottom:2px solid transparent;background:#fff;padding:13px 10px;text-align:left;font-size:12px;color:var(--muted)}
.cosa-animation .step-nav span{font-size:10px;margin-right:10px;font-variant-numeric:tabular-nums}
.cosa-animation .step-nav button:hover{background:var(--paper)}
.cosa-animation .step-nav button[aria-current]{border-bottom-color:var(--accent);color:var(--accent);background:var(--wash)}
.cosa-animation .scene{background:var(--paper);border:1px solid var(--line);padding:8px 8px 0;overflow:hidden}
.cosa-animation .diagram{width:100%}
.cosa-animation .diagram svg{display:block;width:100%;height:auto;overflow:visible}
.cosa-animation .diagram text{font-family:var(--sans);fill:var(--ink)}
.cosa-animation .diagram .svg-label{font-size:11px;letter-spacing:1.2px;fill:var(--muted)}
.cosa-animation .diagram .node-title{font-size:17px;font-weight:500}
.cosa-animation .diagram .node-detail{font-size:12px;fill:var(--muted)}
.cosa-animation .diagram .node-caption{font-size:12px;font-weight:500;fill:var(--green)}
.cosa-animation .diagram .step-number{font:12px var(--serif);fill:var(--muted)}
.cosa-animation .diagram .node-box{fill:#fff;stroke:#c7cec8;stroke-width:1.2}
.cosa-animation .diagram .pool-box{fill:#fff;stroke:#a1afa5;stroke-width:1.2}
.cosa-animation .diagram .addition-box{fill:var(--wash);stroke:#b58f7d;stroke-width:1.2}
.cosa-animation .diagram .added-title{fill:var(--accent)}
.cosa-animation .diagram .fixed-box{fill:#f1f2ee;stroke:none}
.cosa-animation .diagram .result-box{fill:#f5ece6;stroke:#b58f7d;stroke-width:1.2}
.cosa-animation .diagram .result-title{font:20px var(--serif);fill:var(--accent)}
.cosa-animation .diagram .result-detail{font-size:12px;fill:#744331}
.cosa-animation .diagram .edge{fill:none;stroke:#a9b3aa;stroke-width:1.6}
.cosa-animation .diagram .edge.reuse-edge{stroke:var(--accent)}
.cosa-animation .diagram .context-edge{stroke-dasharray:4 5}
.cosa-animation .diagram .edge-label{font-size:11px;fill:var(--muted)}
.cosa-animation .diagram .critical-text{font-size:12px;font-weight:500;fill:var(--accent)}
.cosa-animation .diagram .boundary{stroke:#b58f7d;stroke-width:1.2;stroke-dasharray:4 4}
.cosa-animation .diagram .check-circle{fill:var(--green-wash)}
.cosa-animation .diagram .check{stroke:var(--green);stroke-width:1.5;fill:none}
.cosa-animation .diagram .group{transition:opacity .5s ease,visibility .5s ease}
.cosa-animation .diagram .subdued>*{opacity:.22}
.cosa-animation .diagram .not-yet{display:none}
.cosa-animation .diagram .flow-packet{fill:var(--green);stroke:var(--paper);stroke-width:3}
.cosa-animation .diagram .flow-packet.critical{fill:var(--accent)}
.cosa-animation .diagram .active-node .node-box{stroke:var(--accent);fill:#fff9f5;stroke-width:1.7}
.cosa-animation .diagram .authority-box{fill:#f5ece6;stroke:none}
.cosa-animation .diagram .authority-label{font-size:11px;fill:var(--accent)}
.cosa-animation .diagram .muted-state{font-size:12px;fill:var(--muted)}
.cosa-animation .narration{min-height:144px;padding:24px 26px;display:grid;grid-template-columns:61px 1fr;gap:12px;background:#f5f4ef;border:1px solid var(--line);border-top:0}
.cosa-animation .step-count{font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.8px;padding-top:5px;color:var(--accent)}
.cosa-animation .narration h4{font:normal 22px/1.3 var(--serif);margin-bottom:7px}
.cosa-animation .narration p{font-size:14px;line-height:1.65;color:#525a55;max-width:850px}
.cosa-animation .playback{position:sticky;top:0;background:#fff;z-index:2}
.cosa-animation .controls{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0}
.cosa-animation .controls[hidden]{display:none}
.cosa-animation .transport{display:flex;align-items:center;gap:8px}
.cosa-animation .transport button{background:#fff;border:1px solid var(--line);border-radius:3px;color:var(--ink);padding:9px 14px;font-size:12px;min-height:42px;display:inline-flex;gap:8px;align-items:center;justify-content:center}
.cosa-animation .transport button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
.cosa-animation .transport .primary{min-width:140px;background:var(--accent);border-color:var(--accent);color:white}
.cosa-animation .transport .primary:hover:not(:disabled){background:#783d2c;color:white}
.cosa-animation .primary svg{width:14px;height:14px;fill:currentColor}
.cosa-animation .playback-note{font-size:11px;color:var(--muted)}
.cosa-animation .progress-track{height:2px;background:#eceee9}
.cosa-animation .progress-track>div{height:100%;background:var(--accent);width:0;transition:width .2s linear}
.cosa-animation .figure-note{font-size:12px;line-height:1.8;color:var(--muted);padding:18px 0 0;max-width:980px}
.cosa-animation .figure-note strong{font-weight:500;color:#3d4540}
.cosa-animation .evidence{display:grid;grid-template-columns:1fr 1.9fr;gap:48px;border-top:1px solid var(--line);margin-top:44px;padding:32px 0}
.cosa-animation .evidence h3{font-size:24px;margin:9px 0 12px}
.cosa-animation .evidence-intro p{font-size:13px;color:var(--muted)}
.cosa-animation .case-path{display:flex;flex-wrap:wrap;gap:5px 11px;font-size:11px;padding:3px 0 16px;border-bottom:1px solid var(--line)}
.cosa-animation .case-path b{font-weight:400;color:#8d968e}
.cosa-animation .case-result{display:grid;grid-template-columns:1.2fr 1fr;gap:15px;padding:15px 0}
.cosa-animation .small-label{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:1px;font-size:9px;margin-bottom:8px}
.cosa-animation code{font:11px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.cosa-animation .case-note{font-size:11px;color:var(--muted);line-height:1.7}
.cosa-animation .transcript{border-top:1px solid var(--line);padding:19px 0;font-size:13px;color:var(--muted)}
.cosa-animation summary{cursor:pointer;width:fit-content;color:var(--ink)}
.cosa-animation .transcript ol{padding-left:23px;max-width:930px;margin-top:23px}
.cosa-animation .transcript li{margin:13px 0;padding-left:5px}
.cosa-animation .transcript p{margin:16px 0;max-width:940px}
.cosa-animation .no-script{padding:30px;font-size:14px}
@media(max-width:760px){
.cosa-animation .explainer-heading{display:block}
.cosa-animation .schematic-label{display:block;margin-top:8px}
.cosa-animation .step-nav button{font-size:10px;padding:10px 4px;line-height:1.5;text-align:center;min-height:64px}
.cosa-animation .step-nav span{display:block;margin:0 0 4px;font-size:9px}
.cosa-animation .scene{padding:3px 2px 0}
.cosa-animation .narration{padding:20px 17px;grid-template-columns:1fr;gap:8px;min-height:235px}
.cosa-animation .step-count{padding:0}
.cosa-animation .narration h4{font-size:21px}
.cosa-animation .narration p{font-size:13px}
.cosa-animation .controls{display:block;padding:14px 0 10px}
.cosa-animation .transport{justify-content:space-between;gap:7px}
.cosa-animation .transport button{padding:9px 12px}
.cosa-animation .transport .primary{min-width:143px}
.cosa-animation .playback-note{display:block;font-size:10px;margin-top:10px}
.cosa-animation .figure-note{font-size:11px}
.cosa-animation .evidence{grid-template-columns:1fr;gap:20px;margin-top:30px;padding:25px 0}
.cosa-animation .evidence-intro p{max-width:480px}
.cosa-animation .case-result{grid-template-columns:1fr;gap:16px}
.cosa-animation .case-path{gap:6px 9px}
.cosa-animation .case-note{font-size:11px}
.cosa-animation .diagram .node-title{font-size:16px}
.cosa-animation .diagram .node-detail{font-size:12px}
.cosa-animation .diagram .svg-label{font-size:10px;letter-spacing:.7px}
.cosa-animation .diagram .result-title{font-size:18px}
.cosa-animation .diagram .result-detail{font-size:11px}
.cosa-animation .diagram .node-caption{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
.cosa-animation .diagram .group{transition:none}
.cosa-animation .progress-track>div{transition:none}
}

.cosa-animation h3, .cosa-animation h4, .cosa-animation p{margin:0}
.cosa-animation .explainer-heading h3{font:normal 24px/1.3 var(--serif);max-width:600px}
.cosa-animation .narration h4{margin-bottom:7px}
.cosa-animation .evidence h3{font:normal 24px/1.25 var(--serif);margin:9px 0 12px}
.cosa-animation .transcript p{margin:16px 0}
.cosa-animation .step-nav[hidden]{display:none}
@media(max-width:760px){.cosa-animation .explainer-heading h3{font-size:22px}}
