.sitemap-heading {
    padding: 36px 0 24px;
}

.sitemap-heading h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.sitemap-heading p {
    color: var(--text-secondary);
    margin-top: 12px;
}

.sitemap-tree {
    padding: 16px 0 48px;
}

.sitemap-root {
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 24px;
    border: 1px solid var(--brand-blue);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
}

.sitemap-root strong,
.sitemap-root span span {
    display: block;
}

.sitemap-root strong {
    font-size: 1.25rem;
}

.sitemap-root span span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sitemap-branches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    position: relative;
    padding: 56px 0 0;
    margin: 0;
    list-style: none;
}

.sitemap-branches::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    height: 28px;
    border-left: 2px solid var(--brand-blue);
}

.sitemap-branch {
    position: relative;
    min-width: 0;
}

.sitemap-branch::before {
    content: "";
    position: absolute;
    top: -28px;
    left: calc(50% - 1px);
    height: 28px;
    border-left: 2px solid var(--brand-blue);
}

.sitemap-branch::after {
    content: "";
    position: absolute;
    top: -28px;
    left: -16px;
    right: -16px;
    border-top: 2px solid var(--brand-blue);
}

.sitemap-branch:first-child::after { left: 50%; }
.sitemap-branch:last-child::after { right: 50%; }

.sitemap-branch h2 {
    font-size: 1.125rem;
    letter-spacing: 0;
    padding: 12px 0;
    text-align: center;
    border-bottom: 2px solid var(--brand-blue);
}

.sitemap-branch:nth-child(2) h2 { border-color: #10b981; }
.sitemap-branch:nth-child(3) h2 { border-color: var(--text-muted); }

.sitemap-branch ul {
    list-style: none;
    padding: 8px 0 0 16px;
    margin: 0 0 0 12px;
    border-left: 1px solid var(--border-subtle);
}

.sitemap-branch li { position: relative; }

.sitemap-branch li::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 28px;
    width: 12px;
    border-top: 1px solid var(--border-subtle);
}

.sitemap-branch a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sitemap-branch a strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.sitemap-branch a span {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.sitemap-tree a:hover {
    background: var(--bg-surface-elevated);
    color: var(--brand-blue);
}

.sitemap-tree a:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .sitemap-heading h1 { font-size: 1.875rem; }
    .sitemap-root { margin-left: 0; }
    .sitemap-branches {
        grid-template-columns: minmax(0, 1fr);
        margin-left: 24px;
        padding: 24px 0 0 24px;
        border-left: 2px solid var(--brand-blue);
        gap: 24px;
    }
    .sitemap-branches::before,
    .sitemap-branch::before { display: none; }
    .sitemap-branch::after,
    .sitemap-branch:first-child::after,
    .sitemap-branch:last-child::after {
        left: -24px;
        right: auto;
        top: 24px;
        width: 16px;
    }
    .sitemap-branch h2 { text-align: left; }
}