/* Shared mobile breadcrumbs. Keep ancestor labels intact; only the final item
   may shrink. Text and BreadcrumbList names remain complete in the document. */
@media (max-width: 700px) {
    .breadcrumb-container {
        min-width: 0;
        max-width: 100%;
    }

    .breadcrumb-container .breadcrumb-list {
        flex-wrap: nowrap;
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
        /* Exceptionally long ancestor paths remain reachable without wrapping. */
        overflow-x: auto;
    }

    .breadcrumb-list > .breadcrumb-item:not(:last-child) {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .breadcrumb-list > .breadcrumb-item:last-child {
        display: block;
        flex: 0 1 auto;
        min-width: 1.5em;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .breadcrumb-list > .breadcrumb-item:last-child > a {
        white-space: nowrap;
    }
}
