/*
 * ADHDHacker - base layer
 *
 * Loaded on every route: tokens, reset, typography, accessibility utilities,
 * buttons, form controls, header, navigation, drawer, breadcrumbs, notices,
 * empty states and the footer.
 *
 * Colour literals are never written here. Every colour resolves through the
 * theme.json palette (--wp--preset--color--*) so the editor, the front end and
 * the contrast test in tests/theme all read from one source of truth.
 * Translucency uses rgb()/color-mix() over those tokens rather than new hexes.
 *
 * Mobile-first. Breakpoints: 48rem (tablet), 64rem (desktop), 82rem (wide).
 */

/* ---------------------------------------------------------------- tokens */

:root {
	--ah-bg: var(--wp--preset--color--midnight);
	--ah-bg-deep: var(--wp--preset--color--slate-deep);
	--ah-surface: var(--wp--preset--color--slate);
	--ah-line: var(--wp--preset--color--border);
	--ah-line-strong: var(--wp--preset--color--border-strong);

	--ah-text: var(--wp--preset--color--text);
	--ah-text-muted: var(--wp--preset--color--text-muted);
	--ah-text-subtle: var(--wp--preset--color--text-subtle);

	--ah-accent: var(--wp--preset--color--terminal-green);
	--ah-link: var(--wp--preset--color--electric-blue);
	--ah-warn: var(--wp--preset--color--amber);
	--ah-error: var(--wp--preset--color--rose);
	--ah-focus: var(--wp--preset--color--focus);

	--ah-font: var(--wp--preset--font-family--sans, ui-sans-serif, system-ui, sans-serif);
	--ah-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);

	--ah-radius-sm: 4px;
	--ah-radius: 8px;
	--ah-radius-lg: 14px;
	--ah-radius-pill: 999px;

	--ah-shell: 82rem;
	--ah-gutter: clamp(1rem, 4vw, 2.5rem);
	--ah-measure: 68ch;

	--ah-tap: 44px;
	--ah-ring: 3px;

	--ah-fast: 120ms;
	--ah-base: 200ms;

	/* Elevation and tint, derived from the palette rather than new colours. */
	--ah-tint-weak: rgb(255 255 255 / 0.04);
	--ah-tint: rgb(255 255 255 / 0.07);
	--ah-tint-strong: rgb(255 255 255 / 0.12);
	--ah-shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.5);
	--ah-shadow-raised: 0 2px 4px rgb(0 0 0 / 0.45), 0 18px 48px -20px rgb(0 0 0 / 0.65);

	--ah-header-h: 4rem;

	color-scheme: dark;
}

/* ----------------------------------------------------------------- reset */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Anchor targets clear the sticky header. */
	scroll-padding-top: calc(var(--ah-header-h) + 1rem);
}

body {
	margin: 0;
	background-color: var(--ah-bg);
	color: var(--ah-text);
	font-family: var(--ah-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
}

img,
svg,
video,
canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p, ul, ol, dl, figure, pre, table {
	margin: 0 0 1rem;
}

p {
	text-wrap: pretty;
}

ul, ol {
	padding-inline-start: 1.25rem;
}

a {
	color: var(--ah-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--ah-accent);
}

code, kbd, pre, samp {
	font-family: var(--ah-mono);
	font-size: 0.9em;
}

hr {
	border: 0;
	border-top: 1px solid var(--ah-line);
	margin: 2rem 0;
}

::selection {
	background: var(--ah-accent);
	color: var(--ah-bg);
}

::placeholder {
	color: var(--ah-text-subtle);
	opacity: 1;
}

/* --------------------------------------------------- focus and a11y ------ */

:focus {
	outline: none;
}

:focus-visible {
	outline: var(--ah-ring) solid var(--ah-focus);
	outline-offset: 2px;
	border-radius: var(--ah-radius-sm);
}

/* Programmatically focused regions (skip-link targets) must not draw a ring. */
[tabindex="-1"]:focus {
	outline: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip-path: none;
	white-space: normal;
}

.ah-skip-links {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
}

.ah-skip-link {
	position: absolute;
	left: -10000px;
	top: 0;
	padding: 0.75rem 1.25rem;
	background: var(--ah-accent);
	color: var(--ah-bg);
	font-weight: 650;
	text-decoration: none;
	border-radius: 0 0 var(--ah-radius) 0;
}

.ah-skip-link:focus {
	left: 0;
	color: var(--ah-bg);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------- layout */

.ah-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.ah-shell {
	width: 100%;
	max-width: var(--ah-shell);
	margin-inline: auto;
	padding-inline: var(--ah-gutter);
}

.ah-main {
	display: block;
	padding-block: 2rem 4rem;
}

.ah-shell--home .ah-main {
	padding-block: 1.5rem 4rem;
}

.ah-layout {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 64rem) {
	.ah-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
		align-items: start;
	}
}

.ah-layout__main {
	min-width: 0;
}

.ah-layout__aside {
	min-width: 0;
}

/* ------------------------------------------------------------- typography */

.ah-eyebrow {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--ah-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ah-accent);
}

.ah-prose {
	max-width: var(--ah-measure);
}

.ah-prose--wide,
.ah-prose--legal {
	max-width: 72ch;
}

.ah-prose > * + * {
	margin-top: 1rem;
}

.ah-prose h2 {
	margin-top: 2.5rem;
	font-size: 1.5rem;
}

.ah-prose h3 {
	margin-top: 2rem;
	font-size: 1.25rem;
}

.ah-prose a {
	text-decoration: underline;
}

.ah-prose blockquote {
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--ah-accent);
	color: var(--ah-text-muted);
	font-style: normal;
}

.ah-prose pre {
	padding: 1rem 1.25rem;
	overflow-x: auto;
	background: var(--ah-bg-deep);
	border: 1px solid var(--ah-line);
	border-radius: var(--ah-radius);
	color: var(--ah-text-muted);
}

.ah-prose :not(pre) > code {
	padding: 0.15em 0.4em;
	background: var(--ah-tint-weak);
	border: 1px solid var(--ah-line);
	border-radius: var(--ah-radius-sm);
	color: var(--ah-accent);
}

.ah-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.ah-prose th,
.ah-prose td {
	padding: 0.625rem 0.75rem;
	border-bottom: 1px solid var(--ah-line);
	text-align: left;
	vertical-align: top;
}

.ah-prose th {
	color: var(--ah-text);
	font-weight: 650;
}

.ah-prose td {
	color: var(--ah-text-muted);
}

.ah-prose figcaption {
	color: var(--ah-text-subtle);
	font-size: 0.875rem;
}

/* ----------------------------------------------------------------- icons */

.ah-icon {
	flex: none;
	vertical-align: middle;
}

/* --------------------------------------------------------------- buttons */

.ah-btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--ah-tap);
	padding: 0.625rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--ah-radius);
	background: var(--ah-accent);
	color: var(--ah-bg);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--ah-fast) ease, border-color var(--ah-fast) ease, transform var(--ah-fast) ease;
}

.ah-btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: color-mix(in srgb, var(--ah-accent) 85%, var(--ah-bg));
	color: var(--ah-bg);
}

.ah-btn:active {
	transform: translateY(1px);
}

.ah-btn--secondary {
	background: var(--ah-tint);
	border-color: var(--ah-line-strong);
	color: var(--ah-text);
}

.ah-btn--secondary:hover {
	background: var(--ah-tint-strong);
	border-color: var(--ah-accent);
	color: var(--ah-text);
}

.ah-btn--ghost {
	background: transparent;
	border-color: var(--ah-line-strong);
	color: var(--ah-text);
}

.ah-btn--ghost:hover {
	background: var(--ah-tint-weak);
	border-color: var(--ah-accent);
	color: var(--ah-text);
}

.ah-btn[disabled],
.ah-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* ----------------------------------------------------------------- forms */

.ah-field {
	display: block;
	margin-bottom: 1rem;
}

.ah-field__label,
.ah-form label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--ah-text-muted);
	font-size: 0.875rem;
	font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea,
.ah-field__input {
	width: 100%;
	min-height: var(--ah-tap);
	padding: 0.625rem 0.875rem;
	background: var(--ah-bg-deep);
	border: 1px solid var(--ah-line-strong);
	border-radius: var(--ah-radius);
	color: var(--ah-text);
	font-size: 1rem;
	transition: border-color var(--ah-fast) ease;
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
	border-color: color-mix(in srgb, var(--ah-line-strong) 70%, var(--ah-text));
}

input[aria-invalid="true"],
.ah-field--error input {
	border-color: var(--ah-error);
}

.ah-field__hint {
	margin-top: 0.25rem;
	color: var(--ah-text-subtle);
	font-size: 0.8125rem;
}

/* -------------------------------------------------------- announcement */

.ah-announce {
	border-bottom: 1px solid var(--ah-line);
	background: var(--ah-bg-deep);
	font-size: 0.875rem;
}

.ah-announce__inner {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding-block: 0.625rem;
}

.ah-announce__text {
	margin: 0;
	color: var(--ah-text-muted);
}

.ah-announce--warning .ah-icon {
	color: var(--ah-warn);
}

.ah-announce--info .ah-icon {
	color: var(--ah-link);
}

.ah-announce__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-inline-start: auto;
	flex: none;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.ah-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--ah-bg) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ah-line);
}

.ah-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
	/* The measured whole-header height is for scroll offsets only. Feeding it
	 * back into the bar minimum creates a ResizeObserver growth loop. */
	min-height: 4rem;
	padding-block: 0.625rem;
}

.ah-header__burger {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: var(--ah-tap);
	min-width: var(--ah-tap);
	padding: 0.5rem;
	background: transparent;
	border: 1px solid var(--ah-line-strong);
	border-radius: var(--ah-radius);
	color: var(--ah-text);
	cursor: pointer;
}

.ah-header__burger-label {
	display: none;
}

/* --------------------------------------------------------------- brand */

.ah-brand {
	min-width: 0;
}

.ah-brand__link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.375rem;
	color: var(--ah-text);
	text-decoration: none;
}

.ah-brand__mark {
	font-family: var(--ah-mono);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ah-accent);
}

.ah-brand__name {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ah-brand__tagline {
	display: none;
	margin: 0;
	font-family: var(--ah-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ah-text-subtle);
}

.ah-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-width: 100%;
}

.ah-brand .custom-logo {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
	max-height: none;
}

@media (max-width: 47.99rem) {
	.ah-brand .custom-logo { width: 165px; }
}

/* -------------------------------------------------------------- search */

.ah-search {
	display: none;
	min-width: 0;
}

.ah-search__control {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-inline-start: 0.75rem;
	background: var(--ah-bg-deep);
	border: 1px solid var(--ah-line-strong);
	border-radius: var(--ah-radius-pill);
	transition: border-color var(--ah-fast) ease;
}

.ah-search__control:focus-within {
	border-color: var(--ah-accent);
}

.ah-search__control > .ah-icon {
	color: var(--ah-text-subtle);
}

.ah-search__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.5rem;
	padding: 0.375rem 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.ah-search__input:focus-visible {
	outline: none;
}

.ah-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0.1875rem;
	background: var(--ah-accent);
	border: 0;
	border-radius: var(--ah-radius-pill);
	color: var(--ah-bg);
	cursor: pointer;
}

.ah-search__submit:hover {
	background: color-mix(in srgb, var(--ah-accent) 85%, var(--ah-bg));
}

/* ------------------------------------------------------ header actions */

.ah-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	justify-self: end;
}

.ah-headerlink {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.125rem;
	min-width: var(--ah-tap);
	min-height: var(--ah-tap);
	padding: 0.375rem 0.5rem;
	border-radius: var(--ah-radius);
	color: var(--ah-text);
	font-size: 0.6875rem;
	text-decoration: none;
}

.ah-headerlink:hover {
	background: var(--ah-tint-weak);
	color: var(--ah-text);
}

.ah-headerlink__label {
	display: none;
}

.ah-cart__icon {
	position: relative;
	display: inline-flex;
}

.ah-cart__count {
	position: absolute;
	top: -0.375rem;
	inset-inline-end: -0.5rem;
	min-width: 1.125rem;
	padding: 0 0.25rem;
	background: var(--ah-accent);
	border-radius: var(--ah-radius-pill);
	color: var(--ah-bg);
	font-family: var(--ah-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.125rem;
	text-align: center;
}

/* ------------------------------------------------------- catalog bar */

.ah-catalogbar,
.ah-primarybar {
	display: none;
	border-top: 1px solid var(--ah-line);
}

.ah-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-menu__item {
	position: relative;
}

.ah-menu__item > a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	color: var(--ah-text-muted);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.ah-menu__item > a:hover,
.ah-menu__item > a[aria-current="page"] {
	color: var(--ah-text);
	border-bottom-color: var(--ah-accent);
}

.ah-menu__toggle {
	position: absolute;
	inset-inline-end: -0.25rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	background: transparent;
	border: 0;
	border-radius: var(--ah-radius-sm);
	color: var(--ah-text-subtle);
	cursor: pointer;
}

.ah-menu__item--parent > a {
	padding-inline-end: 1.5rem;
}

.ah-menu__submenu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 40;
	display: none;
	min-width: 13rem;
	margin: 0;
	padding: 0.375rem;
	background: var(--ah-surface);
	border: 1px solid var(--ah-line);
	border-radius: var(--ah-radius);
	box-shadow: var(--ah-shadow-raised);
	list-style: none;
}

/* Hover, keyboard focus (no JS needed) and the scripted toggle all open it. */
.ah-menu__item--parent:hover > .ah-menu__submenu,
.ah-menu__item--parent:focus-within > .ah-menu__submenu,
.ah-menu__toggle[aria-expanded="true"] + .ah-menu__submenu {
	display: block;
}

.ah-menu__submenu .ah-menu__item > a {
	min-height: 2.25rem;
	border-bottom: 0;
	border-radius: var(--ah-radius-sm);
	width: 100%;
}

.ah-menu__submenu .ah-menu__item > a:hover {
	background: var(--ah-tint-weak);
	color: var(--ah-text);
}

/* --------------------------------------------------------------- drawer */

.ah-drawer {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgb(0 0 0 / 0.6);
}

.ah-drawer[hidden] {
	display: none;
}

.ah-drawer__panel {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: min(21rem, 88vw);
	height: 100%;
	padding: 1rem 1.25rem 2rem;
	overflow-y: auto;
	background: var(--ah-bg);
	border-inline-end: 1px solid var(--ah-line);
}

.ah-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--ah-line);
}

.ah-drawer__title {
	font-family: var(--ah-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ah-text-subtle);
}

.ah-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ah-tap);
	height: var(--ah-tap);
	background: transparent;
	border: 1px solid var(--ah-line-strong);
	border-radius: var(--ah-radius);
	color: var(--ah-text);
	cursor: pointer;
}

.ah-drawer__heading {
	margin: 0 0 0.5rem;
	font-family: var(--ah-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ah-accent);
}

.ah-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-drawer__list > li > a,
.ah-drawer__item > a {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-height: var(--ah-tap);
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--ah-line);
	color: var(--ah-text);
	text-decoration: none;
}

.ah-drawer__list > li > a:hover,
.ah-drawer__item > a:hover {
	color: var(--ah-accent);
}

.ah-drawer__item .ah-icon {
	color: var(--ah-text-subtle);
}

.ah-drawer__foot {
	display: grid;
	gap: 0.75rem;
	margin-top: auto;
}

.ah-drawer__account {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ah-text-muted);
	text-decoration: none;
}

/* ---------------------------------------------------------- breadcrumbs */

.ah-breadcrumb {
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
}

.ah-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ah-text-subtle);
}

.ah-breadcrumb__item + .ah-breadcrumb__item::before {
	content: "/";
	margin-inline-end: 0.375rem;
	color: var(--ah-line-strong);
}

.ah-breadcrumb__item a {
	color: var(--ah-text-subtle);
	text-decoration: none;
}

.ah-breadcrumb__item a:hover {
	color: var(--ah-accent);
}

.ah-breadcrumb__item [aria-current="page"] {
	color: var(--ah-text-muted);
}

/* ------------------------------------------------------------ page head */

.ah-pagehead {
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--ah-line);
}

.ah-pagehead__title {
	margin: 0;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
}

.ah-pagehead__intro {
	max-width: var(--ah-measure);
	margin: 0.75rem 0 0;
	color: var(--ah-text-muted);
}

.ah-page__updated,
.ah-article__date,
.ah-card__date {
	margin: 0 0 0.5rem;
	font-family: var(--ah-mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--ah-text-subtle);
}

/* ------------------------------------------------- notices & empty state */

.ah-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin: 0 0 1.5rem;
	padding: 0.875rem 1rem;
	background: var(--ah-bg-deep);
	border: 1px solid var(--ah-line);
	border-inline-start: 3px solid var(--ah-line-strong);
	border-radius: var(--ah-radius);
	color: var(--ah-text-muted);
	font-size: 0.9375rem;
}

.ah-notice--warning {
	border-inline-start-color: var(--ah-warn);
}

.ah-notice--warning .ah-icon {
	color: var(--ah-warn);
}

.ah-empty {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: 2.5rem 1.5rem;
	background: var(--ah-bg-deep);
	border: 1px dashed var(--ah-line-strong);
	border-radius: var(--ah-radius-lg);
	text-align: center;
}

.ah-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 0.25rem;
	background: var(--ah-tint-weak);
	border-radius: var(--ah-radius-pill);
	color: var(--ah-accent);
}

.ah-empty__title {
	margin: 0;
	font-size: 1.125rem;
}

.ah-empty__body {
	max-width: 46ch;
	margin: 0;
	color: var(--ah-text-muted);
	font-size: 0.9375rem;
}

.ah-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.625rem;
	margin-top: 0.75rem;
}

/* ---------------------------------------------------------------- chips */

.ah-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.875rem;
	background: var(--ah-tint-weak);
	border: 1px solid var(--ah-line);
	border-radius: var(--ah-radius-pill);
	color: var(--ah-text-muted);
	font-size: 0.875rem;
	text-decoration: none;
}

.ah-chip:hover {
	border-color: var(--ah-accent);
	color: var(--ah-text);
}

.ah-suggest {
	margin-top: 2.5rem;
}

.ah-suggest__title,
.ah-searchagain__title {
	font-size: 1.0625rem;
}

.ah-suggest__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-searchagain {
	max-width: 32rem;
	margin-top: 2.5rem;
}

/* The search part is hidden in the header on small screens; not here. */
.ah-searchagain .ah-search {
	display: block;
}

/* ------------------------------------------------------------ pagination */

.pagination,
.woocommerce-pagination,
.ah-pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links,
.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--ah-tap);
	min-height: var(--ah-tap);
	padding: 0 0.75rem;
	background: var(--ah-tint-weak);
	border: 1px solid var(--ah-line);
	border-radius: var(--ah-radius);
	color: var(--ah-text-muted);
	text-decoration: none;
}

.page-numbers:hover {
	border-color: var(--ah-accent);
	color: var(--ah-text);
}

.page-numbers.current {
	background: var(--ah-accent);
	border-color: var(--ah-accent);
	color: var(--ah-bg);
	font-weight: 650;
}

.woocommerce-pagination ul.page-numbers li {
	border: 0;
	margin: 0;
}

/* --------------------------------------------------------------- widgets */

.ah-widget {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	background: var(--ah-bg-deep);
	border: 1px solid var(--ah-line);
	border-radius: var(--ah-radius-lg);
}

.ah-widget__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.ah-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-widget li + li {
	margin-top: 0.5rem;
}

/* -------------------------------------------------------------- comments */

.ah-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ah-line);
}

.ah-comments__list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.ah-comments__list ol {
	list-style: none;
	padding-inline-start: 1.5rem;
}

.ah-comments__list .comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--ah-line);
}

.comment-notes,
.ah-comments__closed {
	color: var(--ah-text-subtle);
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------- footer */

.ah-footer {
	margin-top: auto;
	padding-block: 3rem 2rem;
	background: var(--ah-bg-deep);
	border-top: 1px solid var(--ah-line);
	font-size: 0.9375rem;
}

.ah-footer__extra {
	margin-bottom: 2rem;
}

.ah-footer__grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 48rem) {
	.ah-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.ah-footer__grid {
		grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
		gap: 2.5rem;
	}
}

.ah-footer__about {
	max-width: 42ch;
	margin: 0.75rem 0 1rem;
	color: var(--ah-text-subtle);
}

.ah-footer__feed {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--ah-text-muted);
	text-decoration: none;
	font-size: 0.875rem;
}

.ah-footer__heading {
	margin: 0 0 0.75rem;
	font-family: var(--ah-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ah-text-subtle);
}

.ah-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-footer__list li + li {
	margin-top: 0.5rem;
}

.ah-footer__list a {
	color: var(--ah-text-muted);
	text-decoration: none;
}

.ah-footer__list a:hover {
	color: var(--ah-accent);
}

.ah-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ah-line);
	color: var(--ah-text-subtle);
	font-size: 0.8125rem;
}

.ah-footer__copy,
.ah-footer__pending {
	margin: 0;
}

.ah-footer__legallist {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-footer__legallist a {
	color: var(--ah-text-subtle);
	text-decoration: none;
}

.ah-footer__legallist a:hover {
	color: var(--ah-accent);
}

/* ----------------------------------------------- responsive escalation */

@media (min-width: 40rem) {
	.ah-brand__tagline {
		display: block;
	}

	.ah-headerlink__label {
		display: block;
	}

	.ah-headerlink {
		padding-inline: 0.625rem;
	}
}

@media (min-width: 48rem) {
	.ah-search {
		display: block;
	}

	.ah-header__bar {
		grid-template-columns: auto minmax(10rem, 1fr) auto;
		gap: 1.25rem;
	}
}

@media (min-width: 64rem) {
	.ah-header__bar {
		grid-template-columns: auto minmax(14rem, 1fr) auto;
	}

	.ah-header__burger {
		display: none;
	}

	.ah-catalogbar,
	.ah-primarybar {
		display: block;
	}

	.ah-drawer {
		display: none !important;
	}
}

@media print {
	.ah-header,
	.ah-announce,
	.ah-drawer,
	.ah-footer__grid,
	.ah-search {
		display: none !important;
	}

	body {
		background: #ffffff;
		color: #000000;
	}
}
