/*
 * Theme rules for markup that has no counterpart in the source design:
 * WordPress generated output, reveal fallbacks and functional states.
 */

[hidden] {
	display: none !important;
}

/* Reveal fallbacks: content must never stay invisible. */
body.is-customizer .reveal,
body.theme-no-js .reveal,
.reveal.no-io {
	opacity: 1 !important;
	transform: none !important;
}

/* Site identity. */
.site-logo-img {
	height: var(--logo-height, 64px) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height, 64px);
	display: block;
}

@media (max-width: 639px) {
	.site-logo-img {
		height: calc(var(--logo-height, 64px) - 8px) !important;
	}
}

/* Fixed header offsets. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* Inner pages sit below the solid fixed header; the home hero does not. */
body:not(.home) .site-main {
	padding-top: 92px;
}

body.home .site-main {
	padding-top: 0;
}

body.error404 .site-main {
	padding-top: 0;
}

/* WordPress rich text (page templates). */
.entry-content {
	color: var(--foreground);
	font-size: 16px;
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2 {
	font-family: var(--font-display);
	font-size: 36px;
	line-height: 1.12;
	font-weight: 400;
	color: var(--foreground);
}

.entry-content h3 {
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 1.15;
	font-weight: 400;
	color: var(--foreground);
}

.entry-content h4 {
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.2;
	font-weight: 400;
	color: var(--foreground);
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content blockquote {
	border-left: 2px solid var(--accent);
	padding-left: 1rem;
	color: var(--muted-foreground);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Post cards on the generic index fallback. */
.theme-post-card {
	display: flex;
	flex-direction: column;
}

.theme-post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: var(--secondary);
}

.theme-post-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Pagination. */
.theme-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
}

.theme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--primary);
	text-decoration: none;
}

.theme-pagination .page-numbers.current,
.theme-pagination .page-numbers:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}

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

.skip-link:focus {
	background: var(--card);
	color: var(--foreground);
	clip: auto;
	clip-path: none;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 200;
}

/* AJAX submit state. */
.theme-btn-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: wait;
}