:root{color-scheme:light;font-family:Arial,Helvetica,sans-serif;color:#102236;background:#fff;font-size:16px;line-height:1.5;--navy:#123e68;--red:#ef1b2d;--pale:#f4f7fa;--line:#cbd8e5}
*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;color:var(--navy);background:#fff;border:1px solid #a5bdd3;border-radius:7px;min-height:44px;padding:10px 14px;text-align:left}button:hover{background:#edf3f8}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:3px}button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}button:disabled{cursor:default;opacity:.5}a{color:var(--navy);text-underline-offset:3px}[hidden]{display:none!important}
main{max-width:1600px;margin:auto;padding:clamp(14px,2.3vw,30px)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,3.3vw,38px);line-height:1.12;letter-spacing:-.7px;color:var(--navy);margin-bottom:12px}h2{font-size:23px;line-height:1.2}h3{font-size:17px}p{margin-bottom:12px}.bt-kicker{color:#ba1028;font-weight:700;font-size:12px;letter-spacing:1.3px;text-transform:uppercase;display:block;margin-bottom:8px}.bt-intro{max-width:82ch;color:#405a70}.bt-start{border-left:4px solid var(--red);padding:13px 17px;background:var(--pale);margin:18px 0;font-size:15px}.bt-start strong{color:var(--navy)}.bt-scope{font-size:14px;color:#405a70}.bt-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:22px 0 16px}.bt-modes{display:flex;gap:5px}.bt-modes button{font-weight:700;font-size:14px}.bt-jump{flex:1;min-width:230px}.bt-jump label{display:block;font-weight:700;font-size:13px;margin-bottom:4px}.bt-jump select{width:100%;max-width:100%;min-height:44px;border:1px solid #9fb6cd;border-radius:6px;color:var(--navy);background:#fff;padding:8px;font-size:14px}.bt-guide{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);background:var(--pale);border-radius:8px;margin-bottom:16px}.bt-guide p{font-size:14px;margin:0;flex:1;min-width:180px}.bt-guide button{font-size:14px;font-weight:700}.bt-map{border:1px solid var(--line);border-radius:12px;background:#fbfcfe;padding:20px 15px}.bt-map-help{color:#405a70;font-size:14px;margin-bottom:15px}.bt-hazard{display:block;max-width:660px;width:100%;margin:0 auto 22px;text-align:center;border-top:4px solid var(--navy);background:#fff}.bt-hazard .bt-type{display:block}.bt-board{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(140px,.85fr) minmax(0,2.1fr);gap:30px;position:relative;align-items:stretch}.bt-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.bt-lines path{fill:none;stroke:#9cb2c6;stroke-width:2}.bt-lines path.bt-line-active{stroke:var(--red);stroke-width:3}.bt-wing,.bt-knot{z-index:1;min-width:0}.bt-wing{display:flex;flex-direction:column;gap:17px;justify-content:space-evenly}.bt-wing-head{display:grid;grid-template-columns:1fr 1fr;gap:16px;color:var(--navy);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.bt-path{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center;flex:1}.bt-control-stack{display:grid;gap:8px}.bt-node{width:100%;min-width:0;display:flex;flex-direction:column;justify-content:center;border:2px solid #123e68;background:#fff;position:relative;padding:12px 9px;min-height:100px;box-shadow:0 3px 7px #123e6807}.bt-node strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}.bt-type{font-size:10px;text-transform:uppercase;letter-spacing:.65px;margin-bottom:6px;color:#46647c;font-weight:700;line-height:1.35}.bt-node[aria-pressed=true] .bt-type{color:#fff}.bt-node.bt-prevention,.bt-node.bt-mitigation{border-top:5px solid var(--navy)}.bt-node.bt-outcome{border-color:#bd1730}.bt-node.bt-dependency{min-height:65px;border:1px dashed #7795b0}.bt-node.bt-related{box-shadow:0 0 0 3px #e6edf5}.bt-node.bt-missing{border-color:var(--red);background:#fff2f4;color:#102236}.bt-node.bt-missing[aria-pressed=true]{background:#7e1328;color:#fff}.bt-review{display:block;font-size:11px;font-weight:700;color:#ba1028;margin-top:8px}.bt-node[aria-pressed=true] .bt-review{color:#fff}.bt-knot{display:flex;align-items:center;justify-content:center}.bt-knot .bt-node{border-radius:100px;aspect-ratio:1;min-height:180px;border:4px solid var(--red);text-align:center;background:#fff2f4;padding:18px 10px}.bt-knot .bt-node strong{font-size:17px}.bt-knot .bt-node[aria-pressed=true]{background:#8f132b;color:#fff}.bt-knot .bt-type{color:#9c1029}.bt-knot .bt-node[aria-pressed=true] .bt-type{color:#fff}.bt-legend{font-size:13px;color:#405a70;margin:17px 0 0}.bt-step-group{border:1px solid var(--line);border-radius:8px;background:#fff;margin:10px 0}.bt-step-group summary{cursor:pointer;min-height:48px;padding:14px;font-weight:700;color:var(--navy);font-size:15px}.bt-step-body{padding:0 14px 14px;display:grid;gap:8px}.bt-step-body .bt-node{min-height:65px}.bt-steps h3{margin:20px 0 8px}.bt-steps>.bt-node{max-width:650px;min-height:74px}.bt-steps .bt-event{border-color:var(--red);background:#fff2f4}.bt-flow-word{font-weight:700;font-size:13px;color:#526d83;text-align:center}.bt-explanation{margin:22px 0;border:2px solid var(--navy);border-radius:10px;background:#fff;overflow:hidden}.bt-detail-head{background:var(--navy);color:#fff;padding:20px 22px}.bt-detail-head .bt-kicker{color:#fff;font-size:11px}.bt-detail-head h2{margin-bottom:10px}.bt-detail-head p{font-size:17px;margin:0;max-width:90ch}.bt-detail-body{padding:20px 22px}.bt-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bt-detail-body h3{color:var(--navy);margin-bottom:6px}.bt-detail-body p{font-size:15px}.bt-chip-list{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 17px}.bt-chip-list button{font-size:13px;min-height:44px;padding:8px 10px}.bt-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.bt-actions button{font-size:14px;font-weight:700}.bt-primary{background:var(--navy);color:#fff;border-color:var(--navy)}.bt-primary:hover{background:#092744}.bt-dependencies{margin-top:24px;border-top:1px solid var(--line);padding-top:22px}.bt-dependencies h2{margin-bottom:8px}.bt-dependencies>p{font-size:14px;color:#405a70}.bt-dependency-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bt-scenario{background:#fff1f3;border-left:4px solid var(--red);padding:15px;margin:16px 0;font-size:15px}.bt-scenario h3{margin-bottom:6px}.bt-scenario .bt-actions{margin-top:8px}.bt-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;font-size:13px;color:#466078}.bt-footer p{max-width:100ch}.bt-footer summary{cursor:pointer;font-weight:700;min-height:44px;padding:10px 0;color:var(--navy)}.bt-footer li{margin:9px 0}.bt-footer img{float:right;width:45px;height:45px;opacity:.5;margin:8px 0 0 15px}.bt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.bt-nojs{padding:20px;max-width:1000px;margin:auto}.bt-nojs summary{font-weight:700;cursor:pointer}.bt-nojs details{padding:12px;border-bottom:1px solid var(--line)}
@media(max-width:979px){.bt-board{display:flex;flex-direction:column;gap:24px}.bt-lines{display:none}.bt-wing-head{font-size:12px}.bt-path{gap:22px;position:relative}.bt-path:after{content:'→';position:absolute;left:calc(50% - 8px);color:var(--navy);font-weight:bold}.bt-knot .bt-node{aspect-ratio:auto;min-height:100px;max-width:400px;border-radius:25px}.bt-wing{gap:12px}.bt-node{min-height:84px}.bt-dependency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bt-map{padding:16px 12px}.bt-detail-grid{grid-template-columns:1fr;gap:4px}.bt-detail-head,.bt-detail-body{padding:18px}.bt-hazard{margin-bottom:16px}}
@media(max-width:480px){main{padding:12px}.bt-tools{align-items:stretch}.bt-jump{min-width:100%}.bt-modes{width:100%}.bt-modes button{flex:1;text-align:center}.bt-guide{padding:10px;gap:6px}.bt-guide button{padding:8px 10px}.bt-dependency-grid{grid-template-columns:1fr}.bt-detail-head h2{font-size:22px}.bt-node strong{font-size:14px}.bt-path{gap:18px}.bt-scope{font-size:13px}.bt-footer ul{padding-left:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{button,select{color:#102236!important;background:#fff!important}.bt-tools,.bt-guide,.bt-actions{display:none!important}.bt-explanation{break-inside:avoid}.bt-lines{display:none}.bt-footer img{position:fixed;right:12px;bottom:12px}body{font-size:11pt}}

summary{cursor:pointer;min-height:44px;padding:10px 0}

.bt-dependencies>summary{font-size:19px;font-weight:700;color:var(--navy)}

/* The overview keeps an actual bowtie silhouette at every screen width. */
.bt-overview{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px 16px;margin:22px 0}
.bt-overview h2{color:var(--navy);margin-bottom:8px}.bt-overview-help{font-size:15px;color:#405a70;margin-bottom:14px}
.bt-overview-hazard{max-width:630px;margin:0 auto 12px;min-height:64px;text-align:center;border-top:4px solid var(--navy);padding:10px}
.bt-overview-shape{position:relative;height:clamp(190px,27vw,330px);isolation:isolate}
.bt-overview-shape>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.bt-overview-left{fill:#e6eef6;stroke:#123e68;stroke-width:3}.bt-overview-right{fill:#fce5e9;stroke:#c31a32;stroke-width:3}
.bt-overview-fold{fill:none;stroke:#98aec2;stroke-width:1.5;stroke-dasharray:5 6}
.bt-overview-choice{position:absolute;z-index:1;border:0;background:transparent;border-radius:8px;box-shadow:none;min-height:54px;padding:8px 4px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:5px;top:50%;transform:translateY(-50%);line-height:1.2}
.bt-overview-choice strong{font-size:clamp(16px,1.65vw,23px);font-weight:700}.bt-overview-choice span{font-size:13px;font-weight:400}
.bt-overview-threat{left:2%;width:20%;color:#123e68}.bt-overview-prevention{left:25%;width:16%;color:#123e68}
.bt-overview-mitigation{right:25%;width:16%;color:#92142c}.bt-overview-outcome{right:2%;width:20%;color:#92142c}
.bt-overview-event{left:50%;transform:translate(-50%,-50%);width:clamp(110px,16%,180px);aspect-ratio:1;border:5px solid var(--red);border-radius:50%;background:#123e68;color:#fff;padding:15px 8px}
.bt-overview-event strong{font-size:14px;text-transform:uppercase;letter-spacing:.5px}.bt-overview-event span{font-size:clamp(14px,1.5vw,20px);font-weight:700;line-height:1.25}
.bt-overview-choice:hover{background:#ffffffbb;outline:2px solid var(--navy)}.bt-overview-choice[aria-pressed=true]{background:#fff;box-shadow:0 0 0 2px #123e68;color:#123e68}
.bt-overview-event:hover,.bt-overview-event[aria-pressed=true]{background:#123e68;color:#fff;outline:0;box-shadow:0 0 0 3px #f7d6dd}
.bt-overview-direction{display:flex;justify-content:space-between;gap:16px;font-size:13px;font-weight:700;color:#47657c;margin-top:8px}.bt-overview-direction span:last-child{text-align:right;color:#92142c}
.bt-overview-options{border-top:1px solid var(--line);margin-top:17px;padding-top:15px}.bt-overview-options h3{color:var(--navy);margin-bottom:6px}.bt-overview-options p{font-size:14px;margin-bottom:0}.bt-overview-options .bt-chip-list{margin-bottom:0}
.bt-overview-mobile-controls{display:none}.bt-full-routes{border:1px solid var(--line);border-radius:9px;padding:8px 14px;margin-top:22px}.bt-full-routes>summary{font-weight:700;font-size:18px;color:var(--navy)}.bt-full-routes .bt-modes{margin:12px 0}.bt-full-routes .bt-map{margin-top:12px}
@media(max-width:699px){.bt-overview{padding:15px 10px}.bt-overview-choice strong{font-size:15px}.bt-overview-choice span{font-size:12px}.bt-overview-prevention,.bt-overview-mitigation{display:none}.bt-overview-threat{left:2%;width:24%}.bt-overview-outcome{right:2%;width:24%}.bt-overview-event{width:110px;border-width:4px}.bt-overview-event strong{font-size:11px}.bt-overview-event span{font-size:14px}.bt-overview-mobile-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.bt-overview-mobile-controls button{font-size:14px;font-weight:700;padding:10px 8px;text-align:center}.bt-overview-direction{font-size:11px;gap:22px}.bt-overview-hazard strong{font-size:14px}.bt-overview-shape{height:190px}}
@media print{.bt-overview{break-inside:avoid}.bt-overview-event{background:#123e68!important;color:white!important}}

/* Wide desktops show each actual item, including every shared dependency. */
.bt-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:6px}.bt-overview-heading h2{margin:0}.bt-overview-heading button{font-size:14px;font-weight:700;white-space:nowrap}
.bt-overview-help-wide,.bt-overview-all{display:none}
.bt-all-board{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.15fr) minmax(125px,.86fr) minmax(0,1.15fr) minmax(0,1.15fr);gap:16px;align-items:stretch;padding:15px 12px}
.bt-all-board>svg{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;overflow:visible}
.bt-all-column{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px}.bt-all-column h3{font-size:13px;text-align:center;color:var(--navy);line-height:1.2;margin:0}.bt-all-mitigation h3,.bt-all-outcome h3{color:#92142c}
.bt-all-cards{display:flex;flex-direction:column;gap:7px;justify-content:center}
.bt-overview-all .bt-node{padding:7px 8px;min-height:54px;border-width:1px;border-top-width:3px;box-shadow:0 2px 4px #1022360c}
.bt-overview-all .bt-node strong{font-size:13px;line-height:1.2;overflow-wrap:normal}.bt-overview-all .bt-type{font-size:9px;margin-bottom:3px;letter-spacing:.3px;line-height:1.15}
.bt-all-knot{display:flex;align-items:center;justify-content:center;min-width:0}.bt-all-knot .bt-node{min-height:150px;aspect-ratio:1;border:4px solid var(--red);border-radius:50%;text-align:center;padding:12px 8px;background:#123e68;color:#fff}.bt-all-knot .bt-type{color:#fff;font-size:11px}.bt-all-knot .bt-node strong{font-size:17px;line-height:1.15}.bt-all-knot .bt-node[aria-pressed=true]{box-shadow:0 0 0 3px #f7d6dd}
.bt-all-dependencies{margin-top:12px}.bt-all-dependencies h3{font-size:13px;margin:0 0 7px;color:var(--navy)}.bt-all-dependencies>div{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.bt-all-dependencies .bt-node{height:100%;min-height:76px;border-width:1px;border-style:dashed}.bt-all-dependencies .bt-node strong{font-size:12px;line-height:1.2}.bt-all-dependencies .bt-type{font-size:8px}
.bt-detail-dialog{width:min(760px,calc(100vw - 36px));max-height:calc(100dvh - 40px);border:2px solid var(--navy);border-radius:12px;padding:12px;background:#fff;color:#102236;overflow:auto;overscroll-behavior:contain}.bt-detail-dialog::backdrop{background:#10223680}.bt-dialog-close{font-size:14px;font-weight:700;position:sticky;top:0;background:#fff;z-index:2;box-shadow:0 2px 6px #123e6820}.bt-detail-dialog .bt-explanation{margin:12px 0 0}.bt-detail-dialog .bt-scenario{margin:12px 0}
main.bt-expanded,main:fullscreen{position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;max-width:none;margin:0;padding:12px;background:#fff;overflow:auto;overscroll-behavior:contain}
.bt-expanded>header,.bt-expanded>.bt-tools,.bt-expanded>.bt-guide,.bt-expanded>.bt-full-routes,.bt-expanded>.bt-dependencies,.bt-expanded>.bt-footer,.bt-expanded>#bt-detail-home{display:none}
.bt-expanded>.bt-overview{margin:0;max-width:1800px;margin-inline:auto;padding:12px}
@media(min-width:1100px){.bt-overview-all{display:block}.bt-overview-compact,.bt-overview-help-compact{display:none}.bt-overview-help-wide{display:block}.bt-overview-hazard{min-height:52px;margin-bottom:10px;padding:7px 12px}.bt-overview-hazard .bt-type{margin-bottom:3px}.bt-overview-help{font-size:14px;margin-bottom:10px}.bt-all-board{min-height:340px}}
@media(min-width:1100px) and (max-height:800px){.bt-expanded>.bt-overview{padding:10px}.bt-expanded .bt-overview-help{margin-bottom:7px}.bt-expanded .bt-overview-hazard{min-height:48px;margin-bottom:6px}.bt-expanded .bt-all-board{min-height:320px;padding-block:10px;gap:12px}.bt-expanded .bt-all-cards{gap:5px}.bt-expanded .bt-overview-all .bt-node{padding:5px 7px;min-height:51px}.bt-expanded .bt-all-knot .bt-node{min-height:135px;padding:10px}.bt-expanded .bt-all-dependencies{margin-top:8px}.bt-expanded .bt-all-dependencies .bt-node{min-height:72px}.bt-expanded .bt-overview-direction{margin-top:5px}}
@media(max-width:699px){.bt-overview-heading{align-items:flex-start;flex-wrap:wrap}.bt-overview-heading h2{font-size:22px}.bt-overview-heading button{font-size:13px}.bt-detail-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:8px}.bt-detail-dialog .bt-detail-head,.bt-detail-dialog .bt-detail-body{padding:15px}}
@media print{.bt-overview-heading button,.bt-detail-dialog{display:none!important}}

/* Selected step cards must retain a dark background behind their white text. */
.bt-steps .bt-event{color:var(--navy)}
.bt-steps .bt-event[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--red)}
.bt-steps .bt-event[aria-pressed=true] .bt-type{color:#fff}

/* Readable controls across overview, routes, explanations and supporting conditions. */
button,select,summary{font-size:16px;line-height:1.4}
button{max-width:100%;overflow-wrap:anywhere;white-space:normal}
button:disabled{opacity:1;color:#40566c;background:#e9eff5;border-color:#9fb2c4}
.bt-node strong{font-size:16px;line-height:1.35}.bt-type{font-size:12px;line-height:1.3;letter-spacing:.35px}.bt-review{font-size:13px;line-height:1.4}
.bt-jump label,.bt-jump select{font-size:16px}.bt-guide p,.bt-guide button,.bt-modes button,.bt-actions button,.bt-chip-list button,.bt-step-group summary,.bt-overview-heading button,.bt-dialog-close{font-size:16px;line-height:1.4}
.bt-chip-list button,.bt-actions button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.bt-detail-body p{font-size:16px;line-height:1.6}.bt-start{font-size:16px}.bt-scope,.bt-map-help,.bt-flow-word,.bt-legend,.bt-footer{font-size:14px;line-height:1.5}
.bt-overview-help,.bt-overview-options p{font-size:16px;line-height:1.45}.bt-overview-heading button{white-space:normal}.bt-overview-hazard strong{font-size:16px}.bt-overview-hazard .bt-type{font-size:12px}
.bt-overview-choice strong{font-size:18px}.bt-overview-choice span{font-size:14px}.bt-overview-event{width:clamp(122px,16%,180px);padding:10px 8px}.bt-overview-event strong{font-size:12px}.bt-overview-event span{font-size:16px;line-height:1.25}
.bt-overview-direction{font-size:14px;line-height:1.4}.bt-overview-mobile-controls button{font-size:16px;line-height:1.4}
.bt-wing-head{font-size:13px;line-height:1.3}.bt-all-column h3,.bt-all-dependencies h3{font-size:14px;line-height:1.3}
.bt-overview-all .bt-node strong{font-size:15px;line-height:1.25}.bt-overview-all .bt-type{font-size:11px;line-height:1.25;letter-spacing:.2px}
.bt-all-dependencies .bt-node strong{font-size:14px;line-height:1.3}.bt-all-dependencies .bt-type{font-size:11px;line-height:1.25}.bt-all-knot .bt-node strong{font-size:18px;line-height:1.2}.bt-all-knot .bt-type{font-size:12px}
@media(min-width:1600px){.bt-overview-all .bt-node strong{font-size:16px}.bt-all-dependencies .bt-node strong{font-size:15px}.bt-overview-all .bt-type{font-size:12px}.bt-all-knot .bt-node strong{font-size:20px}}
@media(max-width:699px){.bt-overview-choice strong{font-size:16px}.bt-overview-choice span{font-size:13px}.bt-overview-event strong{font-size:12px}.bt-overview-event span{font-size:16px}.bt-overview-direction{font-size:12px;gap:12px}.bt-overview-threat,.bt-overview-outcome{width:23%}.bt-overview-event{width:122px}.bt-overview-mobile-controls{gap:8px}.bt-chip-list{gap:9px}}

@media(max-width:1099px){.bt-expanded>.bt-dependencies{display:block;margin:16px auto 0;max-width:900px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff}}
