/* ===== Sitemap Page Layout ===== */
.sitemap-page {
    flex: 1;
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.sitemap-hero {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sitemap-eyebrow {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sitemap-hero h1 {
    margin: 0 0 1rem;
    color: var(--heading-color);
    font-size: clamp(2.15rem, 5vw, 3.4rem);
    line-height: 1.08;
}

.sitemap-intro {
    max-width: 50rem;
    margin: 0;
    color: var(--body-text);
    font-size: 1.06rem;
    line-height: 1.7;
}

.sitemap-summary {
    max-width: 54rem;
    margin: 1rem 0 0;
    color: var(--body-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Sitemap Groups ===== */
.sitemap-layout {
    display: grid;
    gap: 1.25rem;
}

.sitemap-group {
    padding: clamp(1.15rem, 2.4vw, 1.75rem);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 42, 50, 0.06);
}

.sitemap-group__header {
    margin-bottom: 1rem;
}

.sitemap-group__header h2 {
    margin: 0 0 0.4rem;
    color: var(--heading-color);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}

.sitemap-group__header p {
    max-width: 56rem;
    margin: 0;
    color: var(--body-text);
    line-height: 1.6;
}

/* ===== Destination Rows ===== */
.sitemap-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list__item {
    display: grid;
    grid-template-columns: minmax(15rem, 0.95fr) auto minmax(0, 1.45fr);
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(214, 222, 226, 0.85);
    border-radius: 8px;
    background: rgba(231, 241, 242, 0.42);
}

.sitemap-link {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    color: var(--accent);
    text-decoration: none;
}

.sitemap-link:hover,
.sitemap-link:focus-visible {
    color: var(--hover-accent);
}

.sitemap-link__label {
    font-weight: 700;
    line-height: 1.35;
}

.sitemap-link__path {
    overflow-wrap: anywhere;
    color: var(--body-text);
    font-size: 0.88rem;
    line-height: 1.35;
    opacity: 0.78;
}

.sitemap-list__arrow {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(30, 111, 114, 0.1);
    color: var(--accent);
    font-weight: 700;
}

.sitemap-list__destination {
    margin: 0;
    color: var(--body-text);
    line-height: 1.55;
}

/* ===== Theme And Accessibility Variants ===== */
body.dark-mode .sitemap-hero {
    border-bottom-color: var(--border);
}

body.dark-mode .sitemap-group {
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted) 100%);
    border-color: var(--border);
    border-left-color: var(--accent);
    box-shadow: var(--shadow-soft);
}

body.dark-mode .sitemap-list__item {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border);
}

body.dark-mode .sitemap-link__path,
body.dark-mode .sitemap-list__destination,
body.dark-mode .sitemap-group__header p,
body.dark-mode .sitemap-summary,
body.dark-mode .sitemap-intro {
    color: var(--body-text);
}

body.dark-mode .sitemap-list__arrow {
    background: rgba(49, 195, 186, 0.14);
}

html.readable-text .sitemap-group,
html.readable-text .sitemap-list__item,
html.readable-text .sitemap-list__destination {
    max-width: none;
}

html.readable-text .sitemap-list__item {
    width: 100%;
}

html.high-contrast .sitemap-group,
html.high-contrast .sitemap-list__item {
    background: #000000 !important;
    border-color: var(--border) !important;
}

html.high-contrast .sitemap-list__arrow {
    background: #000000 !important;
    border: 2px solid var(--border) !important;
    color: var(--accent) !important;
}

/* ===== Responsive Layout ===== */
@media (max-width: 760px) {
    .sitemap-page {
        width: min(100%, calc(100% - 2rem));
        padding: 2rem 0;
    }

    .sitemap-list__item {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        align-items: start;
    }

    .sitemap-list__arrow {
        width: auto;
        height: auto;
        justify-self: start;
        padding: 0.15rem 0;
        background: transparent;
    }
}
