﻿/* =========================================================
   sitemap.css - styles ONLY the SiteMap page (scoped to .sm-page)
   Base rules = desktop + everything.
   The @media blocks at the bottom only OVERRIDE for tablet / phone.
   ========================================================= */
.sm-page {
    margin: 1.25rem 0 3rem;
}

.sm-breadcrumb {
    margin: 0 0 1.25rem;
    font-size: .875rem;
    color: #150202;
}

    .sm-breadcrumb a {
        color: #150202;
        text-decoration: underline;
    }

#main .sm-page .sm-title {
    margin: 0 0 .35rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #162F6A;
}

.sm-subtitle {
    margin: 0 0 1.5rem;
    color: #606060;
    font-size: 1rem;
}

/* Card grid: 3 columns on desktop, cards in a row share the same height */
.sm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.sm-card {
    padding: 1rem 1.25rem 1.1rem;
    background: #fff;
    border: 1px solid #dde2ee;
    border-top: 4px solid #162F6A;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(21, 2, 2, .06);
}

#main .sm-page .sm-card-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #162F6A;
}

    #main .sm-page .sm-card-title a {
        display: inline-flex;
        align-items: center;
        gap: .7rem;
        color: inherit;
        text-decoration: none;
    }

        #main .sm-page .sm-card-title a:hover,
        #main .sm-page .sm-card-title a:focus {
            text-decoration: underline;
        }

.sm-icon {
    flex: none;
    width: 1.4em;
    text-align: center;
    font-size: 1.05rem;
}

/* divider under the title only when the card has links */
.sm-card.sm-has-links .sm-card-title {
    padding-bottom: .65rem;
    border-bottom: 1px solid #e3e6ee;
}

.sm-links {
    margin: .6rem 0 0;
    padding: 0;
    list-style: none;
}

    .sm-links li {
        padding: .32rem 0;
    }

    .sm-links a {
        display: inline-flex;
        align-items: baseline;
        color: #150202;
        font-size: .95rem;
        text-decoration: none;
    }

        .sm-links a::before {
            content: "\203A"; /* › */
            flex: none;
            width: 1rem;
            font-weight: 700;
            color: #162F6A;
        }

        .sm-links a:hover,
        .sm-links a:focus {
            color: #162F6A;
            text-decoration: underline;
        }

/* Tablet: 2 columns. Phone: 1 column */
@media (max-width: 991.98px) {
    .sm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .sm-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    #main .sm-page .sm-title {
        font-size: 1.5rem;
    }

    #main .sm-page .sm-card-title {
        font-size: 1.1rem;
    }
}

/* High contrast mode (works with the accessibility panel) */
body.b-contrast-high .sm-card {
    background: #000;
    border-color: #fff;
    box-shadow: none;
}

body.b-contrast-high #main .sm-page .sm-title,
body.b-contrast-high #main .sm-page .sm-card-title,
body.b-contrast-high .sm-subtitle {
    color: #fff !important;
}

    body.b-contrast-high .sm-links a,
    body.b-contrast-high #main .sm-page .sm-card-title a,
    body.b-contrast-high .sm-links a::before {
        color: #ffea00 !important;
    }

body.b-contrast-high .sm-card.sm-has-links .sm-card-title {
    border-bottom-color: #fff;
}
