/* Styles for the published Capability Pipeline simulation activity. */
:root{--ink:#17272d;--muted:#566971;--teal:#13665f;--teal-light:#e6f3ef;--line:#d9e2e3;--paper:#fff;--bg:#f3f6f5;--amber:#82550d;--amber-bg:#fff3d9;--red:#a13738;--red-bg:#fff0ee;--navy:#173b47;--shadow:0 7px 25px #173b470a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:.65rem 1rem;cursor:pointer;line-height:1.35;transition:background .12s,border-color .12s}button:hover:not(:disabled){background:#edf3f1;border-color:#8bbab1}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c2872a;outline-offset:3px}.primary{background:var(--teal);color:white;border-color:var(--teal);font-weight:650}.primary:hover:not(:disabled){background:#104f4a;color:white}.quiet{font-size:.86rem;padding:.55rem .8rem;background:transparent}.danger{color:var(--red)}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(2.3rem,5vw,3.45rem);letter-spacing:-.045em;line-height:1.12;margin:.6rem 0 1rem}h2{font-size:1.7rem;letter-spacing:-.025em;line-height:1.25;margin-bottom:.7rem}h3{font-size:1.16rem;line-height:1.35;margin-bottom:.6rem}p{margin-bottom:1rem}a{color:var(--teal);text-underline-offset:3px}small,.small{font-size:.84rem}code{font-size:.85rem;overflow-wrap:anywhere}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:.72rem;font-weight:750;letter-spacing:.15em}.masthead{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1.1rem max(1.2rem,calc((100vw - 1230px)/2));border-bottom:1px solid var(--line);background:white}.brand{display:flex;align-items:center;gap:.75rem}.brandmark{display:grid;place-items:center;width:39px;height:39px;background:var(--navy);color:white;border-radius:10px;font-weight:750;font-size:1.45rem}.brand strong{font-size:1.03rem;letter-spacing:.08em}.brand small{display:block;color:var(--muted);font-size:.7rem;line-height:1.3}.topmeta{display:flex;align-items:center;gap:1rem;font-size:.72rem;color:var(--muted)}.badge{display:inline-block;padding:.25rem .6rem;border-radius:20px;background:#eaf0ef;font-size:.73rem;font-weight:650;line-height:1.45}.badge.fiction{background:var(--amber-bg);color:var(--amber)}.hero{max-width:1230px;margin:0 auto;padding:2.7rem 1.5rem 1.8rem}.hero p{font-size:1.09rem;color:var(--muted);margin:0}.hero .eyebrow{color:var(--teal)}.frame{max-width:1230px;margin:auto;padding:0 1.5rem}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);margin-bottom:1.7rem;padding-bottom:.9rem;flex-wrap:wrap}.tabs{display:flex;gap:.4rem;flex-wrap:wrap}.tabs button{background:transparent;border-color:transparent;font-size:.9rem;font-weight:600;padding:.65rem .8rem}.tabs .active{color:var(--teal);background:var(--teal-light)}.utilities{display:flex;gap:.4rem}.panel{background:white;border:1px solid var(--line);border-radius:15px;padding:1.5rem;box-shadow:var(--shadow);min-width:0}.intro{display:flex;justify-content:space-between;gap:1rem;align-items:start;margin-bottom:1.1rem}.intro p{max-width:750px;color:var(--muted);margin-bottom:0}.split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.25rem;align-items:start}.stack{display:grid;gap:1rem}.rail{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:.45rem;margin:1rem 0 1.5rem}.step{border-radius:10px;border:1px solid var(--line);padding:.65rem .3rem;text-align:center;background:white;font-size:.79rem;font-weight:600;min-height:73px}.step span{display:block;font-size:.69rem;font-weight:500;color:var(--muted);margin-bottom:.23rem}.step.active{border-color:var(--teal);background:var(--teal);color:white}.step.active span{color:#e3f2ef}.step.visited:not(.active){border-color:#94c4ba;background:var(--teal-light)}.return-line{text-align:right;color:var(--teal);font-size:.8rem;margin:-.95rem 0 1.6rem}.key{border-left:3px solid var(--teal);padding:.2rem 0 .2rem 1rem;margin:1.5rem 0}.key p:last-child{margin:0}.callout{background:var(--teal-light);border:1px solid #c7e0d7;border-radius:10px;padding:1rem;margin:1rem 0}.callout.warning{background:var(--amber-bg);border-color:#e9d6a9;color:#664711}.callout.problem{background:var(--red-bg);border-color:#efc7c3;color:#792b2f}.callout p:last-child{margin-bottom:0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.row{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center}.between{justify-content:space-between}.spaced{margin-top:1.1rem}.metric-row{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-bottom:1.2rem}.resource{padding:.8rem .9rem;background:#edf3f2;border-radius:9px}.resource strong{display:block;font-size:1.8rem;line-height:1.1}.resource span{font-size:.75rem;color:var(--muted)}.meter{margin:.85rem 0}.meter .row{justify-content:space-between;gap:.3rem;font-size:.77rem}.track{height:5px;background:#e8eeec;border-radius:10px;margin-top:.4rem}.fill{height:100%;background:#458b7b;border-radius:10px}.choices{display:grid;grid-template-columns:1fr;gap:.75rem;margin:1.2rem 0}.choice{text-align:left;width:100%;padding:1rem 1.15rem;border-radius:12px;display:grid;grid-template-columns:28px 1fr;gap:.7rem}.choice.selected{border:2px solid var(--teal);padding:calc(1rem - 1px) calc(1.15rem - 1px);background:#f1f9f6}.choice .number{width:26px;height:26px;display:grid;place-items:center;background:#ecf2ef;border-radius:50%;font-size:.8rem}.choice.selected .number{background:var(--teal);color:white}.choice strong{display:block;font-size:.99rem;margin-bottom:.4rem}.choice .detail{font-size:.85rem;line-height:1.5;color:var(--muted)}.cost{display:block;font-size:.75rem;font-weight:650;color:var(--teal);margin-top:.65rem}.field{display:block;margin:1rem 0}.field>span,.field>label,label.caption{display:block;font-size:.83rem;font-weight:650;margin-bottom:.35rem}.field small{display:block;color:var(--muted);margin-top:.35rem}textarea,input[type=text],input[type=number],select{border:1px solid #b8c8ca;background:white;color:var(--ink);border-radius:8px;padding:.6rem .7rem;width:100%;max-width:100%}textarea{resize:vertical;min-height:94px;line-height:1.45}input[type=range]{width:100%;accent-color:var(--teal)}input[type=checkbox]{accent-color:var(--teal)}.check{display:flex;align-items:center;gap:.6rem;font-size:.84rem}.prob{display:flex;overflow:hidden;border-radius:7px;height:10px;margin:.55rem 0 .45rem}.prob .useful{background:#2a7b68}.prob .mixed{background:#d4b773}.prob .setback{background:#a85f5a}.prob-labels{display:flex;justify-content:space-between;gap:.3rem;font-size:.75rem;color:var(--muted)}.outcome-title{display:flex;align-items:center;gap:.9rem}.die{font-size:2.5rem;line-height:1;width:54px;height:54px;display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:12px}.evidence-item{padding:.75rem 0;border-bottom:1px solid var(--line)}.evidence-item:last-child{border:0}.evidence-item strong{font-size:1.2rem}.evidence-item .row{justify-content:space-between}.evidence-item span,.evidence-item small{font-size:.78rem}.delta{display:flex;flex-wrap:wrap;gap:.35rem;margin:.8rem 0}.delta span{font-size:.74rem;background:#edf2f0;padding:.2rem .45rem;border-radius:5px}.decisions{display:grid;gap:1rem;margin-top:1.2rem}.record{position:relative;padding:1.1rem 1.2rem;border:1px solid var(--line);border-radius:12px;background:white}.record h3{margin:.55rem 0}.record p{font-size:.88rem}.quote{padding-left:.8rem;border-left:2px solid #a8c7bf;color:#455b63;white-space:pre-wrap;overflow-wrap:anywhere}.result-pill{font-size:.71rem;font-weight:700;border-radius:20px;padding:.25rem .65rem;background:#edf1ee}.result-pill.useful{background:var(--teal-light);color:var(--teal)}.result-pill.setback{background:var(--red-bg);color:var(--red)}.result-pill.mixed{background:var(--amber-bg);color:var(--amber)}details{font-size:.9rem;margin:.8rem 0}summary{cursor:pointer;font-weight:650;padding:.3rem 0}details>div,details>p{margin-top:.7rem}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6f5;padding:.85rem;border-radius:7px;font-size:.76rem;max-height:350px;overflow:auto}.editor-action{border:1px solid var(--line);border-radius:10px;padding:1rem;margin:1rem 0}.editor-action h4{margin:0;font-size:.93rem}.four{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem}.json-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.8rem;min-height:160px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.84rem}td,th{border-bottom:1px solid var(--line);padding:.7rem;text-align:left;vertical-align:top}th{background:#edf2ef;font-weight:650}footer{padding:2rem 0 3rem;color:var(--muted);font-size:.76rem;line-height:1.6}footer p{margin-bottom:.6rem}#notice{border:1px solid #a3c9bd;background:var(--teal-light);border-radius:9px;padding:.7rem 1rem;margin-bottom:1rem;font-size:.88rem}#notice.error{background:var(--red-bg);border-color:#edbbb6;color:var(--red)}.skip{position:absolute;left:10px;top:-100px;background:white;z-index:50;padding:1rem}.skip:focus{top:10px}.empty{padding:2.5rem 1rem;text-align:center}.nowrap{white-space:nowrap}.count{font-size:.76rem;color:var(--muted)}.unit{font-size:.74rem;color:var(--muted);font-weight:400}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.split{grid-template-columns:minmax(0,1fr) 250px}.masthead{padding:1rem 1.2rem}.topmeta{display:block}.topmeta #saveStatus{display:block;margin-top:.35rem;text-align:right}.rail{grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}.step{min-height:63px}.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.hero{padding:2rem 1rem 1.4rem}.frame{padding:0 1rem}.masthead{padding:.85rem 1rem}.brand small{max-width:165px}.topmeta .badge{font-size:.63rem}.hero p{font-size:.98rem}.toolbar{gap:.6rem;margin-bottom:1.1rem}.tabs{display:grid;width:100%;grid-template-columns:1fr 1fr}.tabs button{font-size:.82rem;padding:.65rem .3rem}.utilities{margin-left:auto}.split{display:flex;flex-direction:column}.split>aside{width:100%;order:2}.panel{padding:1.1rem}.grid2{grid-template-columns:1fr}.intro{display:block}.intro .badge{margin-bottom:.6rem}.choice{padding:.85rem .75rem;grid-template-columns:23px 1fr;gap:.5rem}.choice.selected{padding:calc(.85rem - 1px) calc(.75rem - 1px)}.choice .number{width:23px;height:23px}.step{font-size:.72rem}.rail{gap:.35rem;margin-top:1rem}.prob-labels{font-size:.67rem}h2{font-size:1.4rem}.four{grid-template-columns:1fr 1fr}.row button{flex-grow:1}.row .check{flex-grow:0}footer{padding-top:1.5rem}}
@media print{body{background:white}.masthead,.hero,.toolbar,footer,button,.rail,.return-line,#notice{display:none}.frame{max-width:none;padding:0}.split{display:block}.panel{box-shadow:none;border:0;padding:.3rem}.record{break-inside:avoid}.quote{color:black}.panel details{display:block}textarea{border:0}main{outline:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.teaching{border-left:4px solid #1c6e66;background:#f1f6ef;padding:1rem;margin:1rem 0;line-height:1.6}.teaching h3{margin:0 0 .6rem}.teaching p{margin:.55rem 0}.choice-teaching{background:#f8f2e5}
