/* ============================================
   BREADCRUMBS — elegant navigation chain
   ============================================ */

/* Base breadcrumb list */
.med-breadcrumbs,
.med-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Inside hero — white text */
.medical-hero .med-breadcrumbs,
.medical-hero .med-breadcrumbs-list {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Individual item */
.med-breadcrumbs li,
.med-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

/* Separator */
.med-breadcrumbs li:not(:last-child)::after,
.med-breadcrumbs-separator {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: 0 0.6rem;
    opacity: 0.5;
}

.med-breadcrumbs-separator {
    list-style: none;
}

/* Hero separator */
.medical-hero .med-breadcrumbs li:not(:last-child)::after {
    opacity: 0.7;
    border-color: rgba(255,255,255,0.8);
}

/* Links */
.med-breadcrumbs a,
.med-breadcrumbs-item a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    margin: -0.1rem -0.2rem;
}

.med-breadcrumbs a:hover,
.med-breadcrumbs-item a:hover {
    opacity: 0.85;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.med-breadcrumbs a:focus-visible,
.med-breadcrumbs-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    opacity: 1;
}

/* Current page (no link) */
.med-breadcrumbs li[aria-current='page'],
.med-breadcrumbs-item span[aria-current='page'] {
    font-weight: 600;
    cursor: default;
}

/* Outside hero — subtle dark look */
:not(.medical-hero) > .med-container > nav > .med-breadcrumbs,
:not(.medical-hero) .med-breadcrumbs-list {
    color: var(--med-text-light, #666);
    padding: 0.5rem 0;
}

:not(.medical-hero) > .med-container > nav > .med-breadcrumbs a:hover {
    color: var(--med-primary, #5568d3);
}

/* Mobile */
@media (max-width: 768px) {
    .med-breadcrumbs,
    .med-breadcrumbs-list {
        font-size: 0.8rem;
    }
    .med-breadcrumbs li:not(:last-child)::after,
    .med-breadcrumbs-separator {
        margin: 0 0.4rem;
    }
}
