/* Homepage promotion and notices. Scoped to the homepage only. */
.home-page .home-top-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: stretch;
    margin: 0 0 28px;
}

.home-page .home-promo {
    min-width: 0;
}

.home-page .home-promo-stage {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    background: #f3f5f7;
}

.home-page .home-promo-slide {
    position: absolute;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease, visibility 0s linear 360ms;
}

.home-page .home-promo-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.home-page .home-promo-link {
    display: block;
}

.home-page a.home-promo-link {
    text-decoration: none;
}

.home-page .home-promo picture,
.home-page .home-promo img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-page .home-promo img {
    object-fit: cover;
}

.home-page .home-promo-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(24, 30, 38, .58);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: background .2s ease, opacity .2s ease;
}

.home-page .home-promo-control--prev {
    left: 14px;
}

.home-page .home-promo-control--next {
    right: 14px;
}

.home-page .home-promo-stage:hover .home-promo-control,
.home-page .home-promo-stage:focus-within .home-promo-control {
    opacity: 1;
}

.home-page .home-promo-control:hover,
.home-page .home-promo-control:focus-visible {
    background: #fc5214;
    outline: 0;
}

.home-page .home-promo-dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.home-page .home-promo-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.home-page .home-promo-dot.is-active {
    width: 22px;
    border-radius: 5px;
    background: #fc5214;
}

.home-page .home-promo-dot:focus-visible {
    outline: 2px solid #fc5214;
    outline-offset: 3px;
}

.home-page .home-notice {
    display: flex;
    flex-direction: column;
    height: 400px;
    min-width: 0;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background: #fff;
}

.home-page .home-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #edf0f2;
}

.home-page .home-notice-head h2 {
    margin: 0;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.home-page .home-notice-head h2 .fa {
    margin-right: 7px;
    color: #fc5214;
}

.home-page .home-notice-head a {
    flex-shrink: 0;
    color: #fc5214;
    font-size: 13px;
    text-decoration: none;
}

.home-page .home-notice-list {
    display: grid;
    flex: 1;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0 16px;
    list-style: none;
}

.home-page .home-notice-list li {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-bottom: 1px solid #edf0f2;
}

.home-page .home-notice-list li:last-child {
    border-bottom: 0;
}

.home-page .home-notice-list a {
    display: flex;
    height: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    color: #262a2f;
    text-decoration: none;
}

.home-page .home-notice-copy {
    display: block;
    min-width: 0;
}

.home-page .home-notice-copy strong,
.home-page .home-notice-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .home-notice-copy strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.home-page .home-notice-copy em {
    margin-top: 4px;
    color: #7a838d;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.home-page .home-notice-list time {
    flex-shrink: 0;
    color: #939ba4;
    font-size: 11px;
    line-height: 1.5;
}

.home-page .home-notice-list a:hover strong,
.home-page .home-notice-head a:hover {
    color: #fc5214;
}

@media (max-width: 900px) {
    .home-page .home-top-content {
        grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
        gap: 14px;
    }

    .home-page .home-promo-stage {
        min-height: 360px;
    }

    .home-page .home-notice {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .home-page .home-top-content {
        display: block;
        margin-bottom: 22px;
    }

    .home-page .home-notice {
        display: none;
    }

    .home-page .home-promo-stage {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .home-page .home-promo-control {
        width: 32px;
        height: 32px;
        margin-top: -16px;
        opacity: 1;
    }

    .home-page .home-promo-control--prev {
        left: 9px;
    }

    .home-page .home-promo-control--next {
        right: 9px;
    }

    .home-page .home-promo-dots {
        bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-promo-slide,
    .home-page .home-promo-control,
    .home-page .home-promo-dot {
        transition: none;
    }
}
