/* NVDA earnings, Nov 17, 2026: the post's five figures ([diagram nvda-*]). Loaded only on that post.
   Same look as the October earnings figures (blog-earnings.css) but self-contained: every class is
   nv- and nothing here depends on ew- rules. Built on the landing tokens (landing.css). Complete
   without JS; the only motion is the global [data-lp-reveal] observer adding .is-in, and it only
   plays when motion is allowed. */

.nv-figure {
  --nv-ink: var(--lp-bg); --nv-panel: var(--lp-surface);
  --nv-line: var(--lp-border); --nv-line-2: var(--lp-border-strong);
  --nv-accent: var(--lp-accent); --nv-accent-hi: #e8d8ff; --nv-accent-lo: var(--lp-primary-2);
  --nv-ivory: var(--lp-text); --nv-mute: var(--lp-muted); --nv-faint: var(--lp-faint);
  --nv-pos: var(--lp-green); --nv-neg: var(--lp-red); --nv-flip: var(--lp-amber);
  --nv-serif: var(--lp-font-title);
  --nv-ease: cubic-bezier(.22, .8, .16, 1);
  --nv-grad-pos: linear-gradient(90deg, #15803d, #4ade80);
  --nv-grad-neg: linear-gradient(90deg, #fb7185, #9f1239);
  color: var(--nv-ivory);
  font-variant-numeric: tabular-nums;
}
.nv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= frame ================= */
.lp-prose .nv-figure {
  container: nv-fig / inline-size;
  position: relative; isolation: isolate; overflow: hidden;
  margin: 2.4em 0; padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--nv-line); border-radius: 18px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(196, 163, 255, .08), transparent 60%),
    linear-gradient(180deg, var(--nv-panel), var(--nv-ink));
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(243, 238, 255, .05);
  font-size: 15px; line-height: 1.5;
}
.lp-prose .nv-figure :where(p, ol, ul, li, dl, dt, dd, section) { margin: 0; padding: 0; list-style: none; }
.lp-prose .nv-figure figcaption { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--nv-line); color: var(--nv-mute); font-size: 13px; line-height: 1.6; text-align: left; }
.nv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 10px; }
.nv-kicker { display: flex; align-items: center; gap: 10px; color: var(--nv-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.nv-kicker::before { content: ""; width: 18px; height: 1px; background: var(--nv-accent); }
.lp-prose .nv-figure .nv-title { margin-top: 8px; color: var(--nv-ivory); font-family: var(--nv-serif); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.nv-stat { color: var(--nv-mute); font-size: 13px; text-align: right; }
.nv-num { font-family: var(--nv-serif); font-weight: 700; letter-spacing: -.02em; background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-stat .nv-num { display: block; padding: 0 .04em .04em 0; font-size: 34px; line-height: 1.05; }
.lp-prose .nv-figure .nv-asof { margin-bottom: 18px; color: var(--nv-faint); font-size: 12px; letter-spacing: .04em; }
.lp-prose .nv-figure .nv-key-line { margin-top: 12px; color: var(--nv-faint); font-size: 12px; }
@container nv-fig (max-width: 520px) {
  .nv-stat { text-align: left; }
}

/* Legend chips */
.nv-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--nv-mute); font-size: 12px; }
.nv-lg { display: inline-flex; align-items: center; gap: 8px; }
.nv-lg::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.nv-lg--inner::before { background: rgba(196, 163, 255, .3); box-shadow: inset 0 0 0 1px var(--nv-accent); }
.nv-lg--outer::before { background: rgba(196, 163, 255, .07); box-shadow: inset 0 0 0 1px rgba(196, 163, 255, .35); }
.nv-lg--flip::before { height: 0; border-radius: 0; border-top: 2px dashed var(--nv-flip); }
.nv-lg--avg::before { width: 0; height: 14px; border-radius: 0; border-left: 1px dashed rgba(243, 238, 255, .6); }
.nv-lg--pos::before { background: var(--nv-grad-pos); }
.nv-lg--neg::before { background: var(--nv-grad-neg); }

/* ================= nvda-levels: the price ladder ================= */
.nv-ladder {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(64px, 28%, 180px) minmax(0, 1fr); column-gap: 14px;
  height: 520px; margin-top: 8px;
}
.nv-ladder-side, .nv-ladder-track { position: relative; }
.nv-ladder-track { border-radius: 10px; background: rgba(243, 238, 255, .025); box-shadow: inset 0 0 0 1px var(--nv-line); }
.nv-tick { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px dashed rgba(243, 238, 255, .08); }
.nv-tick > span { position: absolute; left: 6px; top: 0; transform: translateY(-50%); color: var(--nv-faint); font-size: 10px; line-height: 1; }
.nv-band { position: absolute; left: 0; right: 0; top: var(--t); height: var(--h); }
.nv-band--outer { background: rgba(196, 163, 255, .06); border-block: 1px dashed rgba(196, 163, 255, .4); }
.nv-band--inner {
  left: 12%; right: 12%; border-radius: 4px;
  background: linear-gradient(90deg, rgba(196, 163, 255, .12), rgba(196, 163, 255, .3) 50%, rgba(196, 163, 255, .12));
  border-block: 2px solid var(--nv-accent); box-shadow: 0 0 24px -6px rgba(148, 103, 254, .7);
}
.nv-line { position: absolute; left: -4px; right: -14px; top: var(--y); border-top: 1.5px solid; }
.nv-line--close { border-color: var(--nv-ivory); box-shadow: 0 0 10px rgba(243, 238, 255, .55); }
.nv-line--flip { border-top-style: dashed; border-color: var(--nv-flip); }
.nv-line--put { border-color: var(--nv-neg); }
.nv-line--call { border-color: var(--nv-pos); }
.nv-edge { position: absolute; right: 0; top: var(--y); transform: translateY(-50%); color: var(--nv-accent-hi); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.nv-edge.is-outer { color: var(--nv-mute); font-weight: 500; }
.nv-edge-who { margin-right: 4px; color: var(--nv-faint); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.nv-level { position: absolute; left: 0; top: var(--y); transform: translateY(-50%); display: grid; line-height: 1.2; }
.nv-level-name { color: var(--nv-mute); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nv-level-price { font-family: var(--nv-serif); font-size: 16px; font-weight: 600; }
.nv-level--close .nv-level-price { font-size: 19px; }
.nv-level--flip .nv-level-name, .nv-level--flip .nv-level-price { color: var(--nv-flip); }
.nv-level--put .nv-level-price { color: #fda4af; }
.nv-level--call .nv-level-price { color: #86efac; }
@container nv-fig (max-width: 520px) {
  .nv-ladder { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); column-gap: 10px; height: 470px; }
  .nv-edge { font-size: 12px; }
  .nv-edge-who { font-size: 10px; }
  .nv-level-name { font-size: 9.5px; letter-spacing: .08em; }
  .nv-tick > span { font-size: 9px; left: 4px; }
}

/* ================= nvda-term: IV by expiry ================= */
.nv-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.nv-col { display: grid; grid-template-rows: 20px 220px auto auto auto; justify-items: center; row-gap: 6px; text-align: center; }
.nv-col-tag { align-self: end; color: var(--nv-accent); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.nv-col.is-earn .nv-col-tag { justify-self: start; }
.nv-col-track { display: flex; align-items: flex-end; width: min(100%, 64px); height: 100%; border-bottom: 1px solid var(--nv-line-2); }
.nv-col-bar {
  position: relative; display: block; width: 100%; height: var(--h); border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, rgba(196, 163, 255, .34), rgba(196, 163, 255, .07));
  box-shadow: inset 0 1px 0 rgba(243, 238, 255, .18);
}
.nv-col.is-earn .nv-col-bar { background: linear-gradient(180deg, #d9c4ff, #7c4dde); box-shadow: 0 0 26px -6px rgba(148, 103, 254, .9); }
.nv-col-iv { position: absolute; top: 8px; left: 0; right: 0; color: var(--nv-ivory); font-size: 13px; font-weight: 600; white-space: nowrap; }
.nv-col.is-earn .nv-col-iv { color: #12062e; }
.nv-col-date { display: grid; color: var(--nv-mute); font-size: 12.5px; line-height: 1.25; white-space: nowrap; }
.nv-col-dow { color: var(--nv-faint); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nv-col-strad { color: var(--nv-ivory); font-size: 13px; font-weight: 500; }
.nv-col-pct { color: var(--nv-mute); font-size: 12px; }
.nv-col.is-earn :is(.nv-col-date, .nv-col-strad, .nv-col-pct) { color: var(--nv-accent-hi); }
@container nv-fig (max-width: 520px) {
  .nv-cols { gap: 4px; }
  .nv-col { grid-template-rows: 18px 190px auto auto auto; }
  .nv-col-iv { font-size: 11px; top: 6px; }
  .nv-col-date, .nv-col-strad { font-size: 11.5px; }
  .nv-col-pct { font-size: 11px; }
  .nv-col-dow { font-size: 9px; letter-spacing: .08em; }
}

/* ================= nvda-trend: implied move by close ================= */
.nv-trend-chart { margin-top: 30px; padding-left: 38px; }
.nv-trend-plot { position: relative; height: 220px; }
.nv-grid { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px dashed rgba(243, 238, 255, .09); }
.nv-grid > span { position: absolute; left: -38px; top: 0; transform: translateY(-50%); color: var(--nv-faint); font-size: 10.5px; line-height: 1; }
.nv-trend-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nv-trend-line polyline { fill: none; stroke: var(--nv-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(148, 103, 254, .7)); }
.nv-pt { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--nv-ink); box-shadow: 0 0 0 2px var(--nv-accent); }
.nv-pt.is-last { background: #fff; box-shadow: 0 0 0 4px rgba(196, 163, 255, .45), 0 0 16px rgba(196, 163, 255, .9); }
.nv-pt-v { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--nv-mute); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nv-pt.is-last .nv-pt-v { color: var(--nv-ivory); font-size: 14px; }
.nv-trend-axis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--nv-line); }
.nv-day { display: grid; justify-items: center; gap: 1px; text-align: center; white-space: nowrap; }
.nv-day-dow { color: var(--nv-faint); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nv-day-md { color: var(--nv-mute); font-size: 12.5px; }
.nv-day-close { color: var(--nv-ivory); font-size: 12.5px; font-weight: 500; }
.nv-day.is-last :is(.nv-day-md, .nv-day-close) { color: var(--nv-accent-hi); }
@container nv-fig (max-width: 520px) {
  .nv-trend-chart { padding-left: 30px; }
  .nv-grid > span { left: -30px; font-size: 9.5px; }
  .nv-trend-plot { height: 190px; }
  .nv-pt-v { font-size: 10.5px; }
  .nv-pt.is-last .nv-pt-v { font-size: 12px; }
  .nv-day-md, .nv-day-close { font-size: 10.5px; }
  .nv-day-dow { font-size: 9px; letter-spacing: .06em; }
}

/* ================= nvda-flow: premium split + gamma map ================= */
.nv-flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 8px; }
.lp-prose .nv-figure .nv-part-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--nv-mute); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.nv-part-n { color: var(--nv-accent); font-family: var(--nv-serif); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.lp-prose .nv-figure .nv-big { margin-bottom: 14px; color: var(--nv-mute); font-size: 14px; }
.nv-big .nv-num { margin-right: 8px; font-size: 32px; line-height: 1; }
.nv-split { display: flex; gap: 3px; height: 14px; }
.nv-seg { flex: 0 1 var(--w); min-width: 3px; border-radius: 3px; transform-origin: left; }
.nv-seg--bull { background: linear-gradient(180deg, #4ade80, #15803d); box-shadow: 0 0 14px rgba(34, 197, 94, .35); }
.nv-seg--neutral { background: repeating-linear-gradient(135deg, rgba(243, 238, 255, .2) 0 4px, rgba(243, 238, 255, .08) 4px 8px); }
.nv-seg--bear { background: linear-gradient(180deg, #fb7185, #be123c); box-shadow: 0 0 14px rgba(244, 63, 94, .35); }
.lp-prose .nv-figure .nv-split-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.nv-split-item { padding-left: 10px; border-left: 2px solid; }
.nv-split-item--bull { border-color: var(--nv-pos); }
.nv-split-item--neutral { border-color: rgba(243, 238, 255, .35); }
.nv-split-item--bear { border-color: var(--nv-neg); }
.lp-prose .nv-figure .nv-split-item dt { color: var(--nv-mute); font-size: 12px; }
.lp-prose .nv-figure .nv-split-item dd { color: var(--nv-ivory); font-family: var(--nv-serif); font-size: 18px; font-weight: 600; line-height: 1.25; }
.nv-vs { margin-top: 18px; }
.lp-prose .nv-figure .nv-vs-head { display: flex; justify-content: space-between; gap: 12px; color: var(--nv-mute); font-size: 12.5px; line-height: 1.35; }
.nv-vs-head > span:last-child { text-align: right; white-space: nowrap; }
.nv-vs-bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: rgba(148, 103, 254, .32); overflow: hidden; }
.nv-vs-bar > span { display: block; width: var(--w); height: 100%; background: rgba(243, 238, 255, .75); transform-origin: left; }
.nv-vs--week .nv-vs-bar > span { background: linear-gradient(90deg, #d9c4ff, var(--nv-accent)); }

/* Gamma: strikes on a vertical price axis, bars diverge from zero, relative to the largest strike. */
.nv-gex { position: relative; height: 440px; margin-left: 34px; }
.nv-gex-zero { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid rgba(243, 238, 255, .3); }
.nv-gex-bar { position: absolute; top: var(--y); height: 4px; margin-top: -2px; width: calc(var(--w) / 2); border-radius: 2px; }
.nv-gex-bar.is-pos { left: 50%; background: var(--nv-grad-pos); transform-origin: left; }
.nv-gex-bar.is-neg { right: 50%; background: var(--nv-grad-neg); transform-origin: right; }
.nv-gex-k { position: absolute; left: -34px; top: var(--y); transform: translateY(-50%); color: var(--nv-faint); font-size: 10.5px; line-height: 1; }
.nv-gex-mark { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px solid; }
.nv-gex-tag { position: absolute; right: 0; bottom: 3px; padding: 1px 6px; border-radius: 4px; background: rgba(12, 5, 32, .82); font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.nv-gex-mark--call .nv-gex-tag { right: auto; left: 0; }
.nv-gex-mark--close { border-color: var(--nv-ivory); }
.nv-gex-mark--close .nv-gex-tag { color: var(--nv-ivory); }
.nv-gex-mark--flip { border-top-style: dashed; border-color: var(--nv-flip); }
.nv-gex-mark--flip .nv-gex-tag { color: var(--nv-flip); }
.nv-gex-mark--put { border-color: rgba(244, 63, 94, .7); }
.nv-gex-mark--put .nv-gex-tag { color: #fda4af; }
.nv-gex-mark--call { border-color: rgba(34, 197, 94, .7); }
.nv-gex-mark--call .nv-gex-tag { color: #86efac; }
@container nv-fig (max-width: 680px) {
  .nv-flow-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nv-flow-grid > .nv-part + .nv-part { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--nv-line); }
}
@container nv-fig (max-width: 420px) {
  .lp-prose .nv-figure .nv-split-key { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nv-gex { height: 400px; }
}

/* ================= nvda-history: the last four reports ================= */
.nv-hist { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; margin-top: 44px; }
.nv-hist-over { grid-column: 2; position: relative; pointer-events: none; }
.nv-hist-band {
  position: absolute; top: -12px; bottom: -12px; left: var(--band-l); width: var(--band-w);
  background: linear-gradient(90deg, rgba(196, 163, 255, .07), rgba(196, 163, 255, .18) 50%, rgba(196, 163, 255, .07));
  border-inline: 1px solid rgba(196, 163, 255, .6);
}
.nv-hist-band-tag { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); color: var(--nv-accent-hi); font-size: 12px; font-weight: 600; white-space: nowrap; }
.nv-hist-avg { position: absolute; top: -6px; bottom: -6px; border-left: 1px dashed rgba(243, 238, 255, .5); }
.nv-hist-zero { position: absolute; left: 50%; top: -12px; bottom: -12px; border-left: 1px solid rgba(243, 238, 255, .35); }
.nv-hist-when { grid-column: 1; align-self: center; color: var(--nv-mute); font-size: 13px; white-space: nowrap; }
.nv-hist-track { grid-column: 2; position: relative; z-index: 1; height: 50px; }
.nv-hist-bar { position: absolute; top: 50%; height: 18px; margin-top: -9px; width: var(--w); border-radius: 4px; }
.nv-hist-bar.is-up { left: 50%; background: var(--nv-grad-pos); transform-origin: left; }
.nv-hist-bar.is-down { right: 50%; background: var(--nv-grad-neg); transform-origin: right; }
.nv-hist-val { position: absolute; top: 50%; transform: translateY(-50%); color: var(--nv-ivory); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.nv-hist-val.is-up { left: calc(50% + var(--w) + 8px); }
.nv-hist-val.is-down { right: calc(50% + var(--w) + 8px); }
.nv-hist-val.is-up.is-inside { left: auto; right: calc(50% - var(--w) + 6px); color: #052e16; }
.nv-hist-val.is-down.is-inside { right: auto; left: calc(50% - var(--w) + 6px); color: #fff; }
.nv-hist-axis { grid-column: 2; position: relative; height: 24px; margin-top: 14px; border-top: 1px solid var(--nv-line); }
.nv-hist-axis > span { position: absolute; top: 6px; transform: translateX(-50%); color: var(--nv-faint); font-size: 10.5px; line-height: 1; white-space: nowrap; }
@container nv-fig (max-width: 520px) {
  .nv-hist { column-gap: 10px; }
  .nv-hist-when { font-size: 11.5px; }
  .nv-hist-val { font-size: 12px; }
  .nv-hist-axis > span { font-size: 9.5px; }
}

/* ================= motion (only with JS and motion allowed) ================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .nv-figure[data-lp-reveal] :is(.nv-col-bar, .nv-band--inner) { transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--nv-ease) calc(var(--i, 0) * 60ms + .15s); }
  html.js .nv-figure[data-lp-reveal] .nv-band--inner { transform-origin: center; }
  html.js .nv-figure[data-lp-reveal] :is(.nv-gex-bar, .nv-hist-bar, .nv-seg, .nv-vs-bar > span) { transform: scaleX(0); transition: transform .8s var(--nv-ease) calc(var(--i, 0) * 25ms + .2s); }
  html.js .nv-figure[data-lp-reveal] .nv-hist-bar { transition-delay: calc(var(--i, 0) * 90ms + .2s); }
  html.js .nv-figure[data-lp-reveal] :is(.nv-pt, .nv-hist-val, .nv-col-iv) { opacity: 0; transition: opacity .5s ease calc(var(--i, 0) * 80ms + .5s); }
  html.js .nv-figure[data-lp-reveal] .nv-trend-line { opacity: 0; transition: opacity .9s ease .2s; }
  html.js .nv-figure[data-lp-reveal].is-in :is(.nv-col-bar, .nv-band--inner, .nv-gex-bar, .nv-hist-bar, .nv-seg, .nv-vs-bar > span) { transform: none; }
  html.js .nv-figure[data-lp-reveal].is-in :is(.nv-pt, .nv-hist-val, .nv-col-iv, .nv-trend-line) { opacity: 1; }
}
