/* Canonical values live in theme.json; these aliases serve theme and editor CSS. */
:root {
	--g-primary: var(--wp--preset--color--primary);
	--g-primary-hover: var(--wp--preset--color--secondary);
	--g-dark: var(--g-primary);
	--g-secondary: var(--g-primary-hover);
	--g-lime: var(--wp--preset--color--lime);
	--g-accent: var(--wp--preset--color--yellow);
	--g-tint: var(--g-lime);
	--g-surface: var(--wp--preset--color--surface);
	--g-surface-2: var(--wp--preset--color--surface-2);
	--g-surface-3: var(--wp--preset--color--surface-3);
	--g-text: var(--wp--preset--color--text);
	--g-text-muted: var(--wp--preset--color--muted);
	--g-border: var(--wp--custom--border);
	--g-chrome-border: var(--wp--custom--chrome-border);
	--g-font-body: var(--wp--preset--font-family--body);
	--g-font-heading: var(--wp--preset--font-family--heading);
	--g-container: var(--wp--custom--container);
	--g-gutter: var(--wp--custom--gutter);
	--g-header-height: var(--wp--custom--header-height);
	--g-link-text: var(--wp--custom--link-text);
	--g-description-text: var(--wp--custom--description-text);
	--g-legal-text: var(--wp--custom--legal-text);
	--g-radius: var(--wp--custom--radius);
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-padding-top: calc(var(--g-header-height) + 16px); }
/* Same-page anchors glide; users who prefer reduced motion keep the native instant jump. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Anchor targets also clear the logged-in toolbar, mirroring the sticky header offsets in header.css. */
html:has(> body.admin-bar) { scroll-padding-top: calc(var(--g-header-height) + 16px + 32px); }
@media (max-width: 782px) { html:has(> body.admin-bar) { scroll-padding-top: calc(var(--g-header-height) + 16px + 46px); } }
@media (max-width: 600px) { html:has(> body.admin-bar) { scroll-padding-top: calc(var(--g-header-height) + 16px); } }
body { margin: 0; padding: 0; background: var(--g-surface); color: var(--g-text); font-family: var(--g-font-body); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
body.genacol-site { min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--g-font-heading); }
a { color: var(--g-primary); text-decoration: none; }
a:hover, a:active { color: var(--g-primary-hover); }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
::selection { background: #E6F1D1; }
:focus-visible { outline: 2px solid var(--g-primary); outline-offset: 4px; }
[hidden] { display: none !important; }
/* The source's 1360px maximum excludes its horizontal padding. */
.genacol-container { width: 100%; max-width: calc(var(--g-container) + var(--g-gutter) * 2); margin-inline: auto; padding-inline: var(--g-gutter); }
.genacol-menu { list-style: none; margin: 0; padding: 0; }
.genacol-menu li { min-width: 0; }
.genacol-pending { text-decoration: underline dotted; text-underline-offset: 4px; cursor: help; }
.genacol-brand { min-width: 0; }
.genacol-brand .custom-logo-link { display: block; }
.genacol-brand img { width: auto; object-fit: contain; mix-blend-mode: multiply; }
.genacol-brand__text { display: inline-flex; align-items: center; min-height: 44px; font-size: 24px; font-weight: 600; color: var(--g-primary); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.genacol-skip-link { position: fixed; top: 8px; left: 8px; z-index: 100000; transform: translateY(-200%); padding: 12px 20px; background: var(--g-surface); border: 2px solid var(--g-primary); }
.genacol-skip-link:focus { transform: translateY(0); }
.genacol-foundation { flex: 1; width: 100%; }
.genacol-development-note { margin: 32px auto; max-width: 760px; padding: 16px; border: 1px dashed var(--g-border); color: var(--g-text-muted); font-size: 14px; line-height: 1.6; }
.genacol-content { flex: 1; padding-block: 48px; overflow-wrap: anywhere; }
.genacol-content article + article { margin-top: 32px; }
.genacol-content article > * + * { margin-top: 20px; }
.genacol-content p { line-height: 1.6; }
.genacol-content a { text-decoration: underline; text-underline-offset: 3px; }
.genacol-404 { padding-block: clamp(56px, 8vw, 120px); }
.genacol-404__code { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--g-primary); }
.genacol-404 > * + * { margin-top: 20px; }
.genacol-404 > h1 { margin-top: 14px; font-family: var(--g-font-heading); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; color: var(--g-dark); }
.genacol-404 > p:not(.genacol-404__code) { max-width: 52ch; font-size: 17px; color: #3C453F; }
.genacol-404__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.genacol-404__links a { color: var(--g-dark); }
.genacol-404 .search-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; margin-top: 28px; }
.genacol-404 .search-form label { flex: 1; min-width: min(100%, 220px); }
.genacol-404 .search-field { width: 100%; height: 50px; padding: 0 14px; border: 1px solid rgba(0,75,72,.3); border-radius: 2px; font: inherit; }
/* Focus turns the field's own border green and 2px thick (border + zero-offset shadow) instead of the global
   :focus-visible outline, which drew a second ring 4px outside the border. */
.genacol-404 .search-field:focus { outline: none; border-color: var(--g-primary); box-shadow: 0 0 0 1px var(--g-primary); }
.genacol-404 .search-submit { height: 50px; padding: 0 22px; border: 0; border-radius: 2px; background: var(--g-primary); color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }
.genacol-404 .search-submit:hover { background: var(--g-primary-hover); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
