/* ============================================================
   topics.css — Cards de tópicos, seções (orientação, lei seca, pontos, pegadinhas)
   Estilo: TCU — profundo, separado, editorializado
   ============================================================ */

/* --- Checkbox de progresso no tópico --- */
.topic-check {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  background: var(--white);
}

.topic-check:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.topic-check:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.topic-check:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

/* Card marcado como estudado */
.topic-card.topic-done,
.pareto-topic-card.topic-done {
  border-color: rgba(16, 185, 129, 0.3);
  background: #f0fdf4;
}

.topic-card.topic-done .topic-card-header,
.pareto-topic-card.topic-done .topic-card-header {
  background: #f0fdf4;
}

.topic-card.topic-done .topic-title,
.pareto-topic-card.topic-done .topic-title {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

/* --- Card Principal do Tópico --- */
.topic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(10, 31, 59, 0.1);
  transform: translateY(-2px);
}

/* --- Header do Card --- */
.topic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background var(--transition);
}

.topic-card-header:hover {
  background: var(--bg);
}

.topic-card-header.is-open {
  border-bottom-color: var(--border);
}

.topic-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Número do tópico */
.topic-number {
  background: #000000;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: 'Source Sans 3', sans-serif;
}

.topic-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  font-family: 'Merriweather', serif;
}

.topic-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topic-questoes-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: 'Source Sans 3', sans-serif;
}

.topic-toggle-icon {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.topic-card-header.is-open .topic-toggle-icon {
  transform: rotate(180deg);
}

/* --- Corpo colapsável do Card --- */
.topic-card-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.topic-card-body.expanded {
  max-height: none;
  overflow: visible;
}

.topic-card-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Seções dos Cards --- */
.topic-section {
  border-radius: var(--radius-md);
  border-left: 4px solid;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.topic-section:hover {
  box-shadow: 0 2px 8px rgba(10, 31, 59, 0.06);
}

.topic-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  user-select: none;
  transition: filter var(--transition);
  font-family: 'Source Sans 3', sans-serif;
}

.topic-section-header:hover {
  filter: brightness(0.96);
}

.topic-section-header .section-icon {
  font-size: 0.95rem;
}

.topic-section-header .section-toggle {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.55;
  transition: transform 0.22s ease;
}

.topic-section-header.is-open .section-toggle {
  transform: rotate(180deg);
}

.topic-section-body {
  padding: 4px 20px 20px;
  font-size: 0.92rem;
  line-height: 1.75;
  font-family: 'Source Sans 3', sans-serif;
}

/* Orientação Geral */
.section-orientacao {
  background: var(--section-orientacao-bg);
  border-left-color: var(--section-orientacao-border);
}

.section-orientacao .topic-section-header {
  background: var(--section-orientacao-bg);
  color: #1d4ed8;
}

/* Lei Seca */
.section-lei-seca {
  background: var(--section-lei-bg);
  border-left-color: var(--section-lei-border);
}

.section-lei-seca .topic-section-header {
  background: var(--section-lei-bg);
  color: #5b21b6;
}

/* Pontos Principais */
.section-pontos {
  background: var(--section-pontos-bg);
  border-left-color: var(--section-pontos-border);
}

.section-pontos .topic-section-header {
  background: var(--section-pontos-bg);
  color: #065f46;
}

/* Onde a Banca Derruba */
.section-pegadinhas {
  background: var(--section-pegadinhas-bg);
  border-left-color: var(--section-pegadinhas-border);
}

.section-pegadinhas .topic-section-header {
  background: var(--section-pegadinhas-bg);
  color: #991b1b;
}

/* --- Lista de Pontos Principais --- */
.pontos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.ponto-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: all 0.25s ease;
}

.ponto-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 185, 129, 0.22);
  transform: translateX(2px);
}

.ponto-item.destaque {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08), 0 2px 8px rgba(16, 185, 129, 0.06);
}

.ponto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.ponto-item.destaque .ponto-dot {
  background: var(--accent-dark);
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ponto-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

.ponto-item.destaque .ponto-text {
  font-weight: 600;
  color: #064e3b;
}

.destaque-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
  font-family: 'Source Sans 3', sans-serif;
}

/* --- Lista de Pegadinhas --- */
.pegadinhas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.pegadinha-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(220, 38, 38, 0.1);
  transition: all 0.25s ease;
}

.pegadinha-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(220, 38, 38, 0.2);
  transform: translateX(2px);
}

.pegadinha-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pegadinha-text {
  font-size: 0.9rem;
  color: #7f1d1d;
  line-height: 1.65;
}

/* --- Tabela Lei Seca --- */
.lei-seca-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 6px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.06);
}

.lei-seca-table thead th {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: none;
  font-family: 'Source Sans 3', sans-serif;
}

.lei-seca-table tbody tr {
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: background 0.2s ease;
}

.lei-seca-table tbody tr:hover {
  background: rgba(250, 245, 255, 0.8);
}

.lei-seca-table tbody tr:last-child {
  border-bottom: none;
}

.lei-seca-table td {
  padding: 10px 14px;
  vertical-align: top;
  color: var(--text);
  line-height: 1.6;
}

.lei-seca-ref {
  font-weight: 700;
  color: #5b21b6;
  white-space: nowrap;
  min-width: 130px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.lei-seca-desc {
  color: var(--text);
}

/* --- Texto simples de orientação --- */
.orientacao-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
}

.orientacao-text strong {
  color: #1d4ed8;
  font-weight: 700;
}

/* --- Empty state --- */
.content-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  color: var(--text-muted);
  text-align: center;
}

.content-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.content-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
}

.content-empty-desc {
  font-size: 0.875rem;
  max-width: 320px;
  color: var(--text-muted);
}

/* ============================================================
   SEÇÃO DE RESUMO DIRETO AO PONTO
   ============================================================ */

.section-resumo {
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
  border-left-color: var(--accent);
  border-left-width: 5px;
}

.section-resumo .topic-section-header {
  background: transparent;
  color: #065f46;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* --- Resumo Body — base text --- */
.resumo-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
}

.resumo-body > p {
  margin-bottom: 12px;
}

.resumo-body > p:last-child {
  margin-bottom: 0;
}

.resumo-body strong {
  color: var(--primary);
  font-weight: 700;
}

.resumo-body em {
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Lists --- */
.resumo-body ul, .resumo-body ol {
  padding-left: 6px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.resumo-body ol {
  counter-reset: resumo-ol;
}

.resumo-body ul > li {
  position: relative;
  padding-left: 22px;
  line-height: 1.7;
}

.resumo-body ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.resumo-body ol > li {
  position: relative;
  padding-left: 30px;
  line-height: 1.7;
  counter-increment: resumo-ol;
}

.resumo-body ol > li::before {
  content: counter(resumo-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000000;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', sans-serif;
}

.resumo-body li {
  line-height: 1.7;
}

/* Nested lists */
.resumo-body li ul,
.resumo-body li ol {
  margin-top: 6px;
  margin-bottom: 4px;
}

.resumo-body li ul > li::before {
  width: 5px;
  height: 5px;
  background: var(--primary-light);
  box-shadow: none;
}

/* ============================================================
   SUBTEMAS
   ============================================================ */

.resumo-subtema {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* When collapsed, tighten spacing between subtemas */
.resumo-subtema:has(> .resumo-subtema-titulo.is-collapsible:not(.is-open)) {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

.resumo-subtema:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resumo-subtema-titulo {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  padding: 12px 20px;
  padding-right: 44px;
  background: #000000;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: block;
  letter-spacing: -0.01em;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Collapsible subtema */
.resumo-subtema-titulo.is-collapsible {
  cursor: pointer;
  user-select: none;
  transition: filter 0.2s ease;
}

.resumo-subtema-titulo.is-collapsible:hover {
  filter: brightness(1.15);
}

.resumo-subtema-titulo.is-collapsible::after {
  content: '▸';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
  font-family: sans-serif;
}

.resumo-subtema-titulo.is-collapsible.is-open::after {
  transform: translateY(-50%) rotate(90deg);
}

/* When collapsed, remove bottom margin */
.resumo-subtema-titulo.is-collapsible:not(.is-open) {
  margin-bottom: 0;
}

/* Subtema body wrapper */
.resumo-subtema-body {
  animation: subtema-reveal 0.3s ease;
}

@keyframes subtema-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.resumo-subtema > p {
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.resumo-subtema > p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CONCEITO CARDS
   ============================================================ */

.resumo-conceito {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.resumo-conceito:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.resumo-conceito:last-child {
  margin-bottom: 0;
}

.resumo-conceito > strong:first-child {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #065f46;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  margin: -18px -22px 14px -18px;
  padding: 10px 22px;
  border-bottom: 2px solid var(--accent);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.resumo-conceito p {
  margin-bottom: 8px;
  line-height: 1.75;
}

.resumo-conceito p:last-child {
  margin-bottom: 0;
}

.resumo-conceito p strong:first-child {
  color: var(--primary);
}

.resumo-conceito ul,
.resumo-conceito ol {
  margin: 8px 0;
}

/* ============================================================
   TABLES inside resumo
   ============================================================ */

.resumo-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  box-shadow: 0 1px 4px rgba(10, 31, 59, 0.05);
}

.resumo-body table th {
  background: #000000;
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 14px;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  border: none;
}

.resumo-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
  color: var(--text);
  border-left: none;
  border-right: none;
  font-size: 0.875rem;
}

.resumo-body table tr:last-child td {
  border-bottom: none;
}

.resumo-body table tr:nth-child(even) td {
  background: var(--bg);
}

.resumo-body table tr:hover td {
  background: var(--primary-xlight);
  transition: background 0.2s ease;
}

.resumo-body table td strong {
  font-weight: 700;
}

/* --- Inline tables inside mnemonico/conceito (legacy border=1) --- */
.resumo-mnemonico table,
.resumo-conceito table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.resumo-mnemonico table th,
.resumo-conceito table th {
  background: #000000;
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 14px;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  border: none;
}

.resumo-mnemonico table td,
.resumo-conceito table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
  color: var(--text);
  font-size: 0.875rem;
  border-left: none;
  border-right: none;
}

.resumo-mnemonico table tr:last-child td,
.resumo-conceito table tr:last-child td {
  border-bottom: none;
}

.resumo-mnemonico table tr:nth-child(even) td,
.resumo-conceito table tr:nth-child(even) td {
  background: rgba(255,255,255,0.5);
}

/* ============================================================
   QUESTÕES — Estudo Reverso
   ============================================================ */

.questao-resumo {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 18px 0;
  box-shadow: 0 1px 4px rgba(10, 31, 59, 0.04);
  position: relative;
  transition: box-shadow 0.25s ease;
}

.questao-resumo:hover {
  box-shadow: 0 3px 12px rgba(10, 31, 59, 0.08);
}

.questao-resumo::before {
  content: 'CEBRASPE';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  opacity: 0.4;
  font-family: 'Source Sans 3', sans-serif;
}

.questao-resumo p {
  margin-bottom: 6px;
}

.questao-resumo-enunciado {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.questao-resumo-enunciado strong:first-child {
  color: var(--primary);
  font-family: 'Source Sans 3', sans-serif;
}

.btn-ver-gabarito-resumo {
  background: #000000;
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin: 10px 0 4px;
  font-family: 'Source Sans 3', sans-serif;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ver-gabarito-resumo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  background: #1a1a1a;
}

.btn-ver-gabarito-resumo:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.gabarito-resumo {
  background: linear-gradient(160deg, #f0fdf4 0%, #e6f9ec 50%, #dcf5e3 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  font-size: 0.885rem;
  display: none;
  line-height: 1.7;
  animation: gabarito-reveal 0.3s ease;
}

@keyframes gabarito-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gabarito-resumo p {
  margin-bottom: 8px;
}

.gabarito-resumo p:last-child {
  margin-bottom: 0;
}

.gabarito-resumo strong {
  color: #065f46;
  font-weight: 700;
}

.gabarito-resumo > strong:first-child {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}

.gabarito-resumo ul {
  list-style: none;
  padding-left: 4px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gabarito-resumo ul li {
  position: relative;
  padding-left: 18px;
}

.gabarito-resumo ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   ALERTA BOXES
   ============================================================ */

.resumo-alerta {
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.885rem;
  color: #92400e;
  line-height: 1.7;
  position: relative;
}

.resumo-alerta::before {
  content: '\26A0';
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 0.85rem;
  background: #f59e0b;
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  line-height: 1;
}

.resumo-alerta strong:first-child {
  color: #b45309;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Source Sans 3', sans-serif;
}

.resumo-alerta strong {
  color: #92400e;
  font-weight: 700;
}

/* ============================================================
   MNEMÔNICO / RESUMO BOXES
   ============================================================ */

.resumo-mnemonico {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 50%, #c4f5db 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.885rem;
  color: #065f46;
  line-height: 1.7;
  position: relative;
}

.resumo-mnemonico::before {
  content: '\2713';
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 0.72rem;
  background: var(--accent);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  line-height: 1;
  font-weight: 700;
}

.resumo-mnemonico strong:first-child {
  color: #047857;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Source Sans 3', sans-serif;
}

.resumo-mnemonico strong {
  font-weight: 700;
  color: #065f46;
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
  .topic-card-content {
    padding: 18px 20px;
    gap: 14px;
  }

  .topic-title {
    font-size: 0.92rem;
  }

  .resumo-conceito {
    padding: 14px 16px;
  }

  .questao-resumo {
    padding: 16px 18px;
  }
}

@media (max-width: 640px) {
  .topic-card-header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .topic-header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .topic-questoes-badge {
    display: none;
  }

  .lei-seca-table {
    font-size: 0.78rem;
  }

  .lei-seca-ref {
    min-width: 100px;
    font-size: 0.75rem;
  }

  .topic-card-content {
    padding: 14px;
  }

  .resumo-subtema-titulo {
    font-size: 0.95rem;
    padding: 8px 14px;
  }

  .resumo-conceito {
    padding: 12px 14px;
  }

  .resumo-alerta,
  .resumo-mnemonico {
    padding: 14px 16px;
  }

  .resumo-alerta::before,
  .resumo-mnemonico::before {
    display: none;
  }

  .questao-resumo {
    padding: 14px 16px;
  }

  .questao-resumo::before {
    display: none;
  }
}
