/* The VIX Backwardation page: today's reading, the ratio's history and the backtest. */
.vix { max-width: 1040px; margin: 0 auto; padding: 2rem 1rem 4rem; display: flex; flex-direction: column; gap: 2rem; color: var(--ink); }
.vix h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.vix h3 { font-size: 1rem; margin: 1.1rem 0 0.25rem; }
.vix p { margin: 0; }
.vix section > p + .vix__table-wrap { margin-top: 0.75rem; }
.vix__title { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin: 0; text-wrap: balance; }
.vix__lead { margin-top: 0.6rem !important; max-width: 64ch; color: var(--ink-soft); font-size: 1.05rem; }
.vix__updated { margin-top: 0.5rem !important; color: var(--ink-mute); font-size: 0.85rem; }
.vix__note { margin-top: 0.6rem !important; color: var(--ink-mute); font-size: 0.82rem; }
.vix__disclaimer { color: var(--ink-faint); font-size: 0.8rem; }

.vix__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.vix__tile { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 0.9rem 1rem; }
.vix__tile dt { color: var(--ink-mute); font-size: 0.8rem; }
.vix__tile dd { margin: 0.2rem 0 0; font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vix__tile--backwardation dd { color: var(--loss); }
.vix__tile--contango dd { color: var(--gain); }

.vix__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem !important; color: var(--ink-mute); font-size: 0.9rem; }
.vix__button { padding: 0.5rem 1rem; border-radius: var(--radius-control); background: var(--accent); color: #0b0f14; font-weight: 600; text-decoration: none; }
.vix__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.vix__panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 1.25rem; }
.vix__panel svg { width: 100%; height: auto; display: block; overflow: visible; }
.vix__panel text { fill: var(--ink-mute); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.vix__grid { stroke: var(--hairline); }
.vix__one { stroke: var(--ink-mute); stroke-dasharray: 4 3; }
.vix__tint { fill: var(--loss); opacity: 0.18; }
.vix__line { stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }

.vix__table-wrap { overflow-x: auto; }
.vix__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.vix__table th, .vix__table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--hairline); text-align: right; white-space: nowrap; }
.vix__table thead th { color: var(--ink-mute); font-weight: 500; }
.vix__table th[scope="row"], .vix__table thead th:first-child { text-align: left; font-weight: 600; white-space: normal; }
.vix__up { color: var(--gain); }
.vix__down { color: var(--loss); }

.vix__links ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.vix__links li { margin-bottom: 0.35rem; }

@media (max-width: 640px) {
  .vix__tiles { grid-template-columns: repeat(2, 1fr); }
}
