/* The Exhibit look (optional): a bright science-museum guide. One strong colour per body system.
   Bricolage Grotesque for headings, Atkinson Hyperlegible for reading. The 3D viewers stay dark. */
[data-theme="exhibit"] { --bg: #ffffff; --bg-2: #f2f4f6; --panel: #f2f4f6; --line: #d5dbe1; --ink: #16202a; --muted: #55626e; --lamp: #16202a; --danger: #d92d3a; --sig-mechanical: #c26a00; --sig-fluid: #0f7f9e; --sig-electrical: #8f7600; --sig-chemical: #7448c9; --sig-gas: #44799c; --sig-thermal: #cf4526; --s0: #6d4bd1; --s1: #d92d3a; --s2: #c96a08; --s3: #0e8f8a; --s4: #2f6fd6; --s5: #348a32; --display: "Bricolage Grotesque", "Arial Black", Arial, sans-serif; --body: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif; --serif: var(--display); background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); }
[data-theme="exhibit"] a { color: inherit; }
[data-theme="exhibit"] :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[data-theme="exhibit"] h1, [data-theme="exhibit"] h2, [data-theme="exhibit"] h3, [data-theme="exhibit"] h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
[data-theme="exhibit"] .wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
[data-theme="exhibit"] .stage-box, [data-theme="exhibit"] .stagebox { --bg: #0c242e; --bg-2: #113039; --panel: #143843; --line: #2b5562; --ink: #f1eadb; --muted: #9fb8bc; --lamp: #ffc163; --danger: #ff6b6b; --sig-mechanical: #ffb14a; --sig-fluid: #56d0e8; --sig-electrical: #fff06a; --sig-chemical: #c9a0ff; --sig-gas: #cfeaff; --sig-thermal: #ff7d5c; color: var(--ink); }
[data-theme="exhibit"] .nav { display: flex; align-items: center; gap: 10px 24px; padding: 16px 0; flex-wrap: wrap; }
[data-theme="exhibit"] .mark { font: 800 24px/1 var(--display); text-decoration: none; letter-spacing: -.03em; margin-right: auto; }
[data-theme="exhibit"] .nav a, [data-theme="exhibit"] .jump-to { text-decoration: none; }
[data-theme="exhibit"] .nav a:hover, [data-theme="exhibit"] .jump-to:hover { text-decoration: underline; text-underline-offset: 4px; }
[data-theme="exhibit"] .seg, [data-theme="exhibit"] .pill { display: inline-flex; background: var(--bg-2); border-radius: 99px; padding: 4px; }
[data-theme="exhibit"] .seg button, [data-theme="exhibit"] .pill button { border-radius: 99px; padding: 5px 14px; }
[data-theme="exhibit"] .seg [aria-checked="true"], [data-theme="exhibit"] .pill [aria-checked="true"], [data-theme="exhibit"] .pill [aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[data-theme="exhibit"] .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: stretch; padding: 18px 0 56px; }
[data-theme="exhibit"] .hero h1 { font-size: clamp(44px, 6.6vw, 92px); font-weight: 800; }
[data-theme="exhibit"] .hero .lede { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 20px 0 26px; }
[data-theme="exhibit"] .asks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
[data-theme="exhibit"] .asks a { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 21px/1.25 var(--display); letter-spacing: -.01em; }
[data-theme="exhibit"] .asks a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
[data-theme="exhibit"] .asks a small { font: 15px var(--body); color: var(--muted); letter-spacing: 0; text-align: right; }
[data-theme="exhibit"] .asks a:hover, [data-theme="exhibit"] .asks a.hot { background: var(--bg-2); }
[data-theme="exhibit"] .stagebox { background: #0c242e; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; min-height: 600px; }
[data-theme="exhibit"] .stagebox .bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px 6px; }
[data-theme="exhibit"] .stagebox .pill { background: rgba(255, 255, 255, .12); }
[data-theme="exhibit"] .viewer-box { position: relative; flex: 1; min-height: 380px; background: radial-gradient(ellipse at 50% 42%, #1e5260 0, #0f2f3a 45%, #0c242e 78%); }
[data-theme="exhibit"] .tip { position: absolute; transform: translate(-50%, -170%); background: #fff; color: #16202a; font: 700 16px var(--display); padding: 2px 10px; border-radius: 99px; pointer-events: none; white-space: nowrap; z-index: 2; }
[data-theme="exhibit"] .stagebox .hint, [data-theme="exhibit"] .stagebox .body-note { color: var(--muted); font-size: 14px; margin: 0; padding: 8px 18px 0; }
[data-theme="exhibit"] .stagebox .body-note:empty { display: none; }
[data-theme="exhibit"] .stagebox .hint:last-of-type, [data-theme="exhibit"] .stagebox .body-note { padding-bottom: 14px; }
[data-theme="exhibit"] .sect-title { font-size: clamp(32px, 4vw, 52px); padding: 20px 0 22px; }
[data-theme="exhibit"] .band { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-top: 1px solid var(--line); }
[data-theme="exhibit"] .band .head { background: var(--c); color: #fff; padding: 26px 24px; }
[data-theme="exhibit"] .band .head h2 { font-size: 34px; }
[data-theme="exhibit"] .band .head p { margin: 10px 0 0; font-size: 15px; }
[data-theme="exhibit"] .band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
[data-theme="exhibit"] .band li { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
[data-theme="exhibit"] .band li a, [data-theme="exhibit"] .band li .soon { display: block; padding: 16px 20px; text-decoration: none; height: 100%; }
[data-theme="exhibit"] .band li a:hover, [data-theme="exhibit"] .band li a.hot { background: var(--bg-2); }
[data-theme="exhibit"] .band li b { font: 700 21px/1.2 var(--display); letter-spacing: -.01em; }
[data-theme="exhibit"] .band li p { margin: 4px 0 8px; color: var(--muted); font-size: 15.5px; }
[data-theme="exhibit"] .band li small { font-size: 14px; color: var(--c); font-weight: 700; }
[data-theme="exhibit"] .break { background: #16202a; color: #fff; margin-top: 60px; padding: 56px 0 60px; }
[data-theme="exhibit"] .break h2 { font-size: clamp(32px, 4vw, 52px); max-width: 18ch; }
[data-theme="exhibit"] .break .lede { color: #b9c6cf; max-width: 60ch; margin: 14px 0 28px; }
[data-theme="exhibit"] .break-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
[data-theme="exhibit"] .break-list li { border-top: 3px solid var(--k); }
[data-theme="exhibit"] .break-list li[data-severity="life-threatening"] { --k: #ff6b6b; }
[data-theme="exhibit"] .break-list li[data-severity="severe"] { --k: #ff9d4a; }
[data-theme="exhibit"] .break-list li[data-severity="moderate"] { --k: #ffd75e; }
[data-theme="exhibit"] .break-list li[data-severity="mild"] { --k: #7fd49a; }
[data-theme="exhibit"] .break-list a { display: block; padding: 14px 0 22px; text-decoration: none; }
[data-theme="exhibit"] .break-list a:hover b { text-decoration: underline; text-underline-offset: 4px; }
[data-theme="exhibit"] .break-list b { font: 700 21px/1.2 var(--display); display: block; }
[data-theme="exhibit"] .break-list em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--k); }
[data-theme="exhibit"] .break-list p { margin: 6px 0 0; color: #c9d3da; font-size: 15.5px; }
[data-theme="exhibit"] .foot { padding: 26px 0 44px; color: var(--muted); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
[data-theme="exhibit"] .foot p { margin: 0; }
[data-theme="exhibit"] .cover { background: var(--c); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 48px; align-items: end; }
[data-theme="exhibit"] .cover .crumbs { margin: 0; font-size: 15px; }
[data-theme="exhibit"] .cover h1 { font-size: clamp(56px, 10vw, 150px); font-weight: 800; letter-spacing: -.05em; line-height: .88; margin-top: 16px; overflow-wrap: anywhere; }
[data-theme="exhibit"] .cover .tag { font: 600 26px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 12px; }
[data-theme="exhibit"] .cover .sum { margin: 0; }
[data-theme="exhibit"] .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin: 34px 0 0; }
[data-theme="exhibit"] .facts div { border-top: 3px solid var(--c); padding: 10px 0 20px; }
[data-theme="exhibit"] .facts dt { font-size: 14.5px; color: var(--muted); }
[data-theme="exhibit"] .facts dd { margin: 2px 0 0; font: 600 19px/1.25 var(--display); letter-spacing: -.01em; }
[data-theme="exhibit"] .facts.all { margin-top: 10px; }
[data-theme="exhibit"] .jump { position: sticky; top: 0; z-index: 5; background: #ffffff; display: flex; gap: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); margin-top: 18px; overflow-x: auto; white-space: nowrap; }
[data-theme="exhibit"] .jump-to { font-weight: 700; font-size: 15.5px; }
[data-theme="exhibit"] .h2 { font-size: clamp(34px, 4.4vw, 58px); padding: 54px 0 8px; scroll-margin-top: 50px; }
[data-theme="exhibit"] .sub { color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
[data-theme="exhibit"] .ptabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
[data-theme="exhibit"] .ptabs button, [data-theme="exhibit"] .more { border: 2px solid var(--ink); border-radius: 99px; padding: 6px 16px; font-weight: 700; font-size: 15.5px; }
[data-theme="exhibit"] .ptabs button[aria-selected="true"], [data-theme="exhibit"] .more:hover { background: var(--ink); color: var(--bg); }
[data-theme="exhibit"] .proc-summary { color: var(--muted); max-width: 70ch; margin: 0 0 22px; }
[data-theme="exhibit"] .scrolly { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
[data-theme="exhibit"] .scrolly figure { position: sticky; top: 62px; margin: 0; background: #0c242e; border-radius: 22px; overflow: hidden; }
[data-theme="exhibit"] .stage-box { position: relative; height: min(62vh, 560px); display: flex; }
[data-theme="exhibit"] .stage { flex: 1; min-height: 0; width: 100%; background: radial-gradient(ellipse at 50% 45%, #18434f 0, #0c242e 75%); display: block; }
[data-theme="exhibit"] .stage.no-scene { display: grid; place-items: center; padding: 2rem; color: var(--muted); text-align: center; }
[data-theme="exhibit"] .scrolly figcaption { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #dfe9ea; font-size: 15px; flex-wrap: wrap; }
[data-theme="exhibit"] .scrolly .t-play { border-radius: 99px; background: #fff; color: #16202a; padding: 6px 18px; font-weight: 700; min-width: 5rem; }
[data-theme="exhibit"] .scrolly .bar { flex: 1; min-width: 60px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
[data-theme="exhibit"] .scrolly .bar i { display: block; height: 100%; background: #fff; width: var(--w, 0%); transition: width .25s; }
[data-theme="exhibit"] .speed select { background: #0c242e; color: #dfe9ea; border: 1px solid #2b5562; border-radius: 99px; padding: 3px 8px; font: inherit; }
[data-theme="exhibit"] .failure-banner { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 9px 14px; background: #3a1418; border: 1px solid #ff6b6b; border-radius: 14px; color: #fff; }
[data-theme="exhibit"] .failure-banner strong { display: block; font: 700 18px var(--display); }
[data-theme="exhibit"] .failure-banner span { color: #ffb3b3; font-size: 14px; }
[data-theme="exhibit"] .failure-banner button { border: 1px solid #fff; border-radius: 99px; padding: 5px 14px; white-space: nowrap; }
[data-theme="exhibit"] .failure-banner button:hover { background: #fff; color: #3a1418; }
[data-theme="exhibit"] .walk { list-style: none; margin: 0; padding: 0 0 30vh; counter-reset: w; }
[data-theme="exhibit"] .walk li { counter-increment: w; padding: 20px 0 22px 62px; position: relative; border-bottom: 1px solid var(--line); opacity: .45; transition: opacity .2s; }
[data-theme="exhibit"] .walk li.on { opacity: 1; }
[data-theme="exhibit"] .walk li::before { content: counter(w); position: absolute; left: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--display); background: var(--bg-2); }
[data-theme="exhibit"] .walk li.on::before { background: var(--k); color: #fff; }
[data-theme="exhibit"] .walk li.bad::before { background: var(--danger); color: #fff; }
[data-theme="exhibit"] .walk h3 { font-size: 23px; line-height: 1.15; }
[data-theme="exhibit"] .walk .step-head { text-align: left; font: inherit; letter-spacing: inherit; padding: 0; }
[data-theme="exhibit"] .walk p { margin: 8px 0 0; }
[data-theme="exhibit"] .walk .kind { font-size: 14px; font-weight: 700; color: var(--k); }
[data-theme="exhibit"] .walk .broken-note { color: var(--danger); font-weight: 700; }
[data-theme="exhibit"] details { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
[data-theme="exhibit"] summary { cursor: pointer; font-weight: 700; color: var(--ink); }
[data-theme="exhibit"] .chips { display: flex; flex-wrap: wrap; gap: 6px; }
[data-theme="exhibit"] .chip { display: inline-block; font-size: 14px; padding: 2px 12px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
[data-theme="exhibit"] .chip:hover { border-color: var(--ink); }
[data-theme="exhibit"] .fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
[data-theme="exhibit"] .fail { border-top: 3px solid var(--sev, var(--muted)); padding: 12px 0 26px; }
[data-theme="exhibit"] .fail[data-severity="mild"] { --sev: #348a32; }
[data-theme="exhibit"] .fail[data-severity="moderate"] { --sev: #9a7800; }
[data-theme="exhibit"] .fail[data-severity="severe"] { --sev: #c96a08; }
[data-theme="exhibit"] .fail[data-severity="life-threatening"] { --sev: #d92d3a; }
[data-theme="exhibit"] .fail.active { background: #fdeeee; box-shadow: 0 0 0 12px #fdeeee; }
[data-theme="exhibit"] .fail header { display: flex; flex-direction: column-reverse; gap: 2px; }
[data-theme="exhibit"] .fail h4 { font-size: 20px; line-height: 1.2; }
[data-theme="exhibit"] .sev { font-size: 14px; font-weight: 700; color: var(--sev); }
[data-theme="exhibit"] .fail-part { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
[data-theme="exhibit"] .fail p { margin: 0 0 8px; font-size: 15.5px; }
[data-theme="exhibit"] .fine { color: var(--muted); }
[data-theme="exhibit"] .simulate { border: 2px solid var(--ink); border-radius: 99px; padding: 5px 16px; font-weight: 700; font-size: 15px; margin-top: 4px; }
[data-theme="exhibit"] .simulate:hover, [data-theme="exhibit"] .fail.active .simulate { background: var(--ink); color: var(--bg); }
[data-theme="exhibit"] .more { margin-top: 6px; }
[data-theme="exhibit"] .pgrid { columns: 3 280px; column-gap: 32px; }
[data-theme="exhibit"] .region { break-inside: avoid; margin-bottom: 22px; }
[data-theme="exhibit"] .region h3 { font-size: 20px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
[data-theme="exhibit"] .part { border-bottom: 1px solid var(--line); }
[data-theme="exhibit"] .part-head { width: 100%; text-align: left; padding: 8px 0; display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
[data-theme="exhibit"] .part-head::after { content: "+"; color: var(--muted); }
[data-theme="exhibit"] .part.open .part-head { color: var(--c); }
[data-theme="exhibit"] .part.open .part-head::after { content: "–"; }
[data-theme="exhibit"] .part-body p { margin: 0 0 8px; font-size: 15.5px; }
[data-theme="exhibit"] .part-body .fail { padding-bottom: 12px; }
[data-theme="exhibit"] .what-if { font-weight: 700; }
[data-theme="exhibit"] .friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
[data-theme="exhibit"] .friends li > * { display: block; height: 100%; background: var(--bg-2); border-radius: 18px; padding: 16px 18px; text-decoration: none; border-bottom: 5px solid var(--k); }
[data-theme="exhibit"] .friends a:hover b { text-decoration: underline; text-underline-offset: 4px; }
[data-theme="exhibit"] .friends b { font: 700 20px var(--display); display: block; margin-bottom: 4px; }
[data-theme="exhibit"] .friends span { font-size: 15px; color: var(--muted); }
[data-theme="exhibit"] .who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
[data-theme="exhibit"] .who h3 { font-size: 26px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 3px solid var(--line); }
[data-theme="exhibit"] .who .mine h3 { border-color: var(--c); }
[data-theme="exhibit"] .who h4 { margin: 14px 0 2px; font: 700 16.5px/1.3 var(--body); letter-spacing: 0; }
[data-theme="exhibit"] .who p { margin: 0; font-size: 15.5px; color: var(--muted); }
[data-theme="exhibit"] .sources { padding-left: 1.1rem; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  [data-theme="exhibit"] .jump { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  [data-theme="exhibit"] .hero, [data-theme="exhibit"] .band, [data-theme="exhibit"] .cover, [data-theme="exhibit"] .scrolly, [data-theme="exhibit"] .who { grid-template-columns: 1fr; }
  [data-theme="exhibit"] .band ul, [data-theme="exhibit"] .break-list, [data-theme="exhibit"] .fgrid, [data-theme="exhibit"] .friends, [data-theme="exhibit"] .facts { grid-template-columns: 1fr 1fr; }
  [data-theme="exhibit"] .scrolly { gap: 0; }
  [data-theme="exhibit"] .scrolly figure { position: relative; top: auto; border-radius: 16px; }   /* on phones the model scrolls with the page, so it cannot cover the step list */
  [data-theme="exhibit"] .stage-box { height: 40vh; }
  [data-theme="exhibit"] .stagebox { min-height: 480px; }
  [data-theme="exhibit"] .mark { margin-right: 0; width: 100%; }
}
@media (max-width: 560px) {
  [data-theme="exhibit"] .band ul, [data-theme="exhibit"] .break-list, [data-theme="exhibit"] .fgrid, [data-theme="exhibit"] .friends { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="exhibit"] .walk li, [data-theme="exhibit"] .scrolly .bar i { transition: none; }
}
