/**
 * Artigo de Insights (single.php) — layout aprovado "Insight Article".
 * Tokens: lrc-core.css (plugin La Regenera Core).
 */

/* ------------------------------------------------------------------ reading progress */

.lr-article__progress {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 70;
	width: 100%;
	height: 3px;
	background: var(--lr-teal);
	transform: scaleX(var(--lr-progress, 0));
	transform-origin: 0 50%;
	pointer-events: none;
}

/* ------------------------------------------------------------------ header */

.lr-article__hero {
	position: relative;
	background: var(--lr-primary);
	color: var(--lr-white);
	overflow: hidden;
}

.lr-article__hero .lr-article__deco {
	position: absolute;
	right: clamp(20px, 6vw, 120px);
	top: clamp(120px, 14vw, 190px);
	width: clamp(40px, 4vw, 64px);
	height: auto;
}

.lr-article__hero-inner {
	position: relative;
	max-width: var(--lr-max);
	margin: 0 auto;
	padding: clamp(130px, 13vw, 180px) var(--lr-gutter) clamp(120px, 14vw, 220px);
}

.lr-article__hero--no-media .lr-article__hero-inner {
	padding-bottom: clamp(64px, 7vw, 110px);
}

.lr-article__hero .lr-article__back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: calc(14px * var(--lr-ts, 1));
	font-weight: 700;
	color: var(--lr-mint);
	text-decoration: none;
	transition: gap .3s var(--lr-ease), color .3s;
}

.lr-article__hero .lr-article__back:hover,
.lr-article__hero .lr-article__back:focus-visible {
	gap: 16px;
	color: var(--lr-white);
}

.lr-article__head {
	margin-top: 36px;
	max-width: 1080px;
}

.lr-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.lr-article__chip {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: calc(12px * var(--lr-ts, 1));
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.lr-article__date {
	font-size: calc(14px * var(--lr-ts, 1));
	font-weight: 600;
}

.lr-article__hero .lr-article__title {
	margin: 24px 0 0;
	font-size: calc(clamp(40px, 5.4vw, 90px) * var(--lr-ts, 1));
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.04em;
	color: var(--lr-white);
	text-wrap: balance;
}

.lr-article__hero .lr-article__standfirst {
	margin: 28px 0 0;
	max-width: 720px;
	font-size: calc(clamp(18px, 1.5vw, 22px) * var(--lr-ts, 1));
	line-height: 1.55;
	text-wrap: pretty;
}

.lr-article__author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
}

.lr-article__avatar {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--lr-mint);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lr-article__avatar .lr-article__avatar-img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.lr-article__avatar .lr-article__avatar-logo {
	width: 56%;
	background-color: var(--lr-primary);
}

.lr-article__byline {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.4;
}

.lr-article__author-name {
	font-weight: 700;
}

.lr-article__author-role {
	font-size: calc(14px * var(--lr-ts, 1));
	color: var(--lr-mint);
}

/* ------------------------------------------------------------------ hero media */

.lr-article__media {
	position: relative;
	z-index: 1;
	max-width: var(--lr-max);
	margin: calc(-1 * clamp(90px, 11vw, 180px)) auto 0;
	padding: 0 var(--lr-gutter);
}

.lr-article__media-box {
	--lr-arch-max: 600px;
	--lr-arch: calc(var(--lr-arch-max) * (1 - var(--lr-arch-q, 0)));
	position: relative;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: var(--lr-black, #000);
	border-radius: var(--lr-arch) var(--lr-arch) 0 0;
	transition: border-radius .2s linear;
}

.lr-article__media-box .lr-article__media-img {
	position: absolute;
	left: 0;
	top: -6%;
	display: block;
	width: 100%;
	height: 112%;
	max-width: none;
	object-fit: cover;
}

@media (max-width: 699px) {
	.lr-article__media-box {
		--lr-arch-max: 200px;
		aspect-ratio: 4 / 3;
	}
}

/* Sem animação: estado final (sem arco). */
@media (prefers-reduced-motion: reduce) {
	.lr-article__media-box {
		--lr-arch-q: 1;
		transition: none;
	}
}

.lr-article__player {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: clamp(20px, 3vw, 36px);
	background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
	color: var(--lr-white);
}

.lr-article__player .lr-article__play {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lr-yellow);
	color: var(--lr-primary);
	font-size: calc(18px * var(--lr-ts, 1));
	text-decoration: none;
	transition: background-color .3s, transform .3s var(--lr-ease);
}

.lr-article__player .lr-article__play:hover,
.lr-article__player .lr-article__play:focus-visible {
	background: var(--lr-white);
	color: var(--lr-primary);
	transform: scale(1.05);
}

.lr-article__wave {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 3px;
	height: 48px;
}

.lr-article__wave span {
	flex: 1;
	min-width: 1px;
	background: var(--lr-mint);
	border-radius: 2px;
}

.lr-article__duration {
	font-size: calc(14px * var(--lr-ts, 1));
	font-weight: 700;
	white-space: nowrap;
}

.lr-article__client {
	position: absolute;
	right: clamp(16px, 3vw, 40px);
	bottom: clamp(16px, 3vw, 40px);
	width: 180px;
	height: 80px;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lr-white);
}

.lr-article__client .lr-article__client-logo {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ------------------------------------------------------------------ body */

.lr-article__body {
	max-width: var(--lr-max);
	margin: 0 auto;
	padding: clamp(56px, 7vw, 110px) var(--lr-gutter);
	display: flex;
	justify-content: center;
	gap: clamp(24px, 4vw, 56px);
}

/* Compartilhar */
.lr-share--aside {
	display: none;
}

.lr-share__label {
	font-size: calc(12px * var(--lr-ts, 1));
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--lr-teal);
}

.lr-share .lr-share__btn {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s, color .3s, transform .3s var(--lr-ease);
}

.lr-share .lr-share__btn--in {
	background: var(--lr-primary);
	color: var(--lr-white);
	font-size: calc(13px * var(--lr-ts, 1));
	font-weight: 800;
}

.lr-share .lr-share__btn--in:hover,
.lr-share .lr-share__btn--in:focus-visible {
	background: var(--lr-teal);
	color: var(--lr-white);
	transform: translateY(-2px);
}

.lr-share .lr-share__btn--copy {
	border: 1.5px solid var(--lr-primary);
	background: transparent;
	color: var(--lr-primary);
	font-size: calc(15px * var(--lr-ts, 1));
}

.lr-share .lr-share__btn--copy:hover,
.lr-share .lr-share__btn--copy:focus-visible {
	transform: translateY(-2px);
}

.lr-share .lr-share__btn--copy.is-copied {
	background: var(--lr-mint);
}

.lr-share--inline {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--lr-line);
}

.lr-share--inline .lr-share__label {
	margin-right: 6px;
}

@media (min-width: 1000px) {
	.lr-share--aside {
		position: sticky;
		top: 120px;
		align-self: flex-start;
		flex: 0 0 56px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.lr-share--aside .lr-share__label {
		margin-bottom: 6px;
		font-size: calc(10px * var(--lr-ts, 1));
		writing-mode: vertical-rl;
		transform: rotate(180deg);
	}

	.lr-share--inline {
		display: none;
	}

	.lr-article__body .lr-article__content {
		margin-right: 56px;
	}
}

/* ------------------------------------------------------------------ article content (Gutenberg) */

.lr-article__body .lr-article__content {
	flex: 0 1 720px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	font-size: calc(clamp(17px, 1.3vw, 19px) * var(--lr-ts, 1));
	line-height: 1.75;
	text-wrap: pretty;
	overflow-wrap: break-word;
}

.lr-article .lr-article__content > * {
	margin: 0;
}

.lr-article .lr-article__content > h2 {
	margin-top: 20px;
	font-size: calc(clamp(26px, 2.4vw, 36px) * var(--lr-ts, 1));
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.lr-article .lr-article__content > h3 {
	margin-top: 12px;
	font-size: calc(clamp(21px, 1.7vw, 26px) * var(--lr-ts, 1));
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.lr-article .lr-article__content > h4,
.lr-article .lr-article__content > h5,
.lr-article .lr-article__content > h6 {
	margin-top: 8px;
	font-size: 1em;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.lr-article .lr-article__content strong,
.lr-article .lr-article__content b {
	font-weight: 700;
}

.lr-article .lr-article__content :where(p, li, td, th, figcaption, cite, dd, dt, h2, h3, h4) a {
	color: var(--lr-teal);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color .3s;
}

.lr-article .lr-article__content :where(p, li, td, th, figcaption, cite, dd, dt, h2, h3, h4) a:hover {
	color: var(--lr-primary);
}

/* Listas: pontos e números teal */
.lr-article .lr-article__content ul,
.lr-article .lr-article__content ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lr-article .lr-article__content li {
	position: relative;
}

.lr-article .lr-article__content ul > li {
	padding-left: 22px;
}

.lr-article .lr-article__content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .75em;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--lr-teal);
}

.lr-article .lr-article__content ol {
	counter-reset: lr-ol;
}

.lr-article .lr-article__content ol > li {
	padding-left: 34px;
	counter-increment: lr-ol;
}

.lr-article .lr-article__content ol > li::before {
	content: counter(lr-ol) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 800;
	color: var(--lr-teal);
}

.lr-article .lr-article__content li > ul,
.lr-article .lr-article__content li > ol {
	margin-top: 10px;
}

/* Citação de destaque */
.lr-article .lr-article__content .wp-block-pullquote,
.lr-article .lr-article__content .wp-block-quote {
	position: relative;
	margin: 28px 0;
	padding: clamp(28px, 4vw, 48px) 0;
	border: 0;
	border-top: 1.5px solid var(--lr-primary);
	border-bottom: 1.5px solid var(--lr-primary);
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
}

.lr-article .lr-article__content .wp-block-pullquote::before,
.lr-article .lr-article__content .wp-block-quote::before {
	content: "";
	position: absolute;
	right: 0;
	top: -22px;
	width: 44px;
	aspect-ratio: 1;
	background: var(--lr-yellow);
	-webkit-mask: var(--lr-quote-icon) center / contain no-repeat;
	mask: var(--lr-quote-icon) center / contain no-repeat;
}

.lr-article .lr-article__content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.lr-article .lr-article__content .wp-block-pullquote blockquote,
.lr-article .lr-article__content .wp-block-quote {
	font-size: calc(clamp(26px, 2.6vw, 40px) * var(--lr-ts, 1));
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.lr-article .lr-article__content .wp-block-pullquote p,
.lr-article .lr-article__content .wp-block-quote p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.lr-article .lr-article__content .wp-block-pullquote p + p,
.lr-article .lr-article__content .wp-block-quote p + p {
	margin-top: .5em;
}

.lr-article .lr-article__content .wp-block-pullquote cite,
.lr-article .lr-article__content .wp-block-quote cite {
	display: block;
	margin-top: 16px;
	font-size: calc(15px * var(--lr-ts, 1));
	font-style: normal;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lr-teal);
}

/* Imagens: arco no topo */
.lr-article .lr-article__content .wp-block-image {
	margin: 16px 0 0;
}

.lr-article .lr-article__content .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 999px 999px 0 0;
	background: var(--lr-mint);
}

.lr-article .lr-article__content figcaption,
.lr-article .lr-article__content .wp-element-caption {
	margin: 12px 0 0;
	font-size: calc(14px * var(--lr-ts, 1));
	line-height: 1.5;
	text-align: left;
	color: inherit;
}

/* Tabelas */
.lr-article .lr-article__content .wp-block-table {
	margin: 8px 0;
	overflow-x: auto;
	border: 1.5px solid color-mix(in srgb, var(--lr-primary) 20%, transparent);
	border-radius: 12px;
}

.lr-article .lr-article__content .wp-block-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: calc(15px * var(--lr-ts, 1));
	line-height: 1.5;
}

.lr-article .lr-article__content .wp-block-table :where(thead, tfoot) {
	border: 0;
}

.lr-article .lr-article__content .wp-block-table th,
.lr-article .lr-article__content .wp-block-table td {
	padding: 12px 16px;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.lr-article .lr-article__content .wp-block-table thead th {
	border-bottom: 1.5px solid var(--lr-primary);
	font-weight: 800;
}

.lr-article .lr-article__content .wp-block-table tbody tr:nth-child(odd) {
	background: color-mix(in srgb, var(--lr-mint) 30%, var(--lr-white));
}

.lr-article .lr-article__content .wp-block-table figcaption {
	margin: 0;
	padding: 12px 16px 14px;
	font-size: calc(13px * var(--lr-ts, 1));
	font-weight: 700;
	letter-spacing: .06em;
}

/* Outros blocos */
.lr-article .lr-article__content .wp-block-separator,
.lr-article .lr-article__content hr {
	width: 100%;
	height: 0;
	margin: 16px 0;
	border: 0;
	border-top: 1px solid var(--lr-line);
	background: none;
}

.lr-article .lr-article__content :where(iframe, video, embed, object) {
	max-width: 100%;
}

.lr-article .lr-article__content .wp-block-embed__wrapper {
	position: relative;
}

.lr-article .lr-article__content code {
	padding: .1em .35em;
	border-radius: 6px;
	background: color-mix(in srgb, var(--lr-mint) 40%, var(--lr-white));
	font-size: .9em;
}

.lr-article .lr-article__content pre {
	padding: 20px 24px;
	overflow-x: auto;
	border-radius: 12px;
	background: color-mix(in srgb, var(--lr-mint) 30%, var(--lr-white));
	font-size: calc(15px * var(--lr-ts, 1));
	line-height: 1.6;
}

.lr-article .lr-article__content pre code {
	padding: 0;
	background: none;
}

.lr-article__pages {
	font-size: calc(15px * var(--lr-ts, 1));
	font-weight: 700;
}

/* Download (guias) */
.lr-article__download {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 32px;
	background: var(--lr-mint);
}

.lr-article__download-title {
	font-size: calc(22px * var(--lr-ts, 1));
	font-weight: 800;
	line-height: 1.2;
}

.lr-article__download .lr-btn {
	height: 56px;
	padding: 0 28px;
}

/* ------------------------------------------------------------------ related */

.lr-related {
	border-top: 1px solid var(--lr-line);
}

.lr-related__inner {
	max-width: var(--lr-max);
	margin: 0 auto;
	padding: clamp(80px, 9vw, 130px) var(--lr-gutter);
}

.lr-related__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
}

.lr-related .lr-related__title {
	margin: 0;
	font-size: calc(clamp(32px, 3.4vw, 54px) * var(--lr-ts, 1));
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
}

.lr-related__grid {
	margin-top: clamp(36px, 4vw, 56px);
}

@media (prefers-reduced-motion: reduce) {
	.lr-article__hero .lr-article__back,
	.lr-share .lr-share__btn {
		transition: none;
	}
}
