/*
 * components/sitemap.css
 * HTML site-map component.
 * Migrated verbatim from the live site (sources: sitemap.css).
 */

/* sitemap.css */
.wmc_sitemap {
    --heightDesktop: min-content;
    --sitemapLinkTextColorDesktop: rgba(var(--colorSecondaryA), 1);
    --sitemapLinkTextColorDesktopHover: var(--sitemapLinkTextColorDesktop);
    --sitemapLinkTextColorDesktopActive: var(--sitemapLinkTextColorDesktop);
    --sitemapLinkTextColor: var(--sitemapLinkTextColorDesktop);

    /* Font properties setup */
    --fontFamily: var(--paragraph1_fontFamily);
    --fontSizeDesktop: var(--paragraph1_fontSizeDesktop);
    --fontWeightDesktop: var(--paragraph1_fontWeightDesktop);
    --lineHeightDesktop: var(--paragraph1_lineHeightDesktop);
    --letterSpacingDesktop: var(--paragraph1_letterSpacingDesktop);
    --textColorDesktop: rgba(var(--colorBwGradientA), 1);
    --fontStyleDesktop: normal;
    --textAlignDesktop: left;
    --textIndentDesktop: 0px;
    --textDecorationDesktop: none;
    --textBackgroundColorDesktop: initial;

    /* Active variables */
    --fontSize: var(--fontSizeDesktop);
    --fontWeight: var(--fontWeightDesktop);
    --fontStyle: var(--fontStyleDesktop);
    --textColor: var(--textColorDesktop);
    --lineHeight: var(--lineHeightDesktop);
    --textAlign: var(--textAlignDesktop);
    --textIndent: var(--textIndentDesktop);
    --textDecoration: var(--textDecorationDesktop);
    --textBackgroundColor: var(--textBackgroundColorDesktop);

    /* Apply properties */
    font-family: var(--fontFamily);
    font-size: var(--fontSize);
    font-weight: var(--fontWeight);
    font-style: var(--fontStyle);
    color: var(--textColor);
    line-height: var(--lineHeight);
    text-align: var(--textAlign);
    text-indent: var(--textIndent);
    text-decoration: var(--textDecoration);
    background-color: var(--textBackgroundColor);
}

.wmc_sitemap .wml :is(a) {
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;

    /* Inherit font properties */
    font-size: var(--fontSize);
    font-weight: var(--fontWeight);
    font-style: var(--fontStyle);
    line-height: var(--lineHeight);
    text-align: var(--textAlign);
    text-indent: var(--textIndent);
    text-decoration: var(--textDecoration);

    color: var(--sitemapLinkTextColor);

    &:hover,
    .wmcA_hoverState & {
        --sitemapLinkTextColor: var(--sitemapLinkTextColorDesktopHover);
    }

    &:active,
    .wmcA_activeState & {
        --sitemapLinkTextColor: var(--sitemapLinkTextColorDesktopActive);
    }
}

.wmcA_hoverState .wml li::marker {
    color: var(--sitemapLinkTextColorDesktopHover);
}

.wmcA_activeState .wml li::marker {
    color: var(--sitemapLinkTextColorDesktopActive);
}

.wmc_sitemap .wml li:has(:is(a):hover)::marker,
.wmc_sitemap .wml li:has(.wmcA_hoverState)::marker {
    color: var(--sitemapLinkTextColorDesktopHover);
}

.wmc_sitemap .wml li:has(:is(a):active)::marker,
.wmc_sitemap .wml li:has(.wmcA_activeState)::marker {
    color: var(--sitemapLinkTextColorDesktopActive);
}

@media all and (width < 1040px) {
    .wmc_sitemap {
        --heightTablet: min-content;
        --sitemapLinkTextColorTablet: var(--sitemapLinkTextColorDesktop);
        --sitemapLinkTextColorTabletHover: var(--sitemapLinkTextColorTablet);
        --sitemapLinkTextColorTabletActive: var(--sitemapLinkTextColorTablet);
        --sitemapLinkTextColor: var(--sitemapLinkTextColorTablet);

        /* Tablet font properties - inherit from desktop */
        --fontSizeTablet: var(--fontSizeDesktop);
        --fontWeightTablet: var(--fontWeightDesktop);
        --fontStyleTablet: var(--fontStyleDesktop);
        --textColorTablet: var(--textColorDesktop);
        --lineHeightTablet: var(--lineHeightDesktop);
        --textAlignTablet: var(--textAlignDesktop);
        --textIndentTablet: var(--textIndentDesktop);
        --textDecorationTablet: var(--textDecorationDesktop);

        --fontSize: var(--fontSizeTablet);
        --fontWeight: var(--fontWeightTablet);
        --fontStyle: var(--fontStyleTablet);
        --textColor: var(--textColorTablet);
        --lineHeight: var(--lineHeightTablet);
        --textAlign: var(--textAlignTablet);
        --textIndent: var(--textIndentTablet);
        --textDecoration: var(--textDecorationTablet);
    }

    .wmc_sitemap .wml :is(a) {
        &:hover,
        .wmcA_hoverState & {
            --sitemapLinkTextColor: var(--sitemapLinkTextColorTabletHover);
        }

        &:active,
        .wmcA_activeState & {
            --sitemapLinkTextColor: var(--sitemapLinkTextColorTabletActive);
        }

        &:visited {
            color: var(--sitemapLinkTextColorTabletActive);
        }
    }

    .wmc_sitemap .wml li:has(:is(a):hover)::marker,
    .wmc_sitemap .wml li:has(.wmcA_hoverState)::marker {
        color: var(--sitemapLinkTextColorTabletHover);
    }

    .wmc_sitemap .wml li:has(:is(a):active)::marker,
    .wmc_sitemap .wml li:has(.wmcA_activeState)::marker {
        color: var(--sitemapLinkTextColorTabletActive);
    }
}

@media all and (width < 650px) {
    .wmc_sitemap {
        --heightMobile: min-content;
        --sitemapLinkTextColorMobile: var(--sitemapLinkTextColorDesktop);
        --sitemapLinkTextColorMobileHover: var(--sitemapLinkTextColorMobile);
        --sitemapLinkTextColorMobileActive: var(--sitemapLinkTextColorMobile);
        --sitemapLinkTextColor: var(--sitemapLinkTextColorMobile);

        /* Mobile font properties - inherit from desktop */
        --fontSizeMobile: var(--fontSizeDesktop);
        --fontWeightMobile: var(--fontWeightDesktop);
        --fontStyleMobile: var(--fontStyleDesktop);
        --textColorMobile: var(--textColorDesktop);
        --lineHeightMobile: var(--lineHeightDesktop);
        --textAlignMobile: var(--textAlignDesktop);
        --textIndentMobile: var(--textIndentDesktop);
        --textDecorationMobile: var(--textDecorationDesktop);

        --fontSize: var(--fontSizeMobile);
        --fontWeight: var(--fontWeightMobile);
        --fontStyle: var(--fontStyleMobile);
        --textColor: var(--textColorMobile);
        --lineHeight: var(--lineHeightMobile);
        --textAlign: var(--textAlignMobile);
        --textIndent: var(--textIndentMobile);
        --textDecoration: var(--textDecorationMobile);
    }

    .wmc_sitemap .wml :is(a) {
        &:hover,
        .wmcA_hoverState & {
            --sitemapLinkTextColor: var(--sitemapLinkTextColorMobileHover);
        }

        &:active,
        .wmcA_activeState & {
            --sitemapLinkTextColor: var(--sitemapLinkTextColorMobileActive);
        }

        &:visited {
            color: var(--sitemapLinkTextColorMobileActive);
        }
    }

    .wmc_sitemap .wml li:has(:is(a):hover)::marker,
    .wmc_sitemap .wml li:has(.wmcA_hoverState)::marker {
        color: var(--sitemapLinkTextColorMobileHover);
    }

    .wmc_sitemap .wml li:has(:is(a):active)::marker,
    .wmc_sitemap .wml li:has(.wmcA_activeState)::marker {
        color: var(--sitemapLinkTextColorMobileActive);
    }
}
