/* Evidence sections: each with its own layout, alternating base / dark / tint / base / tint.
   What we look for: the four tests as one typographic row, split by hairlines.
   An average can hide the constraint: a capability profile where the average looks fine and one
   bar, in amber, caps the service; the four principles beside it.
   Six answers: a one-page service report, question on the left, answer on the right.
   Who it's for: two panels, delivering and approving, joined by one reference point.
   The research: four figures in a square, the peer-reviewed finding beside them. */

.page-evidence{--ev-accent:#1b4585}
html[data-theme=dark] .page-evidence,.page-evidence .chapter-dark{--ev-accent:#9fc0f5}
.ev-tint{background:var(--surface2)}
.page-evidence main h3{margin:0;font:700 var(--t-h3,20px)/1.3 'Manrope',sans-serif;letter-spacing:-.02em;color:var(--text)}
.page-evidence main :is(.ev-tests,.ev-principles,.ev-side) p{margin:10px 0 0;font-size:var(--t-card,17px);line-height:1.65;color:var(--muted)}

/* ---- What we look for ---- */
.ev-tests{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.ev-tests li{padding:34px 30px 6px}
.ev-tests li:first-child{padding-left:0}
.ev-tests li+li{border-left:1px solid var(--line)}
.ev-tests svg{width:34px;height:34px;fill:none;stroke:var(--ev-accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.page-evidence .ev-tests h3{margin-top:22px;font-size:var(--t-h3l,26px);letter-spacing:-.035em}

/* ---- An average can hide the constraint ---- */
.ev-avg-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(36px,5vw,80px);align-items:center}
.ev-profile{margin:0;padding:30px 30px 24px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.03)}
.ev-plot{position:relative;height:250px;margin:0 0 0 34px;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
.ev-bars{position:absolute;inset:0 0 0 0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;align-items:end;margin:0;padding:0 12px;list-style:none}
.ev-bars li{position:relative;height:calc(var(--v) / 4 * 100%);border-radius:6px 6px 0 0;background:#4f86d9}
.ev-bars li.is-low{background:#eab960}
.ev-bars li span{position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%);white-space:nowrap;font-size:13px;color:var(--muted)}
.ev-bars li.is-low span{color:#eab960;font-weight:700}
.ev-axis{position:absolute;left:-34px;top:0;bottom:0;display:flex;flex-direction:column-reverse;justify-content:space-between;margin:0;padding:0;list-style:none;font-size:13px;color:var(--muted);transform:translateY(-.5em)}
.ev-axis li:first-child{transform:translateY(.5em)}
.ev-avg-line{position:absolute;left:0;right:0;bottom:calc(var(--avg) / 4 * 100%);border-top:2px dashed #f7faff}
.ev-avg-line span{position:absolute;right:0;bottom:6px;padding:3px 9px;border-radius:6px;background:#07172c;font:700 13px/1.3 'DM Sans',sans-serif;color:#f7faff}
.ev-callout{position:absolute;left:calc(var(--x) * 1%);bottom:calc(var(--v) / 4 * 100% + 12px);transform:translateX(-50%);padding:5px 10px;border-radius:6px;
  background:#eab960;font:700 13px/1.3 'DM Sans',sans-serif;color:#1c1405;white-space:nowrap}
.ev-profile figcaption{margin-top:44px;font-size:13px;line-height:1.5;color:var(--muted)}
.ev-principles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 34px;margin:0;padding:0;list-style:none}
.ev-principles li{padding-top:18px;border-top:2px solid var(--line)}
.ev-principles li:last-child{border-top-color:#eab960}

/* ---- Six answers: the service report ---- */
.ev-report-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(40px,6vw,96px);align-items:start}
.ev-report-grid .section-intro{display:block;margin:0;position:sticky;top:120px}
.ev-report-grid .intro-side{margin:24px 0 0}
.ev-sheet{border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 24px 60px rgba(27,69,133,.10);overflow:hidden}
html[data-theme=dark] .ev-sheet{box-shadow:none}
.ev-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 30px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#1b4585,#24529a)}
.ev-sheet-head p{margin:0;font:700 var(--t-h3,20px)/1.3 'Manrope',sans-serif;letter-spacing:-.02em;color:#fff}
.ev-sheet-head span{padding:4px 11px;border-radius:999px;background:rgba(255,255,255,.14);font-size:13px;color:#e3ecfa}
.ev-sheet dl{margin:0;padding:6px 30px 12px}
.ev-sheet dl>div{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(0,1.25fr);gap:6px 28px;padding:20px 0}
.ev-sheet dl>div+div{border-top:1px solid var(--line)}
.ev-sheet dt{font:700 var(--t-card,17px)/1.45 'Manrope',sans-serif;letter-spacing:-.01em;color:var(--text)}
.ev-sheet dd{margin:0;font-size:var(--t-card,17px);line-height:1.6;color:var(--muted)}

/* ---- Who it's for: delivering and approving ---- */
.ev-split{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ev-side{padding:clamp(28px,3.4vw,46px);border-radius:20px}
.ev-side-deliver{border:1px solid var(--line);background:var(--surface)}
.ev-split>.ev-side-deliver{padding-right:86px}
.ev-split>.ev-side-approve{padding-left:86px} /* clear of the joining badge */
.ev-side-approve{background:linear-gradient(140deg,#1b4585,#122f5e);color:#fff}
html[data-theme=dark] .ev-side-approve{background:linear-gradient(140deg,#1d4a8f,#12305f);box-shadow:inset 0 0 0 1px rgba(159,192,245,.25)}
.ev-side-label{margin:0 0 22px!important;font:700 15px/1.4 'DM Sans',sans-serif!important;color:var(--ev-accent)!important}
.ev-side-approve .ev-side-label{color:#f1c27a!important}
.ev-side>div+div{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.ev-side-approve>div+div{border-top-color:rgba(255,255,255,.18)}
.page-evidence .ev-side-approve h3{color:#fff}
.page-evidence .ev-side-approve p:not(.ev-side-label){color:#d6e2f5}
.page-evidence .ev-side-deliver h3{font-size:var(--t-h3l,26px);letter-spacing:-.035em}
.ev-join{position:absolute;left:50%;top:50%;z-index:1;transform:translate(-50%,-50%);display:grid;place-items:center;width:118px;height:118px;border-radius:50%;
  background:#faa61a;box-shadow:0 0 0 8px var(--bg);text-align:center;font:700 14px/1.25 'Manrope',sans-serif;color:#1c1405;padding:16px;box-sizing:border-box}

/* ---- The research ---- */
.ev-research-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(36px,5vw,80px);align-items:start}
.ev-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0;list-style:none}
.ev-stats li{padding:30px 34px 30px 0}
.ev-stats li:nth-child(even){padding-left:34px;padding-right:0;border-left:1px solid var(--line)}
.ev-stats li:nth-child(-n+2){border-bottom:1px solid var(--line)}
.ev-stats strong{display:block;font:600 clamp(44px,4.6vw,68px)/1 'Manrope',sans-serif;letter-spacing:-.05em;color:var(--ev-accent)}
.ev-stats p{margin:14px 0 0;font-size:var(--t-card,17px);line-height:1.6;color:var(--text)}
.ev-stats small{display:block;margin-top:10px;font-size:13px;line-height:1.5;color:var(--muted)}
.ev-quote{margin:0;padding:30px 0 0 30px;border-left:4px solid #faa61a}
.ev-quote blockquote{margin:0;font:600 clamp(20px,1.6vw,24px)/1.45 'Manrope',sans-serif;letter-spacing:-.02em;color:var(--text)}
.ev-quote figcaption{margin-top:16px;font-size:13px;line-height:1.5;color:var(--muted)}
.ev-quote p{margin:30px 0 0;padding-top:22px;border-top:1px solid var(--line);font-size:var(--t-card,17px);line-height:1.6;color:var(--muted)}

@media(max-width:980px){
  .ev-tests{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ev-tests li,.ev-tests li:first-child{padding:30px 26px 26px 0}
  .ev-tests li:nth-child(even){padding-left:26px}
  .ev-tests li:nth-child(odd){border-left:0}
  .ev-tests li:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .ev-avg-grid,.ev-report-grid,.ev-research-grid{grid-template-columns:1fr}
  .ev-report-grid .section-intro{position:static}
  .ev-split{grid-template-columns:1fr}
  .ev-join{position:relative;left:auto;top:auto;transform:none;margin:-34px auto;order:1}
  .ev-side-approve{order:2}
  .ev-split>.ev-side:nth-child(n){padding:clamp(26px,5vw,40px)}
  .ev-split>.ev-side-approve{padding-top:58px}
}
@media(max-width:600px){
  .ev-tests{grid-template-columns:1fr}
  .ev-tests li:nth-child(n){padding:26px 0;border-left:0;border-bottom:1px solid var(--line)}
  .ev-profile{padding:22px 16px 18px}
  .ev-bars{gap:6px;padding:0 6px}
  .ev-bars li span{font-size:11px;writing-mode:vertical-rl;transform:translateX(-50%) rotate(180deg);top:auto;bottom:-8px;translate:0 100%}
  .ev-profile figcaption{margin-top:86px}
  .ev-principles{grid-template-columns:1fr;gap:22px}
  .ev-sheet-head{padding:18px 20px}
  .ev-sheet dl{padding:4px 20px 10px}
  .ev-sheet dl>div{grid-template-columns:1fr}
  .ev-stats{grid-template-columns:1fr}
  .ev-stats li:nth-child(n){padding:24px 0;border-left:0;border-bottom:1px solid var(--line)}
}

/* ---- Refinements: the average chart in the open and larger, varied section openings ---- */
/* The average chart in the open, larger: the page's one bold element */
.ev-avg-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr)}
.ev-profile{padding:0;border:0;border-radius:0;background:none}
.ev-plot{height:300px}
.ev-principles{grid-template-columns:1fr;gap:22px}
/* Openings: a centred heading over the two halves; a full-width heading over the research */
.ev-who .section-intro{display:block;max-width:820px;margin-inline:auto;text-align:center}
.ev-who .intro-side{max-width:600px;margin:22px auto 0}
.ev-research .section-intro{display:block;max-width:980px}
.ev-research .intro-side{max-width:640px;margin:22px 0 0}
@media(max-width:980px){
  .ev-avg-grid{grid-template-columns:1fr}
  .ev-principles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .ev-principles{grid-template-columns:1fr}
  .ev-who .section-intro{text-align:left}
  .ev-who .intro-side{margin-left:0}
}
