/* Portal Breadcrumbs — minimal, design-token-driven styling.
 * Uses CSS variables that already exist in the portal stylesheet
 * (--primary-300, --primary-500, --secondary-500, etc.). If a variable
 * isn't defined, fallbacks kick in via inherit/currentColor. */

.portal-breadcrumbs {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.portal-breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem;
}

.portal-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    color: var(--primary-300, #888);
}

/* Separator "/" between items, except before the first */
.portal-breadcrumbs__item + .portal-breadcrumbs__item::before {
    content: "/";
    margin-right: 0.125rem;
    color: var(--primary-200, #ccc);
    font-weight: 400;
}

.portal-breadcrumbs__link {
    color: var(--primary-500, #41668c);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.portal-breadcrumbs__link:is(:hover, :focus) {
    color: var(--secondary-500, #e74c3c);
    text-decoration: underline;
}

.portal-breadcrumbs__item--current > span {
    color: var(--primary-500, #41668c);
    font-weight: 500;
}

/* Mobile: smaller, tighter */
@media (max-width: 480px) {
    .portal-breadcrumbs { font-size: 0.6875rem; }
    .portal-breadcrumbs__list { gap: 0.125rem; }
    .portal-breadcrumbs__item + .portal-breadcrumbs__item::before { margin-right: 0.125rem; }
}