/* Notícia: H1 à esquerda, ferramentas, corpo justificado, Leia também. */
.tre-single,
.tre-page {
	margin-top: 24px;
}

.tre-page--narrow {
	max-width: calc(880px + 2 * var(--tre-gutter));
}

.tre-article {
	min-width: 0;
}

.tre-article__head .tre-badge {
	font-size: 12px;
	padding: 4px 9px 3px;
}

.tre-article__title {
	margin-top: 12px;
	font-size: 44px;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-align: left;
}

.tre-article__lead {
	margin-top: 14px;
	font-size: 19px;
	line-height: 1.5;
	color: var(--tre-muted);
}

.tre-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 14px;
	font-size: 13px;
	color: var(--tre-muted);
}

.tre-article__author a {
	font-weight: 700;
	color: var(--tre-heading);
}

/* Barra de ferramentas. */
.tre-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-top: 18px;
	padding: 12px 0;
	border-top: 1px solid var(--tre-border);
	border-bottom: 1px solid var(--tre-border);
}

.tre-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.tre-share__label {
	font-family: var(--tre-font-heading);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tre-muted);
}

.tre-share__list {
	display: flex;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tre-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tre-surface-soft);
	color: var(--tre-heading);
	transition: transform .15s;
}

.tre-share__btn:hover {
	transform: translateY(-2px);
	color: #fff;
}

.tre-share__btn--whatsapp { background: #25d366; color: #fff; }
.tre-share__btn--facebook { background: #1877f2; color: #fff; }
.tre-share__btn--x { background: #111; color: #fff; }
.tre-share__btn--linkedin { background: #0a66c2; color: #fff; }
.tre-share__btn--telegram { background: #229ed9; color: #fff; }
.tre-share__btn--email { background: #6b7280; color: #fff; }
.tre-share__btn--copy:hover { background: var(--tre-primary); }

.tre-share__status {
	font-size: 12px;
	font-weight: 700;
	color: var(--tre-primary);
}

.tre-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tre-tts,
.tre-fontsize {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tre-tts__main {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 6px 14px;
	border: 2px solid var(--tre-primary);
	border-radius: 999px;
	background: var(--tre-surface);
	color: var(--tre-primary);
	font-family: var(--tre-font-heading);
	font-size: 12.5px;
	font-weight: 800;
}

.tre-tts__main:hover,
.tre-tts__main[aria-pressed="true"] {
	background: var(--tre-primary);
	color: #fff;
}

.tre-tts__icon--pause,
.tre-tts__main[data-state="playing"] .tre-tts__icon--play {
	display: none;
}

.tre-tts__main[data-state="playing"] .tre-tts__icon--pause {
	display: inline-flex;
}

.tre-tts__icon {
	display: inline-flex;
}

.tre-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	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: 12.5px;
	font-weight: 800;
}

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

.tre-tool:disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* Imagem principal. */
.tre-article__figure {
	margin: 22px 0 0;
}

.tre-article__img {
	width: 100%;
	height: auto;
	border-radius: var(--tre-card-radius);
}

.tre-article__figure figcaption {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--tre-muted);
	text-align: left;
}

.tre-article__credit {
	font-style: italic;
}

/* Corpo. */
.tre-content {
	--tre-fs: var(--tre-article-size);
	margin-top: 24px;
	font-size: var(--tre-fs);
	line-height: 1.75;
	color: var(--tre-text);
	overflow-wrap: break-word;
}

.tre-content > * + * {
	margin-top: 1.1em;
}

.tre-content p {
	margin: 0 0 1.1em;
}

.tre-justify .tre-single .tre-content > p,
.tre-justify .tre-single .tre-content > .wp-block-group p:not([class*="has-text-align"]) {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

.tre-content h2,
.tre-content h3,
.tre-content h4 {
	margin: 1.6em 0 .6em;
	text-align: left;
	line-height: 1.22;
}

.tre-content h2 { font-size: 1.45em; }
.tre-content h3 { font-size: 1.22em; }
.tre-content h4 { font-size: 1.06em; }

.tre-content a {
	color: var(--tre-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tre-content ul,
.tre-content ol {
	padding-left: 1.4em;
}

.tre-content li + li {
	margin-top: .35em;
}

.tre-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 20px;
	border-left: 4px solid var(--tre-primary);
	font-size: 1.08em;
	font-style: italic;
	color: var(--tre-heading);
	text-align: left;
}

.tre-content blockquote p {
	text-align: left !important;
}

.tre-content figure {
	margin: 1.6em 0;
	max-width: 100%;
}

.tre-content img {
	border-radius: 6px;
	height: auto;
}

.tre-content figcaption,
.tre-content .wp-caption-text,
.tre-content .wp-element-caption {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--tre-muted);
	text-align: left;
}

.tre-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9em;
}

.tre-content .wp-block-table {
	overflow-x: auto;
}

.tre-content th,
.tre-content td {
	padding: 8px 10px;
	border: 1px solid var(--tre-border);
	text-align: left;
}

.tre-content th {
	background: var(--tre-surface-soft);
}

.tre-content pre {
	overflow-x: auto;
	padding: 14px 16px;
	border-radius: 8px;
	background: #111827;
	color: #f9fafb;
	font-size: 14px;
	line-height: 1.55;
	white-space: pre;
	text-align: left;
}

.tre-content iframe,
.tre-content video,
.tre-content embed {
	max-width: 100%;
}

.tre-content .wp-block-embed__wrapper {
	position: relative;
}

.tre-content .alignwide,
.tre-content .alignfull {
	width: 100%;
}

.tre-content .aligncenter {
	margin-inline: auto;
}

.tre-content .alignleft {
	float: left;
	margin: .3em 1.2em .8em 0;
	max-width: 50%;
}

.tre-content .alignright {
	float: right;
	margin: .3em 0 .8em 1.2em;
	max-width: 50%;
}

.tre-content::after {
	content: "";
	display: table;
	clear: both;
}

.tre-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
}

.tre-tags a {
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--tre-surface);
	border: 1px solid var(--tre-border);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tre-heading);
}

.tre-share--bottom {
	margin-top: 24px;
	padding: 14px 0;
	border-top: 1px solid var(--tre-border);
	border-bottom: 1px solid var(--tre-border);
}

/* Anterior / próxima. */
.tre-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 24px;
}

.tre-postnav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--tre-card-radius);
	background: var(--tre-surface);
	box-shadow: var(--tre-shadow);
	color: var(--tre-heading);
	min-width: 0;
}

.tre-postnav__item--empty {
	background: none;
	box-shadow: none;
}

.tre-postnav__item--next {
	flex-direction: row-reverse;
	text-align: right;
}

.tre-postnav__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tre-postnav__text small {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tre-primary);
}

.tre-postnav__text strong {
	font-family: var(--tre-font-heading);
	font-size: 14px;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tre-postnav__img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 6px;
}

.tre-postnav--arrows {
	grid-template-columns: auto auto;
	justify-content: space-between;
}

/* Leia também. */
.tre-related {
	position: relative;
	margin-top: 34px;
}

.tre-related--carousel .tre-related__grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: calc((100% - 2 * 20px) / 3);
	overflow-x: auto;
}

.tre-related--carousel .tre-card {
	scroll-snap-align: start;
}

.tre-related--carousel .tre-scroller__btn {
	top: 40%;
}

/* Comentários. */
.tre-comments {
	margin-top: 34px;
	padding: 22px;
	border-radius: var(--tre-card-radius);
	background: var(--tre-surface);
}

.tre-comments__title {
	font-size: 20px;
	margin-bottom: 14px;
}

.tre-comments__list {
	padding-left: 0;
	list-style: none;
}

.tre-pages {
	display: flex;
	gap: 8px;
	margin-top: 18px;
	font-weight: 700;
}

/* Autor responsável: cartão de contato no fim do texto (inc/responsible.php) */
.tre-content .tre-resp {
	clear: both;
	margin: 40px 0 8px;
	overflow: hidden;
	border: 1px solid var(--tre-border);
	border-radius: var(--tre-card-radius);
	background: var(--tre-surface);
}

.tre-content .tre-resp::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--tre-primary);
}

.tre-content .tre-resp__body {
	padding: 20px 20px 24px;
}

.tre-content .tre-resp p {
	margin: 0;
}

.tre-content .tre-resp__label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tre-heading);
}

.tre-content .tre-resp__id {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.tre-content .tre-resp__avatar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tre-heading);
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
}

.tre-content .tre-resp__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tre-content .tre-resp__name {
	font-size: 20px;
	line-height: 26px;
	font-weight: 600;
	color: var(--tre-heading);
	overflow-wrap: anywhere;
}

.tre-content .tre-resp__role {
	margin-top: 2px;
	font-size: 14px;
	line-height: 20px;
	color: var(--tre-muted);
}

.tre-content .tre-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(--tre-border);
}

.tre-content .tre-resp__item {
	margin: 0;
}

.tre-content .tre-resp__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 14px 8px 8px;
	border: 1px solid var(--tre-border);
	border-radius: var(--tre-card-radius);
	color: var(--tre-heading);
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.tre-content .tre-resp__link:hover {
	border-color: var(--tre-primary);
	text-decoration: none;
}

.tre-content .tre-resp__link:hover .tre-resp__text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tre-content .tre-resp__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--tre-primary) 8%, var(--tre-surface));
	color: var(--tre-primary);
}

.tre-content .tre-resp__text {
	min-width: 0;
}

.tre-content .tre-resp__icon svg {
	display: block;
}

/* Dentro do bloco @media (min-width: 768px) do tema (ou em um novo): */
@media (min-width: 768px) {
	.tre-content .tre-resp {
		margin-top: 48px;
	}

	.tre-content .tre-resp__body {
		padding: 24px 32px 32px;
	}

	.tre-content .tre-resp__avatar {
		width: 64px;
		height: 64px;
		font-size: 22px;
	}

	.tre-content .tre-resp__name {
		font-size: 24px;
		line-height: 30px;
	}

	.tre-content .tre-resp__list {
		flex-direction: row;
		flex-wrap: wrap;
	}
}
