/*
 * Shared Schmabels design system.
 *
 * Page fragments own their content and sole main landmark. This file owns
 * global presentation, reusable content patterns, and intentional fallbacks.
 */

:root {
	--sch-ink: #07131d;
	--sch-ink-soft: #0d2230;
	--sch-ink-raised: #132b39;
	--sch-lime: #d9ff43;
	--sch-lime-dark: #476600;
	--sch-cream: #f6f1e5;
	--sch-paper: #fffdf7;
	--sch-white: #ffffff;
	--sch-muted-light: #c9d3d7;
	--sch-muted-dark: #344850;
	--sch-line-light: rgba(255, 255, 255, 0.2);
	--sch-line-dark: rgba(7, 19, 29, 0.2);
	--sch-shadow: 0 18px 48px rgba(7, 19, 29, 0.16);
	--sch-radius-sm: 0.45rem;
	--sch-radius-md: 0.9rem;
	--sch-radius-lg: 1.25rem;
	--sch-content: 1160px;
	--sch-reading: 760px;
	--sch-header-height: 72px;
	--sch-admin-bar-height: 0px;
	--sch-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sch-font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
	box-sizing: border-box;
	scroll-padding-top: calc(var(--sch-header-height) + var(--sch-admin-bar-height) + 1rem);
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body.schmabels-site {
	margin: 0;
	min-width: 0;
	overflow-x: clip;
	background: var(--sch-ink);
	color: var(--sch-cream);
	font-family: var(--sch-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.schmabels-site img,
body.schmabels-site svg,
body.schmabels-site video {
	display: block;
	max-width: 100%;
	height: auto;
}

body.schmabels-site iframe {
	max-width: 100%;
}

body.schmabels-site button,
body.schmabels-site input,
body.schmabels-site select,
body.schmabels-site textarea {
	font: inherit;
}

body.schmabels-site a {
	text-underline-offset: 0.2em;
}

body.schmabels-site a:focus-visible,
body.schmabels-site button:focus-visible,
body.schmabels-site summary:focus-visible,
body.schmabels-site input:focus-visible,
body.schmabels-site select:focus-visible,
body.schmabels-site textarea:focus-visible {
	outline: 3px solid var(--sch-lime);
	outline-offset: 4px;
}

.sch-wrap,
.sch-shell {
	width: min(var(--sch-content), calc(100% - 2.5rem));
	margin-inline: auto;
}

.sch-reading-width {
	width: min(var(--sch-reading), calc(100% - 2.5rem));
}

.sch-skip {
	position: fixed;
	z-index: 10000;
	top: 0.75rem;
	left: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.7rem 1rem;
	border-radius: var(--sch-radius-sm);
	background: var(--sch-lime);
	color: var(--sch-ink);
	font-weight: 900;
	text-decoration: none;
	transform: translateY(-180%);
	transition: transform 160ms ease;
}

.sch-skip:focus {
	transform: translateY(0);
}

.sch-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	border-bottom: 1px solid var(--sch-line-light);
	background: rgba(7, 19, 29, 0.97);
	color: var(--sch-white);
	backdrop-filter: blur(10px);
	transition: transform 180ms ease;
	will-change: transform;
}

.sch-header--hidden {
	transform: translateY(-100%);
}

.admin-bar {
	--sch-admin-bar-height: 32px;
}

.admin-bar .sch-header {
	top: var(--sch-admin-bar-height);
}

.sch-header__inner {
	display: flex;
	min-height: var(--sch-header-height);
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.sch-brand {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	gap: 0.8rem;
	color: var(--sch-white);
	font-family: var(--sch-font-display);
	font-size: 0.92rem;
	font-weight: 900;
	letter-spacing: 0.07em;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
}

.sch-brand:hover {
	color: var(--sch-lime);
}

body.schmabels-site .sch-brand__image {
	width: auto;
	height: 54px;
	object-fit: contain;
}

.sch-brand__mark {
	display: inline-grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 2px solid var(--sch-lime);
	border-radius: 50%;
	color: var(--sch-lime);
	font-family: var(--sch-font-display);
	font-size: 1.5rem;
	line-height: 1;
}

.sch-menu-list,
.sch-mobile-menu__list {
	display: flex;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
	list-style: none;
}

.sch-menu-list a,
.sch-mobile-menu__list a {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.8rem;
	border-radius: 999px;
	color: var(--sch-white);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.055em;
	text-decoration: none;
	text-transform: uppercase;
}

.sch-menu-list a:hover,
.sch-menu-list .current-menu-item > a,
.sch-menu-list .current_page_item > a,
.sch-mobile-menu__list a:hover,
.sch-mobile-menu__list .current-menu-item > a,
.sch-mobile-menu__list .current_page_item > a {
	background: var(--sch-lime);
	color: var(--sch-ink);
}

.sch-mobile-menu {
	position: relative;
	display: none;
}

.sch-mobile-menu > summary {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--sch-lime);
	border-radius: 999px;
	color: var(--sch-lime);
	font-size: 0.8rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	list-style: none;
	text-transform: uppercase;
}

.sch-mobile-menu > summary::-webkit-details-marker {
	display: none;
}

.sch-mobile-menu[open] > summary {
	background: var(--sch-lime);
	color: var(--sch-ink);
}

.sch-mobile-menu nav {
	position: absolute;
	top: calc(100% + 0.65rem);
	right: 0;
	width: min(17rem, calc(100% + 11rem));
	max-width: calc(100dvw - 1.75rem);
	padding: 0.65rem;
	border: 1px solid rgba(217, 255, 67, 0.45);
	border-radius: var(--sch-radius-md);
	background: var(--sch-ink);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.sch-mobile-menu__list {
	flex-direction: column;
}

.sch-mobile-menu__list a {
	width: 100%;
	justify-content: flex-start;
}

.sch-page {
	min-height: 52vh;
	background: var(--sch-cream);
	color: var(--sch-ink);
	overflow: clip;
}

.sch-page a {
	color: #234f00;
	font-weight: 750;
	overflow-wrap: anywhere;
}

.sch-page a:hover {
	color: #142f00;
}

.sch-page h1,
.sch-page h2,
.sch-page h3,
.sch-page h4 {
	margin-top: 0;
	color: inherit;
	font-family: var(--sch-font-display);
	font-weight: 850;
	letter-spacing: -0.035em;
	line-height: 1.02;
	text-wrap: balance;
}

.sch-page h1 {
	max-width: 18ch;
	margin-bottom: 0.35em;
	font-size: clamp(2.9rem, 6vw, 5.25rem);
}

.sch-page h2 {
	max-width: 22ch;
	margin-bottom: 0.45em;
	font-size: clamp(2.15rem, 4vw, 3.8rem);
}

.sch-page h3 {
	margin-bottom: 0.55rem;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.sch-page p,
.sch-page li,
.sch-page dd {
	max-width: 74ch;
}

.sch-page address {
	font-style: normal;
}

.sch-page [id] {
	scroll-margin-top: calc(var(--sch-header-height) + var(--sch-admin-bar-height) + 1.25rem);
}

.sch-breadcrumbs {
	display: flex;
	width: min(var(--sch-content), calc(100% - 2.5rem));
	min-height: 46px;
	margin-inline: auto;
	align-items: center;
	gap: 0.5rem;
	color: #4a5a60;
	font-size: 0.82rem;
	font-weight: 750;
}

.sch-breadcrumbs a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	color: var(--sch-lime-dark);
}

.sch-hero {
	position: relative;
	padding: clamp(3.75rem, 7vw, 6rem) 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(217, 255, 67, 0.14), transparent 23rem),
		linear-gradient(130deg, var(--sch-ink), var(--sch-ink-soft));
	color: var(--sch-cream);
}

.sch-hero .sch-wrap {
	position: relative;
	z-index: 2;
}

.sch-hero .sch-lede {
	color: #e4ecef;
}

.sch-eyebrow {
	margin: 0 0 0.8rem;
	color: var(--sch-lime-dark);
	font-size: 0.79rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	line-height: 1.35;
	text-transform: uppercase;
}

.sch-hero .sch-eyebrow,
.sch-section--dark .sch-eyebrow,
.sch-dark .sch-eyebrow {
	color: var(--sch-lime);
}

.sch-lede,
.sch-intro,
.sch-copy {
	margin-top: 0;
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.68;
}

.sch-lede {
	max-width: 760px;
}

.sch-intro,
.sch-copy {
	max-width: 820px;
	color: #2d4149;
}

.sch-meta {
	color: var(--sch-muted-light);
	font-size: 0.9rem;
}

.sch-actions,
.sch-error-links,
.sch-visit-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.sch-btn,
.sch-actions .wp-block-button__link {
	display: inline-flex;
	min-width: 44px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.15rem;
	border: 2px solid var(--sch-lime);
	border-radius: 999px;
	background: var(--sch-lime);
	color: var(--sch-ink);
	font-size: 0.93rem;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.sch-btn:hover,
.sch-actions .wp-block-button__link:hover {
	border-color: var(--sch-white);
	background: var(--sch-white);
	color: var(--sch-ink);
	transform: translateY(-2px);
}

.sch-btn--quiet {
	border-color: rgba(255, 255, 255, 0.75);
	background: transparent;
	color: var(--sch-white);
}

body.schmabels-site .sch-btn--quiet,
body.schmabels-site .sch-btn--quiet:visited {
	color: var(--sch-white);
}

body.schmabels-site .sch-btn--quiet:hover {
	color: var(--sch-ink);
}

.sch-btn--light {
	border-color: var(--sch-ink);
	background: transparent;
	color: var(--sch-ink);
}

.sch-hero .sch-btn--light,
.sch-section--dark .sch-btn--light,
.sch-dark .sch-btn--light {
	border-color: var(--sch-white);
	color: var(--sch-white);
}

.sch-band .sch-btn--light:hover,
.sch-confirmed-visit .sch-btn--light:hover,
.sch-section:not(.sch-section--dark) .sch-btn--light:hover {
	border-color: var(--sch-ink);
	background: var(--sch-ink);
	color: var(--sch-white);
}

.sch-section {
	padding: clamp(3.75rem, 6vw, 5.5rem) 0;
	background: var(--sch-cream);
	color: var(--sch-ink);
}

.sch-section--dark,
.sch-dark {
	background:
		radial-gradient(circle at 85% 15%, rgba(217, 255, 67, 0.1), transparent 25rem),
		var(--sch-ink);
	color: var(--sch-cream);
}

.sch-section--dark a,
.sch-dark a {
	color: var(--sch-lime);
}

.sch-section--dark .sch-btn,
.sch-section--dark .sch-btn:visited,
.sch-dark .sch-btn,
.sch-dark .sch-btn:visited {
	color: var(--sch-ink);
}

.sch-section--dark .sch-btn--light,
.sch-section--dark .sch-btn--light:visited,
.sch-dark .sch-btn--light,
.sch-dark .sch-btn--light:visited {
	color: var(--sch-white);
}

.sch-section--dark .sch-btn:hover,
.sch-dark .sch-btn:hover {
	color: var(--sch-ink);
}

.sch-section--dark .sch-intro,
.sch-section--dark .sch-copy,
.sch-dark .sch-intro,
.sch-dark .sch-copy,
.sch-dark-copy {
	color: var(--sch-muted-light);
}

.sch-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}

.sch-card,
.sch-visit-card,
.sch-plan-panel {
	min-width: 0;
	padding: clamp(1.2rem, 2vw, 1.6rem);
	border: 1px solid #cbc4b7;
	border-radius: var(--sch-radius-md);
	background: var(--sch-paper);
	color: var(--sch-ink);
	box-shadow: 0 10px 30px rgba(7, 19, 29, 0.08);
}

.sch-card > :last-child,
.sch-visit-card > :last-child,
.sch-plan-panel > :last-child {
	margin-bottom: 0;
}

.sch-card--wide {
	grid-column: span 2;
}

.sch-card--full {
	grid-column: 1 / -1;
}

.sch-map {
	max-width: 960px;
	margin-top: 1.5rem;
	overflow: hidden;
	border: 1px solid #cbc4b7;
	border-radius: var(--sch-radius-lg);
	background: var(--sch-paper);
	box-shadow: 0 14px 36px rgba(7, 19, 29, 0.08);
}

.sch-map--home {
	max-width: none;
}

.sch-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

.sch-section--dark .sch-card,
.sch-dark .sch-card {
	border-color: rgba(217, 255, 67, 0.24);
	background: rgba(255, 255, 255, 0.045);
	color: var(--sch-cream);
	box-shadow: none;
}

.sch-section--dark .sch-card p,
.sch-section--dark .sch-card li,
.sch-section--dark .sch-card address,
.sch-dark .sch-card p,
.sch-dark .sch-card li,
.sch-dark .sch-card address {
	color: var(--sch-muted-light);
}

.sch-note {
	display: block;
	max-width: 920px;
	margin-top: 2rem;
	padding: 1.1rem 1.25rem;
	border-left: 5px solid var(--sch-lime-dark);
	border-radius: 0 var(--sch-radius-sm) var(--sch-radius-sm) 0;
	background: rgba(7, 19, 29, 0.08);
	color: #263941;
}

.sch-section--dark .sch-note,
.sch-dark .sch-note {
	border-left-color: var(--sch-lime);
	background: rgba(255, 255, 255, 0.06);
	color: var(--sch-cream);
}

.sch-empty-page,
.sch-generic-main,
.sch-single-main,
.sch-error-page {
	padding: clamp(4rem, 9vw, 7rem) 0;
}

.sch-error-page {
	display: grid;
	min-height: 62vh;
	align-items: center;
	background:
		radial-gradient(circle at 80% 18%, rgba(217, 255, 67, 0.13), transparent 26rem),
		var(--sch-ink);
	color: var(--sch-cream);
}

.sch-error-page .sch-eyebrow {
	color: var(--sch-lime);
}

.sch-error-page .sch-lede {
	color: var(--sch-muted-light);
}

.sch-archive-header,
.sch-entry-header {
	margin-bottom: 2.25rem;
}

.sch-archive-description {
	max-width: 760px;
	font-size: 1.1rem;
}

.sch-post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.sch-post-card {
	padding: 1.5rem;
	border: 1px solid #cbc4b7;
	border-radius: var(--sch-radius-md);
	background: var(--sch-paper);
}

.sch-post-card h2 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.sch-post-card h2 a {
	color: var(--sch-ink);
	text-decoration: none;
}

.sch-post-card h2 a:hover {
	color: var(--sch-lime-dark);
	text-decoration: underline;
}

.navigation.pagination {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.page-numbers {
	display: inline-grid;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	padding: 0.4rem;
	border: 1px solid var(--sch-ink);
	border-radius: var(--sch-radius-sm);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--sch-ink);
	color: var(--sch-white);
}

.search-form {
	display: flex;
	max-width: 680px;
	gap: 0.55rem;
	margin-top: 1.5rem;
}

.search-form label {
	flex: 1 1 auto;
}

.search-field {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.8rem;
	border: 2px solid var(--sch-ink);
	border-radius: var(--sch-radius-sm);
	background: var(--sch-paper);
	color: var(--sch-ink);
}

.search-submit {
	min-height: 48px;
	padding: 0.65rem 1rem;
	border: 2px solid var(--sch-ink);
	border-radius: var(--sch-radius-sm);
	background: var(--sch-ink);
	color: var(--sch-white);
	font-weight: 900;
}

.sch-featured-image {
	margin: 0 0 2rem;
	overflow: hidden;
	border-radius: var(--sch-radius-md);
	box-shadow: var(--sch-shadow);
}

.sch-entry-content {
	font-size: 1.06rem;
}

.sch-entry-content > * {
	max-width: 100%;
}

.sch-footer {
	padding: 2.5rem 0 1.1rem;
	border-top: 1px solid var(--sch-line-light);
	background: #040a0f;
	color: var(--sch-muted-light);
}

.sch-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) auto;
	gap: 2rem;
}

.sch-footer p {
	margin: 0.2rem 0;
}

.sch-footer address {
	font-style: normal;
}

.sch-footer__name {
	color: var(--sch-white);
	font-family: var(--sch-font-display);
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sch-footer__label {
	color: var(--sch-lime);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sch-footer a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding-block: 0.35rem;
	color: var(--sch-white);
	font-weight: 800;
}

.sch-footer a:hover {
	color: var(--sch-lime);
}

.sch-footer__nav {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

.sch-footer__bottom {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.82rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 0.75rem;
	left: 0.75rem;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	clip-path: none;
	background: var(--sch-white);
	color: var(--sch-ink);
	white-space: normal;
}

@media (max-width: 900px) {
	.sch-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sch-card--wide {
		grid-column: span 1;
	}
}

@media (max-width: 820px) {
	:root {
		--sch-header-height: 64px;
	}

	.sch-wrap,
	.sch-shell,
	.sch-breadcrumbs,
	.sch-reading-width {
		width: min(100% - 1.75rem, var(--sch-content));
	}

	.sch-primary-nav {
		display: none;
	}

	.sch-mobile-menu {
		display: block;
	}

	.sch-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sch-footer__nav {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 782px) {
	.admin-bar {
		--sch-admin-bar-height: 46px;
	}

	.admin-bar .sch-header {
		top: var(--sch-admin-bar-height);
	}
}

@media (max-width: 620px) {
	.sch-page h1 {
		font-size: clamp(2.45rem, 11vw, 3.5rem);
	}

	.sch-page h2 {
		font-size: clamp(2rem, 9vw, 2.8rem);
	}

	body.schmabels-site .sch-brand__image {
		height: 46px;
	}

	.sch-grid,
	.sch-post-list,
	.sch-footer__grid {
		grid-template-columns: 1fr;
	}

	.sch-card--wide,
	.sch-card--full {
		grid-column: auto;
	}

	.sch-map iframe {
		height: 300px;
	}

	.sch-actions .sch-btn,
	.sch-error-links .sch-btn {
		width: 100%;
	}

	.sch-search-form,
	.search-form {
		flex-direction: column;
	}

	.sch-footer__nav {
		grid-column: auto;
		flex-direction: column;
	}

	.sch-brand__name {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto;
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}

	.sch-header {
		transition: none;
	}
}

@media print {
	.sch-skip,
	.sch-header,
	.sch-footer,
	.sch-actions {
		display: none;
	}

	body.schmabels-site,
	.sch-page,
	.sch-section,
	.sch-section--dark,
	.sch-dark,
	.sch-hero {
		background: #fff;
		color: #000;
	}

	.sch-page a {
		color: #000;
		text-decoration: underline;
	}
}
