/* ── QGen passage (reading comprehension aside) ─────────────────────────── */
.qa-passage {
    background: #f8f9fa;
    border-left: 4px solid #1798FA;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.95em;
    line-height: 1.65;
}

/* ── QGen figure containers ─────────────────────────────────────────────── */
.qv-figure {
    margin: 1rem 0;
    text-align: center;
}

.qv-figure-fallback {
    /* Hide raw JSON while the renderer initialises */
    font-size: 0;
    color: transparent;
    min-height: 200px;
    position: relative;
}

.qv-figure-fallback[data-qgen-rendered] {
    font-size: inherit;
    color: inherit;
}

/* Inline SVG pre-rendered by QGen */
.qv-figure-svg-inline svg {
    max-width: 100%;
    height: auto;
}

/* figcaption / pre used by QGen as a render placeholder — hidden once JS takes over */
.qv-figure-fallback figcaption,
.qv-figure-fallback pre.qv-spec-json {
    display: none;
}

/* Chart host div injected by qgen-figures.js */
.qv-figure-chart {
    width: 100%;
    min-height: 200px;
}

/* ── Answer-option body (qa-opt-body) ───────────────────────────────────── */
.qa-opt-body {
    display: block;
}

.qa-opt-body img {
    max-width: 100%;
    height: auto;
}
