.vmi-calculator {
  --vc-ink: #112d45;
  --vc-muted: #4b6072;
  --vc-rule: #d9e2e9;
  --vc-buyer: #1766a0;
  --vc-ship: #087766;
  --vc-mine: #ad5218;
  --vc-neutral: #654690;
  --vc-gold: #8b6306;
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 2.45rem);
  background: #f5f8fb;
  border-radius: .65rem;
  color: var(--vc-ink);
  scroll-margin-top: 1rem;
}
.vmi-calculator h3 { font: 400 clamp(1.8rem, 3.5vw, 3rem)/1.12 var(--serif); }
.vmi-example-note {
  max-width: 73ch;
  margin-top: .75rem;
  border-left: 3px solid var(--vc-gold);
  padding: .55rem .85rem;
  background: #fff6dc;
  color: #583c09;
}
.vc-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.vmi-calculator h4 { margin: 0; font-size: clamp(1.12rem, 2.5vw, 1.4rem); line-height: 1.25; }
.vmi-calculator h5 { margin: .2rem 0 .65rem; font-size: 1rem; }
.vc-flow, .vc-scenario { margin-top: 1.4rem; }
.vc-flow-scroll, .vc-chart-scroll, .vc-table-scroll { overflow-x: auto; }
.vc-flow-scroll { margin-top: .8rem; border: 1px solid var(--vc-rule); border-radius: .55rem; background: #fff; }
.vc-flow-svg { display: block; width: 100%; min-width: 950px; }
.vc-lane.buyer, .vc-node.buyer rect { fill: #eaf5ff; }
.vc-lane.ship, .vc-node.ship rect { fill: #e7f6f0; }
.vc-lane.mine, .vc-node.mine rect { fill: #fff0e5; }
.vc-node.neutral rect { fill: #f1eaf9; stroke: var(--vc-neutral); }
.vc-lane-label, .vc-lead-label, .vc-flow-caption, .vc-node text { fill: var(--vc-ink); font-size: 13px; font-weight: 700; }
.vc-lane-label { letter-spacing: .06em; }
.vc-node text.vc-node-sub, .vc-flow-caption { font-size: 12px; font-weight: 400; }
.vc-node.buyer rect { stroke: var(--vc-buyer); }
.vc-node.ship rect { stroke: var(--vc-ship); }
.vc-node.mine rect { stroke: var(--vc-mine); }
.vc-edge.buyer { stroke: var(--vc-buyer); }
.vc-edge.ship, .vc-edge.buffer { stroke: var(--vc-ship); }
.vc-edge.mine { stroke: var(--vc-mine); }
.vc-edge.lead { stroke: var(--vc-buyer); stroke-dasharray: 6 5; }
.vc-edge { fill: none; stroke-width: 2; }
.vc-arrowhead.buyer { fill: var(--vc-buyer); }
.vc-arrowhead.ship, .vc-arrowhead.buffer { fill: var(--vc-ship); }
.vc-arrowhead.mine { fill: var(--vc-mine); }
.vc-arrowhead.lead { fill: var(--vc-buyer); }
.vc-flow-svg .vc-motion-path { opacity: 0; stroke-width: 5; stroke-dasharray: 16 84; stroke-dashoffset: 16; }
.vc-flow-svg.vc-animate .vc-motion-path { animation: vc-transfer 5s linear infinite; animation-delay: var(--vc-delay, 0s); }
.vc-flow-svg.vc-motion-paused .vc-motion-path { animation-play-state: paused; }
@keyframes vc-transfer {
  0% { stroke-dashoffset: 16; opacity: 0; }
  3% { opacity: 1; }
  22% { stroke-dashoffset: -98; opacity: 1; }
  28%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
/* Public VMI presentation */
.vmi-program { padding-bottom: 1.15rem; border-bottom: 1px solid var(--vc-rule); }
.vmi-volume { color: var(--vc-ink); font: 700 clamp(1.5rem, 3.3vw, 2.35rem)/1.25 var(--sans); margin: .4rem 0; }
.vmi-qualifier { color: var(--vc-muted); margin-top: .5rem; }
.vmi-term { display: flex; gap: .35rem; align-items: center; }
.vmi-term h4 { margin: 0; }
.vmi-help { border: 0; margin: 0; padding: 0; position: relative; flex: none; }
.vmi-help summary {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  list-style: none; cursor: pointer; color: var(--vc-ink);
}
.vmi-help summary::-webkit-details-marker { display: none; }
.vmi-help summary span { display: grid; place-items: center; border: 1px solid #697f94; width: 1.25rem; height: 1.25rem; border-radius: 50%; font: 700 .85rem/1 var(--sans); }
.vmi-help > div {
  position: absolute; z-index: 2; left: 0; top: 100%;
  width: min(17rem, 62vw); padding: .55rem .7rem; border: 1px solid #a6bac9; border-radius: .35rem;
  background: #fff; color: var(--vc-ink); box-shadow: 0 5px 16px #112d451a; font: 400 .9rem/1.45 var(--sans);
}
.vmi-terms { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: 0; margin: .6rem 0 0; list-style: none; }
.vmi-benefits, .vmi-prices { margin-top: 1.65rem; }
.vmi-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin-top: .75rem; }
.vmi-cards article { padding: .85rem; border: 1px solid var(--vc-rule); border-radius: .4rem; background: #fff; }
.vmi-cards article p { color: var(--vc-muted); margin-top: .35rem; }
.vmi-price-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.vmi-price-cards article { background: #fffaf0; border-color: #e8dbb5; }
.vmi-price-cards dl { margin: .55rem 0 0; }
.vmi-price-cards dl div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.vmi-price-cards dd { margin: 0; font-weight: 700; color: var(--vc-gold); }
.vmi-cta { margin-top: 1.5rem; }
.vc-actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.vc-actions button { padding: .45rem .7rem; min-height: 2.35rem; border: 1px solid #95aaba; border-radius: .35rem; background: white; color: var(--vc-ink); cursor: pointer; font-weight: 700; }
@media (max-width: 680px) {
  .vmi-cards { grid-template-columns: 1fr; }
  .vmi-help > div { position: fixed; left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; }
}

.vmi-plan { padding: 1.35rem 0; border-bottom: 1px solid var(--vc-rule); }
.vmi-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.2rem; margin-top: .8rem; }
#vmi-plan-form label { font-weight: 700; }
#vmi-plan-form input { display: block; box-sizing: border-box; width: 100%; max-width: 22rem; padding: .5rem; margin: .2rem 0 .65rem; border: 1px solid #a6bac9; border-radius: .35rem; font: inherit; }
#vmi-plan-form input[aria-invalid="true"] { border: 2px solid #a32034; }
.vmi-plan-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; align-content: start; }
.vmi-plan-results[hidden] { display: none; }
.vmi-plan-results article { min-width: 0; border: 1px solid var(--vc-rule); border-radius: .4rem; padding: .75rem; background: #fff; }
.vmi-plan-results h4 { margin: 0; font-size: 1rem; }
.vmi-plan-results .vmi-result-value { font-weight: 700; margin: .25rem 0; color: var(--vc-ink); }
.vmi-plan-results article > p:last-child { font-size: .91rem; color: var(--vc-muted); }
.vmi-continuity { grid-column: 1 / -1; }
.vmi-continuity ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; padding: 0; margin: .45rem 0; }
.vmi-continuity li { padding: .2rem .45rem; background: #e7f6f0; color: #125544; border-radius: .25rem; }
.vmi-continuity li + li { background: #fff0e5; color: #7c3d10; }
.vmi-plan-results .vmi-help > div { left: auto; right: -1rem; }
@media (max-width: 820px) {
  .vmi-plan-grid { grid-template-columns: 1fr; }
  .vmi-plan-results .vmi-help > div { position: fixed; left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; }
}
@media (max-width: 500px) {
  .vmi-plan-results { grid-template-columns: 1fr; }
}

.vmi-price-cards dl div[hidden] { display: none; }
.vmi-price-cards dl div[id^="vmi-saving-row-"] { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid #e8dbb5; font-weight: 700; }
.vmi-price-cards dd { white-space: nowrap; }
