.grounding-plate.grounding-svg {
  --plate-green: #2d4b3b;
  --plate-rule: #bdc5b4;
  width: min(740px, 100%);
  margin: 22px 0 24px;
  color: #304637;
  font-family: var(--sans);
}

.grounding-art {
  position: relative;
  overflow: hidden;
  background: #f6f1e7;
  border: 1px solid rgba(75, 88, 60, .17);
}

.grounding-art > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.grounding-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grounding-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 11px;
  color: #41503e;
  background: #f6f1e7;
  border: 1px solid var(--plate-rule);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.grounding-label i {
  font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
  opacity: .8;
}

.grounding-label-body { left: 3%; top: 43%; }
.grounding-label-branch { right: 2%; top: 8%; }
.grounding-label-root { right: 2%; bottom: 8%; }

.grounding-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  border-top: 1px solid #8a977f;
}

.grounding-label-body::after { left: 100%; }
.grounding-label-branch::after,
.grounding-label-root::after { right: 100%; }

.grounding-plate.is-step-0 .grounding-label[data-part="feet"],
.grounding-plate.is-step-1 .grounding-label[data-part="roots"],
.grounding-plate.is-step-2 .grounding-label[data-part="branches"] {
  background: var(--plate-green);
  color: #fffdf7;
  border-color: var(--plate-green);
}

.grounding-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 9px;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.grounding-plate figcaption span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

[data-variant="c"] .grounding-plate { --plate-green: #8d4834; }

@media (max-width: 520px) {
  .grounding-plate.grounding-svg { margin: 16px 0 20px; }
  .grounding-annotations {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 9px 7px;
    background: #f6f1e7;
    border-top: 1px solid rgba(75, 88, 60, .17);
  }
  .grounding-label {
    position: static;
    gap: 5px;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .grounding-label::after { display: none; }
  .grounding-label i { font-size: 10px; }
  .grounding-plate figcaption { font-size: 17px; }
  .grounding-plate figcaption span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .grounding-plate .grounding-label { transition: none; }
}
