/* Deck panel: ungoverned vs governed email building
   (src/components/DeckGovernPanel.astro). Two rows of four steps: a light
   card that loops back to square one, a Teal Dark card that runs straight to
   shipped. Static and transparent for screenshotting onto a slide. Sizes are
   container units (1cqw = 1% of the panel's width) with a 12px floor on text
   (labels and tags; the drawn icons scale freely). Scoped under .dgv, classes prefixed dgv-. */

.dgv {
  --dgv-ink: var(--color-neutrals-black);
  --dgv-muted: var(--color-neutrals-ivory-dark);
  --dgv-line: var(--color-neutrals-ivory-medium);
  --dgv-grey: var(--color-neutrals-ivory-medium);
  --dgv-grey-dark: var(--color-neutrals-ivory-shade);
  --dgv-teal-dark: var(--color-teal-teal-dark);
  --dgv-teal-shade: var(--color-teal-teal-shade);
  --dgv-teal-med: var(--color-teal-teal-medium);
  --dgv-teal-hl: var(--color-teal-teal-highlight);
  --dgv-citron: var(--color-citron-citron-highlight);
  --dgv-citron-med: var(--color-citron-citron-medium);
  --dgv-magenta: var(--color-magenta-magenta-highlight);
  /* the issue red (no site token; the same red as the Self-Improving Email page) */
  --dgv-issue: #c64337;
  --dgv-mock: #fdfdfc;
  /* 2px corners once the tile scales the art (1.25x; pre-vetted 1.05x) */
  --dgv-r2: 1.6px;
  /* No site token for these */
  --dgv-on-dark: var(--color-neutrals-ivory-highlight);
  --dgv-on-dark-muted: #9fb6ba;

  container-type: inline-size;
  width: 100%;
  max-width: 1200px;
  display: grid;
  gap: 1.6cqw;
  color: var(--dgv-ink);
}
.dgv *, .dgv *::before, .dgv *::after { box-sizing: border-box; }

/* ---------- Rows ---------- */

.dgv-row {
  border-radius: 1.2cqw;
  padding: 2.6cqw 3cqw;
  display: grid;
  grid-template-columns: 13cqw minmax(0, 1fr);
  align-items: start;
  gap: 2cqw;
}
.dgv-row--un { --dgv-un-bg: var(--color-neutrals-ivory-tint); background: var(--dgv-un-bg); border: 1px solid var(--dgv-line); }
/* a faint outline so it still reads on a Teal Dark section */
.dgv-row--gov { background: var(--dgv-teal-dark); color: var(--dgv-on-dark); border: 1px solid rgba(201, 254, 255, .16); }

.dgv-tag {
  /* centred on the tiles: half a tile's height (12.53cqw) less half a line */
  padding-top: calc(6.27cqw - .5lh);
  font-family: var(--font-mono);
  font-size: max(12px, 1.3cqw);
  font-weight: 500;
  font-synthesis-weight: none;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--dgv-muted);
}
.dgv-row--gov .dgv-tag { color: var(--dgv-teal-hl); }

.dgv-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4cqw minmax(0, 1fr) 4cqw minmax(0, 1fr) 4cqw minmax(0, 1fr);
  row-gap: 1.2cqw;
}
.dgv-step { grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 1cqw; min-width: 0; }
.dgv-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: .8cqw;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dgv-row--gov .dgv-tile { background: rgba(201, 254, 255, .06); }
/* the step art is drawn small; scale it to fill its tile (the loose pile is
   sized in % of its tile already) */
.dgv-tile > :not(.dgv-chips, .dgv-lock) { transform: scale(1.25); }
.dgv-tile > .dgv-vetted { transform: scale(1.05); }
.dgv-label { font-size: max(12px, 1.5cqw); font-weight: 500; line-height: 1.25; text-align: center; }

.dgv-link { grid-row: 1; align-self: start; margin-top: 4.6cqw; display: flex; justify-content: center; }
.dgv-arrow { width: 70%; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke: var(--dgv-grey-dark); }
.dgv-row--gov .dgv-arrow { stroke: var(--dgv-citron); stroke-width: 2; }

/* ---------- Mini email ---------- */

.dgv-mail {
  width: 6.6cqw;
  padding: .55cqw;
  border-radius: .4cqw;
  background: var(--dgv-mock);
  display: flex;
  flex-direction: column;
  gap: .4cqw;
}
.dgv-mail i { display: block; border-radius: var(--dgv-r2); }
.dgv-mail--grey { border: 1px solid var(--dgv-line); }
/* Governed: the email mockups get the same 2px corners as their parts */
.dgv-row--gov .dgv-mail { border-radius: var(--dgv-r2); }
.dgv-vetted { --dgv-r2: 1.9px; }
.dgv-m-hd { height: .45cqw; width: 40%; }
.dgv-m-hero { height: 2.4cqw; }
.dgv-m-prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3cqw; }
.dgv-m-prod i { height: 1.2cqw; }
/* buttons stay pills, as on the Self-Improving Email page */
.dgv-m-cta { height: .8cqw; width: 50%; border-radius: 999px !important; }

.dgv-mail--grey :is(.dgv-m-hd, .dgv-m-hero, .dgv-m-prod i, .dgv-m-cta) { background: var(--dgv-grey); }
.dgv-mail--grey .dgv-m-hd { background: var(--dgv-grey-dark); }
.dgv-mail--colour .dgv-m-hd { background: var(--dgv-teal-shade); }
.dgv-mail--colour .dgv-m-hero { background: var(--dgv-teal-med); }
.dgv-mail--colour .dgv-m-prod i { background: var(--dgv-teal-hl); }
.dgv-mail--colour .dgv-m-cta { background: var(--dgv-citron); }

/* built from mismatched modules: parts out of line and off-shade */
.dgv-mail--odd .dgv-m-hero { transform: translateX(.35cqw) rotate(-2deg); background: var(--dgv-grey-dark); }
.dgv-mail--odd .dgv-m-prod { transform: translateX(-.3cqw); }
.dgv-mail--odd .dgv-m-prod i:nth-child(2) { height: 1.6cqw; }
.dgv-mail--odd .dgv-m-cta { width: 70%; transform: translateX(.4cqw); }

/* ---------- Step art ---------- */

/* Ungoverned modules: a loose pile */
.dgv-chips { display: block; width: 62%; height: 70%; overflow: visible; }
.dgv-chip--a { fill: var(--dgv-grey); }
.dgv-chip--b { fill: var(--dgv-grey-dark); }
.dgv-chip--c { fill: #d9d4cf; }
.dgv-chip--d { fill: #ece9e6; }
.dgv-chip--e { fill: #c4beb8; }

/* Email checked: a magnifier over it */
.dgv-check, .dgv-issue { position: relative; }
.dgv-lens {
  position: absolute;
  right: -1.9cqw;
  bottom: -1.3cqw;
  width: 4.6cqw;
  height: 4.6cqw;
  overflow: visible;
  fill: none;
  stroke: var(--dgv-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Issue found: the hero flagged */
/* a 1px red ring (drawn as shadows: outline widths snap to device pixels),
   .8px x the tile's 1.25 scale, with the email's own colour in the gap */
.dgv-mail--flag .dgv-m-hero { box-shadow: 0 0 0 .2cqw var(--dgv-mock), 0 0 0 calc(.2cqw + .8px) var(--dgv-issue); }
.dgv-bang {
  position: absolute;
  top: .6cqw;
  right: -1.6cqw;
  width: 2.8cqw;
  height: 2.8cqw;
  overflow: visible;
}
.dgv-bang-tri { fill: var(--dgv-issue); }
.dgv-bang-mark { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 9.8; stroke-linecap: round; stroke-linejoin: round; }

/* Back to square one: from under Issue found back to under the first step */
.dgv-loop {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  /* centre of the first tile to centre of the last: half a tile in from each side */
  margin-inline: calc((100% - 12cqw) / 8);
  height: 3.2cqw;
}
.dgv-loop-line {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--dgv-issue);
  border-top: 0;
  border-radius: 0 0 1.2cqw 1.2cqw;
}
/* arrowhead pointing up into the first step */
.dgv-loop-line::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -.2cqw;
  transform: translate(-50%, -50%);
  border: .7cqw solid transparent;
  border-bottom: 1cqw solid var(--dgv-issue);
  border-top: 0;
}
.dgv-loop-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  padding: 0 1.2cqw;
  background: var(--dgv-un-bg, #fff);
  font-family: var(--font-mono);
  font-size: max(12px, 1.3cqw);
  font-weight: 500;
  font-synthesis-weight: none;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--dgv-issue);
  white-space: nowrap;
}

/* Governed modules: a neat, locked kit */
.dgv-kit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 2.6cqw);
  grid-auto-rows: 2cqw;
  gap: .6cqw;
}
.dgv-kit i { display: block; border-radius: var(--dgv-r2); }
.dgv-kit i:nth-child(1) { background: var(--dgv-teal-med); }
.dgv-kit i:nth-child(2) { background: var(--dgv-teal-hl); }
.dgv-kit i:nth-child(3) { background: var(--dgv-citron); }
.dgv-kit i:nth-child(4) { background: var(--dgv-magenta); }
.dgv-kit i:nth-child(5) { background: var(--color-magenta-magenta-medium); }
.dgv-kit i:nth-child(6) { background: var(--color-neutrals-ivory-medium); }
/* in the tile's top-right corner (a sibling of the kit, so not scaled with it:
   sized 1.25x here to match) */
.dgv-lock {
  position: absolute;
  top: .8cqw;
  right: .8cqw;
  width: 2.5cqw;
  height: 2.5cqw;
  padding: .38cqw;
  border-radius: 50%;
  background: var(--dgv-citron);
  /* the same 1px Stroke / Medium outline as the checks */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
  fill: var(--dgv-teal-dark);
}
/* the icon's line is ~0.5px at this size; a 1px stroke of the same colour brings it to the checks' 1.5px */
.dgv-lock path { stroke: var(--dgv-teal-dark); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Many emails: a grid of the same build */
.dgv-many { display: grid; grid-template-columns: repeat(3, auto); gap: .5cqw; }
.dgv-many .dgv-mail { width: 3.6cqw; padding: .3cqw; gap: .22cqw; }
.dgv-many .dgv-m-hd { height: .25cqw; }
.dgv-many .dgv-m-hero { height: 1.2cqw; }
.dgv-many .dgv-m-prod { gap: .15cqw; }
.dgv-many .dgv-m-prod i { height: .6cqw; }
.dgv-many .dgv-m-cta { height: .45cqw; }

/* Pre-vetted: each email carries a check */
.dgv-vetted { display: flex; gap: .8cqw; }
.dgv-v { position: relative; }
.dgv-vetted .dgv-mail { width: 3.9cqw; padding: .35cqw; gap: .25cqw; }
.dgv-vetted .dgv-m-hd { height: .3cqw; }
.dgv-vetted .dgv-m-hero { height: 1.5cqw; }
.dgv-vetted .dgv-m-prod { gap: .18cqw; }
.dgv-vetted .dgv-m-prod i { height: .75cqw; }
.dgv-vetted .dgv-m-cta { height: .55cqw; }
/* z-index: in front of the next email, which comes later in the markup */
.dgv-ok { position: absolute; z-index: 1; top: -.8cqw; right: -.8cqw; width: 1.8cqw; height: 1.8cqw; overflow: visible; }
/* the brand check (check-circle icon), thin; circle outlines are 1px Stroke /
   Medium: white 40% on the dark row, black 40% on the white card */
.dgv-ok circle { fill: var(--dgv-citron); stroke: rgba(255, 255, 255, .4); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dgv-ok path { fill: none; stroke: var(--dgv-teal-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Shipped */
/* Shipped: the brand "send" icon, its accent in Teal Medium on the dark card */
.dgv-plane { width: 5.6cqw; height: 5.6cqw; overflow: visible; }
.dgv-plane-f { fill: var(--dgv-teal-med); }
.dgv-plane-l { fill: #fff; }

/* ---------- Animation (opt-in: animate on tone="dark") ----------
   For recordings (the deck GIF); the scratchpad panel stays still.
   Ungoverned, a 5s cycle run twice: each step lights up in turn and fades
   again, "!" pops on Issue found, the loop back glows, and it starts over.
   Governed, one 10s cycle: each step lights up in turn and stays lit, the
   checks pop on and the plane flies in; everything resets at the end.
   The arrows stay still (animated, they recorded faint in headless Chrome). */
@media (prefers-reduced-motion: no-preference) {
  .dgv--animate .dgv-row--un .dgv-step :is(.dgv-tile > *, .dgv-label) { animation: dgv-un-step 5s infinite both; }
  .dgv--animate .dgv-row--un .dgv-step:nth-child(1) :is(.dgv-tile > *, .dgv-label) { animation-delay: 0s; }
  .dgv--animate .dgv-row--un .dgv-step:nth-child(3) :is(.dgv-tile > *, .dgv-label) { animation-delay: 1s; }
  .dgv--animate .dgv-row--un .dgv-step:nth-child(5) :is(.dgv-tile > *, .dgv-label) { animation-delay: 2s; }
  .dgv--animate .dgv-row--un .dgv-step:nth-child(7) :is(.dgv-tile > *, .dgv-label) { animation-delay: 3s; }
  .dgv--animate .dgv-row--un .dgv-bang { animation: dgv-un-bang 5s 3s infinite both; }
  .dgv--animate .dgv-row--un .dgv-loop { animation: dgv-un-loop 5s infinite both; }

  .dgv--animate .dgv-row--gov .dgv-step:nth-child(1) :is(.dgv-tile > *, .dgv-label) { animation: dgv-gov-1 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(1) .dgv-tile { animation: dgv-gov-ring-1 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(3) :is(.dgv-tile > *, .dgv-label) { animation: dgv-gov-2 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(3) .dgv-tile { animation: dgv-gov-ring-2 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(5) :is(.dgv-tile > *, .dgv-label) { animation: dgv-gov-3 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(5) .dgv-tile { animation: dgv-gov-ring-3 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(7) :is(.dgv-tile > *, .dgv-label) { animation: dgv-gov-4 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-step:nth-child(7) .dgv-tile { animation: dgv-gov-ring-4 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-ok { animation: dgv-gov-ok 10s infinite both; }
  .dgv--animate .dgv-row--gov .dgv-v:nth-child(2) .dgv-ok { animation-delay: .15s; }
  .dgv--animate .dgv-row--gov .dgv-v:nth-child(3) .dgv-ok { animation-delay: .3s; }
  /* on the paths: the svg itself carries the step's fade and the tile's scale */
  .dgv--animate .dgv-row--gov .dgv-plane path { transform-box: view-box; animation: dgv-gov-plane 10s infinite both; }
}

@keyframes dgv-un-step { 0% { opacity: .4; } 6%, 22% { opacity: 1; } 30%, 100% { opacity: .4; } }
@keyframes dgv-un-bang { 0% { transform: scale(.3); } 6% { transform: scale(1.35); } 12%, 100% { transform: none; } }
@keyframes dgv-un-loop { 0%, 74% { opacity: .35; } 80%, 96% { opacity: 1; } 100% { opacity: .35; } }

@keyframes dgv-gov-1 { 0%, 3% { opacity: .22; } 7%, 95% { opacity: 1; } 100% { opacity: .22; } }
@keyframes dgv-gov-ring-1 { 0%, 3% { box-shadow: none; } 7%, 14% { box-shadow: 0 0 0 2px var(--dgv-teal-med), 0 0 0 7px rgba(10, 120, 145, .14); } 18%, 100% { box-shadow: none; } }
@keyframes dgv-gov-2 { 0%, 15% { opacity: .22; } 19%, 95% { opacity: 1; } 100% { opacity: .22; } }
@keyframes dgv-gov-ring-2 { 0%, 15% { box-shadow: none; } 19%, 26% { box-shadow: 0 0 0 2px var(--dgv-teal-med), 0 0 0 7px rgba(10, 120, 145, .14); } 30%, 100% { box-shadow: none; } }
@keyframes dgv-gov-3 { 0%, 27% { opacity: .22; } 31%, 95% { opacity: 1; } 100% { opacity: .22; } }
@keyframes dgv-gov-ring-3 { 0%, 27% { box-shadow: none; } 31%, 38% { box-shadow: 0 0 0 2px var(--dgv-teal-med), 0 0 0 7px rgba(10, 120, 145, .14); } 42%, 100% { box-shadow: none; } }
@keyframes dgv-gov-4 { 0%, 39% { opacity: .22; } 43%, 95% { opacity: 1; } 100% { opacity: .22; } }
@keyframes dgv-gov-ring-4 { 0%, 39% { box-shadow: none; } 43%, 50% { box-shadow: 0 0 0 2px var(--dgv-teal-med), 0 0 0 7px rgba(10, 120, 145, .14); } 54%, 100% { box-shadow: none; } }
@keyframes dgv-gov-ok { 0%, 31% { transform: scale(0); } 34% { transform: scale(1.3); } 37%, 95% { transform: none; } 100% { transform: scale(0); } }
@keyframes dgv-gov-plane { 0%, 40% { transform: translate(-60%, 45%) scale(.7); opacity: 0; } 47% { transform: translate(8%, -6%); opacity: 1; } 51%, 95% { transform: none; opacity: 1; } 100% { transform: translate(-60%, 45%) scale(.7); opacity: 0; } }

/* ---------- Wide (opt-in: wide) ----------
   A wider, shorter layout for a slide's centre band: wider tiles, tighter
   rows, no max width. Used for the wide deck GIF. */
.dgv--wide { max-width: none; gap: 1.2cqw; }
.dgv--wide .dgv-row { padding-block: 1.7cqw; }
.dgv--wide .dgv-tile { aspect-ratio: 16 / 8.8; }
.dgv--wide .dgv-tag { padding-top: calc(4.6cqw - .5lh); }
.dgv--wide .dgv-link { margin-top: 3.6cqw; }
.dgv--wide .dgv-tile > :not(.dgv-chips, .dgv-lock) { transform: scale(.98); }
.dgv--wide .dgv-tile > .dgv-vetted { transform: scale(.95); }
.dgv--wide .dgv-chips { height: 74%; }
.dgv--wide .dgv-loop { height: 2.4cqw; }
.dgv--wide .dgv-steps { row-gap: .9cqw; }
.dgv--wide .dgv-step { gap: .7cqw; }

/* ---------- Narrow panels: tag on top, steps two by two ----------
   (not the build version, which has its own narrow layouts below) */

@container (max-width: 700px) {
  .dgv:not(.dgv--build) .dgv-row { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 14px; }
  .dgv:not(.dgv--build) .dgv-tag { padding-top: 0; }
  .dgv:not(.dgv--build) .dgv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .dgv:not(.dgv--build) .dgv-step { grid-row: auto; grid-column: auto !important; }
  .dgv:not(.dgv--build) .dgv-link { display: none; }
  /* the art is sized for a wide panel; scale it back up (the loose pile is
     sized in % of its tile already) */
  .dgv:not(.dgv--build) .dgv-tile > :not(.dgv-chips, .dgv-lock) { transform: scale(2.2); }
  .dgv:not(.dgv--build) .dgv-loop { grid-row: auto; margin-inline: 0; height: auto; }
  .dgv:not(.dgv--build) .dgv-loop-line { display: none; }
  .dgv:not(.dgv--build) .dgv-loop-label { position: static; display: block; transform: none; padding: 0; text-align: center; }
  .dgv:not(.dgv--build) .dgv-loop-label::before { content: "\21BA  "; }
}

/* ---------- On a Teal Dark section (tone="dark") ----------
   The rows keep their own colours, as in the Self-Improving Email panel:
   Ungoverned a light card in greys, Governed on Teal Dark with its faint
   outline. Only the replay link changes. */

/* ---------- Build (opt-in: build) ----------
   The web version. Desktop and tablet: the two rows as strips, Ungoverned on
   top. Narrower than 900px the tag moves above the steps. Phones (< 600px):
   two columns side by side, Ungoverned left and Governed right, each with its
   four steps top to bottom.
   The build: JS adds .is-armed (steps hidden), then .is-built when the panel
   scrolls into view; each step, arrow and the loop back fade in by its --i, so
   both rows' first steps come in together, then both second steps, and so on.
   Without .is-armed (no JS, reduced motion) everything is shown. */
.dgv-replay {
  justify-self: end;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-synthesis-weight: none;
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--dgv-muted);
  cursor: pointer;
  visibility: hidden;
}
.dgv-replay::before { content: "\21BB  "; }
.dgv-replay:hover { color: inherit; text-decoration: underline; }
.dgv--on-dark .dgv-replay { color: var(--dgv-on-dark-muted); }
.dgv--on-dark .dgv-replay:hover { color: var(--dgv-on-dark); }
.dgv--build.is-armed .dgv-replay { visibility: visible; }

.dgv--build { --dgv-shift: translateX(-1.4cqw); }
.dgv--build.is-armed :is(.dgv-step, .dgv-link, .dgv-loop) { opacity: 0; transform: var(--dgv-shift); }
.dgv--build.is-armed.is-built :is(.dgv-step, .dgv-link, .dgv-loop) {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: calc(var(--i) * .8s + .1s);
}
.dgv--build.is-armed.is-built .dgv-bang { animation: dgv-build-bang .5s calc(3 * .8s + .6s) both; }
@keyframes dgv-build-bang { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: none; } }

@container (max-width: 900px) {
  .dgv--build .dgv-row { grid-template-columns: minmax(0, 1fr); gap: 1.6cqw; padding: 2.6cqw; }
  .dgv--build .dgv-tag { padding-top: 0; }
  .dgv--build .dgv-link { margin-top: 6.6cqw; }
  .dgv--build .dgv-loop { margin-inline: calc((100% - 12cqw) / 8); }
  .dgv--build .dgv-tile > :not(.dgv-chips, .dgv-lock) { transform: scale(1.5); }
  .dgv--build .dgv-tile > .dgv-vetted { transform: scale(1.3); }
}

@media (max-width: 599px) {
  .dgv--build { --dgv-shift: translateY(-10px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dgv--build .dgv-replay { grid-column: 1 / -1; }
}
@container (max-width: 599px) {
  .dgv--build .dgv-row { padding: 14px 10px; gap: 10px; border-radius: 10px; align-content: start; }
  .dgv--build .dgv-tag { text-align: center; }
  .dgv--build .dgv-steps { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .dgv--build .dgv-step { grid-row: auto; grid-column: 1 !important; gap: 6px; }
  .dgv--build .dgv-tile { border-radius: 8px; }
  .dgv--build .dgv-link { grid-row: auto; grid-column: 1 !important; margin: 0; height: 22px; align-items: center; }
  .dgv--build .dgv-arrow { width: 22px; transform: rotate(90deg); }
  .dgv--build .dgv-tile > :not(.dgv-chips, .dgv-lock) { transform: scale(2.3); }
  .dgv--build .dgv-tile > .dgv-vetted { transform: scale(1.9); }
  .dgv--build .dgv-tile > .dgv-many { transform: scale(2.1); }
  .dgv--build .dgv-loop { grid-row: auto; margin: 6px 0 0; height: auto; }
  .dgv--build .dgv-loop-line { display: none; }
  .dgv--build .dgv-loop-label { position: static; display: block; transform: none; padding: 0; text-align: center; white-space: normal; }
  .dgv--build .dgv-loop-label::before { content: "\21BA  "; }
}

/* Description for screen readers in the build variant (the drawing itself is aria-hidden). */
.dgv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
