/* Cost comparison (/cmo-cost/). Bar widths are fixed classes because the CSP
   blocks inline style attributes. See width classes for scales. */

.cc-track { position: relative; display: block; height: 0.9rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.cc-track.big { height: 1.1rem; }
.cc-fill, .cc-range { position: absolute; top: 0; bottom: 0; left: 0; }
.cc-fill { background: var(--svc-f); }
.cc-fill.alt { background: var(--svc-f); opacity: 0.6; }
.cc-fill.warn { background: var(--accent); }
.cc-range { background: repeating-linear-gradient(135deg, var(--svc-f) 0 4px, transparent 4px 8px); opacity: 0.55; }

/* hourly bars: $250 = 100%; annual bars: $600k = 100% */
.r-cmo { width: 64%; } .r-cmo-x { left: 64%; width: 33.2%; }
.r-mm { width: 30.8%; } .r-mm-x { left: 30.8%; width: 7.6%; }
.a-adv { width: 26%; } .a-adv-x { left: 26%; width: 7.7%; }
.a-cmo { width: 46.7%; } .a-cmo-x { left: 46.7%; width: 24.3%; }
.a-frac { width: 53.7%; } .a-frac-x { left: 53.7%; width: 22.8%; }
.a-full { width: 69%; } .a-full-x { left: 69%; width: 30%; }
.cc-range.warn { background: repeating-linear-gradient(135deg, var(--accent) 0 4px, transparent 4px 8px); }

.cc-rate { display: grid; gap: 0.75rem; margin: 1.5rem 0 1.5rem; padding: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.cc-rate-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 6.5rem; gap: 0.75rem; align-items: center; }
.cc-rate-label { font-weight: 600; font-size: 0.95rem; }
.cc-val { font: 700 1.15rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.prose .cc-note { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }

.prose .cc-setups { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: grid; gap: 1rem; }
.prose .cc-setup { margin: 0; padding: 1.3rem 1.4rem; display: grid; gap: 0.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.prose .cc-setup.flag { border-color: var(--accent); }
.cc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.prose .cc-head h3 { margin: 0; font-size: 1.2rem; }
.prose .cc-cost { margin: 0; font: 700 1.3rem/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-cost span { font: 400 0.85rem var(--sans); color: var(--muted); }
.prose .cc-setup > p { margin: 0; color: var(--muted); }

.cc-takeaway { margin: 0 0 1.5rem; padding: 1.4rem; border-radius: 10px; background: var(--ink); color: var(--bg); }
.prose .cc-takeaway p { margin: 0; font: 1.2rem/1.5 var(--display); }

.prose .cc-sources li { margin-bottom: 0.35rem; font-size: 0.95rem; }

@media (max-width: 480px) {
  .cc-rate-row { grid-template-columns: 1fr 6.5rem; }
  .cc-rate-row .cc-track { grid-column: 1 / -1; grid-row: 2; }
}

.prose .cc-aud { margin-top: -0.5rem; color: var(--muted); font-size: 0.92rem; }
.prose .cc-setup > p.cc-split { font-size: 0.88rem; font-variant-numeric: tabular-nums; }
