.mgs-breadcrumb-bar {
    width: 100%;
    background: var(--page-background);
    border-bottom: 1px solid var(--border-color);
}

.mgs-breadcrumb-bar > .container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.mgs-breadcrumb {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mgs-breadcrumb .mod-breadcrumbs__wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mgs-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--muted-color);
}

.mgs-breadcrumb-list .breadcrumb-item {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.mgs-breadcrumb-list .breadcrumb-item:not(:last-child)::after {
    content: "/";
    display: inline-block;
    margin: 0 10px;
    color: color-mix(in srgb, var(--muted-color) 60%, transparent);
}

.mgs-breadcrumb-list .pathway {
    color: var(--muted-color);
    transition: color .2s ease;
}

.mgs-breadcrumb-list .pathway:hover,
.mgs-breadcrumb-list .pathway:focus {
    color: var(--theme-color);
}

.mgs-breadcrumb-list .breadcrumb-item.active {
    min-width: 0;
    overflow: hidden;
    color: var(--text-color);
    font-weight: 600;
    text-overflow: ellipsis;
}

.mgs-breadcrumb-list .breadcrumb-item.active span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 650px) {
    .mgs-breadcrumb-bar > .container {
        width: calc(100% - 30px);
    }

    .mgs-breadcrumb {
        min-height: 44px;
    }

    .mgs-breadcrumb-list {
        font-size: 10px;
    }

    /* Mobile: keep only Home + current page. */
    .mgs-breadcrumb-list .breadcrumb-item:not(:first-child):not(:last-child) {
        display: none;
    }

    .mgs-breadcrumb-list .breadcrumb-item:first-child {
        flex: 0 0 auto;
    }

    .mgs-breadcrumb-list .breadcrumb-item:first-child::after {
        content: "/";
        display: inline-block;
        margin: 0 8px;
        color: color-mix(in srgb, var(--muted-color) 60%, transparent);
    }

    .mgs-breadcrumb-list .breadcrumb-item.active {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .mgs-breadcrumb-list .breadcrumb-item.active span {
        display: block;
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}


/* =========================================================
   Shared right sidebar / Featured Articles
   ========================================================= */

.rsidebar {
    position: sticky;
    top: var(--rsidebar-sticky-top, 110px);
    align-self: start;
    height: max-content;
    min-width: 0;
    padding-left: 25px;
    border-left: 1px solid var(--border-color);
}

.rsidebar .side-banner {
    margin-bottom: 19px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.rsidebar .banneritem {
    padding: 4px;
    box-shadow: 0 0 3px 1px rgba(24, 26, 25, .35);
}

.side-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-color);
}

.side-head h2 {
    margin: 0;
}

.feature {
    margin-bottom: 19px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.feature-img {
    display: block;
    height: 140px;
    margin-bottom: 11px;
    overflow: hidden;
}

.feature-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature h3 {
    margin: 0;
}

.feature h3 a {
    color: inherit;
    text-decoration: none;
}

.feature h3 a:hover,
.feature h3 a:focus {
    color: var(--theme-color);
}

@media (max-width: 800px) {
    .rsidebar {
        position: static;
        top: auto;
        height: auto;
        padding-left: 0;
        border-left: 0;
    }
}
