/* Common content and accessibility styles. */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
}

.screen-reader-text:focus {
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 1rem;
    clip: auto;
    clip-path: none;
    background: #fff;
    color: #1e293b;
}

.nvwp-content {
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.nvwp-content img,
.nvwp-content video,
.nvwp-content iframe {
    max-width: 100%;
}

.nvwp-content img {
    height: auto;
}

.nvwp-content pre {
    overflow: auto;
    padding: 1.25em;
    border-radius: 0.5em;
    background: #24313d;
    color: #e2e8f0;
}

.nvwp-content table {
    width: 100%;
    border-collapse: collapse;
}

.nvwp-content th,
.nvwp-content td {
    padding: 0.6em;
    border: 1px solid var(--border-color, #cbd5e1);
}

.nvwp-content blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1.25em;
    border-left: 3px solid var(--primary-color, #3997a3);
    background: var(--white-opacity-5, #f1f5f9);
}

.nvwp-content :is(.alignwide, .alignfull) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

.nvwp-content :is(h2, h3) {
    scroll-margin-top: 80px;
}

.nvwp-content form input {
    max-width: 100%;
    padding: 0.5em;
    border: 1px solid var(--border-color, #94a3b8);
    border-radius: 0.3em;
    background: var(--white-default, #fff);
}

.nvwp-empty {
    padding: 2em;
    text-align: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color, #3997a3);
    outline-offset: 3px;
}

.nvwp-page-progress {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: rgba(239, 240, 233, 0.72);
}

.nvwp-progress-panel {
    width: min(246px, calc(100vw - 64px));
    color: #171919;
    font-family: system-ui, sans-serif;
}

.nvwp-progress-track {
    height: 32px;
    padding: 5px;
    border: 3px solid #171919;
    border-radius: 15px;
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 3px 9px #17191920;
}

.nvwp-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: #171919;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.12s linear;
}

.nvwp-page-progress.is-ready .nvwp-progress-fill {
    transition: none;
}

.nvwp-progress-number {
    margin-top: 9px;
    padding-right: 7px;
    text-align: right;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .nvwp-progress-fill,
    .nvwp-slide {
        animation: none !important;
        transition: none !important;
    }
}
