/* Functional and WordPress-only styles. Layout, spacing, colour and type for
   elements that exist in the design come from app.css. */

[hidden] {
	display: none !important;
}

.theme-icon--thin,
.theme-icon--stroke15 {
	stroke-width: 1.5;
}

.theme-icon--stroke125 {
	stroke-width: 1.25;
}

/* Logo sizing (Customizer driven). */
.site-logo-img {
	height: var(--logo-height, 48px) !important;
	width: auto !important;
	display: block;
}

@media (max-width: 767px) {
	.site-logo-img {
		height: 40px !important;
	}
}

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

.site-brand-name {
	line-height: 1;
}

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

body.admin-bar .js-nav-menu {
	top: 32px;
}

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

	body.admin-bar .js-nav-menu {
		top: 46px;
	}
}

body:not(.home) .site-content,
body.home .site-content {
	padding-top: 64px;
}

@media (min-width: 768px) {
	body:not(.home) .site-content,
	body.home .site-content {
		padding-top: 80px;
	}
}

body.admin-bar .site-content {
	padding-top: 96px;
}

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

/* Reveal animation fallback for the Customizer preview. */
body.is-customizer .reveal-init {
	opacity: 1;
	transform: none;
	filter: none;
}

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

/* Toast feedback for the inquiry form. */
.theme-toast {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 80;
	max-width: 22rem;
	padding: 0.875rem 1rem;
	border-radius: var(--radius);
	background: var(--foreground);
	color: var(--background);
	font-size: 0.875rem;
	line-height: 1.4;
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--foreground) 45%, transparent);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.theme-toast.is-visible {
	opacity: 1;
	transform: none;
}

.theme-toast.is-error {
	background: var(--destructive);
	color: var(--background);
}

/* WordPress-generated pagination. */
.theme-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

.theme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border);
	color: var(--foreground);
	text-decoration: none;
}

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

/* Editor content inside page.php and index.php. */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display, "Montserrat", ui-sans-serif, sans-serif);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--foreground);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.entry-content h2 {
	font-size: 1.875rem;
	line-height: 1.15;
}

.entry-content h3 {
	font-size: 1.5rem;
	line-height: 1.2;
}

.entry-content h4 {
	font-size: 1.25rem;
	line-height: 1.25;
}

.entry-content p {
	margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.25rem;
}

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

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

.entry-content li {
	margin-bottom: 0.375rem;
}

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

.entry-content blockquote {
	border-left: 1px solid var(--border);
	padding-left: 1.25rem;
	margin: 1.5rem 0;
}

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