/* AV - Integrations (concept section 11). Paper, one composition: the copy on the left and the
   route diagram on the right (two columns from 1024px), with the figure, a night card, set into the
   drawing's free lower left corner. In two columns the copy and the diagram share their top and bottom.
   The voice side of the diagram is night (the call), the platform side is paper (the record).
   Tokens, surfaces, type, tags and the text link come from va-kit.css. Everything here is scoped
   under .va.va-integrations. */

.va.va-integrations .vai-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(48px, 6vw, 72px); }
/* The two-column layout from 1024px is at the end of this file, after the parts it arranges. */

/* ---------- Copy column ---------- */
.va.va-integrations .vai-copy { display: grid; align-content: start; min-width: 0; }
.va.va-integrations .vai-head { justify-items: start; }
.va.va-integrations .vai-head .va-h2 { max-width: 18ch; }
.va.va-integrations .vai-head .va-lead { max-width: 40ch; }
/* Keep the key term on one line; the copy is unchanged. An inline block moves to the next line whole, so
   the term stays together wherever it fits on a line; only where it is wider than the column (a phone at
   200% text) do its words wrap inside it, instead of running off the screen as nowrap did. */
.va.va-integrations .vai-nb { display: inline-block; }

/* The reassurance note for trusts already on DrDoctor: a quiet forest-tinted note under the body, led
   by a plain forest dot (half-discs are kept for things the platform did), the question in bold forest on its own line and
   the answer under it. Body size in ink, so it reads as the line to remember without competing with
   the lead above it. The note takes the lead's own measure (40ch in the lead's type, set on the note
   itself, the text inside steps down to body size), so its right edge lines up with the lead's. */
.va.va-integrations .vai-assure {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 16px; align-items: start;
  width: 100%; max-width: 40ch; margin: 8px 0 0; padding: 18px 24px 18px 20px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--forest) 6%, var(--paper-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--forest) 18%, transparent);
  font-family: var(--font-body); font-weight: 300; font-size: var(--fs-lead); line-height: 1;
}
.va.va-integrations .vai-assure__t { font-weight: 400; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.va.va-integrations .vai-assure__d {
  display: block; width: 8px; height: 8px; margin-top: calc((var(--fs-body) * 1.5 - 8px) / 2);
  border-radius: 50%; background: var(--forest);
}
.va.va-integrations .vai-assure__q { display: block; margin-bottom: 4px; font-weight: 700; color: var(--forest); }
@media (max-width: 639px) { .va.va-integrations .vai-assure { column-gap: 12px; padding: 16px 18px 16px 16px; } }

/* ---------- Diagram ---------- */
/* The side column holds the diagram, then the figure, as plain blocks. The drawing is the column's full
   width, so a width or margin percentage on the figure (both resolve against the column's width) places it
   in the drawing's coordinates (see "The figure's place"). It is deliberately neither a flex box nor a
   size container: the packets move every frame, and when anything else on the page needs layout in the
   same frame, a flex or container column re-laid out the figure's D field each time (about 5ms a frame
   while the section came in). --vai-art-pb is the padding under the drawing. */
.va.va-integrations .vai-side {
  min-width: 0;
  --vai-art-pb: clamp(8px, 1.4vw, 16px);
}
.va.va-integrations .vai-flow { position: relative; margin: 0; }
/* One column below 1024: the drawing fills the column up to 1000px, so a portrait tablet has
   no empty strip beside it (the drawing scales with the column, at most 1.25 times its desktop size). */
@media (max-width: 1023px) { .va.va-integrations .vai-side { max-width: 1000px; } }

/* Figure header: a key to the packets on the left, the pause control on the right (and the Illustration
   tag before it when labels.show_labels is on), ruled off from the drawing like the head of a technical
   plate. min-height is the control's height plus the rule's padding, so the drawing does not move when
   module.js shows the control, and the static page lines up with the live one. */
.va.va-integrations .vai-flow__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  min-height: 47px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.va.va-integrations .vai-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--ink-3); }
.va.va-integrations .vai-key li { display: inline-flex; align-items: center; gap: 8px; }
.va.va-integrations .vai-key__mark { display: block; flex: none; width: 9px; height: 9px; border-radius: 2.5px; }
/* The voice key is the voice line as drawn: a light dot on night (mist, the colour the paper dots on the
   pipe render at their 0.7 opacity, so it never reads as a hole in the chip). Citron is kept for the
   packet moving on it now and the Voice Agents orb as it speaks: never more than two citron marks. */
.va.va-integrations .vai-key__mark--voice { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--mist) 0 3.5px, var(--night-900) 4px); }
.va.va-integrations .vai-key__mark--data { background: var(--forest); }
.va.va-integrations .vai-key__mark--task { background: var(--person); }
.va.va-integrations .vai-flow__ctl { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* The same pill as the hero's Pause (32px, 13px), the page's other control for a looping illustration. */
.va.va-integrations .vai-pause {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px 0 10px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1; color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent);
  transition: box-shadow var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
@media (hover: hover) { .va.va-integrations .vai-pause:hover { box-shadow: inset 0 0 0 1px currentColor; } }
.va.va-integrations .vai-pause:active { transform: scale(0.98); }
.va.va-integrations .vai-pause[hidden] { display: none; }
.va.va-integrations .vai-pause .va-i { width: 14px; height: 14px; }
.va.va-integrations .vai-pause__i--play { display: none; }
.va.va-integrations .vai-pause.is-paused .vai-pause__i--play { display: inline-block; }
.va.va-integrations .vai-pause.is-paused .vai-pause__i--pause { display: none; }
/* Touch: 6px more hit area above and below, so the 32px pill takes 44px taps without moving. */
@media (pointer: coarse) {
  .va.va-integrations .vai-pause { position: relative; }
  .va.va-integrations .vai-pause::after { content: ""; position: absolute; inset: -6px 0; }
}

.va.va-integrations .vai-flow__art { position: relative; padding-block: clamp(16px, 2vw, 24px) var(--vai-art-pb); }
/* A faint dot grid behind the route, fading out at the edges: the instrument's graph paper. */
.va.va-integrations .vai-flow__art::before {
  content: ""; position: absolute; inset: 0 -12px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--night-900) 13%, transparent) 0.9px, transparent 1.4px);
  background-size: 16px 16px; background-position: 4px 4px;
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 48%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 62% 64% at 50% 48%, #000 30%, transparent 80%);
}

/* Icon symbols: a zero-size holder. Inside a symbol the icon fills the symbol's own box,
   whichever way a browser styles the <use> copy. */
.va.va-integrations .vai-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.va.va-integrations .vai-sym .va-i { width: 100%; height: 100%; vertical-align: top; }

.va.va-integrations .vai-svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.va.va-integrations .vai-svg--v { display: none; max-width: 420px; margin-inline: auto; }

@media (max-width: 767px) {
  .va.va-integrations .vai-svg--h { display: none; }
  .va.va-integrations .vai-svg--v { display: block; }
  .va.va-integrations .vai-flow__art::before { inset: 0; }
  .va.va-integrations .vai-flow__head { min-height: 59px; }
  /* With the tag shown: tag and control on the first line, the key on its own line under them.
     Without it the key and the control share one line. */
  .va.va-integrations .vai-flow__head--tag .vai-flow__ctl { order: -1; width: 100%; justify-content: space-between; margin-left: 0; }
  .va.va-integrations .vai-pause { min-height: 44px; height: 44px; padding: 0 16px 0 13px; }
}

.va.va-integrations .vai-route { fill: none; stroke: none; }
.va.va-integrations .vai-under { fill: none; stroke: var(--night-900); stroke-width: 16; stroke-linecap: round; }
.va.va-integrations .vai-voice { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 7.33; opacity: 0.7; }
.va.va-integrations .vai-wire { fill: none; stroke: var(--forest); stroke-width: 1.75; stroke-linecap: round; }
.va.va-integrations .vai-wire--person { stroke: var(--person); }
.va.va-integrations .vai-tip { fill: var(--forest); }
.va.va-integrations .vai-tip--person { fill: var(--person); }
.va.va-integrations .vai-junction { fill: var(--forest); }

.va.va-integrations .vai-chip-night { fill: var(--night-900); }
.va.va-integrations .vai-chip-paper { fill: var(--paper-card); stroke: color-mix(in srgb, var(--night-900) 20%, transparent); stroke-width: 1; }
.va.va-integrations .vai-card { fill: var(--paper-card); stroke: var(--forest); stroke-width: 1.5; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--shadow-ink) 6%, transparent)) drop-shadow(0 4px 10px color-mix(in srgb, var(--shadow-ink) 6%, transparent)); }
/* fill and color together, so the icon takes the colour whether or not a browser applies the
   kit's currentColor rule inside the <use> copy. */
.va.va-integrations .vai-ico--signal { fill: var(--signal); color: var(--signal); }
.va.va-integrations .vai-ico--forest { fill: var(--forest); color: var(--forest); }
.va.va-integrations .vai-ico--person { fill: var(--person); color: var(--person); }
.va.va-integrations .vai-badge { fill: var(--person); stroke: var(--paper); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
/* The record's D: the platform did it. It sits inside the chip's top right corner, inset as far from
   the top as from the side, rests aligned, and snaps again as each packet lands. */
.va.va-integrations .vai-d { fill: var(--forest); transform-box: fill-box; transform-origin: center; }
.va.va-integrations .vai-hit { fill: none; stroke: var(--forest); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.va.va-integrations .vai-hit--person { stroke: var(--person); }

/* The D-orb in the Voice Agents chip: two flat half-discs, the right one turning citron while it speaks. */
.va.va-integrations .vai-orb-l { fill: var(--paper); opacity: 0.5; transform: translateX(-1.8px); }
.va.va-integrations .vai-orb-r { fill: var(--paper); transform: translateX(1.8px); }
.va.va-integrations .vai-orb-now { fill: var(--citron); opacity: 0; transform: translateX(1.8px); }
.va.va-integrations .vai-svg--v .vai-orb-l { transform: translateX(-1.5px); }
.va.va-integrations .vai-svg--v .vai-orb-r, .va.va-integrations .vai-svg--v .vai-orb-now { transform: translateX(1.5px); }
.va.va-integrations .vai-ring-icon { transform-box: fill-box; transform-origin: center; }

.va.va-integrations .vai-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; fill: var(--ink); font-synthesis: none; }
.va.va-integrations .vai-svg--v .vai-name { font-size: 17px; }
.va.va-integrations .vai-svg--v .vai-name--lg { font-size: 19px; }
.va.va-integrations .vai-proto { font-family: var(--font-mono); font-size: var(--fs-mono); fill: var(--forest); font-variant-numeric: tabular-nums; }

/* The rules gate: brand strokes that comb level as each packet passes. Level is the resting state; module.js
   turns them by their end points, in its loop. */
.va.va-integrations .vai-gate line { stroke: var(--forest); stroke-width: 2.6; stroke-linecap: round; }

.va.va-integrations .vai-pk-dot, .va.va-integrations .vai-pk-ghost { fill: var(--citron); }
.va.va-integrations .vai-pk-halo { fill: var(--citron); }
.va.va-integrations .vai-park .vai-pk-halo { opacity: 0.22; }
.va.va-integrations .vai-pk-sq { fill: var(--forest); }
.va.va-integrations .vai-pk-sq--person { fill: var(--person); }
.va.va-integrations .vai-flow.is-live .vai-park { display: none; }

/* Hover a node to trace its edges. */
.va.va-integrations .vai-edge, .va.va-integrations .vai-proto { transition: opacity var(--t-ui) var(--ease-out); }
.va.va-integrations .vai-svg[data-hl] .vai-edge { opacity: 0.16; }
.va.va-integrations .vai-svg[data-hl] .vai-proto { opacity: 0.3; }
.va.va-integrations .vai-svg[data-hl="phone"] .vai-edge[data-n~="phone"],
.va.va-integrations .vai-svg[data-hl="va"] .vai-edge[data-n~="va"],
.va.va-integrations .vai-svg[data-hl="platform"] .vai-edge[data-n~="platform"],
.va.va-integrations .vai-svg[data-hl="pas"] .vai-edge[data-n~="pas"],
.va.va-integrations .vai-svg[data-hl="inbox"] .vai-edge[data-n~="inbox"] { opacity: 1; }
.va.va-integrations .vai-svg[data-hl="platform"] .vai-proto, .va.va-integrations .vai-svg[data-hl="pas"] .vai-proto { opacity: 1; }

/* ---------- The figure's place: the drawing's free corner ----------
   The figure follows the diagram in the side column. Under 768px the vertical drawing has no free corner,
   so the figure sits under it, as wide as the column. From 768px the
   horizontal drawing leaves its lower left quarter empty, under the phone line and Voice Agents and left
   of the Task inbox, and the figure is drawn up into it: its left edge on the drawing's, its top 28px
   under those two names (which end at y 182 of the 326 unit tall, 736 unit wide viewBox) and its right
   edge well short of the inbox (which starts at x 410). The drawing scales with the column, so the
   overlap is written in percentages of the column's width (100% is the drawing's width; a percentage
   margin-top also resolves against width). z-index 2 keeps the figure and its link above the drawing's
   svg (z-index 1). */
.va.va-integrations .vai-stat { width: 100%; }
.va.va-integrations .vai-flow + .vai-stat { margin-top: 24px; }
@media (min-width: 768px) { .va.va-integrations .vai-side .vai-stat { max-width: 420px; } }
@media (min-width: 768px) {
  .va.va-integrations .vai-flow + .vai-stat {
    z-index: 2;
    width: min(340px, 42%);
    margin-top: calc(28px - (326 - 182) / 736 * 100% - var(--vai-art-pb));
  }
}

/* ---------- The figure: a night card. The number never counts up. ----------
   The words sit at the foot of the card; the D field fills the top right and fades away towards them. */
.va.va-integrations .vai-stat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-width: 0; padding: 22px 24px 22px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, var(--night-800) 0%, var(--night-900) 70%);
  box-shadow: var(--shadow-sm); color: var(--mist);
  container-type: inline-size;
}
.va.va-integrations .vai-stat > :not(.vai-stat__ds) { position: relative; z-index: 1; }

/* The D field: the D-grid with every D facing right, set from the top right corner. It is a fixed 12 by 8
   grid; its pitch follows the card's width, fine enough to read as a texture rather than rows to count.
   The field bleeds a third of a step past the top and right edges, so the card crops its first row and
   column, like the pattern crops in Explore the agents, rather than framing a bounded block. Each D is a
   full disc clipped to its right half, so it turns about its own centre. The field is large at the
   corner and thins out towards the words: each step from the corner (--k) shrinks a D, and an elliptical
   mask fades the field away before it reaches the text. The mask's width is capped so that it always
   ends inside the grid (no hard left edge in a wide card). It is written in container units (100cqi plus
   the card's 48px of padding is the card's width) because Chrome does not accept a percentage inside
   min() or calc() in a gradient's size; the plain declaration before each capped one is the fallback.
   One column (phones): the words sit at the foot of a taller card, so the field spans the top.
   The pitch --p is a custom property, which has no parse-time fallback, so its container-unit value sits
   in @supports and the plain floor before it is what Safari 15 uses. */
.va.va-integrations .vai-stat__ds {
  --p: 24px;
  position: absolute; top: calc(var(--p) * -0.35); right: calc(var(--p) * -0.35); bottom: 0; left: 0;
  z-index: 0; overflow: hidden; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, var(--p)); grid-auto-rows: var(--p); place-items: center;
  justify-content: end; align-content: start;
  -webkit-mask-image: radial-gradient(ellipse 100% 64% at 100% 0%, #000 0%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 92%);
          mask-image: radial-gradient(ellipse 100% 64% at 100% 0%, #000 0%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse min(calc(100cqi + 48px), 360px) 64% at 100% 0%, #000 0%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 92%);
          mask-image: radial-gradient(ellipse min(calc(100cqi + 48px), 360px) 64% at 100% 0%, #000 0%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 92%);
}
@supports (width: 1cqi) { .va.va-integrations .vai-stat__ds { --p: clamp(24px, calc((100cqi + 48px) / 12), 30px); } }
/* From 640px the words fill most of the card's height, so the field keeps to the corner they leave free:
   a fan across the top, above and to the right of the number, ending before the caption's line. The
   mask is capped at 390px wide, so in the widest card (the full column from 640px to 767px) the field
   still stays in that corner. The pitch is finer here (20px to 26px) so the smaller field still holds
   thirty Ds or more. */
@media (min-width: 640px) {
  .va.va-integrations .vai-stat__ds {
    --p: 20px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, #000 0%, #000 20%, rgba(0, 0, 0, 0.42) 50%, transparent 76%);
            mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, #000 0%, #000 20%, rgba(0, 0, 0, 0.42) 50%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse min(calc((100cqi + 48px) * 0.8), 390px) 70% at 100% 0%, #000 0%, #000 20%, rgba(0, 0, 0, 0.42) 50%, transparent 76%);
            mask-image: radial-gradient(ellipse min(calc((100cqi + 48px) * 0.8), 390px) 70% at 100% 0%, #000 0%, #000 20%, rgba(0, 0, 0, 0.42) 50%, transparent 76%);
  }
  @supports (width: 1cqi) { .va.va-integrations .vai-stat__ds { --p: clamp(20px, calc((100cqi + 48px) / 14.5), 26px); } }
}
.va.va-integrations .vai-stat__ds > i {
  display: block; width: calc(var(--p) * 0.5); height: calc(var(--p) * 0.5); border-radius: 50%; background: var(--signal);
  clip-path: inset(0 0 0 50%);
  transform: scale(calc(1.15 - var(--k) * 0.05));
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
  transition-delay: calc(200ms + var(--k) * 45ms);
}
/* Before the card comes into view (module.js adds .is-set), the Ds lie scattered and faint. Only with JS
   running, motion allowed and not in ?static=1 review mode; otherwise the aligned field is all there is. */
@media (prefers-reduced-motion: no-preference) {
  html.va-js:not(.va-static) .va.va-integrations .vai-stat:not(.is-set) .vai-stat__ds > i { transform: rotate(var(--r)) scale(calc(1.15 - var(--k) * 0.05)); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) { .va.va-integrations .vai-stat__ds > i { transition: none; } }
html.va-static .va.va-integrations .vai-stat__ds > i { transition: none; }

/* "More than" small and tight over the number; the number trimmed to its ink (with a 0.85 line height
   PolySans puts the baseline 0.72em below the top of the box, the height of its figures). */
.va.va-integrations .vai-stat__fig { display: grid; justify-items: start; margin: 0; font-synthesis: none; }
.va.va-integrations .vai-stat__pre { display: block; margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--signal); white-space: nowrap; }
.va.va-integrations .vai-stat__num {
  display: block; height: 0.72em; margin-left: -0.045em;
  font-family: var(--font-display); font-weight: 700; font-size: 5.25rem; font-size: min(clamp(5.25rem, 32cqi, 6.5rem), 78cqi); line-height: 0.85;
  letter-spacing: -0.05em; color: var(--paper); font-variant-numeric: lining-nums; white-space: nowrap;
}
.va.va-integrations .vai-stat__cap { margin-top: 20px; max-width: 30em; font-size: var(--fs-body); line-height: 1.4; color: var(--mist); text-wrap: balance; }
/* The kit colours links forest on a paper section; this one is on night, in paper. With larger text in
   the narrow card (1024px, 200%), its arrow wraps instead of being cut off by the card, and the number
   above is held to the card (78cqi, never the smaller value at the default size). Its plain 5.25rem
   (the clamp's floor) is the size where container units are missing (Safari 15). */
.va.va-integrations .vai-stat .vai-stat__link { margin-top: 12px; color: var(--paper); flex-wrap: wrap; max-width: 100%; }
/* Phones: the card runs the column's width under the drawing, so give the field room above the words. */
@media (max-width: 639px) { .va.va-integrations .vai-stat { min-height: 340px; } }

/* ---------- Two columns from 1024px ---------- */
@media (min-width: 1024px) {
  /* The copy in five columns, the diagram and the figure in seven. The copy stretches to the row, and the
     side column sits at the row's foot: the copy starts level with the diagram's key, and its reassurance
     note follows the lead (grouped with the copy it answers, not pinned to the figure's foot). If the copy
     is ever the taller column, the diagram and the figure drop to its foot. Without the figure, the
     diagram is centred on the copy. */
  .va.va-integrations .vai-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 0; align-items: stretch; }
  .va.va-integrations .vai-copy { grid-column: 1 / span 5; align-content: stretch; }
  .va.va-integrations .vai-side { grid-column: 6 / span 7; padding-left: 8px; align-self: end; --vai-art-pb: 20px; }
  .va.va-integrations .vai-side:not(.vai-side--stat) { align-self: center; }
  /* No diagram: the copy in seven columns, the figure in the last four, its foot on the copy's. */
  .va.va-integrations .vai-grid--solo .vai-copy { grid-column: 1 / span 7; }
  .va.va-integrations .vai-grid--solo .vai-side { grid-column: 9 / span 4; padding-left: 0; }
  .va.va-integrations .vai-grid--solo .vai-stat { max-width: none; }
  .va.va-integrations .vai-flow__art { padding-block: 36px var(--vai-art-pb); }
  /* The reassurance note sits under the lead at the same 28px it has in one column (the head's 20px gap
     and 8px under the body), so the smaller display-m heading leaves no void above it. */
  .va.va-integrations .vai-head { display: flex; flex-direction: column; align-items: flex-start; }
  .va.va-integrations .vai-head > .va-lead { margin-bottom: 8px; }
  /* The note stays inside the copy column (the head borrows the gutter only for the heading), so it never
     runs up to the figure beside it. At Wide width its 40ch is the narrower of the two anyway. */
  .va.va-integrations .vai-head > .vai-assure { max-width: min(40ch, calc(100% - var(--col-gap))); }
  /* Let the heading borrow the column gutter, so the kept-together phrase still fits one line at the display-m cap. */
  .va.va-integrations .vai-head { margin-right: calc(var(--col-gap) * -1); }
}

/* ---------- Windows high contrast: keep the drawing's lines and the figure's edge visible ---------- */
@media (forced-colors: active) {
  .va.va-integrations .vai-pause { border: 1px solid ButtonText; }
  .va.va-integrations .vai-assure { border: 1px solid CanvasText; }
  .va.va-integrations .vai-assure__d { background: CanvasText; forced-color-adjust: none; }
  .va.va-integrations .vai-stat { border: 1px solid CanvasText; }
  .va.va-integrations .vai-stat__ds > i { background: CanvasText; forced-color-adjust: none; }
  /* SVG fills and strokes are not forced, so the names, the protocol and the wires would keep their dark
     ink on a dark Canvas. The platform card goes to Canvas so the name inside it reads too. */
  .va.va-integrations :is(.vai-name, .vai-proto) { fill: CanvasText; }
  .va.va-integrations .vai-card { fill: Canvas; stroke: CanvasText; }
  .va.va-integrations .vai-wire { stroke: CanvasText; }
  .va.va-integrations :is(.vai-tip, .vai-junction) { fill: CanvasText; }
}
