.transition-article-insert {
  --paper: var(--viz-paper, #fffdf8);
  --wash: #f7e9df;
  --sand: #dfc1a9;
  --clay: #b86b4a;
  --action: #8c4733;
  --deep: #4b261e;
  --ink: var(--viz-text, #30201c);
  --muted: var(--viz-muted, #6d554c);
  --line: var(--viz-line, rgba(75, 38, 30, 0.22));
  --white: var(--viz-surface, #fffdfa);
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--viz-font-body, "Segoe UI", system-ui, sans-serif);
  contain: layout paint;
  overflow: hidden;
}

@scope (.transition-article-insert) {
.transition-article-insert *,
.transition-article-insert *::before,
.transition-article-insert *::after {
  box-sizing: border-box;
}

.transition-article-insert__caption {
  display: grid;
  gap: 6px;
  padding: 16px 20px 18px;
  background: #fffdf7;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.transition-article-insert__caption strong {
  color: var(--deep);
  font-family: var(--viz-font-display, Georgia, serif);
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 500;
  line-height: 1.25;
}

.transition-article-insert__caption span {
  display: block;
}

.visual__stage {
  min-height: 470px;
  padding: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 01 — independent lenses aimed at a hypothesis */
.lenses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 28px;
  min-height: 440px;
  overflow: hidden;
  padding: 46px 42px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9%),
    linear-gradient(135deg, #fffaf3, var(--wash));
}

.lens {
  position: relative;
  display: grid;
  width: min(100%, 244px);
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
  padding: 38px;
  border: 2px solid rgba(75, 38, 30, 0.25);
  border-radius: 50%;
  color: var(--deep);
  text-align: center;
}

.lens strong {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.08;
}

.lens span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.lens--approval {
  background: rgba(223, 193, 169, 0.68);
}

.lens--quiet {
  background: rgba(252, 250, 245, 0.78);
}

.lens--body {
  background: rgba(184, 107, 74, 0.22);
}

.lens::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 2px;
  height: 40px;
  background: var(--action);
  content: "";
}

.lenses__centre {
  grid-column: 1 / -1;
  display: grid;
  width: min(620px, 88%);
  min-height: 86px;
  justify-self: center;
  place-items: center;
  padding: 20px 28px;
  border: 2px solid var(--deep);
  border-radius: 18px;
  background: var(--white);
  color: var(--deep);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  box-shadow: 0 14px 36px rgba(75, 38, 30, 0.14);
}

.lenses__collector {
  display: none;
}

/* 04 — a sectional foundation */
.foundation {
  position: relative;
  display: grid;
  min-height: 440px;
  align-content: end;
  padding: 32px 7% 40px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #fffdf9 0 54%, #f3e6da 54% 100%);
}

.foundation__new {
  justify-self: center;
  width: min(360px, 54%);
  padding: 24px 28px;
  border: 2px solid var(--action);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fffaf5;
  text-align: center;
}

.foundation__new strong,
.foundation__day strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 23px;
}

.foundation__new span,
.foundation__day span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.foundation__day {
  padding: 24px;
  border: 2px solid var(--deep);
  background: var(--sand);
  text-align: center;
}

.foundation__base {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 2px solid var(--deep);
  border-top: 0;
  background: var(--deep);
  gap: 2px;
}

.foundation__base span {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 14px 8px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 750;
  text-align: center;
}

.foundation__ground {
  height: 18px;
  margin: 0 -4% -1px;
  border-radius: 0 0 50% 50%;
  background: repeating-linear-gradient(
    90deg,
    var(--deep) 0 10px,
    transparent 10px 18px
  );
  opacity: 0.38;
}

/* 07 — ethical routing, visibly asymmetric */
.safety-route {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) 44px minmax(0, 1.12fr);
  min-height: 440px;
  gap: 8px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(140deg, #fbf5ed, #efe0d3);
}

.safety-route > * {
  min-width: 0;
}

.safety-route__crisis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 2px solid var(--deep);
  border-radius: 18px;
  background: var(--white);
}

.safety-route__crisis strong {
  font-family: Georgia, serif;
  font-size: 21px;
}

.safety-route__crisis span {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--deep);
  color: var(--white);
  font-size: 16px;
  font-weight: 750;
}

.safety-route__observations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.safety-route__observations div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 50% 50% 44% 56% / 52% 44% 56% 48%;
  background: rgba(255, 253, 250, 0.72);
}

.safety-route__observations strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 18px;
}

.safety-route__observations span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.38;
}

.safety-route__arrow {
  color: var(--action);
  font-size: 46px;
  text-align: center;
}

.safety-route__destinations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.safety-route__destinations > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.safety-route__choice {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sand);
  color: var(--deep);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.safety-route__medical {
  padding: 22px;
  border: 2px solid var(--deep);
  border-radius: 22px 22px 8px 22px;
  background: var(--deep);
  color: var(--white);
}

.safety-route__medical strong,
.safety-route__parallel strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.08;
}

.safety-route__medical span,
.safety-route__parallel span {
  display: block;
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.45;
}

.safety-route__parallel {
  width: 100%;
  margin-left: auto;
  padding: 22px 24px;
  border-left: 5px solid var(--clay);
  background: rgba(255, 253, 250, 0.78);
}

.safety-route__note {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--deep);
  font-size: 16px;
  font-weight: 750;
  text-align: center;
}

/* 10 — three ribbons changing direction */
.role-flow {
  position: relative;
  display: grid;
  min-height: 440px;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding: 34px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 50%, rgba(184, 107, 74, 0.18), transparent 33%),
    var(--white);
}

.role-flow::before {
  position: absolute;
  inset: 50% auto auto 12%;
  width: 76%;
  height: 1px;
  background: var(--line);
  content: "";
}

.ribbon {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(72px, 1fr) 250px;
  align-items: center;
  gap: 14px;
}

.ribbon__label,
.ribbon__outcome {
  position: relative;
  z-index: 2;
  padding: 15px 16px;
  background: var(--paper);
}

.ribbon__label {
  border-radius: 12px 2px 2px 12px;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.ribbon__path {
  height: 24px;
  transform: skewX(-28deg);
  border-radius: 2px;
}

.ribbon__outcome {
  border-radius: 2px 12px 12px 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.ribbon--ends .ribbon__path {
  background: #b7a59a;
}

.ribbon--stays .ribbon__path {
  background: var(--clay);
}

.ribbon--returns .ribbon__path {
  background: var(--action);
}

.ribbon--returns .ribbon__outcome {
  border: 2px solid var(--action);
  color: var(--deep);
}

/* 12 — working circuit with a return loop */
.action-circuit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
  min-height: 440px;
  align-content: center;
  padding: 44px 34px 90px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(140, 71, 51, 0.08) 8% 92%, transparent 92%),
    var(--white);
}

.circuit-step {
  position: relative;
  display: grid;
  grid-template-rows: minmax(58px, auto) 1fr;
  gap: 12px;
  min-width: 0;
}

.circuit-step:not(:last-of-type)::after {
  position: absolute;
  z-index: 1;
  top: calc(58px + 12px + (100% - 70px) / 2);
  left: calc(100% + 3px);
  width: 42px;
  height: 2px;
  background: var(--action);
  content: "";
}

.circuit-step:not(:last-of-type)::before {
  position: absolute;
  z-index: 2;
  top: calc(58px + 7px + (100% - 70px) / 2);
  left: calc(100% + 38px);
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 2px solid var(--action);
  border-right: 2px solid var(--action);
  content: "";
}

.circuit-step:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.circuit-step:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

.circuit-step:nth-child(2)::after {
  top: calc(100% + 3px);
  left: 50%;
  width: 2px;
  height: 28px;
}

.circuit-step:nth-child(2)::before {
  top: calc(100% + 23px);
  left: calc(50% - 4px);
  transform: rotate(135deg);
}

.circuit-step:nth-child(3)::after {
  right: calc(100% + 3px);
  left: auto;
}

.circuit-step:nth-child(3)::before {
  right: calc(100% + 38px);
  left: auto;
  transform: rotate(225deg);
}

.circuit-node {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 170px;
  place-content: center;
  padding: 24px;
  border: 2px solid var(--deep);
  border-radius: 48% 52% 44% 56% / 56% 44% 56% 44%;
  background: var(--paper);
  text-align: center;
}

.circuit-node strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 23px;
}

.circuit-node span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.circuit-break {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--action);
  border-radius: 14px;
  background: var(--white);
  color: var(--action);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.action-circuit__return {
  position: absolute;
  right: 12%;
  bottom: 28px;
  left: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 2px dashed var(--clay);
  border-top: 0;
  border-radius: 0 0 40px 40px;
  color: var(--deep);
  font-size: 16px;
  font-weight: 750;
  text-align: center;
}

/* 02 — topographic situation map */
.topography {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 78% 26%, rgba(255, 255, 255, 0.76) 0 17%, transparent 18%),
    repeating-radial-gradient(ellipse at 32% 52%, transparent 0 34px, rgba(75, 38, 30, 0.08) 35px 36px),
    var(--wash);
}

.topography__zone {
  position: absolute;
  display: grid;
  place-content: center;
  padding: 28px;
  border: 2px solid var(--deep);
  color: var(--deep);
}

.topography__zone strong,
.topography__question strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.topography__zone span,
.topography__question span {
  display: block;
  font-size: 16px;
  line-height: 1.42;
}

.topography__zone--lost {
  top: 58px;
  left: 5%;
  width: 31%;
  min-height: 170px;
  transform: rotate(-2deg);
  border-style: dashed;
  border-radius: 60% 40% 54% 46% / 48% 55% 45% 52%;
  background: rgba(183, 165, 154, 0.42);
}

.topography__zone--support {
  right: 7%;
  bottom: 44px;
  width: 34%;
  min-height: 170px;
  transform: rotate(1.5deg);
  border-radius: 44% 56% 42% 58% / 52% 46% 54% 48%;
  background: rgba(255, 253, 250, 0.88);
}

.topography__unknown {
  position: absolute;
  top: 46px;
  right: 8%;
  width: 27%;
  min-height: 120px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(109, 85, 76, 0.12), rgba(109, 85, 76, 0.34));
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.topography__question {
  position: absolute;
  bottom: 58px;
  left: 31%;
  width: 34%;
  min-height: 96px;
  padding: 20px 24px;
  border: 2px solid var(--action);
  border-radius: 18px;
  background: var(--white);
  color: var(--deep);
  box-shadow: 0 16px 34px rgba(75, 38, 30, 0.12);
}

.topography__route {
  position: absolute;
  top: 49%;
  left: 25%;
  width: 55%;
  height: 3px;
  transform: rotate(12deg);
  background: repeating-linear-gradient(90deg, var(--action) 0 12px, transparent 12px 22px);
}

/* 03 — decision frame */
.decision-frame {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  min-height: 470px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf9, var(--wash));
}

.decision-frame__option {
  display: grid;
  min-height: 150px;
  place-content: center;
  padding: 22px;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.decision-frame__guides {
  display: grid;
  gap: 16px;
}

.decision-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: start;
  min-height: 82px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.decision-guide strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.decision-guide span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.38;
}

.decision-frame__uncertainty {
  grid-column: 1 / -1;
  padding: 16px 22px;
  border-left: 5px solid var(--clay);
  background: rgba(255, 253, 250, 0.74);
  color: var(--deep);
  font-size: 16px;
  text-align: center;
}

/* 05 — two narrative trajectories */
.help-paths {
  display: grid;
  gap: 30px;
  min-height: 470px;
  align-content: center;
  padding: 38px;
  border-radius: 24px;
  background: var(--white);
}

.help-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px 24px;
}

.help-path__title {
  grid-column: 1 / -1;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}

.help-path__point {
  position: relative;
  display: grid;
  min-height: 150px;
  place-content: center;
  padding: 26px;
  border: 2px solid var(--deep);
  border-radius: 50% 42% 54% 46% / 46% 56% 44% 54%;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.help-path__point:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  width: 18px;
  height: auto;
  transform: translateY(-50%);
  background: transparent;
  color: var(--action);
  content: "→";
  font-size: 24px;
  line-height: 1;
}

.help-path__point:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

.help-path__point:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.help-path__point:nth-child(3)::after {
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  content: "↓";
}

.help-path__point:nth-child(4)::after {
  right: calc(100% + 4px);
  left: auto;
  transform: translateY(-50%);
  content: "←";
}

.help-path__point:nth-child(5)::after {
  display: none;
}

.help-path--agreed .help-path__point:last-child {
  border-color: var(--action);
  background: var(--wash);
}

.help-path--rescue {
  padding-top: 26px;
  border-top: 2px dashed var(--line);
}

.help-path--rescue .help-path__point:nth-child(3),
.help-path--rescue .help-path__point:nth-child(4) {
  transform: none;
}

/* 06 — ability transfer map */
.transfer-map {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 2fr);
  min-height: 470px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 50%, rgba(184, 107, 74, 0.12), transparent 28%),
    var(--paper);
}

.transfer-map__role {
  padding: 16px;
  border: 2px dashed var(--muted);
  border-radius: 20px;
  color: var(--muted);
}

.transfer-map h3 {
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.15;
}

.transfer-map p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
}

.transfer-map__pairs {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px 24px;
  align-items: stretch;
}

.transfer-map__pair {
  display: contents;
}

.transfer-map__group-label {
  color: var(--action);
  font-size: 16px;
  font-weight: 800;
}

.transfer-map__ability {
  position: relative;
  padding: 16px 20px;
  border: 2px solid var(--action);
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  font-weight: 750;
  text-align: center;
  overflow-wrap: anywhere;
}

.transfer-map__ability::before,
.transfer-map__ability::after {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 2px;
  background: var(--clay);
  content: "";
}

.transfer-map__ability::before {
  display: none;
}

.transfer-map__ability::after {
  left: 100%;
  width: 34px;
}

.transfer-map__context {
  padding: 16px 18px;
  border-left: 4px solid var(--clay);
  background: var(--wash);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* 08 — architectural bridge section */
.change-bridge {
  position: relative;
  display: grid;
  grid-template-columns: 130px repeat(4, minmax(0, 1fr)) 130px;
  min-height: 470px;
  align-items: end;
  gap: 0;
  overflow: hidden;
  padding: 50px 22px 64px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9 0 60%, #ead7c8 60% 100%);
}

.change-bridge__pier {
  display: grid;
  min-height: 230px;
  place-content: center;
  padding: 20px;
  border: 2px solid var(--deep);
  background: var(--sand);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.change-bridge__span {
  position: relative;
  display: grid;
  min-height: 120px;
  place-content: center;
  align-self: start;
  margin-top: 42px;
  padding: 15px 10px;
  border-top: 8px solid var(--action);
  background: rgba(255, 253, 250, 0.84);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}

.change-bridge__span::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 82px;
  background: var(--deep);
  content: "";
}

.change-bridge__return {
  position: absolute;
  right: 25%;
  bottom: 24px;
  padding: 10px 18px;
  border: 2px dashed var(--action);
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  font-weight: 750;
}

/* 09 — woven ordinary week */
.week-weave {
  display: grid;
  grid-template-columns: 132px repeat(7, minmax(60px, 1fr));
  min-height: 470px;
  align-content: center;
  padding: 26px;
  border-radius: 24px;
  background: var(--paper);
}

.week-weave__day,
.week-weave__label,
.week-weave__cell {
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.week-weave__day {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.week-weave__label {
  font-family: Georgia, serif;
  font-weight: 700;
}

.week-weave__cell {
  position: relative;
  min-height: 64px;
}

.week-weave__cell::before {
  position: absolute;
  inset: 21px 0;
  border-radius: 999px;
  content: "";
}

.week-weave__cell.week-weave__row--continues::before {
  background: #b8a69b;
}

.week-weave__cell.week-weave__row--stability::before {
  background: var(--clay);
}

.week-weave__cell.week-weave__row--mine.week-weave__cell--chosen::before {
  inset: 10px;
  border: 3px solid var(--action);
  background: var(--white);
}

.week-weave__note {
  grid-column: 2 / -1;
  padding: 18px;
  border-top: 3px solid var(--action);
  color: var(--deep);
  font-size: 16px;
  text-align: center;
}

/* 11 — one dossier, not four cards */
.completion-file {
  position: relative;
  min-height: 470px;
  padding: 54px 9% 44px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ead8ca, #fffaf3);
}

.completion-file__folder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-height: 350px;
  padding: 54px 34px 34px;
  border: 2px solid var(--deep);
  border-radius: 8px 24px 24px 24px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(75, 38, 30, 0.12);
}

.completion-file__tab {
  position: absolute;
  top: -32px;
  left: -2px;
  display: block;
  width: 43%;
  min-height: 34px;
  padding: 8px 16px;
  border: 2px solid var(--deep);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--white);
  color: var(--action);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-transform: uppercase;
}

.completion-file__layer {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.completion-file__layer:nth-child(2),
.completion-file__layer:nth-child(4) {
  background: var(--wash);
}

.completion-file__layer strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.completion-file__layer span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .safety-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .safety-route__crisis {
    grid-column: 1;
  }

  .safety-route__arrow {
    transform: rotate(90deg);
  }

  .role-flow {
    overflow: visible;
  }

  .role-flow::before {
    display: none;
  }

  .ribbon {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ribbon__label,
  .ribbon__outcome {
    border-radius: 10px;
  }

  .ribbon__path {
    width: 3px;
    height: 32px;
    margin-left: 30px;
    transform: none;
  }

  .action-circuit {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 42px 26px 100px;
  }

  .circuit-step {
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .circuit-step:nth-child(3),
  .circuit-step:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .circuit-node {
    min-height: 124px;
  }

  .circuit-step:not(:last-of-type)::after {
    top: calc(100% + 3px);
    right: auto;
    left: 50%;
    width: 2px;
    height: 42px;
  }

  .circuit-step:not(:last-of-type)::before {
    top: calc(100% + 36px);
    right: auto;
    left: calc(50% - 4px);
    transform: rotate(135deg);
  }

  .action-circuit__return {
    right: 18px;
    bottom: 24px;
    left: 18px;
  }

  .decision-frame,
  .transfer-map {
    grid-template-columns: 1fr;
  }

  .decision-frame__uncertainty {
    grid-column: 1;
  }

  .transfer-map__ability::before,
  .transfer-map__ability::after {
    display: none;
  }

  .change-bridge {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
  }

  .change-bridge__pier {
    min-height: 104px;
  }

  .change-bridge__span {
    min-height: 90px;
    margin-top: 0;
    border-top: 0;
    border-left: 8px solid var(--action);
  }

  .change-bridge__span::after {
    display: none;
  }

  .change-bridge__return {
    position: static;
    margin-top: 18px;
    text-align: center;
  }

  .week-weave {
    grid-template-columns: 116px repeat(7, minmax(54px, 1fr));
    overflow-x: auto;
  }

  .week-weave__label {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .transition-article-insert {
    margin: 26px 0;
    border-radius: 20px;
  }

  .transition-article-insert__caption {
    padding: 0 18px 20px;
  }

  .visual__stage {
    min-height: 0;
    padding: 18px;
  }

  .lenses {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 54px;
    padding: 28px 18px;
  }

  .lens {
    width: 220px;
    padding: 38px;
  }

  .lens strong {
    font-size: 20px;
  }

  .lenses__centre {
    grid-column: 1;
    width: 100%;
    min-height: 90px;
    font-size: 18px;
  }

  .lens::after {
    display: none;
  }

  .lenses__collector {
    position: relative;
    display: grid;
    width: 82%;
    min-height: 52px;
    justify-self: center;
    place-items: center;
    margin-top: -28px;
    padding: 10px 14px;
    border-right: 2px solid var(--action);
    border-bottom: 2px solid var(--action);
    border-left: 2px solid var(--action);
    border-radius: 0 0 18px 18px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 750;
  }

  .lenses__collector::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--action);
    content: "";
  }

  .foundation {
    padding: 28px 12px 32px;
  }

  .foundation__new {
    width: 80%;
  }

  .foundation__base {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety-route {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .safety-route__crisis {
    grid-column: 1;
    display: block;
    gap: 10px;
    padding: 10px;
  }

  .safety-route__crisis strong {
    display: block;
    max-width: 100%;
    font-size: 17px;
    white-space: normal;
  }

  .safety-route__crisis span {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    overflow-wrap: normal;
  }

  .safety-route__destinations > * {
    padding-right: 10px;
    padding-left: 10px;
    overflow-wrap: normal;
  }

  .safety-route__medical strong,
  .safety-route__parallel strong {
    display: block;
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: normal;
    hyphens: none;
    white-space: normal;
  }

  .safety-route__observations {
    grid-template-columns: 1fr;
  }

  .safety-route__observations div {
    min-height: auto;
    border-radius: 16px;
  }

  .safety-route__arrow {
    transform: rotate(90deg);
  }

  .safety-route__parallel {
    width: 100%;
  }

  .topography {
    display: grid;
    gap: 16px;
    min-height: 0;
    padding: 20px;
  }

  .topography__zone,
  .topography__unknown,
  .topography__question {
    position: static;
    width: 100%;
    min-height: 0;
    transform: none;
    border-radius: 18px;
  }

  .topography__route {
    position: static;
    width: 3px;
    height: 30px;
    justify-self: center;
    transform: none;
    background: repeating-linear-gradient(180deg, var(--action) 0 8px, transparent 8px 14px);
  }

  .decision-frame {
    padding: 22px;
  }

  .decision-frame__option {
    min-height: 110px;
    border-radius: 18px;
  }

  .decision-guide {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 14px;
  }

  .help-paths {
    padding: 22px;
  }

  .help-path {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
  }

  .help-path__title {
    margin-bottom: 8px;
    padding: 4px 0 14px;
  }

  .help-path__point {
    min-height: 0;
    padding: 13px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    line-height: 1.35;
    text-align: left;
  }

  .help-path__point:nth-child(4),
  .help-path__point:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .help-path__point:not(:last-child)::after {
    display: none;
  }

  .help-path--rescue .help-path__point:nth-child(3),
  .help-path--rescue .help-path__point:nth-child(4) {
    transform: none;
  }

  .help-path--rescue {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 4px solid var(--action);
  }

  .transfer-map {
    padding: 22px;
  }

  .transfer-map__pairs {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .transfer-map__group-label {
    display: none;
  }

  .transfer-map__pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .transfer-map__ability,
  .transfer-map__context {
    min-height: 100%;
    padding: 13px 12px;
    border-radius: 14px;
    font-size: 15px;
    hyphens: none;
    text-align: left;
    overflow-wrap: normal;
  }

  .transfer-map__ability::after {
    top: 100%;
    left: 50%;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    transform: translateX(-50%);
    background: transparent;
    color: var(--action);
    content: "↓";
    font-size: 21px;
    line-height: 1;
  }

  .week-weave {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 18px 12px;
  }

  .week-weave__day,
  .week-weave__label,
  .week-weave__cell {
    padding: 8px 2px;
  }

  .week-weave > div:first-child {
    display: none;
  }

  .week-weave__label {
    grid-column: 1 / -1;
    padding: 16px 4px 7px;
    border-right: 0;
    border-bottom: 0;
    overflow-wrap: normal;
  }

  .week-weave__cell {
    min-height: 42px;
  }

  .week-weave__cell::before {
    inset: 12px 1px;
  }

  .week-weave__cell.week-weave__row--mine.week-weave__cell--chosen::before {
    inset: 5px;
  }

  .week-weave__note {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 16px 8px 0;
  }

  .completion-file {
    padding: 58px 18px 24px;
  }

  .completion-file__folder {
    grid-template-columns: 1fr;
    padding: 30px 14px 14px;
  }

  .completion-file__tab {
    width: 88%;
    font-size: 16px;
  }

}
}
