/* CAP relationship map: diagram, not a risk assessment. */
.cap-network { --map-green:#244d3d; --map-muted:#71806a; --map-line:#c0ceb4; --map-gold:#b19860; position:relative; min-width:0; padding:1px 0 0; }
.cap-network-center { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:11px; width:fit-content; max-width:100%; margin:0 auto; padding:0 5px; background:#fff; }
.cap-network-center > div { display:flex; flex-direction:column; gap:4px; min-width:0; }
.cap-network-center strong { color:var(--map-green); font-size:12px; font-weight:550; line-height:1.4; }
.cap-network-center > div > span { color:var(--map-muted); font-size:10px; line-height:1.4; }
.cap-network-orbit { position:relative; flex:0 0 58px; width:58px; height:58px; display:grid; place-items:center; }
.cap-network-orbit > svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; fill:none; stroke:#dce5d4; stroke-width:1; }
.cap-network-orbit > svg > path { stroke:var(--map-gold); stroke-width:1.5; }
.cap-network-orbit > svg > .cap-network-orbit-point { fill:var(--map-gold); stroke:#fff; stroke-width:2; }
.cap-network-orbit > span { width:44px; height:44px; display:grid; place-items:center; border:1px solid #e2e8da; border-radius:50%; background:#f2f5eb; color:#658151; }
.cap-network-orbit .icon { width:22px; height:22px; }
.cap-network-links { position:relative; margin:0; }
.cap-network-pair:not(:last-child)::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:1px; background:var(--map-line); }
.cap-network-pair { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:10px; padding-top:36px; }
.cap-network-lines { position:absolute; top:0; left:0; width:100%; height:36px; fill:none; stroke:var(--map-line); stroke-width:1; }
.cap-network-lines path { vector-effect:non-scaling-stroke; }
.cap-network .cap-network-node { position:relative; z-index:1; display:flex; align-items:flex-start; flex-direction:column; gap:0; min-width:0; padding:11px 10px 9px; border:1px solid #d5dfcd; border-radius:6px; background:#fbfcf8; color:var(--map-green); text-align:left; }
.cap-network .cap-network-node::before { display:none; }
.cap-network .cap-network-node::after { content:""; position:absolute; left:50%; top:-4px; width:6px; height:6px; border:1px solid #9bb28a; border-radius:50%; background:#fff; transform:translateX(-50%); }
.cap-network .cap-network-node-icon { display:flex; align-items:center; color:#8a9d76; margin-bottom:7px; }
.cap-network .cap-network-node-icon .icon { width:17px; height:17px; }
.cap-network .cap-network-node > strong { font-size:14px; line-height:1.45; font-weight:550; overflow-wrap:anywhere; }
.cap-network .cap-network-node-role { color:var(--map-muted); font-size:12px; line-height:1.45; margin-top:4px; overflow-wrap:anywhere; }
.cap-network-pair.is-single { grid-template-columns:minmax(0,1fr); justify-items:center; }
.cap-network-pair.is-single .cap-network-node { width:calc(50% - 5px); min-width:140px; }
.cap-network-empty { margin:14px 0 0; padding:14px; border-top:1px solid #e1e7da; color:var(--map-muted); text-align:center; font-size:11px; line-height:1.5; }
@media(max-width:600px) {
 .cap-network-center strong { font-size:13px; }
 .cap-network-center > div > span { font-size:11px; }
 .cap-network .cap-network-node { padding:12px 11px 10px; }
}
@media(prefers-reduced-motion:reduce) { .cap-network .cap-network-node { transition:none; } }

/* Keep the identity node inside its previous footprint. */
.cap-network-center { gap:10px; }
.cap-network-center strong { font-size:13px; line-height:1.3; font-weight:550; }
.cap-network-center > div > span { font-size:10px; color:#6d8062; }
.cap-network-orbit { flex-basis:54px; width:54px; height:54px; }
.cap-network-orbit > span { background:#eef3e6; border-color:#d3dfc7; color:#4e7140; }

.cap-result .icon{width:18px;height:18px;flex-shrink:0}
.cap-result [hidden]{display:none!important}
.cap-result button:focus-visible,.cap-result summary:focus-visible{outline:2px solid #ba9855;outline-offset:4px}
.cr-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:20px}
.cr-eyebrow{display:block;font-size:9px;font-weight:650;letter-spacing:.14em;color:#827041;margin-bottom:10px}
.cr-intro h1{font-size:clamp(29px,3.2vw,43px);letter-spacing:-.045em;line-height:1.05;font-weight:550}
.cr-evidence-column{min-width:0}
.cr-paper{position:relative;background:#fafaf5;border:1px solid #e0e3d7;box-shadow:0 5px 0 -2px #fff,0 6px 0 -2px #d9dfd3;padding:6px 24px 15px;border-radius:2px;animation:paper-in .35s ease-out both}
.cr-paper:before{content:'';position:absolute;left:-1px;top:6px;width:3px;height:37px;background:#b29a60}
.cr-identity{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;padding:0 0 16px}
.cr-label{font-size:8px;letter-spacing:.13em;color:#78836c}
.cr-identity h2{font-size:23px;letter-spacing:-.035em;line-height:1.3;overflow-wrap:anywhere;margin:3px 0 5px}
.cr-identity p{font-size:12px;color:#647562}
.cr-identity strong{font-weight:500}
.cap-result summary{list-style:none;cursor:pointer;touch-action:manipulation}
.cap-result summary::-webkit-details-marker{display:none}
.cap-result summary span{transform:none;font:inherit}
.cr-section-label{display:flex;align-items:center;gap:9px;font-size:11px;color:#4b6551;border-top:1px solid var(--line);padding-top:15px}
.cr-section-label>span{font-size:10px;color:#9c895c}
.cr-chart-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px;padding:12px 0 8px;align-items:start}
.process-count-graphic{min-width:0}
.cr-result-panel .process-count-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.cr-result-panel .process-total{font-size:48px;color:var(--ink);font-weight:500;letter-spacing:-.065em;line-height:1}
.cr-result-panel .process-total.compact-total{font-size:32px;overflow-wrap:anywhere}
.cr-result-panel .process-count-heading>span{font-size:11px;line-height:1.3;max-width:85px;color:#45634e}
.cr-result-panel .process-pictogram{display:block;width:154px;max-width:100%;height:auto;max-height:60px;margin:5px 0 3px}
.cr-result-panel .process-dot{fill:#9c8245}
.cr-result-panel .process-dot-empty{fill:#e0e4d5}
.cr-result-panel .process-chart-legend{font-size:9px;line-height:1.5;color:#6c7d65}
.cr-result-panel .process-empty-mark{min-height:35px;font-size:28px;color:#879b7d}
.cr-result-panel .process-kicker,.cr-result-panel .process-count-graphic>p{font-size:11px;color:#647660}
.cr-company-chart{align-self:stretch;border-left:1px solid var(--line);padding-left:20px;min-width:0}
.cr-company-heading{min-height:48px;display:flex;align-items:center;gap:8px}
.cr-company-heading>strong{font-size:32px;line-height:1;font-weight:500}
.cr-company-heading>span{font-size:10px;line-height:1.4;max-width:100px}
.cr-chart-caption{font-size:9px;color:#6e7d65;margin-top:12px!important}
.cr-year-bars{display:flex;align-items:end;gap:3px;flex-wrap:wrap;padding:3px 0;border-bottom:1px solid var(--line)}
.cr-year{flex:1 1 24px;min-width:24px;max-width:45px;display:flex;align-items:center;flex-direction:column;background:transparent;padding:0;color:#4b6a50;border-radius:2px}
.cr-year svg{width:32px;max-width:100%;height:48px}
.cr-year text{fill:#385d46;font-size:12px;font-family:inherit}
.cr-year rect{fill:#8eaa82}
.cr-year span{font-size:8px;line-height:1.6}
.cr-year:hover{background:#e7eddf}
.cr-chart-footnote{font-size:8px;line-height:1.5;color:#708166;margin-top:7px!important}
.cr-membership-note{font-size:14px;line-height:1.5;color:var(--ink);margin:0}
.cr-details :is(.cr-chart-caption,.cr-year,.cr-chart-footnote){color:var(--muted)}
.cr-editorial-note{display:grid;grid-template-columns:82px 1fr;gap:14px;border-top:1px solid var(--line);padding:17px 0}
.cr-editorial-note>span{font-size:8px;line-height:1.7;letter-spacing:.08em;color:#8b774b}
.cr-editorial-note p{font-size:12px;line-height:1.6;color:#45604d}
.cr-paper-footer{display:flex;gap:10px;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;font-size:8px;color:#78816d;line-height:1.5}
.cr-paper-footer>span:last-child{display:flex;align-items:center;gap:4px}
.cr-paper-footer .icon{width:10px;height:10px}
.cr-details{--card-gap:8px;margin-top:var(--card-gap);display:grid;gap:var(--card-gap)}
.cap-result .cr-disclosure{margin:0;padding:0;border:0;border-bottom:1px solid var(--line)}
.cap-result .cr-disclosure>summary{display:flex;align-items:center;gap:8px;min-height:52px;padding:13px 0;font-size:14px;font-weight:500;line-height:1.4}
.cr-disclosure>summary>small{font-size:12px;margin-left:auto;color:#53634d;font-weight:400}
.cr-disclosure>summary:after{content:'+';margin-left:auto;font-size:20px;color:#41634c}
.cr-disclosure>summary:has(small):after{margin-left:5px}
.cr-disclosure[open]>summary:after{content:'−'}
.cr-disclosure-body{padding:5px 0 13px;font-size:14px;line-height:1.6}
.cap-result .cr-details>.cr-disclosure{border:1px solid #cdd8c7;border-radius:6px;background:#fff;overflow:clip}
.cap-result .cr-details>.cr-disclosure>summary{gap:10px;padding:13px 14px;min-height:68px}
.cr-details>.cr-disclosure[open]>summary{background:#f0f5e9;border-bottom:1px solid #d8e3d0}
.cr-details>.cr-disclosure>summary:after{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border:1px solid #b7c9af;border-radius:50%;line-height:1;background:#fff;font-size:19px}
.cr-disclosure-icon{display:grid;place-items:center;width:32px;height:34px;flex-shrink:0;background:#edf3e6;border-radius:5px;color:#39634a}
.cr-disclosure-icon .icon{width:18px;height:18px}
.cr-disclosure-copy{min-width:0}
.cr-disclosure-copy>strong{display:block;font-size:15px;font-weight:600;line-height:1.35}
.cap-result .cr-disclosure-copy>span{display:block;font-size:12px;line-height:1.45;color:#53684f;margin-top:3px}
.cr-details>.cr-disclosure>summary>.cr-count{display:flex;gap:3px;align-items:center;flex-shrink:0;white-space:nowrap;padding:4px 7px;background:#edf2e5;border-radius:4px;color:#31543c;font-size:11px}
.cr-count b{font-size:13px;font-weight:650}
.cr-details>.cr-disclosure>.cr-disclosure-body{padding:3px 14px 12px}
.cr-details .cr-record:first-child{border-top:0}
.cr-details .cr-record[open]{background:#f7f9f3}
.cr-details .cr-record.is-highlighted{background:#e9f1dc}
.cr-details>.cr-disclosure>summary:focus-visible{outline-offset:-3px;border-radius:5px}
.cr-details .cr-record .cr-fields{padding:0 10px 8px 27px}
@media(max-width:480px){
 .cap-result .cr-details>.cr-disclosure>summary{padding:12px 10px;gap:8px;min-height:62px}
 .cr-disclosure-icon{width:28px;height:30px}
 .cr-disclosure-copy>strong{font-size:14px}
 .cap-result .cr-disclosure-copy>span{display:none}
 .cr-details>.cr-disclosure>summary>.cr-count{padding:4px 6px}
 .cr-count>span{display:none!important}
 .cr-details>.cr-disclosure>.cr-disclosure-body{padding:2px 10px 9px}
 .cr-details .cr-record .cr-fields{padding-left:10px}
}

.cap-result .cr-record{border:0;border-top:1px solid #e5e9dd;padding:0;margin:0}
.cap-result .cr-record>summary{display:flex;gap:9px;align-items:center;padding:10px 0;min-height:48px;font-size:14px}
.cr-record>summary:after{content:'+';margin-left:auto}
.cr-record[open]>summary:after{content:'−'}
.cr-record-index{font-size:12px!important;color:#586b50}
.cr-record summary strong{display:block;font-size:14px;font-weight:550;overflow-wrap:anywhere;line-height:1.5}
.cr-record summary small{display:block;font-size:12px;font-weight:400;color:#53634d}
.cr-record.is-highlighted{background:#f0f4e8}
.cr-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px 15px;margin:4px 0 12px}
.cr-fields>div{min-width:0}.cr-fields dt{font-size:12px;color:#53634d}.cr-fields dd{font-size:14px;margin:3px 0 0;overflow-wrap:anywhere}
.cr-timeline ol{list-style:none;padding:0;margin:0}.cr-timeline li{display:grid;grid-template-columns:80px 1fr;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:12px}.cr-timeline button{display:flex;flex-direction:column;align-items:start;text-align:left;font-size:13px;line-height:1.5;background:transparent;color:var(--ink);padding:0}.cr-timeline button span{font-size:12px;color:#53634d}
.cr-save{margin-top:18px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:space-between;padding:15px 0;border-top:1px solid var(--line)}
.cr-save>div{display:flex;align-items:center;gap:10px;flex:1 1 215px}.cr-save>div>.icon{color:#a18b57}.cr-save h3{font-size:18px;font-weight:600}.cr-save p{font-size:13px;line-height:1.5;color:#4f634f;margin-top:5px}.cr-save-action{background:transparent;color:#365a43;display:flex;align-items:center;gap:8px;padding:9px 0;min-height:44px;font-size:13px;font-weight:600;border-bottom:1px solid #55734e}
/* Result surfaces share the palette of the verification step. */
.cap-result {
  --ink: #edf2e7;
  --muted: #c8d7c8;
  --line: #507166;
  --gold: #e2c78b;
  --surface: #254b3f;
  --raised: #345a4b;
}
.cap-result .cr-intro h1,
.cap-result .cr-identity h2,
.cap-result .cr-save h3 { color: var(--ink); }
.cap-result .cr-eyebrow, .cr-paper .cr-label, .cr-editorial-note > span,
.cr-section-label > span { color: var(--gold); }
.cap-result .cr-paper {
  padding-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 12px;
}
.cr-paper::before { background: var(--gold); }
.cr-paper :is(.cr-section-label,.cr-identity p,.process-count-heading > span,.process-count-graphic > p,.process-kicker,.cr-chart-caption,.cr-chart-footnote,.cr-editorial-note p,.cr-paper-footer,.cr-year),
.cap-result :is(.cr-fields dt,.cr-record-index,.cr-record summary small,.cr-timeline button span,.cr-save p,.cr-disclosure-copy > span) { color: var(--muted); }
.cr-result-panel .process-dot { fill: var(--gold); }
.cr-result-panel .process-dot-empty { fill: var(--line); }
.cr-year text { fill: var(--ink); }
.cr-year rect { fill: #adc599; }
.cr-year:hover { background: var(--raised); }
.cap-result .cr-chart-footnote,.cap-result .cr-paper-footer,.cap-result .cr-year span { font-size: 11px; }
.cap-result .cr-paper-footer { flex-wrap: wrap; }
.cap-result .cr-details > .cr-disclosure {
  background: var(--surface); border-color: var(--line); border-radius: 10px;
}
.cr-details > .cr-disclosure > summary > .cr-count,
.cr-details .cr-disclosure-icon,.cr-details > .cr-disclosure > summary::after,
.cr-details > .cr-disclosure[open] > summary,.cr-details .cr-record[open],
.cr-details .cr-record.is-highlighted { background: var(--raised); color: var(--ink); border-color: var(--line); }
.cap-result .cr-record,.cr-details .cr-disclosure > summary::after { border-color: var(--line); color: var(--ink); }
.cap-result .cr-save-action { color: var(--gold); }
.cr-details .cap-network { --map-green: var(--ink); --map-muted: var(--muted); --map-line: #88a293; --map-gold: var(--gold); }
.cr-details .cap-network-center { background: var(--surface); }
.cr-details .cap-network-node,.cr-details .cap-network-orbit > span { background: var(--raised); border-color: var(--line); color: var(--ink); }
.cr-details :is(.cap-network-center > div > span,.cap-network-node-icon) { color: var(--muted); }

.cap-result {color:var(--ink)}
.cap-result .cr-save-action,.cap-result .cr-year,.cap-result .cr-timeline button {border:0}
.cap-result .cr-save-action {border-bottom:1px solid var(--line)}
.cap-result .process-pictogram,.cap-result .cr-year svg {stroke:none}
.cap-result .cr-save-action .icon {transform:rotate(90deg)}
:root:not([data-theme=dark]) .cap-result {--ink:#173e35;--muted:#475f50;--line:#bccabc;--gold:#78602a;--surface:#f4f6ef;--raised:#e3eadb}
@media(max-width:500px) {
  .cr-paper {padding-inline:14px}
  .cr-chart-grid {gap:12px}
  .cr-company-chart {padding-left:12px}
  .cr-editorial-note {grid-template-columns:64px 1fr;gap:8px}
  .cr-fields {grid-template-columns:1fr}
}
.cap-result .cr-save-action svg {width:16px;height:16px}

.cr-paper {container-type:inline-size}
.cr-process-note {
  margin:16px 0 12px;
  padding:12px 15px;
  background:#e8d4a5;
  border:1px solid #c6aa70;
  border-radius:9px;
}
.cr-credit-note {background:#d1e5ec;border-color:#9ebecb}
.cr-neutral-note {background:#e5eadd;border-color:#bac4b4}
.cr-process-note h3 {
  margin:0;
  font-size:19px;
  line-height:1.2;
  letter-spacing:-.025em;
  color:#173e35;
}
.cr-process-note p {margin:4px 0 0;font-size:13px;line-height:1.4;color:#28463f}
.cr-process-link {
  cursor:pointer;
  margin-top:8px;
  min-height:38px;
  padding:7px 12px;
  background:#173e35;
  color:#fff;
  border:0;
  border-radius:6px;
  font:inherit;
  font-size:14px;
  font-weight:700;
}
.cr-process-link:hover {background:#245348}
.cr-process-link:focus-visible {outline:2px solid #173e35;outline-offset:3px}

@container (min-width:440px) {
  .cr-process-note {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px}
  .cr-process-note p {grid-column:1}
  .cr-process-note .cr-process-link {grid-column:2;grid-row:1/3;align-self:center;margin:0}
}
@media(pointer:coarse) {
  .cr-process-link {min-height:44px}
}

.cr-details .cap-network-node.is-highlighted { outline:2px solid var(--gold); outline-offset:-2px; }

cap-balance-card{display:block;margin:16px 0}
cap-balance-card form{padding:16px;border:1px solid var(--control-border);border-radius:12px;background:var(--soft)}
cap-balance-card h3{margin:0 0 12px}
cap-balance-card dl{display:grid;gap:6px;margin:0}
cap-balance-card dl div{display:flex;justify-content:space-between;gap:12px}
cap-balance-card dt{color:var(--secondary)}
cap-balance-card dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
cap-balance-card .purchase-consent{align-items:flex-start;margin:14px 0}
cap-balance-card .purchase-consent input{flex:none;margin-top:2px}
cap-balance-card [data-status]{margin:10px 0;color:var(--secondary)}
cap-balance-card [hidden]{display:none!important}
.purchase-details .payment-options:not([hidden]){margin:12px 0 18px}
.purchase-details .payment-options legend{font-weight:700;margin-bottom:6px}
