/* SuperMock slides: same palette and type as the 3D flythrough (docs/index.html). */
:root {
  color-scheme: dark;
  --void: #04050a;
  --panel: #0a0d18;
  --edge: #2c3142;
  --ink: #eef0f4;
  --dim: #9aa0b4;
  --rose: #ef476f;
  --gold: #d9c467;
  --teal: #63d2c9;
  --display: "Rajdhani", "Segoe UI", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --W: 1600px;
  --H: 900px;
}

html, body { margin: 0; height: 100%; background: var(--void); color: var(--ink); font-family: var(--body); overflow: hidden; }
#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#deck { position: relative; width: var(--W); height: var(--H); flex: none; transform-origin: center center; }

.slide { position: absolute; inset: 0; box-sizing: border-box; padding: 56px 72px 64px; display: none;
         flex-direction: column; background: radial-gradient(ellipse at 85% -10%, #121a33 0%, var(--void) 55%); }
.slide.active { display: flex; }
.slide::before { content: ""; position: absolute; left: 72px; top: 46px; width: 56px; height: 3px; background: var(--rose); }

.slide h1 { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1.08; letter-spacing: 0.2px;
            margin: 10px 0 18px; text-wrap: balance; }
.slide h2 { font-family: var(--display); font-weight: 600; font-size: 25px; margin: 0 0 8px; color: var(--teal);
            letter-spacing: 0.3px; }
.slide h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 10px 0 4px; color: var(--gold);
            text-transform: uppercase; letter-spacing: 1px; }
.slide p, .slide li { font-size: 22px; line-height: 1.42; color: var(--ink); }
.slide p { margin: 0 0 12px; }
.slide ul, .slide ol { margin: 0 0 12px; padding-left: 26px; }
.slide li { margin-bottom: 7px; }
.slide li::marker { color: var(--rose); }
.slide strong { color: var(--teal); font-weight: 600; }
.slide em { color: var(--gold); font-style: normal; }
.slide a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); }
.slide code { font-family: var(--mono); font-size: 0.82em; background: #141a2b; border: 1px solid var(--edge);
              border-radius: 3px; padding: 0 5px; color: var(--ink); }
.slide blockquote { margin: 6px 0 12px; padding: 10px 16px; border-left: 3px solid var(--gold); background: #0d1222;
                    color: var(--dim); }
.slide blockquote p { color: var(--ink); font-size: 20px; margin: 0; }

.slide table { border-collapse: collapse; font-size: 18px; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.slide th { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--dim); text-transform: uppercase;
            letter-spacing: 0.8px; text-align: left; border-bottom: 1px solid var(--edge); padding: 6px 14px 6px 0; }
.slide td { border-bottom: 1px solid #1a1f2e; padding: 6px 14px 6px 0; vertical-align: top; }
.slide td code { font-size: 15px; }

/* body regions */
.body { flex: 1; min-height: 0; display: flex; gap: 40px; }
.col { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.col.figs { justify-content: center; }
.layout-figure-right .col:first-child { flex: 0.82; }
.layout-figure-right .col.figs { flex: 1.18; }
.layout-figure-left .col.figs { flex: 1.18; }
.layout-figure-left .col:not(.figs) { flex: 0.82; }
.layout-wide-figure .body { flex-direction: column; gap: 14px; }
.layout-wide-figure .col.figs { flex: 1; }

/* figure cards: plots are publication figures on white */
.slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0 auto;
             background: #fff; border-radius: 4px; padding: 8px; box-sizing: border-box; }
.slide img.bare { background: none; padding: 0; }
.col p.imgp { margin: 0; flex: none; display: flex; align-items: center; justify-content: center; }
.col p.imgp + p.imgp { margin-top: 12px; }
.col p.imgp img { max-height: 600px; }
.col.figs p.caption, .slide .caption { flex: none; font-size: 16px; line-height: 1.4; color: var(--dim); display: block;
                                      margin-top: 8px; }
.slide .caption code { font-size: 13px; }

/* title + section slides */
.layout-title, .layout-section { justify-content: center; }
.layout-title::before, .layout-section::before { display: none; }
.layout-title .kicker, .layout-section .kicker { border-top: 3px solid var(--rose); padding-top: 14px; display: inline-block; }
.layout-title h1 { font-size: 66px; max-width: 1250px; margin-bottom: 22px; }
.layout-title p { font-size: 26px; color: var(--dim); max-width: 1150px; }
.layout-section h1 { font-size: 72px; }
.layout-section p { font-size: 26px; color: var(--dim); max-width: 1100px; }
.layout-section .kicker, .layout-title .kicker { font-family: var(--mono); font-size: 18px; color: var(--rose);
                                                  letter-spacing: 2px; text-transform: uppercase; }

/* small helpers usable from markdown via HTML */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; margin: 8px 0 14px; }
.flow .box { background: var(--panel); border: 1px solid var(--edge); border-top: 2px solid var(--teal); border-radius: 3px;
             padding: 12px 14px; font-size: 17px; line-height: 1.35; color: var(--dim); }
.flow .box b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink);
               margin-bottom: 4px; letter-spacing: 0.2px; }
.flow .box.cal { border-top-color: var(--rose); }
.flow .box.out { border-top-color: var(--gold); }
.flow .box i { font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--teal); }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 16px; }
.stats div { background: var(--panel); border: 1px solid var(--edge); border-radius: 3px; padding: 10px 16px; min-width: 150px; }
.stats b { display: block; font-family: var(--mono); font-weight: 500; font-size: 30px; color: var(--teal);
           font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; color: var(--dim); }
.note { font-size: 17px !important; color: var(--dim) !important; }
.small, .small p, .small li { font-size: 18px !important; }
.tight li { margin-bottom: 3px; }

.footer { position: absolute; left: 72px; right: 72px; bottom: 22px; display: flex; justify-content: space-between;
          font-family: var(--mono); font-size: 13px; color: #5d6478; letter-spacing: 0.5px; }
.slide .notes { display: none; }

/* navigation chrome */
#hud { position: fixed; right: 14px; bottom: 12px; display: flex; gap: 6px; align-items: center; z-index: 5;
       font-family: var(--mono); font-size: 12px; color: var(--dim); opacity: 0; transition: opacity 0.2s; }
#hud:hover, #hud:focus-within { opacity: 1; }
#hud button { background: #161b2c; color: var(--ink); border: 1px solid var(--edge); border-radius: 3px;
              font-size: 13px; padding: 4px 9px; cursor: pointer; }
#hud button:hover { border-color: var(--rose); }
#hud button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
#counter { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }

#overview { position: fixed; inset: 0; z-index: 8; background: rgba(4, 5, 10, 0.97); overflow-y: auto; padding: 24px;
            display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-content: start; }
#overview button { text-align: left; background: var(--panel); border: 1px solid var(--edge); border-radius: 3px;
                   color: var(--ink); padding: 10px 12px; cursor: pointer; font-family: var(--display); font-size: 16px;
                   font-weight: 600; line-height: 1.25; }
#overview button span { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 400;
                        margin-bottom: 4px; }
#overview button:hover, #overview button.current { border-color: var(--rose); }
#loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--void);
           font-family: var(--display); font-size: 18px; z-index: 10; }
.hidden { display: none !important; }

/* print / PDF export: one slide per page */
@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { overflow: visible; height: auto; background: var(--void); }
  #stage { position: static; display: block; }
  #deck { transform: none !important; width: var(--W); height: auto; }
  .slide { display: flex !important; position: relative; width: var(--W); height: var(--H); page-break-after: always;
           break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #hud, #overview, #loading { display: none !important; }
}
.mid p, .mid li { font-size: 20px !important; }
