/* Keep the full-bleed background inside the page's viewport boundary. */
#primary:has(.ac-links-light) {
    overflow-x: clip;
}

.ac-links-light,
.ac-links-light *,
.ac-links-light *::before,
.ac-links-light *::after {
    box-sizing: border-box;
}

.ac-links-light {
    width: 100vw;
    max-width: none;
    margin-block: 60px;
    margin-inline: calc(50% - 50vw);
    background: #f1f6fb;
    color: #001b4d;
    font-family: var(--tamc-font);
}

.ac-links-light__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding: 40px 60px;
}

.ac-links-light .ac-links-light__title {
    margin: 0;
    color: #001b4d;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-align: start;
}

.ac-links-light .ac-links-light__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ac-links-light .ac-links-light__item {
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ac-links-light .ac-links-light__tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 90px;
    padding-inline: 24px;
    overflow: hidden;
    border: 3px solid #fbfbfb;
    border-radius: 24px;
    background: none;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.ac-links-light__tile::before,
.ac-links-light__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ac-links-light__tile::before {
    background-image: var(--ac-links-light-image);
    background-size: cover;
    background-position: center;
    opacity: .65;
}

.ac-links-light__tile::after {
    background: linear-gradient(359.59deg, rgba(19, 19, 19, .8) 7.09%, rgba(24, 114, 205, .8) 114.91%);
}

.ac-links-light__tile > span {
    position: relative;
    z-index: 1;
    min-width: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.ac-links-light__tile:hover {
    transform: translateY(-2px);
    opacity: .98;
}

.ac-links-light__tile:focus-visible {
    outline: 3px solid #3580cb;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .ac-links-light {
        margin-block: 50px;
    }

    .ac-links-light .ac-links-light__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ac-links-light .ac-links-light__tile {
        min-height: 100px;
    }

    .ac-links-light__tile > span {
        font-size: 32px;
        text-underline-offset: 6px;
    }
}

@media (max-width: 640px) {
    .ac-links-light {
        margin-block: 40px;
        padding: 36px 12px 40px;
    }

    .ac-links-light__inner {
        padding: 14px 8px;
        gap: 20px;
    }

    .ac-links-light .ac-links-light__title {
        font-size: 24px;
        text-align: center;
    }

    .ac-links-light .ac-links-light__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ac-links-light .ac-links-light__tile {
        min-height: 65px;
        padding-inline: 18px;
        border-radius: 18px;
    }

    .ac-links-light__tile > span {
        font-size: 16px;
        text-underline-offset: 2px;
        text-decoration-thickness: .5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ac-links-light .ac-links-light__tile {
        transition: none;
        transform: none;
    }
}
