/* Moving guides directory. Scoped so the site's shared styles stay unchanged. */
.moving-guide-hub #moving-guide-library {
    scroll-margin-top: 82px;
}

.moving-guide-hub .moving-guide-directory .section-heading p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.moving-guide-hub .guide-route-section {
    max-width: 1120px;
    margin: 38px auto 36px;
}

.moving-guide-hub .guide-route-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
}

.moving-guide-hub .guide-route-section__heading h3 {
    margin: 0 0 7px;
    color: #1b2b43;
    font-size: clamp(25px, 2.6vw, 32px);
    line-height: 1.2;
}

.moving-guide-hub .guide-route-section__heading p {
    max-width: 730px;
    margin: 0;
    color: #526374;
    font-size: 15px;
    line-height: 1.6;
}

.moving-guide-hub .guide-route-section__heading > a {
    flex: 0 0 auto;
    color: #244ba0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.moving-guide-hub .guide-route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.moving-guide-hub a.guide-route-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 174px;
    padding: 21px 24px;
    color: #263648;
    background: #fff;
    border: 1px solid #d9e2ee;
    border-left: 4px solid #e3a728;
    border-radius: 9px;
    box-shadow: 0 6px 20px rgba(20, 43, 67, .05);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.moving-guide-hub a.guide-route-card:hover {
    color: #263648;
    border-color: #92add9;
    border-left-color: #e3a728;
    box-shadow: 0 11px 26px rgba(20, 43, 67, .11);
    transform: translateY(-2px);
}

.moving-guide-hub .guide-route-card__type {
    margin-bottom: 6px;
    color: #244ba0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.moving-guide-hub .guide-route-card h4 {
    margin: 0 0 6px;
    color: #182b50;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.moving-guide-hub .guide-route-card p {
    margin: 0 0 13px;
    color: #526374;
    font-size: 14px;
    line-height: 1.55;
}

.moving-guide-hub .guide-route-card__action {
    margin-top: auto;
    color: #244ba0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.moving-guide-hub .guide-index__group {
    grid-template-columns: minmax(245px, .76fr) minmax(0, 1.8fr);
}

.moving-guide-hub .guide-index__content {
    padding: 24px;
}

.moving-guide-hub .guide-index__topics {
    gap: 12px;
}

.moving-guide-hub .guide-index__topics li::before {
    display: none;
}

.moving-guide-hub .guide-index__topics li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    min-height: 99px;
    gap: 5px;
    padding: 17px 19px;
    color: #1c3049;
    background: #fff;
    border: 1px solid #dbe3eb;
    border-radius: 7px;
    overflow-wrap: break-word;
    box-shadow: 0 3px 10px rgba(17, 24, 39, .03);
    text-decoration: none;
}

.moving-guide-hub .guide-index__topics li a span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.moving-guide-hub .guide-index__topics li a small {
    display: block;
    flex: initial;
    max-width: 100%;
    color: #586a7b;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.45;
    text-transform: none;
}

.moving-guide-hub .guide-index__featured-grid {
    grid-template-columns: 1fr;
}

.moving-guide-hub .guide-index__featured {
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 142px;
}

.moving-guide-hub .guide-index__featured img {
    width: 142px;
    height: 100%;
    min-height: 142px;
}

.moving-guide-hub .guide-index__featured-copy {
    min-width: 0;
}

.moving-guide-hub a.guide-route-card:focus-visible,
.moving-guide-hub .guide-index__topics a:focus-visible,
.moving-guide-hub .guide-index__featured:focus-visible {
    outline: 3px solid #e3a728;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .moving-guide-hub .guide-index__group {
        grid-template-columns: 1fr;
    }

    .moving-guide-hub .guide-index__intro {
        border-right: 0;
        border-bottom: 1px solid rgba(36, 75, 160, .12);
    }
}

@media (max-width: 740px) {
    .moving-guide-hub .guide-route-section__heading {
        display: block;
    }

    .moving-guide-hub .guide-route-section__heading > a {
        display: inline-block;
        margin-top: 12px;
    }

    .moving-guide-hub .guide-route-grid,
    .moving-guide-hub .guide-index__topics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .moving-guide-hub a.guide-route-card {
        min-height: 0;
        padding: 19px 20px;
    }

    .moving-guide-hub .guide-index__content {
        padding: 16px;
    }

    .moving-guide-hub .guide-index__featured {
        grid-template-columns: 1fr;
    }

    .moving-guide-hub .guide-index__featured img {
        width: 100%;
        height: 150px;
        min-height: 0;
    }
}
