/* ================================================================
   Single Publication — Layout
   ================================================================ */
.spub-bg {
    background-image: url("/wp-content/uploads/2026/05/fundo-home2.jpg");
    background-position: top center;
    background-size: contain;
}

.spub-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

/* ================================================================
   Botão voltar
   ================================================================ */
.sproj-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-size: 13px;
    color: #3B5026;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}

.sproj-back-btn:hover {
    opacity: .7;
}

/* ================================================================
   Breadcrumb
   ================================================================ */
.spub-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 20px 0 28px !important;
    font-size: 13px;
    color: #888;
}

.spub-breadcrumb__link {
    color: #888;
    text-decoration: none;
    transition: color .2s;
}

.spub-breadcrumb__link:hover {
    color: #18452b;
}

.spub-breadcrumb__sep {
    color: #bbb;
    font-size: 15px;
    line-height: 1;
}

.spub-breadcrumb__current {
    color: #555;
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Breadcrumb fora da .spub-section (posts não-publicação) */
.spub-breadcrumb--default {
    max-width: 1140px;
    margin: 0 auto 30px;
    padding: 20px 32px 0;
}

@media (max-width: 767px) {
    .spub-breadcrumb--default {
        padding: 16px 16px 0;
    }
}

/* ================================================================
   Two-column layout
   ================================================================ */
.spub-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* ================================================================
   Left: Content
   ================================================================ */
.spub-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #481B15;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.spub-title,
.single .entry-title,
.single h1.page-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #3B5026 !important;
    line-height: 1.3 !important;
    margin: 0 0 14px !important;
    border: none !important;
    padding-bottom: 0 !important;
}

.spub-body {
    font-size: 16px;
    color: #333;
    line-height: 1.75;
}

.spub-body p {
    margin: 0 0 18px;
}

.spub-body p:last-child {
    margin-bottom: 0;
}

.spub-body p:first-child {
    font-size: 17px;
    color: #222;
    font-weight: 500;
}

.spub-featured-image {
    margin-top: 36px;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.spub-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================================
   Right: Sidebar
   ================================================================ */
.spub-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* -- Cover card -- */
.spub-cover-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #d0ccc6;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    line-height: 0;
}

.spub-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================================
   Modal de download
   ================================================================ */
.spub-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spub-modal[hidden] {
    display: none;
}

.spub-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.spub-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 520px;
    margin: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

.spub-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
    transition: color .2s;
}

.spub-modal__close:hover {
    color: #333;
}

.spub-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #18452b;
    margin: 0 0 6px;
}

.spub-modal__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.spub-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 8px;
}

.spub-modal__success .spub-download-btn {
    margin-top: 8px;
    text-decoration: none;
}

/* -- Download button -- */
.spub-download-btn,
.spub-download-btn:visited,
.spub-download-btn:link,
button.spub-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #18452b !important;
    color: #fff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
    box-sizing: border-box;
}

.spub-download-btn:hover {
    background: #481B15;
    text-decoration: none;
    color: #fff !important;
}

/* -- Metadata table -- */
.spub-meta-wrap {
    border: 1px solid #d0ccc6;
    border-radius: 12px;
    overflow: hidden;
}

.spub-meta-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    margin-block-end: 0 !important;
    margin-bottom: 0 !important;
}

.spub-meta-table th,
.spub-meta-table td {
    border: none !important;
    border-top: 1px solid #e8e4e0 !important;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
    background: #fff !important;
}

.spub-meta-table tr:first-child th,
.spub-meta-table tr:first-child td {
    border-top: none !important;
}

.spub-meta-table tr:last-child th,
.spub-meta-table tr:last-child td {
    border-bottom: none !important;
}

.spub-meta-table th {
    width: 36%;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid #e8e4e0 !important;
}

.spub-meta-table td {
    color: #222;
    font-weight: 400;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1023px) {
    .spub-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .spub-sidebar {
        position: static;
        /* sidebar vai acima do conteúdo em mobile */
        order: -1;
    }

    .spub-cover-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .spub-section {
        padding: 0 16px 60px;
    }

    .spub-title {
        font-size: 26px;
    }

    .spub-breadcrumb__current {
        max-width: 200px;
    }
}
