/*
 * Reading progress bar (Header tab -> Reading progress).
 * Markup: ReadingProgressHelper::renderBar(). Behaviour: web/js/website/reading-progress.js.
 * --wb-rp-color and --wb-rp-h are set inline per site.
 */
.wb-reading-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--wb-rp-h, 4px);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wb-reading-progress.is-top {
    position: fixed;
    top: 0;
    bottom: auto;
    z-index: 1090;
}

.wb-reading-progress.is-ready {
    opacity: 1;
}

.wb-reading-progress.is-short,
body.mobile-menu-open .wb-reading-progress {
    opacity: 0;
}

.wb-reading-progress__fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--wb-rp-color, var(--color-primary-600, #0d6efd));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.08s linear;
    will-change: transform;
}

[dir="rtl"] .wb-reading-progress__fill {
    transform-origin: right center;
}

@media (prefers-reduced-motion: reduce) {
    .wb-reading-progress,
    .wb-reading-progress__fill {
        transition: none;
    }
}

@media print {
    .wb-reading-progress {
        display: none !important;
    }
}
