/* research chart embed: tokens follow the www site (bg-base #1b1f28, Light Base text, Google Sans Flex) and keystone series colours */
:root { --bg: #1b1f28; --panel: #1b1f28; --text: #e8e4dd; --text2: #c9c4bb; --text3: #8f8b84; --border: #2d323d; --magenta: #DB00DB; --teal: #1BC1BC; --red: #FF4D6A; --green: #B9D730; --purple: #AA87D1; --mono: "Space Mono", "JetBrains Mono", ui-monospace, Menlo, monospace; }
@font-face { font-family: "Google Sans Flex"; src: url("/assets/fonts/GoogleSansFlex-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
html, body { margin: 0; background: transparent; color: var(--text); font-family: "Google Sans Flex", -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { padding: 2px 0 6px; }
.fig-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.fig-title strong { font-size: 17px; font-weight: 700; color: var(--text); }
.fig-title span { color: var(--text2); font-size: 13.5px; line-height: 1.45; }
.chart-figure { clear: both; }
.fig-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.fig-title strong { font-size: 17px; font-weight: 800; }
.fig-title span { color: var(--text2); font-size: 13.5px; line-height: 1.45; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; }
.controls .sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.pill { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text2); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.pill.on { background: #2a2338; color: var(--text); border-color: var(--purple); }
.pill.sm { font-size: 11.5px; padding: 3px 9px; }
.readout { display: flex; flex-wrap: wrap; gap: 22px; align-items: baseline; padding: 8px 0 2px; font-size: 13.5px; font-weight: 700; }
.readout .sw { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin-right: 8px; }
.readout .sw.dash { height: 0; border-top: 3px dashed var(--red); }
.readout .muted { color: var(--text3); font-weight: 400; font-size: 12.5px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; font-family: inherit; }
.chart .tip { position: absolute; width: 290px; background: #20202e; border: 1px solid #33334a; border-radius: 6px; padding: 8px 10px; pointer-events: none; font-size: 12.5px; line-height: 1.35; z-index: 2; }
.chart .tip .muted { color: var(--text3); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 0 0; font-size: 12.5px; color: var(--text2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.source { color: var(--text3); font-size: 12.5px; line-height: 1.45; margin: 10px 0 0 !important; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 1.4em 0; }
.stat { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--panel); }
.stat .v { font-size: 26px; font-weight: 800; font-family: var(--mono); line-height: 1.1; }
.stat .v.red { color: var(--red); }
.stat .v.green { color: var(--green); }
.stat .v.purple { color: var(--purple); }
.stat .l { color: var(--text3); font-size: 12.5px; line-height: 1.35; margin-top: 4px; }
.chart .tip { background: #232834; border-color: #3a4050; }
