/* Defects-follow-volume article — figure components */

/* ---------------- whipsaw rate path ---------------- */
.wv { display: grid; grid-template-columns: 1fr 250px; gap: 28px; align-items: center; }
.wv svg { width: 100%; height: auto; overflow: visible; display: block; }
.wv .ref-ln { stroke: var(--puw-slate-300, #B9C6C9); stroke-width: 1.2; stroke-dasharray: 3 5; }
.wv .ref-lb { font-family: var(--font-meta); font-size: 11px; fill: var(--puw-slate-400); }
.wv .gap-lb { font-family: var(--font-meta); font-size: 11px; fill: var(--puw-slate-400); text-anchor: middle; }
.wv .path-solid { fill: none; stroke: var(--puw-teal-mid, #248E9C); stroke-width: 2.6; stroke-linecap: round; }
.wv .path-dash { fill: none; stroke: var(--puw-slate-300, #B9C6C9); stroke-width: 2.2; stroke-dasharray: 2 8; stroke-linecap: round; }
.wv .pt { cursor: pointer; }
.wv .pt .halo { fill: rgba(255, 54, 33, 0.12); opacity: 0; transition: opacity .3s; }
.wv .pt .c { fill: #fff; stroke: var(--puw-teal-mid, #248E9C); stroke-width: 2.4; transition: fill .25s, stroke .25s; }
.wv .pt:hover .c { stroke: var(--puw-coral-600); }
.wv .pt.on .halo { opacity: 1; }
.wv .pt.on .c { fill: var(--puw-coral-600); stroke: var(--puw-coral-600); }
.wv .pt text { font-family: var(--font-meta); font-size: 11.5px; fill: var(--puw-slate-400); text-anchor: middle; transition: fill .25s; }
.wv .pt.on text { fill: var(--puw-coral-600); font-weight: 600; }
.wv .pt:focus { outline: none; }
.wv .pt:focus-visible .c { stroke: var(--puw-coral-600); stroke-width: 3.4; }
.wv-info { background: var(--puw-surface-2); border: 1px solid var(--puw-border-light); border-radius: var(--radius-lg); padding: 20px 22px; }
.wv-date { font-family: var(--font-meta); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--puw-slate-400); }
.wv-rate { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; color: var(--puw-teal-900); font-variant-numeric: tabular-nums; margin-top: 6px; }
.wv-rate .u { font-size: 23px; color: var(--puw-slate-400); }
.wv-note { font-size: 13.5px; line-height: 1.55; color: var(--puw-teal-600); margin-top: 10px; min-height: 6.5em; }
@media (max-width: 640px) {
  .wv { grid-template-columns: 1fr; gap: 18px; }
  .wv-note { min-height: 0; }
}

/* ---------------- elastic-capacity toggle ---------------- */
.ec-load { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.ec-load .t { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--puw-teal-900); }
.ec-load .v { font-family: var(--font-meta); font-weight: 600; font-size: 13px; color: var(--puw-coral-600); font-variant-numeric: tabular-nums; }
.ec-wavebar { height: 10px; border-radius: 6px; background: var(--puw-slate-100); overflow: hidden; margin-bottom: 24px; }
.ec-wavebar .fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--puw-teal-mid, #248E9C), var(--puw-coral-500)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.ec-rows { display: flex; flex-direction: column; gap: 13px; }
.ec-row { display: grid; grid-template-columns: 200px 1fr 130px; gap: 12px; align-items: center; }
.ec-row .nm { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--puw-teal-900); }
.ec-track { height: 12px; border-radius: 7px; background: var(--puw-slate-100); overflow: hidden; }
.ec-fill { height: 100%; width: 100%; border-radius: 7px; background: var(--puw-teal-mid, #248E9C); transition: width .7s cubic-bezier(.2,.8,.2,1), background .4s; }
.ec-row.thin .ec-fill { background: linear-gradient(90deg, var(--puw-coral-500), var(--puw-coral-600)); }
.ec-row .st { font-family: var(--font-meta); font-size: 12px; color: var(--puw-slate-400); text-align: right; transition: color .3s; }
.ec-row.thin .st { color: var(--puw-coral-600); font-weight: 600; }
.ec-out { margin-top: 22px; display: flex; align-items: flex-start; gap: 11px; font-family: var(--font-meta); font-size: 13.5px; line-height: 1.5; padding: 13px 16px; border-radius: var(--radius-lg); background: var(--puw-surface-2); border: 1px solid var(--puw-border-light); color: var(--puw-teal-600); transition: border-color .3s; }
.ec-out .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--puw-teal-mid, #248E9C); }
.ec-out b { color: var(--puw-teal-900); }
.ec-out.bad { border-color: var(--puw-coral-100, rgba(254,106,87,.35)); }
.ec-out.bad .ic { color: var(--puw-coral-600); }
.ec-out.bad b { color: var(--puw-coral-600); }
@media (max-width: 640px) {
  .ec-row { grid-template-columns: 1fr; gap: 6px; }
  .ec-row .st { text-align: left; }
}
