/* Contact colours are retained from the published edition. */
body.pn-home .pn-contact{background:#0b4859!important;color:#fff!important}
body.pn-home .pn-contact:before{display:none!important}
body.pn-home .pn-contact :is(h2,h3,p,a,small,.pn-kicker,.pn-caption),body.pn-home .pn-projects :is(h2,h3,p,a,figcaption,.pn-kicker,.pn-caption){color:#fff!important;opacity:1!important}
body.pn-home .pn-contact .pn-button-primary{color:#173f49!important;background:#e4b16d!important}
body.pn-home .pn-contact-profile{border-left:1px solid #81a6b1;padding-left:30px}
body.pn-home .pn-contact-profile img{background:#fff}

/* Live HTML supplies the text and links; local inline Lucide SVGs are decorative. */
.cg-explainer{--cg-ink:#173f49;--cg-line:#b8cfd3;--cg-flow:#176a7c;--cg-active:#a05b27;margin-top:26px;color:var(--cg-ink);font-family:Outfit,system-ui,sans-serif}
.cg-explainer [hidden]{display:none!important}
.cg-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #cddedf;padding-bottom:18px;margin-bottom:24px}
body:is(.pn-home,.cg-shared-page) .cg-tabs button,.cg-play-buttons button{min-height:46px;padding:11px 17px;border:1px solid #b9ced2;border-radius:3px;background:#fff;color:#173f49;font:500 17px/1.4 Outfit,system-ui,sans-serif}
body:is(.pn-home,.cg-shared-page) .cg-tabs button[aria-selected=true]{background:#155565;color:#fff;border-color:#155565}
.cg-explainer :is(a,button):focus-visible{outline:3px solid #99551f;outline-offset:4px}
.cg-panel{margin:0}.cg-panel+.cg-panel{margin-top:35px}.cg-ready .cg-panel+.cg-panel{margin-top:0}
body:is(.pn-home,.cg-shared-page) .cg-panel-heading h3{font-size:27px!important;line-height:1.2!important;color:#173f49!important;margin:0 0 10px}
body:is(.pn-home,.cg-shared-page) .cg-panel-heading>p{font-size:18px!important;line-height:1.55!important;color:#49616a!important;margin:0;max-width:74ch}
.cg-canvas{position:relative;isolation:isolate;margin-top:26px;padding:12px 0 14px}
.cg-connections{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;pointer-events:none}
.cg-canvas>*:not(.cg-connections){position:relative;z-index:1;min-width:0}
.cg-edge{fill:none;stroke:#9dbcc3;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.cg-edge.is-current,.cg-edge.is-complete{stroke:#176a7c;stroke-width:1.8}.cg-edge.cg-feedback{stroke-dasharray:5 6}
.cg-signal{fill:#a05b27;stroke:#fff;stroke-width:1.4}
.cg-measure{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.05fr) minmax(0,.68fr) minmax(0,.92fr);column-gap:32px;row-gap:19px;align-items:center}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-stage-heading{font-size:17px!important;line-height:1.4!important;font-weight:500;color:#48646c!important;margin:0;align-self:start;padding-bottom:10px;border-bottom:1px solid #c1d7da;background:#fff}
.cg-stage-measure{grid-column:1;grid-row:1}.cg-stage-link{grid-column:2;grid-row:1}.cg-stage-quality{grid-column:3;grid-row:1}.cg-stage-analysis{grid-column:4;grid-row:1}
.cg-measurements{grid-column:1;grid-row:2;display:grid;gap:20px}
.cg-matching{grid-column:2;grid-row:2;align-self:stretch;display:grid;grid-template-rows:1fr 1fr;align-items:center;gap:20px}
.cg-measure>.cg-quality{grid-column:3;grid-row:2}.cg-measure>.cg-evidence{grid-column:4;grid-row:2}
.cg-source-group{background:#edf4f3;padding:13px 15px 1px;border-radius:4px;min-width:0}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-column-label{font-size:16px!important;font-weight:500;line-height:1.4!important;color:#48646c!important;margin:0 0 9px}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:10px;min-height:110px;padding:19px 18px;border:1px solid #b8cfd3;border-radius:4px;background:#fff;color:#173f49!important;text-decoration:none!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node strong{font-size:19px!important;line-height:1.3!important;font-weight:500;color:#173f49!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node>span{font-size:16px!important;line-height:1.5!important;color:#405f68!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer a.cg-node:hover{border-color:#176a7c;box-shadow:inset 3px 0 #176a7c}
body:is(.pn-home,.cg-shared-page) .cg-explainer a.cg-source{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:center;min-height:88px;border:0;border-top:1px solid #c7dcdc;border-radius:0;background:transparent;padding:16px 0}
body:is(.pn-home,.cg-shared-page) .cg-explainer a.cg-source:hover{box-shadow:inset 3px 0 #176a7c;background:#e0eeec}
.cg-icon{display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0;color:#155565}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node .cg-source-text{display:grid;gap:5px;font-size:16px!important;line-height:1.45!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-source strong{font-size:18px!important;line-height:1.3!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-source-text>span{display:block;font-size:16px!important;line-height:1.45!important;color:#405f68}
.cg-node.is-current{border-color:#a05b27!important;box-shadow:inset 3px 0 #a05b27}
.cg-node.is-complete{border-color:#568e99!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-source.is-current{box-shadow:inset 3px 0 #a05b27;background:#e4eeea}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-quality{background:#fbf2e5;border-color:#cda66c;padding:22px 14px;min-height:190px}
.cg-quality ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-quality li{font-size:16px!important;line-height:1.45!important;color:#405f68;margin:0;overflow-wrap:normal}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-evidence{background:#155565;border-color:#155565;color:#fff!important;min-height:290px;gap:18px;padding:24px 20px}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-evidence :is(strong,span,svg){color:#fff!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node .cg-evidence-outcome{border-top:1px solid #709ba4;padding-top:17px}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node .cg-detail-label{font-size:15px!important;text-decoration:underline;text-underline-offset:4px}
.cg-evidence:focus-visible{outline-color:#99551f}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-evidence.is-current{border-color:#e4b16d!important;box-shadow:inset 3px 0 #e4b16d}

/* The existing study-design explanation remains the second tab. */
.cg-evaluate{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:66px 58px;align-items:stretch;padding:24px 14px 38px}
.cg-evaluate>.cg-node{min-height:180px!important}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-followup{grid-column:1/-1;width:min(580px,80%);justify-self:center;background:#edf4f3;min-height:120px!important;text-align:center}
body:is(.pn-home,.cg-shared-page) .cg-context{font-size:16px!important;line-height:1.55!important;color:#49616a!important;margin:18px 0 0;max-width:100ch}
.cg-context a{min-height:40px;display:inline-block;align-content:center;font-weight:500}
.cg-playback{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0 16px;margin-top:24px;border-top:1px solid #cddedf}
.cg-play-buttons{display:flex;gap:8px;flex-wrap:wrap}.cg-play-buttons [data-graph-play]{background:#155565;color:#fff;border-color:#155565}
body:is(.pn-home,.cg-shared-page) .cg-phase{font-size:16px!important;line-height:1.4!important;color:#49616a!important;margin:0;text-align:right;max-width:300px}
body:is(.pn-home,.cg-shared-page) .cg-narration{font-size:18px!important;line-height:1.55!important;color:#173f49!important;margin:0;background:#edf4f3;padding:19px 22px;min-height:94px}
@media(max-width:1099px){
  .cg-measure{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 24px}
  .cg-stage-measure,.cg-stage-link,.cg-stage-quality,.cg-stage-analysis{grid-column:1/-1}
  .cg-stage-measure{grid-row:1}.cg-stage-link{grid-row:3}.cg-stage-quality{grid-row:5}.cg-stage-analysis{grid-row:7}
  .cg-measurements{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .cg-matching{grid-column:1/-1;grid-row:4;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:24px}
  .cg-measure>.cg-quality{grid-column:1/-1;grid-row:6;width:min(390px,100%);justify-self:center;min-height:0;align-items:center;text-align:center}
  .cg-quality ul{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 19px}
  .cg-measure>.cg-evidence{grid-column:1/-1;grid-row:8;width:min(650px,100%);justify-self:center;min-height:0}
  .cg-evaluate{grid-template-columns:1fr;gap:35px;padding:14px 20px 35px}
  .cg-evaluate>.cg-node{min-height:120px!important}.cg-evaluate>.cg-followup{grid-column:auto;width:100%}
}
@media(max-width:599px){
  body:is(.pn-home,.cg-shared-page) .cg-panel-heading h3{font-size:25px!important}
  .cg-measure{grid-template-columns:minmax(0,1fr);row-gap:24px}
  .cg-measurements,.cg-matching{grid-template-columns:minmax(0,1fr);gap:20px}
  body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node{padding:18px 16px;min-height:0}
  body:is(.pn-home,.cg-shared-page) .cg-explainer a.cg-source{padding:17px 0;min-height:88px}
  .cg-source-group{padding-inline:14px}
  .cg-measure>.cg-quality{padding:22px 16px!important}
  .cg-measure>.cg-evidence{padding:24px 21px!important}
  .cg-tabs{gap:10px}.cg-tabs button{flex:1;min-width:135px}
  .cg-playback{display:block}.cg-phase{max-width:none!important;text-align:left!important;margin-top:14px!important}
  .cg-narration{min-height:155px!important;padding:18px!important}
  .pn-home .pn-contact-profile{padding-left:0!important;border-left:0!important}
}
@media(max-width:360px){.cg-tabs button{min-width:0}.cg-play-buttons button{padding-inline:13px}.cg-source-group{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.cg-explainer *{animation:none!important;transition:none!important}.cg-signal{display:none!important}}
@media print{.cg-tabs,.cg-playback{display:none!important}.cg-panel[hidden]{display:block!important;margin-top:30px}.cg-connections{display:none}.cg-node,.cg-source-group{break-inside:avoid}.cg-measure{display:block}.cg-matching{display:block}.cg-measure>*{margin-bottom:18px}}

/* Optional data architecture: a dashed branch, with the direct route retained. */
.cg-analysis-group{grid-column:3/5;grid-row:2;align-self:stretch;display:grid;grid-template-columns:minmax(0,.68fr) minmax(0,.92fr);gap:72px 32px;align-content:center;align-items:center}
.cg-analysis-group>.cg-quality{grid-column:1;grid-row:1}
.cg-analysis-group>.cg-evidence{grid-column:2;grid-row:1}
.cg-analysis-group>.cg-optional{grid-column:1/-1;grid-row:2}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node.cg-optional{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px 15px;min-height:0;padding:19px 20px;background:#edf4f3;border:1.5px dashed #51818a}
.cg-optional>.cg-icon{grid-column:1;grid-row:1/3;align-self:center}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node .cg-optional-label{grid-column:2;font-size:16px!important;line-height:1.4!important;font-weight:500;color:#48646c!important}
.cg-optional>strong{grid-column:2}.cg-optional>.cg-optional-copy{grid-column:1/-1}
body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node .cg-optional-copy{display:grid;gap:7px;font-size:16px!important;line-height:1.5!important}
.cg-optional-copy>.cg-detail-label{text-decoration:underline;text-underline-offset:4px}
.cg-analysis-heading{display:none}
.cg-edge.cg-optional-edge{stroke-dasharray:5 5}
@media(max-width:1099px){
 .cg-measure>.cg-stage-analysis{display:none}
 .cg-analysis-group{grid-column:1/-1;grid-row:6;grid-template-columns:minmax(0,1fr);gap:46px;align-content:start;padding-left:22px}
 .cg-analysis-group>.cg-quality{grid-column:1;grid-row:1;width:min(390px,100%);justify-self:center;align-items:center;text-align:center;min-height:0}
 .cg-analysis-group>.cg-optional{grid-column:1;grid-row:2;width:min(440px,100%);justify-self:center}
 .cg-analysis-group>.cg-analysis-heading{grid-column:1;grid-row:3;display:block;margin-bottom:-20px!important}
 .cg-analysis-group>.cg-evidence{grid-column:1;grid-row:4;width:min(650px,100%);justify-self:center;min-height:0}
}
@media(max-width:599px){
 body:is(.pn-home,.cg-shared-page) .cg-explainer .cg-node.cg-optional{padding:18px 16px;column-gap:12px}
 .cg-analysis-group{padding-left:20px;row-gap:46px}
}
@media print{.cg-analysis-group{display:block;padding:0}.cg-analysis-group>.cg-node{margin-bottom:20px}.cg-analysis-heading{display:block}}

/* Tools and About share the homepage's live-text technical explainer. */
body.cg-shared-page #framework{scroll-margin-top:110px}
body.cg-shared-page .tools-framework{background:#fff}
body.cg-shared-page .tools-framework>.section-heading{margin-bottom:22px}
body.cg-shared-page.about-editorial .ab-framework{display:block;background:#fff}
body.cg-shared-page.about-editorial .ab-framework>.cg-foundation{max-width:880px;margin-bottom:26px}
body.cg-shared-page.about-editorial .ab-definition{background:#fff}
body.cg-shared-page .cg-explainer :is(h3,h4,h5,strong){font-family:Outfit,system-ui,sans-serif!important;letter-spacing:0!important}
body.cg-shared-page .cg-explainer h3{font-weight:500!important}
body.cg-shared-page .cg-explainer .cg-node p{margin:0!important}
body.cg-shared-page .cg-shared-note{font:400 16px/1.6 Outfit,system-ui,sans-serif!important;color:#49616a!important;margin:22px 0 0!important;max-width:96ch}
body.cg-shared-page .cg-shared-note a{color:#155565!important;text-underline-offset:4px}
body.cg-shared-page .cg-explainer .cg-quality ul{list-style:none!important;padding:0!important;margin:0!important}
body.cg-shared-page .cg-explainer .cg-quality li{padding:0!important;margin:0!important}
