/* wiki-accessibility.css - the Wiki Accessibility page: sub-headings and captioned figure rows */

/* ── heading ── */
.ia-heading { margin-top: 2.2rem; margin-bottom: -0.3rem; }
.ia-heading-title { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
.ia-heading--h3 .ia-heading-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.ia-heading--h4 .ia-heading-title { font-size: 1.1rem; }

/* ── figures: pictures in a row share the width; a tall one is held to 26rem so it is not blown up ── */
.ia-figures { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.2rem; }
.ia-figure-row { display: flex; gap: 1rem; justify-content: center; align-items: flex-start; }
.ia-figure {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(100%, calc(26rem * var(--r)));
    margin: 0;
}
.ia-figure-frame {
    aspect-ratio: var(--ar);
    border-radius: 12px;
    overflow: hidden;
    background: #e4ebe6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.ia-figure-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ia-figure-frame.is-missing img { visibility: hidden; }
.ia-caption {
    margin: 0.55rem auto 0;
    max-width: 36rem;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    color: var(--text-muted);
}

/* a phone: the wide control screenshots stack, one per line */
@media (max-width: 560px) {
    .ia-figure-row.is-multi { flex-direction: column; align-items: center; }
    .ia-figure-row.is-multi .ia-figure { flex: none; width: 100%; }
}

html[data-dark] .ia-figure-frame { background: var(--d-tint); box-shadow: none; }

@media (forced-colors: active) {
    .ia-figure-frame { border: 1px solid CanvasText; }
}
