/* =============================================================
   FROM — Site navigation chrome + accessible breadcrumbs
   Version 1.0. No dependency on hero, case or content classes.
   ============================================================= */

/* Shared site-navigation region. In normal pages it follows document flow. */
.site-chrome {
    position: relative;
    z-index: 40;
    width: 100%;
    min-width: 0;
}

/* On pages with a photographic full-screen cover, float the WHOLE
   navigation region over the page, not an individual breadcrumb. */
.site-chrome--overlay {
    position: absolute;
    inset: 0 0 auto;
}

/* Existing case.css sets .header { position: absolute }.
   Override that within the new shared region so the breadcrumb
   naturally follows the actual header height, including wrapping. */
.site-chrome > .header {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

/* Width aligns with the existing FROM header (1200px / 90%). */
.breadcrumbs-shell {
    width: min(1200px, 90%);
    min-width: 0;
    margin-inline: auto;
    padding-block: 0 12px;
}

.breadcrumbs {
    --crumb-color: var(--text-color, #222);
    --crumb-current-color: var(--text-color, #222);
    --crumb-divider-color: currentColor;
    --crumb-hover-color: var(--primary-color, #36b51a);

    min-width: 0;
    color: var(--crumb-color);
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .015em;
}

.site-chrome--overlay .breadcrumbs {
    --crumb-color: rgba(244, 244, 244, .74);
    --crumb-current-color: #f4f4f4;
    --crumb-divider-color: rgba(244, 244, 244, .42);
    --crumb-hover-color: #f4f4f4;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 0 0 auto;
}

.breadcrumbs-item:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.breadcrumbs-item + .breadcrumbs-item::before {
    content: ">";
    color: #59d874;
    flex: 0 0 auto;
    opacity: .8;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .15s ease;
}

.breadcrumbs a:hover {
    color: var(--crumb-hover-color);
    text-decoration: underline;
}

.breadcrumbs a:focus-visible {
    outline: 2px solid var(--primary-color, #59d874);
    outline-offset: 4px;
    border-radius: 2px;
}

.breadcrumbs-current {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--crumb-current-color);
    font-weight: 600;
}

/* The shorter links remain readable; only the current title is truncated. */
@media (max-width: 600px) {
    .breadcrumbs {
        font-size: 12px;
    }

    .breadcrumbs-list,
    .breadcrumbs-item {
        gap: 7px;
    }

    .breadcrumbs-shell {
        padding-bottom: 10px;
    }
}

@media print {
    .site-chrome .breadcrumbs-shell {
        display: none !important;
    }
}
