/* The investigation and follow-up surfaces share the site's type and palette.
   Lines describe the information routes; colour does not stand in for a grade. */
.cm-case-workspace{--cw-ink:#2d2334;--cw-purple:#51365f;--cw-line:#cfc5d3;--cw-paper:#f5f2ed;color:var(--cw-ink);min-width:0}
.cm-case-workspace p,.cm-case-workspace li,.cm-case-workspace label{font-size:18px;line-height:1.65}
.cm-case-workspace h2{font-size:25px;line-height:1.3;margin:0 0 24px}
.cm-case-workspace h3{font-size:21px;line-height:1.4;margin:0 0 16px}
.cm-case-workspace h4{font-size:19px;line-height:1.4;margin:24px 0 10px}
.cm-case-workspace p{margin:0 0 20px;max-width:70ch}
.cm-case-workspace a,.cm-case-workspace button,.cm-case-workspace textarea,.cm-case-workspace summary{font:inherit}
.cm-case-workspace a{overflow-wrap:anywhere}
.cm-case-workspace textarea{display:block;box-sizing:border-box;width:100%;min-height:118px;margin:10px 0 12px;padding:14px 16px;border:1px solid #9c8ca6;border-radius:5px;background:#fff;color:var(--cw-ink);font-size:18px;line-height:1.65;resize:vertical}
.cm-case-workspace textarea:focus,.cm-case-workspace input:focus-visible,.cm-case-workspace a:focus-visible,.cm-case-workspace button:focus-visible,.cm-case-workspace summary:focus-visible{outline:3px solid #805a96;outline-offset:3px}
.cm-case-workspace .cw-field-help,.cm-case-workspace .cw-reference-note,.cm-case-workspace #case-decision-save-status{font-size:16px;line-height:1.6;color:#625769}
.cm-case-workspace .cw-task-context{font-size:17px;line-height:1.5;font-weight:600;color:var(--cw-purple);margin:0 0 10px}
.cm-case-workspace .cw-saved-text{white-space:pre-wrap;overflow-wrap:anywhere}
.cm-case-workspace .btn{white-space:normal;text-align:left;min-height:44px;line-height:1.45}
.cw-investigation-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(245px,.85fr);gap:42px;align-items:start;margin:32px 0}
.cw-investigation-map{min-width:0}
.cw-investigation-start{max-width:780px;margin:30px 0}
.cw-investigation-start>.cw-investigation-map{position:static;margin:28px 0}
.cw-investigation-map h2{font-size:21px;margin-bottom:20px}
.cw-map-root{position:relative;background:#ece5ef;border:1px solid var(--cw-line);padding:13px 16px;font-weight:650;margin:0!important}
.cw-map-branches{position:relative;list-style:none!important;margin:0 0 0 18px!important;padding:12px 0 0 19px!important}
.cw-map-branches li{position:relative;margin:0!important;padding:0 0 10px!important;list-style:none!important}
.cw-map-branches li:before{content:"";position:absolute;left:-19px;top:26px;width:19px;height:1px;background:var(--cw-line)}
.cw-map-branches li:last-child{padding-bottom:0!important}
.cw-map-branches a{display:block;position:relative;background:#fff;border:1px solid var(--cw-line);border-radius:4px;text-decoration:none!important;padding:12px 14px;color:var(--cw-ink);min-height:52px;box-sizing:border-box}
.cw-map-branches a:hover{border-color:var(--cw-purple);background:#f5f0f7}
.cw-map-branches .is-current a{background:#eee6f2;border:2px solid var(--cw-purple);padding:11px 13px}
.cw-map-branches a strong{display:block;font-weight:600;font-size:17px;line-height:1.4}
.cw-map-branches a span{display:block;font-size:16px;line-height:1.5;margin-top:4px;color:#665b6c}
.cw-unavailable-requests{border-top:1px solid var(--cw-line);margin-top:24px;padding-top:16px}
.cw-unavailable-requests summary{font-size:17px;font-weight:600;line-height:1.5;padding:5px 0;cursor:pointer}
.cw-unavailable-requests>p{font-size:16px;margin:14px 0 0}
.cw-unavailable-requests .cw-map-branches{margin-left:0!important}
.cw-investigation-main{min-width:0}
.cw-exchange{background:#fff;border:1px solid var(--cw-line);border-top:4px solid var(--cw-purple);padding:28px 30px}
.cw-exchange h2{font-size:28px;margin-bottom:20px}
.cw-exchange label{display:block;font-weight:600;margin-top:24px}
.cw-exchange #case-request-submit{margin-top:8px}
.cw-request-reason{padding:0 0 6px;margin-bottom:16px;border-bottom:1px solid var(--cw-line)}
.cw-request-reason h3{font-size:18px;margin-bottom:8px}
.cw-client-response h3{margin-top:20px}
.cw-client-response .btn{margin-top:6px}
.cw-no-data{background:#f7f2e9;padding:2px 18px 10px;border-left:3px solid #a58a5b}
.cw-investigation-notebook{padding-top:32px}
.cw-investigation-notebook h2{font-size:22px;margin-bottom:18px}
.cm-case-workspace details{border-top:1px solid var(--cw-line);padding:14px 0;margin:0}
.cm-case-workspace details summary{font-size:18px;line-height:1.5;cursor:pointer;font-weight:600;min-height:32px;padding:3px 0}
.cm-case-workspace details[open]>summary{margin-bottom:16px}
.cw-investigation-notebook ol{padding-left:26px;margin:0}
.cw-investigation-notebook li{margin-bottom:20px}
.cw-investigation-notebook li p{font-size:17px;margin:8px 0}
.cw-take-stock{border-top:1px solid var(--cw-line);padding-top:18px;margin-top:4px;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.cw-take-stock p{flex-basis:100%;margin:0}
.cw-take-stock a{font-size:17px}
.solo-navigation .cw-investigation-map{margin-top:8px}
.solo-navigation .cw-investigation-map h2{font-size:20px}
.solo-navigation .cw-map-root{font-size:17px}
.solo-navigation .cw-map-branches{margin-left:10px!important;padding-left:14px!important}
.solo-navigation .cw-map-branches li:before{left:-14px;width:14px}
.solo-navigation .cw-map-branches li:last-child:after{left:-14px}
.solo-navigation .cw-map-branches a strong{font-size:16px}
.solo-navigation .cw-map-branches a span{font-size:15px}
.solo-navigation .cw-unavailable-requests{display:none}
.cw-decision{margin:30px 0;background:#fff;border:1px solid var(--cw-line);border-top:4px solid var(--cw-purple);padding:28px 30px}
.cw-decision h3{font-size:25px;line-height:1.35;max-width:36ch}
.cw-decision .cw-checkpoint-context{font-size:17px;color:#5c5063;margin-bottom:24px}
.cw-decision fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}
.cw-decision legend{font-size:19px;line-height:1.45;font-weight:600;margin-bottom:14px;padding:0}
.cw-direction-options{display:grid;gap:10px}
.cw-direction-option{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid var(--cw-line);border-radius:4px;cursor:pointer;font-weight:400!important;line-height:1.55!important}
.cw-direction-option:has(input:checked){border:2px solid var(--cw-purple);padding:13px 15px;background:#f2ecf5}
.cw-direction-option input{width:18px;height:18px;margin:6px 0 0;flex:0 0 18px;accent-color:var(--cw-purple)}
.cw-decision label[for=case-decision-reason]{display:block;font-weight:600}
.cw-decision-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 12px}
.cw-decision-actions .btn:disabled{background:#e9e5eb!important;border-color:#cfc5d3!important;color:#766c7a!important;opacity:1!important}
.cw-decision-feedback{background:#f2edf5;border-left:3px solid var(--cw-purple);padding:1px 22px 22px;margin-top:26px}
.cw-decision-feedback h4{margin-top:20px}
.cw-feedback-actions{display:flex;flex-wrap:wrap;gap:16px 20px;align-items:center;margin-top:24px}
.cw-feedback-actions p{font-size:17px;margin:0;flex-basis:100%}
.cw-original-decision{margin-top:24px!important}
.cw-original-decision p{font-size:17px}
.cw-decision-history{margin:32px 0}
.cw-decision-history h3{font-size:22px}
.cw-decision-history summary{font-size:18px}
.solo-evidence-toggle{border:1px solid var(--cw-line,#cfc5d3);background:#fff;margin:24px 0;padding:16px 20px}
.solo-evidence-toggle>summary{font-size:18px;line-height:1.5;font-weight:600;cursor:pointer;min-height:36px}
.solo-evidence-toggle[open]>summary{margin-bottom:18px}
.solo-evidence-toggle .solo-exhibits{margin:0}
.solo-question:has(.cw-decision) .solo-worked{border-top:1px solid #d5cbd9;padding-top:24px;margin-top:28px}
@media(min-width:1100px){.cw-investigation-map{position:sticky;top:24px}}
@media(max-width:900px){.cw-investigation-layout{grid-template-columns:minmax(0,1fr);gap:28px}.cw-investigation-map{position:static}}
@media(max-width:600px){.cm-case-workspace p,.cm-case-workspace li,.cm-case-workspace label{font-size:18px}.cw-investigation-layout{margin:24px 0;gap:24px}.cw-investigation-map .cw-map-branches{margin-left:12px!important;padding-left:18px!important}.cw-investigation-map .cw-map-branches li:before{left:-18px;width:18px}.cw-investigation-map .cw-map-branches li:last-child:after{display:block;left:-18px}.cw-investigation-map .cw-map-branches a strong{font-size:17px}.cw-exchange,.cw-decision{padding:22px 20px}.cw-exchange h2{font-size:25px}.cw-decision h3{font-size:23px}.cw-decision-actions{display:grid;grid-template-columns:1fr}.cw-decision-actions .btn{width:100%;box-sizing:border-box}.cw-direction-option{padding:13px 12px;gap:10px}.cw-direction-option:has(input:checked){padding:12px 11px}.cw-decision-feedback{padding-left:16px;padding-right:16px}.cw-feedback-actions{align-items:stretch}.cw-feedback-actions .btn{width:100%;box-sizing:border-box}.solo-evidence-toggle{padding:14px}.cw-client-response .btn{width:100%;box-sizing:border-box}.solo-navigation .cw-investigation-map{margin-top:16px}}

/* Put the active question before the reference navigation in the document. */
.solo-layout>.solo-main{grid-column:2;grid-row:1}
.solo-layout>.solo-navigation{grid-column:1;grid-row:1}
.cw-map-return{display:inline-block;margin-top:18px;font-size:17px;line-height:1.5}
@media(max-width:760px){.solo-layout{display:grid;grid-template-columns:minmax(0,1fr)}.solo-layout>.solo-main{grid-column:1;grid-row:1}.solo-layout>.solo-navigation{grid-column:1;grid-row:2;position:static}.solo-navigation>.cm-case-workspace{grid-column:1/-1}.solo-navigation .cw-map-branches{display:grid;grid-template-columns:1fr}.solo-pagination .btn{max-width:100%}}

/* One continuous trunk joins every route; variable-height labels do not alter
   the junction position or create gaps between separate grid columns. */
.cm-case-workspace .cw-map-branches{display:block!important}
.cm-case-workspace .cw-map-branches:before{display:none}
.cm-case-workspace .cw-map-branches li{padding-bottom:10px!important}
.cm-case-workspace .cw-map-branches li:after{content:"";position:absolute;left:-19px;top:0;bottom:0;width:1px;background:var(--cw-line)}
.cm-case-workspace .cw-map-branches li:first-child:after{top:-12px}
.cm-case-workspace .cw-map-branches li:last-child{padding-bottom:0!important}
.cm-case-workspace .cw-map-branches li:last-child:after{display:block;top:0;bottom:auto;height:26px;background:var(--cw-line)}
.cm-case-workspace .cw-map-branches li:first-child:last-child:after{top:-12px;height:38px}
.solo-navigation .cm-case-workspace .cw-map-branches li:after{left:-14px}
@media(max-width:600px){.cm-case-workspace .cw-map-branches li:after,.cm-case-workspace .cw-map-branches li:last-child:after{left:-18px}.solo-navigation .cm-case-workspace .cw-map-branches li:before{left:-18px;width:18px}.solo-navigation .cm-case-workspace .cw-map-branches li:after{left:-18px}}

.cw-saved-direction{padding-bottom:4px}
.cw-saved-direction h4{font-size:19px;margin:0 0 10px}
.cw-revise-direction{margin-top:24px!important}
.cm-case-workspace .cw-revision-log{margin-top:18px}
.cm-case-workspace .cw-revision-log ol{padding-left:24px;margin:0}
.cm-case-workspace .cw-revision-log li{margin-bottom:24px}
.cm-case-workspace .cw-revision-log time{font-size:16px;line-height:1.5;color:#625769}

.solo-case-title .solo-mode,.solo-question .solo-current-step{font-size:17px;line-height:1.5;letter-spacing:0;text-transform:none;color:#625769;margin:0 0 10px}

.solo-navigation .cw-investigation-map{position:static!important}

@media(max-width:600px){.solo-main .cw-decision{padding:22px 0;border-left:0;border-right:0}.solo-main .cw-decision-feedback{padding-left:14px;padding-right:14px}.solo-main .cw-direction-option{padding:13px 12px}.solo-main .cw-direction-option:has(input:checked){padding:12px 11px}}
