/* MPI-IS 2026 deck theme.  Tokens shared with calculus-diagrams.html.
   Single light look for projectors. */
:root{
  --bg:#f6f7f9; --plate:#ffffff; --fg:#1c2230; --muted:#5d6678; --line:#c9cfda;
  --ev:#2a62a6; --cost:#a8640c; --bad:#b0302a; --trust:#2d7a4c; --accent:#5a4fb3;
  --display:"IBM Plex Sans Condensed","DejaVu Sans Condensed","Arial Narrow",system-ui,sans-serif;
  --body:"Literata","DejaVu Serif",Georgia,serif;
  --mono:"IBM Plex Mono","DejaVu Sans Mono",ui-monospace,Menlo,monospace;
}
html,body{background:var(--bg)}
.reveal{font-family:var(--body);font-size:40px;color:var(--fg)}
.reveal .slides{text-align:left}
.reveal h1,.reveal h2,.reveal h3{font-family:var(--display);font-weight:600;color:var(--fg);
  letter-spacing:.01em;text-transform:none;text-wrap:balance;margin:0 0 .5em}
.reveal h1{font-size:2.4em;line-height:1.05}
.reveal h2{font-size:1.5em}
.reveal p{margin:.4em 0;line-height:1.4}
.reveal .kicker{font-family:var(--display);font-weight:600;font-size:.6em;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted)}
.reveal .say{font-size:.85em;max-width:34em}
.reveal .formula{font-size:.8em;color:var(--fg)}
.reveal .muted{color:var(--muted)}
.reveal .title-slide h1{margin-top:1.6em}
.reveal .title-slide .who{font-family:var(--display);font-size:.8em;color:var(--muted);margin-top:1.4em}
.reveal svg.fig{display:block;width:100%;height:auto;max-height:720px}
.reveal .progress{color:var(--accent)}
.reveal .slide-number{background:transparent;color:var(--muted);font-family:var(--mono);font-size:18px}

/* svg vocabulary */
.w{stroke:var(--fg);stroke-width:1.6;fill:none}
.wm{stroke:var(--muted);stroke-width:1.2;fill:none}
.ev{stroke:var(--ev);stroke-width:2;fill:none}
.co{stroke:var(--cost);stroke-width:2;fill:none;stroke-dasharray:6 4}
.tr{stroke:var(--trust);stroke-width:2.2;fill:none}
.box{fill:var(--plate);stroke:var(--fg);stroke-width:1.4}
.boxs{fill:var(--bg);stroke:var(--muted);stroke-width:1.2}
.node{fill:var(--plate);stroke:var(--fg);stroke-width:1.5}
.obs{fill:var(--ev);stroke:var(--ev);stroke-width:1.5}
.shared{fill:var(--plate);stroke:var(--ev);stroke-width:2.4}
.reg1{fill:var(--ev);fill-opacity:.07;stroke:var(--ev);stroke-opacity:.5;stroke-width:1.2}
.t{fill:var(--fg);font-family:var(--mono);font-size:13px}
.ts{fill:var(--muted);font-family:var(--mono);font-size:11.5px}
.th{fill:var(--fg);font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:.03em}
.tev{fill:var(--ev);font-family:var(--mono);font-size:12px}
.tco{fill:var(--cost);font-family:var(--mono);font-size:12px}
.tbad{fill:var(--bad);font-family:var(--mono);font-size:12px}
.ttr{fill:var(--trust);font-family:var(--mono);font-size:12px}
.mk-fg{fill:var(--fg)} .mk-ev{fill:var(--ev)} .mk-tr{fill:var(--trust)} .mk-mu{fill:var(--muted)}
.halo{fill:none;stroke:var(--ev);stroke-width:6;stroke-opacity:.25}

/* fragments inside SVG: fade only, no transforms (SVG transforms would shift geometry) */
.reveal svg .fragment{transition:opacity .4s ease}
@media (prefers-reduced-motion: reduce){.reveal svg .fragment{transition:none}}
.reveal .slide-number a{text-decoration:none;color:var(--muted)}

/* --- full-deck additions --- */
.reveal ul{margin:.3em 0 0 1em;display:block}
.reveal li{margin:.25em 0;line-height:1.35}
.reveal .small{font-size:.7em}
.reveal .xsmall{font-size:.55em}
.reveal blockquote{width:auto;margin:.6em 0;padding:.4em .8em;border-left:4px solid var(--accent);
  box-shadow:none;background:transparent;font-style:normal;font-size:.9em}
.reveal .cols{display:grid;grid-template-columns:1fr 1fr;gap:1.2em;align-items:start}
.reveal .cols3{display:grid;grid-template-columns:repeat(3,1fr);gap:1em;align-items:start}
.reveal table{font-size:.62em;border-collapse:collapse;margin:.4em 0;width:100%}
.reveal table th{font-family:var(--display);font-weight:600;text-align:left;border-bottom:2px solid var(--fg);padding:.3em .5em}
.reveal table td{border-bottom:1px solid var(--line);padding:.3em .5em;vertical-align:top}
.reveal code,.reveal pre{font-family:var(--mono)}
.reveal pre{box-shadow:none;font-size:.5em;width:100%}
.reveal pre code{background:var(--plate);border:1px solid var(--line);border-radius:4px;padding:.6em .8em;max-height:none}
.reveal .ph{border:2px dashed var(--line);border-radius:6px;color:var(--muted);font-family:var(--mono);
  font-size:.5em;padding:2em;text-align:center;margin:.5em 0}
.reveal .part{font-family:var(--display);font-weight:600;font-size:.6em;letter-spacing:.12em;
  text-transform:uppercase;color:var(--accent)}
.reveal section.divider h2{font-size:2em;margin-top:2em}
.reveal .chip{display:inline-block;font-family:var(--mono);font-size:.55em;padding:.1em .5em;border-radius:3px;
  border:1px solid currentColor;vertical-align:middle}
.reveal .P{color:var(--trust)} .reveal .C{color:var(--cost)} .reveal .I{color:var(--ev)} .reveal .open{color:var(--bad)}
.reveal img.asset{max-height:720px;margin:0 auto;display:block;background:#fff}
.co{stroke:var(--cost);stroke-width:2;fill:none;stroke-dasharray:6 4}
.bad{stroke:var(--bad);stroke-width:2;fill:none}
.ac{stroke:var(--accent);stroke-width:3;fill:none}
.tac{fill:var(--accent);font-family:var(--mono);font-size:12px}
.mk-co{fill:var(--cost)} .mk-bad{fill:var(--bad)} .mk-ac{fill:var(--accent)}
.reveal{font-size:44px}
.reveal table{font-size:.7em}
.reveal pre code{display:block;white-space:pre;overflow:auto;font-size:1em;line-height:1.4}
/* org-re-reveal export (talk.org): slide titles arrive as h2/h3/h4 depending on depth */
.reveal h3,.reveal h4{font-family:var(--display);font-weight:600;font-size:1.5em;text-transform:none;margin:0 0 .5em}
.reveal pre.src{box-shadow:none;background:var(--plate);border:1px solid var(--line);border-radius:4px;padding:.6em .8em;font-size:.5em;white-space:pre;line-height:1.4;width:100%;margin:0}
.reveal pre.src span{font-weight:inherit !important;font-style:inherit !important;text-decoration:none !important}
.reveal .chip{white-space:nowrap}

/* the map (fig/map.svg): one figure, states chosen by the wrapping special block */
.reveal svg.map g{transition:opacity .4s ease}
.reveal svg.map .m-open{opacity:0}
.reveal .maplevels svg.map :is(.m-translate,.m-fork,.m-join,.m-ground,.m-rewrite){opacity:0}
.reveal .maplevels svg.map .m-translate{opacity:1}
.reveal .mapact2 svg.map :is(.m-fork,.m-join){opacity:.2}
.reveal .mapact3 svg.map :is(.m-translate,.m-rewrite){opacity:.2}
.reveal .mapact4 svg.map .m-open{opacity:1}
.reveal .cols.wide{grid-template-columns:3fr 2fr}
.reveal img.asset{max-width:100%;height:auto}
.reveal img.asset.full{width:100%;max-height:700px;object-fit:contain}
.reveal video.clip{width:100%;height:auto;display:block;background:#fff}
.reveal iframe.demo{display:block;width:100%;height:860px;border:2px solid var(--fg);background:#fff}
.reveal .cols.wide{align-items:center}
.reveal img.asset.full.short{max-height:430px}
.reveal video.clip{width:auto;max-width:100%;height:330px;margin:.3em auto 0}

/* Superficie / Clojure code tabs */
.reveal .code-dual{margin:0;font-size:.62em}
.reveal .code-dual-tabs{display:flex;gap:0;border-bottom:1px solid var(--line)}
.reveal .code-dual-tab{font-family:var(--mono);font-size:.9em;padding:.25em .9em;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);cursor:pointer}
.reveal .code-dual-tab.active{color:var(--fg);border-bottom-color:var(--fg)}
.reveal .code-dual pre{margin:0;font-size:1em;box-shadow:none;width:100%}
.reveal .code-dual-panel{display:none}
.reveal .code-dual-panel.active{display:block}
.reveal pre code.hljs{background:var(--plate);padding:.6em .8em;border:1px solid var(--line);border-top:0;line-height:1.45}
.reveal pre.single code.hljs{border-top:1px solid var(--line);border-radius:4px}

/* the bidirectional map (fig/map2.svg): levels slide vs. moves slide */
.reveal svg.map2 g{transition:opacity .4s ease}
.reveal .map2levels svg.map2 :is(.m2-moves,.m2-mem){opacity:0}
.reveal .map2moves svg.map2 .m2-up.fragment{opacity:1;visibility:inherit}

/* the stack map (fig/stack-map.svg): full on the overview slide, a highlighted inset per section */
.reveal svg.stackmap g{transition:opacity .4s ease}
.reveal :is(.nav3,.nav4,.nav5){position:absolute;top:-20px;right:0;width:520px;z-index:2}
.reveal :is(.nav3,.nav4,.nav5) svg.stackmap{width:100%;height:auto}
.reveal :is(.nav3,.nav4,.nav5) svg.stackmap g{opacity:.28}
.reveal .nav3 svg.stackmap :is(.sm-mem,.sm-exec){opacity:1}
.reveal .nav4 svg.stackmap .sm-comp{opacity:1}
.reveal .nav5 svg.stackmap :is(.sm-models,.sm-agents,.sm-org){opacity:1}
.reveal .cols3 img.asset{max-height:520px;width:100%;object-fit:contain}
.reveal img.asset.mid{max-height:560px}
/* an image wrapped in a link (org puts the ATTR_HTML class on the <a>) */
.reveal a.asset{display:block}
.reveal a.asset img{max-height:720px;max-width:100%;margin:0 auto;display:block;background:#fff}
/* text that sits next to a section navigator inset */
.reveal p.beside-nav{max-width:68%}
.reveal .title-slide .subtitle{font-family:var(--display);font-weight:400;font-size:1em;color:var(--muted);margin-top:.4em}
