/* Nexo Editorial — base, header, menu lateral, busca, rodapé, formulários e utilidades. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--ne-header-h) + 16px); }
html.ne-lock { overflow: hidden; }

body {
	margin: 0;
	background: var(--ne-bg);
	color: var(--ne-text);
	font-family: var(--ne-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* `clip` não cria contêiner de rolagem: o `position: sticky` da header continua funcionando no mobile. */
@supports (overflow: clip) {
	body { overflow-x: clip; }
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ne-heading); font-family: var(--ne-font-heading); font-weight: var(--ne-fw-heading); line-height: var(--ne-lh-heading); letter-spacing: calc(var(--ne-ls-heading-n) * 0.01em); }

:focus-visible { outline: 3px solid var(--ne-focus); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	left: 8px; top: 8px; padding: 10px 16px; background: var(--ne-bg); color: var(--ne-heading);
	font: 600 14px var(--ne-font-label); box-shadow: 0 0 0 3px var(--ne-focus);
}

.ne-container { width: min(calc(100% - 40px), var(--ne-container)); margin-inline: auto; }
.ne-main:focus { outline: 0; }
.ne-icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- Botões ---------- */
.ne-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border: 0; border-radius: 999px; cursor: pointer;
	font: 700 12px/1 var(--ne-font-menu); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ne-btn:hover { text-decoration: none; }
.ne-btn--coral { background: var(--ne-coral); color: #fff; }
.ne-btn--coral:hover { background: var(--ne-coral-hover); }
.ne-btn--primary { background: var(--ne-primary); color: #fff; }
.ne-btn--primary:hover { background: var(--ne-primary-hover); }
.ne-btn--dark { background: #111; color: #fff; }
.ne-btn--ghost { background: transparent; color: var(--ne-text); border: 1px solid var(--ne-border); }
.ne-btn--outline { background: transparent; color: var(--ne-petroleum); border: 2px solid var(--ne-petroleum); padding: 8px 18px; }
.ne-btn--outline:hover { background: var(--ne-petroleum); color: #fff; }
.ne-btn--pill { background: var(--ne-petroleum); color: #fff; padding: 12px 28px; }
.ne-btn--block { display: flex; width: 233px; max-width: 100%; padding: 14px 18px; }

.ne-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 40px; height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--ne-primary);
}
.ne-iconbtn:hover { color: var(--ne-primary-hover); }

/* ---------- Header ---------- */
.ne-header { position: relative; z-index: 40; background: var(--ne-header-bg, var(--ne-bg)); }
body.ne-header-border .ne-header { box-shadow: var(--ne-shadow); }
body.ne-sticky .ne-header { position: sticky; top: 0; }
/* Barra de administração (usuário logado): 32px no desktop, 46px até 782px e rola junto com a página até 600px
   (position: absolute) — por isso a header gruda em top: 0 nessa faixa, sem folga no topo. */
body.admin-bar.ne-sticky .ne-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar.ne-sticky .ne-header { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar.ne-sticky .ne-header { top: 0; }
}

.ne-header__bar {
	position: relative; display: grid; align-items: center;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	height: var(--ne-header-h); column-gap: 12px;
}
.ne-header__left, .ne-header__right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ne-header__left { justify-self: start; }
.ne-header__right { justify-self: end; }
.ne-header__logo { justify-self: center; display: flex; align-items: center; }

.ne-menu-toggle { padding-left: 0; }
.ne-menu-toggle__label, .ne-header__recent {
	font: 600 12px/1 var(--ne-font-menu); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ne-primary);
}
.ne-header__recent { color: var(--ne-recent-color, var(--ne-primary-text)); white-space: nowrap; }
.ne-header__recent:hover { text-decoration: underline; }
.ne-search-toggle--m { display: none; }
.ne-header__sub { padding: 8px 14px; font-size: 11px; }
.ne-header__login { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--ne-font-menu); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ne-primary-text); white-space: nowrap; }
.ne-header__login .ne-icon { color: #8c8c8c; }

body.ne-logo-left .ne-header__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
body.ne-logo-left .ne-header__logo { order: -1; justify-self: start; }

/* Logo: variações por modo e dispositivo */
.ne-logo { display: inline-flex; align-items: center; line-height: 0; max-width: 100%; }
.ne-logo:hover { text-decoration: none; }
.ne-logo__img { display: none; width: auto; height: auto; object-fit: contain; }
.ne-logo__text { font: 700 26px/1 var(--ne-font-heading); color: var(--ne-heading); white-space: nowrap; }
.ne-logo--header .ne-logo__img { max-height: var(--ne-logo-max-h); max-width: var(--ne-logo-w); }
html:not([data-theme="dark"]) .ne-logo--header .ne-logo__img.ne-v-d.ne-t-light,
html[data-theme="dark"] .ne-logo--header .ne-logo__img.ne-v-d.ne-t-dark { display: block; }
.ne-logo--footer .ne-logo__img { max-width: var(--ne-logo-w-f); }
html:not([data-theme="dark"]) .ne-logo--footer .ne-logo__img.ne-t-light,
html[data-theme="dark"] .ne-logo--footer .ne-logo__img.ne-t-dark { display: block; }
.ne-logo--footer .ne-logo__text { font-size: 38px; color: var(--ne-footer-text); }

/* Modo claro/noturno */
.ne-modebtn .ne-modebtn__sun { display: none; }
html[data-theme="dark"] .ne-modebtn .ne-modebtn__sun { display: inline-block; }
html[data-theme="dark"] .ne-modebtn .ne-modebtn__moon { display: none; }
.ne-modebtn--header { color: var(--ne-muted); }

/* Barra de apoio */
.ne-supportbar { font: 500 13px/1.4 var(--ne-font-label); text-align: center; padding: 9px 0; }
.ne-supportbar a { text-decoration: underline; font-weight: 700; }

/* ---------- Busca expansível ---------- */
.ne-search {
	position: absolute; left: 0; top: 0; bottom: 0; z-index: 5; width: 0; overflow: hidden; opacity: 0; visibility: hidden;
	display: flex; align-items: center; gap: 4px; background: var(--ne-header-bg, var(--ne-bg));
	transition: width 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
}
.ne-search.is-open { width: min(540px, 100%); opacity: 1; visibility: visible; transition: width 0.25s ease, opacity 0.2s ease; }
.ne-search__input {
	flex: 1; min-width: 0; height: 40px; padding: 0 4px; border: 0; border-bottom: 2px solid var(--ne-primary);
	background: transparent; color: var(--ne-text); font: 500 16px var(--ne-font-label); border-radius: 0; outline: 0;
}
.ne-search__input::-webkit-search-cancel-button { display: none; }
.ne-search__input:focus-visible { box-shadow: 0 2px 0 var(--ne-focus); }

/* ---------- Ticker ---------- */
.ne-ticker { overflow: hidden; background: var(--ne-ticker-bg, var(--ne-surface-soft)); color: var(--ne-ticker-color, var(--ne-text)); border-bottom: 1px solid var(--ne-border); font: 600 13px/1 var(--ne-font-label); }
.ne-ticker__track { display: flex; width: max-content; animation: ne-ticker var(--ne-ticker-dur, 40s) linear infinite; }
.ne-ticker--pause:hover .ne-ticker__track, .ne-ticker:focus-within .ne-ticker__track { animation-play-state: paused; }
.ne-ticker__list { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ne-ticker__list li { padding: 11px 26px; white-space: nowrap; position: relative; }
.ne-ticker__list li::after { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ne-primary); }
@keyframes ne-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Menu lateral ---------- */
.ne-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.ne-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.ne-offcanvas {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; display: flex; flex-direction: column;
	width: min(360px, 88vw); background: var(--ne-bg); color: var(--ne-text);
	transform: translateX(-100%); visibility: hidden; transition: transform 0.3s ease, visibility 0s linear 0.3s; box-shadow: 2px 0 12px rgba(0, 0, 0, 0.18);
}
.ne-offcanvas.is-open { transform: none; visibility: visible; transition: transform 0.3s ease; }
.ne-offcanvas__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 24px; min-height: var(--ne-header-h); border-bottom: 1px solid var(--ne-border); }
.ne-offcanvas__body { flex: 1; overflow-y: auto; padding: 18px 24px 32px; }
.ne-offcanvas__search { display: flex; align-items: center; border-bottom: 2px solid var(--ne-primary); margin-bottom: 20px; }
.ne-offcanvas__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ne-text); font: 500 15px var(--ne-font-label); padding: 10px 0; outline: 0; border-radius: 0; }
.ne-offcanvas__nav { margin: 0 0 22px; }
.ne-offcanvas__title { font: 700 12px/1 var(--ne-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ne-muted); margin: 0 0 8px; }
.ne-offcanvas__list { list-style: none; }
.ne-offcanvas__list a { display: block; padding: 7px 0; font: 600 15px/1.25 var(--ne-font-menu); color: var(--ne-text); }
.ne-offcanvas__list a:hover { color: var(--ne-primary-text); text-decoration: none; }
.ne-offcanvas__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ne-offcanvas__actions .ne-btn { width: 100%; }

/* ---------- Redes sociais ---------- */
.ne-social { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ne-social a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font: 600 14px/1.2 var(--ne-font-menu); text-transform: uppercase; color: inherit; }
.ne-social--inline { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.ne-social--inline a { width: 34px; height: 34px; justify-content: center; border-radius: 50%; background: var(--ne-primary); color: #fff; padding: 0; }

/* ---------- Rodapé ---------- */
.ne-footer { margin-top: 64px; padding: 56px 0 30px; background: var(--ne-footer-bg); color: var(--ne-footer-text); border-top: 1px solid var(--ne-border); }
.ne-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ne-footer__widgets { margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.ne-footer__widgets .widget ul { list-style: none; }
.ne-footer__widgets a { font-weight: 600; text-decoration: underline; }
.ne-footer__buttons { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ne-footer__note { margin: 6px 0 0; font: 600 11px/1 var(--ne-font-label); text-transform: uppercase; color: var(--ne-footer-text); width: 233px; text-align: center; }
.ne-footer__partner { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--ne-rule); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ne-footer__partner-img { max-width: 220px; height: auto; }
.ne-footer__partner p { margin: 0; font: 600 14px/1.4 var(--ne-font-label); }
.ne-footer__stack { display: flex; flex-direction: column; gap: 36px; }
.ne-footer__title { font: 700 15px/1.2 var(--ne-font-label); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ne-footer-text); padding-bottom: 14px; margin: 0 0 12px; border-bottom: 1px solid var(--ne-rule); }
.ne-footer__list { list-style: none; }
.ne-footer__list a, .ne-footer .ne-social a { display: block; padding: 6px 0; font: 700 14px/1.25 var(--ne-font-label); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ne-footer-text); }
.ne-footer .ne-social a { display: inline-flex; }
.ne-footer__list a:hover, .ne-footer .ne-social a:hover { color: var(--ne-heading); }
.ne-footer__copy { margin: 56px 0 0; font: 600 12px/1.4 var(--ne-font-label); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ne-footer-text); }

/* ---------- Formulários ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
	max-width: 100%; padding: 10px 12px; border: 1px solid var(--ne-border); border-radius: var(--ne-radius);
	background: var(--ne-bg); color: var(--ne-text); font: 400 16px/1.4 var(--ne-font-label);
}
textarea { width: 100%; }
input::placeholder, textarea::placeholder { color: var(--ne-muted); opacity: 1; }
label { font: 600 13px var(--ne-font-label); }
.ne-searchform { display: flex; gap: 10px; max-width: 520px; margin: 18px 0; }
.ne-searchform__input { flex: 1; min-width: 0; }

.wpcf7 form { max-width: 640px; }
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 label { display: block; margin-bottom: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select { width: 100%; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ne-primary); vertical-align: middle; margin-right: 6px; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0 0 6px; }
.wpcf7 .wpcf7-list-item label { display: inline; font-weight: 500; }
.wpcf7-submit { display: inline-block; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--ne-primary); color: #fff; font: 700 12px/1 var(--ne-font-menu); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
.wpcf7-submit:hover { background: var(--ne-primary-hover); }
.wpcf7-not-valid-tip { color: var(--ne-error); font: 500 13px var(--ne-font-label); margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border: 2px solid var(--ne-primary); border-radius: var(--ne-radius); color: var(--ne-text); font: 500 14px var(--ne-font-label); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--ne-error); }

/* ---------- Paginação ---------- */
.ne-pagination { margin: 56px 0 8px; }
.ne-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ne-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; font: 600 14px/1 var(--ne-font-label); color: var(--ne-text); }
.ne-pagination a.page-numbers:hover { color: var(--ne-primary-text); text-decoration: none; }
.ne-pagination .page-numbers.current { background: var(--ne-primary); color: #fff; }
.ne-pagination .page-numbers.dots { min-width: 0; padding: 0; }
.ne-pagination .page-numbers.next, .ne-pagination .page-numbers.prev { border-radius: 999px; padding: 0 12px; gap: 6px; }
.ne-loadmore-wrap { text-align: center; margin: 28px 0 0; }

/* ---------- Toast ---------- */
.ne-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	padding: 11px 20px; border-radius: 999px; background: #1b1b1b; color: #fff; font: 600 13px var(--ne-font-label); transition: opacity 0.2s ease, transform 0.2s ease;
}
.ne-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ne-toast:empty { display: none; }

/* ---------- Páginas simples e comentários ---------- */
.ne-page { padding: 40px 0 24px; max-width: calc(var(--ne-article) + 40px); }
.ne-page__title { font-size: var(--ne-fs-h1); margin-bottom: 24px; }
.ne-fullwidth { padding-top: 0; }
.ne-empty { padding: 48px 0; text-align: center; font-family: var(--ne-font-label); }
.ne-empty .ne-searchform { margin-inline: auto; }
.ne-label--big { font-size: 56px; line-height: 1; }
.ne-comments { max-width: calc(var(--ne-article) + 40px); padding: 36px 0 12px; }
.ne-comments__title { font-size: var(--ne-fs-h2); margin-bottom: 20px; }
.ne-comments__list, .ne-comments__list ol { list-style: none; }
.ne-comments__list .comment-body { padding: 16px 0; border-top: 1px solid var(--ne-border); font: 400 15px/1.5 var(--ne-font-body); }
.ne-comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.ne-comments__list .comment-meta { font: 500 13px var(--ne-font-label); color: var(--ne-muted); margin-bottom: 6px; }
.comment-respond { margin-top: 24px; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form input[type="submit"] { padding: 12px 28px; border: 0; border-radius: 999px; background: var(--ne-primary); color: #fff; font: 700 12px var(--ne-font-menu); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }

/* Alinhamentos do WordPress */
.alignleft { float: left; margin: 0.4em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.4em 0 0.8em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image figure { max-width: 100%; }
.wp-caption-text, figcaption { font: 500 12px/1.4 var(--ne-font-label); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.ne-ticker { overflow-x: auto; }
	.ne-ticker__track { animation: none; }
}
