/* ============================================================
   WordChats Blog — sistema de design dos artigos
   Carregado apenas nas páginas de blog, após styles.css.
   Prefixos: .blog-* (estrutura da página) e .post-* (componentes
   dentro do artigo). Evita colisão com classes de styles.css.
   ============================================================ */

:root {
    --post-ink: #0f172a;          /* títulos */
    --post-text: #334155;         /* corpo (contraste 10:1 sobre branco) */
    --post-muted: #64748b;        /* metadados (4.6:1) */
    --post-line: #e2e8f0;         /* bordas */
    --post-line-strong: #cbd5e1;
    --post-surface: #f8fafc;      /* fundos suaves */
    --post-tint: #eef2ff;         /* indigo-50 */
    --post-tint-border: #c7d2fe;  /* indigo-200 */
    --post-accent: #4f46e5;       /* indigo-600 (links, 6.3:1) */
    --post-accent-strong: #4338ca;
    --post-success: #047857;
    --post-success-bg: #ecfdf5;
    --post-warning: #b45309;
    --post-warning-bg: #fffbeb;
    --post-danger: #b91c1c;
    --post-danger-bg: #fef2f2;
    --post-measure: 44rem;        /* ~704px: 70–80 caracteres por linha */
    --post-radius: 14px;
    --post-radius-sm: 10px;
}

/* ---------- Barra de progresso de leitura ---------- */
.blog-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 80ms linear;
    pointer-events: none;
}

/* ---------- Container do blog (mais estreito que o site) ---------- */
.blog-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Cabeçalho do artigo ---------- */
.blog-hero {
    padding: 132px 0 40px;
    background:
        radial-gradient(60% 55% at 85% 0%, rgba(99, 102, 241, 0.09) 0%, rgba(99, 102, 241, 0) 100%),
        radial-gradient(45% 45% at 5% 20%, rgba(236, 72, 153, 0.05) 0%, rgba(236, 72, 153, 0) 100%),
        var(--white);
    border-bottom: 1px solid var(--post-line);
}

.blog-hero-inner {
    max-width: 52rem; /* 832px: acomoda títulos longos em 2–3 linhas */
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: 0.875rem;
    color: var(--post-muted);
}

.blog-breadcrumb a {
    color: var(--post-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover { color: var(--post-accent); }

.blog-breadcrumb li + li::before {
    content: "/";
    margin-right: 0.4rem;
    color: var(--post-line-strong);
}

.blog-breadcrumb li[aria-current] {
    color: var(--post-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28ch;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--post-tint);
    color: var(--post-accent-strong);
    border: 1px solid var(--post-tint-border);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
}

.blog-kicker i { font-size: 0.85em; }

.blog-hero h1 {
    font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.022em;
    font-weight: 800;
    color: var(--post-ink);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

.blog-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--post-muted);
    max-width: 46rem;
    margin: 0 0 2rem;
    text-wrap: pretty;
}

.blog-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--post-line);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--post-line);
}

.blog-author-name {
    display: block;
    font-weight: 600;
    color: var(--post-ink);
    font-size: 0.95rem;
    line-height: 1.3;
}

.blog-author-role {
    display: block;
    color: var(--post-muted);
    font-size: 0.85rem;
    line-height: 1.3;
}

.blog-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.9rem;
    font-size: 0.875rem;
    color: var(--post-muted);
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-dates li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-dates i { color: var(--post-line-strong); font-size: 0.85em; }
.blog-dates time { color: var(--post-text); }

/* ---------- Grade: artigo + coluna lateral ---------- */
.blog-content {
    padding: 56px 0 80px;
    background: var(--white);
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: start;
}

.blog-article,
.blog-sidebar { min-width: 0; }

.blog-article {
    max-width: var(--post-measure);
}

/* ---------- Tipografia do artigo ---------- */
.blog-article {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--post-text);
}

.blog-article > p,
.blog-article > ul,
.blog-article > ol {
    margin: 0 0 1.5rem;
}

.blog-article p { color: inherit; }

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    color: var(--post-ink);
    scroll-margin-top: 96px;
    text-wrap: balance;
}

.blog-article h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.018em;
    font-weight: 700;
    margin: 3.25rem 0 1rem;
    padding-top: 0.25rem;
}

.blog-article h2:first-child { margin-top: 0; }

.blog-article h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 2.25rem 0 0.75rem;
}

.blog-article h4 {
    font-size: 1.0625rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.blog-article a:not(.btn):not(.post-more-card):not(.post-share-btn) {
    color: var(--post-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    text-decoration-color: var(--post-tint-border);
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.blog-article a:not(.btn):not(.post-more-card):not(.post-share-btn):hover {
    color: var(--post-accent-strong);
    text-decoration-color: currentColor;
}

.blog-article strong { color: var(--post-ink); font-weight: 600; }

.blog-article > ul,
.blog-article > ol,
.post-callout ul,
.post-callout ol {
    padding-left: 1.4rem;
}

.blog-article li { margin-bottom: 0.5rem; }
.blog-article li::marker { color: var(--post-accent); font-weight: 600; }

.blog-article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--post-surface);
    border: 1px solid var(--post-line);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    color: var(--post-ink);
}

.blog-article hr {
    border: 0;
    border-top: 1px solid var(--post-line);
    margin: 3rem 0;
}

.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--post-radius);
}

/* Imagens do artigo */
.blog-cover {
    margin: 0 0 2rem;
}

.blog-cover img,
.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--post-radius);
    border: 1px solid var(--post-line);
    background: var(--post-surface);
}

.blog-cover img { border-radius: 18px; }

.post-figure {
    margin: 1.75rem 0 2.25rem;
}

.post-figure figcaption,
.blog-cover figcaption {
    margin-top: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--post-muted);
    text-align: center;
}

.post-step .post-figure { margin: 1rem 0 0.5rem; }
.post-step .post-figure img { border-radius: 12px; }

/* Parágrafos de abertura */
.post-intro {
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--post-text);
    margin-bottom: 2rem;
}

.post-intro p { margin-bottom: 1.25rem; }
.post-intro p:last-child { margin-bottom: 0; }

/* ---------- Sumário (mobile: no topo do artigo) ---------- */
.post-toc-mobile {
    display: none;
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    background: var(--post-surface);
    margin: 0 0 2rem;
    font-size: 1rem;
}

.post-toc-mobile summary {
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    color: var(--post-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.post-toc-mobile summary::-webkit-details-marker { display: none; }

.post-toc-mobile summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--post-muted);
    transition: transform 0.2s ease;
}

.post-toc-mobile[open] summary::after { transform: rotate(180deg); }

.post-toc-mobile ol {
    margin: 0;
    padding: 0 1.1rem 1rem 2.2rem;
}

.post-toc-mobile li { margin-bottom: 0.4rem; }

.post-toc-mobile a { color: var(--post-text); text-decoration: none; }

/* ---------- Componentes ---------- */

/* Destaque / aviso */
.post-callout {
    position: relative;
    border: 1px solid var(--post-tint-border);
    border-left: 4px solid var(--post-accent);
    background: var(--post-tint);
    border-radius: var(--post-radius);
    padding: 1.35rem 1.5rem 1.35rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.post-callout > :last-child { margin-bottom: 0; }

.post-callout .post-callout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--post-ink);
    margin: 0 0 0.75rem;
}

.post-callout .post-callout-title i { color: var(--post-accent); font-size: 0.95em; }

.post-callout h3,
.post-callout h4 {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.post-callout p { margin-bottom: 0.9rem; }
.post-callout li { margin-bottom: 0.55rem; }
.post-callout li:last-child { margin-bottom: 0; }

.post-callout.is-success {
    background: var(--post-success-bg);
    border-color: #a7f3d0;
    border-left-color: var(--post-success);
}
.post-callout.is-success .post-callout-title i { color: var(--post-success); }

.post-callout.is-warning {
    background: var(--post-warning-bg);
    border-color: #fde68a;
    border-left-color: var(--post-warning);
}
.post-callout.is-warning .post-callout-title i { color: var(--post-warning); }

.post-callout.is-neutral {
    background: var(--post-surface);
    border-color: var(--post-line);
    border-left-color: var(--post-line-strong);
}
.post-callout.is-neutral .post-callout-title i { color: var(--post-muted); }

/* Citação */
.post-quote {
    margin: 2.25rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    border-left: 3px solid var(--post-accent);
}

.post-quote blockquote {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--post-ink);
    font-weight: 500;
    letter-spacing: -0.005em;
}

.post-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--post-muted);
}

/* Grade de cards curtos */
.post-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 2.25rem;
}

.post-card {
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    background: var(--white);
    padding: 1.25rem 1.25rem 1.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    border-color: var(--post-line-strong);
    box-shadow: var(--shadow-sm);
}

.post-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--post-tint);
    color: var(--post-accent);
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.post-card-icon.is-success { background: var(--post-success-bg); color: var(--post-success); }
.post-card-icon.is-warning { background: var(--post-warning-bg); color: var(--post-warning); }
.post-card-icon.is-danger { background: var(--post-danger-bg); color: var(--post-danger); }

.post-card h3,
.post-card h4 {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin: 0 0 0.4rem;
}

.post-card p {
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--post-text);
    margin: 0;
}

/* Números em destaque */
.post-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 2.25rem;
}

.post-stat {
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    background: var(--post-surface);
    padding: 1.15rem 1.15rem 1.05rem;
}

.post-stat-value {
    display: block;
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--post-ink);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.4rem;
}

.post-stat-value.is-accent { color: var(--post-accent); }
.post-stat-value.is-success { color: var(--post-success); }

.post-stat-label {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--post-ink);
}

.post-stat-desc {
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--post-muted);
    margin-top: 0.25rem;
}

/* Bloco de análise / caso (título + texto + números) */
.post-finding {
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    padding: 1.5rem 1.5rem 1.35rem;
    margin: 1.5rem 0;
    background: var(--white);
}

.post-finding h3 {
    margin: 0 0 0.6rem;
    font-size: 1.125rem;
}

.post-finding p { font-size: 1.0625rem; margin-bottom: 1rem; }

.post-finding .post-stats { margin: 0; }
.post-finding .post-stat { background: var(--post-surface); }

/* Passos numerados */
.post-steps {
    list-style: none;
    counter-reset: post-step;
    margin: 1.75rem 0 2.25rem;
    padding: 0;
}

.post-step {
    counter-increment: post-step;
    position: relative;
    padding: 0 0 1.75rem 3.5rem;
    margin: 0;
}

.post-step::before {
    content: counter(post-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.post-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: 4px;
    width: 2px;
    background: var(--post-line);
}

.post-step:last-child { padding-bottom: 0.25rem; }

.post-step h3,
.post-step h4 {
    margin: 0.3rem 0 0.4rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.post-step p {
    font-size: 1.0625rem;
    margin: 0;
}

/* Checklist */
.post-checklist {
    list-style: none;
    margin: 1.5rem 0 2.25rem;
    padding: 0;
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    overflow: hidden;
}

.post-checklist li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1.2rem;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--post-line);
}

.post-checklist li:last-child { border-bottom: 0; }
.post-checklist li:nth-child(even) { background: var(--post-surface); }

.post-checklist li i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.2rem;
    border-radius: 50%;
    background: var(--post-success-bg);
    color: var(--post-success);
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tabela */
.post-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0 0.75rem;
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 600px;
}

.post-table th,
.post-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--post-line);
    color: var(--post-text);
}

.post-table th:first-child,
.post-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--white);
    box-shadow: inset -1px 0 0 var(--post-line);
}

.post-table th {
    background: var(--post-surface);
    color: var(--post-ink);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.post-table tbody tr:last-child td { border-bottom: 0; }
.post-table th:first-child { background: var(--post-surface); }
.post-table tbody tr:hover td { background: #fbfcfe; }
.post-table td strong { color: var(--post-ink); }

.post-table .is-free {
    color: var(--post-success);
    font-weight: 700;
}

.post-table .is-paid {
    color: var(--post-ink);
    font-weight: 700;
}

.post-note {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--post-muted);
    margin: 0 0 2rem;
}

/* FAQ (texto visível, sem acordeão: bom para SEO) */
.post-faq {
    margin: 1.5rem 0 2rem;
    border-top: 1px solid var(--post-line);
}

.post-faq-item {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--post-line);
}

.post-faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.post-faq-item p {
    margin: 0;
    font-size: 1.0625rem;
}

/* CTA */
.post-cta {
    position: relative;
    overflow: hidden;
    margin: 3rem 0 2.5rem;
    padding: 2.5rem 2.25rem;
    border-radius: 20px;
    background: var(--dark-color);
    color: var(--white);
}

.post-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 100%),
        radial-gradient(50% 70% at 0% 100%, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0) 100%);
    pointer-events: none;
}

.post-cta > * { position: relative; }

.post-cta h2,
.post-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

.post-cta strong { color: var(--white); font-weight: 700; }
.post-cta a:not(.btn) { color: var(--white); }

.post-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-cta .btn {
    white-space: normal;
    text-align: center;
    padding: 14px 26px;
    font-size: 1rem;
}

.post-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.post-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Compartilhar */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 2.5rem 0 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--post-line);
    border-bottom: 1px solid var(--post-line);
    font-size: 0.95rem;
}

.post-share-label {
    font-weight: 600;
    color: var(--post-ink);
    margin-right: 0.35rem;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--post-line);
    background: var(--white);
    color: var(--post-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.post-share-btn i { font-size: 1rem; }
.post-share-btn:hover { border-color: var(--post-line-strong); background: var(--post-surface); color: var(--post-ink); }
.post-share-btn.whatsapp i { color: #16a34a; }
.post-share-btn.linkedin i { color: #0a66c2; }
.post-share-btn.facebook i { color: #1877f2; }
.post-share-btn.x i { color: var(--post-ink); }
.post-share-btn.is-copied { border-color: #a7f3d0; background: var(--post-success-bg); color: var(--post-success); }

.post-faq + .post-share { border-top: 0; margin-top: 0; padding-top: 1.25rem; }

/* Caixa do autor (E-E-A-T) */
.post-author-box {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin: 2rem 0 0;
    padding: 1.5rem;
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    background: var(--post-surface);
}

.post-author-box .blog-avatar { width: 52px; height: 52px; font-size: 1.2rem; }

.post-author-box h3 {
    font-size: 1rem;
    margin: 0.15rem 0 0.35rem;
}

.post-author-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--post-text);
}

/* Mais artigos (rodapé do artigo) */
.post-more {
    margin: 3rem 0 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--post-line);
}

.post-more h2 {
    font-size: 1.35rem;
    margin: 0 0 1.25rem;
}

.post-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.post-more-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.2rem 1.2rem 1.1rem;
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    background: var(--white);
    text-decoration: none !important;
    color: var(--post-text) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-more-card:hover {
    border-color: var(--post-tint-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-more-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--post-accent);
}

.post-more-card h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    color: var(--post-ink);
}

.post-more-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    color: var(--post-muted);
}

.post-more-date {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--post-muted);
}

/* ---------- Coluna lateral ---------- */
.blog-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-widget {
    border: 1px solid var(--post-line);
    border-radius: var(--post-radius);
    background: var(--white);
    padding: 1.25rem 1.25rem 1.15rem;
}

.blog-widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--post-muted);
    margin: 0 0 0.9rem;
}

/* Sumário (desktop) */
.blog-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--post-line);
}

.blog-toc li { margin: 0; }

.blog-toc a {
    display: block;
    padding: 0.4rem 0 0.4rem 0.9rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--post-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-toc a:hover { color: var(--post-ink); }

.blog-toc a.is-active {
    color: var(--post-accent-strong);
    border-left-color: var(--post-accent);
    font-weight: 600;
}

/* CTA lateral */
.blog-widget.is-cta {
    background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 100%);
    border-color: var(--post-tint-border);
}

.blog-widget.is-cta h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: var(--post-ink);
}

.blog-widget.is-cta p {
    font-size: 0.925rem;
    line-height: 1.55;
    color: var(--post-text);
    margin: 0 0 1rem;
}

.blog-widget.is-cta .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.95rem;
    white-space: normal;
}

.blog-widget.is-cta .blog-widget-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--post-accent);
    text-decoration: none;
}

.blog-widget.is-cta .blog-widget-link:hover { text-decoration: underline; }

/* Lista de artigos */
.blog-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-widget-list li {
    margin: 0;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--post-line);
}

.blog-widget-list li:first-child { padding-top: 0; }
.blog-widget-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.blog-widget-list a {
    display: block;
    color: var(--post-ink);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-widget-list a:hover { color: var(--post-accent); }

.blog-widget-list span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--post-muted);
}

/* Lista de checks compacta */
.blog-widget-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-widget-checks li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--post-text);
    margin: 0 0 0.55rem;
}

.blog-widget-checks li:last-child { margin-bottom: 0; }
.blog-widget-checks i { color: var(--post-success); font-size: 0.8rem; margin-top: 0.3rem; }

/* Datas-chave */
.blog-widget-dates {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-widget-dates li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.75rem;
    align-items: start;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--post-text);
}

.blog-widget-dates li:last-child { margin-bottom: 0; }

.blog-widget-dates strong {
    font-variant-numeric: tabular-nums;
    color: var(--post-accent-strong);
    background: var(--post-tint);
    border-radius: 8px;
    padding: 0.2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Responsivo ---------- */
@media screen and (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .blog-article { max-width: var(--post-measure); }

    .blog-sidebar {
        position: static;
        max-width: var(--post-measure);
    }

    .blog-toc { display: none; }
    .post-toc-mobile { display: block; }
}

@media screen and (max-width: 768px) {
    .blog-hero { padding: 104px 0 28px; }
    .blog-breadcrumb { margin-bottom: 1.1rem; }
    .blog-breadcrumb li[aria-current] { max-width: 18ch; }

    .blog-hero h1 { font-size: clamp(1.75rem, 1.2rem + 3.2vw, 2.25rem); }
    .blog-lead { font-size: 1.1rem; }
    .blog-byline { gap: 0.75rem 1rem; padding-top: 1.1rem; }

    .blog-content { padding: 36px 0 60px; }

    .blog-article { font-size: 1.0625rem; line-height: 1.7; }
    .post-intro { font-size: 1.125rem; }
    .blog-article h2 { font-size: 1.5rem; margin-top: 2.5rem; }
    .blog-article h3 { font-size: 1.2rem; }

    .post-cards { grid-template-columns: 1fr; }
    .post-callout { padding: 1.15rem 1.15rem 1.15rem 1.2rem; font-size: 1rem; }
    .post-quote blockquote { font-size: 1.125rem; }
    .post-finding { padding: 1.2rem 1.15rem 1.1rem; }
    .post-step { padding-left: 3rem; }
    .post-step::before { width: 32px; height: 32px; font-size: 0.875rem; }
    .post-step:not(:last-child)::after { left: 15px; top: 36px; }

    .post-cta { padding: 1.85rem 1.35rem; border-radius: 16px; }
    .post-cta h2, .post-cta h3 { font-size: 1.3rem; }
    .post-cta-actions .btn { width: 100%; }

    .post-author-box { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
}

@media screen and (max-width: 480px) {
    .blog-container { padding: 0 18px; }
    .post-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .post-stat { padding: 0.9rem 0.85rem 0.8rem; }
    .post-stat-value { font-size: 1.5rem; }
    .post-stat:last-child:nth-child(odd):not(:first-child) { grid-column: span 2; }
    .post-checklist li { padding: 0.85rem 0.9rem; font-size: 1rem; }
    .post-share-btn span { display: none; }
    .post-share-btn { padding: 0.55rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-progress,
    .post-card,
    .post-more-card,
    .post-share-btn,
    .blog-toc a { transition: none; }
}
