/*
 * Tema filho FCR — menu lateral de tabs verticais (single cursos stricto-sensu).
 * Todos os seletores ficam escopados em [data-fcr-sml] / .fcr-sml-*
 * para não vazar nada para o resto do site.
 */

[data-fcr-sml] {
    /* ~1cm de respiro entre o hero/imagem do topo e o início do bloco. */
    margin-top: 38px;
}

@media (max-width: 575.98px) {
    [data-fcr-sml] {
        margin-top: 24px;
    }
}

/* ===== Coluna lateral (nav) ===== */
.fcr-sml-aside {
    margin-bottom: 1.5rem;
}

.fcr-sml-nav {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.fcr-sml-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fcr-sml-nav__item + .fcr-sml-nav__item {
    border-top: 1px solid #eef0f2;
}

.fcr-sml-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: 0;
    text-align: left;
    color: #2c3e50;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, padding-left 160ms ease;
}

.fcr-sml-nav__link:hover,
.fcr-sml-nav__link:focus-visible {
    background: #f6f8fa;
    color: #1a242f;
    outline: none;
}

.fcr-sml-nav__link:focus-visible {
    box-shadow: inset 3px 0 0 #1a73e8;
}

.fcr-sml-nav__link.is-active {
    background: #f0f4f9;
    color: #0d47a1;
    padding-left: 22px;
    box-shadow: inset 4px 0 0 #0d47a1;
}

.fcr-sml-nav__label {
    flex: 1 1 auto;
    word-break: break-word;
}

.fcr-sml-nav__chevron {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
    transition: opacity 160ms ease, transform 160ms ease;
}

.fcr-sml-nav__link.is-active .fcr-sml-nav__chevron {
    opacity: 1;
}

/* ===== Painéis ===== */
.fcr-sml-panels {
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 24px 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fcr-sml-panel {
    animation: fcrSmlFade 220ms ease;
}

.fcr-sml-panel[hidden] {
    display: none;
}

.fcr-sml-panel__title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a242f;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d47a1;
    display: inline-block;
}

.fcr-sml-panel__content {
    color: #3a4654;
    font-size: 15px;
    line-height: 1.7;
}

.fcr-sml-panel__content > *:last-child {
    margin-bottom: 0;
}

.fcr-sml-panel__content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.fcr-sml-panel__content a {
    color: #0d47a1;
    text-decoration: underline;
}

@keyframes fcrSmlFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsivo ===== */
@media (max-width: 991.98px) {
    .fcr-sml-nav {
        position: static;
    }
    .fcr-sml-aside {
        margin-bottom: 1rem;
    }
    .fcr-sml-panels {
        padding: 18px 16px 6px;
    }
    .fcr-sml-panel__title {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .fcr-sml-nav__link {
        padding: 12px 14px;
        font-size: 14px;
    }
    .fcr-sml-nav__link.is-active {
        padding-left: 18px;
    }
}
