/* TBS Helper — Breadcrumb Bar widget */

.tbs_helper_breadcrumb.tbs_helper_breadcrumb {
    width: 100%;
    border-bottom: 1px solid var(--tbs-border);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--tbs-container-max);
    margin-inline: auto;
    padding: 16px 24px;
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--tbs-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tbs-body-muted);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__crumb {
    color: var(--tbs-body-muted);
    text-decoration: none;
    transition: color 0.2s var(--tbs-ease);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__crumb:hover,
.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__crumb:focus-visible {
    color: var(--tbs-gold-dark);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__sep {
    color: var(--tbs-border-strong);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__current {
    color: var(--tbs-navy-900);
    font-weight: 700;
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    font-family: var(--tbs-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tbs-navy-900);
    text-decoration: none;
    transition: color 0.2s var(--tbs-ease);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back:hover,
.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back:focus-visible {
    color: var(--tbs-gold-dark);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back svg {
    flex: none;
    transition: transform 0.2s var(--tbs-ease);
}

.tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back:hover svg {
    transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__crumb,
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back,
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back svg {
        transition: none;
    }
}

@media (max-width: 600px) {
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    /* The trail can run long ("Home / Businesses / Some Long Venture Name")
       — scroll it horizontally on one line instead of wrapping mid-word
       into a ragged multi-line block. */
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__trail {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__trail::-webkit-scrollbar {
        display: none;
    }

    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__crumb,
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__current {
        white-space: nowrap;
    }

    /* A hairline above the back link visually separates it from the trail
       now that they're stacked, and gives the link a bit more tap target. */
    .tbs_helper_breadcrumb.tbs_helper_breadcrumb .tbs_helper_breadcrumb__back {
        padding-top: 10px;
        border-top: 1px solid var(--tbs-border);
        width: 100%;
    }
}
