:root {
    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --brand-900: #14072f;
    --brand-800: #1d0d43;
    --brand-700: #27155b;
    --accent-700: #145f96;
    --accent-600: #1d8ecf;
    --accent-500: #3da4dc;
    --accent-rgb: 29, 142, 207;
    --brand-rgb: 20, 7, 47;
    --surface: #ffffff;
    --surface-strong: #f7faff;
    --surface-muted: #eef4fb;
    --surface-elevated: rgba(255, 255, 255, 0.9);
    --border: rgba(18, 33, 61, 0.1);
    --border-strong: rgba(18, 33, 61, 0.18);
    --text: #142033;
    --text-soft: #24334c;
    --muted: #62718c;
    --muted-strong: #4f5f79;
    --success-bg: #eefbf4;
    --success-border: #b5e7ca;
    --success-text: #19603d;
    --danger-bg: #fff2f2;
    --danger-border: #f5c2c7;
    --danger-text: #8d2431;
    --warning-bg: #fff8e8;
    --warning-border: #ead7a0;
    --warning-text: #7c5a06;
    --info-bg: #edf7ff;
    --info-border: #b5daf5;
    --info-text: #1e5d84;
    --radius-sm: 0.4rem;
    --radius-md: 0.55rem;
    --radius-lg: 0.75rem;
    --radius-xl: 0.95rem;
    --shadow-soft: 0 1px 3px rgba(14, 27, 52, 0.06), 0 4px 12px rgba(14, 27, 52, 0.04);
    --shadow-panel: 0 2px 6px rgba(14, 27, 52, 0.07), 0 8px 24px rgba(14, 27, 52, 0.05);
    --shadow-focus: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
    --transition-base: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
input,
button,
textarea,
select {
    font-family: var(--font-sans);
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background-color: #f2f4f7;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    display: none;
}

body.bg-body-tertiary {
    background-color: #f2f4f7 !important;
}

::selection {
    background-color: rgba(var(--accent-rgb), 0.2);
    color: var(--brand-900);
}

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

a {
    color: var(--accent-700);
    text-decoration-color: rgba(var(--accent-rgb), 0.3);
    transition:
        color var(--transition-base),
        text-decoration-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base),
        background-color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--accent-600);
    text-decoration-color: currentColor;
}

p {
    color: var(--muted-strong);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-bottom: 0.85rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1,
.h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
}

h2,
.h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

h3,
.h3 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h4,
.h4 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

h5,
.h5 {
    font-size: 1.08rem;
}

h6,
.h6 {
    font-size: 0.84rem;
}

small,
.small {
    font-size: 0.9rem;
}

hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--border);
    opacity: 1;
}

.container {
    max-width: 1180px;
}

.text-muted,
.text-secondary,
.text-body-secondary {
    color: var(--muted) !important;
}

.text-body-emphasis,
.link-body-emphasis {
    color: var(--text) !important;
}

.bg-white,
.bg-body {
    background-color: var(--surface) !important;
}

.bg-body-tertiary {
    background-color: transparent !important;
}

.bg-dark {
    background-color: #09111f !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.rounded-3 {
    border-radius: var(--radius-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-soft) !important;
}

.public-site main.page-shell {
    padding-top: 0.25rem;
    padding-bottom: 2rem;
}

.page-breadcrumb .breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.page-breadcrumb .breadcrumb-item {
    color: var(--muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(98, 113, 140, 0.7);
}

.breadcrumb a {
    color: var(--muted-strong);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--accent-700);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

.page-hero {
    position: relative;
    padding: clamp(1.35rem, 2.6vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.page-hero::after {
    display: none;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--brand-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title {
    position: relative;
    z-index: 1;
    margin-bottom: 0.65rem;
    color: var(--text);
    text-wrap: balance;
}

.page-subtitle {
    position: relative;
    z-index: 1;
    max-width: 46rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
}

.page-hero + .destaques-section,
.page-hero + section[aria-label="Últimas notícias"],
.page-hero + .alert,
.page-hero + .vstack,
.page-hero + .row {
    margin-top: 1.25rem;
}

.home-heading {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
}

.home-title {
    margin-bottom: 0;
    color: var(--text);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.surface-panel,
.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--surface) !important;
    box-shadow: none;
}

.surface-panel:not(.card) {
    padding: clamp(1.2rem, 2.2vw, 1.55rem);
}

.card {
    overflow: hidden;
}

.card-body {
    padding: clamp(1.2rem, 2vw, 1.5rem);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-strong) !important;
    color: var(--text);
}

.news-card,
.destaque-card,
.sidebar-card,
.contact-tips-card,
.static-page-panel,
.article-shell {
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.news-card:hover,
.news-card:focus-within,
.destaque-card:hover,
.destaque-card:focus-within {
    border-color: rgba(var(--accent-rgb), 0.3) !important;
    box-shadow: var(--shadow-soft);
}

.tituloNews,
.tituloNewsHome,
.destaque-title,
.titulo-news-sidebar {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text);
}

.tituloNews > a,
.tituloNewsHome > a,
.destaque-title > a,
.titulo-news-sidebar {
    color: inherit;
    text-decoration: none;
}

.tituloNews > a:hover,
.tituloNews > a:focus,
.tituloNewsHome > a:hover,
.tituloNewsHome > a:focus,
.destaque-title > a:hover,
.destaque-title > a:focus,
.titulo-news-sidebar:hover,
.titulo-news-sidebar:focus {
    color: var(--accent-700);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.rounded-pill {
    border-radius: 999px !important;
}

.text-bg-secondary,
.badge-categoria,
.badge-categoria-footer {
    background: var(--accent-700) !important;
    color: #ffffff !important;
}

.text-bg-light,
.tag-chip-link {
    background: var(--surface-muted) !important;
    color: var(--accent-700) !important;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.text-bg-dark {
    background: var(--brand-800) !important;
    color: #ffffff !important;
}

.badge-categoria:hover,
.badge-categoria:focus,
.badge-categoria-footer:hover,
.badge-categoria-footer:focus,
.tag-chip-link:hover,
.tag-chip-link:focus,
.article-meta a.badge:hover,
.article-meta a.badge:focus {
    text-decoration: none;
    opacity: 0.88;
}

.tag-chip-link:hover,
.tag-chip-link:focus {
    background: rgba(var(--accent-rgb), 0.12) !important;
    color: var(--accent-700) !important;
}

.news-list {
    gap: 1rem;
}

.news-list .card-body,
.news-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.news-list .card-text,
.news-card .card-text {
    margin-bottom: 0;
}

.news-stream {
    padding-bottom: 0.25rem;
}

.news-stream-item + .news-stream-item {
    margin-top: 1rem;
}

.news-stream-item:last-child hr {
    display: none;
}

.sidebar-heading {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-strong);
}

.list-group {
    background: transparent;
}

.list-group-item {
    padding: 1rem 1.25rem;
    border-color: var(--border);
    background: transparent;
}

.list-group-item a {
    color: var(--text);
}

.list-group-item a:hover,
.list-group-item a:focus {
    color: var(--accent-700);
}

.article-shell .card-body,
.static-page-panel .card-body,
.contact-panel .card-body {
    padding: clamp(1.35rem, 2.4vw, 2rem);
}

.article-meta {
    gap: 0.6rem 0.45rem !important;
}

.article-summary {
    margin-bottom: 1.5rem;
    color: var(--text-soft);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.85;
}

.article-source {
    color: var(--muted);
}

.article-content {
    color: var(--text-soft);
    font-size: 1.03rem;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content > *:last-child {
    margin-bottom: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content pre {
    margin-bottom: 1.25rem;
}

.article-content p,
.article-content li {
    color: var(--text-soft);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.article-content h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.article-content h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.article-content h4 {
    font-size: 1.1rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.25rem;
}

.article-content blockquote {
    padding: 1.15rem 1.3rem;
    border-left: 4px solid var(--accent-600);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--surface-muted);
}

.article-content img,
.article-content iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.article-content pre {
    overflow-x: auto;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: #0e1728;
    color: #f4f7fc;
}

.article-content code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.4rem;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--brand-700);
}

.editorial-guidelines {
    border-color: rgba(var(--accent-rgb), 0.2) !important;
    background: rgba(var(--accent-rgb), 0.05) !important;
}

.tags-panel {
    position: relative;
}

.tags-panel h2 {
    margin-bottom: 1rem;
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 3.15rem;
    border: 1px solid rgba(18, 33, 61, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base);
}

.form-control,
.form-select,
textarea.form-control {
    padding: 0.88rem 1rem;
}

textarea.form-control {
    min-height: 12rem;
    resize: vertical;
}

.form-control::placeholder,
.form-select,
.form-text {
    color: var(--muted);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: var(--shadow-focus);
    background-color: #ffffff;
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
}

.btn:hover,
.btn:focus {
    opacity: 0.92;
}

.btn-primary,
.error-btn-primary {
    border: 0;
    background: var(--accent-700);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.error-btn-primary:hover,
.error-btn-primary:focus {
    background: var(--accent-600);
    color: #ffffff;
}

.btn-outline-secondary,
.error-btn-secondary {
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.error-btn-secondary:hover,
.error-btn-secondary:focus {
    color: var(--accent-700);
    border-color: var(--accent-700);
    background: transparent;
}

.btn-sm {
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
}

.btn-close {
    opacity: 0.55;
}

.btn-close:hover,
.btn-close:focus {
    opacity: 0.85;
}

.alert {
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.alert-success {
    border-color: var(--success-border);
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-danger {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.alert-warning {
    border-color: var(--warning-border);
    background: var(--warning-bg);
    color: var(--warning-text);
}

.alert-info,
.alert-secondary {
    border-color: var(--info-border);
    background: var(--info-bg);
    color: var(--info-text);
}

.paginacao-wrap,
.paginacao-wrap nav {
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 0.45rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.page-link:hover,
.page-link:focus,
.page-item.active .page-link {
    border-color: var(--accent-700);
    background: var(--accent-700);
    color: #ffffff;
}

.page-item.disabled .page-link {
    border-color: rgba(18, 33, 61, 0.06);
    background: rgba(255, 255, 255, 0.5);
    color: var(--muted);
    box-shadow: none;
}

.topo {
    position: relative;
    margin-bottom: 0;
    background: var(--brand-900) !important;
    border-bottom: 0 !important;
}

.topo::before {
    display: none;
}

.topo .container,
.menuCategorias .container {
    position: relative;
    z-index: 1;
}

.topo-brand {
    position: relative;
    z-index: 1;
}

.logo-topo {
    width: min(235px, 100%) !important;
    height: auto !important;
    max-height: 74px;
    object-fit: contain;
}

.search-topo {
    position: relative;
}

.search-topo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 1.1rem;
    height: 1.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='rgba(255,255,255,0.78)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m21 21-4.35-4.35m1.85-5.15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-topo-input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.1rem 0.9rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-topo-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-topo-input:focus {
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow:
        0 0 0 4px rgba(var(--accent-rgb), 0.16),
        0 16px 28px rgba(var(--brand-rgb), 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    outline: 0;
}

.search-topo-input:focus::placeholder {
    color: var(--muted);
}

.search-topo:focus-within::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='rgba(20,32,51,0.8)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m21 21-4.35-4.35m1.85-5.15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z'/%3E%3C/svg%3E");
}

.menuCategorias {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
}

.menu-categorias-lista {
    gap: 0.25rem;
}

.tituloCategoriaTopo {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.9rem !important;
    border-radius: 999px;
    color: var(--text) !important;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none !important;
}

.tituloCategoriaTopo:hover,
.tituloCategoriaTopo:focus {
    background: var(--surface-muted);
    color: var(--brand-700) !important;
}

.menu-btn-topo {
    padding: 0.55rem 0.78rem;
    border: 1px solid var(--border) !important;
    border-radius: 999px;
    background: var(--surface);
}

.menu-btn-topo:focus {
    box-shadow: var(--shadow-focus);
}

.menu-btn-topo .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(20,7,47,0.92)' stroke-width='2.1' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.destaques-section {
    padding-bottom: 1.25rem !important;
}

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

.destaque-card {
    display: grid;
    min-height: 100%;
    overflow: hidden;
}

.destaque-media {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--brand-rgb), 0.14));
}

.destaque-img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 320ms ease;
}

.destaque-card:hover .destaque-img,
.destaque-card:focus-within .destaque-img {
    transform: scale(1.04);
}

.destaque-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.2rem 1.25rem 1.3rem;
}

.destaque-title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.destaque-resumo {
    margin-bottom: 0;
    color: var(--muted);
}

.destaque-date {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.destaque-no-media .destaque-body {
    min-height: 100%;
    justify-content: center;
}

.footer {
    position: relative;
    margin-top: 2.5rem;
    padding-top: 0 !important;
    color: rgba(255, 255, 255, 0.86);
    background: #09111f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer::before {
    display: none;
}

.footer .container {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

.footer-brand {
    max-width: 250px;
}

.logo-footer {
    max-height: 84px;
    width: auto;
}

.footer-description {
    max-width: 20rem;
    color: rgba(255, 255, 255, 0.68);
}

.footer h2 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.categorias-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-left: 0;
    margin: 0;
}

.categorias-footer li {
    list-style: none;
}

.links-footer {
    margin-bottom: 1rem;
}

.links-footer a,
.footer .link-light {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.links-footer a:hover,
.links-footer a:focus,
.footer .link-light:hover,
.footer .link-light:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

.footer .btn-outline-secondary:hover,
.footer .btn-outline-secondary:focus {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.footer-copy {
    letter-spacing: 0.01em;
}

.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.error-shell {
    max-width: 52rem;
}

.error-card {
    position: relative;
    overflow: hidden;
}

.error-card::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 68%);
    pointer-events: none;
}

.error-code {
    margin-bottom: 0.65rem;
    color: var(--accent-700);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.error-message {
    max-width: 44rem;
}

.error-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--brand-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.error-actions .btn {
    min-width: 12.5rem;
}

.error-tips {
    margin: 1.4rem 0 0;
    padding-left: 0;
    list-style: none;
}

.error-tips li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--muted-strong);
}

.error-tips li + li {
    margin-top: 0.75rem;
}

.error-tips li::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-700), var(--accent-600));
}

.contact-tips-card ul {
    margin-bottom: 0;
}

.contact-tips-card li + li {
    margin-top: 0.6rem;
}

/* ================================================================
   DARK MODE
   Aplicado via JS: [data-theme="dark"] no elemento <html>.
   O script inline em head.php lê localStorage e detecta a preferência
   do SO para evitar o flash do tema incorreto no carregamento.
================================================================ */

:root[data-theme="dark"] {
    --surface: #111827;
    --surface-strong: #1a2438;
    --surface-muted: #1d2a3d;
    --surface-elevated: rgba(17, 24, 39, 0.95);
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #e2e8f2;
    --text-soft: #c4cedc;
    --muted: #7e8fa8;
    --muted-strong: #97a8c0;
    --success-bg: #0d2b1d;
    --success-border: #1d5c38;
    --success-text: #4cd98a;
    --danger-bg: #2b0d0d;
    --danger-border: #5c1e1e;
    --danger-text: #f87070;
    --warning-bg: #291907;
    --warning-border: #5c3c10;
    --warning-text: #fbbf24;
    --info-bg: #0d1e2e;
    --info-border: #1a3c5c;
    --info-text: #5fa4f9;
    --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.28);
    --shadow-panel: 0 28px 72px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"],
:root[data-theme="dark"] body,
:root[data-theme="dark"] body.bg-body-tertiary {
    background-color: #0d1729 !important;
}

:root[data-theme="dark"] body::before {
    display: none;
}

:root[data-theme="dark"] ::selection {
    background-color: rgba(var(--accent-rgb), 0.32);
    color: #e2e8f2;
}

:root[data-theme="dark"] .page-breadcrumb .breadcrumb {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--surface);
}

:root[data-theme="dark"] .page-hero {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--surface);
}

:root[data-theme="dark"] .surface-panel,
:root[data-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: var(--surface) !important;
}

:root[data-theme="dark"] .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: var(--surface-strong) !important;
}

:root[data-theme="dark"] .menuCategorias {
    background: var(--surface) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] #menuCategoriasNav {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(13, 23, 41, 0.98);
}

:root[data-theme="dark"] .tituloCategoriaTopo:hover,
:root[data-theme="dark"] .tituloCategoriaTopo:focus {
    background: var(--surface-muted);
    color: var(--accent-500) !important;
}

:root[data-theme="dark"] .menu-btn-topo {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .menu-btn-topo .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(200,210,230,0.9)' stroke-width='2.1' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(17, 24, 39, 0.88);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .form-control::placeholder {
    color: var(--muted);
}

:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus {
    border-color: rgba(var(--accent-rgb), 0.48);
    background: rgba(17, 24, 39, 0.98);
    color: var(--text);
}

:root[data-theme="dark"] .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

:root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-secondary:focus {
    border-color: rgba(var(--accent-rgb), 0.36);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--text);
}

:root[data-theme="dark"] .page-link {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(17, 24, 39, 0.88);
    color: var(--text);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .page-item.disabled .page-link {
    background: rgba(17, 24, 39, 0.5);
    color: var(--muted);
}

:root[data-theme="dark"] .list-group-item {
    border-color: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .text-bg-light,
:root[data-theme="dark"] .tag-chip-link {
    background: var(--surface-muted) !important;
    border-color: rgba(var(--accent-rgb), 0.2);
    color: var(--accent-500) !important;
}

:root[data-theme="dark"] .tag-chip-link:hover,
:root[data-theme="dark"] .tag-chip-link:focus {
    background: rgba(var(--accent-rgb), 0.14) !important;
    color: var(--accent-500) !important;
}

:root[data-theme="dark"] .editorial-guidelines {
    border-color: rgba(var(--accent-rgb), 0.18) !important;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), rgba(17, 24, 39, 0.96)) !important;
}

:root[data-theme="dark"] .article-content code {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-500);
}

:root[data-theme="dark"] .page-eyebrow,
:root[data-theme="dark"] .error-eyebrow {
    color: var(--accent-500);
}

/* ================================================================
   NEWSLETTER (footer – sempre escuro)
================================================================ */

.newsletter-footer {
    padding-top: 2rem;
}

.newsletter-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
    .newsletter-footer-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

.newsletter-footer-info {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .newsletter-footer-info {
        max-width: 22rem;
    }
}

.newsletter-footer-title {
    margin-bottom: 0.45rem;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.newsletter-footer-desc {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.newsletter-footer-form {
    flex: 1;
    min-width: 0;
}

.newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.newsletter-email-row {
    display: flex;
    gap: 0.6rem;
}

.newsletter-email-input {
    flex: 1;
    min-width: 0;
    min-height: 2.9rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color var(--transition-base),
        background-color var(--transition-base),
        box-shadow var(--transition-base);
}

.newsletter-email-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.newsletter-email-input:focus {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.newsletter-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-700), var(--accent-600));
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(var(--brand-rgb), 0.28);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.newsletter-submit-btn:hover,
.newsletter-submit-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(var(--brand-rgb), 0.34);
    outline: none;
}

.newsletter-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.newsletter-freq-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.25rem;
}

.newsletter-freq-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.newsletter-freq-options {
    display: flex;
    gap: 1.1rem;
}

.newsletter-freq-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    cursor: pointer;
}

.newsletter-freq-option input[type="radio"] {
    accent-color: var(--accent-500);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.newsletter-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.83rem;
    line-height: 1.55;
}

.newsletter-terms-row input[type="checkbox"] {
    accent-color: var(--accent-500);
    width: 1rem;
    height: 1rem;
    margin-top: 0.22rem;
    flex-shrink: 0;
    cursor: pointer;
}

.newsletter-terms-row a {
    color: rgba(var(--accent-rgb), 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.newsletter-terms-row a:hover,
.newsletter-terms-row a:focus {
    color: var(--accent-500);
}

.newsletter-error-msg {
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(92, 30, 30, 0.8);
    border-radius: 0.75rem;
    background: rgba(43, 13, 13, 0.75);
    color: #f87070;
    font-size: 0.88rem;
}

.newsletter-success-msg {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(29, 92, 56, 0.65);
    border-radius: var(--radius-md);
    background: rgba(13, 43, 29, 0.65);
}

.newsletter-success-msg strong {
    color: #4cd98a;
    font-size: 1rem;
}

.newsletter-success-msg p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
}

/* ================================================================
   THEME TOGGLE BUTTON (footer)
================================================================ */

.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.15rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
}

.btn-theme-toggle:hover,
.btn-theme-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    outline: none;
}

.btn-theme-toggle svg {
    width: 0.88rem;
    height: 0.88rem;
    flex-shrink: 0;
}

/* ================================================================
   MODAL (termos / privacidade)
================================================================ */

.nl-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    pointer-events: none;
}

.nl-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.nl-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 280ms ease;
}

.nl-modal.is-open .nl-modal-backdrop {
    background: rgba(0, 0, 0, 0.62);
    opacity: 1;
}

.nl-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.nl-modal.is-open .nl-modal-dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.nl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nl-modal-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nl-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base);
}

.nl-modal-close:hover,
.nl-modal-close:focus {
    background: var(--surface-muted);
    color: var(--text);
    outline: none;
}

.nl-modal-body {
    overflow-y: auto;
    padding: 1.5rem 1.5rem 2rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Link que abre modal nos termos */
.nl-modal-link {
    color: rgba(var(--accent-rgb), 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.nl-modal-link:hover,
.nl-modal-link:focus {
    color: var(--accent-500);
}

/* Dark mode: modal body já usa CSS vars - sem overrides adicionais */

/* ================================================================
   BOTÃO FLUTUANTE – chamada para newsletter
================================================================ */

.nl-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    gap: 0;
    opacity: 0;
    transform: translateY(0.75rem);
    pointer-events: none;
    transition:
        opacity 380ms ease,
        transform 380ms ease;
}

.nl-float.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nl-float-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem 0.75rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-700), var(--accent-600));
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(var(--brand-rgb), 0.36), 0 4px 12px rgba(0, 0, 0, 0.18);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.nl-float-cta:hover,
.nl-float-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(var(--brand-rgb), 0.4), 0 6px 16px rgba(0, 0, 0, 0.22);
    outline: none;
}

.nl-float-cta svg {
    flex-shrink: 0;
    opacity: 0.92;
}

.nl-float-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -0.45rem;
    right: -0.45rem;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(10, 17, 32, 0.82);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        color var(--transition-base);
}

.nl-float-dismiss:hover,
.nl-float-dismiss:focus {
    background: rgba(10, 17, 32, 0.96);
    color: #ffffff;
    outline: none;
}

@media (max-width: 479.98px) {
    .nl-float {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .nl-float-cta span {
        display: none;
    }

    .nl-float-cta {
        padding: 0.85rem;
        border-radius: 50%;
    }
}

@media (min-width: 992px) {
    .destaques-grid.destaques-count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destaques-grid.destaques-count-3,
    .destaques-grid.destaques-count-4 {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    }

    .destaques-grid.destaques-count-3 {
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .destaques-grid.destaques-count-4 {
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .destaques-grid.destaques-count-3 .destaque-primary {
        grid-row: 1 / span 2;
    }

    .destaques-grid.destaques-count-4 .destaque-primary {
        grid-row: 1 / span 3;
    }

    .destaque-primary .destaque-body {
        padding: 1.55rem 1.65rem 1.7rem;
    }

    .destaque-primary .destaque-title {
        font-size: clamp(1.6rem, 3vw, 2.35rem);
    }

    .destaque-primary .destaque-resumo {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .topo .container {
        justify-content: center;
        gap: 0.9rem;
    }

    .logo-topo {
        max-height: 62px;
        max-width: 195px;
    }

    .menuCategorias {
        position: relative;
        top: auto;
    }

    #menuCategoriasNav {
        margin-top: 0.85rem;
        padding: 0.7rem;
        border: 1px solid rgba(18, 33, 61, 0.08);
        border-radius: 1.15rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 32px rgba(15, 28, 50, 0.07);
    }

    .menu-categorias-lista {
        gap: 0.15rem;
    }

    .tituloCategoriaTopo {
        width: 100%;
        justify-content: flex-start;
    }

    .footer .container {
        padding-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .public-site main.page-shell {
        padding-bottom: 1rem;
    }

    .page-hero,
    .surface-panel:not(.card),
    .card,
    .error-card {
        border-radius: 1.35rem !important;
    }

    .page-hero {
        padding: 1.25rem;
    }

    .page-breadcrumb .breadcrumb {
        padding: 0.72rem 0.9rem;
        border-radius: 1.1rem;
    }

    .logo-topo {
        max-height: 56px;
        max-width: 176px;
        margin: 0 auto;
    }

    .search-topo {
        width: 100%;
    }

    .search-topo-input {
        min-height: 3.1rem;
        font-size: 0.96rem;
    }

    .destaque-img {
        min-height: 180px;
    }

    .article-summary {
        font-size: 1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-description {
        margin-right: auto;
        margin-left: auto;
    }

    .footer .logo-footer {
        max-height: 72px;
        margin-bottom: 0.5rem;
    }

    .footer .categorias-footer,
    .footer .links-footer {
        justify-content: center;
        text-align: center;
    }

    .error-actions .btn {
        width: 100%;
    }
}
