/* finance-pieces: styles for the figure file (D79). Every selector starts with .finance-pieces.
   From finance-v2.html's figure 2 rules; colours mapped to the diagram palette:
   olive lines, arrows and labels -> ink; Cove's outline -> accent (the one emphasised box); viewer and identity blue -> cat-1
   (the viewer's group in every finance figure); publish checks amber -> cat-3; card -> surface; lace -> surface-alt;
   borders -> line; muted text -> ink-muted. */
.finance-pieces { font-family: var(--a11y-body-2-font-family); color: var(--diagram-ink); border: 1px solid var(--diagram-line-subtle);
  border-radius: var(--cards-radius-card); padding: var(--foundation-responsive-spacing-space-medium); position: relative; }
/* narrower side padding than the other figures: the drawing's smallest labels (10.5 on a 980 viewBox) need about
   750px of width to render at 8px */
.finance-pieces { padding-left: var(--foundation-responsive-spacing-space-xs); padding-right: var(--foundation-responsive-spacing-space-xs); }
.finance-pieces *, .finance-pieces *::before, .finance-pieces *::after { box-sizing: border-box; }
.finance-pieces p { margin: 0; }
/* the label, with its note stacked underneath (D34) */
.finance-pieces .finance-pieces-head { margin-bottom: var(--foundation-responsive-spacing-space-small); }
.finance-pieces .finance-pieces-label { font-family: var(--a11y-pre-heading-font-family); font-size: var(--a11y-pre-heading-font-size);
  font-weight: var(--a11y-pre-heading-font-weight); line-height: var(--a11y-pre-heading-line-height);
  letter-spacing: var(--a11y-pre-heading-letter-spacing); text-transform: var(--a11y-pre-heading-text-transform); color: var(--diagram-ink); }
.finance-pieces .finance-pieces-sub { margin-top: var(--foundation-responsive-spacing-space-3xs); font-size: var(--test-figure-note-font-size); line-height: 1.4; color: var(--diagram-ink-muted); }
.finance-pieces svg { display: block; width: 100%; height: auto; }
.finance-pieces .finance-pieces-tall { display: none; max-width: 25rem; margin: 0 auto; }
.finance-pieces svg text { font-family: var(--a11y-body-2-font-family); }
.finance-pieces svg text:not([fill]) { fill: var(--diagram-ink); }
.finance-pieces svg text.finance-pieces-mono { font-family: var(--test-code-font-family); }
/* "Cove" was set in the heading font; diagrams use the body font only (same size and weight) */
.finance-pieces svg text.finance-pieces-name { font-family: var(--a11y-body-2-font-family); }
.finance-pieces .finance-pieces-bx { fill: var(--diagram-surface); stroke: var(--diagram-line); stroke-width: 1.5; transition: stroke .2s, fill .2s; }
.finance-pieces .finance-pieces-gatebx { fill: var(--diagram-cat-3-100); stroke: var(--diagram-cat-3); }
.finance-pieces .finance-pieces-idpbx { fill: var(--diagram-cat-1-100); stroke: var(--diagram-cat-1); stroke-dasharray: 4 3; }
.finance-pieces .finance-pieces-bluebx .finance-pieces-bx, .finance-pieces .finance-pieces-bluebx.finance-pieces-bx { stroke: var(--diagram-cat-1); }
.finance-pieces .finance-pieces-t { fill: var(--diagram-ink); }
/* sizes and weights are attributes on each label (the original's sizes). Secondary labels render under 10px at the
   column width, so they are medium (500), not regular. */
.finance-pieces .finance-pieces-s { fill: var(--diagram-ink-muted); }
.finance-pieces .finance-pieces-cap { letter-spacing: .08em; fill: var(--diagram-ink); }
.finance-pieces text.finance-pieces-halo { stroke: var(--diagram-surface); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
/* hover or tab to a part: the part's box takes its group's outline and a light fill */
.finance-pieces .finance-pieces-part { cursor: default; outline: none; }
.finance-pieces .finance-pieces-part:hover .finance-pieces-bx, .finance-pieces .finance-pieces-part:focus-visible .finance-pieces-bx { stroke: var(--diagram-accent); stroke-width: 2.5; fill: var(--diagram-surface-alt); }
.finance-pieces .finance-pieces-part.finance-pieces-blue:hover .finance-pieces-bx, .finance-pieces .finance-pieces-part.finance-pieces-blue:focus-visible .finance-pieces-bx { stroke: var(--diagram-cat-1); fill: var(--diagram-cat-1-100); }
.finance-pieces .finance-pieces-part.finance-pieces-gate:hover .finance-pieces-bx, .finance-pieces .finance-pieces-part.finance-pieces-gate:focus-visible .finance-pieces-bx { stroke: var(--diagram-cat-3); fill: var(--diagram-cat-3-300); }
@media (max-width: 760px) {
  .finance-pieces .finance-pieces-wide { display: none; }
  .finance-pieces .finance-pieces-tall { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .finance-pieces * { transition-duration: .01ms !important; }
}
