/* A single reading order from source documents to formal approval. */
.system-workflow {
  --wire: #78958e;
  --stem: clamp(13px, 1.7vw, 27px);
  --node-edge: #aac0b7;
  --detail: #425957;
  --node: #173f42;
  --node-text: #fffdf7;
  --node-detail: #d4e6de;
  scroll-margin-top: 4rem;
  padding-block: clamp(36px, 4.8vw, 74px);
}
.system-workflow.work-boundary {
  --wire: #92b9ad;
  --node-edge: #648982;
  --detail: #d2e4dd;
  --node: #d5e8dc;
  --node-text: #143e3d;
  --node-detail: #315a54;
}
.system-heading { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: end; gap: 22px 6vw; }
.system-heading h2 { font: 500 clamp(2.1rem, 3.7vw, 3.8rem)/1.04 var(--font); letter-spacing: -.045em; }
.system-heading h2 em { display: block; }
.system-workflow.work-boundary h2 em { color: #cde4d9; }
.system-context { max-width: 52ch; color: var(--detail); line-height: 1.5; }
.system-context .text-link { display: inline-block; margin-top: 7px; }
.work-boundary a:focus-visible { outline-color: #fff; }
.system-route {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .88fr);
  gap: calc(2 * var(--stem)); align-items: center; list-style: none; padding: 0; margin: clamp(23px, 3vw, 44px) 0 0;
}
.system-route > li { position: relative; min-width: 0; }
.system-route p { font: 400 1rem/1.45 var(--font); }
.system-route h3 { font: 500 clamp(1.1rem, 1.65vw, 1.6rem)/1.15 var(--font); letter-spacing: -.025em; }
.source-docs { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-auto-rows: 1fr; }
.source-docs::after { content: ""; position: absolute; right: calc(0px - var(--stem)); top: 16.6667%; bottom: 16.6667%; border-right: 1px solid var(--wire); }
.source-docs li {
  position: relative; border-top: 1px solid var(--node-edge); padding: .78rem 0;
  display: grid; align-content: center; grid-template-columns: 1.15rem minmax(0,1fr); align-items: center; column-gap: .7rem;
}
.source-docs li:last-child { box-shadow: inset 0 -1px var(--node-edge); }
.source-docs li::after, .system-route > li + li::before {
  content: ""; position: absolute; top: 50%; border-top: 1px solid var(--wire);
}
.source-docs li::after { width: var(--stem); left: 100%; }
.system-route > li + li::before { width: calc(2 * var(--stem)); right: 100%; }
.system-route > .system-engine::before { width: var(--stem); }
.system-route > li + li::after {
  content: ""; position: absolute; border-top: 1px solid var(--wire); border-right: 1px solid var(--wire);
  width: 6px; height: 6px; right: calc(100% + 1px); top: calc(50% - 3px); transform: rotate(45deg);
}
.doc-glyph {
  position: relative; display: inline-block; width: 15px; height: 19px; color: var(--detail); border: 1px solid currentColor; border-radius: 2px;
}
.doc-glyph::after { content: ""; position: absolute; top: 6px; left: 3px; width: 7px; height: 4px; border-block: 1px solid currentColor; }
.source-docs strong, .source-docs small { display: block; }
.source-docs strong { font: 500 1rem/1.35 var(--font); }
.source-docs small { color: var(--detail); font: 400 .9rem/1.35 var(--font); margin-top: .15rem; }
.system-stage { padding: clamp(14px, 1.65vw, 25px); }
.system-engine { background: var(--node); color: var(--node-text); }
.system-engine h3 { margin-block: .75rem .35rem; }
.system-engine p { color: var(--node-detail); }
.system-mark { display: block; width: 32px; height: 32px; }
.system-draft { background: #fffdf7; color: #203333; border: 1px solid #becbbe; box-shadow: 3px 3px 0 0 #aebdb1; }
.system-draft h3 { padding-bottom: .55rem; border-bottom: 1px solid #cad5cc; }
.system-draft p { margin-top: .6rem; }
.system-draft ins { text-decoration-color: #45775a; text-underline-offset: 3px; color: #365f44; }
.system-approval { border-left: 1px solid var(--node-edge); padding-left: clamp(12px, 1.5vw, 22px); }
.system-approval h3 { margin: .6rem 0 .35rem; }
.system-approval p { color: var(--detail); }
.approval-mark { display: block; position: relative; height: 22px; width: 22px; border: 1px solid currentColor; border-radius: 50%; }
.approval-mark::before { content: ""; position: absolute; top: 6px; left: 5px; height: 5px; width: 9px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.system-case { background: #edf3f1; }
.system-case figcaption { margin-top: 18px; font-size: .88rem; color: var(--detail); }
.system-links { margin-top: 18px; display: flex; gap: 12px 24px; flex-wrap: wrap; }
.system-links a { font-size: 1rem; }
@media (max-width: 800px) {
  .system-heading { grid-template-columns: 1fr; gap: 14px; }
  .system-route { grid-template-columns: minmax(0, 1fr); gap: 25px; max-width: 42rem; }
  .source-docs { padding-inline-end: 36px; }
  .source-docs::after { right: 18px; bottom: 0; }
  .source-docs li::after { width: 17px; }
  .system-route > li + li::before { width: 0; height: 25px; top: -26px; right: 20px; border: 0; border-left: 1px solid var(--wire); }
  .system-route > .system-engine::before { width: 0; right: 18px; top: -25px; }
  .system-route > li + li::after { right: 17px; top: -8px; transform: rotate(135deg); }
  .system-route > .system-engine::after { right: 15px; }
  .system-stage { padding: 16px 18px; }
  .system-engine h3 { margin: 0 0 .3rem; }
  .system-engine { display: grid; grid-template-columns: 32px 1fr; align-content: center; column-gap: 12px; }
  .system-engine .system-mark { grid-row: span 2; align-self: center; }
  .system-draft { margin-right: 3px; }
  .system-draft h3 { padding-bottom: .45rem; }
  .system-approval { border-left: 0; border-top: 1px solid var(--node-edge); padding: 14px 0 0; }
  .system-approval h3 { margin: 0 0 .25rem; }
  .approval-mark { float: left; margin: .1rem .65rem .5rem 0; }
}

/* Keep the two assessment outcomes readable at the size of the home preview. */
.decision-preview {padding:clamp(1rem,2vw,1.55rem);background:#fff;color:#173a39}
.decision-preview h2 {font:550 clamp(1.4rem,2vw,1.9rem)/1.16 var(--font);letter-spacing:-.035em}
.decision-preview p,.decision-preview dd {font-size:1rem;line-height:1.45;color:#405753}
.decision-preview p {margin:.5rem 0 .9rem}
.decision-preview dl {margin:0}
.decision-preview dl div {display:grid;grid-template-columns:3.4rem minmax(0,1fr);gap:.65rem;border-top:1px solid #cfdfd7;padding:.7rem 0}
.decision-preview dl div:last-child {padding-bottom:0}
.decision-preview dt {font-weight:600;color:#1e584c}
.decision-preview dd {margin:0}
.decision-preview dd strong {display:block;color:#183e37}
.preview-evidence {display:block;border-top:1px solid #cfded7;background:#f3f7f4;padding:.75rem 1.25rem;color:#1f5548;font-size:1rem;font-weight:550;text-decoration:underline;text-underline-offset:.2em}
