/* 03-breadcrumbs.css
 * Breadcrumbs padrão do tema Agência Federal
 * Versão institucional unificada
 */

/* =========================================================
   Base
   ========================================================= */

.af-breadcrumbs,
.af-breadcrumbs * {
    box-sizing: border-box;
}

.af-breadcrumbs {
    width: 100%;
}

/* =========================================================
   Lista
   ========================================================= */

.af-breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 6px;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;

    color: rgba(0, 0, 0, .65);
}

/* Remove qualquer marcador padrão */
.af-breadcrumbs-list>li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   Separador novo (automático)
   ========================================================= */

/* Esconde separador antigo dos templates legados */
.af-bc-sep {
    display: none !important;
}

/* Adiciona separador institucional */
.af-bc-item+.af-bc-item::before {
    content: "›";
    margin: 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, .35);
}

/* =========================================================
   Links
   ========================================================= */

.af-bc-link {
    color: #0b57d0;
    text-decoration: none;
    transition: opacity .2s ease;
}

.af-bc-link:hover {
    opacity: .75;
}

/* =========================================================
   Item atual
   ========================================================= */

.af-bc-current {
    color: rgba(0, 0, 0, .85);
    font-weight: 600;
}

/* =========================================================
   Yoast (mantém visual consistente)
   ========================================================= */

.af-breadcrumbs--yoast {
    font-size: 15px;
}

.af-breadcrumbs--yoast a {
    color: #0b57d0;
    text-decoration: none;
}

.af-breadcrumbs--yoast a:hover {
    opacity: .75;
}

.af-breadcrumbs--yoast .breadcrumb_last {
    color: rgba(0, 0, 0, .85);
    font-weight: 600;
}

/* =========================================================
   Mobile refinement
   ========================================================= */

@media (max-width: 768px) {

    .af-breadcrumbs-list {
        font-size: 14px;
        gap: 4px;
    }

    /* Trunca somente o último item (título) */
    .af-bc-item:last-child {
        max-width: 65vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {

    .af-breadcrumbs-list {
        font-size: 13px;
    }

    .af-bc-item:last-child {
        max-width: 55vw;
    }
}