/**
 * NPD accessibility and above-the-fold rendering overrides.
 *
 * The versioned filename is intentional. W3TC hashes the source-file list,
 * while WPX may retain an existing minified bundle after an in-place edit.
 */

:root {
    --npd-gray-50: #ffffff;
}

/* Links on the light listing background must clear WCAG AA at small sizes. */
.npd-single .npd-breadcrumbs a,
.npd-single .npd-data-sources .npd-data-sources__link,
.npd-single .npd-data-sources .npd-data-sources__methodology-link,
.npd-single .npd-single__footer-actions .npd-button {
    color: #005a87;
}

.npd-single .npd-data-sources .npd-data-sources__methodology {
    color: #495057;
}

body .npd-card .npd-card__badge--primary {
    background-color: #075985 !important;
    color: #ffffff !important;
    text-shadow: none;
}

/* #065f46 on #ecfdf5 is 7.29:1, above the WCAG AA 4.5:1 threshold. */
body .npd-card .npd-card__badge--season {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
    text-shadow: none;
}

/*
 * Do not keep repainting the above-the-fold hero after its image is present.
 * The infinite skeleton shimmer was running beneath the eager LCP image and
 * made Lighthouse record multi-second element-render delays. A static neutral
 * placeholder preserves the loading state without perpetual paint work.
 */
.npd-photo-grid__main,
.npd-photo-grid__thumb {
    animation: none !important;
}

.npd-photo-grid__image {
    transition: none;
}

.npd-single .npd-single__footer-actions .npd-button:hover,
.npd-single .npd-single__footer-actions .npd-button:focus-visible {
    background-color: #005a87;
    border-color: #005a87;
    color: #ffffff;
}

.npd-single .npd-breadcrumbs a:focus-visible,
.npd-single .npd-data-sources a:focus-visible,
.npd-single .npd-single__footer-actions .npd-button:focus-visible {
    outline: 3px solid #005a87;
    outline-offset: 2px;
}
