/**
 * NextLevel — camada visual (v2).
 *
 * Organização:
 *  1. Tokens e base (inclui ajuste das variáveis do Bootstrap)
 *  2. Cabeçalho: barra superior, identidade, busca, menu
 *  3. Destaque da home (carrossel + lista lateral)
 *  4. Seções, cartões, acesso rápido
 *  5. Páginas internas: cabeçalho, trilha, listagens, paginação
 *  6. Notícia / página (tipografia de leitura)
 *  7. Busca e 404
 *  8. Chamada, rodapé, utilitários
 *  9. Movimento reduzido e impressão
 */

/* =========================================================================
   1. TOKENS E BASE
   ========================================================================= */

:root {
    --nl-primary: #053ea1;
    --nl-primary-rgb: 5, 62, 161;
    --nl-primary-600: #04358a;
    --nl-primary-700: #032a6e;
    --nl-primary-900: #021a45;
    --nl-primary-50: #eef3fc;
    --nl-primary-100: #dbe6f8;
    --nl-accent: #ffc107;
    --nl-accent-600: #e0a800;

    --nl-ink: #0f1b2d;
    --nl-text: #334155;
    --nl-muted: #5b6b80;
    --nl-line: #e3e8ef;
    --nl-bg: #ffffff;
    --nl-bg-alt: #f4f7fb;

    --nl-radius-sm: 8px;
    --nl-radius: 14px;
    --nl-radius-lg: 20px;
    --nl-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
    --nl-shadow: 0 4px 12px rgba(15, 27, 45, .07), 0 1px 3px rgba(15, 27, 45, .06);
    --nl-shadow-lg: 0 18px 40px rgba(15, 27, 45, .14);
    --nl-ease: cubic-bezier(.2, .7, .2, 1);
    --nl-nav-h: 60px;

    /* Nomes antigos (banner de cookies e conteúdos legados) */
    --color-primary: var(--nl-primary);
    --color-primary-hover: var(--nl-primary-700);
    --color-secondary: var(--nl-accent);
    --color-secondary-hover: var(--nl-accent-600);
    --color-text: var(--nl-ink);
    --color-text-light: #ffffff;
    --color-bg: var(--nl-bg);
    --color-bg-alt: var(--nl-bg-alt);

    /* Bootstrap 5 segue a cor do tema */
    --bs-primary: var(--nl-primary);
    --bs-primary-rgb: var(--nl-primary-rgb);
    --bs-link-color: var(--nl-primary);
    --bs-link-color-rgb: var(--nl-primary-rgb);
    --bs-link-hover-color: var(--nl-primary-700);
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--nl-text);
    --bs-border-radius: var(--nl-radius-sm);
}

.btn-primary {
    --bs-btn-bg: var(--nl-primary);
    --bs-btn-border-color: var(--nl-primary);
    --bs-btn-hover-bg: var(--nl-primary-700);
    --bs-btn-hover-border-color: var(--nl-primary-700);
    --bs-btn-active-bg: var(--nl-primary-900);
    --bs-btn-active-border-color: var(--nl-primary-900);
}

.btn-outline-primary {
    --bs-btn-color: var(--nl-primary);
    --bs-btn-border-color: var(--nl-primary);
    --bs-btn-hover-bg: var(--nl-primary);
    --bs-btn-hover-border-color: var(--nl-primary);
    --bs-btn-active-bg: var(--nl-primary-700);
}

.bg-primary { background-color: var(--nl-primary) !important; }
.text-primary { color: var(--nl-primary) !important; }

html { scroll-padding-top: calc(var(--nl-nav-h) + 16px); }

body {
    font-family: var(--bs-body-font-family);
    color: var(--nl-text);
    background: var(--nl-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Nada pode alargar a página no celular */
html, body { overflow-x: clip; }

h1, h2, h3, h4, h5, h6 { color: var(--nl-ink); font-weight: 600; letter-spacing: -.01em; }

a { color: var(--nl-primary); text-decoration: none; }
a:hover { color: var(--nl-primary-700); }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid var(--nl-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-content:focus { outline: none; }

.nl-skip {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: .75rem 1.25rem;
    background: var(--nl-accent);
    color: #111;
    font-weight: 600;
    border-radius: 0 0 var(--nl-radius-sm) var(--nl-radius-sm);
}
.nl-skip:focus { top: 0; color: #111; }

/* Botões do tema */
.nl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .6rem 1.15rem;
    border: 2px solid var(--nl-primary);
    border-radius: 999px;
    background: var(--nl-primary);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--nl-ease);
}
.nl-btn:hover { background: var(--nl-primary-700); border-color: var(--nl-primary-700); color: #fff; transform: translateY(-1px); }
.nl-btn.is-outline { background: transparent; color: var(--nl-primary); }
.nl-btn.is-outline:hover { background: var(--nl-primary-50); color: var(--nl-primary-700); }
.nl-btn.is-light { background: #fff; border-color: #fff; color: var(--nl-primary); }
.nl-btn.is-light:hover { background: var(--nl-accent); border-color: var(--nl-accent); color: #111; }
.nl-btn.is-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.nl-btn.is-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.nl-btn.is-block { display: flex; width: 100%; }

.nl-linklike {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.nl-badge {
    display: inline-block;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: var(--nl-primary-50);
    color: var(--nl-primary);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.3;
}
a.nl-badge:hover { background: var(--nl-primary); color: #fff; }
.nl-badge.is-light { background: var(--nl-accent); color: #1a1a1a; }

.nl-eyebrow {
    margin: 0 0 .35rem;
    color: var(--nl-primary);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nl-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    white-space: nowrap;
}
.nl-link-arrow i { transition: transform .2s var(--nl-ease); }
.nl-link-arrow:hover i { transform: translateX(4px); }

/* Link que cobre o cartão inteiro */
.nl-stretched { color: inherit; }
.nl-stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* =========================================================================
   2. CABEÇALHO
   ========================================================================= */

.nl-topbar {
    background: var(--nl-primary-900);
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
}

.nl-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 40px;
}

.nl-topbar-links { display: flex; gap: 1.1rem; margin-right: auto; }
.nl-topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    padding: .5rem 0;
}
.nl-topbar-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.nl-a11y { display: flex; align-items: center; gap: .25rem; }
.nl-a11y button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 32px;
    height: 30px;
    padding: 0 .55rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.nl-a11y button:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.nl-a11y button[aria-pressed="true"] { background: var(--nl-accent); border-color: var(--nl-accent); color: #111; }
.nl-a11y button:disabled { opacity: .4; cursor: not-allowed; }

.nl-social .social-menu,
.social-menu { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nl-social .social-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    color: #fff;
    font-size: .95rem;
}

/* Identidade — faixa branca: o logo oficial (azul + amarelo, fundo transparente)
   sumia sobre o azul. A foto da cidade aparece suave só do lado direito. */
.nl-brandbar {
    position: relative;
    background:
        linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255, 255, 255, .86) 70%, rgba(255, 255, 255, .7) 100%),
        var(--nl-header-image) right center / cover no-repeat,
        #fff;
    border-bottom: 1px solid var(--nl-line);
    color: var(--nl-ink);
}

.nl-brandbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.1rem;
}

.nl-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--nl-primary);
    min-width: 0;
}
.nl-brand:hover { color: var(--nl-primary-700); }
.nl-brand img, .nl-brand .custom-logo {
    width: auto !important;
    height: auto !important;
    max-height: 76px;
    max-width: 220px;
}

.nl-brand-mark {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--nl-primary);
    font-size: 1.6rem;
    color: var(--nl-accent);
}

.nl-brand-text { display: flex; flex-direction: column; min-width: 0; padding-left: 1rem; border-left: 2px solid var(--nl-line); }
.nl-brand-mark + .nl-brand-text { padding-left: 0; border-left: 0; }
.nl-brand-name {
    font-size: clamp(1.1rem, .95rem + .8vw, 1.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.nl-brand-tagline { color: var(--nl-muted); font-size: .85rem; line-height: 1.35; }
.nl-brand-tagline:empty { display: none; }

/* Marca no rodapé (fundo azul-escuro): logo num cartão branco */
.nl-brand.is-footer, .nl-brand.is-footer:hover { color: #fff; }
.nl-brand.is-footer .nl-brand-text { padding-left: 0; border-left: 0; }
.nl-brand.is-footer .nl-brand-tagline { color: rgba(255, 255, 255, .75); }
.nl-brand.is-footer .nl-brand-mark { background: rgba(255, 255, 255, .12); }
.nl-brand-logo-card {
    flex: none;
    display: inline-grid;
    place-items: center;
    padding: .5rem .65rem;
    border-radius: 14px;
    background: #fff;
}
.nl-brand-logo-card img { max-height: 56px !important; max-width: 120px !important; }

/* Busca (pílula) */
.nl-search {
    position: relative;
    display: flex;
    width: min(100%, 380px);
}
.nl-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 3.2rem 0 1.15rem;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #fff;
    color: var(--nl-ink);
    font-size: .95rem;
    box-shadow: var(--nl-shadow-sm);
}
.nl-search input::placeholder { color: #8391a5; }
.nl-search input:focus { outline: none; border-color: var(--nl-primary); box-shadow: 0 0 0 4px rgba(var(--nl-primary-rgb), .18); }
.nl-search button {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0 .95rem;
    border: 0;
    border-radius: 999px;
    background: var(--nl-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.nl-search button:hover { background: var(--nl-primary-700); }
.nl-search.is-block { width: 100%; }
.nl-search.is-block input { border-color: var(--nl-line); box-shadow: none; }
.nl-search.is-large { max-width: 640px; margin-top: 1.25rem; }
.nl-search.is-large input { height: 56px; font-size: 1.05rem; padding-right: 8rem; }
.nl-search.is-large button { padding: 0 1.3rem; }

/* Menu principal */
.nl-nav {
    --bs-navbar-padding-y: 0;
    min-height: var(--nl-nav-h);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--nl-line);
    transition: box-shadow .2s;
    z-index: 1030;
}
.nl-nav.is-scrolled { box-shadow: 0 6px 20px rgba(15, 27, 45, .08); }
/* O Bootstrap 4 do plugin de documentos (só nas páginas de documentos) zera o padding
   de .navbar > .container abaixo de 992px e põe padding na .navbar: devolve o do tema. */
#main-navigation.nl-nav { padding: 0; }
#main-navigation.nl-nav > .container { padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5); padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5); }

.nl-nav .navbar-nav { gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nl-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .3rem;
    min-height: var(--nl-nav-h);
    padding: 0 .9rem;
    color: var(--nl-ink);
    font-weight: 500;
    font-size: .95rem;
    transition: color .15s;
}
.nl-nav .nav-link::after {
    content: '';
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--nl-primary);
    transform: scaleX(0);
    transition: transform .2s var(--nl-ease);
}
.nl-nav .nav-link.dropdown-toggle::after {
    /* mantém o sublinhado no lugar do caret padrão */
    border: 0;
    margin: 0;
    vertical-align: 0;
}
.nl-nav .nav-link.dropdown-toggle { padding-right: 1.6rem; }
.nl-nav .nav-link.dropdown-toggle::before {
    content: '\F282'; /* bi-chevron-down */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: .55rem;
    font-size: .7rem;
    transition: transform .2s;
}
.nl-nav .nav-link.dropdown-toggle.show::before { transform: rotate(180deg); }
.nl-nav .nav-link:hover,
.nl-nav .nav-link:focus-visible,
.nl-nav .nav-link.active { color: var(--nl-primary); }
.nl-nav .nav-link:hover::after,
.nl-nav .nav-link.active::after { transform: scaleX(1); }
.nl-nav .nav-item-home .nav-link { font-size: 1.1rem; }

.nl-nav .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--nl-primary);
    margin-top: 0;
    padding: .6rem;
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    box-shadow: var(--nl-shadow-lg);
    min-width: 260px;
}
.nl-nav .dropdown-item {
    padding: .55rem .8rem;
    border-radius: var(--nl-radius-sm);
    color: var(--nl-ink);
    font-size: .9rem;
    line-height: 1.35;
    white-space: normal;
}
.nl-nav .dropdown-item:hover,
.nl-nav .dropdown-item:focus { background: var(--nl-primary-50); color: var(--nl-primary); }
.nl-nav .dropdown-item.active { background: var(--nl-primary-50); color: var(--nl-primary); font-weight: 600; }

/* Submenus em colunas (ver Bootstrap_Nav_Walker::start_lvl) */
@media (min-width: 992px) {
    .nl-nav .nl-mega { column-gap: .5rem; max-width: calc(100vw - 2rem); }
    .nl-nav .nl-mega > li { break-inside: avoid; }
    .nl-nav .nl-mega.is-cols-1 { width: max-content; min-width: 260px; max-width: min(360px, calc(100vw - 2rem)); }
    .nl-nav .nl-mega.is-cols-2 { width: 580px; columns: 2; }
    .nl-nav .nl-mega.is-cols-3 { width: 840px; columns: 3; }
}
.nl-nav .nl-submenu { margin: 0 0 .25rem .8rem; padding: 0 0 0 .5rem; border-left: 2px solid var(--nl-line); list-style: none; }
.nl-nav .dropdown-item.is-sub { padding-block: .4rem; font-size: .85rem; color: var(--nl-muted); }
.nl-nav .has-sub > .dropdown-item { font-weight: 600; }

.nl-nav-toggle,
.nl-nav-search {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 42px;
    padding: 0 .9rem;
    border: 1px solid var(--nl-line);
    border-radius: 999px;
    background: #fff;
    color: var(--nl-ink);
    font-weight: 600;
    font-size: .92rem;
}
.nl-nav-toggle { margin-right: auto; }
.nl-nav-toggle i { font-size: 1.35rem; }
.nl-nav-toggle:focus { box-shadow: none; }
.nl-nav-search { margin-left: .5rem; }

@media (max-width: 991.98px) {
    .nl-nav .container { flex-wrap: wrap; padding-block: .55rem; }
    .nl-nav .navbar-collapse { flex-basis: 100%; }
    .nl-nav .navbar-nav { padding: .5rem 0 .75rem; }
    .nl-nav .nav-link { min-height: 48px; padding: 0 .75rem; border-radius: var(--nl-radius-sm); }
    .nl-nav .nav-link::after { display: none; }
    .nl-nav .nav-link.active { background: var(--nl-primary-50); }
    .nl-nav .nav-link.dropdown-toggle::before { right: .9rem; }
    .nl-nav .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .25rem 1rem; background: transparent; }
}

@media (min-width: 992px) {
    .nl-nav .nav-item-home .nav-link { padding-inline: .75rem; }
    /* Nunca cortar itens: se não couberem, quebram em duas linhas. */
    .nl-nav .navbar-nav { flex-wrap: wrap; row-gap: 0; }
}

/* Menus com muitos itens (o oficial tem 9, em caixa alta): mais compactos em telas médias. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nl-nav .nav-link { padding: 0 .55rem; font-size: .84rem; }
    .nl-nav .nav-link.dropdown-toggle { padding-right: 1.25rem; }
    .nl-nav .nav-link.dropdown-toggle::before { right: .3rem; font-size: .62rem; }
    .nl-nav .nav-link::after { left: .55rem; right: .55rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nl-nav .nav-link { min-height: 52px; padding: 0 .4rem; font-size: .76rem; }
    .nl-nav .nav-link.dropdown-toggle { padding-right: 1.05rem; }
    .nl-nav .nav-link.dropdown-toggle::before { right: .2rem; font-size: .58rem; }
    .nl-nav .nav-link::after { left: .4rem; right: .4rem; }
}

@media (max-width: 991.98px) {
    .nl-brandbar-inner { padding-block: 1rem; }
    .nl-brandbar .nl-search { display: none; }
}

@media (max-width: 767.98px) {
    .nl-topbar-inner { gap: .5rem; }
    .nl-topbar-links { gap: .9rem; }
    .nl-topbar-links span { font-size: .78rem; }
    .nl-a11y-label, .nl-social { display: none; }
    .nl-a11y button { min-width: 30px; padding: 0 .45rem; }
    .nl-brand-mark { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; }
    .nl-brand-tagline { display: none; }
    .nl-brand { gap: .75rem; }
    .nl-brand img, .nl-brand .custom-logo { max-height: 56px; max-width: 120px; }
    .nl-brand-text { padding-left: .75rem; }
    .nl-brandbar { background: #fff; }
}

@media (max-width: 400px) {
    /* só ícone, mas o nome continua disponível para leitores de tela */
    .nl-topbar-links a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nl-topbar-links a { min-width: 32px; justify-content: center; }
    .nl-topbar-links a i { font-size: 1rem; }
}

.nl-search-modal .modal-content { border: 0; border-radius: var(--nl-radius-lg); }
.nl-search-modal .modal-header { border: 0; padding-bottom: 0; }

/* =========================================================================
   3. DESTAQUE DA HOME
   ========================================================================= */

.nl-hero { padding: 1.75rem 0 2.25rem; background: linear-gradient(180deg, var(--nl-bg-alt) 0%, #fff 100%); }

.nl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .nl-hero-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 1.5rem; align-items: stretch; }
    .nl-hero-grid.is-single { grid-template-columns: minmax(0, 1fr); }
}

.nl-hero-main {
    position: relative;
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    box-shadow: var(--nl-shadow-lg);
    background: var(--nl-primary-900);
}
.nl-hero-main .carousel-inner { height: 100%; }
.nl-hero-main .carousel-item { height: 100%; }

.nl-hero-slide {
    position: relative;
    height: clamp(340px, 52vw, 500px);
    margin: 0;
}
.nl-hero-grid.is-single .nl-hero-slide { height: clamp(340px, 42vw, 480px); }

.nl-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 7s linear;
}
.carousel-item.active .nl-hero-img { transform: scale(1.08); }

.nl-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 16, 42, 0) 25%, rgba(2, 16, 42, .55) 55%, rgba(2, 16, 42, .92) 100%);
    pointer-events: none;
}

.nl-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    padding-right: clamp(1.25rem, 3vw, 9rem);
    color: #fff;
}
.nl-hero-title {
    margin: .7rem 0 .55rem;
    color: #fff;
    font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.18;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-hero-title a { color: #fff; }
.nl-hero-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.nl-hero-title a:focus-visible { outline: none; }
.nl-hero-title a:focus-visible::after { outline: 3px solid var(--nl-accent); outline-offset: -3px; border-radius: var(--nl-radius-lg); }
.nl-hero-excerpt {
    max-width: 62ch;
    margin: 0 0 .7rem;
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-hero-meta { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .8); }

.nl-hero-controls {
    position: absolute;
    right: clamp(1rem, 2.5vw, 1.75rem);
    bottom: clamp(1rem, 2.5vw, 1.75rem);
    z-index: 3;
    display: flex;
    gap: .4rem;
}
.nl-hero-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(2, 16, 42, .45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.nl-hero-btn:hover { background: var(--nl-accent); border-color: var(--nl-accent); color: #111; }

/* Lista lateral */
.nl-hero-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.nl-hero-side-title {
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nl-primary);
}
.nl-hero-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
    margin: 0 0 .9rem;
    padding: 0;
    list-style: none;
}
.nl-hero-list li { flex: 1; display: flex; }

.nl-hero-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .7rem;
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    background: #fff;
    color: var(--nl-ink);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--nl-ease);
}
.nl-hero-item:hover { color: var(--nl-ink); border-color: var(--nl-primary-100); box-shadow: var(--nl-shadow); transform: translateX(2px); }
.nl-hero-item.is-active { border-color: var(--nl-primary); box-shadow: 0 0 0 1px var(--nl-primary), var(--nl-shadow); }

.nl-hero-item-media {
    flex: none;
    width: 92px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--nl-primary-50);
}
.nl-hero-item-media img { width: 100%; height: 100%; object-fit: cover; }

.nl-hero-item-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nl-hero-item-cat { color: var(--nl-primary); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nl-hero-item-title {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-hero-item-date { color: var(--nl-muted); font-size: .75rem; }

.nl-hero-item-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--nl-primary);
    transform: scaleX(0);
    transform-origin: left;
}
.nl-hero-item.is-active .nl-hero-item-progress { animation: nl-progress var(--nl-hero-interval, 7000ms) linear forwards; }
.nl-hero.is-paused .nl-hero-item-progress,
.nl-hero:hover .nl-hero-item.is-active .nl-hero-item-progress { animation-play-state: paused; }
.nl-hero.is-paused .nl-hero-item.is-active .nl-hero-item-progress { animation: none; transform: scaleX(1); opacity: .35; }

@keyframes nl-progress { to { transform: scaleX(1); } }

/* Celular/tablet: lista lateral vira faixa com rolagem horizontal */
@media (max-width: 991.98px) {
    .nl-hero { padding-top: 1rem; }
    .nl-hero-main { border-radius: var(--nl-radius); }
    .nl-hero-slide { height: clamp(320px, 88vw, 460px); }
    .nl-hero-caption { padding-right: 1.25rem; padding-bottom: 4.25rem; }
    .nl-hero-controls { left: 1.25rem; right: auto; bottom: 1rem; }
    .nl-hero-excerpt { display: none; }
    .nl-hero-list {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: .4rem;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        scrollbar-width: thin;
    }
    .nl-hero-list li { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
    .nl-hero-item:hover { transform: none; }
    .nl-hero-item-media { width: 72px; }
}

/* =========================================================================
   4. SEÇÕES, CARTÕES, ACESSO RÁPIDO
   ========================================================================= */

.nl-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.nl-section.is-tight { padding: clamp(1.75rem, 3.5vw, 3rem) 0; }
.nl-section.is-alt { background: var(--nl-bg-alt); }
.nl-section[hidden] { display: none; }

.nl-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.nl-section-title {
    margin: 0;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.02em;
}
.nl-section-title.is-sm { font-size: 1.2rem; margin: 2.5rem 0 1rem; }

/* Grade de cartões */
.nl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
}

.nl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    overflow: hidden;
    box-shadow: var(--nl-shadow-sm);
    transition: transform .25s var(--nl-ease), box-shadow .25s, border-color .25s;
}
.nl-card:hover { transform: translateY(-4px); box-shadow: var(--nl-shadow-lg); border-color: transparent; }
.nl-card:focus-within { box-shadow: 0 0 0 3px var(--nl-accent), var(--nl-shadow); }

.nl-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--nl-primary-50); }
.nl-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--nl-ease); }
.nl-card:hover .nl-card-media img { transform: scale(1.05); }
.nl-card-media img.is-placeholder { object-fit: contain; padding: 18%; opacity: .6; }

.nl-card-body { display: flex; flex-direction: column; gap: .55rem; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.nl-card-body .nl-badge { align-self: flex-start; }
.nl-card-title {
    margin: 0;
    font-size: 1.07rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-card-title a { color: var(--nl-ink); }
.nl-card:hover .nl-card-title a { color: var(--nl-primary); }
.nl-card-title a:focus-visible { outline: none; }
.nl-card-excerpt {
    margin: 0;
    color: var(--nl-muted);
    font-size: .92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-card-meta { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .35rem; color: var(--nl-muted); font-size: .8rem; }

/* Acesso rápido */
.nl-quick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nl-quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    background: #fff;
    color: var(--nl-ink);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--nl-ease);
}
.nl-quick-item:hover { color: var(--nl-ink); border-color: var(--nl-primary-100); box-shadow: var(--nl-shadow); transform: translateY(-2px); }
.nl-quick-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--nl-primary-50);
    color: var(--nl-primary);
    font-size: 1.4rem;
    transition: background-color .2s, color .2s;
}
.nl-quick-item:hover .nl-quick-icon { background: var(--nl-primary); color: #fff; }
.nl-quick-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.nl-quick-title { font-weight: 600; line-height: 1.3; }
.nl-quick-desc { color: var(--nl-muted); font-size: .82rem; line-height: 1.4; }
.nl-quick-arrow { color: var(--nl-muted); transition: transform .2s var(--nl-ease), color .2s; }
.nl-quick-item:hover .nl-quick-arrow { color: var(--nl-primary); transform: translateX(3px); }

.nl-empty {
    padding: 3rem 1.5rem;
    border: 1px dashed var(--nl-line);
    border-radius: var(--nl-radius);
    background: #fff;
    text-align: center;
    color: var(--nl-muted);
}
.nl-empty > i { display: block; margin-bottom: .75rem; font-size: 2.4rem; color: var(--nl-primary-100); }
.nl-empty p { margin: 0 0 .5rem; }

/* =========================================================================
   5. PÁGINAS INTERNAS
   ========================================================================= */

.nl-page-header {
    position: relative;
    padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.5rem);
    background:
        radial-gradient(circle at 92% 10%, rgba(var(--nl-primary-rgb), .09) 0, transparent 38%),
        linear-gradient(180deg, var(--nl-bg-alt) 0%, #fff 100%);
    border-bottom: 1px solid var(--nl-line);
}
.nl-page-title {
    margin: 0;
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-wrap: balance;
}
.nl-page-title .bi { color: var(--nl-primary); margin-right: .2rem; }
.nl-page-lead { max-width: 70ch; margin: .75rem 0 0; color: var(--nl-muted); font-size: 1.05rem; line-height: 1.6; }
.nl-page-header .lead { margin: .75rem 0 0; color: var(--nl-muted); }
.nl-count {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .6rem;
    border-radius: 999px;
    background: var(--nl-primary-50);
    color: var(--nl-primary);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Trilha de navegação */
.nl-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    color: var(--nl-muted);
}
.nl-breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.nl-breadcrumb li + li::before { content: '\F285'; font-family: 'bootstrap-icons'; font-size: .65rem; opacity: .6; }
.nl-breadcrumb a { color: var(--nl-muted); }
.nl-breadcrumb a:hover { color: var(--nl-primary); text-decoration: underline; }
.nl-breadcrumb [aria-current] { color: var(--nl-ink); font-weight: 500; }

/* Filtro por categoria */
.nl-filter ul {
    display: flex;
    gap: .5rem;
    margin: 0 0 1.75rem;
    padding: 0 0 .25rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}
.nl-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 1rem;
    border: 1px solid var(--nl-line);
    border-radius: 999px;
    background: #fff;
    color: var(--nl-text);
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
}
.nl-filter a:hover { border-color: var(--nl-primary); color: var(--nl-primary); }
.nl-filter a[aria-current] { background: var(--nl-primary); border-color: var(--nl-primary); color: #fff; }

/* Paginação */
.nl-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}
.nl-pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .6rem;
    border: 1px solid var(--nl-line);
    border-radius: 12px;
    background: #fff;
    color: var(--nl-ink);
    font-weight: 500;
}
.nl-pagination a.page-numbers:hover { border-color: var(--nl-primary); color: var(--nl-primary); }
.nl-pagination .page-numbers.current { background: var(--nl-primary); border-color: var(--nl-primary); color: #fff; }
.nl-pagination .page-numbers.dots { border: 0; background: none; }

/* Página com barra lateral */
.nl-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.nl-full { display: block; }
@media (min-width: 992px) {
    .nl-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; }
    .nl-sidebar { position: sticky; top: calc(var(--nl-nav-h) + 1.5rem); align-self: start; }
}
.nl-page-cover { margin: 0 0 2rem; border-radius: var(--nl-radius); overflow: hidden; }
.nl-page-cover img { width: 100%; }

.nl-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.nl-widget { padding: 1.35rem; border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: #fff; }
.nl-widget-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem; font-size: 1rem; font-weight: 600; }
.nl-widget-title .bi { color: var(--nl-primary); }
.nl-widget p { color: var(--nl-muted); font-size: .9rem; }
.nl-widget .nl-btn + .nl-btn { margin-top: .5rem; }
.nl-widget.is-help { background: var(--nl-primary-50); border-color: var(--nl-primary-100); }
.nl-widget-list { margin: 0; padding: 0; list-style: none; }
.nl-widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .25rem;
    border-bottom: 1px solid var(--nl-line);
    color: var(--nl-text);
    font-size: .92rem;
}
.nl-widget-list li:last-child a { border-bottom: 0; }
.nl-widget-list a:hover { color: var(--nl-primary); }
.nl-widget-list .bi { font-size: .75rem; opacity: .5; }

/* Conteúdo do plugin de documentos */
.nl-doc-content { max-width: 1000px; }

/* =========================================================================
   6. NOTÍCIA E TIPOGRAFIA DE LEITURA
   ========================================================================= */

.nl-narrow { max-width: 820px; }

.nl-article-header { padding: clamp(1.75rem, 4vw, 3rem) 0 1.75rem; }
.nl-article-title {
    margin: .85rem 0 0;
    font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.nl-article-lead { margin: 1rem 0 0; color: var(--nl-muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; }
.nl-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--nl-line);
    color: var(--nl-muted);
    font-size: .88rem;
}
.nl-article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.nl-article-meta .bi { color: var(--nl-primary); }

.nl-article-cover { margin: 0 auto 2.5rem; }
.nl-article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--nl-radius-lg); box-shadow: var(--nl-shadow); }
.nl-article-cover figcaption { margin-top: .6rem; color: var(--nl-muted); font-size: .85rem; text-align: center; }

.nl-prose { color: #2b3648; font-size: 1.075rem; line-height: 1.8; overflow-wrap: break-word; }
.nl-prose > * + * { margin-top: 1.15em; }
.nl-prose p { margin-bottom: 0; }
.nl-prose :is(h2, h3, h4):not(.mdocs *) { margin-top: 2em; margin-bottom: .2em; line-height: 1.3; }
.nl-prose h2 { font-size: 1.55rem; }
.nl-prose h3 { font-size: 1.28rem; }
.nl-prose h4 { font-size: 1.1rem; }
.nl-prose a:not(.mdocs a, .btn, .nl-btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nl-prose a:not(.mdocs a, .btn, .nl-btn):hover { text-decoration-thickness: 2px; }
.nl-prose :is(ul, ol):not(.mdocs *) { padding-left: 1.4rem; margin-bottom: 0; }
.nl-prose li:not(.mdocs *) + li { margin-top: .35em; }
.nl-prose li:not(.mdocs *)::marker { color: var(--nl-primary); }
.nl-prose img:not(.mdocs img) { border-radius: var(--nl-radius); }
.nl-prose figure { margin-inline: 0; }
.nl-prose figcaption, .nl-prose .wp-element-caption { color: var(--nl-muted); font-size: .88rem; text-align: center; margin-top: .5rem; }
.nl-prose blockquote {
    margin-inline: 0;
    padding: 1.1rem 1.4rem;
    border-left: 4px solid var(--nl-accent);
    border-radius: 0 var(--nl-radius) var(--nl-radius) 0;
    background: var(--nl-bg-alt);
    color: var(--nl-ink);
    font-size: 1.1rem;
    font-style: italic;
}
.nl-prose blockquote p { margin: 0; }
/* Tabelas escritas no editor. A lista de documentos (.mdocs) tem estilo próprio: com
   display:block ela encolhia até a largura do conteúdo em vez de ocupar a coluna. */
.nl-prose table:not(.mdocs table) { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.nl-prose table:not(.mdocs table) :is(th, td) { padding: .65rem .8rem; border: 1px solid var(--nl-line); text-align: left; }
.nl-prose table:not(.mdocs table) th { background: var(--nl-bg-alt); color: var(--nl-ink); font-weight: 600; }
.nl-prose .mdocs table { display: table; width: 100%; }
/* Regras de prosa (listas, links, títulos) não se aplicam dentro da lista de documentos. */
.nl-prose iframe, .nl-prose video { max-width: 100%; border-radius: var(--nl-radius); }
.nl-prose hr { margin-block: 2.5rem; border-color: var(--nl-line); opacity: 1; }

.nl-article-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nl-line);
}
.nl-updated { margin: 0; color: var(--nl-muted); font-size: .88rem; }

.nl-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.nl-tags a {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--nl-bg-alt);
    color: var(--nl-text);
    font-size: .85rem;
}
.nl-tags a:hover { background: var(--nl-primary-50); color: var(--nl-primary); }

.nl-share { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.nl-share-label { margin-right: .25rem; color: var(--nl-muted); font-size: .85rem; font-weight: 500; }
.nl-share-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nl-line);
    border-radius: 50%;
    background: #fff;
    color: var(--nl-text);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.nl-share-btn:hover { color: #fff; border-color: transparent; }
.nl-share-btn.is-whatsapp:hover { background: #128c4b; }
.nl-share-btn.is-facebook:hover { background: #1460d6; }
.nl-share-btn.is-twitter-x:hover { background: #111; }
.nl-share-btn.is-linkedin:hover { background: #0a66c2; }
.nl-share-btn.is-copy:hover { background: var(--nl-primary); }
.nl-share-btn.is-done { background: #198754; border-color: #198754; color: #fff; }
.nl-share-btn.is-done .bi::before { content: '\F26E'; /* bi-check-lg */ }

.nl-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2.5rem 0 3rem; }
.nl-postnav-link {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    color: var(--nl-ink);
    transition: border-color .2s, box-shadow .2s;
}
.nl-postnav-link:hover { color: var(--nl-ink); border-color: var(--nl-primary-100); box-shadow: var(--nl-shadow); }
.nl-postnav-link.is-next { text-align: right; grid-column: -2; }
.nl-postnav-label { color: var(--nl-primary); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nl-postnav-title { font-weight: 600; line-height: 1.35; }

/* =========================================================================
   7. BUSCA E 404
   ========================================================================= */

.nl-results { margin: 0; padding: 0; list-style: none; }
.nl-result { padding: 1.35rem 0; border-bottom: 1px solid var(--nl-line); }
.nl-result:first-child { padding-top: 0; }
.nl-result-type {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--nl-primary);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nl-result-title { margin: .35rem 0 .4rem; font-size: 1.2rem; line-height: 1.35; }
.nl-result-title a { color: var(--nl-ink); }
.nl-result-title a:hover { color: var(--nl-primary); text-decoration: underline; text-underline-offset: 3px; }
.nl-result-excerpt { margin: 0 0 .4rem; color: var(--nl-text); line-height: 1.6; }
.nl-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 0; color: var(--nl-muted); font-size: .82rem; }
.nl-result-url { color: #1b7f4b; word-break: break-all; }
.nl-results mark, .nl-result mark { padding: 0 .15em; border-radius: 3px; background: #fff1b8; color: inherit; }
.nl-tips { display: inline-block; margin: .5rem 0 0; padding-left: 1.2rem; text-align: left; font-size: .92rem; }

.nl-404 { text-align: center; }
.nl-404 .nl-search { margin-inline: auto; }
.nl-404 .nl-page-lead { margin-inline: auto; }
.nl-404-code {
    margin: 0;
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(135deg, var(--nl-primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nl-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.5rem 0 1rem; }
.nl-404 .nl-quick { text-align: left; }

/* Mapa do site */
.nl-sitemap [hidden] { display: none !important; }
.nl-sitemap-tools {
    position: sticky;
    top: calc(var(--nl-nav-h) + .5rem);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    box-shadow: var(--nl-shadow-sm);
}
.nl-sitemap-filter { position: relative; flex: 1 1 320px; }
.nl-sitemap-filter i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--nl-muted); }
.nl-sitemap-filter input {
    width: 100%;
    height: 46px;
    padding: 0 1rem 0 2.6rem;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    font-size: .95rem;
}
.nl-sitemap-filter input:focus { outline: none; border-color: var(--nl-primary); box-shadow: 0 0 0 4px rgba(var(--nl-primary-rgb), .15); }
.nl-sitemap-count { margin: 0; color: var(--nl-primary); font-size: .88rem; font-weight: 600; }
.nl-sitemap-count:empty { display: none; }
.nl-sitemap-jump { display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; }
.nl-sitemap-jump a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--nl-bg-alt);
    color: var(--nl-text);
    font-size: .82rem;
    font-weight: 500;
}
.nl-sitemap-jump a:hover { background: var(--nl-primary-50); color: var(--nl-primary); }

.nl-sitemap-section { margin-bottom: 3rem; scroll-margin-top: calc(var(--nl-nav-h) + 9rem); }
.nl-sitemap-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; font-size: 1.35rem; font-weight: 700; }
.nl-sitemap-title .bi { color: var(--nl-primary); }

.nl-sitemap-cards { columns: 4 250px; column-gap: 1rem; }
.nl-sitemap-card { display: inline-block; width: 100%; margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: #fff; break-inside: avoid; }
.nl-sitemap-card .nl-sitemap-list.is-columns { columns: 1; }
.nl-sitemap-card-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .65rem; padding-bottom: .6rem; border-bottom: 1px solid var(--nl-line); font-size: .95rem; font-weight: 700; letter-spacing: .01em; }
.nl-sitemap-card-title > .bi { color: var(--nl-primary); }
.nl-sitemap-card-title:last-child { margin: 0; padding: 0; border: 0; }
.nl-sitemap-card-title a { color: var(--nl-ink); }

.nl-sitemap-list { margin: 0; padding: 0; list-style: none; }
.nl-sitemap-list li { padding: .22rem 0; break-inside: avoid; }
.nl-sitemap-list.is-sub { margin: .2rem 0 .2rem .35rem; padding-left: .75rem; border-left: 2px solid var(--nl-line); }
.nl-sitemap-list.is-columns { columns: 3 260px; column-gap: 2rem; }
.nl-sitemap-link { color: var(--nl-text); font-size: .92rem; line-height: 1.4; }
.nl-sitemap-link:hover { color: var(--nl-primary); text-decoration: underline; text-underline-offset: 3px; }
.nl-sitemap-link .bi { color: var(--nl-primary); font-size: .85em; }
.nl-sitemap-link.is-strong { font-weight: 600; color: var(--nl-primary); }
.nl-sitemap-label { color: var(--nl-ink); font-weight: 600; font-size: .92rem; }
.nl-sitemap-parent { margin-left: .35rem; color: var(--nl-muted); font-size: .78rem; }

.nl-sitemap-letters { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.25rem; }
.nl-sitemap-letters a {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--nl-line);
    border-radius: 10px;
    color: var(--nl-ink);
    font-weight: 600;
}
.nl-sitemap-letters a:hover { border-color: var(--nl-primary); background: var(--nl-primary); color: #fff; }
.nl-sitemap-az { columns: 3 280px; column-gap: 2rem; }
.nl-sitemap-letter { break-inside: avoid; margin-bottom: 1.25rem; scroll-margin-top: calc(var(--nl-nav-h) + 9rem); }
.nl-sitemap-letter-title {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 0 .4rem;
    border-radius: 8px;
    background: var(--nl-primary);
    color: #fff;
    font-size: 1rem;
}
.nl-sitemap-empty { margin-top: 1rem; }
@media (max-width: 767.98px) {
    .nl-sitemap-tools { position: static; }
}

/* =========================================================================
   8. CHAMADA, RODAPÉ, UTILITÁRIOS
   ========================================================================= */

.nl-cta { background: linear-gradient(110deg, var(--nl-primary) 0%, #0a57d6 100%); color: #fff; }
.nl-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding-block: 2.25rem;
}
.nl-cta-title { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); font-weight: 700; }
.nl-cta-text { margin: 0; color: rgba(255, 255, 255, .85); }
.nl-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.nl-footer { background: var(--nl-primary-900); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.nl-footer a { color: rgba(255, 255, 255, .85); }
.nl-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.nl-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding-block: 3.25rem 2.5rem;
}
@media (min-width: 768px) { .nl-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .nl-footer-grid { grid-template-columns: 1.3fr .9fr .9fr 1.3fr; gap: 2.5rem; } }

.nl-brand.is-footer:hover { text-decoration: none; }
.nl-brand.is-footer .nl-brand-mark { width: 46px; height: 46px; font-size: 1.35rem; }
.nl-brand.is-footer .nl-brand-name { font-size: 1.2rem; color: #fff; }
.nl-footer-text { margin: 1rem 0; line-height: 1.6; }
.nl-social.is-footer .social-menu a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.nl-footer-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nl-footer-links { margin: 0; padding: 0; list-style: none; }
.nl-footer-links li { margin: 0 0 .55rem; }
.nl-footer-links.is-sub { margin: .5rem 0 0 .85rem; padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .15); font-size: .87rem; }
.nl-footer-links span { color: #fff; font-weight: 500; }

.nl-map {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--nl-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
}
.nl-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nl-footer-maplink { display: inline-flex; align-items: center; gap: .35rem; margin-top: .65rem; font-size: .87rem; }

.nl-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.nl-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding-block: 1.25rem;
}
.nl-footer-bottom p { margin: 0; }
.nl-footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.nl-footer-bottom .nl-linklike { color: rgba(255, 255, 255, .85); }
.nl-footer-bottom .nl-linklike:hover { color: #fff; text-decoration: underline; }
.nl-footer-shortcuts { opacity: .65; }

.nl-backtotop {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem; /* acima do botão do VLibras */
    z-index: 1035;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nl-primary);
    color: #fff;
    box-shadow: var(--nl-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.nl-backtotop.is-visible { opacity: 1; visibility: visible; transform: none; }
.nl-backtotop:hover { background: var(--nl-primary-700); color: #fff; }

.nl-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 2000;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: var(--nl-ink);
    color: #fff;
    font-size: .9rem;
    box-shadow: var(--nl-shadow-lg);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.nl-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Conteúdo legado dos templates (Transparência, Ouvidoria…) */
.site-content .card { border-radius: var(--nl-radius); border-color: var(--nl-line); }
.site-content .card.shadow-sm { box-shadow: var(--nl-shadow-sm) !important; }
.site-content .btn { border-radius: 999px; font-weight: 500; }

/* =========================================================================
   9. MOVIMENTO REDUZIDO E IMPRESSÃO
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .carousel-item.active .nl-hero-img { transform: none; }
}

@media print {
    .nl-topbar, .nl-nav, .nl-search, .nl-cta, .nl-footer, .nl-share, .nl-postnav, .nl-backtotop, [vw], .cookie-banner, .nl-hero-controls { display: none !important; }
    .nl-brandbar { background: none !important; color: #000; }
    .nl-brandbar::before { display: none; }
    .nl-brand, .nl-brand-name { color: #000 !important; }
    .nl-prose { font-size: 12pt; color: #000; }
    .nl-prose a::after { content: ' (' attr(href) ')'; font-size: .85em; }
}
