/*
 * GBP Stablecoins: analytics page, built from the Pen frame "I2 · Analytics · holders in the hero" (X3OXQ),
 * which is frame I (nkWLj) with dominance, holders and wallets-and-people side by side.
 * Loaded after d2.css on /analytics/ only (d2/analytics.php).
 */
.d2-anhead__title, .d2-achead__t, .d2-ancite__title, .d2-ahold__v, .d2-apeople__v { font-variation-settings: "opsz" 18; font-optical-sizing: none; }

/* Page head (I7NQh6) */
/* Hub heads share one rhythm (eyebrow 36px down, title 14px under it) so moving between hubs nothing jumps. */
.d2-anhead { display: flex; justify-content: space-between; align-items: flex-end; height: 167px; padding: 36px var(--shell-pad) 24px; }
.d2-anhead__titles { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.d2-anhead__title { margin-top: 4px; }
.d2-anhead__eyebrow { font: 400 11px/14px var(--font-mono); letter-spacing: 1.6px; color: var(--accent); }
.d2-anhead__title { font-family: var(--font-heading); font-size: 48px; line-height: 48px; font-weight: 400; letter-spacing: -0.6px; color: var(--ink); white-space: nowrap; }
.d2-anhead__sub { font-size: 16px; line-height: 21px; color: var(--ink-secondary); white-space: nowrap; }
.d2-andl { display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 10px 14px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/17px var(--font-body); color: var(--ink); white-space: nowrap; }
.d2 .d2-andl:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--ink-muted); }

/* Headline stats (XaukI) */
.d2-anstats { display: flex; gap: 16px; padding: 0 var(--shell-pad) 28px; }
.d2-anstat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.d2-anstat__k { font: 400 10px/13px var(--font-mono); letter-spacing: 1.2px; color: var(--ink-muted); }
.d2-anstat__v { font: 400 28px/36px var(--font-mono); letter-spacing: -0.6px; color: var(--ink); white-space: nowrap; }
.d2-anstat__d { font-size: 12px; line-height: 16px; color: var(--ink-secondary); min-height: 16px; }

/* Charts (F0CxX) */
.d2-ancharts { display: flex; flex-direction: column; gap: 20px; padding: 0 var(--shell-pad) 32px; }
.d2-anrow { display: flex; align-items: flex-start; gap: 20px; }
.d2-anrow > .d2-apanel { flex: 1 1 0; min-width: 0; }
.d2-apanel { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.d2-achead { display: flex; flex-direction: column; gap: 4px; }
.d2-achead__t { font-family: var(--font-heading); font-size: 22px; line-height: 22px; font-weight: 400; color: var(--ink); }
.d2-achead__t a { color: inherit; text-decoration: none; }
.d2-achead__f { font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.d2-alegend { display: flex; align-items: center; gap: 16px; height: 14px; }
.d2-akey { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/14px var(--font-mono); color: var(--ink); white-space: nowrap; }
.d2-akey i { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.d2-alegend--sm { gap: 14px; height: 13px; }
.d2-alegend--sm .d2-akey { font-size: 10px; line-height: 13px; color: var(--ink-secondary); }
.d2-anodata { align-self: center; margin: auto; font-size: 13px; color: var(--ink-muted); }

/* Chart footer and actions */
.d2-afoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 38px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--line); }
.d2-afoot__src { flex: 1; min-width: 0; font: 400 10px/13px var(--font-mono); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d2-abtns { flex: none; display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.d2-abtn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 6px 10px; border: 0; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 400 12px/16px var(--font-body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.d2 .d2-abtn:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--ink-muted); }
/* Copied: the button keeps its label and size; the toast says what was copied. */
.d2-abtn.is-copied { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }

/* Market dominance (W7ttev) */
.d2-adom__controls { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.d2-amode { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: var(--surface-alt); }
.d2-amode button { height: 22px; padding: 4px 10px; border: 0; border-radius: 4px; background: transparent; font: 400 11px/14px var(--font-mono); color: var(--ink-muted); cursor: pointer; }
.d2-amode button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.d2-adom__plot { display: flex; align-items: flex-end; gap: 10px; height: 262px; }
.d2-adom[data-mode="share"] .d2-adom__plot[data-mode="value"], .d2-adom[data-mode="value"] .d2-adom__plot[data-mode="share"] { display: none; }
.d2-adom__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.d2-adom__stack { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 240px; border-radius: 3px; overflow: hidden; }
.d2-adom__stack.is-value { height: auto; border-radius: 3px 3px 0 0; }
.d2-adom__stack.is-empty { background: var(--surface-alt); }
.d2-adom__stack i, .d2-acap__stack i, .d2-atrade__bar i, .d2-ahold__stack i { display: block; flex: none; width: 100%; }
/* A stacked bar is one target: hovering or focusing it shows the whole breakdown (data-stack). */
.d2-adom__col[data-stack], .d2-acap__col[data-stack], .d2-ahold__col[data-stack], .d2-atrade__bar[data-stack] { cursor: default; outline: none; }
.d2-adom__col:hover .d2-adom__stack, .d2-adom__col:focus-visible .d2-adom__stack, .d2-acap__col:hover .d2-acap__stack, .d2-acap__col:focus-visible .d2-acap__stack,
.d2-ahold__col:hover .d2-ahold__stack, .d2-ahold__col:focus-visible .d2-ahold__stack, .d2-atrade__bar:hover, .d2-atrade__bar:focus-visible, .d2-apeg__row i:hover { filter: brightness(1.12); }
.d2-adom__l { font: 400 10px/13px var(--font-mono); color: var(--ink-muted); }
.d2-adom__l.is-current { color: var(--ink); }
.d2-adom__years { display: flex; justify-content: space-between; height: 13px; font: 400 10px/13px var(--font-mono); color: var(--ink-muted); }

/* Hero row (ZDpdS): dominance at 560, holders and wallets-and-people share the rest; every card is the row's height. */
.d2-anhero { display: flex; align-items: stretch; gap: 20px; }
.d2-anhero > .d2-adom { flex: 0 0 560px; min-width: 0; }
.d2-anhero > .d2-ahold, .d2-anhero > .d2-apeople { flex: 1 1 0; min-width: 0; }
.d2-anhero .d2-adom__plot { gap: 6px; }
.d2-anhero .d2-afoot { flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 10px; height: auto; margin-top: auto; }
/* Dominance sets the row's height, so its footer follows the plot (I2 draws the people card 1px over the row; the build lets the row grow instead). */
.d2-anhero .d2-adom .d2-afoot { margin-top: 0; }
.d2-anhero .d2-afoot__src { flex: none; align-self: stretch; white-space: normal; line-height: 15px; overflow: visible; text-overflow: clip; }
.d2-afoot__src a { color: inherit; }

/* Holders (a9Bqc) */
.d2-ahold__fig { display: flex; align-items: flex-end; gap: 12px; height: 40px; }
.d2-ahold__v { font-family: var(--font-heading); font-size: 40px; line-height: 40px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.d2-ahold__deltas { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; font: 400 11px/14px var(--font-mono); white-space: nowrap; }
.d2-ahold__week { color: var(--accent); }
.d2-ahold__conc { color: var(--ink-muted); }
.d2-ahold__plot { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; gap: 6px; }
.d2-ahold__col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.d2-ahold__stack { display: flex; flex-direction: column; width: 100%; border-radius: 2px 2px 0 0; overflow: hidden; }
.d2-ahold__l { font: 400 9px/12px var(--font-mono); color: var(--ink-muted); }

/* Wallets and people (OYnmw) */
.d2-apeople__funnel { display: flex; flex-direction: column; gap: 16px; }
.d2-apeople__step { display: flex; flex-direction: column; gap: 6px; }
.d2-apeople__line { display: flex; justify-content: space-between; align-items: flex-end; height: 20px; }
.d2-apeople__k { font-size: 13px; line-height: 17px; color: var(--ink); }
.d2-apeople__v { font-family: var(--font-heading); font-size: 20px; line-height: 20px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.d2-apeople__track { display: flex; height: 10px; border-radius: 2px; background: var(--track); overflow: hidden; }
.d2-apeople__track i { flex: none; height: 10px; }
.d2-apeople__note { font: 400 10px/13px var(--font-mono); color: var(--ink-muted); }
.d2-apeople__ex { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; background: var(--track-alt); }
.d2-apeople__exnote { font-size: 12px; line-height: 17px; color: var(--ink-secondary); }

/* Market cap (AOsOM) */
.d2-acap__plot { display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.d2-acap__col { flex: 1 1 0; min-width: 0; height: 200px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.d2-acap__stack { display: flex; flex-direction: column; width: 100%; border-radius: 2px 2px 0 0; overflow: hidden; }
.d2-acap__l { font: 400 9px/12px var(--font-mono); color: var(--ink-muted); }

/* Sterling vs other stablecoins (inwyI) */
.d2-acur__bar { display: flex; flex-direction: column; gap: 6px; }
.d2-acur__head { display: flex; justify-content: space-between; font-size: 13px; line-height: 17px; color: var(--ink); }
.d2-acur__head .is-bold { font-weight: 600; }
.d2-acur__v { font: 400 12px/16px var(--font-mono); white-space: pre; }
.d2-acur__track { height: 14px; border-radius: 3px; background: var(--surface-alt); }
.d2-acur__track i { display: block; height: 14px; min-width: 2px; border-radius: 3px; }
.d2-acur__note { display: flex; align-items: center; gap: 8px; height: 36px; padding: 10px 12px; border-radius: 6px; background: var(--accent-soft); font-size: 12px; line-height: 16px; color: var(--accent); }

/* Peg health (G1PRje) */
.d2-apeg__map { display: flex; flex-direction: column; gap: 4px; }
.d2-apeg__row { display: flex; align-items: center; gap: 3px; height: 22px; }
.d2-apeg__k { flex: none; width: 44px; font: 400 11px/14px var(--font-mono); color: var(--ink); }
.d2-apeg__row i { flex: 1 1 0; min-width: 0; height: 22px; border-radius: 2px; }
.d2-apeg__x { display: flex; justify-content: space-between; height: 12px; padding-left: 47px; font: 400 9px/12px var(--font-mono); color: var(--ink-muted); }

/* Where tGBP trades (WyAef) */
.d2-atrade__plot { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.d2-atrade__bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 2px 2px 0 0; overflow: hidden; }

/* Cite this data (VaZG3) */
.d2-ancite { display: flex; align-items: flex-start; gap: 20px; padding: 8px var(--shell-pad) 40px; }
.d2-ancite__panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 10px; background: var(--surface-inverse); }
.d2-ancite__eyebrow { font: 400 11px/14px var(--font-mono); letter-spacing: 1.6px; color: var(--accent-bright); }
.d2-ancite__title { font-family: var(--font-heading); font-size: 24px; line-height: 24px; font-weight: 400; color: var(--ink-inverse); }
.d2-ancite__box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 6px; background: #FFFFFF0F; box-shadow: inset 0 0 0 1px #FFFFFF26; }
.d2-ancite__box p { flex: 1; min-width: 0; font: 400 12px/18px var(--font-mono); color: #DCE6D8; overflow-wrap: break-word; }
.d2-ancite__copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 7px 12px; border: 0; border-radius: 6px; background: var(--accent-bright); font: 500 12px/16px var(--font-body); color: var(--on-accent); cursor: pointer; }
.d2-ancite__copy.is-copied span { font-size: 0; }
.d2-ancite__copy.is-copied span::after { content: "Copied"; font-size: 12px; }
.d2-ancite__meta { font-size: 12px; line-height: 16px; color: var(--footer-muted); }
.d2-ancite__meta a { color: inherit; }
.d2-annext { flex: none; width: 420px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.d2-annext__eyebrow { font: 400 11px/14px var(--font-mono); letter-spacing: 1.6px; color: var(--ink-muted); }
.d2-annext__item { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 17px; color: var(--ink-secondary); }
.d2-annext__item i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ?embed=<chart>: the chart alone */
body.d2-embed { margin: 0; background: var(--surface); }
.d2-an--embed { padding: 12px; }
.d2-an-embedcredit { margin-top: 8px; font: 400 11px/14px var(--font-mono); color: var(--ink-muted); }

.d2-ancite__more { display: none; }

/* Tablet: the head wraps and the cite card stacks; the hero puts dominance on its own row. */
@media (max-width: 1100px) {
  .d2-ahold__plot { min-height: 200px; }
  .d2-anhead { height: auto; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
  .d2-anhead__sub { white-space: normal; }
  .d2-ancite { flex-direction: column; align-items: stretch; }
  .d2-annext { width: auto; }
  /* Chart footers: the source line gets its own row instead of being squeezed to a few characters. */
  .d2-afoot { flex-wrap: wrap; height: auto; row-gap: 8px; }
  .d2-afoot__src { flex-basis: 100%; white-space: normal; }
}

/* Trading volume (Pen U, G421g): an SVG that stretches to the panel, with HTML
   gridlines, labels and hover tips; the range buttons pick one of three plots. */
.d2-avol__controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.d2-avol .d2-alegend { height: auto; flex-wrap: wrap; row-gap: 6px; }
.d2-avol .d2-akey--line i { width: 14px; height: 2.5px; border-radius: 1px; }
.d2-avol .d2-amode { display: flex; }
.d2-avol__plot { position: relative; display: none; height: 230px; margin: 4px 0 24px 44px; }
.d2-avol[data-mode="30"] .d2-avol__plot[data-mode="30"],
.d2-avol[data-mode="90"] .d2-avol__plot[data-mode="90"],
.d2-avol[data-mode="365"] .d2-avol__plot[data-mode="365"] { display: block; }
.d2-avol__grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.d2-avol__grid.is-zero { background: var(--ink-muted); }
.d2-avol__y { position: absolute; left: -44px; width: 38px; transform: translateY(50%); text-align: right; font: 400 10px/12px var(--font-mono); color: var(--ink-muted); }
.d2-avol__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.d2-avol__bars { fill: var(--line); }
.d2-avol__today { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; }
.d2-avol__sofar { position: absolute; right: 0; margin-bottom: 4px; font: 400 10px/12px var(--font-mono); color: var(--accent); white-space: nowrap; pointer-events: none; }
.d2-akey--sofar i { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.d2-avol__ex, .d2-avol__on { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.d2-avol__ex { stroke: var(--ink); }
.d2-avol__on { stroke: #7FA48A; }
.d2-avol__marker { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--accent); }
.d2-avol__mlabel { position: absolute; top: 2px; transform: translateX(calc(-100% - 6px)); font: 400 10px/12px var(--font-mono); color: var(--accent); white-space: nowrap; }
.d2-avol__x { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); font: 400 10px/12px var(--font-mono); color: var(--ink-muted); white-space: nowrap; }
.d2-avol__hits { position: absolute; inset: 0; display: flex; }
.d2-avol__hits span { flex: 1 1 0; }
.d2-avol__hits span:hover { background: var(--accent-soft); opacity: 0.5; }

/* Under 1400: three charts in one row leave the side panels too narrow for their
   footers; dominance takes the full width and holders and wallets sit side by side. */
@media (max-width: 1399px) {
  .d2-anhero { flex-wrap: wrap; }
  .d2-anhero > .d2-adom { flex-basis: 100%; }
  .d2-anhero > .d2-ahold, .d2-anhero > .d2-apeople { flex-basis: calc(50% - 10px); }
}

/* 761 to 900: two charts side by side get too narrow to read, so one per row. */
@media (min-width: 761px) and (max-width: 900px) {
  .d2-anrow { flex-direction: column; align-items: stretch; }
  .d2-anrow > .d2-apanel { flex: none; }
  .d2-anhero > .d2-ahold, .d2-anhero > .d2-apeople { flex-basis: 100%; }
}

/* =====================================================================
   Mobile (Pen e4kNBI "I · Mobile · Analytics"), 390 wide
   ===================================================================== */
@media (max-width: 760px) {
  .d2-anhead { flex-direction: column; justify-content: flex-start; align-items: flex-start; height: auto; padding: 20px 16px 12px; }
  .d2-anhead__titles { gap: 8px; }
  .d2-anhead__title { margin-top: 4px; }
  .d2-anhead__eyebrow { font-size: 10px; line-height: 13px; letter-spacing: 1.3px; }
  .d2-anhead__title { font-size: 30px; line-height: 30px; letter-spacing: -0.4px; white-space: normal; }
  .d2-anhead__sub { font-size: 14px; line-height: 18px; white-space: normal; }
  .d2-andl { display: none; }
  .d2-an-wide { display: none; }

  .d2-anstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 16px 16px; }
  .d2-anstat { gap: 4px; padding: 12px; border-radius: 8px; }
  .d2-anstat__k { font-size: 8px; line-height: 10px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .d2-anstat__v { font-size: 20px; line-height: 26px; letter-spacing: -0.4px; }
  .d2-anstat:nth-child(3) .d2-anstat__v { font-size: 16px; line-height: 21px; }
  .d2-anstat__d { font-size: 10px; line-height: 13px; min-height: 13px; }

  .d2-ancharts { gap: 14px; padding: 0 16px 14px; }
  .d2-anrow { flex-direction: column; align-items: stretch; gap: 14px; }
  .d2-apanel { gap: 12px; padding: 16px; }
  .d2-achead { gap: 12px; }
  .d2-achead__t { font-size: 20px; line-height: 20px; }
  .d2-achead__f { font-size: 13px; line-height: 19px; }
  .d2-alegend, .d2-alegend--sm { gap: 12px; height: 13px; }
  .d2-akey, .d2-alegend--sm .d2-akey { gap: 5px; font-size: 10px; line-height: 13px; color: var(--ink); }
  .d2-akey i { width: 8px; height: 8px; }

  /* Footer: the three actions fill the row; source and Embed are desktop only. */
  .d2-afoot { height: 40px; padding-top: 8px; }
  .d2-afoot__src { display: none; }
  .d2-abtns { flex: 1; gap: 6px; }
  .d2-abtn { flex: 1 1 0; justify-content: center; height: 32px; padding: 8px 0; }
  .d2-abtn[data-label="Embed"] { display: none; }
  .d2-avol__plot { height: 170px; margin-left: 36px; }
  .d2-avol__y { left: -36px; width: 30px; }
  .d2-avol__controls { flex-direction: column; align-items: flex-start; }

  /* Hero: one column; footers go back to the mobile action row. */
  .d2-anhero { flex-direction: column; gap: 14px; }
  .d2-anhero > .d2-adom, .d2-anhero > .d2-ahold, .d2-anhero > .d2-apeople { flex: none; }
  .d2-anhero .d2-afoot { flex-direction: row; align-items: center; height: 40px; margin-top: 0; }
  .d2-anhero .d2-afoot__src { display: none; }
  .d2-ahold__v { font-size: 32px; line-height: 32px; }
  .d2-ahold__fig { height: 32px; }
  .d2-ahold__plot { flex: none; height: 160px; min-height: 0; gap: 4px; }
  .d2-ahold__stack i { height: calc(var(--h) * 0.64px) !important; }
  .d2-ahold__l { font-size: 8px; line-height: 10px; }
  .d2-apeople__funnel { gap: 12px; }
  .d2-apeople__k { font-size: 12px; line-height: 16px; }
  .d2-apeople__v { font-size: 18px; line-height: 18px; }

  /* Market dominance: bars scale from the desktop's 240px stack to 150px. */
  .d2-adom__controls { height: 13px; }
  .d2-amode { display: none; }
  .d2-adom__plot { gap: 4px; height: 170px; }
  .d2-adom__col { gap: 4px; }
  .d2-adom__stack { height: 150px; border-radius: 2px; }
  .d2-adom__stack i { height: calc(var(--h) * 0.625px) !important; }
  .d2-adom__l { font-size: 8px; line-height: 10px; }
  .d2-adom__years { display: none; }

  /* Market cap: 184px bar area becomes 126px. */
  .d2-acap .d2-alegend { display: none; }
  .d2-acap__plot { gap: 4px; height: 140px; }
  .d2-acap__col { height: 140px; gap: 4px; }
  .d2-acap__stack i { height: calc(var(--h) * 0.685px) !important; }
  .d2-acap__l { font-size: 8px; line-height: 10px; }

  /* Sterling vs other stablecoins */
  .d2-acur__bar { gap: 4px; }
  .d2-acur__head { font-size: 12px; line-height: 16px; }
  .d2-acur__v { font-size: 11px; line-height: 14px; }
  .d2-acur__track { height: 10px; overflow: hidden; }
  .d2-acur__track i { height: 10px; max-width: 100%; }
  .d2-acur__note { display: none; }

  /* Peg health */
  .d2-apeg .d2-alegend { display: none; }
  .d2-apeg__map { gap: 3px; }
  .d2-apeg__row { gap: 2px; height: 16px; }
  .d2-apeg__k { width: 34px; font-size: 9px; line-height: 12px; }
  .d2-apeg__row i { height: 16px; border-radius: 1px; }
  .d2-apeg__x { display: none; }

  /* Where tGBP trades: 150px plot becomes 120px. */
  .d2-atrade__plot { gap: 2px; height: 120px; }
  .d2-atrade__bar i { height: calc(var(--h) * 0.8px) !important; }

  /* Cite */
  .d2-ancite { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 16px 20px; }
  .d2-ancite__panel { gap: 10px; padding: 16px; }
  .d2-ancite__eyebrow { font-size: 9px; line-height: 12px; letter-spacing: 1.2px; }
  .d2-ancite__title, .d2-ancite__meta, .d2-annext { display: none; }
  .d2-ancite__box { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; background: none; box-shadow: none; }
  .d2-ancite__box p { font-size: 11px; line-height: 16.5px; }
  .d2-ancite__copy { justify-content: center; height: 35px; padding: 9px 0; font-size: 13px; line-height: 17px; }
  .d2-ancite__copy svg { display: none; }
  .d2-ancite__more { display: inline; }
}

/* Copy image (assets/d2/share-image.js): the toast after copying, and the
   press-and-hold sheet for phones where the share sheet refuses. */
.d2-abtn[aria-busy="true"] { cursor: progress; }
.d2-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: var(--surface-inverse); color: var(--ink-inverse); font: 400 13px/17px var(--font-body); box-shadow: 0 8px 24px var(--shadow-3); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.d2-toast::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--accent-bright); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.d2-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.d2-imgsheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: #13261ACC; }
.d2-imgsheet__panel { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 640px; padding: 16px; border-radius: 12px; background: var(--card); }
.d2-imgsheet__panel img { display: block; width: 100%; height: auto; border-radius: 6px; }
.d2-imgsheet__panel p { font-size: 14px; line-height: 20px; color: var(--ink-secondary); text-align: center; }
.d2-imgsheet__panel button { height: 40px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: 500 14px/18px var(--font-body); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .d2-toast { transition: none; } }
