/* Question-led workspaces and evidence plots. */
body.spu-experience:has(.insights-workspace) .topbar { min-height:150px; padding:26px 0 22px; }
body.spu-experience:has(.insights-workspace) #page-title { font-size:clamp(30px,3vw,49px); }
body.spu-experience:has(.insights-workspace) .page-eyebrow { margin-bottom:9px; }
body.spu-experience:has(.insights-workspace) .section-index { display:none; }
body.spu-experience:has(.insights-workspace) .filters { margin-bottom:15px; }
.insights-workspace { display:grid; gap:24px; min-width:0; }
.insight-intro { display:flex; align-items:baseline; justify-content:space-between; gap:20px; border-bottom:1px solid #ded5ca; padding-bottom:10px; }
.insight-intro > span, .detail-eyebrow, .next-review > span, .decision-heading > span { font:600 9px Arial,'Helvetica Neue',sans-serif; color:#8a5c54; letter-spacing:.15em; }
.insight-intro p { font:400 18px 'Gotham','Montserrat',Arial,sans-serif; margin:0; color:#746460; }
.insight-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding:0 0 18px; border-bottom:1px solid #ded5ca; }
.insight-metrics article { min-width:0; padding:0 18px 0 0; border-right:1px solid #ded5ca; }
.insight-metrics article:last-child { border:0; }
.insight-metrics article > span { display:block; color:#716568; font-size:10px; }
.insight-metrics strong { display:block; font:500 37px/1.3 'Gotham','Montserrat',Arial,sans-serif; color:#67152f; margin:5px 0; }
.insight-metrics strong small { font-size:19px; }
.insight-metrics p { margin:0; color:#80736f; font-size:10px; line-height:1.6; }
.pulse-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(245px,1fr); gap:22px; align-items:start; }
.pulse-aside { display:grid; gap:20px; }
body.spu-experience .insight-panel.panel { padding:22px; overflow:visible; }
body.spu-experience .insight-panel .panel-header { margin-bottom:16px; }
body.spu-experience .insight-panel .panel-header p { margin:8px 0 0; font:400 11px/1.6 Arial,'Helvetica Neue',sans-serif; color:#776b68; }
body.spu-experience .insight-panel .panel-title { font-size:24px; }
.plot-tools { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding-bottom:18px; }
.plot-tools label { flex:1; display:grid; gap:5px; font-size:9px; text-transform:uppercase; letter-spacing:.06em; color:#806b70; min-width:150px; }
.plot-tools input,.plot-tools select { width:100%; min-height:36px; padding:8px 10px; border:1px solid #dcd1c8; border-radius:5px; background:#fcfaf6; color:#49323b; font:400 11px Arial,'Helvetica Neue',sans-serif; }
.landscape-layout { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:18px; }
.landscape { display:block; width:100%; height:auto; overflow:visible; }
.landscape text { font:11px Arial,'Helvetica Neue',sans-serif; fill:#837673; }
.landscape .axis-caption { font-size:10px; letter-spacing:.1em; fill:#615259; }
.landscape .zone-label { fill:#a65b69; font-size:10px; }
.plot-point { cursor:pointer; }
.plot-point:hover circle,.plot-point:focus circle,.plot-point.selected circle { stroke:#d01030; stroke-width:3px; fill-opacity:.8; }
.plot-point:focus-visible { outline:none; }
.point-detail { padding:18px; border-left:1px solid #e9e1d7; background:#f6f2eb; border-radius:0 6px 6px 0; min-width:0; }
.point-detail h3 { margin:10px 0 3px; color:#791732; font:500 25px 'Gotham','Montserrat',Arial,sans-serif; overflow-wrap:anywhere; }
.point-detail p { margin:6px 0 10px; font-size:10px; line-height:1.7; color:#74656b; }
.detail-block { display:inline-block; font-size:9px; padding:3px 6px; border:1px solid #ded1ca; border-radius:3px; }
.point-detail dl { display:grid; grid-template-columns:1fr auto; gap:8px; margin:17px 0; font-size:10px; }
.point-detail dt { color:#77656c; }.point-detail dd { margin:0; font-weight:600; color:#432c36; }
.detail-caveat { border-top:1px solid #ded1ca; padding-top:10px; }
.point-placeholder { padding-top:35px; }.point-placeholder > span { font:40px 'Gotham','Montserrat',Arial,sans-serif; color:#aa7c49; }
.point-placeholder strong { display:block; font:500 22px/1.2 'Gotham','Montserrat',Arial,sans-serif; margin:10px 0; color:#5d293c; }
.plot-key { display:flex; gap:14px; align-items:center; flex-wrap:wrap; color:#77676d; font-size:9px; line-height:1.6; }
.plot-key i { display:inline-block; width:12px; height:12px; border:1px solid #587163; border-radius:50%; background:#879e8b55; vertical-align:middle; margin-right:5px; }
.chart-footnote { color:#7a6c69; font-size:10px; line-height:1.7; margin:16px 0 0; }
.insight-link { background:transparent; border:0; border-bottom:1px solid #d8b56b; padding:10px 0 4px; color:#7d1938; font-size:11px; cursor:pointer; }
.unplaced { margin-top:16px; padding-top:12px; border-top:1px solid #e6dbd0; color:#7b5861; font-size:11px; }
.unplaced summary { cursor:pointer; }.unplaced-list { max-height:200px; overflow:auto; display:grid; gap:5px; padding-top:12px; }
.unplaced-list button { display:flex; justify-content:space-between; text-align:left; padding:8px; border:1px solid #e3d9cf; background:#fff; border-radius:4px; color:#59323f; cursor:pointer; font-size:11px; }
.unplaced-list span { color:#8b797e; font-size:10px; }
.concern-profile { display:grid; gap:15px; }
.concern-profile > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 12px; }
.concern-profile label { font-size:11px; color:#76656c; }.concern-profile strong { font:500 21px 'Gotham','Montserrat',Arial,sans-serif; color:#4d313d; grid-column:2; grid-row:1 / 3; align-self:center; }
.concern-profile > div > div { height:5px; background:#eee7dd; border-radius:2px; grid-column:1; }
.concern-profile i { height:100%; display:block; border-radius:2px; }
.next-review { background:#61152c; padding:25px; border-radius:8px; color:#fff; }
.next-review > span { color:#dcbca5; }.next-review h2 { font:400 27px/1.2 'Gotham','Montserrat',Arial,sans-serif; margin:16px 0 24px; }
.next-review button { display:flex; justify-content:space-between; gap:15px; color:#f5dfe4; width:100%; text-align:left; font-size:11px; background:none; border:0; border-top:1px solid #ffffff28; padding:12px 0; cursor:pointer; }
.next-review b { color:#d4b266; }
.explorer-tabs { display:flex; align-items:center; gap:8px; border-bottom:1px solid #d9cbbf; padding-bottom:14px; flex-wrap:wrap; }
.explorer-tabs button { padding:10px 23px; background:#eee8df; border:1px solid #e1d6cb; border-radius:6px; color:#74545e; font-size:12px; cursor:pointer; }
.explorer-tabs button[aria-pressed=true] { background:#681830; border-color:#681830; color:#fff; }
.explorer-tabs > span { margin-left:auto; font-size:10px; color:#8b777c; }
.evidence-drawer { border:1px solid #dfd5c9; border-radius:7px; background:#f2ece3; padding:18px 22px; }
.evidence-drawer > summary { cursor:pointer; color:#6e3849; font-size:12px; font-weight:600; }
.evidence-drawer > summary > span { float:right; font-size:10px; font-weight:400; color:#867370; }
.evidence-drawer > div { padding-top:22px; display:grid; gap:20px; }
body.spu-experience .matrix-wrap { max-width:100%; overflow:auto; }
body.spu-experience .cohort-matrix,body.spu-experience .mapping-matrix { min-width:600px; border-collapse:separate; border-spacing:5px; }
body.spu-experience .cohort-matrix th,body.spu-experience .mapping-matrix th { background:transparent; font-size:10px; text-transform:none; letter-spacing:0; font-weight:500; white-space:normal; min-width:95px; }
body.spu-experience .cohort-matrix tbody th,body.spu-experience .mapping-matrix tbody th { width:210px; color:#5c3542; padding:12px 5px; text-align:left; }
body.spu-experience .cohort-matrix td { text-align:center; background:rgba(130,24,58,var(--intensity)); border:0; border-radius:4px; min-width:90px; height:70px; padding:9px; }
.cohort-matrix td span { display:inline-block; background:#fffefaee; border-radius:4px; padding:5px 8px; color:#5a263a; font:500 18px 'Gotham','Montserrat',Arial,sans-serif; }
body.spu-experience td.withheld { background:repeating-linear-gradient(135deg,#f6f3ee,#f6f3ee 4px,#e5ddd2 4px,#e5ddd2 5px); font-size:10px; }
.cohort-matrix td.withheld span { font:400 10px Arial,'Helvetica Neue',sans-serif; color:#756569; }
.matrix-key { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:15px; font-size:10px; color:#7d6870; }
.matrix-key i { display:inline-block; width:75px; height:8px; background:linear-gradient(90deg,#f6edf0,#801a3c); margin:0 8px; }
body.spu-experience .mapping-matrix td { text-align:center; border:0; border-radius:3px; padding:12px; }
body.spu-experience .mapping-matrix td.mapped { background:#edd6db; color:#6c1b35; font-weight:600; }
body.spu-experience .mapping-matrix td.withheld { background:repeating-linear-gradient(135deg,#f6f3ee,#f6f3ee 4px,#e5ddd2 4px,#e5ddd2 5px); font-weight:400; }
body.spu-experience .mapping-matrix td.not-mapped { color:#bbae9e; background:#f5f0e8; font-size:22px; }
.programme-plot { display:grid; gap:0; }
.programme-line { display:grid; grid-template-columns:minmax(140px,1.3fr) minmax(100px,2fr) 95px 130px; gap:25px; align-items:center; border-bottom:1px solid #e8ded3; padding:15px 0; }
.programme-line > div:first-child strong { font:600 12px Arial,'Helvetica Neue',sans-serif; color:#68253b; display:block; }
.programme-line > div:first-child span { font-size:10px; color:#81696d; }
.programme-line > strong { font:500 19px 'Gotham','Montserrat',Arial,sans-serif; color:#4b323b; }
.programme-line small { font-size:9px; color:#89757c; }
.lollipop-track { height:32px; position:relative; display:flex; align-items:center; border-right:1px solid #d6c8be; }
.lollipop-track::before { content:''; height:1px; width:100%; background:#e0d6cb; position:absolute; }
.lollipop-track i { display:block; height:3px; background:#ab6b7c; z-index:1; }
.lollipop-track b { position:absolute; transform:translateX(-50%); width:13px; height:13px; border-radius:50%; border:3px solid #fff; background:#841d3e; box-shadow:0 0 0 1px #841d3e; }
.plot-floor { position:absolute; left:50%; height:24px; border-left:1px dashed #bca89d; }
.unavailable-label { position:relative; background:#fffefa; padding:3px 0; color:#8a787c; font-size:10px; }
.assessment-track { position:relative; height:36px; border-left:1px solid #dacbbf; border-right:1px solid #dacbbf; background:repeating-linear-gradient(90deg,transparent,transparent calc(25% - 1px),#e5dbd1 calc(25% - 1px),#e5dbd1 25%); }
.assessment-track i { position:absolute; width:12px; height:12px; border:2px solid #fff; transform:translateX(-50%); border-radius:50%; }
.assessment-mean { background:#7c2744; top:4px; }.assessment-pass { background:#5c8272; top:21px; }
.assessment-legend { display:flex; gap:20px; margin:12px 0 20px; font-size:11px; color:#79636b; }
.assessment-legend i { width:9px; height:9px; display:inline-block; border-radius:50%; background:#7c2744; margin-right:6px; }.assessment-legend span:last-child i { background:#5c8272; }
.movement-key { display:flex; justify-content:space-between; margin:0 0 10px 220px; color:#8a7778; font-size:10px; }
.movement-row { display:grid; grid-template-columns:195px minmax(0,1fr); gap:25px; align-items:center; margin-bottom:13px; }
.movement-row > strong { font-size:11px; font-weight:500; color:#684553; }
.movement-row small { display:block; font-size:9px; color:#93807d; }
.butterfly { display:grid; grid-template-columns:1fr 1fr; min-height:30px; }
.butterfly > div { position:relative; display:flex; align-items:center; min-height:32px; font-size:10px; }
.improved { justify-content:flex-end; border-right:1px solid #bdafa2; }.declined { justify-content:flex-start; }
.butterfly i { position:absolute; height:22px; background:#8aa18e; }.improved i { right:0; }.declined i { left:0; background:#ba7c8b; }
.butterfly b,.butterfly span { position:relative; background:#fffefade; padding:2px 6px; z-index:1; color:#644452; margin:0 5px; font-weight:500; }
.decision-heading { padding:25px 30px; border:1px solid #e4d5c5; background:#efe7da; border-radius:8px; }
.decision-heading h2 { margin:10px 0; font:400 35px 'Gotham','Montserrat',Arial,sans-serif; color:#592d3e; }
.decision-heading p { font-size:11px; color:#846d70; }
.insight-empty { min-height:180px; display:grid; place-content:center; text-align:center; color:#8c7b79; padding:25px; }.insight-empty span { font-size:40px; color:#b6a397; }.insight-empty p { max-width:340px; font-size:12px; line-height:1.7; }
@media(max-width:1450px) { .pulse-layout { grid-template-columns:1fr; }.pulse-aside { grid-template-columns:1fr 1fr; } }
@media(max-width:900px) { .landscape-layout { grid-template-columns:1fr; }.point-detail { border:1px solid #e6dcd0; border-radius:5px; }.point-placeholder { padding:0; }.point-placeholder > span { display:none; }.point-detail dl { grid-template-columns:1fr auto 1fr auto; }.programme-line { grid-template-columns:130px minmax(80px,1fr) 70px; gap:12px; }.programme-line small { display:none; } }
@media(max-width:600px) { .insight-metrics { grid-template-columns:1fr 1fr; gap:16px; }.insight-metrics article { border:0; }.pulse-aside { grid-template-columns:1fr; }.insight-intro p,.explorer-tabs > span { display:none; }.insight-metrics strong { font-size:31px; }body.spu-experience .insight-panel.panel { padding:15px; }.point-detail dl { grid-template-columns:1fr auto; }.evidence-drawer > summary > span { display:block; float:none; margin-top:7px; }.programme-line { grid-template-columns:100px minmax(60px,1fr) 55px; gap:10px; }.programme-line > strong { font-size:13px; }.movement-row { grid-template-columns:100px minmax(0,1fr); gap:10px; }.movement-key { margin-left:110px; }.butterfly span { font-size:8px; } }
@media print { .plot-tools,.explorer-tabs,.next-review { display:none; }.pulse-layout,.landscape-layout { display:block; }.insight-panel { break-inside:avoid; }.cohort-matrix td { print-color-adjust:exact; } }
.plot-switch { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:18px; }
.plot-switch button { border:1px solid #d9c8bf; border-radius:4px; padding:7px 12px; background:#fffefa; color:#754454; cursor:pointer; font-size:11px; }
.plot-switch button[aria-pressed=true] { background:#6b2039; color:white; border-color:#6b2039; }
.plot-switch > span { font-size:10px; color:#82706f; margin-left:auto; }
.module-ranking { max-height:385px; overflow:auto; padding-right:10px; margin-bottom:15px; }
.rank-row { display:grid; grid-template-columns:105px minmax(0,1fr) 75px; gap:15px; align-items:center; width:100%; text-align:left; padding:11px 0; background:none; border:0; border-bottom:1px solid #e8ded3; cursor:pointer; color:#5c3140; }
.rank-row:hover,.rank-row.selected { background:#f3e8e8; }.rank-row > span:first-child { font-size:11px; font-weight:600; }.rank-row small { display:block; font-size:9px; font-weight:400; color:#8c7776; margin-top:3px; }
.rank-track { position:relative; display:block; height:21px; border-right:1px solid #d5c8be; background:linear-gradient(90deg,#f5e4e8 50%,#eeeee5 50%); }
.rank-track i { display:block; height:6px; margin-top:7px; background:#9a4c63; }.rank-track em { font:9px Arial,'Helvetica Neue',sans-serif; background:#fff; color:#8a7778; }
.rank-row strong { font:500 13px Arial,'Helvetica Neue',sans-serif; }.rank-scale { display:grid; grid-template-columns:105px 1fr 1fr 1fr; padding-right:90px; font-size:9px; color:#8c7776; margin-bottom:10px; }.rank-scale span:nth-child(3) { text-align:center; }.rank-scale span:last-child { text-align:right; }
@media(max-width:600px) { .rank-row { grid-template-columns:75px minmax(0,1fr) 62px; gap:7px; }.rank-scale { grid-template-columns:75px 1fr 1fr 1fr; padding-right:69px; }.rank-row strong { font-size:10px; }.plot-switch > span { width:100%; margin:0; } }
/* Plot cells must keep their encoded colour when generic table striping applies. */
body.spu-experience .insight-panel .matrix-wrap { max-height:none; }
body.spu-experience .insight-panel .matrix-wrap thead th { position:static; background:#fffefa; }
body.spu-experience .insight-panel .cohort-matrix tbody tr td { background:rgba(130,24,58,var(--intensity)); }
body.spu-experience .insight-panel .mapping-matrix tbody tr td.mapped { background:#edd6db; }
body.spu-experience .insight-panel .mapping-matrix tbody tr td.not-mapped { background:#f5f0e8; }
body.spu-experience .insight-panel .matrix-wrap tbody tr td.withheld { background:repeating-linear-gradient(135deg,#f6f3ee,#f6f3ee 4px,#e5ddd2 4px,#e5ddd2 5px); }
body.spu-experience .programme-line > strong { overflow-wrap:anywhere; }
.comparison-axis { padding:0 0 5px; border:0; }
.comparison-axis .comparison-scale { display:flex; justify-content:space-between; font:9px Arial,'Helvetica Neue',sans-serif; color:#8b7776; }
