/*
 * Hotfix CSS — Quick overrides without full rebuild.
 * Add temporary fixes here. Move to source (Storybook) on next design build.
 */

/* Fix: richtext-container link styles leaking into widget sections.
 * <section> elements only come from Kentico widgets, never from editorial content.
 */
.richtext-container section a:not(.primary-cta):not(.primary-button) {
    color: inherit;
    text-decoration-line: inherit;
}

/* Re-apply richtext link styles for inner richtext-container blocks
 * (widget's own rich-text fields like FAQ descriptions, Why Invest paragraphs, etc.)
 */
.richtext-container section .richtext-container a:not(.primary-cta) {
    color: var(--primary-color-alt);
    text-decoration-line: underline;
}

/* Fix: .primary-button sets position:relative which overrides .skip-button's position:absolute,
 * making the skip-to-content wrapper visible as a colored bar above the nav.
 */
.skip-button {
    position: absolute !important;
    left: -100% !important;
}
.skip-button:focus-visible {
    position: relative !important;
    left: 0 !important;
}

/* Features2Columns Compact — image wrapper sizing */
.features-two-columns .compact-img-wrapper {
    width: 100%;
    max-height: 180px;
}
@media (min-width: 640px) {
    .features-two-columns .compact-img-wrapper {
        width: 250px;
        max-height: none;
    }
}
