/* Estilos compartilhados das páginas de conteúdo: posts, especialidades, estados, comparativos, materiais.
   Base: estilos do post CFM 1.821 (mesmo visual dos posts existentes). */
.article-hero {
    background: linear-gradient(135deg, #001229 0%, #0047a9 70%, #40e0e6 100%);
    padding: 80px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 60px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.toc { background: var(--bg-soft); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.5rem 2rem; margin: 2rem 0; }
.toc h4 { color: var(--secondary); margin-bottom: 0.75rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.toc ol { padding-left: 1.25rem; margin: 0; }
.toc li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.toc a { color: var(--secondary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.req-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.req-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.req-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--secondary), #0066cc);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-bottom: 1rem;
}
.req-card h3 { color: var(--secondary); margin-top: 0; }
.req-solution {
    background: linear-gradient(135deg, #f0fdff, #e0f2fe);
    border: 1px solid rgba(64,224,230,0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.92rem;
}
.req-solution strong { color: var(--secondary); }
.alert-bar {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.alert-bar svg { flex-shrink: 0; color: #d97706; margin-top: 0.1rem; }
.alert-bar p { margin: 0; font-size: 0.9rem; color: #78350f; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.55rem 0 0.55rem 1.75rem; position: relative; font-size: 0.95rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 900; }
.checklist li.danger::before { content: '✗'; color: #dc2626; }
.sidebar-cta { background: linear-gradient(160deg, var(--secondary), #0066cc); border-radius: var(--radius-lg); padding: 2rem; color: white; margin: 2rem 0; text-align: center; }
.sidebar-cta h4 { color: white; margin-bottom: 0.75rem; }
.sidebar-cta p { font-size: 0.88rem; opacity: 0.8; margin-bottom: 1.25rem; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.comparison-table th { background: var(--secondary); color: white; padding: 0.75rem 1rem; text-align: left; font-weight: 700; }
.comparison-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.comparison-table td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.06); vertical-align: top; }
.comparison-table tr:nth-child(even) td { background: var(--bg-soft); }
.check-yes { color: #16a34a; font-weight: 700; }
.check-no  { color: #dc2626; font-weight: 700; }
@media (min-width: 1100px) {
    .article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
    .article-sidebar { position: sticky; top: 100px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.8rem; opacity: 0.7; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.6; }

/* ---------- Hero das páginas de conteúdo ---------- */
.content-hero h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem; }
.content-hero .lead { font-size: 1.08rem; opacity: 0.85; line-height: 1.65; max-width: 760px; margin-bottom: 2rem; }
.content-hero .meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.7; }
.hero-tag { background: rgba(255,255,255,0.15); border-radius: 100px; padding: 0.25rem 0.9rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); display: inline-block; margin-bottom: 1.25rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-context-cta { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 760px; margin-top: 1.75rem; padding: 1.1rem 1.4rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-left: 4px solid var(--primary); border-radius: var(--radius-md); }
.hero-context-cta strong { display: block; color: white; font-size: 1.05rem; }
.hero-context-cta p { margin: 0.25rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.85); max-width: 46ch; }
.hero-context-cta small { display: block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--primary); }
.hero-ctas .btn-ghost { border: 2px solid rgba(255,255,255,0.35); color: white; }

/* ---------- Resumo (resposta direta — formato citável por IAs) ---------- */
.tldr { background: linear-gradient(135deg, #f0fdff, #e0f2fe); border: 1px solid rgba(64,224,230,0.35); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.tldr h2, .tldr h4, .content-section .tldr h2, .prose .tldr h2 { color: var(--secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 0.6rem; margin-top: 0; }
.tldr p, .tldr li { font-size: 0.95rem; margin-bottom: 0.4rem; }
.tldr ul { padding-left: 1.1rem; margin: 0; }

/* ---------- Fontes e referências ---------- */
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.08); }
.sources h2 { font-size: 1.15rem; color: var(--secondary); margin-bottom: 0.75rem; }
.sources ol { padding-left: 1.25rem; margin: 0; }
.sources li { font-size: 0.85rem; color: var(--text-body); margin-bottom: 0.5rem; line-height: 1.5; word-break: break-word; }
.sources a { color: var(--secondary); }
.sources .accessed { color: var(--text-muted); }
.cite { font-size: 0.72em; vertical-align: super; line-height: 0; }
.cite a { color: var(--secondary); text-decoration: none; font-weight: 700; }

/* ---------- Grades de cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.content-card { background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: inherit; transition: var(--transition); }
a.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); border-color: rgba(64,224,230,0.5); }
.content-card h3 { color: var(--secondary); font-size: 1.1rem; margin: 0.25rem 0; }
.content-card p { font-size: 0.92rem; margin: 0; }
.content-card .more { color: var(--secondary); font-weight: 700; font-size: 0.88rem; margin-top: auto; padding-top: 0.5rem; }
.content-card .icon-svg { margin-bottom: 0.25rem; }

/* ---------- Números (estados) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0 0.5rem; }
.stat-box { background: var(--bg-soft); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; }
.stat-box strong { display: block; font-size: 1.6rem; color: var(--secondary); line-height: 1.2; }
.stat-box span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.data-note { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Lista de links (estados, especialidades) ---------- */
.link-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.link-cloud a { background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-pill); padding: 0.45rem 1rem; font-size: 0.88rem; color: var(--secondary); text-decoration: none; font-weight: 600; }
.link-cloud a:hover { border-color: var(--primary); background: var(--primary-light); }

/* ---------- Faixa de CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--secondary), #003680); color: white; text-align: center; padding: 80px 0; }
.cta-band h2 { color: white; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.cta-band p { opacity: 0.85; max-width: 620px; margin: 0 auto 2rem; }
.cta-band .note { font-size: 0.8rem; opacity: 0.55; margin-top: 1.25rem; }

/* ---------- Seções das páginas de conteúdo ---------- */
.content-section { padding: 70px 0; }
.content-section.alt { background: var(--bg-soft); }
.content-section h2 { color: var(--secondary); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.content-section .section-lead { color: var(--text-body); max-width: 760px; }
.prose { max-width: 820px; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { color: var(--secondary); margin: 1.75rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; line-height: 1.65; }
.disclaimer { font-size: 0.8rem; color: var(--text-muted); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin: 1rem 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* CTA no fim do texto do artigo (antes do FAQ) */
.cta-inline { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 2.5rem 0 0; padding: 1.25rem 1.5rem; background: var(--bg-soft); border: 1px solid rgba(0,71,169,0.12); border-left: 4px solid var(--primary); border-radius: var(--radius-md); }
.cta-inline strong { color: var(--secondary); font-size: 1.05rem; }
.cta-inline p { margin: 0.25rem 0 0; font-size: 0.92rem; }

/* Material gratuito no post (MaterialBox) */
.material-box { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px dashed rgba(0,71,169,0.35); border-radius: var(--radius-md); }
.material-box > div { flex: 1 1 320px; }
.material-box strong { display: block; color: var(--secondary); font-size: 1.05rem; }
.material-box p { margin: 0.25rem 0 0; font-size: 0.92rem; }
.material-box .btn, .material-side .btn { white-space: nowrap; padding: 0.75rem 1.4rem; }
.material-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--secondary); background: rgba(64,224,230,0.18); border-radius: var(--radius-pill); padding: 0.2rem 0.65rem; margin-bottom: 0.5rem; }
.material-side { background: var(--bg-soft); border: 1px solid rgba(0,71,169,0.12); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.material-side h4 { color: var(--secondary); margin: 0.25rem 0 0.5rem; }
.material-side p { font-size: 0.88rem; margin-bottom: 1rem; }
