/* Deck theme. Same design language as the system: Registry at Dusk, tokens only. */

.reveal-viewport { background: var(--canvas); }
.reveal {
  font-family: var(--sans); color: var(--ink); font-size: 26px; font-weight: 400;
}
.reveal .slides { text-align: left; }
.reveal .slides section { padding: 8px 0; }

.fillet { display: flex; gap: 2px; height: 3px; background: var(--canvas); position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.fillet i { flex: 1; }
.fillet i:nth-child(1) { background: var(--flag-red); }
.fillet i:nth-child(2) { background: var(--flag-blue); }
.fillet i:nth-child(3) { background: var(--flag-green); }

.reveal h1, .reveal h2 {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  text-transform: none; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 22px;
}
.reveal h1 { font-size: 62px; }
.reveal h2 { font-size: 42px; margin-bottom: 26px; }
.reveal p { line-height: 1.45; margin: 0 0 16px; color: var(--ink-2); }
.reveal b, .reveal strong { color: var(--ink); font-weight: 700; }
.reveal a { color: var(--brass); }

.reveal ul { margin: 4px 0 0 22px; }
.reveal li { margin: 9px 0; color: var(--ink-2); line-height: 1.4; font-size: .92em; }

.mut { color: var(--ink-3); }
.note { font-size: .68em; color: var(--ink-3); margin-top: 24px; }
.src { font-size: .62em; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.big { font-size: 1.08em; color: var(--ink); }
.center { text-align: center; }

/* title slides */
.title-slide { text-align: center; }
.title-slide h1 { margin: 22px 0 18px; }
.title-slide .lead { font-size: .82em; color: var(--ink-2); max-width: 26ch; margin: 0 auto 30px; }
.title-slide .byline { font-size: .6em; color: var(--ink-2); line-height: 1.6; }
.seal-lg {
  width: 88px; height: 88px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brass-soft); border: 2px solid color-mix(in srgb, var(--brass) 55%, var(--canvas));
  color: var(--brass); font-family: var(--mono); font-weight: 700; font-size: 30px;
}

/* quotes */
.reveal blockquote {
  display: block; width: 100%; margin: 0 0 14px; padding: 22px 26px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--r-sm); box-shadow: none;
  font-family: var(--serif); font-size: .88em; font-style: normal; line-height: 1.4; color: var(--ink);
}
.quote-slide blockquote { font-size: 1em; }
.quote-sm { font-family: var(--serif); font-size: .82em; color: var(--ink); font-style: normal; }

/* module grids */
.grid-10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-3.tight { grid-template-columns: repeat(3, 1fr); gap: 11px; }
.mod {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 15px; display: flex; flex-direction: column; gap: 4px;
}
.mod b { font-size: .62em; color: var(--brass); letter-spacing: .04em; }
.mod span { font-size: .52em; color: var(--ink-2); line-height: 1.35; }
.grid-3 .mod b { font-size: .58em; color: var(--ink); }
.grid-3 .mod span { font-size: .48em; }

/* stat rows */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 3px;
}
.stat .v { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--brass); line-height: 1; }
.stat .k { font-size: .46em; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* two column with a side panel */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.two-col > div > p { font-size: .82em; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
}
.panel-h {
  font-size: .5em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 9px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.panel .row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .56em; color: var(--ink-2);
}
.panel .row:last-of-type { border-bottom: none; }
.panel .row b { font-family: var(--mono); color: var(--ink); }
.panel .row.sub { color: var(--ink-3); }
.panel-note { font-size: .5em; color: var(--ink-3); line-height: 1.5; margin: 10px 0 0; }
.panel-note b { color: var(--ink-2); }

b.sim { color: var(--warn); font-size: .85em; text-transform: uppercase; letter-spacing: .06em; }
b.real { color: var(--ok); font-size: .85em; text-transform: uppercase; letter-spacing: .06em; }

/* checklist slides */
.check-list { display: flex; flex-direction: column; gap: 13px; }
.check-list > div {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--r-sm); padding: 14px 18px; font-size: .62em; line-height: 1.45; color: var(--ink-2);
}

/* reveal chrome */
.reveal .progress { color: var(--brass); height: 3px; }
.reveal .controls { color: var(--brass); }
.reveal .slide-number { background: none; color: var(--ink-3); font-family: var(--mono); font-size: 14px; }

.deck-back {
  position: fixed; left: 16px; bottom: 14px; z-index: 50;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); text-decoration: none;
  border: 1px solid var(--line); background: var(--panel); padding: 6px 12px; border-radius: 999px;
}
.deck-back:hover { color: var(--brass); border-color: var(--line-2); }

/* Phones read the deck as a document, not a shrunken slide.
   Reveal scales a 1240px stage to fit, which puts body text near 8px on a 375px screen.
   Below 820px we switch off the scaling transform and stack every slide at real size. */
@media (max-width: 820px) {
  .reveal-viewport { height: auto !important; overflow: visible !important; }
  .reveal {
    position: static !important; height: auto !important; overflow: visible !important;
    font-size: 17px;
  }
  .reveal .slides {
    position: static !important; transform: none !important; zoom: 1 !important;
    box-sizing: border-box; /* reveal sizes this in content-box; padding would overflow the viewport */
    width: 100% !important; max-width: 100% !important; height: auto !important;
    inset: auto !important; left: auto !important; top: auto !important; margin: 0 !important;
    display: block; padding: 8px 16px 48px;
  }
  .reveal .slides > section, .reveal .slides > section * { box-sizing: border-box; max-width: 100%; }
  .reveal .slides > section {
    display: block !important; position: static !important;
    width: 100% !important; height: auto !important; min-height: 0 !important;
    top: auto !important; left: auto !important;
    transform: none !important; opacity: 1 !important; visibility: visible !important;
    padding: 30px 0; border-bottom: 1px solid var(--line);
  }
  .reveal .slides > section:last-child { border-bottom: none; }
  /* fragments are a presenting device; on a phone the reader wants the whole slide */
  .reveal .fragment { opacity: 1 !important; visibility: visible !important; }
  .reveal .controls, .reveal .progress, .reveal .slide-number, .deck-back { display: none !important; }

  .reveal h1 { font-size: 32px; }
  .reveal h2 { font-size: 25px; margin-bottom: 16px; }
  .seal-lg { width: 62px; height: 62px; font-size: 21px; }
  .title-slide .lead { max-width: none; }

  .grid-10 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .grid-3, .grid-3.tight { grid-template-columns: 1fr; gap: 9px; }
  .mod b { font-size: .78em; }
  .mod span { font-size: .72em; }
  .grid-3 .mod b { font-size: .8em; }
  .grid-3 .mod span { font-size: .72em; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat .v { font-size: 30px; }
  .stat .k { font-size: .62em; }
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .two-col > div > p { font-size: 1em; }
  .reveal li { font-size: 1em; }
  .panel .row { font-size: .82em; }
  .panel-h { font-size: .72em; }
  .panel-note { font-size: .78em; }
  .check-list > div { font-size: .92em; padding: 12px 15px; }
  .note { font-size: .82em; }
  .src { font-size: .78em; }
  .reveal blockquote { font-size: 1em; padding: 16px 18px; }
}

@media print {
  .fillet, .deck-back { display: none !important; }
}
