:root {
	--gw-ink: #101114;
	--gw-muted: #626772;
	--gw-line: #dfe3ea;
	--gw-paper: #ffffff;
	--gw-soft: #f4f7fb;
	--gw-accent: #ff4d1a;
	--gw-accent-strong: #e03c0d;
	--gw-radius: 8px;
	--gw-shadow: 0 24px 70px rgba(16, 17, 20, 0.08);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--gw-paper);
	color: var(--gw-ink);
	font-family: var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
	font-size: var(--gw-font-size, 16px);
	line-height: var(--gw-line-height, 1.5);
}

/* Global settings: role-based font tokens retain the legacy font fallback. */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)));
	font-weight: var(--gw-heading-weight, bold);
}

a {
	color: inherit;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gw-site-header,
.gw-site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 22px 0;
}

.gw-site-header {
	border-bottom: 1px solid var(--gw-line);
}

.gw-site-footer {
	border-top: 1px solid var(--gw-line);
	color: var(--gw-muted);
	font-size: 14px;
}

.gw-site-brand {
	font-weight: 800;
	text-decoration: none;
}

.gw-site-nav ul {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-site-main {
	min-height: 70vh;
	/* Query container so the builder's fluid font-sizes (clamp + cqw) scale to the
	   content width on the front, mirroring the editor canvas (also a @container). */
	container-type: inline-size;
}

.gw-content--page {
	width: 100%;
}

@media (max-width: 760px) {
	.gw-site-header,
	.gw-site-footer {
		width: min(100% - 28px, 1180px);
		align-items: flex-start;
		flex-direction: column;
	}

}

.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;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--gw-ink);
	border-radius: 4px;
	clip: auto !important;
	clip-path: none;
	color: var(--gw-paper);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 1rem;
	line-height: 1.5;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* ============================================================
   NATIVE (non-builder) CONTENT
   404, single posts, plain pages, archives, search results.
   Without builder inline styles these dumped flush to the top-left;
   give them a centered, padded, readable column that clears the
   fixed header and matches the brand.
   ============================================================ */
.gw-prose {
	width: min(760px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(120px, 15vw, 168px) 0 clamp(64px, 9vw, 120px);
	font-size: 18px;
	line-height: 1.7;
	color: #2b2f36;
}

.gw-prose > :first-child {
	margin-top: 0;
}

.gw-prose h1,
.gw-prose h2,
.gw-prose h3,
.gw-prose h4 {
	color: var(--gw-ink);
	letter-spacing: -0.02em;
}

.gw-prose h1 {
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.06;
	margin: 0 0 0.55em;
}

.gw-prose h2 {
	font-size: clamp(25px, 3.4vw, 34px);
	line-height: 1.15;
	margin: 1.7em 0 0.5em;
}

.gw-prose h3 {
	font-size: 22px;
	margin: 1.5em 0 0.4em;
}

.gw-prose p {
	margin: 0 0 1.25em;
}

.gw-prose a {
	color: var(--gw-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.gw-prose a:hover {
	color: var(--gw-accent-strong);
}

.gw-prose ul,
.gw-prose ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

.gw-prose li {
	margin: 0.35em 0;
}

.gw-prose img {
	border-radius: 16px;
	margin: 1.6em 0;
}

.gw-prose blockquote {
	margin: 1.6em 0;
	padding: 0.4em 1.3em;
	border-left: 3px solid var(--gw-accent);
	color: var(--gw-muted);
	font-style: italic;
}

.gw-prose code {
	background: #f3f4f6;
	padding: 0.15em 0.42em;
	border-radius: 6px;
	font-size: 0.9em;
}

.gw-prose pre {
	margin: 1.6em 0;
	padding: 20px 22px;
	border-radius: 16px;
	background: #0f1115;
	color: #e5e7eb;
	overflow: auto;
}

.gw-prose pre code {
	padding: 0;
	background: none;
}

.gw-prose hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--gw-line);
}

/* 404 — friendly, centered */
.gw-content--404 {
	text-align: center;
}

.gw-content--404 h1 {
	font-size: clamp(60px, 12vw, 116px);
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.gw-content--404 p {
	color: var(--gw-muted);
	font-size: 19px;
}

.gw-content--404 .gw-search-form {
	max-width: 440px;
	margin: 30px auto 0;
}

/* Archive + search listings */
.gw-archive-header {
	width: min(960px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(120px, 15vw, 168px) 0 4px;
}

.gw-archive-header h1 {
	margin: 0;
	font-size: clamp(34px, 5vw, 54px);
	letter-spacing: -0.02em;
	color: var(--gw-ink);
}

.gw-archive-header h1 span {
	color: var(--gw-accent);
}

.gw-archive-description {
	margin-top: 14px;
	color: var(--gw-muted);
	font-size: 18px;
}

.gw-archive-list {
	width: min(960px, calc(100% - 48px));
	margin: 32px auto 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 16px;
}

.gw-archive-item {
	padding: 26px 28px;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	background: var(--gw-paper);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gw-archive-item:hover {
	border-color: #cdd3dd;
	box-shadow: 0 18px 50px rgba(16, 17, 20, 0.08);
	transform: translateY(-2px);
}

.gw-archive-item a {
	text-decoration: none;
}

.gw-archive-item h2 {
	margin: 0;
	font-size: 23px;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
}

.gw-archive-item:hover h2 {
	color: var(--gw-accent);
}

.gw-archive-item p {
	margin: 10px 0 0;
	color: var(--gw-muted);
	line-height: 1.6;
}

.gw-archive-pagination {
	width: min(960px, calc(100% - 48px));
	margin: 40px auto clamp(64px, 9vw, 120px);
}

.gw-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0 4px 8px 0;
	border: 1px solid var(--gw-line);
	border-radius: 10px;
	color: var(--gw-ink);
	font-weight: 650;
	text-decoration: none;
}

.gw-archive-pagination .page-numbers.current {
	background: var(--gw-ink);
	border-color: var(--gw-ink);
	color: #fff;
}

.gw-archive-pagination .page-numbers:not(.current):hover {
	border-color: var(--gw-accent);
	color: var(--gw-accent);
}

/* Search form (searchform.php) */
.gw-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.gw-search-form {
	display: flex;
	gap: 10px;
}

.gw-search-field {
	flex: 1;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid var(--gw-line);
	border-radius: 12px;
	background: var(--gw-paper);
	color: var(--gw-ink);
	font-size: 16px;
}

.gw-search-field:focus {
	outline: 2px solid var(--gw-accent);
	outline-offset: 1px;
	border-color: transparent;
}

.gw-search-submit {
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: var(--gw-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.gw-search-submit:hover {
	background: var(--gw-accent-strong);
}
