/* ============================================================
   CENTRAL DA MATÉRIA — DESCOMPLICA DIREITO (OAB)
   CSS compartilhado, extraído 1:1 do padrão já aprovado da
   Central da Matéria do Descomplica Marinha (mesma identidade
   visual azul, mesmas classes cm-/ex-/sim-/va-/cv-/dl-/aula-).
   Usado pelas 20 páginas de disciplina em /paginas/oab/.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #b0c4de; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #0071bc; }

body {
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
  background: #e5ecf9;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: linear-gradient(135deg, #0d2d5e 0%, #0a4a8a 50%, #0071bc 100%);
  color: #fff;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border-bottom: 3px solid #d4af37;
}

.topbar-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c6d7f2;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.topbar-back:hover { color: #fff; }
.topbar-back svg { width: 16px; height: 16px; }

.topbar-sep { color: #5a9fd4; font-size: 0.85rem; }

.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.topbar-disciplina {
  margin-left: auto;
  font-size: 0.78rem;
  color: #c6d7f2;
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.cm-layout {
  display: flex;
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 15px 16px;
  gap: 16px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.cm-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 52px;
  margin-top: 0;
}

.cm-sidebar-header {
  background: linear-gradient(135deg, #0d2d5e 0%, #0a4a8a 50%, #0071bc 100%);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 3px solid #d4af37;
}

.cm-sidebar-nav {
  background: #fff;
  border-radius: 0 0 10px 10px;
  border: 1px solid #c6d7f2;
  border-top: none;
  overflow: hidden;
}

.cm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: #1f2937;
  cursor: pointer;
  border-bottom: 1px solid #f0f4fb;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-nav-item:last-child { border-bottom: none; }
.cm-nav-item:hover { background: #e5ecf9; color: #0071bc; }
.cm-nav-item.ativo { background: #e5ecf9; color: #0071bc; font-weight: 700; border-left: 3px solid #0071bc; }

.cm-nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.cm-nav-badge {
  margin-left: auto;
  background: #c6d7f2;
  color: #0071bc;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.cm-nav-badge.concluido {
  background: #d4edda;
  color: #1e8449;
}

.cm-nav-badge.em-breve {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ---- Ocultar seção via sidebar ---- */
.cm-sec-hidden { display: none !important; }

/* ---- Sub-índice Conteúdo de Estudo (não usado no OAB por ora) ---- */
.cm-sub-toggle { margin-left: auto; font-size: 0.68rem; color: #c6d7f2; transition: transform 0.2s; }
.cm-sub-toggle.aberto { transform: rotate(180deg); }
.cm-sub-indice { display: none; background: #f0f6ff; border-top: 1px solid #dde8f8; }
.cm-sub-indice.aberto { display: block; }
.cm-sub-item { display: block; padding: 8px 14px 8px 20px; font-size: 0.80rem; color: #1f2937; text-decoration: none; border-bottom: 1px solid #e5ecf9; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cm-sub-item:hover { background: #ddeeff; color: #0071bc; }
.cm-sub-item.cap { font-weight: 700; color: #fff; background: #0071bc; padding-left: 14px; font-size: 0.78rem; margin-top: 4px; text-align: justify; }
.cm-sub-item.ativo { background: #c6d7f2; color: #003d7a; border-left: 3px solid #0071bc; }

/* Progresso geral no sidebar */
.cm-progress-box {
  background: #fff;
  border: 1px solid #c6d7f2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}

.cm-progress-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: #0071bc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cm-progress-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #4b5563;
  margin-bottom: 4px;
}

.cm-progress-item span:last-child { font-weight: 700; color: #1f2937; }

.cm-prog-bar-wrap {
  background: #e5ecf9;
  border-radius: 10px;
  height: 6px;
  margin: 8px 0 4px;
  overflow: hidden;
}
.cm-prog-bar { height: 100%; background: #0071bc; border-radius: 10px; transition: width 0.4s; }

/* ============================================================
   CONTEÚDO PRINCIPAL
   ============================================================ */
.cm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Cabeçalho da matéria ---- */
/* ---------- Cabeçalho ---------- */

.cm-materia-header{
    position:relative;
    overflow:hidden;

    display:flex;
    align-items:center;
    gap:20px;

    padding:32px 28px;

    border-radius:12px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            rgba(13,45,94,.88) 0%,
            rgba(10,74,138,.78) 50%,
            rgba(0,113,188,.70) 100%
        ),
        url(" ") center/cover no-repeat;
}

/* Mantém o conteúdo acima das imagens */

.cm-materia-numero,
.cm-materia-info,
.cm-materia-stats{
    position:relative;
    z-index:2;
}

/* ---------- Martelo ---------- */

.cm-header-martelo{
    position:absolute;

    left:18px;
    bottom:-8px;

    height:105px;

    opacity:.18;

    pointer-events:none;

    z-index:1;
}

/* ---------- Estátua ---------- */

.cm-header-estatua{
    position:absolute;

    right:18px;
    bottom:-6px;

    height:125px;

    opacity:.18;

    pointer-events:none;

    z-index:1;
}

/* Evita que o texto fique sobre as imagens */

.cm-materia-info{
    margin-left:40px;
}

.cm-materia-stats{
    margin-left:auto;
    margin-right:90px;
}

.cm-materia-numero {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cm-materia-info { flex: 1; }

.cm-materia-nome {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Chakra Petch', sans-serif;
  margin-bottom: 4px;
}

.cm-materia-desc {
  font-size: 0.95rem;
  color: #c6d7f2;
}

.cm-materia-stats {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}

.cm-stat {
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cm-stat-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.cm-stat-valor {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.cm-stat-label {
  font-size: 0.72rem;
  color: #c6d7f2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Seção genérica ---- */
.cm-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #c6d7f2;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.cm-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid #e5ecf9;
  cursor: pointer;
  user-select: none;
}

.cm-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-resumo    { background: #e5ecf9; }
.icon-aulas     { background: #fef3c7; }
.icon-exercicios { background: #dcfce7; }
.icon-simulados { background: #f3f0ff; }
.icon-anotacoes { background: #f3f4f6; }

.cm-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Chakra Petch', sans-serif;
  color: #1f2937;
}

.cm-section-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.cm-section-toggle {
  margin-left: auto;
  color: #9ca3af;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.cm-section.aberta .cm-section-toggle { transform: rotate(180deg); }

.cm-section-body {
  padding: 20px;
  display: none;
}

.cm-section.aberta .cm-section-body { display: block; }

/* ---- Downloads ---- */
.dl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
}
.dl-item-icon { font-size: 2rem; flex-shrink: 0; }
.dl-item-info { flex: 1; }
.dl-item-nome { font-weight: 600; font-size: 0.9rem; color: #1f2937; margin-bottom: 3px; }
.dl-item-meta { font-size: 0.78rem; color: #6b7280; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 18px;
  background: #0071bc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-download:hover { background: #005a96; }

/* ---- Placeholder "em breve" (conteúdo ainda não produzido) ---- */
.cm-em-breve {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #f5f8fd;
  border: 1px dashed #c6d7f2;
  border-radius: 10px;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.6;
}
.cm-em-breve svg { flex-shrink: 0; width: 28px; height: 28px; color: #0071bc; }
.cm-em-breve strong { color: #1f2937; }

/* ---- Aulas ---- */
.aula-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e5ecf9;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.aula-item:hover { border-color: #0071bc; background: #f5f8fd; }
.aula-item:last-child { margin-bottom: 0; }

.aula-num {
  width: 34px;
  height: 34px;
  background: #e5ecf9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0071bc;
  flex-shrink: 0;
}

.aula-info { flex: 1; }
.aula-titulo { font-size: 0.88rem; font-weight: 600; color: #1f2937; }
.aula-duracao { font-size: 0.75rem; color: #6b7280; margin-top: 2px; }

.aula-play {
  width: 34px;
  height: 34px;
  background: #0071bc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ---- Exercícios ---- */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.ex-card {
  background: linear-gradient(180deg, #eef7ff 0%, #dceeff 100%);
  border: 1px solid #9fc7ee;
  border-left: 2px solid #0071bc;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 71, 120, 0.14);
}
.ex-card:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8f3ff 100%);
  border-color: #8dbfe8;
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 71, 120, 0.16);
}

.ex-card-num {
  width: 32px;
  height: 32px;
  background: #0071bc;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.ex-card-titulo {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ex-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.ex-tag {
  background: #c6d7f2;
  color: #0071bc;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.ex-card-meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.ex-card-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.ex-card-prog-bar {
  flex: 1;
  height: 4px;
  background: #c6d7f2;
  border-radius: 10px;
  overflow: hidden;
}
.ex-card-prog-fill { height: 100%; background: #27ae60; border-radius: 10px; }

.btn-iniciar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #0071bc, #005a96);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn-iniciar:hover {
  background: linear-gradient(135deg, #005a96, #003d6b);
  text-decoration: none;
}
.ex-card a,
.ex-card a:hover {
  text-decoration: none;
}

/* ---- Simulados ---- */
.sim-card {
  border: 1px solid #e5ecf9;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sim-card:hover { border-color: #0071bc; background: #f5f8fd; }
.sim-card:last-child { margin-bottom: 0; }

.sim-card-icon {
  width: 44px;
  height: 44px;
  background: #f3f0ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.sim-card-info { flex: 1; }
.sim-card-titulo { font-size: 0.9rem; font-weight: 700; color: #1f2937; margin-bottom: 3px; }
.sim-card-meta { font-size: 0.75rem; color: #6b7280; }

.sim-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.status-novo { background: #e5ecf9; color: #0071bc; }
.status-feito { background: #dcfce7; color: #1e8449; }

/* ---- Provas anteriores ---- */
.prova-links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-prova-ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: #0071bc;
  border: 1px solid #0071bc;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-prova-ext:hover { background: #e5ecf9; }

/* ---- Anotações ---- */
.anotacoes-area {
  width: 100%;
  min-height: 160px;
  border: 1px solid #c6d7f2;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
  font-size: 0.88rem;
  color: #1f2937;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.6;
}
.anotacoes-area:focus { border-color: #0071bc; }

.anotacoes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.anotacoes-save {
  padding: 6px 16px;
  background: #0071bc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.anotacoes-save:hover { background: #005a96; }

/* ============================================================
   VIDEOAULAS — modelo já aprovado do Descomplica Marinha
   (mesmas classes va-/cv-, cópia 1:1 do CSS de
   paginas/semestre-01/ciencia-politica-e-teoria-geral-do-estado.html)
   ============================================================ */

/* ---- Videoaulas ---- */
.va-grupo-titulo {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  background: linear-gradient(135deg, #061b33, #0071bc);
  padding: 9px 14px;
  border-radius: 8px;
  margin: 20px 0 12px;
}
.va-grupo-titulo:first-child { margin-top: 0; }

.va-topico {
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.va-topico:hover { border-color: #9ec5e8; }
.va-topico.aberto {
  border-color: #0071bc;
  box-shadow: 0 4px 16px rgba(0,113,188,0.10);
}

.va-topico-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s;
  user-select: none;
}
.va-topico-header:hover { background: #f8fbff; }
.va-topico.aberto .va-topico-header {
  background: linear-gradient(90deg, #eef5fc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.va-topico-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0071bc;
  background: #e5ecf9;
  padding: 3px 9px;
  border-radius: 7px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s;
}
.va-topico.aberto .va-topico-num {
  background: #0071bc;
  color: #ffffff;
}

.va-topico-rotulo { font-size: 0.88rem; font-weight: 700; color: #1f2937; flex: 1; }
.va-topico.aberto .va-topico-rotulo { color: #0a4d7a; }

.va-topico-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.va-topico-toggle {
  font-size: 0.7rem;
  color: #94a3b8;
  transition: transform 0.25s, color 0.2s;
}
.va-topico.aberto .va-topico-toggle { transform: rotate(180deg); color: #0071bc; }

.va-videos-wrap { display: none; padding: 14px; background: #f8fafd; }
.va-topico.aberto .va-videos-wrap {
  display: block;
  animation: vaAbrir 0.25s ease-out;
}

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

.va-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.va-card {
  border: 1px solid #dce8f5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
}
.va-card:hover { box-shadow: 0 6px 18px rgba(0,113,188,0.14); transform: translateY(-2px); border-color: #0071bc; }

.va-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.va-iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.va-card-titulo {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #374151;
  line-height: 1.4;
  font-weight: 500;
}

/* ============================================================
   CURSOS EM VÍDEO
   ============================================================ */
.cv-opcao-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0071bc;
  background: #e5ecf9;
  border-left: 4px solid #0071bc;
  padding: 6px 12px;
  border-radius: 0 6px 6px 0;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-opcao-desc {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

.cv-link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.cv-link-card:hover {
  border-color: #0071bc;
  box-shadow: 0 6px 20px rgba(0,113,188,0.12);
  transform: translateY(-2px);
}
.cv-link-thumb {
  width: 190px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cv-link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cv-link-titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}
.cv-link-autor { font-size: 0.78rem; color: #64748b; }
.cv-link-count {
  font-size: 0.7rem;
  color: #0071bc;
  font-weight: 700;
  background: #e5ecf9;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.cv-btn-yt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #0071bc, #005a96);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 4px;
  width: fit-content;
  transition: box-shadow 0.2s, transform 0.15s;
}
.cv-btn-yt:hover { box-shadow: 0 4px 14px rgba(0,113,188,0.35); transform: translateY(-1px); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  .cm-layout { flex-direction: column; padding: 12px; gap: 12px; }
  .cm-sidebar { width: 100%; position: static; }
  .ex-grid { grid-template-columns: 1fr; }
  .cm-materia-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    row-gap: 10px;
    padding: 20px 14px 14px;
    border-radius: 12px;
  }
  .cm-header-martelo {
    height: 78px;
    left: 8px;
    bottom: -12px;
    opacity: .16;
  }
  .cm-header-estatua {
    height: 88px;
    right: 8px;
    bottom: -4px;
    opacity: .16;
  }
  .cm-materia-numero {
    width: 32px;
    height: 32px;
    font-size: .82rem;
    margin-top: 2px;
  }
  .cm-materia-info {
    min-width: 0;
    margin-left: 0;
  }
  .cm-materia-nome {
    font-size: .98rem;
    line-height: 1.15;
    margin-bottom: 5px;
    max-width: 96%;
  }
  .cm-materia-desc {
    font-size: .72rem;
    line-height: 1.32;
    max-width: 96%;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
  }
  .cm-materia-stats {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(54px, 1fr));
    gap: 5px;
    margin: 2px 0 0;
  }
  .cm-stat {
    min-width: 0;
    padding: 8px 4px;
    border-radius: 9px;
  }
  .cm-stat-valor {
    font-size: 1rem;
  }
  .cm-stat-label {
    font-size: .48rem;
    letter-spacing: .15px;
    line-height: 1.05;
    white-space: nowrap;
    transform: scaleX(.95);
    transform-origin: center;
  }
  .sim-card-meta,
  .va-card-desc,
  .va-card-descricao,
  .va-card-texto,
  .cv-link-desc,
  .cv-link-meta,
  .cm-curso-desc,
  .dl-item-meta,
  .anotacoes-area,
  .peca-card-meta,
  .disc-card-meta,
  .enunciado-texto {
    text-align: justify !important;
    text-align-last: left !important;
    hyphens: auto !important;
  }
  .sim-card-meta,
  .cm-curso-desc,
  .dl-item-meta,
  .peca-card-meta,
  .disc-card-meta,
  .enunciado-texto {
    line-height: 1.42 !important;
  }
  .anotacoes-area {
    line-height: 1.5 !important;
  }
  .va-grid { grid-template-columns: 1fr; }
  .va-topico-count { display: none; }
  .cv-link-thumb { width: 110px; min-width: 110px; height: 80px; }
}

@media (max-width: 380px) {
  .cm-materia-header {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 18px 12px 12px;
    column-gap: 8px;
    row-gap: 9px;
  }
  .cm-materia-numero {
    width: 29px;
    height: 29px;
    font-size: .72rem;
  }
  .cm-materia-nome {
    font-size: .9rem;
  }
  .cm-materia-desc {
    font-size: .66rem;
    line-height: 1.28;
  }
  .cm-stat {
    padding: 8px 3px;
  }
  .cm-stat-valor {
    font-size: .9rem;
  }
  .cm-stat-label {
    font-size: .42rem;
  }
}
