/* ==========================================================
   POST INDIVIDUAL — v1.32
   ========================================================== */

.blog-post-page {
    background: #fff;
}

@media (min-width: 1051px) {
    .blog-post-page {
        background: var(--bg-deep);
    }

    .blog-post-page .site-header {
        background: transparent !important;
    }

    .blog-post-page .site-header:not(.is-scrolled)::before {
        opacity: 0 !important;
    }

    .blog-post-page .site-header.is-scrolled::before {
        opacity: .62 !important;
    }
}

/* Hero do artigo */
.post-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--paint-page-bg);
    color: var(--color-title);
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
    background-size: 30px 30px;
}

.post-hero-inner {
    width: min(calc(100% - 64px), 980px);
    min-height: 560px;
    margin: 0 auto;
    padding: 76px 0 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.post-back {
    align-self: flex-start;
    margin-bottom: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: color-mix(in srgb, var(--color-subtitle) 88%, white);
    font-size: 13px;
    font-weight: 700;
    transition: color .16s ease, transform .16s ease;
}

.post-back:hover {
    color: #fff;
    transform: translateX(-2px);
}

.post-back svg,
.post-related-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-accent);
    font-size: var(--font-small-size);
    font-weight: var(--font-small-weight);
    line-height: 1.2;
    letter-spacing: .055em;
}

.post-category > span {
    opacity: .62;
}

.post-category i {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 14px color-mix(in srgb, var(--color-accent) 72%, transparent);
}

.post-hero h1 {
    max-width: 920px;
    margin: 26px 0 0;
    padding-bottom: .09em;
    color: var(--color-title);
    font-size: min(var(--font-title-size), 64px);
    font-weight: var(--font-title-weight);
    line-height: 1.06;
    letter-spacing: -.046em;
    text-wrap: balance;
}

.post-excerpt {
    max-width: 740px;
    margin: 22px 0 0;
    color: var(--color-subtitle);
    font-size: min(var(--font-subtitle-size), 20px);
    line-height: 1.6;
}

.post-hero time {
    margin-top: 24px;
    color: color-mix(in srgb, var(--color-subtitle) 72%, transparent);
    font-size: 12px;
    font-weight: 700;
}

/* Conteúdo do artigo */
.post-article {
    background: #fff;
    color: #071a36;
}

.post-article-inner {
    width: min(calc(100% - 64px), 900px);
    margin: 0 auto;
    padding: 82px 0 94px;
}

.post-cover {
    min-height: 330px;
    margin-bottom: 58px;
    overflow: hidden;
    border: 1px solid #dce7f0;
    border-radius: 18px;
    background-color: #eaf6ff;
    background-image: radial-gradient(circle, rgba(80, 159, 219, .22) 1px, transparent 1px);
    background-size: 14px 14px;
}

.post-content {
    width: min(100%, 760px);
    margin: 0 auto;
}

.post-content p {
    margin: 0;
    color: #425c79;
    font-size: 17px;
    line-height: 1.85;
}

.post-content p + p {
    margin-top: 28px;
}

/* Continue lendo */
.post-related {
    background: #fff;
    color: #071a36;
    border-top: 1px solid #eef2f6;
}

.post-related-inner {
    width: min(calc(100% - 64px), 900px);
    margin: 0 auto;
    padding: 76px 0 88px;
}

.post-related h2 {
    margin: 0 0 46px;
    color: #071a36;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.post-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.post-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7e0e9;
    border-radius: 15px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.post-related-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-accent) 35%, #d7e0e9);
    box-shadow: 0 18px 34px rgba(5, 27, 54, .06);
}

.post-related-thumb {
    min-height: 150px;
    display: block;
    border-bottom: 1px solid #dce7f0;
    background-color: #eaf6ff;
    background-image: radial-gradient(circle, rgba(80, 159, 219, .22) 1px, transparent 1px);
    background-size: 14px 14px;
}

.post-related-body {
    min-height: 156px;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
}

.post-related-body > span {
    color: #009df5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
}

.post-related-body h3 {
    margin: 10px 0 0;
    color: #071a36;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.post-related-link {
    width: max-content;
    max-width: 100%;
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #071a36;
    font-size: 12px;
    font-weight: 800;
}

.post-related-link:hover {
    color: #009df5;
}

/* Notebook */
@media (max-width: 1366px) and (min-width: 901px) {
    .post-hero-inner {
        width: min(calc(100% - 72px), 900px);
        min-height: 500px;
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .post-hero h1 {
        font-size: min(var(--font-title-size), 56px);
    }

    .post-article-inner,
    .post-related-inner {
        width: min(calc(100% - 72px), 850px);
    }

    .post-cover {
        min-height: 300px;
    }
}

/* Tablet e mobile */
@media (max-width: 720px) {
    .post-hero-inner,
    .post-article-inner,
    .post-related-inner {
        width: calc(100% - 40px);
    }

    .post-hero-inner {
        min-height: 0;
        padding: 58px 0 64px;
    }

    .post-back {
        margin-bottom: 34px;
    }

    .post-category {
        font-size: var(--mobile-font-small-size);
    }

    .post-hero h1 {
        font-size: min(var(--mobile-font-title-size), 44px);
        line-height: 1.08;
    }

    .post-excerpt {
        margin-top: 18px;
        font-size: var(--mobile-font-subtitle-size);
    }

    .post-article-inner {
        padding: 58px 0 66px;
    }

    .post-cover {
        min-height: 210px;
        margin-bottom: 40px;
        border-radius: 14px;
    }

    .post-content p {
        font-size: 16px;
        line-height: 1.78;
    }

    .post-related-inner {
        padding: 56px 0 64px;
    }

    .post-related h2 {
        margin-bottom: 30px;
        font-size: 20px;
    }

    .post-related-grid {
        grid-template-columns: 1fr;
    }

    .post-related-thumb {
        min-height: 165px;
    }
}

@media (max-width: 390px) {
    .post-hero-inner,
    .post-article-inner,
    .post-related-inner {
        width: calc(100% - 32px);
    }

    .post-hero h1 {
        font-size: min(var(--mobile-font-title-size), 40px);
    }

    .post-related-body {
        padding: 20px;
    }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .post-back:hover,
    .post-related-card:hover {
        transform: none;
    }
}


/* ==========================================================
   POST IMAGE / SHARE / COMMENTS — v1.43
   ========================================================== */

.post-cover--image {
    margin: 0;
    overflow: hidden;
}

.post-cover--image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: block;
    object-fit: cover;
}

.post-content h2,
.post-content h3 {
    margin: 38px 0 14px;
    color: #071a36;
    line-height: 1.15;
}

.post-content h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.post-content h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.post-content ul,
.post-content ol {
    margin: 18px 0 22px;
    padding-left: 24px;
    color: #526d90;
}

.post-content li + li {
    margin-top: 8px;
}

.post-content blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 3px solid #08a7f5;
    border-radius: 0 12px 12px 0;
    background: #f0f8fe;
    color: #315478;
    font-weight: 600;
}

.post-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #edf4fa;
    color: #0a4f7a;
    font-size: .9em;
}

.post-content a {
    color: #038fdf;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-share {
    margin-top: 42px;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(13, 47, 83, .12);
}

.post-share > span {
    color: #0a203e;
    font-weight: 800;
}

.post-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-share-actions a {
    min-height: 38px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 54, 94, .14);
    border-radius: 9px;
    background: #fff;
    color: #0b2341;
    font-size: 12px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.post-share-actions a:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 158, 239, .45);
    color: #029bec;
}

.post-related-thumb--image {
    overflow: hidden;
}

.post-related-thumb--image img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: block;
    object-fit: cover;
}

.post-comments {
    padding: clamp(64px, 8vw, 104px) 24px;
    background: #f8fbfe;
}

.post-comments-inner {
    width: min(940px, 100%);
    margin: 0 auto;
}

.post-comments-head {
    margin-bottom: 26px;
}

.post-comments-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #049eec;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
}

.post-comments-head h2 {
    margin: 0;
    color: #061b38;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.post-comments-head p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #6d84a3;
    line-height: 1.65;
}

.post-comment-flash {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(35, 173, 110, .26);
    border-radius: 10px;
    background: rgba(35, 173, 110, .07);
    color: #216a4a;
    font-weight: 700;
}

.post-comment-flash.is-error {
    border-color: rgba(218, 77, 77, .26);
    background: rgba(218, 77, 77, .07);
    color: #9a3434;
}

.post-comment-list {
    margin-bottom: 28px;
    display: grid;
    gap: 10px;
}

.post-comment-item {
    padding: 16px 18px;
    border: 1px solid rgba(16, 54, 91, .1);
    border-radius: 12px;
    background: #fff;
}

.post-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-comment-meta strong {
    color: #09213e;
}

.post-comment-meta time {
    color: #8ba0ba;
    font-size: 12px;
}

.post-comment-item > p {
    margin: 10px 0 0;
    color: #617a98;
    line-height: 1.65;
}

.post-comment-form {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid rgba(15, 53, 90, .11);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(4, 25, 48, .045);
}

.post-comment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.post-comment-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.post-comment-field--full {
    grid-column: 1 / -1;
}

.post-comment-field label {
    color: #0a203d;
    font-size: 13px;
    font-weight: 800;
}

.post-comment-field label span {
    color: #04a1f1;
}

.post-comment-field input,
.post-comment-field textarea {
    width: 100%;
    border: 1px solid rgba(14, 54, 93, .14);
    border-radius: 10px;
    background: #fbfdff;
    color: #0b223e;
    font: inherit;
    outline: none;
}

.post-comment-field input {
    min-height: 48px;
    padding: 0 13px;
}

.post-comment-field textarea {
    min-height: 150px;
    padding: 13px;
    resize: vertical;
}

.post-comment-field input:focus,
.post-comment-field textarea:focus {
    border-color: rgba(4, 161, 241, .56);
    box-shadow: 0 0 0 3px rgba(4, 161, 241, .08);
}

.post-recaptcha {
    margin-top: 18px;
}

.post-comment-submit {
    min-height: 46px;
    margin-top: 20px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    background: #08a4f1;
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.post-comment-submit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.comment-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 720px) {
    .post-cover--image img {
        min-height: 220px;
    }

    .post-share,
    .post-comment-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-comment-grid {
        grid-template-columns: 1fr;
    }

    .post-comment-field--full {
        grid-column: auto;
    }

    .post-share-actions,
    .post-share-actions a,
    .post-comment-submit {
        width: 100%;
    }
}


/* Compartilhamento somente com ícones — v1.43.1 */
.post-share-actions a {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    flex: 0 0 42px;
    border-radius: 10px;
}

.post-share-actions a svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-share-actions a:hover svg {
    transform: scale(1.04);
}

@media (max-width: 720px) {
    .post-share-actions {
        width: auto;
    }

    .post-share-actions a {
        width: 42px;
        min-width: 42px;
        flex: 0 0 42px;
    }
}


/* ==========================================================
   POST — CAPA + ÍCONES SOCIAIS REFINADOS — v1.43.2
   ========================================================== */

/* v1.43 tinha zerado o margin da .post-cover--image e colado a capa no texto. */
.post-cover.post-cover--image {
    margin: 0 0 clamp(46px, 6vw, 72px);
}

.post-cover--image img {
    vertical-align: middle;
}

.post-share-actions {
    gap: 10px;
}

.post-share-actions a {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    flex: 0 0 44px;
    border: 1px solid #d7e3ee;
    border-radius: 12px;
    background: #fff;
    color: #092442;
    box-shadow: 0 5px 16px rgba(7, 32, 61, .035);
}

.post-share-actions a .share-brand-icon {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
    stroke: none;
    transition: transform .18s ease;
}

.post-share-actions a:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 158, 239, .42);
    background: #f8fcff;
    color: #009ef0;
    box-shadow: 0 10px 22px rgba(0, 121, 190, .08);
}

.post-share-actions a:hover .share-brand-icon {
    transform: scale(1.06);
}

@media (max-width: 720px) {
    .post-cover.post-cover--image {
        margin-bottom: 38px;
    }

    .post-share-actions a {
        width: 44px;
        min-width: 44px;
        flex-basis: 44px;
    }
}
