/*
Theme Name: Editorial Extrajudicial
Theme URI: https://advocaciaextrajudicial.com.br
Author: Advocacia Extrajudicial
Description: Tema editorial do blog Advocacia Extrajudicial, editado por Gilberto Netto.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: editorial-extrajudicial
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--navy: #13294b;          /* azul do selo */
	--navy-deep: #0c1b33;     /* faixas escuras */
	--navy-soft: #e7ecf3;     /* fundo de apoio */
	--paper: #f3f5f8;         /* papel frio */
	--surface: #ffffff;
	--ink: #1d2533;           /* texto */
	--muted: #5b6676;
	--rule: #d5dce5;
	--lacre: #9b2226;         /* vermelho-lacre: usado com parcimônia */
	--lacre-dark: #7d1a1e;
	--on-dark: #e9eef5;
	--on-dark-muted: #a9b5c6;

	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--read: 680px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0; color: var(--ink); }

.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 {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 900px; }
.wrap--read { max-width: calc(var(--read) + 2 * var(--gutter)); }
.wrap--cover { max-width: calc(980px + 2 * var(--gutter)); }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
	padding: 14px 20px; border-radius: var(--radius); border: 1px solid transparent;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
	background: var(--navy); color: #fff;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn--light { background: #fff; color: var(--navy-deep); }
.btn--light:hover { background: var(--on-dark); color: var(--navy-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn--lacre { background: var(--lacre); color: #fff; }
.btn--lacre:hover { background: var(--lacre-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--rule);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.brand__sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__sub { color: var(--on-dark-muted); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-nav__list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav__list a:hover { color: var(--navy); border-bottom-color: var(--rule); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-post-ancestor > a,
.site-nav__list .current-menu-parent > a { border-bottom-color: var(--lacre); }

.site-search { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.site-search input { border: 0; background: transparent; font: inherit; font-size: 14px; padding: 9px 10px; width: 120px; color: var(--ink); }
.site-search input:focus { outline: none; }
.site-search:focus-within { border-color: var(--navy); }
.site-search button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); padding: 9px 12px; cursor: pointer; }

.nav-toggle { display: none; }

@media (max-width: 1140px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 10px;
		background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
		padding: 10px 14px; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 18px; height: 2px; background: currentColor; position: relative;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }

	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--surface); border-bottom: 1px solid var(--rule);
		flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px;
	}
	.site-nav.is-open { display: flex; }
	.site-header__inner { position: relative; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
	.site-search input { width: 100%; }
	.site-search { width: 100%; }
}

@media (max-width: 480px) {
	.brand__name { font-size: 17px; }
	.brand__sub { font-size: 12px; }
	.brand__mark { width: 40px; height: 40px; }
	.nav-toggle__label { display: none; }
}

/* ==========================================================================
   Abertura (hero) com o editor-chefe
   ========================================================================== */
.hero {
	background: var(--navy-deep);
	color: var(--on-dark);
	padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(260px, 5fr) 7fr;
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.hero__portrait { position: relative; margin: 0; max-width: 460px; }
.hero__portrait .hero__img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
	border-radius: var(--radius);
	box-shadow: 0 0 0 1px rgba(255,255,255,.12), 18px 18px 0 0 var(--navy);
}

/* O lacre: único elemento ornamental do site */
.seal {
	position: absolute; right: -22px; bottom: 34px;
	width: 108px; height: 108px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #b8353a 0%, var(--lacre) 55%, var(--lacre-dark) 100%);
	box-shadow: inset 0 0 0 5px rgba(255,255,255,.08), inset 0 0 0 7px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.35);
	display: grid; place-items: center; transform: rotate(-9deg);
}
.seal span {
	font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.05;
	color: #fbeeee; text-align: center;
	border-top: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45);
	padding: 6px 4px;
}

.hero__title {
	font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.02em;
	color: #fff; font-weight: 500; max-width: 15ch;
}
.hero__lead { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--on-dark); max-width: 54ch; margin: 24px 0 0; }

.signature { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.signature p { margin: 0; }
.signature__name { font-family: var(--serif); font-style: italic; font-size: 28px; color: #fff; }
.signature__role { font-size: 15px; color: var(--on-dark-muted); }

.credentials { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 640px; }
.credentials li { font-size: 15px; line-height: 1.4; color: var(--on-dark); padding-left: 16px; position: relative; }
.credentials li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--lacre); border-radius: 50%; }
.credentials--dark li { color: var(--ink); }

.hero__actions { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__portrait { max-width: 340px; margin-right: 24px; }
	.hero__title { max-width: 18ch; }
	.credentials { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.seal { width: 88px; height: 88px; right: -14px; bottom: 24px; }
	.seal span { font-size: 14px; }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Seções da página inicial
   ========================================================================== */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section + .section { padding-top: 0; }

.section__title {
	font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted);
	padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 32px;
}

.kicker {
	display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 600;
	color: var(--lacre); text-decoration: none; margin-bottom: 10px;
}
.kicker:hover { color: var(--lacre-dark); text-decoration: underline; }

.meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Destaque: capa tipográfica com moldura dupla, como a capa de um livro de registro */
.lead-story__grid { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.feature {
	background: var(--navy);
	border-radius: var(--radius);
	padding: 14px;
	color: var(--on-dark);
}
.feature__frame {
	border: 1px solid rgba(255,255,255,.28);
	outline: 1px solid rgba(255,255,255,.12);
	outline-offset: -7px;
	border-radius: 2px;
	padding: clamp(28px, 4.5vw, 56px);
	min-height: 380px;
	display: flex; flex-direction: column;
}
.feature__kicker {
	align-self: flex-start; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none;
	background: var(--lacre); padding: 6px 12px; border-radius: 999px;
}
.feature__kicker:hover { background: var(--lacre-dark); color: #fff; }
.feature__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin-top: 28px; max-width: 22ch; }
.feature__title a { color: #fff; text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; color: #fff; }
.feature__excerpt { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--on-dark); margin: 20px 0 0; max-width: 60ch; }
.feature__foot { margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.meta--light { color: var(--on-dark-muted); margin: 0; }

.also { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 36px); }
.also__title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.also__list { list-style: none; margin: 0; padding: 0; }
.also__list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.also__list li:last-child { border-bottom: 0; }
.also__list a { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.also__list a:hover { color: var(--navy); text-decoration: underline; }
.also__list time { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
	.lead-story__grid { grid-template-columns: 1fr; }
	.also { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 8px; }
}

/* Por onde começar */
.sections { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(48px, 6vw, 72px) 0; }
.section + .sections { padding-top: clamp(48px, 6vw, 72px); }
.sections__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.section-card {
	display: flex; flex-direction: column; gap: 6px; padding: 8px 32px 8px 0; margin-right: 32px;
	border-right: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.section-card:last-child { border-right: 0; margin-right: 0; }
.section-card__name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.section-card__count { font-size: 14px; font-weight: 600; color: var(--lacre); }
.section-card__desc { font-size: 16px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.section-card:hover .section-card__name { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

@media (max-width: 760px) {
	.sections__grid { grid-template-columns: 1fr; }
	.section-card { border-right: 0; margin-right: 0; padding: 20px 0; border-bottom: 1px solid var(--rule); }
	.section-card:last-child { border-bottom: 0; }
}

/* Cartões tipográficos: o filete superior indica a seção */
.archive-grid { padding-top: clamp(48px, 6vw, 72px) !important; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	--sec: var(--navy);
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--rule); border-top: 3px solid var(--sec);
	border-radius: 0 0 var(--radius) var(--radius);
	padding: 24px 24px 22px;
	transition: border-color .15s;
}
.card:hover { border-color: var(--navy); border-top-color: var(--sec); }
.card.is-guias-e-passo-a-passo { --sec: var(--lacre); }
.card.is-modelos-e-exemplos { --sec: #6b7a90; }
.card .kicker { color: var(--sec); }
.card__title { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .kicker { position: relative; z-index: 1; }
.card__title a:hover { color: var(--navy); }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card__excerpt { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #4a5566; margin: 12px 0 0; }
.card .meta { margin-top: auto; padding-top: 16px; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Convite a novos autores */
.invite { background: var(--navy); color: var(--on-dark); padding: clamp(48px, 6vw, 80px) 0; }
.invite__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.invite__title { color: #fff; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.02em; }
.invite__lead { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: #fff; margin: 18px 0 0; max-width: 54ch; }
.invite p { margin: 14px 0 0; line-height: 1.6; max-width: 58ch; }
.invite .hero__actions { margin-top: 28px; }
.invite__who { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.invite__who li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.invite__who-name { font-family: var(--serif); font-size: 21px; color: #fff; }
.invite__who-desc { font-size: 15px; color: var(--on-dark-muted); line-height: 1.5; }
.invite--page .invite__title { font-size: clamp(34px, 4.4vw, 52px); }
@media (max-width: 860px) { .invite__grid { grid-template-columns: 1fr; } }

.write-cta { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.write-cta a { font-weight: 600; }
.editor-box--invite { margin-top: 48px; }

/* Faixa de parceria */
.partner { background: var(--surface); border-top: 1px solid var(--rule); padding: clamp(40px, 5vw, 64px) 0; }
.partner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partner__inner > div { max-width: 62ch; }
.partner__title { font-size: clamp(24px, 2.6vw, 32px); }
.partner p { color: #364154; margin: 10px 0 0; }
.partner__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 !important; }

/* ==========================================================================
   Listagens (arquivo, busca)
   ========================================================================== */
.page-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.page-head__title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.015em; }
.page-head__desc { color: var(--muted); margin-top: 12px; max-width: 62ch; }
.page-head__count { margin: 10px 0 0; font-weight: 600; color: var(--lacre); font-size: 15px; }
.page-head .search-form { margin-top: 20px; }

/* Listagem em forma de índice: data à margem, como num livro de protocolo */
.rows { display: flex; flex-direction: column; }
.row { --sec: var(--navy); display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.row.is-guias-e-passo-a-passo { --sec: var(--lacre); }
.row.is-modelos-e-exemplos { --sec: #6b7a90; }
.row .kicker { color: var(--sec); }
.row__date { border-right: 2px solid var(--sec); padding-right: 16px; text-align: right; }
.row__date time { display: flex; flex-direction: column; }
.row__day { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); }
.row__month { font-size: 14px; color: var(--muted); margin-top: 6px; }
.row__title { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; }
.row__title a { color: var(--ink); text-decoration: none; }
.row__title a:hover { color: var(--navy); text-decoration: underline; }
.row__excerpt { margin: 10px 0 0; color: #364154; font-family: var(--serif); font-size: 17px; line-height: 1.6; max-width: 64ch; }

@media (max-width: 640px) {
	.row { grid-template-columns: 64px 1fr; gap: 16px; }
	.row__day { font-size: 30px; }
	.row__month { font-size: 12px; }
	.row__title { font-size: 21px; }
}

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input {
	flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--navy); }

/* Paginação */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination .page-numbers {
	display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px;
	border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 500;
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.pagination .dots { border: 0; background: transparent; }

/* ==========================================================================
   Artigo
   ========================================================================== */
.article { background: var(--surface); padding-bottom: clamp(48px, 6vw, 80px); }
.article__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 32px; }
.article__title { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.02em; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.byline__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.byline p { margin: 0; }
.byline__name { font-weight: 600; }
.byline__name a { color: var(--ink); text-decoration: none; }
.byline__name a:hover { color: var(--navy); text-decoration: underline; }
.byline .meta { margin-top: 2px; }

.article__head + .prose { padding-top: 8px; }

/* Texto corrido */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: 30px; line-height: 1.2; margin-top: 2em; letter-spacing: -.01em; }
.prose h3 { font-size: 24px; line-height: 1.25; margin-top: 1.8em; }
.prose h4 { font-size: 20px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--lacre); }
.prose strong { font-weight: 600; }
.prose a { color: var(--navy); text-decoration: underline; }
.prose a:hover { color: var(--lacre); }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-caption-text { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Citação como averbação à margem */
.prose blockquote {
	margin: 2em 0; padding: 4px 0 4px 24px;
	border-left: 3px solid var(--lacre);
	font-style: italic; color: #2c3647;
}
.prose blockquote p + p { margin-top: .8em; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }

.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }

.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; margin: 2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--navy-soft); font-weight: 600; }

.prose code { font-size: .88em; background: var(--navy-soft); padding: 2px 5px; border-radius: 3px; }
.prose pre { background: var(--navy-soft); padding: 16px; overflow-x: auto; border-radius: var(--radius); font-size: 15px; }

.prose .alignwide { max-width: 980px; margin-left: auto; margin-right: auto; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }

/* Rodapé do artigo */
.article__foot { margin-top: 56px; }
.tags { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; font-size: 14px; color: var(--navy); background: var(--navy-soft); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.tags a:hover { background: var(--navy); color: #fff; }

.editor-box {
	display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start;
	background: var(--navy-deep); color: var(--on-dark); border-radius: var(--radius);
	padding: clamp(24px, 4vw, 36px);
}
.editor-box__photo img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 4px var(--navy), 0 0 0 5px rgba(255,255,255,.15); }
.editor-box__role { margin: 0; font-size: 14px; font-weight: 600; color: #e9a7a9; }
.editor-box__name { color: #fff; font-size: 28px; margin-top: 4px; }
.editor-box p { margin: 12px 0 0; line-height: 1.6; }
.editor-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
@media (max-width: 560px) {
	.editor-box { grid-template-columns: 1fr; }
	.editor-box__photo img { width: 96px; height: 96px; }
}

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.post-nav__link:hover { border-color: var(--navy); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__dir { font-size: 14px; color: var(--muted); }
.post-nav__title { font-family: var(--serif); font-size: 18px; line-height: 1.3; }
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; text-align: left; }
}

.related { padding-top: clamp(48px, 6vw, 72px) !important; }
.cards--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--three { grid-template-columns: 1fr; } }

/* ==========================================================================
   Página do editor
   ========================================================================== */
.profile { background: var(--surface); border-bottom: 1px solid var(--rule); padding: clamp(40px, 6vw, 80px) 0; }
.profile__grid { display: grid; grid-template-columns: minmax(240px, 4fr) 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile__portrait .hero__img { box-shadow: 0 0 0 1px var(--rule), 18px 18px 0 0 var(--navy-soft); }
.profile__role { margin: 0; font-weight: 600; color: var(--lacre); }
.profile__name { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.02em; margin-top: 8px; }
.profile .credentials { margin-top: 24px; }
.article--page .prose { padding-top: clamp(32px, 5vw, 56px); }
.article--page .article__head + .prose { padding-top: 0; }
@media (max-width: 860px) {
	.profile__grid { grid-template-columns: 1fr; }
	.profile__portrait { max-width: 320px; }
}

/* ==========================================================================
   Comentários
   ========================================================================== */
.comments-wrap { background: var(--surface); border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 56px) !important; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 14px; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--navy); }
.comment-form .submit { background: var(--navy); color: #fff; border: 0; padding: 14px 20px; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--navy-deep); }
.comment-reply-title { font-size: 26px; margin-bottom: 12px; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 72px) 0 0; font-size: 15px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 40px; padding-bottom: 48px; }
.site-footer__about p { max-width: 42ch; margin: 18px 0 0; line-height: 1.6; }
.site-footer__title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.site-footer__contact, .site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__contact li, .site-footer__menu li { padding: 5px 0; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 28px; }
.site-footer__base p { margin: 0; font-size: 14px; }
.site-footer .widget { margin-bottom: 24px; }
.site-footer .widget-title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Compatibilidade com o editor de blocos e plugins
   ========================================================================== */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-button__link { background: var(--navy); border-radius: var(--radius); }
.wp-block-separator { border: 0; border-top: 1px solid var(--rule); }
.page-links { margin-top: 2em; font-family: var(--sans); }
