/* boston.exchange interactive chart (includes/chart.php, assets/bx-chart.js). Every colour is a token per colour mode:
   dark is the default (no data-theme or data-theme="dark"), data-theme="light" overrides. */
.bx-cx {
	--bxc-gb: #5cc8d0; --bxc-bos: #ff8a5c; --bxc-cpi: #d5e0e6; --bxc-cpius: #9db2bf;
	--bxc-t1: #ffd166; --bxc-t2: #c4a7ff; --bxc-t3: #8fdc7a; --bxc-t4: #ff9fc0; --bxc-t5: #7db4ff; --bxc-t6: #e6e6e6;
	--bxc-faint: rgba(157, 178, 191, .30); --bxc-grid: rgba(157, 178, 191, .22); --bxc-text: #c3d3dc; --bxc-panel: #0f1d2a; --bxc-line: #253a4b; --bxc-on: #0a1520; --bxc-mask: rgba(92, 200, 208, .16); --bxc-bar: #5b7384;
}
:root[data-theme="light"] .bx-cx {
	--bxc-gb: #0b6e78; --bxc-bos: #bf3f12; --bxc-cpi: #3d5365; --bxc-cpius: #6a7c89;
	--bxc-t1: #8a6100; --bxc-t2: #6a3fc0; --bxc-t3: #26772a; --bxc-t4: #b3135a; --bxc-t5: #1b57b8; --bxc-t6: #5d4037;
	--bxc-faint: rgba(61, 83, 101, .28); --bxc-grid: rgba(61, 83, 101, .18); --bxc-text: #2c4356; --bxc-panel: #fbfdfd; --bxc-line: #c9d6dd; --bxc-on: #ffffff; --bxc-mask: rgba(11, 110, 120, .14); --bxc-bar: #8ea4b3;
}
.bx-cx { margin: 1.5em 0; max-width: 100%; }
.bx-cx-title { margin: 0 0 .4em; font: 700 1.125rem/1.3 "Instrument Sans", "Inter", sans-serif; color: var(--theme-palette-color-4); }
.bx-cx-sum { margin: 0 0 1em; color: var(--theme-palette-color-3); }
.bx-cx-app { display: grid; gap: 12px; min-width: 0; }
.bx-cx-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.bx-cx-seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; min-width: 0; }
.bx-cx-seg legend, .bx-cx-lab, .bx-cx-f span { display: block; padding: 0; margin: 0 0 4px; font-size: .875rem; font-weight: 600; color: var(--bx-muted); }
.bx-cx-seg legend { width: 100%; }
.bx-cx-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bx-cx-seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--bxc-line); margin-left: -1px; background: var(--bxc-panel); color: var(--theme-palette-color-3); font-size: .9375rem; cursor: pointer; }
.bx-cx-seg label:first-of-type { border-radius: 8px 0 0 8px; margin-left: 0; } .bx-cx-seg label:last-of-type { border-radius: 0 8px 8px 0; }
.bx-cx-seg input:checked + label { background: var(--theme-palette-color-1); border-color: var(--theme-palette-color-1); color: var(--theme-button-text-initial-color, #fff); font-weight: 600; position: relative; z-index: 1; }
.bx-cx-seg input:focus-visible + label { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; z-index: 2; position: relative; }
:root[data-theme="light"] .bx-cx-seg input:checked + label { color: #fff; }
.bx-cx-range { display: flex; gap: 6px; }
.bx-cx button, .bx-cx select, .bx-cx input[type="text"] { font: inherit; font-size: .9375rem; min-height: 44px; border: 1px solid var(--bxc-line); border-radius: 8px; background: var(--bxc-panel); color: var(--theme-palette-color-4); padding: 0 12px; }
.bx-cx button { cursor: pointer; }
.bx-cx .bx-cx-range button[aria-pressed="true"], .bx-cx .bx-chips button[aria-pressed="true"] { background: var(--theme-palette-color-1); border-color: var(--theme-palette-color-1); color: var(--theme-button-text-initial-color, #fff); font-weight: 600; }
:root[data-theme="light"] .bx-cx .bx-cx-range button[aria-pressed="true"] { color: #fff; }
.bx-cx button:focus-visible, .bx-cx select:focus-visible, .bx-cx input:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; }
.bx-cx-years { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.bx-cx-f { display: block; } .bx-cx-f select { min-width: 110px; }
.bx-cx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bx-cx-chips > li { margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.bx-cx-chips .bx-cx-chip { display: inline-flex; align-items: center; gap: 8px; }
.bx-cx-chips li.bx-cx-chip-t { border: 1px solid var(--bxc-line); border-radius: 8px; background: var(--bxc-panel); padding-left: 12px; min-height: 44px; color: var(--theme-palette-color-4); }
.bx-cx-chips li.bx-cx-chip-t button { border: 0; background: transparent; min-width: 36px; min-height: 40px; padding: 0 6px; }
.bx-cx-chips button.bx-cx-chip[aria-pressed="true"] { border-color: var(--theme-palette-color-4); box-shadow: inset 0 0 0 1px var(--theme-palette-color-4); font-weight: 600; }
.bx-cx-chips button.bx-cx-chip[aria-pressed="false"] { opacity: .8; }
.bx-cx-chips .is-na { opacity: .6; } .bx-cx-na { font-size: .875rem; color: var(--bx-muted); }
.bx-cx-sw { display: inline-block; width: 28px; height: 0; }
.bx-cx-x { font-size: 1.25rem; line-height: 1; } .bx-cx-star { font-size: 1.125rem; line-height: 1; }
.bx-cx-chips .bx-cx-star { border: 0; background: transparent; min-width: 36px; min-height: 40px; padding: 0 6px; color: var(--theme-palette-color-1); }
.bx-cx-pick { display: grid; gap: 10px; }
.bx-cx-combo { position: relative; max-width: 420px; }
.bx-cx-combo label { display: block; font-size: .875rem; font-weight: 600; color: var(--bx-muted); margin-bottom: 4px; }
.bx-cx-combo input { width: 100%; }
.bx-cx-combo ul { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; max-height: 280px; overflow: auto; background: var(--bxc-panel); border: 1px solid var(--bxc-line); border-radius: 8px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.bx-cx-combo li { margin: 0; padding: 10px 12px; min-height: 40px; cursor: pointer; color: var(--theme-palette-color-4); }
.bx-cx-combo li.is-cur, .bx-cx-combo li:hover { background: color-mix(in srgb, var(--theme-palette-color-1) 22%, var(--bxc-panel)); }
.bx-cx-combo li.bx-cx-none { cursor: default; color: var(--bx-muted); }
.bx-cx-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bx-cx-opts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bx-cx-ck { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9375rem; color: var(--theme-palette-color-3); cursor: pointer; }
.bx-cx-ck input { width: 20px; height: 20px; margin: 0; accent-color: var(--theme-palette-color-1); }
.bx-cx-status, .bx-cx-live { margin: 0; font-size: .875rem; color: var(--bx-muted); min-height: 1.2em; }
.bx-cx-h { margin: 0; font-size: .875rem; font-weight: 600; color: var(--theme-palette-color-4); }
.bx-cx-plot { min-height: 300px; min-width: 0; }
.bx-cx-plot .apexcharts-canvas { max-width: 100%; }
.bx-cx-nav { margin-top: -6px; }
.bx-cx-navwrap .bx-cx-lab { margin-top: 4px; }
.bx-cx-tip { background: var(--bxc-panel); color: var(--theme-palette-color-4); border: 1px solid var(--bxc-line); border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.35; min-width: 220px; max-width: min(340px, 86vw); white-space: normal; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.bx-cx-tip strong { display: block; margin-bottom: 4px; }
.bx-cx-tip .bx-cx-unit { display: block; margin: -2px 0 4px; font-size: 12px; color: var(--bx-muted); }
.bx-cx-tip > div { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 1px 0; }
.bx-cx-tip i { display: block; width: 24px; height: 0; } .bx-cx-tip b { font-variant-numeric: tabular-nums; }
.bx-cx-tip-n { margin-top: 4px; padding-top: 4px !important; border-top: 1px solid var(--bxc-line); color: var(--bx-muted); }
.bx-cx-note { margin-top: 8px; font-size: .875rem; color: var(--bx-muted); text-align: left; }
.bx-cx .apexcharts-xaxistooltip { display: none; }
/* with JavaScript the summary sentence stays (it is the printed text); the live line repeats the current view for screen readers only */
.bx-cx.is-live .bx-cx-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .bx-cx-seg label { padding: 0 10px; font-size: .875rem; } .bx-cx-plot { min-height: 280px; } }
@media (prefers-reduced-motion: reduce) { .bx-cx * { transition: none !important; animation: none !important; } }

.bx-cx-tr { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; padding: 3px 0; }
.bx-cx-tr i { display: block; width: 20px; height: 0; margin-top: .6em; }
.bx-cx-tr small { display: block; font-size: 12px; color: var(--bx-muted); }
.bx-cx-tr b { font-variant-numeric: tabular-nums; }
.bx-cx .highcharts-container { max-width: 100%; }
.bx-cx .highcharts-range-selector-group, .bx-cx .highcharts-range-selector-buttons { font-size: 13px; }

/* sorted-bar variant (data-bx-type="bars"): compact, no navigator */
.bx-cx-bars { min-height: 260px; }
.bx-cx-bars .highcharts-container { max-width: 100%; }
.bx-cx-bars .highcharts-plot-line-label, .bx-cx-bars .highcharts-axis-title { font-size: 12px; }
