:root {
    --primary: #123b7a;
    --primary-bright: #2563eb;
    --primary-dark: #0a2b60;
    --secondary: #2e7d32;
    --accent: #f4b942;
    --background: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #eef3f9;
    --text: #172033;
    --muted: #566579;
    --border: #dce3ec;
    --code-bg: #0f172a;
    --header-top: #0d3975;
    --footer: #0b3470;
    --success: #1f7a3f;
    --danger: #b42318;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 35px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.15);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 22px;
    --container: 1180px;
    --transition: 180ms ease;
}

html[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-bright: #78b5ff;
    --primary-dark: #93c5fd;
    --secondary: #4ade80;
    --accent: #f6c85f;
    --background: #0b1120;
    --surface: #111827;
    --surface-soft: #182235;
    --text: #f1f5f9;
    --muted: #a4b1c3;
    --border: #263244;
    --code-bg: #060b16;
    --header-top: #07142a;
    --footer: #071a36;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.40);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-bright); text-decoration: none; }
a:hover { color: var(--primary); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #172033; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.65em;
    color: var(--text);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.15rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.2em; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow-container { max-width: 850px; }
.section-space { padding: 68px 0 78px; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 14px;
    background: var(--accent); color: #172033; border-radius: var(--radius-sm);
    transform: translateY(-150%); transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow {
    display: inline-block; margin-bottom: 10px; color: var(--primary); font-size: 0.74rem;
    font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow-light { color: #b9d5ff; }

.button {
    display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 0.92rem; font-weight: 750; line-height: 1.2; transition: transform var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .button-primary { color: #07142a; }
.button-primary:hover { background: var(--primary-dark); color: #fff; }
html[data-theme="dark"] .button-primary:hover { color: #07142a; }
.button-outline { background: transparent; color: var(--primary); border-color: color-mix(in srgb, var(--primary-bright), transparent 20%); }
.button-outline:hover { background: var(--primary); color: #fff; }
.button-light { background: #fff; color: #123b7a; }
.button-light:hover { background: #eef4ff; color: #0a2b60; }
.button-block { width: 100%; }
.text-link { font-size: 0.92rem; font-weight: 750; white-space: nowrap; }

/* Cabeçalho */
.site-header { position: relative; z-index: 100; background: var(--surface); box-shadow: var(--shadow-sm); }
.topbar { background: var(--header-top); color: #dceaff; font-size: 0.74rem; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-actions { display: flex; align-items: center; }
.theme-toggle {
    width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0;
    background: transparent; color: #fff; border-radius: 50%;
}
.theme-toggle:hover { background: rgba(255,255,255,.12); }
.main-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 272px 1fr 210px; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 240px; }
.primary-nav { display: flex; align-items: stretch; justify-content: center; gap: 28px; height: 82px; }
.primary-nav a {
    position: relative; display: flex; align-items: center; color: var(--text); font-size: 0.86rem; font-weight: 700;
}
.primary-nav a::after {
    content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px;
    background: var(--primary-bright); transform: scaleX(0); transform-origin: center; transition: transform var(--transition);
}
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--primary); }
.nav-search-link { display: none !important; }
.header-search {
    display: flex; align-items: center; height: 40px; background: var(--background);
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.header-search input { width: 100%; min-width: 0; padding: 8px 0 8px 12px; border: 0; outline: 0; background: transparent; color: var(--text); }
.header-search button { width: 42px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--text); }
.menu-toggle { display: none; }

/* Hero */
.hero-section { background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid { min-height: 490px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); align-items: center; gap: 42px; padding-block: 56px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 620px; font-size: clamp(2.2rem, 4.5vw, 3.65rem); }
.hero-copy p { max-width: 580px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art::before {
    content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
    background: color-mix(in srgb, var(--primary-bright), transparent 84%); filter: blur(45px);
}
.hero-art img { position: relative; filter: drop-shadow(0 26px 35px rgba(18, 59, 122, 0.16)); }

.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; align-items: start; }
.main-column { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card {
    min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.category-badge {
    position: absolute; top: 12px; right: 12px; padding: 5px 9px; background: var(--primary-bright); color: #fff;
    border-radius: 4px; font-size: 0.64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.post-card:nth-child(3n+2) .category-badge { background: var(--secondary); }
.post-card-body { padding: 19px 20px 18px; }
.post-card h2 { margin-bottom: 10px; font-size: 1.24rem; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--primary); }
.post-card p { display: -webkit-box; min-height: 4.8em; margin-bottom: 18px; overflow: hidden; color: var(--muted); font-size: .95rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.center-action { display: flex; justify-content: center; margin-top: 30px; }

/* Sidebar */
.sidebar { display: grid; gap: 26px; }
.sidebar-search { display: flex; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sidebar-search input { min-width: 0; width: 100%; padding: 10px 12px; border: 0; outline: 0; background: transparent; color: var(--text); }
.sidebar-search button { width: 45px; flex: 0 0 45px; border: 0; background: var(--primary); color: #fff; font-weight: 800; }
.sidebar-widget { min-width: 0; }
.sidebar-widget > h2 { padding-bottom: 10px; border-bottom: 2px solid var(--border); font-size: 1.05rem; }
.sidebar-widget > h2::after { content: ""; display: block; width: 42px; height: 2px; margin-top: 10px; margin-bottom: -12px; background: var(--primary-bright); }
.editorial-post-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.editorial-post-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.editorial-post-list li:first-child { padding-top: 2px; }
.editorial-post-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.editorial-post-number { color: color-mix(in srgb, var(--primary), transparent 28%); font-size: 1.18rem; font-weight: 850; line-height: 1.2; letter-spacing: -.04em; }
.editorial-post-list h3 { margin: 0 0 5px; font-size: .94rem; line-height: 1.36; }
.editorial-post-list h3 a { color: var(--text); }
.editorial-post-list h3 a:hover { color: var(--primary); }
.editorial-post-list time { color: var(--muted); font-size: .74rem; }
.taxonomy-list { margin: 0; padding: 0; list-style: none; }
.taxonomy-list li + li { border-top: 1px solid var(--border); }
.taxonomy-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--muted); font-size: .91rem; }
.taxonomy-list a:hover { color: var(--primary); }
.taxonomy-list strong { color: var(--text); font-size: .76rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--secondary), transparent 28%); border-radius: 5px; color: var(--secondary); font-size: .74rem; font-weight: 700; }
.tag-cloud a:hover { background: var(--secondary); color: #fff; }
.editorial-card { position: sticky; top: 18px; padding: 22px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.editorial-card > h2 { padding: 0; border: 0; font-size: 1.18rem; }
.editorial-card > h2::after { display: none; }
.editorial-card p { color: var(--muted); font-size: .9rem; }
.editorial-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.editorial-links a { font-size: .82rem; font-weight: 760; }
.toc-widget { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.toc-widget ol { margin: 0; padding: 0; list-style: none; }
.toc-widget li + li { margin-top: 8px; }
.toc-widget a { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.toc-widget a:hover { color: var(--primary); }
.toc-level-3 { padding-left: 15px; }

.editorial-strip { padding: 54px 0; background: linear-gradient(130deg, #0b3470, #1554a2); color: #fff; }
.editorial-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.editorial-strip h2 { margin-bottom: 7px; color: #fff; }
.editorial-strip p { margin: 0; color: #d5e6ff; }

/* Breadcrumbs e páginas de listagem */
.breadcrumbs { padding-top: 17px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); list-style: none; font-size: .75rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.listing-hero, .simple-hero { padding: 58px 0; background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; }
.listing-hero h1, .simple-hero h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.15rem); }
.listing-hero p, .simple-hero p { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 1.02rem; }
.listing-hero.has-banner { position: relative; overflow: hidden; background: #082a5c; text-align: left; }
.listing-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .44; }
.listing-hero.has-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8,42,92,.96), rgba(18,59,122,.64)); }
.listing-hero.has-banner .container { position: relative; z-index: 1; }
.listing-hero.has-banner h1 { color: #fff; }
.listing-hero.has-banner p { margin-left: 0; color: #d8e8ff; }
.listing-hero.has-banner .eyebrow { color: #9ec8ff; }
.taxonomy-grid-large { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.taxonomy-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.taxonomy-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface-soft); color: var(--primary); border-radius: 50%; font-size: 1.3rem; font-weight: 800; }
.taxonomy-card h2 { margin-bottom: 7px; font-size: 1.16rem; }
.taxonomy-card h2 a { color: var(--text); }
.taxonomy-card p { margin-bottom: 12px; color: var(--muted); font-size: .86rem; }
.taxonomy-count { color: var(--secondary); font-size: .75rem; font-weight: 800; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 38px; }
.pagination > :last-child { justify-self: end; }
.pagination-arrow { font-weight: 750; }
.pagination-pages { display: flex; align-items: center; gap: 6px; }
.pagination-pages a, .pagination-pages .current { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 5px; color: var(--text); font-size: .82rem; }
.pagination-pages .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Artigo */
.article-page { padding-bottom: 0; }
.article-header { padding-top: 48px; padding-bottom: 34px; text-align: center; }
.category-label { display: inline-flex; padding: 6px 11px; background: var(--primary-bright); color: #fff; border-radius: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.category-label:hover { background: var(--primary); color: #fff; }
.article-header h1 { margin: 18px 0; font-size: clamp(2.15rem, 5.5vw, 4.1rem); }
.article-deck { max-width: 780px; margin: 0 auto 20px; color: var(--muted); font-size: 1.12rem; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-size: .8rem; }
.article-tags { justify-content: center; margin-top: 18px; }
.article-cover-wrap { max-width: 1080px; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.article-layout { grid-template-columns: minmax(0, 760px) 320px; justify-content: center; padding-top: 54px; padding-bottom: 80px; }
.article-content { min-width: 0; }
.prose { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.82; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { position: relative; scroll-margin-top: 20px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.prose h2 { margin-top: 2.1em; font-size: 1.85rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.38rem; }
.prose h4 { margin-top: 1.5em; font-size: 1.12rem; }
.heading-anchor { margin-left: 8px; color: transparent; font-weight: 500; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .heading-anchor:focus { color: var(--muted); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-wrap, .prose .code-block { margin: 0 0 1.45em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose blockquote { padding: 18px 24px; border-left: 4px solid var(--primary-bright); background: var(--surface-soft); color: var(--muted); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose hr { height: 1px; margin: 2.2em 0; border: 0; background: var(--border); }
.prose img { margin: 2em auto; border-radius: var(--radius); }
.prose code { padding: .14em .35em; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.code-block { position: relative; overflow: hidden; background: var(--code-bg); border-radius: var(--radius); }
.code-block pre { margin: 0; padding: 24px; overflow: auto; color: #e5edf8; line-height: 1.6; }
.code-block pre code { padding: 0; background: transparent; border: 0; color: inherit; }
.code-language { position: absolute; top: 8px; right: 12px; color: #8ea1bc; font: 700 .65rem ui-sans-serif, system-ui; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .88rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.related-section { padding: 62px 0 78px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* Páginas institucionais e formulário */
.page-layout { max-width: 840px; }
.page-content { padding: 44px 54px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 54px; align-items: start; }
.contact-panel { padding: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: .83rem; font-weight: 750; }
.form-field input, .form-field textarea, .large-search input {
    width: 100%; padding: 12px 13px; background: var(--background); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm); outline: 0;
}
.form-field input:focus, .form-field textarea:focus, .large-search input:focus { border-color: var(--primary-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-bright), transparent 82%); }
.form-field textarea { min-height: 190px; resize: vertical; }
.field-error { color: var(--danger); }
.form-privacy { margin: -2px 0 0; color: var(--muted); font-size: .78rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-bottom: 22px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.alert-success { background: color-mix(in srgb, var(--success), transparent 88%); border: 1px solid color-mix(in srgb, var(--success), transparent 58%); color: var(--success); }
.alert-error { background: color-mix(in srgb, var(--danger), transparent 90%); border: 1px solid color-mix(in srgb, var(--danger), transparent 60%); color: var(--danger); }
.contact-aside { padding-top: 10px; }
.contact-aside img { margin-bottom: 28px; }
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside p { color: var(--muted); }
.contact-email { display: inline-block; margin-bottom: 18px; font-weight: 750; }
.contact-note { padding: 15px; background: var(--surface-soft); border-radius: var(--radius-sm); font-size: .82rem; }
.large-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 650px; margin: 25px auto 0; }
.empty-state { padding: 52px 34px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { margin: 0; color: var(--muted); }
.not-found-section { min-height: 650px; display: grid; align-items: center; padding: 70px 0; background: var(--surface); }
.not-found-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.error-code { display: block; color: var(--primary); font-size: clamp(5rem, 12vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.not-found-grid h1 { margin-top: 18px; font-size: clamp(2rem, 5vw, 3.6rem); }
.not-found-grid p { max-width: 580px; color: var(--muted); font-size: 1.05rem; }

/* Rodapé */
.site-footer { color: #dce9fb; }
.footer-main { padding: 58px 0 48px; background: linear-gradient(135deg, #0b3470, #0d448d); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .72fr .86fr 1fr 1.25fr; gap: 34px; }
.footer-grid h2 { margin-bottom: 16px; color: #fff; font-size: .92rem; }
.footer-grid p { color: #c5d8f2; font-size: .82rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 7px; }
.footer-grid a { color: #dce9fb; font-size: .8rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 205px; margin-bottom: 15px; }
.tag-cloud-dark a { border-color: rgba(255,255,255,.35); color: #fff; }
.tag-cloud-dark a:hover { background: #fff; color: #123b7a; }
.footer-cta .button { margin-top: 6px; color: #123b7a; }
.footer-bottom { background: #071f45; }
.footer-bottom .container { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #bed0e9; font-size: .72rem; }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a { color: #dce9fb; }

@media (max-width: 1050px) {
    .header-inner { grid-template-columns: 220px 1fr 180px; gap: 18px; }
    .brand img { width: 205px; }
    .primary-nav { gap: 18px; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .content-with-sidebar, .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-cta { grid-column: span 2; }
    .taxonomy-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .container { width: min(calc(100% - 30px), var(--container)); }
    .topbar-inner > span { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .editorial-card { position: static; }
    .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
    .brand img { width: 220px; }
    .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; padding: 0; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); }
    .menu-toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--text); transition: transform var(--transition), opacity var(--transition); }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .primary-nav { position: absolute; top: 107px; right: 15px; left: 15px; height: auto; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
    .primary-nav.open { display: flex; }
    .primary-nav a { min-height: 44px; padding: 0 12px; }
    .primary-nav a::after { display: none; }
    .primary-nav .nav-search-link { display: flex !important; }
    .header-search { display: none; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 58px; }
    .hero-art { order: -1; max-width: 620px; margin: 0 auto; }
    .hero-copy { text-align: center; }
    .hero-copy p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .content-with-sidebar, .article-layout { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
    .toc-widget { position: static; max-height: none; grid-column: 1 / -1; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-cover-wrap { width: min(calc(100% - 30px), 1080px); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-aside { display: grid; justify-items: center; text-align: center; }
    .contact-aside img { max-width: 430px; }
    .not-found-grid { grid-template-columns: 1fr; text-align: center; }
    .not-found-grid img { order: -1; max-width: 440px; margin: 0 auto; }
    .not-found-grid p { margin-inline: auto; }
    .not-found-grid .hero-actions { justify-content: center; }
}

@media (max-width: 620px) {
    .section-space { padding: 48px 0 58px; }
    .brand img { width: 192px; }
    .hero-grid { gap: 20px; padding-block: 42px; }
    .hero-copy h1 { font-size: 2.25rem; }
    .hero-copy p { font-size: .98rem; }
    .post-grid, .related-grid, .taxonomy-grid-large, .sidebar { grid-template-columns: 1fr; }
    .section-heading { align-items: start; flex-direction: column; }
    .post-card p { min-height: auto; }
    .editorial-strip { padding: 38px 0; }
    .editorial-strip-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
    .editorial-strip p { display: none; }
    .listing-hero, .simple-hero { padding: 43px 0; }
    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination-pages { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
    .article-header { padding-top: 34px; }
    .article-meta { align-items: center; flex-direction: column; gap: 4px; }
    .article-layout { padding-top: 38px; }
    .prose { font-size: 1rem; line-height: 1.75; }
    .page-content, .contact-panel { padding: 25px 21px; }
    .form-row { grid-template-columns: 1fr; }
    .large-search { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-cta { grid-column: 1 / -1; }
    .footer-bottom .container { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 12px; }
}

@media (max-width: 420px) {
    .container { width: min(calc(100% - 22px), var(--container)); }
    .brand img { width: 180px; }
    .hero-actions .button { width: 100%; }
    .post-card-body { padding: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand, .footer-cta { grid-column: auto; }
    .taxonomy-card { grid-template-columns: 1fr; }
    .not-found-grid .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .topbar, .main-header, .site-footer, .sidebar, .breadcrumbs, .related-section, .article-tags { display: none !important; }
    body { background: #fff; color: #000; }
    .article-layout { display: block; }
    .article-cover { box-shadow: none; }
    a { color: #000; text-decoration: underline; }
}

html[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }


/* Consentimento de analytics */
.privacy-consent[hidden] { display: none !important; }
.privacy-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    max-width: 1120px;
    margin-inline: auto;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.privacy-consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}
.privacy-consent-copy h2 { margin-bottom: 8px; font-size: 1.35rem; }
.privacy-consent-copy p { max-width: 780px; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.privacy-consent-copy a { font-size: .82rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.privacy-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.privacy-consent-actions .button { white-space: nowrap; }
.footer-privacy-button {
    padding: 0;
    background: transparent;
    color: #dce9fb;
    border: 0;
    font-size: .72rem;
}
.footer-privacy-button:hover { color: #fff; text-decoration: underline; }

@media (max-width: 760px) {
    .privacy-consent { right: 12px; bottom: 12px; left: 12px; padding: 18px; }
    .privacy-consent-inner { grid-template-columns: 1fr; gap: 18px; }
    .privacy-consent-actions { justify-content: stretch; }
    .privacy-consent-actions .button { flex: 1 1 210px; }
}

@media (max-width: 440px) {
    .privacy-consent-actions { display: grid; }
    .privacy-consent-actions .button { width: 100%; }
}
