/* Deliver the value: heading and body, the value gates panel (value.js, framed by hud-frame.js),
   then the pull line beside the research. The section is always dark, so the panel is too. */
.value-b .section-intro{display:block;margin-bottom:56px}
.value-b .section-intro .intro-side{max-width:none;margin:24px 0 0;font-size:16px;line-height:1.8}

/* Panel palette (plate.js-style: value.js reads these, so they stay hex) */
.vg{--p:#5b8fdc;--band:#2b5fae;--panel:#0c2242;--muted:#9fb3cf;--flow:#4f86d9;--y:#faa61a;--ghost:#9fb3cf;
  /* Exposure: red without remedial action, amber with it (the Muon scan's exposure colours) */
  --risk-off:#e2483a;--risk-on:#f5b52e;--riskc:var(--risk-off);
  position:relative;isolation:isolate;font-family:'DM Sans',sans-serif;color:#eef4fd}
.vg-wrap{position:relative;min-width:0;padding:30px 0 26px}
.vg-noscript{padding:28px;color:var(--muted)}
.vg-frame{position:absolute;left:-44px;top:-44px;pointer-events:none;z-index:-1}

/* Title band: title left, view switch right */
.vg-band{position:relative;height:70px;padding:6px 0 0 30px;color:#fff}
.vg-title{display:inline-block;margin:0;font-family:'Audiowide','Manrope',sans-serif;font-weight:400;font-size:clamp(16px,1.5vw,20px);letter-spacing:.06em;text-transform:uppercase;line-height:64px;color:#fff}
.vg.is-action{--riskc:var(--risk-on)}
/* Controls on the right of the band: view tabs and the remedial action switch */
.vg-controls{position:absolute;right:22px;top:31px;display:flex;align-items:center;gap:10px}
/* The tabs and the switch share one height */
.vg-tabs{display:inline-flex;height:30px;padding:2px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.08)}
.vg-tabs button{display:flex;align-items:center;border:0;background:transparent;color:rgba(255,255,255,.8);font:600 12px/1.2 'DM Sans',sans-serif;padding:0 12px;cursor:pointer;transition:background .2s,color .2s}
.vg-tabs button:hover{color:#fff}
.vg-tabs button[aria-selected="true"]{background:#fff;color:#1b4585}
.vg-tabs button:focus-visible,.vg-switch:focus-visible{outline:2px solid var(--y);outline-offset:3px}
.vg-switch{display:inline-flex;align-items:center;gap:9px;height:30px;padding:0 6px 0 12px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);font:600 12px/1 'DM Sans',sans-serif;cursor:pointer}
.vg-switch i{position:relative;width:30px;height:16px;border-radius:999px;background:rgba(255,255,255,.22);transition:background .25s}
.vg-switch i::after{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .25s}
.vg-switch[aria-checked="true"]{color:#fff}
.vg-switch[aria-checked="true"] i{background:#4f86d9;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.vg-switch[aria-checked="true"] i::after{transform:translateX(14px)}

/* Stage: approved value | chart | what survives */
.vg-stage{display:grid;grid-template-columns:150px minmax(0,1fr) 170px;gap:20px;align-items:center;padding:26px 30px 22px}
.vg-cap{display:block;font:800 10px/1.4 'Manrope',sans-serif;letter-spacing:.135em;text-transform:uppercase;color:var(--muted)}
.vg-in strong,.vg-out strong{display:block;margin:8px 0 6px;font:600 clamp(34px,3.6vw,50px)/1 'Manrope',sans-serif;letter-spacing:-.06em;color:#fff;font-variant-numeric:tabular-nums}
.vg-out strong{color:var(--y);transition:color .3s}
.vg.is-risk .vg-out strong{color:var(--riskc)}
.vg-in strong{transition:opacity .3s}
.vg.is-risk .vg-in strong{opacity:.5}
.vg-sub{display:block;font-size:13px;line-height:1.4;color:var(--muted)}
.vg-scroll{min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.vg-chart{position:relative;min-width:600px}
.vg-canvas{position:relative;height:280px}
.vg-canvas canvas{position:absolute;inset:0;width:100%;height:100%}
.vg-gates{position:relative;height:84px}
.vg-gate{position:absolute;top:2px;width:132px;transform:translateX(-50%);text-align:center;display:flex;flex-direction:column;gap:3px}
/* Every gate name takes two lines, so the shares and losses line up across all four gates */
.vg-gate b{display:flex;align-items:center;justify-content:center;min-height:2.5em;font-size:13.5px;line-height:1.25;font-weight:600;color:#fff}
.vg-gate .through{font:800 9.5px/1.4 'Manrope',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.vg-gate .takes{font-size:12px;font-weight:600;color:#c9d7ea}
/* Steady digit widths while the numbers count */
.vg-gate .through,.vg-gate .takes,.vg-lost b{font-variant-numeric:tabular-nums}
.vg.is-risk .vg-gate .takes{color:var(--riskc)}
/* Tag above the gate that matters (value.js moves it): decides the outcome, or most exposure */
.vg-tag{position:absolute;z-index:1;transform:translateX(-50%);padding:3px 10px;border-radius:999px;background:#fff;color:#0c2242;font:600 11.5px/1.4 'DM Sans',sans-serif;white-space:nowrap;pointer-events:none;transition:left .6s cubic-bezier(.65,0,.35,1)}
.vg.is-risk .vg-gate.none .takes{color:var(--muted)}

/* Footer band (drawn on the frame canvas) */
.vg-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding:16px 36px 22px 30px;font-size:13px;color:var(--muted)}
.vg-lost b{color:#fff;font-weight:700}
.vg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Pull line beside the research */
.value-after{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr);gap:44px;align-items:center;margin-top:44px}
.value-pull{margin:0;font:600 clamp(22px,2.4vw,30px)/1.35 'Manrope',sans-serif;letter-spacing:-.04em;color:#f4f8ff}
.value-pull i{font-style:normal;color:#9fb3cf}
.value-pull strong{font-weight:600;color:#83b4ff}
.value-evidence{padding:20px 24px;border-radius:12px;background:#10284a}
.value-evidence p{margin:0}
.value-evidence .ve-label{font:800 10px/1.5 'Manrope',sans-serif;letter-spacing:.135em;text-transform:uppercase;color:#83b4ff}
.value-evidence .ve-text{margin-top:6px;font-size:15px;line-height:1.6;font-weight:500;color:#eef4fd}
.value-evidence .ve-source{margin-top:8px;font-size:12px;color:#9fb3cf}

/* Narrower screens: the two values sit above the chart so it keeps its width */
@media(max-width:1100px){
  .vg-stage{grid-template-columns:1fr 1fr;grid-template-areas:"in out" "chart chart";row-gap:18px}
  .vg-in{grid-area:in}.vg-out{grid-area:out;text-align:right}.vg-scroll{grid-area:chart}
}
@media(max-width:900px){.value-after{grid-template-columns:1fr;gap:24px}}
@media(max-width:620px){
  .vg-band{padding-left:22px}.vg-title{font-size:15px}
  /* The title fills the band on phones, so the view switch sits just below it */
  .vg-band{height:auto}
  .vg-controls{position:static;flex-wrap:wrap;margin:14px 0 0}
  .vg-stage{padding:20px 20px 18px}
  .vg-foot{flex-direction:column;padding:14px 20px 22px}
}
@media(prefers-reduced-motion:reduce){.vg *{transition:none!important}}
