/* DOC_FLOW_REVEAL_20261121: the section a trail step takes you to (js/doc-flow-reveal.js). It scrolls to the top of the
   page's scroll area (which starts under the top bar; the margin keeps it off the edge), then shows a brief navy
   outline and pale-blue tint so the eye finds it. Square, no shadow, tokens only. Under prefers-reduced-motion it
   neither scrolls smoothly nor fades. */
.ua-section-reveal {
    scroll-margin-top: 1rem;
    transition: background-color var(--ua-dur-slow, 320ms) var(--ua-ease-out, ease-out);
}

/* The flash, for 1.4 s. The outline exists only while it lasts: a transparent outline left on the card would show as a
   permanent frame in Windows High Contrast (forced colours turn it visible). The shared card rules (Universal.WebAssets
   app.css: .rz-card, .data-card) set the background !important, so the tint has to be too. */
.ua-section-reveal.ua-section-flash {
    outline: 2px solid var(--ua-primary-blue);
    outline-offset: 2px;
    background-color: var(--ua-dashboard-hover-bg) !important;
}

/* What the reveal focuses (the section's heading, else the section itself, with tabindex -1): from the keyboard it
   shows the standard ring, not the browser's own. */
.ua-section-reveal:focus-visible,
.ua-section-reveal [tabindex="-1"]:focus-visible {
    outline: 2px solid var(--ua-primary-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ua-section-reveal {
        transition: none;
    }
}

@media print {
    .ua-section-reveal,
    .ua-section-reveal.ua-section-flash {
        outline: 0;
        background-color: transparent !important;
    }
}
