/*
Theme Name: Regularize
Theme URI: https://regularize.com.br
Author: Grupo Planning
Description: Tema do portal Regularize — editais, prazos e caminhos para a regularidade empresarial.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: regularize
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #121614;
	--text: #3b413e;
	--muted: #5c6360;
	--bg: #fff;
	--surface: #f2f5f4;
	--white: #fff;
	--line: #e3e8e6;
	--line-strong: #d2d9d6;
	--green: #087a54;
	--green-dark: #0b3d33;
	--green-mid: #2f6e5d;
	--green-light: #8fb8aa;
	--green-tint: #eef6f2;
	--mint: #3ddc97;
	--amber: #f4b740;
	--grey-dot: #aeb7b3;
	--sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Newsreader", Georgia, serif;
	--wrap: 1240px;
	--gutter: 24px;
	--radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	color: var(--text);
	background: var(--bg);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
/* Números tabulares só onde há números alinhados (nesta fonte, afeta também vírgula e ponto). */
.radar__num, .timeline, .radar__list li > span:last-child, .editais td[data-label="Adesão até"] { font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--green); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: var(--radius);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Utilities ---------- */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--green); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--mint { color: var(--mint); }
.h2 { font-weight: 700; font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; }
.h2--serif { font-family: var(--serif); font-weight: 500; font-size: 44px; letter-spacing: -0.015em; }
.lead { font-size: 17px; }
.small { font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--grey { background: var(--grey-dot); }
.dot--lg { width: 10px; height: 10px; }
.link-arrow { font-weight: 600; color: var(--green); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
	border-radius: var(--radius); background: var(--green); color: var(--white); text-decoration: none;
	font-weight: 600; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); min-height: 48px; padding: 0 22px; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--mint { background: var(--mint); color: var(--ink); font-weight: 700; min-height: 50px; padding: 0 24px; }
.btn--mint:hover { background: #2fc583; color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d9dedb; font-size: 13px; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar__msg { display: flex; align-items: center; gap: 10px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
	background: var(--green-dark); border-bottom: 1px solid var(--green-dark);
	position: -webkit-sticky; position: sticky; top: 0; z-index: 40; transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .22); }
body.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-weight: 700; font-size: 29px; letter-spacing: -0.035em; color: var(--ink); line-height: 1; }
.logo::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 2px; background: var(--green); }
.logo:hover { color: var(--ink); }
.logo--light { color: var(--white); }
.logo--light::after { background: var(--mint); }
.site-header .logo, .site-header .logo:hover { color: var(--white); }
.site-header .logo::after { background: var(--mint); }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { text-decoration: none; }
.site-header .nav a { color: #e3efea; }
.site-header .nav a:hover { color: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
	width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0;
}
.site-header .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--white); }
.site-header .icon-btn:hover, .site-header .icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.site-header .header-actions .btn { background: var(--mint); color: var(--ink); }
.site-header .header-actions .btn:hover { background: #2fc583; color: var(--ink); }
.menu-btn { display: none; }
.search-panel { border-top: 1px solid rgba(255, 255, 255, .12); background: var(--white); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius);
	padding: 0 14px; font-size: 16px; color: var(--ink); background: var(--white);
}
.mobile-nav { display: none; }

/* Âncoras não ficam sob o cabeçalho fixo */
main [id] { scroll-margin-top: 96px; }
body.admin-bar main [id] { scroll-margin-top: 128px; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); }
/* Faixa do aviso continua o fundo do hero em largura total */
.hero + .disclaimer-wrap { background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); }
.hero__in { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 56px; }
.hero__main { flex: 7 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-weight: 700; font-size: 54px; line-height: 1.04; letter-spacing: -0.03em; }
.hero__lead { font-size: 19px; line-height: 1.6; max-width: 660px; }
.paths { margin-top: 14px; display: flex; flex-direction: column; }
.paths__title { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.paths a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 500; }
.paths a span { color: var(--green); transition: transform .15s; }
.paths a:hover span { transform: translateX(3px); }

/* Radar card */
.radar { flex: 5 1 400px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.radar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.radar__head h2 { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.radar__count { display: flex; align-items: flex-end; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.radar__num { font-weight: 700; font-size: 64px; line-height: .9; letter-spacing: -0.04em; color: var(--ink); }
.radar__count-txt { font-size: 15px; line-height: 1.35; }
.radar__count-txt strong { color: var(--ink); }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline__track { position: relative; height: 54px; }
.timeline__label { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.timeline__base { position: absolute; left: 0; right: 0; top: 34px; height: 4px; background: #e6ebe9; }
.timeline__fill { position: absolute; left: 0; top: 34px; height: 4px; background: var(--ink); }
.timeline__today { position: absolute; left: 0; top: 26px; width: 2px; height: 20px; background: var(--ink); }
.timeline__mark { position: absolute; top: 30px; width: 12px; height: 12px; transform: translateX(-50%); background: var(--amber); border: 2px solid var(--white); box-sizing: content-box; }
.timeline__months { position: relative; height: 16px; font-size: 11.5px; color: var(--muted); }
.timeline__months span { position: absolute; }
.radar__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.radar__list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.radar__list li > span:first-child { display: flex; align-items: center; gap: 10px; }
.radar__list li > span:last-child { color: var(--muted); white-space: nowrap; }
.radar__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.radar__foot a { font-weight: 600; font-size: 15px; color: var(--green); }
.radar__foot span { font-size: 12px; color: var(--muted); }

/* Disclaimer */
.disclaimer-wrap { padding-bottom: 56px; }
.disclaimer { padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; display: flex; gap: 14px; align-items: flex-start; }
.disclaimer svg { flex: 0 0 auto; margin-top: 2px; }
.disclaimer strong { color: var(--ink); }
.disclaimer a { color: var(--green); }

/* ---------- Sections ---------- */
.section { padding-top: 80px; padding-bottom: 80px; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--surface); }
.bt { border-top: 1px solid var(--line); }
.bb { border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 56px; flex-wrap: wrap; }
.section-head__txt { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

/* News */
.news { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.news__head h2 { font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.news__cats { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 500; }
.news__cats a { text-decoration: none; }
.news__grid { display: flex; flex-wrap: wrap; gap: 48px; }
.news__main { flex: 3 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.news__main h3 { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.08; letter-spacing: -0.015em; }
.news__main h3 a, .news__item h3 a { text-decoration: none; color: var(--ink); }
.news__main h3 a:hover, .news__item h3 a:hover { color: var(--green); }
.news__main p { font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.news__side { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; }
.news__item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.news__item:first-child { padding-top: 0; }
.news__item:last-child { border-bottom: 0; }
.news__item h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; }
.byline { font-size: 13px; color: var(--muted); }

/* Visual guide */
.guide { display: flex; flex-direction: column; gap: 40px; }
.guide__card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 40px; }
.guide__block { display: flex; flex-direction: column; gap: 12px; }
.guide__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.debt__bracket { display: flex; height: 18px; margin-top: 18px; }
.debt__bracket span:first-child { flex: 0 0 46%; }
.debt__bracket span:last-child { flex: 1 1 auto; border: 1.5px solid var(--green); border-bottom: 0; border-radius: 4px 4px 0 0; position: relative; }
.debt__bracket em { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--green); font-style: normal; }
.debt__bar { display: flex; height: 64px; border-radius: 4px; overflow: hidden; font-size: 14px; font-weight: 600; }
.debt__bar span { display: flex; align-items: center; padding: 0 16px; color: var(--white); border-left: 2px solid var(--white); min-width: 0; overflow: hidden; }
.debt__bar span:first-child { border-left: 0; }
.debt__p { flex: 0 0 46%; background: var(--ink); }
.debt__m { flex: 0 0 22%; background: var(--green-dark); }
.debt__j { flex: 0 0 20%; background: var(--green-mid); }
.debt__e { flex: 1 1 auto; background: var(--green-light); color: var(--ink) !important; }
.debt__legend { display: none; }
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.classes > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.classes b { font-weight: 700; font-size: 28px; color: var(--ink); line-height: 1.2; }
.classes span { font-size: 14px; }
.classes small { font-size: 13px; color: var(--muted); }
.classes .is-on { border: 1.5px solid var(--green); background: var(--green-tint); }
.classes .is-on b, .classes .is-on small { color: var(--green); }
.classes .is-on small { font-weight: 600; }
.classes .is-on span { color: var(--ink); }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.limits > div { background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.limits b { font-weight: 700; font-size: 34px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.limits span { font-size: 14px; }

/* Diagnostic */
.diag { background: var(--green-dark); color: var(--white); }
.diag__in { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.diag__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.diag__intro h2 { font-weight: 700; font-size: 42px; line-height: 1.06; letter-spacing: -0.025em; color: var(--white); }
.diag__intro p { font-size: 17px; color: #cbddd6; }
.diag__card { flex: 1 1 560px; min-width: 0; background: var(--white); color: var(--text); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.diag__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.diag__step { font-size: 13px; font-weight: 500; color: var(--muted); }
.diag__segs { display: flex; gap: 4px; }
.diag__segs span { display: block; width: 26px; height: 4px; background: var(--line); }
.diag__segs span.is-on { background: var(--green); }
.diag__q { font-weight: 700; font-size: 25px; line-height: 1.2; letter-spacing: -0.015em; }
.diag__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.diag__opt {
	min-height: 54px; padding: 12px 16px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--white); font-weight: 500; font-size: 15px; color: var(--ink); cursor: pointer;
}
.diag__opt:hover { border-color: var(--green); background: var(--green-tint); }
.diag__opt.is-on { border: 1.5px solid var(--green); background: var(--green-tint); }
.diag__back { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; }
.diag__results { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.diag__results li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.diag__results strong { color: var(--ink); font-size: 17px; }
.diag__results span { font-size: 14px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field input {
	height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 14px;
	font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; font-weight: 400; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--green); }
.consent a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; font-weight: 600; }
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: #b3261e; }
.form-msg:empty { display: none; }

/* Editais table */
.legend { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; }
.table-wrap { border-top: 2px solid var(--ink); }
.editais { width: 100%; border-collapse: collapse; font-size: 15px; }
.editais th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 14px 16px; }
.editais td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; }
.editais tr:last-child td { border-bottom: 1px solid var(--line); }
.editais th:first-child, .editais td:first-child { padding-left: 0; }
.editais th:last-child, .editais td:last-child { padding-right: 0; }
.editais .strong { font-weight: 600; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Guides list */
.guides__in { display: flex; flex-wrap: wrap; gap: 48px; }
.guides__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.guides__list { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.guides__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guides__list a span:first-child { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.guides__list a:hover span:first-child { color: var(--green); }
.guides__list a span:last-child { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Newsletter */
.newsletter { background: var(--ink); color: #d9dedb; }
.newsletter__in { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.newsletter__txt { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.newsletter__txt h2 { font-weight: 700; font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; color: var(--white); }
.newsletter__txt p { font-size: 17px; }
.newsletter form { flex: 1 1 440px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.newsletter .field { flex: 1 1 260px; color: var(--white); }
.newsletter .field input { height: 50px; border-color: #3a423e; background: #1c221f; color: var(--white); }
.newsletter .field input::placeholder { color: #8b938f; }
.newsletter .consent { flex: 1 1 100%; color: #b9c0bc; order: 3; }
.newsletter .form-msg { flex: 1 1 100%; order: 4; }
.newsletter .form-msg.is-ok { color: var(--mint); }
.newsletter .form-msg.is-err { color: #ff9b8f; }

/* Map */
.map__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.map__info { flex: 5 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.map__info .field select {
	height: 48px; border: 1px solid #c3ccc8; border-radius: var(--radius); padding: 0 12px; font-weight: 500; font-size: 15px; color: var(--ink); background: var(--white);
}
.map__panel { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.map__panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.map__panel-head h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: -0.01em; }
.map__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.map__dl { margin: 0; border-top: 1px solid var(--line); }
.map__dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.map__dl dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.map__dl dd { margin: 0; font-size: 15px; }
.map__dl dd.strong { font-weight: 600; color: var(--ink); }
.map__fig { flex: 7 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.map__legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; }
.map__legend span { display: flex; align-items: center; gap: 8px; }
.map svg { width: 100%; height: auto; display: block; }
.map .uf { cursor: pointer; transition: opacity .15s; stroke: #fff; stroke-width: .9; stroke-linejoin: round; }
.map .uf:hover { opacity: .75; }
.map .uf-sel { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; pointer-events: none; }

/* Solutions */
.solutions { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.solutions a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.solutions a:hover strong { color: var(--green); }
.solutions strong { font-size: 19px; color: var(--ink); }
.solutions span { font-size: 15px; }

/* Authority */
.authority__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.authority__txt { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.authority__txt h2 { font-weight: 700; font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; }
.stats { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stats > div { display: flex; flex-direction: column; gap: 2px; border-top: 2px solid var(--ink); padding-top: 12px; }
.stats b { font-weight: 700; font-size: 34px; letter-spacing: -0.03em; color: var(--ink); line-height: 1.3; }
.stats span { font-size: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c0bc; }
.site-footer__in { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.site-footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.site-footer__cols b { font-weight: 600; color: var(--white); }
.site-footer a { color: #b9c0bc; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__legal { border-top: 1px solid #2a302d; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.6; }
.site-footer__legal p:first-child { color: #e3e7e5; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__links a { color: #e3e7e5; text-decoration: underline; }

/* WhatsApp float */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- Inner pages ---------- */
.page-head {
	padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px;
	background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax);
}
.page-head + .pad-bottom { padding-top: 40px; }
.page-head h1 { font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; max-width: 900px; }
.page-head h1.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; }
.page-head p { font-size: 18px; max-width: 760px; }
.article { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article__in { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.content { font-size: 18px; line-height: 1.7; }
.content > * + * { margin-top: 1.1em; }
.content h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 1.8em; }
.content h3 { font-size: 22px; line-height: 1.25; margin-top: 1.6em; }
.content a { color: var(--green); }
.content ul, .content ol { padding-left: 1.3em; }
.content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--green); font-family: var(--serif); font-size: 21px; }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.content img { border-radius: var(--radius); }
.article-cta { margin-top: 48px; padding: 28px; border-radius: 10px; background: var(--green-dark); color: #cbddd6; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.article-cta h2 { color: var(--white); font-size: 24px; letter-spacing: -0.015em; }
.list { border-top: 2px solid var(--ink); }
.list__item { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.list__item h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.25; }
.list__item h2 a { text-decoration: none; }
.list__item p { font-size: 16px; }
.pagination { padding: 32px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; padding: 0 10px; background: var(--white); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pad-bottom { padding-bottom: 80px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.nav, .nav ul { gap: 18px; }
}
@media (max-width: 960px) {
	.nav { display: none; }
	.menu-btn { display: inline-flex; }
	.mobile-nav {
		display: block; border-top: 1px solid rgba(255, 255, 255, .12); background: var(--green-dark);
		max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain;
	}
	body.admin-bar .mobile-nav { max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
	.mobile-nav[hidden] { display: none; }
	.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
	.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); text-decoration: none; font-size: 17px; font-weight: 500; color: #e3efea; }
	.mobile-nav li:last-child a { border-bottom: 0; }
	.mobile-nav a:hover { color: var(--mint); }
	.hero h1 { font-size: 44px; }
	.section { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 720px) {
	:root { --gutter: 16px; }
	.topbar__msg { font-size: 12.5px; }
	.site-header__in { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
	.mobile-nav { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
	main [id] { scroll-margin-top: 84px; }
	.logo { font-size: 25px; }
	.header-actions { gap: 8px; }
	.header-actions .btn { padding: 0 12px; font-size: 14px; }
	.hero__in { padding-top: 40px; padding-bottom: 40px; gap: 40px; }
	.hero h1 { font-size: 34px; line-height: 1.08; }
	.hero__lead { font-size: 17px; }
	.paths a { font-size: 16px; padding: 14px 0; }
	.radar { padding: 20px; }
	.radar__num { font-size: 52px; }
	.disclaimer-wrap { padding-bottom: 40px; }
	.disclaimer { font-size: 14px; padding: 14px 16px; }
	.section { padding-top: 56px; padding-bottom: 56px; }
	.h2, .page-head h1 { font-size: 30px; }
	.h2--serif { font-size: 34px; }
	.news { padding-top: 48px; padding-bottom: 48px; }
	.news__grid { gap: 32px; }
	.news__main h3 { font-size: 32px; }
	.news__main p { font-size: 18px; }
	.news__item h3 { font-size: 20px; }
	.guide__card { padding: 20px; gap: 32px; }
	.debt__bar { height: 44px; }
	.debt__bar span { padding: 0; font-size: 0; }
	.debt__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
	.debt__legend span { display: flex; align-items: center; gap: 6px; }
	.debt__legend i { width: 10px; height: 10px; display: inline-block; }
	.classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.limits b { font-size: 28px; }
	.diag__in { gap: 32px; }
	.diag__intro h2 { font-size: 30px; }
	.diag__card { padding: 20px; }
	.diag__q { font-size: 21px; }
	.diag__segs span { width: 16px; }
	.form-grid { grid-template-columns: 1fr; }
	/* Table → cards */
	.editais thead { position: absolute; left: -9999px; }
	.editais, .editais tbody, .editais tr, .editais td { display: block; width: 100%; }
	.editais tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.editais td { border: 0 !important; padding: 3px 0 !important; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
	.editais td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--muted); }
	.guides__in { gap: 28px; }
	.guides__list a span:first-child { font-size: 20px; }
	.newsletter__in { padding-top: 48px; padding-bottom: 48px; }
	.newsletter__txt h2 { font-size: 26px; }
	.newsletter form .btn { flex: 1 1 100%; }
	.map__in { gap: 32px; }
	.map__dl > div { grid-template-columns: 1fr; gap: 4px; }
	.solutions a { grid-template-columns: 1fr; gap: 6px; }
	.authority__in { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
	.authority__txt h2 { font-size: 26px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats b { font-size: 28px; }
	.site-footer__in { padding-top: 48px; }
	.site-footer__cols { gap: 32px; }
	.content { font-size: 17px; }
	.article__in { padding-top: 36px; padding-bottom: 56px; }
}
@media (max-width: 400px) {
	.header-actions .icon-btn.search-btn { display: none; }
}
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar main [id] { scroll-margin-top: 130px; }
}
@media (max-width: 600px) {
	/* Abaixo de 600px a barra de administração do WP não é fixa */
	body.admin-bar .site-header { top: 0; }
	body.admin-bar main [id] { scroll-margin-top: 84px; }
	body.admin-bar .mobile-nav { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
