/* =========================================================================
   FaunaPress - main.css
   Mobile-first. Sin frameworks. Custom properties para theming rapido
   desde el Customizer (ver inc/customizer.php -> faunapress_customizer_css).
   ========================================================================= */

:root {
	--fp-primary: #1f5d3b;
	--fp-primary-dark: #16422a;
	--fp-accent: #c9820f;
	--fp-graphite: #22262b;
	--fp-bone: #f7f4ee;
	--fp-font-size: 18px;
	--fp-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--fp-bg: #ffffff;
	--fp-bg-alt: #f7f4ee;
	--fp-text: #22262b;
	--fp-text-muted: #5b6169;
	--fp-border: #e4e1d8;
	--fp-card-bg: #ffffff;
	--fp-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
	--fp-radius: 10px;
	--fp-container: 1180px;
	--fp-focus: #0b6ecf;

	--fp-header-bg: var(--fp-bg);
	--fp-header-text: var(--fp-text);
	--fp-footer-bg: var(--fp-graphite);
	--fp-footer-text: #d8d6cf;
}

[data-theme="dark"] {
	--fp-bg: #16181b;
	--fp-bg-alt: #1e2124;
	--fp-text: #eceae4;
	--fp-text-muted: #a6abb3;
	--fp-border: #30343a;
	--fp-card-bg: #1e2124;
	--fp-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* =========================================================================
   Base
   ========================================================================= */

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--fp-font-family);
	font-size: var(--fp-font-size);
	line-height: 1.65;
	color: var(--fp-text);
	background-color: var(--fp-bg);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
	width: 100%;
	max-width: var(--fp-container);
	margin-inline: auto;
	padding-inline: 20px;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	font-weight: 700;
	color: var(--fp-text);
}
h1 { font-size: var(--fp-h1-size, 32px); }
h2 { font-size: var(--fp-h2-size, 24px); }
h3 { font-size: var(--fp-h3-size, 20px); }
h4 { font-size: var(--fp-h4-size, 18px); }
h5 { font-size: var(--fp-h5-size, 16px); }
h6 { font-size: var(--fp-h6-size, 14px); }

a {
	color: var(--fp-primary);
}
[data-theme="dark"] a {
	color: #6fb98f;
}

a:hover {
	text-decoration: underline;
}

.btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
}
.btn-primary {
	background-color: var(--fp-primary);
	color: #fff;
}
.btn-primary:hover {
	background-color: var(--fp-primary-dark);
	text-decoration: none;
}
.btn-outline {
	background-color: transparent;
	border-color: var(--fp-primary);
	color: var(--fp-primary);
}
.btn-outline:hover {
	background-color: var(--fp-primary);
	color: #fff;
	text-decoration: none;
}

/* Accesibilidad: skip link y foco visible */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	top: -100px;
	left: 6px;
	position: fixed;
	z-index: 100000;
	background: var(--fp-graphite);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	transition: top 0.2s ease;
}
.skip-link:focus {
	top: 6px;
	width: auto;
	height: auto;
	clip: auto;
}

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

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
	background-color: var(--fp-header-bg);
	color: var(--fp-header-text);
	border-bottom: 1px solid var(--fp-border);
	z-index: 50;
	background-image: var(--fp-header-bg-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.site-header.is-sticky {
	position: sticky;
	top: 0;
}
.site-header.has-bg-image {
	border-bottom: none;
}
.site-header.has-bg-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
	z-index: 0;
}
.site-header.has-bg-image > .container {
	position: relative;
	z-index: 1;
}
.site-header.has-bg-image .menu-toggle,
.site-header.has-bg-image .search-toggle,
.site-header.has-bg-image .dark-mode-toggle {
	border-color: rgba(255, 255, 255, 0.4);
}
.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	flex-wrap: wrap;
}
.site-branding {
	display: flex;
	flex-direction: column;
}
.site-branding .custom-logo-link + .site-title {
	margin-top: 6px;
}
.site-title {
	font-size: 1.4rem;
	margin: 0;
}
.site-title a {
	color: var(--fp-header-text);
	text-decoration: none;
}
.site-description {
	margin: 0;
	font-size: 0.85rem;
	color: var(--fp-header-text);
	opacity: 0.75;
}
.custom-logo {
	width: var(--fp-logo-width, 160px) !important;
	height: auto !important;
	max-width: 100%;
	display: block;
}

.main-navigation {
	order: 3;
	width: 100%;
}
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	flex-direction: column;
	gap: 4px;
}
.main-navigation.toggled ul {
	display: flex;
}
.main-navigation ul li a {
	display: block;
	padding: 10px 4px;
	color: var(--fp-header-text);
	text-decoration: none;
	font-weight: 600;
}
.main-navigation ul ul {
	padding-left: 16px;
}

.menu-toggle {
	background: none;
	border: 1px solid var(--fp-border);
	border-radius: 8px;
	width: 42px;
	height: 42px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
}
.menu-toggle-bar {
	width: 20px;
	height: 2px;
	background: var(--fp-header-text);
	display: block;
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.search-toggle,
.dark-mode-toggle {
	background: none;
	border: 1px solid var(--fp-border);
	border-radius: 8px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--fp-header-text);
}
.dark-mode-toggle .dm-icon-moon { display: none; }
[data-theme="dark"] .dark-mode-toggle .dm-icon-sun { display: none; }
[data-theme="dark"] .dark-mode-toggle .dm-icon-moon { display: inline; }

.header-search-form {
	width: 100%;
	padding: 12px 20px;
	border-top: 1px solid var(--fp-border);
}
.header-search-form[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: 8px;
}
.search-form label {
	flex: 1;
}
.search-field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--fp-border);
	border-radius: 8px;
	background: var(--fp-bg);
	color: var(--fp-text);
}
.search-submit {
	padding: 10px 18px;
	border-radius: 8px;
	border: none;
	background: var(--fp-primary);
	color: #fff;
	cursor: pointer;
	font-weight: 600;
}

/* =========================================================================
   Breadcrumbs
   ========================================================================= */

.breadcrumbs {
	padding-block: 12px;
	font-size: 0.85rem;
	color: var(--fp-text-muted);
}
.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--fp-border);
}
.breadcrumbs a {
	color: var(--fp-text-muted);
	text-decoration: none;
}
.breadcrumbs a:hover {
	text-decoration: underline;
}

/* =========================================================================
   Layout general
   ========================================================================= */

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-block: 32px;
}
.no-sidebar .content-area {
	max-width: 820px;
	margin-inline: auto;
}

.section-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
}
.section-cta {
	text-align: center;
	margin-top: 24px;
}

/* =========================================================================
   Hero (homepage)
   ========================================================================= */

.hero-section {
	background: linear-gradient(160deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
	color: #fff;
	padding-block: 56px;
}
.hero-inner {
	text-align: center;
}
.hero-title {
	color: #fff;
	font-size: clamp(1.8rem, 5vw, 2.6rem);
	margin: 0 0 12px;
}
.hero-subtitle {
	color: rgba(255, 255, 255, 0.9);
	max-width: 560px;
	margin: 0 auto 24px;
}
.hero-search {
	max-width: 480px;
	margin-inline: auto;
}
.hero-search .search-field {
	background: #fff;
}

/* =========================================================================
   Categorias (homepage)
   ========================================================================= */

.categories-section {
	padding-block: 40px;
}
.categories-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.category-card {
	position: relative;
	display: flex;
	border-radius: var(--fp-radius);
	border: 1px solid var(--fp-border);
	background-color: var(--fp-card-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	text-decoration: none;
	overflow: hidden;
	min-height: 90px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
	box-shadow: var(--fp-shadow);
	transform: translateY(-2px);
	text-decoration: none;
}
.category-card-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	width: 100%;
}
.category-card-name {
	font-weight: 700;
	color: var(--fp-text);
}
.category-card-count {
	font-size: 0.8rem;
	color: var(--fp-text-muted);
}

/* Variante con imagen de fondo: velo oscuro + texto en blanco, alineado abajo */
.category-card.has-image {
	border-color: transparent;
	min-height: 150px;
}
.category-card.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.7) 100%);
	z-index: 0;
}
.category-card.has-image .category-card-content {
	justify-content: flex-end;
	height: 100%;
}
.category-card.has-image .category-card-name {
	color: #fff;
}
.category-card.has-image .category-card-count {
	color: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   Article cards / grid
   ========================================================================= */

.featured-section,
.recent-section,
.popular-section {
	padding-block: 32px;
}

.article-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.article-card {
	display: flex;
	flex-direction: column;
	background: var(--fp-card-bg);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.article-card:hover {
	box-shadow: var(--fp-shadow);
	transform: translateY(-2px);
}
.article-card-thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--fp-bg-alt);
}
.article-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.article-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.article-card-title {
	font-size: 1.1rem;
	margin: 0;
}
.article-card-title a {
	color: var(--fp-text);
	text-decoration: none;
}
.article-card-title a:hover {
	color: var(--fp-primary);
}
.article-card-excerpt {
	color: var(--fp-text-muted);
	font-size: 0.92rem;
	margin: 0;
}
.article-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.78rem;
	color: var(--fp-text-muted);
	margin-top: auto;
}

.category-pill {
	display: inline-block;
	align-self: flex-start;
	background: var(--fp-bg-alt);
	color: var(--fp-primary);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 999px;
	text-decoration: none;
}

.tag-pill {
	display: inline-block;
	background: var(--fp-bg-alt);
	color: var(--fp-text-muted);
	font-size: 0.78rem;
	padding: 4px 10px;
	border-radius: 999px;
	text-decoration: none;
	margin: 2px;
}

/* =========================================================================
   Entry meta comun
   ========================================================================= */

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.85rem;
	color: var(--fp-text-muted);
	margin-block: 8px 0;
}
.entry-categories {
	margin-bottom: 8px;
}

/* =========================================================================
   Single article
   ========================================================================= */

.single-article-header,
.single-page-header {
	padding-block: 8px 16px;
}
.single-article-title,
.single-page-title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	margin: 8px 0 6px;
}
.single-article-thumb,
.single-page-thumb {
	margin: 0 0 24px;
	border-radius: var(--fp-radius);
	overflow: hidden;
}
.single-article-thumb img,
.single-page-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.single-article-thumb figcaption {
	font-size: 0.8rem;
	color: var(--fp-text-muted);
	padding-top: 6px;
}

.single-article-content,
.single-page-content {
	max-width: 780px;
}
.single-article-content > *,
.single-page-content > * {
	max-width: 100%;
}
.single-article-content p,
.single-page-content p {
	margin-bottom: 1.3em;
}
.single-article-content h2 {
	margin-top: 2em;
	scroll-margin-top: 90px;
}
.single-article-content h3 {
	margin-top: 1.6em;
	scroll-margin-top: 90px;
}
.single-article-content img {
	border-radius: 8px;
}
.single-article-content blockquote {
	border-left: 4px solid var(--fp-accent);
	margin: 1.5em 0;
	padding: 0.5em 1.2em;
	background: var(--fp-bg-alt);
	border-radius: 0 8px 8px 0;
}

.single-article-tags {
	margin-top: 24px;
}

.share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-block: 28px;
	padding-block: 16px;
	border-top: 1px solid var(--fp-border);
	border-bottom: 1px solid var(--fp-border);
}
.share-buttons-label {
	font-weight: 700;
	margin-right: 4px;
}
.share-btn {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--fp-bg-alt);
	color: var(--fp-text);
	font-size: 0.82rem;
	text-decoration: none;
	font-weight: 600;
}
.share-btn:hover {
	background: var(--fp-primary);
	color: #fff;
	text-decoration: none;
}

/* =========================================================================
   Tabla de contenidos (TOC)
   ========================================================================= */

.faunapress-toc {
	background: var(--fp-bg-alt);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 16px 18px;
	margin-bottom: 28px;
	max-width: 780px;
}
.faunapress-toc[hidden] {
	display: none;
}
.faunapress-toc-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: none;
	border: none;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	color: var(--fp-text);
	padding: 0;
}
.faunapress-toc-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.faunapress-toc-list li {
	margin-bottom: 6px;
}
.faunapress-toc-list a {
	color: var(--fp-text);
	text-decoration: none;
	font-size: 0.92rem;
}
.faunapress-toc-list a:hover {
	color: var(--fp-primary);
}
.faunapress-toc-list .toc-level-3 {
	padding-left: 16px;
	font-size: 0.86rem;
}
.faunapress-toc.is-collapsed .faunapress-toc-list {
	display: none;
}
.faunapress-toc-icon {
	transition: transform 0.2s ease;
}
.faunapress-toc.is-collapsed .faunapress-toc-icon {
	transform: rotate(-90deg);
}

/* =========================================================================
   Info cards (fichas tecnicas)
   ========================================================================= */

.faunapress-infocard {
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	background: var(--fp-card-bg);
	overflow: hidden;
	margin: 2em 0;
	box-shadow: var(--fp-shadow);
	max-width: 480px;
}
.faunapress-infocard-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	color: #fff;
	background: var(--fp-primary);
}
.faunapress-infocard.color-amber .faunapress-infocard-header { background: var(--fp-accent); }
.faunapress-infocard.color-graphite .faunapress-infocard-header { background: var(--fp-graphite); }
.faunapress-infocard-icon {
	font-size: 1.4rem;
	line-height: 1;
}
.faunapress-infocard-title {
	margin: 0;
	font-size: 1.1rem;
	color: #fff;
}
.faunapress-infocard-image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.faunapress-infocard-featured {
	margin: 0;
	padding: 12px 18px;
	background: var(--fp-bg-alt);
	font-style: italic;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--fp-border);
}
.faunapress-infocard-body {
	margin: 0;
	padding: 4px 18px 14px;
}
.faunapress-infocard-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--fp-border);
	font-size: 0.9rem;
}
.faunapress-infocard-row:last-child {
	border-bottom: none;
}
.faunapress-infocard-label {
	font-weight: 700;
	color: var(--fp-text-muted);
	flex-shrink: 0;
}
.faunapress-infocard-value {
	margin: 0;
	text-align: right;
	color: var(--fp-text);
}

/* Vista dentro del editor de Gutenberg */
.faunapress-infocard--editor {
	max-width: 100%;
}
.faunapress-infocard--editor .faunapress-infocard-title-input input {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	width: 100%;
}
.faunapress-infocard-empty {
	padding: 14px 18px;
	color: var(--fp-text-muted);
	font-style: italic;
}

/* =========================================================================
   Tablas
   ========================================================================= */

.single-article-content table,
table.faunapress-table {
	width: 100%;
	border-collapse: collapse;
	margin: 2em 0;
	font-size: 0.92rem;
}
.table-scroll-wrapper {
	overflow-x: auto;
	margin: 2em 0;
	-webkit-overflow-scrolling: touch;
}
.single-article-content th,
.single-article-content td,
table.faunapress-table th,
table.faunapress-table td {
	border: 1px solid var(--fp-border);
	padding: 10px 12px;
	text-align: left;
}
.single-article-content thead th,
table.faunapress-table thead th {
	background: var(--fp-primary);
	color: #fff;
}
.single-article-content tbody tr:nth-child(even),
table.faunapress-table tbody tr:nth-child(even) {
	background: var(--fp-bg-alt);
}

table.table-comparison th.is-winner,
table.table-comparison td.is-winner {
	background: rgba(31, 93, 59, 0.12);
	font-weight: 700;
}
table.table-pros-cons td.pros::before { content: "\2713  "; color: var(--fp-primary); }
table.table-pros-cons td.cons::before { content: "\2717  "; color: #b3261e; }

/* =========================================================================
   Color swatch (shortcode [color_swatch], util en tablas de pintura)
   ========================================================================= */

.fp-color-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
	line-height: 1.2;
}
.fp-color-swatch-box {
	display: inline-block;
	flex-shrink: 0;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.fp-color-swatch--sm .fp-color-swatch-box {
	width: 20px;
	height: 20px;
}
.fp-color-swatch--md .fp-color-swatch-box {
	width: 32px;
	height: 32px;
	border-radius: 6px;
}
.fp-color-swatch--lg .fp-color-swatch-box {
	width: 48px;
	height: 48px;
	border-radius: 8px;
}
.fp-color-swatch-text {
	font-size: inherit;
}
.fp-color-swatch-code {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 0.85em;
	color: var(--fp-text-muted);
}

/* Dentro de tablas, alinear verticalmente con el resto del texto de la celda */
.single-article-content td .fp-color-swatch,
table.faunapress-table td .fp-color-swatch {
	display: inline-flex;
}

/* =========================================================================
   Sidebar / widgets
   ========================================================================= */

.widget {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--fp-border);
}
.widget:last-child {
	border-bottom: none;
}
.widget-title {
	font-size: 1.05rem;
	margin: 0 0 14px;
}
.popular-posts-list,
.featured-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.popular-posts-item,
.featured-posts-item {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}
.popular-posts-thumb img,
.featured-posts-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}
.popular-posts-title,
.featured-posts-title {
	font-size: 0.88rem;
	color: var(--fp-text);
	text-decoration: none;
}
.popular-posts-title:hover,
.featured-posts-title:hover {
	color: var(--fp-primary);
}

.newsletter-widget input[type="email"] {
	width: 100%;
	padding: 10px;
	margin-bottom: 8px;
	border: 1px solid var(--fp-border);
	border-radius: 6px;
	background: var(--fp-bg);
	color: var(--fp-text);
}
.newsletter-widget button {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 6px;
	background: var(--fp-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* =========================================================================
   Newsletter section (homepage)
   ========================================================================= */

.newsletter-section {
	background: var(--fp-bg-alt);
	padding-block: 40px;
	text-align: center;
}
.newsletter-inner {
	max-width: 560px;
}

/* =========================================================================
   AdSense / ad slots
   ========================================================================= */

.ad-slot {
	position: relative;
	min-height: 90px;
	margin: 24px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--fp-bg-alt);
	border: 1px dashed var(--fp-border);
	border-radius: 8px;
	overflow: hidden;
}
.ad-slot-label {
	position: absolute;
	top: 4px;
	left: 8px;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fp-text-muted);
}
.ad-slot-inner {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* =========================================================================
   Related posts
   ========================================================================= */

.related-posts {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--fp-border);
}
.related-posts-heading {
	font-size: 1.3rem;
	margin-bottom: 20px;
}
.related-posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* =========================================================================
   Author box
   ========================================================================= */

.author-box {
	display: flex;
	gap: 16px;
	background: var(--fp-bg-alt);
	border-radius: var(--fp-radius);
	padding: 20px;
	margin-top: 32px;
}
.author-box-avatar img {
	border-radius: 50%;
}
.author-box-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--fp-text-muted);
	margin: 0;
}
.author-box-name {
	margin: 2px 0 8px;
	font-size: 1.05rem;
}
.author-box-name a {
	color: var(--fp-text);
	text-decoration: none;
}
.author-box-bio {
	color: var(--fp-text-muted);
	font-size: 0.9rem;
	margin: 0 0 10px;
}
.author-box-links {
	display: flex;
	gap: 14px;
	font-size: 0.85rem;
	font-weight: 600;
}
.author-archive-header {
	display: flex;
	gap: 16px;
	align-items: center;
}

/* =========================================================================
   Product card / affiliate components
   ========================================================================= */

.faunapress-product-card {
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	padding: 20px;
	background: var(--fp-card-bg);
	max-width: 420px;
	margin: 2em 0;
	box-shadow: var(--fp-shadow);
}
.faunapress-product-card-rating {
	color: var(--fp-accent);
	font-size: 1rem;
	margin-bottom: 6px;
}
.faunapress-product-card-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
}
.faunapress-product-card-price {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--fp-primary);
	margin: 10px 0;
}
.faunapress-product-card-features {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.faunapress-product-card-features li {
	padding-left: 1.4em;
	position: relative;
	margin-bottom: 6px;
	font-size: 0.92rem;
}
.faunapress-product-card-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--fp-primary);
	font-weight: 700;
}
.faunapress-cta-button {
	display: block;
	text-align: center;
	width: 100%;
	padding: 14px;
	border-radius: 8px;
	background: var(--fp-accent);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}
.faunapress-cta-button:hover {
	background: #a86c0c;
	text-decoration: none;
	color: #fff;
}

/* =========================================================================
   Comments
   ========================================================================= */

.comments-area {
	margin-top: 40px;
	max-width: 780px;
}
.comment-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.comment-list .children {
	list-style: none;
	padding-left: 24px;
}
.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--fp-border);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--fp-border);
	border-radius: 6px;
	background: var(--fp-bg);
	color: var(--fp-text);
	margin-bottom: 12px;
}

/* =========================================================================
   404
   ========================================================================= */

.error-404-section {
	text-align: center;
	padding-block: 60px;
}
.error-404-title {
	font-size: 5rem;
	margin: 0;
	color: var(--fp-primary);
}
.error-404-categories ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
	background-color: var(--fp-footer-bg);
	color: var(--fp-footer-text);
	margin-top: 48px;
	background-image: var(--fp-footer-bg-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.site-footer.has-bg-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: none;
	z-index: 0;
}
.site-footer.has-bg-image > .container {
	position: relative;
	z-index: 1;
}
.footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding-block: 40px;
}
.footer-widgets .widget-title {
	color: var(--fp-footer-text);
}
.footer-widgets .widget {
	border-bottom: none;
}
.footer-widgets a {
	color: var(--fp-footer-text);
	opacity: 0.85;
}
.footer-social {
	padding-bottom: 20px;
}
.social-links {
	list-style: none;
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
}
.social-links a {
	color: var(--fp-footer-text);
	font-size: 0.85rem;
	text-decoration: none;
}
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 18px;
	font-size: 0.8rem;
	text-align: center;
	color: var(--fp-footer-text);
	opacity: 0.7;
}

/* Pagination generica */
.pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 32px;
	flex-wrap: wrap;
}
.pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid var(--fp-border);
	color: var(--fp-text);
	text-decoration: none;
	font-size: 0.9rem;
}
.pagination .page-numbers.current {
	background: var(--fp-primary);
	color: #fff;
	border-color: var(--fp-primary);
}
