@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');
@font-face{font-family:'Course Math';src:url('./fonts/STIXTwoMath-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
math{font-family:var(--math);font-weight:400;letter-spacing:normal}
:root{--math:'Course Math','STIX Two Math','Cambria Math',math;--paper:#fff;--ink:#242424;--muted:#606060;--rule:#767676;--line:#d9d9d9;--edge-neutral:var(--rule);--blue:#234e70;--blue-soft:#edf1f4;--blue-faint:#f4f6f8;--blue-border:#bdcad4;--blue-glow:#234e7060;--backdrop:#24242460;--font: 'DM Sans',Arial,sans-serif;--serif:'Source Serif 4',Georgia,serif;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:17px}a{color:inherit;text-underline-offset:5px}button,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:5px}.masthead{height:68px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;background:var(--paper)}.brand{font-size:12px;font-weight:700;letter-spacing:.14em;text-decoration:none}.skip{font-size:14px}.reading-progress{position:fixed;top:67px;left:0;right:0;height:2px;z-index:21}#progress-fill{height:100%;display:block;width:0;background:var(--blue)}.story{display:grid;grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr);max-width:1450px;margin:auto;padding:0 4vw;gap:4vw}.stage-shell{grid-column:2;grid-row:1;position:sticky;top:68px;align-self:start;height:calc(100svh - 68px);min-height:610px;display:flex;flex-direction:column;padding:32px 0 28px}.stage-top{display:flex;justify-content:space-between;gap:15px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;line-height:1.6;color:var(--muted)}.stage-count{font-size:13px;color:var(--muted)}.stage-viz{flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;min-height:0}.voters{display:flex;justify-content:center;gap:clamp(24px,4vw,64px)}.voter{display:flex;flex-direction:column;align-items:center;gap:16px}.voter-letter{width:96px;height:96px;border:2px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:45px}.voter-vote{font-size:14px;color:var(--blue);font-weight:600}.outcome{display:flex;flex-direction:column;align-items:center;margin-top:52px}.outcome-number{font-family:var(--serif);font-size:84px;line-height:1}.outcome-caption{font-size:14px;color:var(--muted);margin-top:8px}.outcome-result{font-family:var(--serif);font-size:28px;margin-top:22px}.stage-bottom{min-height:38px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;color:var(--muted)}.legend-mark{width:7px;height:7px;background:var(--blue);border-radius:50%}.narrative{grid-column:1;grid-row:1;min-width:0}.step{min-height:calc(100svh - 68px);display:flex;align-items:center;padding:70px 0}.step-content{max-width:415px}.step h1{font-family:var(--serif);font-size:clamp(54px,5.6vw,82px);line-height:1.01;font-weight:400;letter-spacing:-.045em;margin:25px 0 28px}.step h2{font-family:var(--serif);font-size:clamp(35px,3.3vw,50px);font-weight:400;line-height:1.12;letter-spacing:-.035em;margin:22px 0 24px}.step p{line-height:1.65;margin:0 0 20px;max-width:36ch}.step .lead{font-size:21px;line-height:1.5}.step-number{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--blue)}.scroll-prompt{color:var(--muted);font-size:14px;padding-top:25px}.scroll-prompt span{display:inline-block;margin-left:10px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:28px 4vw;font-size:13px;color:var(--muted)}
@media(max-width:760px){.masthead{height:54px;padding:0 20px}.brand{font-size:10px;letter-spacing:.08em}.skip{font-size:12px}.reading-progress{top:53px}.story{display:block;padding:0;}.stage-shell{position:sticky;top:54px;height:46svh;min-height:310px;padding:16px 20px 10px;background:var(--paper);z-index:10;border-bottom:1px solid var(--line)}.stage-top{align-items:center}.stage-count{font-size:11px}.eyebrow{font-size:10px}.stage-bottom{font-size:12px;min-height:26px}.voter-letter{width:66px;height:66px;font-size:34px}.voter{gap:9px}.outcome{margin-top:20px}.outcome-number{font-size:50px}.outcome-caption{font-size:12px}.outcome-result{font-size:20px;margin-top:12px}.narrative{padding:0 25px}.step{min-height:70svh;padding:45px 0;align-items:flex-start}.step-content{max-width:520px;padding-top:15px}.step h1{font-size:56px;margin:16px 0 22px}.step h2{font-size:36px}.step p{font-size:17px;max-width:42ch}.step .lead{font-size:19px}.scroll-prompt{padding-top:4px}.footer{font-size:12px;padding:22px 20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

[hidden]{display:none!important}.stage-shell{min-height:0}.voters,.outcome{transition:opacity .45s,transform .65s cubic-bezier(.22,.8,.22,1)}.voter{transition:opacity .45s,transform .5s}.voter.is-removed{opacity:.2;transform:translateY(-14px)}.voter.is-removed .voter-letter{border-style:dashed}.stage-shell[data-scene="2"] .voters,.stage-shell[data-scene="3"] .voters,.stage-shell[data-scene="4"] .voters,.stage-shell[data-scene="5"] .voters,.stage-shell[data-scene="6"] .voters,.stage-shell[data-scene="7"] .voters,.stage-shell[data-scene="2"] .outcome,.stage-shell[data-scene="3"] .outcome,.stage-shell[data-scene="4"] .outcome,.stage-shell[data-scene="5"] .outcome,.stage-shell[data-scene="6"] .outcome,.stage-shell[data-scene="7"] .outcome{position:absolute;opacity:0;pointer-events:none;transform:translateY(-30px) scale(.85)}
.graph-container{position:relative;width:100%;max-width:710px;align-self:center;opacity:1;transition:opacity .5s,transform .65s cubic-bezier(.22,.8,.22,1)}.stage-shell[data-scene="0"] .graph-container,.stage-shell[data-scene="1"] .graph-container{position:absolute;opacity:0;pointer-events:none;transform:translateY(30px) scale(.9)}.graph-canvas{position:relative;aspect-ratio:680/510;width:100%}.graph-svg{width:100%;height:100%;overflow:visible;position:absolute;inset:0}.graph-nodes{position:absolute;inset:0;pointer-events:none}.coalition-node{position:absolute;transform:translate(-50%,-50%) scale(.8);width:19%;max-width:124px;min-height:55px;background:#fff;border:1px solid var(--line);border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 4px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s var(--reveal-delay),transform .65s cubic-bezier(.22,.8,.22,1) var(--reveal-delay),background .3s,border-color .3s}.coalition-node:disabled{color:var(--ink);cursor:default}.coalition-node.is-visible{visibility:visible;opacity:1;transform:translate(-50%,-50%) scale(1)}.coalition-node.is-winning{background:var(--blue-faint);border-color:var(--blue-border)}.coalition-node.is-subdued{opacity:.45}.coalition-node.is-path-node,.coalition-node.is-inspected{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}.stage-shell[data-scene="7"] .coalition-node.is-visible{pointer-events:auto}.coalition-set{font-size:17px;font-weight:500;font-family:var(--serif);white-space:nowrap;line-height:1.1}.coalition-value{font-size:10px;letter-spacing:.1em;color:var(--muted);display:flex;gap:7px;align-items:center}.coalition-value b{font-size:12px;letter-spacing:0;font-weight:600}.is-winning .coalition-value{color:var(--blue)}.graph-edge{opacity:0;transition:opacity .6s}.graph-edge.is-visible{opacity:1}.edge-line{fill:none;stroke:var(--edge-neutral);transition:stroke .35s,stroke-width .35s;stroke-linecap:round}.is-highlighted .edge-line{stroke:var(--blue)}.is-inspected .edge-line{stroke:var(--blue);filter:drop-shadow(0 0 2px var(--blue-glow))}.edge-label{opacity:0;transition:opacity .25s}.show-label .edge-label{opacity:1}.edge-label rect{fill:var(--paper);fill-opacity:.40}.edge-delta{font-size:19px;font-weight:600;fill:var(--blue);font-family:var(--font)}.edge-weight{font-size:14px;fill:var(--muted);font-family:var(--font);opacity:0}.show-weight .edge-weight{opacity:1}.graph-caption{min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:14px;color:var(--muted);margin-top:14px}.graph-caption:empty{display:none}.path-order{font-size:24px;font-family:var(--serif);color:var(--ink);letter-spacing:.04em}.layer-labels{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;display:none}.layer-labels span{position:absolute;right:0;color:var(--muted);font-size:11px}.layer-labels span:nth-child(1){top:7%}.layer-labels span:nth-child(2){top:34%}.layer-labels span:nth-child(3){top:62%}.layer-labels span:nth-child(4){top:90%}.stage-shell[data-scene="2"] .graph-container{transform:translateY(30px)}.stage-shell[data-scene="2"] .graph-container .graph-canvas{margin-bottom:-120px}
.removal-controls,.player-selector{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:26px}.removal-controls>span,.player-selector>span,.order-comparison>span,.replay-controls>label{font-size:14px;color:var(--muted);margin-right:6px}.removal-controls button,.player-selector button{width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:50%;font-family:var(--serif);font-size:22px;transition:background .2s,color .2s,border .2s}.removal-controls button[aria-pressed="true"],.player-selector button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}.order-comparison{margin-top:30px}.order-comparison>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.order-comparison button,.replay-row button{border:1px solid var(--line);background:#fff;padding:10px 15px;border-radius:4px;font-size:15px;min-height:44px}.order-comparison button[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}.step .small-note{font-size:13px;line-height:1.6;color:var(--muted);margin-top:17px}.orders-list{margin:26px 0 22px;max-width:330px}.orders-list-heading{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);letter-spacing:.07em;margin-bottom:10px}.orders-list button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:12px 5px;border:0;border-bottom:1px solid var(--line);background:#fff;font-size:15px;min-height:44px}.orders-list button span:last-child{font-family:var(--serif);color:var(--muted)}.orders-list button:hover,.orders-list button.is-current{background:var(--blue-soft);color:var(--blue)}.weights-summary{margin-top:28px}.weights-summary>div{display:flex;justify-content:space-between;gap:10px;margin-top:15px}.weights-summary>div>span{display:flex;flex-direction:column;gap:8px}.weights-summary b{font-family:var(--serif);font-size:19px;font-weight:500}.weights-summary>div>span>span{font-size:13px;color:var(--muted)}
.calculation{border-top:1px solid var(--line);margin:20px auto 0;padding-top:18px;width:92%;max-width:590px}.calculation-heading{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.08em;color:var(--muted);margin-bottom:13px}.terms{display:flex;align-items:center;justify-content:space-between;gap:3px}.term{border:0;border-radius:4px;flex:1;min-width:0;background:#fff;padding:7px 2px;color:var(--ink);display:flex;flex-direction:column;gap:8px;align-items:center}.term:disabled{cursor:default}.term.is-nonzero{background:var(--blue-soft)}.term-coalition{font-family:var(--serif);font-size:15px;white-space:nowrap}.term-product{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}.term-product>span{color:var(--muted);font-size:13px}.term-plus{font-size:17px;color:var(--muted);padding:0 3px}.calculation-total{display:flex;align-items:center;justify-content:space-between;padding:14px 0 0;font-size:14px}.calculation-total strong{font-family:var(--serif);font-size:38px;font-weight:500;color:var(--blue);line-height:1}.stage-shell[data-scene="6"] .graph-container,.stage-shell[data-scene="7"] .graph-container{max-width:min(100%,calc((100svh - 300px)*1.333))}.replay-controls{margin:24px 0}.replay-row{display:flex;gap:10px;margin-top:9px}.replay-row select{flex:1;min-width:0;font-size:15px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:4px;padding:9px 12px;min-height:44px}.replay-row button{background:var(--blue);border-color:var(--blue);color:#fff}.replay-row button:disabled{opacity:.65;cursor:default}.edge-inspector{border-top:1px solid var(--line);padding-top:19px}.edge-inspector #edge-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.edge-inspector button{font-family:var(--serif);font-size:15px;padding:10px 6px;border:1px solid var(--line);border-radius:4px;background:#fff;min-height:44px;white-space:nowrap}.edge-inspector button[aria-pressed="true"]{color:var(--blue);border-color:var(--blue);background:var(--blue-soft)}.step #edge-detail{font-size:14px;line-height:1.65;min-height:72px;margin:16px 0 0}.explore-controls{max-width:390px}.step[data-step="7"]{min-height:115svh}.stage-shell[data-scene="7"] .stage-bottom{font-size:12px}.stage-shell[data-scene="6"] .stage-bottom{font-size:12px}
@media(min-width:761px) and (max-height:700px){.stage-shell{padding-top:20px;padding-bottom:15px}.graph-container{max-width:calc((100svh - 170px)*1.333)}.graph-caption{min-height:45px;margin-top:8px}.calculation{margin-top:8px;padding-top:10px}.calculation-total{padding-top:8px}.stage-shell[data-scene="6"] .graph-container,.stage-shell[data-scene="7"] .graph-container{max-width:calc((100svh - 260px)*1.333)}}
@media(max-width:760px){.stage-shell{min-height:310px;height:48svh}.stage-viz{justify-content:center}.stage-top{min-height:16px}.stage-count{font-size:10px}.graph-container{width:min(100%,calc((48svh - 85px)*1.333));max-width:440px}.coalition-node{min-height:44px;width:23%;padding:5px 2px;gap:3px;border-radius:5px}.coalition-set{font-size:14px}.coalition-value{font-size:9px;letter-spacing:.05em;gap:4px}.coalition-value b{font-size:10px}.edge-delta{font-size:24px}.edge-weight{font-size:20px}.graph-caption{font-size:11px;min-height:37px;gap:3px;margin-top:0}.path-order{font-size:18px}.stage-bottom{font-size:11px;line-height:1.4;min-height:32px;text-align:center}.stage-shell[data-scene="2"] .graph-container{transform:translateY(12px)}.stage-shell[data-scene="2"] .graph-container .graph-canvas{margin-bottom:-70px}.stage-shell[data-scene="6"],.stage-shell[data-scene="7"]{height:57svh;min-height:390px}.stage-shell[data-scene="6"] .graph-container,.stage-shell[data-scene="7"] .graph-container{width:min(100%,calc((57svh - 190px)*1.333));max-width:440px}.calculation{width:100%;padding-top:10px;margin-top:6px;max-width:400px}.calculation-heading{font-size:9px;margin-bottom:4px}.term{padding:5px 1px;gap:4px}.term-coalition{font-size:12px}.term-product{font-size:14px}.term-product>span{font-size:11px}.term-plus{padding:0 2px;font-size:14px}.calculation-total{padding-top:7px;font-size:12px}.calculation-total strong{font-size:28px}.stage-shell[data-scene="6"] .stage-bottom,.stage-shell[data-scene="7"] .stage-bottom{font-size:10px;min-height:26px}.step[data-step="7"]{min-height:140svh;scroll-margin-top:58svh}.orders-list{max-width:390px}.footer{margin-top:30px}}
@media(max-width:370px){.brand{font-size:9px}.stage-count{font-size:9px}.stage-top .eyebrow{font-size:9px}.coalition-set{font-size:13px}.step h1{font-size:49px}.step h2{font-size:33px}.edge-inspector button{font-size:14px}.calculation-heading{letter-spacing:.02em}.term-product{font-size:13px}.voters{gap:22px}}
@media(max-width:760px){.stage-shell[data-scene="6"],.stage-shell[data-scene="7"]{height:64svh;min-height:420px}.stage-shell[data-scene="6"] .graph-container,.stage-shell[data-scene="7"] .graph-container{width:min(100%,calc((64svh - 185px)*1.333));max-width:440px}}
.weights-summary>div>button{display:flex;flex-direction:column;gap:8px;align-items:flex-start;border:0;background:transparent;padding:6px 3px;min-height:44px;color:var(--ink)}.weights-summary>div>button>span{font-size:13px;color:var(--muted)}.weight-explainer-trigger{margin-top:22px;padding:11px 14px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--blue);font-size:14px;min-height:44px;text-align:left}.weight-explainer-trigger:hover,.weights-summary button:hover{background:var(--blue-soft)}.term:not(:disabled):hover{box-shadow:inset 0 0 0 1px var(--blue)}body.weight-view-open{overflow:hidden}.weight-dialog{width:min(1080px,96vw);max-height:94svh;padding:24px 28px 20px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}.weight-dialog::backdrop{background:var(--backdrop)}.weight-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.weight-close{border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);padding:8px 14px;font-size:14px;min-height:44px}.weight-dialog h2{font-family:var(--serif);font-size:32px;line-height:1.15;font-weight:400;letter-spacing:-.025em;margin:8px 0 10px}.weight-view-caption{font-size:15px;line-height:1.6;margin:0 0 16px;max-width:80ch}.weight-edge-selector{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.weight-edge-selector>span{font-size:14px;color:var(--muted)}#weight-edge-buttons{display:flex;gap:8px;flex-wrap:wrap}#weight-edge-buttons button{font-family:var(--serif);font-size:15px;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink)}#weight-edge-buttons button[aria-pressed="true"]{background:var(--blue-soft);border-color:var(--blue);color:var(--blue)}.weight-view-key{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding-top:12px;border-top:1px solid var(--line);margin-bottom:10px}.weight-view-key>span{display:flex;align-items:center;gap:7px}.weight-view-key i{display:inline-block;width:21px;height:3px}.matching-swatch{background:var(--blue)}.other-swatch{background:var(--muted)}.weight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 24px}.order-miniature{margin:0;min-width:0;padding:10px 0 8px;border-bottom:1px solid var(--line)}.miniature-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:25px}.miniature-order{font-family:var(--serif);font-size:18px;white-space:nowrap}.miniature-status{font-size:11px;color:var(--muted);text-align:right}.order-miniature.is-match .miniature-order,.order-miniature.is-match .miniature-status{color:var(--blue)}.miniature-svg{display:block;width:100%;height:auto;margin:6px 0}.mini-edge{fill:none;stroke-linecap:round}.mini-edge-background{stroke:var(--line);stroke-width:1;opacity:.7}.mini-edge-path{stroke:var(--muted);stroke-width:1.8;opacity:.7}.is-match .mini-edge-path{stroke:var(--blue);stroke-width:2;opacity:.65}.mini-edge-target{stroke:var(--blue);stroke-width:4}.mini-arrow-background{fill:var(--line)}.mini-arrow-path{fill:var(--muted)}.is-match .mini-arrow-path,.mini-arrow-target{fill:var(--blue)}.mini-node rect{fill:#fff;stroke:var(--line);stroke-width:1}.mini-node text{fill:var(--muted);font-family:var(--serif);font-size:15px}.mini-node.is-on-path text{fill:var(--ink)}.is-match .mini-node.is-on-path rect{stroke:var(--blue-border);fill:var(--blue-faint)}.miniature-detail{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}.is-match .miniature-detail{color:var(--blue)}.weight-view-note{font-size:13px;line-height:1.6;margin:16px 0 0;color:var(--muted)}
@media(max-width:850px){.weight-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.weight-dialog{padding:20px}.weight-dialog h2{font-size:29px}.weight-view-key{gap:10px}.miniature-status{font-size:10px}}
@media(max-width:560px){.weight-grid{grid-template-columns:minmax(0,1fr);gap:10px}.weight-dialog{width:96vw;padding:16px;max-height:94svh}.weight-dialog h2{font-size:27px;margin-top:13px}.weight-view-caption{font-size:14px}.weight-edge-selector{gap:8px}.weight-edge-selector>span{width:100%}#weight-edge-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}#weight-edge-buttons button{padding:8px 7px;font-size:14px}.miniature-heading{padding-top:5px}.miniature-order{font-size:19px}.miniature-status{font-size:12px}.miniature-detail{font-size:13px}.weight-view-key{font-size:12px}.weight-dialog-top .eyebrow{font-size:11px}.weight-explainer-trigger{font-size:14px}}
.footer{align-items:flex-start}.source-citation{max-width:74ch}.source-citation p{margin:8px 0 0;font-size:14px;line-height:1.65;color:var(--ink)}.footer>a{white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:760px){.footer{flex-direction:column;gap:12px}.source-citation p{font-size:13px}.source-citation .eyebrow{font-size:11px}}
.math-inline{font-family:var(--math);font-size:1em;white-space:nowrap}.value-definition{margin:22px 0;padding:18px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.value-definition math{font-size:25px}.step .value-definition p{font-size:13px;line-height:1.55;color:var(--muted);margin:13px 0 0}.formula-step{min-height:100svh}.stage-shell.is-formula-scene .voters,.stage-shell.is-formula-scene .outcome{position:absolute;opacity:0;visibility:hidden;transition:none;pointer-events:none;transform:translateY(-30px) scale(.85)}.is-formula-scene .graph-container{flex:1;min-height:110px;max-height:230px;max-width:none;width:100%;display:flex;justify-content:center;align-items:center}.is-formula-scene .graph-canvas{height:100%;width:auto;max-height:230px;max-width:100%;aspect-ratio:680/510}.is-formula-scene .formula-view{flex-shrink:0}.is-formula-scene .coalition-node{width:25%;max-width:95px;min-height:36px;padding:4px 2px;gap:3px}.is-formula-scene .coalition-set{font-size:13px}.is-formula-scene .coalition-value{font-size:0;letter-spacing:0}.is-formula-scene .coalition-value b{font-size:10px}.coalition-node.is-formula-source{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}.coalition-node.is-formula-target{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue);background:var(--blue-soft)}.is-formula-scene .edge-label{display:none}.is-formula-scene .stage-bottom{font-size:12px;text-align:center}
@media(max-width:760px){.value-definition math{font-size:23px}.formula-step{min-height:90svh}.stage-shell.is-formula-scene{height:70svh;min-height:480px;padding-top:12px;padding-bottom:10px}.is-formula-scene .graph-container{min-height:90px;max-height:190px;width:100%}.is-formula-scene .graph-canvas{max-height:190px}.is-formula-scene .stage-bottom{font-size:10px;min-height:27px}.is-formula-scene .coalition-set{font-size:12px}.is-formula-scene .coalition-node{min-height:33px}}

.stage-shell.is-value-function-scene .voters,.stage-shell.is-value-function-scene .outcome{position:absolute;opacity:0;visibility:hidden;transition:none;pointer-events:none}.stage-shell.is-value-function-scene .stage-bottom{text-align:center}
@media(max-width:760px){.stage-shell.is-value-function-scene{height:64svh;min-height:420px}.is-value-function-scene .graph-container{width:min(100%,calc((64svh - 85px)*1.333));max-width:440px}}
.coalition-payoff{display:grid;place-items:center;width:100%}.coalition-payoff>span,.coalition-payoff>math{grid-area:1/1}.coalition-value-formula{display:none;letter-spacing:normal}.is-value-function-scene .coalition-node{width:29%;max-width:155px}.is-value-function-scene .coalition-value{opacity:1;transform:translateY(0);transition:opacity .22s,transform .22s}.is-value-function-scene .coalition-value-formula{display:block;font-size:14px;opacity:0;transform:translateY(4px);transition:opacity .22s,transform .22s}.is-value-function-scene.has-payoff-notation .coalition-value{opacity:0;transform:translateY(-4px)}.is-value-function-scene.has-payoff-notation .coalition-value-formula{opacity:1;transform:translateY(0)}
@media(max-width:760px){.is-value-function-scene .coalition-value-formula{font-size:11px}}
@media(prefers-reduced-motion:reduce){.is-value-function-scene .coalition-value,.is-value-function-scene .coalition-value-formula{transition:none;transform:none}}

/* Cover, story, diagram, and controls share the course palette. */
.title-page{
  --cover-ink:var(--ink);
  --cover-muted:var(--muted);
  --cover-blue:var(--blue);
  min-height:calc(100svh - 68px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(32px,5svh,64px) 24px clamp(32px,6svh,72px);
  background:#fff;
  color:var(--cover-ink);
  text-align:center;
}
.title-page-content{width:100%;max-width:1100px}
.title-page:focus,.step[tabindex="-1"]:focus{outline:none}
.title-page-kicker{margin:0 0 13px;font-size:12px;letter-spacing:.14em;line-height:1.5;color:var(--cover-muted)}
.title-page h1{margin:0 auto;max-width:19ch;font-family:var(--serif);font-size:clamp(46px,5vw,72px);font-weight:400;line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
.title-page-art{margin:24px 0 0;display:flex;flex-direction:column;align-items:center}
.title-page-art img{display:block;width:auto;height:auto;max-width:min(660px,100%);max-height:40svh;object-fit:contain}
.title-page-start{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;margin-top:20px;padding:6px 10px;font-size:15px;line-height:1.5;color:var(--cover-blue);text-decoration-thickness:1px}
.title-page-start:focus-visible{outline-color:var(--cover-blue)}
.title-page-start span{font-size:20px;line-height:1}
.title-page-application{margin:18px 0 0;font-size:16px;line-height:1.5;color:var(--cover-muted)}
@media(max-width:760px){
  .title-page{min-height:calc(100svh - 54px);padding:28px 24px 32px}
  .title-page h1{font-size:clamp(32px,9vw,46px);max-width:13ch}
  .title-page-art{margin-top:18px}
  .title-page-art img{max-height:32svh}
  .title-page-start{margin-top:18px;font-size:14px}
  .title-page-application{margin-top:16px;font-size:14px}
}
@media(min-width:761px) and (max-height:700px){
  .title-page{padding-top:28px;padding-bottom:32px}
  .title-page h1{font-size:52px}
  .title-page-art{margin-top:12px}
  .title-page-art img{max-height:31svh}
  .title-page-start{margin-top:10px}
  .title-page-application{margin-top:10px;font-size:14px}
}
@media(max-width:760px) and (max-height:650px){
  .title-page{padding:14px 20px 22px}
  .title-page-kicker{font-size:11px;margin-bottom:8px}
  .title-page h1{font-size:32px}
  .title-page-art{margin-top:12px}
  .title-page-art img{max-height:25svh}
  .title-page-start{margin-top:10px}
  .title-page-application{margin-top:10px}
}
