/* oaken-explainer.css: themed from the site's Astra globals, overridable per venture with --vx-* vars. */
.oaken-explainer {
  --vx-accent: var(--ast-global-color-0, #046bd2);
  --vx-accent-2: var(--ast-global-color-1, #045cb4);
  --vx-ink: var(--ast-global-color-2, #1e293b);
  --vx-muted: var(--ast-global-color-3, #334155);
  --vx-bg: var(--ast-global-color-5, #f0f5fa);
  --vx-card: var(--ast-global-color-4, #ffffff);
  --vx-line: var(--ast-global-color-7, #d1d5db);
  --vx-good: #15803d;
  --vx-warn: #b45309;
  --vx-bad: #b91c1c;
  --vx-ease: cubic-bezier(.2, .7, .2, 1);
  margin: 2em 0;
  clear: both;
}
.oaken-explainer .vx-fig {
  margin: 0;
  padding: 1.25em 1.25em 1em;
  background: var(--vx-bg);
  border: 1px solid var(--vx-line);
  border-radius: 14px;
  color: var(--vx-ink);
}
.vx-kicker { font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: var(--vx-accent); font-weight: 700; }
.oaken-explainer .vx-title { margin: .2em 0 .25em; font-size: 1.2em; line-height: 1.25; }
.vx-sub { margin: 0 0 1em; color: var(--vx-muted); font-size: .92em; }
.vx-src { margin-top: 1em; font-size: .78em; color: var(--vx-muted); }
.vx-src a { color: inherit; text-decoration: underline; }
.vx-fallback table { width: 100%; border-collapse: collapse; font-size: .92em; }
.vx-fallback td, .vx-fallback th { border-bottom: 1px solid var(--vx-line); padding: .35em .4em; text-align: left; }

/* bars */
.vx-bar { display: grid; grid-template-columns: minmax(7em, 32%) 1fr; gap: .25em .8em; align-items: center; margin: .55em 0; }
.vx-bar-label { font-size: .9em; }
.vx-bar-track { position: relative; height: 1.6em; background: var(--vx-card); border-radius: 8px; overflow: visible; border: 1px solid var(--vx-line); }
.vx-bar-fill { height: 100%; width: 0; background: var(--vx-muted); opacity: .55; border-radius: 8px; transition: width 1s var(--vx-ease); }
.vx-bar.is-hl .vx-bar-fill { background: var(--vx-accent); opacity: 1; }
.vx-bar.is-in .vx-bar-fill { width: var(--w); }
.vx-bar-val { position: absolute; right: .5em; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: .85em; font-variant-numeric: tabular-nums; }
.vx-bar.is-above .vx-bar-fill { background: var(--vx-warn); opacity: .85; }
.vx-bar.is-below .vx-bar-fill { background: var(--vx-good); opacity: .85; }
.vx-bar-ref { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--vx-ink); opacity: .55; }
.vx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; font-size: .78em; color: var(--vx-muted); margin-bottom: .4em; }
.vx-lg-ref { display: inline-block; width: 0; height: 1.1em; border-left: 2px dashed var(--vx-ink); opacity: .55; }
.vx-lg-sw { display: inline-block; width: .9em; height: .9em; border-radius: 3px; margin-left: .6em; }
.vx-lg-above { background: var(--vx-warn); }
.vx-lg-below { background: var(--vx-good); }
.vx-bar-note { grid-column: 2; font-size: .76em; color: var(--vx-muted); }
@media (max-width: 560px) { .vx-bar { grid-template-columns: 1fr; } .vx-bar-note { grid-column: 1; } }

/* stats */
.vx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8em; }
.vx-stat { background: var(--vx-card); border: 1px solid var(--vx-line); border-radius: 12px; padding: 1em; opacity: 0; transform: translateY(10px); transition: .6s var(--vx-ease); }
.vx-stat.is-in { opacity: 1; transform: none; }
.vx-stat-num { font-size: 2em; font-weight: 800; color: var(--vx-accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.vx-stat-label { font-size: .85em; color: var(--vx-muted); margin-top: .3em; }

/* flow */
.vx-flow { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.vx-step { display: flex; gap: .8em; position: relative; padding-bottom: 1em; opacity: 0; transform: translateX(-8px); transition: .55s var(--vx-ease); }
.vx-flow.is-in .vx-step { opacity: 1; transform: none; }
.vx-step:not(:last-child)::before { content: ""; position: absolute; left: 1em; top: 2.1em; bottom: 0; width: 2px; background: var(--vx-line); }
.vx-step-n { flex: 0 0 2em; height: 2em; border-radius: 50%; background: var(--vx-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9em; position: relative; z-index: 1; }
.vx-step-t { display: block; }
.vx-step-x { margin: .2em 0 0; font-size: .9em; color: var(--vx-muted); }
.vx-tag { display: inline-block; margin-left: .5em; font-size: .7em; padding: .1em .5em; border-radius: 99px; background: var(--vx-card); border: 1px solid var(--vx-line); }

/* decision */
.vx-dec-trail { display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: .6em; min-height: 0; }
.vx-chip { font: inherit; font-size: .75em; border: 1px solid var(--vx-line); background: var(--vx-card); border-radius: 99px; padding: .2em .7em; cursor: pointer; color: var(--vx-muted); }
.vx-dec-stage { opacity: 0; transform: translateY(6px); }
.vx-dec-stage.is-in { opacity: 1; transform: none; transition: .35s var(--vx-ease); }
.vx-dec-q { font-weight: 700; font-size: 1.05em; margin: 0 0 .7em; }
.vx-dec-opts { display: flex; flex-wrap: wrap; gap: .5em; }
.vx-btn { font: inherit; font-size: .92em; cursor: pointer; border-radius: 10px; padding: .55em 1em; border: 1px solid var(--vx-accent); background: var(--vx-card); color: var(--vx-accent); transition: .15s; }
.vx-btn:hover, .vx-btn:focus-visible { background: var(--vx-accent); color: #fff; }
.vx-btn-ghost { border-color: var(--vx-line); color: var(--vx-muted); margin-top: .8em; }
.vx-dec-result { border-left: 4px solid var(--vx-accent); background: var(--vx-card); padding: .8em 1em; border-radius: 8px; }
.vx-dec-result p { margin: .3em 0 0; font-size: .92em; }
.vx-tone-good { border-color: var(--vx-good); }
.vx-tone-warn { border-color: var(--vx-warn); }
.vx-tone-bad { border-color: var(--vx-bad); }

/* slider */
.vx-sl-label { display: block; font-size: .92em; margin-bottom: .4em; }
.vx-range { width: 100%; accent-color: var(--vx-accent); }
.vx-sl-out { margin-top: .8em; background: var(--vx-card); border: 1px solid var(--vx-line); border-radius: 12px; padding: .8em 1em; }
.vx-sl-olabel { font-size: .8em; color: var(--vx-muted); }
.vx-sl-num { font-size: 1.8em; font-weight: 800; color: var(--vx-accent); font-variant-numeric: tabular-nums; }
.vx-sl-band { margin: .6em 0 0; font-size: .9em; }

/* compare */
.vx-tabs { display: flex; gap: .4em; margin-bottom: .7em; flex-wrap: wrap; }
.vx-tab { font: inherit; font-size: .88em; cursor: pointer; padding: .45em .9em; border-radius: 99px; border: 1px solid var(--vx-line); background: var(--vx-card); color: var(--vx-ink); }
.vx-tab[aria-pressed="true"] { background: var(--vx-accent); border-color: var(--vx-accent); color: #fff; }
.vx-cmp-grid .vx-cmp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8em; }
.vx-cmp-col { background: var(--vx-card); border: 1px solid var(--vx-line); border-top: 4px solid var(--vx-accent); border-radius: 10px; padding: .8em 1em; opacity: 0; transition: .5s var(--vx-ease); }
.vx-cmp.is-in .vx-cmp-col { opacity: 1; }
.vx-cmp-col.vx-tone-good { border-top-color: var(--vx-good); }
.vx-cmp-col.vx-tone-warn { border-top-color: var(--vx-warn); }
.vx-cmp-col.vx-tone-bad { border-top-color: var(--vx-bad); }
.vx-cmp-col ul { margin: .5em 0 0 1.1em; padding: 0; font-size: .9em; }
.vx-cmp-col li { margin: .25em 0; }

/* timeline */
.vx-tl-axis { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--vx-muted); margin-bottom: .4em; }
.vx-tl-line { list-style: none; margin: 0; padding: 0 0 0 1.1em; border-left: 2px solid var(--vx-line); }
.vx-tl-pt { position: relative; padding: 0 0 1em .9em; opacity: 0; transform: translateY(6px); transition: .5s var(--vx-ease); }
.vx-tl.is-in .vx-tl-pt { opacity: 1; transform: none; }
.vx-tl-pt::before { content: ""; position: absolute; left: -1.55em; top: .35em; width: .8em; height: .8em; border-radius: 50%; background: var(--vx-accent); box-shadow: 0 0 0 3px var(--vx-bg); }
.vx-tl-at { font-size: .78em; font-weight: 700; color: var(--vx-accent); }
.vx-tl-c p { margin: .15em 0 0; font-size: .9em; color: var(--vx-muted); }

/* shapes */
.vx-shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .8em; }
.vx-shape { margin: 0; text-align: center; opacity: 0; transform: scale(.94); transition: .6s var(--vx-ease); }
.vx-shapes.is-in .vx-shape { opacity: 1; transform: none; }
.vx-shape svg { width: 100%; max-width: 130px; height: auto; }
.vx-xsec { fill: var(--vx-card); stroke: var(--vx-accent); stroke-width: 3; }
.vx-xsec-core { fill: var(--vx-accent); opacity: .25; }
.vx-strand { fill: none; stroke: var(--vx-ink); stroke-width: 3.5; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s var(--vx-ease); }
.vx-shapes.is-in .vx-strand { stroke-dashoffset: 0; }
.vx-shape figcaption strong { display: block; font-size: .88em; }
.vx-shape figcaption span { font-size: .76em; color: var(--vx-muted); }

@media (prefers-reduced-motion: reduce) {
  .oaken-explainer * { transition: none !important; animation: none !important; }
  .vx-strand { stroke-dashoffset: 0; }
}
