/**
 * CCI Breadcrumbs Elementor Widget.
 *
 * Base layout for the dynamic site-wide breadcrumb trail. Colours,
 * typography, spacing and alignment are controlled from the widget's
 * Style tab; the rules below provide sensible dark-theme defaults.
 *
 * The trail is clamped to a fixed number of lines and ends in an ellipsis if
 * it overflows: a single line on desktop and tablet, up to two lines on
 * mobile. Crumbs flow as inline text (with <wbr> break points between them) so
 * a long trail wraps between levels rather than breaking a separator onto a
 * new line.
 */

.cci-breadcrumbs {
    --cci-bc-gap: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* Desktop + tablet: one line. */
    line-clamp: 1;
    overflow: hidden;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: break-word;
}

.cci-breadcrumbs .breadcrumb-item {
    display: inline;
}

.cci-breadcrumbs a {
    color: rgba(211, 211, 211, 0.50);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cci-breadcrumbs a:hover,
.cci-breadcrumbs a:focus {
    color: #ffffff;
}

.cci-breadcrumbs .breadcrumb-separator {
    margin: 0 var(--cci-bc-gap);
    color: rgba(211, 211, 211, 0.50);
}

.cci-breadcrumbs .breadcrumb-current {
    color: #ffffff;
}

/* Tablet: still a single line. */
@media (max-width: 1024px) {
    .cci-breadcrumbs {
        --cci-bc-gap: 6px;
        font-size: 16px;
    }
}

/* Mobile: allow up to two lines before truncating. */
@media (max-width: 767px) {
    .cci-breadcrumbs {
        --cci-bc-gap: 6px;
        font-size: 15px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* Editor-only placeholder shown when the trail is empty (e.g. front page). */
.cci-breadcrumbs--placeholder {
    color: rgba(211, 211, 211, 0.50);
    font-weight: 500;
    font-style: italic;
}
