:root {
  /* Match landing / editor light --ui-accent */
  --brand-blue: #155e8a;
  --brand-blue-on-dark: #7ec8f0;
  --ink: #17202a;
  --muted: #5c6975;
  --paper: #f4f0e8;
  --panel: #fffdf8;
  --teal: var(--brand-blue);
  --teal-dark: #124d6d;
  --coral: #ef4b3f;
  --cyan: var(--brand-blue-on-dark);
  --line: #d8d2c6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #cbc6bc; color: var(--ink); }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  counter-reset: page;
}

.page {
  position: relative;
  width: 297mm;
  height: 210mm;
  margin: 10mm auto;
  padding: 12mm 14mm 11mm;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 4%, rgba(21, 94, 138, 0.14), transparent 22%),
    var(--paper);
  page-break-after: always;
  break-after: page;
  counter-increment: page;
}

.page::after {
  content: counter(page);
  position: absolute;
  right: 14mm;
  bottom: 6mm;
  color: #7e887f;
  font-size: 10px;
  font-weight: 700;
}

/* —— Cover (text only) —— */
.cover {
  color: white;
  padding: 18mm 17mm 14mm;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(21, 94, 138, 0.45), transparent 42%),
    radial-gradient(ellipse at 12% 88%, rgba(239,75,63,.18), transparent 40%),
    linear-gradient(145deg, #0a1520 0%, #122a3d 55%, #081420 100%);
}
.cover::after { color: rgba(255,255,255,.65); }
.cover-copy { max-width: 168mm; }
.eyebrow {
  display: inline-block;
  margin-bottom: 6mm;
  padding: 2mm 3.5mm;
  border: 1px solid color-mix(in srgb, var(--brand-blue-on-dark) 55%, transparent);
  border-radius: 99px;
  color: var(--brand-blue-on-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cover h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.cover .dek {
  margin: 6mm 0 0;
  max-width: 150mm;
  font-size: 15px;
  line-height: 1.45;
  color: #d5e6f2;
}
.cover .dek strong {
  color: var(--brand-blue-on-dark);
}
.cover .flow {
  margin-top: 8mm;
  font-weight: 750;
  font-size: 13px;
  color: var(--brand-blue-on-dark);
  letter-spacing: .02em;
}
.cover-toc {
  margin: 10mm 0 0;
  padding: 0;
  list-style: none;
  max-width: 140mm;
}
.cover-toc li {
  padding: 2.5mm 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: #c5d9ea;
}
.cover-toc li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.cover-toc b { color: var(--brand-blue-on-dark); font-weight: 750; }
.cover .meta {
  position: absolute;
  left: 17mm;
  bottom: 12mm;
  color: rgba(255,255,255,.68);
  font-size: 10px;
}

h2 {
  margin: 0 0 2.5mm;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--teal-dark);
}
h3 { margin: 0 0 1.5mm; font-size: 13.5px; color: var(--teal-dark); }
p { margin: 0 0 2.5mm; }
.mb0 { margin-bottom: 0 !important; }
.lead { max-width: 250mm; font-size: 14px; color: #33444a; margin-bottom: 3mm; }
.kicker {
  margin-bottom: 1.5mm;
  color: var(--coral);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rule { width: 16mm; height: 1.1mm; margin: 0 0 3.5mm; background: var(--coral); border-radius: 2mm; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.text-dense { align-items: start; }
.stack { display: grid; gap: 4mm; }
.stack.tight { gap: 3mm; }

.card {
  padding: 4mm 4.5mm;
  border: 1px solid var(--line);
  border-radius: 3.5mm;
  background: rgba(255,253,248,.92);
  box-shadow: 0 1mm 3mm rgba(29,39,42,.06);
}
.card.accent { border-left: 1.8mm solid var(--teal); }
.card.warning { border-left: 1.8mm solid var(--coral); }

.big-message {
  padding: 5mm 6mm;
  border-radius: 4mm;
  background: #124d6d;
  color: #eefdfc;
  font-size: 14px;
  line-height: 1.4;
}
.big-message.compact { padding: 4mm 4.5mm; font-size: 13px; }

.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2mm;
  margin: 3mm 0 4mm;
}
.workflow.cols-7 { grid-template-columns: repeat(7, 1fr); }
.workflow.compact { margin: 2mm 0 3.5mm; }
.workflow .flow-step {
  position: relative;
  padding: 3.5mm 1.5mm;
  border-radius: 2.5mm;
  background: white;
  color: var(--muted);
  text-align: center;
  font-size: 10.5px;
  font-weight: 750;
  box-shadow: 0 1mm 2mm rgba(29,39,42,.05);
  border: 1.5px solid var(--line);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.workflow .flow-step.is-active {
  color: var(--teal-dark);
  font-weight: 850;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--brand-blue) 8%, #fff) 100%);
  border-color: var(--brand-blue);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand-blue) 35%, transparent),
    0 1.5mm 4mm rgba(21, 94, 138, .18);
}
.workflow .flow-step.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.2mm;
  transform: translateX(-50%);
  width: 5mm;
  height: 1mm;
  border-radius: 99px;
  background: var(--coral);
}
.workflow .flow-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -1.8mm;
  top: 2mm;
  z-index: 2;
  color: var(--coral);
  font-size: 18px;
  opacity: .85;
}
.workflow .flow-step.is-active:not(:last-child)::after {
  opacity: 1;
}

.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid #bac1be;
  border-radius: 3mm;
  background: #101719;
  box-shadow: 0 1.5mm 5mm rgba(23,32,42,.12);
}
.figure video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #101719;
}
.fig-video-sm { height: 68mm; }
.fig-video-stack { height: 52mm; }
.card.video-card { padding: 3.5mm 4mm; }
.card.video-card .video-card-head { margin-bottom: 1.5mm; }
.card .lead { margin-bottom: 0; font-size: 13px; }
.caption { margin-top: 1.5mm; color: var(--muted); font-size: 10.5px; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4mm;
  margin-top: 3mm;
}
.video-grid .fig-video-sm { height: 58mm; }
.video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2mm;
  margin-bottom: 2mm;
}
.video-grid .video-card h3 { margin: 0; font-size: 13px; }
.video-fs-btn {
  flex: 0 0 auto;
  padding: 1.2mm 2.5mm;
  border: 1px solid var(--teal);
  border-radius: 2mm;
  background: #e8eef5;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.video-fs-btn:hover { background: #d8e4f0; }

/* In-browser window expand (not OS display fullscreen) */
.video-fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(4, 12, 14, .94);
}
.video-fs-overlay[hidden] { display: none !important; }
.video-fs-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #e8f4f3;
  font-size: 14px;
  font-weight: 650;
}
.video-fs-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.video-fs-close:hover { background: rgba(255,255,255,.22); }
.video-fs-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px 16px;
}
.video-fs-stage video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}
body.video-fs-open { overflow: hidden; }

@media print {
  .video-fs-btn,
  .video-fs-overlay { display: none !important; }
}

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 2.5mm 9mm;
  counter-increment: step;
}
.steps.compact li { padding-bottom: 2mm; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 5.8mm;
  height: 5.8mm;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 9px;
  font-weight: 900;
}
.tip {
  padding: 3mm 3.5mm;
  border-radius: 2.5mm;
  background: #e1eeea;
  color: #24444a;
  font-size: 11px;
}
.note {
  padding: 3mm 3.5mm;
  border-radius: 2.5mm;
  background: #f5dfd7;
  color: #66362e;
  font-size: 11px;
}
.command { font-weight: 800; color: var(--teal-dark); }
.checklist { margin: 0; padding-left: 4.5mm; }
.checklist li { margin-bottom: 1.5mm; }
.checklist.compact li { margin-bottom: 1.2mm; }
.footer-label { position: absolute; left: 14mm; bottom: 6mm; color: #7e887f; font-size: 10px; }

@media print {
  html, body { background: transparent; }
  .page { margin: 0; box-shadow: none; }
}

@page { size: A4 landscape; margin: 0; }
