/* Nexo Editorial — componentes editoriais reutilizados (marcador, rótulos, cartões, faixas, caixas). */

/* ---------- Marcador vertical ---------- */
.ne-mark { position: relative; padding-left: calc(var(--ne-mark-w) + var(--ne-mark-gap)); }
.ne-mark::before {
	content: ""; position: absolute; left: 0; top: 0.1em; bottom: 0.1em; width: var(--ne-mark-w);
	border-radius: 3px; background: var(--ne-label, var(--ne-primary));
}

/* ---------- Rótulo de formato ---------- */
.ne-label { font: 600 12px/1.2 var(--ne-font-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ne-label, var(--ne-primary-text)); }
a.ne-label:hover { text-decoration: underline; }

/* ---------- Miniaturas ---------- */
.ne-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ne-surface-muted); }
.ne-thumb.ne-r169 { aspect-ratio: 16 / 9; }
.ne-thumb__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ne-thumb--empty::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; background: var(--ne-muted); opacity: 0.45;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 3 7.2 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.2L15 3zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 3 7.2 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.2L15 3zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10z'/></svg>") center / contain no-repeat;
}

/* ---------- Grades de cartões ---------- */
.ne-cards { display: grid; gap: 38px var(--ne-gutter); align-content: start; }
.ne-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ne-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ne-card { min-width: 0; }
.ne-card__media { display: block; }
.ne-card__body { padding-top: 10px; }
.ne-card__label { display: block; margin: 0 0 6px; font: 600 12px/1.2 var(--ne-font-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ne-label, var(--ne-muted)); }
.ne-card__title { margin: 0 0 6px; font-family: var(--ne-font-heading); font-size: var(--ne-fs-card); line-height: var(--ne-lh-heading); overflow-wrap: break-word; hyphens: manual; }
.ne-card__title a:hover { text-decoration: underline; text-decoration-color: var(--ne-primary); text-decoration-thickness: 2px; }
.ne-card__author { margin: 0; padding-left: calc(var(--ne-mark-w) + var(--ne-mark-gap)); font: 400 14px/1.3 var(--ne-font-body); color: var(--ne-text); }
.ne-card__excerpt { margin: 4px 0 8px; padding-left: calc(var(--ne-mark-w) + var(--ne-mark-gap)); font: 400 15px/1.4 var(--ne-font-body); color: var(--ne-muted); }

/* Cartão compacto (miniatura à direita).
   Simetria: a miniatura é quadrada e de tamanho fixo (--ne-mini); a linha inteira tem a altura da miniatura
   e o texto é limitado a essa altura (rótulo em 1 linha + manchete em até --ne-mini-lines linhas). */
:root { --ne-mini: 112px; --ne-mini-lines: 5; }
.ne-card--mini { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 12px 0; }
.ne-card--mini.has-thumb { grid-template-columns: minmax(0, 1fr) var(--ne-mini); min-height: var(--ne-mini); box-sizing: content-box; }
.ne-card--mini .ne-card__body { min-width: 0; padding-top: 0; }
.ne-card--mini .ne-card__media { order: 2; width: var(--ne-mini); height: var(--ne-mini); }
.ne-card--mini .ne-thumb { width: 100%; height: 100%; aspect-ratio: 1 / 1; }
.ne-card--mini .ne-card__title { font-size: 16px; line-height: 1.12; margin-bottom: 0; }
.ne-card--mini.has-thumb .ne-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--ne-mini-lines); line-clamp: var(--ne-mini-lines); overflow: hidden; }
.ne-card--mini .ne-card__label { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ne-label, var(--ne-primary-text)); font-size: 11px; margin-bottom: 4px; }
.ne-card--mini .ne-card__author { margin-top: 4px; font-size: 13px; }
.ne-card--mini.has-thumb .ne-card__author { display: none; }

/* Lista horizontal */
.ne-list { display: flex; flex-direction: column; gap: 28px; }
.ne-card--list { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.ne-card--list .ne-card__body { padding-top: 0; }

/* Lista textual e destaque amplo */
.ne-textlist { max-width: 760px; }
.ne-lead--wide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 40px; }
.ne-lead--wide .ne-lead__label { display: block; margin-bottom: 8px; }

/* ---------- Linhas compactas ---------- */
.ne-line { display: block; padding: 9px 0; border-bottom: 1px solid var(--ne-border); font: 700 15px/1.3 var(--ne-font-heading); }
.ne-line__label { display: inline; margin-right: 6px; font: 600 11px/1 var(--ne-font-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ne-label, var(--ne-primary-text)); }
.ne-line__title { color: var(--ne-heading); }
.ne-line__title:hover { text-decoration: underline; }
.ne-line__author { margin-left: 3px; font: 400 14px/1.3 var(--ne-font-label); color: var(--ne-muted); }
.ne-textitem { padding: 9px 0; border-bottom: 1px solid var(--ne-border); font: 700 15px/1.25 var(--ne-font-heading); }
.ne-textitem:last-child { border-bottom: 0; }

/* ---------- Faixas turquesa ---------- */
.ne-band { background: var(--ne-band); color: #fff; padding: 26px 0 44px; }
.ne-band__title { margin: 0 0 18px; font: 500 26px/1.1 var(--ne-font-label); letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.ne-band__logo { display: block; max-height: 56px; width: auto; }
.ne-band__desc { margin: -8px 0 18px; font: 500 15px var(--ne-font-label); color: #fff; }
.ne-band .ne-card { --ne-label: #fff !important; }
.ne-band .ne-card__label, .ne-band .ne-line__label { color: #fff; }
.ne-band h1, .ne-band h2, .ne-band h3, .ne-band h4, .ne-band .ne-card__title a, .ne-band .ne-line__title { color: #fff; }
.ne-band .ne-card__author, .ne-band .ne-line__author { color: rgba(255, 255, 255, 0.88); }
.ne-band .ne-mark::before { background: #fff; }
.ne-band .ne-line { border-bottom-color: rgba(255, 255, 255, 0.6); }
.ne-band .ne-more { color: #fff; }
.ne-band a:focus-visible { outline-color: #fff; }

.ne-bandlist .ne-line { padding: 10px 0; font-size: 14px; }
.ne-bandlist .ne-more { margin-top: 12px; }

/* ---------- Ver mais ---------- */
.ne-more { display: inline-block; font: 700 12px/1 var(--ne-font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ne-primary-text); }
.ne-more--end { display: block; text-align: right; margin-top: 10px; }

/* ---------- Chips ---------- */
.ne-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ne-chip {
	display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--ne-petroleum); color: #fff;
	font: 600 12px/1 var(--ne-font-label); letter-spacing: 0.04em; text-transform: uppercase; margin: 0;
}
a.ne-chip:hover { background: var(--ne-primary-hover); text-decoration: none; }
.ne-chip--static { font-size: 12px; }

/* ---------- Caixas laterais ---------- */
.ne-box { margin: 0 0 30px; }
.ne-box__title { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--ne-primary); font: 600 15px/1.2 var(--ne-font-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ne-primary-text); }
.ne-box__list { border-bottom: 2px solid var(--ne-primary); }
.ne-box__list .ne-line:last-child { border-bottom: 0; }
.ne-box--opinion .ne-box__title, .ne-box--opinion .ne-more { color: var(--ne-opinion-color, #8a86b8); }
.ne-box--opinion .ne-box__title, .ne-box--opinion .ne-box__list { border-bottom-color: var(--ne-opinion-color, #8a86b8); }
.ne-box--opinion .ne-line__label { color: var(--ne-muted); }

.ne-box--trending { position: relative; padding-left: 26px; }
.ne-box--trending::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--ne-mark-w); border-radius: 3px; background: var(--ne-trending-color, var(--ne-primary)); }
.ne-box--trending .ne-box__title { border: 0; padding-bottom: 14px; color: var(--ne-trending-color, var(--ne-primary-text)); }
.ne-rank-list { list-style: none; }
.ne-rank { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--ne-border); }
.ne-rank-list li:last-child .ne-rank { border-bottom: 0; }
.ne-rank__n { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ne-trending-color, var(--ne-primary)); color: #fff; font: 700 13px/1 var(--ne-font-label); }
.ne-rank__body { min-width: 0; font: 700 15px/1.25 var(--ne-font-heading); }
.ne-rank__author { display: block; margin-top: 2px; font: 400 14px var(--ne-font-body); color: var(--ne-text); }

.ne-box--academic .ne-box__title { border: 0; font-size: 26px; font-weight: 500; padding-bottom: 6px; text-transform: uppercase; }
.ne-academic { background: var(--ne-band); color: #fff; padding: 16px; }
.ne-academic h3, .ne-academic__item a { font: 700 15px/1.2 var(--ne-font-heading); color: #fff; }
.ne-academic__media { display: block; margin-bottom: 8px; }
.ne-academic__item { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.6); }
.ne-academic__lead { padding-bottom: 12px; }
.ne-academic .ne-more { color: #fff; }

/* ---------- Newsletter ---------- */
.ne-nl { margin: 0 0 34px; }
.ne-nl__kicker { margin: 0 0 8px; font: 600 14px/1.2 var(--ne-font-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ne-muted); }
.ne-nl__title { font-size: 32px; line-height: 1.04; margin: 0 0 10px; }
.ne-nl--free .ne-nl__title { --ne-label: var(--ne-petroleum); }
.ne-nl__desc { margin: 0 0 14px; padding-left: calc(var(--ne-mark-w) + var(--ne-mark-gap)); font: 400 17px/1.35 var(--ne-font-body); color: var(--ne-text); }
.ne-nl__field { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 14px; border: 1px solid var(--ne-rule); border-radius: 999px; background: var(--ne-bg); }
.ne-nl__field input[type="email"] { flex: 1; min-width: 0; height: 34px; padding: 0; border: 0; background: transparent; font: 400 14px var(--ne-font-label); color: var(--ne-text); outline: 0; }
.ne-nl__field:focus-within { box-shadow: 0 0 0 3px var(--ne-focus); }
.ne-nl__submit { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ne-border); border-radius: 50%; background: transparent; color: var(--ne-muted); }
.ne-nl__submit:hover { background: var(--ne-primary); border-color: var(--ne-primary); color: #fff; }
.ne-nl__legal { margin: 10px 0 0 12px; font: 400 11px/1.4 var(--ne-font-label); color: var(--ne-muted); }
.ne-nl__legal a { text-decoration: underline; }
.ne-nl__msg { margin: 10px 0 0 12px; font: 500 13px/1.4 var(--ne-font-label); color: var(--ne-primary-text); }
.ne-nl__msg--error { color: var(--ne-error); }
.ne-nl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ne-nl__sc, .ne-nl__link { margin-left: 0; }

/* ---------- Faixa de apoio da single ---------- */
.ne-support { background: var(--ne-support-bg); padding: 20px 26px; margin: 4px 0 32px; font: 400 16px/1.35 var(--ne-font-body); color: var(--ne-text); }
.ne-support p { margin: 0; }
.ne-support a { text-decoration: underline; }

/* ---------- Anúncios ---------- */
.ne-ad { margin: 28px auto; text-align: center; }
.ne-ad__box { position: relative; margin-inline: auto; }
.ne-ad__label { display: block; margin-bottom: 4px; font: 600 10px/1 var(--ne-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ne-muted); }
.ne-ad__img { display: block; margin-inline: auto; height: auto; }
.ne-ad__img--m { display: none; }
.ne-ad iframe, .ne-ad img { max-width: 100%; }

/* ---------- Compartilhar ---------- */
.ne-share { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ne-share__btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--ne-primary); color: #fff; cursor: pointer; }
.ne-share__btn:hover { background: var(--ne-primary-hover); text-decoration: none; }

/* ---------- Player de vídeo ---------- */
.ne-player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.ne-player .ne-thumb { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.ne-player iframe, .ne-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ne-player--oembed iframe { position: absolute; }
.ne-player__btn {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.62); color: #fff; padding: 0;
}
.ne-player__btn:hover { background: var(--ne-primary); }
.ne-player.is-playing .ne-player__btn { display: none; }
.ne-video__poster { position: relative; display: block; aspect-ratio: 16 / 9; }
.ne-video__poster .ne-thumb { height: 100%; aspect-ratio: auto; }

/* ---------- Cartão do autor responsável ---------- */
.ne-content .ne-resp { clear: both; margin: 40px 0 8px; border: 1px solid var(--ne-border); border-radius: var(--ne-radius); background: var(--ne-bg); overflow: hidden; text-align: left; hyphens: manual; }
.ne-content .ne-resp::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--ne-primary) 0 33.3%, var(--ne-petroleum) 33.3% 66.6%, var(--ne-coral) 66.6% 100%); }
.ne-content .ne-resp__body { padding: 20px 20px 24px; }
.ne-content .ne-resp p { margin: 0; }
.ne-content .ne-resp__label { font: 700 12px/16px var(--ne-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ne-muted); }
.ne-content .ne-resp__id { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.ne-content .ne-resp__avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ne-petroleum); color: #fff; font: 700 20px/1 var(--ne-font-label); }
.ne-content .ne-resp__who { display: flex; flex-direction: column; min-width: 0; }
.ne-content .ne-resp__name { font: 700 20px/26px var(--ne-font-heading); color: var(--ne-heading); overflow-wrap: anywhere; }
.ne-content .ne-resp__role { margin-top: 2px; font: 400 14px/20px var(--ne-font-label); color: var(--ne-muted); }
.ne-content .ne-resp__list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--ne-border); }
.ne-content .ne-resp__list li { margin: 0; padding: 0; }
.ne-content .ne-resp__list li::before { content: none; }
.ne-content .ne-resp__link { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; text-decoration: none; color: var(--ne-text); font: 600 15px/1.3 var(--ne-font-label); }
.ne-content .ne-resp__link:hover { color: var(--ne-primary-text); text-decoration: underline; }
.ne-content .ne-resp__icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ne-primary); color: #fff; }
.ne-content .ne-resp__text { min-width: 0; overflow-wrap: anywhere; }
