/* ============================================================
   KILO isoBOLD — document engine CSS
   Shared by Site Assessment, Partner Presentation, Opportunity Brief.
   Link AFTER the five token sheets (fonts → colors → typography →
   spacing → motifs). All values reference token CSS variables.
   ============================================================ */

/* ─── PAGE CANVAS ─────────────────────────────────────────────── */
@page { size: 1440px 810px; margin: 0; }

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; font-family: var(--font-sans); }

body { background: #E7E5DF; }

.doc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 44px;
}

/* Slide-based wrapper — only one slide visible at a time on screen */
.pres-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 44px 100px;
  background: #E7E5DF;
  min-height: 100vh;
}

/* ─── PAGE UNIT ────────────────────────────────────────────────── */
.pg {
  position: relative;
  width: 1440px;
  height: 810px;
  flex: none;
  overflow: hidden;
  font-family: var(--font-sans);
}

.pg--dark {
  background: var(--neutral-0);
  color: var(--text-2);
  box-shadow: var(--shadow-lg);
}

.pg--paper {
  background: #FBFBF9;
  color: var(--text-2);
  box-shadow: var(--shadow-sheet);
}

/* ─── PRINT ────────────────────────────────────────────────────── */
@media print {
  body { background: transparent !important; }
  .doc-wrap, .pres-wrap { gap: 0; padding: 0; align-items: flex-start; }
  .pg { box-shadow: none; break-after: page; width: 1440px; height: 810px; }
  .pres-nav { display: none !important; }
  .pres-slide { display: flex !important; opacity: 1 !important; pointer-events: none !important; }
}

/* ─── COVER LATTICE ────────────────────────────────────────────── */
.cover-lattice {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.34;
  z-index: 0;
  pointer-events: none;
}
.cover-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 42% 40%, rgba(10,10,12,.28), rgba(10,10,12,.97) 82%);
  z-index: 1;
  pointer-events: none;
}

/* ─── PAGE HEADER — DARK ───────────────────────────────────────── */
.pg-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 24px 64px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.pg--paper .pg-header {
  border-bottom: 1px solid rgba(20,22,26,0.14);
}

.pg-wordmark-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pg-monogram { height: 26px; width: auto; }
.pg--paper .pg-monogram { height: 20px; filter: invert(1); }

.pg-wordmark-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.4px;
  color: var(--text-1);
  display: block;
}
.pg--paper .pg-wordmark-text { color: var(--neutral-0); }

.pg-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}
.pg--paper .pg-tagline { color: var(--neutral-500); }

.pg-docid-block {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-4);
  line-height: 1.65;
}
.pg--paper .pg-docid-block { color: var(--neutral-500); }

/* Index rail (paper pages) */
.pg-index-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-4);
}
.pg--paper .pg-index-rail { color: var(--neutral-500); }

.rail-token {
  color: #9C7B35;
  font-size: 11px;
  font-weight: 500;
}
.rail-line {
  width: 20px; height: 1px;
  background: rgba(20,22,26,0.14);
}
.rail-qual {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--neutral-500);
}

/* ─── PAGE FOOTER ──────────────────────────────────────────────── */
.pg-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 64px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-4);
  text-transform: uppercase;
  z-index: 10;
}
.pg--paper .pg-footer { border-top: 1px solid rgba(20,22,26,0.14); color: var(--neutral-500); }

/* ─── COVER BODY LAYOUT ────────────────────────────────────────── */
.cover-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 94px 64px 136px 64px;
  z-index: 2;
}
.cover-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  max-width: 740px;
}
.cover-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.cover-display-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 72px;
  letter-spacing: -2.2px;
  line-height: 0.97;
  color: var(--text-1);
  margin: 0 0 14px;
}
.cover-gold-period { color: #C9A24B; }
.cover-gold-rule {
  width: 64px; height: 3px;
  background: #C9A24B;
  margin-bottom: 18px;
}
.cover-lede {
  font-size: 16px;
  line-height: 1.56;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 24px;
}
.cover-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cover-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--text-3);
}

/* ─── COVER CAPTURE ────────────────────────────────────────────── */
.cover-capture-frame {
  position: absolute;
  top: 94px; right: 64px;
  bottom: 176px;
  width: 540px;
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  z-index: 2;
}
.cover-capture-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.8) brightness(0.9);
}

/* Caption overlay for captures on covers */
.cap-rail {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,12,0.82);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ─── COVER SPEC STRIP ─────────────────────────────────────────── */
.cover-spec-strip {
  position: absolute;
  bottom: 44px; left: 0; right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  z-index: 6;
  padding: 14px 64px 12px;
  background: #0c0c0e;
}
.spec-item { padding: 0 16px; }
.spec-item:first-child { padding-left: 0; }
.spec-item:not(:first-child) { border-left: 1px solid var(--border); }
.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 3px;
}
.spec-value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 3px;
}
.spec-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  line-height: 1.35;
}

/* ─── CHAPTER DIVIDER ──────────────────────────────────────────── */
.divider-ghost {
  position: absolute;
  bottom: -30px; right: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 500px;
  line-height: 1;
  color: rgba(255,255,255,0.028);
  letter-spacing: -20px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
.divider-body {
  position: absolute;
  top: 94px; left: 64px; right: 64px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.divider-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.divider-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -1.5px;
  line-height: 1.02;
  color: var(--text-1);
  max-width: 920px;
  margin: 0 0 16px;
}
.divider-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 680px;
  margin: 0;
}
.divider-body-text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 680px;
  margin: 12px 0 0;
}

/* ─── CONTENT AREA (paper) ─────────────────────────────────────── */
.pg-content {
  position: absolute;
  top: 76px; left: 0; right: 0; bottom: 40px;
  padding: 16px 64px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pg-h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.5px;
  line-height: 1.18;
  color: var(--neutral-0);
  margin: 0 0 4px;
}
.pg-subhead {
  font-size: 14px;
  color: var(--neutral-500);
  margin: 0 0 12px;
  line-height: 1.4;
}
.pg-body {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.55;
  color: #585C64;
  margin: 0 0 14px;
}

/* ─── TWO COLUMN ───────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  flex: 1;
  min-height: 0;
}
.col-left, .col-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ─── BULLET LIST ──────────────────────────────────────────────── */
.pg-bullets {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pg-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 20px;
  line-height: 1.45;
  color: #585C64;
}
.pg-bullets li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  border: 1px solid #9C7B35;
  transform: rotate(45deg);
  margin-top: 8px;
  flex-shrink: 0;
}
.bul-src {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #A8ABB2;
  letter-spacing: 0.04em;
}
.bul-src a { color: #A8ABB2; text-decoration: underline; text-underline-offset: 2px; }

/* ─── STAT BLOCK ───────────────────────────────────────────────── */
.stat-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}
.stat-block--3 { grid-template-columns: repeat(3, 1fr); }
.stat-block--4 { grid-template-columns: repeat(4, 1fr); }

.stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(20,22,26,0.13);
  padding: 12px 14px;
}
.stat-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A8ABB2;
  margin-bottom: 3px;
}
.stat-card-value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: #15161A;
  line-height: 1.2;
  margin-bottom: 3px;
}
.stat-card-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #6B7079;
  line-height: 1.35;
}

/* ─── SOURCE NOTES ─────────────────────────────────────────────── */
.source-notes {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #A8ABB2;
  line-height: 1.5;
  margin-top: 6px;
}
.source-notes a { color: #8A8E97; text-decoration: underline; text-underline-offset: 2px; }

/* ─── CALLOUT BOX ──────────────────────────────────────────────── */
.callout-box {
  border: 1px solid rgba(20,22,26,0.13);
  padding: 10px 14px;
  margin: 8px 0;
  background: #FFFFFF;
}
.callout-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9C7B35;
  margin-bottom: 4px;
}
.callout-text {
  font-size: 16px;
  line-height: 1.5;
  color: #585C64;
}

/* ─── CAPTURE FRAME ────────────────────────────────────────────── */
.capture-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20,22,26,0.13);
  flex: 1;
}
.capture-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.94);
}
.capture-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,12,0.82);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #8A8E97;
  text-transform: uppercase;
  line-height: 1.5;
}
.capture-caption-dark { color: #C7CAD1; }

/* Full-bleed capture page */
.capture-full {
  position: absolute;
  top: 76px; left: 64px; right: 64px; bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capture-full .capture-frame { border: 1px solid rgba(20,22,26,0.13); }

/* ─── SCORECARD ─────────────────────────────────────────────────── */
.scorecard-wrap {
  display: flex;
  gap: 40px;
  flex: 1;
  min-height: 0;
}
.scorecard-left {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.scorecard-overall-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 96px;
  letter-spacing: -4px;
  line-height: 1;
  color: #15161A;
}
.scorecard-band {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9C7B35;
  margin-top: 4px;
}
.scorecard-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #A8ABB2;
  margin-top: 6px;
}
.scorecard-qual {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #A8ABB2;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 220px;
}
.scorecard-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(20,22,26,0.09);
  padding-bottom: 7px;
}
.sc-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7079;
  min-width: 80px;
}
.sc-bar-wrap { flex: 1; height: 5px; background: rgba(20,22,26,0.08); }
.sc-bar { height: 100%; background: #9C7B35; }
.sc-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #15161A;
  min-width: 28px;
  text-align: right;
}

/* ─── CONTENTS / TOC ───────────────────────────────────────────── */
.toc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(20,22,26,0.13);
}
.toc-row--featured { border-color: rgba(156,123,53,0.45); }
.toc-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9C7B35;
  min-width: 36px;
}
.toc-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: #15161A;
}
.toc-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #6B7079;
  max-width: 380px;
}

/* Reading rule box */
.read-rule-box {
  background: #FFFFFF;
  border: 1px solid rgba(20,22,26,0.13);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.read-rule-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9C7B35;
  margin-bottom: 6px;
}
.read-rule-text {
  font-size: 16px;
  line-height: 1.55;
  color: #585C64;
}

/* ─── ANNEX TABLE ──────────────────────────────────────────────── */
.annex-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.annex-table th {
  text-align: left;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6B7079;
  font-size: 11px;
  border-bottom: 1px solid rgba(20,22,26,0.18);
  padding: 6px 8px 6px 0;
}
.annex-table td {
  border-bottom: 1px solid rgba(20,22,26,0.09);
  padding: 7px 8px 7px 0;
  color: #585C64;
  font-size: 12px;
  line-height: 1.4;
  vertical-align: top;
}
.annex-table .td-domain {
  font-weight: 600;
  color: #15161A;
  min-width: 160px;
}
.annex-table .td-status {
  color: #9C7B35;
  min-width: 120px;
}

/* ─── DOMAIN GRID (Annex) ──────────────────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.domain-cell {
  background: #FFFFFF;
  border: 1px solid rgba(20,22,26,0.13);
  padding: 12px 14px;
}
.domain-cell-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9C7B35;
  margin-bottom: 5px;
}
.domain-cell-text {
  font-size: 14px;
  line-height: 1.45;
  color: #585C64;
}
.domain-cell-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #A8ABB2;
  margin-top: 6px;
}

/* ─── BACK COVER ───────────────────────────────────────────────── */
.back-cover-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.back-cover-body img.back-mono { height: 48px; margin-bottom: 18px; }
.back-cover-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2.5px;
  color: var(--text-1);
  margin-bottom: 6px;
}
.back-cover-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.back-cover-url {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* ─── PRESENTATION NAV ─────────────────────────────────────────── */
.pres-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,10,12,0.90);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.pres-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-2);
  padding: 4px 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  min-height: 28px;
  min-width: 44px;
}
.pres-nav button:hover { background: rgba(255,255,255,0.06); }
.pres-nav button:focus-visible { outline: 2px solid #DDC382; outline-offset: 2px; }
#pres-counter { min-width: 56px; text-align: center; }

.pres-slide { display: none; }
.pres-slide.active { display: flex; flex-direction: column; align-items: center; }

/* ─── BRIEF SPECIFIC ───────────────────────────────────────────── */
.brief-masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20,22,26,0.14);
}
.brief-kicker-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9C7B35;
}

/* ─── DIFF PAIRS (Annex) ───────────────────────────────────────── */
.diff-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.diff-cell {
  background: #FFFFFF;
  border: 1px solid rgba(20,22,26,0.13);
  padding: 10px 14px;
}
.diff-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #A8ABB2;
  margin-bottom: 4px;
}
.diff-text {
  font-size: 16px;
  line-height: 1.45;
  color: #585C64;
}
.diff-cell--preferred .diff-label { color: #9C7B35; }
.diff-cell--preferred .diff-text { color: #15161A; }

/* ─── FILMSTRIP ────────────────────────────────────────────────── */
.filmstrip {
  display: grid;
  gap: 10px;
}
.filmstrip--3 { grid-template-columns: 1.55fr 1fr 1fr; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
