/* Theme additions for WordPress-generated markup and functional states. */

[hidden] {
	display: none !important;
}

:root {
	--logo-height: 39.1111px;
	--logo-height-footer: 49.7778px;
}

@media (min-width: 768px) {
	:root {
		--logo-height: 42.6667px;
	}
}

.site-header [data-theme-logo] {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

footer img {
	height: var(--logo-height-footer) !important;
	width: auto !important;
}

[role="button"],
[data-theme-menu-toggle] {
	cursor: pointer;
}

body.admin-bar .site-header {
	top: 32px;
}

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

.site-main--inner {
	padding-top: 5rem;
}

body.admin-bar .site-main--inner {
	padding-top: calc(5rem + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-main--inner {
		padding-top: calc(5rem + 46px);
	}
}

/* Reveal fallbacks: Customizer preview and no-IntersectionObserver contexts. */
body.is-customizer [data-reveal],
body.no-js [data-reveal] {
	opacity: 1;
	transform: none;
	transition: none;
}

@media (scripting: none) {
	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* WordPress content typography, scoped to the editor output only. */
.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-serif);
	color: var(--navy);
	line-height: 1.2;
	margin-top: 2rem;
}

.entry-content a {
	color: var(--blue);
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

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

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

.entry-content img {
	max-width: 100%;
	height: auto;
}

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

/* WordPress navigation / pagination. */
.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;
}

.navigation.pagination {
	margin-top: 2rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--navy);
	font-size: 14px;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
	background: var(--navy);
	color: var(--canvas);
	border-color: var(--navy);
}

/* WordPress search form. */
.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.search-form .search-field {
	min-height: 44px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card);
	color: var(--foreground);
	font-size: 14px;
}

.search-form .search-submit {
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: var(--canvas);
	font-size: 14px;
	font-weight: 500;
}

/* Comment form controls. */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--card);
	color: var(--foreground);
	font-size: 14px;
}

.comment-form .submit {
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: var(--canvas);
	font-size: 14px;
	font-weight: 500;
}

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