/* =====================================================================
   O Contraturno — Banco de Questões
   CSS Snippet — colar no WPCode como "CSS Snippet"
   ===================================================================== */

/* ── Reset ──────────────────────────────────────────────────────────── */
.ocf-banco-wrapper,
.ocf-barra-selecao {
  box-sizing: border-box !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: normal !important;
}

.ocf-banco-wrapper button,
.ocf-banco-wrapper select,
.ocf-banco-wrapper input,
.ocf-banco-wrapper a,
.ocf-banco-wrapper p,
.ocf-banco-wrapper li,
.ocf-banco-wrapper label,
.ocf-banco-wrapper span:not([id*="MathJax"]):not([class*="MathJax"]),
.ocf-barra-selecao button,
.ocf-barra-selecao span {
  box-sizing: border-box !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: normal !important;
}

.ocf-banco-wrapper button,
.ocf-banco-wrapper select,
.ocf-banco-wrapper input,
.ocf-barra-selecao button {
  margin: 0 !important;
  border-radius: 0;
  background-image: none;
}

/* ── Wrapper geral ──────────────────────────────────────────────────── */
.ocf-banco-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}

/* ── Barra de admin ─────────────────────────────────────────────────── */
.ocf-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.ocf-btn-nova-questao {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  height: 40px !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #6c35de 0%, #9b59d6 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0 1.3rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.18s, box-shadow 0.18s !important;
  box-shadow: 0 3px 10px rgba(108,53,222,0.28) !important;
  text-transform: none !important;
  vertical-align: middle !important;
}
.ocf-btn-nova-questao:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(108,53,222,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

.ocf-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* ── Sidebar ────────────────────────────────────────────────────────── */
.ocf-sidebar {
  flex-shrink: 0;
  width: 240px;
  min-width: 240px;
  background: #fff;
  border: 1.5px solid #e4daf7;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(80,30,180,0.07);
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, min-width 0.25s ease;
}

.ocf-sidebar.ocf-sidebar-recolhida {
  width: 44px;
  min-width: 44px;
}
.ocf-sidebar.ocf-sidebar-recolhida .ocf-sidebar-inner {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.ocf-sidebar-toggle {
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-end;
  width: 28px !important;
  height: 28px !important;
  margin: 0.65rem 0.65rem 0 0 !important;
  padding: 0 !important;
  background: #f0ebff !important;
  border: 1.5px solid #c9b8f5 !important;
  border-radius: 50px !important;
  color: #6c35de !important;
  cursor: pointer !important;
  transition: background 0.18s !important;
  box-shadow: none !important;
}
.ocf-sidebar-toggle:hover { background: #e4daf7 !important; }
.ocf-sidebar.ocf-sidebar-recolhida .ocf-sidebar-toggle {
  align-self: center;
  margin: 0.65rem auto 0 !important;
}
.ocf-sidebar.ocf-sidebar-recolhida .ocf-toggle-icon {
  transform: rotate(180deg);
}

.ocf-sidebar-inner {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
  transition: opacity 0.15s, visibility 0.15s;
}
.ocf-sidebar-inner::-webkit-scrollbar { width: 4px; }
.ocf-sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.ocf-sidebar-inner::-webkit-scrollbar-thumb { background: #d8cdf2; border-radius: 4px; }

.ocf-sidebar-titulo {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #9b86cc !important;
  padding: 0.4rem 1rem !important;
  margin: 0 !important;
}

/* ── Contador de tópicos selecionados ───────────────────────────────── */
.ocf-sidebar-contador {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0.6rem 0.6rem;
  padding: 0.5rem 0.7rem;
  background: #ede8fb;
  border-radius: 8px;
  border-left: 3px solid #6c35de;
}

.ocf-sidebar-contador-texto {
  font-size: 0.78rem !important;
  color: #3b1a8a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ocf-sidebar-contador-texto strong { color: #5326b5; }

.ocf-sidebar-limpar-topicos {
  flex-shrink: 0;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #6c35de !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-decoration: underline;
  white-space: nowrap;
  box-shadow: none !important;
  text-transform: none !important;
}
.ocf-sidebar-limpar-topicos:hover { color: #3b1a8a !important; }

/* ═══════════════════════════════════════════════════════════════════════
   ÁRVORE DE NAVEGAÇÃO
   ═══════════════════════════════════════════════════════════════════════ */

.ocf-nav-tree {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

/* Cada <li> ocupa 100% — nunca flex horizontal aqui */
.ocf-nav-item {
  display: block;
  width: 100%;
}

.ocf-nav-serie {
  margin-top: 2px;
}
.ocf-nav-serie + .ocf-nav-serie {
  margin-top: 4px;
}
.ocf-nav-sub .ocf-nav-item {
  margin-top: 0;
}

/* Linha visível: ícone/checkbox + texto */
.ocf-nav-row {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  min-height: 34px !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.ocf-nav-row:hover { background: #f0ebff; }

/* Hover no label de nós intermediários */
.ocf-nav-serie > .ocf-nav-row:hover .ocf-nav-label,
.ocf-nav-area  > .ocf-nav-row:hover .ocf-nav-label {
  color: #5326b5 !important;
}

/* ── Botão de expansão (seta SVG) ───────────────────────────────────── */
.ocf-nav-expander {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #b8a8e0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: color 0.15s ease !important;
}
.ocf-nav-expander:hover { color: #6c35de !important; }

.ocf-caret {
  display: block;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Checkbox customizado nos tópicos-folha ─────────────────────────── */

/* Label wrapper */
.ocf-nav-check-wrap {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 34px !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* Input nativo: invisível mas acessível */
.ocf-nav-check-wrap input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 1;
}

/* Quadrado visual via ::after */
.ocf-nav-check-wrap::after {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid #c5b4f0;
  background: #fff;
  transition: all 0.18s ease;
  position: relative;
  z-index: 0;
  flex-shrink: 0;
}

/* Hover no wrapper */
.ocf-nav-check-wrap:hover::after {
  border-color: #7c5cbf;
  background-color: #faf8ff;
}

/* Estado marcado: gradiente + check SVG branco */
.ocf-nav-check-wrap:has(input:checked)::after {
  border-color: #6c35de;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat,
    linear-gradient(135deg, #6c35de 0%, #9b59d6 100%);
}

/* Hover no estado marcado */
.ocf-nav-check-wrap:has(input:checked):hover::after {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat,
    linear-gradient(135deg, #5326b5 0%, #8a48c4 100%);
}

/* Focus ring acessível */
.ocf-nav-check-wrap:focus-within::after {
  outline: 2px solid #6c35de;
  outline-offset: 1px;
}

/* ── Labels dos itens ───────────────────────────────────────────────── */

.ocf-nav-label {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 0.35rem 0.6rem 0.35rem 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #2d1060 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  transition: color 0.15s;
  display: block !important;
  user-select: none;
}

.ocf-nav-leaf { cursor: pointer; }

/* Série: mais destaque */
.ocf-nav-serie > .ocf-nav-row > .ocf-nav-label {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #1a0a3c !important;
}

/* Área: intermediário */
.ocf-nav-area > .ocf-nav-row > .ocf-nav-label {
  font-size: 0.865rem !important;
  font-weight: 500 !important;
  color: #2d1060 !important;
}

/* Tópico folha: levemente menor */
.ocf-nav-topico .ocf-nav-label {
  font-size: 0.845rem !important;
  color: #3a1870 !important;
}

/* ── Item marcado: borda esquerda de destaque ───────────────────────── */
.ocf-nav-row:has(.ocf-topico-check:checked) {
  background: #ede8fb;
  border-left: 3px solid #6c35de;
  border-radius: 0 8px 8px 0;
}

.ocf-nav-row:has(.ocf-topico-check:checked) .ocf-nav-label {
  color: #5326b5 !important;
  font-weight: 600 !important;
}

/* Mantém o recuo correto com a borda */
.ocf-nav-serie > .ocf-nav-sub > .ocf-nav-item > .ocf-nav-row:has(.ocf-topico-check:checked) {
  padding-left: 10px;
}
.ocf-nav-area > .ocf-nav-sub > .ocf-nav-item > .ocf-nav-row:has(.ocf-topico-check:checked) {
  padding-left: 20px;
}

/* ── Recuo por nível ────────────────────────────────────────────────── */
.ocf-nav-sub { padding-left: 0 !important; }

.ocf-nav-serie > .ocf-nav-sub > .ocf-nav-item > .ocf-nav-row {
  padding-left: 10px;
}
.ocf-nav-area > .ocf-nav-sub > .ocf-nav-item > .ocf-nav-row {
  padding-left: 20px;
}

/* ── Overlay mobile ─────────────────────────────────────────────────── */
.ocf-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,0,30,0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.ocf-sidebar-overlay.visivel {
  opacity: 1;
  pointer-events: auto;
}

/* ── Conteúdo principal ─────────────────────────────────────────────── */
.ocf-conteudo { flex: 1; min-width: 0; }

/* ── Controles ──────────────────────────────────────────────────────── */
.ocf-controles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

/* Hambúrguer — só aparece no mobile */
.ocf-sidebar-open-btn {
  display: none !important;
  align-items: center !important;
  gap: 0.4rem !important;
  height: 40px !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  background: #f0ebff !important;
  border: 1.5px solid #c9b8f5 !important;
  border-radius: 50px !important;
  color: #5326b5 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background 0.18s !important;
  position: relative !important;
}
.ocf-sidebar-open-btn:hover { background: #e4daf7 !important; }

/* Badge numérico no hambúrguer */
.ocf-sidebar-open-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  background: #6c35de !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

/* ── Select dificuldade ─────────────────────────────────────────────── */
.ocf-select-dificuldade {
  box-sizing: border-box !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 2.2rem 0 0.85rem !important;
  border: 1.5px solid #c5b4f0 !important;
  border-radius: 50px !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  line-height: normal !important;
  text-transform: none !important;
  color: #3b1a8a !important;
  background: #faf8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%237c5cbf'/%3E%3C/svg%3E") no-repeat right 0.7rem center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ocf-select-dificuldade:focus {
  outline: none;
  border-color: #6c35de;
  box-shadow: 0 0 0 3px rgba(108,53,222,0.15);
}

/* ── Limpar filtros ─────────────────────────────────────────────────── */
.ocf-limpar-filtro {
  height: 40px !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #6c35de !important;
  background: transparent !important;
  border: 1.5px solid #c5b4f0 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.ocf-limpar-filtro:hover {
  background: #6c35de !important;
  color: #fff !important;
  border-color: #6c35de !important;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.ocf-breadcrumb {
  font-size: 0.82rem;
  color: #7c5cbf;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.85rem;
  background: #f7f3ff;
  border-radius: 8px;
  border-left: 3px solid #c9b8f5;
  line-height: 1.5;
}
.ocf-bc-label  { color: #9b86cc; }
.ocf-breadcrumb strong { color: #5326b5; }
.ocf-breadcrumb em     { color: #3b1a8a; font-style: normal; }

/* ── Carregando ─────────────────────────────────────────────────────── */
.ocf-banco-questoes.ocf-carregando {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s;
}

/* ── Lista de questões ──────────────────────────────────────────────── */
.ocf-banco-questoes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.15s;
}

.ocf-sem-resultado {
  text-align: center;
  color: #7c5cbf;
  padding: 3rem 0;
  font-size: 0.95rem;
}

/* ── Card ───────────────────────────────────────────────────────────── */
.ocf-questao-card {
  background: #fff;
  border: 1.5px solid #e4daf7;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.25rem;
  box-shadow: 0 2px 16px rgba(80,30,180,0.07);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.ocf-questao-card:hover {
  box-shadow: 0 6px 28px rgba(80,30,180,0.13);
  transform: translateY(-2px);
}
.ocf-questao-card.selecionado {
  border-color: #6c35de;
  box-shadow: 0 0 0 3px rgba(108,53,222,0.2), 0 4px 20px rgba(80,30,180,0.12);
  transform: translateY(-1px);
}

/* ── Cabeçalho do card ──────────────────────────────────────────────── */
.ocf-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ocf-checkbox-wrap { flex-shrink: 0; margin-top: 3px; cursor: pointer; }
.ocf-checkbox-wrap input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #6c35de;
  cursor: pointer;
}

/* ── Tags ───────────────────────────────────────────────────────────── */
.ocf-questao-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; flex: 1; }

.ocf-tag-topico,
.ocf-tag-dificuldade {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 50px;
}

.ocf-tag-topico  { background: #ede8fb; color: #5326b5; border: 1px solid #c9b8f5; }
.ocf-dif-facil   { background: #e6f9ee; color: #1a7a40; border: 1px solid #9ddcb8; }
.ocf-dif-medio   { background: #fff7e0; color: #8a5a00; border: 1px solid #f5d57a; }
.ocf-dif-dificil { background: #fdeaea; color: #b01c1c; border: 1px solid #f5aaaa; }

/* ── Enunciado ──────────────────────────────────────────────────────── */
.ocf-enunciado { font-size: 1rem; line-height: 1.75; color: #1a0a3c; margin-bottom: 1.1rem; }
.ocf-enunciado p { margin-bottom: 0.5rem; }

/* ── Botão revelar resposta ─────────────────────────────────────────── */
.ocf-banco-questoes .ocf-btn-revelar,
.ocf-btn-revelar {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: linear-gradient(135deg, #6c35de 0%, #9b59d6 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.55rem 1.35rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.15s !important;
  text-transform: none !important;
  box-shadow: none !important;
  width: auto !important;
  line-height: normal !important;
}
.ocf-btn-revelar:hover  { opacity: 0.88 !important; transform: scale(1.03) !important; }
.ocf-btn-revelar:active { transform: scale(0.98) !important; }

/* ── Resposta ───────────────────────────────────────────────────────── */
.ocf-resposta {
  margin-top: 1rem;
  background: #f7f3ff;
  border-left: 4px solid #6c35de;
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2d1060;
  animation: ocfSlideDown 0.22s ease;
}
@keyframes ocfSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ocf-resposta p      { margin-bottom: 0.4rem; }
.ocf-resposta strong { color: #4a1fa8; }

/* ── Barra flutuante ────────────────────────────────────────────────── */
.ocf-barra-selecao {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a0a3c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999;
  flex-wrap: wrap;
}
.ocf-barra-selecao.visivel { transform: translateY(0); }

.ocf-barra-info        { font-size: 0.92rem; font-weight: 600; color: #c5b4f0; white-space: nowrap; }
.ocf-barra-info strong { color: #fff; }

.ocf-btn-barra {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.ocf-btn-barra:hover  { opacity: 0.85; transform: scale(1.04); }
.ocf-btn-barra:active { transform: scale(0.97); }

.ocf-btn-pdf    { background: #6c35de; color: #fff; }
.ocf-btn-doc    { background: #fff;    color: #1a0a3c; }
.ocf-btn-limpar {
  background: transparent;
  color: #a89ccf;
  border: 1.5px solid #4a3077;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}
.ocf-btn-limpar:hover { background: #2d1060; color: #fff; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) and (min-width: 769px) {
  .ocf-sidebar { width: 210px; min-width: 210px; }
  .ocf-sidebar.ocf-sidebar-recolhida { width: 44px; min-width: 44px; }
}

@media (max-width: 768px) {
  .ocf-layout { display: block; }

  .ocf-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 290px !important;
    min-width: 290px !important;
    max-height: 100vh;
    border-radius: 0 16px 16px 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    overflow-y: auto;
  }
  .ocf-sidebar.ocf-sidebar-aberta { transform: translateX(0); }

  .ocf-sidebar-overlay  { display: block; }
  .ocf-sidebar-toggle   { display: none !important; }
  .ocf-sidebar-open-btn { display: inline-flex !important; }

  .ocf-questao-card { padding: 1rem 1rem 0.9rem; }
  .ocf-barra-selecao { justify-content: flex-start; padding: 0.75rem 1rem; }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  header, footer, nav,
  .site-header, .site-footer,
  #masthead, #colophon,
  .main-navigation,
  .lp-breadcrumb, .learn-press-breadcrumb,
  .woocommerce-breadcrumb,
  .page-header,
  .wp-block-post-title,
  .admin-bar              { display: none !important; }

  body { margin: 0 !important; padding: 0 !important; }

  .ocf-sidebar,
  .ocf-sidebar-overlay,
  .ocf-controles,
  .ocf-admin-bar,
  .ocf-btn-revelar,
  .ocf-barra-selecao,
  .ocf-breadcrumb,
  .ocf-checkbox-wrap      { display: none !important; }

  .ocf-layout             { display: block; }
  .ocf-banco-questoes     { gap: 0; }

  .ocf-questao-card {
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 1.5rem;
    page-break-inside: avoid;
    break-inside: avoid;
    transform: none !important;
  }
  .ocf-questao-card + .ocf-questao-card { border-top: none; }

  .ocf-resposta {
    display: block !important;
    animation: none;
    border-left: 3px solid #6c35de;
  }
}
/* BEGIN-OBJETIVA */

/* ═══════════════════════════════════════════════════════════════════
   QUESTÕES OBJETIVAS — Alternativas
   ═══════════════════════════════════════════════════════════════════ */

/* Select tipo (ao lado do select dificuldade) */
.ocf-select-tipo {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding: .42rem .65rem !important;
  border: 1.5px solid #c8bdf0 !important;
  border-radius: 8px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c35de'/%3E%3C/svg%3E") no-repeat right .55rem center !important;
  background-size: 9px !important;
  padding-right: 1.8rem !important;
  font-size: .82rem !important;
  color: #2d1b6e !important;
  cursor: pointer !important;
  height: 36px !important;
}

/* Tag tipo objetiva */
.ocf-tag-tipo-obj {
  background: #fef9c3;
  color: #713f12;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

/* Tag tipo aberta */
.ocf-tag-tipo-aberta {
  background: #fef9c3;
  color: #713f12;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

/* Lista de alternativas */
.ocf-alternativas {
  list-style: none !important;
  padding: 0 !important;
  margin: .75rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem !important;
}

/* Item de alternativa */
.ocf-alt {
  display: flex !important;
  align-items: flex-start !important;
  gap: .65rem !important;
  padding: .55rem .9rem !important;
  border: 1.5px solid #e4daf7 !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  transition: background .14s, border-color .14s !important;
  line-height: 1 !important;
}
.ocf-alt:hover:not(.ocf-alt-respondida) {
  background: #f5f0ff !important;
  border-color: #a78bfa !important;
}

/* Círculo com a letra */
.ocf-alt-letra {
  flex-shrink: 0 !important;
  width: 1.7rem !important;
  height: 1.7rem !important;
  border-radius: 50% !important;
  background: #ede8fb !important;
  color: #5326b5 !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: .05rem !important;
}

/* Texto da alternativa */
.ocf-alt-corpo {
  flex: 1 !important;
  font-size: .88rem !important;
  line-height: 1.55 !important;
  color: #1a0a3c !important;
  font-family: inherit !important;
}

/* ── Estados após responder ── */
.ocf-alt-respondida { cursor: default !important; }

.ocf-alt-correta {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
}
.ocf-alt-correta .ocf-alt-letra {
  background: #16a34a !important;
  color: #fff !important;
}

.ocf-alt-errada {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
}
.ocf-alt-errada .ocf-alt-letra {
  background: #dc2626 !important;
  color: #fff !important;
}

/* ── Gabarito após resposta (resultado + explicação) ── */
.ocf-obj-gabarito {
  margin-top: .75rem !important;
  padding-top: .75rem !important;
  border-top: 1px solid #ede8fb !important;
}

.ocf-obj-resultado {
  padding: .45rem .9rem !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  font-size: .88rem !important;
  margin-bottom: .65rem !important;
}
.ocf-acertou { background: #dcfce7; color: #166534; }
.ocf-errou   { background: #fee2e2; color: #991b1b; }

.ocf-obj-expl {
  background: #f9f7ff !important;
  border-left: 3px solid #a78bfa !important;
  padding: .6rem .9rem !important;
  border-radius: 4px !important;
}
.ocf-obj-expl strong {
  display: block !important;
  font-size: .72rem !important;
  color: #6c35de !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  margin-bottom: .3rem !important;
}
.ocf-obj-expl > div { font-size: .88rem; line-height: 1.6; }

/* ── Toast XP ganho ──────────────────────────────────────── */
.ocf-xp-toast {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #6c35de;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0);
    transition: opacity .25s ease, transform .6s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(108,53,222,.35);
}
.ocf-xp-toast.ocf-xp-toast-show {
    opacity: 1;
    transform: translateY(-28px);
}

/* ── Questão já respondida ───────────────────────────────── */
.ocf-ja-respondida .ocf-alternativas { pointer-events: none; }
.ocf-alt-respondida { opacity: .85; cursor: default !important; }

/* ── Modo Revisão ─────────────────────────────────────── */
/* Enquanto em revisão: oculta resultado/explicação anterior; libera cliques nas alternativas */
.ocf-modo-revisao .ocf-obj-resultado { display: none !important; }
.ocf-modo-revisao .ocf-obj-expl      { display: none !important; }
.ocf-modo-revisao .ocf-alternativas  { pointer-events: auto !important; }
.ocf-modo-revisao li.ocf-alt         { pointer-events: auto !important; cursor: pointer !important; opacity: 1 !important; }
.ocf-modo-revisao li.ocf-alt:hover   { background: rgba(108,53,222,.08); }

.ocf-revisao-btn {
    display: inline-block;
    margin-top: .75rem;
    background: #4c1d95;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .55rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ocf-revisao-btn:hover { background: #6d28d9; }
.ocf-revisao-label {
    font-size: .78rem;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: .5rem;
    padding: .4rem .6rem;
    background: #ede9fe;
    border-radius: 6px;
}


/* ── Pills de código BNCC, faixas TRI, paywall, prévia (extraído do wp_head — VIS-3) ── */
  .ocf-tag-codigo {

    background: #f4f4f4;

    color: #444;

    border: 1px solid #ccc;

    font-family: monospace;

    font-size: 8pt;

    font-weight: normal;

    padding: 2pt 7pt;

    border-radius: 4pt;

    margin-right: 4pt;

  }

  .ocf-tag-tipo-aberta {

    background: #dbeafe;

    color: #1e40af;

    border-radius: 20px;

    padding: 2px 9px;

    font-size: 0.72rem;

    font-weight: 700;

    display: inline-block;

  }

  /* Bug 2 — referência bibliográfica */

  .ocf-referencia {

    display: block;

    font-size: 0.8em;

    font-style: italic;

    text-align: right;

    color: #666;

    margin-top: 0.5em;

  }

  /* Bug 4 — tabelas dentro de questões */

  .ocf-enunciado table,

  .ocf-obj-expl table,

  .ocf-resposta table {

    border-collapse: collapse;

    width: 100%;

    margin: 1em 0;

  }

  .ocf-enunciado table th,

  .ocf-enunciado table td,

  .ocf-obj-expl table th,

  .ocf-obj-expl table td,

  .ocf-resposta table th,

  .ocf-resposta table td {

    border: 1px solid #ccc;

    padding: 6px 10px;

    text-align: center;

  }

  .ocf-enunciado table th,

  .ocf-obj-expl table th,

  .ocf-resposta table th {

    background: #f4f4f4;

    font-weight: bold;

  }

  /* Dificuldade — 5 faixas 0-1000 */
  .ocf-dif-moleza  {background:#00B411;color:#fff;}
  .ocf-dif-facil   {background:#A8D31B;color:#2d3a00;}
  .ocf-dif-moderado{background:#FFC000;color:#3a2000;}
  .ocf-dif-dificil {background:#FFA10E;color:#3a1a00;}
  .ocf-dif-maximo  {background:#FF231F;color:#fff;}

  .ocf-btn-ver-explicacao {
    background: #6c4fd6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
  }
  .ocf-btn-ver-explicacao:disabled { opacity: 0.6; cursor: default; }
  .ocf-paywall {
    position: relative;
    background: linear-gradient(135deg, #f4f0ff, #fff8f0);
    border: 1px solid #e4d9ff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 8px;
    text-align: center;
  }
  .ocf-paywall p {
    margin: 0 0 14px;
    color: #4a2f9c;
    font-weight: 600;
    font-size: 0.92rem;
  }
  .ocf-paywall-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 6px;
    padding: 11px 22px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .15s ease, filter .15s ease;
  }
  .ocf-paywall-btn:hover { transform: translateY(-1px); }
  .ocf-paywall-upgrade {
    background: linear-gradient(135deg, #6c4fd6, #4a2f9c);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(108,79,214,.6);
  }
  .ocf-paywall-upgrade:hover { filter: brightness(1.08); color: #fff; }

  /* Previa borrada (visitante anonimo) */
  .ocf-preview-blur-wrap {
    position: relative;
    max-height: 460px;
    overflow: hidden;
    margin-top: 18px;
  }
  .ocf-preview-blur-wrap > .ocf-questao-card,
  .ocf-preview-blur-wrap > .ocf-tipo-objetiva {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
  }
  .ocf-preview-blur-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, #faf8ff 30%);
    z-index: 1;
  }
  .ocf-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
  }
  .ocf-preview-overlay-titulo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #22143f;
    margin: 0 0 8px;
  }
  .ocf-preview-overlay-texto {
    color: #6a5c88;
    font-size: 0.92rem;
    margin: 0 0 18px;
    max-width: 46ch;
  }
  .ocf-preview-overlay-cta {
    display: inline-block;
    margin: 0 6px;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #6c3be0, #4a23a8);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(108,59,224,.6);
  }
  .ocf-preview-overlay-cta-sec {
    background: #fff;
    color: #6c3be0;
    border: 2px solid #6c3be0;
    box-shadow: none;
  }
  .ocf-skeleton {
    padding: 20px 22px;
  }
  .ocf-skeleton-tag {
    width: 90px;
    height: 18px;
    border-radius: 100px;
    background: #e4def2;
    margin-bottom: 16px;
  }
  .ocf-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: #e4def2;
    margin-bottom: 10px;
  }
  .ocf-skeleton-line-1 { width: 96%; }
  .ocf-skeleton-line-2 { width: 88%; }
  .ocf-skeleton-line-3 { width: 60%; }
