/* The 3D dash block, shared by the mockups. Colours come from the page's own tokens. */
.d3 { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 32px; align-items: center; }
.d3-view { position: relative; aspect-ratio: 16 / 10.5; border-radius: 10px; overflow: hidden;
  background: radial-gradient(120% 90% at 40% 30%, #f4f7f8 0%, #e3e9ec 62%, #d6dee2 100%);
  border: 1px solid var(--line, #cfd8dc); }
.d3-stage { position: absolute; inset: 0; }
.d3-stage canvas { display: block; touch-action: none; cursor: grab; }
.d3-stage canvas:active { cursor: grabbing; }
/* The 2D demo keeps running here, unseen: the 3D screen is copied from it. */
.d3 #dashdemo { position: absolute; left: 0; top: 0; width: 1008px; opacity: 0; pointer-events: none; z-index: -1; }
.d3 #dashdemo canvas { width: 1008px; height: 570px; display: block; }
.d3-loading { position: absolute; inset: 0; display: grid; place-items: center; font: 13px/1.4 var(--mono, monospace); color: #6b7a83; }
.d3.is-ready .d3-loading { display: none; }
.d3-caption { position: absolute; left: 14px; bottom: 12px; font: 12px/1.4 var(--mono, monospace); color: #5d6c75; }
.d3-side h3 { margin: 0 0 10px; }
.d3-side p { margin: 0 0 14px; }
.d3-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.d3-row button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--btn-line, #9fb0b8);
  background: var(--btn-bg, #fff); color: var(--btn-fg, #1d2a31); cursor: pointer; }
.d3-row button[aria-pressed="true"] { background: var(--btn-on, #1d2a31); color: #fff; border-color: var(--btn-on, #1d2a31); }
.d3-row kbd { font: 11px var(--mono, monospace); opacity: .7; margin-left: 4px; }
.d3-range { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 14px; margin: 0 0 14px; }
.d3-range input { width: 100%; accent-color: var(--btn-on, #1d2a31); }
.d3-note { font-size: 13px; opacity: .75; }
@media (max-width: 860px) { .d3 { grid-template-columns: 1fr; } }

  /* the dash, built as you scroll */
.assemble { height: 380vh; position: relative; }
.as-sticky.d3 { position: sticky; top: 0; height: 100vh; max-width: 1320px; margin: 0 auto; padding: 40px 28px;
  display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.as-sticky .d3-view { aspect-ratio: auto; height: min(78vh, 720px); }
.as-steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line, #cfd8dc); }
.as-steps li { padding: 10px 0 10px 18px; margin-left: -2px; border-left: 2px solid transparent; opacity: .38; transition: opacity .25s, border-color .25s; }
.as-steps li.on { opacity: 1; border-left-color: var(--step-on, var(--mint, #14654a)); }
.as-steps b { display: block; font: 600 19px var(--display, inherit); }
.as-steps span { display: block; font-size: 14.5px; color: var(--mute, var(--muted, #5a6a78)); }
.as-steps .d3-row, .as-steps .d3-range { margin-top: 12px; display: none; }
.as-sticky.is-live .as-live .d3-row { display: flex; }
.as-sticky.is-live .as-live .d3-range { display: grid; }
@media (max-width: 860px) {
  .as-sticky.d3 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 16px; }
  .as-steps li:not(.on) { display: none; }
  .as-sticky .d3-view { height: 58vh; }
}
