/* Shared BAM charts remain usable inside the public financials embed and saved cards. */
[data-bam-explorer]{min-width:0;scroll-margin-top:90px}
.bam-explorer-controls,[data-bam-explorer] [data-role="controls"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
[data-bam-explorer] label{display:block;font-size:12px;font-weight:600;min-width:0}
[data-bam-explorer] select{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;padding:9px;border:1px solid var(--line,#ccd4db);border-radius:8px;background:var(--card,#fff);color:var(--ink,#192f3b);font:inherit;margin-top:6px}
[data-bam-explorer] :focus-visible{outline:3px solid #356b8b;outline-offset:3px}
[data-bam-explorer] .bam-chart,#bamHistoryChart{overflow-x:auto;max-width:100%}
[data-bam-explorer] svg{display:block;width:100%;min-width:440px;height:auto}
[data-bam-explorer][data-reporting-view="cohort"] svg{min-width:680px}
[data-bam-explorer] .bam-bar{fill:#446c83}
/* A comparator is not the saved fund metric; retain its amber colour. */
[data-bam-explorer] .bam-bar.bam-benchmark{fill:#b7791f}
.bam-benchmark-reference{margin-top:12px;padding-top:10px;border-top:1px solid var(--line,#d9e0e5)}
[data-bam-explorer] .bam-gridline{stroke:#d9e0e5;stroke-width:1}
[data-bam-explorer] .bam-baseline{stroke:var(--ink,#203a48);stroke-width:2}
[data-bam-explorer] .bam-axis,[data-bam-explorer] .bam-fund-axis{fill:var(--muted,#526570);font-size:11px}
[data-bam-explorer] .bam-value,[data-bam-explorer] .bam-year,[data-bam-explorer] .bam-fund-value{fill:var(--ink,#203a48);font-size:12px}
[data-bam-explorer] .tablewrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
[data-bam-explorer] table{width:100%;min-width:600px;border-collapse:collapse;font-size:12px}
[data-bam-explorer] th,[data-bam-explorer] td{padding:12px;border-bottom:1px solid var(--line,#dbe1e5);text-align:left;vertical-align:top;white-space:normal;line-height:1.6;min-width:110px}
[data-bam-explorer] caption{text-align:left;padding:12px;font-weight:600}
[data-bam-explorer] small{display:block;font-size:11px;color:var(--muted,#526570);line-height:1.7}
[data-bam-explorer] p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
[data-bam-explorer] details{margin-top:16px}
[data-bam-explorer] summary{cursor:pointer;font-weight:600;line-height:1.7}
[data-bam-explorer] a{overflow-wrap:anywhere}
.bam-special{margin:18px 0;padding:20px;border:1px solid var(--line,#dbe1e5);border-radius:12px}
@media(max-width:600px){.bam-explorer-controls,[data-bam-explorer] [data-role="controls"]{grid-template-columns:1fr}.bam-special{padding:12px}#bamHistoryMetric{font-size:12px}}
