
/* Shared reader hierarchy, independent of page-specific legacy research views. */
:root { --faint: #756b60; --accent-strong: #456b56; }
* { box-sizing: border-box; }
body { font-size: 16px; }
body .shell { width: min(1220px, calc(100% - 48px)); }
body .topbar { display:flex; height:auto; position: relative; min-height: 76px; padding: 16px 24px; gap: 18px; flex-wrap: wrap; }
body .brand span { display: none; }
body .nav { gap: 20px; }
body .nav a { border:0; border-radius:0; padding:0 4px; min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.nav a[aria-current=page] { color: var(--ink); box-shadow: inset 0 -2px var(--accent-strong); }
.header-search { display: flex; margin-left: auto; align-items: center; gap: 6px; }
.header-search input { width: 190px; min-width: 0; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:4px; background: transparent; }
.header-search button { min-height:44px; border:1px solid var(--line); border-radius:4px; padding:6px 10px; background:var(--surface); color:var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--bg); }
.skip-link:focus { top: 8px; }
[id] { scroll-margin-top: 24px; }
.reader-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin: 28px 0 16px; }
.reader-heading h1 { font: 400 40px/1.15 var(--serif); margin: 6px 0 10px; }
.reader-heading p { margin: 6px 0; color: var(--muted); }
.eyebrow,.story-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--accent-strong); }
.context-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.reader-toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.coverage,.story-meta,.chart-caption { font-size: 14px; color: var(--muted); line-height: 1.5; }
.story-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.story-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.story-filters a[aria-current=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.story-feed { display: grid; gap: 18px; }
.market-story { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: 1fr auto; gap: 0 36px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 8px; background: #f3eee4; }
.story-copy { grid-column: 1; grid-row: 1; }
.story-copy h2 { font: 400 26px/1.2 var(--serif); margin: 8px 0 12px; }
.story-copy h2 a { color: var(--ink); text-decoration: none; }
.story-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-kicker { margin: 0; }
.story-context { font-size: 16px; line-height: 1.45; margin: 0 0 12px; }
.story-meta { margin: 0; font-size: 13px; }
.story-meta strong { color: var(--ink); }
.story-visual { grid-column: 2; grid-row: 1 / 3; align-self: center; min-width: 0; }
.story-action { grid-column: 1; grid-row: 2; display: inline-flex; align-items: center; justify-content: space-between; width: fit-content; min-height: 44px; gap: 28px; margin-top: 8px; font-weight: 600; }
.story-figure { margin: 0; }
.chart-caption { margin: 0 0 6px; font-size: 13px; }
.story-chart { width: 100%; height: auto; display: block; overflow: visible; }
.story-chart text { font: 12px var(--sans); fill: var(--muted); }
.story-chart .grid { stroke: var(--line); stroke-width: .7; }
.story-chart .baseline { stroke: var(--muted); stroke-dasharray: 3 5; stroke-width: .8; }
.story-chart .stock { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.story-chart .benchmark { fill: none; stroke: var(--qqq); stroke-width: 1.7; stroke-dasharray: 5 3; }
.benchmark-label { color: var(--qqq); fill: var(--qqq); }
.chart-metric { font-size: 13px; margin: 6px 0 0; color: var(--muted); }
.chart-metric strong { font: 500 23px var(--mono); color: var(--bear); margin-right: 8px; }
.comparison-row { display: grid; grid-template-columns: 46px minmax(0,1fr) 82px; align-items: center; gap: 8px; margin: 24px 0; font-size: 14px; }
.bar-track { height: 26px; position: relative; background: var(--surface-2); }
.bar-track:after { content: ''; position: absolute; left: 50%; height: 36px; top: -5px; border-left: 1px solid var(--muted); }
.bar { position: absolute; height: 100%; }
.bar.negative { background: var(--bear); }
.bar.positive { background: var(--accent-strong); }
.bar-value { font: 14px var(--mono); text-align: right; }
.bar-scale { display: flex; justify-content: space-between; margin: 0 90px 12px 54px; font-size: 12px; color: var(--muted); }
.cycle-strip { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 0; margin: 6px 0; font-size: 12px; }
.cycle-strip li { display: flex; flex-direction: column; border-top: 2px solid var(--accent); padding-top: 5px; }
.cycle-strip time { color: var(--muted); font-size: 11px; }
.cycle-strip strong { margin-top: 4px; font-family: var(--mono); }
.reader-footer { margin: 32px 0; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }
.reader-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.reader-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.story-heading { max-width: 850px; }
.story-detail-visual { max-width: 900px; margin: 20px 0; }
.story-detail-visual .chart-caption { font-size: 16px; }
.reader-disclosure { margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px 12px; }
.reader-disclosure > summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--accent-strong); }
.reader-disclosure[open] > summary { margin-bottom: 12px; }
.checkpoint { margin-top: 16px; }
body .pe-summary { font-size: 16px; line-height: 1.6; }
body .pe-tag { white-space: normal; font-size: 13px; }
body .pe-opt, body .pe-cta { min-height: 44px; font-size: 14px; white-space: normal; }
body .pe-note, body .pe-prop-meta, body .ev-line { font-size: 14px; }
body .pe-chart .axis-label { fill: var(--muted); }
body .ev-interp { font-size: 16px; }
body .pe-scroll { max-width: 100%; }
body .pe-control, body .pe-body { min-width: 0; }
body .pe-chart-wrap { max-width: 100%; }
body .sector-cards { grid-template-columns: minmax(0,1fr); }
body .narrative-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 6px 24px; }
body .card-debate { font-size: 16px; }
body .card-meta { font-size: 13px; }
body .card-tickers { font-size: 14px; }
.prop-list { display: grid; gap: 0; }
.prop-choice { border-top: 1px solid var(--line); padding: 10px 0; }
.prop-choice summary { cursor: pointer; min-height: 44px; font-size: 16px; }
.prop-choice[open] { border-left: 3px solid var(--accent-strong); padding-left: 14px; }
.prop-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stock-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.stock-list a { display: flex; justify-content: space-between; min-height: 60px; gap: 16px; padding: 14px; border: 1px solid var(--line); }
body .price-line { flex-wrap: wrap; }
body .stock-head .last-price { font-size: 24px; }
body .digest-filters { display: flex; flex-wrap: wrap; align-items: flex-start; }
body .digest-filters details .advanced-fields { display: flex; flex-wrap: wrap; gap: 12px; }
body .build-diagnostics { width: min(1220px,calc(100% - 48px)); color: var(--muted); }
body .narrative-main, body .narrative-layout, body .stock-head, body .identity { min-width: 0; }
body .lifecycle-board { overflow-x: auto; }
.pagination { display: flex; align-items: center; gap: 20px; margin: 24px 0; }
.pagination a { min-height: 44px; display: flex; align-items: center; }
.library-document { padding: 18px 0; border-bottom: 1px solid var(--line); }
.library-document h2 { font-size: 20px; margin: 0 0 8px; }
@media (max-width:760px) {
 body .shell { width: calc(100% - 32px); }
 body .topbar { padding: 10px 16px; gap: 4px 16px; }
 body .nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
 body .brand strong { font-size: 20px; }
 .header-search { width: 100%; margin-top: 6px; }
 .header-search input { flex: 1; }
 .reader-heading { margin-top: 20px; display: block; }
 .reader-heading h1 { font-size: 32px; }
 .reader-heading > .context-link { display: none; }
 .story-filters { gap: 6px; margin: 12px 0 18px; }
 .story-filters a { padding: 4px 10px; font-size: 14px; }
 .market-story { display: flex; flex-direction: column; padding: 20px 16px 12px; gap: 14px; }
 .story-copy h2 { font-size: 26px; }
 .story-visual { align-self: stretch; }
 .story-action { margin: 0; width: 100%; }
 .story-chart text { font-size: 16px; }
 .chart-metric span { display: block; }
 .cycle-strip { grid-template-columns: repeat(2,1fr); gap: 10px; font-size: 13px; }
 .cycle-strip time { font-size: 12px; }
 .comparison-row { grid-template-columns: 40px minmax(0,1fr) 75px; gap: 5px; }
 .bar-value { font-size: 13px; }
 .bar-scale { margin-right: 80px; margin-left: 45px; }
 body .narrative-card, .prop-evidence, .stock-list { grid-template-columns: minmax(0,1fr); }
 body .pe-head { padding: 12px; }
 body .pe-body { padding: 12px; }
 body .ev-drawer dl { grid-template-columns: minmax(0,1fr); }
 body .pe-chart { min-width: 600px; }
 body .top-grid { min-width: 0; }
 body .feed-row { grid-template-columns: minmax(0,1fr); gap: 6px; }
 body .filters { flex-wrap: wrap; display: flex; }
 body input, body select { max-width: 100%; }
 body .build-diagnostics { width: calc(100% - 32px); }
 body .pe-props .pe-prop { grid-template-columns: minmax(0,1fr); }
 .reader-heading, .pe-section, .ev-item, .library-document { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

.evidence-dialog { width:min(740px,calc(100% - 32px)); max-height:90dvh; padding:20px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); }
.evidence-dialog::backdrop { background:rgb(43 43 40 / .45); }
.evidence-close { min-height:44px; margin-bottom:12px; }
@media(max-width:760px) { .evidence-dialog { width:100%; max-width:none; height:100dvh; max-height:100dvh; margin:0; border-radius:0; padding:16px; } }

.mobile-episode-chart { display:none; }
.event-picker { padding-left:20px; }
.event-picker a { display:inline-flex; align-items:center; min-height:44px; }
.review-episodes { display:grid; gap:12px; }
.review-episodes h3 { margin-top:0; }
@media(max-width:760px) {
 .mobile-episode-chart { display:block; }
 .mobile-episode-chart + .pe-chart-wrap { display:none; }
}

@media(max-width:760px) {
 body .brand strong { font-size:18px; }
 .header-search { width:170px; margin:0 0 0 auto; }
 .header-search input { width:94px; padding:6px; font-size:14px; }
 .header-search button { padding:6px; font-size:14px; }
 .reader-heading:not(.story-heading) p:not(.eyebrow) { display:none; }
 .reader-heading:not(.story-heading) { margin-bottom:8px; }
 .reader-toolbar { gap:0; }
 .reader-toolbar .coverage { margin:4px 0; }
 .reader-toolbar > a { min-height:36px; display:inline-flex; align-items:center; font-size:14px; }
 .story-filters { margin:8px 0 16px; }
 .story-kicker { font-size:11px; }
}
@media(max-width:360px) {
 .header-search { width:134px; }
 .header-search input { width:72px; }
 .header-search button { font-size:12px; }
 body .topbar { gap:4px 8px; }
 body .brand strong { font-size:16px; }
}

body .nav { flex-wrap:wrap; }
button, input, select { max-width:100%; }
.header-search { max-width:100%; }
.story-bars, .story-copy, .comparison-row { min-width:0; }
.story-meta, .bar-value { overflow-wrap:anywhere; }
@media(max-width:760px) {
 body .nav a { flex:1 0 auto; }
 .story-meta { font-family:var(--sans); }
 .story-figure .chart-caption { overflow-wrap:anywhere; }
}

.story-feed { grid-template-columns:minmax(0,1fr); }
.market-story { min-width:0; overflow-wrap:anywhere; }
.cycle-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:760px) { .cycle-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Living stories: latest state first, chronological development on demand. */
.living-story { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto auto; gap: 8px 36px; }
.living-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.living-copy h2 { font: 400 26px/1.2 var(--serif); margin: 8px 0 6px; }
.living-copy h2 a { color: var(--ink); text-decoration: none; }
.living-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.living-aside { grid-column: 2; grid-row: 1; align-self: start; display: grid; gap: 14px; min-width: 0; }
.living-actions { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; }
.living-tickers { font-family: var(--mono); letter-spacing: 0; text-transform: none; }
.living-phase { font: 500 17px/1.35 var(--sans); color: var(--accent-strong); margin: 0 0 8px; }
.living-summary { font-size: 17px; line-height: 1.55; color: var(--ink) !important; max-width: 760px; }
.living-changed, .living-price, .living-question { font-size: 15px; line-height: 1.5; margin: 8px 0; }
.living-changed strong, .living-question strong { display: inline-block; margin-right: 4px; color: var(--ink); }
.living-changed { border-left: 3px solid var(--accent); padding-left: 10px; }
.living-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.living-dates { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.living-dates time { font-family: var(--mono); color: var(--ink); }
.living-spark { margin: 0; }
.living-spark svg, .living-spark-lg { width: 100%; max-width: 320px; height: auto; display: block; overflow: visible; }
.living-spark polyline, .living-spark-lg polyline { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.spark-end { fill: var(--bg); stroke: var(--accent-strong); stroke-width: 2; }
.living-spark figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.living-evidence { font-size: 14px; color: var(--muted); }
.living-evidence > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.living-evidence a { min-height: 44px; display: inline-flex; align-items: center; }
.living-filter-form { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: -8px 0 20px; font-size: 14px; color: var(--muted); }
.living-filter-form select, .living-filter-form button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.living-what-changed { margin: 16px 0; border-left: 3px solid var(--accent-strong); }
.living-what-changed h2, .living-grid h2, .checkpoint h2 { font: 400 22px/1.25 var(--serif); margin: 0 0 8px; }
.living-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; }
.living-props { list-style: none; padding: 0; margin: 0; }
.living-props li { border-top: 1px solid var(--line); padding: 10px 0; }
.living-props p { margin: 2px 0; }
.living-price-block + .living-price-block { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.living-cite { font-family: var(--mono); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.living-dev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; margin-top: 32px; }
.living-dev-head h2 { font: 400 28px/1.2 var(--serif); margin: 0; }
.living-dev-head .story-filters { margin: 8px 0; }
.living-phases { list-style: none; padding: 0; margin: 16px 0; border-left: 2px solid var(--line); }
.living-phase-item { position: relative; padding: 4px 0 24px 22px; }
.living-phase-item::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.living-phase-item.is-current::before { background: var(--accent-strong); border-color: var(--accent-strong); }
.living-phase-item h3 { font: 400 21px/1.3 var(--serif); margin: 0 0 4px; }
.living-phase-item > p { margin: 6px 0; max-width: 820px; line-height: 1.5; }
.living-highlights { margin: 8px 0; padding-left: 18px; line-height: 1.5; }
.living-events { list-style: none; padding: 0; margin: 0; }
.living-event { border-top: 1px solid var(--line); padding: 10px 0; }
.living-event:target { background: var(--surface); outline: 2px solid var(--accent); outline-offset: 4px; }
.living-event-head { margin: 0; font-size: 13px; color: var(--muted); }
.living-event-head time { font-family: var(--mono); color: var(--ink); }
.living-event-summary { margin: 4px 0; line-height: 1.5; }
.living-tag { border: 1px solid var(--accent-strong); border-radius: 4px; padding: 0 6px; color: var(--accent-strong); }
.living-sources > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent-strong); font-size: 14px; }
.living-sources dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 14px; margin: 4px 0 8px; }
.living-sources dt { color: var(--muted); }
.living-sources dd { margin: 0; }
.living-excerpt { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--surface); font-size: 14px; line-height: 1.5; }
.reader-disclosure h4 { margin: 12px 0 4px; font-size: 15px; }
@media (max-width: 760px) {
 .living-story { display: flex; flex-direction: column; gap: 10px; }
 .living-aside { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
 .living-copy h2 { font-size: 24px; }
 .living-grid { grid-template-columns: minmax(0, 1fr); }
 .living-phase-item { padding-left: 16px; }
 .living-sources dl { grid-template-columns: minmax(0, 1fr); }
 .living-dates { font-size: 13px; }
}

/* Story briefs: one title, three bullets, one stock/QQQ comparison. */
.story-index-heading { display: block; margin-bottom: 8px; }
.story-index-heading h1 { margin-bottom: 4px; }
.story-meta-line { font-size: 14px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.story-meta-line time { color: var(--ink); }
.story-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto; align-items: center; }
.story-card .story-copy h2 { margin: 0 0 12px; }
.story-card .story-visual { grid-row: 1; }
.story-summary { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.45; max-width: 640px; }
.story-summary li::marker { color: var(--accent-strong); }
.story-summary-lg { font-size: 18px; line-height: 1.5; gap: 10px; max-width: 760px; margin: 0 0 20px; }
.story-detail .story-heading { margin-bottom: 12px; }
.story-chart .stock-2 { fill: none; stroke: var(--accent-strong); stroke-width: 2.2; }
.story-chart .line-label { font-weight: 600; fill: var(--ink); }
.story-chart .stock-2-label { fill: var(--accent-strong); }
.story-chart .benchmark-label { fill: var(--qqq); }
.story-chart .chart-marker line { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.story-chart .chart-marker circle { fill: var(--bg); stroke: var(--accent-strong); stroke-width: 1.5; }
.story-chart .chart-marker text { font: 600 11px var(--sans); fill: var(--accent-strong); }
.story-figure .chart-caption { margin: 4px 0 0; }
.story-figure-lg .chart-caption { font-size: 14px; }
.chart-markers { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.chart-markers a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); }
.chart-markers time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.marker-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid var(--accent-strong); border-radius: 50%; font: 600 11px var(--sans); color: var(--accent-strong); flex: none; }
.bar.benchmark { background: var(--qqq); }
.story-bars .comparison-row { margin: 16px 0; }
.story-evidence { max-width: 900px; }
.story-evidence > summary { font-weight: 600; font-size: 16px; display: flex; align-items: center; }
.story-evidence:not([open]) { padding-bottom: 4px; }
.story-evidence section { margin: 8px 0 20px; }
.story-evidence h2 { font: 400 22px/1.25 var(--serif); margin: 16px 0 8px; }
.story-evidence .build-diagnostics { width: auto; margin: 8px 0 0; }
@media (max-width: 760px) {
 .story-card { display: flex; flex-direction: column; gap: 14px; }
 .story-summary { font-size: 16px; }
 .story-summary-lg { font-size: 17px; }
 .story-card .story-copy h2 { font-size: 24px; margin-bottom: 10px; }
 .story-card .story-chart text { font-size: 18px; }
 .story-figure-lg .story-chart text { font-size: 24px; }
 .story-figure-lg .story-chart .chart-marker text { font-size: 15px; }
 .story-figure-lg .story-chart .chart-marker circle { r: 10; }
 .chart-markers { display: grid; gap: 0; }
}

/* Story detail analysis: one reading column; the chart keeps its own width. */
.story-analysis .story-heading { margin-bottom: 8px; }
.story-analysis .detail-thesis { font-size: 19px; line-height: 1.55; max-width: 70ch; margin: 0 0 10px; color: var(--ink); }
.story-analysis .detail-asof { font-size: 14px; color: var(--muted); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.story-analysis .detail-asof time { color: var(--ink); }
.story-analysis .detail-coverage { max-width: 70ch; font-size: 14px; color: var(--muted); margin: -10px 0 16px; font-style: italic; }
.story-analysis .detail-context p { font-size: 15px; line-height: 1.5; margin: 0 0 8px; color: var(--muted); }
.story-analysis .detail-chart-note { max-width: 70ch; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 4px 0 24px; font-variant-numeric: tabular-nums; }
.story-analysis .detail-section { max-width: 72ch; margin: 28px 0; }
.story-analysis .detail-section h2 { font: 400 24px/1.25 var(--serif); margin: 0 0 8px; }
.story-analysis .detail-note { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.story-analysis .detail-turns { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.story-analysis .detail-turns li { padding: 2px 0 16px 18px; position: relative; }
.story-analysis .detail-turns li::before { content: ""; position: absolute; left: -6px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-strong); }
.story-analysis .detail-turns li:target { background: var(--surface); outline: 2px solid var(--accent); outline-offset: 4px; }
.story-analysis .detail-turns h3 { font: 600 16px/1.4 var(--sans); margin: 0 0 4px; }
.story-analysis .detail-turns h3 time { font-family: var(--mono); font-weight: 400; color: var(--accent-strong); }
.story-analysis .detail-turns p, .story-analysis .detail-sides p, .story-analysis .detail-test { font-size: 16px; line-height: 1.55; margin: 0; }
.story-analysis .detail-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; }
.story-analysis .detail-test + .detail-test { margin-top: 12px; }
.story-analysis .detail-status { color: var(--muted); font-style: italic; }
.story-analysis .detail-sources { white-space: normal; }
/* Inline-block with offsetting negative margins: a 44px tap target that leaves line spacing alone. */
.story-analysis .detail-source { display: inline-block; font-size: 13px; line-height: 20px; padding: 12px 4px; margin: -12px 0 -12px 6px; color: var(--accent-strong); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.story-analysis .story-evidence { margin-top: 32px; }
@media (max-width: 760px) {
 .story-analysis .detail-thesis { font-size: 17px; }
 .story-analysis .detail-sides { grid-template-columns: minmax(0, 1fr); }
 .story-analysis .detail-source { white-space: normal; }
 .story-analysis .detail-section h2 { font-size: 22px; }
}
.chart-markers .marker-plotted { color: var(--muted); font-size: 12px; }
.story-analysis .detail-expanded { margin: -8px 0 16px; font-size: 15px; }
.story-analysis .detail-expanded a { display: inline-flex; align-items: center; min-height: 44px; }

/* Expanded company comparison: aligned small multiples (3 columns desktop, 1 on phones). */
.story-analysis .story-panels { margin: 8px 0 12px; }
.story-analysis .panel-grid { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.story-analysis .panel-cell { min-width: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.story-analysis .panel-title { font: 600 15px/1.3 var(--sans); margin: 0 0 2px; }
.story-analysis .panel-cell .chart-caption { display: none; }
.story-analysis .panel-strip { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.story-analysis .panel-strip div { display: flex; gap: 4px; }
.story-analysis .panel-strip dt { color: var(--muted); }
.story-analysis .panel-strip dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) {
 .story-analysis .panel-grid { grid-template-columns: minmax(0, 1fr); }
 .story-analysis .panel-cell .story-chart text { font-size: 16px; }
}
.story-analysis .detail-paragraph { font-size: 16px; line-height: 1.6; margin: 0 0 14px; max-width: 70ch; }
.story-analysis .detail-conclusion { font-size: 16px; line-height: 1.55; margin: 14px 0 0; font-weight: 600; max-width: 70ch; }
.story-analysis .fund-title { font: 600 15px/1.3 var(--sans); margin: 14px 0 6px; }
.story-analysis .fund-table th[scope=row] { text-align: left; font-weight: 600; min-width: 190px; }
.story-analysis .fund-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-analysis .fund-note { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.story-analysis .fund-calc { font-size: 11px; color: var(--muted); }
.story-analysis .fund-table th[scope=row], .story-analysis .fund-note { text-transform: none; letter-spacing: 0; }
.story-analysis .fund-wrap { max-width: 100%; }
@media (max-width: 960px) {
 /* Between tablet and desktop the five columns wrap instead of overflowing. */
 .story-analysis .fund-table td { white-space: normal; }
 .story-analysis .fund-table th[scope=row] { min-width: 120px; }
}
@media (max-width: 760px) {
 /* At phone width each business becomes a stacked block with labelled values: no horizontal table. */
 .story-analysis .fund-table, .story-analysis .fund-table tbody, .story-analysis .fund-table tr,
 .story-analysis .fund-table th, .story-analysis .fund-table td { display: block; width: 100%; }
 .story-analysis .fund-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
 .story-analysis .fund-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
 .story-analysis .fund-table th[scope=row] { min-width: 0; padding: 0 0 4px; }
 .story-analysis .fund-table td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; white-space: normal; }
 .story-analysis .fund-table td::before { content: attr(data-label); color: var(--muted); }
}

/* Five-character tickers stay intact in the promoted comparison charts. */
.story-bars .comparison-row { grid-template-columns: 54px minmax(0, 1fr) 82px; }
.story-bars .comparison-row > strong { white-space: nowrap; }
.story-bars .bar-scale { margin-left: 62px; }
@media (max-width: 700px) {
  .story-bars .comparison-row { grid-template-columns: 54px minmax(0, 1fr) 75px; }
  .story-bars .bar-scale { margin-left: 59px; }
}
