/* Base: reset, contêiner, grades, botões, títulos de seção, acessibilidade. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-x: clip;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--tre-primary);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tre-skip:focus {
	position: fixed !important;
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--tre-surface);
	color: var(--tre-heading);
	border-radius: 6px;
	box-shadow: var(--tre-shadow);
}

.tre-main:focus {
	outline: none;
}

.tre-container {
	width: 100%;
	max-width: calc(var(--tre-container) + 2 * var(--tre-gutter));
	margin-inline: auto;
	padding-inline: var(--tre-gutter);
}

/* Coluna principal + lateral (home, categoria, notícia). */
.tre-with-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tre-sidebar-width);
	gap: var(--tre-gap);
	align-items: start;
}

.tre-side,
.tre-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.tre-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 28px;
}

.tre-grid2__full {
	grid-column: 1 / -1;
}

.tre-grid3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.tre-grid3--wide {
	gap: 22px;
}

.tre-grid4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.tre-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tre-sec {
	margin-top: var(--tre-section-space);
}

/* Etiqueta de categoria. */
.tre-badge {
	display: inline-block;
	max-width: 100%;
	padding: 3px 7px 2px;
	border-radius: 3px;
	background: var(--tre-accent);
	color: #fff;
	font-family: var(--tre-font-heading);
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

a.tre-badge:hover {
	color: #fff;
	background: var(--tre-primary-dark);
}

.tre-badge--sm {
	font-size: 9.5px;
	padding: 2px 6px 1px;
}

/* Botões. */
.tre-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--tre-font-heading);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.1;
	transition: background-color .15s, color .15s, border-color .15s;
}

.tre-btn--primary {
	background: var(--tre-primary);
	color: #fff;
	border-color: var(--tre-primary);
}

.tre-btn--primary:hover {
	background: var(--tre-primary-dark);
	border-color: var(--tre-primary-dark);
	color: #fff;
}

.tre-btn--outline {
	background: var(--tre-surface);
	color: var(--tre-heading);
	border-color: var(--tre-border);
}

.tre-btn--outline:hover {
	border-color: var(--tre-primary);
	color: var(--tre-primary);
}

.tre-btn--white {
	background: #fff;
	color: #111827;
	border-color: #fff;
}

.tre-btn--white:hover {
	background: transparent;
	color: #fff;
}

.tre-btn--sm {
	min-height: 34px;
	padding: 6px 14px;
	font-size: 12px;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 4px;
}

.tre-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
}

.tre-more__status {
	font-size: 13px;
	color: var(--tre-muted);
}

.tre-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
}

/* Títulos de seção: fita, centro, faixa. */
.tre-sec-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.tre-sec-title__label {
	flex: none;
	margin: 0;
	padding: 6px 16px 5px;
	background: var(--tre-accent);
	color: #fff;
	border-radius: 2px;
	font-size: 17px;
	line-height: 1.15;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.tre-sec-title__rule {
	flex: 1;
	height: 2px;
	background: var(--tre-accent);
	opacity: .9;
}

.tre-pill {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 13px;
	border: 1px solid var(--tre-border);
	border-radius: 999px;
	background: var(--tre-surface);
	color: var(--tre-heading);
	font-family: var(--tre-font-heading);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tre-pill:hover {
	border-color: var(--tre-accent);
	color: var(--tre-accent);
}

.tre-sec-title--center,
.tre-sec-title--band {
	justify-content: center;
}

.tre-sec-title--center::before,
.tre-sec-title--band::before {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--tre-accent);
}

.tre-sec-title--center .tre-sec-title__label,
.tre-sec-title--band .tre-sec-title__label {
	order: 1;
	padding: 7px 22px 6px;
	transform: skewX(-12deg);
	border-radius: 2px;
}

.tre-sec-title--center .tre-sec-title__rule,
.tre-sec-title--band .tre-sec-title__rule {
	order: 2;
}

.tre-sec-title--band::before,
.tre-sec-title--band .tre-sec-title__rule {
	background: rgba(255, 255, 255, .55);
}

.tre-sec-title--band .tre-sec-title__label {
	background: #fff;
	color: #111827;
}

/* Mídia com proporção fixa (sem deformar a foto). */
.tre-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: color-mix(in srgb, var(--tre-border) 70%, var(--tre-surface));
}

.tre-media > img,
.tre-media > .tre-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

a.tre-media:hover > img {
	transform: scale(1.03);
}

.tre-img--empty {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 60px;
	background: #eef0f2 url("../images/sem-foto.svg") center / clamp(28px, 22%, 84px) auto no-repeat;
}

/* Breadcrumb. */
.tre-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: var(--tre-muted);
}

.tre-breadcrumb li + li::before {
	content: "›";
	margin-right: 4px;
	color: var(--tre-muted);
}

.tre-breadcrumb a {
	color: var(--tre-primary);
	font-weight: 600;
}

.tre-breadcrumb a:hover {
	text-decoration: underline;
}

/* Chips de editorias. */
.tre-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tre-chips a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tre-surface);
	border: 1px solid var(--tre-border);
	color: var(--tre-heading);
	font-family: var(--tre-font-heading);
	font-size: 12px;
	font-weight: 700;
}

.tre-chips a:hover {
	border-color: var(--tre-primary);
	color: var(--tre-primary);
}

.tre-empty {
	padding: 32px;
	background: var(--tre-surface);
	border-radius: var(--tre-card-radius);
	color: var(--tre-muted);
	text-align: center;
}

/* Social. */
.tre-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tre-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tre-surface);
	color: var(--tre-heading);
	box-shadow: var(--tre-shadow);
}

.tre-social a:hover {
	background: var(--tre-primary);
	color: #fff;
}

/* Variação de câmbio. */
.tre-var--up {
	color: #16a34a;
}

.tre-var--down {
	color: #ef4444;
}

/* Formulários. */
.tre-form input[type="text"],
.tre-form input[type="email"],
.tre-form input[type="tel"],
.tre-form input[type="file"],
.tre-form textarea,
.tre-form select,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--tre-border);
	border-radius: 8px;
	background: var(--tre-surface);
	color: var(--tre-text);
}

.tre-form input:focus,
.tre-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--tre-primary);
	box-shadow: var(--tre-focus);
}

.tre-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 14px;
	color: var(--tre-heading);
}

.tre-form p {
	margin: 0 0 16px;
}

.tre-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.tre-form__check label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
}

.tre-form__hp {
	position: absolute !important;
	left: -9999px;
}

.tre-form__note {
	font-size: 13px;
	color: var(--tre-muted);
}

.tre-form__msg {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 8px;
	font-weight: 600;
}

.tre-form__msg--ok {
	background: #dcfce7;
	color: #14532d;
}

.tre-form__msg--erro {
	background: #fee2e2;
	color: #7f1d1d;
}

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