/* ONCONEX-SPAIN slide layout — shared by every slide-NN-*.html.
   Consumes tokens.css. Dark, text/stat/table-forward pitch deck (no iPad/persona
   surfaces). Mirrors the CANONIC-NEXUS governed shape: 7200×4500 logical canvas,
   @page print sizing for the renderer, font-size floor ≥ 0.95rem, no shadows.
   See CONTENT/DECKS/ONCONEX-SPAIN/CANON.md. */

:root {
  /* MASTER SCALE — change this number to scale the entire slide system.
     48px = 3x baseline → 150rem × 93.75rem == 7200 × 4500 px logical canvas. */
  font-size: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 150rem;
  height: 93.75rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
  color: var(--fg-primary);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Slide frame ───────────────────────────────────────────────── */
.slide {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 5.5rem 7rem 4.5rem;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 28% 22%, rgba(52,211,153,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 88%, rgba(34,211,238,0.045) 0%, transparent 55%),
    var(--bg-deep);
}

/* ── Headers ───────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
  opacity: 0.92;
  margin-bottom: 1.4rem;
}

.hook {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.55rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--fg-primary);
  border-left: 0.12rem solid var(--accent);
  padding-left: 1.6rem;
  max-width: 120rem;
  margin-bottom: 2.6rem;
}
.hook em { font-style: normal; color: var(--accent); }

/* ── Narrative prose ───────────────────────────────────────────── */
.nar {
  font-family: var(--font-text);
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  max-width: 122rem;
  display: grid;
  gap: 1.4rem;
}
.nar p { margin: 0; }
.nar strong { color: var(--fg-primary); font-weight: 600; }
.nar em { font-style: italic; color: var(--fg-tertiary); }
.nar code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
}

/* ── Stat grid ─────────────────────────────────────────────────── */
.stat-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 132rem;
  margin-bottom: 2.4rem;
}
.stat-g.cols-2 { grid-template-columns: repeat(2, 1fr); }
.st {
  background: var(--bg-elevated);
  border: 0.0833rem solid var(--rule);
  border-top: 0.16rem solid var(--accent);
  border-radius: 0.85rem;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.st .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.st .l {
  font-family: var(--font-text);
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--fg-tertiary);
}

/* ── Two-column contrast cards ─────────────────────────────────── */
.cx {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  max-width: 134rem;
}
.cx-col {
  background: var(--bg-elevated);
  border: 0.0833rem solid var(--rule);
  border-radius: 0.85rem;
  padding: 2rem 2.2rem;
}
.cx-col.green { border-top: 0.16rem solid var(--accent); }
.cx-col.teal  { border-top: 0.16rem solid var(--accent-2); }
.cx-col .tag {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.cx-col.green .tag { color: var(--accent); }
.cx-col.teal  .tag { color: var(--accent-2); }
.cx-col .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--fg-primary);
  margin: 0.9rem 0 1.3rem;
  letter-spacing: -0.01em;
}
.cx-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.95rem; }
.cx-col li {
  font-family: var(--font-text);
  font-size: 1.42rem;
  line-height: 1.5;
  color: var(--fg-secondary);
  padding-left: 1.6rem;
  position: relative;
}
.cx-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
}
.cx-col.green li::before { background: var(--accent); }
.cx-col.teal  li::before { background: var(--accent-2); }
.cx-col li strong { color: var(--fg-primary); font-weight: 600; }

/* ── Table ─────────────────────────────────────────────────────── */
table.deck-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 138rem;
  font-size: 1.4rem;
}
table.deck-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: var(--tracking-caps-tight);
  text-transform: uppercase;
  color: var(--accent);
  padding: 1.1rem 1.4rem;
  border-bottom: 0.0833rem solid var(--rule-strong);
}
table.deck-table td {
  padding: 1.25rem 1.4rem;
  border-bottom: 0.0833rem solid var(--rule);
  vertical-align: top;
  color: var(--fg-secondary);
  line-height: 1.5;
}
table.deck-table td strong { color: var(--fg-primary); font-weight: 600; }
table.deck-table td.phase {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--accent);
  width: 4rem;
}
table.deck-table td.low  { color: var(--accent); }
table.deck-table td.scale{ color: var(--accent-warn); }

/* ── Governance code blocks ────────────────────────────────────── */
.gov-grid { display: grid; gap: 1.6rem; max-width: 138rem; }
.gov-block .gh {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps-tight);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.gov-block pre {
  background: var(--bg-elevated);
  border: 0.0833rem solid var(--rule);
  border-radius: 0.6rem;
  padding: 1.3rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--fg-secondary);
  white-space: pre-wrap;
  overflow: hidden;
}
.gov-block pre b { color: var(--fg-primary); font-weight: 700; }

/* ── Title slide ───────────────────────────────────────────────── */
.cover {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
}
.cover .top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.cover .top .org {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
}
.cover .top .meta {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--fg-tertiary);
  text-align: right;
  letter-spacing: 0.04em;
}
.cover .hero {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.8rem;
}
.cover .hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 7rem;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg-primary);
}
.cover .hero .sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg-secondary);
}
.cover .hero .sub em { font-style: normal; color: var(--accent); }
.cover .hero .kl {
  font-family: var(--font-text);
  font-size: 1.75rem;
  line-height: 1.5;
  color: var(--fg-secondary);
  max-width: 116rem;
}
.cover .hero .kl strong { color: var(--fg-primary); font-weight: 600; }
.cover .bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 2rem;
  border-top: 0.0833rem solid var(--rule);
}
.cover .bottom .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-primary);
}
.cover .bottom .wordmark .accent { color: var(--accent); }
.cover .bottom .wordmark .slide-tag {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  margin-top: 0.5rem;
}
.cover .bottom .presenters {
  font-family: var(--font-text);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--fg-tertiary);
  text-align: right;
  max-width: 96rem;
}
.cover .bottom .presenters strong { color: var(--fg-secondary); font-weight: 600; }

/* ── Close slide ───────────────────────────────────────────────── */
.end {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 1.6rem;
}
.end .badge {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 0.0833rem solid var(--accent-soft);
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
}
.end .thesis {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  max-width: 120rem;
}
.end .thesis em { font-style: normal; color: var(--accent); }
.end .sub-thesis {
  font-family: var(--font-text);
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--fg-secondary);
  max-width: 112rem;
}
.end .urls {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.9rem 1.2rem;
  margin-top: 0.8rem;
}
.end .urls a {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border: 0.0833rem solid var(--rule-strong);
  border-radius: 0.6rem;
}
.end .cred {
  font-family: var(--font-text);
  font-size: 1.25rem;
  color: var(--fg-tertiary);
  margin-top: 0.6rem;
}

/* ── Footer ────────────────────────────────────────────────────── */
.slide-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  border-top: 0.0833rem solid var(--rule);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--fg-tertiary);
  letter-spacing: 0.04em;
}
.slide-foot .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-primary);
}
.slide-foot .wordmark .accent { color: var(--accent); }
.slide-foot .num { color: var(--accent); }

/* ── LAUDE rail dark override (LAUDE_RAIL_DARK_ON_IPAD contract) ──
   This deck ships no iPad/persona slides, but the shared slide.css MUST
   carry a dark `.laude-pane` background so the gate's static check passes
   and any future iPad-bearing slide inherits the dark rail. */
.laude-pane {
  background: #0e1722;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.9rem;
}
.laude-pane .lph { border-bottom: 0.0833rem solid rgba(255,255,255,0.12); }
.laude-pane .m .t { color: rgba(255,255,255,0.92); }
.laude-pane .input {
  background: rgba(255,255,255,0.05);
  border: 0.0833rem solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
}

/* ── Vector PDF / print sizing — renderer @page contract.
   7200×4500 logical canvas == 150rem × 93.75rem at 48px root. */
@page { size: 7200px 4500px; margin: 0; }
@media print {
  html, body { width: 7200px; height: 4500px; margin: 0; padding: 0; overflow: hidden; }
}
