/*
Theme Name: Luzzo Blog
Theme URI: https://www.luzzomdf.com/
Description: Tema editorial do blog da Luzzo MDF. Capas em tela cheia, fotos grandes, leitura confortável e a identidade da marca (azul Luzzo, laranja e Plus Jakarta Sans). Inclui modelo de post para eventos, barra de leitura, posts relacionados, compartilhamento e configurações em Aparência > Personalizar > Luzzo.
Version: 2.3.11
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luzzo-blog
Tags: blog, news, custom-logo, custom-menu, featured-images, block-styles, wide-blocks
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #13233f;
	--navy: #1e3661;
	--accent: #e29f61;
	--accent-ink: #b8732f;
	--paper: #ffffff;
	--mist: #eef1f4;
	--text: #3c4756;
	--muted: #6b7584;
	--line: rgba(19, 35, 63, 0.12);

	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--wrap: 1280px;
	--text-w: 900px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--header-h: 84px;
	--radius: 6px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.menu-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

p {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.wrap {
	width: min(100% - var(--gutter) * 2, var(--wrap));
	margin-inline: auto;
}

.wrap--text {
	width: min(100% - var(--gutter) * 2, var(--text-w));
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 1000;
	padding: 0.7rem 1.1rem;
	background: var(--accent);
	color: var(--ink);
	font-weight: 700;
}

.skip-link:focus {
	top: 1rem;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.8rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.button--accent {
	background: var(--accent);
	color: var(--ink);
}

.button--accent:hover {
	background: #fff;
}

.button--line {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.button--line:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.button--dark,
.wp-block-button__link {
	background: var(--ink);
	color: #fff;
}

.button--dark:hover,
.wp-block-button__link:hover {
	background: var(--accent);
	color: var(--ink);
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), height 0.35s var(--ease);
}

.admin-bar .header {
	top: 32px;
}

/* Sobre capas: transparente, texto branco */
.has-cover .header {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
	border-color: transparent;
	color: #fff;
}

.has-cover .header.is-solid {
	background: var(--paper);
	border-color: var(--line);
	color: var(--ink);
}

.header.is-solid {
	height: 68px;
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.brand__img {
	height: 28px;
	width: auto;
}

.brand__logo--light {
	display: none;
}

.has-cover .header:not(.is-solid) .brand__logo--light {
	display: block;
}

.has-cover .header:not(.is-solid) .brand__logo--dark {
	display: none;
}

.brand__name {
	padding-left: 0.85rem;
	border-left: 1px solid currentColor;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.1;
	opacity: 0.85;
}

.menu {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.menu__links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu__links a {
	font-size: 0.95rem;
	font-weight: 500;
	opacity: 0.85;
	transition: opacity 0.2s;
}

.menu__links a:hover,
.menu__links .current-menu-item > a {
	opacity: 1;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.menu__cta {
	padding: 0.6rem 1.15rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.menu__cta:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	transition: transform 0.3s var(--ease), background-color 0.2s;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -7px;
}

.menu-toggle__bars::after {
	top: 7px;
}

.menu-open .menu-toggle__bars {
	background: transparent;
}

.menu-open .menu-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Barra de leitura */
.progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 110;
	height: 3px;
	pointer-events: none;
}

.admin-bar .progress {
	top: 32px;
}

.progress span {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
}

/* ==========================================================================
   Capa em tela cheia (home e post)
   ========================================================================== */
.cover,
.article__head--cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	color: #fff;
	background: var(--ink);
	isolation: isolate;
}

.article__head--cover {
	min-height: 88vh;
	min-height: 88svh;
}

.cover__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.cover__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: cover-in 1.6s var(--ease) both;
}

.cover__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(10, 20, 38, 0.94) 0%, rgba(10, 20, 38, 0.66) 45%, rgba(10, 20, 38, 0.18) 78%),
		linear-gradient(to bottom, rgba(10, 20, 38, 0.82) 0%, rgba(10, 20, 38, 0.5) 14%, transparent 34%);
}

@keyframes cover-in {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

.cover__content,
.article__intro {
	padding-bottom: clamp(3rem, 8vh, 6rem);
	padding-top: calc(var(--header-h) + 3rem);
}

.cover__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
}

.cover__kicker a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

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

.cover__title,
.article__title {
	max-width: 22ch;
	color: #fff;
	font-size: clamp(2rem, 1.1rem + 3.2vw, 3.9rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.article__title {
	max-width: 24ch;
	font-size: clamp(2rem, 1.1rem + 3vw, 3.7rem);
}

.cover__title a {
	color: inherit;
}

/* Indicador para rolar a página, sob a capa da home */
.cover__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: color 0.3s var(--ease);
}

.cover__scroll:hover {
	color: var(--accent);
}

.cover__scroll svg {
	width: 22px;
	height: 22px;
	animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.6;
	}
	50% {
		transform: translateY(6px);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cover__scroll svg {
		animation: none;
	}
}

@media (max-width: 820px) {
	.cover__scroll {
		display: none;
	}
}

.cover__excerpt,
.article__dek {
	max-width: 56ch;
	margin: 1.5rem 0 2rem;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.article__dek {
	margin-bottom: 0;
}

.tag-event {
	display: inline-block;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--ink);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
}

/* Post sem imagem destacada */
.article__head--plain {
	padding: clamp(3rem, 8vw, 6rem) 0 2.5rem;
	background: var(--paper);
}

.article__head--plain .article__intro {
	padding: 0;
}

.article__head--plain .article__title {
	color: var(--ink);
}

.article__head--plain .article__dek {
	color: var(--muted);
}

.article__head--plain .cover__kicker {
	color: var(--accent-ink);
}

/* ==========================================================================
   Barra de assuntos
   ========================================================================== */
.topics {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.topics__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 76px;
}

.topics__list {
	display: flex;
	gap: 1.75rem;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.topics__list::-webkit-scrollbar {
	display: none;
}

.topics__list a {
	position: relative;
	padding: 1.6rem 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
	transition: color 0.2s;
}

.topics__list a:hover {
	color: var(--ink);
}

.topics__list a.is-active {
	color: var(--ink);
	font-weight: 700;
}

.topics__list a.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: var(--accent);
}

/* Busca */
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: 260px;
}

.search-form > svg {
	position: absolute;
	left: 0.9rem;
	width: 18px;
	height: 18px;
	color: var(--muted);
	pointer-events: none;
}

.search-form__input {
	width: 100%;
	height: 44px;
	padding: 0 1rem 0 2.6rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--mist);
	color: var(--ink);
	font: inherit;
	font-size: 0.92rem;
	outline: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.search-form__input:focus {
	border-color: var(--ink);
	background: #fff;
}

.search-form__btn {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ==========================================================================
   Topo das listagens
   ========================================================================== */
.page-head {
	padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.page-head__label {
	margin-bottom: 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--accent-ink);
}

.page-head__title {
	max-width: 18ch;
	font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.page-head__text {
	max-width: 60ch;
	margin-top: 1.25rem;
	font-size: 1.15rem;
	color: var(--muted);
}

/* ==========================================================================
   Blocos e grades
   ========================================================================== */
.block {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.block:not(.block--dark):not(.block--mist) + .block:not(.block--dark):not(.block--mist) {
	padding-top: 0;
}

.block--mist {
	background: var(--mist);
}

.block--dark {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.75);
}

.block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 3rem;
	margin-bottom: 2.5rem;
}

.block__title {
	margin-bottom: 2.5rem;
	font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
	letter-spacing: -0.04em;
}

.block__head .block__title {
	margin-bottom: 0;
}

.block--dark .block__title {
	color: #fff;
}

.block__intro {
	max-width: 42ch;
	font-size: 1.05rem;
}

.mosaic {
	display: grid;
	grid-template-columns: 1.9fr 1fr;
	grid-template-rows: auto auto;
	gap: 3rem 2.5rem;
}

.mosaic > .story--large {
	grid-row: span 2;
}

.mosaic > .story--large .story__media {
	flex: 1;
	aspect-ratio: auto;
	min-height: 420px;
}

.row-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3.5rem 2.5rem;
}

.row-1 > .story {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	align-items: center;
	gap: 3rem;
}

.row-1 .story__body {
	padding-top: 0;
}

.row-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3.5rem 2.5rem;
}

/* ==========================================================================
   Story (cartão sem moldura)
   ========================================================================== */
.story {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.story__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	background: var(--mist);
}

.story--large .story__media {
	aspect-ratio: 16 / 10;
}

.story--tall .story__media {
	aspect-ratio: 4 / 5;
}

.story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.story:hover .story__media img {
	transform: scale(1.04);
}

.story__blank {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--navy);
}

.story__blank img {
	width: 40px;
	height: auto;
}

.story__body {
	padding-top: 1.25rem;
}

.story__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--accent-ink);
}

.story__kicker a:hover {
	color: var(--ink);
}

.story__title {
	font-size: 1.3rem;
	line-height: 1.25;
	letter-spacing: -0.025em;
	text-wrap: pretty;
}

.story--large .story__title {
	font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.story__title a {
	background-image: linear-gradient(var(--accent), var(--accent));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.45s var(--ease);
}

.story:hover .story__title a {
	background-size: 100% 2px;
}

.story__excerpt {
	margin-top: 0.75rem;
	color: var(--muted);
	font-size: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.story--large .story__excerpt {
	max-width: 60ch;
	font-size: 1.1rem;
}

.story__meta {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.9rem;
	font-size: 0.85rem;
	color: var(--muted);
}

/* Story sobre fundo escuro */
.block--dark .story__title {
	color: #fff;
}

.block--dark .story__kicker {
	color: var(--accent);
}

.block--dark .story__excerpt {
	color: rgba(255, 255, 255, 0.68);
}

.block--dark .story__meta {
	color: rgba(255, 255, 255, 0.6);
}

.block--dark .story__kicker a:hover {
	color: #fff;
}

/* ==========================================================================
   Artigo
   ========================================================================== */
.article__bar {
	border-bottom: 1px solid var(--line);
}

.article__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: 84px;
	padding: 1rem 0;
}

.byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 2rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.byline__item {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.byline__item svg {
	width: 18px;
	height: 18px;
	color: var(--accent-ink);
}

.byline__author img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.byline__author strong {
	color: var(--ink);
	font-weight: 600;
}

.share {
	display: flex;
	gap: 0.5rem;
}

.share__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.share__btn svg {
	width: 18px;
	height: 18px;
}

.share__btn:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.article__body {
	padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

/* Texto corrido */
.prose {
	font-size: 1.1875rem;
	line-height: 1.75;
	color: var(--text);
}

.prose > * {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.prose > p:first-child {
	font-size: 1.35rem;
	line-height: 1.6;
	color: var(--ink);
}

.prose h2 {
	margin-top: 3.25rem;
	margin-bottom: 1.1rem;
	font-size: clamp(1.65rem, 1.3rem + 1vw, 2.1rem);
	letter-spacing: -0.035em;
}

.prose h3 {
	margin-top: 2.5rem;
	margin-bottom: 0.9rem;
	font-size: 1.4rem;
}

.prose h4 {
	margin-top: 2rem;
	font-size: 1.15rem;
}

.prose a:not(.wp-block-button__link):not(.button) {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.prose a:not(.wp-block-button__link):not(.button):hover {
	color: var(--accent-ink);
}

.prose strong {
	color: var(--ink);
}

.prose ul,
.prose ol {
	padding-left: 1.25rem;
}

.prose li {
	margin-bottom: 0.5rem;
	padding-left: 0.25rem;
}

.prose ul li::marker {
	color: var(--accent);
}

.prose ol li::marker {
	color: var(--ink);
	font-weight: 700;
}

.prose blockquote,
.prose .wp-block-quote {
	margin: 3rem 0;
	padding: 0 0 0 1.75rem;
	border-left: 3px solid var(--accent);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.prose blockquote p {
	margin-bottom: 0.75rem;
}

.prose blockquote cite {
	display: block;
	font-size: 0.95rem;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
}

.prose .wp-block-pullquote {
	padding: 2.5rem 0;
	border-top: 3px solid var(--ink);
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Imagens saem da coluna de texto */
.prose figure,
.prose .wp-block-image {
	margin: 2.75rem 0;
}

.prose img {
	border-radius: var(--radius);
}

.prose > .wp-block-image,
.prose > figure.wp-block-image,
.figure-wide,
.prose .alignwide,
.prose > .wp-block-gallery {
	width: 100%;
	margin-left: 0;
	transform: none;
}

.prose > .wp-block-image img,
.figure-wide img {
	width: 100%;
}

.prose .alignfull {
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignfull img {
	border-radius: 0;
}

.prose .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.4rem 2rem 1.25rem 0;
}

.prose .alignright {
	float: right;
	max-width: 50%;
	margin: 0.4rem 0 1.25rem 2rem;
}

.prose .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.prose figcaption,
.wp-element-caption {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--muted);
}

.prose .wp-block-gallery.has-nested-images {
	gap: 0.75rem;
}

.prose .wp-block-gallery.has-nested-images figure.wp-block-image {
	margin: 0;
}

.prose hr,
.prose .wp-block-separator {
	width: 100%;
	height: 1px;
	margin: 3rem 0;
	border: 0;
	background: var(--line);
	opacity: 1;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
}

.prose th,
.prose td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose th {
	border-bottom: 2px solid var(--ink);
	color: var(--ink);
}

.prose code {
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	background: var(--mist);
	font-size: 0.88em;
}

.prose pre {
	padding: 1.25rem;
	border-radius: var(--radius);
	background: var(--ink);
	color: #e9eef5;
	overflow-x: auto;
}

.prose pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.figure-wide {
	margin-top: 0;
	margin-bottom: 3rem;
}

.figure-wide img {
	border-radius: var(--radius);
}

/* Tags */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 3rem;
}

.tags a {
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.88rem;
	color: var(--ink);
	transition: border-color 0.2s;
}

.tags a:hover {
	border-color: var(--ink);
}

/* Nota comercial no fim do texto */
.note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: 3rem;
	padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
	border-radius: 16px;
	background: var(--ink);
	border-left: 5px solid var(--accent);
}

.note__body {
	display: grid;
	gap: 0.2rem;
}

.note__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: #fff;
}

.note__text {
	margin: 0;
	font-size: 0.95rem;
	color: #c9d3e4;
}

.note__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* Comentários */
.comments {
	margin-top: 4rem;
}

.comments__title,
.comment-reply-title {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.comment-list {
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.comment-body {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.comment-form input:not([type='submit']):not([type='checkbox']),
.comment-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font: inherit;
}

.comment-form .submit {
	min-height: 48px;
	padding: 0.8rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--accent);
	color: var(--ink);
}

/* ==========================================================================
   Paginação e vazio
   ========================================================================== */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 4rem;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 600;
	color: var(--ink);
	transition: border-color 0.2s;
}

.pagination a.page-numbers:hover {
	border-color: var(--ink);
}

.pagination .current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 2rem 0;
	text-align: center;
}

.empty h2 {
	margin-bottom: 0.75rem;
	font-size: 1.8rem;
}

.empty p {
	margin-bottom: 1.75rem;
	color: var(--muted);
}

/* ==========================================================================
   Chamada sobre foto e rodapé
   ========================================================================== */
.cta {
	position: relative;
	padding: clamp(5rem, 12vw, 9rem) 0;
	color: rgba(255, 255, 255, 0.82);
	background: var(--ink);
	isolation: isolate;
	overflow: hidden;
}

.cta__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: center;
}

.cta__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 20, 38, 0.94) 0%, rgba(10, 20, 38, 0.75) 50%, rgba(10, 20, 38, 0.35) 100%);
}

.cta__title {
	max-width: 18ch;
	color: #fff;
	font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.cta__text {
	max-width: 48ch;
	margin: 1.25rem 0 2.25rem;
	font-size: 1.15rem;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.footer {
	padding: 4.5rem 0 2rem;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.95rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 3rem;
}

.footer__logo {
	height: 30px;
	width: auto;
	margin-bottom: 1.25rem;
}

.footer__brand p {
	max-width: 34ch;
}

.footer__title {
	margin-bottom: 1.1rem;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.footer__links {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__links a:hover {
	color: #fff;
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
	color: #fff;
}

/* WhatsApp flutuante */
.whatsapp-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 28px rgba(10, 20, 38, 0.28);
	transition: transform 0.3s var(--ease);
}

.whatsapp-float svg {
	width: 28px;
	height: 28px;
}

.whatsapp-float:hover {
	transform: scale(1.06);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1080px) {
	.mosaic {
		grid-template-columns: 1fr 1fr;
	}

	.mosaic > .story--large {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.mosaic > .story--large .story__media {
		flex: none;
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.row-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.row-1 > .story {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.row-1 .story__body {
		padding-top: 1.25rem;
	}

	.footer__top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	:root {
		--header-h: 72px;
	}

	.menu-toggle {
		display: block;
		position: relative;
		z-index: 2;
	}

	.menu {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 2.5rem;
		padding: 6rem var(--gutter) 3rem;
		background: var(--ink);
		color: #fff;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s var(--ease), visibility 0.3s;
	}

	.menu-open .menu {
		opacity: 1;
		visibility: visible;
	}

	.menu-open .header {
		color: #fff;
	}

	.menu-open .brand__logo--light {
		display: block;
		position: relative;
		z-index: 2;
	}

	.menu-open .brand__logo--dark {
		display: none !important;
	}

	.menu-open .brand__name {
		position: relative;
		z-index: 2;
	}

	.menu__links {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.menu__links a {
		font-size: 2rem;
		font-weight: 700;
		letter-spacing: -0.03em;
		opacity: 1;
	}

	.menu__cta {
		align-self: flex-start;
		padding: 0.9rem 1.5rem;
		font-size: 1rem;
	}

	.topics__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: 1rem;
	}

	.topics__list {
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 var(--gutter);
	}

	.topics__list a {
		padding: 1.2rem 0;
	}

	.search-form {
		width: 100%;
	}
}

@media (max-width: 782px) {
	.admin-bar .header,
	.admin-bar .progress {
		top: 46px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 1rem;
	}

	.mosaic,
	.row-2,
	.row-3 {
		grid-template-columns: 1fr;
		gap: 2.75rem;
	}

	.story--tall .story__media {
		aspect-ratio: 4 / 3;
	}

	.brand__img {
		height: 24px;
	}

	.cover,
	.article__head--cover {
		min-height: 92svh;
	}

	.article__head--cover {
		min-height: 80svh;
	}

	.prose {
		font-size: 1.0625rem;
	}

	.prose > p:first-child {
		font-size: 1.2rem;
	}

	.prose .alignleft,
	.prose .alignright {
		float: none;
		max-width: 100%;
		margin: 1.5rem 0;
	}

	.article__bar-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer__top {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}

	.footer__bottom {
		flex-direction: column;
	}
}

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

/* ==========================================================================
   Carrossel de destaques na capa da home (v2.1.0)
   ========================================================================== */
.cover--slider .cover__slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: flex-end;
	isolation: isolate;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}

.cover--slider .cover__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.cover--slider .cover__content {
	padding-bottom: clamp(5.5rem, 12vh, 8rem);
}

/* Movimento: zoom lento na foto e entrada escalonada do texto */
.cover__slide.is-active .cover__media img {
	animation: cover-drift 14s ease-out both;
	will-change: transform;
}

@keyframes cover-drift {
	from {
		transform: scale(1) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
	}
}

.cover__slide.is-active .cover__content > * {
	animation: cover-rise 0.9s var(--ease) both;
}

.cover__slide.is-active .cover__content > :nth-child(1) {
	animation-delay: 0.2s;
}

.cover__slide.is-active .cover__content > :nth-child(2) {
	animation-delay: 0.35s;
}

.cover__slide.is-active .cover__content > :nth-child(3) {
	animation-delay: 0.5s;
}

.cover__slide.is-active .cover__content > :nth-child(4) {
	animation-delay: 0.65s;
}

@keyframes cover-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Controles: indicadores com progresso e setas */
.cover__nav {
	position: absolute;
	right: 0;
	bottom: 1.5rem;
	left: 0;
	z-index: 5;
}

.cover__nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.cover__dots {
	display: flex;
	gap: 0.5rem;
}

.cover__dot {
	position: relative;
	width: 44px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.cover__dot::before,
.cover__dot::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 2px;
}

.cover__dot::before {
	background: rgba(255, 255, 255, 0.35);
}

.cover__dot::after {
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
}

.cover__dot.is-active::after {
	animation: cover-fill var(--cover-delay, 7s) linear forwards;
}

.cover.is-paused .cover__dot.is-active::after {
	animation-play-state: paused;
}

@keyframes cover-fill {
	to {
		transform: scaleX(1);
	}
}

.cover__arrows {
	display: flex;
	gap: 0.6rem;
}

.cover__arrow {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(10, 20, 38, 0.35);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cover__arrow svg {
	width: 20px;
	height: 20px;
}

.cover__arrow:hover,
.cover__arrow:focus-visible {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--ink);
}

@media (max-width: 820px) {
	.cover--slider .cover__content {
		padding-bottom: 6rem;
	}

	.cover__arrow {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cover__slide.is-active .cover__media img,
	.cover__slide.is-active .cover__content > * {
		animation: none;
	}

	.cover--slider .cover__slide {
		transition: none;
	}

	.cover__dot.is-active::after {
		animation: none;
		transform: scaleX(1);
	}
}

/* Assinatura do autor nos posts: nome e cargo mais próximos */
.prose .lz-by b,
.prose .lz-by span {
	display: block;
	margin: 0;
	line-height: 1.25;
}

.prose .lz-by span {
	margin-top: 0.1rem;
}

/* Movimento na capa dos posts */
.article__head--cover .cover__media img {
	animation: cover-drift 18s ease-out both;
	will-change: transform;
}

.article__head--cover .article__intro > * {
	animation: cover-rise 0.9s var(--ease) both;
}

.article__head--cover .article__intro > :nth-child(1) {
	animation-delay: 0.1s;
}

.article__head--cover .article__intro > :nth-child(2) {
	animation-delay: 0.25s;
}

.article__head--cover .article__intro > :nth-child(3) {
	animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
	.article__head--cover .cover__media img,
	.article__head--cover .article__intro > * {
		animation: none;
	}
}

/* Cidade no rodapé, junto da marca */
.footer__brand .footer__place {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	color: var(--accent);
	font-weight: 600;
}

.footer__place svg {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
}

/* Cargo do autor na barra do post */
.byline__author {
	gap: 0.9rem;
}

.byline__text {
	display: grid;
	gap: 0.15rem;
	line-height: 1.3;
}

.byline__name {
	font-size: 1rem;
}

.byline__role {
	font-size: 0.82rem;
	color: var(--muted);
}

.byline__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.5rem;
	font-size: 0.8rem;
	color: var(--accent-ink);
	font-weight: 600;
}

/* Barra do post no celular: autor à esquerda, compartilhar na mesma linha */
@media (max-width: 820px) {
	.article__bar-inner {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.75rem;
		min-height: 0;
	}

	.byline {
		flex: 1 1 auto;
		min-width: 0;
	}

	.byline__author {
		gap: 0.65rem;
	}

	.byline__author img {
		width: 44px;
		height: 44px;
	}

	.byline__name {
		font-size: 0.95rem;
	}

	.byline__role {
		font-size: 0.72rem;
	}

	.byline__meta {
		font-size: 0.74rem;
	}

	.byline__meta span[aria-hidden] {
		display: none;
	}

	.share {
		flex: none;
		gap: 0.25rem;
	}

	.share__btn {
		width: 28px;
		height: 28px;
	}

	.share__btn svg {
		width: 13px;
		height: 13px;
	}
}

/* Índice do artigo */
.prose h2[id] {
	scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.toc {
	margin: 2.5rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 12px;
	background: var(--mist);
}

.toc__title {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.toc__list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.toc__list li {
	display: flex;
	gap: 0.75rem;
	margin: 0;
	counter-increment: toc;
	font-size: 1rem;
	line-height: 1.4;
}

.toc__list li::before {
	content: counter(toc, decimal-leading-zero);
	flex: none;
	font-weight: 700;
	color: var(--accent-ink);
}

.prose .toc .toc__list li a {
	color: var(--ink);
	text-decoration: none;
	text-decoration-line: none;
	font-weight: 600;
	border: 0;
	background: none;
	box-shadow: none;
}

.prose .toc .toc__list li a:hover {
	text-decoration: none;
	color: var(--accent-ink);
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
