/* A local D3 explainer, styled as a figure in the paper. */
.deployment-explainer {
  --deploy-nav: #74866b;
  --deploy-manip: #244c3b;
  --route-color: var(--deploy-nav);
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 20px 22px 16px;
  min-width: 0;
}
.deploy-heading, .deploy-controls, .deploy-caption, .deploy-inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.deploy-heading { margin-bottom: 16px; }
.deploy-kicker, .deploy-col-label {
  font: 600 0.625rem/1.5 var(--label);
  text-transform: uppercase;
  letter-spacing: .085em;
  color: var(--muted);
}
.deploy-controls { gap: 14px; flex-shrink: 0; }
.deploy-controls button {
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--green);
  font: 500 0.6875rem/1.6 var(--label);
  cursor: pointer;
}
.deploy-command {
  border-block: 1px solid var(--rule);
  padding: 13px 0 15px;
  display: flex;
  align-items: baseline;
  gap: 17px;
  margin-bottom: 19px;
}
.deploy-command > span {
  color: var(--muted);
  font: 0.6875rem/1.5 var(--label);
  white-space: nowrap;
}
.deploy-command q {
  font: 600 1.4375rem/1.3 var(--heading);
  color: var(--green);
}
.deploy-flow {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1.4fr .86fr;
  gap: 32px;
  position: relative;
  padding-bottom: 8px;
  min-width: 0;
}
.deploy-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.deploy-ribbon { fill: none; stroke: var(--rule); stroke-width: 7px; opacity: .19; }
.deploy-wire { fill: none; stroke: #b9b6a9; stroke-width: 1px; opacity: .68; }
.deploy-ribbon.is-active { stroke: var(--route-color); opacity: .16; }
.deploy-wire.is-active { stroke: var(--route-color); opacity: 1; stroke-width: 1.35px; }
.deploy-packet { fill: var(--route-color); }
.deploy-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.deploy-col-label { display: block; margin-bottom: 15px; white-space: nowrap; }
.deploy-column-body { height: auto; flex: 1; display: flex; justify-content: center; flex-direction: column; }
.deploy-planner, .deploy-skill, .deploy-step {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.deploy-planner { padding: 22px; flex-shrink: 0; }
.deploy-planner b, .deploy-skill b { display: block; font: 600 1.0625rem/1.3 var(--heading); }
.deploy-planner small, .deploy-skill small { display: block; font: 0.6875rem/1.55 var(--label); color: var(--muted); margin-top: 4px; }
.deploy-brand { display: flex; align-items: center; gap: 7px; margin-top: 8px; font: 0.6875rem/1.5 var(--label); color: var(--muted); }
.deploy-brand img { width: 22px; height: 22px; object-fit: contain; }
.deploy-planner > small { margin-top: 11px; font-size: 0.625rem; }
.deploy-plan { gap: 16px; }
.deploy-step {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  flex-shrink: 0;
  position: relative;
}
.deploy-step-number { color: #7a7466; font: 0.625rem/1 var(--label); }
.deploy-step b { display: block; font: 600 0.75rem/1.35 var(--label); }
.deploy-step small { display: block; font: 0.6875rem/1.4 var(--label); margin-top: 3px; color: var(--muted); }
.deploy-step[aria-pressed="true"] { border-color: var(--route-color); background: #f0f2e9; }
.deploy-step[aria-pressed="true"] .deploy-step-number,
.deploy-step[aria-pressed="true"] b { color: var(--green); }
.deploy-step-progress { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--route-color); }
.deploy-skills { justify-content: space-around; gap: 28px; }
.deploy-skill { padding: 24px; min-height: 78px; flex-shrink: 0; }
.deploy-skill.is-active { border-color: var(--route-color); }
.deploy-skill b { font-size: 1.0625rem; }
.deploy-output { text-align: center; }
.deploy-output b { display: block; font: 600 1.125rem/1.3 var(--heading); }
.deploy-output small { display: block; font: 0.625rem/1.5 var(--label); margin-top: 5px; color: var(--muted); }
.deploy-inspector {
  border-top: 1px solid var(--rule);
  margin-top: 19px;
  padding-top: 13px;
  min-height: 77px;
}
.deploy-inspector strong { font: 600 1rem/1.35 var(--heading); color: var(--green); }
.deploy-inspector [data-deploy-status] { color: var(--muted); font: 0.625rem/1.5 var(--label); white-space: nowrap; }
.deploy-inspector p { font: 0.75rem/1.65 var(--label); color: var(--muted); margin: 5px 0 0; max-width: 78ch; }
.deploy-caption { margin-top: 11px; color: var(--muted); font: 0.625rem/1.5 var(--label); flex-wrap: wrap; }
.deploy-caption a { color: var(--muted); border-bottom: 1px solid var(--rule); }
.deploy-videos { border-top: 1px solid var(--rule); margin-top: 13px; padding-top: 13px; }
.deploy-video-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; color: var(--muted); font: 500 0.6875rem/1.5 var(--label); }
.deploy-video-heading small { font: 0.625rem/1.5 var(--label); }
.deploy-video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.deploy-video-card { min-width: 0; margin: 0; }
.deploy-video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: var(--paper); }
.deploy-video-card figcaption { margin-top: 6px; font: 500 0.6875rem/1.5 var(--label); color: var(--ink); text-align: left; }
.deploy-video-card video:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.deployment-explainer button:hover { color: var(--green); border-color: #8b9d81; }
.deployment-explainer button:focus-visible, .deployment-explainer a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.deploy-planner.is-inspected, .deploy-skill.is-inspected { outline: 1px dashed var(--green); outline-offset: 3px; }
@media (max-width: 850px) {
  .deploy-flow { gap: 26px; grid-template-columns: 1fr 1.35fr 1.25fr .8fr; }
  .deploy-planner, .deploy-skill { padding: 20px 18px; }
  .deploy-planner b, .deploy-skill b { font-size: 1rem; }
  .deploy-col-label { font-size: 0.5625rem; letter-spacing: .045em; }
}
@media (max-width: 700px) {
  .deployment-explainer { padding: 16px 14px 13px; }
  .deploy-heading { align-items: flex-start; }
  .deploy-kicker { max-width: 150px; font-size: 0.5625rem; }
  .deploy-controls { gap: 10px; }
  .deploy-command { display: block; padding-block: 10px; }
  .deploy-command > span { display: block; margin-bottom: 4px; font-size: 0.625rem; }
  .deploy-command q { font-size: 1.3125rem; }
  .deploy-flow { display: flex; flex-direction: column; gap: 23px; }
  .deploy-col-label { text-align: center; margin-bottom: 14px; font-size: 0.5625rem; }
  .deploy-column-body { height: auto; }
  .deploy-planner { max-width: 224px; margin: auto; text-align: center; padding: 20px; }
  .deploy-planner > small { display: none; }
  .deploy-brand { justify-content: center; }
  .deploy-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .deploy-step { display: block; padding: 16px; min-height: 77px; text-align: center; }
  .deploy-step-number { display: block; margin-bottom: 6px; font-size: 0.5625rem; }
  .deploy-step b { font-size: 0.625rem; }
  .deploy-step small { font-size: 0.625rem; }
  .deploy-skills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .deploy-skill { min-height: 86px; }
  .deploy-skill b { font-size: 1.0625rem; }
  .deploy-skill small { font-size: 0.625rem; }
  .deploy-output { align-items: center; width: fit-content; margin: auto; text-align: center; }
  .deploy-inspector { min-height: 109px; }
  .deploy-inspector p { font-size: 0.6875rem; }
  .deploy-inspector-heading { align-items: baseline; }
  .deploy-inspector strong { font-size: 1rem; }
  .deploy-caption { font-size: 0.5625rem; }
}
@media (max-width: 560px) {
  .deploy-video-grid { grid-template-columns: 1fr; gap: 16px; }
}
