/* Sitemap page (tpl-sitemap) */
.tpl-sitemap .hero {
    margin-bottom: 24px;
}

.tpl-sitemap section + section {
    margin-top: 28px;
}

.tpl-sitemap .sitemap-branch-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 18px 24px;
    padding: 24px;
    border: 1px solid #c6d7ee;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 24px rgba(17, 47, 95, 0.06);
}

.tpl-sitemap .sitemap-branch-content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.tpl-sitemap .sitemap-branch-head {
    margin-bottom: 2px;
}

.tpl-sitemap .sitemap-branch-head h2 {
    margin: 0;
    color: #112744;
    font-size: clamp(30px, 2vw, 42px);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.tpl-sitemap .sitemap-branch-head p {
    margin: 10px 0 0;
    max-width: 860px;
    color: #546881;
}

.tpl-sitemap .sitemap-branch-rail {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    min-height: 100%;
}

.tpl-sitemap .sitemap-branch-toggle {
    position: sticky;
    top: 92px;
    align-self: start;
    z-index: 3;
    flex: 0 0 auto;
    min-height: 56px;
    padding: 0 24px 0 50px;
    border: 1px solid #a8c4e5;
    border-radius: 999px;
    background: rgba(245, 250, 255, 0.96);
    color: #145e9f;
    font: inherit;
    font-size: clamp(16px, 1vw, 20px);
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tpl-sitemap .sitemap-branch-toggle::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid #145e9f;
    transform: translateY(-50%);
    transition: transform .2s ease;
}

.tpl-sitemap .sitemap-branch-toggle[aria-expanded="true"]::before {
    transform: translateY(-50%) rotate(90deg);
}

.tpl-sitemap .sitemap-branch-toggle:hover,
.tpl-sitemap .sitemap-branch-toggle:focus-visible {
    border-color: #7fa9d7;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 67, 121, 0.1);
    outline: none;
}

.tpl-sitemap .sitemap-branch-toggle:active {
    transform: translateY(1px);
}

.tpl-sitemap .sitemap-branch-body h3 {
    margin: 20px 0 10px;
    color: #1b3555;
    font-size: 20px;
    line-height: 1.2;
}

.tpl-sitemap .sitemap-link-list {
    margin: 0;
    padding-left: 20px;
}

.tpl-sitemap .sitemap-link-list a {
    color: #1f4f93;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
}

.tpl-sitemap .sitemap-link-list a:visited {
    color: #1f4f93;
}

.tpl-sitemap .sitemap-link-list a:hover {
    color: #153f79;
    text-decoration-color: rgba(21, 63, 121, 0.6);
}

.tpl-sitemap .sitemap-link-list a:focus-visible {
    color: #153f79;
    outline: none;
    text-decoration-color: rgba(21, 63, 121, 0.75);
}

.tpl-sitemap .sitemap-link-list li + li {
    margin-top: 6px;
}

.tpl-sitemap .sitemap-link-list--columns {
    column-width: 220px;
    column-gap: 28px;
}

.tpl-sitemap .sitemap-link-list--columns li {
    break-inside: avoid;
}

.tpl-sitemap .sitemap-link-list--extra {
    margin-top: 10px;
}

.tpl-sitemap .sitemap-branch-body {
    grid-column: 1;
    grid-row: 2;
}

@media (max-width: 980px) {
    .tpl-sitemap .sitemap-branch-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tpl-sitemap .sitemap-branch-rail {
        grid-column: 1;
        grid-row: auto;
        min-height: 0;
        align-self: start;
    }

    .tpl-sitemap .sitemap-branch-toggle {
        width: 100%;
        top: 84px;
    }

    .tpl-sitemap .sitemap-branch-body {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .tpl-sitemap .sitemap-branch-card {
        padding: 18px;
        border-radius: 18px;
    }

    .tpl-sitemap .sitemap-branch-head h2 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .tpl-sitemap .sitemap-branch-toggle {
        position: static;
        min-height: 52px;
        padding: 0 18px 0 46px;
        font-size: 18px;
    }

    .tpl-sitemap .sitemap-branch-toggle::before {
        left: 18px;
    }

    .tpl-sitemap .sitemap-link-list--columns {
        column-width: auto;
        columns: 1;
    }
}
