/* Deck layout and component sizing for 1920x1080 slides. Loaded after a theme's base
   sheets and before its overrides; colours come from the theme's tokens. */
html, body { margin: 0; padding: 0; height: 100%; background: #000; }

deck-stage > section.s {
  width: 1920px; height: 1080px; padding: 72px 100px 56px;
  box-sizing: border-box; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-weight: 400;
}
.s-main { display: flex; flex-direction: column; gap: 36px; min-height: 0; flex: 1; position: relative; z-index: 1; }
.s-head { display: flex; flex-direction: column; gap: 14px; }
.s-body { display: flex; flex-direction: column; gap: 32px; min-height: 0; flex: 1; }
.s-body > * { flex-shrink: 0; }
.s h1 { font-size: 72px; font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; margin: 0; max-width: 1720px; }
.s .sub { font-size: 40px; font-weight: 500; line-height: 1.2; color: var(--accent); max-width: 1600px; }
.s .eyebrow { font-size: 22px; }

/* footer */
.s-foot { display: flex; justify-content: space-between; align-items: end; position: relative; z-index: 1; margin-top: 24px; }
.s-foot img { height: 40px; }
.s-foot img.logo-dark { filter: brightness(0) invert(1); }
.s-pageno { font-family: var(--font-mono); font-size: 22px; color: var(--mute); letter-spacing: 0.12em; }
.s-tag { font-family: var(--font-mono); font-size: 18px; color: var(--mute-2); letter-spacing: 0.12em; opacity: .55; }

/* kinds */
.s-title { justify-content: space-between; }
.s-title .s-main { justify-content: center; }
.s-title h1 { font-size: 112px; line-height: 1.04; max-width: 1650px; }
.s-title .sub { font-size: 46px; color: var(--accent); }
.s-section { background: var(--accent) !important; color: #fff !important; }
.s-section .s-main { justify-content: center; }
.s-section h1 { font-size: 150px; color: #fff; }
.s-section .sub { color: #fff; opacity: .9; font-size: 48px; }
.s-section .eyebrow, .s-section .s-pageno, .s-section .s-tag { color: rgba(255,255,255,.8); }
.s-ink, .s-close { background: var(--ink) !important; color: var(--paper) !important; }
.s-ink h1 { color: var(--accent); }
.s-ink .eyebrow, .s-close .eyebrow, .s-ink .s-pageno, .s-close .s-pageno { color: var(--mute-2); }
.s-ink .sub { color: var(--paper); }
.s-close h1 { font-size: 112px; color: var(--paper); }
.s-appendix { background: var(--paper-2) !important; }

/* text */
.para { margin: 0; line-height: 1.4; max-width: 1650px; text-wrap: pretty; }
.para.mute { color: var(--mute); }
.bul { margin: 0; padding-left: 44px; line-height: 1.38; display: flex; flex-direction: column; gap: 14px; max-width: 1680px; }
.bul li::marker { color: var(--accent); }
.s code { font-family: var(--font-mono); font-size: .86em; background: var(--paper-3); color: var(--ink); padding: 1px 8px; border-radius: 4px; }
.s-ink code, .s-close code { background: var(--ink-2); color: var(--paper); }
.s-section code { background: rgba(255,255,255,.18); color: #fff; }
.s strong { font-weight: 700; }

/* grid */
.grid { display: grid; align-items: start; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

/* tables */
.tbl { border-collapse: collapse; width: 100%; line-height: 1.3; }
.tbl th { font-family: var(--font-mono); font-weight: 500; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: left; padding: 0 20px 14px 0; border-bottom: 2px solid var(--ink); }
.tbl td { padding: 14px 20px 14px 0; border-bottom: 1px solid rgba(27,31,35,.12); vertical-align: top; }
.tbl tr.hi td { color: var(--accent); font-weight: 500; }
.tbl tr.hi td code { color: var(--accent); }
.s-ink .tbl th { color: var(--mute-2); border-bottom-color: var(--paper); }
.s-ink .tbl td { border-bottom-color: rgba(250,246,240,.15); }

/* code */
.code { font-size: 28px; }
.code pre { padding: 22px 28px; line-height: 1.5; white-space: pre; overflow: hidden; }
.code__head { font-size: 20px; }
.code code { background: none; padding: 0; color: inherit; }

/* stats */
.stat { border-top: 3px solid var(--ink); padding-top: 18px; }
.stat__num { font-size: 96px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.stat__label { font-size: 28px; color: var(--mute); margin-top: 12px; line-height: 1.35; }
.stat--accent { border-top-color: var(--accent); }
.stat--accent .stat__num { color: var(--accent); }

/* callouts and disclosures sized for projection */
.callout { font-size: 34px; line-height: 1.4; padding: 28px 36px; }
.disclosure { font-size: 28px; line-height: 1.4; padding: 22px 32px; gap: 24px; }
.disclosure__icon { font-size: 40px; }
.disclosure__label { font-size: 20px; }

/* recorded demo frame */
.term { background: #141215; border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(250,246,240,.08); }
.term .code__head { background: #1E1B1F; color: #97907F; }
.term img { display: block; width: auto; height: auto; max-width: 100%; max-height: 600px; }
.term video { display: block; height: 600px; aspect-ratio: 16 / 9; max-width: 100%; }
.s-ink .term { align-self: center; }
.s-ink .term img { max-height: 690px; }
.term__pending { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 28px; color: var(--mute-2); padding: 40px; text-align: center; }

/* diagrams */
svg.diagram { width: 100%; height: auto; max-height: 100%; display: block; }

/* ladder (slide 28) */
.ladder { display: flex; flex-direction: column; gap: 14px; font-size: 28px; }
.rung { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 32px; padding: 22px 28px; background: var(--paper-2); border-left: 6px solid var(--mute-2); align-items: start; line-height: 1.35; }
.rung h3 { font-size: 34px; margin: 0; font-weight: 500; }
.rung .k { font-family: var(--font-mono); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 6px; }
.rung--agent { border-left-color: var(--accent); }
.rung--admin { background: var(--ink); color: var(--paper); border-left-color: var(--ink); }
.rung--admin .k { color: var(--mute-2); }
.ladder__line { font-family: var(--font-mono); font-size: 20px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; display: flex; align-items: center; gap: 18px; }
.ladder__line::before, .ladder__line::after { content: ""; flex: 1; border-top: 3px dashed var(--accent); }

/* nested and numbered lists */
.bul--sub { margin: 10px 0 0; padding-left: 40px; font-size: .8em; color: var(--mute); gap: 8px; display: flex; flex-direction: column; }
.bul--ol li::marker { color: var(--accent); font-weight: 500; }
.s a { color: var(--accent); text-decoration: none; }
