/* Soleil v8: legible chart components (range bars, metered vs flat, forecast gap, rule grid) */
:root {
  --c8-ink: #101828; --c8-body: #344054; --c8-muted: #475467; --c8-grid: #E4E7EC; --c8-axis: #98A2B3;
  --c8-blue: #1A56A0; --c8-tint: #DCE7F5;
  --c8-pass: #E4E7EC; --c8-pass-b: #C9CFD8; --c8-warn: #C27C0E; --c8-bad: #D92D20; --c8-red-text: #B42318;
}

/* two equal cards per row */
html body .dv8 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
html body .dv8__card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid rgba(16,24,40,.10);
  border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06); min-width: 0; }
html body .dv8__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 32px; }
html body .dv8__head h3 { margin: 0 !important; font-size: 19px !important; line-height: 1.3 !important; color: var(--c8-ink) !important; padding: 0 !important; }
html body .ex8 { flex: none; font: 600 14px/1 'Inter', system-ui, sans-serif; color: var(--c8-muted); background: #F2F4F7;
  border: 1px solid var(--c8-grid); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
html body .dv8__sub { margin: 4px 0 24px !important; font-size: 15px !important; color: var(--c8-muted) !important; line-height: 1.5 !important; }
html body .dv8__body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
html body .dv8__take { margin: 24px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--c8-grid);
  font-size: 16px !important; font-weight: 600; color: var(--c8-ink) !important; line-height: 1.45 !important; }
html body .dv8__note { margin: 8px 0 0 !important; font-size: 14px !important; color: var(--c8-muted) !important; line-height: 1.5 !important; }
html body .dv8__note--top { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid var(--c8-grid); }
html body .dv8__note a { color: var(--c8-blue); }
html body #why-recurring .sh p { margin-top: 8px; }

/* ── range bars: labels above, bars on one shared $0–160K grid ── */
html body .rb8 { --gut: 104px; }
html body .rb8__rows { position: relative; margin-right: var(--gut); padding: 4px 0 8px;
  background-image: linear-gradient(to right, var(--c8-grid) 1px, transparent 1px); background-size: 25% 100%; background-repeat: repeat-x;
  border-right: 1px solid var(--c8-grid); }
html body .rb8__row + .rb8__row { margin-top: 8px; }
html body .rb8__lab { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 4px 0 0 10px; }
html body .rb8__lab b, html body .rb8__lab span { background: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF; }
html body .rb8__lab b { font-size: 16px; font-weight: 600; color: var(--c8-ink); line-height: 1.35; }
html body .rb8__lab span { font-size: 14px; color: var(--c8-muted); line-height: 1.35; }
html body .rb8__plot { position: relative; height: 36px; }
html body .rb8__bar { position: absolute; top: 50%; height: 22px; transform: translateY(-50%); min-width: 6px; border-radius: 5px;
  background: var(--c8-tint); border: 1.5px solid var(--c8-blue); box-sizing: border-box; }
html body .rb8__bar--solid { background: var(--c8-blue); }
html body .rb8__val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font: 600 14px/1.2 'Inter', system-ui, sans-serif;
  font-style: normal; color: var(--c8-ink); white-space: nowrap; background: #FFFFFF; padding: 2px 4px; border-radius: 4px; }
html body .rb8__axis { position: relative; height: 30px; margin-right: var(--gut); border-top: 1px solid var(--c8-axis); }
html body .rb8__axis span { position: absolute; top: 8px; transform: translateX(-50%); font: 500 14px/1 'Inter', system-ui, sans-serif; color: var(--c8-muted); white-space: nowrap; }
html body .rb8__axis span:first-child { transform: none; }
html body .vis8 .rb8 { margin-top: 4px; }

/* ── metered vs flat ── */
html body .mv8 { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: minmax(180px, 1fr) auto; column-gap: 8px; flex: 1; min-height: 210px; }
html body .mv8__y { grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font: 500 14px/1 'Inter', system-ui, sans-serif; color: var(--c8-muted); }
html body .mv8__plot { position: relative; border-left: 1px solid var(--c8-axis); border-bottom: 1px solid var(--c8-axis); }
html body .mv8__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html body .mv8__m { stroke: #475467; stroke-width: 2.5; stroke-dasharray: none !important; opacity: 1 !important; }
html body .mv8__f { stroke: var(--c8-blue); stroke-width: 3.5; }
html body .mv8__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #FFFFFF; border: 2.5px solid var(--c8-blue); box-sizing: border-box; }
html body .mv8__be { position: absolute; margin: 14px 0 0 8px; font: 600 14px/1 'Inter', system-ui, sans-serif; font-style: normal; color: var(--c8-blue); white-space: nowrap; }
html body .mv8__lab { position: absolute; transform: translateY(-50%); margin-left: 10px; font: 600 14px/1.2 'Inter', system-ui, sans-serif; font-style: normal; white-space: nowrap; }
html body .mv8__lab--m { color: #344054; }
html body .mv8__lab--f { color: var(--c8-blue); }
html body .mv8__x { grid-column: 2; display: flex; justify-content: space-between; padding-top: 8px; font: 500 14px/1.2 'Inter', system-ui, sans-serif; color: var(--c8-muted); }
html body .vis8 .mv8 { min-height: 240px; margin: 8px 0 4px; }

/* ── forecast gap ── */
html body .fg8__chart { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; padding-top: 22px; }
html body .fg8__y { position: relative; height: 240px; }
html body .fg8__y span { position: absolute; right: 0; transform: translateY(50%); font: 500 14px/1 'Inter', system-ui, sans-serif; color: var(--c8-muted); white-space: nowrap; }
html body .fg8__plot { position: relative; height: 240px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; padding: 0 8px;
  background-image: linear-gradient(to top, var(--c8-grid) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 100%;
  border-top: 1px solid var(--c8-grid); border-bottom: 1px solid var(--c8-axis); }
html body .fg8__q { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 100%; }
html body .fg8__q i { display: block; width: 36%; max-width: 40px; border-radius: 4px 4px 0 0; box-sizing: border-box; }
html body .fg8__c { background: var(--c8-tint); border: 1.5px solid var(--c8-blue); border-bottom: 0 !important; }
html body .fg8__a { background: var(--c8-blue); }
html body .fg8__gap { position: absolute; left: 50%; transform: translate(-50%, -6px); font: 700 14px/1 'Inter', system-ui, sans-serif; color: var(--c8-red-text); white-space: nowrap; }
html body .fg8__x { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; margin-left: 56px; padding: 8px 8px 0; text-align: center; font: 600 14px/1 'Inter', system-ui, sans-serif; color: var(--c8-body); }

/* ── rule grid ── */
html body .hg8 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
html body .hg8 i { aspect-ratio: 1; border-radius: 3px; box-sizing: border-box; }
html body .hg8 i.p { background: var(--c8-pass); border: 1px solid var(--c8-pass-b); }
html body .hg8 i.w { background: var(--c8-warn); border: 1px solid var(--c8-warn); }
html body .hg8 i.b { background: var(--c8-bad); border: 1px solid var(--c8-bad); }

/* ── shared legend ── */
html body .leg8 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 14px; color: var(--c8-body); line-height: 1.3; }
html body .leg8 span { display: inline-flex; align-items: center; gap: 8px; }
html body .leg8 .leg8__dot { color: var(--c8-axis); gap: 0; margin: 0 -6px; }
html body .sw8 { width: 14px; height: 14px; border-radius: 3px; display: inline-block; box-sizing: border-box; flex: none; }
html body .sw8--c { background: var(--c8-tint); border: 1.5px solid var(--c8-blue); }
html body .sw8--a { background: var(--c8-blue); }
html body .sw8--p { background: var(--c8-pass); border: 1px solid var(--c8-pass-b); }
html body .sw8--w { background: var(--c8-warn); }
html body .sw8--b { background: var(--c8-bad); }
html body .leg8__gap { font-weight: 700; color: var(--c8-red-text); }

@media (max-width: 900px) {
  html body .dv8 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html body .dv8__body { justify-content: flex-start; }
}
@media (max-width: 640px) {
  html body .dv8__card { padding: 20px; }
  html body .dv8__head h3 { font-size: 18px !important; }
  html body .rb8 { --gut: 92px; }
  html body .mv8 { min-height: 200px; grid-template-rows: minmax(170px, 1fr) auto; }
  html body .mv8__lab { font-size: 14px; }
  html body .mv8__x { gap: 12px; }
  html body .mv8__x span { max-width: 46%; line-height: 1.3; }
  html body .mv8__x span:last-child { text-align: right; }
  html body .fg8__chart { grid-template-columns: 44px minmax(0, 1fr); }
  html body .fg8__plot { height: 180px; column-gap: 6px; padding: 0 4px; }
  html body .fg8__y { height: 180px; }
  html body .fg8__x { margin-left: 52px; column-gap: 6px; padding: 8px 4px 0; }
  html body .hg8 { gap: 4px; }
}

/* ── one shared FAQ component ── */
html body .faq8 { display: grid; gap: 12px; width: 100%; max-width: 860px; margin: 0 auto; }
html body .faq8__item { background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(26, 25, 23, 0.10); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px -16px rgba(16, 24, 40, 0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  overflow: hidden; transition: border-color 200ms ease; }
html body .faq8__item:has(.faq8__q[aria-expanded="true"]) { border-color: rgba(26, 86, 160, 0.35); }
html body .faq8__h { margin: 0 !important; padding: 0 !important; font: inherit !important; }
html body .faq8__q { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.4; color: #1A1917; text-align: left; }
html body .faq8__q:focus-visible { outline: 2px solid #1A56A0; outline-offset: -2px; border-radius: 18px; }
html body .faq8__ic { flex: none; box-sizing: border-box; width: 32px; height: 32px; padding: 6px; border-radius: 9px; color: #1A56A0; background: rgba(26, 86, 160, 0.08); }
html body .faq8__t { flex: 1; min-width: 0; }
html body .faq8__chev { flex: none; color: #1A56A0; transition: transform 200ms ease; }
html body .faq8__q[aria-expanded="true"] .faq8__chev { transform: rotate(180deg); }
html body .faq8__a[hidden] { display: none !important; }
html body .faq8__body { padding: 0 24px 22px 70px; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: #2B2925; }
html body .faq8__body p { margin: 0 0 10px; font-size: 16px; line-height: 1.7; color: #2B2925; }
html body .faq8__body p:last-child { margin-bottom: 0; }
html body .faq8__body a { color: #1A56A0; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html body .faq8__chev { transition: none; } }
@media (max-width: 640px) {
  html body .faq8__q { padding: 16px 16px; gap: 12px; font-size: 16px; }
  html body .faq8__body { padding: 0 16px 18px 16px; }
}
