/*
Theme Name: Empório Blog
Theme URI: https://blog.emporiosemalcool.com.br
Author: Amicatek
Description: Tema próprio do Blog Empório sem Álcool. Substitui o Swyft + Elementor mantendo o visual: slider de destaques, grade de cards, posts com assinatura do autor e card da loja, modo claro/escuro. Sem page builder.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emporio-blog
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--c-bg: #ffffff;
	--c-layout: #f1f1f2;
	--c-text: #1d1d1f;
	--c-text-2: #616162;
	--c-text-3: #8a8a8a;
	--c-border: #e4e4e4;
	--c-accent: #0d6eff;
	--c-navy: #0d2b45;
	--c-pill: #ededed;
	--c-pill-text: #1d1d1f;
	--c-btn: #39ba71;
	--c-btn-text: #06301a;
	--c-btn-hover: #09ba09;
	--c-btn-hover-text: #ffffff;
	--c-btn-2: #ededed;
	--c-btn-2-text: #1d1d1f;
	--c-author-box: #faf7f2;
	--c-overlay: 0, 0, 0;
	--c-shadow: 0 12px 30px rgba(13, 43, 69, 0.12);

	--r-layout: 8px;
	--r-thumb: 20px;
	--r-button: 35px;

	--container: 1330px;
	--gutter: 24px;
	--header-h: 80px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) {
		--c-bg: #1c1c1c;
		--c-layout: #232323;
		--c-text: #ffffff;
		--c-text-2: #cdcbca;
		--c-text-3: #9a9897;
		--c-border: #343434;
		--c-accent: #5c9dff;
		--c-pill: #2e2e2f;
		--c-pill-text: #e8e8e8;
		--c-btn-2: #3e3e3e;
		--c-btn-2-text: #ffffff;
		--c-author-box: #262422;
		--c-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
		color-scheme: dark;
	}
}

:root[data-scheme="dark"] {
	--c-bg: #1c1c1c;
	--c-layout: #232323;
	--c-text: #ffffff;
	--c-text-2: #cdcbca;
	--c-text-3: #9a9897;
	--c-border: #343434;
	--c-accent: #5c9dff;
	--c-pill: #2e2e2f;
	--c-pill-text: #e8e8e8;
	--c-btn-2: #3e3e3e;
	--c-btn-2-text: #ffffff;
	--c-author-box: #262422;
	--c-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.has-panel-open {
	overflow: hidden;
}

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

img {
	display: block;
}

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

button {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.15;
}

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

.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;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--c-bg);
	color: var(--c-text);
	border-radius: var(--r-layout);
	box-shadow: var(--c-shadow);
}

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

/* ==========================================================================
   Botões
   ========================================================================== */
.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: var(--r-button);
	background: var(--c-btn);
	color: var(--c-btn-text);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.button:hover,
input[type="submit"]:hover {
	background: var(--c-btn-hover);
	color: var(--c-btn-hover-text);
}

.button--secondary {
	background: var(--c-btn-2);
	color: var(--c-btn-2-text);
}

.button--secondary:hover {
	background: var(--c-text);
	color: var(--c-bg);
}

.button--block {
	display: flex;
	width: 100%;
}

.button[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-text);
	cursor: pointer;
	transition: background-color 0.2s;
}

.icon-button:hover {
	background: var(--c-layout);
}

.scheme-toggle__light {
	display: none;
}

:root[data-scheme="dark"] .scheme-toggle__light {
	display: inline-flex;
}

:root[data-scheme="dark"] .scheme-toggle__dark {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) .scheme-toggle__light {
		display: inline-flex;
	}

	:root:not([data-scheme="light"]) .scheme-toggle__dark {
		display: none;
	}
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-bg);
	border-bottom: 0.5px solid var(--c-border);
	transition: box-shadow 0.2s;
}

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

.site-header.is-scrolled {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.site-header__menu-toggle {
	display: none;
}

.site-header__brand {
	justify-self: start;
}

.site-logo {
	display: inline-flex;
	align-items: center;
}

.site-logo__img {
	width: auto;
	height: 40px;
}

.site-logo__img--dark {
	display: none;
}

:root[data-scheme="dark"] .site-logo__img--light {
	display: none;
}

:root[data-scheme="dark"] .site-logo__img--dark {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) .site-logo__img--light {
		display: none;
	}

	:root:not([data-scheme="light"]) .site-logo__img--dark {
		display: block;
	}
}

.site-logo__text {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.site-header__button {
	margin-left: 12px;
	min-height: 52px;
	padding: 12px 24px;
	font-size: 1rem;
}

/* Menu principal */
.primary-nav__list,
.primary-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list {
	display: flex;
	gap: 28px;
}

.primary-nav__list > li {
	position: relative;
}

.primary-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: var(--header-h);
	font-weight: 500;
	letter-spacing: -0.03em;
	transition: color 0.2s;
}

.primary-nav__list a:hover {
	color: var(--c-text-2);
}

.primary-nav__list .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -4px 0 0 6px;
	border-right: 1.75px solid currentColor;
	border-bottom: 1.75px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.primary-nav__list .sub-menu {
	position: absolute;
	top: calc(100% - 12px);
	left: 50%;
	min-width: 240px;
	padding: 10px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 12px;
	box-shadow: var(--c-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu,
.primary-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.primary-nav__list li:hover > a::after,
.primary-nav__list li.is-open > a::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.primary-nav__list .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--r-layout);
	font-weight: 500;
	letter-spacing: -0.03em;
}

.primary-nav__list .sub-menu a:hover,
.primary-nav__list .sub-menu .current-menu-item > a {
	background: var(--c-layout);
	color: var(--c-text);
}

/* ==========================================================================
   Busca (overlay)
   ========================================================================== */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.25s;
}

.search-overlay__panel {
	position: relative;
	padding: 32px 0 40px;
	background: var(--c-bg);
	box-shadow: var(--c-shadow);
	transform: translateY(-100%);
	transition: transform 0.25s ease-out;
}

.search-overlay.is-open .search-overlay__backdrop {
	opacity: 1;
}

.search-overlay.is-open .search-overlay__panel {
	transform: none;
}

.search-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.search-overlay__header h2 {
	font-size: 1.75rem;
}

.search-overlay__cats {
	margin-top: 20px;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 760px;
}

.search-form__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-layout);
	background: var(--c-bg);
	color: var(--c-text);
	font: 500 1rem/1.4 var(--font);
	letter-spacing: -0.025em;
	transition: border-color 0.2s;
}

.search-form__input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--c-text-2);
	outline: none;
}

.search-form__submit {
	flex-shrink: 0;
	min-height: 52px;
}

/* ==========================================================================
   Menu lateral (offcanvas)
   ========================================================================== */
.offcanvas-overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s;
}

.offcanvas-overlay.is-open {
	opacity: 1;
}

.offcanvas {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 301;
	display: flex;
	flex-direction: column;
	width: min(360px, 88vw);
	background: var(--c-bg);
	transform: translateX(-100%);
	transition: transform 0.25s ease-out;
	overflow-y: auto;
}

.offcanvas.is-open {
	transform: none;
}

.offcanvas__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 8px 16px 8px 24px;
	border-bottom: 1px solid var(--c-border);
}

.offcanvas__header .site-logo__img {
	height: 34px;
}

.offcanvas__body {
	flex: 1;
	padding: 16px 24px 24px;
}

.offcanvas-nav,
.offcanvas-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.offcanvas-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	font-weight: 500;
	font-size: 1.0625rem;
	letter-spacing: -0.03em;
}

.offcanvas-nav > li {
	border-bottom: 1px solid var(--c-border);
}

.offcanvas-nav .menu-item-has-children > a::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.offcanvas-nav .is-open > a::after {
	transform: rotate(-135deg);
}

.offcanvas-nav .sub-menu {
	display: none;
	padding: 0 0 8px 12px;
}

.offcanvas-nav .is-open > .sub-menu {
	display: block;
}

.offcanvas-nav .sub-menu a {
	padding: 8px 0;
	color: var(--c-text-2);
	font-size: 1rem;
}

.offcanvas__body > .button {
	margin: 24px 0;
}

.offcanvas__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-top: 1px solid var(--c-border);
}

.widget {
	margin-bottom: 28px;
}

.widget-title {
	margin-bottom: 12px;
	font-size: 1rem;
	letter-spacing: -0.03em;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 4px 0;
	color: var(--c-text-2);
}

.widget img {
	border-radius: var(--r-layout);
}

.widget a:hover {
	color: var(--c-text);
}

.widget .wp-block-heading,
.widget h2 {
	margin-bottom: 12px;
	font-size: 1rem;
	letter-spacing: -0.03em;
}

.wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.wp-block-search__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-layout);
	background: var(--c-bg);
	color: var(--c-text);
	font: inherit;
}

.wp-block-search__button {
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: var(--r-button);
	background: var(--c-btn);
	color: var(--c-btn-text);
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   Pílulas de categoria / tags / meta
   ========================================================================== */
.entry-cats,
.tag-list,
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-cats a {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--c-pill);
	color: var(--c-pill-text);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.4;
	transition: background-color 0.2s, color 0.2s;
}

.entry-cats a:hover {
	background: var(--c-text);
	color: var(--c-bg);
}

.entry-cats--overlay a {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	backdrop-filter: blur(6px);
}

.entry-cats--overlay a:hover {
	background: #fff;
	color: #1d1d1f;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.entry-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 0.85;
}

.entry-meta__author a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 1;
}

.entry-meta__author-name {
	color: inherit;
}

.entry-meta__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.entry-meta__date {
	position: relative;
	padding-left: 12px;
	opacity: 0.85;
}

.entry-meta__date::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
}

/* ==========================================================================
   Hero (slider da home)
   ========================================================================== */
.hero {
	position: relative;
	margin-top: 24px;
	border-radius: var(--r-thumb);
	overflow: hidden;
	background: #1d1d1f;
	isolation: isolate;
}

.hero__track {
	display: grid;
}

.hero__slide {
	position: relative;
	grid-area: 1 / 1;
	aspect-ratio: 1330 / 548;
	min-height: 420px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.hero__media,
.entry-hero__media {
	position: absolute;
	inset: 0;
}

.hero__media img,
.entry-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__media::after,
.entry-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(var(--c-overlay), 0.55) 0%, rgba(var(--c-overlay), 0.3) 50%, rgba(var(--c-overlay), 0.1) 100%);
}

.hero__content {
	position: absolute;
	left: 64px;
	bottom: 72px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 760px;
	color: #fff;
}

.hero__content .entry-meta {
	font-size: 0.9375rem;
}

.hero__title {
	font-size: clamp(1.75rem, 3vw, 2.625rem);
	letter-spacing: -0.06em;
	line-height: 1.1;
	text-wrap: balance;
}

.hero__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__excerpt {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.4;
}

.hero__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	backdrop-filter: blur(6px);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.2s, background-color 0.2s;
}

.hero:hover .hero__nav,
.hero__nav:focus-visible {
	opacity: 1;
}

.hero__nav:hover {
	background: rgba(255, 255, 255, 0.35);
}

.hero__nav--prev {
	left: 16px;
}

.hero__nav--next {
	right: 16px;
}

.hero__dots {
	position: absolute;
	right: 64px;
	bottom: 64px;
	z-index: 2;
	display: flex;
	gap: 4px;
}

.hero__dot {
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.hero__dot::before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transition: transform 0.2s, background-color 0.2s;
}

.hero__dot.is-active::before {
	background: #fff;
	transform: scale(1.5);
}

/* ==========================================================================
   Cabeçalhos de página
   ========================================================================== */
.page-header {
	padding: 64px 0 24px;
}

.page-header__kicker {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--c-text-2);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.page-header__title {
	font-size: 2rem;
	letter-spacing: -0.06em;
	line-height: 1.15;
}

.page-header__desc {
	max-width: 760px;
	margin: 8px 0 0;
	color: var(--c-text-2);
	font-size: 1.125rem;
	line-height: 1.5;
}

.page-header__desc p {
	margin: 0;
}

.page-header--archive {
	padding-top: 56px;
	padding-bottom: 32px;
}

.page-header--archive .page-header__title {
	font-size: clamp(2rem, 4vw, 3rem);
}

.page-header__search {
	margin-top: 24px;
}

/* ==========================================================================
   Grade de posts
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 64px 32px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.card__thumb {
	display: block;
	position: relative;
	aspect-ratio: 21 / 9;
	border-radius: var(--r-thumb);
	overflow: hidden;
	background: var(--c-layout);
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__thumb img {
	transform: scale(1.04);
}

.entry-thumb__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--c-layout), var(--c-border));
}

.card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.card__meta {
	color: var(--c-text-2);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.card__meta span {
	color: var(--c-text);
}

.card__title {
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.036em;
	line-height: 1.3;
}

.card__title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s;
}

.card__title a:hover {
	background-size: 100% 1px;
}

.card__cats {
	margin-top: 6px;
}

.card__excerpt {
	margin: 0;
	color: var(--c-text-2);
}

.empty-state {
	padding: 40px 0;
	color: var(--c-text-2);
}

/* Paginação / carregar mais */
.pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: 64px 0 0;
}

.pagination.has-js .pagination__numbers {
	display: none;
}

.pagination__numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination__numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--r-button);
	background: var(--c-btn-2);
	color: var(--c-btn-2-text);
	font-weight: 600;
}

.pagination__numbers .page-numbers.current,
.pagination__numbers a.page-numbers:hover {
	background: var(--c-text);
	color: var(--c-bg);
}

.load-more {
	min-width: 160px;
}

/* ==========================================================================
   Post individual
   ========================================================================== */
.entry-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-top: 24px;
	min-height: 465px;
	border-radius: var(--r-thumb);
	overflow: hidden;
	background: #1d1d1f;
	color: #fff;
	isolation: isolate;
}

.entry-hero__media {
	z-index: -1;
}

.entry-hero__content {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 820px;
	padding: 64px;
}

.entry-hero__title {
	font-size: clamp(1.875rem, 3.2vw, 2.75rem);
	letter-spacing: -0.06em;
	line-height: 1.08;
	text-wrap: balance;
}

.entry-hero--plain {
	min-height: 0;
	background: var(--c-layout);
	color: var(--c-text);
}

.entry-hero--plain .entry-cats--overlay a {
	background: var(--c-pill);
	color: var(--c-pill-text);
}

.entry-layout {
	display: grid;
	grid-template-columns: minmax(0, 860px) 300px;
	justify-content: space-between;
	gap: 64px;
	margin-top: 56px;
}

.entry-sidebar__sticky {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.admin-bar .entry-sidebar__sticky {
	top: calc(var(--header-h) + 56px);
}

/* Assinatura (byline) */
.byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 32px;
	padding: 14px 0;
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.byline__avatar {
	flex-shrink: 0;
}

.byline__avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
}

.byline__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--c-text-2);
}

.byline__name {
	color: var(--c-text);
	font-weight: 700;
}

.byline__name a {
	color: var(--c-navy);
}

:root[data-scheme="dark"] .byline__name a {
	color: #8fc1ff;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) .byline__name a {
		color: #8fc1ff;
	}
}

.byline__dates {
	color: var(--c-text-3);
	font-size: 0.8125rem;
}

/* Conteúdo */
.entry-content {
	color: var(--c-text-2);
	font-size: 1.125rem;
	letter-spacing: -0.015em;
	line-height: 1.85;
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.5em;
}

.entry-content a {
	color: var(--c-text);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--c-btn) 70%, transparent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}

.entry-content a:hover {
	text-decoration-color: var(--c-btn-hover);
}

.entry-content strong,
.entry-content b {
	color: var(--c-text);
	font-weight: 600;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 1.9em 0 0.55em;
	color: var(--c-text);
	line-height: 1.25;
}

.entry-content h2 {
	font-size: clamp(1.625rem, 2.6vw, 2rem);
	letter-spacing: -0.05em;
}

.entry-content h3 {
	font-size: 1.375rem;
	letter-spacing: -0.04em;
}

.entry-content h4 {
	font-size: 1.125rem;
	letter-spacing: -0.03em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.45em;
}

.entry-content li {
	margin: 0 0 0.6em;
	line-height: 1.75;
}

.entry-content li::marker {
	color: var(--c-btn);
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 0.6em 0 0;
}

.entry-content img {
	height: auto;
	margin: 0 auto;
	border-radius: 12px;
}

.entry-content figure,
.entry-content .wp-block-image {
	margin: 2.4em auto;
}

.entry-content p > img:only-child {
	margin: 2.4em auto;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 10px;
	color: var(--c-text-3);
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 0.5em 1.2em;
	border-left: 4px solid var(--c-navy);
	color: var(--c-text);
	font-size: 1.1875rem;
	font-weight: 500;
}

:root[data-scheme="dark"] .entry-content blockquote {
	border-left-color: var(--c-btn);
}

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

.entry-content hr {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--c-border);
}

.entry-content code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--c-layout);
	font-size: 0.9em;
}

.entry-content iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
}

.table-scroll {
	margin: 2em 0;
	overflow-x: auto;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	-webkit-overflow-scrolling: touch;
}

.entry-content table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--c-layout);
	color: var(--c-text);
	font-weight: 600;
}

.entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.entry-content tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--c-layout) 45%, transparent);
}

.entry-content .wp-block-table {
	margin: 2em 0;
}

.entry-content .wp-block-table .table-scroll {
	margin: 0;
}

.entry-content .wp-block-button__link {
	border-radius: var(--r-button);
	background: var(--c-btn);
	color: var(--c-btn-text);
	text-decoration: none;
	font-weight: 600;
}

.entry-content .alignwide {
	margin-left: -40px;
	margin-right: -40px;
	max-width: none;
}

.entry-content .alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.page-links {
	margin-top: 2em;
	font-weight: 600;
}

/* Caixa do autor */
.author-box {
	display: flex;
	gap: 20px;
	margin: 44px 0 0;
	padding: 28px;
	border-radius: 14px;
	background: var(--c-author-box);
	color: var(--c-text-2);
	line-height: 1.75;
}

.author-box__avatar {
	flex-shrink: 0;
}

.author-box__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.author-box__title {
	margin-bottom: 8px;
	color: var(--c-text);
	font-size: 1.125rem;
}

.author-box p {
	margin: 0 0 12px;
}

.author-box p:last-child {
	margin-bottom: 0;
}

.author-box strong {
	color: var(--c-text);
}

.author-box__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-navy);
	font-weight: 700;
}

.author-box__cta:hover .icon {
	transform: translateX(3px);
}

.author-box__cta .icon {
	transition: transform 0.2s;
}

:root[data-scheme="dark"] .author-box__cta {
	color: #8fc1ff;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) .author-box__cta {
		color: #8fc1ff;
	}
}

/* Tags */
.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
}

.entry-footer__label {
	font-weight: 600;
}

.tag-list a {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-button);
	color: var(--c-text-2);
	font-size: 0.875rem;
	transition: border-color 0.2s, color 0.2s;
}

.tag-list a:hover {
	border-color: var(--c-text);
	color: var(--c-text);
}

/* Card da loja (CTA) */
.store-cta__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 380px;
	padding: 28px 22px;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--c-navy);
	background-image: linear-gradient(180deg, rgba(13, 43, 69, 0.45) 0%, rgba(13, 43, 69, 0.78) 52%, rgba(13, 43, 69, 0.96) 100%), var(--cta-bg, none);
	background-size: cover;
	background-position: center;
	color: #fff;
	box-shadow: 0 12px 30px rgba(13, 43, 69, 0.22);
}

.store-cta__inner:not(.has-image)::before {
	content: "0,0%";
	position: absolute;
	top: 18px;
	right: -6px;
	color: rgba(255, 255, 255, 0.045);
	font-size: 5.5rem;
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 1;
	pointer-events: none;
}

.store-cta__tag {
	display: inline-block;
	margin-bottom: 10px;
	color: #ffd9a8;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.store-cta__title {
	display: block;
	margin-bottom: 8px;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.store-cta__text {
	margin: 0 0 16px;
	color: #eaf1f8;
	font-size: 0.875rem;
	line-height: 1.55;
}

.store-cta__btn {
	display: block;
	padding: 12px 16px;
	border-radius: 30px;
	background: var(--c-btn);
	color: var(--c-btn-text);
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s, color 0.2s;
}

.store-cta__btn:hover {
	background: var(--c-btn-hover);
	color: #fff;
}

.store-cta--inline {
	display: none;
	margin: 2.4em 0;
	line-height: 1.5;
}

.store-cta--inline .store-cta__inner {
	min-height: 0;
	padding: 32px 28px;
}

.store-cta--inline .store-cta__btn {
	display: inline-block;
	align-self: flex-start;
	padding: 12px 28px;
}

.entry-sidebar .widget {
	margin-top: 32px;
}

/* Relacionados */
.related {
	margin-top: 96px;
	padding-top: 56px;
	border-top: 1px solid var(--c-border);
}

.related__title {
	margin-bottom: 32px;
	font-size: 2rem;
	letter-spacing: -0.06em;
}

/* Comentários */
.comments {
	margin-top: 48px;
	padding: 48px;
	border-radius: 20px;
	background: var(--c-layout);
}

.comments__title,
.comment-reply-title {
	margin-bottom: 16px;
	font-size: 2rem;
	letter-spacing: -0.06em;
}

.comment-reply-title small {
	margin-left: 12px;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
}

.comment-list {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding-left: 32px;
	list-style: none;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--c-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin: 4px 0 8px 60px;
	color: var(--c-text-3);
	font-size: 0.8125rem;
}

.comment-content {
	margin-left: 60px;
	color: var(--c-text-2);
}

.reply {
	margin-left: 60px;
	font-size: 0.875rem;
	font-weight: 600;
}

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

.comment-form > p {
	grid-column: 1 / -1;
	margin: 0 0 20px;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	grid-column: auto;
}

.comment-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.comment-form .required {
	color: #d63638;
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--c-text-2);
	font-size: 0.875rem;
}

.comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-weight: 400;
}

.comment-notes,
.logged-in-as {
	color: var(--c-text-2);
}

.comment-notes a,
.logged-in-as a {
	text-decoration: underline;
}

/* ==========================================================================
   Página estática / 404
   ========================================================================== */
.entry--page {
	max-width: 860px;
	margin: 0 auto;
}

.page-header--page {
	padding: 56px 0 32px;
}

.page-header--page .page-header__title {
	font-size: clamp(2rem, 4vw, 3rem);
}

.page-header--page .page-header__kicker:hover {
	color: var(--c-text);
}

.entry-page__thumb img {
	width: 100%;
	margin-bottom: 40px;
	border-radius: var(--r-thumb);
}

.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 80px 0 24px;
	text-align: center;
}

.not-found__code {
	margin: 0;
	color: var(--c-btn);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 1;
}

.not-found .search-form {
	width: 100%;
	max-width: 560px;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
	margin-top: 96px;
	padding: 56px 0 32px;
	background: var(--c-layout);
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--c-border);
}

.site-footer .site-logo__img {
	height: 52px;
}

.site-footer__desc {
	max-width: 400px;
	margin-top: 12px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.6;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	font-weight: 500;
	letter-spacing: -0.03em;
}

.footer-nav a:hover {
	color: var(--c-text-2);
}

.site-footer__social {
	justify-self: end;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--c-bg);
	transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover {
	background: var(--c-text);
	color: var(--c-bg);
}

.site-footer__bottom {
	padding-top: 24px;
	font-size: 0.875rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__credits {
	margin-top: 4px !important;
	color: var(--c-text-2);
	font-size: 0.8125rem;
}

.site-footer__credits a {
	text-decoration: underline;
}

/* Voltar ao topo */
.scroll-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-bg);
	color: var(--c-text);
	box-shadow: var(--c-shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.scroll-top__progress {
	position: absolute;
	inset: 0;
	transform: rotate(-90deg);
}

.scroll-top__progress circle {
	fill: none;
	stroke: var(--c-btn);
	stroke-width: 2;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
}

/* ==========================================================================
   Blocos do editor (alinhamentos e cores do core)
   ========================================================================== */
.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--c-border);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1199.98px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 24px;
	}

	.entry-layout {
		grid-template-columns: minmax(0, 1fr);
		max-width: 860px;
		margin-left: auto;
		margin-right: auto;
	}

	.entry-sidebar {
		display: none;
	}

	.store-cta--inline {
		display: block;
	}

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

@media (max-width: 991.98px) {
	:root {
		--header-h: 64px;
	}

	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 8px;
	}

	.site-header__menu-toggle {
		display: inline-flex;
		margin-left: -8px;
	}

	.site-header__brand {
		justify-self: center;
	}

	.site-logo__img {
		height: 34px;
	}

	.primary-nav,
	.site-header__button,
	.site-header__actions .scheme-toggle {
		display: none;
	}

	.hero__content,
	.entry-hero__content {
		left: 32px;
		right: 32px;
		bottom: 56px;
		padding: 40px 32px;
	}

	.hero__content {
		padding: 0;
	}

	.hero__dots {
		right: auto;
		left: 32px;
		bottom: 20px;
	}

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

	.related .post-grid > :nth-child(3) {
		display: none;
	}

	.site-footer__top {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.site-footer__social {
		justify-self: start;
	}

	.comments {
		padding: 32px 24px;
	}

	.comment-form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	:root {
		--gutter: 16px;
	}

	.hero {
		margin-top: 16px;
	}

	.hero__slide {
		aspect-ratio: auto;
		min-height: 440px;
	}

	.hero__media::after,
	.entry-hero__media::after {
		background: linear-gradient(180deg, rgba(var(--c-overlay), 0.1) 0%, rgba(var(--c-overlay), 0.45) 45%, rgba(var(--c-overlay), 0.8) 100%);
	}

	.hero__content {
		left: 20px;
		right: 20px;
		bottom: 48px;
		gap: 12px;
	}

	.hero__excerpt {
		font-size: 1rem;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hero__nav {
		display: none;
	}

	.hero__dots {
		left: 14px;
		bottom: 14px;
	}

	.entry-hero {
		margin-top: 16px;
		min-height: 420px;
	}

	.entry-hero__content {
		padding: 28px 20px;
		gap: 14px;
	}

	.entry-hero .entry-meta {
		font-size: 0.875rem;
	}

	.entry-layout {
		margin-top: 32px;
	}

	.entry-content {
		font-size: 1.0625rem;
		line-height: 1.8;
	}

	.page-header {
		padding: 40px 0 20px;
	}

	.page-header__title {
		font-size: 1.75rem;
	}

	.author-box {
		flex-direction: column;
		padding: 24px;
	}

	.comments {
		margin-left: calc(var(--gutter) * -1);
		margin-right: calc(var(--gutter) * -1);
		border-radius: 0;
	}

	.related {
		margin-top: 64px;
	}

	.site-footer {
		margin-top: 64px;
	}

	.scroll-top {
		right: 16px;
		bottom: 16px;
		width: 46px;
		height: 46px;
	}

	.search-form {
		flex-direction: column;
	}
}

@media (max-width: 575.98px) {
	.post-grid,
	.related .post-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.related .post-grid > :nth-child(3) {
		display: flex;
	}
}

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

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

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