/* Notícia: autor | leitura | citações. Também páginas internas, gráfico, relacionadas e comentários. */

.we-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-top: 40px;
}

.we-single.has-authorcol {
	grid-template-columns: clamp(240px, 25vw, 360px) minmax(0, 1fr);
}

.we-single__main {
	min-width: 0;
	container-type: inline-size;
}

/* Autor */
.we-authorcol {
	padding: 0 24px 0 20px;
}

.we-avatar {
	display: inline-block;
	width: var(--we-av, 140px);
	height: var(--we-av, 140px);
	border: 2px solid var(--accent);
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-soft);
	vertical-align: top;
}

.we-avatar__img,
.we-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.we-avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--primary);
	color: #fff;
	font-size: calc(var(--we-av, 140px) * 0.34);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.we-authorcol__name {
	margin-top: 20px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.we-authorcol__name a {
	color: var(--heading);
	text-transform: uppercase;
	text-decoration: none;
}

.we-authorcol__role {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.we-authorcol__bio,
.we-authorcol__meta {
	margin-top: 12px;
	font-size: 13.5px;
	line-height: 1.5;
}

.we-authorcol__social {
	display: flex;
	gap: 12px;
	margin-top: 14px;
}

.we-authorcol__social a {
	display: inline-flex;
	color: var(--heading);
}

.we-authorcol .we-date {
	margin-top: 16px;
}

/* Cabeçalho do artigo */
.we-article__title {
	margin-top: 4px;
	font-size: var(--we-h1);
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--heading);
	max-width: 860px;
	text-wrap: balance;
}

.we-article__head .we-date,
.we-article__head .we-by {
	margin-top: 14px;
}

.we-lead {
	position: relative;
	margin-top: 36px;
	padding-top: 24px;
	font-family: var(--font-summary);
	font-size: var(--we-lead);
	font-weight: 400;
	line-height: 1.26;
	color: var(--text);
}

.we-lead::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 136px;
	border-top: 1px solid #b9b9b9;
}

.we-article__figure {
	margin: 28px 0 0;
}

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

.we-article__figure .we-credit {
	margin: 8px 0 0;
}

/* Corpo */
.we-article__body {
	display: flow-root;
	position: relative;
	width: min(100%, var(--article-width));
	margin-top: 22px;
}

.we-content {
	font-family: var(--font-serif);
	font-size: var(--we-body);
	line-height: var(--we-lh);
	overflow-wrap: break-word;
}

.we-content > * {
	max-width: 100%;
}

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

.we-justify .we-content > p {
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.we-content a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.we-content a:hover {
	color: var(--accent);
}

.we-content h2,
.we-content h3,
.we-content h4,
.we-content h5,
.we-content h6 {
	margin: 1.6em 0 0.6em;
	font-family: var(--font-head);
	line-height: 1.2;
	text-align: left;
	hyphens: none;
}

.we-content h2 {
	font-size: 1.55em;
}

.we-content h3 {
	font-size: 1.3em;
}

.we-content h4 {
	font-size: 1.12em;
}

.we-content h5,
.we-content h6 {
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.we-content ul,
.we-content ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}

.we-content ul {
	list-style: disc;
}

.we-content ol {
	list-style: decimal;
}

.we-content li {
	margin-bottom: 0.4em;
}

.we-content blockquote {
	margin: 1.4em 0;
	padding: 0 0 0 20px;
	border-left: 4px solid var(--accent);
	font-style: italic;
}

.we-content blockquote p:last-child {
	margin-bottom: 0;
}

.we-content figure {
	margin: 1.4em 0;
}

.we-content figcaption,
.we-content .wp-element-caption {
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
	text-align: left;
}

.we-content img {
	max-width: 100%;
	height: auto;
}

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

.we-content iframe {
	width: 100%;
	border: 0;
}

.we-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-family: var(--font-head);
	font-size: 0.85em;
}

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

.we-content pre {
	margin: 1.4em 0;
	padding: 14px 16px;
	overflow-x: auto;
	border-radius: 4px;
	background: var(--surface-soft);
	font-family: var(--font-mono);
	font-size: 0.8em;
	line-height: 1.5;
}

.we-content code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	overflow-wrap: anywhere;
}

.we-content pre code {
	overflow-wrap: normal;
}

.we-content .alignwide,
.we-content .alignfull {
	max-width: 100%;
	margin-inline: 0;
}

.we-content .alignleft {
	float: left;
	margin: 0.3em 1.2em 0.8em 0;
}

.we-content .alignright {
	float: right;
	margin: 0.3em 0 0.8em 1.2em;
}

.we-content .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.we-content::after {
	content: "";
	display: block;
	clear: both;
}

/* Box da editoria (lateral) */
.we-editoria,
.we-sidequote {
	/* Largura da coluna lateral = o que sobra ao lado do texto (até 340px); a caixa não ocupa espaço no fluxo. */
	--we-sidew: min(340px, calc(100cqw - var(--article-width) - 20px));
	float: right;
	clear: right;
	width: var(--we-sidew);
	margin: 12px calc(-1 * (var(--we-sidew) + 20px)) 24px 20px;
}

.we-editoria__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 15px;
	background: var(--blue-soft);
	color: var(--text);
	text-decoration: none;
}

.we-editoria__text {
	display: block;
	min-width: 0;
}

.we-editoria__kicker {
	display: block;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.we-editoria__desc {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.35;
}

.we-editoria__arrow {
	flex: none;
	color: var(--accent);
}

/* Citações laterais */
.we-sidequote {
	margin-top: 8px;
	margin-bottom: 28px;
	font-family: var(--font-head);
	font-size: var(--we-pq);
	font-weight: 700;
	line-height: 1.12;
	color: var(--accent);
	text-align: left;
	hyphens: none;
}

.we-sidequote p {
	margin: 0;
}

/* Compartilhamento */
.we-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
	font-family: var(--font-head);
}

.we-share__label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.we-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.we-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: transparent;
	color: var(--heading);
	cursor: pointer;
	text-decoration: none;
}

.we-share__btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.we-share__status {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--accent);
}

/* Credenciais */
.we-cred {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--text);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.6;
}

.we-cred__name {
	font-family: var(--font-head);
	font-size: 14px;
	color: var(--heading);
}

.we-cred__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-family: var(--font-head);
	font-size: 15px;
	line-height: 1;
	vertical-align: middle;
}

.we-cred__link {
	color: var(--accent);
}

/* Autor responsável (cartão) */
.we-content .we-resp {
	clear: both;
	margin: 40px 0 8px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--background);
	font-family: var(--font-head);
	font-size: 16px;
	line-height: 1.4;
	hyphens: none;
	text-align: left;
}

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

.we-resp__body {
	padding: 20px;
}

.we-resp__label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

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

.we-resp__avatar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

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

.we-resp__name {
	font-size: 20px;
	font-weight: 700;
	color: var(--heading);
	overflow-wrap: anywhere;
}

.we-resp__role {
	margin-top: 2px;
	font-size: 14px;
	color: var(--muted);
}

.we-resp__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.we-content .we-resp__list {
	list-style: none;
	padding: 0;
}

.we-resp__list li {
	margin: 0;
}

.we-content .we-resp__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.we-resp__icon {
	display: inline-flex;
	color: var(--accent);
}

/* Relacionadas */
.we-divider {
	width: min(100% - 32px, 1100px);
	margin: 64px auto 0;
	border: 0;
	border-top: 2px solid var(--accent);
}

.we-related__title {
	margin: 55px 0 57px;
	font-size: 36px;
	text-align: center;
}

.we-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	width: min(100% - 32px, 1100px);
	margin-inline: auto;
}

.we-card--read .we-media {
	aspect-ratio: 3 / 2;
}

.we-card--read .we-kicker {
	margin: 10px 0 0;
	font-size: 12px;
}

.we-card--read .we-card__title {
	margin-top: 2px;
	font-size: 22px;
	line-height: 1.09;
}

.we-card--read .we-card__dek {
	font-size: 17px;
	line-height: 1.4;
}

.we-card--read .we-by {
	font-size: 12px;
}

/* Páginas internas */
.we-page__wrap {
	width: min(100% - 32px, 720px);
	padding-block: 48px 24px;
}

.we-page__head {
	margin-bottom: 28px;
}

.we-content--page {
	font-size: 18px;
	line-height: 1.7;
}

/* Gráfico */
.we-wrap--chart {
	width: min(100% - 32px, 960px);
	padding-block: 40px;
}

.we-chartembed {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 320px;
	margin-top: 24px;
	border: 1px solid var(--border);
	background: var(--surface-soft);
}

.we-chartembed__poster img {
	display: block;
	max-height: 420px;
	width: auto;
}

.we-chartembed iframe {
	display: block;
	width: 100%;
	height: min(80vh, 640px);
	border: 0;
}

.we-chartpage__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* Comentários */
.we-comments {
	width: min(100% - 32px, 720px);
	padding-block: 48px;
}

.we-comments__title {
	margin-bottom: 20px;
	font-size: 24px;
}

.we-comments__list li {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.we-comments__list .children {
	margin-top: 16px;
	padding-left: 24px;
}

.we-comments .avatar {
	border-radius: 50%;
}

.we-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}
