/* ==========================================================================
   Finance Foxx — main stylesheet
   Sistema de design: tokens, tipografia, componentes, layouts, utilitários.
   Sem dependências externas. Sem fontes remotas. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Colors: oat linen, cocoa ink, sage accent, chestnut second, mustard stitch */
	--ffx-paper: #f8f2e8;
	--ffx-paper-deep: #efe3d1;
	--ffx-surface: #fffcf6;
	--ffx-ink: #33261f;
	--ffx-ink-soft: #594a40;
	--ffx-ink-muted: #72625a;
	--ffx-line: #e6d8c3;
	--ffx-line-strong: #cfbb9e;
	--ffx-accent: #3d6955;
	--ffx-accent-hover: #2c5241;
	--ffx-accent-soft: #e3eee5;
	--ffx-second: #6e3f33;
	--ffx-second-soft: #f6e4d6;
	--ffx-stitch: #d39b3a;
	--ffx-rose: #c9735c;
	--ffx-focus: #1f5f8b;

	/* Tipografia — pilhas do sistema, nenhum download */
	--ffx-font-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
	--ffx-font-head: ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Nunito, "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
	--ffx-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--ffx-text-xs: 0.78rem;
	--ffx-text-sm: 0.875rem;
	--ffx-text-base: 1rem;
	--ffx-text-md: 1.0625rem;
	--ffx-text-lg: 1.1875rem;
	--ffx-text-xl: 1.375rem;
	--ffx-text-2xl: 1.625rem;
	--ffx-text-3xl: 2rem;
	--ffx-text-4xl: 2.5rem;

	--ffx-leading-tight: 1.2;
	--ffx-leading-snug: 1.35;
	--ffx-leading-normal: 1.65;
	--ffx-leading-relaxed: 1.75;

	/* Espaçamento — escala de 4px */
	--ffx-s1: 0.25rem;
	--ffx-s2: 0.5rem;
	--ffx-s3: 0.75rem;
	--ffx-s4: 1rem;
	--ffx-s5: 1.5rem;
	--ffx-s6: 2rem;
	--ffx-s7: 2.5rem;
	--ffx-s8: 3rem;
	--ffx-s9: 4rem;
	--ffx-s10: 5rem;

	/* Formas e sombras */
	--ffx-radius-sm: 10px;
	--ffx-radius: 18px;
	--ffx-radius-lg: 28px;
	--ffx-shadow-sm: 0 1px 2px rgba(74, 48, 32, 0.06);
	--ffx-shadow: 0 2px 10px rgba(74, 48, 32, 0.07);
	--ffx-shadow-lg: 0 10px 30px rgba(74, 48, 32, 0.1);

	/* Layout */
	--ffx-container: 1180px;
	--ffx-container-narrow: 760px;
	--ffx-measure: 68ch;
	--ffx-gutter: var(--ffx-s4);

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--ffx-gutter: var(--ffx-s6);
	}
}

/* --------------------------------------------------------------------------
   2. Reset moderado
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--ffx-paper);
	color: var(--ffx-ink);
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-md);
	line-height: var(--ffx-leading-normal);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

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

img {
	display: block;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--ffx-line);
	margin: var(--ffx-s7) 0;
}

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ffx-font-head);
	color: var(--ffx-ink);
	line-height: var(--ffx-leading-tight);
	margin: 0 0 var(--ffx-s4);
	font-weight: 600;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(1.875rem, 1.35rem + 2.2vw, var(--ffx-text-4xl));
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, var(--ffx-text-3xl));
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, var(--ffx-text-xl));
}

h4 {
	font-size: var(--ffx-text-lg);
}

h5,
h6 {
	font-size: var(--ffx-text-base);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ffx-ink-soft);
}

p {
	margin: 0 0 var(--ffx-s4);
}

a {
	color: var(--ffx-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--ffx-accent-hover);
}

strong,
b {
	font-weight: 650;
}

small {
	font-size: var(--ffx-text-sm);
}

code,
kbd,
samp {
	font-family: var(--ffx-font-mono);
	font-size: 0.9em;
	background: var(--ffx-paper-deep);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius-sm);
	padding: 0.1em 0.35em;
}

pre {
	font-family: var(--ffx-font-mono);
	font-size: var(--ffx-text-sm);
	background: var(--ffx-paper-deep);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s4);
	overflow-x: auto;
	line-height: 1.5;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

blockquote {
	margin: var(--ffx-s6) 0;
	padding: var(--ffx-s2) 0 var(--ffx-s2) var(--ffx-s5);
	border-left: 3px solid var(--ffx-accent);
	font-family: var(--ffx-font-head);
	font-size: var(--ffx-text-lg);
	color: var(--ffx-ink-soft);
}

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

blockquote cite {
	display: block;
	margin-top: var(--ffx-s2);
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-style: normal;
	color: var(--ffx-ink-muted);
}

/* --------------------------------------------------------------------------
   4. Acessibilidade
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--ffx-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--ffx-surface);
	border-radius: var(--ffx-radius-sm);
	box-shadow: var(--ffx-shadow);
	clip-path: none;
	color: var(--ffx-accent);
	display: block;
	font-size: var(--ffx-text-sm);
	font-weight: 600;
	height: auto;
	left: var(--ffx-s4);
	line-height: normal;
	padding: var(--ffx-s3) var(--ffx-s4);
	text-decoration: none;
	top: var(--ffx-s4);
	width: auto;
	z-index: 100000;
}

.ffx-skip-link:focus {
	position: fixed;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

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

.ffx-container--narrow {
	max-width: var(--ffx-container-narrow);
}

.ffx-site-main {
	flex: 1 0 auto;
	padding-block: var(--ffx-s7) var(--ffx-s9);
}

/* Usado na home, onde o herói encosta no cabeçalho. */
.ffx-site-main--flush {
	padding-top: 0;
}

.ffx-layout {
	display: grid;
	gap: var(--ffx-s7);
}

@media (min-width: 62em) {
	.ffx-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: var(--ffx-s8);
		align-items: start;
	}
}

.ffx-stack > * + * {
	margin-top: var(--ffx-s4);
}

.ffx-section {
	margin-block: var(--ffx-s9);
}

.ffx-section:first-child {
	margin-top: 0;
}

.ffx-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ffx-s3);
	margin-bottom: var(--ffx-s5);
	padding-bottom: var(--ffx-s3);
	border-bottom: 1px solid var(--ffx-line);
}

.ffx-section__title {
	margin: 0;
	font-size: var(--ffx-text-2xl);
}

.ffx-section__description {
	flex-basis: 100%;
	margin: 0;
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-base);
	max-width: var(--ffx-measure);
}

.ffx-section__link {
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ffx-section__link:hover {
	text-decoration: underline;
}

.ffx-section__link::after {
	content: " →";
}

/* --------------------------------------------------------------------------
   6. Cabeçalho e navegação
   -------------------------------------------------------------------------- */

.ffx-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ffx-surface);
	border-bottom: 1px solid var(--ffx-line);
}

.ffx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ffx-s4);
	min-height: 4.25rem;
}

.ffx-branding {
	display: flex;
	align-items: center;
	gap: var(--ffx-s3);
	min-width: 0;
}

.ffx-branding__mark {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
}

.ffx-branding__text {
	min-width: 0;
}

.ffx-branding__title {
	font-family: var(--ffx-font-head);
	font-size: var(--ffx-text-xl);
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.015em;
}

.ffx-branding__title a {
	color: var(--ffx-ink);
	text-decoration: none;
}

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

.ffx-branding__tagline {
	margin: 0.15rem 0 0;
	font-size: var(--ffx-text-xs);
	color: var(--ffx-ink-muted);
	line-height: 1.3;
}

.ffx-custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

/* Botão do menu móvel */
.ffx-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--ffx-s2);
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line-strong);
	border-radius: var(--ffx-radius-sm);
	color: var(--ffx-ink);
	cursor: pointer;
	font: inherit;
	font-size: var(--ffx-text-sm);
	font-weight: 600;
	padding: var(--ffx-s2) var(--ffx-s3);
}

.ffx-menu-toggle:hover {
	border-color: var(--ffx-accent);
	color: var(--ffx-accent);
}

.ffx-menu-toggle__bars {
	display: block;
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
}

.ffx-menu-toggle__bars::before,
.ffx-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.ffx-menu-toggle__bars::before {
	top: -6px;
}

.ffx-menu-toggle__bars::after {
	top: 6px;
}

.ffx-header__panel {
	display: none;
	padding-bottom: var(--ffx-s5);
}

.ffx-header__panel.is-open {
	display: block;
}

.ffx-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ffx-nav__list li {
	position: relative;
}

.ffx-nav__list a {
	display: block;
	padding: var(--ffx-s3) 0;
	border-bottom: 1px solid var(--ffx-line);
	color: var(--ffx-ink);
	font-size: var(--ffx-text-base);
	font-weight: 550;
	text-decoration: none;
}

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

.ffx-nav .current-menu-item > a,
.ffx-nav .current-menu-ancestor > a,
.ffx-nav .current_page_item > a {
	color: var(--ffx-accent);
}

.ffx-header__search {
	margin-top: var(--ffx-s4);
}

/* Aviso exibido apenas para quem pode editar menus, quando nenhum menu foi
   atribuído à posição principal. O visitante nunca vê este bloco. */
.ffx-nav--empty {
	margin: 0;
	padding: var(--ffx-s3) 0;
	font-size: var(--ffx-text-sm);
}

@media (min-width: 62em) {
	.ffx-menu-toggle {
		display: none;
	}

	/* Cabeçalho em uma única linha: marca à esquerda, navegação e busca à
	   direita. Mantém a barra fixa baixa e previsível durante a leitura.
	   `flex-wrap` é o escape: quando o menu cresce e a linha única deixa de
	   caber, o painel desce para uma segunda linha em vez de estourar a
	   largura da página. */
	.ffx-site-header .ffx-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 var(--ffx-s6);
	}

	.ffx-header__inner {
		flex: 0 0 auto;
		min-height: 4.5rem;
	}

	.ffx-header__panel {
		display: flex !important;
		flex: 1 1 auto;
		flex-wrap: wrap;
		min-width: 0;
		align-items: center;
		justify-content: flex-end;
		gap: var(--ffx-s3) var(--ffx-s5);
		padding-bottom: var(--ffx-s3);
	}

	.ffx-nav__list {
		flex-wrap: wrap;
	}

	.ffx-nav__list {
		display: flex;
		align-items: center;
		gap: var(--ffx-s1);
	}

	.ffx-nav__list a {
		border-bottom: 0;
		border-radius: var(--ffx-radius-sm);
		padding: var(--ffx-s2) var(--ffx-s3);
		font-size: var(--ffx-text-sm);
		white-space: nowrap;
	}

	.ffx-nav__list a:hover {
		background: var(--ffx-accent-soft);
	}

	.ffx-nav .current-menu-item > a,
	.ffx-nav .current-menu-ancestor > a {
		background: var(--ffx-accent-soft);
	}

	/* Submenus (um nível) */
	.ffx-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 13rem;
		background: var(--ffx-surface);
		border: 1px solid var(--ffx-line);
		border-radius: var(--ffx-radius);
		box-shadow: var(--ffx-shadow-lg);
		list-style: none;
		margin: 0;
		padding: var(--ffx-s2);
		z-index: 60;
	}

	.ffx-nav__list li:hover > .sub-menu,
	.ffx-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.ffx-nav__list .sub-menu a {
		white-space: normal;
	}

	.ffx-header__search {
		margin-top: 0;
		flex: 0 1 13.5rem;
		min-width: 9rem;
	}
}

/* --------------------------------------------------------------------------
   7. Formulários
   -------------------------------------------------------------------------- */

label {
	display: block;
	font-size: var(--ffx-text-sm);
	font-weight: 600;
	margin-bottom: var(--ffx-s2);
}

.ffx-field {
	margin-bottom: var(--ffx-s5);
}

.ffx-field__hint {
	display: block;
	margin-top: var(--ffx-s2);
	font-size: var(--ffx-text-xs);
	font-weight: 400;
	color: var(--ffx-ink-muted);
}

.ffx-required {
	color: var(--ffx-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line-strong);
	border-radius: var(--ffx-radius-sm);
	color: var(--ffx-ink);
	font: inherit;
	font-size: var(--ffx-text-base);
	padding: var(--ffx-s3);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--ffx-focus);
}

textarea {
	min-height: 11rem;
	resize: vertical;
	line-height: var(--ffx-leading-normal);
}

input::placeholder,
textarea::placeholder {
	color: var(--ffx-ink-muted);
	opacity: 1;
}

/* Campo de busca */
.ffx-search-form {
	display: flex;
	gap: var(--ffx-s2);
}

.ffx-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.ffx-search-form input[type="search"] {
	padding-block: var(--ffx-s2);
}

.ffx-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ffx-paper-deep);
	border: 1px solid var(--ffx-line-strong);
	border-radius: var(--ffx-radius-sm);
	color: var(--ffx-ink);
	cursor: pointer;
	padding-inline: var(--ffx-s3);
}

.ffx-search-form__submit:hover {
	background: var(--ffx-accent-soft);
	border-color: var(--ffx-accent);
	color: var(--ffx-accent);
}

/* --------------------------------------------------------------------------
   8. Botões
   -------------------------------------------------------------------------- */

.ffx-button,
.ffx-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ffx-s2);
	background: var(--ffx-accent);
	border: 1px solid var(--ffx-accent);
	border-radius: var(--ffx-radius-sm);
	color: #fff;
	cursor: pointer;
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-base);
	font-weight: 600;
	line-height: 1.3;
	padding: var(--ffx-s3) var(--ffx-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ffx-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--ffx-accent-hover);
	border-color: var(--ffx-accent-hover);
	color: #fff;
}

.ffx-button--secondary {
	background: transparent;
	border-color: var(--ffx-line-strong);
	color: var(--ffx-ink);
}

.ffx-button--secondary:hover {
	background: var(--ffx-accent-soft);
	border-color: var(--ffx-accent);
	color: var(--ffx-accent);
}

.ffx-button--small {
	font-size: var(--ffx-text-sm);
	padding: var(--ffx-s2) var(--ffx-s4);
}

.ffx-button[disabled],
button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* --------------------------------------------------------------------------
   9. Rótulos, categorias, metadados
   -------------------------------------------------------------------------- */

.ffx-eyebrow {
	display: inline-block;
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ffx-accent);
	text-decoration: none;
	margin-bottom: var(--ffx-s2);
}

a.ffx-eyebrow:hover {
	text-decoration: underline;
}

.ffx-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--ffx-s1);
	background: var(--ffx-second-soft);
	border-radius: 999px;
	color: var(--ffx-second);
	font-size: var(--ffx-text-xs);
	font-weight: 600;
	padding: 0.2rem 0.65rem;
	text-decoration: none;
}

a.ffx-chip:hover {
	background: var(--ffx-accent-soft);
	color: var(--ffx-accent);
}

.ffx-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ffx-s2) var(--ffx-s4);
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ffx-meta__item {
	display: inline-flex;
	align-items: center;
	gap: var(--ffx-s2);
}

.ffx-meta a {
	color: inherit;
}

.ffx-meta svg {
	flex: 0 0 auto;
	color: var(--ffx-ink-muted);
}

.ffx-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   10. Cards e grades
   -------------------------------------------------------------------------- */

.ffx-grid {
	display: grid;
	gap: var(--ffx-s5);
	grid-template-columns: 1fr;
}

@media (min-width: 36em) {
	.ffx-grid--2,
	.ffx-grid--3,
	.ffx-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.ffx-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ffx-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ffx-card {
	display: flex;
	flex-direction: column;
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	box-shadow: var(--ffx-shadow-sm);
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.ffx-card:hover {
	box-shadow: var(--ffx-shadow);
	transform: translateY(-2px);
}

.ffx-card__media {
	display: block;
	background: var(--ffx-paper-deep);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.ffx-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ffx-card__media--placeholder {
	background:
		repeating-linear-gradient(135deg, var(--ffx-paper-deep) 0 14px, #e8dac4 14px 28px);
}

.ffx-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--ffx-s2);
	padding: var(--ffx-s4) var(--ffx-s4) var(--ffx-s5);
}

.ffx-card__title {
	font-size: var(--ffx-text-lg);
	line-height: var(--ffx-leading-snug);
	margin: 0;
}

.ffx-card__title a {
	color: var(--ffx-ink);
	text-decoration: none;
}

.ffx-card__title a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-card__excerpt {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-sm);
	line-height: var(--ffx-leading-normal);
	margin: 0;
}

.ffx-card__footer {
	margin-top: auto;
	padding-top: var(--ffx-s3);
}

/* Card horizontal (listas e resultados de busca) */
.ffx-card-row {
	display: grid;
	gap: var(--ffx-s4);
	padding-bottom: var(--ffx-s5);
	border-bottom: 1px solid var(--ffx-line);
}

.ffx-card-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (min-width: 36em) {
	.ffx-card-row {
		grid-template-columns: 13rem minmax(0, 1fr);
		align-items: start;
	}
}

.ffx-card-row__media {
	display: block;
	background: var(--ffx-paper-deep);
	border-radius: var(--ffx-radius);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ffx-card-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* min-width: 0 impede que títulos longos estourem a coluna da grade. */
.ffx-card-row__body {
	min-width: 0;
}

.ffx-card-row__title {
	font-size: var(--ffx-text-xl);
	margin: var(--ffx-s1) 0 var(--ffx-s2);
	overflow-wrap: break-word;
}

.ffx-card-row__title a {
	color: var(--ffx-ink);
	text-decoration: none;
}

.ffx-card-row__title a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-card-row__excerpt {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-base);
	margin: 0 0 var(--ffx-s3);
}

.ffx-card-list {
	display: grid;
	gap: var(--ffx-s5);
}

/* Lista compacta numerada (Comece por aqui / Guias populares) */
.ffx-steps {
	list-style: none;
	counter-reset: ffx-step;
	display: grid;
	gap: var(--ffx-s4);
	margin: 0;
	padding: 0;
}

.ffx-steps > li {
	counter-increment: ffx-step;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: var(--ffx-s4);
	align-items: start;
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s4);
}

.ffx-steps > li::before {
	content: counter(ffx-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--ffx-accent-soft);
	border-radius: 50%;
	color: var(--ffx-accent);
	font-family: var(--ffx-font-head);
	font-size: var(--ffx-text-base);
	font-weight: 700;
}

.ffx-steps__title {
	font-size: var(--ffx-text-base);
	margin: 0 0 var(--ffx-s1);
}

.ffx-steps__title a {
	color: var(--ffx-ink);
	text-decoration: none;
}

.ffx-steps__title a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-steps p {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-sm);
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Home — herói e seções
   -------------------------------------------------------------------------- */

.ffx-hero {
	background: linear-gradient(180deg, var(--ffx-paper-deep), var(--ffx-paper));
	border-bottom: 1px solid var(--ffx-line);
	padding-block: var(--ffx-s8);
}

.ffx-hero__inner {
	display: grid;
	gap: var(--ffx-s6);
	align-items: center;
}

@media (min-width: 62em) {
	.ffx-hero {
		padding-block: var(--ffx-s10);
	}

	.ffx-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: var(--ffx-s9);
	}
}

.ffx-hero__title {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
	margin-bottom: var(--ffx-s4);
}

.ffx-hero__text {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-lg);
	line-height: var(--ffx-leading-relaxed);
	max-width: 46ch;
	margin-bottom: var(--ffx-s5);
}

.ffx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ffx-s3);
}

/* Figura decorativa de dobradura, construída em CSS (sem imagem, sem JS) */
.ffx-hero__figure {
	position: relative;
	display: none;
	aspect-ratio: 1 / 1;
	max-width: 22rem;
	margin-inline: auto;
	width: 100%;
}

@media (min-width: 62em) {
	.ffx-hero__figure {
		display: block;
	}
}

.ffx-fold {
	position: absolute;
	width: 0;
	height: 0;
}

.ffx-fold--a {
	inset: 12% 10% auto auto;
	border-left: 8rem solid transparent;
	border-bottom: 8rem solid var(--ffx-accent-soft);
}

.ffx-fold--b {
	inset: auto auto 14% 8%;
	border-right: 9rem solid transparent;
	border-top: 9rem solid var(--ffx-second-soft);
}

.ffx-fold--c {
	inset: 30% auto auto 26%;
	border-left: 5.5rem solid transparent;
	border-right: 5.5rem solid transparent;
	border-bottom: 7.5rem solid var(--ffx-surface);
	filter: drop-shadow(0 6px 14px rgba(74, 48, 32, 0.12));
}

.ffx-fold--d {
	inset: 46% 22% auto auto;
	border-left: 3.25rem solid transparent;
	border-right: 3.25rem solid transparent;
	border-top: 4.5rem solid var(--ffx-accent);
	opacity: 0.85;
}

/* Faixa de categorias */
.ffx-topics {
	display: grid;
	gap: var(--ffx-s4);
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.ffx-topic {
	display: flex;
	flex-direction: column;
	gap: var(--ffx-s2);
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5) var(--ffx-s4);
	text-decoration: none;
	height: 100%;
}

.ffx-topic:hover {
	border-color: var(--ffx-accent);
	box-shadow: var(--ffx-shadow);
}

.ffx-topic__name {
	font-family: var(--ffx-font-head);
	font-size: var(--ffx-text-lg);
	font-weight: 600;
	color: var(--ffx-ink);
}

.ffx-topic:hover .ffx-topic__name {
	color: var(--ffx-accent);
}

.ffx-topic__desc {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-sm);
	line-height: var(--ffx-leading-normal);
}

.ffx-topic__count {
	margin-top: auto;
	padding-top: var(--ffx-s2);
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-xs);
}

/* Bloco de chamada (CTA) */
.ffx-cta {
	display: grid;
	gap: var(--ffx-s5);
	align-items: center;
	background: var(--ffx-second);
	border-radius: var(--ffx-radius-lg);
	color: #f4f7f9;
	padding: var(--ffx-s7) var(--ffx-s6);
}

@media (min-width: 48em) {
	.ffx-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--ffx-s8);
	}
}

.ffx-cta__title {
	color: #fff;
	margin-bottom: var(--ffx-s3);
}

.ffx-cta__text {
	color: #dce5ea;
	margin: 0;
	max-width: 52ch;
}

.ffx-cta .ffx-button {
	background: var(--ffx-surface);
	border-color: var(--ffx-surface);
	color: var(--ffx-second);
	white-space: nowrap;
}

.ffx-cta .ffx-button:hover {
	background: var(--ffx-accent-soft);
	border-color: var(--ffx-accent-soft);
	color: var(--ffx-accent-hover);
}

/* --------------------------------------------------------------------------
   12. Artigo
   -------------------------------------------------------------------------- */

.ffx-breadcrumbs {
	margin-bottom: var(--ffx-s5);
	font-size: var(--ffx-text-sm);
	color: var(--ffx-ink-muted);
}

.ffx-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ffx-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ffx-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--ffx-s2);
}

.ffx-breadcrumbs li + li::before {
	content: "/";
	color: var(--ffx-line-strong);
}

.ffx-breadcrumbs a {
	color: var(--ffx-ink-soft);
	text-decoration: none;
}

.ffx-breadcrumbs a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-breadcrumbs [aria-current="page"] {
	color: var(--ffx-ink-muted);
}

.ffx-article__header {
	margin-bottom: var(--ffx-s6);
}

.ffx-article__title {
	margin-bottom: var(--ffx-s4);
}

.ffx-article__summary {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-lg);
	line-height: var(--ffx-leading-relaxed);
	max-width: var(--ffx-measure);
	margin-bottom: var(--ffx-s4);
}

.ffx-article__meta {
	padding-top: var(--ffx-s4);
	border-top: 1px solid var(--ffx-line);
}

.ffx-article__figure {
	margin-bottom: var(--ffx-s6);
}

.ffx-article__figure img {
	border-radius: var(--ffx-radius);
	width: 100%;
}

.ffx-article__figure figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--ffx-s2);
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-sm);
	line-height: var(--ffx-leading-snug);
	text-align: left;
}

/* Corpo do texto */
.ffx-content {
	font-size: var(--ffx-text-md);
	line-height: var(--ffx-leading-relaxed);
}

.ffx-content > * {
	max-width: var(--ffx-measure);
}

.ffx-content > .alignwide,
.ffx-content > .alignfull,
.ffx-content > .ffx-tutorial-facts,
.ffx-content > .ffx-toc,
.ffx-content > figure,
.ffx-content > .wp-block-image,
.ffx-content > .wp-block-gallery,
.ffx-content > .wp-block-table,
.ffx-content > .ffx-ad-slot {
	max-width: none;
}

.ffx-content h2 {
	margin-top: var(--ffx-s8);
	padding-bottom: var(--ffx-s2);
	border-bottom: 1px solid var(--ffx-line);
}

.ffx-content h3 {
	margin-top: var(--ffx-s6);
}

.ffx-content h4 {
	margin-top: var(--ffx-s5);
}

.ffx-content > h2:first-child,
.ffx-content > h3:first-child {
	margin-top: 0;
}

.ffx-content ul,
.ffx-content ol {
	margin: 0 0 var(--ffx-s4);
	padding-left: 1.4em;
}

.ffx-content li + li {
	margin-top: var(--ffx-s2);
}

.ffx-content li > ul,
.ffx-content li > ol {
	margin-top: var(--ffx-s2);
	margin-bottom: 0;
}

.ffx-content ol {
	padding-left: 1.3em;
}

.ffx-content ol li::marker {
	color: var(--ffx-accent);
	font-weight: 700;
}

.ffx-content figure,
.ffx-content .wp-block-image {
	margin-block: var(--ffx-s6);
}

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

.ffx-content a {
	text-decoration: underline;
}

/* Tabelas */
.ffx-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--ffx-text-sm);
	margin-block: var(--ffx-s6);
}

.ffx-content th,
.ffx-content td,
.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--ffx-line);
	padding: var(--ffx-s3);
	text-align: left;
	vertical-align: top;
}

.ffx-content thead th,
.wp-block-table thead th {
	background: var(--ffx-paper-deep);
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-table {
	overflow-x: auto;
}

/* Caixas de destaque — classes utilizáveis no editor de blocos */
.ffx-callout {
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-left: 4px solid var(--ffx-second);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5);
	margin-block: var(--ffx-s6);
}

.ffx-callout > :last-child {
	margin-bottom: 0;
}

.ffx-callout__title {
	display: flex;
	align-items: center;
	gap: var(--ffx-s2);
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffx-second);
	margin-bottom: var(--ffx-s3);
}

.ffx-callout--tip {
	background: var(--ffx-accent-soft);
	border-color: #f0dbd0;
	border-left-color: var(--ffx-accent);
}

.ffx-callout--tip .ffx-callout__title {
	color: var(--ffx-accent);
}

.ffx-callout--warning {
	background: #fdf6e3;
	border-color: #f0e3bf;
	border-left-color: #a9801f;
}

.ffx-callout--warning .ffx-callout__title {
	color: #8a6715;
}

/* Fatos do tutorial (dificuldade, tempo, papel, materiais) */
.ffx-tutorial-facts {
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5);
	margin-bottom: var(--ffx-s6);
}

.ffx-tutorial-facts__title {
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffx-ink-soft);
	margin: 0 0 var(--ffx-s4);
}

.ffx-facts {
	display: grid;
	gap: var(--ffx-s4);
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin: 0;
}

.ffx-facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--ffx-s3);
}

.ffx-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--ffx-accent-soft);
	border-radius: var(--ffx-radius-sm);
	color: var(--ffx-accent);
}

.ffx-facts__icon .ffx-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.ffx-facts__label {
	display: block;
	font-size: var(--ffx-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffx-ink-muted);
}

.ffx-facts__value {
	display: block;
	font-size: var(--ffx-text-base);
	font-weight: 600;
	line-height: var(--ffx-leading-snug);
	margin-top: 0.1rem;
}

.ffx-materials {
	margin-top: var(--ffx-s5);
	padding-top: var(--ffx-s4);
	border-top: 1px solid var(--ffx-line);
}

.ffx-materials__list {
	list-style: none;
	display: grid;
	gap: var(--ffx-s2);
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	margin: 0;
	padding: 0;
	font-size: var(--ffx-text-base);
}

.ffx-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--ffx-s2);
	margin: 0;
}

.ffx-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: 0.55em;
	background: var(--ffx-accent);
	transform: rotate(45deg);
}

/* Sumário */
.ffx-toc {
	background: var(--ffx-paper-deep);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5);
	margin-bottom: var(--ffx-s6);
}

.ffx-toc__title {
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffx-ink-soft);
	margin: 0 0 var(--ffx-s3);
}

.ffx-toc ol {
	counter-reset: ffx-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--ffx-text-base);
}

.ffx-toc > ol > li {
	counter-increment: ffx-toc;
	margin: 0;
}

.ffx-toc > ol > li + li {
	margin-top: var(--ffx-s2);
}

.ffx-toc > ol > li > a::before {
	content: counter(ffx-toc) ". ";
	color: var(--ffx-ink-muted);
}

.ffx-toc a {
	color: var(--ffx-ink);
	text-decoration: none;
}

.ffx-toc a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-toc ol ol {
	margin: var(--ffx-s2) 0 0 var(--ffx-s4);
	font-size: var(--ffx-text-sm);
}

.ffx-toc ol ol li + li {
	margin-top: var(--ffx-s1);
}

.ffx-toc ol ol a {
	color: var(--ffx-ink-soft);
}

/* FAQ */
.ffx-faq {
	margin-top: var(--ffx-s8);
}

.ffx-faq__item {
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	margin-bottom: var(--ffx-s3);
	padding: var(--ffx-s4) var(--ffx-s5);
}

.ffx-faq__question {
	font-family: var(--ffx-font-head);
	font-size: var(--ffx-text-lg);
	font-weight: 600;
	margin: 0 0 var(--ffx-s2);
}

.ffx-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Rodapé do artigo */
.ffx-article__footer {
	margin-top: var(--ffx-s8);
	padding-top: var(--ffx-s5);
	border-top: 1px solid var(--ffx-line);
}

.ffx-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ffx-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ffx-tags__label {
	font-size: var(--ffx-text-sm);
	font-weight: 600;
	color: var(--ffx-ink-soft);
}

.ffx-author-box {
	display: grid;
	gap: var(--ffx-s4);
	align-items: start;
	background: var(--ffx-paper-deep);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5);
	margin-top: var(--ffx-s6);
}

@media (min-width: 36em) {
	.ffx-author-box {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

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

.ffx-author-box__name {
	font-size: var(--ffx-text-lg);
	margin: 0 0 var(--ffx-s2);
}

.ffx-author-box__bio {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-sm);
	margin: 0;
}

/* Navegação anterior/próximo */
.ffx-post-nav {
	margin-top: var(--ffx-s7);
}

.ffx-post-nav__links {
	display: grid;
	gap: var(--ffx-s4);
}

@media (min-width: 48em) {
	.ffx-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Existindo só o "próximo", ele vai para a coluna da direita — é lá que
	   o alinhamento do texto e a seta mental do leitor esperam encontrá-lo. */
	.ffx-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.ffx-post-nav__link {
	display: block;
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s4);
	text-decoration: none;
	height: 100%;
}

.ffx-post-nav__link:hover {
	border-color: var(--ffx-accent);
}

.ffx-post-nav__direction {
	display: block;
	font-size: var(--ffx-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ffx-ink-muted);
	margin-bottom: var(--ffx-s2);
}

.ffx-post-nav__title {
	display: block;
	font-family: var(--ffx-font-head);
	font-size: var(--ffx-text-base);
	font-weight: 600;
	color: var(--ffx-ink);
	line-height: var(--ffx-leading-snug);
}

.ffx-post-nav__link:hover .ffx-post-nav__title {
	color: var(--ffx-accent);
}

.ffx-post-nav__link--prev {
	text-align: left;
}

.ffx-post-nav__link--next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   13. Barra lateral e widgets
   -------------------------------------------------------------------------- */

.ffx-sidebar {
	display: grid;
	gap: var(--ffx-s5);
}

@media (min-width: 62em) {
	.ffx-sidebar--sticky {
		position: sticky;
		top: 6rem;
	}
}

.ffx-widget {
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5);
	font-size: var(--ffx-text-base);
}

.ffx-widget__title,
.ffx-widget .widget-title {
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffx-ink-soft);
	margin: 0 0 var(--ffx-s4);
}

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

.ffx-widget li + li {
	margin-top: var(--ffx-s3);
	padding-top: var(--ffx-s3);
	border-top: 1px solid var(--ffx-line);
}

.ffx-widget a {
	color: var(--ffx-ink);
	text-decoration: none;
}

.ffx-widget a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-widget .children,
.ffx-widget .sub-menu {
	margin-top: var(--ffx-s3);
	padding-left: var(--ffx-s4);
}

/* --------------------------------------------------------------------------
   14. Arquivos, paginação, busca, 404
   -------------------------------------------------------------------------- */

.ffx-archive-header {
	margin-bottom: var(--ffx-s7);
	padding-bottom: var(--ffx-s5);
	border-bottom: 1px solid var(--ffx-line);
}

.ffx-archive-header__title {
	margin-bottom: var(--ffx-s3);
}

.ffx-archive-header__description {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-lg);
	line-height: var(--ffx-leading-relaxed);
	max-width: var(--ffx-measure);
}

.ffx-archive-header__description > :last-child {
	margin-bottom: 0;
}

.ffx-archive-header__count {
	margin: var(--ffx-s3) 0 0;
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-sm);
}

.ffx-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ffx-s2);
	list-style: none;
	margin: var(--ffx-s4) 0 0;
	padding: 0;
}

.ffx-pagination {
	margin-top: var(--ffx-s8);
	padding-top: var(--ffx-s5);
	border-top: 1px solid var(--ffx-line);
}

.ffx-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ffx-s2);
}

.ffx-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: var(--ffx-s3);
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line-strong);
	border-radius: var(--ffx-radius-sm);
	color: var(--ffx-ink);
	font-size: var(--ffx-text-sm);
	font-weight: 600;
	text-decoration: none;
}

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

.ffx-pagination .page-numbers.current {
	background: var(--ffx-accent);
	border-color: var(--ffx-accent);
	color: #fff;
}

.ffx-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* Busca */
.ffx-search-intro {
	margin-bottom: var(--ffx-s6);
}

.ffx-search-intro .ffx-search-form {
	max-width: 32rem;
	margin-top: var(--ffx-s4);
}

.ffx-no-results {
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s6);
}

.ffx-no-results__suggestions {
	display: grid;
	gap: var(--ffx-s2);
	list-style: none;
	margin: var(--ffx-s4) 0 0;
	padding: 0;
}

.ffx-no-results__suggestions li {
	padding-left: 1.2em;
	position: relative;
}

.ffx-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--ffx-accent);
	transform: rotate(45deg);
}

/* 404 */
.ffx-error-404 {
	text-align: center;
	max-width: 42rem;
	margin-inline: auto;
}

.ffx-error-404__code {
	font-family: var(--ffx-font-head);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	line-height: 1;
	color: var(--ffx-line-strong);
	margin: 0 0 var(--ffx-s4);
}

.ffx-error-404 .ffx-search-form {
	max-width: 26rem;
	margin: var(--ffx-s5) auto 0;
	text-align: left;
}

.ffx-error-404 .ffx-subcategories {
	justify-content: center;
	margin-top: var(--ffx-s4);
}

.ffx-error-404 .ffx-section__head {
	justify-content: center;
}

.ffx-error-404 .ffx-grid {
	text-align: left;
}

.ffx-error-404__headline {
	margin-top: var(--ffx-s7);
	font-size: var(--ffx-text-xl);
}

/* --------------------------------------------------------------------------
   15. Páginas e formulário de contato
   -------------------------------------------------------------------------- */

.ffx-page__header {
	margin-bottom: var(--ffx-s6);
	padding-bottom: var(--ffx-s5);
	border-bottom: 1px solid var(--ffx-line);
}

.ffx-page__header .ffx-page__title {
	margin-bottom: 0;
}

.ffx-page__updated {
	margin: var(--ffx-s3) 0 0;
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-sm);
}

.ffx-form-notice {
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s4) var(--ffx-s5);
	margin-bottom: var(--ffx-s5);
	border: 1px solid;
}

.ffx-form-notice > :last-child {
	margin-bottom: 0;
}

.ffx-form-notice--success {
	background: #eef7ef;
	border-color: #c6e2c9;
	color: #1f5128;
}

.ffx-form-notice--error {
	background: #fdeeec;
	border-color: #f2c9c3;
	color: #7d2418;
}

.ffx-form-notice__list {
	margin: var(--ffx-s2) 0 0;
	padding-left: 1.2em;
}

.ffx-form {
	max-width: 36rem;
}

.ffx-form input[aria-invalid="true"],
.ffx-form textarea[aria-invalid="true"] {
	border-color: #b3372a;
}

.ffx-field__error {
	display: block;
	margin-top: var(--ffx-s2);
	color: #8c2b20;
	font-size: var(--ffx-text-sm);
	font-weight: 600;
}

.ffx-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. Comentários
   -------------------------------------------------------------------------- */

.ffx-comments {
	margin-top: var(--ffx-s9);
	padding-top: var(--ffx-s6);
	border-top: 1px solid var(--ffx-line);
}

.ffx-comments__title {
	font-size: var(--ffx-text-2xl);
}

.ffx-comments .comment-list {
	list-style: none;
	margin: 0 0 var(--ffx-s7);
	padding: 0;
}

.ffx-comments .comment-list ol.children {
	list-style: none;
	margin: var(--ffx-s4) 0 0 var(--ffx-s5);
	padding: 0;
}

.ffx-comments .comment-body {
	background: var(--ffx-surface);
	border: 1px solid var(--ffx-line);
	border-radius: var(--ffx-radius);
	padding: var(--ffx-s5);
	margin-bottom: var(--ffx-s4);
}

.ffx-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ffx-s2) var(--ffx-s3);
	font-size: var(--ffx-text-sm);
	color: var(--ffx-ink-muted);
	margin-bottom: var(--ffx-s3);
}

.ffx-comments .comment-author img {
	border-radius: 50%;
	margin-right: var(--ffx-s2);
	vertical-align: middle;
}

.ffx-comments .reply {
	font-size: var(--ffx-text-sm);
	font-weight: 600;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	font-weight: 400;
	font-size: var(--ffx-text-sm);
	color: var(--ffx-ink-soft);
	display: inline;
}

.comment-form p {
	margin-bottom: var(--ffx-s4);
}

/* --------------------------------------------------------------------------
   17. Espaços de anúncio (vazios e desativados por padrão)
   -------------------------------------------------------------------------- */

.ffx-ad-slot {
	margin-block: var(--ffx-s6);
	text-align: center;
}

.ffx-ad-slot__label {
	display: block;
	margin-bottom: var(--ffx-s2);
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ffx-ad-slot--sidebar {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   18. Rodapé
   -------------------------------------------------------------------------- */

.ffx-site-footer {
	background: var(--ffx-surface);
	border-top: 1px solid var(--ffx-line);
	margin-top: auto;
	padding-block: var(--ffx-s8) var(--ffx-s6);
}

.ffx-footer__grid {
	display: grid;
	gap: var(--ffx-s6);
	margin-bottom: var(--ffx-s6);
}

@media (min-width: 48em) {
	.ffx-footer__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--ffx-s8);
	}
}

.ffx-footer__about p {
	color: var(--ffx-ink-soft);
	font-size: var(--ffx-text-sm);
	max-width: 42ch;
	margin-bottom: 0;
}

.ffx-footer__nav {
	min-width: 0;
}

.ffx-footer__heading {
	font-family: var(--ffx-font-body);
	font-size: var(--ffx-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ffx-ink-soft);
	margin: 0 0 var(--ffx-s3);
}

.ffx-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--ffx-text-sm);
}

.ffx-footer__menu li + li {
	margin-top: var(--ffx-s2);
}

.ffx-footer__menu a {
	color: var(--ffx-ink-soft);
	text-decoration: none;
}

.ffx-footer__menu a:hover {
	color: var(--ffx-accent);
	text-decoration: underline;
}

.ffx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ffx-s3);
	padding-top: var(--ffx-s5);
	border-top: 1px solid var(--ffx-line);
	color: var(--ffx-ink-muted);
	font-size: var(--ffx-text-sm);
}

.ffx-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   19. Utilitários e alinhamentos do editor
   -------------------------------------------------------------------------- */

.ffx-visually-balanced {
	max-width: var(--ffx-measure);
}

.ffx-text-center {
	text-align: center;
}

.ffx-mt-0 {
	margin-top: 0;
}

.ffx-mb-0 {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 var(--ffx-s5) var(--ffx-s4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--ffx-s4) var(--ffx-s5);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: auto;
}

.ffx-content > .alignfull {
	margin-inline: calc(-1 * var(--ffx-gutter));
	width: calc(100% + (2 * var(--ffx-gutter)));
	max-width: none;
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--ffx-radius);
}

.sticky .ffx-card__title::after {
	content: " ★";
	color: var(--ffx-accent);
}

/* --------------------------------------------------------------------------
   20. Impressão — artigos legíveis no papel
   -------------------------------------------------------------------------- */

@media print {
	.ffx-site-header,
	.ffx-site-footer,
	.ffx-ad-slot,
	.ffx-post-nav,
	.ffx-comments,
	.ffx-sidebar,
	.ffx-related,
	.ffx-skip-link,
	.ffx-breadcrumbs {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.ffx-content > * {
		max-width: none;
	}

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

	.ffx-content h2,
	.ffx-content h3 {
		break-after: avoid;
	}

	figure,
	.ffx-tutorial-facts,
	.ffx-facts__item {
		break-inside: avoid;
	}
}

/* --------------------------------------------------------------------------
   21. Finance Foxx identity — cozy handmade interior
   Rounded headings over a serif body, linen surfaces, stitched (dashed)
   seams, pill navigation and a dark cocoa footer.
   -------------------------------------------------------------------------- */

@media screen {
	body {
		background-color: var(--ffx-paper);
		background-image:
			radial-gradient(rgba(207, 187, 158, 0.28) 1px, transparent 1.4px),
			radial-gradient(rgba(207, 187, 158, 0.18) 1px, transparent 1.4px);
		background-size: 22px 22px;
		background-position: 0 0, 11px 11px;
	}

	h1,
	h2,
	h3,
	h4 {
		font-weight: 700;
		letter-spacing: -0.01em;
	}

	/* Header: linen bar with a stitched seam under it */
	.ffx-site-header {
		background: var(--ffx-surface);
		border-bottom: 0;
		box-shadow: 0 1px 0 var(--ffx-line), 0 6px 18px rgba(74, 48, 32, 0.05);
	}

	.ffx-site-header::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 4px;
		border-bottom: 2px dashed var(--ffx-stitch);
		opacity: 0.55;
		pointer-events: none;
	}

	.ffx-branding__mark {
		width: 2.6rem;
		height: 2.6rem;
	}

	.ffx-branding__title {
		font-weight: 800;
		letter-spacing: 0;
	}

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

	.ffx-branding__tagline {
		font-style: italic;
	}

	.ffx-menu-toggle {
		border-radius: 999px;
		border-width: 2px;
		color: var(--ffx-ink);
		background: var(--ffx-surface);
		padding-inline: var(--ffx-s4);
	}

	.ffx-menu-toggle:hover {
		background: var(--ffx-accent-soft);
		border-color: var(--ffx-accent);
		color: var(--ffx-accent-hover);
	}

	.ffx-nav__list a {
		font-family: var(--ffx-font-head);
		font-weight: 700;
		border-bottom-style: dashed;
	}

	/* Buttons: pills with a stitched inner seam */
	.ffx-button,
	.ffx-button--primary,
	button,
	input[type="submit"],
	input[type="button"],
	.wp-block-button__link {
		border-radius: 999px;
		border-width: 2px;
		font-family: var(--ffx-font-head);
		font-weight: 700;
		box-shadow: inset 0 0 0 3px var(--ffx-accent), inset 0 0 0 4px rgba(255, 252, 246, 0.45);
	}

	.ffx-button:hover,
	button:hover,
	input[type="submit"]:hover,
	.wp-block-button__link:hover {
		box-shadow: inset 0 0 0 3px var(--ffx-accent-hover), inset 0 0 0 4px rgba(255, 252, 246, 0.45);
	}

	.ffx-button--secondary,
	.ffx-menu-toggle,
	.ffx-button--secondary:hover,
	.ffx-menu-toggle:hover {
		box-shadow: none;
	}

	.ffx-button--secondary {
		background: var(--ffx-surface);
		border-color: var(--ffx-line-strong);
	}

	.ffx-eyebrow {
		font-family: var(--ffx-font-head);
		color: var(--ffx-second);
		letter-spacing: 0.1em;
	}

	.ffx-chip {
		background: var(--ffx-second-soft);
		color: var(--ffx-second);
		font-family: var(--ffx-font-head);
	}

	/* Hero: linen panel with a scalloped lower edge */
	.ffx-hero {
		position: relative;
		background:
			radial-gradient(circle at 12% 18%, rgba(211, 155, 58, 0.16), transparent 42%),
			radial-gradient(circle at 88% 82%, rgba(61, 105, 85, 0.14), transparent 46%),
			var(--ffx-paper-deep);
		border-bottom: 0;
		padding-block: var(--ffx-s8) calc(var(--ffx-s8) + 14px);
	}

	.ffx-hero::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -1px;
		height: 14px;
		background: radial-gradient(circle at 14px 14px, var(--ffx-paper) 13px, transparent 14px) repeat-x;
		background-size: 28px 14px;
	}

	.ffx-hero__eyebrow {
		background: var(--ffx-surface);
		border: 2px dashed var(--ffx-stitch);
		border-radius: 999px;
		padding: 0.3rem 0.9rem;
		margin-bottom: var(--ffx-s4);
	}

	.ffx-hero__title {
		font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem);
		font-weight: 800;
		line-height: 1.08;
		color: var(--ffx-ink);
	}

	.ffx-hero__figure {
		max-width: 26rem;
	}

	.ffx-hero__figure svg {
		display: block;
		width: 100%;
		height: auto;
		filter: drop-shadow(0 14px 22px rgba(74, 48, 32, 0.16));
	}

	/* Section heads: label on a stitched line */
	.ffx-section {
		margin-block: var(--ffx-s8);
	}

	.ffx-section__head {
		border-bottom: 2px dashed var(--ffx-line-strong);
		padding-bottom: var(--ffx-s4);
		align-items: center;
	}

	.ffx-section__title {
		position: relative;
		padding-left: 1.6rem;
		font-size: var(--ffx-text-2xl);
	}

	.ffx-section__title::before {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		width: 1rem;
		height: 1rem;
		margin-top: -0.5rem;
		border-radius: 50%;
		background: var(--ffx-stitch);
		box-shadow: inset 0 0 0 3px var(--ffx-surface), 0 0 0 2px var(--ffx-stitch);
	}

	.ffx-section__link {
		font-family: var(--ffx-font-head);
		background: var(--ffx-accent-soft);
		border-radius: 999px;
		padding: 0.3rem 0.9rem;
		color: var(--ffx-accent-hover);
	}

	.ffx-section__link:hover {
		background: var(--ffx-accent);
		color: #fff;
		text-decoration: none;
	}

	/* Cards: cream patches with a stitched seam */
	.ffx-card {
		border: 0;
		border-radius: var(--ffx-radius);
		box-shadow: 0 0 0 1px var(--ffx-line), 0 8px 20px rgba(74, 48, 32, 0.07);
		padding: 0.5rem;
	}

	.ffx-card:hover {
		box-shadow: 0 0 0 2px var(--ffx-stitch), 0 14px 28px rgba(74, 48, 32, 0.12);
		transform: translateY(-3px);
	}

	.ffx-card__media {
		border-radius: calc(var(--ffx-radius) - 6px);
	}

	.ffx-card__body {
		padding: var(--ffx-s4) var(--ffx-s3) var(--ffx-s4);
	}

	.ffx-card__footer {
		border-top: 2px dashed var(--ffx-line);
	}

	.ffx-card-row__media {
		border-radius: var(--ffx-radius);
		box-shadow: 0 0 0 1px var(--ffx-line);
	}

	.ffx-card-row {
		border-bottom: 2px dashed var(--ffx-line);
	}

	/* Start Here steps: a two-column path with mustard counters */
	.ffx-steps > li {
		border: 2px dashed var(--ffx-line-strong);
		background: var(--ffx-surface);
		grid-template-columns: 2.75rem minmax(0, 1fr);
	}

	.ffx-steps > li::before {
		width: 2.75rem;
		height: 2.75rem;
		background: var(--ffx-stitch);
		color: var(--ffx-ink);
		font-size: var(--ffx-text-lg);
		box-shadow: inset 0 0 0 3px var(--ffx-stitch), inset 0 0 0 4.5px rgba(255, 252, 246, 0.7);
	}

	.ffx-steps__title {
		font-size: var(--ffx-text-lg);
	}

	.ffx-topic {
		border: 2px dashed var(--ffx-line-strong);
	}

	/* Call to action: chestnut panel */
	.ffx-cta {
		background:
			radial-gradient(rgba(255, 252, 246, 0.08) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
			var(--ffx-second);
		color: #fbefe4;
		box-shadow: inset 0 0 0 6px var(--ffx-second), inset 0 0 0 8px rgba(211, 155, 58, 0.55);
	}

	.ffx-cta__text {
		color: #f1dccb;
	}

	.ffx-cta .ffx-button {
		background: var(--ffx-surface);
		border-color: var(--ffx-surface);
		color: var(--ffx-second);
		box-shadow: none;
	}

	.ffx-cta .ffx-button:hover {
		background: var(--ffx-stitch);
		border-color: var(--ffx-stitch);
		color: var(--ffx-ink);
		box-shadow: none;
	}

	/* Article */
	.ffx-article__figure img {
		border-radius: var(--ffx-radius-lg);
		box-shadow: 0 0 0 1px var(--ffx-line), 0 12px 28px rgba(74, 48, 32, 0.1);
	}

	.ffx-article__meta {
		border-top: 2px dashed var(--ffx-line-strong);
	}

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

	.ffx-content h2 {
		padding-bottom: 0.35rem;
		background: linear-gradient(90deg, var(--ffx-stitch) 0 3.5rem, transparent 3.5rem) left bottom / 100% 3px no-repeat;
	}

	.ffx-tutorial-facts {
		border: 2px dashed var(--ffx-stitch);
		border-radius: var(--ffx-radius);
		background: var(--ffx-surface);
	}

	.ffx-callout {
		border-radius: var(--ffx-radius);
	}

	/* Footer: dark cocoa */
	.ffx-site-footer {
		position: relative;
		background: var(--ffx-ink);
		border-top: 0;
		color: #e9dccb;
	}

	.ffx-site-footer::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 8px;
		border-top: 2px dashed rgba(211, 155, 58, 0.7);
	}

	.ffx-site-footer .ffx-footer__heading {
		font-family: var(--ffx-font-head);
		color: #f4c877;
	}

	.ffx-site-footer .ffx-footer__about p,
	.ffx-site-footer .ffx-footer__menu a {
		color: #e9dccb;
	}

	.ffx-site-footer .ffx-footer__menu a:hover {
		color: #fff;
	}

	.ffx-site-footer .ffx-footer__bottom {
		border-top: 1px solid rgba(233, 220, 203, 0.22);
		color: #cdbda9;
	}
}

@media screen and (min-width: 48em) {
	.ffx-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 62em) {
	.ffx-nav__list a {
		border-radius: 999px;
		padding: var(--ffx-s2) 0.8rem;
	}

	.ffx-nav__list a:hover,
	.ffx-nav .current-menu-item > a,
	.ffx-nav .current-menu-ancestor > a {
		background: var(--ffx-accent-soft);
		color: var(--ffx-accent-hover);
	}

	.ffx-hero {
		padding-block: var(--ffx-s9) calc(var(--ffx-s9) + 14px);
	}
}
