/* Work package D (design round 2): styles of its pages and figures only.
   Scoped like sections-b.css: every selector starts with #cp-site (or .cp-site). See docs/site-next/KIT.md.
   Figures: src/components/next/figures/family-d.tsx (`fd-` classes). Light, from the --fig-* tokens. */

/* ---------- shared: instrument frame, svg layer ---------- */
#cp-site .fd-hero-fig { margin: 0; }
#cp-site .fd-inst--hero {
  padding: 28px 32px 26px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 32px 64px -40px rgba(24, 24, 27, 0.22);
}
#cp-site .fd-inst--hero .cp-instrument__title { font-size: 16px; }
#cp-site .fd-hero-fig__cap { margin-top: var(--cp-space-4); font-size: 12px; line-height: 1.6; max-width: 64ch; color: var(--cp-muted); }
#cp-site .fd-inst__body { justify-content: stretch; }
#cp-site .fd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#cp-site .fd-svg path, #cp-site .fd-svg ellipse, #cp-site .fd-svg rect { vector-effect: non-scaling-stroke; fill: none; }

/* ---------- readiness and coverage ---------- */
#cp-site .fd-rc { display: flex; flex-direction: column; height: 100%; }
#cp-site .fd-rc--hero { height: 372px; }
#cp-site .fd-rc__heads { position: relative; height: 30px; flex: none; }
#cp-site .fd-rc__h {
  position: absolute; bottom: 0; font-family: var(--cp-mono); font-size: 11px; line-height: 1.3;
  color: var(--fig-muted); letter-spacing: 0.02em;
}
#cp-site .fd-rc__h--sc { left: 0; max-width: 20%; }
#cp-site .fd-rc__h--role { left: 26%; transform: translateX(-50%); text-align: center; width: 10ch; }
#cp-site .fd-rc__h--ready { left: 33%; max-width: 40%; }
#cp-site .fd-rc__h--cov { left: 77%; }
#cp-site .fd-rc__plot { position: relative; flex: 1 1 auto; min-height: 0; margin: 10px 0 4px; }
#cp-site .fd-rc__spine { stroke-width: 2.5; stroke-linecap: round; }
#cp-site .fd-rc__link { stroke: var(--fig-line-strong); stroke-width: 1; stroke-opacity: 0.55; }
#cp-site .fd-rc__track { stroke: var(--fig-line); stroke-width: 1.5; }
#cp-site .fd-rc__track--none { stroke: color-mix(in srgb, var(--fig-risk) 45%, transparent); stroke-dasharray: 3 5; }
#cp-site .fd-rc__sc {
  position: absolute; left: 3%; top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--fig-bg); border: 2px solid var(--cp-violet); box-shadow: 0 0 0 4px rgba(133, 44, 254, 0.12);
}
#cp-site .fd-rc__row { position: absolute; left: 0; right: 0; top: var(--y); height: 0; }
#cp-site .fd-rc__role {
  position: absolute; left: 26%; top: 0; width: 18px; height: 18px; transform: translate(-50%, -50%);
  border-radius: 5px; background: var(--fig-bg); border: 2px solid var(--fig-text);
}
#cp-site .fd-rc__cands { position: absolute; left: 33%; top: 0; transform: translateY(-50%); display: flex; gap: 22px; align-items: center; }
#cp-site .fd-rc__cov {
  position: absolute; left: 77%; top: 0; transform: translateY(-50%);
  padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
  font-size: 12px; line-height: 1.5; background: var(--fig-bg);
}
#cp-site .fd-rc__cov--strong { color: var(--fig-ok); border-color: color-mix(in srgb, var(--fig-ok) 40%, transparent); background: color-mix(in srgb, var(--fig-ok) 7%, var(--fig-bg)); }
#cp-site .fd-rc__cov--weak { color: var(--fig-warn); border-color: color-mix(in srgb, var(--fig-warn) 40%, transparent); background: color-mix(in srgb, var(--fig-warn) 7%, var(--fig-bg)); }
#cp-site .fd-rc__cov--none { color: var(--fig-risk); border-color: color-mix(in srgb, var(--fig-risk) 40%, transparent); background: color-mix(in srgb, var(--fig-risk) 7%, var(--fig-bg)); }
/* readiness states (also the legend marks) */
#cp-site .fd-st { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; }
#cp-site .fd-st--now { background: var(--fig-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fig-accent) 16%, transparent); }
#cp-site .fd-st--m12 { background: radial-gradient(circle, var(--fig-accent) 0 2.5px, var(--fig-bg) 3px); border: 2px solid var(--fig-accent); }
#cp-site .fd-st--m24 { background: var(--fig-bg); border: 2px solid color-mix(in srgb, var(--fig-accent) 45%, transparent); }
#cp-site .fd-st--nodata { background: transparent; border: 1.5px dashed var(--fig-line-strong); }
#cp-site .fd-st--empty { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--fig-risk) 60%, transparent); }
#cp-site .fd-rc__legend {
  list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--fig-line); flex: none;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-family: var(--cp-mono); font-size: 12px; line-height: 1.5; color: var(--fig-muted);
}
#cp-site .fd-rc__legend li { display: inline-flex; align-items: center; gap: 8px; }
#cp-site .fd-rc__legend .fd-st { width: 11px; height: 11px; }
#cp-site .fd-rc__legend .fd-st--now { box-shadow: none; }
#cp-site .fd-rc__legend .fd-st--m12 { background: radial-gradient(circle, var(--fig-accent) 0 1.5px, var(--fig-bg) 2px); }
#cp-site .fd-rc--hero .fd-rc__legend { margin-top: 20px; padding-top: 16px; }
#cp-site .fd-rc--panel .fd-rc__heads { height: 28px; }
#cp-site .fd-rc--panel .fd-rc__cands { gap: 16px; }
/* motion */
.cp-js #cp-site .fd-rc__link, .cp-js #cp-site .fd-rc__track { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--cp-ease-out) calc(var(--i, 0) * 70ms); }
.cp-js #cp-site .fd-rc__track--none { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity 600ms var(--cp-ease) 700ms; }
.cp-js #cp-site .fd-rc__role, .cp-js #cp-site .fd-rc__sc { opacity: 0; transition: opacity 400ms var(--cp-ease) calc(var(--i, 0) * 80ms); }
.cp-js #cp-site .fd-rc__cands .fd-st { opacity: 0; transform: scale(0.4); transition: opacity 300ms var(--cp-ease) calc(700ms + var(--i, 0) * 90ms + var(--j, 0) * 70ms), transform 420ms var(--cp-ease-out) calc(700ms + var(--i, 0) * 90ms + var(--j, 0) * 70ms); }
.cp-js #cp-site .fd-rc__cov { opacity: 0; transition: opacity 500ms var(--cp-ease) calc(1100ms + var(--i, 0) * 90ms); }
.cp-js #cp-site .is-inview .fd-rc__link, .cp-js #cp-site .is-inview .fd-rc__track { stroke-dashoffset: 0; }
.cp-js #cp-site .is-inview .fd-rc__track--none,
.cp-js #cp-site .is-inview .fd-rc__role, .cp-js #cp-site .is-inview .fd-rc__sc,
.cp-js #cp-site .is-inview .fd-rc__cov { opacity: 1; }
.cp-js #cp-site .is-inview .fd-rc__cands .fd-st { opacity: 1; transform: none; }

/* ---------- workforce: one system (hero = free field like the Home hero; panel = PE panel frame) ---------- */
#cp-site .fd-wf { container: fd-wf / inline-size; }
#cp-site .fd-wf__stage { position: relative; }
#cp-site .fd-wf__field { position: relative; }
#cp-site .fd-wf--hero .fd-wf__field::before {
  content: ""; position: absolute; inset: -2% -1% 14%; pointer-events: none;
  background: radial-gradient(circle, rgba(24, 24, 27, 0.2) 0 1.3px, transparent 1.9px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 30%, transparent 80%);
}
#cp-site .fd-wf__canvas { position: relative; width: 100%; }
#cp-site .fd-wf__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#cp-site .fd-wf__svg path { fill: none; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__halo { fill: rgba(133, 44, 254, 0.05); stroke: rgba(133, 44, 254, 0.28); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__ahalo { fill: rgba(99, 102, 241, 0.05); stroke: rgba(99, 102, 241, 0.22); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__cedge { stroke: var(--fig-text); stroke-width: 1.25; stroke-opacity: 0.55; }
#cp-site .fd-wf__sedge { stroke: var(--fig-text); stroke-width: 1; stroke-opacity: 0.3; }
#cp-site .fd-wf__tie { stroke: var(--fig-accent); stroke-width: 1.25; stroke-opacity: 0.6; }
#cp-site .fd-wf__drop { stroke: var(--fig-accent); stroke-width: 1; stroke-opacity: 0.45; stroke-dasharray: 2 4; }
#cp-site .fd-wf__record { stroke-width: 2.5; stroke-linecap: round; }
#cp-site .fd-wf__mark { fill: var(--fig-bg); stroke: var(--fig-text); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__sat { fill: var(--fig-text); stroke: var(--fig-bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__hub-ring { fill: rgba(99, 102, 241, 0.14); }
#cp-site .fd-wf__hub-core { fill: var(--fig-bg); stroke: var(--fig-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__node { fill: var(--fig-text); stroke: var(--fig-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
#cp-site .fd-wf__node--top { stroke: var(--fig-bg); stroke-width: 3; }
/* pills: the four areas (white, like the Solutions hero), the core's name */
#cp-site .fd-wf__pill, #cp-site .fd-wf__corepill {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 10px; white-space: nowrap;
  background: var(--fig-bg); border: 1px solid var(--fig-line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 10px 24px -16px rgba(24, 24, 27, 0.3);
  font-size: 13.5px; font-weight: 500; line-height: 1.2; color: var(--fig-text);
}
#cp-site .fd-wf__pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fig-accent); }
#cp-site .fd-wf__corepill { font-family: var(--cp-mono); font-weight: 400; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
#cp-site .fd-wf__corepill--hero { display: none; }
#cp-site .fd-wf__recordlbl {
  position: absolute; left: 4%; top: calc(var(--y) + 14px); max-width: 36%;
  font-size: 14px; font-style: italic; font-weight: 300; line-height: 1.35; color: var(--cp-indigo-text);
}
/* the two cards of the hero (Roles at the core; the audit trail) */
#cp-site .fd-wf__cards { position: absolute; inset: 0; pointer-events: none; }
#cp-site .fd-wf__card {
  position: absolute; display: grid; gap: 6px; padding: 11px 14px 12px;
  background: var(--fig-bg); border: 1px solid var(--fig-line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 14px 32px -18px rgba(24, 24, 27, 0.28);
}
#cp-site .fd-wf__card--core { left: var(--x); top: var(--y); transform: translate(-50%, -50%); min-width: 176px; }
#cp-site .fd-wf__card--trail { right: 0; bottom: 0; width: 58%; }
#cp-site .fd-wf__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#cp-site .fd-wf__kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--cp-mono); font-size: 11.5px; line-height: 1.2; color: var(--fig-muted); }
#cp-site .fd-wf__kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fig-text); box-shadow: 0 0 0 3px rgba(133, 44, 254, 0.16); }
#cp-site .fd-wf__kicker--trail::before { width: 14px; height: 2.5px; border-radius: 2px; background: var(--cp-gradient); box-shadow: none; }
#cp-site .fd-wf__card-title { font-size: 17px; line-height: 1.2; color: var(--fig-text); }
#cp-site .fd-wf__rows { display: grid; gap: 5px; }
#cp-site .fd-wf__row { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: baseline; gap: 10px; }
#cp-site .fd-wf__key { font-family: var(--cp-mono); font-size: 11px; line-height: 1.3; color: var(--fig-muted); }
#cp-site .fd-wf__val { font-size: 13.5px; line-height: 1.3; color: var(--fig-text); }
#cp-site .fd-wf .cp-sample { font-size: 10px; padding: 1px 5px; }
/* panel form: the wide drawing; on narrow screens the hero's drawing (taller), cropped above the cards' zone */
#cp-site .fd-wf__pbody { justify-content: center; }
#cp-site .fd-wf__tall { display: none; }
#cp-site .fd-wf--panel .fd-wf__pill { font-size: 12px; padding: 4px 9px 4px 8px; gap: 6px; border-radius: 8px; }
#cp-site .fd-wf--panel .fd-wf__pill::before { width: 6px; height: 6px; }
#cp-site .fd-wf--panel .fd-wf__corepill { font-size: 11px; padding: 3px 9px; }
#cp-site .fd-wf--panel .fd-wf__recordlbl { left: 0; right: 0; max-width: none; text-align: center; top: calc(var(--y) + 10px); font-size: 12.5px; }
/* narrow (phones; the panel on phones): the outer area pills keep to the edges; the hero's cards go under the drawing */
@container fd-wf (max-width: 480px) {
  #cp-site .fd-wf .fd-wf__pill { font-size: 11px; padding: 4px 8px 4px 7px; gap: 5px; border-radius: 8px; }
  #cp-site .fd-wf .fd-wf__pill::before { width: 5px; height: 5px; }
  #cp-site .fd-wf__pill--0 { left: 0; transform: translateY(-50%); }
  #cp-site .fd-wf__pill--1 { left: auto; right: 0; transform: translateY(-50%); }
  #cp-site .fd-wf__corepill, #cp-site .fd-wf--panel .fd-wf__corepill { font-size: 10px; padding: 2px 7px; }
  #cp-site .fd-wf__corepill--hero { display: inline-flex; }
  #cp-site .fd-wf__recordlbl, #cp-site .fd-wf--panel .fd-wf__recordlbl { left: 0; max-width: none; font-size: 12px; top: calc(var(--y) + 8px); }
  #cp-site .fd-wf--hero .fd-wf__field, #cp-site .fd-wf__tall { aspect-ratio: 600 / 530; overflow: hidden; }
  #cp-site .fd-wf__wide { display: none; }
  #cp-site .fd-wf__tall { display: block; margin-top: 4px; }
  #cp-site .fd-wf__pbody { height: auto; }
  #cp-site .fd-wf__cards { position: static; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px; margin-top: 10px; }
  #cp-site .fd-wf__card { position: static; transform: none; width: auto; min-width: 0; align-content: start; padding: 10px 11px 11px; border-radius: 10px; }
  #cp-site .fd-wf__card-head { flex-wrap: wrap; gap: 4px 8px; }
  #cp-site .fd-wf__kicker { font-size: 10.5px; gap: 6px; }
  #cp-site .fd-wf__card-title { font-size: 15px; }
  #cp-site .fd-wf__row { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  #cp-site .fd-wf__val { font-size: 12.5px; }
  #cp-site .fd-wf .cp-sample { font-size: 9.5px; padding: 0 4px; }
}
/* motion, one sequence: the role structure, the areas and their ties, the record line, the drops, the cards */
.cp-js #cp-site .fd-wf__node, .cp-js #cp-site .fd-wf__sat, .cp-js #cp-site .fd-wf__hub { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
.cp-js #cp-site .fd-wf__node { transition: opacity 300ms var(--cp-ease) calc(100ms + var(--i) * 60ms), transform 450ms var(--cp-ease-out) calc(100ms + var(--i) * 60ms); }
.cp-js #cp-site .fd-wf__hub, .cp-js #cp-site .fd-wf__sat { transition: opacity 300ms var(--cp-ease) calc(500ms + var(--i) * 110ms), transform 450ms var(--cp-ease-out) calc(500ms + var(--i) * 110ms); }
.cp-js #cp-site .fd-wf__cedge, .cp-js #cp-site .fd-wf__tie, .cp-js #cp-site .fd-wf__record { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cp-js #cp-site .fd-wf__cedge { transition: stroke-dashoffset 500ms var(--cp-ease-out) calc(250ms + var(--i) * 40ms); }
.cp-js #cp-site .fd-wf__tie { transition: stroke-dashoffset 600ms var(--cp-ease-out) calc(800ms + var(--i) * 110ms); }
.cp-js #cp-site .fd-wf__record { transition: stroke-dashoffset 1100ms var(--cp-ease-out) 1200ms; }
.cp-js #cp-site .fd-wf__halo, .cp-js #cp-site .fd-wf__ahalo, .cp-js #cp-site .fd-wf__sedge, .cp-js #cp-site .fd-wf__glow { opacity: 0; transition: opacity 700ms var(--cp-ease) 600ms; }
.cp-js #cp-site .fd-wf__drop, .cp-js #cp-site .fd-wf__mark { opacity: 0; transition: opacity 400ms var(--cp-ease) calc(1700ms + var(--i) * 80ms); }
.cp-js #cp-site .fd-wf__pill, .cp-js #cp-site .fd-wf__corepill, .cp-js #cp-site .fd-wf__card, .cp-js #cp-site .fd-wf__recordlbl { opacity: 0; transition: opacity 500ms var(--cp-ease) 1900ms; }
.cp-js #cp-site .fd-wf__pill { transition-delay: calc(700ms + var(--i) * 110ms); }
.cp-js #cp-site .fd-wf.is-inview .fd-wf__node, .cp-js #cp-site .fd-wf.is-inview .fd-wf__sat, .cp-js #cp-site .fd-wf.is-inview .fd-wf__hub { opacity: 1; transform: none; }
.cp-js #cp-site .fd-wf.is-inview .fd-wf__cedge, .cp-js #cp-site .fd-wf.is-inview .fd-wf__tie, .cp-js #cp-site .fd-wf.is-inview .fd-wf__record { stroke-dashoffset: 0; }
.cp-js #cp-site .fd-wf.is-inview .fd-wf__halo, .cp-js #cp-site .fd-wf.is-inview .fd-wf__ahalo, .cp-js #cp-site .fd-wf.is-inview .fd-wf__sedge, .cp-js #cp-site .fd-wf.is-inview .fd-wf__glow,
.cp-js #cp-site .fd-wf.is-inview .fd-wf__drop, .cp-js #cp-site .fd-wf.is-inview .fd-wf__mark,
.cp-js #cp-site .fd-wf.is-inview .fd-wf__pill, .cp-js #cp-site .fd-wf.is-inview .fd-wf__corepill, .cp-js #cp-site .fd-wf.is-inview .fd-wf__card, .cp-js #cp-site .fd-wf.is-inview .fd-wf__recordlbl { opacity: 1; }

/* ---------- readiness "The problem": from the individual vs the next stage ---------- */
#cp-site .fd-gap { margin: 0; padding: 40px 32px 36px; background: var(--cp-ground); border: 1px solid var(--cp-line); border-radius: var(--cp-r-lg); }
#cp-site .fd-gap__grid { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1.12fr); align-items: center; }
#cp-site .fd-gap__sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#cp-site .fd-gap__src {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  background: var(--fig-bg); border: 1px solid var(--fig-line); border-radius: 12px; box-shadow: var(--fig-shadow);
}
#cp-site .fd-gap__glyph { width: 52px; height: 52px; flex: none; overflow: visible; }
#cp-site .fd-gap__srclbl { font-size: 15px; line-height: 1.3; color: var(--cp-ink); }
#cp-site .fd-gap__pool { fill: none; stroke: var(--fig-line-strong); stroke-width: 1.2; stroke-dasharray: 3 4; }
#cp-site .fd-gap__pt { fill: var(--fig-line-strong); }
#cp-site .fd-gap__me { fill: var(--fig-accent); stroke: var(--fig-bg); stroke-width: 2; }
#cp-site .fd-gap__cell { fill: var(--fig-panel); stroke: var(--fig-line-strong); stroke-width: 1; }
#cp-site .fd-gap__nom, #cp-site .fd-gap__nomhead { fill: none; stroke: var(--fig-line-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#cp-site .fd-gap__ind { display: flex; align-items: center; gap: 10px; margin: 16px 0 0 4px; font-size: 14px; line-height: 1.35; color: var(--cp-muted); }
#cp-site .fd-gap__ind i { width: 10px; height: 10px; border-radius: 50%; background: var(--fig-accent); flex: none; }
#cp-site .fd-gap__bridge { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
#cp-site .fd-gap__bridge::before, #cp-site .fd-gap__bridge::after {
  content: ""; position: absolute; top: 50%; width: calc(50% - 12px); border-top: 1.5px dashed var(--fig-line-strong);
}
#cp-site .fd-gap__bridge::before { left: 6px; }
#cp-site .fd-gap__bridge::after { right: 6px; }
#cp-site .fd-gap__says {
  position: absolute; left: 50%; bottom: calc(50% + 10px); transform: translateX(-50%); width: 92px; text-align: center;
  font-size: 13px; font-style: italic; font-weight: 300; line-height: 1.3; color: var(--cp-indigo-text);
}
#cp-site .fd-gap__stage {
  position: relative; padding: 18px 20px 22px; background: var(--fig-bg); border: 1px solid var(--fig-line);
  border-radius: 14px; box-shadow: var(--fig-shadow);
}
#cp-site .fd-gap__stagelbl { display: block; font-family: var(--cp-mono); font-size: 12px; line-height: 1.4; color: var(--fig-muted); letter-spacing: 0.02em; }
#cp-site .fd-gap__stageline {
  display: block; position: relative; height: 2px; margin: 10px 8px 20px 0; border-radius: 2px; background: var(--cp-gradient);
}
#cp-site .fd-gap__stageline::after {
  content: ""; position: absolute; right: -8px; top: -4px; border-left: 8px solid #F21BFE; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
#cp-site .fd-gap__slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#cp-site .fd-gap__slot {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--fig-line-strong);
  display: flex; align-items: center; justify-content: center;
}
#cp-site .fd-gap__slot.is-on { border: 2px solid var(--fig-text); background: var(--fig-bg); }
#cp-site .fd-gap__slot.is-on i { width: 12px; height: 12px; border-radius: 50%; background: var(--fig-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fig-accent) 16%, transparent); }
#cp-site .fd-gap__enough { margin: 16px 0 0; font-size: 16px; line-height: 1.35; color: var(--cp-ink); }
/* motion */
.cp-js #cp-site .fd-gap__src { opacity: 0; transform: translateX(-10px); transition: opacity 500ms var(--cp-ease) calc(var(--i) * 140ms), transform 600ms var(--cp-ease-out) calc(var(--i) * 140ms); }
.cp-js #cp-site .fd-gap__bridge, .cp-js #cp-site .fd-gap__ind { opacity: 0; transition: opacity 600ms var(--cp-ease) 600ms; }
.cp-js #cp-site .fd-gap__stageline { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1000ms var(--cp-ease-out) 800ms; }
.cp-js #cp-site .fd-gap__slot.is-on i { opacity: 0; transform: scale(0.4); transition: opacity 300ms var(--cp-ease) calc(1300ms + var(--i) * 80ms), transform 400ms var(--cp-ease-out) calc(1300ms + var(--i) * 80ms); }
.cp-js #cp-site .fd-gap.is-inview .fd-gap__src { opacity: 1; transform: none; }
.cp-js #cp-site .fd-gap.is-inview .fd-gap__bridge, .cp-js #cp-site .fd-gap.is-inview .fd-gap__ind { opacity: 1; }
.cp-js #cp-site .fd-gap.is-inview .fd-gap__stageline { transform: none; }
.cp-js #cp-site .fd-gap.is-inview .fd-gap__slot.is-on i { opacity: 1; transform: none; }

/* ---------- workforce "The problem": the Directive's four obligations ---------- */
#cp-site .fd-pd { margin: 0; padding: 34px 32px 30px; background: var(--cp-ground); border: 1px solid var(--cp-line); border-radius: var(--cp-r-lg); }
#cp-site .fd-pd__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
#cp-site .fd-pd__name { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--cp-ink); }
#cp-site .fd-pd__num {
  padding: 2px 8px; border: 1px solid var(--fig-line); border-radius: 4px; background: var(--fig-bg);
  font-family: var(--cp-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fig-muted);
}
#cp-site .fd-pd__rule { display: block; height: 2px; margin: 14px 0 22px; border-radius: 2px; background: var(--cp-gradient); }
#cp-site .fd-pd__duties { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#cp-site .fd-pd__duty {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px;
  background: var(--fig-bg); border: 1px solid var(--fig-line); border-radius: 12px; box-shadow: var(--fig-shadow);
}
#cp-site .fd-pd__glyph { width: 108px; height: 58px; overflow: visible; }
#cp-site .fd-pd__dutylbl { font-size: 15px; line-height: 1.35; color: var(--cp-ink); }
#cp-site .fd-pd__bar { fill: color-mix(in srgb, var(--fig-accent) 26%, var(--fig-bg)); }
#cp-site .fd-pd__bar--b { fill: color-mix(in srgb, var(--fig-accent) 62%, var(--fig-bg)); }
#cp-site .fd-pd__gapmark { fill: none; stroke: var(--fig-risk); stroke-width: 1.5; stroke-dasharray: 3 3; }
#cp-site .fd-pd__work { fill: var(--fig-bg); stroke: var(--fig-text); stroke-width: 1.5; }
#cp-site .fd-pd__lines { fill: none; stroke: var(--fig-line-strong); stroke-width: 3; stroke-linecap: round; }
#cp-site .fd-pd__lines--a { stroke: var(--fig-accent); stroke-opacity: 0.6; }
#cp-site .fd-pd__bubble { fill: var(--fig-bg); stroke: var(--fig-line-strong); stroke-width: 1.5; }
#cp-site .fd-pd__bubble--a { fill: color-mix(in srgb, var(--fig-accent) 10%, var(--fig-bg)); stroke: var(--fig-accent); }
#cp-site .fd-pd__q { fill: none; stroke: var(--fig-text); stroke-width: 2; stroke-linecap: round; }
#cp-site .fd-pd__national { margin-top: 24px; }
#cp-site .fd-pd__track { position: relative; display: block; height: 12px; margin: 0 6px; }
#cp-site .fd-pd__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--fig-line-strong); }
#cp-site .fd-pd__track i {
  position: absolute; left: calc(var(--p) * 100%); top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--fig-bg); border: 1.5px solid var(--fig-text);
}
#cp-site .fd-pd__natlbl { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--cp-muted); }
/* motion */
.cp-js #cp-site .fd-pd__rule { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1000ms var(--cp-ease-out); }
.cp-js #cp-site .fd-pd__duty { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--cp-ease) calc(400ms + var(--i) * 140ms), transform 600ms var(--cp-ease-out) calc(400ms + var(--i) * 140ms); }
.cp-js #cp-site .fd-pd__track i { opacity: 0; transition: opacity 300ms var(--cp-ease) calc(1100ms + var(--i) * 90ms); }
.cp-js #cp-site .fd-pd.is-inview .fd-pd__rule { transform: none; }
.cp-js #cp-site .fd-pd.is-inview .fd-pd__duty { opacity: 1; transform: none; }
.cp-js #cp-site .fd-pd.is-inview .fd-pd__track i { opacity: 1; }

/* ---------- reduced motion: final states ---------- */
@media (prefers-reduced-motion: reduce) {
  .cp-js #cp-site .fd-rc__link, .cp-js #cp-site .fd-rc__track { stroke-dashoffset: 0; }
  .cp-js #cp-site .fd-wf__cedge, .cp-js #cp-site .fd-wf__tie, .cp-js #cp-site .fd-wf__record { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .cp-js #cp-site .fd-wf__halo, .cp-js #cp-site .fd-wf__ahalo, .cp-js #cp-site .fd-wf__sedge, .cp-js #cp-site .fd-wf__glow, .cp-js #cp-site .fd-wf__drop, .cp-js #cp-site .fd-wf__mark,
  .cp-js #cp-site .fd-wf__pill, .cp-js #cp-site .fd-wf__corepill, .cp-js #cp-site .fd-wf__card, .cp-js #cp-site .fd-wf__recordlbl { opacity: 1; transition: none; }
  .cp-js #cp-site .fd-wf__node, .cp-js #cp-site .fd-wf__sat, .cp-js #cp-site .fd-wf__hub { opacity: 1; transform: none; transition: none; }
  .cp-js #cp-site .fd-rc__track--none, .cp-js #cp-site .fd-rc__role, .cp-js #cp-site .fd-rc__sc, .cp-js #cp-site .fd-rc__cov,
  .cp-js #cp-site .fd-gap__bridge, .cp-js #cp-site .fd-gap__ind, .cp-js #cp-site .fd-pd__track i { opacity: 1; }
  .cp-js #cp-site .fd-rc__cands .fd-st,
  .cp-js #cp-site .fd-gap__src, .cp-js #cp-site .fd-gap__slot.is-on i, .cp-js #cp-site .fd-pd__duty { opacity: 1; transform: none; }
  .cp-js #cp-site .fd-gap__stageline, .cp-js #cp-site .fd-pd__rule { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  #cp-site .fd-inst--hero { padding: 20px 18px 20px; }
  #cp-site .fd-rc--hero { height: 320px; }
  #cp-site .fd-rc__h { font-size: 10px; letter-spacing: 0; }
  #cp-site .fd-rc__h--sc { max-width: 15%; }
  #cp-site .fd-rc__cands { gap: 12px; left: 35%; }
  #cp-site .fd-rc__h--role { width: 8ch; }
  #cp-site .fd-rc__h--ready { left: 38%; max-width: 11ch; }
  #cp-site .fd-rc__cov { left: auto; right: 0; font-size: 11px; padding: 1px 7px; }
  #cp-site .fd-rc__h--cov { left: auto; right: 0; }
  #cp-site .fd-rc__legend { gap: 6px 14px; font-size: 11px; }
  #cp-site .fd-gap { padding: 22px 16px 22px; }
  #cp-site .fd-gap__grid { grid-template-columns: minmax(0, 1fr); }
  #cp-site .fd-gap__bridge { height: 64px; }
  #cp-site .fd-gap__bridge::before, #cp-site .fd-gap__bridge::after { left: 28px; right: auto; top: auto; width: 0; height: calc(50% - 8px); border-top: 0; border-left: 1.5px dashed var(--fig-line-strong); }
  #cp-site .fd-gap__bridge::before { top: 4px; }
  #cp-site .fd-gap__bridge::after { bottom: 4px; }
  #cp-site .fd-gap__says { left: 44px; bottom: auto; top: 50%; transform: translateY(-50%); width: auto; text-align: left; }
  #cp-site .fd-pd { padding: 22px 16px 22px; }
  #cp-site .fd-pd__duties { grid-template-columns: minmax(0, 1fr); }
  #cp-site .fd-pd__duty { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
  #cp-site .fd-pd__glyph { width: 84px; height: 45px; flex: none; }
  #cp-site .fd-pd__dutylbl { font-size: 14px; }
}
