/*
Theme Name: Tricks
Theme URI: https://www.tricks.com.br/blog/
Author: Tricks
Author URI: https://www.tricks.com.br/
Description: Tema moderno e responsivo para o blog da Tricks — skate, patins, BMX e esportes radicais. Segue a identidade visual do site principal (azul-marinho, laranja, Open Sans). Mantém AdSense nos posts, caixa do autor e sidebar de widgets.
Version: 1.1.1
Requires at least: 6.4
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: tricks
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens — paleta do site principal (css-template/styles.css)
   ========================================================================== */
:root {
	--navy: #1e266d;        /* títulos */
	--navy-deep: #040470;   /* seções escuras */
	--navy-soft: #3232a0;   /* ícones/realces sobre o escuro */
	--orange: #ff6c02;      /* botões e destaques */
	--orange-ink: #d95a00;  /* laranja com contraste p/ texto pequeno */
	--orange-soft: #fff0e2;
	--blue: #1d79fb;        /* links */
	--text: #515867;
	--muted: #7d838a;
	--line: #e7e7ec;
	--bg: #f9f9f9;
	--surface: #ffffff;

	--font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(30, 38, 109, .05), 0 8px 24px rgba(30, 38, 109, .07);
	--shadow-lg: 0 2px 4px rgba(30, 38, 109, .06), 0 18px 40px rgba(30, 38, 109, .14);

	--wrap: 1200px;
	--gutter: 16px;
	--header-h: 64px;
}

@media (min-width: 640px) {
	:root { --gutter: 24px; }
}

@media (min-width: 1024px) {
	:root { --gutter: 32px; --header-h: 76px; }
}

/* ==========================================================================
   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(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img { display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--navy);
	margin: 0 0 .5em;
}

button,
input,
select,
textarea { font: inherit; color: inherit; }

.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 {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--orange); color: #fff;
	border-radius: var(--radius-sm);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 880px; }

.inline-list,
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Botões — pílulas como no site principal */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent; border-radius: 32px;
	font-weight: 600; font-size: .875rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--lg { padding: 16px 30px; font-size: .95rem; }
.btn--accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--accent:hover { background: transparent; color: var(--orange); }
.btn--outline { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: #fff; }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: transparent; color: var(--navy); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-deep); }

.chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 32px;
	background: var(--orange-soft);
	color: var(--orange-ink);
	font: 700 .72rem/1.4 var(--font);
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}
.chip:hover { background: var(--orange); color: #fff; }

/* ==========================================================================
   Topbar + Header (branco, como o site)
   ========================================================================== */
.topbar { background: var(--navy-deep); color: #c9cbe6; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.topbar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 639px) { .topbar__nav { display: none; } }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(30, 38, 109, .08); }

.site-header__inner {
	display: flex; align-items: center; gap: 16px;
	min-height: var(--header-h);
}

.brand { flex: 0 1 auto; min-width: 0; }
.brand__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo img { height: 32px; width: auto; }
.brand__tag {
	padding: 3px 10px; border-radius: 32px;
	background: var(--orange-soft); color: var(--orange-ink);
	font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.brand .custom-logo-link { display: block; }
.brand .custom-logo { max-height: 40px; width: auto; }

.site-header__actions { margin-left: auto; display: flex; gap: 4px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: transparent; color: var(--navy);
	cursor: pointer;
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"] { background: var(--orange-soft); color: var(--orange); }
.icon-btn--menu .icon-close { display: none; }
.icon-btn--menu[aria-expanded="true"] .icon-open { display: none; }
.icon-btn--menu[aria-expanded="true"] .icon-close { display: inline; }

/* Navegação */
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: var(--navy); text-decoration: none; font-weight: 600; }
.nav .nav__list a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--orange); }
.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn--navy { color: #fff; }
.nav__cta .btn--navy:hover { color: var(--navy); }
.nav__cta .btn--outline { color: var(--orange); }
.nav__cta .btn--outline:hover { color: #fff; }

/* mobile/tablet: painel abaixo do cabeçalho */
@media (max-width: 1023px) {
	.nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		background: var(--surface);
		padding: 8px var(--gutter) 32px;
		overflow-y: auto;
		opacity: 0; visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav-open { overflow: hidden; }
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }

	.nav__list > li { border-bottom: 1px solid var(--line); position: relative; }
	.nav__list a { padding: 16px 48px 16px 0; font-size: 1.15rem; }
	.nav .sub-menu { list-style: none; margin: 0; padding: 0 0 12px 16px; display: none; }
	.nav .is-open > .sub-menu { display: block; }
	.nav .sub-menu a { padding: 8px 0; font-size: 1rem; color: var(--text); }

	.nav__cta { flex-direction: column; margin-top: 24px; }
	.nav__cta .btn { padding: 14px 22px; font-size: .95rem; }

	.nav__sub-toggle {
		position: absolute; right: 0; top: 8px;
		width: 44px; height: 44px;
		border: 0; background: transparent; cursor: pointer;
	}
	.nav__sub-toggle::before {
		content: ""; display: block; margin: auto;
		width: 9px; height: 9px;
		border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
		transform: rotate(45deg) translateY(-3px);
		transition: transform .2s ease;
	}
	.nav__sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
}

/* desktop */
@media (min-width: 1024px) {
	.icon-btn--menu { display: none; }
	.nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
	.site-header__actions { margin-left: 0; }
	.nav__list { display: flex; gap: 2px; }
	.nav__list > li { position: relative; }
	.nav__list > li > a { padding: 10px 12px; font-size: .875rem; }
	.nav__sub-toggle { display: none; }

	.nav .sub-menu {
		list-style: none; margin: 0; padding: 8px;
		position: absolute; left: 0; top: 100%;
		min-width: 220px;
		background: var(--surface);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.nav li:hover > .sub-menu,
	.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav .sub-menu a { padding: 8px 12px; font-size: .875rem; border-radius: 6px; }
	.nav .sub-menu a:hover { background: var(--bg); }
}
@media (min-width: 1024px) and (max-width: 1179px) {
	.nav__cta .btn--outline { display: none; } /* espaço apertado: mantém só "Entrar" */
}

/* Busca no cabeçalho */
.site-search { background: var(--surface); padding: 16px 0 20px; border-top: 1px solid var(--line); }
.site-search[hidden] { display: none; }

.search-form { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 720px; margin-inline: auto; }
.search-form__input {
	flex: 1; min-width: 0;
	height: 48px; padding: 0 20px;
	border: 1px solid #cbcbd1; border-radius: 32px;
	background: var(--surface); color: var(--text);
	font-size: .95rem;
}
.search-form__input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.search-form__btn {
	flex: none; display: grid; place-items: center;
	width: 48px; height: 48px;
	border: 0; border-radius: 50%;
	background: var(--orange); color: #fff; cursor: pointer;
}
.search-form__btn:hover { background: var(--orange-ink); }

/* ==========================================================================
   Áreas de anúncio
   ========================================================================== */
.header-ad,
.body-ad { padding-block: 20px; text-align: center; }

.ad-slot {
	margin: 40px auto;
	padding: 14px 0 16px;
	max-width: 100%;
	text-align: center;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	clear: both;
}
.ad-slot__label {
	display: block;
	margin-bottom: 10px;
	font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted);
}
.ad-slot__banner img { margin-inline: auto; border-radius: var(--radius-sm); }
.ad-slot ins.adsbygoogle { min-height: 90px; }

/* ==========================================================================
   Hero da home — fundo em gradiente suave como o topo do site
   ========================================================================== */
.hero {
	position: relative;
	padding: 32px 0 16px;
	background:
		radial-gradient(40% 60% at 0% 20%, rgba(186, 214, 255, .55), transparent 70%),
		radial-gradient(35% 50% at 30% 0%, rgba(232, 206, 255, .45), transparent 70%),
		radial-gradient(40% 60% at 100% 70%, rgba(255, 214, 196, .5), transparent 70%),
		var(--surface);
}
@media (min-width: 1024px) { .hero { padding: 56px 0 24px; } }

.hero__intro { max-width: 680px; margin-bottom: 28px; }
@media (min-width: 1024px) { .hero__intro { margin-bottom: 40px; } }
.hero__kicker {
	display: inline-block; margin: 0 0 12px;
	padding-left: 12px; border-left: 3px solid var(--orange);
	color: var(--orange-ink); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero__heading {
	margin: 0 0 12px;
	color: var(--navy);
	font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
	font-size: clamp(1.9rem, 4.5vw, 2.9rem);
	text-wrap: balance;
}
.hero__text { margin: 0; font-size: 1.05rem; max-width: 56ch; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) {
	.hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__item--main { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; }
	.hero__item--main { grid-column: 1; grid-row: 1 / span 2; }
}

.hero__item {
	position: relative; overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-deep);
	min-height: 240px;
	isolation: isolate;
	box-shadow: var(--shadow);
}
.hero__item--main { min-height: 360px; }
@media (min-width: 1024px) {
	.hero__item { min-height: 230px; }
	.hero__item--main { min-height: 500px; }
}

.hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
	z-index: -2;
}
.hero__item:hover .hero__img { transform: scale(1.04); }
.hero__item::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(4, 4, 112, 0) 30%, rgba(4, 4, 80, .88) 100%);
}

.hero__overlay { position: absolute; inset: auto 0 0 0; padding: 20px; color: #fff; }
@media (min-width: 1024px) { .hero__item--main .hero__overlay { padding: 32px; } }

.hero__title { color: #fff; margin: 10px 0 8px; font-size: 1.2rem; line-height: 1.25; }
.hero__item--main .hero__title { font-size: clamp(1.5rem, 3.2vw, 2.25rem); max-width: 24ch; }
.hero__title a { color: inherit; text-decoration: none; }
.hero__title a::after { content: ""; position: absolute; inset: 0; } /* card todo clicável */
.hero__overlay .chip { position: relative; z-index: 1; background: var(--orange); color: #fff; }
.hero__overlay .meta { color: rgba(255, 255, 255, .85); position: relative; z-index: 1; }
.hero__overlay .meta a,
.hero__overlay .meta__author { color: #fff; }

/* ==========================================================================
   Layout: conteúdo + sidebar
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px 56px; }
.layout__main { min-width: 0; }

@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 48px 80px; }
}
@media (min-width: 1280px) {
	.layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
}

.section-head { margin-bottom: 24px; }
.section-head__title { margin: 0; font-size: 1.6rem; }
.section-head__title::after {
	content: ""; display: block; width: 48px; height: 4px; margin-top: 10px;
	background: var(--orange); border-radius: 4px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	/* quantidade ímpar: o último card ocupa a linha toda, em formato horizontal */
	.cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
	.cards > .card:last-child:nth-child(odd) .card__media { flex: 0 0 48%; aspect-ratio: auto; min-height: 260px; }
}

.card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
	display: grid; place-items: center; height: 100%;
	font: 800 4rem/1 var(--font); color: var(--orange); text-transform: uppercase;
}

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__body .chip { align-self: flex-start; position: relative; z-index: 1; }
.card__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* card todo clicável */
.card:hover .card__title a { color: var(--orange); }
.card__excerpt {
	margin: 0; color: var(--text); font-size: .92rem;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: auto; padding-top: 6px; position: relative; z-index: 1; }

/* ==========================================================================
   Meta
   ========================================================================== */
.meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
	font-size: .8rem; color: var(--muted);
}
.meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.meta__author:hover { color: var(--orange); }
.meta__avatar { border-radius: 50%; width: 28px; height: 28px; }
.meta__read { display: inline-flex; align-items: center; gap: 6px; }
.meta__read::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* ==========================================================================
   Cabeçalho de páginas/arquivos — gradiente claro como o site
   ========================================================================== */
.page-hero {
	padding: 36px 0 40px;
	background:
		radial-gradient(45% 80% at 0% 0%, rgba(186, 214, 255, .5), transparent 70%),
		radial-gradient(40% 80% at 100% 100%, rgba(255, 214, 196, .5), transparent 70%),
		var(--surface);
	border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { .page-hero { padding: 56px 0 60px; } }
.page-hero__kicker {
	display: inline-block; margin: 0 0 10px;
	padding-left: 12px; border-left: 3px solid var(--orange);
	color: var(--orange-ink); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.page-hero__title { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.page-hero__desc { max-width: 70ch; margin-top: 12px; }
.page-hero__desc p { margin: 0; }
.page-hero__search { margin-top: 20px; }
.page-hero__search .search-form { margin-inline: 0; }

.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange); }

/* ==========================================================================
   Post único
   ========================================================================== */
.post__header {
	padding: 32px 0 28px;
	background:
		radial-gradient(45% 80% at 0% 0%, rgba(186, 214, 255, .45), transparent 70%),
		radial-gradient(40% 80% at 100% 100%, rgba(255, 214, 196, .45), transparent 70%),
		var(--surface);
}
@media (min-width: 1024px) { .post__header { padding: 48px 0; } }

/* Título + capa lado a lado (desktop/tablet largo); empilhado no celular */
.post__header-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 900px) {
	.post__header--split .post__header-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; }
}
.post__header:not(.post__header--split) .post__header-text { max-width: 880px; }

.post__title {
	margin: 14px 0;
	font-size: clamp(1.75rem, 3.6vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.post__lead { font-size: 1.05rem; color: var(--text); margin: 0 0 18px; max-width: 60ch; }

.post__cover { margin: 0; }
.post__cover img {
	width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
@media (max-width: 899px) {
	.post__cover img { aspect-ratio: 16 / 9; max-height: 300px; }
}
.post__cover figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.post__cover--inline { padding: 0; margin-bottom: 28px; }

.post .layout { padding-top: 36px; }

/* Conteúdo do post */
.entry-content {
	font-size: 1.05rem; line-height: 1.8;
	max-width: 72ch;
	overflow-wrap: break-word;
}
@media (min-width: 1024px) { .entry-content { font-size: 1.0625rem; } }

.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { font-size: 1.65rem; margin-top: 1.7em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.3em; }
.entry-content strong { color: var(--navy); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--orange); font-weight: 700; }
.entry-content blockquote {
	margin-inline: 0; padding: 18px 22px;
	border-left: 4px solid var(--orange);
	background: var(--orange-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.1em; color: var(--navy);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img,
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th { color: var(--navy); background: var(--bg); }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content pre { overflow-x: auto; background: var(--navy-deep); color: #eee; padding: 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.entry-content iframe { width: 100%; }
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.entry-content hr { border: 0; height: 1px; background: var(--line); }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content .aligncenter { margin-inline: auto; }
@media (max-width: 639px) {
	.entry-content .alignleft,
	.entry-content .alignright { float: none; margin: 0 auto 1em; }
}
.entry-content::after { content: ""; display: table; clear: both; }

.page-links { margin-top: 24px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Rodapé do post: tags, share, autor */
.post__footer { display: grid; gap: 28px; margin-top: 40px; }

.tags a {
	display: inline-block; padding: 6px 14px;
	border: 1px solid var(--line); border-radius: 32px;
	background: var(--surface);
	font-size: .8rem; color: var(--navy); text-decoration: none;
}
.tags a::before { content: "#"; color: var(--orange); }
.tags a:hover { border-color: var(--orange); color: var(--orange); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-weight: 700; color: var(--navy); margin-right: 6px; }
.share__btn {
	display: inline-flex; align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--line); border-radius: 32px;
	background: var(--surface); color: var(--navy);
	font-size: .82rem; font-weight: 600;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.share__btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Caixa do autor — borda laranja à esquerda, como os cards do site */
.author-box {
	display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
	padding: 22px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border-left: 4px solid var(--orange);
}
@media (min-width: 640px) { .author-box { gap: 24px; padding: 28px; } }
.author-box__avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--orange-soft); }
@media (min-width: 640px) { .author-box__avatar img { width: 96px; height: 96px; } }
.author-box__kicker { margin: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); font-weight: 700; }
.author-box__name { margin: 2px 0 8px; font-size: 1.35rem; }
.author-box__name a { color: var(--navy); text-decoration: none; }
.author-box__name a:hover { color: var(--orange); }
.author-box__bio { color: var(--text); font-size: .95rem; }
.author-box__bio p { margin: 0 0 .6em; }
.author-box__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: .85rem; font-weight: 600; }
.author-box__links a { text-decoration: none; color: var(--orange-ink); }
.author-box__links a:hover { color: var(--navy); }
.author-box__links a::after { content: " →"; }

.page-hero--author .author-box { box-shadow: var(--shadow); }
.page-hero--author .author-box__name { font-size: clamp(1.6rem, 4vw, 2.25rem); }

/* Navegação entre posts */
.post-nav { margin-top: 40px; }
.post-nav .nav-links { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-nav .nav-links { grid-template-columns: 1fr 1fr; } }
.post-nav a {
	display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 18px 20px;
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	text-decoration: none;
}
.post-nav a:hover { box-shadow: var(--shadow-lg); }
.post-nav .nav-next { text-align: right; }
.post-nav__label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); font-weight: 700; }
.post-nav__title { font-weight: 700; line-height: 1.3; color: var(--navy); }

/* ==========================================================================
   Sidebar e widgets
   ========================================================================== */
.sidebar__inner { display: grid; gap: 24px; }
@media (min-width: 1024px) {
	.sidebar__inner { position: sticky; top: calc(var(--header-h) + 24px); }
	.admin-bar .sidebar__inner { top: calc(var(--header-h) + 56px); }
}

.widget {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow);
	font-size: .92rem;
	overflow-wrap: break-word;
}
.widget__title {
	font-size: 1.05rem;
	margin: 0 0 14px; padding-left: 12px;
	border-left: 3px solid var(--orange);
	line-height: 1.3;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--navy); text-decoration: none; font-weight: 600; }
.widget li a:hover { color: var(--orange); }
.widget .children { padding-left: 14px; margin-top: 8px; }
.widget img { border-radius: var(--radius-sm); margin-inline: auto; }
.widget .wp-block-image { margin: 0; }
.widget_search,
.widget_block:has(.wp-block-image),
.widget_block:has(.adsbygoogle) { padding: 0; background: transparent; box-shadow: none; }
.widget_categories li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.widget select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.widget form input[type="email"],
.widget form input[type="text"] {
	width: 100%; padding: 10px 12px; border: 1px solid #cbcbd1; border-radius: var(--radius-sm);
}

/* ==========================================================================
   Paginação
   ========================================================================== */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 16px;
	border-radius: 32px;
	background: var(--surface); border: 1px solid var(--line);
	color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a.page-numbers:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.pagination .dots { background: transparent; border-color: transparent; }
@media (max-width: 479px) {
	.pagination .prev,
	.pagination .next { flex-basis: 100%; }
}

/* ==========================================================================
   Comentários
   ========================================================================== */
.comments { margin-top: 48px; }
.comments__title { font-size: 1.4rem; }
.comments__list,
.comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: 20px; border-left: 2px solid var(--line); margin-left: 8px; }
@media (min-width: 640px) { .comments__list .children { padding-left: 32px; } }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; margin: 2px 0 8px 54px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-left: 54px; }
.reply { margin-left: 54px; font-size: .85rem; font-weight: 600; }
@media (max-width: 479px) {
	.comment-metadata,
	.comment-content,
	.reply { margin-left: 0; }
}

.comment-respond { margin-top: 32px; padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--navy); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 12px 14px;
	border: 1px solid #cbcbd1; border-radius: var(--radius-sm);
	background: var(--surface);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; color: var(--text); }

/* ==========================================================================
   Vazio / 404
   ========================================================================== */
.empty { padding: 32px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .search-form { margin-inline: 0; }

.notfound { padding-block: 72px 96px; text-align: center; }
.notfound__code {
	margin: 0; font: 800 clamp(6rem, 22vw, 11rem)/.9 var(--font); letter-spacing: -.04em;
	background: linear-gradient(90deg, var(--navy-deep), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.notfound .search-form { margin: 24px auto; }

/* ==========================================================================
   Faixa CTA + Rodapé (azul-marinho profundo, como as seções do site)
   ========================================================================== */
.cta-band { background: var(--navy-deep); color: rgba(255, 255, 255, .82); }
.cta-band__inner {
	display: grid; gap: 24px; align-items: center;
	padding-block: 48px;
}
@media (min-width: 1024px) {
	.cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; padding-block: 64px; }
}
.cta-band__title { margin: 0 0 8px; color: #fff; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.cta-band__text p:last-child { margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

.site-footer__top {
	display: grid; gap: 40px;
	padding-block: 48px 40px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1fr 2.2fr; gap: 56px; } }

.site-footer__logo { display: inline-block; padding: 10px 16px; background: #fff; border-radius: var(--radius-sm); }
.site-footer__logo img { height: 32px; width: auto; }
.site-footer__brand p { margin: 16px 0 0; max-width: 34ch; }

.site-footer__widgets { display: grid; gap: 32px; }
@media (min-width: 640px) { .site-footer__widgets { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

.footer-widget {
	background: rgba(188, 187, 187, .14); box-shadow: none;
	padding: 20px; border-radius: 0;
}
.footer-widget .widget__title { color: #fff; }
.footer-widget li { border-bottom-color: rgba(255, 255, 255, .08); padding: 6px 0; color: rgba(255, 255, 255, .55); }
.footer-widget li a { color: rgba(255, 255, 255, .85); font-weight: 400; }
.footer-widget li a:hover { color: var(--orange); }

.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .8rem;
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   Blocos do core
   ========================================================================== */
.wp-block-button__link { border-radius: 32px; background: var(--orange); color: #fff; }
.wp-block-quote { border-left-color: var(--orange); }
.wp-block-pullquote { border-top: 4px solid var(--navy); border-bottom: 4px solid var(--navy); color: var(--navy); }
.has-text-align-center { text-align: center; }

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