/* =========================================================
   NT 3.0 — EM ALTA
   Página autônoma: ranking + sidebar própria (WhatsApp/Ads)
========================================================= */

/* ===== Página / Astra ===== */
.nt-page-em-alta .entry-header,
.nt-page-em-alta .post-thumb-img-content,
.nt-page-em-alta .site-content #secondary {
	display: none !important;
}

.nt-page-em-alta .site-content > .ast-container {
	display: block !important;
	width: 100% !important;
	max-width: 1540px !important;
	padding-left: 20px;
	padding-right: 20px;
}

.nt-page-em-alta .site-content #primary,
.nt-page-em-alta .content-area,
.nt-page-em-alta .site-main,
.nt-page-em-alta article.page,
.nt-page-em-alta .entry-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	border: 0 !important;
}

.nt-page-em-alta .entry-content {
	margin-top: 0 !important;
}

/* ===== Tipografia / tokens ===== */
.nt-trending {
	--nt-green: #0a7d2c;
	--nt-green-dark: #075f22;
	--nt-text: #111827;
	--nt-muted: #667085;
	--nt-border: #dde3e8;
	--nt-surface: #ffffff;
	--nt-radius: 12px;
	width: 100%;
	color: var(--nt-text);
	font-family: "Source Sans 3", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Roboto, Ubuntu, sans-serif !important;
}

.nt-trending p,
.nt-trending span,
.nt-trending a,
.nt-trending button,
.nt-trending select,
.nt-trending option,
.nt-trending small,
.nt-trending strong,
.nt-trending label,
.nt-trending div {
	font-family: "Source Sans 3", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Roboto, Ubuntu, sans-serif !important;
}

.nt-trending h1,
.nt-trending h2,
.nt-trending h3,
.nt-trending h4,
.nt-trending h5,
.nt-trending h6,
.nt-trending .nt-trending-medal,
.nt-trending .nt-trending-list-item__rank {
	font-family: "Titillium Web", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Roboto, Ubuntu, sans-serif !important;
}

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

.nt-trending svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	flex: 0 0 auto;
}

/* ===== Cabeçalho ===== */
.nt-trending-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin: 18px 0 22px;
}

.nt-trending-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 320px;
}

.nt-trending-heading__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 11px;
	background: linear-gradient(145deg, var(--nt-green), #0b9a38);
	color: #fff;
	box-shadow: 0 7px 18px rgba(10, 125, 44, .18);
}

.nt-trending-heading__icon svg {
	width: 29px;
	height: 29px;
}

.nt-trending-heading h1 {
	margin: 0 !important;
	font-size: clamp(29px, 2.6vw, 38px) !important;
	font-weight: 600 !important;
	line-height: 1.05 !important;
	letter-spacing: -.45px;
	color: #101828;
}

.nt-trending-heading p {
	margin: 5px 0 0 !important;
	font-size: 14px !important;
	line-height: 1.35 !important;
	color: var(--nt-muted);
}

.nt-trending-controls {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.nt-trending-periods {
	display: inline-flex;
	align-items: stretch;
	height: 44px;
	border: 1px solid #cfd6dc;
	border-radius: 9px;
	overflow: hidden;
	background: #fff;
}

.nt-trending-period {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	line-height: 1 !important;
	border: 0;
	border-right: 1px solid #e3e7ea;
	background: #fff;
	color: #20252b;
	min-width: 78px;
	padding: 0 17px;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.nt-trending-period:last-child {
	border-right: 0;
}

.nt-trending-period:hover {
	background: #f4f8f5;
}

.nt-trending-period.is-active {
	background: var(--nt-green);
	color: #fff;
}

.nt-trending-select-wrap {
	position: relative;
	display: grid;
	grid-template-rows: 13px 1fr;
	min-width: 136px;
	height: 44px;
	padding: 5px 34px 4px 11px;
	border: 1px solid #d3d9df;
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
}

.nt-trending-select-wrap > span:first-child {
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #667085;
}

.nt-trending-select-wrap select {
	appearance: none;
	display: block;
	width: 100%;
	min-width: 0;
	height: 22px;
	line-height: 22px !important;
	border: 0;
	outline: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	color: #20252b;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.nt-trending-select-chevron {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-42%);
	color: #667085;
	pointer-events: none;
}

/* ===== Estrutura: conteúdo + sidebar própria ===== */
.nt-trending-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 24px;
	align-items: start;
}

.nt-trending-main,
.nt-trending-sidebar {
	min-width: 0;
}

/* ===== TOP 3 ===== */
.nt-trending-top-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.nt-trending-top-card {
	position: relative;
	min-height: 430px;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(140deg, rgba(7,95,34,.93), rgba(10,125,44,.76)), var(--nt-green);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
	isolation: isolate;
}

.nt-trending-top-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--nt-card-image);
	background-size: cover;
	background-position: center;
	transition: transform .35s ease;
	z-index: -2;
}

.nt-trending-top-card.is-no-image::after {
	content: "NT";
	position: absolute;
	right: 14px;
	top: 18px;
	font-family: "Titillium Web", sans-serif !important;
	font-size: 78px;
	font-weight: 700;
	color: rgba(255,255,255,.08);
	z-index: -1;
}

.nt-trending-top-card:hover::before {
	transform: scale(1.035);
}

.nt-trending-top-card--1 {
	box-shadow: inset 0 0 0 2px #e5b800, 0 4px 16px rgba(16,24,40,.11);
}

.nt-trending-top-card__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	text-decoration: none !important;
	color: #fff !important;
}

.nt-trending-top-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.02) 10%, rgba(0,0,0,.14) 40%, rgba(0,0,0,.90) 100%);
	z-index: 0;
}

.nt-trending-top-card__content {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	padding: 24px 20px 18px;
}

.nt-trending-medal {
	position: absolute;
	z-index: 3;
	top: 13px;
	left: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 49px;
	height: 49px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,.82);
	font-size: 25px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #3b2b00;
	box-shadow: 0 4px 10px rgba(0,0,0,.23);
}

.nt-trending-medal--1 { background: linear-gradient(145deg, #ffe36c, #dca900); }
.nt-trending-medal--2 { background: linear-gradient(145deg, #f2f4f6, #a6afb7); color: #39434b; }
.nt-trending-medal--3 { background: linear-gradient(145deg, #eca76b, #a75a26); color: #4a240c; }

.nt-trending-badges {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 7px;
}

.nt-trending-pill {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--nt-green);
	color: #fff;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-transform: uppercase;
	letter-spacing: .2px;
}

.nt-trending-top-card .nt-trending-pill {
	background: rgba(10,125,44,.96);
	box-shadow: 0 1px 4px rgba(0,0,0,.14);
}

.nt-trending-pill--region,
.nt-trending-top-card .nt-trending-pill--region {
	background: rgba(33, 38, 45, .82);
	color: #fff;
}

.nt-trending-top-card h3 {
	margin: 0 !important;
	font-size: clamp(26px, 1.72vw, 31px) !important;
	font-weight: 700 !important;
	line-height: 1.10 !important;
	letter-spacing: -.3px;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.nt-trending-top-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 8px;
	font-size: 15px !important;
	line-height: 1.38 !important;
	color: rgba(255,255,255,.94);
}

.nt-trending-metrics {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: rgba(255,255,255,.94);
}

.nt-trending-metrics > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nt-trending-metrics svg {
	width: 14px;
	height: 14px;
}

/* ===== Lista ===== */
.nt-trending-list {
	margin-top: 16px;
	border: 1px solid var(--nt-border);
	border-radius: var(--nt-radius);
	background: var(--nt-surface);
	overflow: hidden;
}

.nt-trending-list:empty {
	display: none;
}

.nt-trending-list-item {
	display: grid;
	grid-template-columns: 38px 150px minmax(0, 1fr) 92px 68px;
	gap: 11px;
	align-items: center;
	min-height: 102px;
	padding: 10px 16px;
	border-bottom: 1px solid #e8ecef;
	background: #fff;
	transition: background .18s ease;
}

.nt-trending-list-item:last-child {
	border-bottom: 0;
}

.nt-trending-list-item:hover {
	background: #fafcfb;
}

.nt-trending-list-item__rank {
	font-size: 22px !important;
	font-weight: 600 !important;
	text-align: center;
	color: #344054;
}

.nt-trending-list-item__thumb {
	display: block;
	width: 150px;
	height: 82px;
	border-radius: 7px;
	overflow: hidden;
	background: var(--nt-green);
}

.nt-trending-list-item__thumb img,
.nt-trending-image-fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nt-trending-image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Titillium Web", sans-serif !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	color: rgba(255,255,255,.92);
	background: linear-gradient(135deg, var(--nt-green), var(--nt-green-dark));
}

.nt-trending-list-item__content {
	min-width: 0;
}

.nt-trending-list-item__content .nt-trending-badges {
	margin-bottom: 4px;
}

.nt-trending-list-item__content h3 {
	margin: 0 !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.18 !important;
}

.nt-trending-list-item__content h3 a {
	font-family: "Titillium Web", "Helvetica Neue", sans-serif !important;
	color: #20252b;
	text-decoration: none !important;
}

.nt-trending-list-item:hover h3 a {
	color: var(--nt-green);
}

.nt-trending-list-item__metric {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	color: #59636e;
	font-size: 12px !important;
	white-space: nowrap;
}

.nt-trending-list-item__metric span {
	display: inline-flex;
	color: #667085;
}

.nt-trending-list-item__metric strong {
	font-weight: 600 !important;
	color: #5f6873;
}

.nt-trending-load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: min(330px, 100%);
	height: 43px;
	margin: 14px auto 0;
	border: 1px solid var(--nt-green);
	border-radius: 8px;
	background: #fff;
	color: var(--nt-green);
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.nt-trending-load-more:hover {
	background: var(--nt-green);
	color: #fff;
}

.nt-trending-load-more svg {
	width: 17px;
	height: 17px;
}

.nt-trending-empty,
.nt-trending-empty-list {
	padding: 30px 18px;
	border: 1px dashed #ccd5dc;
	border-radius: 10px;
	background: #fbfcfc;
	text-align: center;
	color: var(--nt-muted);
}

.nt-trending-empty-list {
	margin-top: 16px;
}

/* ===== Sidebar própria ===== */
.nt-trending-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* WhatsApp: usa EXATAMENTE o mesmo componente do bloco 4/home.
   O visual base está em nt-legacy.css (.nt-cta-card / .nt-cta-whatsapp). */
.nt-trending-sidebar > .nt-cta-card {
	width: 100%;
	margin: 0;
}

.nt-trending-ad {
	width: 100%;
	min-width: 0;
	text-align: center;
	overflow: hidden;
}

.nt-trending-ad img,
.nt-trending-ad iframe,
.nt-trending-ad ins {
	max-width: 100% !important;
}

.nt-trending-status {
	min-height: 18px;
	margin-top: 6px;
	font-size: 12px !important;
	text-align: center;
	color: var(--nt-muted);
}

.nt-trending.is-loading {
	pointer-events: none;
}

.nt-trending.is-loading .nt-trending-top,
.nt-trending.is-loading .nt-trending-list {
	opacity: .48;
}

.nt-trending [hidden] {
	display: none !important;
}

/* ===== Tablet ===== */
@media (max-width: 1120px) {
	.nt-trending-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.nt-trending-controls {
		justify-content: flex-start;
		width: 100%;
	}

	.nt-trending-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 18px;
	}

	.nt-trending-top-card {
		min-height: 390px;
	}

	.nt-trending-list-item {
		grid-template-columns: 30px 112px minmax(0,1fr) 72px 56px;
	}

	.nt-trending-list-item__thumb {
		width: 112px;
	}
}

@media (max-width: 900px) {
	.nt-trending-layout {
		grid-template-columns: 1fr;
	}

	.nt-trending-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0,1fr));
		align-items: start;
	}

	.nt-trending-sidebar > .nt-cta-card {
		grid-column: 1 / -1;
	}
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
	.nt-page-em-alta .site-content > .ast-container {
		padding-left: 14px;
		padding-right: 14px;
	}

	.nt-trending-header {
		gap: 18px;
	}

	.nt-trending-heading {
		align-items: flex-start;
		min-width: 0;
	}

	.nt-trending-heading__icon {
		width: 44px;
		height: 44px;
	}

	.nt-trending-heading h1 {
		font-size: 29px !important;
	}

	.nt-trending-controls {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 9px;
	}

	.nt-trending-periods {
		grid-column: 1 / -1;
		width: 100%;
	}

	.nt-trending-period {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 10px;
	}

	.nt-trending-select-wrap {
		min-width: 0;
	}

	.nt-trending-top-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.nt-trending-top-card {
		min-height: 380px;
	}

	.nt-trending-top-card h3 {
		font-size: 27px !important;
	}

	.nt-trending-list {
		border: 0;
		background: transparent;
		overflow: visible;
	}

	.nt-trending-list-item {
		grid-template-columns: 30px 96px minmax(0,1fr);
		gap: 9px;
		min-height: 84px;
		margin-bottom: 8px;
		padding: 8px;
		border: 1px solid var(--nt-border) !important;
		border-radius: 10px;
	}

	.nt-trending-list-item__thumb {
		width: 96px;
		height: 68px;
	}

	.nt-trending-list-item__metric {
		display: none;
	}

	.nt-trending-list-item__content h3 {
		font-size: 15px !important;
	}

	.nt-trending-list-item__content .nt-trending-pill {
		font-size: 9px !important;
	}

	.nt-trending-sidebar {
		display: flex;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.nt-trending-heading h1 {
		font-size: 26px !important;
	}

	.nt-trending-heading p {
		font-size: 13px !important;
	}

	.nt-trending-controls {
		grid-template-columns: 1fr;
	}

	.nt-trending-periods {
		grid-column: auto;
	}

	.nt-trending-top-card {
		min-height: 320px;
	}

	.nt-trending-top-card__excerpt {
		display: none;
	}

	.nt-trending-list-item {
		grid-template-columns: 27px 78px minmax(0,1fr);
	}

	.nt-trending-list-item__thumb {
		width: 78px;
		height: 60px;
	}

	.nt-trending-list-item__content h3 {
		font-size: 14px !important;
	}

	.nt-trending-list-item__content .nt-trending-pill--region {
		display: none;
	}

}
