/* ================================================
   estilo-blog.css — CSS unificado para blog e artigos
   ================================================ */

:root {
    --color-navy: #1E2B38;
    --color-navy-deep: #26344F;
    --color-sky: #94B9C9;
    --color-teal: #739E8D;
    --color-coral: #E25E42;
    --badge-premium: #FF9481;
    --badge-destaque: #4EAED9;
    --badge-quente: #E25E42;
    --marca-laranja: #FFE4CC;
    --marca-verde: #CCE5D6;
    --marca-verde-claro: #EBF5EF;
    --destaque-azul-claro: #94B9C9;
    --destaque-preto-azulado: #2c344d;
    --destaque-vermelho: #E25E42;
    --destaque-cinza-verdeado: #739E8D;
    --destaque-verde-suave: #CCE5D6;
    --texto-azul-escuro: #101e3a;
    --texto-azul-claro: #4EAED9;
    --bg-site: #f4f6f9;
    --bg-card: #FFFFFF;
    --bg-stripe: #EBF5EF;
    --hl-green: #CCE5D6;
    --bg-page: #F7F5F1;
    --text-main: #333333;
    --text-muted: #6E7E8A;
    --border-color: rgba(30, 43, 56, 0.12);
    --radius-sm: 5px;
    --radius-lg: 14px;
    --transition-fast: 0.2s ease;
    --primary: #131B24;
    --accent: #E25E42;
    --accent2: #739E8D;
    --success: #2E7D32;
    --text-main2: #1a2a5e;
    --text-azul: #022bb1;
    --text-verde: #006b05;
    --text-amarelo: #FFD54F;
    --azul-suave: #e8f0fb;
    --azul-borda: #c5d3f5;
    --azul-medio: #4a7fc1;
    --azul-escuro: #013169;
    --texto-secundario: #666;
    --raio-medio: 8px;
    --fonte-corpo: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-site);
    color: var(--text-main);
    line-height: 1.85;
}

p {
    font-size: 1rem;
}

li {
    font-size: 1rem;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 62px;
    background: var(--color-navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand {
    font-family: 'Lora', serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-brand span {
    color: var(--badge-premium);
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
    outline: none;
}

.btn-cta-nav {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-navy-deep);
    background: var(--badge-premium);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.btn-cta-nav:hover {
    opacity: 0.88;
}

/* ---- HAMBURGER ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- BOTAO OCULTAR NAVBAR ---- */
.nav-hide-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    flex-shrink: 0;
}

.nav-hide-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- BOTAO RECALL ---- */
.nav-recall-btn {
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 101;
    background: var(--color-navy-deep);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-recall-btn:hover {
    color: #fff;
}

/* ---- TOPO EXTRA (novostyle sync) ---- */
.tn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.tn-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.tn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E25E42;
    box-shadow: 0 0 6px #E25E42;
    flex-shrink: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tn-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

body.has-top-nav {
    padding-top: 52px;
    transition: padding-top .3s cubic-bezier(.4, 0, .2, 1);
}

body.has-top-nav #nav {
    top: 52px;
    height: calc(100vh - 52px);
    transition: top .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1);
}

body.has-top-nav #nav-toggle {
    top: 68px;
    transition: top .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---- ESTADOS NAVBAR OCULTA ---- */
.nav-hidden .navbar {
    transform: translateY(-100%);
}

.nav-hidden .nav-recall-btn {
    transform: translateY(0);
}

.nav-hidden .container {
    margin-top: 20px;
}

.nav-hidden .sidebar {
    top: 16px;
}

.nav-hidden.has-top-nav {
    padding-top: 8px;
}

.nav-hidden.has-top-nav #nav {
    top: 8px;
    height: calc(100vh - 8px);
}

.nav-hidden.has-top-nav #nav-toggle {
    top: 24px;
}

.nav-hidden.has-top-nav .nav-toggle {
    top: 24px;
}

/* ---- LAYOUT CONTAINER ---- */
.container {
    max-width: 1180px;
    margin: 90px auto 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 280px;
    gap: 50px;
    align-items: start;
    transition: margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- BLOG: GRID DE CARDS ---- */
.blog-header {
    margin-bottom: 30px;
}

.blog-header h1 {
    font-size: 32px;
    color: var(--texto-azul-escuro);
    font-weight: 800;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    transition: transform var(--transition-fast);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-thumbnail {
    width: 35%;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px 10px 10px;
}

.post-thumbnail img {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 20px 10px 10px 10px;
}

.post-content {
    padding: 20px 20px 20px 10px;
}

.post-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-coral);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.post-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--texto-azul-escuro);
    margin-bottom: 12px;
    line-height: 1.85;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.85;
}

.btn-read-more {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: var(--texto-azul-escuro);
    text-decoration: none;
    border-bottom: 2px solid var(--marca-laranja);
    padding-bottom: 2px;
    transition: border-color var(--transition-fast);
}

.btn-read-more:hover {
    border-color: var(--color-coral);
}

/* ---- ARTIGO ---- */
.article-page {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.85;
    color: var(--texto-azul-escuro);
    flex: 1;
}

.article-logo {
    width: 120px;
    max-width: 25%;
    height: auto;
    object-fit: contain;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.article-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* ---- ZOOM (widget fixo lado direito) ---- */
.zoom-controls {
    position: fixed;
    right: 14px;
    top: 25%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 90;
    background: rgba(240, 242, 245, 0.96);
    border: 1px solid #c8cdd6;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.zoom-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #d0d5dd;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: background .2s, color .2s;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: #e2e6ec;
    color: #1a2b38;
}

/* separador entre A+/A− e olhinho */
.zoom-sep {
    width: 22px;
    height: 1px;
    background: #d0d5dd;
    margin: 2px auto;
}

/* olhinho — discreto por padrao */
.zoom-eye-btn {
    opacity: 0.45;
    font-size: 14px;
}

.zoom-eye-btn:hover {
    opacity: 1;
}

/* ---- SOCIAL ---- */
.social-share {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.social-share a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.bg-ig {
    background-color: #E1306C;
}

.bg-wa {
    background-color: #25D366;
}

.bg-yt {
    background-color: #FF0000;
}

.bg-li {
    background-color: #0077b5;
}

.bg-fb {
    background-color: #1877F2;
}

/* ---- CONTEUDO DO ARTIGO ---- */
.blog-content {
    font-family: 'Lora', serif;
    font-size: 18px;
    color: #222;
    line-height: 1.85;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h1 {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--texto-azul-escuro);
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.85;
}

.blog-content h2 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--texto-azul-escuro);
    margin-top: 40px;
    margin-bottom: 15px;
}

.blog-content h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-navy);
    margin-top: 28px;
    margin-bottom: 12px;
}

.blog-content mark {
    background-color: var(--marca-laranja);
    padding: 0 6px;
    border-radius: 3px;
    font-weight: 500;
}

.blog-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 40px;
}

.blog-content ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    text-align: justify;
}

.blog-content ul li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--destaque-vermelho);
    font-size: 13px;
}

/* ---- LISTA NUMERADA NO BLOG-CONTENT ---- */
.blog-content ol {
    list-style: none;
    counter-reset: blog-ol;
    padding: 0;
    margin: 0 0 20px 40px;
}

.blog-content ol li {
    counter-increment: blog-ol;
    padding: 6px 0 6px 32px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    text-align: justify;
}

.blog-content ol li::before {
    content: counter(blog-ol) '.';
    position: absolute;
    left: 0;
    color: var(--destaque-vermelho);
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 24px;
}

/* ---- TABELA NO BLOG-CONTENT ---- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0 24px;
    width: 100%;
}

.table-wrap table {
    margin: 0;
    width: 100%;
    min-width: unset;
}

.table-center td,
.table-center th {
    text-align: center;
}

.blog-content table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 24px;
    width: 100%;
    border: 1px solid #c5d3e8;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.85;
}

.blog-content th,
.blog-content td {
    border-bottom: 1px solid #dde5f0;
    border-right: 1px solid #dde5f0;
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1.85;
}

.blog-content th:last-child,
.blog-content td:last-child {
    border-right: none;
}

.blog-content tr:last-child td,
.blog-content tr:last-child th {
    border-bottom: none;
}

.blog-content table tr:first-child {
    background-color: #dce8f5;
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #131B24;
}

.blog-content table tr:first-child th,
.blog-content table tr:first-child td {
    font-weight: 700;
    color: #131B24;
    font-size: 1rem;
    line-height: 1.85;
}

.blog-content table tr:nth-child(odd):not(:first-child) {
    background-color: #f5f7fa;
}

.blog-content table tr:nth-child(even) {
    background-color: transparent;
}

/* ---- INDICE DO ARTIGO ---- */
.indice-box {
    background: var(--bg-stripe);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.indice-box strong {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texto-azul-escuro);
    display: block;
    margin-bottom: 12px;
}

.indice-box ol {
    list-style: decimal;
    counter-reset: none;
    padding-left: 20px;
    margin: 0;
}

.indice-box ol li {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--color-navy);
    padding: 4px 0;
    position: static;
    border-bottom: none;
    text-align: left;
}

.indice-box ol li::before {
    display: none;
}

.indice-box ol li a {
    color: var(--texto-azul-claro);
    text-decoration: none;
    font-weight: 500;
}

.indice-box ol li a:hover {
    text-decoration: underline;
}

/* ---- CTA ARTIGO ---- */
.cta-artigo {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--color-navy-deep), #1a2a3a);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.cta-artigo p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.cta-artigo strong {
    display: block;
    font-size: 22px;
    color: #fff;
    margin-bottom: 6px;
}

.cta-artigo a {
    display: inline-block;
    background: var(--color-coral);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 14px rgba(226, 94, 66, 0.35);
}

.cta-artigo a:hover {
    opacity: 0.88;
}

/* ---- ALERT BOX (artigo) ---- */
.alert-box {
    border-radius: 10px;
    padding: 18px 20px;
    margin: 24px 0;
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.85;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.alert-box.laranja {
    background: #fffaf5;
    border-color: #f5c6a0;
    color: var(--primary);
}

.alert-box.verde {
    background: #f5fbf7;
    border-color: #b2d8bc;
    color: var(--primary);
}

.alert-box.azul {
    background: #f0f5fc;
    border-color: #c5d3f5;
    color: var(--primary);
}

/* Listas dentro de .alert-box e .atencao, bullet alinhado com o texto e hanging indent */
.alert-box ul,
.alert-box ol,
.atencao ul,
.atencao ol {
    margin: 0.5em 0;
    padding-left: 1.4em;
    list-style-position: outside;
}

.alert-box li,
.atencao li {
    margin-bottom: 0.4em;
    padding-left: 0.25em;
}

.alert-box li:last-child,
.atencao li:last-child {
    margin-bottom: 0;
}

.alert-box > p + ul,
.alert-box > p + ol,
.atencao > p + ul,
.atencao > p + ol {
    margin-top: 0.25em;
}

/* Formula centralizada em DM Mono (equacoes, identidades, expressoes destacadas) */
.formula {
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-size: 1.5em;
    margin: 0.4em 0 0.2em;
}

.formula-legenda {
    text-align: center;
    margin: 0 0 0.2em;
}

/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    padding-left: 32px;
    margin: 24px 0 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .data {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}

.timeline-item .descricao {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-main2);
    font-weight: 600;
}

.timeline-item .obs {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-muted);
}

/* ---- SIDEBAR ---- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

.course-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.course-book-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
}

.course-book-cover img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.course-badge {
    background-color: #F6E05E;
    color: #744210;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    align-self: flex-start;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.course-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--texto-azul-escuro);
    line-height: 1.85;
}

.course-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    margin-top: 4px;
}

.course-price-box {
    margin-bottom: 15px;
}

.course-price-box .price {
    font-size: 28px;
    font-weight: 800;
    color: #111;
}

.course-price-box .term {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-comprar {
    background-color: var(--destaque-vermelho);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
    display: block;
}

.btn-comprar:hover {
    opacity: 0.9;
}

.btn-saiba {
    border: 1px solid #ccc;
    color: #555;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    display: block;
}

.btn-saiba:hover {
    background-color: #f7f7f7;
}

/* ---- CATALOGO DE CURSOS ---- */
.catalog-section {
    background: #fff;
    padding: 60px 5vw;
    border-top: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--destaque-cinza-verdeado);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--texto-azul-escuro);
}

.tabs-list {
    display: flex;
    gap: 6px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-trigger {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tab-trigger:hover,
.tab-trigger:focus {
    color: var(--color-navy);
    background: var(--bg-stripe);
    outline: none;
}

.tab-trigger[aria-selected="true"] {
    color: var(--color-navy-deep);
    background: var(--bg-card);
    border-bottom-color: var(--color-coral);
    border-top-color: var(--border-color);
    border-left-color: var(--border-color);
    border-right-color: var(--border-color);
}

.tab-panel {
    display: none;
}

.tab-panel:not([hidden]) {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 20px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 43, 56, 0.06);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.cat-card:hover {
    box-shadow: 0 10px 36px rgba(30, 43, 56, 0.13);
    transform: translateY(-3px);
}

.cat-card.highlight-card {
    border-color: var(--color-coral);
    box-shadow: 0 4px 20px rgba(226, 94, 66, 0.15);
    position: relative;
}

.cat-card.highlight-card::before {
    content: 'MAIS VENDIDO';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--color-coral);
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.cat-cover {
    width: 100%;
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--border-color);
    background: #E8EDF0;
}

.cat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-details {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge-list {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.badge-tag::before {
    content: '\2605';
}

.tag-premium {
    background: var(--badge-premium);
    color: var(--color-navy-deep);
}

.tag-destaque {
    background: var(--badge-destaque);
    color: #fff;
}

.tag-quente {
    background: var(--badge-quente);
    color: #fff;
}

.cat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.cat-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.cat-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 14px;
    line-height: 1.85;
}

.cat-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.cat-btn-buy {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-coral);
    padding: 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(226, 94, 66, 0.22);
    transition: background var(--transition-fast);
}

.cat-btn-buy:hover {
    background: #c94d33;
}

.cat-btn-info {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cat-btn-info:hover {
    color: var(--color-navy);
    border-color: var(--color-navy);
}

/* ---- FOOTER CTA ---- */
.footer-cta {
    background-color: #111a24;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.footer-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.footer-cta span {
    color: var(--marca-laranja);
}

.footer-cta p {
    color: #a0aab2;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.cta-form input {
    flex-grow: 1;
    padding: 15px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 14px;
}

.cta-form button {
    background-color: var(--texto-azul-claro);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.cta-form button:hover {
    background-color: #3b8eb5;
}

/* ================================================================
   PORTFOLIO DE CLASSES — documento / resumo
================================================================ */

/* ---- SCROLLBAR DECORATIVO ---- */
.scrollbar-decorativo {
    position: relative;
    width: 100%;
    height: 2px;
    background: #c5d3e8;
    border-radius: 10px;
    margin: 28px 0;
}

.scrollbar-decorativo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 13px;
    background: #90a4ae;
    border-radius: 50%;
}

.scrollbar-decorativo.inicio::after {
    left: 6px;
    transform: translateY(-50%);
}

.scrollbar-decorativo.fim::after {
    left: calc(100% - 6px);
    transform: translateY(-50%);
}

/* ---- LAYOUT TABLE (print) ---- */
.layout-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.layout-table td {
    padding: 0;
    border: none;
}

.print-header {
    width: 100%;
}

.print-footer {
    display: none;
}

/* ---- HEADER DOCUMENTO ---- */
.header-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 14px;
}

.header-logo {
    max-width: 25px;
    height: auto;
}

.prof-name {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.header-main {
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ---- CONTENT ---- */
.content {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.85;
}

.content p {
    text-indent: 18px;
    margin-bottom: 10px;
    text-align: justify !important;
    hyphens: auto;
}

.content p:first-of-type {
    text-indent: 0;
}

/* ---- CORES DE DESTAQUE EM STRONG ---- */
strong.azul {
    color: var(--text-azul);
}

strong.laranja {
    color: var(--accent);
}

strong.verde {
    color: var(--success);
}

strong.accent {
    color: var(--accent);
}

strong.juris {
    color: var(--text-main2);
}

strong.c1 {
    color: #1565C0;
}

strong.c2 {
    color: #2E7D32;
}

strong.c3 {
    color: #6A1B9A;
}

strong.c4 {
    color: #E25E42;
}

strong.c5 {
    color: #E65100;
}

strong.c6 {
    color: #F9A825;
}

strong.c7 {
    color: #00838F;
}

/* ---- SECTION TITLE ---- */
.section-title {
    display: block;
    width: 100%;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(90deg, #131B24, #2C3E50);
    padding: 6px 10px;
    border-radius: 6px;
    margin: 18px 0 8px;
    counter-increment: secao;
    break-after: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.section-title::before {
    content: counter(secao) ". ";
    font-weight: 700;
}

.section-title.level-2 {
    display: inline-block;
    background: #e8f0fb !important;
    color: #013169 !important;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.08rem;
    counter-increment: none;
}

.section-title.level-2::before {
    content: none;
}

.section-title.level-3 {
    display: inline-block;
    background: transparent;
    color: #131B24;
    font-size: 1.08rem;
    padding: 3px 8px;
    font-weight: 700;
    counter-increment: none;
}

.section-title.level-3::before {
    content: none;
}

.section-title.level-4 {
    display: inline-block;
    background: transparent;
    color: #555;
    font-size: 1rem;
    font-style: italic;
    padding: 2px 8px;
    font-weight: 600;
    counter-increment: none;
}

.section-title.level-4::before {
    content: none;
}

.section-title+p {
    margin-top: 4px;
}

/* ================================================================
   SECTION-TITLE — variantes de cor
================================================================ */
.section-title.azul    { background: linear-gradient(90deg, #1a5fa8, #2d7dd2); }
.section-title.verde   { background: linear-gradient(90deg, #1b5e20, #2E7D32); }
.section-title.roxo    { background: linear-gradient(90deg, #4a148c, #6a3fa0); }
.section-title.laranja { background: linear-gradient(90deg, #bf360c, #E25E42); }
.section-title.cinza   { background: linear-gradient(90deg, #37474f, #546e7a); }

@media print {
    .section-title.azul    { background: linear-gradient(90deg, #1a5fa8, #2d7dd2) !important; }
    .section-title.verde   { background: linear-gradient(90deg, #1b5e20, #2E7D32) !important; }
    .section-title.roxo    { background: linear-gradient(90deg, #4a148c, #6a3fa0) !important; }
    .section-title.laranja { background: linear-gradient(90deg, #bf360c, #E25E42) !important; }
    .section-title.cinza   { background: linear-gradient(90deg, #37474f, #546e7a) !important; }
}

/* ================================================================
   TAREFA HEADER — bloco azul gradiente com badge + titulo
   Uso: cabecalho de tarefa/bloco em paginas de orientacao de estudos
================================================================ */
.tarefa-header {
    background: linear-gradient(135deg, #1565C0, #0d47a1);
    color: #fff;
    padding: 22px 26px;
    border-radius: 14px 14px 0 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tarefa-badge {
    font-family: 'DM Mono', 'Roboto', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 4px;
    color: #fff;
}

.tarefa-title {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.85;
}

.tarefa-body {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

/* Variantes de cor */
.tarefa-header.verde   { background: linear-gradient(135deg, #2E7D32, #1b5e20); }
.tarefa-header.laranja { background: linear-gradient(135deg, #E25E42, #bf360c); }
.tarefa-header.roxo    { background: linear-gradient(135deg, #6a3fa0, #4a148c); }
.tarefa-header.cinza   { background: linear-gradient(135deg, #546e7a, #37474f); }

@media print {
    .tarefa-header         { background: linear-gradient(135deg, #1565C0, #0d47a1) !important; }
    .tarefa-header.verde   { background: linear-gradient(135deg, #2E7D32, #1b5e20) !important; }
    .tarefa-header.laranja { background: linear-gradient(135deg, #E25E42, #bf360c) !important; }
    .tarefa-header.roxo    { background: linear-gradient(135deg, #6a3fa0, #4a148c) !important; }
    .tarefa-header.cinza   { background: linear-gradient(135deg, #546e7a, #37474f) !important; }
}

.section-title strong {
    color: #fff !important;
}

.section-title.level-2 strong {
    color: inherit !important;
}

.section-title:not(.level-2):not(.level-3):not(.level-4) strong.c1 {
    color: #90CAF9 !important;
}

.section-title:not(.level-2):not(.level-3):not(.level-4) strong.c6 {
    color: #F9A825 !important;
}

/* ---- DISPOSITIVO LEGAL ---- */
.dispositivo {
    margin: 28px 0;
    padding: 18px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    position: relative;
}

.dispositivo::before {
    content: "Dispositivo Legal";
    position: absolute;
    top: -12px;
    left: 18px;
    background: #2E7D32;
    color: #fff;
    padding: 3px 11px;
    font-family: 'Lora', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
}

.dispositivo-chave {
    display: block;
    font-family: 'Lora', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ccc;
}

.dispositivo-artigo {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #000;
    text-align: justify;
    line-height: 1.85;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #ccc;
}

.dispositivo-artigo:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dispositivo.azul {
    border-color: #c5d3f5;
}

.dispositivo.azul::before {
    background: #4a7fc1;
}

.dispositivo.azul .dispositivo-chave {
    color: #4a7fc1;
    border-bottom-color: #c5d3f5;
}

.dispositivo.roxo {
    border-color: #d4c5f5;
}

.dispositivo.roxo::before {
    background: #6a3fa0;
}

.dispositivo.roxo .dispositivo-chave {
    color: #6a3fa0;
    border-bottom-color: #d4c5f5;
}

.dispositivo.cinza {
    border-color: #d0d8e4;
}

.dispositivo.cinza::before {
    background: #6b7a8d;
}

.dispositivo.cinza .dispositivo-chave {
    color: #6b7a8d;
    border-bottom-color: #d0d8e4;
}

.dispositivo.navy {
    border-color: #c5d3f5;
}

.dispositivo.navy::before {
    background: #013169;
}

.dispositivo.navy .dispositivo-chave {
    color: #013169;
    border-bottom-color: #c5d3f5;
}

/* ---- SUMULA ---- */
.sumula {
    background: #fff;
    border: 1px solid #f0d060;
    border-radius: 10px;
    padding: 18px 16px 14px;
    margin: 28px 0 20px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #5a3e00;
    line-height: 1.85;
    position: relative;
}

.sumula .sumula-label {
    display: inline-block;
    background: #e6ac00;
    color: #fff;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: absolute;
    top: -12px;
    left: 18px;
}

/* ---- NOTA DO PROFESSOR ---- */
.nota-prof {
    position: relative;
    background: #f9f5ff;
    border: 1px solid #d5c3e0;
    border-radius: 10px;
    padding: 18px 18px 14px 18px;
    margin: 28px 0 20px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-style: italic;
    color: #3d2060;
    line-height: 1.85;
}

.nota-prof::before {
    content: "Nota do Professor";
    position: absolute;
    top: -12px;
    left: 16px;
    background: #6a3fa0;
    color: #fff;
    padding: 3px 11px;
    font-family: 'Lora', serif;
    font-size: max(0.73rem, 10px);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.nota-prof strong {
    color: #4a1880;
    font-style: normal;
}

/* ---- ALERTA ---- */
.alerta {
    background: #fff;
    border-radius: 10px;
    padding: 18px 16px 14px;
    margin: 10px 0 20px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.85;
    position: relative;
}

.alerta .alerta-label {
    display: inline-block;
    background: #E25E42;
    color: #fff;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: absolute;
    top: -12px;
    left: 18px;
}

/* ---- ATENCAO ---- */
.atencao {
    background: #fff;
    border: 1px solid #ffc77d;
    border-radius: 10px;
    padding: 18px 16px 14px;
    margin: 28px 0 20px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a2a5e;
    line-height: 1.85;
    position: relative;
}

.atencao-label {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: absolute;
    top: -12px;
    left: 18px;
}

/* ---- LISTA ---- */
.lista {
    list-style: none;
    margin: 8px 0 20px 0;
    padding: 8px 14px;
    background: #fafafa;
    border-radius: 6px;
}

.lista li {
    display: block;
    position: relative;
    padding: 6px 4px 6px 22px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.85;
    text-align: left;
}

.lista li strong {
    color: var(--primary);
}

.lista li:last-child {
    border-bottom: none;
}

.lista li::before {
    content: "\2022";
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 4px;
    top: 8px;
}

/* ---- LISTA SETA ---- */
.lista-seta {
    list-style: none;
    margin: 6px auto 14px auto;
    padding: 4px 18px;
    background: #fafafa;
    border-radius: 6px;
    max-width: 780px;
}

.lista-seta li {
    display: block;
    position: relative;
    padding: 3px 4px 3px 22px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.85;
    text-align: left;
}

.lista-seta li strong {
    color: var(--primary);
}

.lista-seta li:last-child {
    border-bottom: none;
}

.lista-seta li::before {
    content: "\25B8";
    color: var(--accent);
    font-size: 0.75rem;
    position: absolute;
    left: 4px;
    top: 7px;
}

/* ---- LISTA NUMERADA — tabela 3 colunas (numero | titulo | descricao) ---- */
table.lista-num {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 14px 0;
    border: 1px solid #c5d3e8;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    counter-reset: lista-counter;
    table-layout: fixed;
}

table.lista-num tbody tr {
    counter-increment: lista-counter;
}

table.lista-num tbody td {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    padding: 0.75em 0.875em;
    vertical-align: middle;
    border-bottom: 1px solid #dde5f0;
    color: var(--text-main);
    background-color: transparent;
    font-weight: 400;
}

table.lista-num tbody tr:last-child td {
    border-bottom: none;
}

table.lista-num tbody tr:nth-child(odd) td {
    background: #f5f7fa;
}

table.lista-num tbody td:first-child {
    width: 48px;
    text-align: center;
    padding-left: 10px;
    padding-right: 6px;
}

table.lista-num tbody td:first-child::before {
    content: counter(lista-counter);
    display: inline-flex;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.85;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

table.lista-num tbody td:nth-child(2) {
    width: 28%;
    font-weight: 700;
    color: var(--primary);
}

/* Quando so existem 2 tds (numero + texto unico, sem coluna de descricao),
   tratar o segundo como texto corrido em vez de coluna-titulo */
table.lista-num tbody td:nth-child(2):last-child {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: #1a1a1a;
    width: auto;
}

table.lista-num tbody td:nth-child(3) {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: #1a1a1a;
}

table.lista-num tbody td[colspan="2"] {
    font-family: 'Lora', serif;
    font-weight: 400;
    color: #1a1a1a;
    width: auto;
}

table.lista-num.azul tbody td:first-child::before {
    background: #4a7fc1;
}

table.lista-num.verde tbody td:first-child::before {
    background: #2E7D32;
}

table.lista-num.cinza tbody td:first-child::before {
    background: #6b7a8d;
}

table.lista-num.roxo tbody td:first-child::before {
    background: #6a3fa0;
}

/* Reset quando dentro de .blog-content (sobrescreve regras gerais de table) */
.blog-content table.lista-num tbody tr:first-child td {
    background-color: transparent;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.blog-content table.lista-num tbody tr:first-child td:nth-child(2) {
    font-weight: 700;
    color: var(--primary);
}

.blog-content table.lista-num tbody tr:first-child td:nth-child(3) {
    font-family: 'Lora', serif;
    color: #1a1a1a;
}

.blog-content table.lista-num tbody tr:first-child:nth-child(odd) td {
    background: #f5f7fa;
}

/* ---- LISTA NUMERADA EM ORDENADA ---- */
ol.lista-num {
    list-style: none;
    counter-reset: lista-num-counter;
    margin: 8px 0 20px 0;
    padding: 8px 14px;
    background: #fafafa;
    border-radius: 6px;
}

ol.lista-num li {
    display: block;
    position: relative;
    counter-increment: lista-num-counter;
    padding: 10px 4px 10px 42px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.85;
    text-align: left;
}

ol.lista-num li strong {
    color: var(--primary);
}

ol.lista-num li:last-child {
    border-bottom: none;
}

ol.lista-num li::before {
    content: counter(lista-num-counter);
    display: inline-flex;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.85;
    position: absolute;
    left: 6px;
    top: 8px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

ol.lista-num.azul li::before { background: #4a7fc1; }
ol.lista-num.verde li::before { background: #2E7D32; }
ol.lista-num.cinza li::before { background: #6b7a8d; }
ol.lista-num.roxo li::before { background: #6a3fa0; }

[data-theme="dark"] ol.lista-num {
    background: #162032;
}

[data-theme="dark"] ol.lista-num li {
    color: #D1D9E6;
    border-bottom-color: #2D3F55;
}

.lista-num {
    list-style: none;
    counter-reset: lista-num-counter;
    margin: 8px 0 20px 0;
    padding: 8px 14px;
    background: #fafafa;
    border-radius: 6px;
}

.lista-num li {
    display: block;
    position: relative;
    counter-increment: lista-num-counter;
    padding: 10px 4px 10px 42px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.85;
    text-align: left;
}

.lista-num li strong {
    color: var(--primary);
}

.lista-num li:last-child {
    border-bottom: none;
}

.lista-num li::before {
    content: counter(lista-num-counter);
    display: inline-flex;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.85;
    position: absolute;
    left: 6px;
    top: 8px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.lista-num.azul li::before { background: #4a7fc1; }
.lista-num.verde li::before { background: #2E7D32; }
.lista-num.cinza li::before { background: #6b7a8d; }
.lista-num.roxo li::before { background: #6a3fa0; }

[data-theme="dark"] .lista-num {
    background: #162032;
}

[data-theme="dark"] .lista-num li {
    color: #D1D9E6;
    border-bottom-color: #2D3F55;
}

/* ---- JURISPRUDENCIA ---- */
.juris {
    background: #fff;
    border: 1px solid #c5d3f5;
    border-radius: 10px;
    padding: 18px 16px 14px;
    margin: 28px 0 20px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a2a5e;
    line-height: 1.85;
    position: relative;
}

.juris .juris-label {
    display: inline-block;
    background: #3b5bdb;
    color: #fff;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: absolute;
    top: -12px;
    left: 18px;
}

/* ---- IMAGEM BLOCO ---- */
.img-bloco {
    text-align: center;
    margin: 24px 0;
}

.img-bloco img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ---- CASOS GRID ---- */
.casos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

.caso-card {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    color: var(--primary);
    line-height: 1.85;
}

.caso-card .caso-num {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* MODIFICADORES DE COR — .caso-card */
.caso-card.azul    { border-color: #c5d3f5; }
.caso-card.azul    .caso-num { color: #4a7fc1; }

.caso-card.verde   { border-color: #c5e5c8; }
.caso-card.verde   .caso-num { color: #2E7D32; }

.caso-card.laranja { border-color: #f5d8c5; }
.caso-card.laranja .caso-num { color: #bf360c; }

.caso-card.roxo    { border-color: #d4c5f5; }
.caso-card.roxo    .caso-num { color: #6a3fa0; }

.caso-card.cinza   { border-color: #d0d8e4; }
.caso-card.cinza   .caso-num { color: #6b7a8d; }

.caso-card.navy    { border-color: #c5d3f5; }
.caso-card.navy    .caso-num { color: #013169; }

/* ---- QUAD GRID ---- */
.quad-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

/* quad-grid-1: card largo empilhado -> conteudo alinhado a esquerda, fonte maior */
.quad-grid-1 .quad-titulo {
    text-align: left;
}

.quad-grid-1 .quad-item p,
.quad-grid-1 .quad-item ul {
    text-align: left;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- CADERNO TEC + UTILITARIAS DE IMPRESSAO ---- */
.tec-caderno {
    margin: 16px 0 8px;
}

.tec-caderno .tec-iframe {
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.tec-link-print {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-main2);
    border-radius: 6px;
    padding: 12px 16px;
    line-height: 1.7;
}

.so-print {
    display: none;
}

@media print {
    .oculto-print {
        display: none !important;
    }
    .so-print {
        display: block !important;
    }
}

.quad-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

.quad-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

.quad-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}

.quad-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}

.quad-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d8dce3;
    background: #fff;
    break-inside: avoid;
    display: flex;
    flex-direction: column;
}

.quad-titulo {
    border-radius: 6px 6px 0 0;
    padding: 10px 14px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.quad-item p {
    margin: auto;
    text-align: center;
    padding: 12px 14px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--primary);
}

.quad-item ul {
    margin: auto;
    text-align: center;
    list-style: none;
    padding: 8px 14px 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--primary);
}

.quad-item.azul .quad-titulo { background: #1a5fa8; }
.quad-item.verde .quad-titulo { background: #2E7D32; }
.quad-item.laranja .quad-titulo { background: #E25E42; }
.quad-item.roxo .quad-titulo { background: #6a3fa0; }
.quad-item.cinza .quad-titulo { background: #546e7a; }
.quad-item.amarelo .quad-titulo { background: #e6ac00; }
.quad-item.navy .quad-titulo { background: #131B24; }

.quad-item.azul {
    background: #f0f5fc;
    border-color: #c5d3f5;
}

.quad-item.verde {
    background: #f0f7f2;
    border-color: #c5dcc9;
}

.quad-item.laranja {
    background: #fff5f2;
    border-color: #f5c6b8;
}

.quad-item.roxo {
    background: #f6f0fa;
    border-color: #d5c3e0;
}

.quad-item.cinza {
    background: #f5f5f5;
    border-color: #ccc;
}

.quad-item.amarelo {
    background: #fffde7;
    border-color: #f5d67a;
}

.quad-item.navy {
    background: #f0f4fc;
    border-color: #ccd3ea;
}

[data-theme="dark"] .quad-item {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .quad-item p,
[data-theme="dark"] .quad-item ul {
    color: #D1D9E6;
}

[data-theme="dark"] .quad-item.azul {
    background: #121e2e;
}

[data-theme="dark"] .quad-item.verde {
    background: #122016;
}

[data-theme="dark"] .quad-item.laranja {
    background: #2a1810;
}

[data-theme="dark"] .quad-item.roxo {
    background: #1e1535;
}

[data-theme="dark"] .quad-item.amarelo {
    background: #2a2200;
}

[data-theme="dark"] .quad-item.navy {
    background: #131e2e;
}

@media screen and (max-width: 640px) {
    .quad-grid-2,
    .quad-grid-3,
    .quad-grid-4,
    .quad-grid-5 {
        grid-template-columns: 1fr;
    }
}

.obs {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #555;
    font-style: italic;
}

/* ---- EXEMPLO GRID (visual alinhado ao .casos-grid-2) ---- */
.exemplo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
    break-inside: avoid;
}

/* card solitario: ocupa largura total */
.exemplo-grid:has(> .exemplo-card:only-child) {
    grid-template-columns: 1fr;
}

.exemplo-card {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1.85;
}

.exemplo-direto {
    border-color: #c5d3f5;
}

.exemplo-indireto {
    border-color: #c5e5c8;
}

/* header agora vira um rotulo inline, no padrao .caso-num */
.exemplo-header {
    display: block;
    padding: 0;
    background: none;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 6px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.exemplo-direto .exemplo-header {
    background: none;
    color: #4a7fc1;
}

.exemplo-indireto .exemplo-header {
    background: none;
    color: #2E7D32;
}

.exemplo-body {
    padding: 0;
    background: transparent;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1.85;
}

.exemplo-direto .exemplo-body,
.exemplo-indireto .exemplo-body {
    background: transparent;
}

.exemplo-impostos {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.fluxo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.fluxo-node {
    background: #fff;
    border: 1.5px solid #d8dce3;
    border-radius: 22px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.85;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.fluxo-node small {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    color: #666;
    margin-top: 2px;
}

.fluxo-node.destaque {
    background: linear-gradient(180deg, #e8f5e9, #c8e6c9);
    border-color: #2E7D32;
    color: #1b5e20;
}

.fluxo-seta {
    font-size: 1rem;
    color: #b0b8c8;
    font-weight: 700;
    flex-shrink: 0;
}

.exemplo-desc {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #3a4654;
    margin-top: 14px;
    line-height: 1.85;
    font-style: italic;
    background: rgba(13, 71, 161, 0.05);
    border-left: 3px solid rgba(13, 71, 161, 0.30);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
}

.exemplo-indireto .exemplo-desc {
    background: rgba(27, 94, 32, 0.05);
    border-left-color: rgba(27, 94, 32, 0.35);
}

/* ---- TABELA FATO GERADOR ---- */
.tabela-fg {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 24px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.85;
    border: 1px solid #c5d3e8;
    border-radius: 8px;
    overflow: hidden;
}

.tabela-fg td {
    border-bottom: 1px solid #dde5f0;
    border-right: 1px solid #dde5f0;
    padding: 10px 14px;
    vertical-align: middle;
    line-height: 1.85;
    font-size: 1rem;
    color: var(--text-main);
    width: 50%;
    background: #fff;
}

.tabela-fg tr:nth-child(odd) td {
    background: #f5f7fa;
}

.tabela-fg tr:last-child td {
    border-bottom: none;
}

.tabela-fg td:last-child {
    border-right: none;
}

/* ---- QUESTAO DE PROVA ---- */
.questao-prova {
    background: #f9fafc;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--text-main2);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0 22px;
    font-family: 'Lora', serif;
    font-size: 1rem;
}

.questao-label {
    display: inline-block;
    background: var(--text-main2);
    color: #fff;
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.questao-enunciado {
    font-family: 'Lora', serif;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 500;
}

.alternativas {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.alternativas li {
    padding: 6px 8px 6px 32px;
    position: relative;
    font-size: 0.94rem;
    color: #333;
    line-height: 1.85;
    border-radius: 4px;
    margin-bottom: 2px;
}

.alternativas li.alt-correta {
    background: #e8f5e9;
    color: #1b5e20;
    font-weight: 500;
}

.alternativas li .alt-letra {
    position: absolute;
    left: 8px;
    top: 6px;
    font-weight: 700;
    color: var(--accent);
}

.alternativas li.alt-correta .alt-letra {
    color: var(--success);
}

.alternativas li.alt-correta::after {
    content: "\2713";
    position: absolute;
    right: 10px;
    top: 6px;
    color: var(--success);
    font-weight: 700;
}

.comentarios-toggle {
    margin-top: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.comentarios-toggle summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main2);
    font-size: 0.88rem;
    padding: 4px 0;
    user-select: none;
}

.comentarios-toggle summary:hover {
    color: var(--accent);
}

.comentarios-list {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
}

.comentarios-list li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.85;
}

.comentarios-list li strong {
    margin-right: 4px;
}

/* ---- INTEIRO TEOR ---- */
.inteiro-teor {
    margin-top: 14px;
    border-left: 3px solid #d1d5db;
    padding: 12px 16px;
    background: #fcfcfd;
    border-radius: 0 6px 6px 0;
    font-family: 'Lora', serif;
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--primary);
}

.inteiro-teor summary {
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 0;
    user-select: none;
}

.inteiro-teor summary:hover {
    color: var(--accent);
}

.inteiro-teor[open] summary {
    margin-bottom: 10px;
}

.inteiro-teor p {
    text-indent: 18px;
    margin-bottom: 10px;
    text-align: justify;
}

.inteiro-teor p:first-of-type {
    text-indent: 0;
    margin-top: 8px;
}

/* ---- SUMARIO ---- */
.sumario-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 16px 0 32px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: 'Lora', serif;
    break-inside: avoid;
}

.sumario-header {
    background: linear-gradient(90deg, #131B24, #2C3E50);
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sumario-icon {
    stroke: #FFD54F;
    opacity: 0.9;
}

.sumario-body {
    padding: 0;
}

.sumario-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sumario-list li {
    margin: 0;
    padding: 0;
}

.sumario-list a {
    text-decoration: none;
    display: block;
    padding: 11px 20px;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f2f3f7;
    position: relative;
    font-size: 0.93rem;
    line-height: 1.85;
}

.sumario-list li:last-child a {
    border-bottom: none;
}

.sumario-list a:hover {
    background: #fafafc;
    color: var(--accent);
    padding-left: 26px;
}

.sumario-num {
    display: inline-block;
    width: 26px;
    font-weight: 700;
    color: var(--accent);
    margin-right: 4px;
}

.sumario-item-h1 a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    background: #fcfcfd;
}

.sumario-item-h1 a:hover {
    padding-left: 26px;
}

.sumario-item-h2 a {
    padding-left: 36px;
    font-size: 0.95rem;
    color: #444;
}

.sumario-item-h2 a::before {
    content: "\21B3";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
    opacity: 0.7;
}

.sumario-item-h2 a:hover {
    padding-left: 42px;
}

.sumario-item-h2 a:hover::before {
    opacity: 1;
    left: 22px;
}

.sumario-item-h3 a {
    padding-left: 56px;
    font-size: 0.9rem;
    color: #666;
}

.sumario-item-h3 a::before {
    content: "\2022";
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.sumario-item-h3 a:hover {
    padding-left: 60px;
}

.sumario-item-h3 a:hover::before {
    left: 44px;
    color: var(--accent);
}

/* ---- TAG DE AREA ---- */
.tag-area {
    display: inline-block;
    background: #eef0f5;
    color: #555;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.tag-area.civil {
    background: #e3f2fd;
    color: #0d47a1;
}

.tag-area.penal {
    background: #ffebee;
    color: #b71c1c;
}

.tag-area.admin {
    background: #e8f5e9;
    color: #1b5e20;
}

.tag-area.proc {
    background: #fff3e0;
    color: #e65100;
}

.tag-area.trib {
    background: #f3e5f5;
    color: #4a148c;
}

/* ---- JULGADO BLOCK ---- */
.julgado-block {
    margin: 40px 0 50px;
    padding-top: 8px;
    scroll-margin-top: 20px;
}

.julgado-block .julgado-meta {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    color: #666;
    margin: 8px 0 14px;
    font-style: italic;
}

/* ---- FICHAS RAPIDAS ---- */
.fichas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 20px;
}

.ficha {
    padding: 10px 13px;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    line-height: 1.85;
    break-inside: avoid;
    background: #fff;
    border: 1px solid #ccc;
    border-top: 3px solid #131B24;
    border-radius: 0;
}

.ficha-titulo {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
    color: #131B24;
}

.ficha-azul {
    background: #f0f4fc;
    border: 1px solid #ccd3ea;
    border-top: 3px solid #131B24;
}

.ficha-verde {
    background: #f0f7f2;
    border: 1px solid #c5dcc9;
    border-top: 3px solid #131B24;
}

.ficha-laranja {
    background: #fdf8f0;
    border: 1px solid #e8d8c0;
    border-top: 3px solid #131B24;
}

.ficha-cinza {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-top: 3px solid #131B24;
}

.ficha-roxo {
    background: #f6f0fa;
    border: 1px solid #d5c3e0;
    border-top: 3px solid #131B24;
}

.ficha-escura {
    background: #f0f4fc;
    border: 1px solid #ccd3ea;
    border-top: 3px solid #131B24;
    color: #1a1a1a;
}

.ficha-escura .ficha-titulo {
    color: #131B24;
}

.ficha strong {
    color: inherit;
    font-weight: 700;
}

.ficha ul {
    margin: 4px 0 0 14px;
    padding: 0;
}

.ficha ul li {
    margin-bottom: 2px;
}

/* ---- KV-GRID ---- */
.kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 20px;
}

.kv-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
    break-inside: avoid;
}

.kv-card .kv-label {
    flex-shrink: 0;
    width: 110px;
    background: #f0f4fc;
    color: #131B24;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    border-right: 1px solid var(--border-color);
}

.kv-card .kv-body {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #1a1a1a;
    min-width: 0;
}

.kv-card.azul .kv-label { background: #cfdef5; color: #103a6e; }
.kv-card.verde .kv-label { background: #d0e9d6; color: #1b4d20; }
.kv-card.laranja .kv-label { background: #fae0d4; color: #7a2e1a; }
.kv-card.roxo .kv-label { background: #e3d8f0; color: #44247a; }
.kv-card.cinza .kv-label { background: #e0e4eb; color: #4a5568; }
.kv-card.amarelo .kv-label { background: #f5e6b8; color: #6b4a00; }

.kv-card.full {
    grid-column: 1 / -1;
}

/* .kv-titulo: titulo em cima + conteudo abaixo */
.kv-card:has(.kv-titulo) {
    flex-direction: column;
}

.kv-card .kv-titulo {
    flex-shrink: 0;
    background: #f0f4fc;
    color: #131B24;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    line-height: 1.85;
}

.kv-card:has(.kv-titulo) > p {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #1a1a1a;
    margin: 0;
}

.kv-card.azul .kv-titulo    { background: #cfdef5; color: #103a6e; }
.kv-card.verde .kv-titulo   { background: #d0e9d6; color: #1b4d20; }
.kv-card.laranja .kv-titulo { background: #fae0d4; color: #7a2e1a; }
.kv-card.cinza .kv-titulo   { background: #e0e4eb; color: #4a5568; }
.kv-card.roxo .kv-titulo    { background: #e3d8f0; color: #44247a; }
.kv-card.amarelo .kv-titulo { background: #f5e6b8; color: #6b4a00; }

@media screen and (max-width: 640px) {
    .kv-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .kv-card {
    background: #1e293b;
    border-color: #2D3F55;
}

[data-theme="dark"] .kv-card .kv-label {
    background: #2d3f55;
    color: #E2E8F0;
    border-right-color: #1e293b;
}

[data-theme="dark"] .kv-card .kv-body {
    color: #D1D9E6;
}

[data-theme="dark"] .kv-card.azul .kv-label { background: #1e3a5f; color: #93C5FD; }
[data-theme="dark"] .kv-card.verde .kv-label { background: #1a4d1e; color: #86efac; }
[data-theme="dark"] .kv-card.laranja .kv-label { background: #7a2e1a; color: #ffd7c4; }
[data-theme="dark"] .kv-card.roxo .kv-label { background: #44247a; color: #d8b4fe; }
[data-theme="dark"] .kv-card.cinza .kv-label { background: #3a4658; color: #cbd5e1; }
[data-theme="dark"] .kv-card.amarelo .kv-label { background: #6b4a00; color: #fde68a; }

/* Aliases legados: kv-row/kv-key/kv-val */
.kv-row { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; font-family: 'Source Sans Pro', sans-serif; break-inside: avoid; }
.kv-row .kv-key { flex-shrink: 0; width: 110px; background: #f0f4fc; color: #131B24; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.85; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 10px; border-right: 1px solid var(--border-color); }
.kv-row .kv-val { flex: 1; padding: 12px 14px; font-size: 0.92rem; line-height: 1.85; color: #1a1a1a; min-width: 0; }
.kv-row.azul .kv-key { background: #cfdef5; color: #103a6e; }
.kv-row.verde .kv-key { background: #d0e9d6; color: #1b4d20; }
.kv-row.laranja .kv-key { background: #fae0d4; color: #7a2e1a; }
.kv-row.roxo .kv-key { background: #e3d8f0; color: #44247a; }
.kv-row.cinza .kv-key { background: #e0e4eb; color: #4a5568; }
.kv-row.amarelo .kv-key { background: #f5e6b8; color: #6b4a00; }
.kv-row.full { grid-column: 1 / -1; }
[data-theme="dark"] .kv-row { background: #1e293b; border-color: #2D3F55; }
[data-theme="dark"] .kv-row .kv-key { background: #2d3f55; color: #E2E8F0; border-right-color: #1e293b; }
[data-theme="dark"] .kv-row .kv-val { color: #D1D9E6; }
[data-theme="dark"] .kv-row.azul .kv-key { background: #1e3a5f; color: #93C5FD; }
[data-theme="dark"] .kv-row.verde .kv-key { background: #1a4d1e; color: #86efac; }
[data-theme="dark"] .kv-row.laranja .kv-key { background: #7a2e1a; color: #ffd7c4; }
[data-theme="dark"] .kv-row.roxo .kv-key { background: #44247a; color: #d8b4fe; }
[data-theme="dark"] .kv-row.cinza .kv-key { background: #3a4658; color: #cbd5e1; }
[data-theme="dark"] .kv-row.amarelo .kv-key { background: #6b4a00; color: #fde68a; }

/* ---- TABELA DE REVISAO ---- */
.tabela-rev {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Lora', serif;
    font-size: 1rem;
    margin: 10px 0 18px;
    border: 1px solid #c5d3e8;
    border-radius: 8px;
    overflow: hidden;
    line-height: 1.85;
}

.tabela-rev th {
    background: #dce8f5;
    color: #131B24;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #dde5f0;
    border-right: 1px solid #dde5f0;
}

.tabela-rev th:last-child {
    border-right: none;
}

.tabela-rev td {
    padding: 10px 14px;
    border-bottom: 1px solid #dde5f0;
    border-right: 1px solid #dde5f0;
    vertical-align: middle;
    line-height: 1.85;
}

.tabela-rev td:last-child {
    border-right: none;
}

.tabela-rev tr:last-child td {
    border-bottom: none;
}

.tabela-rev tr:nth-child(odd):not(:first-child) td {
    background: #f5f7fa;
}

.tabela-rev .certo {
    color: #1a1a1a;
}

.tabela-rev .errado {
    color: #555;
    text-decoration: line-through;
}

/* ---- MNEM ---- */
.mnem {
    background: #f0f4fc;
    color: #131B24;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    border-radius: 0;
    margin: 10px 0;
    letter-spacing: 0.03em;
    border: 1px solid #ccd3ea;
    border-left: 4px solid #131B24;
}

.mnem span {
    color: var(--accent);
}

/* ---- QUESTAO REVISAO ---- */
.qrev {
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 10px 13px;
    margin: 8px 0;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    break-inside: avoid;
}

.qrev-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 5px;
}

.qrev-label {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.qrev-gab {
    display: inline-block;
    background: none;
    color: #131B24;
    font-weight: 600;
    font-size: 0.78rem;
    border: 1px solid #131B24;
    border-radius: 0;
    padding: 1px 7px;
    white-space: nowrap;
}

.qrev-enunciado {
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.85;
}

.qrev-justif {
    font-size: 0.83rem;
    color: var(--primary);
    border-top: 1px solid #e0e0e0;
    padding-top: 5px;
    line-height: 1.85;
}

.qrev-justif strong {
    color: #131B24;
}

/* ---- LINHA DO TEMPO ---- */
.linha-tempo {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 12px 0 18px;
    font-family: 'Lora', serif;
    font-size: 0.8rem;
}

.lt-item {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    background: #f0f4fc;
    border: 1px solid #ccd3ea;
    border-right: none;
    position: relative;
}

.lt-item:last-child {
    border-right: 1px solid #ccc;
}

.lt-item:not(:last-child)::after {
    content: "\25B6";
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9rem;
    z-index: 1;
}

.lt-num {
    display: block;
    font-weight: 700;
    color: #555;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.lt-nome {
    font-weight: 700;
    color: #131B24;
    display: block;
}

.lt-doc {
    font-size: 0.7rem;
    color: #666;
    display: block;
    margin-top: 2px;
    font-style: italic;
}

/* ---- PILL BADGE ---- */
.pill {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 5px;
    font-family: 'Lora', serif;
    font-size: 0.73rem;
    font-weight: 700;
    margin: 2px 3px;
    border: 1px solid #c8cfd8;
    background: #eef1f5;
    color: #2b3a4a;
    vertical-align: middle;
    white-space: nowrap;
}

.pill.prova {
    background: #fff9c4;
    border-color: #f9a825;
    color: #7a5a00;
}

.pill.erro {
    background: #fde8e8;
    border-color: #ef9a9a;
    color: #b71c1c;
}

.pill.conexao {
    background: #dbe8f7;
    border-color: #90b8e0;
    color: #0d3a6e;
}

.pill.novo {
    background: #d4edda;
    border-color: #81c784;
    color: #1b5e20;
}

[data-theme="dark"] .pill.prova {
    background: #3a3000;
    border-color: #f9a825;
    color: #fde68a;
}

[data-theme="dark"] .pill.erro {
    background: #3a1010;
    border-color: #ef9a9a;
    color: #fca5a5;
}

[data-theme="dark"] .pill.conexao {
    background: #132340;
    border-color: #4a7fc1;
    color: #93C5FD;
}

[data-theme="dark"] .pill.novo {
    background: #14401e;
    border-color: #4ade80;
    color: #86efac;
}

/* ---- TABELA COMPARATIVA ---- */
.tabela-comparativa {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-family: 'Lora', serif;
    font-size: 0.92rem;
}

.tabela-comparativa th {
    padding: 7px 10px;
    text-align: center;
    color: #fff;
    background: #131B24;
}

.tabela-comparativa td {
    padding: 6px 10px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: top;
}

.tabela-comparativa td:first-child {
    font-weight: 700;
    color: #131B24;
    width: 28%;
}

.tabela-comparativa td:nth-child(2) {
    background: #fafafa;
}

.tabela-comparativa td:nth-child(3) {
    background: #f5f5f5;
}

/* ---- GRUPOS PROCESSOS ---- */
.grupos-processos {
    margin: 12px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fafbff;
    border: 1px solid #d4d8ea;
    border-radius: 0;
    padding: 10px 14px;
}

.grupo-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #fff;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.grupo-item:nth-child(1) .grupo-num {
    background: #4a7fc1;
}

.grupo-item:nth-child(2) .grupo-num {
    background: #5a9e72;
}

.grupo-item:nth-child(3) .grupo-num {
    background: #d4783a;
}

.grupo-item:nth-child(4) .grupo-num {
    background: #7a6caa;
}

.grupo-item:nth-child(5) .grupo-num {
    background: #5a8ea0;
}

.grupo-item:nth-child(6) .grupo-num {
    background: #4a7fc1;
}

.grupo-item:nth-child(7) .grupo-num {
    background: #5a9e72;
}

.grupo-item:nth-child(8) .grupo-num {
    background: #d4783a;
}

.grupo-item:nth-child(9) .grupo-num {
    background: #7a6caa;
}

.grupo-item:nth-child(10) .grupo-num {
    background: #5a8ea0;
}

.grupo-item:nth-child(11) .grupo-num {
    background: #4a7fc1;
}

.grupo-item:nth-child(12) .grupo-num {
    background: #5a9e72;
}

.grupo-body {
    flex: 1;
}

.grupo-titulo {
    display: block;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #131B24;
    margin-bottom: 3px;
}

.grupo-body p {
    font-family: 'Lora', serif;
    font-size: 0.92rem;
    line-height: 1.85;
    text-indent: 0 !important;
    margin: 0;
    color: #1a1a1a;
    text-align: justify;
}

/* ---- LITERALIDADE ---- */
.Litelidade-bloco {
    margin: 28px 0;
    padding: 18px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    position: relative;
}

.Litelidade-bloco::before {
    content: "Literalidade";
    position: absolute;
    top: -12px;
    left: 18px;
    background: #013169;
    color: #fff;
    padding: 3px 11px;
    font-family: 'Lora', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
}

.Litelidade-chavedoartigo {
    display: block;
    font-family: 'Lora', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #013169;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ccc;
}

.Litelidade-artigo {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #000;
    text-align: justify;
    line-height: 1.85;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ccc;
}

.Litelidade-artigo:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ---- DIAGRAMA HORIZONTAL 2 NIVEIS ---- */
.diagrama {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 20px 0 10px;
}

.diagrama-titulo {
    flex: 0 0 120px;
    border: 1.5px solid var(--azul-borda);
    border-radius: var(--raio-medio);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.diagrama-titulo .nome {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--azul-escuro);
    line-height: 1.85;
}

.diagrama-titulo .ref-legal {
    font-size: 0.68rem;
    color: var(--texto-secundario);
    margin-top: 5px;
    font-style: italic;
    line-height: 1.85;
}

.diagrama-bracket {
    flex: 0 0 20px;
    position: relative;
}

.diagrama-bracket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: var(--azul-medio);
}

.diagrama-itens {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
    border-left: 1.5px solid var(--azul-medio);
}

.diagrama-item {
    border: 1px solid var(--azul-borda);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--text-main);
    position: relative;
}

.diagrama-item::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 10px;
    height: 1.5px;
    background: var(--azul-medio);
    transform: translateY(-50%);
}

.diagrama-item strong {
    color: var(--azul-escuro);
}

/* ---- DIAGRAMA HORIZONTAL 1 NIVEL (raiz -> bloco unico) ---- */
.diagrama-1n {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0 10px;
}

.diagrama-1n-raiz {
    flex: 0 0 140px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: var(--raio-medio);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.diagrama-1n-raiz .nome {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--azul-escuro);
    line-height: 1.5;
}

.diagrama-1n-raiz .ref-legal {
    font-size: 0.68rem;
    color: var(--texto-secundario);
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

.diagrama-1n-bracket {
    flex: 0 0 24px;
    position: relative;
}

.diagrama-1n-bracket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: var(--azul-medio);
}

.diagrama-1n-bloco {
    flex: 1;
    background: transparent;
    border: 1px solid var(--azul-borda);
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--text-main);
    position: relative;
}

.diagrama-1n-bloco::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--azul-medio);
    transform: translateY(-50%);
}

.diagrama-1n-bloco strong {
    color: var(--azul-escuro);
}

@media screen and (max-width: 700px) {
    .diagrama-1n {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .diagrama-1n-raiz {
        flex: 0 0 auto;
    }
    .diagrama-1n-bracket {
        display: none;
    }
    .diagrama-1n-bloco::before {
        display: none;
    }
}

/* ---- DIAGRAMA ARVORE ---- */
.diagrama-arvore {
    margin: 28px 0;
}

.diagrama-arvore-raiz {
    background: var(--azul-escuro);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    position: relative;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.diagrama-arvore-raiz::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 18px;
    background: var(--azul-medio);
}

.diagrama-arvore-ramos {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    align-items: flex-start;
}

.diagrama-arvore-ramos::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% / var(--ramos, 3));
    right: calc(50% / var(--ramos, 3));
    height: 2px;
    background: var(--azul-medio);
}

.diagrama-arvore-ramo {
    flex: 1;
    border: 1px solid var(--azul-borda);
    border-radius: var(--raio-medio);
    overflow: hidden;
    position: relative;
    background: #fff;
}

.diagrama-arvore-ramo::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 18px;
    background: var(--azul-medio);
}

.diagrama-arvore-ramo-titulo {
    background: var(--azul-suave);
    color: var(--azul-escuro);
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 7px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--azul-borda);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.diagrama-arvore-item {
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    border-bottom: 1px solid #f0f2f5;
    line-height: 1.85;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
}

.diagrama-arvore-item:last-child {
    border-bottom: none;
}

/* ---- MARCO TIMELINE (linha do tempo horizontal com marcos) ---- */
/*
   HTML de uso:
   <div class="marco-timeline">
     <div class="marco-item marco-concluido">
       <div class="marco-ponto">&#10003;</div>
       <div class="marco-data">Jan 2025</div>
       <div class="marco-versao">v1.0</div>
       <div class="marco-desc">Initial Release</div>
     </div>
     <div class="marco-item marco-atual">
       <div class="marco-ponto">&#9654;</div>
       <div class="marco-data">Jun 2025</div>
       <div class="marco-versao">v2.0 <span class="marco-badge">Atual</span></div>
       <div class="marco-desc">Major Update</div>
     </div>
     <div class="marco-item marco-futuro">
       <div class="marco-ponto">&#9711;</div>
       <div class="marco-data">Sep 2025</div>
       <div class="marco-versao">v2.1</div>
       <div class="marco-desc">Improvements</div>
     </div>
   </div>
*/
.marco-timeline {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 10px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 20px 0;
}

.marco-item {
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 6px;
}

/* Linha conectora: cobre o item inteiro; extremidades sao aparadas */
.marco-item::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.marco-item:first-child::before {
    left: 50%;
}

.marco-item:last-child::before {
    right: 50%;
}

.marco-ponto {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.marco-concluido .marco-ponto {
    background: #10b981;
    color: #fff;
}

.marco-atual .marco-ponto {
    background: #131B24;
    color: #fff;
}

.marco-futuro .marco-ponto {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #d0d5dd;
}

.marco-data {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
    line-height: 1.85;
}

.marco-versao {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--texto-azul-escuro);
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
    line-height: 1.85;
}

.marco-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.85;
}

.marco-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    background: #e8f0fb;
    color: #1a5fa8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.diagrama-arvore-item strong {
    color: var(--azul-escuro);
}

/* ---- DIAGRAMA 3 NIVEIS ---- */
.diagrama-3n {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 20px 0 10px;
}

.diagrama-3n-raiz {
    flex: 0 0 160px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: var(--raio-medio);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-escuro);
    line-height: 1.85;
}

.diagrama-3n-bracket {
    flex: 0 0 20px;
    position: relative;
}

.diagrama-3n-bracket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: var(--azul-medio);
}

.diagrama-3n-grupos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 12px;
    border-left: 1.5px solid var(--azul-medio);
    justify-content: center;
}

.diagrama-3n-grupo {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.diagrama-3n-ramo {
    flex: 0 0 200px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.diagrama-3n-ramo::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--azul-medio);
    transform: translateY(-50%);
}

.diagrama-3n-mid {
    flex: 0 0 20px;
    position: relative;
}

.diagrama-3n-mid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: var(--azul-medio);
}

.diagrama-3n-folha {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- DIAGRAMA 4 NIVEIS ---- */
.diagrama-4n {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 20px 0 10px;
}

.diagrama-4n-raiz {
    flex: 0 0 140px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: var(--raio-medio);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-escuro);
    line-height: 1.85;
}

.diagrama-4n-bracket {
    flex: 0 0 16px;
    position: relative;
}

.diagrama-4n-bracket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: var(--azul-medio);
}

.diagrama-4n-grupos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 12px;
    border-left: 1.5px solid var(--azul-medio);
    justify-content: center;
}

.diagrama-4n-grupo {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.diagrama-4n-ramo {
    flex: 0 0 140px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.diagrama-4n-ramo::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--azul-medio);
    transform: translateY(-50%);
}

.diagrama-4n-mid {
    flex: 0 0 16px;
    position: relative;
}

.diagrama-4n-mid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: var(--azul-medio);
}

.diagrama-4n-nivel3 {
    flex: 0 0 140px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagrama-4n-folha {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagrama-4n-sub {
    flex: 0 0 110px;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.8rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- DIAGRAMA VERTICAL 1 NIVEL ---- */
.diagrama-v1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    max-width: 420px;
    gap: 0;
}

.diagrama-v1-item {
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 10px 18px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    position: relative;
}

.diagrama-v1-item+.diagrama-v1-item {
    margin-top: 20px;
}

.diagrama-v1-item+.diagrama-v1-item::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 20px;
    background: var(--azul-medio);
}

.diagrama-v1-raiz {
    border-color: var(--azul-borda);
    font-weight: 600;
    color: var(--azul-escuro);
}

/* â€”â€” Diagrama Ãrvore â€” utilitÃ¡rios para --ramos â€”â€” */
.ramos-2 {
    --ramos: 2;
}

.ramos-3 {
    --ramos: 3;
}

.ramos-4 {
    --ramos: 4;
}

.ramos-5 {
    --ramos: 5;
}

/* ---- DIAGRAMA VERTICAL 2 NIVEIS ---- */
.diagrama-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.diagrama-v2-raiz {
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: var(--raio-medio);
    padding: 10px 28px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-escuro);
    text-align: center;
    line-height: 1.85;
    position: relative;
}

.diagrama-v2-raiz::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 20px;
    background: var(--azul-medio);
}

.diagrama-v2-filhos {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1.5px solid var(--azul-medio);
    position: relative;
}

.diagrama-v2-filhos::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 20px;
    background: var(--azul-medio);
}

.diagrama-v2-filho {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--azul-borda);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.85;
    position: relative;
}

.diagrama-v2-filho::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 20px;
    background: var(--azul-medio);
}

/* ---- RECURSO VISUAL ---- */
.recurso-visual {
    margin: 28px 0 8px;
    text-align: center;
}

.recurso-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--raio-medio);
}

.recurso-visual-label {
    text-align: center;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.70rem;
    color: #bbb;
    margin: 8px 0 24px;
}

/* ---- FLUXOGRAMA VERTICAL (etapas de concurso) ---- */
.fluxograma {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 28px 0;
}

.fluxo-bloco {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border: 2px solid var(--color-navy-deep);
    border-radius: 10px;
    padding: 16px 20px;
    position: relative;
    box-shadow: 0 4px 14px rgba(19, 27, 36, 0.08);
}

.fluxo-bloco .etapa {
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-coral);
    display: block;
    margin-bottom: 4px;
}

.fluxo-bloco .titulo {
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto-azul-escuro);
    margin-bottom: 5px;
}

.fluxo-bloco .detalhe {
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.fluxo-bloco.eliminatoria {
    border-color: var(--color-coral);
    background: #FFF8F5;
}

.fluxo-bloco.aprovado {
    border-color: var(--destaque-cinza-verdeado);
    background: var(--marca-verde-claro);
}

.fluxo-seta,
.fluxograma-seta {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid var(--color-navy-deep);
    margin: 6px 0;
}

/* ---- NUM PAGINA / QUEBRA (ocultos na tela) ---- */
.pg-num {
    display: none;
}

.page-break {
    display: none;
}

/* ================================================================
   LISTA-SETA — VARIANTES DE COR (novoestilo sync)
================================================================ */
.lista-seta.azul li::before {
    color: #4a7fc1;
}

.lista-seta.verde li::before {
    color: #2E7D32;
}

.lista-seta.cinza li::before {
    color: #6b7a8d;
}

.lista-seta.roxo li::before {
    color: #6a3fa0;
}

@media print {
    .lista-seta.azul li::before {
        color: #4a7fc1 !important;
    }

    .lista-seta.verde li::before {
        color: #2E7D32 !important;
    }

    .lista-seta.cinza li::before {
        color: #6b7a8d !important;
    }

    .lista-seta.roxo li::before {
        color: #6a3fa0 !important;
    }
}

/* ================================================================
   GRUPO-ITEM — VARIANTES DE COR (novoestilo sync)
================================================================ */
.grupo-item.azul .grupo-num {
    background: #4a7fc1;
}

.grupo-item.verde .grupo-num {
    background: #5a9e72;
}

.grupo-item.cinza .grupo-num {
    background: #6b7a8d;
}

.grupo-item.roxo .grupo-num {
    background: #7a6caa;
}

.grupo-item.laranja .grupo-num {
    background: #d4783a;
}

@media print {
    .grupo-item.azul .grupo-num {
        background-color: #4a7fc1 !important;
    }

    .grupo-item.verde .grupo-num {
        background-color: #5a9e72 !important;
    }

    .grupo-item.cinza .grupo-num {
        background-color: #6b7a8d !important;
    }

    .grupo-item.roxo .grupo-num {
        background-color: #7a6caa !important;
    }

    .grupo-item.laranja .grupo-num {
        background-color: #d4783a !important;
    }
}

/* ================================================================
   LISTA-NUM — PRINT (novoestilo sync)
================================================================ */
@media print {
    table.lista-num tbody td:first-child::before {
        background-color: var(--accent) !important;
    }
    table.lista-num.azul tbody td:first-child::before {
        background-color: #4a7fc1 !important;
    }
    table.lista-num.verde tbody td:first-child::before {
        background-color: #2E7D32 !important;
    }
    table.lista-num.cinza tbody td:first-child::before {
        background-color: #6b7a8d !important;
    }
    table.lista-num.roxo tbody td:first-child::before {
        background-color: #6a3fa0 !important;
    }
}

/* ================================================================
   DISPOSITIVO — PRINT PARA VARIANTES DE COR (novoestilo sync)
================================================================ */
@media print {
    .dispositivo.azul::before {
        background-color: #4a7fc1 !important;
    }

    .dispositivo.roxo::before {
        background-color: #6a3fa0 !important;
    }

    .dispositivo.cinza::before {
        background-color: #6b7a8d !important;
    }

    .dispositivo.navy::before {
        background-color: #013169 !important;
    }
}

/* ================================================================
   CASOS GRID — VARIANTES NUMERADAS (novoestilo sync)
================================================================ */
.casos-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

.casos-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 16px 0 24px;
}

/* ================================================================
   LITERALIDADE (novoestilo sync — label via atributo data-art="Art. X")
================================================================ */
.literalidade {
    margin: 28px 0;
    padding: 18px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    position: relative;
}

.literalidade::before {
    content: attr(data-art);
    position: absolute;
    top: -12px;
    left: 18px;
    background: #013169;
    color: #fff;
    padding: 3px 11px;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.literalidade-artigo {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #000;
    text-align: justify;
    line-height: 1.85;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ccc;
}

.literalidade-artigo:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ================================================================
   COLGROUP — largura de coluna em tabelas (usar dentro de <colgroup>)
   Funciona em qualquer .tabela-grid-N e .lista-num.
================================================================ */
col.col-5  { width: 5%; }
col.col-10 { width: 10%; }
col.col-12 { width: 12%; }
col.col-15 { width: 15%; }
col.col-18 { width: 18%; }
col.col-20 { width: 20%; }
col.col-22 { width: 22%; }
col.col-25 { width: 25%; }
col.col-28 { width: 28%; }
col.col-30 { width: 30%; }
col.col-33 { width: 33.33%; }
col.col-35 { width: 35%; }
col.col-40 { width: 40%; }
col.col-45 { width: 45%; }
col.col-50 { width: 50%; }
col.col-55 { width: 55%; }
col.col-60 { width: 60%; }
col.col-65 { width: 65%; }
col.col-66 { width: 66.66%; }
col.col-70 { width: 70%; }
col.col-75 { width: 75%; }
col.col-80 { width: 80%; }
col.col-85 { width: 85%; }
col.col-90 { width: 90%; }
col.col-95 { width: 95%; }

/* Tabela com primeira coluna numérica centralizada */
[class*="tabela-grid-"].num-center thead tr th:first-child,
[class*="tabela-grid-"].num-center tbody tr td:first-child {
    text-align: center;
}

/* ================================================================
   TABELA GRID — 2 A 6 COLUNAS (novoestilo sync)
================================================================ */
.tabela-grid-2,
.tabela-grid-3,
.tabela-grid-4,
.tabela-grid-5,
.tabela-grid-6 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 14px 0;
    border: 1px solid #c5d3e8;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 1rem;
    line-height: 1.85;
    table-layout: fixed;
}

.tabela-grid-2 th,
.tabela-grid-2 td,
.tabela-grid-3 th,
.tabela-grid-3 td,
.tabela-grid-4 th,
.tabela-grid-4 td,
.tabela-grid-5 th,
.tabela-grid-5 td,
.tabela-grid-6 th,
.tabela-grid-6 td {
    border-bottom: 1px solid #dde5f0;
    border-right: 1px solid #dde5f0;
    padding: 0.625em 0.875em;
    vertical-align: middle;
    line-height: 1.85;
    font-size: 1rem;
    color: var(--text-main);
    text-align: left;
}

.tabela-grid-2 th:last-child,
.tabela-grid-2 td:last-child,
.tabela-grid-3 th:last-child,
.tabela-grid-3 td:last-child,
.tabela-grid-4 th:last-child,
.tabela-grid-4 td:last-child,
.tabela-grid-5 th:last-child,
.tabela-grid-5 td:last-child,
.tabela-grid-6 th:last-child,
.tabela-grid-6 td:last-child {
    border-right: none;
}

.tabela-grid-2 tr:last-child td,
.tabela-grid-3 tr:last-child td,
.tabela-grid-4 tr:last-child td,
.tabela-grid-5 tr:last-child td,
.tabela-grid-6 tr:last-child td {
    border-bottom: none;
}

.tabela-grid-2 tbody td,
.tabela-grid-3 tbody td,
.tabela-grid-4 tbody td,
.tabela-grid-5 tbody td,
.tabela-grid-6 tbody td {
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 1rem;
    line-height: 1.85;
    vertical-align: middle;
    padding: 0.625em 0.875em;
}

.tabela-grid-2 thead tr th,
.tabela-grid-2 thead tr td,
.tabela-grid-3 thead tr th,
.tabela-grid-3 thead tr td,
.tabela-grid-4 thead tr th,
.tabela-grid-4 thead tr td,
.tabela-grid-5 thead tr th,
.tabela-grid-5 thead tr td,
.tabela-grid-6 thead tr th,
.tabela-grid-6 thead tr td {
    background: #dce8f5;
    color: #131B24;
    font-weight: 700;
    padding: 0.625em 0.875em;
    vertical-align: middle;
    line-height: 1.85;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tabela-grid-2 tbody tr:nth-child(odd) td,
.tabela-grid-3 tbody tr:nth-child(odd) td,
.tabela-grid-4 tbody tr:nth-child(odd) td,
.tabela-grid-5 tbody tr:nth-child(odd) td,
.tabela-grid-6 tbody tr:nth-child(odd) td {
    background: #f5f7fa;
}

/* Variante azul */
[class*="tabela-grid-"].azul thead th,
[class*="tabela-grid-"].azul thead td {
    background: #1a5fa8 !important;
    color: #fff !important;
}

/* Variante verde */
[class*="tabela-grid-"].verde thead th,
[class*="tabela-grid-"].verde thead td {
    background: #2E7D32 !important;
    color: #fff !important;
}

/* Variante laranja */
[class*="tabela-grid-"].laranja thead th,
[class*="tabela-grid-"].laranja thead td {
    background: #E25E42 !important;
    color: #fff !important;
}

/* ---- FLUXO HORIZONTAL (cards lado a lado com setas) ---- */
.fluxo-horizontal {
    display: flex;
    align-items: stretch;
    gap: 22px;
    margin: 24px 0 28px;
    flex-wrap: nowrap;
}

.fluxo-passo {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 12px 12px;
    background: #f5f8fb;
    border: 1px solid #d8e2ec;
    border-radius: 6px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fluxo-passo+.fluxo-passo::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #4a7fc1;
    transform: translateY(-50%);
}

.fluxo-passo+.fluxo-passo::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 7px solid #4a7fc1;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transform: translateY(-50%);
}

.fluxo-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #1F3864;
    color: #fff;
    border-radius: 50%;
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fluxo-titulo {
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: #1F3864;
    margin-bottom: 4px;
    line-height: 1.85;
}

.fluxo-desc {
    font-family: var(--fonte-corpo, 'Roboto', sans-serif);
    font-size: 0.75rem;
    color: #4d6275;
    line-height: 1.85;
}

/* Variante parada (stop) */
.fluxo-passo.fluxo-stop {
    background: #fff4ec;
    border-color: #f5c8a8;
}

.fluxo-passo.fluxo-stop .fluxo-numero {
    background: #d4621e;
}

.fluxo-passo.fluxo-stop .fluxo-titulo {
    color: #a04812;
}

.fluxo-passo.fluxo-stop+.fluxo-passo::before,
.fluxo-passo+.fluxo-passo.fluxo-stop::before {
    background: #d4621e;
}

.fluxo-passo.fluxo-stop+.fluxo-passo::after,
.fluxo-passo+.fluxo-passo.fluxo-stop::after {
    border-left-color: #d4621e;
}

/* ================================================================
   DARK MODE
================================================================ */

/* Paleta base: navy profundo + cards navy médio + texto platina */
[data-theme="dark"] {
    --bg-site: #0F172A;
    --bg-card: #1E293B;
    --bg-page: #0F172A;
    --bg-stripe: #162032;
    --text-main: #D1D9E6;
    --text-muted: #94A3B8;
    --border-color: #2D3F55;
}

/* ── Base ── */
[data-theme="dark"] body {
    background: #0F172A;
    color: #D1D9E6;
}

[data-theme="dark"] .article-page {
    background: #1E293B;
}

[data-theme="dark"] .blog-content {
    color: #D1D9E6;
}

[data-theme="dark"] .blog-content p {
    color: #D1D9E6;
}

[data-theme="dark"] .blog-content strong {
    color: #E2E8F0;
}

[data-theme="dark"] .blog-content h1 {
    color: #93C5FD;
}

[data-theme="dark"] .blog-content h2,
[data-theme="dark"] .blog-content h3 {
    color: #93C5FD;
}

/* ── Indice ── */
[data-theme="dark"] .indice-box {
    background: #162032;
    border-color: #2D3F55;
}

[data-theme="dark"] .indice-box a {
    color: #93C5FD;
}

[data-theme="dark"] .indice-box strong {
    color: #93C5FD;
}

[data-theme="dark"] .indice-box ol li {
    color: #D1D9E6;
}

[data-theme="dark"] .indice-box ol li::marker {
    color: #93C5FD;
}

/* ── Catalogo de cursos (Escolha seu concurso) ── */
[data-theme="dark"] .catalog-section {
    background: #0F172A;
    border-top-color: #2D3F55;
}

[data-theme="dark"] .hero-eyebrow {
    color: #94A3B8;
}

[data-theme="dark"] .hero-title {
    color: #E2E8F0;
}

[data-theme="dark"] .tabs-list {
    border-bottom-color: #2D3F55;
}

[data-theme="dark"] .tab-trigger {
    color: #94A3B8;
}

[data-theme="dark"] .tab-trigger:hover,
[data-theme="dark"] .tab-trigger:focus {
    color: #E2E8F0;
    background: #1E293B;
}

[data-theme="dark"] .tab-trigger[aria-selected="true"] {
    color: #93C5FD;
    background: #1E293B;
    border-top-color: #2D3F55;
    border-left-color: #2D3F55;
    border-right-color: #2D3F55;
}

/* ── Alertas ── */
[data-theme="dark"] .alert-box {
    background: #1E293B;
    border-color: #2D3F55;
    color: #E2E8F0;
}

[data-theme="dark"] .alert-box.laranja {
    background: #2a1f18 !important;
    border-color: #7a4020 !important;
    color: #E2E8F0;
}

[data-theme="dark"] .alert-box.verde {
    background: #162a1e !important;
    border-color: #2e5a34 !important;
    color: #E2E8F0;
}

[data-theme="dark"] .alert-box.azul {
    background: #132340 !important;
    border-color: #4a7fc1 !important;
    color: #E2E8F0;
}

[data-theme="dark"] .alerta {
    background: #2a1a0f !important;
    color: #E2E8F0;
}

[data-theme="dark"] .atencao {
    background: #2a2010 !important;
    color: #E2E8F0;
}

[data-theme="dark"] .blog-content mark {
    background-color: #5a3a1a;
    color: #fde68a;
}

[data-theme="dark"] .sumula {
    background: #2a2510 !important;
}

[data-theme="dark"] .nota-prof {
    background: #1e1535 !important;
    border-color: #3d2560 !important;
    color: #d8c4f5;
}

[data-theme="dark"] .nota-prof strong {
    color: #c4b5fd;
}

[data-theme="dark"] .juris {
    background: #0f1a2a !important;
}

/* ── Listas ── */
[data-theme="dark"] .lista,
[data-theme="dark"] .lista-seta {
    background: #162032;
}

[data-theme="dark"] .lista li,
[data-theme="dark"] .lista-seta li {
    color: #D1D9E6;
    border-bottom-color: #2D3F55;
}

[data-theme="dark"] .lista li strong,
[data-theme="dark"] .lista-seta li strong {
    color: #E2E8F0;
}

[data-theme="dark"] table.lista-num {
    border-color: #2D3F55;
}
[data-theme="dark"] table.lista-num tbody td {
    border-color: #2D3F55;
    color: #D1D9E6;
}
[data-theme="dark"] table.lista-num tbody td:nth-child(2) {
    color: #E8EFF7;
}
[data-theme="dark"] table.lista-num tbody td:nth-child(3) {
    color: #C8D3E0;
}
[data-theme="dark"] table.lista-num tbody tr:nth-child(odd) td {
    background: #1a2535;
}

/* ── Section-title ── */
[data-theme="dark"] .section-title.level-2 {
    background: #1a2a42 !important;
    color: #93C5FD !important;
}

[data-theme="dark"] .section-title.level-3 {
    color: #D1D9E6 !important;
}

[data-theme="dark"] .section-title.level-4 {
    color: #94A3B8 !important;
}

/* ── Dispositivo legal ── */
[data-theme="dark"] .dispositivo {
    background: #1E293B !important;
}

[data-theme="dark"] .dispositivo-artigo {
    color: #D1D9E6;
}

[data-theme="dark"] .dispositivo-chave {
    color: #4ade80;
}

[data-theme="dark"] .dispositivo.azul .dispositivo-chave {
    color: #93C5FD;
}

[data-theme="dark"] .dispositivo.cinza .dispositivo-chave {
    color: #94A3B8;
}

[data-theme="dark"] .dispositivo.roxo .dispositivo-chave {
    color: #c4b5fd;
}

[data-theme="dark"] .dispositivo.navy .dispositivo-chave {
    color: #93C5FD;
}

/* ── Literalidade ── */
[data-theme="dark"] .literalidade {
    background: #162a1e;
    border-color: #2e5a34;
}

[data-theme="dark"] .literalidade::before {
    background: #2e5a34;
    color: #c8f0d0;
}

[data-theme="dark"] .literalidade-artigo {
    color: #D1D9E6;
}

[data-theme="dark"] .Litelidade-bloco {
    background: #162a1e;
    border-color: #2e5a34;
}

[data-theme="dark"] .Litelidade-artigo {
    color: #D1D9E6;
}

/* ── Tabelas genéricas (blog-content) ── */
[data-theme="dark"] .blog-content table {
    border-color: #2D3F55;
}

[data-theme="dark"] .blog-content th,
[data-theme="dark"] .blog-content td {
    border-color: #2D3F55;
    color: #D1D9E6;
}

[data-theme="dark"] .blog-content table tr:first-child {
    background: #1a2a42;
}

[data-theme="dark"] .blog-content table tr:first-child th,
[data-theme="dark"] .blog-content table tr:first-child td {
    color: #93C5FD;
}

[data-theme="dark"] .blog-content table tr:nth-child(odd):not(:first-child) {
    background: #162032;
}

/* ── Tabela FG ── */
[data-theme="dark"] .tabela-fg {
    border-color: #2D3F55;
}

[data-theme="dark"] .tabela-fg td {
    background: #1E293B !important;
    color: #D1D9E6;
    border-color: #2D3F55;
}

[data-theme="dark"] .tabela-fg tr:nth-child(odd) td {
    background: #162032 !important;
}

[data-theme="dark"] .tabela-fg thead td {
    background: #1a2a42 !important;
    color: #93C5FD;
}

[data-theme="dark"] .tabela-fg tbody td:first-child {
    background: #1a2535 !important;
    color: #93C5FD;
}

/* ── Tabela Rev ── */
[data-theme="dark"] .tabela-rev {
    border-color: #2D3F55;
}

[data-theme="dark"] .tabela-rev th {
    background: #1a2a42;
    color: #93C5FD;
    border-color: #2D3F55;
}

[data-theme="dark"] .tabela-rev td {
    background: #1E293B;
    color: #D1D9E6;
    border-color: #2D3F55;
}

[data-theme="dark"] .tabela-rev tr:nth-child(odd):not(:first-child) td {
    background: #162032;
}

/* ── Tabela Comparativa ── */
[data-theme="dark"] .tabela-comparativa {
    border-color: #2D3F55;
}

[data-theme="dark"] .tabela-comparativa th {
    background: #1a2a42 !important;
    color: #93C5FD;
}

[data-theme="dark"] .tabela-comparativa td {
    border-color: #2D3F55;
    color: #D1D9E6;
}

[data-theme="dark"] .tabela-comparativa td:first-child {
    color: #93C5FD;
}

[data-theme="dark"] .tabela-comparativa td:nth-child(2) {
    background: #162032;
}

[data-theme="dark"] .tabela-comparativa td:nth-child(3) {
    background: #1E293B;
}

/* ── Tabela-grid ── */
[data-theme="dark"] [class*="tabela-grid-"] {
    border-color: #2D3F55;
}

[data-theme="dark"] [class*="tabela-grid-"] th,
[data-theme="dark"] [class*="tabela-grid-"] td {
    border-color: #2D3F55;
    color: #D1D9E6;
}

[data-theme="dark"] [class*="tabela-grid-"] thead th,
[data-theme="dark"] [class*="tabela-grid-"] thead td {
    background: #1a2a42;
    color: #93C5FD;
}

[data-theme="dark"] [class*="tabela-grid-"] tbody tr:nth-child(odd) td {
    background: #162032;
}

[data-theme="dark"] [class*="tabela-grid-"].azul thead th,
[data-theme="dark"] [class*="tabela-grid-"].azul thead td {
    background: #0f3b6e;
}

[data-theme="dark"] [class*="tabela-grid-"].verde thead th,
[data-theme="dark"] [class*="tabela-grid-"].verde thead td {
    background: #1a4d1e;
}

[data-theme="dark"] [class*="tabela-grid-"].laranja thead th,
[data-theme="dark"] [class*="tabela-grid-"].laranja thead td {
    background: #7a2e1a;
}

/* ── Fichas ── */
[data-theme="dark"] .ficha,
[data-theme="dark"] .ficha-azul,
[data-theme="dark"] .ficha-verde,
[data-theme="dark"] .ficha-laranja,
[data-theme="dark"] .ficha-cinza,
[data-theme="dark"] .ficha-roxo,
[data-theme="dark"] .ficha-escura {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .ficha-titulo {
    color: #93C5FD;
}

/* ── Questão de prova ── */
[data-theme="dark"] .questao-prova {
    background: #162032;
    border-color: #2D3F55;
}

[data-theme="dark"] .questao-enunciado {
    color: #E2E8F0;
}

[data-theme="dark"] .alternativas li {
    color: #D1D9E6;
}

[data-theme="dark"] .inteiro-teor {
    background: #162032;
    border-left-color: #2D3F55;
    color: #D1D9E6;
}

/* ── Qrev ── */
[data-theme="dark"] .qrev {
    background: #1E293B;
    border-color: #2D3F55;
    color: #D1D9E6;
}

/* ── Mnem ── */
[data-theme="dark"] .mnem {
    background: #1a2a42;
    border-color: #2D3F55;
    color: #E2E8F0;
}

/* ── Casos grid ── */
[data-theme="dark"] .caso-card {
    background: #1E293B;
    border-color: #2D3F55;
    color: #D1D9E6;
}

/* ── Exemplo grid ── */
[data-theme="dark"] .exemplo-direto .exemplo-body {
    background: #121e2e;
}

[data-theme="dark"] .exemplo-indireto .exemplo-body {
    background: #122016;
}

[data-theme="dark"] .exemplo-body {
    color: #D1D9E6;
}

[data-theme="dark"] .exemplo-impostos {
    color: #93C5FD;
    border-bottom-color: #2D3F55;
}

[data-theme="dark"] .exemplo-desc {
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.04);
}

/* ── Sumário ── */
[data-theme="dark"] .sumario-container {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .sumario-list a {
    color: #D1D9E6;
    border-bottom-color: #2D3F55;
}

[data-theme="dark"] .sumario-list a:hover {
    background: #162032;
}

[data-theme="dark"] .sumario-item-h1 a {
    background: #1a2438;
    color: #93C5FD;
}

/* ── Grupos processos ── */
[data-theme="dark"] .grupo-item {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .grupo-titulo {
    color: #93C5FD;
}

[data-theme="dark"] .grupo-body p {
    color: #D1D9E6;
}

/* ── Fluxo node (simples) ── */
[data-theme="dark"] .fluxo-node {
    background: #1E293B;
    border-color: #2D3F55;
    color: #D1D9E6;
}

[data-theme="dark"] .fluxo-node small {
    color: #94A3B8;
}

/* ── Fluxo horizontal (cards) ── */
[data-theme="dark"] .fluxo-passo {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .fluxo-numero {
    background: #2D4A8A;
}

[data-theme="dark"] .fluxo-titulo {
    color: #93C5FD;
}

[data-theme="dark"] .fluxo-desc {
    color: #94A3B8;
}

[data-theme="dark"] .fluxo-passo.fluxo-stop {
    background: #2a1f18;
    border-color: #5c3a25;
}

[data-theme="dark"] .fluxo-passo.fluxo-stop .fluxo-numero {
    background: #b84e18;
}

[data-theme="dark"] .fluxo-passo.fluxo-stop .fluxo-titulo {
    color: #f5a070;
}

[data-theme="dark"] .fluxo-node.destaque {
    background: #1a3024;
    border-color: #2E7D32;
    color: #4ade80;
}

[data-theme="dark"] .fluxo-seta {
    color: #4a5e72;
}

/* ── Fluxo vertical (fluxograma) ── */
[data-theme="dark"] .fluxo-bloco {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .fluxo-bloco .titulo {
    color: #93C5FD;
}

[data-theme="dark"] .fluxo-bloco .detalhe {
    color: #94A3B8;
}

/* ── Linha do tempo ── */
[data-theme="dark"] .lt-item {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .lt-item:last-child {
    border-right-color: #2D3F55;
}

[data-theme="dark"] .lt-num {
    background: #2D4A8A;
}

[data-theme="dark"] .lt-nome {
    color: #E2E8F0;
}

[data-theme="dark"] .lt-doc {
    color: #94A3B8;
}

/* ── Timeline ── */
[data-theme="dark"] .timeline-item {
    background: #1E293B;
    border-left-color: #4a7fc1;
}

[data-theme="dark"] .timeline-item .data {
    color: #93C5FD;
}

[data-theme="dark"] .timeline-item .descricao {
    color: #E2E8F0;
}

[data-theme="dark"] .timeline-item .obs {
    color: #94A3B8;
}

/* ── Diagramas ── */
[data-theme="dark"] .diagrama-arvore-ramo {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .diagrama-arvore-item {
    color: #D1D9E6;
}

[data-theme="dark"] .diagrama-item {
    color: #D1D9E6;
    border-bottom-color: #2D3F55;
}

[data-theme="dark"] .diagrama-titulo .nome {
    color: #93C5FD;
}

[data-theme="dark"] .diagrama-1n-raiz,
[data-theme="dark"] .diagrama-1n-bloco {
    border-color: #2D3F55;
    color: #D1D9E6;
}

[data-theme="dark"] .diagrama-1n-raiz .nome,
[data-theme="dark"] .diagrama-1n-bloco strong {
    color: #93C5FD;
}

[data-theme="dark"] .diagrama-1n-raiz .ref-legal {
    color: #64748B;
}

/* ── Julgado block ── */
[data-theme="dark"] .julgado-block {
    background: #1E293B;
    border-color: #2D3F55;
}

[data-theme="dark"] .julgado-meta {
    color: #94A3B8;
}

/* ── Misc ── */
[data-theme="dark"] .obs {
    color: #94A3B8;
}

[data-theme="dark"] .pill {
    background: #1a2a42;
    color: #93C5FD;
    border-color: #2D3F55;
}

/* ── Widget zoom ── */
[data-theme="dark"] .zoom-controls {
    background: rgba(15, 23, 42, 0.97);
    border-color: #2D3F55;
}

[data-theme="dark"] .zoom-btn {
    background: #1E293B;
    border-color: #2D3F55;
    color: #D1D9E6;
}

[data-theme="dark"] .zoom-btn:hover {
    background: #1a2a42;
    color: #93C5FD;
}

/* ================================================================
   RESPONSIVO
================================================================ */

/* ---- 1150px: sidebar some, coluna única ---- */
@media screen and (max-width: 1150px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

/* ---- 900px: hamburger, menu mobile ---- */
@media screen and (max-width: 900px) {
    .zoom-controls {
        top: 14px;
        right: 20px;
        transform: none;
        opacity: 0.05;
        padding: 5px 4px;
        gap: 3px;
        border-radius: 8px;
    }

    .zoom-controls .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 5px;
    }

    .zoom-controls .zoom-sep {
        width: 16px;
        margin: 1px auto;
    }

    .fluxo-horizontal {
        flex-wrap: wrap;
        gap: 12px;
    }

    .fluxo-passo {
        flex: 1 1 calc(50% - 12px);
    }

    .fluxo-passo+.fluxo-passo::before,
    .fluxo-passo+.fluxo-passo::after {
        display: none;
    }

    .zoom-controls:active,
    .zoom-controls:focus-within {
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-hide-btn {
        display: none;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--color-navy-deep);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 99;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-link {
        display: block;
        padding: 14px 5vw;
        font-size: 13px;
    }

    .post-card {
        flex-direction: column;
    }

    .post-thumbnail,
    .post-content {
        width: 100%;
    }

    .post-thumbnail {
        height: 200px;
    }
}

/* ---- 768px: artigo ajustes ---- */
@media screen and (max-width: 768px) {
    .article-header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .article-logo {
        width: 80px;
        margin-bottom: 15px;
    }

    .article-title {
        font-size: 26px;
        line-height: 1.85;
    }

    .blog-content {
        font-size: 17px;
        line-height: 1.85;
    }

    .blog-content h1 {
        font-size: 24px;
        line-height: 1.85;
    }

    .blog-content h2 {
        font-size: 21px;
        margin-top: 32px;
    }

    .blog-content h3 {
        font-size: 17px;
    }

    .article-page {
        padding: 20px;
    }

    .cta-artigo {
        padding: 24px 20px;
    }
}

/* ---- 640px: grids de 1 coluna ---- */
@media screen and (max-width: 640px) {
    .casos-grid {
        grid-template-columns: 1fr;
    }

    .exemplo-grid {
        grid-template-columns: 1fr;
    }

    .fichas-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 700px: diagramas empilham ---- */
@media screen and (max-width: 700px) {
    .diagrama-3n {
        flex-direction: column;
    }

    .diagrama-3n-raiz {
        flex: none;
        width: 100%;
    }

    .diagrama-3n-bracket {
        display: none;
    }

    .diagrama-3n-grupos {
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
        border-top: 1.5px solid var(--azul-medio);
    }

    .diagrama-3n-grupo {
        flex-direction: column;
    }

    .diagrama-3n-ramo::before {
        display: none;
    }

    .diagrama-3n-mid {
        display: none;
    }

    .diagrama-3n-ramo,
    .diagrama-3n-folha {
        flex: none;
        width: 100%;
    }

    .diagrama-4n {
        flex-direction: column;
    }

    .diagrama-4n-raiz {
        flex: none;
        width: 100%;
    }

    .diagrama-4n-bracket {
        display: none;
    }

    .diagrama-4n-grupos {
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
        border-top: 1.5px solid var(--azul-medio);
    }

    .diagrama-4n-grupo {
        flex-direction: column;
        gap: 6px;
    }

    .diagrama-4n-ramo::before {
        display: none;
    }

    .diagrama-4n-mid {
        display: none;
    }

    .diagrama-4n-ramo,
    .diagrama-4n-nivel3,
    .diagrama-4n-folha {
        flex: none;
        width: 100%;
    }

    .diagrama-v2-filhos {
        flex-direction: column;
    }

    .diagrama-v2-filho {
        width: 100%;
    }
}

/* ---- 480px: mobile pequeno — cinza SEMPRE aparece ---- */
@media screen and (max-width: 480px) {
    .container {
        /* Padding lateral garante que o fundo cinza do body fique visivel */
        padding: 0 12px;
        margin-top: 76px;
    }

    .article-page {
        padding: 16px 14px;
        border-radius: 8px;
    }

    .article-title {
        font-size: 22px;
        line-height: 1.85;
    }

    .blog-content {
        font-size: 15.5px;
        line-height: 1.85;
    }

    .blog-content p {
        margin-bottom: 16px;
    }

    .blog-content h1 {
        font-size: 21px;
        line-height: 1.85;
        margin-top: 16px;
        margin-bottom: 14px;
    }

    .blog-content h2 {
        font-size: 18px;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .blog-content h3 {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .indice-box {
        padding: 14px;
        margin-bottom: 24px;
    }

    .indice-box ol li {
        font-size: 13px;
        padding: 3px 0;
    }

    .alert-box {
        padding: 14px;
        margin: 18px 0;
    }

    .alert-box>div {
        font-size: 15px !important;
        line-height: 1.85 !important;
    }

    .alert-box.azul {
        background: #f0f5fc !important;
        border-color: #c5d3f5 !important;
    }

    .timeline {
        padding-left: 24px;
        margin: 18px 0 24px 0;
    }

    .timeline-item .data {
        font-size: 0.82rem;
    }

    .timeline-item .descricao {
        font-size: 0.9rem;
    }

    .timeline-item .obs {
        font-size: 0.85rem;
    }

    .social-share {
        gap: 8px;
        margin-bottom: 20px;
    }

    .social-share a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .blog-content table {
        font-size: 0.85rem;
    }

    .blog-content th,
    .blog-content td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .cta-artigo {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .cta-artigo strong {
        font-size: 18px;
    }

    .cta-artigo p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .cta-artigo a {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* ================================================================
   PRINT
================================================================ */
@media print {
    @page {
        margin: 1.6cm 1.6cm 2.5cm 1.6cm;
    }

    body {
        padding: 0 !important;
        font-size: 11.5px;
        line-height: 1.85;
        zoom: 0.85;
    }

    * {
        line-height: 1.85 !important;
    }

    .container {
        max-width: 100%;
    }

    .print-header {
        display: table-header-group;
        width: 100%;
    }

    .print-footer {
        display: table-footer-group;
        width: 100%;
    }

    .layout-table thead td {
        padding-bottom: 10px;
    }

    .layout-table tfoot td {
        padding-top: 10px;
        border-top: 1px solid #EAEAEA;
        font-size: 0.8rem;
        color: #666;
        text-align: right;
    }

    .page-break {
        display: block;
        page-break-after: always;
        break-after: page;
        height: 0;
    }

    .section-title {
        font-size: 1rem;
        padding: 5px 8px;
        margin: 12px 0 6px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: linear-gradient(90deg, #131B24, #2C3E50) !important;
        color: #fff !important;
        break-after: avoid;
    }

    .section-title.level-3 {
        background: transparent !important;
        color: #131B24 !important;
    }

    .section-title.level-4 {
        background: transparent !important;
        border-left: 2px solid #E25E42 !important;
        color: #131B24 !important;
        font-size: 0.9em;
    }

    .section-title.quebrar-pagina {
        break-before: page;
        page-break-before: always;
    }

    .dispositivo {
        border: 1px solid #e0e0e0 !important;
        background: #fff !important;
        padding: 14px 18px;
        margin: 16px 0 12px;
    }

    .dispositivo::before {
        background: #2E7D32 !important;
        color: #fff !important;
    }

    .dispositivo.azul::before {
        background-color: #4a7fc1 !important;
    }

    .dispositivo.roxo::before {
        background-color: #6a3fa0 !important;
    }

    .dispositivo.cinza::before {
        background-color: #6b7a8d !important;
    }

    .dispositivo.navy::before {
        background-color: #013169 !important;
    }

    .alerta {
        background: #fff !important;
        border: 1px solid #f5c6b8 !important;
        padding: 18px 16px 14px;
        margin: 10px 0 20px;
    }

    .alerta .alerta-label {
        background: #E25E42 !important;
        color: #fff !important;
    }

    .sumula {
        background: #fff !important;
        border: 1px solid #f0d060 !important;
        padding: 18px 16px 14px;
        margin: 28px 0 20px;
        font-size: 0.85rem;
    }

    .nota-prof {
        background: #f9f5ff !important;
        border: 1px solid #d5c3e0 !important;
        padding: 18px 18px 14px;
        margin: 28px 0 20px;
    }

    .nota-prof::before {
        background: #6a3fa0 !important;
        color: #fff !important;
    }

    .juris {
        background: #fff !important;
        border: 1px solid #c5d3f5 !important;
        padding: 18px 16px 14px;
        margin: 28px 0 20px;
    }

    .atencao {
        background: #fff !important;
        border: 1px solid #ffc77d !important;
        padding: 18px 16px 14px;
        margin: 28px 0 20px;
    }

    .atencao-label {
        background: #ff9800 !important;
        color: #fff !important;
    }

    .lista li::before {
        color: var(--accent) !important;
    }

    table.lista-num tbody td:first-child::before {
        background-color: var(--accent) !important;
        color: #fff !important;
    }

    table.lista-num.azul tbody td:first-child::before {
        background-color: #4a7fc1 !important;
    }

    table.lista-num.verde tbody td:first-child::before {
        background-color: #2E7D32 !important;
    }

    table.lista-num.cinza tbody td:first-child::before {
        background-color: #6b7a8d !important;
    }

    table.lista-num.roxo tbody td:first-child::before {
        background-color: #6a3fa0 !important;
    }

    ol.lista-num li::before {
        background-color: var(--accent) !important;
        color: #fff !important;
    }

    ol.lista-num.azul li::before {
        background-color: #4a7fc1 !important;
    }

    ol.lista-num.verde li::before {
        background-color: #2E7D32 !important;
    }

    ol.lista-num.cinza li::before {
        background-color: #6b7a8d !important;
    }

    ol.lista-num.roxo li::before {
        background-color: #6a3fa0 !important;
    }

    .img-bloco img {
        max-height: 230px;
        box-shadow: none;
    }

    .casos-grid {
        gap: 8px;
        margin: 10px 0;
    }

    .caso-card {
        padding: 8px;
        font-size: 0.85rem;
    }

    .exemplo-grid {
        break-inside: avoid;
        gap: 10px;
        margin: 12px 0 16px;
    }

    .exemplo-direto .exemplo-header {
        background: linear-gradient(135deg, #0D47A1, #1976D2) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .exemplo-indireto .exemplo-header {
        background: linear-gradient(135deg, #1B5E20, #388E3C) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .exemplo-direto .exemplo-body {
        background: #f7faff !important;
    }

    .exemplo-indireto .exemplo-body {
        background: #f5fbf5 !important;
    }

    .fluxo-node.destaque {
        background: #e8f5e9 !important;
        border-color: #2E7D32 !important;
    }

    .table-wrap {
        overflow: visible !important;
        margin: 8px 0 12px;
    }

    .blog-content table {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .blog-content table td,
    .blog-content table th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-bottom: 1px solid #c5d3e8 !important;
        border-right: 1px solid #c5d3e8 !important;
        padding: 8px 12px;
        font-size: 1rem;
        line-height: 1.85;
    }

    .blog-content table tr:first-child {
        background-color: #dce8f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .blog-content table tr:nth-child(odd):not(:first-child) {
        background-color: #f5f7fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tabela-fg td {
        font-size: 0.85rem;
        padding: 7px 10px;
        vertical-align: middle !important;
    }

    .fichas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ficha {
        break-inside: avoid;
    }

    .tabela-rev th {
        background: #dce8f5 !important;
        color: #131B24 !important;
    }

    .tabela-rev tr:nth-child(odd):not(:first-child) td {
        background: #f5f7fa !important;
    }

    .mnem {
        background: #f0f4fc !important;
        border-left: 4px solid #131B24 !important;
    }

    .qrev {
        break-inside: avoid;
    }

    .questao-prova {
        background: #f9fafc !important;
        border-top: 4px solid #1a2a5e !important;
        break-inside: avoid;
        padding: 10px 14px;
        margin: 10px 0 16px;
    }

    .questao-label {
        background: #1a2a5e !important;
        color: #fff !important;
    }

    .alternativas li.alt-correta {
        background: #e8f5e9 !important;
        color: #1b5e20 !important;
    }

    .alternativas li .alt-letra {
        color: #E25E42 !important;
    }

    .alternativas li.alt-correta .alt-letra {
        color: #2E7D32 !important;
    }

    .alternativas li.alt-correta::after {
        color: #2E7D32 !important;
    }

    .julgado-block {
        break-inside: avoid-page;
    }

    .diagrama-3n,
    .diagrama-4n {
        break-inside: avoid;
        page-break-inside: avoid;
        align-items: stretch;
    }

    .diagrama-3n-grupo,
    .diagrama-4n-grupo {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .diagrama-3n-raiz,
    .diagrama-4n-raiz {
        background: var(--azul-suave) !important;
    }

    details {
        display: block;
    }

    details>summary {
        list-style: none;
        display: block;
        margin-bottom: 6px;
    }

    details>*:not(summary) {
        display: block !important;
        visibility: visible !important;
    }

    .pg-num {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 0.9cm;
        right: 1.6cm;
        width: 28px;
        height: 28px;
        background: #eef0f5;
        border-radius: 50%;
    }

    .pg-num::after {
        content: counter(page);
        font-family: 'Lora', serif;
        font-size: 0.72rem;
        font-weight: 700;
        color: #131B24;
    }

    .section-title,
    .dispositivo,
    .alerta,
    .sumula,
    .juris,
    .img-bloco,
    .casos-grid,
    .lista,
    table.lista-num {
        break-inside: avoid;
    }

    .navbar,
    .nav-recall-btn,
    .zoom-controls,
    .social-share,
    .sidebar,
    .catalog-section,
    .cta-artigo {
        display: none !important;
    }

    .container {
        margin-top: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .article-page {
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}


/* ================================================================
   CLASSIF-HIER, caixa hierárquica para classificações
   - Header colorido (azul claro por padrão, escuro em .editorial)
   - Corpo com .lista-seta ou .lista dentro
   - Rodapé .classif-fonte opcional
   Uso:
     <div class="classif-hier editorial azul">
       <div class="classif-header">Título</div>
       <div class="classif-body">
         <ul class="lista-seta"><li>...</li></ul>
       </div>
       <div class="classif-fonte"><p>Fonte: ...</p></div>
     </div>
   Variantes de cor: .azul, .verde (setas iguais à cor do header).
================================================================ */
.classif-hier {
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    background: #fff;
    margin: 18px 0 24px;
    font-family: 'Source Sans Pro', sans-serif;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.classif-header {
    background: #dce8f5;
    color: #131B24;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 8px 14px;
    border-bottom: 1px solid #c5d3e8;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.classif-body {
    padding: 14px 18px 16px;
    font-size: 1rem;
    line-height: 1.85;
    color: #1a1a1a;
}

.classif-fonte {
    background: #fafbfc;
    border-top: 1px solid #e5e9f0;
    padding: 8px 14px;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.85;
}

.classif-fonte p {
    margin: 0 0 2px;
    text-indent: 0;
    text-align: left;
}

.classif-fonte p:last-child {
    margin-bottom: 0;
}

.classif-fonte strong {
    color: #131B24;
    font-weight: 700;
}

/* Variante .editorial — Lora 18px, header escuro (estilo blog) */
.classif-hier.editorial {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.classif-hier.editorial .classif-header {
    background: #013169;
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    padding: 12px 18px;
    border-bottom: none;
    letter-spacing: 0.01em;
}

.classif-hier.editorial .classif-body {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.85;
    color: #222;
    padding: 16px 20px 18px;
}

.classif-hier.editorial .lista-seta li {
    font-family: 'Lora', serif;
    font-size: 18px;
    color: #222;
    line-height: 1.85;
    padding-top: 8px;
    padding-bottom: 8px;
}

.classif-hier.editorial .lista-seta li::before {
    top: 10px;
    font-size: 0.9rem;
}

.classif-hier.editorial .lista li {
    font-family: 'Lora', serif;
    font-size: 18px;
    color: #222;
    line-height: 1.85;
}

/* Variante de cor .azul — header azul + setas azuis */
.classif-hier.azul .classif-header,
.classif-hier.editorial.azul .classif-header {
    background: #1a5fa8;
    color: #fff;
}

.classif-hier.azul .lista-seta li::before,
.classif-hier.azul .lista li::before {
    color: #1a5fa8;
}

/* Variante de cor .verde — header verde + setas verdes */
.classif-hier.verde .classif-header,
.classif-hier.editorial.verde .classif-header {
    background: #1b5e20;
    color: #fff;
}

.classif-hier.verde .lista-seta li::before,
.classif-hier.verde .lista li::before {
    color: #1b5e20;
}

@media print {
    .classif-header,
    .classif-hier.azul .classif-header,
    .classif-hier.verde .classif-header,
    .classif-hier.editorial .classif-header,
    .classif-hier.editorial.azul .classif-header,
    .classif-hier.editorial.verde .classif-header {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

@media screen and (max-width: 640px) {
    .classif-body {
        padding: 12px 12px 14px;
    }
    .classif-hier.editorial .classif-body {
        padding: 14px 14px 16px;
    }
}

/* ===== KaTeX (matematica em LaTeX, self-hosted em blog/vendor/katex) ===== */
/* Acompanha o tamanho do texto do artigo em vez do default 1.21em do KaTeX */
.katex {
    font-size: 1.05em;
}
/* Formulas em display (\[ ... \]) com rolagem horizontal em telas pequenas, sem estourar o layout */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    margin: 1em 0;
}
.katex-display > .katex {
    white-space: nowrap;
}
@media screen and (max-width: 640px) {
    .katex {
        font-size: 1em;
    }
}

/* ── Imagem do local (foto da sede/cidade do concurso) ───────────────────── */
.article-location-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 12px;
    display: block;
    margin: 0 0 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
}

.article-location-credit {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #999;
    margin: -22px 0 24px;
    font-style: italic;
}
