/* Price card, in the locked visual design (Invest with AI Visual Design,
   style guide). The tokens below match the design's; a full site stylesheet
   can define them once and drop this block. */
:root {
  --bg:#F3F6F7; --surface:#FFFFFF; --sunk:#E9EEF0;
  --ink:#13232B; --ink-2:#46575F; --ink-3:#5E6E76;
  --line:#D5DDE1; --line-strong:#7C8D95;
  --accent-edge:#6E5210;
  --sh-1:0 1px 2px rgba(19,35,43,.06), 0 1px 1px rgba(19,35,43,.04);
  --f-display:"Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-data:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#0C1417; --surface:#131D21; --sunk:#1A262B;
  --ink:#E4EBED; --ink-2:#A7B5BB; --ink-3:#8C9BA2;
  --line:#2A3A41; --line-strong:#5E727A;
  --accent-edge:#DDB352;
  --sh-1:0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg:#0C1417; --surface:#131D21; --sunk:#1A262B;
  --ink:#E4EBED; --ink-2:#A7B5BB; --ink-3:#8C9BA2;
  --line:#2A3A41; --line-strong:#5E727A;
  --accent-edge:#DDB352;
  --sh-1:0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}

body { margin:0; background:var(--bg); color:var(--ink); font:400 16px/24px var(--f-body); -webkit-font-smoothing:antialiased; }
.card { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:24px; display:flex; flex-direction:column; gap:16px; min-width:0; box-shadow:var(--sh-1); }
.card-h { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.card-h h3 { margin:0; font:600 18px/26px var(--f-display); letter-spacing:-.01em; }
.src { display:inline-flex; align-items:center; gap:6px; font:500 12px/16px var(--f-body); color:var(--ink-2); border:1px solid var(--line); border-radius:4px; padding:2px 6px; white-space:nowrap; background:var(--surface); }
.src svg { width:12px; height:12px; flex:none; }
.tiny { margin:0; font-size:12px; line-height:16px; color:var(--ink-3); }
.small { margin:0; font-size:14px; line-height:20px; color:var(--ink-2); }

/* The widget fills its container, so the container sets the height. */
.price-chart { position:relative; display:flex; flex-direction:column; gap:8px; }
.price-chart .tradingview-widget-container__widget { height:360px; border-radius:8px; overflow:hidden; }
.price-chart iframe { display:block; border:0; }
/* TradingView's attribution line, kept, in the page's quiet small type. */
.price-chart .tradingview-widget-copyright { font:400 12px/16px var(--f-body); color:var(--ink-3); }
.price-chart .tradingview-widget-copyright a { color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; }
.price-chart .tradingview-widget-copyright a:focus-visible { outline:2px solid var(--accent-edge); outline-offset:2px; border-radius:4px; }

@media (max-width:700px) {
  .price-card { padding:16px; gap:12px; }
  .price-card .card-h h3 { font-size:17px; line-height:24px; }
  .price-chart .tradingview-widget-container__widget { height:300px; }
}
