/* ===========================================================
   Blog — complementa o style-editorial.css com o que o blog
   precisa: leitura longa, cards de post, listagens, paginação.
   Mesmos tokens, mesma tipografia, mesmo tom editorial.
   =========================================================== */

.container-narrow { max-width: 780px; }

/* ---------- breadcrumb ---------- */
.breadcrumb ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
    font-family: var(--font-mono); font-size: 0.74rem;
    letter-spacing: 0.06em; color: var(--text-soft);
    margin-bottom: 28px;
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-ink); }
.breadcrumb [aria-current] { color: var(--navy-deep); }

/* ---------- cabeçalho do post ---------- */
.post-header { padding: 60px 0 36px; }
.post-cat {
    display: inline-block;
    font-family: var(--font-mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--gold-ink); text-decoration: none; margin-bottom: 18px;
}
.post-cat:hover { color: var(--gold-ink); }
.post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    font-weight: 400; line-height: 1.08; letter-spacing: -0.02em;
    color: var(--navy-deep); font-variation-settings: "opsz" 144;
    margin-bottom: 20px;
}
.linha-fina {
    font-family: var(--font-display); font-style: italic;
    font-size: 1.2rem; line-height: 1.5; color: var(--text-soft);
    margin-bottom: 22px;
}
.post-meta {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--text-soft); letter-spacing: 0.02em;
    padding-top: 18px; border-top: 1px solid var(--line);
}
.post-meta a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
.post-meta a:hover { color: var(--gold-ink); }

/* ---------- imagem de capa ---------- */
.post-capa { margin: 0 0 36px; }
.post-capa img {
    width: 100%; height: auto; display: block;
    border-radius: 4px; box-shadow: 0 20px 50px -30px rgba(20, 42, 71, 0.45);
}

/* ---------- índice do artigo ---------- */
.post-indice {
    background: var(--bone-deep); border: 1px solid var(--line);
    padding: 20px 26px; margin: 0 0 40px; border-radius: 4px;
}
.post-indice summary {
    font-family: var(--font-mono); font-size: 0.74rem;
    text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-ink);
    cursor: pointer; list-style: none;
}
.post-indice summary::-webkit-details-marker { display: none; }
.post-indice summary::after { content: "+"; float: right; font-size: 1rem; }
.post-indice[open] summary::after { content: "–"; }
.post-indice ol { margin: 16px 0 0 18px; padding: 0; }
.post-indice li { margin: 8px 0; font-size: 0.95rem; line-height: 1.4; }
.post-indice a { color: var(--navy); text-decoration: none; }
.post-indice a:hover { color: var(--gold-ink); text-decoration: underline; }

/* ---------- corpo do artigo ---------- */
.post-conteudo { font-size: 1.08rem; line-height: 1.75; color: var(--navy); }
.post-conteudo > * + * { margin-top: 1.25em; }
.post-conteudo h2 {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.15;
    letter-spacing: -0.015em; color: var(--navy-deep);
    margin-top: 2.2em; scroll-margin-top: 100px;
    font-variation-settings: "opsz" 144;
}
.post-conteudo h3 {
    font-family: var(--font-display); font-weight: 500;
    font-size: 1.3rem; line-height: 1.25; color: var(--navy-deep);
    margin-top: 1.8em; scroll-margin-top: 100px;
}
.post-conteudo h4 { font-size: 1.05rem; font-weight: 600; color: var(--navy-deep); margin-top: 1.5em; }
.post-conteudo p { text-align: left; }
.post-conteudo ul, .post-conteudo ol { padding-left: 1.4em; }
.post-conteudo li { margin: 0.45em 0; }
.post-conteudo li::marker { color: var(--gold-ink); }
.post-conteudo a { color: var(--navy-deep); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
.post-conteudo a:hover { color: var(--gold-ink); text-decoration-color: var(--gold-ink); }
.post-conteudo strong { color: var(--navy-deep); font-weight: 600; }
.post-conteudo img { max-width: 100%; height: auto; border-radius: 4px; }
.post-conteudo table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.post-conteudo th, .post-conteudo td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-conteudo th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink); }
.indice-geral h2 { font-size: 1.5rem; }
.indice-geral ul { columns: 1; }

/* ---------- caixa do autor ---------- */
.autor-box {
    display: flex; gap: 22px; align-items: flex-start;
    margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
}
.autor-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.autor-label { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-ink); margin-bottom: 6px; }
.autor-nome { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--navy-deep); margin: 0 0 4px; }
.autor-nome a { color: inherit; text-decoration: none; }
.autor-nome a:hover { color: var(--gold-ink); }
.autor-cred { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-soft); margin: 0 0 10px; }
.autor-bio { font-size: 0.95rem; line-height: 1.6; color: var(--text-soft); margin: 0; }

/* ---------- CTA ---------- */
.post-cta { padding: 90px 0; background: var(--navy-deep); color: var(--bone); text-align: center; }
.post-cta h2 {
    font-family: var(--font-display); font-weight: 400; color: var(--bone);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 14px;
}
.post-cta p { color: var(--bone-deep); opacity: 0.85; max-width: 560px; margin: 0 auto 30px; }

/* ---------- cards de post ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.post-grid-3 { grid-template-columns: repeat(3, 1fr); }
.post-card {
    background: var(--bone); border: 1px solid var(--line);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(20, 42, 71, 0.4); }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bone-deep); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-ink); margin-bottom: 10px; }
.post-card h2, .post-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.22; color: var(--navy-deep); margin: 0 0 10px; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold-ink); }
.post-card p { font-size: 0.92rem; line-height: 1.55; color: var(--text-soft); margin: 0 0 14px; flex: 1; }
.post-card time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); }
.related-section .post-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy-deep); letter-spacing: -0.02em; }

/* ---------- listagens ---------- */
.pagina-blog .section-label { color: var(--gold-ink); }
.listagem-header { padding: 60px 0 0; }
.listagem-header .section-header { margin-bottom: 30px; align-items: start; }
.listagem-header h1 {
    font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
    color: var(--navy-deep); font-variation-settings: "opsz" 144;
}
.listagem-intro { font-family: var(--font-display); font-style: italic; color: var(--text-soft); font-size: 1.1rem; margin-top: 12px; max-width: 620px; }
.listagem { padding: 10px 0 100px; }
.listagem .post-grid { margin-top: 10px; }

.blog-busca { display: flex; gap: 0; max-width: 520px; margin: 0 0 26px; }
.blog-busca input {
    flex: 1; padding: 14px 18px; font-family: var(--font-body); font-size: 0.95rem;
    border: 1px solid var(--line); border-right: 0; background: var(--white); color: var(--navy);
}
.blog-busca input:focus { outline: 2px solid var(--gold-soft); outline-offset: -1px; }
.blog-busca button {
    padding: 0 22px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
    text-transform: uppercase; background: var(--navy-deep); color: var(--bone); border: 0; cursor: pointer;
}
.blog-busca button:hover { background: var(--navy); }

.categorias-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 10px; }
.categorias-nav a {
    display: inline-block; padding: 8px 14px; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
    border: 1px solid var(--line); text-decoration: none; transition: all 0.25s ease;
}
.categorias-nav a span { color: var(--gold-ink); margin-left: 4px; }
.categorias-nav a:hover, .categorias-nav a[aria-current] { background: var(--navy-deep); color: var(--bone); border-color: var(--navy-deep); }
.categorias-nav a[aria-current] span { color: var(--gold-soft); }

.paginacao { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 50px; }
.paginacao a, .paginacao span {
    min-width: 42px; padding: 10px 14px; text-align: center; font-family: var(--font-mono); font-size: 0.78rem;
    border: 1px solid var(--line); color: var(--navy); text-decoration: none;
}
.paginacao a:hover { background: var(--bone-deep); }
.paginacao span[aria-current] { background: var(--navy-deep); color: var(--bone); border-color: var(--navy-deep); }

/* ---------- animação (mesma da home) ---------- */
.post-card.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.post-card.animate-on-scroll.in-view { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
    .post-grid-3, .related-section .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .post-header { padding: 40px 0 28px; }
    .post-conteudo { font-size: 1.02rem; }
    .post-grid, .post-grid-3, .related-section .post-grid { grid-template-columns: 1fr; }
    .autor-box { flex-direction: column; align-items: flex-start; }
    .blog-busca { max-width: 100%; }
    .listagem-header { padding-top: 40px; }
    .breadcrumb ol { font-size: 0.68rem; }
}
@media (prefers-reduced-motion: reduce) {
    .post-card, .post-card-img img { transition: none; }
    .post-card.animate-on-scroll { opacity: 1; transform: none; }
}
