:root {
    --accent:       #dc3545;
    --accent-light: #e35d6a;
    --accent-dim:   rgba(220,53,69,.12);
    --green:        #198754;
    --green-dim:    rgba(25,135,84,.12);
    --sand:         #f2d3a1;
    --dark:         #212529;
    --slate:        #3f2d25;
    --slate-light:  #7a4b3a;
    --muted:        #8c6f63;
    --surface:      #f8f4ef;
    --border:       #e7d9cf;
    --radius:       .75rem;
}

/* ── Base ── */
body { color: #2d1f27; background: var(--surface); }

a { color: var(--accent); }
a:hover { color: var(--accent-light); }

/* ── Navbar ── */
.navbar {
    background: var(--dark) !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(90deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-link { color: var(--sand) !important; font-size: .9rem; opacity: .8; }
.nav-link:hover, .nav-link.active { color: #fff !important; opacity: 1; }
.navbar .form-control {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.1);
    color: #fff;
    font-size: .85rem;
}
.navbar .form-control::placeholder { color: var(--muted); }
.navbar .form-control:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.25);
    color: #fff;
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(208,41,65,.25) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245,126,103,.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent-dim);
    border: 1px solid rgba(208,41,65,.3);
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
}
.hero p { color: var(--sand); font-size: 1.05rem; opacity: .85; }
.btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .6rem 1.5rem;
    border-radius: .5rem;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-accent:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(208,41,65,.4);
}
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: var(--sand);
    font-weight: 500;
    padding: .6rem 1.5rem;
    border-radius: .5rem;
    transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ── Section heading ── */
.section-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Category tag ── */
.category-tag {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--green);
    background: var(--green-dim);
    padding: .15rem .55rem;
    border-radius: 2rem;
    text-decoration: none;
    border: 1px solid rgba(140,171,148,.3);
}
.category-tag:hover { background: rgba(140,171,148,.28); color: var(--green); }

/* ── Article card (compact list) ── */
.article-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.article-card:hover {
    box-shadow: 0 8px 30px rgba(40,27,36,.1);
    transform: translateY(-2px);
}
.article-card h3 { font-size: .95rem; font-weight: 700; margin: .3rem 0 .25rem; line-height: 1.35; }
.article-card h3 a { color: #2d1f27; text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.excerpt { font-size: .82rem; color: #6b5060; line-height: 1.5; margin: 0; }
.meta { font-size: .75rem; color: var(--muted); }

/* ── Sidebar ── */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-card h6 {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}
.category-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: .4rem;
    color: #2d1f27;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.category-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    opacity: .6;
    transition: opacity .15s;
}
.category-link:hover { background: var(--green-dim); color: var(--green); }
.category-link:hover::before { opacity: 1; }

/* ── Featured card ── */
.article-featured {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    margin-bottom: 1rem;
}
.article-featured:hover {
    box-shadow: 0 12px 40px rgba(40,27,36,.12);
    transform: translateY(-2px);
}
.article-featured .feat-img {
    width: 55%;
    min-height: 280px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.article-featured .feat-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-featured h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .6rem; line-height: 1.3; }
.article-featured h2 a { color: #2d1f27; text-decoration: none; }
.article-featured h2 a:hover { color: var(--accent); }
.article-featured .excerpt { font-size: .875rem; color: #6b5060; line-height: 1.6; margin-bottom: 1rem; }
.article-featured .read-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.article-featured .read-link:hover { color: var(--accent-light); }
@media (max-width: 767px) {
    .article-featured { flex-direction: column; }
    .article-featured .feat-img { width: 100%; }
}

/* ── Grid card ── */
.article-grid {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    height: 100%;
}
.article-grid:hover {
    box-shadow: 0 8px 30px rgba(40,27,36,.1);
    transform: translateY(-2px);
}
.article-grid .grid-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.article-grid .grid-body { padding: 1rem; }
.article-grid h3 { font-size: .9rem; font-weight: 700; margin: .3rem 0 .4rem; line-height: 1.35; }
.article-grid h3 a { color: #2d1f27; text-decoration: none; }
.article-grid h3 a:hover { color: var(--accent); }
.article-grid .excerpt { font-size: .78rem; color: #6b5060; line-height: 1.5; margin: 0; }



/* ── Pagination ── */
.pagination .page-link {
    border-radius: .4rem !important;
    margin: 0 .1rem;
    color: var(--accent);
    border-color: var(--border);
    font-size: .875rem;
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}
.pagination .page-link:hover { background: var(--accent-dim); color: var(--accent); }

/* ── Hero full-viewport ── */
.hero-full {
    min-height: 60vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
}
.hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(208,41,65,.2) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 85% 20%, rgba(245,126,103,.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 70% 90%, rgba(140,171,148,.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

/* hero main article (left) */
.hero-article-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: .75rem;
}
.hero-article-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}
.hero-article-excerpt {
    color: var(--sand);
    opacity: .85;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 1.75rem;
}

/* hero side article (right) */
.hero-side-card {
    display: block;
    text-decoration: none;
}
.hero-side-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: .75rem;
    margin-bottom: 1rem;
    transition: opacity .2s;
}
.hero-side-card:hover img { opacity: .9; }
.hero-side-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,.05);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.15);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-side-body {
    padding: 0;
    text-align: center;
}
.hero-side-body .category-tag { margin-bottom: .5rem; display: inline-block; }
.hero-side-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 .5rem;
}
.hero-side-body .hero-side-excerpt {
    font-size: .83rem;
    color: var(--sand);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── News block ── */
.news-main-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}
.news-main-card .news-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.news-main-card .news-body { padding: 1.5rem; }
.news-main-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2d1f27;
    line-height: 1.35;
    margin: .4rem 0 .75rem;
}
.news-main-card h2 a { color: inherit; text-decoration: none; }
.news-main-card h2 a:hover { color: var(--accent); }
.news-main-card .news-excerpt { font-size: .875rem; color: #6b5060; line-height: 1.6; margin-bottom: 1rem; }

.news-compact {
    display: flex;
    gap: .875rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .6rem;
    padding: .875rem;
    text-decoration: none;
    transition: box-shadow .2s, transform .15s;
}
.news-compact:hover { box-shadow: 0 4px 20px rgba(40,27,36,.08); transform: translateY(-1px); }
.news-compact img {
    width: 96px;
    aspect-ratio: 4/3;
    border-radius: .4rem;
    object-fit: cover;
    flex-shrink: 0;
}

.news-compact h4 { font-size: .85rem; font-weight: 700; color: #2d1f27; line-height: 1.35; margin: .2rem 0 0; }

/* ── Newsletter strip ── */
.newsletter-strip {
    background: linear-gradient(135deg, var(--dark) 0%, var(--slate) 100%);
    border-top: 1px solid rgba(208,41,65,.2);
    border-bottom: 1px solid rgba(208,41,65,.2);
    padding: 3rem 0;
}
.newsletter-strip h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .35rem;
}
.newsletter-strip p { color: var(--sand); opacity: .85; margin: 0; font-size: .9rem; }
.newsletter-strip .form-control {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: .5rem;
    min-width: 240px;
}
.newsletter-strip .form-control::placeholder { color: var(--muted); }
.newsletter-strip .form-control:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.25);
    color: #fff;
}
.newsletter-strip-input {
    max-width: 260px;
}

/* ── Page shell ── */
.page-intro {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.page-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 900;
    margin: 0 0 .65rem;
    color: #1a1a2e;
}
.page-subtitle {
    color: #6b5060;
    line-height: 1.7;
    max-width: 60ch;
}
.block-title {
    color: #1a1a2e;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -.03em;
}
.section-link {
    color: var(--accent);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.section-link:hover { color: var(--accent-light); }
.mini-kicker {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}
.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 1.25rem;
    text-align: center;
    color: #7f6a76;
}
.empty-state i {
    display: block;
    font-size: 2rem;
    opacity: .35;
    margin-bottom: .8rem;
}

/* ── Blog block ── */
.blog-feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 .5rem 1.5rem rgba(40,27,36,.06);
    height: 100%;
}
.blog-feature-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #d1d8e6;
}

.blog-feature-body { padding: 1.5rem; }
.blog-feature-body h3 {
    font-size: 1.28rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 .55rem;
}
.blog-feature-body h3 a,
.blog-side-card h4 a,
.mag-ranking-item h4 a,
.news-compact h4 a,
.news-title a {
    color: #1a1a2e;
    text-decoration: none;
}
.blog-feature-body h3 a:hover,
.blog-side-card h4 a:hover,
.mag-ranking-item h4 a:hover,
.news-compact h4 a:hover,
.news-title a:hover {
    color: var(--accent);
}
.blog-side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.2rem rgba(40,27,36,.05);
    display: flex;
    gap: .9rem;
    padding: .9rem;
}
.blog-side-thumb-wrap { display: block; flex-shrink: 0; }
.blog-side-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: cover;
    border-radius: .5rem;
    display: block;
    background: #d1d8e6;
}
.blog-side-card h4 {
    font-size: .9rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 .25rem;
}

/* ── News refinements ── */
.news-tabs {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}
.news-tab {
    border: 1px solid var(--border);
    color: #7f6a76;
    border-radius: 999px;
    padding: .28rem .8rem;
    font-size: .8rem;
    background: #fff;
}
.news-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.news-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: .15rem 0 .65rem;
}
.news-compact h4 { margin: 0 0 .2rem; }



/* ── Search ── */
.search-shell {
    display: flex;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem;
}
.search-shell .form-control {
    border-color: transparent;
    background: #f8f4f1;
}
.search-shell .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.15);
    background: #fff;
}
.result-count {
    color: #6b5060;
    font-size: .92rem;
    margin-bottom: 1rem;
}

/* ── Article detail ── */
.article-header { margin-bottom: 1.5rem; }
.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #1a1a2e;
    font-weight: 900;
    margin: 0 0 1rem;
}
.article-deck {
    font-size: 1.05rem;
    color: #6b5060;
    line-height: 1.75;
    margin: 0;
}
.article-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.article-body {
    font-size: 1rem;
    color: #382733;
    line-height: 1.8;
}
.article-body h2,
.article-body h3,
.article-body h4 {
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: .9rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body :not(pre) > code,
pre code {
    font-family: var(--bs-font-monospace);
    font-size: .92em;
}
.article-body :not(pre) > code {
    background: rgba(63, 45, 37, .08);
    color: #7a1f2b;
    border-radius: .35rem;
    padding: .15rem .35rem;
}
/* Sem `background` aqui de propósito: quem pinta o bloco é o tema claro do
   highlight.js, já carregado. O que faltava era a moldura falar a língua do
   site — era um cinza frio avulso, agora é o mesmo `--border` do resto. */
.article-body pre {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: auto;
    border: 1px solid var(--border);
    /* Espelha o fundo do tema claro do highlight.js. Ele só é aplicado quando
       o `highlightAll()` roda; até lá — e se o JS falhar — o bloco ficaria sem
       fundo nenhum sobre o creme da página. */
    background: #f6f8fa;
}

/* Código que o highlight.js ainda não processou não tem o padding que vem da
   regra de `.hljs`, e encostaria na borda. */
.article-body pre > code:not(.hljs) {
    display: block;
    padding: 1rem 1.1rem;
}
.article-body pre code.hljs {
    border-radius: .75rem;
    padding: 1rem 1.1rem;
}
/* Com numeração o padding lateral passa para as células da tabela, senão a
   coluna de números fica descolada da borda. */
.article-body pre code.hljs.hljs-ln {
    padding: 1rem 0;
}
.article-body pre table.hljs-ln {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}
.article-body pre .hljs-ln-numbers {
    text-align: right;
    vertical-align: top;
    padding: 0 1rem 0 1.1rem !important;
    border-right: 1px solid rgba(0, 0, 0, .08);
    color: rgba(0, 0, 0, .3);
    user-select: none;
    white-space: nowrap;
    width: 1%;
}
.article-body pre .hljs-ln-line.hljs-ln-code {
    padding: 0 1.1rem !important;
    white-space: pre;
}
.recent-stack {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.recent-item {
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--border);
}
.recent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.recent-link {
    display: block;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .15rem;
}
.recent-link:hover { color: var(--accent); }

@media (max-width: 767px) {
    .search-shell {
        flex-direction: column;
    }
}

/* ── Content grid (2+3) ── */
.cg-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}
.cg-card:hover { box-shadow: 0 8px 28px rgba(40,27,36,.1); transform: translateY(-2px); }
.cg-card .cg-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.cg-card .cg-body { padding: 1rem; }
.cg-card h3 { font-size: .9rem; font-weight: 700; color: #2d1f27; line-height: 1.35; margin: .3rem 0 0; }
.cg-card.large h3 { font-size: 1rem; }
.cg-card h3 a { color: inherit; text-decoration: none; }
.cg-card h3 a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.06);
    color: var(--muted);
    font-size: .875rem;
}
footer a { color: var(--sand); text-decoration: none; opacity: .8; }
footer a:hover { color: #fff; opacity: 1; }

/* ── Utility helpers ── */
.img-43-cover { aspect-ratio: 4/3; object-fit: cover; }
.lh-tight     { line-height: 1.3; }

/* ── Botão "Já li" ── */
.btn-lido {
    color: #c2500a;
    border-color: #c2500a;
    background: transparent;
    transition: color .15s, background .15s, border-color .15s;
}
.btn-lido:hover {
    color: #fff;
    background: #c2500a;
    border-color: #c2500a;
}
.btn-lido.active {
    color: #fff;
    background: #c2500a;
    border-color: #c2500a;
}
.btn-lido.active:hover {
    background: #a34208;
    border-color: #a34208;
}

/* ── Navegação entre as aulas do curso ──────────────────────────────────────
   Dois cards no pé do artigo: a aula anterior e a próxima, sempre do mesmo
   curso. Nas pontas do curso um dos dois não existe, e a coluna simplesmente
   não é impressa — por isso não há regra de "estado desabilitado" aqui. */
.lesson-nav__link {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.lesson-nav__link:hover,
.lesson-nav__link:focus-visible {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}

.lesson-nav__label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-secondary-color, #6c757d);
}

.lesson-nav__title {
    font-weight: 600;
    line-height: 1.35;
}

/* A próxima aula alinha à direita para que a seta aponte para fora do card,
   no sentido da leitura — o mesmo motivo pelo qual a anterior fica à esquerda. */
.lesson-nav__link--next {
    text-align: right;
}

/* Empilhado no telefone, alinhar à direita brigaria com o card de cima. */
@media (max-width: 767.98px) {
    .lesson-nav__link--next {
        text-align: left;
    }
}

/* ──────────────────────────────────────────
   Exercícios do artigo — resposta recolhível
   ──────────────────────────────────────────
   O acervo tem TRÊS marcações diferentes para a mesma coisa, herdadas de
   gerações distintas do conteúdo:

     1. `<details>` + `.exercise-answer`            — Enterprise (19 aulas)
     2. `.answer-block` com utilidades do Bootstrap — Ethical Hacking,
        Dashboards com R e Machine Learning (174 aulas), em âmbar
     3. `.answer-block` pelado, sem utilidade       — AI Programming e
        Data Analyst (49 aulas), que saía como texto cru

   Unificar pelo CSS, e não reescrevendo o HTML de 246 artigos, é o caminho
   barato e reversível: nenhum conteúdo é tocado e o visual passa a ser um só.
   A regra usa dois seletores de classe (`.article-body .answer-block`), o que
   basta para vencer as utilidades do Bootstrap, que são de classe única — sem
   precisar de `!important`.

   O verde é deliberado: o acento do site é vermelho, e usá-lo aqui faria a
   resposta competir com links e botões. Verde não aparece em nenhum outro
   lugar do artigo, então o leitor associa a cor a este bloco. */

.article-body details { margin: .75rem 0 1.75rem; }

/* O marcador nativo sai para o summary poder virar botão, como já é o
   `<button>` das outras duas marcações. */
.article-body details > summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
    padding: .35rem .85rem;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    transition: background .15s;
}
.article-body details > summary::-webkit-details-marker { display: none; }
.article-body details > summary::marker { content: ""; }
.article-body details > summary:hover { background: #146c44; }
.article-body details > summary strong { font-weight: 600; }
.article-body details[open] > summary { background: var(--green-dim); color: var(--green); }

/* O botão das marcações 2 e 3 já é `.btn-success`; aqui só o aproximamos do
   mesmo verde, para os três caminhos terminarem iguais. */
.article-body .btn-success {
    background-color: var(--green);
    border-color: var(--green);
}
.article-body .btn-success:hover,
.article-body .btn-success:focus {
    background-color: #146c44;
    border-color: #146c44;
}

.article-body .exercise-answer,
.article-body .answer-block {
    margin-top: .75rem;
    padding: 1rem 1.25rem;
    background: var(--green-dim);
    border: 0;
    border-left: 4px solid var(--green);
    border-radius: 0 6px 6px 0;
    box-shadow: none;
}

.article-body .answer-badge,
.article-body .exercise-answer > p:first-child > strong:first-child {
    color: var(--green);
    font-weight: 700;
}

/* Código dentro da resposta respira sem encostar na barra. */
.article-body .exercise-answer pre,
.article-body .answer-block pre { margin: .85rem 0; }
.article-body .exercise-answer > *:last-child,
.article-body .answer-block > *:last-child { margin-bottom: 0; }
