/* Styles for this talk only, one block per slide (by slide id) plus the shared flow diagram.
   Colours, fonts and spacing come from the theme tokens; nothing here sets a raw colour. */

/* ---------- #title emblem: mismatched tiles snap into one grid ---------- */
.grid-emblem {
  width: 360px;
}
.grid-emblem .ge-orbit {
  stroke: color-mix(in srgb, var(--accent) 25%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 8 8;
  --anim-duration: 28s;
}
.grid-emblem .ge-tiles rect {
  fill: color-mix(in srgb, var(--accent) 14%, var(--surface));
  stroke: var(--accent);
  stroke-width: 2.5;
}
.grid-emblem .ge-beam {
  fill: var(--accent);
  opacity: 0;
  filter: drop-shadow(0 0 8px var(--accent));
}
.grid-emblem .ge-badge {
  fill: var(--positive);
}
.grid-emblem .ge-check {
  stroke: var(--surface);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- #system, #close: step rows ---------- */
.system-body {
  justify-content: center;
  gap: var(--space-8);
}
.system-steps {
  --cols: 5;
}
.close-steps {
  --cols: 4;
  margin-top: var(--space-7);
  align-self: stretch;
}
.close-thanks {
  margin-top: var(--space-7);
}

/* ---------- #everyone ---------- */
#everyone > .t-lead {
  font-size: var(--text-statement);
  line-height: 1.25;
  margin-top: var(--space-6);
  max-width: 1300px;
}

/* ---------- #same-ticket: one ticket fans out into three answers ---------- */
.diverge {
  display: grid;
  grid-template-columns: 380px 200px 1fr;
  align-items: center;
  margin-top: var(--space-6);
}
.diverge .ticket {
  border-color: var(--accent);
}
.diverge-lines {
  width: 200px;
  height: 600px;
}
.diverge-lines path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 3;
}
.diverge-answers {
  gap: var(--space-4);
}
.diverge-answers .term-body {
  padding-block: var(--space-4);
}

/* ---------- #cost ---------- */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin-top: var(--space-6);
}
.cost-grid .t-label {
  color: var(--accent);
}
.cost-line {
  margin-top: var(--space-6);
}

/* ---------- #forest-lost, #forest-trail: the trail map, drawn so the hikers can move ---------- */
.map-panel {
  margin-top: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map {
  display: block;
  width: 100%;
  height: auto;
}
.map .map-contours {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.map .map-divider {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 10;
}
.map .map-path {
  fill: none;
  stroke: var(--ink-subtle);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
}
.map .map-lost circle {
  fill: none;
  stroke: var(--negative);
  stroke-width: 3;
}
.map .map-start {
  fill: var(--ink-muted);
}
.map .hiker {
  fill: var(--ink);
}
.map .map-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-dasharray: 14 12;
  stroke-linecap: round;
}
/* Mask strokes: white shows the trail underneath; this is a mask value, not a colour. */
.map .map-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 16;
  stroke-linecap: round;
}
/* Waypoints are accent until a hiker reaches them; stories.js turns each one green. */
.map .map-waypoints polygon {
  fill: var(--surface-raised);
  stroke: var(--accent);
  stroke-width: 3;
}
.map .map-label {
  font-family: var(--font-label);
  font-size: 22px;
  fill: var(--ink-muted);
}
.map .map-goal {
  fill: var(--positive);
}
.map .map-check {
  fill: none;
  stroke: var(--surface);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-captions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-5);
}
.map-captions--one {
  grid-template-columns: 1fr;
}

/* ---------- #skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-7);
  align-items: center;
  margin-top: var(--space-6);
}
#skills .skills-grid > .stack--equal {
  gap: var(--space-7);
}
#skills .skill-examples {
  margin-top: var(--space-2);
}

/* ---------- #failure ---------- */
.failure-log {
  margin-top: var(--space-7);
  max-width: 1400px;
}

/* ---------- #pipeline: the flow diagram on a raised panel ---------- */
.flow-panel {
  margin-top: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.flow .flow-wire {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 3;
}
.flow .flow-box {
  fill: var(--surface-raised);
  stroke: var(--ink-muted);
  stroke-width: 3;
}
.flow .flow-node {
  fill: var(--accent);
}
.flow .flow-person {
  transform-box: fill-box;
  transform-origin: center;
}
.flow .flow-person circle {
  fill: var(--positive);
}
.flow .flow-person path {
  fill: none;
  stroke: var(--positive);
  stroke-width: 5;
  stroke-linecap: round;
}
.flow text {
  font-family: var(--font-label);
  font-size: 24px;
  fill: var(--ink);
}
.flow .flow-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
}
.flow .flow-cmd {
  fill: var(--accent);
  font-size: 22px;
}
.flow .flow-who {
  fill: var(--positive);
  font-size: 22px;
}
.pipeline-result {
  margin-top: var(--space-6);
}
.pipeline-result .t-hint {
  display: block;
  margin-top: var(--space-2);
}

/* ---------- #proof ---------- */
.proof-grid {
  margin-top: var(--space-6);
}

/* ---------- #proof-code ---------- */
.proof-catch {
  margin-top: var(--space-6);
  text-wrap: balance;
}

/* ---------- #quote: contact details beside the LinkedIn QR ---------- */
.closing-contact {
  position: absolute;
  left: 13.5%;
  bottom: calc(12% + var(--space-6) - 10px);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
}
.closing-contact .closing-qr {
  display: block;
  width: 152px;
  height: 152px;
  padding: var(--space-2) var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: white;
  box-sizing: border-box;
}
.closing-links {
  display: grid;
  gap: var(--space-2);
  align-self: center;
}
.closing-links .t-label {
  color: var(--accent);
}
.closing-links p {
  margin: 0;
  font: 500 26px/1.3 var(--font-label);
}
.layout-quote .closing-links a:any-link {
  color: var(--ink);
  font: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}
#quote > .t-statement,
#quote > .t-closing {
  transform: translateY(-30px);
}

/* ---------- Print (the PDF backup) ---------- */
/* PDF renderers draw blurred shadows as hard rectangles. Keep the highlight ring, drop the soft glow.
   (A candidate for the foundation's print rules in the next version.) */
@media print {
  :is(.card, .term-win).step-current {
    box-shadow: 0 0 0 1px var(--accent);
  }
  .glass-panel {
    box-shadow: none;
  }
}
