/* ==========================================================
   TypingTutor.Online — Responsive Site Map v17.7.3
========================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.sitemap-main {
    width: min(1540px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px) 0 64px;
}

.sitemap-hero {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 58px);
    color: var(--text, #152033);
    background:
        radial-gradient(circle at 92% 12%, rgba(37, 99, 235, .16), transparent 30%),
        linear-gradient(135deg, var(--surface, #fff), var(--surface-alt, #f4f7fc));
    border: 1px solid var(--border, #dfe6f0);
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(31, 48, 76, .09);
}

.sitemap-hero > div {
    min-width: 0;
    max-width: 940px;
}

.sitemap-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--primary, #2563eb);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sitemap-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.06;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.sitemap-hero p {
    max-width: 800px;
    margin: 16px 0 0;
    color: var(--muted, #5f6f86);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.65;
}

.sitemap-xml-button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 13px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: var(--primary, #2563eb);
    border: 1px solid var(--primary, #2563eb);
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.sitemap-xml-button:hover {
    color: #fff;
    background: var(--primary-dark, #1d4ed8);
}

.sitemap-summary {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.sitemap-summary > div {
    min-width: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dfe6f0);
    border-radius: 16px;
}

.sitemap-summary strong {
    flex: 0 0 auto;
    color: var(--primary, #2563eb);
    font-size: 28px;
    line-height: 1;
}

.sitemap-summary span {
    min-width: 0;
    color: var(--muted, #5f6f86);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sitemap-jump-nav {
    min-width: 0;
    margin-bottom: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dfe6f0);
    border-radius: 15px;
}

.sitemap-jump-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text, #152033);
    background: var(--surface-alt, #f6f8fc);
    border: 1px solid var(--border, #dfe6f0);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.sitemap-jump-nav a:hover {
    color: var(--primary, #2563eb);
    border-color: rgba(37, 99, 235, .35);
}

.sitemap-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.sitemap-card {
    min-width: 0;
    scroll-margin-top: 100px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dfe6f0);
    border-radius: 19px;
    box-shadow: 0 12px 34px rgba(31, 48, 76, .065);
    overflow: hidden;
}

.sitemap-card-header {
    min-width: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    align-items: start;
    background: linear-gradient(145deg, var(--surface-alt, #f6f8fc), var(--surface, #fff));
    border-bottom: 1px solid var(--border, #dfe6f0);
}

.sitemap-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, .1);
    border-radius: 12px;
    font-size: 22px;
}

.sitemap-card-header > div {
    min-width: 0;
}

.sitemap-card h2 {
    margin: 0;
    color: var(--text, #152033);
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sitemap-card-header p {
    margin: 6px 0 0;
    color: var(--muted, #5f6f86);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sitemap-count {
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, .1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.sitemap-link-list {
    min-width: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
}

.sitemap-link-list li {
    min-width: 0;
}

.sitemap-link-list a {
    min-width: 0;
    width: 100%;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    color: var(--text, #152033);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 680;
    line-height: 1.35;
    text-decoration: none;
}

.sitemap-link-list a:hover {
    color: var(--primary, #2563eb);
    background: var(--surface-alt, #f6f8fc);
}

.sitemap-link-label {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.sitemap-link-arrow {
    color: var(--muted, #5f6f86);
    font-size: 15px;
}

.sitemap-link-badge {
    padding: 3px 7px;
    color: #7c3aed;
    background: rgba(124, 58, 237, .1);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.sitemap-note {
    min-width: 0;
    margin-top: 18px;
    padding: 22px 24px;
    color: var(--text, #152033);
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dfe6f0);
    border-left: 5px solid var(--primary, #2563eb);
    border-radius: 16px;
}

.sitemap-note h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.sitemap-note p {
    margin: 0;
    color: var(--muted, #5f6f86);
    overflow-wrap: anywhere;
}

html[data-theme="dark"] .sitemap-hero,
html[data-theme="dark"] .sitemap-card-header {
    background:
        radial-gradient(circle at 92% 12%, rgba(59, 130, 246, .18), transparent 30%),
        linear-gradient(135deg, #111b2d, #0e1728);
}

html[data-theme="dark"] .sitemap-card,
html[data-theme="dark"] .sitemap-summary > div,
html[data-theme="dark"] .sitemap-jump-nav,
html[data-theme="dark"] .sitemap-note {
    background: #111b2d;
    border-color: #314159;
}

html[data-theme="dark"] .sitemap-jump-nav a,
html[data-theme="dark"] .sitemap-link-list a:hover {
    background: #17243a;
    border-color: #314159;
}

@media (max-width: 1160px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sitemap-main {
        width: min(100% - 20px, 1540px);
        padding-top: 18px;
    }

    .sitemap-hero {
        padding: 28px 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .sitemap-xml-button {
        width: 100%;
        white-space: normal;
    }

    .sitemap-summary,
    .sitemap-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sitemap-summary > div {
        padding: 16px;
    }

    .sitemap-card-header {
        padding: 17px;
    }
}

@media (max-width: 430px) {
    .sitemap-hero h1 {
        font-size: 34px;
    }

    .sitemap-card-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sitemap-count {
        grid-column: 2;
        justify-self: start;
    }

    .sitemap-link-list a {
        padding: 11px 9px;
    }
}

@media print {
    .test-site-header,
    .universal-site-footer,
    .sitemap-jump-nav,
    .sitemap-xml-button {
        display: none !important;
    }

    .sitemap-main {
        width: 100%;
        padding: 0;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sitemap-card,
    .sitemap-hero,
    .sitemap-note {
        box-shadow: none;
        break-inside: avoid;
    }
}
