/* Human-readable site map. */
.rhm-site-map {
    padding: 40px 0 64px;
    background: var(--rhm-color-surface, #fff);
    color: var(--rhm-color-ink, #171817);
}

.rhm-site-map__inner {
    max-width: 1040px;
}

.rhm-site-map__intro {
    max-width: 68ch;
    padding-bottom: 28px;
}

.rhm-site-map__title,
.rhm-site-map__section h2,
.rhm-site-map__section h3,
.rhm-site-map__summary,
.rhm-site-map__section p {
    margin: 0;
    letter-spacing: 0;
}

.rhm-site-map__title {
    font-size: 40px;
    line-height: 1.15;
}

.rhm-site-map__summary {
    margin-top: 10px;
    color: var(--rhm-color-ink-muted, #626660);
    font-size: 16px;
    line-height: 1.5;
}

.rhm-site-map__section {
    display: grid;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--rhm-color-outline, #d9dcd7);
}

.rhm-site-map__section-head {
    display: grid;
    align-content: start;
    gap: 6px;
}

.rhm-site-map__section h2 {
    font-size: 22px;
    line-height: 1.2;
}

.rhm-site-map__section h3 {
    margin-bottom: 8px;
    color: var(--rhm-color-ink-muted, #626660);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.rhm-site-map__section-head p {
    max-width: 32ch;
    color: var(--rhm-color-ink-muted, #626660);
    font-size: 14px;
    line-height: 1.5;
}

.rhm-site-map__groups {
    display: grid;
    gap: 24px;
}

.rhm-site-map__links,
.rhm-site-map__links .children {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rhm-site-map__links li {
    min-width: 0;
    margin: 0;
}

.rhm-site-map__links .children {
    padding-inline-start: 16px;
}

.rhm-site-map__links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--rhm-color-outline, #d9dcd7);
    color: var(--rhm-color-ink, #171817);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease;
}

.rhm-site-map__links a:hover {
    border-color: var(--rhm-color-brand, #765816);
    color: var(--rhm-color-brand, #765816);
}

.rhm-site-map__links a:focus-visible {
    outline: 3px solid var(--rhm-color-info, #176b73);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .rhm-site-map {
        padding-top: 48px;
    }

    .rhm-site-map__section {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
        gap: 32px;
    }

    .rhm-site-map__groups {
        grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1.55fr);
        gap: 32px;
    }

    .rhm-site-map__links--columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
}

@media (min-width: 1024px) {
    .rhm-site-map__links a {
        min-height: 40px;
        padding-block: 6px;
    }

    .rhm-site-map__products .rhm-site-map__links--columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
