.scf-most-read {
    font: inherit;
    color: inherit;
    max-width: 100%;
}

.scf-most-read * {
    box-sizing: border-box;
}

.scf-most-read__header {
    margin: 0 0 1rem;
}

.scf-most-read__title {
    margin: 0;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

.scf-most-read__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scf-most-read__item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    margin: 0 0 1.15rem;
    padding: 0;
}

.scf-most-read__rank {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    opacity: .32;
    font-variant-numeric: tabular-nums;
}

.scf-most-read__content {
    min-width: 0;
}

/*
 * O componente controla todos os estados do link para não herdar
 * sublinhados/cores de hover ou visited do tema do portal.
 */

.scf-most-read__link:hover {
    color: inherit !important;
    text-decoration: none !important;
    opacity: .72;
}

.scf-most-read__link:focus-visible {
    color: inherit !important;
    text-decoration: none !important;
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 3px;
}

.scf-most-read__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .4rem;
    margin-top: .18rem;
    font-size: .82rem;
    line-height: 1.35;
    opacity: .48;
}

.scf-most-read__empty {
    padding: .75rem 0;
    opacity: .7;
}

@media (max-width: 480px) {
    .scf-most-read__item {
        grid-template-columns: 2rem minmax(0, 1fr);
        gap: .5rem;
    }

    .scf-most-read__rank {
        font-size: 1.45rem;
    }

    .scf-most-read__title {
        font-size: 1.15rem;
    }
}

/* Foundation-safe: somente neutralização estrutural.
   A tipografia e a escala acima permanecem exatamente na baseline CSPB. */
.scf-most-read,
.scf-most-read__header,
.scf-most-read__list,
.scf-most-read__item,
.scf-most-read__content,
.scf-most-read__meta {
    float: none;
}

.scf-most-read__list,
.scf-most-read__item {
    border: 0;
    background: transparent;
}

.scf-most-read__list::before,
.scf-most-read__list::after,
.scf-most-read__item::before,
.scf-most-read__item::after {
    content: none;
}

/* =========================================================
   SCF Most Read 2.3.0 — portable visual refinement
   Mantém a hierarquia CSPB, com escala moderada e legível.
   ========================================================= */
.scf-most-read {
    font-size: 16px;
    line-height: 1.45;
}

.scf-most-read__header {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.scf-most-read__title {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.scf-most-read__list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scf-most-read__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 0;
}

.scf-most-read__rank {
    margin: 0;
    padding: 0;
    color: #c7cbd1;
    font: inherit;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
}

.scf-most-read__content {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.scf-most-read__link:hover,
.scf-most-read__link:focus-visible {
    color: inherit;
    text-decoration: underline;
}

.scf-most-read__meta {
    margin-top: 5px;
    color: #97a0ac;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.scf-most-read__meta-separator {
    margin: 0 4px;
}

@media (max-width: 640px) {
    .scf-most-read__title {
        font-size: 19px;
    }

    .scf-most-read__item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }

    .scf-most-read__rank {
        font-size: 24px;
    }

    .scf-most-read__link {
        font-size: 14px;
    }

    .scf-most-read__meta {
        font-size: 12px;
    }
}

/* =========================================================
   SCF Most Read 2.4.0 — header isolation
   Ajuste cirúrgico: cabeçalho transparente e proporcional.
   ========================================================= */
.scf-most-read__header,
.scf-most-read__header::before,
.scf-most-read__header::after {
    display: block;
    float: none;
    width: auto;
    min-height: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.scf-most-read__title {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
}

/* 2.4.1 — Host tag collision fix
   O cabeçalho do componente usa DIV neutra no renderer, evitando regras
   legadas como `.container header { background: ... }`. */
.scf-most-read__header {
    background: transparent;
}

/* =========================================================
   SCF Most Read 2.4.2 — softer typography
   Mantém escala/estrutura da 2.4.1 e suaviza a leitura.
   ========================================================= */
.scf-most-read__title {
    color: #5f6470;
    font-weight: 600;
}

.scf-most-read__meta {
    color: #a7abb2;
    font-weight: 400;
}


/* =========================================================
   SCF Most Read 2.5.1 — balanced CSPB-like typography
   Preserva a estrutura correta e recupera presença visual.
   ========================================================= */
.scf-most-read__link,
.scf-most-read__link:link,
.scf-most-read__link:visited {
    display: block;
    margin: 0;
    padding: 0;
    color: #5b606b !important;
    text-decoration: none !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color .18s ease, opacity .18s ease;
}

.scf-most-read__link:hover,
.scf-most-read__link:focus-visible {
    color: #4d525c !important;
    text-decoration: none !important;
}

.scf-most-read__meta {
    color: #a7abb2;
    font-weight: 400;
}
