/* Independent stories share homepage geometry without changing existing stories. */
.context-story{--context-bg:#0a141e;--context-surface:#0d1823;--context-line:#22313e;--context-grid:#263644;--context-text:#eaf1f8;--context-muted:#9cacbc;--context-equity:#4ce0c2;--context-dd:#ee879e;--context-market:#739cff;--context-highlight:#f3cc65;--context-band:rgba(243,204,101,.085);position:relative;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(32px,5vw,80px);align-items:center;padding:100px 0;border-bottom:1px solid #1b2c3a;isolation:isolate}
.context-story::before{content:"";position:absolute;inset:5% -5%;background:radial-gradient(ellipse at 80% 45%,#17485f20,transparent 63%);pointer-events:none;z-index:-1}
.context-story-reverse{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.context-story-reverse .feature-copy{order:2}
.context-story-reverse::before{background:radial-gradient(ellipse at 20% 45%,#174d6420,transparent 63%)}
.context-story .context-analysis-preview{position:relative;min-width:0;padding:16px;color:var(--context-text);overflow:visible}
.context-chart-meta{display:flex;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;font-size:11px;line-height:1.5;color:var(--context-muted);margin-bottom:10px}
.context-story svg[data-context-chart]{display:block;width:100%;height:300px;overflow:visible;touch-action:pan-y}
.context-story svg[data-context-chart] text{fill:var(--context-muted);font:11px system-ui,sans-serif}
.context-chart-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px;font-size:11px;line-height:1.5;color:var(--context-muted)}
.context-chart-legend>span{min-width:0;white-space:nowrap}
.context-chart-legend i{display:inline-block;width:12px;height:3px;margin-right:5px;vertical-align:middle}
.context-chart-legend b{display:block;margin-top:3px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--context-text)}
.context-equity-key{background:var(--context-equity)}
.context-dd-key{background:var(--context-dd)}
.context-market-key{background:var(--context-market)}
.context-analysis-tooltip{position:absolute;z-index:3;pointer-events:none;background:#192939;color:var(--context-text);border:1px solid #415368;border-radius:8px;box-shadow:0 12px 30px #0005;padding:11px 13px;font-size:12px;line-height:1.5;max-width:calc(100% - 12px);width:260px}
.context-analysis-tooltip[hidden]{display:none}
.context-analysis-tooltip-title{font-size:11px;color:var(--context-muted);margin-bottom:7px}
.context-analysis-tooltip-row{display:flex;justify-content:space-between;gap:10px;padding:2px 0;font-variant-numeric:tabular-nums}
.context-analysis-tooltip-row i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}
@media(max-width:1050px){.context-story{gap:30px;padding:75px 0}}
@media(max-width:790px){.context-story,.context-story-reverse{grid-template-columns:1fr;gap:29px;padding:65px 0}.context-story-reverse .feature-copy{order:0}.context-story svg[data-context-chart]{height:280px}}
@media(max-width:430px){.context-story{padding:55px 0}.context-story .context-analysis-preview{padding:14px 12px}.context-chart-legend{grid-template-columns:1fr;gap:6px}.context-chart-legend>span{display:grid;grid-template-columns:12px 1fr auto;gap:5px;align-items:center}.context-chart-legend b{display:inline;margin:0}.context-chart-legend i{margin:0}}
@media(max-width:1100px){
    .context-story,.context-story-reverse{grid-template-columns:minmax(0,1fr);gap:28px;padding:64px 0}
    .context-story-reverse .feature-copy{order:0}
    .context-story::before{inset:5% 0}
    .context-story svg[data-context-chart]{height:300px}
    .context-chart-legend>span{white-space:normal}
}
@media(max-width:600px){
    .context-story,.context-story-reverse{padding:48px 0;gap:24px}
    .context-story .context-analysis-preview{padding:16px 12px}
    .context-story svg[data-context-chart]{height:280px}
    .context-chart-legend{grid-template-columns:minmax(0,1fr);gap:8px;font-size:12px}
    .context-chart-legend>span{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:7px;align-items:center}
    .context-chart-legend i,.context-chart-legend b{margin:0}
    .context-chart-legend b{display:inline}
}
