:root {
  --paper: #f3f0e7;
  --paper-deep: #e9e4d8;
  --paper-bright: #fbfaf5;
  --ink: #151714;
  --muted: #62675f;
  --line: #c7c3b8;
  --line-dark: #8c8e87;
  --signal: #d84a2d;
  --signal-dark: #a92d18;
  --positive: #266b4b;
  --max: 1440px;
  --gutter: clamp(1rem, 3vw, 3.25rem);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text-meta: 0.875rem;
  --text-ui: 0.875rem;
  --text-support: 0.9375rem;
  --text-copy: 1rem;
  --text-reading: clamp(1.125rem, 1.45vw, 1.25rem);
  --viz-meta: 0.875rem;
  --viz-label: 0.875rem;
  --viz-copy: 0.9375rem;
  --slide-meta: clamp(1.25rem, 1.25vw, 1.5rem);
  --slide-data: clamp(1.35rem, 1.35vw, 1.65rem);
  --slide-body: clamp(1.5rem, 1.5vw, 1.8rem);
}

/* Local-first guided assessment */
.presentation-stage.is-kong-guided .assessment-launch {
  min-width: 11.5rem;
  grid-auto-flow: column;
  gap: 0.45rem;
  padding-inline: 0.8rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-guided .assessment-launch b {
  color: var(--guided-yellow);
  font: inherit;
}

.presentation-stage.is-kong-guided .assessment-launch:hover b,
.presentation-stage.is-kong-guided .assessment-launch:focus-visible b {
  color: var(--guided-ink);
}

.assessment-drawer[hidden] {
  display: none;
}

.assessment-drawer {
  position: fixed;
  inset: 0.75rem 0.75rem 5.75rem auto;
  z-index: 12;
  width: min(44rem, calc(100vw - 2rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--guided-ink, #11120f);
  color: var(--guided-ink, #11120f);
  background: var(--guided-paper, #fffdf5);
  box-shadow: -1rem 1rem 0 rgb(17 18 15 / 24%);
}

.assessment-drawer > :not(.assessment-form) {
  flex: 0 0 auto;
}

.assessment-drawer-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--guided-line, #bbb7aa);
}

.assessment-drawer-header .eyebrow {
  color: var(--guided-violet, #5f38d7);
}

.assessment-drawer-header h2 {
  margin: 0.25rem 0 0;
  color: var(--guided-ink, #11120f);
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1;
}

.assessment-close {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border: 1px solid var(--guided-ink, #11120f);
  color: var(--guided-paper, #fffdf5);
  background: var(--guided-ink, #11120f);
  cursor: pointer;
  font-size: 1.5rem;
}

.assessment-close:hover,
.assessment-close:focus-visible {
  color: var(--guided-ink, #11120f);
  background: var(--guided-yellow, #ffcb2f);
}

.assessment-interface-terms {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--guided-ink, #11120f);
  color: var(--guided-ink, #11120f);
  background: color-mix(in srgb, var(--guided-violet, #5f38d7) 8%, var(--guided-paper, #fffdf5));
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.2;
}

.assessment-interface-terms > b {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-right: 1px solid var(--guided-ink, #11120f);
  color: var(--guided-violet, #5f38d7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.assessment-interface-terms > b span {
  margin-left: 0.35rem;
  color: var(--guided-muted, #666960);
  font-size: 0.72em;
}

.assessment-interface-terms ul {
  min-width: 0;
  display: flex;
  gap: 0.7rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  list-style: none;
}

.assessment-interface-terms ul:focus-visible {
  outline: 3px solid var(--guided-violet, #5f38d7);
  outline-offset: -3px;
}

.assessment-interface-terms li {
  flex: 0 0 auto;
  white-space: nowrap;
}

.assessment-interface-terms li:not(:last-child)::after {
  content: "·";
  margin-left: 0.7rem;
  color: var(--guided-violet, #5f38d7);
}

.assessment-local-warning {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--guided-ink, #11120f);
  color: var(--guided-ink, #11120f);
  background: var(--guided-yellow, #ffcb2f);
}

.assessment-local-warning strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assessment-local-warning p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.assessment-safeguard-details {
  margin: 0;
  border-bottom: 1px solid var(--guided-ink, #11120f);
  color: var(--guided-ink, #11120f);
  background: color-mix(in srgb, var(--guided-yellow, #ffcb2f) 10%, var(--guided-paper, #fffdf5));
}

.assessment-safeguard-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.assessment-safeguard-details > summary::after {
  content: "+";
  color: var(--guided-violet, #5f38d7);
  font-size: 1rem;
}

.assessment-safeguard-details[open] > summary::after {
  content: "−";
}

.assessment-safeguard-details > div {
  padding: 0.2rem 1.1rem 0.8rem;
  border-top: 1px solid var(--guided-line, #bbb7aa);
}

.assessment-safeguard-details p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.assessment-safeguard-details > summary:focus-visible {
  outline: 3px solid var(--guided-violet, #5f38d7);
  outline-offset: -3px;
}

.assessment-storage-warning {
  margin: 0;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid #8d2d21;
  color: #6f1d14;
  background: #ffe0d8;
  font-size: 0.9rem;
  line-height: 1.35;
}

.assessment-view-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
  border-bottom: 1px solid var(--guided-ink, #11120f);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.assessment-view-tabs > * {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
}

.assessment-view-tabs span {
  color: var(--guided-ink, #11120f);
  background: color-mix(in srgb, var(--guided-violet, #5f38d7) 10%, var(--guided-paper, #fffdf5));
}

.assessment-view-tabs a {
  justify-content: center;
  border-left: 1px solid var(--guided-ink, #11120f);
  color: var(--guided-paper, #fffdf5);
  background: var(--guided-violet, #5f38d7);
  text-decoration: none;
}

.assessment-view-tabs a:hover,
.assessment-view-tabs a:focus-visible {
  color: var(--guided-ink, #11120f);
  background: var(--guided-yellow, #ffcb2f);
}

.assessment-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.assessment-meeting-fields,
.assessment-phase-questions {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}

.assessment-meeting-fields {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--guided-line, #bbb7aa);
  background: var(--guided-paper-deep, #f3efe2);
}

.assessment-meeting-fields h3,
.assessment-section-heading {
  grid-column: 1 / -1;
}

.assessment-meeting-fields > .is-wide {
  grid-column: 1 / -1;
}

.assessment-session-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--guided-line, #bbb7aa);
  background: var(--guided-paper, #fffdf5);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.assessment-session-state strong {
  color: var(--guided-violet, #5f38d7);
}

.assessment-session-state span {
  color: var(--guided-muted, #62645d);
}

.assessment-meeting-fields h3,
.assessment-section-heading h3 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: 1.15rem;
}

.assessment-section-heading {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.assessment-section-heading > span {
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-size: 0.84rem;
  white-space: nowrap;
}

.assessment-question {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--guided-line, #bbb7aa);
  background: #fff;
}

.assessment-question.is-gap {
  border-left: 0.4rem solid #9c2f22;
}

.assessment-question.is-complete {
  border-left: 0.4rem solid var(--guided-violet, #5f38d7);
}

.assessment-question legend {
  max-width: 100%;
  padding: 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.assessment-question legend span {
  margin-right: 0.5rem;
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.assessment-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.3;
}

.assessment-question-meta span {
  color: var(--guided-muted, #62645d);
}

.assessment-question-meta strong {
  margin-left: auto;
  color: var(--guided-violet, #5f38d7);
}

.assessment-question.is-gap .assessment-question-meta strong {
  color: #8b291d;
}

.assessment-review-before {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
  margin: 0.8rem 0;
  padding: 0.8rem;
  border: 1px solid var(--guided-line, #bbb7aa);
  border-left: 0.35rem solid var(--guided-violet, #5f38d7);
  background: color-mix(in srgb, var(--guided-violet, #5f38d7) 5%, white);
}

.assessment-review-before > header {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.assessment-review-before > header b,
.assessment-reference-group > span,
.assessment-supporting-references section > b {
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assessment-review-before > header p {
  margin: 0;
  color: var(--guided-muted, #62645d);
  font-size: 0.82rem;
  line-height: 1.35;
}

.assessment-reference-group {
  min-width: 0;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.45rem 0.6rem;
  align-items: start;
}

.assessment-reference-group > span {
  padding-top: 0.55rem;
}

.assessment-reference-list,
.assessment-context-link-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assessment-reference-list > li {
  min-width: min(100%, 13rem);
  flex: 1 1 13rem;
}

.assessment-reference-list.is-compact > li {
  min-width: min(100%, 10rem);
  flex-basis: 10rem;
}

.assessment-reference-link,
.assessment-context-link-list a {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.42rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--guided-violet, #5f38d7) 46%, white);
  color: var(--guided-ink, #11120f);
  background: color-mix(in srgb, var(--guided-violet, #5f38d7) 7%, white);
  font-size: 0.76rem;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.assessment-context-link-list a.is-official {
  grid-template-columns: minmax(0, 1fr) auto;
}

.assessment-reference-link:hover,
.assessment-context-link-list a:hover {
  border-color: var(--guided-violet, #5f38d7);
  background: color-mix(in srgb, var(--guided-violet, #5f38d7) 13%, white);
}

.assessment-reference-link:focus-visible,
.assessment-context-link-list a:focus-visible,
.assessment-supporting-references > summary:focus-visible,
.assessment-summary-question > a:focus-visible,
.guided-term-link:focus-visible {
  outline: 3px solid var(--guided-violet, #5f38d7);
  outline-offset: 2px;
}

.assessment-reference-link > b,
.assessment-context-link-list a > b {
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.assessment-reference-link > span:not(.assessment-reference-cue),
.assessment-context-link-list a > span:not(:last-child) {
  min-width: 0;
}

.assessment-reference-cue,
.assessment-context-link-list a > span:last-child {
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-weight: 700;
}

.assessment-reference-link.is-unresolved {
  border-style: dashed;
  color: var(--guided-muted, #62645d);
  background: transparent;
}

.assessment-supporting-references {
  min-width: 0;
  border-top: 1px solid var(--guided-line, #bbb7aa);
}

.assessment-supporting-references > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--guided-violet, #5f38d7);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.assessment-supporting-references > div,
.assessment-supporting-references section {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.assessment-supporting-references > div {
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.assessment-context-link-list > li {
  min-width: min(100%, 14rem);
  flex: 1 1 14rem;
}

.assessment-decision-use,
.assessment-evidence-boundary,
.assessment-hold-rule {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.6rem;
  margin: 0.65rem 0;
  color: var(--guided-muted, #62645d);
  font-size: 0.86rem;
  line-height: 1.35;
}

.assessment-decision-use b,
.assessment-evidence-boundary b,
.assessment-hold-rule b {
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assessment-hold-rule {
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--guided-yellow, #ffcb2f) 75%, var(--guided-ink, #11120f));
  color: var(--guided-ink, #11120f);
  background: color-mix(in srgb, var(--guided-yellow, #ffcb2f) 16%, white);
}

.assessment-hold-rule p {
  margin: 0;
}

.assessment-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.assessment-field.is-wide {
  grid-column: 1 / -1;
}

.assessment-field {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.assessment-field > span {
  color: var(--guided-ink, #11120f);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.assessment-field input,
.assessment-field select,
.assessment-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--guided-line, #88857b);
  border-radius: 0;
  color: var(--guided-ink, #11120f);
  background: #fff;
  font: 400 1rem/1.35 system-ui, sans-serif;
}

.assessment-evidence-request,
.assessment-meeting-ledger {
  margin-top: 0.8rem;
  border: 1px solid var(--guided-line, #bbb7aa);
  background: var(--guided-paper-deep, #f3efe2);
}

.assessment-meeting-ledger {
  margin-top: 0;
}

.assessment-evidence-request > summary,
.assessment-meeting-ledger > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.assessment-evidence-request > summary::after,
.assessment-meeting-ledger > summary::after {
  content: "+";
  color: var(--guided-violet, #5f38d7);
  font-size: 1rem;
}

.assessment-evidence-request[open] > summary::after,
.assessment-meeting-ledger[open] > summary::after {
  content: "−";
}

.assessment-evidence-request > .assessment-field-grid,
.assessment-meeting-ledger > .assessment-field-grid {
  padding: 0.7rem;
  border-top: 1px solid var(--guided-line, #bbb7aa);
}

.assessment-evidence-request > summary:focus-visible,
.assessment-meeting-ledger > summary:focus-visible {
  outline: 3px solid var(--guided-violet, #5f38d7);
  outline-offset: 2px;
}

.assessment-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.assessment-field input:focus-visible,
.assessment-field select:focus-visible,
.assessment-field textarea:focus-visible,
.assessment-drawer button:focus-visible,
.assessment-summary-page button:focus-visible,
.assessment-summary-page a:focus-visible {
  outline: 3px solid var(--guided-violet, #5f38d7);
  outline-offset: 2px;
}

.assessment-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--guided-ink, #11120f);
  background: var(--guided-ink, #11120f);
}

.assessment-drawer-actions > span {
  min-width: 9rem;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.8rem;
  color: var(--guided-yellow, #ffcb2f);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.assessment-drawer-actions button,
.assessment-summary-actions button,
.assessment-summary-actions a,
.assessment-summary-phase-nav button {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-left: 1px solid var(--guided-paper, #fffdf5);
  color: var(--guided-paper, #fffdf5);
  background: var(--guided-ink, #11120f);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.assessment-drawer-actions button:hover,
.assessment-drawer-actions button:focus-visible,
.assessment-summary-actions button:hover,
.assessment-summary-actions button:focus-visible,
.assessment-summary-actions a:hover,
.assessment-summary-actions a:focus-visible,
.assessment-summary-phase-nav button:hover,
.assessment-summary-phase-nav button:focus-visible {
  color: var(--guided-ink, #11120f);
  background: var(--guided-yellow, #ffcb2f);
}

.assessment-drawer-actions .is-danger,
.assessment-summary-actions .is-danger {
  color: #fff;
  background: #76261c;
}

.assessment-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--guided-line, #bbb7aa);
}

.presentation-stage.is-assessment-summary {
  overflow-y: auto;
  color: var(--guided-ink);
  background: var(--guided-paper-deep);
  scrollbar-gutter: stable;
}

.assessment-summary-page {
  width: min(96rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 3rem) 0 7rem;
}

.assessment-summary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--guided-ink);
}

.assessment-summary-hero h1 {
  max-width: 14ch;
  margin: 0.5rem 0;
  color: var(--guided-ink);
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.assessment-summary-hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--guided-muted);
  font-size: 1.05rem;
}

.assessment-decision-state {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 2px solid var(--guided-ink);
  background: var(--guided-yellow);
}

.assessment-decision-state.is-reviewable {
  color: #fff;
  background: var(--guided-violet);
}

.assessment-decision-state.is-hold {
  color: #fff;
  background: #76261c;
}

.assessment-decision-state span,
.assessment-summary-meeting span,
.assessment-summary-phase > header span,
.assessment-summary-question > header span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.assessment-decision-state strong {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.12;
}

.assessment-summary-page > .assessment-local-warning {
  margin-top: 0;
  border: 2px solid var(--guided-ink);
  border-top: 0;
}

.assessment-summary-page > .assessment-interface-terms {
  margin-top: 1rem;
  border: 2px solid var(--guided-ink);
}

.assessment-summary-page > .assessment-safeguard-details {
  border: 2px solid var(--guided-ink);
  border-top: 0;
}

.assessment-summary-meeting {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid var(--guided-ink);
  background: var(--guided-paper);
}

.assessment-summary-meeting h2,
.assessment-summary-meeting p {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.assessment-summary-meeting small {
  display: block;
  margin-top: 0.35rem;
  color: var(--guided-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.assessment-summary-decision-record {
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid var(--guided-ink);
  background: var(--guided-paper);
}

.assessment-summary-decision-record > header span {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.assessment-summary-decision-record > header h2 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
}

.assessment-summary-decision-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--guided-line);
  border-left: 1px solid var(--guided-line);
}

.assessment-summary-decision-record dl div {
  min-width: 0;
  padding: 0.75rem;
  border-right: 1px solid var(--guided-line);
  border-bottom: 1px solid var(--guided-line);
}

.assessment-summary-decision-record dt {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.assessment-summary-decision-record dd {
  margin: 0.3rem 0 0;
  color: var(--guided-ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.assessment-summary-meeting dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--guided-line);
}

.assessment-summary-meeting dl div {
  padding: 0.75rem 0.6rem 0;
  border-right: 1px solid var(--guided-line);
}

.assessment-summary-meeting dl div:last-child {
  border-right: 0;
}

.assessment-summary-meeting dt {
  color: var(--guided-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.assessment-summary-meeting dd {
  margin: 0.15rem 0 0;
  color: var(--guided-violet);
  font-size: 1.5rem;
  font-weight: 800;
}

.assessment-summary-phase-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  overflow-x: auto;
  border: 1px solid var(--guided-ink);
  background: var(--guided-ink);
}

.assessment-summary-phase-nav button {
  flex: 1 0 auto;
}

.assessment-summary-phases {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.assessment-summary-phase {
  scroll-margin-top: 4rem;
}

.assessment-summary-phase > header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--guided-ink);
}

.assessment-summary-phase > header h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.assessment-summary-phase > header p {
  margin: 0;
  color: var(--guided-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
}

.assessment-summary-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.assessment-summary-question {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--guided-line);
  border-top: 0.4rem solid var(--guided-violet);
  background: var(--guided-paper);
}

.assessment-summary-question.is-hold,
.assessment-summary-question.is-unknown,
.assessment-summary-question.is-unanswered {
  border-top-color: #76261c;
}

.assessment-summary-question.is-amend,
.assessment-summary-question.is-not-applicable {
  border-top-color: var(--guided-yellow-deep);
}

.assessment-summary-question > header {
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  color: var(--guided-violet);
}

.assessment-summary-question > header strong {
  color: var(--guided-ink);
  font-size: 0.78rem;
  text-align: right;
}

.assessment-summary-question h3 {
  margin: 0.65rem 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.assessment-summary-references {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  padding: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--guided-violet, #5f38d7) 35%, var(--guided-line, #bbb7aa));
  background: color-mix(in srgb, var(--guided-violet, #5f38d7) 5%, white);
}

.assessment-summary-references > header {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.assessment-summary-references > header b,
.assessment-summary-minimum > span {
  color: var(--guided-violet, #5f38d7);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assessment-summary-references > header p {
  margin: 0;
  color: var(--guided-muted, #62645d);
  font-size: 0.78rem;
  line-height: 1.3;
}

.assessment-summary-minimum {
  min-width: 0;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.assessment-summary-question dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.assessment-summary-question dl div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--guided-line);
}

.assessment-summary-question dt {
  color: var(--guided-muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.assessment-summary-question dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.35;
}

.assessment-summary-question > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: start;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.assessment-summary-safeguard {
  margin-top: 1.5rem;
  padding: 1.25rem;
  color: var(--guided-paper);
  background: var(--guided-ink);
}

.assessment-summary-safeguard p {
  margin: 0.3rem 0 0;
}

.assessment-summary-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8;
  display: flex;
  border: 1px solid var(--guided-paper);
  box-shadow: 0 0.8rem 2rem rgb(17 18 15 / 25%);
}

.assessment-summary-actions a {
  display: flex;
  align-items: center;
}

@media screen and (min-width: 1920px) {
  .assessment-drawer {
    width: 46rem;
  }

  .assessment-summary-page {
    width: min(108rem, calc(100% - 6rem));
  }
}

@media screen and (min-width: 1024px) and (max-width: 1439px) {
  .assessment-drawer {
    width: min(40rem, calc(100vw - 2rem));
  }

  .assessment-summary-page {
    width: calc(100% - 2rem);
  }
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .assessment-drawer {
    width: min(38rem, calc(100vw - 1.5rem));
  }

  .assessment-summary-question-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (min-width: 761px) and (max-height: 760px) {
  .assessment-drawer {
    inset: 0.5rem 0.5rem 0.5rem auto;
  }

  .assessment-drawer-header {
    padding: 0.6rem 0.8rem;
  }

  .assessment-drawer-header h2 {
    font-size: 1.4rem;
  }

  .assessment-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .assessment-local-warning {
    padding: 0.4rem 0.8rem;
  }

  .assessment-local-warning p {
    margin-top: 0.15rem;
    font-size: 0.78rem;
  }

  .assessment-view-tabs > * {
    min-height: 38px;
    padding: 0.4rem 0.8rem;
  }

  .assessment-drawer-actions > span,
  .assessment-drawer-actions button {
    min-height: 40px;
    padding: 0.45rem 0.6rem;
  }
}

@media screen and (max-width: 760px) {
  .presentation-stage.is-kong-guided .slide-controls .assessment-launch {
    min-width: 46px;
    width: 46px;
    display: grid;
    padding: 0.35rem;
    font-size: 0.72rem;
  }

  .presentation-stage.is-kong-guided .assessment-launch > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .assessment-drawer {
    inset: auto calc(var(--mobile-control-rail, 4.25rem) + 0.75rem) 0.75rem 0.75rem;
    width: auto;
    max-height: 86dvh;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    box-shadow: 0 -0.8rem 0 rgb(17 18 15 / 22%);
  }

  .assessment-drawer-header,
  .assessment-interface-terms,
  .assessment-local-warning,
  .assessment-meeting-fields,
  .assessment-phase-questions {
    padding-inline: 0.75rem;
  }

  .assessment-interface-terms {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  .assessment-interface-terms > b {
    min-height: 32px;
    justify-content: space-between;
    padding: 0.35rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--guided-line, #bbb7aa);
  }

  .assessment-interface-terms ul {
    padding: 0.45rem 0.75rem;
  }

  .assessment-local-warning p {
    font-size: 0.82rem;
  }

  .assessment-view-tabs {
    grid-template-columns: minmax(0, 1fr) minmax(7rem, auto);
    font-size: 0.72rem;
  }

  .assessment-view-tabs > * {
    padding-inline: 0.65rem;
  }

  .assessment-meeting-fields,
  .assessment-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .assessment-field.is-wide {
    grid-column: auto;
  }

  .assessment-field input,
  .assessment-field select,
  .assessment-field textarea {
    font-size: 16px;
  }

  .assessment-decision-use,
  .assessment-evidence-boundary,
  .assessment-hold-rule {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .assessment-drawer-actions > span {
    flex-basis: 100%;
    min-height: 36px;
    justify-content: center;
    padding-block: 0.35rem;
  }

  .assessment-drawer-actions button {
    flex: 1 1 33%;
    border-top: 1px solid var(--guided-paper, #fffdf5);
  }

  .assessment-summary-page {
    width: calc(100% - 1.25rem);
    padding-top: 0.75rem;
    padding-bottom: 11rem;
  }

  .assessment-summary-hero,
  .assessment-summary-meeting,
  .assessment-summary-decision-record dl,
  .assessment-summary-question-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .assessment-summary-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
  }

  .assessment-summary-meeting dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assessment-summary-meeting dl div:nth-child(2) {
    border-right: 0;
  }

  .assessment-summary-phase > header {
    align-items: start;
    flex-direction: column;
  }

  .assessment-summary-phase > header p {
    text-align: left;
  }

  .assessment-summary-question dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .assessment-summary-actions {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    flex-wrap: wrap;
  }

  .assessment-summary-actions > * {
    flex: 1 1 30%;
    justify-content: center;
    text-align: center;
  }
}

@media screen and (max-width: 390px) {
  .assessment-drawer {
    right: calc(var(--mobile-control-rail, 4.25rem) + 0.4rem);
    bottom: 0.4rem;
    left: 0.4rem;
    max-height: 90dvh;
  }

  .assessment-drawer-header h2 {
    font-size: 1.35rem;
  }

  .assessment-question {
    padding: 0.7rem;
  }

  .assessment-summary-meeting dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .assessment-summary-meeting dl div,
  .assessment-summary-meeting dl div:nth-child(2) {
    border-right: 0;
  }

  .assessment-summary-actions > * {
    flex-basis: 45%;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 390px) and (max-height: 650px) {
  .assessment-drawer {
    top: 0.3rem;
    bottom: 0.3rem;
    max-height: none;
  }

  .assessment-drawer-header {
    padding-block: 0.45rem;
  }

  .assessment-drawer-header h2 {
    font-size: 1.15rem;
  }

  .assessment-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .assessment-local-warning {
    padding-block: 0.35rem;
  }

  .assessment-local-warning p {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .assessment-view-tabs > * {
    min-height: 36px;
    padding-block: 0.3rem;
  }

  .assessment-drawer-actions > span {
    min-height: 28px;
    padding-block: 0.2rem;
  }

  .assessment-drawer-actions button {
    min-height: 40px;
    padding-block: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assessment-summary-phase {
    scroll-behavior: auto;
  }
}

@page guided-assessment-summary {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  .assessment-drawer,
  .assessment-launch,
  .assessment-summary-actions,
  .assessment-summary-phase-nav {
    display: none !important;
  }

  body.is-presenting:has(.presentation-stage.is-assessment-summary),
  body.is-presenting:has(.presentation-stage.is-assessment-summary) > main,
  .presentation-stage.is-kong-guided.is-assessment-summary {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    page: guided-assessment-summary !important;
    color: #11120f !important;
    background: #fff !important;
  }

  .assessment-summary-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .assessment-summary-hero h1 {
    font-size: 32pt;
  }

  .assessment-summary-question-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .assessment-summary-phase,
  .assessment-summary-question,
  .assessment-summary-meeting,
  .assessment-summary-decision-record,
  .assessment-summary-safeguard {
    break-inside: avoid;
  }

  .assessment-summary-question > a {
    display: none;
  }
}

/* Guided evaluation additions: keep historical scoring visibly separate from
   the governed re-score, balance a seven-workstream proof programme, and show
   Mule and Apigee as distinct source-specific migration rails. */
.viz-guided-rescore-context {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 0.72fr) minmax(0, 2fr);
  gap: 0.35rem 0.8rem;
  align-items: center;
  margin-bottom: 0.6rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--guided-violet, var(--signal-dark));
  border-left-width: 0.38rem;
  background: color-mix(in srgb, var(--guided-violet, var(--signal-dark)) 7%, transparent);
}

.viz-guided-rescore-context > div {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.viz-guided-rescore-context > div > span,
.viz-guided-rescore-context li > span {
  color: var(--guided-violet, var(--signal-dark));
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.viz-guided-rescore-context > div > strong {
  font-size: clamp(0.95rem, 1vw, 1.15rem);
  line-height: 1.05;
}

.viz-guided-rescore-context > p {
  margin: 0;
  color: var(--guided-muted, var(--muted));
  font-size: 0.86rem;
  line-height: 1.2;
  text-wrap: pretty;
}

.viz-guided-rescore-context > ul {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--guided-line, var(--line));
  border-left: 1px solid var(--guided-line, var(--line));
  list-style: none;
}

.viz-guided-rescore-context li {
  min-width: 0;
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.1rem 0.35rem;
  padding: 0.3rem 0.4rem;
  border-right: 1px solid var(--guided-line, var(--line));
  border-bottom: 1px solid var(--guided-line, var(--line));
}

.viz-guided-rescore-context li > span {
  grid-row: 1 / span 2;
}

.viz-guided-rescore-context li > strong,
.viz-guided-rescore-context li > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viz-guided-rescore-context li > strong {
  font-size: 0.78rem;
  line-height: 1.05;
}

.viz-guided-rescore-context li > small {
  color: var(--guided-muted, var(--muted));
  font-family: var(--mono);
  font-size: 0.68rem;
}

.viz-guided-scenario-context {
  border-color: var(--guided-yellow, var(--signal));
  background: color-mix(in srgb, var(--guided-yellow, var(--signal)) 14%, transparent);
}

.viz-guided-scenario-context > div > span {
  color: var(--guided-ink, var(--ink));
}

.viz-guided-scenario-ranges {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.viz-guided-scenario-ranges > span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--guided-line, var(--line));
  background: var(--guided-paper, var(--paper));
}

.viz-guided-scenario-ranges b {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.viz-guided-scenario-ranges strong {
  color: var(--guided-violet, var(--signal-dark));
}

.viz-guided-scenario-audit {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0.55rem;
  border-top: 1px solid var(--guided-line, var(--line));
  border-left: 1px solid var(--guided-line, var(--line));
}

.viz-guided-scenario-audit > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 8.5rem;
}

.viz-guided-scenario-audit > div > * {
  min-width: 0;
  padding: 0.28rem 0.38rem;
  border-right: 1px solid var(--guided-line, var(--line));
  border-bottom: 1px solid var(--guided-line, var(--line));
}

.viz-guided-scenario-audit strong {
  display: flex;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.viz-guided-scenario-audit strong > span,
.viz-guided-scenario-audit small,
.viz-guided-scenario-audit-head {
  font-family: var(--mono);
}

.viz-guided-scenario-audit strong > span {
  color: var(--guided-violet, var(--signal-dark));
}

.viz-guided-scenario-audit small {
  color: var(--guided-muted, var(--muted));
  font-size: 0.7rem;
}

.viz-guided-scenario-audit-head {
  color: var(--guided-ink, var(--ink));
  background: var(--guided-yellow, var(--signal));
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.viz-dual-migration {
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.viz-dual-migration-rails {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.viz-dual-migration-rails > :only-child {
  grid-row: 1 / -1;
}

.viz-dual-migration-rail {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.72fr) minmax(0, 5fr);
  border: 1px solid var(--guided-ink, var(--ink));
}

.viz-dual-migration-rail > header {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  color: var(--guided-ink, var(--ink));
  background: var(--guided-yellow, var(--paper));
}

.viz-dual-migration-rail.is-apigee > header {
  color: var(--guided-paper, white);
  background: var(--guided-violet, var(--signal-dark));
}

.viz-dual-migration-rail > header > span,
.viz-dual-migration-rail > header > small,
.viz-dual-migration-rail li > span,
.viz-dual-migration-rail p::before {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viz-dual-migration-rail > header > span {
  font-size: 0.68rem;
  font-weight: 700;
}

.viz-dual-migration-rail > header > strong {
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  line-height: 1;
}

.viz-dual-migration-rail > header > small {
  font-size: 0.65rem;
}

.viz-dual-migration-rail > ol {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--migration-step-count), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-dual-migration-rail li {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 0.18rem;
  padding: 0.4rem;
  border-left: 1px solid var(--guided-line, var(--line));
}

.viz-dual-migration-rail li:nth-child(even) {
  background: color-mix(in srgb, var(--guided-yellow, var(--signal)) 9%, transparent);
}

.viz-dual-migration-rail li > span {
  color: var(--guided-violet, var(--signal-dark));
  font-size: 0.75rem;
  font-weight: 700;
}

.viz-dual-migration-rail li > strong {
  font-size: clamp(0.82rem, 0.9vw, 1.02rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-dual-migration-rail p {
  min-width: 0;
  margin: 0;
  color: var(--guided-muted, var(--muted));
  font-size: clamp(0.68rem, 0.73vw, 0.84rem);
  line-height: 1.12;
}

.viz-dual-migration-rail p::before {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--guided-violet, var(--signal-dark));
  font-size: 0.6rem;
  font-weight: 700;
  content: attr(data-label);
}

.presentation-stage.is-kong-guided .viz-dual-migration-rail p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.viz-apigee-roadmap {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin: 0;
}

.viz-apigee-roadmap-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  color: var(--guided-paper, white);
  background: var(--guided-violet, var(--signal-dark));
}

.viz-apigee-roadmap-banner > span,
.viz-apigee-roadmap-gates > b,
.viz-apigee-roadmap li > span,
.viz-apigee-roadmap p::before,
.viz-apigee-roadmap small::before {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viz-apigee-roadmap-banner > span {
  color: var(--guided-yellow, var(--signal));
  font-size: 0.72rem;
}

.viz-apigee-roadmap-banner > strong {
  font-size: clamp(1rem, 1.2vw, 1.4rem);
}

.viz-apigee-roadmap > ol {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--apigee-phase-count, 7), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--guided-ink, var(--ink));
  border-left: 1px solid var(--guided-ink, var(--ink));
  list-style: none;
}

.viz-apigee-roadmap li {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.22rem;
  padding: 0.45rem;
  border-right: 1px solid var(--guided-ink, var(--ink));
  border-bottom: 1px solid var(--guided-ink, var(--ink));
}

.viz-apigee-roadmap li:nth-child(even) {
  background: color-mix(in srgb, var(--guided-yellow, var(--signal)) 12%, transparent);
}

.viz-apigee-roadmap li > span {
  color: var(--guided-violet, var(--signal-dark));
  font-size: 0.78rem;
}

.viz-apigee-roadmap li > strong {
  font-size: clamp(0.88rem, 0.95vw, 1.1rem);
  line-height: 1.02;
}

.viz-apigee-roadmap li > p,
.viz-apigee-roadmap li > small {
  min-width: 0;
  margin: 0;
  color: var(--guided-muted, var(--muted));
  font-size: clamp(0.66rem, 0.72vw, 0.82rem);
  line-height: 1.12;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.viz-apigee-roadmap li > p::before,
.viz-apigee-roadmap li > small::before {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--guided-violet, var(--signal-dark));
  font-size: 0.58rem;
  content: attr(data-label);
}

.viz-apigee-roadmap-gates {
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--guided-line, var(--line));
  color: var(--guided-muted, var(--muted));
  font-size: 0.78rem;
}

.viz-apigee-roadmap-gates > b {
  margin-right: 0.5rem;
  color: var(--guided-violet, var(--signal-dark));
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .viz-guided-rescore-context > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-guided-programme.is-seven {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-guided-programme.is-seven > li,
  .viz-guided-programme.is-seven > li:nth-child(5) {
    grid-column: auto;
  }

  .viz-dual-migration-rail {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .viz-dual-migration-rail > header {
    padding: 0.35rem;
  }

  .viz-dual-migration-rail li {
    padding: 0.28rem;
  }
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .viz-apigee-roadmap {
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .viz-apigee-roadmap > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-apigee-roadmap li {
    min-height: 11rem;
    grid-template-rows: auto auto auto auto;
  }

  .viz-apigee-roadmap li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* At the desktop boundary, keep the Apigee rail readable without changing the
   tablet behavior of unrelated guided visuals. */
@media screen and (min-width: 1024px) and (max-width: 1024px) {
  .viz-apigee-roadmap {
    height: auto;
    grid-template-rows: auto auto auto;
  }

  .viz-apigee-roadmap > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-apigee-roadmap li {
    min-height: 11rem;
    grid-template-rows: auto auto auto auto;
  }

  .viz-apigee-roadmap li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 760px) {
  .viz-guided-rescore-context {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-rescore-context > ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-scenario-ranges {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-scenario-audit > div {
    grid-template-columns: minmax(0, 1fr) 3.5rem 7.5rem;
  }

  .viz-guided-programme.is-seven {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-programme.is-seven > li,
  .viz-guided-programme.is-seven > li:nth-child(5) {
    grid-column: auto;
  }

  .viz-dual-migration,
  .viz-dual-migration-rails {
    height: auto;
  }

  .viz-dual-migration-rails {
    grid-template-rows: none;
  }

  .viz-dual-migration-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-dual-migration-rail > header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
  }

  .viz-dual-migration-rail > ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-dual-migration-rail li {
    grid-template-columns: 3rem minmax(7rem, 0.8fr) minmax(0, 1.4fr);
    grid-template-rows: auto;
    gap: 0.35rem;
    border-top: 1px solid var(--guided-line, var(--line));
    border-left: 0;
  }

  .presentation-stage.is-kong-guided .viz-dual-migration-rail p {
    display: block;
    overflow: visible;
  }

  .viz-apigee-roadmap {
    height: auto;
  }

  .viz-apigee-roadmap-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-apigee-roadmap > ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-apigee-roadmap li {
    grid-template-columns: 3rem minmax(7rem, 0.8fr) minmax(0, 1.3fr);
    grid-template-rows: auto auto;
  }

  .viz-apigee-roadmap li > small {
    grid-column: 2 / -1;
  }
}

@media screen and (min-width: 1600px) {
  .viz-guided-programme.is-seven strong {
    font-size: 1.25rem;
  }

  .viz-guided-programme.is-seven p {
    font-size: 1.15rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(to right, transparent calc(100% - 1px), rgba(21, 23, 20, 0.035) 1px) 0 0 / calc(100% / 12) 100%,
    var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  color: var(--paper-bright);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  align-items: stretch;
  min-height: 74px;
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}

.site-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem var(--gutter);
  border-right: 1px solid var(--line);
  font-size: var(--text-ui);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-title strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: stretch;
}

.primary-nav a {
  display: grid;
  place-items: center;
  padding: 0.75rem clamp(0.7rem, 1.4vw, 1.35rem);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-bright);
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--signal);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.search-trigger,
.present-trigger,
.menu-toggle {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.search-trigger {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0 1rem;
}

.search-trigger kbd {
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
}

.present-trigger {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0 1.2rem;
  color: var(--paper-bright);
  background: var(--ink);
}

.present-trigger:hover {
  background: var(--signal-dark);
}

.menu-toggle {
  display: none;
  padding: 0 1rem;
}

#main-content {
  min-height: 70vh;
}

.loading-state {
  min-height: 72vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
}

.loading-index,
.eyebrow,
.section-index,
.card-label,
.resource-meta,
.metric-label,
.slide-counter,
.breadcrumb,
.filter-label,
.status-label {
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loading-index {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--ink);
  color: var(--signal);
}

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 8rem);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  min-height: clamp(460px, 70vh, 760px);
  padding: clamp(3rem, 9vh, 7rem) 0 2rem;
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: clamp(1rem, 6vw, 6rem);
}

.eyebrow {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--signal-dark);
  font-weight: 700;
}

.eyebrow::before {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.display-title {
  max-width: 1050px;
  margin: 1.25rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.8vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
  text-wrap: balance;
}

.display-title em {
  color: var(--signal);
  font-weight: 400;
}

.hero-deck {
  max-width: 740px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1.28;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: clamp(1rem, 3vw, 3.25rem);
  border-left: 1px solid var(--line-dark);
}

.hero-aside p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-copy);
}

.hero-actions {
  display: grid;
  gap: 0.65rem;
}

.action-link,
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.action-link:hover,
.button:hover {
  color: var(--paper-bright);
  background: var(--ink);
}

.action-link.is-primary,
.button.is-primary {
  color: var(--paper-bright);
  background: var(--signal-dark);
  border-color: var(--signal-dark);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}

.metric {
  min-height: 158px;
  padding: 1.35rem 1rem 1.15rem 0;
  border-right: 1px solid var(--line);
}

.metric:not(:first-child) {
  padding-left: 1rem;
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  margin-bottom: 1.8rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.metric-label {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.content-section {
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 1px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading > p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-copy);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.study-grid.is-depth {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-card {
  position: relative;
  min-height: 320px;
  padding: 1.25rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: inherit;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  text-decoration: none;
}

.study-card::after {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: var(--signal);
  font-size: 1.4rem;
  content: "↗";
}

.study-card:hover {
  background: var(--paper-bright);
}

.study-card h3 {
  max-width: 16ch;
  margin: 3.8rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.study-card p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-copy);
}

.card-count {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
}

.evidence-band {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 460px;
  margin-top: clamp(3rem, 8vw, 7rem);
  color: var(--paper-bright);
  background: var(--ink);
}

.evidence-band > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.evidence-band > div + div {
  border-left: 1px solid #4a4d47;
}

.evidence-band h2 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.evidence-band blockquote {
  max-width: 780px;
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.3vw, 3.4rem);
  line-height: 1.05;
}

.evidence-band .eyebrow {
  color: #ff7255;
}

.overview-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.overview-visual {
  min-width: 0;
  min-height: 330px;
  padding: 1.25rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper-bright) 58%, transparent);
}

.overview-visual > .section-index {
  display: block;
  margin-bottom: 1.5rem;
}

.overview-visual.is-evidence-state {
  display: flex;
  flex-direction: column;
}

.overview-visual.is-evidence-state .viz-donut {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.visual-atlas {
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.visual-grid,
.decision-visual-grid,
.lab-visuals {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.visual-grid {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.decision-visual-grid,
.lab-visuals {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.visual-panel {
  grid-column: span 6;
  min-width: 0;
  min-height: 460px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(1.1rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper-bright) 42%, transparent);
}

.visual-panel.is-compact {
  grid-column: span 4;
}

.visual-panel.is-wide {
  grid-column: span 8;
}

.decision-visual-grid > .visual-panel.is-only-panel {
  grid-column: 1 / -1;
}

.is-kong-platform-grid > .visual-panel.is-wide {
  grid-column: 1 / -1;
}

.is-kong-platform-grid {
  position: relative;
  left: 50%;
  width: min(calc(100vw - (2 * var(--gutter))), 2560px);
  transform: translateX(-50%);
}

.visual-panel-heading {
  display: grid;
  grid-template-columns: minmax(110px, 2fr) minmax(0, 5fr);
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.visual-panel-heading .section-index {
  grid-row: span 2;
}

.visual-panel-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.visual-panel-heading p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.visual-source {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: center;
  justify-self: start;
  padding: 0.45rem 0;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.visual-source span {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.visual-panel-heading > .visual-source {
  grid-column: 2;
}

.document-visual > .visual-source {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.visual-panel-body {
  min-width: 0;
  display: grid;
  align-content: center;
  padding-top: 1.5rem;
}

.visual-atlas .atlas-panel,
.visual-atlas .atlas-panel.is-compact,
.visual-atlas .atlas-panel.is-wide {
  grid-column: span 4;
  min-height: 0;
  display: block;
  padding: 0;
}

.visual-atlas .atlas-panel[open] {
  grid-column: 1 / -1;
}

.atlas-panel > summary {
  min-height: 250px;
  align-content: start;
  padding: clamp(1.1rem, 2.5vw, 2.25rem);
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.atlas-panel > summary::-webkit-details-marker {
  display: none;
}

.atlas-panel > summary:focus-visible {
  outline: 3px solid var(--signal-dark);
  outline-offset: -4px;
}

.atlas-panel[open] > summary {
  min-height: 0;
  border-bottom: 1px solid var(--line-dark);
}

.atlas-panel .visual-panel-body {
  padding: clamp(1.1rem, 2.5vw, 2.25rem);
}

.atlas-panel:not([open]) > .visual-panel-body {
  display: none;
}

.atlas-panel-action {
  grid-column: 2;
  justify-self: start;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--signal-dark);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.atlas-panel > summary .when-open,
.atlas-panel[open] > summary .when-closed {
  display: none;
}

.atlas-panel[open] > summary .when-open {
  display: inline;
}

.visual-disclosure,
.visual-disclosure.is-compact,
.visual-disclosure.is-wide {
  min-height: 0;
  display: block;
  padding: 0;
}

.decision-visual-grid > .visual-disclosure[open] {
  grid-column: 1 / -1;
}

.visual-disclosure > summary {
  min-height: 220px;
  align-content: start;
  padding: clamp(1.1rem, 2.5vw, 2.25rem);
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.visual-disclosure > summary::-webkit-details-marker {
  display: none;
}

.visual-disclosure > summary:focus-visible {
  outline: 3px solid var(--signal-dark);
  outline-offset: -4px;
}

.visual-disclosure[open] > summary {
  min-height: 0;
  border-bottom: 1px solid var(--line-dark);
}

.visual-disclosure > .visual-panel-body {
  padding: clamp(1.1rem, 2.5vw, 2.25rem);
}

.visual-disclosure:not([open]) > .visual-panel-body {
  display: none;
}

.visual-disclosure-action {
  grid-column: 2;
  justify-self: start;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--signal-dark);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-disclosure > summary .when-open,
.visual-disclosure[open] > summary .when-closed {
  display: none;
}

.visual-disclosure[open] > summary .when-open {
  display: inline;
}

@media (max-width: 1400px) {
  .visual-atlas .atlas-panel,
  .visual-atlas .atlas-panel.is-compact,
  .visual-atlas .atlas-panel.is-wide,
  .visual-atlas .atlas-panel[open] {
    grid-column: 1 / -1;
  }
}

.document-visual-context {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink);
}

.prose > .document-visual-context.is-inline {
  max-width: 100%;
  margin: 3.5rem 0;
  font-family: var(--sans);
}

.prose > .document-visual-context.is-inline .document-visual-grid {
  grid-template-columns: 1fr;
}

.document-visual-context > header h2 {
  max-width: 14ch;
  margin: 0.5rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.document-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.document-visual {
  min-width: 0;
  min-height: 380px;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-bright);
}

.document-visual:only-child {
  grid-column: 1 / -1;
}

.document-visual.is-wide {
  grid-column: 1 / -1;
}

.document-visual > .section-index {
  display: block;
  margin-bottom: 1rem;
}

.document-visual.document-evidence-panel {
  min-height: 0;
  padding: 0;
}

.document-evidence-panel > summary {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 1rem;
  align-content: center;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  cursor: pointer;
  list-style: none;
}

.document-evidence-panel > summary::-webkit-details-marker {
  display: none;
}

.document-evidence-panel > summary:focus-visible {
  outline: 3px solid var(--signal-dark);
  outline-offset: -4px;
}

.document-evidence-panel > summary .section-index {
  grid-column: 1 / -1;
}

.document-evidence-panel > summary strong {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.document-evidence-panel[open] > summary {
  border-bottom: 1px solid var(--ink);
}

.document-evidence-body {
  padding: clamp(1rem, 2.4vw, 1.75rem);
}

.document-evidence-panel:not([open]) > .document-evidence-body {
  display: none;
}

.document-evidence-action {
  align-self: end;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--signal-dark);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.document-evidence-panel > summary .when-open,
.document-evidence-panel[open] > summary .when-closed {
  display: none;
}

.document-evidence-panel[open] > summary .when-open {
  display: inline;
}

.document-evidence-body > .visual-source {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
}

/* Data-driven visual language. Charts inherit the editorial grid instead of
   introducing a second dashboard aesthetic. */
.viz,
.viz-overview {
  --viz-color-0: var(--signal);
  --viz-color-1: var(--ink);
  --viz-color-2: var(--positive);
  --viz-color-3: #9a6f23;
  --viz-color-4: #50687a;
  --viz-color-5: #8b5b66;
  --viz-empty: var(--paper-deep);
  min-width: 0;
  margin: 0;
}

.viz-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.viz-heading strong,
.viz-subhead {
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.viz-heading span {
  color: var(--muted);
  font-size: var(--viz-meta);
}

.viz-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  text-align: center;
  text-transform: uppercase;
}

.viz-bar-list {
  display: grid;
  gap: 0.64rem;
}

.viz-bar-row,
.viz-stacked-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.5fr) minmax(140px, 4fr) 42px;
  gap: 0.7rem;
  align-items: center;
}

.viz-bar-label {
  font-size: var(--viz-label);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.viz-bar-track,
.viz-stacked-track {
  position: relative;
  height: 10px;
  display: flex;
  overflow: hidden;
  background: var(--viz-empty);
}

.viz-bar-fill,
.viz-segment {
  display: block;
  min-width: 0;
  height: 100%;
  background: var(--viz-fill);
}

.viz-segment + .viz-segment {
  border-left: 1px solid var(--paper-bright);
}

.viz-bar-value {
  font-family: var(--mono);
  font-size: var(--viz-label);
  text-align: right;
}

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--viz-label);
}

.viz-legend-item {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.viz-legend-item strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--viz-meta);
}

.viz-swatch {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: var(--viz-swatch);
}

.viz-donut-layout {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1.2fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.viz-donut-ring {
  width: min(100%, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
}

.viz-donut-core {
  width: 69%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--paper-bright);
  text-align: center;
}

.viz-donut-core strong {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.viz-donut-core small {
  margin-top: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viz-donut .viz-legend {
  display: grid;
  align-content: center;
  margin: 0;
}

.overview-visual.is-evidence-state .viz-donut.is-single-status .viz-donut-layout {
  flex: 1;
  min-height: 190px;
  grid-template-columns: minmax(9rem, 11.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
}

.overview-visual.is-evidence-state .viz-donut-ring {
  width: min(100%, 11.5rem);
}

.overview-visual.is-evidence-state .viz-donut-core {
  width: 70%;
}

.overview-visual.is-evidence-state .viz-donut-core strong {
  font-size: clamp(3.15rem, 4vw, 3.75rem);
  line-height: 0.76;
}

.overview-visual.is-evidence-state .viz-donut-core small {
  margin-top: 0.7rem;
  line-height: 1;
}

.viz-donut-single-status {
  display: grid;
  gap: 0.55rem;
  align-content: center;
}

.viz-donut-single-status > span {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viz-donut-single-status > small {
  max-width: 24ch;
  color: var(--muted);
  font-size: var(--viz-label);
  line-height: 1.35;
}

@media (max-width: 520px) {
  .overview-visual.is-evidence-state .viz-donut.is-single-status .viz-donut-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .overview-visual.is-evidence-state .viz-donut-single-status {
    justify-items: center;
    text-align: center;
  }
}

.viz-ladder-list,
.viz-flow-list,
.viz-roadmap-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.viz-ladder-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.viz-ladder-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.viz-level {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--viz-meta);
}

.viz-ladder-step span {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr);
  gap: 1rem;
}

.viz-ladder-step b {
  font-size: var(--viz-copy);
}

.viz-ladder-step small {
  color: var(--muted);
  font-size: var(--viz-label);
}

.viz-matrix-table {
  border-top: 1px solid var(--line-dark);
}

.viz-matrix-header,
.viz-matrix-row {
  display: grid;
  grid-template-columns: 34px minmax(145px, 1.4fr) minmax(100px, 0.65fr) minmax(180px, 2fr);
  gap: 0.75rem;
  align-items: center;
}

.viz-matrix-header {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viz-matrix-header > small {
  font-size: inherit;
}

.viz-matrix-row {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.viz-matrix.is-compact .viz-matrix-header,
.viz-matrix.is-compact .viz-matrix-row {
  grid-template-columns: 34px minmax(145px, 1fr) minmax(100px, 0.65fr);
}

.viz-matrix-index,
.viz-status {
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viz-matrix-row > strong {
  font-size: var(--viz-copy);
}

.viz-matrix-row > small {
  color: var(--muted);
  font-size: var(--viz-label);
  line-height: 1.45;
}

.viz-status {
  justify-self: start;
  padding: 0.26rem 0.45rem;
  border: 1px solid currentColor;
  color: var(--signal-dark);
}

.viz-flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.viz-flow-list li {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-flow-list li > span {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--viz-meta);
}

.viz-flow-list strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.viz-flow-list p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: var(--viz-label);
  line-height: 1.45;
}

.viz-roadmap-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--phase-count, 6), minmax(150px, 1fr));
  overflow-x: auto;
  padding-top: 1rem;
}

.viz-roadmap-list::before {
  position: absolute;
  top: 28px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.viz-roadmap-list li {
  position: relative;
  min-width: 0;
  padding-right: 1rem;
}

.viz-roadmap-marker {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: var(--viz-meta);
}

.viz-roadmap-list li > div {
  min-width: 0;
  padding-top: 1rem;
}

.viz-roadmap-list strong,
.viz-roadmap-list b {
  display: block;
}

.viz-roadmap-list strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.viz-roadmap-list b {
  margin-top: 0.4rem;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  font-weight: 500;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.viz-roadmap-list p {
  color: var(--muted);
  font-size: var(--viz-label);
  line-height: 1.5;
}

.viz-problem-key,
.viz-problem-list li {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) minmax(240px, 1.25fr) minmax(240px, 1.5fr);
  gap: 0.8rem;
}

.viz-problem-matrix.is-compact .viz-problem-key,
.viz-problem-matrix.is-compact .viz-problem-list li {
  grid-template-columns: 42px minmax(180px, 1fr) minmax(240px, 1.35fr);
}

.viz-problem-key {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viz-problem-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.viz-problem-list li {
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.viz-problem-index {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.04em;
}

.viz-problem-copy {
  display: contents;
}

.viz-problem-copy strong,
.viz-problem-copy p,
.viz-problem-copy small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.viz-problem-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.viz-problem-copy p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.viz-problem-copy small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.viz-problem-matrix.is-compact .viz-problem-copy small {
  grid-column: 2 / -1;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.viz-problem-matrix.is-compact .viz-problem-copy small::before {
  color: var(--signal-dark);
  content: attr(data-label) " · ";
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-practice-key,
.viz-scenario-key {
  display: none;
}

.viz-practice-list,
.viz-scenario-list,
.viz-maturity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.viz-practice-list > li,
.viz-scenario-list > li,
.viz-maturity-list > li {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.8rem;
  align-content: start;
  padding: 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-practice-index,
.viz-scenario-index,
.viz-maturity-index {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.035em;
}

.viz-practice-index {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.viz-practice-index b {
  font-weight: 600;
}

.viz-practice-index small {
  color: var(--muted);
  font-size: 0.875rem;
}

.viz-practice-copy,
.viz-scenario-copy,
.viz-maturity-list > li > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.viz-practice-copy > *,
.viz-scenario-copy > *,
.viz-maturity-list > li > div > * {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.viz-practice-copy strong,
.viz-scenario-copy strong,
.viz-maturity-list strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.viz-practice-copy p,
.viz-scenario-copy p,
.viz-maturity-list p,
.viz-practice-copy small,
.viz-scenario-copy small,
.viz-maturity-list small,
.viz-practice-copy em,
.viz-scenario-copy em,
.viz-maturity-list em {
  font-size: 1rem;
  font-style: normal;
  line-height: 1.45;
}

.viz-practice-copy p::before,
.viz-practice-copy small::before,
.viz-practice-copy em::before,
.viz-scenario-copy p::before,
.viz-scenario-copy small::before,
.viz-scenario-copy em::before,
.viz-maturity-list p::before,
.viz-maturity-list small::before,
.viz-maturity-list em::before {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-style: normal;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-practice-copy p::before { content: "Minimum mechanism"; }
.viz-practice-copy small::before { content: "Acceptance evidence"; }
.viz-practice-copy em::before { content: "Hold when"; }
.viz-scenario-failure::before { content: "Failure mechanism"; }
.viz-scenario-control::before { content: "Best-practice control"; }
.viz-scenario-control-label { display: none; }
.viz-scenario-copy small::before { content: "Measurable acceptance"; }
.viz-scenario-copy em::before { content: "Accountable owner"; }
.viz-maturity-list p::before { content: "Operating outcome"; }
.viz-maturity-list small::before { content: "Required evidence"; }
.viz-maturity-list em::before { content: "Exit gate"; }

.viz-practice-copy small,
.viz-scenario-copy small,
.viz-maturity-list small {
  color: var(--muted);
}

.viz-practice-copy em,
.viz-scenario-copy em,
.viz-maturity-list em {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.viz-practice-framework.is-compact .viz-practice-list > li,
.viz-scenario-matrix.is-compact .viz-scenario-list > li {
  min-height: 156px;
}

.viz-practice-framework.is-compact .viz-practice-copy p,
.viz-scenario-matrix.is-compact .viz-scenario-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.viz-maturity-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.viz-maturity-list > li {
  min-height: 230px;
}

.viz-maturity-sequence.is-compact .viz-maturity-list > li {
  min-height: 180px;
}

.viz-study-roadmap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.viz-study-roadmap-list > li {
  min-width: 0;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-study-roadmap-meta,
.viz-study-roadmap-gates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 1rem;
}

.viz-study-roadmap-meta span {
  color: var(--signal-dark);
}

.viz-study-roadmap-meta b {
  color: var(--muted);
  font-weight: 500;
}

.viz-study-roadmap-list > li > strong {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.viz-study-roadmap-list > li > p {
  margin: 0.65rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.viz-study-roadmap-gates {
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.viz-study-roadmap-gates > span {
  color: var(--ink);
}

.viz-study-roadmap-gates i {
  color: var(--signal-dark);
  font-style: normal;
}

.viz-study-roadmap-gates a {
  min-height: 44px;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--signal-dark);
  text-decoration: none;
}

.viz-study-roadmap-gates a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.viz-study-roadmap.is-compact .viz-study-roadmap-list > li {
  min-height: 168px;
}

.viz-study-roadmap.is-compact .viz-study-roadmap-list > li > strong {
  margin-bottom: 0.8rem;
}

.viz-kps-fit-list,
.viz-kps-problem-list,
.viz-kps-case-list,
.viz-kps-roadmap-list,
.viz-kps-outcome-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.viz-kps-case-list,
.viz-kps-roadmap-list {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.viz-kps-fit-list > li,
.viz-kps-problem-list > li,
.viz-kps-case-list > li,
.viz-kps-outcome-list > li {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-kps-roadmap-list > li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-kps-index,
.viz-kps-roadmap-meta {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.035em;
}

.viz-kps-copy {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  overflow-wrap: anywhere;
}

.viz-kps-copy > strong,
.viz-kps-roadmap-list > li > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

.viz-kps-copy p,
.viz-kps-roadmap-list p {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.42;
}

.viz-kps-copy p::before,
.viz-kps-roadmap-list p::before {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--signal-dark);
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-kps-proof,
.viz-kps-hold,
.viz-kps-stop,
.viz-kps-target,
.viz-kps-exit {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.viz-kps-roadmap-meta {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.75rem;
}

.viz-kps-roadmap-meta b {
  color: var(--muted);
  font-weight: 500;
}

.viz-kps-roadmap-list > li > strong {
  margin-bottom: 0.8rem;
}

.viz-kps-roadmap-list .viz-kps-stop {
  margin-top: auto;
}

.viz-kps-fit.is-compact .viz-kps-fit-list > li,
.viz-kps-problems.is-compact .viz-kps-problem-list > li,
.viz-kps-cases.is-compact .viz-kps-case-list > li,
.viz-kps-outcomes.is-compact .viz-kps-outcome-list > li,
.viz-kps-roadmap.is-compact .viz-kps-roadmap-list > li {
  min-height: 0;
}

.viz-kps-fit.is-synopsis .viz-kps-fit-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.viz-kps-fit.is-synopsis .viz-kps-fit-list > li.has-fit-synopsis {
  min-height: 0;
  display: block;
  padding: 0;
}

.viz-kps-fit-contract {
  height: auto;
}

.viz-kps-fit-contract:not([open]) {
  height: 100%;
}

.viz-kps-fit-contract > summary {
  min-height: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.viz-kps-fit-contract:not([open]) > summary {
  min-height: 100%;
}

.viz-kps-fit.is-synopsis .viz-kps-fit-list > li.has-fit-synopsis:has(.viz-kps-fit-contract[open]) {
  grid-column: 1 / -1;
}

.viz-kps-fit-contract > summary::-webkit-details-marker {
  display: none;
}

.viz-kps-fit-contract > summary:focus-visible {
  outline: 3px solid var(--signal-dark);
  outline-offset: -4px;
}

.viz-kps-fit-summary {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.viz-kps-fit-summary strong {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

.viz-kps-fit-summary small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.viz-kps-fit-summary small::before {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--signal-dark);
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-kps-fit-action {
  grid-column: 2;
  justify-self: start;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--signal-dark);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-kps-fit-contract .when-open,
.viz-kps-fit-contract[open] .when-closed {
  display: none;
}

.viz-kps-fit-contract[open] .when-open {
  display: inline;
}

.viz-kps-fit-contract-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.viz-kps-fit-contract:not([open]) > .viz-kps-fit-contract-body {
  display: none;
}

@media (max-width: 1199px) {
  .viz-kps-fit.is-synopsis .viz-kps-fit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-kps-fit-contract-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .viz-kps-fit.is-synopsis .viz-kps-fit-list {
    grid-template-columns: 1fr;
  }
}

.kps-architecture-target {
  min-height: 520px;
}

.viz-composition-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  gap: 1.5rem;
}

.viz-composition-grid.is-single {
  grid-template-columns: 1fr;
}

.viz-type-list {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line-dark);
}

.viz-type-list > span:not(.viz-subhead) {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--viz-label);
}

.viz-type-list .viz-subhead {
  padding: 0.55rem 0;
  color: var(--muted);
}

.viz-type-list strong {
  font-family: var(--mono);
}

.viz-source-usage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.2rem;
  border: 1px solid var(--ink);
}

.viz-source-usage span {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.75rem;
  font-size: var(--viz-label);
}

.viz-source-usage span + span {
  border-left: 1px solid var(--ink);
}

.viz-source-usage strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.viz-poc-score {
  display: flex;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: 1.1rem;
}

.viz-poc-score p {
  min-width: 0;
  display: flex;
  gap: 0.8rem;
  align-items: end;
  margin: 0;
}

.viz-poc-score strong {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.viz-poc-score span {
  max-width: 14ch;
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.viz-poc-score .is-hold {
  justify-content: flex-end;
  color: var(--signal);
  text-align: right;
}

.viz-poc-rail {
  min-height: 54px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--ink);
}

.viz-poc-rail > span {
  min-width: 0;
  flex: 0 0 var(--poc-share);
  display: flex;
  align-items: center;
  padding: 0.65rem 0.8rem;
  color: var(--paper-bright);
  background: var(--poc-color);
}

.viz-poc-rail > span + span {
  border-left: 1px solid var(--paper-bright);
}

.viz-poc-cohorts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 1.15rem 0 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.viz-poc-cohorts li {
  min-width: 0;
  padding: 0.9rem 1rem 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-poc-cohorts li.is-not-run {
  color: var(--muted);
  background: var(--paper-deep);
}

.viz-poc-cohorts li > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.viz-poc-cohorts strong,
.viz-poc-cohorts b,
.viz-poc-cohorts code {
  font-family: var(--mono);
}

.viz-poc-cohorts strong {
  font-size: var(--viz-label);
}

.viz-poc-cohorts b {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
}

.viz-poc-cohorts p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.8rem 0 0;
}

.viz-poc-cohorts code {
  color: inherit;
  font-size: var(--viz-meta);
  background: transparent;
}

.viz-governance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.viz-governance-metrics > span {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.viz-governance-metrics strong {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.viz-governance-metrics small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  text-transform: uppercase;
}

.viz-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.viz-criteria-overview {
  display: grid;
  grid-template-columns: minmax(13rem, 0.82fr) minmax(0, 2.18fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

.viz-criteria-state,
.viz-criteria-composition {
  min-width: 0;
}

.viz-criteria-state {
  display: flex;
  flex-direction: column;
  padding-right: clamp(1.25rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line-dark);
}

.viz-criteria-state > .viz-subhead,
.viz-criteria-composition > header {
  min-height: 2.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.viz-criteria-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin: clamp(1.4rem, 3vw, 2.6rem) 0 1.2rem;
}

.viz-criteria-status > strong {
  color: var(--signal-dark);
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.viz-criteria-status > span {
  display: grid;
  gap: 0.15rem;
}

.viz-criteria-status b {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viz-criteria-status small,
.viz-criteria-state > p {
  color: var(--muted);
  font-size: var(--viz-label);
  line-height: 1.35;
}

.viz-criteria-state > p {
  max-width: 30ch;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-wrap: pretty;
}

.viz-criteria-composition > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.viz-criteria-composition > header > p,
.viz-criteria-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--viz-meta);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-criteria-composition > header > p strong {
  color: var(--ink);
  font-size: 1.15em;
}

.viz-criteria-composition > header > p span:first-child strong {
  color: var(--signal-dark);
}

.viz-criteria-key {
  justify-content: flex-end;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.viz-criteria-key b {
  color: var(--ink);
}

.viz-criteria-domains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-criteria-domains li {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.68rem 0.65rem 0.68rem 0;
  border-bottom: 1px solid var(--line);
}

.viz-criteria-domains li:nth-child(odd) {
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.viz-criteria-domains li:nth-child(even) {
  padding-left: 1rem;
}

.viz-criteria-domains li > strong {
  grid-column: 1 / -1;
  min-width: 0;
  font-size: var(--viz-label);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.viz-criteria-domains li > span {
  display: inline-flex;
  gap: 0.2rem;
  align-items: baseline;
  justify-self: start;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--viz-meta);
}

.viz-criteria-domains li > span small {
  color: var(--muted);
  font-size: 0.78em;
}

.viz-criteria-domains li > .is-mandatory b {
  color: var(--signal-dark);
}

.viz-criteria-domains li > .is-total {
  color: var(--muted);
}

@media (max-width: 760px) {
  .viz-criteria-overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .viz-criteria-state {
    padding: 0 0 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .viz-criteria-state > p {
    max-width: 42ch;
    margin-top: 1rem;
  }

  .viz-criteria-composition > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .viz-criteria-key {
    justify-content: flex-start;
  }

}

@media (max-width: 520px) {
  .viz-criteria-domains {
    grid-template-columns: 1fr;
  }

  .viz-criteria-domains li:nth-child(odd),
  .viz-criteria-domains li:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }
}

.page-intro {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ink);
}

.page-intro h1 {
  max-width: 900px;
  margin: 0.8rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.page-intro .lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.3;
}

.intro-note {
  align-self: end;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: var(--text-support);
}

.library-tools {
  position: sticky;
  top: 74px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) auto;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.library-tools input,
.library-tools select {
  width: 100%;
  min-height: 56px;
  padding: 0.7rem 1rem;
  border: 0;
  border-right: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-bright);
}

.result-count {
  display: grid;
  place-items: center;
  min-width: 138px;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
  color: var(--paper-bright);
  background: var(--ink);
  border-color: var(--ink);
}

.resource-list {
  border-top: 1px solid var(--ink);
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(300px, 4fr) minmax(160px, 2fr) minmax(80px, 0.8fr) 44px;
  gap: 1rem;
  align-items: center;
  min-height: 92px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.resource-row:hover {
  background: var(--paper-bright);
  box-shadow: 0 0 0 1rem var(--paper-bright);
}

.resource-row h2,
.resource-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
}

.resource-row p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-row .row-arrow {
  color: var(--signal);
  font-size: 1.25rem;
}

.empty-state,
.error-state {
  padding: 5rem 0;
  border-top: 1px solid var(--ink);
}

.empty-state h2,
.error-state h1 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
}

.document-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter) 7rem;
}

.document-header {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--ink);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.document-header h1 {
  max-width: 950px;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.document-meta-panel {
  align-self: end;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line-dark);
}

.document-meta-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1rem;
  margin: 0 0 1.25rem;
  font-size: var(--text-ui);
}

.document-meta-panel dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-meta-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0;
}

.tag {
  padding: 0.22rem 0.42rem;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-body-grid {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(0, 8fr) minmax(140px, 2fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.document-rail {
  position: sticky;
  top: 104px;
  align-self: start;
  color: var(--muted);
  font-size: var(--text-ui);
}

.document-rail a {
  display: block;
  margin: 0.4rem 0;
  text-decoration: none;
}

.document-rail a:hover {
  color: var(--signal-dark);
}

.reading-column {
  min-width: 0;
}

.document-shell.is-dataset .document-body-grid {
  display: block;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.document-shell.is-dataset .document-rail,
.document-shell.is-dataset .side-note {
  display: none;
}

.prose {
  max-width: 850px;
  font-family: var(--serif);
  font-size: var(--text-reading);
  line-height: 1.72;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1 {
  display: none;
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 110px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.12;
}

.prose h2 {
  margin: 3.5rem 0 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.document-section-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 3rem 0 1.25rem;
  padding: 0.8rem;
  border: 1px solid var(--line-dark);
  font-family: var(--sans);
}

.document-section-controls > span,
.document-section-controls output {
  color: var(--muted);
  font-size: 0.875rem;
}

.document-section-controls > span {
  flex: 1 1 18rem;
}

.document-section-controls output {
  min-width: 10rem;
  margin-left: auto;
  text-align: right;
}

.document-section-controls button,
.document-section-toggle {
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-dark);
  color: var(--signal-dark);
  background: transparent;
  cursor: pointer;
  font: 650 0.8rem/1.2 var(--mono);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.document-section-controls button:hover,
.document-section-controls button:focus-visible,
.document-section-toggle:hover,
.document-section-toggle:focus-visible {
  color: var(--paper-bright);
  background: var(--signal-dark);
}

.document-section {
  border-top: 1px solid var(--line-dark);
}

.document-section > h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 1.2rem 0;
  border-top: 0;
}

.document-section-toggle {
  min-width: 8.5rem;
}

.document-section > h2 .when-open,
.document-section[data-section-open="true"] > h2 .when-closed {
  display: none;
}

.document-section[data-section-open="true"] > h2 .when-open {
  display: inline;
}

.document-section-body {
  padding-bottom: 1.5rem;
}

.document-section-body > :first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.document-shell.is-guided-facilitator-guide {
  --guided-paper: #fffdf5;
  --guided-paper-deep: #f3efe2;
  --guided-ink: #11120f;
  --guided-muted: #62645d;
  --guided-line: #bbb7aa;
  --guided-yellow: #ffcb2f;
  --guided-violet: #5f38d7;
}

.document-shell.is-guided-facilitator-guide .prose {
  max-width: 960px;
}

.speaker-note-slide {
  margin: clamp(3rem, 6vw, 5rem) 0;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--guided-line);
}

.prose .speaker-note-slide-title {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 110px;
  border: 1px solid var(--guided-ink);
  border-top: 0.65rem solid var(--guided-yellow);
  color: var(--guided-ink);
  background: linear-gradient(135deg, var(--guided-paper) 0 74%, color-mix(in srgb, var(--guided-violet) 9%, var(--guided-paper)) 74% 100%);
  font-family: var(--sans);
  line-height: 0.98;
}

.speaker-note-slide-kicker {
  color: var(--guided-violet);
  font: 750 clamp(0.82rem, 1.4vw, 1rem)/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.speaker-note-slide-heading {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.65rem);
  font-weight: 750;
  letter-spacing: -0.05em;
}

.speaker-note-terms {
  display: grid;
  grid-template-columns: minmax(10rem, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0 0 1.6rem;
  border: 1px solid var(--guided-ink);
  border-top: 0;
  color: var(--guided-ink);
  background: color-mix(in srgb, var(--guided-violet) 7%, var(--guided-paper));
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
}

.speaker-note-terms > b {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--guided-ink);
  color: var(--guided-violet);
  font: 750 0.78rem/1.2 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.speaker-note-terms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0.8rem 1rem;
  list-style: none;
}

.speaker-note-terms li {
  margin: 0;
}

.speaker-note-terms li:not(:last-child)::after {
  margin-left: 1rem;
  color: var(--guided-violet);
  content: "·";
}

.speaker-note-primary {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid var(--guided-ink);
  border-left: 0.65rem solid var(--guided-yellow);
  color: var(--guided-ink);
  background: var(--guided-paper);
}

.prose .speaker-note-primary > h5 {
  margin: 0;
  color: var(--guided-violet);
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.prose .speaker-note-primary > h5:not(:first-child) {
  margin-top: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--guided-line);
}

.prose .speaker-note-primary > p {
  margin: 0;
  font-size: clamp(1.08rem, 1.3vw, 1.22rem);
  line-height: 1.55;
}

.prose .speaker-note-primary > p > em:only-child {
  color: var(--guided-muted);
  font-size: 0.95em;
}

.prose .speaker-note-primary > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
  list-style: none;
}

.prose .speaker-note-primary > ul > li {
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
}

@media screen and (max-width: 760px) {
  .prose .speaker-note-slide-title {
    padding: 1rem;
  }

  .speaker-note-slide-heading {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .speaker-note-terms {
    grid-template-columns: minmax(0, 1fr);
  }

  .speaker-note-terms > b {
    border-right: 0;
    border-bottom: 1px solid var(--guided-ink);
  }

  .prose .speaker-note-primary > ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prose a {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose p,
.prose li,
.prose dd,
.prose a,
.prose :not(pre) > code {
  overflow-wrap: anywhere;
  word-break: normal;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--signal);
  background: var(--paper-deep);
  font-size: 1.08em;
}

.prose code,
.code-view {
  font-family: var(--mono);
}

.prose code {
  font-size: 0.86em;
}

.code-view {
  font-size: 0.875rem;
}

.prose code {
  padding: 0.12em 0.28em;
  background: var(--paper-deep);
}

.prose pre,
.code-view {
  max-width: 100%;
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid #3f433d;
  color: #f4f1e8;
  background: #1d201d;
  line-height: 1.55;
  tab-size: 2;
}

.prose pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.code-view code {
  font-size: inherit;
}

.prose table code,
.data-table code,
.schema-dictionary code {
  font-size: 0.875rem;
}

.table-region {
  min-width: 0;
  margin: 0;
}

.prose .article-table {
  max-width: 100%;
  margin: 2rem 0;
}

.table-viewport {
  position: relative;
  min-width: 0;
}

.table-viewport[hidden] {
  display: none;
}

.table-region.can-scroll-left .table-viewport:not([hidden])::before,
.table-region.can-scroll-right .table-viewport:not([hidden])::after {
  position: absolute;
  top: 0;
  bottom: 14px;
  z-index: 8;
  width: 2.5rem;
  pointer-events: none;
  content: "";
}

.table-region.can-scroll-left .table-viewport:not([hidden])::before {
  left: 0;
  background: linear-gradient(90deg, rgba(21, 23, 20, 0.18), transparent);
}

.table-region.can-scroll-right .table-viewport:not([hidden])::after {
  right: 0;
  background: linear-gradient(270deg, rgba(21, 23, 20, 0.2), transparent);
}

.table-wrap {
  max-width: 100%;
  max-height: min(72vh, 52rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  scrollbar-color: var(--signal-dark) var(--paper-deep);
  scrollbar-gutter: stable;
}

.article-table .table-wrap {
  max-height: none;
}

.table-wrap:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.table-wrap::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid var(--paper-deep);
  border-radius: 999px;
  background: var(--line-dark);
}

.table-view-toolbar {
  min-height: 46px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-bottom: 0;
  background: var(--paper);
  font-family: var(--mono);
}

.table-view-toolbar button {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--line-dark);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.table-view-toolbar button:hover,
.table-view-toolbar button[aria-pressed="true"] {
  color: var(--paper-bright);
  background: var(--ink);
}

.table-view-status {
  align-self: center;
  margin-left: auto;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.editorial-table {
  width: var(--table-min-width, 100%);
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.data-table {
  font-size: 1rem;
}

.editorial-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.editorial-table th,
.editorial-table td {
  padding: 0.72rem 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.editorial-table tr > :last-child {
  border-right: 0;
}

.editorial-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  color: var(--paper-bright);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1.25;
}

.editorial-table thead abbr {
  text-decoration: none;
}

.editorial-table tbody tr[data-record-row]:hover > *,
.editorial-table tbody tr:not([data-record-row]):not(.data-detail-row):hover > * {
  background: color-mix(in srgb, var(--paper-deep) 64%, var(--paper-bright));
}

.editorial-table [data-column-kind="number"] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.editorial-table [data-column-kind="url"] {
  overflow-wrap: anywhere;
}

.data-table thead th:first-child {
  left: 0;
  z-index: 5;
  box-shadow: 1px 0 0 var(--line-dark);
}

.data-table .data-row-key {
  position: sticky;
  left: 0;
  z-index: 2;
  color: var(--ink);
  background: var(--paper-bright);
  font-weight: 750;
  box-shadow: 1px 0 0 var(--line);
}

.data-grid {
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.data-grid-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 0.8fr);
  gap: 1rem 2rem;
  align-items: end;
  padding: 1.4rem 0;
}

.data-grid-kicker,
.data-grid-guide,
.data-grid-count,
.table-scroll-hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.data-grid-kicker {
  text-transform: uppercase;
}

.data-grid-heading h2 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.data-grid-summary,
.data-grid-guide {
  margin: 0;
}

.data-grid-summary {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  white-space: nowrap;
  font-size: 0.875rem;
}

.data-grid-summary strong {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.data-grid-guide {
  max-width: 42ch;
  justify-self: end;
  text-align: right;
  line-height: 1.45;
}

.data-grid-tools {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-dark);
}

.data-grid-filter {
  max-width: 500px;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 0.7rem;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.data-grid-filter input {
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-size: 0.875rem;
}

.data-grid-count {
  align-self: center;
  white-space: nowrap;
}

.data-grid-modes {
  display: flex;
  border: 1px solid var(--ink);
}

.data-grid-modes button {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 750;
}

.data-grid-modes button:last-child {
  border-right: 0;
}

.data-grid-modes button[aria-pressed="true"] {
  color: var(--paper-bright);
  background: var(--ink);
}

.table-scroll-hint {
  display: none;
  margin: 0;
  padding: 0.6rem 0 0;
}

.table-scroll-hint[hidden] {
  display: none !important;
}

.table-region.has-horizontal-overflow > .table-scroll-hint,
.article-table.has-horizontal-overflow > .table-scroll-hint {
  display: block;
}

.data-detail-row > td {
  padding: 0;
  background: var(--paper);
}

.data-record-details summary {
  min-height: 44px;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 750;
}

.data-record-details summary::before {
  content: "+";
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 1.05rem;
}

.data-record-details[open] summary::before {
  content: "−";
}

.data-record-details summary::-webkit-details-marker {
  display: none;
}

.data-record-details summary small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
}

.data-record-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.data-record-details dl > div {
  min-width: 0;
  padding: 0.85rem;
  border-right: 1px solid var(--line);
}

.data-record-details dl > div:nth-child(2n) {
  border-right: 0;
}

.data-record-details dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-record-details dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.data-empty-value {
  color: var(--muted);
  font-style: italic;
}

.data-grid-empty {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--ink);
  border-top: 0;
  font-size: 0.875rem;
}

.schema-dictionary {
  border: 1px solid var(--ink);
  background: var(--paper-bright);
}

.schema-dictionary > header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.35rem 2rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--ink);
}

.schema-dictionary > header .data-grid-kicker {
  grid-column: 1;
}

.schema-dictionary h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.schema-dictionary > header p {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.schema-dictionary > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.schema-dictionary > dl > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schema-dictionary > dl > div:nth-child(2n) {
  border-right: 0;
}

.schema-dictionary dt,
.schema-dictionary dd {
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
}

.schema-dictionary dt {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.45rem;
  font-weight: 750;
}

.schema-dictionary dt > span {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-weight: 400;
}

.schema-dictionary dd {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
}

.schema-dictionary dd code {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.diagram-frame {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
}

.diagram-frame svg,
.architecture-preview svg,
.audience-diagram svg,
.slide-diagram svg {
  flex: none;
  max-width: none;
  height: auto;
}

.diagram-scroll {
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: start center;
  overflow: hidden;
  padding: clamp(1rem, 4vw, 3rem);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-dark) transparent;
}

.diagram-scroll::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.diagram-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.diagram-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-dark);
  background-clip: padding-box;
}

.diagram-frame.is-inspection-mode .diagram-scroll {
  max-height: min(74vh, 54rem);
  place-items: start;
  overflow: auto;
}

.diagram-frame.is-overview-mode .diagram-scroll svg {
  margin-inline: auto;
}

.diagram-frame.is-summary-mode .diagram-scroll {
  display: none;
}

.diagram-summary {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0.65rem;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  color: var(--paper-bright);
  background: #1a1d18;
}

.diagram-summary[hidden] {
  display: none;
}

.diagram-summary > span,
.diagram-summary > small {
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: max(0.875rem, var(--text-meta));
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.diagram-summary > strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.diagram-summary > p {
  max-width: 70ch;
  margin: 0;
  color: #d4d7cf;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.42;
}

.diagram-summary > small {
  color: #bdc2b8;
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.diagram-toolbar {
  min-height: 52px;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.diagram-toolbar button,
.diagram-zoom-status {
  min-width: 52px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--line-dark);
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diagram-toolbar button {
  cursor: pointer;
}

.diagram-toolbar button:hover,
.diagram-toolbar button[aria-pressed="true"] {
  color: var(--paper-bright);
  background: var(--ink);
}

.diagram-zoom-status {
  min-width: 146px;
  margin-left: auto;
  border-right: 0;
  color: var(--muted);
}

.diagram-mode-note {
  min-width: min(24rem, 100%);
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.35;
}

body.has-expanded-diagram {
  overflow: hidden;
}

.diagram-frame.is-expanded {
  position: fixed;
  inset: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 1000;
  width: auto;
  height: auto !important;
  min-height: 0 !important;
  max-width: none;
  max-height: none;
  background: var(--paper-bright);
  box-shadow: 0 0 0 100vmax rgba(21, 23, 20, 0.72);
}

.diagram-frame.is-expanded .diagram-scroll {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

.diagram-frame .mermaid-svg-label,
.architecture-preview .mermaid-svg-label,
.slide-diagram .mermaid-svg-label {
  fill: #151714;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
}

.diagram-frame .sequenceNumber,
.architecture-preview .sequenceNumber,
.slide-diagram .sequenceNumber {
  font-size: 16px !important;
}

.inline-diagram {
  margin: 2.5rem 0;
}

.inline-diagram .diagram-frame {
  min-height: 0;
}

.inline-diagram details {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  font-family: var(--sans);
}

.inline-diagram summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-diagram .code-view {
  margin: 0;
  border: 0;
  border-top: 1px solid #3f433d;
}

.side-note {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: var(--text-ui);
}

.architecture-grid,
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.architecture-card,
.lab-card {
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: inherit;
  text-decoration: none;
}

.architecture-card {
  padding-top: 0;
}

.architecture-preview {
  min-width: 0;
  max-width: calc(100% + 2.5rem);
  height: clamp(240px, 32vw, 360px);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 -1.25rem 1.25rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper-bright);
  overscroll-behavior: contain;
}

.architecture-preview p,
.visual-empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.architecture-preview svg {
  width: auto;
  max-width: none;
  max-height: none;
}

.architecture-card:hover,
.lab-card:hover {
  background: var(--paper-bright);
}

.architecture-card h2,
.lab-card h2 {
  max-width: 17ch;
  margin: auto 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.architecture-card p,
.lab-card p {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.diagram-mark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 68px;
  height: 68px;
}

.diagram-mark i {
  display: block;
  border: 1px solid var(--line-dark);
}

.diagram-mark i:nth-child(3n) {
  background: var(--signal);
  border-color: var(--signal);
}

.compare-summary {
  display: grid;
  grid-template-columns: 5fr 7fr;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  border: 1px solid var(--ink);
}

.compare-score {
  padding: clamp(1.5rem, 4vw, 4rem);
  color: var(--paper-bright);
  background: var(--ink);
}

.compare-score strong {
  display: block;
  margin: 2rem 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.compare-score p {
  max-width: 30ch;
  color: #bfc4bb;
}

.compare-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.compare-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.category-bars {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.category-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) 4fr auto;
  gap: 1rem;
  align-items: center;
  font-size: var(--viz-label);
}

.category-bar-track {
  height: 7px;
  background: var(--paper-deep);
}

.category-bar-track i {
  display: block;
  height: 100%;
  background: var(--signal);
}

.lab-sequence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 3rem;
  border: 1px solid var(--ink);
}

.lab-step {
  min-height: 190px;
  padding: 1.1rem;
  border-right: 1px solid var(--line-dark);
}

.lab-step:last-child {
  border-right: 0;
}

.lab-step strong {
  display: block;
  margin: 2.4rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
}

.lab-step p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.presentation-stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  color: var(--paper-bright);
  background: #121411;
}

.presentation-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
}

@media (min-width: 761px) {
  .presentation-slide:has(.slide-narrative.is-roadmap) {
    grid-template-columns: minmax(0, 17fr) minmax(300px, 7fr);
  }

  .presentation-slide:has(.slide-narrative.is-roadmap) .slide-main {
    padding: clamp(1.5rem, 3vw, 3.5rem);
  }

  .presentation-slide:has(.slide-narrative.is-roadmap) .slide-narrative {
    gap: 0.75rem;
  }

  .presentation-slide:has(.slide-narrative.is-roadmap) .slide-title {
    font-size: clamp(2.4rem, 3.6vw, 4rem);
  }

  .presentation-slide:has(.slide-narrative.is-roadmap) .slide-visual {
    padding: 0.75rem;
  }
}

.slide-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 5rem);
  border-right: 1px solid #454840;
}

.slide-title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-wrap: balance;
}

.presentation-stage .slide-title:focus {
  outline: none;
}

.slide-narrative {
  display: grid;
  grid-template-columns: minmax(270px, 5fr) minmax(320px, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin: auto 0;
}

.slide-narrative.is-diagram,
.slide-narrative.is-roadmap,
.slide-narrative.is-matrix {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.slide-narrative.is-diagram .slide-title,
.slide-narrative.is-roadmap .slide-title,
.slide-narrative.is-matrix .slide-title {
  max-width: 18ch;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
}

.slide-narrative.is-diagram .slide-visual,
.slide-narrative.is-roadmap .slide-visual,
.slide-narrative.is-matrix .slide-visual {
  max-height: none;
}

.slide-narrative.is-matrix .slide-title {
  max-width: 19ch;
  font-size: clamp(2.35rem, 3.6vw, 4.1rem);
  line-height: 0.94;
}

.slide-narrative.is-source-balance .viz-bar-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 2rem;
}

.slide-visual {
  min-width: 0;
  max-height: 66vh;
  overflow: hidden;
  padding: clamp(0.8rem, 1.7vw, 1.5rem);
  border-top: 1px solid #454840;
  border-bottom: 1px solid #454840;
}

.slide-diagram {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: var(--paper-bright);
}

.slide-diagram .diagram-scroll {
  min-height: 0;
  flex: 1 1 auto;
}

.slide-diagram svg {
  width: auto;
  max-width: none;
  max-height: none;
}

.slide-system-map {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  color: var(--paper-bright);
}

.slide-system-lane {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.slide-system-lane > b {
  color: #bdc2b8;
  font-family: var(--mono);
  font-size: var(--slide-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-system-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.slide-system-node {
  min-width: 0;
  min-height: 88px;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  border: 1px solid #72776d;
  color: #f3f0e7;
  font-size: clamp(1.25rem, 1.3vw, 1.5rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.slide-system-row.is-control .slide-system-node {
  min-height: 54px;
  border-style: dashed;
  color: #d4d7cf;
}

.slide-system-node.is-accent {
  border-color: #ff6a4d;
  color: #fff8ef;
  background: rgb(143 52 31 / 32%);
}

.slide-system-arrow {
  align-self: center;
  color: #ff6a4d;
  font-size: 1.2rem;
}

.presentation-stage .viz,
.presentation-stage .viz-overview {
  --viz-color-0: #ff6a4d;
  --viz-color-1: #f3f0e7;
  --viz-color-2: #66ad88;
  --viz-color-3: #d4a34b;
  --viz-color-4: #7ea7c2;
  --viz-color-5: #b9808d;
  --viz-empty: #343730;
  color: #f3f0e7;
}

.presentation-stage .viz-heading,
.presentation-stage .viz-bar-row,
.presentation-stage .viz-stacked-row,
.presentation-stage .viz-ladder-list,
.presentation-stage .viz-ladder-step,
.presentation-stage .viz-matrix-table,
.presentation-stage .viz-matrix-row,
.presentation-stage .viz-type-list,
.presentation-stage .viz-type-list > span:not(.viz-subhead) {
  border-color: #4b4f47;
}

.presentation-stage .viz-heading span,
.presentation-stage .viz-legend,
.presentation-stage .viz-ladder-step small,
.presentation-stage .viz-matrix-row > small,
.presentation-stage .viz-flow-list p,
.presentation-stage .viz-roadmap-list p,
.presentation-stage .viz-governance-metrics small,
.presentation-stage .viz-donut-core small {
  color: #bdc2b8;
}

.presentation-stage .viz-legend-item strong,
.presentation-stage .viz-bar-value,
.presentation-stage .viz-donut-core strong {
  color: #f3f0e7;
}

.presentation-stage .viz-donut-core,
.presentation-stage .viz-roadmap-marker {
  color: #f3f0e7;
  background: #121411;
  border-color: #72776d;
}

.presentation-stage .eyebrow,
.presentation-stage .slide-counter,
.presentation-stage .viz-heading span,
.presentation-stage .viz-bar-label,
.presentation-stage .viz-bar-value,
.presentation-stage .viz-legend,
.presentation-stage .viz-legend-item strong,
.presentation-stage .viz-matrix-index,
.presentation-stage .viz-status,
.presentation-stage .viz-source-usage span,
.presentation-stage .viz-governance-metrics small,
.presentation-stage .viz-donut-core small,
.presentation-stage .slide-audience-cue span {
  font-size: var(--slide-meta);
}

.presentation-stage .viz-heading strong,
.presentation-stage .viz-subhead,
.presentation-stage .viz-ladder-step b,
.presentation-stage .viz-matrix-row > strong,
.presentation-stage .viz-flow-list strong,
.presentation-stage .viz-roadmap-list strong,
.presentation-stage .viz-type-list > span:not(.viz-subhead),
.presentation-stage .viz-poc-cohorts strong,
.presentation-stage .viz-poc-cohorts code {
  font-size: var(--slide-data);
}

.presentation-stage .viz-poc-score span,
.presentation-stage .viz-poc-cohorts b {
  font-size: var(--slide-meta);
}

.presentation-stage .viz-poc-cohorts,
.presentation-stage .viz-poc-cohorts li {
  border-color: #5d6159;
}

.presentation-stage .viz-poc-cohorts li.is-not-run {
  color: #bdc2b8;
  background: #1b1e1a;
}

.presentation-stage .viz-poc-rail {
  border-color: #f3f0e7;
}

.presentation-stage .viz-poc-rail > .is-automated {
  background: #f3f0e7;
}

.presentation-stage .viz-flow-list,
.presentation-stage .viz-flow-list li,
.presentation-stage .viz-source-usage,
.presentation-stage .viz-source-usage span,
.presentation-stage .viz-governance-metrics,
.presentation-stage .viz-governance-metrics > span {
  border-color: #5d6159;
}

.presentation-stage .viz-flow-list strong,
.presentation-stage .viz-roadmap-list strong {
  color: #f3f0e7;
}

.presentation-stage .viz-flow-list li {
  min-height: 112px;
}

.presentation-stage .viz-matrix-row,
.presentation-stage .viz-matrix.is-compact .viz-matrix-row {
  grid-template-columns: 38px minmax(0, 1fr) minmax(110px, max-content);
}

.presentation-stage .viz-matrix-header {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.presentation-stage .viz-roadmap-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.9rem;
  overflow: visible;
  padding-top: 0;
}

.presentation-stage .viz-roadmap-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-top: 1px solid #4b4f47;
}

.presentation-stage .viz-roadmap-list li > div {
  min-width: 0;
  padding-top: 0;
}

.presentation-stage .viz-roadmap-marker {
  width: 30px;
  height: 30px;
  font-size: var(--slide-meta);
}

.presentation-stage .viz-roadmap-list::before {
  display: none;
}

.presentation-stage .viz-roadmap-list strong {
  font-size: var(--slide-data);
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: normal;
}

.presentation-stage .viz-roadmap-list b {
  font-size: var(--slide-meta);
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

.presentation-stage .viz-roadmap-list p,
.presentation-stage .viz-matrix-row > small {
  display: none;
}

.presentation-stage .viz-problem-key {
  display: none;
}

.presentation-stage .viz-problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #4b4f47;
  border-left: 1px solid #4b4f47;
}

.presentation-stage .viz-problem-list li,
.presentation-stage .viz-problem-matrix.is-compact .viz-problem-list li {
  min-height: 72px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-right: 1px solid #4b4f47;
  border-bottom: 1px solid #4b4f47;
}

.presentation-stage .viz-problem-copy {
  display: block;
}

.presentation-stage .viz-problem-index {
  font-size: var(--slide-meta);
}

.presentation-stage .viz-problem-copy strong {
  display: block;
  color: #f3f0e7;
  font-size: var(--slide-data);
  line-height: 1.12;
}

.presentation-stage .viz-problem-copy p {
  display: none;
}

.presentation-stage .viz-problem-copy small {
  display: none;
}

.presentation-stage .viz-practice-list,
.presentation-stage .viz-scenario-list,
.presentation-stage .viz-maturity-list,
.presentation-stage .viz-practice-list > li,
.presentation-stage .viz-scenario-list > li,
.presentation-stage .viz-maturity-list > li,
.presentation-stage .viz-practice-copy em,
.presentation-stage .viz-scenario-copy em,
.presentation-stage .viz-maturity-list em {
  border-color: #5d6159;
}

.presentation-stage .viz-practice-index,
.presentation-stage .viz-scenario-index,
.presentation-stage .viz-maturity-index,
.presentation-stage .viz-practice-copy p::before,
.presentation-stage .viz-practice-copy small::before,
.presentation-stage .viz-practice-copy em::before,
.presentation-stage .viz-scenario-copy p::before,
.presentation-stage .viz-scenario-copy small::before,
.presentation-stage .viz-scenario-copy em::before,
.presentation-stage .viz-maturity-list p::before,
.presentation-stage .viz-maturity-list small::before,
.presentation-stage .viz-maturity-list em::before {
  color: #ff6a4d;
}

.presentation-stage .viz-practice-copy small,
.presentation-stage .viz-scenario-copy small,
.presentation-stage .viz-maturity-list small {
  color: #bdc2b8;
}

.presentation-stage .viz-scenario-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-color: #5d6159;
}

.presentation-stage .viz-scenario-list > li,
.presentation-stage .viz-scenario-matrix.is-compact .viz-scenario-list > li {
  min-height: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.7rem;
  border-color: #5d6159;
}

.presentation-stage .viz-scenario-index {
  font-size: var(--slide-meta);
}

.presentation-stage .viz-scenario-copy {
  gap: 0.45rem;
}

.presentation-stage .viz-scenario-copy strong {
  color: #f3f0e7;
  font-size: clamp(1.45rem, 1.5vw, 1.85rem);
  line-height: 1.08;
}

.presentation-stage .viz-scenario-copy .viz-scenario-failure,
.presentation-stage .viz-scenario-copy small,
.presentation-stage .viz-scenario-copy em {
  display: none;
}

.presentation-stage .viz-scenario-copy .viz-scenario-control {
  display: -webkit-box;
  overflow: hidden;
  color: #d4d7cf;
  font-size: clamp(1.25rem, 1.25vw, 1.55rem);
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.presentation-stage .viz-scenario-copy .viz-scenario-control::before {
  content: none;
}

.presentation-stage .viz-scenario-control-label {
  display: block;
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: var(--slide-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.presentation-stage .viz-study-roadmap-list {
  grid-template-columns: repeat(var(--study-columns, 4), minmax(0, 1fr));
  border-color: #5d6159;
}

.presentation-stage .viz-study-roadmap-list > li {
  min-height: 0;
  padding: 0.75rem;
  border-color: #5d6159;
}

.presentation-stage .viz-study-roadmap.is-compact .viz-study-roadmap-list > li {
  min-height: 0;
}

.presentation-stage .viz-study-roadmap-meta,
.presentation-stage .viz-study-roadmap-gates {
  gap: 0.35rem 0.65rem;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  line-height: 1.18;
}

.presentation-stage .viz-study-roadmap-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.presentation-stage .viz-study-roadmap-meta span,
.presentation-stage .viz-study-roadmap-gates i,
.presentation-stage .viz-study-roadmap-gates a {
  color: #ff6a4d;
}

.presentation-stage .viz-study-roadmap-meta > span {
  white-space: nowrap;
}

.presentation-stage .viz-study-roadmap-meta b,
.presentation-stage .viz-study-roadmap-gates > span {
  min-width: 0;
  color: #bdc2b8;
  overflow-wrap: anywhere;
}

.presentation-stage .viz-study-roadmap-meta b {
  justify-self: end;
  text-align: right;
}

.presentation-stage .viz-study-roadmap-list > li > strong {
  display: block;
  margin: 0.65rem 0;
  color: #f3f0e7;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.presentation-stage .viz-study-roadmap-gates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  align-items: start;
  padding-top: 0.4rem;
  border-color: #4b4f47;
}

.presentation-stage .viz-study-roadmap-gates a {
  min-height: 24px;
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: start;
  overflow-wrap: anywhere;
  white-space: normal;
}

.presentation-stage .viz-kps-fit-list,
.presentation-stage .viz-kps-case-list,
.presentation-stage .viz-kps-outcome-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: #5d6159;
}

.presentation-stage .viz-kps-roadmap-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: #5d6159;
}

.presentation-stage .viz-kps-fit-list > li,
.presentation-stage .viz-kps-case-list > li,
.presentation-stage .viz-kps-outcome-list > li {
  min-height: 0;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem;
  border-color: #5d6159;
}

.presentation-stage .viz-kps-roadmap-list > li {
  min-height: 0;
  padding: 0.7rem;
  border-color: #5d6159;
}

.presentation-stage .viz-kps-fit.is-presentation .viz-kps-fit-list > li.is-fit-contract {
  min-height: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.75rem;
  align-content: start;
  padding: 0.85rem;
}

.presentation-stage .viz-kps-fit.is-presentation .viz-kps-fit-list > li.is-fit-contract:only-child {
  grid-column: 1 / -1;
}

.presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}

.presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy > strong {
  grid-column: 1 / -1;
  font-size: clamp(1.45rem, 1.7vw, 2rem);
}

.presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy p {
  min-width: 0;
  padding-top: 0.45rem;
  border-top: 1px solid #4b4f47;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.22;
}

.presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy p::before {
  margin-bottom: 0.28rem;
  font-size: max(0.875rem, var(--slide-meta));
}

.presentation-stage .viz-kps-fit-list > li.has-presentation-detail,
.presentation-stage .viz-kps-case-list > li.has-presentation-detail,
.presentation-stage .viz-kps-outcome-list > li.has-presentation-detail,
.presentation-stage .viz-kps-roadmap-list > li.has-presentation-detail {
  display: block;
  padding: 0;
}

.viz-presentation-detail {
  min-width: 0;
}

.viz-presentation-detail > summary {
  min-height: 60px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  list-style: none;
}

.viz-presentation-detail > summary::-webkit-details-marker {
  display: none;
}

.viz-presentation-detail > summary:focus-visible {
  outline: 3px solid #ff6a4d;
  outline-offset: -4px;
}

.viz-presentation-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.viz-presentation-summary-copy strong {
  color: #f3f0e7;
  font-size: var(--slide-data);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.viz-presentation-summary-copy small,
.viz-presentation-action {
  color: #bdc2b8;
  font-family: var(--mono);
  font-size: max(0.875rem, var(--slide-meta));
  line-height: 1.15;
}

.viz-presentation-action {
  min-width: 5.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #72776d;
  color: #ff6a4d;
  text-align: center;
  text-transform: uppercase;
}

.viz-presentation-detail .when-open,
.viz-presentation-detail[open] .when-closed {
  display: none;
}

.viz-presentation-detail[open] .when-open {
  display: inline;
}

.viz-presentation-detail-body {
  padding: 0 0.75rem 0.8rem 4.9rem;
  border-top: 1px solid #4b4f47;
}

.viz-presentation-detail:not([open]) > .viz-presentation-detail-body {
  display: none;
}

.presentation-stage .viz-kps-index,
.presentation-stage .viz-kps-roadmap-meta,
.presentation-stage .viz-kps-copy p::before,
.presentation-stage .viz-kps-roadmap-list p::before {
  color: #ff6a4d;
  font-size: var(--slide-meta);
}

.presentation-stage .viz-kps-index {
  overflow-wrap: anywhere;
}

.presentation-stage .viz-kps-copy {
  gap: 0.42rem;
}

.presentation-stage .viz-kps-copy > strong,
.presentation-stage .viz-kps-roadmap-list > li > strong {
  color: #f3f0e7;
  font-size: var(--slide-data);
  line-height: 1.1;
}

.presentation-stage .viz-kps-copy p,
.presentation-stage .viz-kps-roadmap-list p {
  display: block;
  overflow: visible;
  color: #d4d7cf;
  font-size: var(--slide-meta);
  line-height: 1.18;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.presentation-stage .viz-kps-copy p::before,
.presentation-stage .viz-kps-roadmap-list p::before {
  font-size: max(1rem, 0.75em);
  line-height: 1.05;
}

.presentation-stage .viz-kps-proof,
.presentation-stage .viz-kps-hold,
.presentation-stage .viz-kps-stop,
.presentation-stage .viz-kps-target,
.presentation-stage .viz-kps-exit {
  border-color: #4b4f47;
}

.presentation-stage .viz-kps-owner,
.presentation-stage .viz-kps-cadence,
.presentation-stage .viz-kps-work {
  display: block;
}

.presentation-stage .viz-kps-roadmap-meta b {
  color: #bdc2b8;
}

.presentation-stage .slide-diagram.is-kps-target {
  min-height: 0;
  height: min(40vh, 360px);
}

.slide-aside-content {
  display: contents;
}

.slide-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.3rem, 3vw, 3rem);
}

.slide-metric strong {
  display: block;
  color: #ff6a4d;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.slide-metric span {
  display: block;
  max-width: 18ch;
  margin-top: 1rem;
  color: #bdc2b8;
  font-family: var(--mono);
  font-size: var(--slide-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slide-body {
  max-width: 36ch;
  color: #d4d7cf;
  font-size: var(--slide-body);
  line-height: 1.45;
}

.slide-controls {
  position: absolute;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 3;
  display: flex;
  border: 1px solid #5d6159;
}

.slide-controls button,
.slide-controls a {
  min-width: 46px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-right: 1px solid #5d6159;
  color: var(--paper-bright);
  background: #121411;
  cursor: pointer;
  font-size: var(--slide-data);
  text-decoration: none;
}

.slide-controls :last-child {
  border-right: 0;
}

.slide-controls button:hover,
.slide-controls a:hover {
  background: var(--signal-dark);
}

.slide-source {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d4d7cf;
  font-family: var(--mono);
  font-size: var(--slide-meta);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.35;
  flex-wrap: wrap;
  max-width: 16ch;
}

@media (min-width: 761px) {
  .slide-source {
    margin-bottom: 7rem;
  }
}

.slide-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  height: 4px;
  background: var(--signal);
  transition: width 220ms ease;
}

body.is-presenting {
  overflow: hidden;
}

body.is-presenting .site-header,
body.is-presenting .site-footer {
  display: none;
}

/* Kong platform journey: one story canvas with a shallow proof strip. */
.presentation-stage.is-kong-journey .presentation-slide.is-journey-slide {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 3.5rem minmax(0, 1fr) auto;
}

.journey-phase-nav {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}

.journey-phase-spine {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--journey-phase-count, 5), minmax(0, 1fr));
  margin: 0;
  padding: 0 clamp(1.5rem, 4vw, 5rem);
  border-bottom: 1px solid #454840;
  list-style: none;
}

.journey-phase-spine li {
  min-width: 0;
  min-height: 0;
  border-left: 1px solid #343730;
  color: #858b82;
}

.journey-phase-spine li > a {
  width: 100%;
  height: 100%;
  min-height: 44px;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  box-sizing: border-box;
  padding: 0.35rem 0.8rem;
  color: inherit;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.journey-phase-spine li > a > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.journey-phase-spine li:not(.is-current) > a:hover {
  color: #fff8ef;
  background: rgb(255 255 255 / 8%);
}

.journey-phase-spine li > a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #fff8ef;
  outline-offset: -4px;
}

.journey-phase-spine li:last-child {
  border-right: 1px solid #343730;
}

.journey-phase-spine li.is-prior {
  color: #bdc2b8;
}

.journey-phase-spine li.is-current {
  color: #fff8ef;
  background: rgb(216 74 45 / 22%);
}

.journey-phase-spine span {
  color: #ff6a4d;
}

.presentation-stage.is-kong-journey .is-journey-slide > .slide-main {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  gap: 0.65rem;
  justify-content: flex-start;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 2rem) clamp(1.5rem, 4vw, 5rem);
  border-right: 0;
}

.presentation-stage.is-kong-journey .slide-narrative {
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 0;
}

.presentation-stage.is-kong-journey .slide-title,
.presentation-stage.is-kong-journey .slide-narrative.is-diagram .slide-title,
.presentation-stage.is-kong-journey .slide-narrative.is-roadmap .slide-title,
.presentation-stage.is-kong-journey .slide-narrative.is-matrix .slide-title {
  max-width: 23ch;
  font-size: clamp(2.65rem, 4.4vw, 5.25rem);
  line-height: 0.91;
}

.presentation-stage.is-kong-journey .slide-visual {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  padding: 0.55rem 0;
}

.presentation-stage.is-kong-journey .slide-diagram {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.presentation-stage.is-kong-journey .journey-proof-strip {
  grid-column: 1;
  grid-row: 3;
  min-height: 7.25rem;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  overflow: visible;
  padding: 0.8rem 13rem 0.9rem clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid #454840;
}

.presentation-stage.is-kong-journey .journey-proof-strip .slide-aside-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 4fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  overflow: visible;
  padding: 0;
}

.presentation-stage.is-kong-journey .journey-proof-strip .slide-metric strong {
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: 0.8;
  white-space: nowrap;
}

.presentation-stage.is-kong-journey .journey-proof-strip .slide-metric span,
.presentation-stage.is-kong-journey .journey-proof-copy > span {
  margin-top: 0.45rem;
  color: #bdc2b8;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-journey .journey-proof-copy {
  min-width: 0;
}

.presentation-stage.is-kong-journey .journey-proof-copy .slide-body {
  max-width: 78ch;
  margin: 0.35rem 0 0;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.28;
}

.presentation-stage.is-kong-journey .journey-proof-strip .slide-source {
  max-width: 18ch;
  margin: 0;
  font-size: 1rem;
}

.presentation-stage.is-kong-journey .slide-counter {
  margin-top: auto;
}

.presentation-stage.is-kong-journey .viz-heading {
  display: none;
}

.presentation-stage.is-kong-journey .viz-kong-journey-spine > ol,
.presentation-stage.is-kong-journey .viz-kong-options-primary,
.presentation-stage.is-kong-journey .viz-mule-boundary-groups,
.presentation-stage.is-kong-journey .viz-mule-wave-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.presentation-stage.is-kong-journey .viz-kong-journey-spine > ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #5d6159;
  border-left: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-journey-spine > ol > li {
  min-width: 0;
  min-height: clamp(10rem, 20vh, 14rem);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-right: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-journey-spine li > span,
.presentation-stage.is-kong-journey .viz-kong-options article > span,
.presentation-stage.is-kong-journey .viz-mule-boundary li > span,
.presentation-stage.is-kong-journey .viz-mule-wave-list li > span {
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.07em;
}

.presentation-stage.is-kong-journey .viz-kong-journey-spine li > strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.1vw, 2.75rem);
  font-weight: 400;
  line-height: 0.98;
}

.presentation-stage.is-kong-journey .viz-kong-journey-spine li > p {
  margin: 0;
  color: #d4d7cf;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.28;
}

.presentation-stage.is-kong-journey .viz-kong-journey-hold {
  display: flex;
  gap: 0;
  margin-top: 0.85rem;
  border: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-journey-hold > * {
  flex: 1 1 0;
  padding: 0.65rem 0.8rem;
  border-right: 1px solid #5d6159;
  font-family: var(--mono);
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.presentation-stage.is-kong-journey .viz-kong-journey-hold > *:last-child {
  border-right: 0;
}

.presentation-stage.is-kong-journey .viz-kong-journey-hold b {
  color: #ff6a4d;
}

.presentation-stage.is-kong-journey .viz-kong-options-primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #5d6159;
  border-left: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-options-primary article {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.55rem;
  padding: 0.8rem;
  border-right: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-options-primary strong {
  color: #fff8ef;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.03;
}

.presentation-stage.is-kong-journey .viz-kong-selected-grid {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 100%;
  border-top: 1px solid #5d6159;
  border-left: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-selected-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 3.5rem minmax(10rem, 0.8fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0.55rem 1rem;
  padding: 0.8rem;
  border-right: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-selected-grid article > span {
  align-self: start;
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.07em;
}

.presentation-stage.is-kong-journey .viz-kong-selected-grid strong {
  color: #fff8ef;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.presentation-stage.is-kong-journey .viz-kong-selected-grid p {
  margin: 0;
  color: #d4d7cf;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.25;
}

.presentation-stage.is-kong-journey .viz-kong-selected-grid p::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.25rem;
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-journey .viz-kong-options-primary p,
.presentation-stage.is-kong-journey .viz-kong-options-primary small {
  margin: 0;
  color: #d4d7cf;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.25;
}

.presentation-stage.is-kong-journey .viz-kong-options-primary p::before,
.presentation-stage.is-kong-journey .viz-kong-options-primary small::before,
.presentation-stage.is-kong-journey .viz-mule-wave-list p::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.25rem;
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-journey .viz-kong-options-attached {
  display: grid;
  grid-template-columns: minmax(13rem, 1.2fr) minmax(0, 5fr);
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.7rem;
}

.presentation-stage.is-kong-journey .viz-kong-options-attached > b {
  display: grid;
  place-items: center;
  padding: 0.6rem;
  border: 1px dashed #72776d;
  color: #bdc2b8;
  font-size: 1rem;
  text-align: center;
}

.presentation-stage.is-kong-journey .viz-kong-options-attached ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #5d6159;
  border-left: 1px solid #5d6159;
  list-style: none;
}

.presentation-stage.is-kong-journey .viz-kong-options-attached li {
  min-width: 0;
  padding: 0.55rem;
  border-right: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-kong-options-attached span {
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: 1rem;
}

.presentation-stage.is-kong-journey .viz-kong-options-attached strong {
  display: block;
  margin-top: 0.25rem;
  color: #d4d7cf;
  font-size: 1rem;
  line-height: 1.2;
}

.presentation-stage.is-kong-journey .viz-mule-boundary-groups {
  display: grid;
  grid-template-columns: 1.1fr 2.4fr 0.7fr;
  border-top: 1px solid #5d6159;
  border-left: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-mule-boundary-groups > section {
  min-width: 0;
  border-right: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-mule-boundary h3 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #5d6159;
  color: #ff6a4d;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-journey .viz-mule-boundary ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.presentation-stage.is-kong-journey .viz-mule-boundary section:first-child ol,
.presentation-stage.is-kong-journey .viz-mule-boundary section:last-child ol {
  grid-template-columns: 1fr;
}

.presentation-stage.is-kong-journey .viz-mule-boundary li {
  min-width: 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.65rem;
  border-right: 1px solid #454840;
  border-bottom: 1px solid #454840;
}

.presentation-stage.is-kong-journey .viz-mule-boundary strong {
  display: block;
  color: #fff8ef;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.16;
}

.presentation-stage.is-kong-journey .viz-mule-boundary p {
  margin: 0.35rem 0 0;
  color: #bdc2b8;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.2;
}

.presentation-stage.is-kong-journey .viz-mule-wave-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #5d6159;
  border-left: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-mule-wave-list li {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.45rem;
  padding: 0.65rem;
  border-right: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.presentation-stage.is-kong-journey .viz-mule-wave-list strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.55vw, 1.95rem);
  font-weight: 400;
  line-height: 1;
}

.presentation-stage.is-kong-journey .viz-mule-wave-list p {
  margin: 0;
  color: #d4d7cf;
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
  line-height: 1.2;
}

.presentation-stage.is-kong-journey .diagram-summary > p {
  font-size: clamp(1.125rem, 1.25vw, 1.5rem);
}

.presentation-stage.is-kong-journey .diagram-summary > span,
.presentation-stage.is-kong-journey .diagram-summary > small {
  font-size: 1rem;
}

.presentation-stage.is-kong-journey .diagram-toolbar button,
.presentation-stage.is-kong-journey .diagram-mode-note,
.presentation-stage.is-kong-journey .diagram-zoom-status {
  font-size: 1rem;
}

@media (min-width: 761px) and (max-width: 1200px) {
  .presentation-stage.is-kong-journey .presentation-slide.is-journey-slide {
    grid-template-rows: 3rem minmax(0, 1fr) auto;
  }

  .journey-phase-spine {
    padding: 0 1rem;
  }

  .journey-phase-spine li > a {
    gap: 0.35rem;
    padding: 0.3rem 0.35rem;
    font-size: 1rem;
  }

  .presentation-stage.is-kong-journey .is-journey-slide > .slide-main {
    padding: 0.7rem 1rem;
  }

  .presentation-stage.is-kong-journey .slide-title,
  .presentation-stage.is-kong-journey .slide-narrative.is-diagram .slide-title,
  .presentation-stage.is-kong-journey .slide-narrative.is-roadmap .slide-title,
  .presentation-stage.is-kong-journey .slide-narrative.is-matrix .slide-title {
    font-size: clamp(2.5rem, 4.8vw, 3.35rem);
  }

  .presentation-stage.is-kong-journey .journey-proof-strip {
    min-height: 6.5rem;
    gap: 0.8rem;
    padding: 0.45rem 12.5rem 0.5rem 1rem;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip .slide-aside-content {
    grid-template-columns: minmax(8.5rem, 0.55fr) minmax(0, 4fr);
    gap: 0.8rem;
  }

  .presentation-stage.is-kong-journey .journey-proof-copy .slide-body {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip .slide-source,
  .presentation-stage.is-kong-journey .journey-proof-strip .slide-metric span,
  .presentation-stage.is-kong-journey .journey-proof-copy > span {
    font-size: 1rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-journey-spine > ol > li {
    min-height: 8rem;
    padding: 0.55rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-options-primary p,
  .presentation-stage.is-kong-journey .viz-kong-options-primary small,
  .presentation-stage.is-kong-journey .viz-kong-selected-grid p,
  .presentation-stage.is-kong-journey .viz-mule-boundary strong {
    font-size: 1.125rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-options-primary article {
    gap: 0.35rem;
    padding: 0.5rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-options-attached {
    gap: 0.5rem;
    margin-top: 0.45rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-options-attached > b,
  .presentation-stage.is-kong-journey .viz-kong-options-attached li {
    padding: 0.4rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-selected-grid article {
    gap: 0.35rem 0.65rem;
    padding: 0.5rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-selected-grid p {
    line-height: 1.18;
  }

  .presentation-stage.is-kong-journey .viz-mule-boundary section:nth-child(2) ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .presentation-stage.is-kong-journey .viz-mule-boundary h3 {
    padding: 0.3rem 0.55rem;
  }

  .presentation-stage.is-kong-journey .viz-mule-boundary li {
    gap: 0.35rem;
    padding: 0.25rem;
  }

  .presentation-stage.is-kong-journey .viz-mule-boundary strong {
    line-height: 1.02;
  }

  .presentation-stage.is-kong-journey .viz-mule-boundary p {
    margin-top: 0.1rem;
    line-height: 1.05;
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list li {
    grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    padding: 0.45rem;
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list li > span {
    grid-row: 1 / span 2;
  }
}

@media (min-width: 900px) and (max-width: 1200px) {
  .presentation-stage.is-kong-journey .viz-mule-wave-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list li {
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0.3rem;
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list li > span {
    grid-row: 1 / span 2;
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list strong,
  .presentation-stage.is-kong-journey .viz-mule-wave-list p {
    grid-column: 2;
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list p {
    line-height: 1.12;
  }
}

@media (max-width: 760px) {
  .presentation-stage.is-kong-journey .presentation-slide.is-journey-slide {
    position: relative;
    inset: auto;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .presentation-stage.is-kong-journey .journey-phase-nav {
    margin-right: var(--mobile-control-rail);
  }

  .presentation-stage.is-kong-journey .journey-phase-spine {
    grid-template-columns: repeat(var(--journey-phase-count, 5), minmax(0, 1fr));
    padding: 0;
  }

  .journey-phase-spine li {
    min-height: 3rem;
  }

  .journey-phase-spine li > a {
    justify-content: center;
    padding: 0.35rem;
  }

  .journey-phase-spine li b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .presentation-stage.is-kong-journey .is-journey-slide > .slide-main {
    min-height: 0;
    overflow: visible;
    margin-right: var(--mobile-control-rail);
    padding: 1rem;
  }

  .presentation-stage.is-kong-journey .slide-title,
  .presentation-stage.is-kong-journey .slide-narrative.is-diagram .slide-title,
  .presentation-stage.is-kong-journey .slide-narrative.is-roadmap .slide-title,
  .presentation-stage.is-kong-journey .slide-narrative.is-matrix .slide-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .presentation-stage.is-kong-journey .slide-visual {
    height: auto;
    overflow: visible;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    overflow: visible;
    margin-right: var(--mobile-control-rail);
    padding: 0.85rem 1rem 4.5rem;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip .slide-aside-content {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip .slide-source {
    max-width: none;
  }

  .presentation-stage.is-kong-journey .viz-kong-journey-spine > ol,
  .presentation-stage.is-kong-journey .viz-kong-options-primary,
  .presentation-stage.is-kong-journey .viz-kong-selected-grid,
  .presentation-stage.is-kong-journey .viz-mule-boundary-groups,
  .presentation-stage.is-kong-journey .viz-mule-wave-list {
    grid-template-columns: 1fr;
  }

  .presentation-stage.is-kong-journey .viz-kong-selected-grid {
    grid-template-rows: none;
  }

  .presentation-stage.is-kong-journey .viz-kong-selected-grid article {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .presentation-stage.is-kong-journey .viz-kong-selected-grid strong,
  .presentation-stage.is-kong-journey .viz-kong-selected-grid p {
    grid-column: 2;
  }

  .presentation-stage.is-kong-journey .viz-kong-journey-spine > ol > li {
    min-height: 0;
    grid-template-columns: 2.2rem minmax(0, 0.8fr) minmax(0, 1.4fr);
    grid-template-rows: auto;
    align-items: center;
    padding: 0.65rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-journey-spine li > strong {
    font-size: 1.5rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-journey-spine li > p,
  .presentation-stage.is-kong-journey .viz-kong-options-primary p,
  .presentation-stage.is-kong-journey .viz-kong-options-primary small,
  .presentation-stage.is-kong-journey .viz-kong-selected-grid p,
  .presentation-stage.is-kong-journey .viz-mule-boundary strong,
  .presentation-stage.is-kong-journey .viz-mule-wave-list p {
    font-size: 1rem;
  }

  .presentation-stage.is-kong-journey .viz-kong-journey-hold {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .presentation-stage.is-kong-journey .viz-kong-options-attached {
    grid-template-columns: 1fr;
  }

  .presentation-stage.is-kong-journey .viz-kong-options-attached ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-stage.is-kong-journey .viz-mule-boundary ol {
    grid-template-columns: 1fr;
  }

  .presentation-stage.is-kong-journey .viz-mule-wave-list li {
    grid-template-rows: auto;
  }
}

.audience-band {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  margin: clamp(3rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.audience-band > header {
  padding: clamp(1.4rem, 3vw, 2.5rem) var(--gutter);
  border-right: 1px solid var(--ink);
}

.audience-band h2,
.audience-principle h2,
.audience-questions h2,
.audience-evidence-view h2 {
  margin: 0.8rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.audience-band header p,
.audience-principle p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

.audience-band-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-band-list a {
  min-height: 116px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0.15rem 0.6rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.audience-band-list a:nth-child(3n) {
  border-right: 0;
}

.audience-band-list a:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.audience-band-list a:hover,
.audience-band-list a:focus-visible {
  background: var(--paper-bright);
}

.audience-band-list a > span {
  grid-row: 1 / 3;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
}

.audience-band-list strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.audience-band-list small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.audience-band > .action-link {
  grid-column: 2;
  justify-self: end;
  margin: 1rem var(--gutter) 1rem 0;
}

.audience-directory .page-intro {
  min-height: 58vh;
}

.audience-index {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.audience-card {
  position: relative;
  grid-column: span 4;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  padding: clamp(1.2rem, 2.4vw, 2.2rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
}

.audience-card:hover,
.audience-card:focus-visible {
  background: var(--paper-bright);
}

.audience-card-index {
  margin-bottom: clamp(2rem, 4vw, 4.5rem);
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
}

.audience-card h2 {
  margin: 0.4rem 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.audience-card > strong {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-card p {
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--text-copy);
}

.audience-card-signal {
  align-self: end;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audience-card .row-arrow {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
}

.audience-principle {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2rem, 5vw, 6rem);
  margin: clamp(4rem, 8vw, 8rem) 0 0;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--paper-bright);
  background: var(--ink);
}

.audience-principle h2 {
  color: var(--paper-bright);
}

.audience-principle p {
  align-self: end;
  color: #c8ccc3;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
}

.audience-switcher {
  display: flex;
  overflow-x: auto;
  margin-top: 1rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  scrollbar-width: thin;
}

.audience-switcher a {
  min-width: 132px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0.65rem 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.audience-switcher a[aria-current="page"] {
  color: var(--paper-bright);
  background: var(--ink);
}

.audience-hero {
  min-height: 66vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(340px, 7fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 8rem) 0;
  border-bottom: 1px solid var(--ink);
}

.audience-hero h1 {
  max-width: 8ch;
  margin: 0.7rem 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-wrap: balance;
}

.audience-hero .lede {
  max-width: 40ch;
  margin-top: 2rem;
}

.audience-verb {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audience-decision {
  padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid var(--ink);
}

.audience-decision > p {
  max-width: 28ch;
  margin: 1.5rem 0 2.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.audience-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.audience-signal {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border-right: 1px solid var(--ink);
}

.audience-signal strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.audience-signal small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.audience-brief-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
  margin: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.audience-questions,
.audience-evidence-view {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.audience-questions {
  border-right: 1px solid var(--ink);
}

.audience-questions ol {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: audience-question;
}

.audience-questions li {
  position: relative;
  padding: 1.1rem 0 1.1rem 3rem;
  border-top: 1px solid var(--line);
  counter-increment: audience-question;
}

.audience-questions li::before {
  position: absolute;
  left: 0;
  color: var(--signal-dark);
  content: "0" counter(audience-question);
  font-family: var(--mono);
  font-size: var(--text-meta);
}

.audience-evidence-view > .viz,
.audience-evidence-view > .viz-overview,
.audience-evidence-view .audience-visual-stack,
.audience-evidence-view .audience-architecture-visual {
  margin-top: 2rem;
}

.audience-visual-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.audience-architecture-visual {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
  gap: 1.5rem;
}

.audience-diagram {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--paper-bright);
}

.audience-diagram svg {
  width: auto;
  max-width: none;
  max-height: none;
}

.audience-reading {
  margin: clamp(4rem, 8vw, 8rem) 0;
}

.audience-reading-path {
  border-top: 1px solid var(--ink);
}

.audience-reading-path > a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.audience-reading-path > a:hover,
.audience-reading-path > a:focus-visible {
  background: var(--paper-bright);
}

.audience-reading-index {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
}

.audience-reading-path small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audience-reading-path strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.audience-reading-path p {
  max-width: 78ch;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.audience-close {
  display: grid;
  grid-template-columns: 3fr 7fr 2fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--paper-bright);
  background: var(--ink);
}

.audience-close p {
  max-width: 34ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.audience-close .action-link {
  justify-self: end;
  color: var(--paper-bright);
  border-color: #777b72;
}

.slide-audience-cue {
  padding: 1rem 0;
  border-top: 1px solid #5d6159;
  border-bottom: 1px solid #5d6159;
}

.slide-audience-cue span {
  color: #9fa49a;
  font-family: var(--mono);
  font-size: var(--slide-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-audience-cue p {
  margin: 0.5rem 0 0;
  color: #f3f0e7;
  font-size: var(--slide-data);
  line-height: 1.45;
}

.search-dialog[hidden],
.toast[hidden] {
  display: none;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 8vh, 6rem) 1rem;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 17, 14, 0.76);
  backdrop-filter: blur(5px);
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(78vh, 760px);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.search-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel-header button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--text-meta);
}

.search-panel input {
  width: 100%;
  padding: 1.3rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.search-results {
  max-height: 54vh;
  overflow: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus {
  background: var(--paper-deep);
}

.search-result strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 400;
  max-width: 420px;
  padding: 0.8rem 1rem;
  color: var(--paper-bright);
  background: var(--ink);
  font-size: var(--text-ui);
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 2rem;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: var(--text-meta);
}

.site-footer p {
  max-width: 64ch;
  margin: 0;
}

.site-footer a {
  justify-self: end;
  color: var(--ink);
}

.noscript {
  padding: 2rem;
  color: white;
  background: var(--signal-dark);
}

@media (max-width: 1400px) {
  .site-header {
    grid-template-columns: 220px 1fr auto;
  }

  .primary-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    border-bottom: 1px solid var(--ink);
    background: var(--paper-bright);
  }

  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }

  .primary-nav a {
    min-height: 60px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-actions .search-trigger span,
  .header-actions .search-trigger kbd {
    display: none;
  }

  .header-actions .search-trigger::before {
    content: "⌕";
    font-size: 1.25rem;
  }

  .metric-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric:nth-child(3) {
    border-right: 0;
  }

  .metric:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .document-body-grid {
    grid-template-columns: 1fr minmax(0, 4fr);
  }

  .document-body-grid .side-note {
    display: none;
  }

  .visual-panel,
  .visual-panel.is-compact,
  .visual-panel.is-wide {
    grid-column: span 12;
  }

  .audience-band {
    grid-template-columns: 1fr;
  }

  .audience-band > header {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .audience-band > .action-link {
    grid-column: 1;
  }

  .audience-card {
    grid-column: span 6;
  }

  .audience-brief-grid {
    grid-template-columns: 1fr;
  }

  .audience-questions {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .audience-architecture-visual {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1025px) {
  .presentation-slide:has(.slide-audience-cue) .slide-aside {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.75rem;
    overflow: hidden;
    padding: clamp(1.25rem, 2vw, 2rem);
    padding-bottom: 5rem;
  }

  .presentation-slide:has(.slide-audience-cue) .slide-aside-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
  }

  .presentation-slide:has(.slide-audience-cue) .slide-metric strong {
    font-size: clamp(5rem, 6vw, 7rem);
  }

  .presentation-slide:has(.slide-audience-cue) .slide-body,
  .presentation-slide:has(.slide-audience-cue) .slide-audience-cue p {
    font-size: clamp(1.125rem, 1.25vw, 1.5rem);
    line-height: 1.3;
  }

  .presentation-slide:has(.slide-audience-cue) .slide-source {
    margin: 0;
    font-size: clamp(1rem, 1.05vw, 1.125rem);
  }

  .presentation-stage .viz-kps-fit.is-presentation > .viz-heading {
    display: none;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) {
    grid-template-columns: minmax(0, 9fr) minmax(280px, 3fr);
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) {
    gap: 0.45rem;
    justify-content: flex-start;
    overflow: hidden;
    padding: clamp(1.25rem, 2vw, 2rem);
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) .slide-narrative {
    min-height: 0;
    flex: 1;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.55rem;
    margin: 0;
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) .slide-title {
    max-width: 24ch;
    font-size: clamp(2.25rem, 3vw, 3.5rem);
    line-height: 0.92;
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) .slide-visual {
    min-height: 0;
    padding: 0.45rem;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-aside {
    overflow: hidden;
    padding: 1.5rem;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-metric strong {
    font-size: clamp(4.5rem, 7vw, 7rem);
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-metric span {
    margin-top: 0.65rem;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-body {
    font-size: clamp(1.125rem, 1.25vw, 1.5rem);
    line-height: 1.35;
  }

  .presentation-stage.is-industry-practices .presentation-slide {
    grid-template-rows: minmax(0, 1fr);
  }

  .presentation-stage.is-industry-practices .slide-main,
  .presentation-stage.is-industry-practices .slide-aside {
    min-height: 0;
  }

  .presentation-stage.is-industry-practices .slide-aside {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 6rem;
  }

  .presentation-stage.is-kong-platform .slide-main,
  .presentation-stage.is-kong-platform .slide-aside {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 6rem;
  }

  .presentation-stage.is-kong-platform .slide-visual {
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .presentation-stage.is-industry-practices .slide-main {
    padding: clamp(2.5rem, 3vw, 3rem);
  }
}

@media (max-width: 1024px) {
  .overview-visuals {
    grid-template-columns: 1fr;
  }

  .overview-visual {
    min-height: 300px;
  }

  .data-grid-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 2rem;
    padding: 1rem 0;
  }

  .document-shell.is-dataset .document-body-grid {
    padding-top: 1rem;
  }

  .data-grid-guide {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .data-grid-tools {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .data-grid-modes {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .schema-dictionary > dl {
    grid-template-columns: 1fr;
  }

  .schema-dictionary > dl > div,
  .schema-dictionary > dl > div:nth-child(2n) {
    border-right: 0;
  }

  .document-visual .viz-problem-key {
    display: none;
  }

  .document-visual .viz-problem-list li,
  .document-visual .viz-problem-matrix.is-compact .viz-problem-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .document-visual .viz-problem-copy {
    display: grid;
    gap: 0.45rem;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .presentation-stage.is-kong-platform .slide-aside-content {
    gap: 0.75rem;
  }

  .presentation-stage.is-kong-platform .slide-body,
  .presentation-stage.is-kong-platform .slide-audience-cue p {
    font-size: 1.125rem;
    line-height: 1.35;
  }

  .presentation-stage.is-kong-platform .slide-source,
  .presentation-stage.is-kong-platform .slide-metric span,
  .presentation-stage.is-kong-platform .slide-audience-cue span {
    font-size: 1rem;
  }

  .presentation-stage.is-kong-platform .slide-metric strong {
    font-size: 4rem;
  }

  .presentation-stage .viz-kps-fit.is-presentation > .viz-heading {
    display: none;
  }

  .presentation-stage.is-kong-platform .slide-main {
    padding: 1.5rem;
  }

  .presentation-stage.is-kong-platform .slide-visual {
    max-height: none;
    overflow: visible;
  }

  .presentation-stage .viz-bar-row,
  .presentation-stage .viz-stacked-row {
    grid-template-columns: minmax(110px, 1.4fr) minmax(36px, 1.6fr) 36px;
    gap: 0.4rem;
  }

  .presentation-stage .viz-kps-fit-list {
    grid-template-columns: 1fr;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) {
    gap: 0.25rem;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid #454840;
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) .slide-narrative {
    min-height: 0;
    flex: 1;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.3rem;
    margin: 0;
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) .slide-title {
    max-width: 24ch;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 0.92;
  }

  .presentation-stage.is-kong-platform .slide-main:has(.viz-kps-fit.is-presentation) .slide-visual {
    min-height: 0;
    padding: 0.25rem;
  }

  .presentation-stage .viz-kps-fit.is-presentation .viz-kps-fit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-stage .viz-kps-fit.is-presentation .viz-kps-fit-list > li.is-fit-contract {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.45rem;
  }

  .presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy {
    gap: 0.35rem 0.5rem;
  }

  .presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy > strong {
    font-size: 1.35rem;
  }

  .presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy p {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-aside {
    min-height: 0;
    height: auto;
    max-height: none;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 0.75rem;
    align-items: center;
    overflow: visible;
    padding: 0.7rem 13rem 0.7rem 1rem;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-aside-content {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    overflow: visible;
    padding: 0;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-aside-content:not(:has(.slide-audience-cue)) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation):has(.slide-audience-cue) .slide-aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(130px, 0.55fr);
    grid-template-rows: auto auto;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation):has(.slide-audience-cue) .slide-aside-content {
    display: contents;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation):has(.slide-audience-cue) .slide-audience-cue {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation):has(.slide-audience-cue) .slide-body {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation):has(.slide-audience-cue) .slide-metric {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation):has(.slide-audience-cue) .slide-source {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-metric {
    display: flex;
    gap: 0.55rem;
    align-items: center;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-metric strong {
    font-size: 3rem;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-metric span,
  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-audience-cue span,
  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-source {
    margin: 0;
    font-size: 1rem;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-audience-cue {
    padding: 0;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-audience-cue p,
  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-body {
    margin: 0.2rem 0 0;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  .presentation-slide:has(.viz-kps-fit.is-presentation) .slide-source {
    max-width: 15ch;
  }

  .presentation-stage .viz-kps-fit-list .viz-presentation-detail > summary {
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  }

  .presentation-stage.is-industry-practices {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .presentation-stage.is-industry-practices .presentation-slide {
    position: relative;
    inset: auto;
    min-height: 100dvh;
    grid-template-rows: auto;
    align-items: start;
  }

  .presentation-stage.is-industry-practices .slide-main {
    min-height: 100dvh;
    overflow: visible;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-bottom: 6rem;
  }

  .presentation-stage.is-industry-practices .slide-narrative {
    margin: 0;
  }

  .presentation-stage.is-industry-practices .slide-counter {
    margin-top: 1rem;
  }

  .presentation-stage.is-industry-practices .slide-aside {
    position: sticky;
    top: 0;
    align-self: start;
  }

  .presentation-stage.is-industry-practices .slide-controls,
  .presentation-stage.is-industry-practices .slide-progress {
    position: fixed;
  }

  .presentation-slide {
    min-height: 0;
  }

  .slide-main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .slide-aside {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
    justify-content: stretch;
    overflow: hidden;
    padding-bottom: 6.25rem;
  }

  .slide-aside-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 0.35rem;
    overscroll-behavior: contain;
  }

  .presentation-stage .slide-source {
    overflow: visible;
    flex-wrap: wrap;
    margin-bottom: 0;
    font-size: 1rem;
    text-overflow: clip;
    white-space: normal;
  }

  .presentation-stage .viz-scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 64px;
  }

  .site-title {
    min-width: 0;
    padding-left: 1rem;
  }

  .site-title span {
    font-size: 0.78rem;
  }

  .site-title strong {
    font-size: 1.05rem;
  }

  .menu-toggle {
    order: 2;
  }

  .header-actions {
    order: 3;
  }

  .header-actions .present-trigger {
    display: none;
  }

  .primary-nav {
    top: 64px;
  }

  .primary-nav.is-open {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .document-shell {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .page-hero,
  .page-intro,
  .document-header,
  .section-heading,
  .evidence-band,
  .compare-summary {
    grid-template-columns: 1fr;
  }

  .audience-band-list {
    grid-template-columns: 1fr;
  }

  .audience-band-list a,
  .audience-band-list a:nth-child(3n),
  .audience-band-list a:nth-last-child(-n + 3) {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audience-band-list a:last-child {
    border-bottom: 0;
  }

  .audience-index,
  .audience-principle,
  .audience-hero,
  .audience-close {
    grid-template-columns: 1fr;
  }

  .audience-card {
    grid-column: 1;
    min-height: 300px;
  }

  .audience-principle {
    gap: 1.5rem;
  }

  .audience-hero {
    min-height: 0;
    gap: 2rem;
  }

  .audience-hero h1 {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .audience-decision {
    padding: 2rem 0 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .audience-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-signal {
    min-height: 122px;
  }

  .audience-questions,
  .audience-evidence-view {
    padding: 1.5rem 0;
  }

  .audience-visual-stack {
    grid-template-columns: 1fr;
  }

  .audience-reading-path > a {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .audience-reading-path p {
    font-size: var(--text-support);
  }

  .audience-close .action-link {
    justify-self: start;
  }

  .page-hero {
    min-height: 0;
    gap: 3rem;
    padding-top: 3rem;
  }

  .display-title {
    font-size: clamp(3.4rem, 18vw, 6rem);
  }

  .hero-deck {
    margin-top: 3rem;
  }

  .hero-aside {
    gap: 2rem;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-visuals,
  .document-visual-grid {
    grid-template-columns: 1fr;
  }

  .overview-visual,
  .document-visual {
    min-height: 280px;
  }

  .visual-panel {
    min-height: 0;
  }

  .visual-panel-heading {
    grid-template-columns: 1fr;
  }

  .visual-panel-heading .section-index {
    grid-row: auto;
  }

  .visual-panel-heading > .visual-source {
    grid-column: auto;
  }

  .atlas-panel-action,
  .visual-disclosure-action {
    grid-column: auto;
  }

  .viz-donut-layout,
  .viz-composition-grid,
  .viz-overview {
    grid-template-columns: 1fr;
  }

  .viz-poc-cohorts {
    grid-template-columns: 1fr;
  }

  .viz-donut-ring {
    width: 160px;
  }

  .viz-bar-row,
  .viz-stacked-row {
    grid-template-columns: minmax(105px, 1.2fr) minmax(80px, 1.8fr) 36px;
    gap: 0.45rem;
  }

  .viz-matrix-header,
  .viz-matrix-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }

  .viz-matrix-header > small {
    display: none;
  }

  .viz-matrix-row > small {
    grid-column: 2 / -1;
    display: block;
    padding-top: 0.15rem;
    font-size: var(--viz-label);
  }

  .viz-problem-key {
    display: none;
  }

  .viz-problem-list li,
  .viz-problem-matrix.is-compact .viz-problem-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.85rem 0;
  }

  .viz-problem-copy {
    display: block;
  }

  .viz-problem-copy p,
  .viz-problem-copy small {
    display: block;
    margin-top: 0.45rem;
  }

  .viz-practice-list,
  .viz-scenario-list,
  .viz-maturity-list,
  .presentation-stage .viz-scenario-list {
    grid-template-columns: 1fr;
  }

  .viz-practice-list > li,
  .viz-scenario-list > li,
  .viz-maturity-list > li {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.85rem;
  }

  .viz-study-roadmap-list {
    grid-template-columns: 1fr;
  }

  .viz-study-roadmap-list > li,
  .viz-study-roadmap.is-compact .viz-study-roadmap-list > li {
    min-height: 0;
  }

  .viz-kps-fit-list,
  .viz-kps-problem-list,
  .viz-kps-case-list,
  .viz-kps-roadmap-list,
  .viz-kps-outcome-list,
  .presentation-stage .viz-kps-fit-list,
  .presentation-stage .viz-kps-case-list,
  .presentation-stage .viz-kps-roadmap-list,
  .presentation-stage .viz-kps-outcome-list {
    grid-template-columns: 1fr;
  }

  .viz-kps-fit-list > li,
  .viz-kps-problem-list > li,
  .viz-kps-case-list > li,
  .viz-kps-outcome-list > li,
  .presentation-stage .viz-kps-fit-list > li,
  .presentation-stage .viz-kps-case-list > li,
  .presentation-stage .viz-kps-outcome-list > li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .viz-ladder-step span {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .viz-governance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }

  .metric:nth-child(even) {
    padding-left: 1rem;
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading {
    gap: 1rem;
  }

  .study-grid,
  .study-grid.is-depth,
  .architecture-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .study-card {
    min-height: 260px;
  }

  .evidence-band > div + div {
    border-top: 1px solid #4a4d47;
    border-left: 0;
  }

  .library-tools {
    top: 64px;
    grid-template-columns: 1fr auto;
  }

  .library-tools select {
    display: none;
  }

  .resource-row {
    grid-template-columns: 72px 1fr 32px;
    gap: 0.65rem;
  }

  .resource-row p,
  .resource-row .resource-type {
    display: none;
  }

  .document-header {
    gap: 2rem;
  }

  .document-shell.is-dataset .document-header {
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .document-shell.is-dataset .document-meta-panel {
    padding-top: 0.75rem;
  }

  .document-shell.is-dataset .document-meta-panel dl {
    margin-bottom: 0.5rem;
  }

  .document-shell.is-dataset .tag-list {
    display: none;
  }

  .document-shell.is-dataset .document-body-grid {
    padding-top: 1rem;
  }

  .document-meta-panel {
    padding: 1rem 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .document-body-grid {
    grid-template-columns: 1fr;
  }

  .document-rail {
    position: static;
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }

  .document-rail a {
    flex: 0 0 auto;
  }

  .data-grid-heading,
  .data-grid-tools,
  .schema-dictionary > header {
    grid-template-columns: 1fr;
  }

  .data-grid-heading {
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .data-grid-summary,
  .data-grid-guide,
  .data-grid-modes {
    grid-column: 1;
    justify-self: start;
  }

  .data-grid-tools {
    gap: 0.75rem;
    align-items: stretch;
  }

  .data-grid-filter {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .data-grid-count {
    justify-self: start;
  }

  .data-grid-modes {
    width: 100%;
  }

  .data-grid-modes button {
    flex: 1 1 50%;
  }

  .table-wrap {
    max-height: min(70vh, 42rem);
  }

  .data-record-details dl {
    grid-template-columns: 1fr;
  }

  .data-record-details dl > div,
  .data-record-details dl > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .data-record-details dl > div:last-child {
    border-bottom: 0;
  }

  .schema-dictionary > header .data-grid-kicker,
  .schema-dictionary h3,
  .schema-dictionary > header p {
    grid-column: 1;
    grid-row: auto;
  }

  .schema-dictionary > dl > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .prose {
    font-size: var(--text-reading);
  }

  .compare-score strong {
    font-size: 7rem;
  }

  .lab-sequence {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-step:nth-child(2) {
    border-right: 0;
  }

  .lab-step:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .presentation-slide {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 100dvh;
  }

  .presentation-stage {
    --mobile-control-rail: 4.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .slide-main {
    min-height: 58dvh;
    margin-right: var(--mobile-control-rail);
    padding: 1.15rem;
    border-right: 0;
    border-bottom: 1px solid #454840;
  }

  .slide-title {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 0.88;
  }

  .slide-narrative {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .slide-visual {
    max-height: none;
    overflow: visible;
    padding: 0.6rem 0;
  }

  .presentation-stage .viz-heading {
    display: flex;
  }

  .presentation-stage .viz-heading span {
    display: none;
  }

  .presentation-stage .viz-matrix-row,
  .presentation-stage .viz-matrix.is-compact .viz-matrix-row {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.45rem;
    padding: 0.45rem 0;
  }

  .presentation-stage .viz-matrix-index {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .presentation-stage .viz-matrix-row > strong,
  .presentation-stage .viz-status {
    grid-column: 2;
  }

  .presentation-stage .viz-status {
    margin-top: 0.1rem;
  }

  .presentation-stage .viz-matrix-row > strong {
    font-size: 1.125rem;
    line-height: 1.15;
  }

  .presentation-stage .viz-status,
  .presentation-stage .viz-matrix-index {
    font-size: 1rem;
  }

  .presentation-stage .viz-bar-list {
    gap: 0.32rem;
  }

  .presentation-stage .viz-bar-row,
  .presentation-stage .viz-stacked-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.3rem 0.55rem;
  }

  .presentation-stage .viz-bar-label {
    grid-column: 1;
    grid-row: 1;
  }

  .presentation-stage .viz-bar-track,
  .presentation-stage .viz-stacked-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .presentation-stage .viz-bar-value {
    grid-column: 2;
    grid-row: 1;
  }

  .slide-narrative.is-source-balance .viz-bar-list {
    grid-template-columns: 1fr;
  }

  .presentation-stage .viz-roadmap-list {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-top: 0;
  }

  .presentation-stage .viz-roadmap-list::before {
    display: none;
  }

  .presentation-stage .viz-roadmap-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    padding: 0.25rem 0;
  }

  .presentation-stage .viz-roadmap-list li > div {
    padding-top: 0;
  }

  .presentation-stage .viz-problem-list {
    grid-template-columns: 1fr;
  }

  .presentation-stage .viz-problem-list li,
  .presentation-stage .viz-problem-matrix.is-compact .viz-problem-list li {
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 0.5rem 0;
  }

  .presentation-stage .viz-problem-copy p {
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }

  .presentation-stage .viz-study-roadmap-list {
    grid-template-columns: 1fr;
  }

  .presentation-stage .viz-scenario-list > li,
  .presentation-stage .viz-scenario-matrix.is-compact .viz-scenario-list > li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 0.55rem 0;
  }

  .presentation-stage .viz-scenario-copy strong {
    font-size: 1.125rem;
  }

  .presentation-stage .viz-scenario-copy .viz-scenario-control {
    font-size: 1rem;
  }

  .presentation-stage .viz-scenario-control-label {
    font-size: 0.875rem;
  }

  .presentation-stage .viz-study-roadmap-list > li {
    min-height: 0;
  }

  .presentation-stage .viz-kps-copy p,
  .presentation-stage .viz-kps-roadmap-list p {
    display: block;
    overflow: visible;
    font-size: 1rem;
    -webkit-line-clamp: unset;
  }

  .presentation-stage .viz-kps-owner,
  .presentation-stage .viz-kps-cadence,
  .presentation-stage .viz-kps-work {
    display: block;
  }

  .presentation-stage .viz-kps-fit-list,
  .presentation-stage .viz-kps-case-list,
  .presentation-stage .viz-kps-outcome-list,
  .presentation-stage .viz-kps-roadmap-list {
    grid-template-columns: 1fr;
  }

  .presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy {
    grid-template-columns: 1fr;
  }

  .presentation-stage .viz-kps-fit.is-presentation .is-fit-contract .viz-kps-copy > strong {
    grid-column: auto;
  }

  .viz-presentation-detail > summary {
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .viz-presentation-action {
    grid-column: 2;
    min-width: 0;
    justify-self: start;
    font-size: 0.875rem;
  }

  .viz-presentation-detail-body {
    padding: 0 0.55rem 0.7rem 3.6rem;
  }

  .presentation-stage .slide-diagram.is-kps-target {
    min-height: 0;
  }

  .slide-diagram {
    min-height: 0;
    height: 42vh;
    padding: 0;
  }

  .slide-diagram.is-summary-mode {
    height: auto;
  }

  .presentation-stage:not(.is-kong-guided) .slide-diagram.is-summary-mode {
    height: auto;
    max-height: none;
  }

  .slide-diagram.is-summary-mode .diagram-summary {
    flex: 0 0 auto;
    min-height: 17rem;
  }

  .slide-diagram svg {
    max-height: none;
  }

  .slide-narrative.is-diagram .slide-title,
  .slide-narrative.is-roadmap .slide-title,
  .slide-narrative.is-matrix .slide-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .slide-system-map {
    gap: 0.45rem;
  }

  .slide-system-lane {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.4rem;
  }

  .slide-system-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .slide-system-arrow {
    display: none;
  }

  .slide-system-node,
  .slide-system-row.is-control .slide-system-node {
    min-height: 46px;
    flex-basis: calc(50% - 0.35rem);
    padding: 0.4rem;
    font-size: 1rem;
  }

  .slide-aside {
    min-height: 42dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.7rem 1rem;
    overflow: visible;
    margin-right: var(--mobile-control-rail);
    padding: 0.85rem 1rem 4.25rem;
  }

  .slide-metric {
    grid-column: 1;
  }

  .slide-audience-cue {
    grid-column: 2;
  }

  .slide-body,
  .slide-source {
    grid-column: 1 / -1;
  }

  .slide-metric strong {
    font-size: 3.35rem;
  }

  .slide-metric span {
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .slide-audience-cue {
    padding: 0.5rem 0;
  }

  .slide-audience-cue p {
    margin-top: 0.3rem;
    font-size: 1rem;
    line-height: 1.3;
  }

  .slide-body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .slide-source {
    align-self: end;
    max-width: none;
    font-size: 1rem;
  }

  .slide-controls {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    flex-direction: column;
  }

  .slide-controls button,
  .slide-controls a {
    padding: 0.45rem;
    border-right: 0;
    border-bottom: 1px solid #5d6159;
  }

  .slide-controls :last-child {
    border-bottom: 0;
  }

  .slide-progress {
    position: fixed;
  }

  .search-result {
    grid-template-columns: 80px 1fr;
  }

  .search-result > :last-child {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .site-footer a {
    justify-self: start;
  }

  .document-visual .viz-roadmap-list {
    grid-template-columns: 1fr;
    gap: 0.8rem 1rem;
    overflow: visible;
    padding-top: 0;
  }

  .document-visual .viz-roadmap-list::before {
    display: none;
  }

  .document-visual .viz-roadmap-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0;
  }

  .document-visual .viz-roadmap-list li > div {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .presentation-stage .viz-roadmap-list {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-top: 0;
  }

  .presentation-stage .viz-roadmap-list::before {
    display: none;
  }

  .presentation-stage .viz-roadmap-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.4rem;
    align-items: start;
    padding: 0.2rem 0;
  }

  .presentation-stage .viz-roadmap-list li > div {
    padding-top: 0;
  }
}

@media (min-width: 560px) and (max-width: 760px) {
  .presentation-slide {
    grid-template-rows: auto auto;
  }
}

@media (min-width: 560px) and (max-width: 760px) and (max-height: 760px) {
  .slide-title {
    font-size: 3.25rem;
  }
}

/* Prose keeps a readable measure; evidence artifacts earn a wider surface.
   Presentation modes are semantic and reusable rather than route-specific. */
@media (min-width: 1200px) {
  .document-shell .prose > .artifact-shell,
  .document-shell .prose .document-section-body > .artifact-shell {
    position: relative;
    left: 50%;
    width: min(calc(100vw - (2 * var(--gutter))), 1600px);
    max-width: none;
    transform: translateX(-50%);
  }

  .document-shell .prose > .document-section-controls {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .prose > .document-visual-context.is-inline .document-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-visual .viz-roadmap-list {
    grid-template-columns: repeat(var(--phase-count, 7), minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .document-shell .prose > .artifact-shell,
  .document-shell .prose .document-section-body > .artifact-shell {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .document-visual-grid {
    grid-template-columns: 1fr;
  }

  .document-visual .viz-roadmap-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 0;
    overflow: visible;
    padding-top: 0;
  }

  .document-visual .viz-roadmap-list::before {
    display: none;
  }

  .document-visual .viz-roadmap-list li {
    padding: 1rem 1rem 1.5rem 0;
    border-top: 1px solid var(--line-dark);
  }
}

.article-table.is-reading-mode,
.article-table.is-reading-mode .table-viewport,
.article-table.is-reading-mode .table-wrap {
  max-width: 100%;
  overflow: visible;
}

.article-table.is-reading-mode .table-wrap {
  border: 0;
  scrollbar-gutter: auto;
}

.article-table.is-reading-mode .table-viewport::before,
.article-table.is-reading-mode .table-viewport::after,
.article-table.is-reading-mode .table-scroll-hint,
.article-table.is-reading-mode colgroup {
  display: none;
}

.article-table.is-reading-mode thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.article-table.is-reading-mode .editorial-table,
.article-table.is-reading-mode tbody {
  width: 100% !important;
  min-width: 0;
  display: block;
  --table-min-width: 100% !important;
}

.article-table.is-reading-mode tbody tr {
  width: 100% !important;
  min-width: 0;
  display: block;
  margin-bottom: 1rem;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
}

.article-table.is-reading-mode tbody td {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 2fr);
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-right: 0;
}

.article-table.is-reading-mode tbody td:last-child {
  border-bottom: 0;
}

.article-table.is-reading-mode tbody td::before {
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  content: attr(data-column-label);
}

.article-table.is-reading-mode .table-card-value {
  min-width: 0;
}

.table-row-toggle {
  display: none;
}

.article-table.is-reading-mode .table-row-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-dark);
  color: var(--signal-dark);
  background: transparent;
  cursor: pointer;
  font: 650 0.8rem/1.2 var(--mono);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.article-table.is-reading-mode .table-row-toggle:hover,
.article-table.is-reading-mode .table-row-toggle:focus-visible {
  color: var(--paper-bright);
  background: var(--signal-dark);
}

.article-table.is-reading-mode tbody tr[data-row-expanded="false"] td:not(.is-row-key-cell):not(.is-row-summary-cell) {
  display: none;
}

.article-table.is-reading-mode tbody tr[data-row-expanded="false"] td:last-of-type {
  border-bottom: 0;
}

.document-evidence-panel[open] {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .table-view-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-view-toolbar button:nth-of-type(2) {
    border-right: 0;
  }

  .table-view-status {
    grid-column: 1 / -1;
    margin: 0;
    border-top: 1px solid var(--line-dark);
  }

  .article-table.is-reading-mode tbody td {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .diagram-toolbar button,
  .diagram-zoom-status {
    flex: 1 1 auto;
  }

  .diagram-mode-note {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .slide-diagram .diagram-toolbar {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slide-diagram .diagram-toolbar button {
    min-height: 44px;
    padding: 0.35rem 0.25rem;
    border-right: 1px solid var(--line-dark);
    font-size: 0.75rem;
  }

  .slide-diagram .diagram-mode-note {
    display: none;
  }

  .slide-diagram .diagram-zoom-status {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    padding: 0.25rem;
    justify-content: center;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .document-rail,
  .header-actions,
  .library-tools,
  .filter-row,
  .slide-controls,
  .table-view-toolbar,
  .table-row-toggle,
  .document-section-controls,
  .document-section-toggle,
  .diagram-toolbar,
  .table-scroll-hint,
  .atlas-panel-action,
  .visual-disclosure-action,
  .document-evidence-action,
  .viz-presentation-action,
  .viz-kps-fit-action {
    display: none !important;
  }

  body {
    overflow: visible !important;
    background: white;
  }

  .page-shell,
  .document-shell {
    width: 100%;
    padding: 0;
  }

  .document-shell .prose > .artifact-shell,
  .document-shell .prose .document-section-body > .artifact-shell {
    position: static;
    left: auto;
    width: 100%;
    transform: none;
  }

  .article-table.is-reading-mode .editorial-table {
    display: table;
  }

  .article-table.is-reading-mode thead {
    position: static;
    width: auto;
    height: auto;
    display: table-header-group;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .article-table.is-reading-mode colgroup {
    display: table-column-group;
  }

  .article-table.is-reading-mode tbody {
    display: table-row-group;
  }

  .article-table.is-reading-mode tbody tr {
    display: table-row;
  }

  .article-table.is-reading-mode tbody td,
  .article-table.is-reading-mode tbody tr[data-row-expanded="false"] td {
    display: table-cell;
  }

  .article-table.is-reading-mode tbody td::before {
    display: none;
  }

  .atlas-panel > .visual-panel-body {
    display: grid !important;
  }

  .visual-disclosure > .visual-panel-body,
  .document-evidence-panel > .document-evidence-body,
  .viz-presentation-detail > .viz-presentation-detail-body,
  .viz-kps-fit-contract > .viz-kps-fit-contract-body {
    display: grid !important;
  }

  .viz-kps-fit.is-synopsis .viz-kps-fit-list {
    grid-template-columns: 1fr !important;
  }

  .viz-kps-fit-contract,
  .viz-kps-fit-contract:not([open]) {
    height: auto !important;
  }

  .viz-kps-fit-contract > summary,
  .viz-kps-fit-contract:not([open]) > summary {
    min-height: 0 !important;
  }

  .diagram-frame .diagram-summary {
    display: none !important;
  }

  .diagram-frame .diagram-scroll,
  .diagram-frame .diagram-scroll[hidden] {
    min-height: 0 !important;
    display: grid !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .diagram-frame .diagram-scroll svg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .diagram-frame.is-expanded {
    position: static;
    inset: auto;
    width: 100%;
    height: auto !important;
    box-shadow: none;
  }

  .document-section-body[hidden] {
    display: block !important;
  }

  .presentation-stage {
    position: static;
    inset: auto;
    overflow: visible;
    color: var(--ink);
    background: white;
  }

  .presentation-stage *,
  .presentation-stage .viz,
  .presentation-stage .viz-overview,
  .presentation-stage .slide-system-map,
  .presentation-stage .slide-system-node {
    color: var(--ink) !important;
    border-color: var(--line-dark) !important;
  }

  .presentation-stage .slide-main,
  .presentation-stage .slide-aside,
  .presentation-stage .slide-visual,
  .presentation-stage .slide-diagram,
  .presentation-stage .diagram-summary,
  .presentation-stage .viz-presentation-detail,
  .presentation-stage .viz-presentation-detail > summary,
  .presentation-stage .viz-presentation-detail-body,
  .presentation-stage .viz-donut-core,
  .presentation-stage .viz-roadmap-marker,
  .presentation-stage .slide-system-map,
  .presentation-stage .slide-system-node {
    background: white !important;
  }

  .presentation-stage .slide-progress {
    display: none !important;
  }

  .presentation-slide {
    position: static;
    inset: auto;
    min-height: 0;
    display: block;
    overflow: visible;
    break-after: page;
  }

  .presentation-stage .slide-main,
  .presentation-stage .slide-aside,
  .presentation-stage .slide-aside-content,
  .presentation-stage .slide-visual,
  .presentation-stage .slide-diagram {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}

@page kong-journey-slide {
  size: 16in 9in;
  margin: 0.25in;
}

@media print {
  .presentation-stage.is-kong-journey .presentation-slide.is-journey-slide {
    page: kong-journey-slide;
    width: 15.5in;
    height: 8.5in;
    min-height: 8.5in;
    max-height: 8.5in;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 0.48in minmax(0, 1fr) auto;
    overflow: hidden;
    break-after: page;
  }

  .presentation-stage.is-kong-journey .journey-phase-nav,
  .presentation-stage.is-kong-journey .journey-phase-spine {
    min-height: 0;
  }

  .presentation-stage.is-kong-journey .journey-phase-spine {
    padding: 0 0.3in;
  }

  .presentation-stage.is-kong-journey .journey-phase-spine li > a {
    min-height: 0;
    color: inherit !important;
    text-decoration: none !important;
    outline: 0 !important;
  }

  .presentation-stage.is-kong-journey .is-journey-slide > .slide-main {
    width: auto;
    height: auto;
    min-height: 0;
    overflow: hidden !important;
    padding: 0.16in 0.3in;
  }

  .presentation-stage.is-kong-journey .slide-narrative,
  .presentation-stage.is-kong-journey .slide-visual,
  .presentation-stage.is-kong-journey .slide-diagram {
    min-height: 0;
    height: 100%;
    overflow: hidden !important;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip {
    width: auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible !important;
    padding: 0.12in 0.3in 0.15in;
  }

  .presentation-stage.is-kong-journey .diagram-frame .diagram-summary,
  .presentation-stage.is-kong-journey .diagram-frame .diagram-summary[hidden] {
    display: grid !important;
  }

  .presentation-stage.is-kong-journey .diagram-summary > small {
    display: none !important;
  }

  .presentation-stage.is-kong-journey .diagram-frame .diagram-scroll,
  .presentation-stage.is-kong-journey .diagram-frame .diagram-scroll[hidden],
  .presentation-stage.is-kong-journey .viz-presentation-detail > .viz-presentation-detail-body {
    display: none !important;
  }

  .presentation-stage.is-kong-journey .viz-presentation-detail,
  .presentation-stage.is-kong-journey .viz-presentation-detail > summary {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .presentation-stage.is-kong-journey .viz-kong-options-primary p::before,
  .presentation-stage.is-kong-journey .viz-kong-options-primary small::before,
  .presentation-stage.is-kong-journey .viz-kong-selected-grid p::before,
  .presentation-stage.is-kong-journey .viz-mule-wave-list p::before {
    color: var(--signal-dark) !important;
  }
}

@media screen and (min-width: 761px) {
  .presentation-stage.is-kong-journey .is-journey-slide > .slide-main {
    overflow: hidden;
    overscroll-behavior: auto;
    padding-bottom: clamp(1rem, 2vw, 2rem);
  }

  .presentation-stage.is-kong-journey .slide-visual {
    overflow: hidden;
  }

  .presentation-stage.is-kong-journey .journey-proof-strip {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    padding-bottom: 0.9rem;
    padding-right: 15.5rem;
  }
}

@media screen and (min-width: 761px) and (max-width: 1200px) {
  .presentation-stage.is-kong-journey .journey-proof-strip {
    padding-right: 14.5rem;
  }
}

/* Guided Kong evaluation: a brand-neutral editorial system derived from the
   supplied yellow / black / warm-white / violet visual direction. */
.presentation-stage.is-kong-guided {
  --guided-paper: #fffdf5;
  --guided-paper-deep: #f3efe2;
  --guided-ink: #11120f;
  --guided-muted: #62645d;
  --guided-line: #bbb7aa;
  --guided-yellow: #ffcb2f;
  --guided-yellow-deep: #a56600;
  --guided-yellow-soft: #ffe58a;
  --guided-violet: #5f38d7;
  --guided-positive: #5f38d7;
  --guided-control-cluster-width: 24rem;
  color: var(--guided-ink);
  background: var(--guided-paper);
}

.presentation-stage.is-kong-guided .presentation-slide.is-guided-slide {
  color: var(--guided-ink);
  background-color: var(--guided-paper);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgb(17 18 15 / 4%) calc(8.333% - 1px), rgb(17 18 15 / 4%) 8.333%);
}

.presentation-stage.is-kong-guided .journey-phase-spine {
  border-color: var(--guided-ink);
  background: var(--guided-paper);
}

.presentation-stage.is-kong-guided .journey-phase-spine li,
.presentation-stage.is-kong-guided .journey-phase-spine li:last-child {
  border-color: var(--guided-line);
  color: var(--guided-muted);
  background: transparent;
}

.presentation-stage.is-kong-guided .journey-phase-spine li.is-prior {
  color: var(--guided-ink);
  box-shadow: inset 0 -3px 0 var(--guided-violet);
}

.presentation-stage.is-kong-guided .journey-phase-spine li.is-current {
  color: var(--guided-ink);
  background: var(--guided-yellow);
  box-shadow: none;
}

.presentation-stage.is-kong-guided .journey-phase-spine li:not(.is-current) > a:hover {
  color: var(--guided-ink);
  background: rgb(95 56 215 / 12%);
}

.presentation-stage.is-kong-guided .journey-phase-spine li > a:focus-visible {
  outline-color: var(--guided-violet);
}

.presentation-stage.is-kong-guided .journey-phase-spine span,
.presentation-stage.is-kong-guided .eyebrow,
.presentation-stage.is-kong-guided .slide-counter {
  color: var(--guided-violet);
}

.presentation-stage.is-kong-guided .slide-counter {
  display: none;
}

.guided-terms {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  align-items: baseline;
  padding: 0.28rem 0.65rem;
  border-block: 1px solid var(--guided-line);
  color: var(--guided-muted);
  background: color-mix(in srgb, var(--guided-yellow) 8%, transparent);
  font-family: var(--mono);
  font-size: clamp(0.88rem, 0.8vw, 1.05rem);
  line-height: 1.2;
}

.guided-terms > b {
  color: var(--guided-violet);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guided-terms ul {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guided-terms li {
  display: inline;
  color: var(--guided-ink);
}

.guided-term-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.3rem;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--guided-violet) 58%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.guided-term-link:hover {
  color: var(--guided-violet);
  text-decoration-color: currentColor;
}

.guided-term-link > span {
  color: var(--guided-violet);
  font-weight: 700;
}

.guided-terms li:not(:last-child)::after {
  content: "·";
  margin-left: 0.7rem;
  color: var(--guided-violet);
}

.guided-evidence-ribbon {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.42rem 0.65rem;
  border-left: 0.35rem solid var(--guided-violet);
  color: var(--guided-muted);
  background: color-mix(in srgb, var(--guided-violet) 7%, var(--guided-paper));
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.25;
}

.guided-evidence-ribbon span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.guided-evidence-ribbon b {
  color: var(--guided-violet);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guided-evidence-ribbon p {
  flex: 1 1 28rem;
  margin: 0;
  color: var(--guided-ink);
}

.presentation-stage.is-kong-guided .slide-title {
  max-width: 25ch;
  color: var(--guided-ink);
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(2.5rem, 4.2vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.presentation-stage.is-kong-guided .slide-visual {
  border-color: var(--guided-ink);
  color: var(--guided-ink);
}

.presentation-stage.is-kong-guided .journey-proof-strip {
  border-color: var(--guided-ink);
  color: var(--guided-paper);
  background: var(--guided-ink);
}

.presentation-stage.is-kong-guided .journey-proof-strip .slide-metric strong,
.presentation-stage.is-kong-guided .journey-proof-strip .slide-metric span,
.presentation-stage.is-kong-guided .journey-proof-copy > span,
.presentation-stage.is-kong-guided .journey-proof-strip .slide-source {
  color: var(--guided-yellow);
}

.presentation-stage.is-kong-guided .journey-proof-copy {
  display: grid;
  gap: 0.25rem;
  padding-left: clamp(0.8rem, 1.25vw, 1.25rem);
  border-left: 0.3rem solid var(--guided-yellow);
}

.presentation-stage.is-kong-guided .journey-proof-copy > span {
  margin-top: 0;
  font-weight: 800;
}

.presentation-stage.is-kong-guided .guided-decision-thesis {
  display: block;
  color: var(--guided-paper);
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(1.25rem, 1.45vw, 1.65rem);
  line-height: 1.05;
  text-wrap: balance;
}

.presentation-stage.is-kong-guided .guided-decision-boundary {
  display: block;
  max-width: 92ch;
  margin-top: 0.15rem;
  color: #bdc2b8;
  font-size: clamp(0.9rem, 0.9vw, 1.05rem);
  line-height: 1.25;
}

.presentation-stage.is-kong-guided .guided-decision-boundary b {
  color: var(--guided-yellow);
  font-family: var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-guided .slide-reference-actions {
  position: relative;
  z-index: 5;
  min-width: 10rem;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.presentation-stage.is-kong-guided .slide-reference-actions .slide-source {
  max-width: 22ch;
  margin: 0;
}

.presentation-stage.is-kong-guided .slide-references {
  position: relative;
}

.presentation-stage.is-kong-guided .slide-references > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--guided-yellow);
  color: var(--guided-yellow);
  background: var(--guided-ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.045em;
  list-style: none;
  text-transform: uppercase;
}

.presentation-stage.is-kong-guided .slide-references > summary::-webkit-details-marker {
  display: none;
}

.presentation-stage.is-kong-guided .slide-references > summary::after {
  margin-left: 0.45rem;
  content: "+";
}

.presentation-stage.is-kong-guided .slide-references[open] > summary::after {
  content: "−";
}

.presentation-stage.is-kong-guided .slide-references > summary:focus-visible {
  outline: 3px solid var(--guided-yellow);
  outline-offset: 3px;
}

.presentation-stage.is-kong-guided .slide-reference-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 8;
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(30rem, 62vh);
  display: grid;
  gap: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--guided-ink);
  color: var(--guided-ink);
  background: var(--guided-paper);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 28%);
}

.presentation-stage.is-kong-guided .slide-reference-menu > span {
  padding: 0.55rem 0.7rem;
  color: var(--guided-violet);
  background: var(--guided-paper-deep);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.presentation-stage.is-kong-guided .slide-reference-menu > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid var(--guided-line);
  color: var(--guided-ink);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.presentation-stage.is-kong-guided .slide-reference-menu > a:hover,
.presentation-stage.is-kong-guided .slide-reference-menu > a:focus-visible {
  color: var(--guided-ink);
  background: var(--guided-yellow-soft);
  outline: 3px solid var(--guided-violet);
  outline-offset: -3px;
}

.presentation-stage.is-kong-guided .journey-proof-copy .slide-body {
  color: var(--guided-paper);
}

.presentation-stage.is-kong-guided .journey-proof-copy.is-opening .slide-body {
  max-width: 92ch;
  margin-top: 0;
}

.presentation-stage.is-kong-guided .slide-controls {
  border-color: var(--guided-ink);
}

.presentation-stage.is-kong-guided .slide-controls button,
.presentation-stage.is-kong-guided .slide-controls a {
  border-color: var(--guided-paper);
  color: var(--guided-paper);
  background: var(--guided-ink);
}

.presentation-stage.is-kong-guided .slide-controls button:hover,
.presentation-stage.is-kong-guided .slide-controls button:focus-visible,
.presentation-stage.is-kong-guided .slide-controls a:hover,
.presentation-stage.is-kong-guided .slide-controls a:focus-visible {
  color: var(--guided-ink);
  background: var(--guided-yellow);
}

.presentation-stage.is-kong-guided .slide-progress {
  background: var(--guided-violet);
}

@media screen and (min-width: 761px) {
  .presentation-stage.is-kong-guided .journey-proof-strip {
    padding-right: calc(var(--guided-control-cluster-width) + 2.5rem);
  }
}

@media screen and (min-width: 761px) and (max-width: 1200px) {
  .presentation-stage.is-kong-guided {
    --guided-control-cluster-width: 14.375rem;
  }

  .presentation-stage.is-kong-guided .slide-controls .assessment-launch {
    min-width: 46px;
    width: 46px;
    display: grid;
    padding: 0.35rem;
    font-size: 0.72rem;
  }

  .presentation-stage.is-kong-guided .assessment-launch > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.presentation-stage.is-kong-guided .viz,
.presentation-stage.is-kong-guided .viz-overview {
  --viz-color-0: var(--guided-violet);
  --viz-color-1: var(--guided-yellow);
  --viz-color-2: var(--guided-ink);
  --viz-color-3: var(--guided-yellow-soft);
  --viz-color-4: var(--guided-violet);
  --viz-color-5: var(--guided-muted);
  --viz-empty: var(--guided-paper-deep);
  color: var(--guided-ink);
}

.presentation-stage.is-kong-guided .viz-heading,
.presentation-stage.is-kong-guided .viz-bar-row,
.presentation-stage.is-kong-guided .viz-stacked-row,
.presentation-stage.is-kong-guided .viz-matrix-table,
.presentation-stage.is-kong-guided .viz-matrix-row,
.presentation-stage.is-kong-guided .viz-kps-fit-list > li,
.presentation-stage.is-kong-guided .viz-kps-case-list > li,
.presentation-stage.is-kong-guided .viz-kps-outcome-list > li,
.presentation-stage.is-kong-guided .viz-kps-roadmap-list > li,
.presentation-stage.is-kong-guided .viz-mule-boundary-groups,
.presentation-stage.is-kong-guided .viz-mule-boundary-groups > section,
.presentation-stage.is-kong-guided .viz-mule-boundary li,
.presentation-stage.is-kong-guided .viz-mule-wave-list,
.presentation-stage.is-kong-guided .viz-mule-wave-list li {
  border-color: var(--guided-line);
}

.presentation-stage.is-kong-guided .viz-heading strong,
.presentation-stage.is-kong-guided .viz-bar-label,
.presentation-stage.is-kong-guided .viz-bar-value,
.presentation-stage.is-kong-guided .viz-kps-copy > strong,
.presentation-stage.is-kong-guided .viz-kps-roadmap-list > li > strong,
.presentation-stage.is-kong-guided .viz-mule-boundary strong,
.presentation-stage.is-kong-guided .viz-mule-wave-list strong {
  color: var(--guided-ink);
}

.presentation-stage.is-kong-guided .viz-heading span,
.presentation-stage.is-kong-guided .viz-kps-copy p,
.presentation-stage.is-kong-guided .viz-kps-roadmap-list p,
.presentation-stage.is-kong-guided .viz-mule-boundary p,
.presentation-stage.is-kong-guided .viz-mule-wave-list p,
.presentation-stage.is-kong-guided .diagram-summary > p,
.presentation-stage.is-kong-guided .diagram-summary > small {
  color: var(--guided-muted);
}

/* Presentation-detail cards predate the light guided theme. Keep their
   collapsed labels and affordances legible when those cards gain more room. */
.presentation-stage.is-kong-guided .viz-presentation-summary-copy strong {
  color: var(--guided-ink);
}

.presentation-stage.is-kong-guided .viz-presentation-summary-copy small {
  color: var(--guided-muted);
}

.presentation-stage.is-kong-guided .viz-presentation-action {
  border-color: var(--guided-line);
  color: var(--guided-violet);
}

.presentation-stage.is-kong-guided .viz-kps-index,
.presentation-stage.is-kong-guided .viz-kps-roadmap-meta,
.presentation-stage.is-kong-guided .viz-mule-boundary h3,
.presentation-stage.is-kong-guided .viz-mule-boundary li > span,
.presentation-stage.is-kong-guided .viz-mule-wave-list li > span,
.presentation-stage.is-kong-guided .viz-kps-copy p::before,
.presentation-stage.is-kong-guided .viz-kps-roadmap-list p::before,
.presentation-stage.is-kong-guided .viz-mule-wave-list p::before {
  color: var(--guided-violet);
}

.presentation-stage.is-kong-guided .slide-diagram,
.presentation-stage.is-kong-guided .diagram-frame,
.presentation-stage.is-kong-guided .diagram-summary,
.presentation-stage.is-kong-guided .diagram-scroll {
  color: var(--guided-ink);
  background: var(--guided-paper);
}

.presentation-stage.is-kong-guided .diagram-summary.has-authored-overview {
  display: block;
  padding: clamp(0.55rem, 1vw, 0.9rem);
}

.presentation-stage.is-kong-guided .diagram-summary.has-authored-overview[hidden] {
  display: none;
}

.viz-guided-architecture-overview {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.45rem;
  margin: 0;
  color: var(--guided-ink);
}

.viz-guided-architecture-head {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) 3.6rem minmax(0, 2.1fr);
  align-items: end;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.85vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}

.viz-guided-architecture-head > div {
  grid-column: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 2.8rem minmax(0, 1.35fr);
}

.viz-guided-architecture-head > div > span:last-child {
  grid-column: 3;
}

.viz-guided-architecture-map {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) 3.6rem minmax(0, 2.1fr);
  gap: 0;
}

.viz-guided-architecture-control {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(3.75rem, 1fr) auto minmax(3.75rem, 1fr) auto minmax(3.75rem, 1fr);
  gap: 0;
}

.viz-guided-architecture-node {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-content: center;
  gap: 0.25rem;
  padding: clamp(0.45rem, 0.8vw, 0.75rem);
  border: 1.5px solid var(--guided-ink);
  background: var(--guided-paper);
  text-align: center;
}

.viz-guided-architecture-node strong {
  font-size: clamp(0.95rem, 1.25vw, 1.45rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-guided-architecture-node span {
  color: var(--guided-muted);
  font-size: clamp(0.72rem, 0.9vw, 1rem);
  line-height: 1.12;
  text-wrap: balance;
}

.viz-guided-architecture-node.is-authority {
  border-color: var(--guided-violet);
}

.viz-guided-architecture-node.is-control-plane {
  border-color: var(--guided-yellow-deep);
  background: var(--guided-yellow-soft);
}

.viz-guided-architecture-node.is-data-plane {
  border-color: var(--guided-violet);
}

.viz-guided-architecture-node.is-local-target {
  border-color: var(--guided-muted);
}

.viz-guided-architecture-control-flow {
  position: relative;
  min-height: 1.25rem;
  display: grid;
  place-items: center;
  color: var(--guided-muted);
  font-family: var(--mono);
  font-size: clamp(0.6rem, 0.65vw, 0.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.viz-guided-architecture-control-flow::before {
  position: absolute;
  top: 0;
  bottom: 0.2rem;
  left: 50%;
  border-left: 1.5px solid currentcolor;
  content: "";
}

.viz-guided-architecture-control-flow::after {
  position: absolute;
  bottom: 0;
  left: calc(50% - 0.25rem);
  border-top: 0.42rem solid currentcolor;
  border-right: 0.25rem solid transparent;
  border-left: 0.25rem solid transparent;
  content: "";
}

.viz-guided-architecture-control-flow b {
  position: relative;
  z-index: 1;
  padding-inline: 0.25rem;
  background: var(--guided-paper);
  font-weight: 600;
}

.viz-guided-architecture-control-flow.is-approved-intent {
  color: var(--guided-violet);
}

.viz-guided-architecture-control-flow.is-management-state {
  color: var(--guided-muted);
}

.viz-guided-architecture-fanout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.viz-guided-architecture-fanout::before {
  position: absolute;
  top: 16.667%;
  bottom: 16.667%;
  left: 0.75rem;
  border-left: 2px solid var(--guided-yellow-deep);
  content: "";
}

.viz-guided-architecture-fanout::after {
  position: absolute;
  top: 50%;
  right: calc(100% - 0.75rem);
  width: 0.75rem;
  border-top: 2px solid var(--guided-yellow-deep);
  content: "";
}

.viz-guided-architecture-fanout > span {
  position: relative;
  align-self: center;
  margin-left: 0.75rem;
  border-top: 2px solid var(--guided-yellow-deep);
}

.viz-guided-architecture-fanout > span::after,
.viz-guided-architecture-request::after {
  position: absolute;
  top: -0.33rem;
  right: -0.05rem;
  border-top: 0.28rem solid transparent;
  border-bottom: 0.28rem solid transparent;
  border-left: 0.45rem solid currentcolor;
  content: "";
}

.viz-guided-architecture-fanout > span b {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.6vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-guided-architecture-lanes {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-guided-architecture-lanes > li {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 2.8rem minmax(0, 1.35fr);
  align-items: stretch;
}

.viz-guided-architecture-request {
  position: relative;
  align-self: center;
  color: var(--guided-muted);
  border-top: 1.5px solid currentcolor;
}

.viz-guided-architecture-request b {
  position: absolute;
  right: 0.25rem;
  bottom: 0.35rem;
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.6vw, 0.7rem);
  font-weight: 600;
  text-transform: uppercase;
}

.viz-guided {
  min-width: 0;
  min-height: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.viz-guided-frame {
  min-width: 0;
  min-height: 0;
}

.presentation-stage.is-kong-guided .viz-guided-meta {
  display: none;
}

.viz-guided-meta {
  min-width: 0;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--guided-line, var(--line));
  color: var(--guided-muted, var(--muted));
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-guided-meta > span {
  display: inline-flex;
  gap: 0.35rem;
}

.viz-guided-meta > span:empty {
  display: none;
}

.viz-guided-meta b {
  color: var(--guided-violet, var(--signal-dark));
  font-weight: 700;
}

.viz-guided-meta .visual-source {
  max-width: none;
  margin: 0 0 0 auto;
  color: inherit;
  font-size: inherit;
}

.viz-guided-phases,
.viz-guided-weights,
.viz-guided-programme {
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-guided-phases {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-guided-phases li {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.85rem;
  padding: clamp(0.8rem, 1.4vw, 1.4rem);
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-phases li:nth-child(odd) {
  background: color-mix(in srgb, var(--guided-yellow) 18%, transparent);
}

.viz-guided-phases span,
.viz-guided-target h3,
.viz-guided-options article > span,
.viz-guided-boundaries article > span,
.viz-guided-duty article > span,
.viz-guided-programme li > span,
.viz-guided-comparison article > span {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 0.9vw, 1.1rem);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.viz-guided-phases strong {
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(1.45rem, 1.7vw, 2.2rem);
  line-height: 1;
  text-wrap: balance;
}

.viz-guided-phases p {
  margin: 0;
  color: var(--guided-muted);
  font-size: clamp(1rem, 1.05vw, 1.3rem);
  line-height: 1.3;
  text-wrap: pretty;
}

.viz-guided-target-model {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.viz-guided-target {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-guided-target > section {
  min-width: 0;
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-target h3 {
  margin: 0;
  padding: 0.65rem 0.85rem;
  color: var(--guided-ink);
  background: var(--guided-yellow);
}

.viz-guided-target ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-guided-target li {
  min-width: 0;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--guided-line);
}

.viz-guided-target li:first-child {
  border-top: 0;
}

.viz-guided-target strong {
  display: block;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.viz-guided-early-gates {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 0.72fr) minmax(0, 3fr);
  border: 1px solid var(--guided-ink);
  background: var(--guided-paper);
}

.viz-guided-early-gates > header {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  align-content: center;
  padding: 0.55rem 0.65rem;
  background: var(--guided-yellow);
}

.viz-guided-early-gates > header span,
.viz-guided-early-gates li > span {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.65vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viz-guided-early-gates > header strong {
  font-size: clamp(0.92rem, 1vw, 1.18rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-guided-early-gates ol {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-guided-early-gates li {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.18rem;
  padding: 0.45rem 0.5rem;
  border-left: 1px solid var(--guided-line);
}

.viz-guided-early-gates li > strong {
  font-size: clamp(0.76rem, 0.84vw, 0.96rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-guided-early-gates li > small {
  color: var(--guided-muted);
  font-size: clamp(0.62rem, 0.64vw, 0.72rem);
  line-height: 1.05;
}

@media screen and (max-width: 1023px) {
  .viz-guided-target-model {
    height: auto;
  }

  .viz-guided-early-gates {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-early-gates ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-guided-early-gates li {
    border-top: 1px solid var(--guided-line);
  }

  .viz-guided-early-gates li:nth-child(odd) {
    border-left: 0;
  }
}

@media screen and (max-width: 760px) {
  .assessment-reference-group,
  .assessment-summary-minimum {
    grid-template-columns: minmax(0, 1fr);
  }

  .assessment-reference-group > span {
    padding-top: 0;
  }

  .assessment-reference-list > li,
  .assessment-reference-list.is-compact > li,
  .assessment-context-link-list > li {
    flex-basis: 100%;
  }

  .viz-guided-early-gates ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-early-gates li {
    border-left: 0;
  }
}

.viz-guided-weights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-guided-weights li {
  min-width: 0;
  display: grid;
  grid-template-columns: 4.3rem minmax(9rem, 1fr) minmax(7rem, 1.25fr) 3.5rem;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-weights li > span,
.viz-guided-weights li > b {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.viz-guided-weights li > strong {
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  line-height: 1.15;
}

.viz-guided-weights li > p {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--guided-muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.viz-guided-weight-track,
.viz-guided-score-rank li > div {
  min-width: 0;
  height: 0.85rem;
  border: 1px solid var(--guided-ink);
  background: var(--guided-paper-deep);
}

.viz-guided-weight-track i,
.viz-guided-score-rank li > div i {
  width: var(--guided-weight, var(--guided-score, 0%));
  height: 100%;
  display: block;
  background: var(--guided-yellow);
}

.viz-guided-options,
.viz-guided-boundaries,
.viz-guided-duty,
.viz-guided-proof-boundary,
.viz-guided-authorization {
  display: grid;
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-guided-options {
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.viz-guided-boundaries,
.viz-guided-proof-boundary {
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.viz-guided-duty {
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.viz-guided-authorization {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.viz-guided-options article,
.viz-guided-boundaries article,
.viz-guided-duty article,
.viz-guided-proof-boundary article,
.viz-guided-authorization article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(0.75rem, 1.2vw, 1.2rem);
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-options article:first-child,
.viz-guided-boundaries article:first-child,
.viz-guided-duty article:first-child,
.viz-guided-proof-boundary article:first-child,
.viz-guided-authorization article:first-child {
  background: color-mix(in srgb, var(--guided-yellow) 22%, transparent);
}

.viz-guided-options strong,
.viz-guided-boundaries strong,
.viz-guided-duty strong,
.viz-guided-proof-boundary strong,
.viz-guided-authorization strong {
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(1.2rem, 1.45vw, 1.85rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-guided-options p,
.viz-guided-boundaries p,
.viz-guided-duty p,
.viz-guided-proof-boundary p,
.viz-guided-authorization p,
.viz-guided-options small,
.viz-guided-boundaries small,
.viz-guided-authorization small {
  margin: 0;
  color: var(--guided-muted);
  font-size: clamp(0.95rem, 1vw, 1.2rem);
  line-height: 1.27;
  text-wrap: pretty;
}

.viz-guided-options p::before,
.viz-guided-duty p::before,
.viz-guided-proof-boundary p::before,
.viz-guided-authorization p::before,
.viz-guided-authorization small::before {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  content: attr(data-label);
}

.viz-guided-options small,
.viz-guided-boundaries small,
.viz-guided-authorization small {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--guided-line);
}

.viz-guided-proof-boundary article > b {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  font-weight: 600;
}

.viz-guided-authorization .is-authorize {
  color: var(--guided-positive);
}

.viz-guided-authorization .is-hold {
  color: var(--guided-ink);
  background: color-mix(in srgb, var(--guided-yellow) 40%, transparent);
}

.viz-guided-authorization > section {
  min-width: 0;
  padding: clamp(0.65rem, 1.1vw, 1.1rem);
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-authorization > section > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viz-guided-authorization ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-guided-authorization li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.42fr) minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--guided-line);
}

.viz-guided-authorization li strong,
.viz-guided-authorization li p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.15;
}

.viz-guided-authorization li strong {
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
}

.viz-guided-authorization li p {
  color: var(--guided-muted);
}

.viz-guided-score-rank {
  display: grid;
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  margin: 0;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
  list-style: none;
}

.viz-guided-score-rank li {
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 0.8fr) minmax(0, 5fr) 6rem;
  gap: 1rem;
  align-items: center;
}

.viz-guided-score-rank li > span {
  color: var(--guided-violet);
  font-family: var(--mono);
}

.viz-guided-score-rank li > strong {
  font-size: clamp(1.4rem, 1.8vw, 2.3rem);
}

.viz-guided-score-rank li > b {
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(2.3rem, 4vw, 5.2rem);
  line-height: 0.8;
}

.viz-guided-score-rank li:first-child > div i {
  background: var(--guided-violet);
}

.viz-guided-programme {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-guided-programme li {
  min-width: 0;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.28rem 0.55rem;
  padding: 0.55rem;
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-programme li > span {
  grid-row: 1 / span 4;
}

.viz-guided-programme strong {
  font-size: clamp(1rem, 1.08vw, 1.3rem);
  line-height: 1.05;
}

.viz-guided-programme p,
.viz-guided-programme small {
  margin: 0;
  color: var(--guided-muted);
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.15;
}

.viz-guided-programme small {
  padding-top: 0.2rem;
  border-top: 1px solid var(--guided-line);
}

.viz-guided-programme-board {
  min-width: 0;
  min-height: clamp(22rem, 42vh, 27rem);
  width: min(100%, 120rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.6rem;
  margin-inline: auto;
}

.presentation-stage.is-kong-guided .slide-narrative:has(.viz-guided-programme-board) {
  width: min(100%, 120rem);
  margin-inline: auto;
}

.presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main > .eyebrow,
.presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main > .guided-terms,
.presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main > .guided-evidence-ribbon {
  width: min(100%, 120rem);
  margin-inline: auto;
}

.presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main > .eyebrow {
  display: block;
}

/* The proof programme is intentionally information-dense. Its intrinsic board
   can exceed the pane even on a 1080p room display once the fixed decision
   strip is reserved, so keep the complete workstream reachable at every
   viewport instead of clipping the last row behind the strip. */
.presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.viz-guided-programme-contract {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 2.45fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--guided-line);
  border-left: 0.35rem solid var(--guided-violet);
  background: var(--guided-paper-deep);
}

.viz-guided-programme-contract span {
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.72vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viz-guided-programme-contract strong {
  font-size: clamp(1rem, 1.18vw, 1.4rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-guided-programme.is-seven {
  height: 100%;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.18fr) minmax(0, 0.94fr);
  gap: clamp(0.55rem, 0.85vw, 0.9rem);
  border: 0;
}

.viz-guided-programme-group {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--guided-ink);
  background: color-mix(in srgb, var(--guided-paper) 92%, white);
}

.viz-guided-programme-group > header {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
  align-content: center;
  min-height: 4rem;
  padding: 0.55rem 0.72rem;
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-programme-group > header > span {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.72vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.viz-guided-programme-group > header > strong {
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(1.06rem, 1.22vw, 1.45rem);
  line-height: 1.05;
  text-wrap: balance;
}

.viz-guided-programme-group.is-group-1 > header {
  color: var(--guided-ink);
  background: var(--guided-yellow);
}

.viz-guided-programme-group.is-group-2 > header {
  color: var(--guided-paper);
  background: var(--guided-violet);
}

.viz-guided-programme-group.is-group-3 > header {
  color: var(--guided-yellow);
  background: var(--guided-ink);
}

.viz-guided-programme-group ol {
  min-width: 0;
  min-height: 0;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-guided-programme-group.is-group-1 ol,
.viz-guided-programme-group.is-group-3 ol {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.viz-guided-programme-group.is-group-2 ol {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.viz-guided-programme.is-seven .viz-guided-programme-group li {
  min-height: 0;
  grid-template-columns: 4.15rem minmax(0, 1fr);
  gap: 0.65rem;
  align-content: start;
  padding: clamp(0.58rem, 0.72vw, 0.78rem);
  border-right: 0;
  border-bottom: 1px solid var(--guided-line);
}

.viz-guided-programme.is-seven .viz-guided-programme-group li:last-child {
  border-bottom: 0;
}

.viz-guided-programme.is-seven li > span {
  grid-row: auto;
  padding-top: 0.08rem;
  color: var(--guided-violet);
  font-size: clamp(0.76rem, 0.78vw, 0.94rem);
  font-weight: 700;
}

.viz-guided-programme.is-seven li > div {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
  align-content: start;
}

.viz-guided-programme.is-seven li strong {
  font-size: clamp(1.02rem, 1.18vw, 1.42rem);
  line-height: 1.04;
  text-wrap: balance;
}

.viz-guided-programme.is-seven li p {
  font-size: clamp(1rem, 1.04vw, 1.22rem);
  line-height: 1.18;
  text-wrap: pretty;
}

.viz-guided-programme.is-seven li small {
  width: fit-content;
  padding: 0.18rem 0.34rem;
  border: 0;
  color: var(--guided-ink);
  background: var(--guided-yellow);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.64vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.viz-guided-programme.is-seven li.is-adjunct {
  background: color-mix(in srgb, var(--guided-yellow) 18%, var(--guided-paper));
}

@media screen and (min-width: 761px) and (max-width: 1279px) {
  .presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .viz-guided-programme-board {
    min-height: 0;
  }

  .viz-guided-programme.is-seven {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-guided-programme-group.is-group-3 {
    grid-column: 1 / -1;
  }

  .viz-guided-programme-group.is-group-3 ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }

  .viz-guided-programme-group.is-group-3 li:first-child {
    border-right: 1px solid var(--guided-line);
    border-bottom: 0;
  }
}

@media screen and (max-width: 760px) {
  .viz-guided-programme-contract {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.18rem;
  }

  .viz-guided-programme.is-seven {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-programme.is-seven .viz-guided-programme-group li {
    grid-template-columns: 3.6rem minmax(0, 1fr);
  }

  .viz-guided-programme-group.is-group-3 {
    grid-column: auto;
  }

  .viz-guided-programme-group.is-group-3 ol {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .viz-guided-programme-group.is-group-3 li:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--guided-line);
  }
}

@media screen and (min-width: 1280px) and (max-height: 900px) {
  .presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-programme-board) > .slide-main {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

.viz-guided-comparison-wrap {
  width: 100%;
  max-height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--guided-ink);
  scrollbar-gutter: stable;
}

.viz-guided-comparison-wrap:focus-visible {
  outline: 3px solid var(--guided-violet);
  outline-offset: 3px;
}

.viz-guided-comparison {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1.125rem;
  line-height: 1.12;
}

.viz-guided-comparison caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.viz-guided-comparison th,
.viz-guided-comparison td {
  padding: 0.28rem 0.45rem;
  border-right: 1px solid var(--guided-line);
  border-bottom: 1px solid var(--guided-line);
  text-align: left;
  vertical-align: top;
}

.viz-guided-comparison th:last-child,
.viz-guided-comparison td:last-child {
  border-right: 0;
}

.viz-guided-comparison thead th {
  color: var(--guided-ink);
  background: var(--guided-yellow);
  font-family: var(--mono);
  font-weight: 700;
}

.viz-guided-comparison thead th:nth-child(1) { width: 16%; }
.viz-guided-comparison thead th:nth-child(2),
.viz-guided-comparison thead th:nth-child(3),
.viz-guided-comparison thead th:nth-child(4) { width: 28%; }

.viz-guided-comparison tbody th {
  font-weight: 700;
}

.viz-guided-comparison tbody th span {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 1rem;
}

.viz-guided-scroll-cue {
  display: none;
  margin: 0.3rem 0 0;
  color: var(--guided-muted);
  font-family: var(--mono);
  font-size: 1rem;
}

.viz-guided-audit {
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-guided-score-audit-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.85fr);
  gap: 0.65rem;
  align-items: start;
}

.viz-guided-score-audit-layout .viz-guided-scenario-audit {
  margin-top: 0;
}

.viz-guided-score-audit-layout .viz-guided-audit-head,
.viz-guided-score-audit-layout .viz-guided-audit-row,
.viz-guided-score-audit-layout .viz-guided-audit-total {
  grid-template-columns: minmax(8rem, 1.8fr) 3.5rem repeat(3, minmax(4rem, 0.8fr));
  font-size: 0.82rem;
}

.viz-guided-audit-head,
.viz-guided-audit-row,
.viz-guided-audit-total {
  display: grid;
  grid-template-columns: minmax(12rem, 2.2fr) minmax(5rem, 0.6fr) repeat(3, minmax(7rem, 1fr));
}

.viz-guided-audit-head {
  color: var(--guided-ink);
  background: var(--guided-yellow);
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.viz-guided-audit-head > *,
.viz-guided-audit-row > *,
.viz-guided-audit-total > * {
  min-width: 0;
  padding: 0.18rem 0.45rem;
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
}

.viz-guided-audit-row {
  font-size: 1.125rem;
}

.viz-guided-audit-row > span:not(:nth-child(2)) {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.viz-guided-audit-row small {
  color: var(--guided-muted);
}

.viz-guided-audit-row small::before {
  content: "weighted ";
}

.viz-guided-audit-total {
  font-size: 1.125rem;
  background: color-mix(in srgb, var(--guided-violet) 10%, transparent);
}

.viz-guided-audit-total.is-supplied {
  background: color-mix(in srgb, var(--guided-yellow) 22%, transparent);
}

.viz-guided-phases p,
.viz-guided-target strong,
.viz-guided-weights li > strong,
.viz-guided-options p,
.viz-guided-options small,
.viz-guided-boundaries p,
.viz-guided-boundaries small,
.viz-guided-duty p,
.viz-guided-proof-boundary p,
.viz-guided-proof-boundary article > b,
.viz-guided-authorization li strong,
.viz-guided-authorization li p,
.viz-guided-programme strong,
.viz-guided-programme p {
  font-size: 1rem;
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .presentation-stage.is-kong-guided .is-guided-slide > .slide-main {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .presentation-stage.is-kong-guided .slide-visual {
    overflow: visible;
  }
}

@media screen and (min-width: 761px) and (max-width: 1199px) {
  .presentation-stage.is-kong-guided .journey-proof-strip {
    grid-template-rows: minmax(0, 1fr);
  }

  .viz-guided-options {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-comparison {
    min-width: 100rem;
  }

  .viz-guided-scroll-cue:not([hidden]) {
    display: block;
  }

  .viz-guided-phases {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viz-guided-options article,
  .viz-guided-authorization > section {
    padding: 0.5rem;
  }

  .viz-guided-options article {
    display: grid;
    grid-template-columns: minmax(9rem, 1.2fr) minmax(0, 2fr) minmax(0, 2fr) minmax(8rem, 1.15fr);
    gap: 0.38rem 0.6rem;
    align-items: start;
  }

  .viz-guided-options article > span {
    display: none;
  }

  .viz-guided-options p,
  .viz-guided-options small,
  .viz-guided-authorization li strong,
  .viz-guided-authorization li p {
    font-size: 1.125rem;
    line-height: 1.15;
  }

  .viz-guided-authorization li {
    gap: 0.45rem;
    padding: 0.28rem 0;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary h3 {
    padding-block: 0.2rem;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary li {
    padding-block: 0.18rem;
  }
}

@media screen and (min-width: 761px) {
  .viz-guided-phases p,
  .viz-guided-target strong,
  .viz-guided-weights li > strong,
  .viz-guided-options p,
  .viz-guided-options small,
  .viz-guided-boundaries p,
  .viz-guided-boundaries small,
  .viz-guided-duty p,
  .viz-guided-proof-boundary p,
  .viz-guided-proof-boundary article > b,
  .viz-guided-authorization li strong,
  .viz-guided-authorization li p,
  .viz-guided-programme strong,
  .viz-guided-programme p {
    font-size: 1.125rem;
  }
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .presentation-stage.is-kong-guided .slide-title,
  .presentation-stage.is-kong-guided .slide-narrative.is-diagram .slide-title,
  .presentation-stage.is-kong-guided .slide-narrative.is-roadmap .slide-title,
  .presentation-stage.is-kong-guided .slide-narrative.is-matrix .slide-title {
    max-width: 25ch;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
  }

  .presentation-stage.is-kong-guided .journey-phase-spine li > a {
    font-size: 0.78rem;
  }

  .viz-guided-phases,
  .viz-guided-options,
  .viz-guided-target,
  .viz-guided-boundaries,
  .viz-guided-proof-boundary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .viz-guided-duty {
    height: auto;
  }

  .viz-guided-programme,
  .viz-guided-authorization {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz-guided-weights {
    grid-template-columns: 1fr;
  }

  .viz-guided-weights li {
    grid-template-columns: 4rem minmax(9rem, 1fr) minmax(5rem, 1.1fr) 3rem;
  }

  .viz-guided-audit-head,
  .viz-guided-audit-row,
  .viz-guided-audit-total {
    grid-template-columns: minmax(10rem, 2fr) 4.5rem repeat(3, minmax(5.5rem, 1fr));
  }

  .viz-guided-audit-head,
  .viz-guided-audit-row {
    font-size: 0.8rem;
  }
}

/* Keep the six-phase rail inside its reserved row at compact desktop widths.
   The full phase name remains in the accessibility tree and in the slide eyebrow. */
@media screen and (min-width: 761px) and (max-width: 1279px) {
  .presentation-stage.is-kong-guided .journey-phase-spine li > a {
    justify-content: center;
    font-size: 1rem;
  }

  .presentation-stage.is-kong-guided .journey-phase-id-prefix {
    display: none;
  }

  .presentation-stage.is-kong-guided .journey-phase-spine li b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media screen and (min-width: 1024px) {
  .presentation-stage.is-kong-guided .is-guided-slide > .slide-main {
    overflow: hidden;
  }

  .presentation-stage.is-kong-guided .slide-visual {
    overflow: visible;
  }

  .viz-guided-comparison {
    font-size: 1.125rem;
  }
}

/* At compact desktop heights, keep every guided frame reachable above the
   fixed proof strip. Added per-slide terminology must never create clipping. */
@media screen and (min-width: 1024px) and (max-height: 920px) {
  .presentation-stage.is-kong-guided .is-guided-slide > .slide-main {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

/* A short, wide room display has ample horizontal space but cannot safely
   shrink the authored architecture overview into the few remaining pixels
   below the per-slide terms and evidence bands. Keep the terms on one
   inspectable rail, reduce only this frame's headline, and give the overview
   its readable intrinsic height; the existing main-pane scroll then exposes
   the complete model without label collisions. */
@media screen and (min-width: 1024px) and (max-height: 760px) {
  .presentation-stage.is-kong-guided .guided-terms > b::after {
    content: " · scroll →";
    color: var(--guided-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
  }

  .presentation-stage.is-kong-guided .guided-terms ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.2rem;
    scrollbar-gutter: stable;
  }

  .presentation-stage.is-kong-guided .guided-terms li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-architecture-overview) .slide-title {
    max-width: 31ch;
    font-size: clamp(2.75rem, 3.5vw, 4rem);
  }

  .presentation-stage.is-kong-guided .is-guided-slide:has(.viz-guided-architecture-overview) .slide-diagram.is-summary-mode {
    flex: 0 0 auto;
    min-height: 21.5rem;
  }
}

/* The intrinsic two-column breakpoint includes 1024px, where the general desktop
   rule above otherwise hides the overflow needed to reach every phase. */
@media screen and (min-width: 761px) and (max-width: 1024px) {
  .presentation-stage.is-kong-guided .is-guided-slide:has(.viz-apigee-roadmap) > .slide-main {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

/* Let the seven-column Apigee rail keep its intrinsic height on short desktop
   stages. The guided main pane owns any necessary scrolling so phase copy cannot
   overlap the common-gates row without changing other guided slides. */
@media screen and (min-width: 1025px) and (max-height: 840px) {
  .presentation-stage.is-kong-guided .is-guided-slide:has(.viz-apigee-roadmap) > .slide-main {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .presentation-stage.is-kong-guided .viz-apigee-roadmap {
    height: auto;
    grid-template-rows: auto auto auto;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  .presentation-stage.is-kong-guided .viz-guided-proof-boundary article {
    gap: 0.25rem;
    padding: 0.45rem;
  }
}

@media screen and (min-width: 1600px) and (min-height: 1000px) {
  .guided-terms {
    font-size: 1.05rem;
  }

  .viz-guided-comparison {
    font-size: 1.5rem;
  }

  .viz-guided-audit-head,
  .viz-guided-audit-row,
  .viz-guided-audit-total {
    font-size: 1.5rem;
  }

  .viz-guided-score-audit-layout .viz-guided-audit-head,
  .viz-guided-score-audit-layout .viz-guided-audit-row,
  .viz-guided-score-audit-layout .viz-guided-audit-total {
    font-size: 1.05rem;
  }

  .viz-guided-phases p,
  .viz-guided-target strong,
  .viz-guided-weights li > strong,
  .viz-guided-options p,
  .viz-guided-options small,
  .viz-guided-boundaries p,
  .viz-guided-boundaries small,
  .viz-guided-duty p,
  .viz-guided-proof-boundary p,
  .viz-guided-proof-boundary article > b,
  .viz-guided-authorization li strong,
  .viz-guided-authorization li p,
  .viz-guided-programme strong,
  .viz-guided-programme p {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 760px) {
  .presentation-stage.is-kong-journey {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .presentation-stage.is-kong-guided .presentation-slide.is-guided-slide {
    background-image: none;
  }

  .presentation-stage.is-kong-guided .journey-phase-spine {
    grid-template-columns: repeat(var(--journey-phase-count, 6), minmax(0, 1fr));
  }

  .presentation-stage.is-kong-guided .slide-title,
  .presentation-stage.is-kong-guided .slide-narrative.is-diagram .slide-title,
  .presentation-stage.is-kong-guided .slide-narrative.is-roadmap .slide-title,
  .presentation-stage.is-kong-guided .slide-narrative.is-matrix .slide-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .guided-evidence-ribbon {
    align-items: flex-start;
    flex-direction: column;
  }

  .guided-evidence-ribbon p {
    flex: 0 1 auto;
  }

  .guided-terms {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    font-size: 0.82rem;
  }

  .guided-terms ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.2rem;
    scrollbar-gutter: stable;
  }

  .guided-terms > b::after {
    content: " · swipe →";
    color: var(--guided-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
  }

  .guided-terms li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .presentation-stage.is-kong-guided .slide-reference-actions {
    width: 100%;
  }

  .presentation-stage.is-kong-guided .slide-reference-menu {
    right: auto;
    left: 0;
    width: min(32rem, calc(100vw - var(--mobile-control-rail) - 2rem));
  }

  .viz-guided-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .viz-guided-meta .visual-source {
    margin-left: 0;
  }

  .viz-guided-score-audit-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-phases,
  .viz-guided-target,
  .viz-guided-weights,
  .viz-guided-options,
  .viz-guided-boundaries,
  .viz-guided-duty,
  .viz-guided-proof-boundary,
  .viz-guided-authorization,
  .viz-guided-programme {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .viz-guided-phases li {
    min-height: 0;
    grid-template-columns: 4.5rem minmax(7rem, 0.8fr) minmax(0, 1.4fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .viz-guided-phases strong {
    font-size: 1.35rem;
  }

  .viz-guided-weights li {
    grid-template-columns: 3.8rem minmax(0, 1fr) 3rem;
  }

  .viz-guided-weight-track {
    grid-column: 2;
    grid-row: 2;
  }

  .viz-guided-weights li > b {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .viz-guided-weights li > p {
    grid-column: 2 / -1;
  }

  .viz-guided-score-rank li {
    grid-template-columns: 2rem minmax(0, 1fr) 4rem;
    gap: 0.55rem;
  }

  .viz-guided-score-rank li > div {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .viz-guided-score-rank li > b {
    grid-column: 3;
    font-size: 2.2rem;
  }

  .viz-guided-programme li {
    grid-template-columns: 3.6rem minmax(0, 1fr);
  }

  .viz-guided-comparison {
    min-width: 70rem;
    font-size: 1rem;
  }

  .viz-guided-scroll-cue:not([hidden]) {
    display: block;
  }

  .viz-guided-audit-head {
    display: none;
  }

  .viz-guided-audit-row,
  .viz-guided-audit-total {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(3.5rem, auto));
  }

  .viz-guided-audit-row > strong,
  .viz-guided-audit-total > strong {
    grid-column: 1 / -1;
    background: var(--guided-yellow);
  }

  .viz-guided-audit-row > span:nth-child(2),
  .viz-guided-audit-total > span:nth-child(2) {
    grid-column: 1;
  }

  .viz-guided-audit-row > span:not(:nth-child(2)) {
    display: block;
  }

  .viz-guided-audit-row small {
    display: block;
  }
}

@media screen and (max-width: 760px) {
  .presentation-stage.is-kong-guided .diagram-summary.has-authored-overview {
    padding: 0.55rem;
  }

  .viz-guided-architecture-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .viz-guided-architecture-head > div {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }

  .viz-guided-architecture-head > div > span:last-child {
    grid-column: 2;
  }

  .viz-guided-architecture-map {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .viz-guided-architecture-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(4rem, auto);
    align-items: stretch;
  }

  .viz-guided-architecture-control-flow {
    display: none;
  }

  .viz-guided-architecture-node strong {
    font-size: 0.95rem;
  }

  .viz-guided-architecture-node span {
    font-size: 0.75rem;
  }

  .viz-guided-architecture-fanout {
    display: none;
  }

  .viz-guided-architecture-lanes {
    gap: 0.7rem;
  }

  .viz-guided-architecture-lanes > li {
    grid-template-columns: minmax(0, 1fr) 1.8rem minmax(0, 1.15fr);
  }

  .viz-guided-architecture-request b {
    display: none;
  }
}

/* KGE-02 needs the diagram beside its title on short desktop stages. This gives
   the target model its full narrative height while preserving the established
   text floors; only the cells' excess minimum height and padding are removed. */
@media screen and (min-width: 1024px) and (max-height: 840px) {
  .presentation-stage.is-kong-guided .slide-narrative:has(.viz-guided.is-target-model) {
    grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.8fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .presentation-stage.is-kong-guided .slide-narrative:has(.viz-guided.is-target-model) .slide-title {
    max-width: 11ch;
    align-self: start;
    font-size: clamp(2.4rem, 3.5vw, 3.6rem);
    line-height: 0.91;
  }

  .presentation-stage.is-kong-guided .slide-visual:has(.viz-guided.is-target-model),
  .presentation-stage.is-kong-guided .viz-guided.is-target-model,
  .presentation-stage.is-kong-guided .viz-guided.is-target-model .viz-guided-frame,
  .presentation-stage.is-kong-guided .viz-guided-target-model {
    min-height: 0;
    height: 100%;
  }

  .presentation-stage.is-kong-guided .slide-visual:has(.viz-guided.is-target-model) {
    padding: 0.3rem 0;
  }

  .presentation-stage.is-kong-guided .viz-guided-target-model {
    gap: 0.35rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-target h3 {
    padding: 0.38rem 0.5rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-target li {
    min-height: 0;
    padding: 0.3rem 0.45rem;
  }
}

/* At 1024px the four gates remain room-readable as a two-by-two grid instead
   of becoming four narrow columns. Narrower stages retain the scrollable flow. */
@media screen and (min-width: 1024px) and (max-width: 1199px) and (max-height: 840px) {
  .presentation-stage.is-kong-guided .viz-guided-early-gates ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-stage.is-kong-guided .viz-guided-early-gates li:nth-child(odd) {
    border-left: 0;
  }

  .presentation-stage.is-kong-guided .viz-guided-early-gates li:nth-child(n + 3) {
    border-top: 1px solid var(--guided-line);
  }
}

/* KGE-02 and KGE-18 carry decisions in the visual itself, so their authored
   labels and descriptions follow the presentation text-floor contract rather
   than the compact dashboard scale used by generic charts. */
@media screen {
  .presentation-stage.is-kong-guided {
    --guided-decision-copy: 1.125rem;
    --guided-decision-meta: 1rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-early-gates > header span,
  .presentation-stage.is-kong-guided .viz-guided-early-gates li > span,
  .presentation-stage.is-kong-guided .viz-guided-early-gates li > small,
  .presentation-stage.is-kong-guided .viz-guided-programme-contract span,
  .presentation-stage.is-kong-guided .viz-guided-programme-group > header > span,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li > span,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li small {
    font-size: var(--guided-decision-meta);
  }

  .presentation-stage.is-kong-guided .viz-guided-target h3,
  .presentation-stage.is-kong-guided .viz-guided-early-gates > header strong,
  .presentation-stage.is-kong-guided .viz-guided-early-gates li > strong,
  .presentation-stage.is-kong-guided .viz-guided-programme-contract strong,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li strong,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li p {
    font-size: var(--guided-decision-copy);
  }

  .presentation-stage.is-kong-guided .viz-guided-programme-group > header > strong {
    font-size: calc(var(--guided-decision-copy) + 0.125rem);
  }

  .presentation-stage.is-kong-guided .viz-guided-early-gates > header span,
  .presentation-stage.is-kong-guided .viz-guided-early-gates li > span,
  .presentation-stage.is-kong-guided .viz-guided-early-gates li > small,
  .presentation-stage.is-kong-guided .viz-guided-programme-contract span,
  .presentation-stage.is-kong-guided .viz-guided-programme-group > header > span,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li > span,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li small {
    line-height: 1.15;
  }

  .presentation-stage.is-kong-guided .viz-guided-early-gates > header strong,
  .presentation-stage.is-kong-guided .viz-guided-early-gates li > strong,
  .presentation-stage.is-kong-guided .viz-guided-programme-contract strong,
  .presentation-stage.is-kong-guided .viz-guided-programme-group > header > strong,
  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li strong {
    line-height: 1.08;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li p {
    line-height: 1.18;
  }
}

@media screen and (min-width: 1600px) and (min-height: 1000px) {
  .presentation-stage.is-kong-guided {
    --guided-decision-copy: 1.5rem;
    --guided-decision-meta: 1.125rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme-board {
    min-height: 32.5rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme-group > header > strong {
    font-size: calc(var(--guided-decision-copy) + 0.125rem);
  }
}

/* The guided deck is authored against a 1920 x 1080 room canvas. On larger
   screens, scale its rem-based type and chrome by the limiting 16:9 axis so
   content keeps the same visual rhythm instead of collecting at the top of an
   increasingly tall stage. This remains screen-only and does not alter print. */
@media screen and (min-width: 1921px) and (min-height: 1081px) {
  html:has(body.is-presenting .presentation-stage.is-kong-guided) {
    font-size: clamp(16px, min(0.833333vw, 1.481481vh), 64px);
  }
}

/* A few guided visuals are intentionally concise. On roomy desktop stages,
   propagate the visual row's height through their semantic wrappers and let
   the cards or table rows share that room. Dense diagrams and roadmaps are
   deliberately excluded, as are compact and mobile layouts. */
@media screen and (min-width: 1800px) and (min-height: 1000px) {
  .presentation-stage.is-kong-guided .slide-visual:has(> .viz-guided:is(.is-cover, .is-target-model, .is-weights, .is-options, .is-score, .is-decision, .is-boundary, .is-duty, .is-proof-boundary, .is-comparison-economics)) > .viz-guided,
  .presentation-stage.is-kong-guided .slide-visual:has(> .viz-guided:is(.is-cover, .is-target-model, .is-weights, .is-options, .is-score, .is-decision, .is-boundary, .is-duty, .is-proof-boundary, .is-comparison-economics)) .viz-guided-frame {
    height: 100%;
  }

  .presentation-stage.is-kong-guided .viz-guided:is(.is-cover, .is-target-model, .is-options, .is-decision, .is-boundary, .is-duty, .is-proof-boundary) .viz-guided-frame > * {
    height: 100%;
  }

  .presentation-stage.is-kong-guided .viz-guided:is(.is-weights, .is-score) .viz-guided-frame {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .presentation-stage.is-kong-guided .viz-guided.is-weights .viz-guided-weights,
  .presentation-stage.is-kong-guided .viz-guided.is-score .viz-guided-score-rank {
    min-height: 0;
    height: 100%;
    grid-auto-rows: minmax(0, 1fr);
  }

  .presentation-stage.is-kong-guided .slide-visual:has(> .viz-kps-roadmap),
  .presentation-stage.is-kong-guided .slide-visual:has(> .viz-kps-outcomes) {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .presentation-stage.is-kong-guided .slide-visual > .viz-kps-roadmap,
  .presentation-stage.is-kong-guided .slide-visual > .viz-kps-outcomes,
  .presentation-stage.is-kong-guided .viz-kps-roadmap-list,
  .presentation-stage.is-kong-guided .viz-kps-outcome-list {
    min-height: 0;
    height: 100%;
  }

  .presentation-stage.is-kong-guided .viz-kps-roadmap-list,
  .presentation-stage.is-kong-guided .viz-kps-outcome-list {
    grid-auto-rows: minmax(0, 1fr);
  }

  .presentation-stage.is-kong-guided .viz-kps-roadmap-list > li,
  .presentation-stage.is-kong-guided .viz-kps-outcome-list > li,
  .presentation-stage.is-kong-guided .viz-kps-roadmap-list .viz-presentation-detail:not([open]),
  .presentation-stage.is-kong-guided .viz-kps-outcome-list .viz-presentation-detail:not([open]),
  .presentation-stage.is-kong-guided .viz-kps-roadmap-list .viz-presentation-detail:not([open]) > summary,
  .presentation-stage.is-kong-guided .viz-kps-outcome-list .viz-presentation-detail:not([open]) > summary {
    min-height: 0;
    height: 100%;
  }

  .presentation-stage.is-kong-guided .viz-kps-roadmap-list .viz-presentation-detail:not([open]) > summary,
  .presentation-stage.is-kong-guided .viz-kps-outcome-list .viz-presentation-detail:not([open]) > summary {
    align-content: center;
  }

  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-roadmap .viz-presentation-detail[open]) > .viz-kps-roadmap,
  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-outcomes .viz-presentation-detail[open]) > .viz-kps-outcomes,
  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-roadmap .viz-presentation-detail[open]) .viz-kps-roadmap-list,
  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-outcomes .viz-presentation-detail[open]) .viz-kps-outcome-list,
  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-roadmap .viz-presentation-detail[open]) .viz-kps-roadmap-list > li,
  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-outcomes .viz-presentation-detail[open]) .viz-kps-outcome-list > li {
    height: auto;
  }

  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-roadmap .viz-presentation-detail[open]) .viz-kps-roadmap-list,
  .presentation-stage.is-kong-guided .slide-visual:has(.viz-kps-outcomes .viz-presentation-detail[open]) .viz-kps-outcome-list {
    grid-auto-rows: auto;
  }

  .presentation-stage.is-kong-guided .viz-guided.is-comparison-economics .viz-guided-comparison-wrap,
  .presentation-stage.is-kong-guided .viz-guided.is-comparison-economics .viz-guided-comparison {
    height: 100%;
  }

  .presentation-stage.is-kong-guided .viz-guided.is-comparison-economics .viz-guided-comparison tbody tr {
    height: 33.333%;
  }

  .presentation-stage.is-kong-guided .viz-guided.is-comparison-economics .viz-guided-comparison th,
  .presentation-stage.is-kong-guided .viz-guided.is-comparison-economics .viz-guided-comparison td {
    vertical-align: middle;
  }
}

@page kong-guided-slide {
  size: 16in 9in;
  margin: 0;
}

@media print {
  body.is-presenting .skip-link {
    display: none !important;
  }

  body.is-presenting:has(.presentation-stage.is-kong-guided),
  body.is-presenting:has(.presentation-stage.is-kong-guided) > main,
  body.is-presenting:has(.presentation-stage.is-kong-guided) .presentation-stage {
    page: kong-guided-slide;
  }

  .presentation-stage.is-kong-guided .presentation-slide.is-guided-slide {
    page: kong-guided-slide;
    width: 16in;
    height: 9in;
    min-height: 9in;
    max-height: 9in;
    grid-template-rows: 0.48in minmax(0, 1fr) 1.16in;
    color: var(--guided-ink) !important;
    background: var(--guided-paper) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .presentation-stage.is-kong-guided .journey-phase-spine,
  .presentation-stage.is-kong-guided .slide-main,
  .presentation-stage.is-kong-guided .slide-visual,
  .presentation-stage.is-kong-guided .viz-guided-frame {
    min-height: 0;
  }

  .presentation-stage.is-kong-guided .journey-phase-spine {
    background: var(--guided-paper) !important;
  }

  .presentation-stage.is-kong-guided .journey-phase-spine li.is-current {
    background: var(--guided-yellow) !important;
  }

  .presentation-stage.is-kong-guided .guided-terms {
    gap: 0.03in 0.09in !important;
    padding: 0.035in 0.08in !important;
    background: color-mix(in srgb, var(--guided-yellow) 8%, transparent) !important;
    font-size: 0.095in !important;
    line-height: 1.12 !important;
    break-inside: avoid !important;
  }

  .presentation-stage.is-kong-guided .guided-terms ul {
    gap: 0.02in 0.08in !important;
  }

  .presentation-stage.is-kong-guided .guided-terms li:not(:last-child)::after {
    margin-left: 0.08in !important;
  }

  .presentation-stage.is-kong-guided .journey-proof-strip {
    position: relative !important;
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
    padding: 0.12in 0.3in 0.15in !important;
    color: var(--guided-paper) !important;
    background: var(--guided-ink) !important;
  }

  .presentation-stage.is-kong-guided .journey-proof-strip .slide-aside-content {
    width: auto !important;
    min-width: 0 !important;
    grid-template-columns: minmax(1.55in, 0.8fr) minmax(0, 4fr) !important;
    grid-template-rows: auto !important;
    gap: 0.16in !important;
    overflow: visible !important;
    padding: 0 2.55in 0 0 !important;
  }

  .presentation-stage.is-kong-guided .slide-reference-actions {
    position: absolute !important;
    right: 0.3in !important;
    top: 50% !important;
    z-index: 3 !important;
    width: 2.2in !important;
    min-width: 0 !important;
    display: block !important;
    transform: translateY(-50%) !important;
  }

  .presentation-stage.is-kong-guided .slide-reference-actions .slide-source {
    width: 100% !important;
    max-width: none !important;
    display: inline-flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    font-size: 0.12in !important;
    line-height: 1.15 !important;
    text-align: right !important;
  }

  .presentation-stage.is-kong-guided .slide-references {
    display: none !important;
  }

  .presentation-stage.is-kong-guided .journey-proof-strip *,
  .presentation-stage.is-kong-guided .journey-proof-copy .slide-body {
    color: var(--guided-paper) !important;
  }

  .presentation-stage.is-kong-guided .journey-proof-strip .slide-metric strong,
  .presentation-stage.is-kong-guided .journey-proof-strip .slide-metric span,
  .presentation-stage.is-kong-guided .journey-proof-copy > span,
  .presentation-stage.is-kong-guided .journey-proof-strip .slide-source {
    color: var(--guided-yellow) !important;
  }

  .presentation-stage.is-kong-guided .viz-guided-meta {
    display: none !important;
  }

  .presentation-stage.is-kong-guided .slide-visual {
    padding-block: 0 !important;
  }

  .presentation-stage.is-kong-guided .viz-guided-score-rank li {
    grid-template-columns: 3rem minmax(8rem, 0.8fr) minmax(0, 5fr) 8rem !important;
  }

  .presentation-stage.is-kong-guided .viz-guided-score-rank li > b {
    font-size: 3.5rem !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary-groups {
    grid-template-columns: 1.1fr 2.4fr 0.7fr !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary section:nth-child(2) ol {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary h3 {
    padding: 0.18rem 0.35rem !important;
    font-size: 0.78rem !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary li {
    grid-template-columns: 1.5rem minmax(0, 1fr) !important;
    gap: 0.22rem !important;
    padding: 0.2rem !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary strong {
    font-size: 0.9rem !important;
    line-height: 1.05 !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-boundary p {
    margin-top: 0.08rem !important;
    font-size: 0.78rem !important;
    line-height: 1.05 !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-wave-list {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-wave-list li {
    grid-template-columns: 1.35rem minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr !important;
    gap: 0.16rem !important;
    padding: 0.22rem !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-wave-list li > span {
    grid-row: 1 / span 2 !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-wave-list strong,
  .presentation-stage.is-kong-guided .viz-mule-wave-list p {
    grid-column: 2 !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-wave-list strong {
    font-size: 0.9rem !important;
    line-height: 1.05 !important;
  }

  .presentation-stage.is-kong-guided .viz-mule-wave-list p {
    font-size: 0.76rem !important;
    line-height: 1.05 !important;
  }

  .presentation-stage.is-kong-guided .viz-kps-outcome-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .presentation-stage.is-kong-guided .viz-kps-outcome-list > li {
    grid-template-columns: 2.5rem minmax(0, 1fr) !important;
    gap: 0.3rem !important;
    padding: 0.28rem !important;
  }

  .presentation-stage.is-kong-guided .viz-kps-outcome-list .viz-kps-copy {
    gap: 0.22rem !important;
  }

  .presentation-stage.is-kong-guided .viz-kps-outcome-list .viz-kps-copy > strong {
    font-size: 0.95rem !important;
    line-height: 1.05 !important;
  }

  .presentation-stage.is-kong-guided .viz-kps-outcome-list .viz-kps-copy p {
    font-size: 0.76rem !important;
    line-height: 1.08 !important;
  }

  .presentation-stage.is-kong-guided .diagram-frame .diagram-summary,
  .presentation-stage.is-kong-guided .diagram-frame .diagram-summary[hidden] {
    display: none !important;
  }

  .presentation-stage.is-kong-guided .diagram-frame .diagram-scroll,
  .presentation-stage.is-kong-guided .diagram-frame .diagram-scroll[hidden] {
    height: 100% !important;
    display: block !important;
    overflow: hidden !important;
  }

  .presentation-stage.is-kong-guided .diagram-frame .diagram-scroll svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    margin: 0 auto;
  }

  .presentation-stage.is-kong-guided .diagram-frame.has-authored-overview .diagram-summary,
  .presentation-stage.is-kong-guided .diagram-frame.has-authored-overview .diagram-summary[hidden] {
    height: 100% !important;
    display: block !important;
  }

  .presentation-stage.is-kong-guided .diagram-frame.has-authored-overview .diagram-scroll,
  .presentation-stage.is-kong-guided .diagram-frame.has-authored-overview .diagram-scroll[hidden] {
    display: none !important;
  }
}

/* Guided deck review corrections: boundary and duty labels, outcome cards, scroll reachability, density */
.viz-guided-boundaries p::before,
.viz-guided-boundaries small[data-label]::before,
.viz-kps-outcome-cards p::before {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  content: attr(data-label);
}

.viz-guided-boundaries small[data-label] {
  display: block;
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid var(--guided-line);
  color: var(--guided-ink);
  font-size: clamp(1rem, 1.05vw, 1.2rem);
  line-height: 1.25;
}

.viz-guided-scenario-audit strong > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.viz-kps-outcomes.is-guided-cards {
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.viz-kps-outcome-cards {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--guided-ink);
  border-left: 1px solid var(--guided-ink);
}

.viz-kps-outcome-cards[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

.viz-kps-outcome-cards > li {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(0.6rem, 0.9vw, 1rem);
  border-right: 1px solid var(--guided-ink);
  border-bottom: 1px solid var(--guided-ink);
  background: var(--guided-paper);
}

.viz-kps-outcome-cards > li:nth-child(odd) {
  background: color-mix(in srgb, var(--guided-yellow) 14%, var(--guided-paper));
}

.viz-kps-outcome-cards > li > .viz-kps-index {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: clamp(0.85rem, 0.9vw, 1.05rem);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.viz-kps-outcome-cards > li > strong {
  font-family: "Avenir Next", Avenir, "Century Gothic", Trebuchet MS, sans-serif;
  font-size: clamp(1.1rem, 1.3vw, 1.6rem);
  line-height: 1.05;
  text-wrap: balance;
  text-transform: none;
}

.viz-kps-outcome-cards > li > strong::first-letter {
  text-transform: uppercase;
}

.viz-kps-outcome-cards p {
  margin: 0;
  color: var(--guided-muted);
  font-size: clamp(1rem, 1.05vw, 1.2rem);
  line-height: 1.25;
  text-wrap: pretty;
}

.viz-kps-outcome-cards .viz-kps-outcome-more {
  min-width: 0;
  margin-top: auto;
  border-top: 1px solid var(--guided-line);
}

.viz-kps-outcome-cards .viz-kps-outcome-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.4rem 0 0.15rem;
  color: var(--guided-violet);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viz-kps-outcome-cards .viz-kps-outcome-more > summary::-webkit-details-marker {
  display: none;
}

.viz-kps-outcome-cards .viz-kps-outcome-more > summary:focus-visible {
  outline: 2px solid var(--guided-violet);
  outline-offset: 2px;
}

.viz-kps-outcome-cards .viz-kps-outcome-more[open] .when-closed,
.viz-kps-outcome-cards .viz-kps-outcome-more:not([open]) .when-open {
  display: none;
}

.viz-kps-outcome-cards .viz-kps-outcome-more > div {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.presentation-stage.is-kong-guided .slide-visual:has(> .viz-kps-outcomes.is-guided-cards) {
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media screen and (max-width: 1023px) {
  .viz-kps-outcome-cards,
  .viz-kps-outcome-cards[data-count="6"] {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .viz-kps-outcomes.is-guided-cards {
    height: auto;
  }
}

@media screen and (max-width: 760px) {
  .viz-kps-outcome-cards,
  .viz-kps-outcome-cards[data-count="6"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Diagram takeaway panel carries the canonical figure contract, not only one sentence. */
.diagram-summary .diagram-summary-detail {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  margin: 0;
  align-items: start;
}

.diagram-summary .diagram-summary-detail > b {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--guided-violet, var(--signal-dark, currentColor));
  padding-top: 0.2rem;
}

.diagram-summary .diagram-summary-detail > span {
  font-size: clamp(0.98rem, 1.05vw, 1.25rem);
  line-height: 1.3;
  text-wrap: pretty;
}

.diagram-summary.has-contract-detail {
  gap: 0.65rem;
}

@media screen and (max-width: 760px) {
  .diagram-summary .diagram-summary-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

/* Visible scroll affordance positioned over whichever slide surface actually scrolls. */
.presentation-stage > .slide-scroll-cue {
  position: fixed;
  z-index: 40;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.presentation-stage > .slide-scroll-cue[hidden] {
  display: none;
}

.presentation-stage > .slide-scroll-cue > span {
  position: absolute;
  left: 0;
  bottom: 0.45rem;
  transform: translateX(-50%);
  padding: 0.28rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--guided-paper, var(--paper, #fff));
  color: var(--guided-ink, var(--ink, currentColor));
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

.presentation-stage:not(.is-kong-guided) > .slide-scroll-cue > span {
  background: #1f211d;
  color: #f4efe6;
  border-color: #6b6f66;
}

@media (prefers-reduced-motion: no-preference) {
  .presentation-stage > .slide-scroll-cue > span {
    animation: slide-scroll-cue-nudge 1.8s ease-in-out infinite;
  }

  @keyframes slide-scroll-cue-nudge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-0.2rem); }
  }
}

/* Proof-programme and score-audit density at laptop/projector heights. */
@media screen and (min-width: 1024px) and (max-height: 900px) {
  .presentation-stage.is-kong-guided .viz-guided-programme-board {
    min-height: 0;
    gap: 0.4rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme-contract {
    padding: 0.32rem 0.6rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme-group > header {
    min-height: 2.9rem;
    padding: 0.38rem 0.6rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven .viz-guided-programme-group li {
    gap: 0.45rem;
    padding: 0.42rem 0.55rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li > div {
    gap: 0.18rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li p {
    line-height: 1.16;
  }

  .presentation-stage.is-kong-guided .viz-guided-scenario-audit > div > * {
    padding: 0.2rem 0.34rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-audit-row > *,
  .presentation-stage.is-kong-guided .viz-guided-audit-head > * {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
}

/* Outcome cards size to their content and scroll rather than clip; tighter programme tier for 768px-high projectors. */
.viz-kps-outcome-cards[data-count="6"] {
  grid-auto-rows: minmax(min-content, 1fr);
}

.viz-kps-outcome-cards > li {
  overflow: visible;
}

@media screen and (min-width: 1024px) and (max-height: 900px) {
  .viz-kps-outcome-cards > li {
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
  }

  .viz-kps-outcome-cards > li > strong {
    font-size: clamp(1.05rem, 1.2vw, 1.4rem);
  }

  .viz-kps-outcome-cards p {
    line-height: 1.2;
  }

  .viz-kps-outcome-cards .viz-kps-outcome-more > summary {
    padding-top: 0.3rem;
  }
}

@media screen and (min-width: 1024px) and (max-height: 800px) {
  .presentation-stage.is-kong-guided .viz-guided-programme-contract {
    padding: 0.22rem 0.55rem;
    gap: 0.5rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme-group > header {
    min-height: 2.4rem;
    padding: 0.3rem 0.55rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven .viz-guided-programme-group li {
    gap: 0.4rem;
    padding: 0.34rem 0.5rem;
  }

  .presentation-stage.is-kong-guided .viz-guided-programme.is-seven li p {
    line-height: 1.14;
  }
}

/* A takeaway panel that carries the figure contract starts at the top and scrolls instead of centring past its frame. */
.diagram-summary.has-contract-detail {
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}
