.s-head { padding-bottom: 10px; }
.s-head p { max-width: 720px; }

.strip-wrap { max-width: 1480px; margin: 0 auto; padding: 40px 40px 0; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pt { cursor: pointer; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.pt .th { aspect-ratio: 1.15; border-radius: 14px; background: rgba(255, 255, 255, .035) center / contain no-repeat; background-origin: content-box; padding: 10px; position: relative;
  box-shadow: 0 0 0 1px var(--hair); transition: box-shadow .25s, transform .25s; }
.pt:hover .th { transform: translateY(-2px); }
.pt.on .th { background-color: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 18px 50px rgba(0,0,0,.5); }
.pt .lbl { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.pt .lbl b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pt .lbl b sup { font-size: 11px; font-weight: 500; margin-left: 1px; }
.pt .lbl span { font-size: 11.5px; color: var(--text-3); }
.pt:not(.on) .lbl b { color: var(--text-2); }
.axis { display: block; width: 100%; height: 86px; overflow: visible; }
.axis-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; margin-top: 2px; }

.explorer { max-width: 1480px; margin: 0 auto; padding: 60px 40px 30px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 56px; align-items: start; }
.ex-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; min-height: 42px; }
.ex-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); align-items: center; }
.ex-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.ex-legend .ramp { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(31,111,224,.08), rgba(31,111,224,.7)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.slide-view { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(80% 70% at 50% 45%, rgba(169, 155, 255, .07), transparent 70%), rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 110px -50px rgba(0,0,0,.8); cursor: crosshair; }
.slide-view img { display: block; width: 100%; height: auto; user-select: none; }
.slide-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .35s; }
.sl-loupe { position: absolute; width: 230px; height: 230px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .2s;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 18px 50px rgba(0,0,0,.55); background-repeat: no-repeat; background-color: #0b0c12; }
.slide-view:hover .sl-loupe { opacity: 1; }
.tip { position: absolute; pointer-events: none; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(10,10,12,.82);
  color: var(--text); white-space: nowrap; opacity: 0; transition: opacity .15s; backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.tip span { color: var(--text-2); }
.slide-view .scalebar { left: 16px; bottom: 14px; }

.ex-right { position: sticky; top: 90px; }
.risk { display: flex; align-items: flex-end; gap: 16px; margin: 14px 0 10px; }
.risk b { font-size: 72px; line-height: .9; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.risk b sup { font-size: 26px; letter-spacing: 0; margin-left: 2px; vertical-align: 32px; }
.risk span { font-size: 13px; color: var(--text-2); line-height: 1.45; padding-bottom: 4px; }
.risk em { font-style: normal; color: var(--text); }
.outcome { font-size: 13px; color: var(--text-3); padding-bottom: 26px; border-bottom: 1px solid var(--hair); }
.wf-title { font-size: 15px; font-weight: 600; margin: 26px 0 6px; }
.wf-key { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 10px; }
.wf-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.wf-key .dn i { background: #00a888; } .wf-key .up i { background: #e76624; }
.wf { display: flex; flex-direction: column; gap: 3px; }
.wf-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; padding: 7px 0; cursor: pointer;
  border-radius: 6px; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.wf-row:hover, .wf-row.on { background: rgba(255,255,255,.04); }
.wf-row .nm { grid-column: 1 / 3; font-size: 12.5px; color: var(--text-2); line-height: 1.35; padding: 0 8px 5px; }
.wf-row.on .nm { color: var(--text); }
.wf-row .bar { grid-column: 1 / 3; position: relative; height: 10px; margin: 0 8px; }
.wf-row .bar::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(255,255,255,.18); }
.wf-row .bar i { position: absolute; top: 0; height: 100%; border-radius: 2px; }
.wf-row .bar i.up { left: 50%; background: #e76624; border-radius: 0 3px 3px 0; }
.wf-row .bar i.dn { right: 50%; background: #00a888; border-radius: 3px 0 0 3px; }
.wf-row .bar em { position: absolute; top: -2px; font-size: 11px; font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wf-rest { font-size: 11.5px; color: var(--text-3); padding: 8px 8px 0; }
.sel { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
.sel h4 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 8px 0 8px; letter-spacing: -0.01em; }
.sel-meta { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.sel-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #8fc0ff; text-decoration: none; }
.sel-link:hover { text-decoration: underline; }
.slides-page .foot { max-width: 1480px; margin: 0 auto; }
@media (max-width: 1100px) { .explorer { grid-template-columns: 1fr; } .ex-right { position: static; } .strip { grid-template-columns: repeat(3, 1fr); } }

.s-head { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: end; }
.km { margin: 0; padding: 18px 20px 14px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair); }
.km figcaption { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.km figcaption b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.km svg { width: 100%; height: auto; display: block; overflow: visible; }
.km svg text { fill: var(--text-3); font-size: 10.5px; font-family: inherit; }
.km svg .lab { fill: var(--text-2); font-size: 11px; }
.km-key { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.km-key i { display: inline-block; width: 14px; height: 2px; vertical-align: 3px; margin-right: 7px; border-radius: 1px; }
@media (max-width: 1100px) { .s-head { grid-template-columns: 1fr; } .km { max-width: 520px; } }
.ex-bar { flex-wrap: wrap; }
.cap-note { color: var(--text-3); }

/* biomarker layer: grey, slightly flattened H&E so the read-blue stands out (the loupe stays in colour) */
#slideImg { transition: filter .35s ease; }
#view.bm-on #slideImg { filter: grayscale(1) contrast(.75) brightness(1.13); }
