/* Native snapshots retain their original pixels and proportions. These shared
   wrappers use the site's text, colour and frame roles; no chart is redrawn. */
.description-page .native-description-context { max-width: 950px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.description-anchor { display: block; scroll-margin-top: 105px; }
.native-description-figure { scroll-margin-top: 105px; margin: 2rem 0 0; }
.native-description-frame { position: relative; border: 1px solid var(--line); border-radius: var(--chart-frame-radius); overflow: hidden; background: var(--chart-bg); }
.native-description-frame > a { display: block; }
.native-description-frame img { display: block; width: 100%; height: auto; max-width: 100%; }
.native-description-frame > a:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }
.native-description-enlarge { position: absolute; right: 8px; bottom: 8px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--gold-bright); font-size: .8rem; pointer-events: none; }
.native-description-figure figcaption > p { margin: .75rem 0 0; font-size: var(--type-caption-size, .85rem); line-height: 1.65; }
.native-description-sources { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.native-description-sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-bright); text-underline-offset: .2em; }
.native-chart-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border: 0; background: var(--bg); color: var(--ink); }
.native-chart-dialog[open] { display: flex; flex-direction: column; gap: 8px; }
.native-chart-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.native-chart-toolbar h2 { flex: 1 1 100%; margin: 0; font: 600 1rem/1.4 Manrope, sans-serif; }
.native-chart-toolbar button { min-height: 44px; min-width: 44px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--ink); font: 600 .85rem/1.2 Manrope, sans-serif; cursor: pointer; }
.native-chart-toolbar button:disabled { opacity: .45; cursor: default; }
.native-chart-toolbar button:last-child { margin-left: auto; color: var(--gold-bright); }
.native-chart-toolbar output { min-width: 3.25em; color: var(--muted); text-align: center; font-size: .8rem; }
.native-chart-help { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.native-chart-viewport { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--chart-frame-radius); background: #202020; }
.native-chart-canvas { display: grid; place-items: center; min-width: 100%; min-height: 100%; width: max-content; }
.native-chart-canvas img { display: block; max-width: none; flex: none; user-select: none; -webkit-user-drag: none; }
.native-chart-viewport.is-dragging { cursor: grabbing; }
.native-chart-dialog :is(button, .native-chart-viewport):focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -3px; }
