/*
 * Material importado — paridade visual com a apostila.
 *
 * O HTML dos tópicos sai do mesmo conversor que gera o PDF do aluno
 * (`_kit/scripts/md2print.py`), então chega com as classes do tema de
 * impressão. Sem esta folha, uma caixa de atenção vira parágrafo comum e o
 * aluno que estuda pelo site perde a hierarquia que o aluno que imprime tem.
 *
 * As cores são as do logo Agentes Academy: navy #1f477b, azul #4480d8,
 * laranja #f0902f. Escopo restrito ao conteúdo do LearnDash — o tema Astra
 * cuida do resto da página.
 */

.learndash-wrapper .aa-treino-materiais {
	list-style: none;
	margin: 0;
	padding: 0;
}

.learndash-wrapper .aa-treino-materiais li {
	margin: 0 0 8px;
	padding-left: 22px;
	position: relative;
}

.learndash-wrapper .aa-treino-materiais li::before {
	content: "\2193";
	position: absolute;
	left: 0;
	color: #4480d8;
	font-weight: 700;
}

/* ── Caixas de destaque ─────────────────────────────────────────────── */

.learndash-wrapper .alert-box {
	border-left: 4px solid #4480d8;
	background: #f4f8fd;
	padding: 14px 18px;
	margin: 20px 0;
	border-radius: 0 6px 6px 0;
}

.learndash-wrapper .alert-box > :first-child {
	margin-top: 0;
}

.learndash-wrapper .alert-box > :last-child {
	margin-bottom: 0;
}

.learndash-wrapper .alert-box.warn {
	border-left-color: #f0902f;
	background: #fdf6ee;
}

.learndash-wrapper .alert-box.danger {
	border-left-color: #c0392b;
	background: #fcf0ef;
}

.learndash-wrapper .alert-box.success {
	border-left-color: #1e8e5a;
	background: #eef8f2;
}

/* ── Código ─────────────────────────────────────────────────────────── */

.learndash-wrapper pre {
	background: #1f2733;
	color: #e6edf3;
	padding: 16px 18px;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 0.9em;
	line-height: 1.55;
}

.learndash-wrapper pre code {
	background: none;
	color: inherit;
	padding: 0;
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	white-space: pre;
}

.learndash-wrapper :not(pre) > code {
	background: #eef1f6;
	color: #1f477b;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Tabelas ────────────────────────────────────────────────────────── */

.learndash-wrapper .ld-tabs-content table,
.learndash-wrapper .ld-topic-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 0.95em;
}

.learndash-wrapper .ld-tabs-content th,
.learndash-wrapper .ld-topic-content th {
	background: #1f477b;
	color: #fff;
	text-align: left;
	padding: 10px 12px;
	font-weight: 600;
}

.learndash-wrapper .ld-tabs-content td,
.learndash-wrapper .ld-topic-content td {
	padding: 10px 12px;
	border-bottom: 1px solid #e3e8ef;
	vertical-align: top;
}

.learndash-wrapper .ld-tabs-content tbody tr:nth-child(even),
.learndash-wrapper .ld-topic-content tbody tr:nth-child(even) {
	background: #f8fafc;
}

/* ── Checklist do laboratório ───────────────────────────────────────── */

.learndash-wrapper li.lab-check {
	list-style: none;
	margin-left: -22px;
	padding-left: 26px;
	position: relative;
}

.learndash-wrapper li.lab-check::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 13px;
	height: 13px;
	border: 2px solid #4480d8;
	border-radius: 3px;
}
