* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #111827;
    color: #f9fafb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    min-height: 100vh;
}

img {
    width: 100%;     /* ajuste aqui até ficar bonito */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px 16px;
}

/* HEADER */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

.site-logo-img {
    width: 32px;      /* mesmo tamanho da logo antiga */
    height: 32px;
    border-radius: 8px; /* opcional: arredondar como o antigo quadrado */
    object-fit: cover;  /* evita distorção */
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo-text span:first-child {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-logo-text span:last-child {
    font-size: 12px;
    color: #9ca3af;
}

.top-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.top-nav a {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #9ca3af;
    background: transparent;
    transition: all 0.15s ease;
}

.top-nav a:hover {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

.top-nav a.active {
    background: #0f172a;
    border-color: #22c55e;
    color: #f9fafb;
    font-weight: 500;
}

/* LAYOUT PRINCIPAL */

.layout {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.sidebar {
    width: 270px;
    flex-shrink: 0;
    border-right: 1px solid #1f2937;
    padding-right: 16px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-bottom: 10px;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.sidebar-section {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.sidebar a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: #d1d5db;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.sidebar a:hover {
    background: #111827;
    border-left-color: #4b5563;
    color: #f9fafb;
}

.sidebar a.active {
    background: #020617;
    border-left-color: #22c55e;
    color: #f9fafb;
    font-weight: 500;
}

.content {
    flex: 1;
    padding-left: 4px;
}

.content-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 12px;
}

.content-header-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.content-header h1 {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #f9fafb;
}

.content-header-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 6px;
}

.texto-zapiio {
    padding: 18px 0 10px 0;
    border-bottom: 1px solid #1f2937;
}

.texto-zapiio p {
    max-width: 760px;
    margin: 0 auto 18px auto;
    font-size: 16px;
    line-height: 1.7;
    color: #e5e7eb;
}

.texto-zapiio strong {
    font-weight: 700;
}

/* NAVEGAÇÃO PRÓXIMO / ANTERIOR */

.pager {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.pager-link {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
    transition: all 0.15s ease;
}

.pager-link:hover {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

.pager-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.pager-title {
    font-size: 14px;
    color: #f9fafb;
    font-weight: 500;
}

.pager-icon {
    margin-left: auto;
    font-size: 16px;
    opacity: 0.8;
}

.pager-link.prev .pager-icon {
    order: -1;
    margin-left: 0;
    margin-right: auto;
}

/* META */

.page-meta {
    max-width: 760px;
    margin: 12px auto 0 auto;
    font-size: 12px;
    color: #9ca3af;
}

/* RESPONSIVO */

@media (max-width: 960px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1f2937;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .texto-zapiio p {
        font-size: 15px;
    }
}