/*
 * Theme additions.
 * Only WordPress-generated markup, functional states and scoped editor styles.
 * No literal colours live here: every value resolves from a Customizer token.
 */

[hidden] {
	display: none !important;
}

/* Clickable affordances ------------------------------------------------ */
a[href],
button,
[role="button"],
summary,
select,
label[for] {
	cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
	cursor: default;
}

/* Fixed header offset, including the WordPress admin bar ---------------- */
.site-header {
	top: var(--admin-bar-offset, 0px);
}

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 fixed header; the home hero starts at the top. */
body:not(.home) .site-main {
	padding-top: calc(96px + var(--admin-bar-offset, 0px));
}

@media screen and (max-width: 1023px) {
	body:not(.home) .site-main {
		padding-top: calc(64px + var(--admin-bar-offset, 0px));
	}
}

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

.site-header.is-solid .site-logo-img--desktop {
	height: calc(var(--logo-height) * 0.7) !important;
}

.site-logo-text {
	line-height: 1;
	display: block;
}

/* Scroll reveal fallbacks --------------------------------------------- */
body.is-customizer [data-theme-reveal] {
	opacity: 1 !important;
	transform: none !important;
}

/* Form states --------------------------------------------------------- */
.theme-btn-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: wait;
}

/* Editor content on default pages ------------------------------------- */
.entry-content h2 {
	font-family: var(--font-heading);
	font-size: 1.875rem;
	line-height: 1.2;
	color: hsl(var(--foreground));
	margin: 2rem 0 1rem;
}

.entry-content h3 {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	line-height: 1.25;
	color: hsl(var(--foreground));
	margin: 1.75rem 0 0.75rem;
}

.entry-content h4 {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	line-height: 1.3;
	color: hsl(var(--foreground));
	margin: 1.5rem 0 0.5rem;
}

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

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

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25rem 1.5rem;
}

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

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

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

.entry-content blockquote {
	border-left: 2px solid hsl(var(--accent));
	padding-left: 1rem;
	font-style: italic;
	margin: 1.5rem 0;
}

.entry-content img {
	border-radius: var(--radius);
	height: auto;
}

/* Pagination ---------------------------------------------------------- */
.theme-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
}

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

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

.theme-pagination .page-numbers:hover {
	border-color: hsl(var(--accent));
	color: hsl(var(--accent));
}

/* Accessibility helpers ----------------------------------------------- */
.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: hsl(var(--background));
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--foreground));
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.skip-link.screen-reader-text:focus {
	border-radius: var(--radius);
	box-shadow: 0 0 2px 2px hsl(var(--foreground) / 0.6);
}
