/* ==========================================================================
   Aussie Cleetus Training — base, layout, header, footer
   Every colour comes from the --c-* tokens written by inc/palette.php, which
   switch with [data-theme] (light/dark) and .tone-band / .tone-accent.
   ========================================================================== */

:root {
	--gutter: clamp(16px, 4vw, 32px);
	--content: 820px;
	--wide: 1280px;
	--header-h: 76px;
	--logo-h: 56px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	/* Safety net: nothing may widen the page. On Android, body's overflow is handed to the
	   viewport, so the clip has to be on html too or the browser widens the layout viewport
	   (horizontal scroll, and a bare strip when zoomed out). clip, unlike hidden, doesn't
	   break the sticky header. */
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	background: var(--c-bg);
	color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.icon { flex: none; display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--c-heading);
	font-family: var(--f-heading);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: var(--heading-spacing);
	text-transform: var(--heading-case);
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p, ul, ol, dl, blockquote, figure, table, pre { margin: 0 0 1.25em; }
p { text-wrap: pretty; }
strong, b { color: var(--c-heading); font-weight: 700; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s; }
a:hover { color: var(--c-link-hover); }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--c-accent); color: var(--c-on-accent); }

code, kbd, pre { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
code { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 4px; padding: .1em .35em; }
pre { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.25rem; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem .9rem; border-bottom: 1px solid var(--c-line); text-align: left; }
th { color: var(--c-heading); font-weight: 700; }

.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;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: .75rem 1.25rem;
	background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; text-decoration: none; border-radius: var(--radius);
}

.container { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--content { max-width: calc(var(--content) + var(--gutter) * 2); }
.section-pad { padding-block: var(--section-y); }

/* Small label above headings. */
.eyebrow,
.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .75em;
	margin-bottom: 1rem;
	color: var(--c-secondary-text);
	font-family: var(--f-label);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.3;
	text-transform: uppercase;
}
.eyebrow::before,
.is-style-eyebrow::before {
	content: "";
	width: 2rem;
	height: 2px;
	background: var(--c-accent);
	flex: none;
}
.has-text-align-center.is-style-eyebrow,
.is-text-center .is-style-eyebrow { justify-content: center; }

.lead,
.is-style-lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--c-muted); }

/* ---------- Buttons ---------- */
.button,
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button[type="submit"]:not(.search-submit):not(.icon-btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 48px;
	padding: .8em 1.6em;
	border: 2px solid var(--c-accent);
	border-radius: var(--radius-btn);
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-family: var(--f-heading);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
}
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.search-submit):not(.icon-btn):hover {
	background: var(--c-accent-hover);
	border-color: var(--c-accent-hover);
	color: var(--c-on-accent);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -8px rgba(var(--c-accent-rgb), .6);
}
.button svg, .wp-block-button__link svg { width: 1.1em; height: 1.1em; }

.button--outline,
.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: transparent;
	border-color: currentColor;
	color: var(--c-heading);
}
.button--outline:hover,
.is-style-outline > .wp-block-button__link:hover {
	background: var(--c-heading);
	border-color: var(--c-heading);
	color: var(--c-bg);
	box-shadow: none;
}

.is-style-arrow > .wp-block-button__link {
	background: none;
	border-color: transparent;
	padding-inline: 0;
	color: var(--c-link);
}
.is-style-arrow > .wp-block-button__link::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform .18s var(--ease);
}
.is-style-arrow > .wp-block-button__link:hover { background: none; border-color: transparent; color: var(--c-link-hover); box-shadow: none; }
.is-style-arrow > .wp-block-button__link:hover::after { transform: translateX(4px); }

.button--lg { min-height: 56px; padding: 1em 2em; font-size: 1.08rem; }
.button--block { display: flex; width: 100%; }

.wp-block-buttons { gap: .75rem; }

/* ---------- Forms ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),
select,
textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: .7rem .9rem;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius);
	background: var(--c-input-bg);
	color: var(--c-text);
	font: inherit;
	font-size: 1rem;
	transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}
::placeholder { color: var(--c-muted); opacity: 1; }
label { color: var(--c-heading); font-weight: 600; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-accent); width: 1.1em; height: 1.1em; }

.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; }
.search-form .search-submit {
	padding-inline: 1.25rem;
	border: 0;
	border-radius: var(--radius-btn);
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-family: var(--f-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
}

/* ---------- Icon buttons ---------- */
.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--c-heading);
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--c-surface); color: var(--c-accent); }
.icon-btn svg { width: 21px; height: 21px; }

.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

.cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-size: .68rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.cart-count.is-empty { display: none; }

/* ---------- Announcement bar ---------- */
.announce-bar { background: var(--c-bg); color: var(--c-text); font-size: .925rem; }
.announce-bar--secondary { background: var(--c-secondary); --c-heading: var(--c-on-secondary); --c-text: var(--c-on-secondary); --c-link: var(--c-on-secondary); }
.announce-bar__inner { display: flex; align-items: center; justify-content: center; gap: .5rem 1.25rem; min-height: 44px; padding-block: .5rem; text-align: center; flex-wrap: wrap; }
.announce-bar__text { margin: 0; }
.announce-bar__text a { color: inherit; }
.announce-bar__link { display: inline-flex; align-items: center; gap: .35em; color: var(--c-heading); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.announce-bar__link svg { width: 16px; height: 16px; transition: transform .15s; }
.announce-bar__link:hover { color: var(--c-heading); }
.announce-bar__link:hover svg { transform: translateX(3px); }
.announce-bar__close { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .8; }
.announce-bar__close:hover { opacity: 1; background: rgba(0, 0, 0, .15); }
.announce-bar__close svg { width: 18px; height: 18px; }

/* ---------- Top bar ---------- */
.topbar {
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: .85rem;
}
.header-dark .topbar { background: var(--c-band-2); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.topbar__info a:hover { color: var(--c-heading); }
.topbar__info svg { width: 15px; height: 15px; color: var(--c-secondary-text); }
.topbar__social { display: flex; gap: .25rem; }
.topbar__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; }
.topbar__icon:hover { color: var(--c-heading); background: var(--c-surface); }
.topbar__icon svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-line);
	transition: background-color .25s, border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.has-sticky-header .site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

/* Over a page-top hero: transparent until scrolled. */
.has-overlay-header .site-header {
	margin-bottom: calc(var(--header-h) * -1);
	background: transparent;
	border-bottom-color: transparent;
}
.has-overlay-header .site-header.is-scrolled { background: var(--c-band); border-bottom-color: var(--c-line); }

/* Brand */
/* Full size on desktop, where theme.js measures whether the menu fits beside it (a brand
   that could shrink would hide the overflow and let the menu draw over it). Below the
   desktop breakpoint it may shrink, with its name wrapping, so the header never
   outgrows a small screen. */
.brand { display: inline-flex; align-items: center; gap: .85rem; min-width: 0; color: var(--c-heading); text-decoration: none; flex: none; }
@media (max-width: 1099px) {
	.site-header .brand { flex: 0 1 auto; }
}
.brand:hover { color: var(--c-heading); }
.brand-mark { display: block; height: var(--logo-h); width: auto; flex: none; transition: height .25s var(--ease); }
.brand-mark--tint {
	aspect-ratio: var(--logo-ratio, 1);
	background: var(--c-heading);
	-webkit-mask: var(--logo-url) center / contain no-repeat;
	mask: var(--logo-url) center / contain no-repeat;
}
.brand-mark--accent { background: var(--c-accent); }
.brand-mark--secondary { background: var(--c-secondary); }
.brand-mark--dark { display: none; }
:is([data-theme="dark"], .tone-band, .site-footer, .header-dark .site-header, .has-overlay-header .site-header) .brand-mark--light:has(+ .brand-mark--dark) { display: none; }
:is([data-theme="dark"], .tone-band, .site-footer, .header-dark .site-header, .has-overlay-header .site-header) .brand-mark--dark { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-name { font-family: var(--f-heading); font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand-tagline { margin-top: .3rem; color: var(--c-secondary-text); font-family: var(--f-label); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.site-header.is-scrolled .brand-mark { height: calc(var(--logo-h) * .82); }

/* Primary navigation (desktop) */
.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav .menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--header-h);
	padding: 0 .7rem;
	color: var(--c-heading);
	font-family: var(--f-heading);
	font-size: .98rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.primary-nav .menu > li > a::after {
	content: "";
	position: absolute;
	left: .7rem;
	right: .7rem;
	bottom: calc(50% - 1.05em);
	height: 2px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s var(--ease);
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a::after { transform: scaleX(1); }
.primary-nav .menu-item-has-children > a { padding-right: 1.6rem; }
.primary-nav .submenu-toggle {
	position: absolute;
	right: .2rem;
	top: 50%;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-muted);
	cursor: pointer;
}
.primary-nav .submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% - 10px);
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: .5rem;
	list-style: none;
	background: var(--c-raised);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-accent);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.header-dark .primary-nav .sub-menu,
.has-overlay-header .primary-nav .sub-menu { background: var(--c-surface); }
.primary-nav .sub-menu .sub-menu { top: -.5rem; left: 100%; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav li:hover > .submenu-toggle svg,
.primary-nav li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-nav .sub-menu a {
	display: block;
	padding: .65rem .85rem;
	border-radius: calc(var(--radius) - 2px);
	color: var(--c-text);
	font-size: .97rem;
	font-weight: 500;
	text-decoration: none;
}
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a { background: var(--c-accent-soft); color: var(--c-heading); }

.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: .5rem; flex: none; }
.header-cta { margin-left: .5rem; min-height: 44px; padding: .65em 1.25em; white-space: nowrap; }
.nav-toggle { display: none; }
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle__bars span:nth-child(2) { width: 70%; justify-self: end; }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; z-index: 1000; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(400px, 90vw);
	background: var(--c-bg);
	box-shadow: var(--shadow-lg);
	transform: translateX(100%);
	transition: transform .3s var(--ease);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-line); }
.drawer .brand-mark { height: 42px; }
.drawer .brand-tagline { display: none; }
.drawer .brand-name { font-size: 1.05rem; white-space: normal; }
.drawer__nav { padding: .75rem 1.25rem; flex: 1; }
.drawer-menu, .drawer-menu ul { margin: 0; padding: 0; list-style: none; }
.drawer-menu li { position: relative; border-bottom: 1px solid var(--c-line); }
.drawer-menu a {
	display: block;
	padding: .95rem 3rem .95rem 0;
	color: var(--c-heading);
	font-family: var(--f-heading);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-decoration: none;
	text-transform: uppercase;
}
.drawer-menu .current-menu-item > a, .drawer-menu a:hover { color: var(--c-link); }
.drawer-menu .sub-menu { display: none; padding: 0 0 .5rem 1rem; border-left: 2px solid var(--c-accent); margin-bottom: .75rem; }
.drawer-menu .sub-menu li { border: 0; }
.drawer-menu .sub-menu a { padding: .5rem 0; font-family: var(--f-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--c-text); }
.drawer-menu li.is-open > .sub-menu { display: block; }
.drawer-menu .submenu-toggle {
	position: absolute;
	top: .5rem;
	right: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: none;
	color: var(--c-heading);
	cursor: pointer;
}
.drawer-menu .submenu-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.drawer-menu li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.drawer__foot { display: grid; gap: .75rem; padding: 1.25rem; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.drawer__account { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-heading); font-weight: 600; text-decoration: none; justify-self: center; }
.drawer__account svg { width: 18px; height: 18px; }
.drawer__social { display: flex; justify-content: center; gap: .5rem; }
body.drawer-open { overflow: hidden; }

/* ---------- Header breakpoints ---------- */
@media (max-width: 1099px) {
	.primary-nav { display: none; }
	.nav-toggle { display: inline-grid; }
	.header-actions { margin-left: auto; }
}
/* Wide screens whose menu doesn't fit beside the logo (theme.js measures it): the menu
   moves to its own full-width row under the logo and actions. */
@media (min-width: 1100px) {
	.site-header.nav-overflow .site-header__inner { flex-wrap: wrap; row-gap: 0; }
	.site-header.nav-overflow .header-actions { margin-left: auto; }
	.site-header.nav-overflow .primary-nav {
		order: 3;
		flex-basis: 100%;
		margin: 0;
		border-top: 1px solid var(--c-line);
	}
	.site-header.nav-overflow .primary-nav .menu { margin-left: -.7rem; flex-wrap: wrap; }
	.site-header.nav-overflow .primary-nav .menu > li > a { min-height: 54px; }
	.site-header.nav-overflow .primary-nav .sub-menu { top: calc(100% - 4px); }
}
@media (max-width: 899px) {
	.hide-md { display: none !important; }
}
@media (max-width: 639px) {
	:root { --header-h: 64px; --logo-h: 44px; }
	.hide-sm { display: none !important; }
	.header-cta { display: none; }
	.brand-tagline { display: none; }
	.brand { gap: .6rem; }
	.brand-name { font-size: 1.05rem; white-space: normal; line-height: 1.05; overflow-wrap: anywhere; }
	.site-header__inner { gap: .5rem; }
	.header-actions { margin-left: auto; gap: 0; }
	.header-actions .icon-btn { width: 42px; height: 42px; }
	.topbar__inner { justify-content: center; }
	.topbar__social { display: none; }
	.sticky-desktop-only .site-header { position: relative; top: 0; }
}
@media (max-width: 330px) {
	.brand-text { display: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: linear-gradient(160deg, var(--c-band) 0%, var(--c-band-2) 100%);
	color: var(--c-text);
	isolation: isolate;
}
.page-hero::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--c-accent) 0 14rem, transparent 14rem);
}
.page-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
	mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%);
	opacity: .7;
}
.page-hero__title { margin: 0; font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 22ch; }
.page-hero__title span { color: var(--c-link); }
.page-hero__subtitle { max-width: 60ch; margin: 1rem 0 0; color: var(--c-muted); font-size: 1.15rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-family: var(--f-label); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-heading); }
.breadcrumbs [aria-current] { color: var(--c-secondary-text); }

/* ---------- Content flow ---------- */
.entry-content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry-content:has(> .alignfull:first-child) { padding-top: 0; }
.entry-content:has(> .alignfull:last-child) { padding-bottom: 0; }

.entry-content > * { margin-inline: auto; padding-inline: var(--gutter); max-width: calc(var(--content) + var(--gutter) * 2); }
.entry-content > .alignwide { max-width: calc(var(--wide) + var(--gutter) * 2); }
.entry-content > .alignfull { max-width: none; padding-inline: 0; }
.entry-content > :is(.alignfull, .alignwide) + :is(.alignfull) { margin-top: 0; }
.entry-content > .alignfull + * { margin-top: var(--section-y); }
.entry-content > .alignfull + .alignfull { margin-top: 0; }
.entry-content > * + .alignwide:not(.act-section) { margin-top: 2.5rem; }
.entry-content > :is(h2, h3) { margin-top: 2.25rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.entry-content ul:not([class*="wp-block-"]):not(.act-list), .entry-content ol:not([class*="wp-block-"]) { padding-left: 1.25em; }
.wp-block-list { padding-left: 1.25em; }
.wp-block-list li { margin-bottom: .35em; }
.wp-block-list li::marker { color: var(--c-accent); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption, figcaption { color: var(--c-muted); font-size: .875rem; margin-top: .6rem; }

.page-links { margin-top: 2rem; font-weight: 600; }

/* ---------- Posts ---------- */
.post-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-line-strong); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-line-strong); }
.post-card__placeholder svg { width: 64px; height: 64px; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card__meta { margin: 0 0 .5rem; color: var(--c-secondary-text); font-family: var(--f-label); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.post-card__title { margin: 0 0 .6rem; font-size: 1.35rem; }
.post-card__title a { color: var(--c-heading); text-decoration: none; }
.post-card__title a:hover { color: var(--c-link); }
.post-card__excerpt { margin: 0; color: var(--c-muted); font-size: .97rem; }

.entry-thumb { margin-top: clamp(2rem, 5vw, 3rem); margin-bottom: 0; }
.entry-thumb img { width: 100%; border-radius: var(--radius-lg); }

.post-navigation { padding-bottom: 3rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; height: 100%; padding: 1.1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.post-navigation a:hover { border-color: var(--c-accent); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; color: var(--c-muted); font-family: var(--f-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-title { color: var(--c-heading); font-weight: 700; }

.pagination, .navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-heading); font-weight: 600; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }

.empty-state { max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state .search-form { margin-inline: auto; }

/* Comments */
.comments-wrap { padding-bottom: 4rem; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 1.5rem; border-left: 2px solid var(--c-line); }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--c-line); }
.comment-meta { font-size: .9rem; color: var(--c-muted); }
.comment-author img { float: left; margin-right: .75rem; border-radius: 50%; }

/* ---------- 404 ---------- */
.not-found { position: relative; overflow: hidden; padding: clamp(5rem, 14vw, 10rem) 0; background: var(--c-bg); color: var(--c-text); isolation: isolate; }
.not-found__inner { max-width: 720px; }
.not-found__reticle { position: absolute; right: -8%; top: 50%; z-index: -1; width: min(70vw, 640px); color: var(--c-accent); opacity: .14; transform: translateY(-50%); }
.not-found .search-form { margin: 2rem 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--c-bg); color: var(--c-text); font-size: .97rem; }
.footer-cta { background: linear-gradient(120deg, var(--c-band-2), var(--c-band)); border-bottom: 1px solid var(--c-line); position: relative; overflow: hidden; }
.footer-cta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c-accent); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); flex-wrap: wrap; }
.footer-cta__title { margin: 0 0 .35rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.footer-cta__text { margin: 0; color: var(--c-muted); max-width: 60ch; }

.footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: 2.5rem 3rem;
	padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer .brand-mark { height: 84px; }
.site-footer .brand { gap: 1rem; }
.site-footer .brand-name { font-size: 1.35rem; white-space: normal; }
.footer-about { margin: 1.25rem 0 0; color: var(--c-muted); max-width: 42ch; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer-heading {
	margin: 0 0 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-heading);
	font-family: var(--f-label);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.footer-menu, .footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: .55rem; }
.footer-menu a { color: var(--c-text); text-decoration: none; transition: color .15s, padding .15s; }
.footer-menu a:hover { color: var(--c-heading); padding-left: .25rem; }
.footer-col { min-width: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .85rem; align-items: flex-start; }
/* Long email addresses and URLs break rather than push the footer wider than the screen. */
.footer-contact li > :not(svg) { min-width: 0; overflow-wrap: anywhere; }
.topbar__info a span, .act-contact__value { overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; margin-top: .2em; color: var(--c-secondary-text); }
.footer-contact a { color: var(--c-text); text-decoration: none; }
.footer-contact a:hover { color: var(--c-heading); }
.footer-col--widgets .widget { margin-bottom: 1.5rem; }
.footer-col--widgets .widget:last-child { margin-bottom: 0; }

.social-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius);
	color: var(--c-heading);
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.social-icon:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid var(--c-line); background: var(--c-band-2); font-size: .875rem; color: var(--c-muted); }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; flex-wrap: wrap; }
.footer-copyright { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.legal-menu a { color: var(--c-muted); text-decoration: none; }
.legal-menu a:hover { color: var(--c-heading); }
.footer-disclaimer { margin: 0; padding-bottom: 1.5rem; font-size: .8rem; color: var(--c-muted); max-width: 110ch; }

.back-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-accent);
	color: var(--c-on-accent);
	box-shadow: var(--shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s, background-color .15s;
}
.back-to-top svg { width: 22px; height: 22px; transform: rotate(180deg); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-accent-hover); }

@media (max-width: 899px) {
	.footer-main { grid-template-columns: 1fr 1fr; }
	.footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 539px) {
	.footer-main { grid-template-columns: 1fr; }
	.footer-cta__inner .button { width: 100%; }
	.footer-bottom__inner { flex-direction: column; text-align: center; }
	.legal-menu { justify-content: center; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.topbar, .announce-bar, .site-header, .drawer, .site-footer, .back-to-top { display: none !important; }
	body { background: #fff; color: #000; }
}
