/* =============================================
   HEADER NOVO — padrão Diário Oficial
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

/* previne scroll horizontal em qualquer tela */
html, body { max-width: 100%; overflow-x: hidden; }

.dn-header-top {
    background: #fff;
    border-bottom: 1px solid #e2e6ed;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dn-header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
.dn-header-logo img { height: 44px; }
.dn-header-logo-divider {
    width: 1px;
    height: 32px;
    background: #c9d0db;
}
.dn-header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.dn-header-logo-text span:first-child {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7a99;
    font-weight: 500;
}
.dn-header-logo-text span:last-child {
    font-size: 17px;
    font-weight: 700;
    color: #1a2b4a;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.dn-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dn-btn-publicador {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #c9d0db;
    border-radius: 8px;
    background: transparent;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4a;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.dn-btn-publicador:hover { color: #243d6a; border-color: #1a2b4a; background: #f4f5f7; }

.dn-btn-publicador-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* login inline quando logado */
.dn-user-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #1a2b4a;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.dn-user-bar a { color: #1a2b4a; text-decoration: none; font-weight: 500; }
.dn-user-bar a:hover { text-decoration: underline; }

/* barra escura */
.dn-header-info {
    background: #1a2b4a;
    padding: 0 32px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.dn-header-info-left {
    display: flex;
    align-items: center;
    color: #a8b8d8;
    font-size: 13px;
    gap: 0;
}
.dn-header-info-left span { display: flex; align-items: center; gap: 6px; }
.dn-header-info-left .dn-sep { margin: 0 16px; color: #3a4f72; }
.dn-btn-autenticidade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #3a5080;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f4;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.dn-btn-autenticidade:hover { border-color: #6b8ec8; background: rgba(255,255,255,.06); color: #fff; }

/* menu nav */
.dn-navbar {
    background: #1a2b4a;
    border-bottom: none;
}
.dn-navbar .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.dn-navbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.dn-navbar ul li a {
    display: block;
    padding: 16px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #a8b8d8;
    text-decoration: none;
    transition: background .15s, color .15s;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.dn-navbar ul li a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* rodapé novo */
.dn-footer {
    background: #1a2b4a;
    text-align: center;
    padding: 18px 32px;
    font-size: 13px;
    color: #6b8ec8;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    margin-top: 32px;
}

/* texto desktop visível, mobile oculto por padrão */
.dn-btn-publicador-texto-mobile { display: none; }

/* =============================================
   HEADER MOBILE
   ============================================= */
@media (max-width: 768px) {
    /* header branco */
    .dn-header-top {
        padding: 0 16px;
        height: 56px;
    }
    .dn-header-logo img { height: 36px; }

    /* botão publicador: ícone + texto em duas linhas como no Figma */
    .dn-btn-publicador {
        padding: 6px 10px;
        gap: 6px;
        align-items: center;
    }
    .dn-btn-publicador-texto { display: none; }
    .dn-btn-publicador-texto-mobile {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
        font-size: 12px;
        font-weight: 600;
        color: #1a2b4a;
        text-align: left;
    }
    .dn-btn-publicador-texto-mobile span:first-child {
        font-size: 10px;
        font-weight: 500;
        color: #6b7a99;
    }
    .dn-btn-publicador-texto-mobile span:last-child {
        font-size: 13px;
        font-weight: 700;
        color: #1a2b4a;
    }

    /* barra info escura: data numa linha só, botão autenticidade centralizado abaixo */
    .dn-header-info {
        padding: 10px 16px;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .dn-header-info-left {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 12px;
        width: 100%;
    }
    /* esconde "Última atualização" no mobile — aparece só a data como no Figma */
    .dn-header-info-left .dn-sep,
    .dn-header-info-left span:last-child { display: none; }
    .dn-btn-autenticidade {
        font-size: 12px;
        padding: 7px 16px;
        align-self: center;
    }

    /* navbar: scroll horizontal */
    .dn-navbar .container { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dn-navbar ul { flex-wrap: nowrap; white-space: nowrap; }
    .dn-navbar ul li a { padding: 13px 14px; font-size: 12px; }

    /* user bar compacta */
    .dn-user-bar { gap: 10px; font-size: 12px; }
}
