/* front-door — this case study's own figure styles, scoped to .story. */
.story .hero-fig{align-self:start}
.story .flowline .arrowtxt{white-space:nowrap}
.story .tt .ttask{font-size:.95rem;font-weight:600;margin:4px 0 10px}
.story .tt .ttask span{display:block;font-weight:400;font-size:.82rem;color:var(--muted)}
.story .ttpro{font-size:.78rem;color:var(--muted);margin:-4px 0 10px}
.story .ttmode{display:inline-flex;border:1px solid var(--rule);border-radius:999px;padding:2px;gap:2px;margin-bottom:10px;flex-wrap:wrap}
.story .ttmode button{font:600 .76rem var(--body);border:0;border-radius:999px;padding:4px 10px;background:none;color:var(--muted);cursor:pointer;transition:background-color .1s,color .1s}
.story .ttmode button[aria-pressed="true"]{background:var(--fg);color:var(--st-surface)}
.story .ttmode button .ok{color:var(--recorded);margin-left:4px}
.story .ttmode button[aria-pressed="true"] .ok{color:inherit}
.story .ttcrumbs{display:flex;flex-wrap:wrap;gap:2px 4px;align-items:center;font:500 .74rem var(--mono);color:var(--muted);min-height:1.6em}
.story .ttcrumbs button{font:inherit;border:0;background:none;color:var(--recorded);padding:2px 0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.story .ttcrumbs b{color:var(--fg);font-weight:600}
.story .ttbody{margin-top:6px}
@media (min-width:821px){
.story .ttbody{min-height:198px}
}
.story .ttlist{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.story .ttlist button{width:100%;text-align:left;font:500 .86rem var(--body);padding:7px 10px;border:1px solid var(--rule);border-radius:6px;background:var(--st-surface);color:var(--fg);cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px;transition:border-color .1s,background-color .1s}
.story .ttlist button:hover{border-color:var(--fg)}
.story .ttlist button .go{color:var(--muted);font-family:var(--mono)}
.story .ttlist button.found{border-color:var(--recorded);background:var(--recorded-soft);color:var(--recorded)}
.story .ttlist button.nope{color:var(--muted)}
.story .ttlist button .x{font:500 .7rem var(--mono);color:var(--muted);white-space:nowrap}
.story .ttlist button[aria-disabled="true"]{cursor:default}
.story .ttlist button[aria-disabled="true"]:not(.found){opacity:.55}
.story .ttlist button[aria-disabled="true"]:hover{border-color:var(--rule)}
.story .ttlist button.found[aria-disabled="true"]:hover{border-color:var(--recorded)}
.story .tttray{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px;font:500 .72rem var(--mono)}
.story .tttray [data-piece]{padding:2px 8px;border:1px dashed var(--muted);border-radius:999px;color:var(--muted);transition:background-color .2s,color .2s}
.story .tttray [data-piece].got{border:1px solid var(--recorded);background:var(--recorded-soft);color:var(--recorded)}
.story .tttray [data-piece].got::before{content:"✓ "}
.story .ttclicks{margin-left:auto;color:var(--fg)}
.story .ttreset{font:500 .72rem var(--mono);border:0;background:none;color:var(--muted);text-decoration:underline;cursor:pointer;padding:0}
.story .ttreset[hidden]{display:none}
.story .ttmsg{font-size:.84rem;margin-top:8px;min-height:1.3em}
.story .ttmsg:focus{outline:2px solid var(--recorded);outline-offset:4px;border-radius:4px}
.story .ttnext{display:inline-block;margin-top:6px;font:600 .8rem var(--body);padding:5px 12px;border-radius:999px;border:1px solid var(--recorded);background:var(--recorded);color:var(--st-surface);cursor:pointer}
.story .tttrail{margin-top:8px;font:500 .72rem var(--mono);color:var(--muted);display:grid;gap:4px}
.story .tttrail .gap{color:var(--held);display:flex;align-items:center;gap:8px;white-space:nowrap}
.story .tttrail .gap::before, .story .tttrail .gap::after{content:"";flex:1;border-top:1.5px dashed var(--held)}
.story .ttpage{border:1.5px solid var(--recorded);border-radius:8px;padding:12px;background:var(--st-surface)}
.story .ttpage[hidden]{display:none}
.story .ttpage .ph{font-family:var(--display);font-weight:700;font-size:1rem;margin-bottom:2px}
.story .ttpage .pl{display:block;margin-bottom:10px}
.story .ttpage .pair .cell{font-size:.82rem;padding:6px 8px;background:var(--recorded-soft);border-color:var(--recorded);color:var(--recorded);font-weight:600}
.story .ttpage .pm{font-size:.86rem;margin-top:12px}
.story .ttpage .in1{animation:ttin .22s ease-out both}
.story .ttpage .in2{animation:ttin .22s ease-out .12s both}
.story .ttpage .in3{animation:ttdraw .25s ease-out .24s both;transform-origin:left center}
.story .ttpage .in4{animation:ttin .22s ease-out .38s both}
@keyframes ttin{from{opacity:0;transform:translateY(4px)}}
@keyframes ttdraw{from{transform:scaleX(0)}}
.story .ttcompare{margin-top:12px;padding-top:10px;border-top:1px solid var(--rule);display:grid;gap:6px}
.story .ttcompare[hidden]{display:none}
.story .tc{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:.78rem}
.story .tc .track{position:relative;height:12px;background:var(--bg);border-radius:2px}
.story .tc .bar{position:absolute;left:0;top:1px;bottom:1px;width:0;border-radius:2px;background:var(--fg);transition:width .4s ease-out}
.story .tc .bar.after{background:var(--recorded)}
.story .tc .tick, .story .tickmark{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--fg);box-shadow:0 0 0 1.5px var(--st-surface)}
.story .tickmark{position:relative;display:inline-block;height:12px;top:2px;bottom:auto;margin:0 3px 0 2px}
.story .tc b{font:600 .74rem var(--mono);white-space:nowrap}
.story .tckey{font-size:.74rem;color:var(--muted)}
.story #crosswalk .graphic .sec.dim:not(.on){display:none}
.story #crosswalk .graphic .cmkey .dim:not(.on){display:none}
.story .oldsites{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.story .site{border:1px solid var(--rule);border-radius:8px;padding:9px;background:var(--bg);min-width:0}
.story .sname{font-weight:700;font-size:.85rem}
.story .sdesc{font-size:.72rem;color:var(--muted);margin-top:6px;line-height:1.3}
.story .srows{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:3px}
.story .srows li{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:.76rem;line-height:1.25;padding:3px 7px;border-radius:4px;background:var(--st-surface);border:1px solid var(--rule);min-width:0}
.story .srows .mk{display:inline-flex;gap:4px;font:600 .7rem var(--mono);white-space:nowrap}
.story .srows .half{display:none;font:600 .66rem var(--body);color:var(--held);background:var(--held-soft);border-radius:3px;padding:0 5px;line-height:1.5}
.story .srows .ck{color:var(--recorded);opacity:0;transition:opacity .2s ease-out;transition-delay:calc(var(--i) * 60ms)}
.story .oldsites.s0 .half{display:inline}
.story .oldsites.s1 .ck{opacity:1}
.story .halfkey{font:600 .66rem var(--body);color:var(--held);background:var(--held-soft);border-radius:3px;padding:0 5px}
.story .cm{display:block;max-width:480px;margin-top:6px;overflow:visible}
.story .cm text{font-family:var(--body);font-size:11.5px;fill:var(--fg);pointer-events:none}
.story .cm .grp{font:500 8.5px var(--mono);fill:var(--muted);letter-spacing:.08em}
.story .cm .node{cursor:pointer;outline:none}
.story .cm .node rect{transition:opacity .15s}
.story .cm .src rect{fill:var(--st-surface);stroke:var(--rule)}
.story .cm .tgt rect{fill:var(--st-surface);stroke:var(--fg);stroke-width:1.2}
.story .cm .tgt.many rect{fill:var(--recorded-soft);stroke:var(--recorded)}
.story .cm .node:focus-visible rect{stroke:var(--recorded);stroke-width:2.6}
.story svg.cm .node.node:focus-visible rect{stroke:var(--fg);stroke-width:3}
.story .cm .ln{fill:none;stroke:var(--muted);stroke-width:1.2;opacity:.7;transition:opacity .15s,stroke .15s}
.story .cm .ln.split{stroke-dasharray:4 3}
.story .cm.s3 .ln{opacity:.15}
.story .cm.s3 .ln.merge{opacity:1;stroke:var(--recorded);stroke-width:1.6}
.story .cm.s3 .tgt.cross rect{stroke-width:2.4}
.story .cm.tracing .ln:not(.hi){opacity:.07}
.story .cm.tracing .ln.hi{opacity:1;stroke:var(--fg);stroke-width:1.9}
.story .cm.tracing .node:not(.hi){opacity:.4}
.story .cmkey{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:.74rem;color:var(--muted)}
.story .cmkey span{display:inline-flex;align-items:center;gap:6px}
.story .cmkey i{display:inline-block;width:18px;height:10px}
.story .cmkey .k-split{border-top:2px dashed var(--muted);height:0}
.story .cmkey .k-many{background:var(--recorded-soft);border:1px solid var(--recorded);border-radius:2px}
.story .cmkey .k-merge{border:2.4px solid var(--recorded);border-radius:2px;background:var(--recorded-soft)}
.story #structure .graphic .sec.dim:not(.on){display:none}
.story .home{border:1.5px solid var(--recorded);border-radius:8px;padding:10px;background:var(--st-surface);min-width:0}
.story .home .ttl{font-family:var(--display);font-weight:700;font-size:.95rem;margin-bottom:6px}
.story .updates{display:block;height:10px;border-radius:2px;background:var(--dot);margin-top:4px}
.story .pairs{display:grid;gap:5px}
.story .pair{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:center}
.story .pair .cell{border:1px solid var(--fg);border-radius:4px;padding:3px 6px;font-size:.72rem;line-height:1.25;min-width:0;display:flex;flex-wrap:wrap;gap:4px;align-items:center;justify-content:space-between}
.story .pair .link{height:2px;background:var(--recorded)}
.story .pair-head{font-family:var(--mono);font-size:.66rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-top:2px}
.story .pairfull .cell{display:flex;justify-content:space-between;gap:6px;border:1px dashed var(--fg);border-radius:4px;padding:3px 6px;font-size:.72rem;margin-top:4px}
.story .pairfull small{color:var(--muted)}
.story .built{font-family:var(--mono);font-size:.64rem;padding:0 5px;border-radius:999px;border:1px solid var(--recorded);color:var(--recorded)}
.story .foundhere{display:none;margin-left:6px;font:600 .62rem var(--mono);padding:0 6px;border-radius:999px;background:var(--recorded);color:var(--st-surface);text-transform:none;letter-spacing:0;vertical-align:1px}
.story .ff-found .foundhere{display:inline-block}
.story .s2l{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1.25fr);gap:10px;align-items:center}
.story .sheet{border:1px solid var(--rule);border-radius:4px;overflow:hidden;font:500 .6rem var(--mono);color:var(--muted)}
.story .sheet .r{display:grid;grid-template-columns:16px repeat(3,minmax(0,1fr))}
.story .sheet .r > *{border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);height:15px;line-height:15px;text-align:center}
.story .sheet .r > *:last-child{border-right:0}
.story .sheet .r:last-child > *{border-bottom:0}
.story .sheet .r:first-child > *, .story .sheet .r > *:first-child{background:var(--bg)}
.story .sheet i{display:block;background:linear-gradient(var(--dot),var(--dot)) center/calc(100% - 8px) 5px no-repeat}
.story .slist{border:1.5px solid var(--recorded);border-radius:6px;overflow:hidden;background:var(--st-surface)}
.story .slist .r{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px 8px;border-top:1px solid var(--rule);align-items:center}
.story .slist .r:first-child{border-top:0;background:var(--recorded-soft);font:500 .6rem var(--mono);color:var(--recorded);text-transform:uppercase;letter-spacing:.04em}
.story .slist i{display:block;height:7px;border-radius:2px;background:var(--dot)}
.story .drev{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}
.story .drev .dcol{display:flex;flex-wrap:wrap;gap:5px;align-items:center;font-size:.8rem}
.story .drev .ddiv{width:0;align-self:stretch;border-left:2px solid var(--rule)}
.story .drev .mine{display:grid;gap:3px;justify-items:start}
.story .drev small{font:500 .66rem var(--mono);color:var(--muted)}
.story .hubbox{border:1.5px solid var(--recorded);border-radius:8px;padding:10px 12px;font-weight:700;font-size:.85rem;background:var(--recorded-soft);color:var(--recorded)}
.story .owner{border:1px solid var(--rule);border-radius:6px;padding:5px 8px;font-size:.78rem;display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.story .owner small{color:var(--muted);font-size:.7rem}
.story .struck{text-decoration:line-through;color:var(--muted);font-size:.78rem;margin-top:6px}
.story .roles{display:grid;gap:6px}
.story .roles .r{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;font-size:.82rem}
.story .strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.story .strip.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.story .strip .st{text-align:center;font-size:.68rem;font-family:var(--mono);color:var(--muted);line-height:1.25}
.story .strip .st b{display:block;height:8px;border-radius:3px;background:var(--fg);margin-bottom:5px}
.story .strip .gov{width:9px;height:9px;border-radius:50%;background:var(--recorded);margin:5px auto 0}
.story .prog-badge{font-family:var(--mono);font-size:.7rem;padding:1px 7px;border-radius:999px;border:1px dashed var(--fg);white-space:nowrap}
@media (max-width: 520px){
.story .s2l{grid-template-columns:minmax(0,1fr)}
.story .s2l .arrowtxt{transform:rotate(90deg);justify-self:center}
.story .drev{grid-template-columns:minmax(0,1fr)}
.story .drev .ddiv{width:auto;height:0;border-left:0;border-top:2px solid var(--rule)}
}
