/* =========================================================
   IDYLEASE HTML SITEMAP
   Page-specific styles only. Shared subpage files remain intact.
   ========================================================= */

.idy-sitemap-main .idy-subpage-section {
    padding-bottom: clamp(82px, 9vw, 118px);
}

.idy-sitemap-main .idy-subpage-sidebar {
    position: static;
}

.idy-sitemap-main .idy-subpage-sidebar .lead {
    margin: 0;
    max-width: 330px;
    font-size: 17px;
    line-height: 1.72;
    color: var(--idy-muted);
}

.idy-sitemap-main .idy-subpage-content__kicker,
.idy-sitemap-sidebar-note {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--idy-gold);
}

.idy-sitemap-sidebar-note {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(170,132,83,.32);
    letter-spacing: 3px;
}


.idy-sitemap-sidebar-images {
    display: grid;
    gap: 26px;
    margin-top: 34px;
}

.idy-sitemap-sidebar-image {
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.idy-sitemap-sidebar-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Match the approved Idylease history-page caption treatment:
   centered, copper, non-serif, normal case, no caption box. */
.idy-sitemap-sidebar-image figcaption {
    margin: 14px 0 0;
    padding: 0;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .035em;
    text-align: center;
    text-transform: none;
    color: var(--idy-copper);
    background: transparent;
    border: 0;
}

.idy-sitemap-intro {
    max-width: 760px;
    margin-bottom: 46px !important;
}

.idy-sitemap-groups {
    display: grid;
    gap: 46px;
}

.idy-sitemap-group {
    margin: 0;
}

.idy-sitemap-group__heading {
    margin: 0 0 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(170,132,83,.48);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--idy-gold);
}

.idy-sitemap-list {
    margin: 0;
    padding: 0;
}

.idy-sitemap-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(34,34,34,.10);
}

.idy-sitemap-list li:last-child {
    border-bottom: 0;
}

.idy-sitemap-list a {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    padding: 15px 34px 15px 0;
    font-family: 'Gilda Display', serif;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.28;
    color: var(--idy-ink);
    text-decoration: none;
    transition: color .22s ease, padding-left .22s ease;
}

.idy-sitemap-list a::after {
    content: '→';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: rgba(170,132,83,.78);
    transition: transform .22s ease, color .22s ease;
}

.idy-sitemap-list a:hover,
.idy-sitemap-list a:focus {
    color: var(--idy-gold);
    padding-left: 8px;
}

.idy-sitemap-list a:hover::after,
.idy-sitemap-list a:focus::after {
    transform: translate(4px, -50%);
    color: var(--idy-gold);
}

.idy-sitemap-list .idy-sitemap-external::after {
    content: '↗';
}

.idy-sitemap-list__note {
    display: block;
    margin-top: 3px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .02em;
    color: #8b8681;
}

@media screen and (max-width: 991px) {
    .idy-sitemap-main .idy-subpage-sidebar {
        position: static;
    }

    .idy-sitemap-intro {
        margin-bottom: 38px !important;
    }
}

@media screen and (max-width: 575px) {
    .idy-sitemap-groups {
        gap: 38px;
    }

    .idy-sitemap-list a {
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 21px;
    }
}

/* =========================================================
   SITEMAP — FOLDED PAGE-SPECIFIC RULES
   ========================================================= */

/* Preserve full-width linked sidebar images despite global inline-block anchor rules. */
.idy-sitemap-sidebar-image__link {
    display: block;
    width: 100%;
}

/* Sitemap only: use the approved shared subhero height while preserving
   the framing of the new wide hero image. Height remains owned by
   idylease-subpage.css, matching the other desktop subpages. */
.idy-sitemap-subhero .idy-subhero__image {
    background-size: cover !important;
    background-position: 95% center !important;
    background-repeat: no-repeat !important;
}

/* Sitemap only — approved mobile treatment */
@media screen and (max-width: 767px) {
    /* Replace desktop lateral motion with the approved subtle mobile rise. */
    body.idy-sitemap-body .rz-left,
    body.idy-sitemap-body .rz-right,
    body.idy-sitemap-body .rz-inward-left,
    body.idy-sitemap-body .rz-inward-right {
        transform: translate3d(0, 20px, 0) !important;
    }

    body.idy-sitemap-body .rz-left.rz-visible,
    body.idy-sitemap-body .rz-right.rz-visible,
    body.idy-sitemap-body .rz-inward-left.rz-visible,
    body.idy-sitemap-body .rz-inward-right.rz-visible {
        transform: translate3d(0, 0, 0) !important;
    }

    /* Center the former desktop sidebar as a single mobile composition. */
    body.idy-sitemap-body .idy-subpage-sidebar {
        text-align: center;
    }

    body.idy-sitemap-body .idy-subpage-social,
    body.idy-sitemap-body .idy-subpage-sidebar__kicker,
    body.idy-sitemap-body .idy-sitemap-sidebar-note,
    body.idy-sitemap-body .idy-subpage-rule,
    body.idy-sitemap-body .idy-sitemap-sidebar-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.idy-sitemap-body .idy-subpage-sidebar h2,
    body.idy-sitemap-body .idy-subpage-sidebar .lead,
    body.idy-sitemap-body .idy-sitemap-sidebar-note {
        text-align: center !important;
    }

    body.idy-sitemap-body .idy-sitemap-sidebar-image {
        width: min(100%, 420px);
        max-width: 420px;
    }

    /* Match the approved mobile footer spacing used across the subpages. */
    body.idy-sitemap-body .idy-visit-footer__actions {
        padding-top: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 50px !important;
    }
}
