.swot-intro > .definition-card { width: fit-content; }
.swot-factors { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 6px 0 0; font-size: 1rem; line-height: 1.45; }
.swot-factors > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.swot-factors > div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.swot-factors dt, .swot-factors dd { font-weight: 700; }
.swot-factors dd { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.swot-factors dd span { white-space: nowrap; }
.swot-factors b, .decision-figure :is(.swot-matrix td, .swot-combine) b span { display: inline-grid; place-items: center; width: 1.55em; aspect-ratio: 1; border-radius: 50%; background: var(--swot-key); }
.swot-positive, .decision-figure :is(.swot-favor, .swot-combine) { --swot-key: var(--diagram-green); }
.swot-negative, .decision-figure .swot-barrier { --swot-key: #f2c8d8; }
.swot-positive { color: var(--green); }
.swot-negative { color: var(--rust); }

.decision-figure .swot-axis { width: 12%; }
.decision-figure .swot-matrix {
  font-size: clamp(.82rem, 1.6vw, 1rem);
  text-align: left;
  background: transparent;
}
.decision-figure .swot-matrix caption { color: var(--muted); font-size: .9375rem; padding-bottom: 6px; }
.decision-figure .swot-matrix :is(th, td) {
  border: 0;
  padding: clamp(5px, .8vw, 10px);
}
.decision-figure .swot-matrix thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.decision-figure .swot-matrix tbody th { font-size: 1.125rem; }
.decision-figure .swot-matrix tbody th small { font-size: .875rem; color: var(--muted); }
.decision-figure .swot-matrix tbody tr + tr > * { border-top: 2px solid var(--ink); }
.decision-figure .swot-matrix :is(.swot-favor-heading, .swot-barrier-heading) { padding-inline: clamp(8px, 2.1vw, 28px); }
.decision-figure .swot-matrix .swot-favor-heading { color: var(--teal); background: var(--mint); border-radius: 10px 0 0; }
.decision-figure .swot-matrix .swot-barrier-heading { color: var(--wine); background: var(--pink); border-radius: 0 10px 0 0; }
.decision-figure .swot-matrix td > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: clamp(8px, 1.25vw, 16px);
}
.decision-figure .swot-matrix img {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: clamp(62px, 13vw, 130px);
  max-width: 100%;
  height: auto;
}
.decision-figure .swot-matrix td b { align-self: end; line-height: 1.4; font-size: clamp(.98rem, 2vw, 1.26rem); }
.decision-figure .swot-matrix td p { padding-top: 4px; }
.decision-figure .swot-favor { background: var(--mint); }
.decision-figure .swot-favor b { color: var(--teal); }
.decision-figure .swot-barrier { background: var(--pink); }
.decision-figure .swot-barrier b { color: var(--wine); }
.decision-figure .swot-matrix tr:last-child .swot-favor { border-radius: 0 0 0 10px; }
.decision-figure .swot-matrix tr:last-child .swot-barrier { border-radius: 0 0 10px 0; }
.decision-figure .swot-combine {
  display: grid;
  grid-template-columns: auto clamp(14px, 5vw, 40px) minmax(0, 1fr);
  align-items: center;
  gap: 5px 12px;
  margin-top: 14px;
  padding: 8px 10px;
  border-top: 2px solid var(--ink);
  font-size: 1rem;
  line-height: 1.43;
}
.decision-figure .swot-combine b { color: var(--teal); }
.swot-action { display: flex; align-items: center; gap: 5px; }
.swot-action img { width: clamp(50px, 9vw, 105px); height: auto; }

.decision-figure .recovery-lane h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 4px 7px;
  font-size: clamp(.99rem, 2vw, 1.35rem);
  background: var(--pink);
}
.decision-figure .recovery-lane h3 span { font-size: .85rem; }
.decision-figure .recovery-problem h3 { background: var(--mint); }
.decision-figure .recovery-lane ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(10px, 2vw, 22px);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.decision-figure .recovery-lane li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding-block: 4px 8px;
  text-align: center;
}
.decision-figure .recovery-lane li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(16px, 4vw, 39px);
  right: calc(-1 * clamp(10px, 2vw, 22px) + 2px);
  width: clamp(8px, 1.5vw, 18px);
  height: 15px;
  background: var(--teal);
  clip-path: var(--step-arrow);
}
.decision-figure .recovery-lane img { display: block; width: clamp(56px, 9vw, 100px); height: auto; }
.decision-figure .recovery-lane li b { font-size: clamp(.85rem, 1.75vw, 1.05rem); }
.decision-figure .recovery-lane li > span { font-size: .83rem; line-height: 1.43; }
.decision-figure .recovery-evidence {
  padding: 8px 6px;
  font-size: .9rem;
  color: var(--teal);
  text-align: center;
}

.decision-figure .proxy-hosts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 8px; text-align: center; }
.decision-figure .proxy-hosts > div { padding: 5px 3px 6px; color: var(--ink); }
.decision-figure .proxy-hosts > div:nth-child(2) { background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--diagram-group-radius); }
.decision-figure .proxy-hosts img { display: block; width: clamp(58px, 15vw, 166px); max-width: 100%; height: auto; margin: 0 auto; }
.decision-figure .proxy-web-art { position: relative; width: max-content; max-width: 100%; margin-inline: auto; }
.decision-figure .proxy-web-art img + img { position: absolute; right: -11%; bottom: 2%; width: 48%; }
.decision-figure .proxy-hosts b { font-size: clamp(.86rem, 2vw, 1.2rem); }
.decision-figure .proxy-hosts span { display: block; font-size: clamp(.78rem, 1.45vw, .96rem); line-height: 1.4; }
.decision-figure .proxy-direction { margin-top: 8px; border-top: 1px solid var(--line); }
.decision-figure .proxy-direction h3 { font-size: .85rem; padding-top: 3px; color: var(--teal); }
.decision-figure .proxy-direction ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-inline: 12%;
  padding: 0;
  list-style: none;
}
.decision-figure .proxy-direction li { padding: 3px 6px 5px; font-size: clamp(.8rem, 1.8vw, 1rem); text-align: center; }
.decision-figure .proxy-direction .flow-arrow { margin-top: 7px; color: var(--ink); }
.decision-figure .proxy-response h3 { color: var(--wine); }
.decision-figure .proxy-response ol { direction: rtl; }
.decision-figure .proxy-response li { direction: ltr; }
.decision-figure .proxy-response .flow-arrow { transform: scaleX(-1); }
.proxy-cache-head, .proxy-cache-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .55fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  text-align: center;
}
.proxy-cache-head { color: var(--ink); font-weight: 800; }
.proxy-cache-head span:nth-child(2) { grid-column: 3; }
.proxy-cache-head span:nth-child(3) { color: var(--wine); font-size: .85rem; }
.proxy-cache-run { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 7px; }
.proxy-cache-run > div { padding: 5px; }
.proxy-cache-run img { display: block; width: min(63%, 112px); height: auto; margin: auto; }
.proxy-cache-run .flow-arrow { margin-top: 3px; transform: scaleX(-1); }
.proxy-cache-run > span:nth-child(4) { color: var(--wine); font-weight: 700; }
.proxy-cache-run .proxy-cache-empty { border-block: 2px dashed var(--line); }
.proxy-cache-saved { background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--diagram-group-radius); }
.proxy-cache-idle img { opacity: .45; }

@media(max-width: 660px) {
  .decision-figure .swot-axis { width: 19%; }
  .swot-factors > div + div { border: 0; padding-inline-start: 0; }
  .decision-figure .swot-matrix tbody th { font-size: 1rem; }
  .decision-figure .swot-matrix td > div { grid-template-columns: 1fr; }
  .decision-figure .swot-matrix img { grid-column: 1; grid-row: 2; justify-self: center; width: clamp(74px, 14vw, 104px); }
  .decision-figure .swot-matrix td p { text-wrap: balance; }
}
