/*
 * Theme additions.
 * Only markup that has no source equivalent (WordPress output, inner pages,
 * form states) is styled here. Source components keep the compiled app.css.
 */

:root {
	--header-height: 112px;
}

[hidden] {
	display: none !important;
}

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

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

/* The home hero sits under the transparent fixed header; inner pages are offset. */
.site-main {
	padding-top: 0;
}

body:not(.home) .site-main {
	padding-top: var(--header-height);
}

/* Text identity fallback. */
.site-logo-text {
	display: block;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 600;
	line-height: var(--logo-height);
	color: inherit;
	white-space: nowrap;
}

.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

/* Brand name printed beside the logo, not under it. */
.logo-link--with-name {
	display: flex;
	align-items: center;
	gap: 14px;
}

.logo-link--with-name .site-logo-text {
	max-width: 210px;
	font-size: 20px;
	line-height: 1.15;
	white-space: normal;
	text-align: left;
}

@media (max-width: 767px) {
	.logo-link--with-name {
		gap: 10px;
	}

	.logo-link--with-name .site-logo-text {
		max-width: 140px;
		font-size: 16px;
	}
}

.site-footer .site-logo-img {
	height: 110px !important;
	width: 210px !important;
}

/* Reveal animations must never hide content in the Customizer preview. */
.is-customizer .reveal,
.no-js .reveal {
	opacity: 1;
	transform: none;
}

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

.theme-form-status {
	color: var(--gold);
}

/* Inner page and generic post content. */
.theme-page-content {
	width: min(820px, calc(100% - 40px));
	margin-inline: auto;
	padding-block: 60px 90px;
}

.theme-entry-title {
	margin: 0 0 26px;
	font-family: var(--font-display);
	font-size: 46px;
	font-weight: 600;
	line-height: 1.08;
	color: var(--foreground);
}

.theme-entry-content {
	font-size: 19px;
	line-height: 1.65;
	color: var(--muted-foreground);
}

.theme-entry-content > * + * {
	margin-top: 22px;
}

.theme-entry-content h2 {
	font-family: var(--font-display);
	font-size: 38px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--foreground);
}

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

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

.theme-entry-content a {
	color: var(--gold-dark);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.theme-entry-content ul,
.theme-entry-content ol {
	padding-left: 25px;
}

.theme-entry-content li + li {
	margin-top: 6px;
}

.theme-entry-content blockquote {
	border-left: 3px solid var(--gold);
	padding-left: 22px;
	font-family: var(--font-display);
	font-size: 29px;
	color: var(--primary);
}

.theme-entry-content img {
	height: auto;
}

/* WordPress pagination on archive/fallback templates. */
.theme-pagination {
	margin-top: 45px;
}

.theme-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.theme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 19px;
	font-weight: 600;
	color: var(--primary);
}

.theme-pagination .page-numbers.current,
.theme-pagination .page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold-dark);
}

/* WordPress accessibility helper. */
.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;
}

.screen-reader-text:focus {
	background-color: var(--background);
	clip: auto !important;
	clip-path: none;
	color: var(--foreground);
	display: block;
	font-size: 19px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}