/* ==========================================================================
   Botino - WordPress glue
   Maps WP-generated markup (pagination, images, captions, blocks) onto the
   Botino design system. Keep design tokens/components untouched; only bridge here.
   ========================================================================== */

/* ---- Featured / card images fill their thumb frames -------------------- */
.post-thumb img,
.article-featured img,
.article-featured--photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.article-featured--photo { display: block; }

/* ---- Prose images, figures, captions, inline code --------------------- */
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose figure { margin: 0; }
.prose figcaption,
.wp-caption-text {
	font-size: var(--fs-xs);
	color: var(--text-subtle);
	text-align: center;
	margin-top: var(--space-2);
}
.prose :not(pre) > code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--r-xs);
	padding: 0.1em 0.4em;
}
.prose pre {
	background: var(--bg-ink);
	color: var(--text-on-dark);
	border-radius: var(--r-md);
	padding: var(--space-5);
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
}

/* ---- Block alignment --------------------------------------------------- */
.alignleft  { float: left;  margin: 0 var(--space-5) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-5); }
.aligncenter { display: block; margin-inline: auto; }
.prose .alignwide  { width: min(100%, 1000px); margin-inline: auto; }
.prose .alignfull  { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }

/* ---- WordPress pagination -> design pager ----------------------------- */
.pager .nav-links,
.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: var(--r-sm);
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	color: var(--text-default);
	border: 1px solid var(--border);
	background: var(--bg);
	padding: 0 0.7rem;
	text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--color-primary-300); color: var(--color-primary-700); }
.pagination .page-numbers.current { background: var(--color-primary-600); border-color: var(--color-primary-600); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; }

/* ---- Comments-free, but keep accessible skip-link --------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---- Search form ------------------------------------------------------- */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field {
	flex: 1;
	border: 1px solid var(--border-strong);
	border-radius: var(--r-md);
	padding: 0.7rem 0.9rem;
	font: inherit;
	background: var(--bg);
}
.search-form .search-submit {
	border: none;
	border-radius: var(--r-md);
	background: var(--grad-brand);
	color: #fff;
	font-weight: var(--fw-semibold);
	padding: 0 1.1rem;
	cursor: pointer;
}
