/* ==========================================================================
   Acrylic Painting for Beginners — main stylesheet
   Design system: tokens, typography, components, layouts, utilities.
   No external dependencies. No remote fonts. No image files. Mobile-first.

   Look: an artist's studio. Gessoed canvas for the page, charcoal panels,
   ultramarine as the working color and one pigment per category. Texture is
   drawn with CSS gradients and inline SVG only: a canvas weave with a little
   tooth on the page, hand-drawn brush strokes used as masks (underlines,
   dividers, ragged paint edges) and ridged "impasto" bands of thick paint.

   Contrast reference (WCAG AA, relative luminance, computed):
     ink         #23222b on canvas #f7f3ea ......... 14.2:1
     ink-soft    #3d3b47 on canvas ................. 9.9:1
     ink-muted   #5d5a66 on canvas / paper ......... 6.1:1 / 6.6:1
     primary     #2b46b3 on canvas / paper ......... 7.2:1 / 7.8:1
     paper       #fffdf8 on primary #2b46b3 ........ 7.9:1
     paper       #fffdf8 on primary-deep #1d2f80 ... 11.6:1
     paper       #fffdf8 on charcoal #23222b ....... 15.5:1
     ink         #23222b on yellow #f0b429 ......... 8.5:1
     accent-deep #b5341d on canvas / accent-soft ... 5.5:1 / 5.2:1
     teal-deep   #0e6661 on canvas / teal-soft ..... 6.1:1 / 5.7:1
     footer text #cfcbd8 on charcoal ............... 9.9:1
   Category text colors (--apb-cat-ink) are all 5.3:1 or better on canvas.
   The bright pigments (--apb-cat) are used for decoration only, never text.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Color — grounds */
	--apb-canvas: #f7f3ea;
	--apb-canvas-deep: #efe8d8;
	--apb-paper: #fffdf8;
	--apb-charcoal: #23222b;
	--apb-charcoal-soft: #33313d;

	/* Color — text */
	--apb-ink: #23222b;
	--apb-ink-soft: #3d3b47;
	--apb-ink-muted: #5d5a66;
	--apb-line: #e3dccb;
	--apb-line-strong: #8f8a7a;

	/* Color — pigments */
	--apb-primary: #2b46b3;
	--apb-primary-deep: #1d2f80;
	--apb-primary-soft: #e6eaf8;
	--apb-accent: #e0492f;
	--apb-accent-deep: #b5341d;
	--apb-accent-soft: #fdebe5;
	--apb-yellow: #f0b429;
	--apb-yellow-deep: #8a5a00;
	--apb-yellow-soft: #fdf3d7;
	--apb-teal: #13827c;
	--apb-teal-deep: #0e6661;
	--apb-teal-soft: #e0f1ef;
	--apb-magenta: #c2357a;
	--apb-green: #5e8c3a;
	--apb-sienna: #a8502a;
	--apb-violet: #6b3fa0;
	--apb-focus: #2b46b3;

	/* Category accent — overridden per category in section 2. --apb-cat is
	   the pigment (decoration), --apb-cat-ink its text-safe version and
	   --apb-cat-soft a pale tint for chips. */
	--apb-cat: var(--apb-primary);
	--apb-cat-ink: var(--apb-primary);
	--apb-cat-soft: var(--apb-primary-soft);

	/* Texture — canvas weave (two sets of threads) for light and dark grounds */
	--apb-weave:
		repeating-linear-gradient(0deg, rgba(35, 34, 43, 0.04) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(35, 34, 43, 0.04) 0 1px, transparent 1px 3px);
	--apb-weave-dark:
		repeating-linear-gradient(0deg, rgba(255, 253, 248, 0.05) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(255, 253, 248, 0.05) 0 1px, transparent 1px 3px);

	/* Texture — the tooth of a gessoed surface (inline SVG noise) */
	--apb-tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .13 0 0 0 0 .17 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");

	/* Texture — ridges of thick paint, laid over any pigment */
	--apb-impasto: repeating-linear-gradient(
		100deg,
		rgba(255, 255, 255, 0.28) 0 2px,
		rgba(255, 255, 255, 0) 2px 7px,
		rgba(0, 0, 0, 0.16) 7px 9px,
		rgba(0, 0, 0, 0) 9px 15px
	);

	/* Texture — the eight pigments side by side, like a swatch strip */
	--apb-pigments: linear-gradient(
		90deg,
		#2b46b3 0 12.5%,
		#e0492f 0 25%,
		#13827c 0 37.5%,
		#c2357a 0 50%,
		#5e8c3a 0 62.5%,
		#f0b429 0 75%,
		#a8502a 0 87.5%,
		#6b3fa0 0
	);

	/* Masks — hand-drawn shapes; the color comes from the element's background.
	   stroke: one loaded brush stroke. edge: ragged paint edge, filled below.
	   band: flat on top, ragged underneath. */
	--apb-mask-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 9C1 5 6 3 14 4c20-3 44-2 66-1 28-2 60-3 88 0 12 0 26 1 29 5 2 3-3 5-9 6 5 1 2 4-6 4-26 2-58 1-86 2-30 1-62 2-88-1C5 18 1 15 3 12 0 11 1 10 2 9z'/%3E%3C/svg%3E");
	--apb-mask-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V11c8-3 14 2 22-1 9-4 15-6 26-2 8 3 13-3 22-4 10-1 16 5 26 3 9-2 14-6 24-3 9 3 15 4 24 1 10-3 17-5 27-1 8 3 14 0 22-2 9-2 15 3 23 4 9 1 16-3 24 5v9z'/%3E%3C/svg%3E");
	--apb-mask-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v9c-9 3-15-1-24 1-10 2-16 4-26 2-8-2-14-4-23-2-9 3-15 3-24 1-10-2-17-1-26 1-9 2-15 0-24-2-9-2-16 2-25 3-10 1-16-3-25-3-9 0-15 3-23 2-7-1-13-3-20-3z'/%3E%3C/svg%3E");

	/* Shape — a dab of paint and a hand-cut button */
	--apb-blob: 58% 42% 55% 45% / 48% 60% 40% 52%;
	--apb-radius-painted: 14px 6px 12px 7px / 7px 12px 6px 14px;

	/* Typography — system stacks, nothing to download */
	--apb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--apb-font-head: "Avenir Next", "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--apb-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--apb-text-xs: 0.8125rem;
	--apb-text-sm: 0.875rem;
	--apb-text-base: 1rem;
	--apb-text-md: 1.0625rem;
	--apb-text-lg: 1.1875rem;
	--apb-text-xl: 1.375rem;
	--apb-text-2xl: 1.75rem;
	--apb-text-3xl: 2.125rem;
	--apb-text-4xl: 2.75rem;

	--apb-leading-tight: 1.15;
	--apb-leading-snug: 1.35;
	--apb-leading-normal: 1.65;
	--apb-leading-relaxed: 1.75;

	/* Spacing — 4px scale */
	--apb-s1: 0.25rem;
	--apb-s2: 0.5rem;
	--apb-s3: 0.75rem;
	--apb-s4: 1rem;
	--apb-s5: 1.5rem;
	--apb-s6: 2rem;
	--apb-s7: 2.5rem;
	--apb-s8: 3rem;
	--apb-s9: 4rem;
	--apb-s10: 5rem;

	/* Shape and shadow */
	--apb-radius-sm: 5px;
	--apb-radius: 10px;
	--apb-radius-lg: 18px;
	--apb-shadow-sm: 0 1px 2px rgba(35, 34, 43, 0.08);
	--apb-shadow: 0 8px 20px rgba(35, 34, 43, 0.12);
	--apb-shadow-lg: 0 16px 36px rgba(35, 34, 43, 0.18);

	/* Layout */
	--apb-container: 1180px;
	--apb-container-narrow: 780px;
	--apb-measure: 68ch;
	--apb-gutter: var(--apb-s4);

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--apb-gutter: var(--apb-s6);
	}
}

/* --------------------------------------------------------------------------
   2. Category pigments
   The `category-{slug}` classes come from WordPress (post_class on cards and
   articles, body_class on category archives); `apb-cat--{slug}` is added by
   apb_accent_class() where WordPress prints no class of its own.
   -------------------------------------------------------------------------- */

.category-acrylic-painting-for-beginners,
.apb-cat--acrylic-painting-for-beginners {
	--apb-cat: #2b46b3;
	--apb-cat-ink: #2b46b3;
	--apb-cat-soft: #e6eaf8;
}

.category-easy-acrylic-paintings,
.apb-cat--easy-acrylic-paintings {
	--apb-cat: #e0492f;
	--apb-cat-ink: #b5341d;
	--apb-cat-soft: #fdebe5;
}

.category-acrylic-techniques,
.apb-cat--acrylic-techniques {
	--apb-cat: #13827c;
	--apb-cat-ink: #0e6661;
	--apb-cat-soft: #e0f1ef;
}

.category-acrylic-flowers,
.apb-cat--acrylic-flowers {
	--apb-cat: #c2357a;
	--apb-cat-ink: #a82867;
	--apb-cat-soft: #fae6f0;
}

.category-acrylic-landscapes,
.apb-cat--acrylic-landscapes {
	--apb-cat: #5e8c3a;
	--apb-cat-ink: #456b27;
	--apb-cat-soft: #eaf2e1;
}

.category-color-mixing,
.apb-cat--color-mixing {
	--apb-cat: #f0b429;
	--apb-cat-ink: #8a5a00;
	--apb-cat-soft: #fdf3d7;
}

.category-painting-supplies,
.apb-cat--painting-supplies {
	--apb-cat: #a8502a;
	--apb-cat-ink: #8f4220;
	--apb-cat-soft: #f6e8de;
}

.category-painting-practice,
.apb-cat--painting-practice {
	--apb-cat: #6b3fa0;
	--apb-cat-ink: #6b3fa0;
	--apb-cat-soft: #efe7f7;
}

/* --------------------------------------------------------------------------
   3. Light reset
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1.5rem;
}

@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;
	}

	.apb-card:hover,
	.apb-topic:hover,
	.apb-button:hover,
	.apb-button:active,
	button:hover,
	button:active {
		transform: none !important;
	}
}

body {
	margin: 0;
	background-color: var(--apb-canvas);
	background-image: var(--apb-tooth), var(--apb-weave);
	color: var(--apb-ink);
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-md);
	line-height: var(--apb-leading-normal);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

figure {
	margin: 0;
}

/* Divider: one dry brush stroke across the column. */
hr {
	border: 0;
	height: 0.7rem;
	margin: var(--apb-s7) 0;
	background-color: var(--apb-line-strong);
	background-image: var(--apb-impasto);
	opacity: 0.55;
	-webkit-mask: var(--apb-mask-stroke) center / 100% 100% no-repeat;
	mask: var(--apb-mask-stroke) center / 100% 100% no-repeat;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--apb-font-head);
	color: var(--apb-ink);
	line-height: var(--apb-leading-tight);
	margin: 0 0 var(--apb-s4);
	font-weight: 800;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(2rem, 1.4rem + 2.6vw, var(--apb-text-4xl));
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, var(--apb-text-3xl));
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, var(--apb-text-xl));
	font-weight: 700;
}

h4 {
	font-size: var(--apb-text-lg);
	font-weight: 700;
}

h5,
h6 {
	font-size: var(--apb-text-base);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--apb-ink-soft);
}

p {
	margin: 0 0 var(--apb-s4);
}

a {
	color: var(--apb-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--apb-primary-deep);
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: var(--apb-text-sm);
}

/* A swipe of yellow paint behind the words. */
mark {
	background: linear-gradient(180deg, transparent 12%, #f7d679 12% 88%, transparent 88%);
	color: var(--apb-ink);
	padding: 0 0.2em;
}

code,
kbd,
samp {
	font-family: var(--apb-font-mono);
	font-size: 0.9em;
	background: var(--apb-canvas-deep);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius-sm);
	padding: 0.1em 0.35em;
}

pre {
	font-family: var(--apb-font-mono);
	font-size: var(--apb-text-sm);
	background: var(--apb-canvas-deep);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	padding: var(--apb-s4);
	overflow-x: auto;
	line-height: 1.5;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

blockquote {
	position: relative;
	margin: var(--apb-s6) 0;
	padding: var(--apb-s2) 0 var(--apb-s2) var(--apb-s6);
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-lg);
	color: var(--apb-ink-soft);
}

/* A vertical stroke of paint instead of a ruled border. */
blockquote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0.6rem;
	border-radius: 6px 3px 7px 4px / 14px 8px 16px 10px;
	background-color: var(--apb-accent);
	background-image: var(--apb-impasto);
}

blockquote p:last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: var(--apb-s2);
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-sm);
	font-style: normal;
	color: var(--apb-ink-muted);
}

/* --------------------------------------------------------------------------
   5. Accessibility
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--apb-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

/* On the dark panels the ring switches to yellow. */
.apb-hero :focus-visible,
.apb-cta :focus-visible,
.apb-site-footer :focus-visible {
	outline-color: var(--apb-yellow);
}

/* The main landmark only receives focus from the skip link. */
.apb-site-main:focus {
	outline: 0;
}

.screen-reader-text {
	border: 0;
	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(--apb-charcoal);
	border-radius: var(--apb-radius-sm);
	box-shadow: var(--apb-shadow);
	clip-path: none;
	color: var(--apb-paper);
	display: block;
	font-size: var(--apb-text-base);
	font-weight: 700;
	height: auto;
	left: var(--apb-s4);
	line-height: normal;
	outline-color: var(--apb-yellow);
	padding: var(--apb-s3) var(--apb-s4);
	text-decoration: none;
	top: var(--apb-s4);
	width: auto;
	z-index: 100000;
}

.apb-skip-link:focus {
	position: fixed;
}

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */

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

.apb-container--narrow {
	max-width: var(--apb-container-narrow);
}

.apb-site-main {
	flex: 1 0 auto;
	padding-block: var(--apb-s7) var(--apb-s10);
}

/* Used on the homepage, where the hero sits flush against the header. */
.apb-site-main--flush {
	padding-top: 0;
}

/* minmax(0, 1fr) lets the column shrink below the intrinsic width of wide
   children (tables, long words) so they scroll inside it instead of pushing
   the page sideways. */
.apb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s7);
}

.apb-layout > * {
	min-width: 0;
}

@media (min-width: 62em) {
	.apb-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: var(--apb-s8);
		align-items: start;
	}
}

.apb-stack > * + * {
	margin-top: var(--apb-s4);
}

.apb-section {
	margin-block: var(--apb-s9);
}

.apb-section:first-child {
	margin-top: var(--apb-s8);
}

.apb-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--apb-s2) var(--apb-s4);
	margin-bottom: var(--apb-s6);
}

.apb-section__title {
	position: relative;
	margin: 0;
	padding-bottom: var(--apb-s4);
	font-size: clamp(1.5rem, 1.25rem + 1.1vw, var(--apb-text-2xl));
	min-width: 0;
}

/* Painted underlines: one brush stroke in the pigment of the section,
   category or article it belongs to. */
.apb-section__title::after,
.apb-content h2::after,
.apb-faq > h2::after,
.apb-archive-header__title::after,
.apb-page__title::after,
.apb-comments__title::after,
.apb-error-404__code::after {
	content: "";
	display: block;
	width: 5.5rem;
	max-width: 100%;
	height: 0.6rem;
	margin-top: var(--apb-s3);
	background-color: var(--apb-cat);
	background-image: var(--apb-impasto);
	-webkit-mask: var(--apb-mask-stroke) center / 100% 100% no-repeat;
	mask: var(--apb-mask-stroke) center / 100% 100% no-repeat;
}

.apb-section__title::after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 6.5rem;
	margin-top: 0;
}

/* The two sections that belong to no category get pigments of their own. */
.apb-section--start_here .apb-section__title::after {
	background-color: var(--apb-accent);
}

.apb-section--recent .apb-section__title::after,
.apb-related .apb-section__title::after {
	background-color: var(--apb-teal);
}

/* Always on its own line under the title and the "View all" link. */
.apb-section__description {
	flex: 0 0 100%;
	order: 3;
	margin: var(--apb-s2) 0 0;
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-base);
	max-width: var(--apb-measure);
}

.apb-section__link {
	color: var(--apb-cat-ink);
	font-size: var(--apb-text-sm);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	padding-bottom: var(--apb-s4);
}

.apb-section__link:hover,
.apb-section__link:focus {
	color: var(--apb-ink);
	text-decoration: underline;
}

.apb-section__link::after {
	content: " \2192";
}

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */

.apb-site-header {
	position: relative;
	z-index: 50;
	background-color: var(--apb-paper);
	background-image: var(--apb-weave);
}

/* Swatch strip along the bottom of the header: the eight pigments. */
.apb-site-header::after {
	content: "";
	display: block;
	height: 7px;
	background-image: var(--apb-impasto), var(--apb-pigments);
}

.apb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apb-s4);
	min-height: 4.5rem;
	min-width: 0;
}

.apb-branding {
	display: flex;
	align-items: center;
	gap: var(--apb-s3);
	min-width: 0;
}

.apb-branding__mark {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
}

.apb-branding__text {
	min-width: 0;
}

.apb-branding__title {
	font-family: var(--apb-font-head);
	font-size: clamp(1.0625rem, 0.9rem + 0.9vw, var(--apb-text-xl));
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.02em;
}

.apb-branding__title a {
	color: var(--apb-ink);
	text-decoration: none;
}

.apb-branding__title a:hover {
	color: var(--apb-primary);
}

.apb-branding__tagline {
	margin: 0.2rem 0 0;
	font-size: var(--apb-text-xs);
	color: var(--apb-ink-muted);
	line-height: 1.3;
}

/* On the narrowest phones the tagline would wrap under the menu button. */
@media (max-width: 29.99em) {
	.apb-branding__tagline {
		display: none;
	}
}

.custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

/* Mobile menu button */
.apb-menu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: var(--apb-s2);
	background: var(--apb-charcoal);
	border: 2px solid var(--apb-charcoal);
	border-radius: var(--apb-radius-painted);
	box-shadow: none;
	color: var(--apb-paper);
	cursor: pointer;
	font: inherit;
	font-size: var(--apb-text-sm);
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--apb-s2) var(--apb-s3);
}

.apb-menu-toggle:hover,
.apb-menu-toggle:focus {
	background: var(--apb-primary);
	border-color: var(--apb-primary);
	box-shadow: none;
	color: var(--apb-paper);
	transform: none;
}

.apb-menu-toggle[aria-expanded="true"] {
	background: var(--apb-primary);
	border-color: var(--apb-primary);
}

.apb-menu-toggle__bars {
	display: block;
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
}

.apb-menu-toggle__bars::before,
.apb-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.apb-menu-toggle__bars::before {
	top: -6px;
}

.apb-menu-toggle__bars::after {
	top: 6px;
}

.apb-header__panel {
	display: none;
	padding-bottom: var(--apb-s5);
}

.apb-header__panel.is-open {
	display: block;
}

.apb-nav__list,
.apb-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apb-nav__list li {
	position: relative;
}

.apb-nav__list a {
	display: block;
	padding: var(--apb-s3) var(--apb-s2);
	border-bottom: 1px solid var(--apb-line);
	color: var(--apb-ink);
	font-size: var(--apb-text-base);
	font-weight: 700;
	text-decoration: none;
}

.apb-nav__list a:hover {
	color: var(--apb-primary);
}

.apb-nav__list .sub-menu a {
	padding-left: var(--apb-s5);
	font-weight: 500;
}

.apb-nav .current-menu-item > a,
.apb-nav .current-menu-ancestor > a,
.apb-nav .current_page_item > a {
	color: var(--apb-primary);
	box-shadow: inset 4px 0 0 var(--apb-accent);
	padding-left: var(--apb-s4);
}

.apb-header__search {
	margin-top: var(--apb-s4);
}

/* Shown only to users who can edit menus, when no menu is assigned to the
   primary location. Visitors never see this block. */
.apb-nav--empty {
	margin: 0;
	padding: var(--apb-s3) 0;
	font-size: var(--apb-text-sm);
}

@media (min-width: 62em) {
	.apb-menu-toggle {
		display: none;
	}

	/* Two rows: brand and search on the first, the full menu on the second.
	   Eight menu items fit on one line from about 1000px up; if a longer menu
	   is assigned, the list wraps instead of overflowing the page. */
	.apb-site-header .apb-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: var(--apb-s5);
	}

	.apb-header__inner {
		flex: 1 1 0;
		min-height: 5rem;
	}

	/* The panel wrapper dissolves so that its two children (menu and search)
	   can be placed independently in the header's flex layout. */
	.apb-header__panel,
	.apb-header__panel.is-open {
		display: contents;
	}

	.apb-header__search {
		order: 2;
		flex: 0 1 16rem;
		min-width: 11rem;
		margin-top: 0;
	}

	.apb-nav {
		order: 3;
		flex: 1 0 100%;
		min-width: 0;
		border-top: 1px solid var(--apb-line);
		padding-block: var(--apb-s2);
	}

	.apb-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--apb-s1);
		margin-inline: calc(-1 * var(--apb-s3));
	}

	.apb-nav__list a {
		border-bottom: 0;
		border-radius: var(--apb-radius-painted);
		padding: var(--apb-s2) var(--apb-s3);
		font-size: var(--apb-text-sm);
		white-space: nowrap;
	}

	.apb-nav__list a:hover {
		background: var(--apb-primary-soft);
		color: var(--apb-primary-deep);
	}

	/* The current item is painted in: a solid dab of ultramarine. */
	.apb-nav .current-menu-item > a,
	.apb-nav .current-menu-ancestor > a,
	.apb-nav .current_page_item > a {
		background: var(--apb-primary);
		color: var(--apb-paper);
		box-shadow: none;
		padding-left: var(--apb-s3);
	}

	/* Submenus (one level) */
	.apb-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 13rem;
		background: var(--apb-paper);
		border: 1px solid var(--apb-line);
		border-radius: var(--apb-radius);
		box-shadow: var(--apb-shadow-lg);
		padding: var(--apb-s2);
		z-index: 60;
	}

	.apb-nav__list li:hover > .sub-menu,
	.apb-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.apb-nav__list .sub-menu a {
		padding-left: var(--apb-s3);
		white-space: normal;
	}
}

@media (min-width: 75em) {
	.apb-nav__list a {
		font-size: 0.9375rem;
		padding-inline: var(--apb-s4);
	}

	.apb-nav .current-menu-item > a,
	.apb-nav .current-menu-ancestor > a,
	.apb-nav .current_page_item > a {
		padding-left: var(--apb-s4);
	}

	.apb-nav__list {
		margin-inline: calc(-1 * var(--apb-s4));
	}
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */

label {
	display: block;
	font-size: var(--apb-text-sm);
	font-weight: 700;
	margin-bottom: var(--apb-s2);
}

.apb-field {
	margin-bottom: var(--apb-s5);
}

.apb-field__hint {
	display: block;
	margin-top: var(--apb-s2);
	font-size: var(--apb-text-xs);
	font-weight: 400;
	color: var(--apb-ink-muted);
}

.apb-required {
	color: var(--apb-accent-deep);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--apb-paper);
	border: 2px solid var(--apb-line-strong);
	border-radius: var(--apb-radius-sm);
	color: var(--apb-ink);
	font: inherit;
	font-size: var(--apb-text-base);
	padding: var(--apb-s3);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--apb-primary);
}

textarea {
	min-height: 11rem;
	resize: vertical;
	line-height: var(--apb-leading-normal);
}

input::placeholder,
textarea::placeholder {
	color: var(--apb-ink-muted);
	opacity: 1;
}

/* Search field */
.apb-search-form {
	display: flex;
	gap: var(--apb-s2);
}

.apb-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.apb-search-form input[type="search"] {
	min-height: 2.75rem;
	padding-block: var(--apb-s2);
}

.apb-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	background: var(--apb-primary);
	border: 2px solid var(--apb-primary);
	border-radius: var(--apb-radius-painted);
	box-shadow: none;
	color: var(--apb-paper);
	cursor: pointer;
	padding: 0 var(--apb-s3);
}

.apb-search-form__submit:hover,
.apb-search-form__submit:focus {
	background: var(--apb-primary-deep);
	border-color: var(--apb-primary-deep);
	box-shadow: none;
	color: var(--apb-paper);
	transform: none;
}

.apb-search-form__submit .apb-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* --------------------------------------------------------------------------
   9. Buttons — a hand-cut, slightly irregular painted shape with a hard
   shadow, like a swatch lifted off the palette.
   -------------------------------------------------------------------------- */

.apb-button,
.apb-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--apb-s2);
	background: var(--apb-primary);
	border: 2px solid var(--apb-primary);
	border-radius: var(--apb-radius-painted);
	box-shadow: 0 4px 0 var(--apb-primary-deep);
	color: var(--apb-paper);
	cursor: pointer;
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-base);
	font-weight: 800;
	line-height: 1.3;
	min-height: 3rem;
	padding: var(--apb-s3) var(--apb-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.apb-button:hover,
.apb-button:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background: var(--apb-primary-deep);
	border-color: var(--apb-primary-deep);
	box-shadow: 0 2px 0 #131f57;
	color: var(--apb-paper);
	transform: translateY(2px);
}

.apb-button--secondary {
	background: var(--apb-paper);
	border-color: var(--apb-ink);
	box-shadow: 0 4px 0 var(--apb-ink);
	color: var(--apb-ink);
}

.apb-button--secondary:hover,
.apb-button--secondary:focus {
	background: var(--apb-yellow-soft);
	border-color: var(--apb-ink);
	box-shadow: 0 2px 0 var(--apb-ink);
	color: var(--apb-ink);
}

.apb-button--small {
	font-size: var(--apb-text-sm);
	min-height: 0;
	padding: var(--apb-s2) var(--apb-s4);
}

.apb-button[disabled],
button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* --------------------------------------------------------------------------
   10. Labels, categories, metadata
   -------------------------------------------------------------------------- */

/* Category label with a dab of the category's pigment in front. */
.apb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--apb-s2);
	align-self: flex-start;
	max-width: 100%;
	font-size: var(--apb-text-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apb-cat-ink);
	text-decoration: none;
	margin-bottom: var(--apb-s2);
}

.apb-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: var(--apb-blob);
	background-color: var(--apb-cat);
	background-image: var(--apb-impasto);
}

a.apb-eyebrow:hover,
a.apb-eyebrow:focus {
	color: var(--apb-ink);
	text-decoration: underline;
}

.apb-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--apb-s1);
	background: var(--apb-cat-soft);
	border: 2px solid var(--apb-cat);
	border-radius: var(--apb-radius-painted);
	color: var(--apb-cat-ink);
	font-size: var(--apb-text-sm);
	font-weight: 700;
	padding: 0.3rem 0.85rem;
	text-decoration: none;
}

a.apb-chip:hover,
a.apb-chip:focus {
	background: var(--apb-paper);
	border-color: var(--apb-ink);
	color: var(--apb-ink);
}

.apb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apb-s2) var(--apb-s4);
	color: var(--apb-ink-muted);
	font-size: var(--apb-text-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.apb-meta > li {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apb-s2) var(--apb-s4);
}

.apb-meta__item {
	display: inline-flex;
	align-items: center;
	gap: var(--apb-s2);
}

.apb-meta a {
	color: inherit;
}

.apb-meta svg {
	flex: 0 0 auto;
	color: var(--apb-cat-ink);
}

.apb-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   11. Cards and grids
   -------------------------------------------------------------------------- */

.apb-grid {
	display: grid;
	gap: var(--apb-s5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 36em) {
	.apb-grid--2,
	.apb-grid--3,
	.apb-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.apb-grid {
		gap: var(--apb-s6);
	}

	.apb-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.apb-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--apb-s5);
	}
}

/* Impasto band: a thick, ridged strip of the category's pigment along the
   top of a panel, with a ragged lower edge that runs over what is below. */
.apb-card::before,
.apb-topic::before,
.apb-widget::before,
.apb-form::before,
.apb-tutorial-facts::before,
.apb-archive-header::before,
.apb-no-results::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
	height: 15px;
	border-radius: var(--apb-radius) var(--apb-radius) 0 0;
	background-color: var(--apb-cat);
	background-image: var(--apb-impasto);
	-webkit-mask: var(--apb-mask-band) left top / 240px 100% repeat-x;
	mask: var(--apb-mask-band) left top / 240px 100% repeat-x;
	pointer-events: none;
}

.apb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	box-shadow: var(--apb-shadow-sm);
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.apb-card:hover {
	border-color: var(--apb-cat);
	box-shadow: var(--apb-shadow);
	transform: translateY(-4px);
}

.apb-card__media {
	display: block;
	background: var(--apb-canvas-deep);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.apb-card__media img,
.apb-card-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Posts without a featured image get a panel of thick paint in the
   category's pigment. */
.apb-card__media--placeholder,
.apb-card-row__media--placeholder {
	background-color: var(--apb-cat);
	background-image:
		var(--apb-impasto),
		linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.18));
}

.apb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--apb-s2);
	min-width: 0;
	padding: var(--apb-s5);
}

.apb-grid--4 .apb-card__body {
	padding: var(--apb-s4);
}

.apb-card__title {
	font-size: var(--apb-text-lg);
	font-weight: 800;
	line-height: var(--apb-leading-snug);
	margin: 0;
}

.apb-grid--4 .apb-card__title {
	font-size: var(--apb-text-md);
}

.apb-card__title a,
.apb-card-row__title a,
.apb-steps__title a {
	color: var(--apb-ink);
	text-decoration: none;
}

.apb-card__title a:hover,
.apb-card-row__title a:hover,
.apb-steps__title a:hover,
.apb-card__title a:focus,
.apb-card-row__title a:focus,
.apb-steps__title a:focus {
	color: var(--apb-cat-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.apb-card__excerpt {
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-sm);
	line-height: var(--apb-leading-normal);
	margin: 0;
}

.apb-card__footer {
	margin-top: auto;
	padding-top: var(--apb-s3);
	border-top: 1px solid var(--apb-line);
}

/* Horizontal card (lists and search results) */
.apb-card-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s4);
	padding-bottom: var(--apb-s5);
	border-bottom: 1px solid var(--apb-line);
}

.apb-card-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (min-width: 36em) {
	.apb-card-row {
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: var(--apb-s5);
		align-items: start;
	}
}

/* The thumbnail sits on a thick offset block of the category's pigment. */
.apb-card-row__media {
	display: block;
	background: var(--apb-canvas-deep);
	border: 4px solid var(--apb-paper);
	border-radius: var(--apb-radius-sm);
	box-shadow: 6px 6px 0 var(--apb-cat), 0 0 0 1px var(--apb-line);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: 0 6px 6px 0;
}

/* min-width: 0 keeps long titles from blowing out the grid column. */
.apb-card-row__body {
	min-width: 0;
}

.apb-card-row__title {
	font-size: var(--apb-text-xl);
	margin: var(--apb-s1) 0 var(--apb-s2);
}

.apb-card-row__excerpt {
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-base);
	margin: 0 0 var(--apb-s3);
}

.apb-card-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s5);
}

/* Numbered path (Start Here): each number is a dab of paint. */
.apb-steps {
	list-style: none;
	counter-reset: apb-step;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s4);
	margin: 0;
	padding: 0;
}

@media (min-width: 48em) {
	.apb-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--apb-s5);
	}
}

.apb-steps > li {
	counter-increment: apb-step;
	position: relative;
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: var(--apb-s4);
	align-items: start;
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	box-shadow: -7px 0 0 var(--apb-cat);
	margin-left: 7px;
	padding: var(--apb-s5);
}

.apb-steps > li::before {
	content: counter(apb-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	background-color: var(--apb-cat-ink);
	background-image: var(--apb-impasto);
	border-radius: var(--apb-blob);
	color: var(--apb-paper);
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-xl);
	font-weight: 800;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.apb-steps__title {
	font-size: var(--apb-text-lg);
	font-weight: 800;
	line-height: var(--apb-leading-snug);
	margin: 0 0 var(--apb-s2);
}

.apb-steps p {
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-sm);
	margin: 0;
}

/* --------------------------------------------------------------------------
   12. Homepage — hero and sections
   -------------------------------------------------------------------------- */

/* A charcoal studio wall. */
.apb-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--apb-charcoal);
	background-image:
		var(--apb-weave-dark),
		radial-gradient(120% 90% at 85% 10%, rgba(43, 70, 179, 0.38), transparent 60%),
		radial-gradient(90% 80% at 0% 100%, rgba(194, 53, 122, 0.2), transparent 60%);
	color: var(--apb-paper);
	padding-block: var(--apb-s8) calc(var(--apb-s8) + 20px);
}

/* Ragged paint edge where the wall meets the canvas-colored page. */
.apb-hero::after,
.apb-site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 20px;
	-webkit-mask: var(--apb-mask-edge) left top / 240px 100% repeat-x;
	mask: var(--apb-mask-edge) left top / 240px 100% repeat-x;
	pointer-events: none;
}

.apb-hero::after {
	bottom: -1px;
	background-color: var(--apb-canvas);
}

.apb-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s6);
	align-items: center;
}

.apb-hero__copy {
	min-width: 0;
}

@media (min-width: 62em) {
	.apb-hero {
		padding-block: var(--apb-s9) calc(var(--apb-s9) + 20px);
	}

	.apb-hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: var(--apb-s8);
	}
}

/* The headline sits on a swatch of ultramarine brush strokes (inline SVG). */
.apb-hero__headline {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin-bottom: var(--apb-s6);
	padding: var(--apb-s4) var(--apb-s4) var(--apb-s5);
}

.apb-hero__stroke {
	position: absolute;
	top: -0.25rem;
	left: -0.5rem;
	width: calc(100% + 1rem);
	max-width: none;
	height: calc(100% + 0.5rem);
	overflow: visible;
}

.apb-hero__title {
	position: relative;
	color: var(--apb-paper);
	font-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0;
	max-width: 13ch;
	text-shadow: 0 2px 0 rgba(29, 47, 128, 0.7);
}

.apb-hero__text {
	color: #e4e1ea;
	font-size: var(--apb-text-lg);
	line-height: var(--apb-leading-relaxed);
	max-width: 48ch;
	margin-bottom: var(--apb-s6);
}

.apb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apb-s4) var(--apb-s3);
}

/* On the dark wall the primary button is a dab of yellow. */
.apb-hero .apb-button--primary,
.apb-cta .apb-button {
	background: var(--apb-yellow);
	border-color: var(--apb-yellow);
	box-shadow: 0 4px 0 #a9790c;
	color: var(--apb-ink);
}

.apb-hero .apb-button--primary:hover,
.apb-hero .apb-button--primary:focus,
.apb-cta .apb-button:hover,
.apb-cta .apb-button:focus {
	background: #ffd15c;
	border-color: #ffd15c;
	box-shadow: 0 2px 0 #a9790c;
	color: var(--apb-ink);
}

.apb-hero .apb-button--secondary {
	background: transparent;
	border-color: var(--apb-paper);
	box-shadow: 0 4px 0 rgba(255, 253, 248, 0.35);
	color: var(--apb-paper);
}

.apb-hero .apb-button--secondary:hover,
.apb-hero .apb-button--secondary:focus {
	background: var(--apb-paper);
	border-color: var(--apb-paper);
	box-shadow: 0 2px 0 rgba(255, 253, 248, 0.35);
	color: var(--apb-ink);
}

/* Decorative inline SVG (no image request, no JS). */
.apb-hero__figure {
	display: none;
	max-width: 30rem;
	margin-inline: auto;
	width: 100%;
}

@media (min-width: 62em) {
	.apb-hero__figure {
		display: block;
	}
}

.apb-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Category grid ("Browse by Category") */
.apb-topics {
	display: grid;
	gap: var(--apb-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.apb-topics > li {
	min-width: 0;
}

.apb-topic {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--apb-s2);
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	padding: calc(var(--apb-s5) + 10px) var(--apb-s4) var(--apb-s5);
	text-decoration: none;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.apb-topic:hover {
	border-color: var(--apb-cat);
	box-shadow: var(--apb-shadow);
	transform: translateY(-3px);
}

.apb-topic__name {
	display: flex;
	align-items: flex-start;
	gap: var(--apb-s3);
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-lg);
	font-weight: 800;
	line-height: var(--apb-leading-snug);
	color: var(--apb-ink);
}

/* A dab of the category's pigment. */
.apb-topic__name::before {
	content: "";
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.05em;
	border-radius: var(--apb-blob);
	background-color: var(--apb-cat);
	background-image: var(--apb-impasto);
	box-shadow: inset -2px -3px 0 rgba(0, 0, 0, 0.16);
}

.apb-topic:hover .apb-topic__name,
.apb-topic:focus .apb-topic__name {
	color: var(--apb-cat-ink);
}

.apb-topic__desc {
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-sm);
	line-height: var(--apb-leading-normal);
}

.apb-topic__count {
	margin-top: auto;
	padding-top: var(--apb-s2);
	color: var(--apb-cat-ink);
	font-size: var(--apb-text-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Closing call to action: a deep ultramarine panel crossed by two strokes. */
.apb-cta {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s5);
	align-items: center;
	background-color: var(--apb-primary-deep);
	background-image: var(--apb-weave-dark);
	border-radius: var(--apb-radius-lg) var(--apb-radius) var(--apb-radius-lg) var(--apb-radius);
	color: #dfe4f7;
	padding: var(--apb-s7) var(--apb-s5);
}

.apb-cta::before,
.apb-cta::after {
	content: "";
	position: absolute;
	pointer-events: none;
	background-image: var(--apb-impasto);
	-webkit-mask: var(--apb-mask-stroke) center / 100% 100% no-repeat;
	mask: var(--apb-mask-stroke) center / 100% 100% no-repeat;
}

.apb-cta::before {
	right: -3rem;
	top: -1.25rem;
	width: 22rem;
	height: 4.5rem;
	background-color: var(--apb-primary);
	transform: rotate(-7deg);
}

.apb-cta::after {
	left: -2rem;
	bottom: -1rem;
	width: 15rem;
	height: 2.75rem;
	background-color: var(--apb-accent);
	transform: rotate(-4deg);
}

.apb-cta > * {
	position: relative;
	z-index: 1;
	min-width: 0;
}

@media (min-width: 48em) {
	.apb-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--apb-s8);
	}
}

.apb-cta__title {
	color: var(--apb-paper);
	margin-bottom: var(--apb-s3);
}

.apb-cta__text {
	color: #dfe4f7;
	margin: 0;
	max-width: 54ch;
}

/* --------------------------------------------------------------------------
   13. Article
   -------------------------------------------------------------------------- */

.apb-breadcrumbs {
	margin-bottom: var(--apb-s5);
	font-size: var(--apb-text-sm);
	color: var(--apb-ink-muted);
}

.apb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apb-s1) var(--apb-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.apb-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--apb-s2);
	min-width: 0;
}

.apb-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--apb-accent-deep);
	font-weight: 700;
}

.apb-breadcrumbs a {
	color: var(--apb-ink-soft);
	text-decoration: underline;
	text-decoration-color: var(--apb-line-strong);
}

.apb-breadcrumbs a:hover {
	color: var(--apb-primary);
}

.apb-breadcrumbs [aria-current="page"] {
	color: var(--apb-ink-muted);
}

.apb-article__header {
	margin-bottom: var(--apb-s6);
}

.apb-article__title {
	margin-bottom: var(--apb-s4);
	max-width: 22ch;
}

.apb-article__summary {
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-lg);
	line-height: var(--apb-leading-relaxed);
	max-width: var(--apb-measure);
	margin-bottom: var(--apb-s4);
}

.apb-article__meta {
	padding-top: var(--apb-s4);
	border-top: 1px solid var(--apb-line);
}

.apb-article__figure {
	margin-bottom: var(--apb-s6);
}

/* Images are mounted like a painting: a thick paper edge, a hairline and a
   soft shadow. */
.apb-article__figure img,
.apb-content img {
	border: 6px solid var(--apb-paper);
	border-radius: var(--apb-radius-sm);
	box-shadow: 0 0 0 1px var(--apb-line), var(--apb-shadow);
	background-color: var(--apb-paper);
}

.apb-article__figure img {
	width: 100%;
}

/* Figures and captions: a dab of pigment, then the caption. */
.apb-article__figure figcaption,
.apb-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	position: relative;
	margin-top: var(--apb-s3);
	padding-left: 1.5rem;
	color: var(--apb-ink-muted);
	font-size: var(--apb-text-sm);
	line-height: var(--apb-leading-snug);
	text-align: left;
}

.apb-article__figure figcaption::before,
.apb-content figcaption::before,
.wp-block-image figcaption::before,
.wp-caption-text::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.2em;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: var(--apb-blob);
	background-color: var(--apb-cat);
	background-image: var(--apb-impasto);
}

/* Body text */
.apb-content {
	font-size: var(--apb-text-md);
	line-height: var(--apb-leading-relaxed);
	min-width: 0;
}

.apb-content > * {
	max-width: var(--apb-measure);
}

.apb-content > .alignwide,
.apb-content > .alignfull,
.apb-content > .apb-tutorial-facts,
.apb-content > .apb-toc,
.apb-content > figure,
.apb-content > .wp-block-image,
.apb-content > .wp-block-gallery,
.apb-content > .wp-block-table,
.apb-content > .apb-table-wrap,
.apb-content > table,
.apb-content > .apb-ad-slot {
	max-width: 100%;
}

.apb-content h2 {
	margin-top: var(--apb-s8);
}

.apb-content h2::after {
	width: 5rem;
	height: 0.55rem;
}

.apb-content h3 {
	margin-top: var(--apb-s6);
}

.apb-content h4 {
	margin-top: var(--apb-s5);
}

.apb-content > h2:first-child,
.apb-content > h3:first-child {
	margin-top: 0;
}

.apb-content ul,
.apb-content ol {
	margin: 0 0 var(--apb-s5);
	padding-left: 1.5em;
}

.apb-content li + li {
	margin-top: var(--apb-s2);
}

.apb-content li > ul,
.apb-content li > ol {
	margin-top: var(--apb-s2);
	margin-bottom: 0;
}

.apb-content ul:not([class]) > li::marker {
	color: var(--apb-accent);
	font-size: 1.2em;
}

/* Ordered lists are the tutorial steps. */
.apb-content ol {
	padding-left: 1.75em;
}

.apb-content ol > li {
	padding-left: 0.35em;
}

.apb-content ol > li::marker {
	color: var(--apb-cat-ink);
	font-family: var(--apb-font-head);
	font-weight: 800;
}

/* Top-level steps: the number sits on a dab of paint. Lists that use `start`
   or `reversed` keep the browser's own numbering (the rules above). */
.apb-content > ol:not([class]):not([start]):not([reversed]) {
	list-style: none;
	counter-reset: apb-ol;
	padding-left: 0;
}

.apb-content > ol:not([class]):not([start]):not([reversed]) > li {
	counter-increment: apb-ol;
	position: relative;
	min-height: 2.25rem;
	padding-left: 3.1rem;
}

.apb-content > ol:not([class]):not([start]):not([reversed]) > li::before {
	content: counter(apb-ol);
	position: absolute;
	left: 0;
	top: -0.05em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background-color: var(--apb-cat-ink);
	background-image: var(--apb-impasto);
	border-radius: var(--apb-blob);
	color: var(--apb-paper);
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-base);
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.apb-content > ol:not([class]):not([start]):not([reversed]) > li + li {
	margin-top: var(--apb-s4);
	padding-top: var(--apb-s4);
	border-top: 1px solid var(--apb-line);
}

.apb-content > ol:not([class]):not([start]):not([reversed]) > li + li::before {
	top: calc(var(--apb-s4) - 0.05em);
}

.apb-content figure,
.apb-content .wp-block-image {
	margin-block: var(--apb-s6);
}

.apb-content a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(43, 70, 179, 0.4);
}

.apb-content a:hover,
.apb-content a:focus {
	text-decoration-color: currentColor;
}

/* Tables — always scroll inside their own wrapper, never the page.
   inc/toc.php wraps every table in .apb-table-wrap; the bare-table rules
   below cover the block editor and any table that escapes the wrapper. */
.apb-table-wrap,
.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: var(--apb-s6);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	background: var(--apb-paper);
	box-shadow: var(--apb-shadow-sm);
}

/* A block-editor table figure already scrolls: its inner wrapper stays plain. */
.wp-block-table .apb-table-wrap {
	overflow: visible;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.apb-content > table {
	display: block;
	overflow-x: auto;
	margin-block: var(--apb-s6);
}

.apb-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--apb-text-sm);
	line-height: var(--apb-leading-snug);
}

.apb-table-wrap table,
.wp-block-table table {
	min-width: 30rem;
	margin: 0;
}

.apb-content th,
.apb-content td,
.wp-block-table th,
.wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--apb-line);
	padding: var(--apb-s3) var(--apb-s4);
	text-align: left;
	vertical-align: top;
}

.apb-content tbody tr:last-child > *,
.wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}

.apb-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(239, 232, 216, 0.5);
}

/* Charcoal header row with a line of pigment underneath. */
.apb-content thead th,
.wp-block-table thead th {
	background: var(--apb-charcoal);
	border-bottom: 4px solid var(--apb-cat);
	color: var(--apb-paper);
	font-size: var(--apb-text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.apb-content tbody th {
	color: var(--apb-ink);
	font-weight: 700;
}

.apb-content table caption {
	caption-side: bottom;
	padding: var(--apb-s3) var(--apb-s4);
	color: var(--apb-ink-muted);
	font-size: var(--apb-text-sm);
	text-align: left;
}

/* Callouts — used in article content and available in the block editor.
   A thick stroke of paint runs down the left edge. */
.apb-callout {
	position: relative;
	background: var(--apb-yellow-soft);
	border: 1px solid #ecd9a0;
	border-radius: 6px var(--apb-radius-lg) var(--apb-radius) var(--apb-radius-lg);
	padding: var(--apb-s5) var(--apb-s5) var(--apb-s5) calc(var(--apb-s5) + 0.85rem);
	margin-block: var(--apb-s6);
	overflow: hidden;
}

.apb-callout::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0.85rem;
	background-color: var(--apb-yellow);
	background-image: var(--apb-impasto);
}

.apb-callout > :last-child {
	margin-bottom: 0;
}

.apb-callout__title {
	display: flex;
	align-items: center;
	gap: var(--apb-s2);
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-sm);
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--apb-yellow-deep);
	margin-bottom: var(--apb-s2);
}

/* Small shape before the title: a dab for tips, a triangle for warnings. */
.apb-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: var(--apb-blob);
	background: currentColor;
}

.apb-callout--tip {
	background: var(--apb-teal-soft);
	border-color: #b5dcd8;
}

.apb-callout--tip::before {
	background-color: var(--apb-teal);
}

.apb-callout--tip .apb-callout__title {
	color: var(--apb-teal-deep);
}

.apb-callout--warning {
	background: var(--apb-accent-soft);
	border-color: #f3c4b8;
}

.apb-callout--warning::before {
	background-color: var(--apb-accent);
}

.apb-callout--warning .apb-callout__title {
	color: var(--apb-accent-deep);
}

.apb-callout--warning .apb-callout__title::before {
	width: 0;
	height: 0;
	border-radius: 0;
	background: none;
	border-left: 0.45rem solid transparent;
	border-right: 0.45rem solid transparent;
	border-bottom: 0.78rem solid currentColor;
}

/* Tutorial facts (difficulty, time, surface, colors, brushes and materials) */
.apb-tutorial-facts {
	position: relative;
	background-color: var(--apb-paper);
	background-image: var(--apb-weave);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	box-shadow: var(--apb-shadow-sm);
	padding: calc(var(--apb-s5) + 12px) var(--apb-s5) var(--apb-s5);
	margin-bottom: var(--apb-s6);
}

.apb-tutorial-facts__title,
.apb-toc__title {
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-sm);
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--apb-ink-soft);
	margin: 0 0 var(--apb-s4);
}

.apb-facts {
	display: grid;
	gap: var(--apb-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
	margin: 0;
}

.apb-facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--apb-s3);
	min-width: 0;
}

.apb-facts__item > span:last-child {
	min-width: 0;
}

.apb-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--apb-cat-soft);
	border: 2px solid var(--apb-cat);
	border-radius: var(--apb-blob);
	color: var(--apb-cat-ink);
}

.apb-facts__icon .apb-icon {
	width: 1.3rem;
	height: 1.3rem;
}

.apb-facts__label {
	display: block;
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: var(--apb-leading-snug);
	text-transform: uppercase;
	color: var(--apb-ink-muted);
	margin: 0;
}

.apb-facts__value {
	display: block;
	font-size: var(--apb-text-base);
	font-weight: 700;
	line-height: var(--apb-leading-snug);
	margin-top: 0.15rem;
}

.apb-materials {
	margin-top: var(--apb-s5);
	padding-top: var(--apb-s4);
	border-top: 1px solid var(--apb-line);
}

.apb-materials .apb-facts__label {
	margin-bottom: var(--apb-s3);
}

.apb-materials__list {
	list-style: none;
	display: grid;
	gap: var(--apb-s2) var(--apb-s5);
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	margin: 0;
	padding: 0;
	font-size: var(--apb-text-base);
}

.apb-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--apb-s3);
	min-width: 0;
	margin: 0;
}

.apb-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.7rem;
	height: 0.7rem;
	margin-top: 0.5em;
	background-color: var(--apb-cat);
	background-image: var(--apb-impasto);
	border-radius: var(--apb-blob);
}

/* Table of contents */
.apb-toc {
	background: var(--apb-primary-soft);
	border: 1px solid #c9d1ee;
	border-radius: var(--apb-radius-lg) var(--apb-radius) var(--apb-radius-lg) var(--apb-radius);
	padding: var(--apb-s5);
	margin-bottom: var(--apb-s6);
}

.apb-toc__title {
	color: var(--apb-primary-deep);
	margin-bottom: var(--apb-s3);
}

.apb-toc ol {
	counter-reset: apb-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--apb-text-base);
}

.apb-toc > ol > li {
	counter-increment: apb-toc;
	margin: 0;
}

.apb-toc > ol > li + li {
	margin-top: var(--apb-s2);
}

.apb-toc > ol > li > a::before {
	content: counter(apb-toc) ". ";
	color: var(--apb-primary);
	font-weight: 800;
}

.apb-toc a {
	color: var(--apb-ink);
	text-decoration: underline;
	text-decoration-color: rgba(43, 70, 179, 0.45);
}

.apb-toc a:hover,
.apb-toc a:focus {
	color: var(--apb-primary-deep);
	text-decoration-color: currentColor;
}

.apb-toc ol ol {
	margin: var(--apb-s2) 0 0 var(--apb-s5);
	font-size: var(--apb-text-sm);
}

.apb-toc ol ol li + li {
	margin-top: var(--apb-s1);
}

.apb-toc ol ol a {
	color: var(--apb-ink-soft);
}

/* FAQ */
.apb-faq {
	margin-top: var(--apb-s8);
}

.apb-faq > h2 {
	margin-bottom: var(--apb-s5);
}

.apb-faq__item {
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	box-shadow: -6px 0 0 var(--apb-cat);
	margin: 0 0 var(--apb-s4) 6px;
	padding: var(--apb-s4) var(--apb-s5);
}

.apb-faq__question {
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-lg);
	font-weight: 800;
	margin: 0 0 var(--apb-s2);
}

.apb-faq__answer {
	color: var(--apb-ink-soft);
	max-width: var(--apb-measure);
}

.apb-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Article footer */
.apb-article__footer {
	margin-top: var(--apb-s8);
	padding-top: var(--apb-s5);
	border-top: 1px solid var(--apb-line);
}

.apb-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apb-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.apb-tags__label {
	font-size: var(--apb-text-sm);
	font-weight: 700;
	color: var(--apb-ink-soft);
}

/* Previous / next */
.apb-post-nav {
	margin-top: var(--apb-s7);
}

.apb-post-nav__links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s4);
}

@media (min-width: 48em) {
	.apb-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* When only "next" exists it moves to the right-hand column, where its
	   right-aligned text expects to sit. */
	.apb-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.apb-post-nav__link {
	display: block;
	min-width: 0;
	background: var(--apb-paper);
	border: 2px solid var(--apb-ink);
	border-radius: var(--apb-radius-painted);
	box-shadow: 0 4px 0 var(--apb-ink);
	padding: var(--apb-s4) var(--apb-s5);
	text-decoration: none;
	height: 100%;
}

.apb-post-nav__link:hover,
.apb-post-nav__link:focus {
	background: var(--apb-yellow-soft);
}

.apb-post-nav__direction {
	display: block;
	font-size: var(--apb-text-xs);
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--apb-accent-deep);
	margin-bottom: var(--apb-s2);
}

.apb-post-nav__title {
	display: block;
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-base);
	font-weight: 800;
	color: var(--apb-ink);
	line-height: var(--apb-leading-snug);
}

.apb-post-nav__link--prev {
	text-align: left;
}

.apb-post-nav__link--next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   14. Sidebar and widgets
   -------------------------------------------------------------------------- */

.apb-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s5);
}

@media (min-width: 62em) {
	.apb-sidebar--sticky {
		position: sticky;
		top: var(--apb-s5);
	}
}

.apb-widget {
	position: relative;
	min-width: 0;
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	padding: calc(var(--apb-s5) + 12px) var(--apb-s5) var(--apb-s5);
	font-size: var(--apb-text-base);
}

.apb-widget__title,
.apb-widget .widget-title {
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-sm);
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--apb-ink-soft);
	margin: 0 0 var(--apb-s4);
}

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

.apb-widget li + li {
	margin-top: var(--apb-s3);
	padding-top: var(--apb-s3);
	border-top: 1px solid var(--apb-line);
}

.apb-widget a {
	color: var(--apb-ink);
	text-decoration: none;
}

.apb-widget a:hover,
.apb-widget a:focus {
	color: var(--apb-primary);
	text-decoration: underline;
}

.apb-widget .children,
.apb-widget .sub-menu {
	margin-top: var(--apb-s3);
	padding-left: var(--apb-s4);
}

/* --------------------------------------------------------------------------
   15. Archives, pagination, search, 404
   -------------------------------------------------------------------------- */

/* A paper panel under a band of the category's pigment. */
.apb-archive-header {
	position: relative;
	background-color: var(--apb-paper);
	background-image: var(--apb-weave);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	box-shadow: var(--apb-shadow-sm);
	margin-bottom: var(--apb-s7);
	padding: calc(var(--apb-s5) + 16px) var(--apb-s5) var(--apb-s5);
}

.apb-archive-header::before {
	height: 20px;
}

@media (min-width: 48em) {
	.apb-archive-header {
		padding: calc(var(--apb-s6) + 16px) var(--apb-s6) var(--apb-s6);
	}
}

.apb-archive-header__title {
	margin-bottom: var(--apb-s3);
}

.apb-archive-header__title::after,
.apb-page__title::after {
	width: 7rem;
	height: 0.7rem;
}

.apb-archive-header__description {
	color: var(--apb-ink-soft);
	font-size: var(--apb-text-lg);
	line-height: var(--apb-leading-relaxed);
	max-width: var(--apb-measure);
	margin-top: var(--apb-s4);
}

.apb-archive-header__description > :last-child {
	margin-bottom: 0;
}

.apb-archive-header__count {
	margin: var(--apb-s3) 0 0;
	color: var(--apb-cat-ink);
	font-size: var(--apb-text-xs);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.apb-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apb-s2);
	list-style: none;
	margin: var(--apb-s4) 0 0;
	padding: 0;
}

.apb-pagination {
	margin-top: var(--apb-s8);
	padding-top: var(--apb-s5);
	border-top: 1px solid var(--apb-line);
}

.apb-pagination .nav-links {
	display: flex;
	justify-content: center;
}

.apb-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--apb-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.apb-pagination li {
	margin: 0;
}

.apb-pagination a.page-numbers,
.apb-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: var(--apb-s3);
	background: var(--apb-paper);
	border: 2px solid var(--apb-ink);
	border-radius: var(--apb-radius-painted);
	color: var(--apb-ink);
	font-size: var(--apb-text-sm);
	font-weight: 800;
	text-decoration: none;
}

.apb-pagination a.page-numbers:hover,
.apb-pagination a.page-numbers:focus {
	background: var(--apb-yellow-soft);
	color: var(--apb-ink);
}

.apb-pagination span.page-numbers.current {
	background: var(--apb-primary);
	border-color: var(--apb-primary);
	color: var(--apb-paper);
}

.apb-pagination span.page-numbers.dots {
	border-color: transparent;
	background: none;
	min-width: 1.5rem;
	padding-inline: 0;
}

/* Search */
.apb-search-intro {
	margin-bottom: var(--apb-s6);
	padding-bottom: var(--apb-s5);
	border-bottom: 1px solid var(--apb-line);
}

.apb-search-intro .apb-search-form {
	max-width: 32rem;
	margin-top: var(--apb-s4);
}

.apb-no-results {
	position: relative;
	--apb-cat: var(--apb-yellow);
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	padding: calc(var(--apb-s6) + 12px) var(--apb-s5) var(--apb-s6);
}

.apb-no-results .apb-search-form {
	max-width: 30rem;
	margin-top: var(--apb-s5);
}

.apb-no-results__suggestions {
	display: grid;
	gap: var(--apb-s2);
	list-style: none;
	margin: var(--apb-s4) 0 var(--apb-s5);
	padding: 0;
}

.apb-no-results__suggestions li {
	padding-left: 1.5em;
	position: relative;
}

.apb-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.7rem;
	height: 0.7rem;
	background-color: var(--apb-teal);
	background-image: var(--apb-impasto);
	border-radius: var(--apb-blob);
}

/* 404 */
.apb-error-404 {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

.apb-error-404__code {
	display: inline-block;
	font-family: var(--apb-font-head);
	font-size: clamp(4rem, 2rem + 10vw, 7rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--apb-primary);
	margin: 0 0 var(--apb-s5);
	text-shadow: 4px 4px 0 var(--apb-yellow);
}

.apb-error-404__code::after {
	width: 100%;
	height: 0.9rem;
	margin-top: var(--apb-s2);
	background-color: var(--apb-accent);
}

.apb-error-404 .apb-search-form {
	max-width: 26rem;
	margin: var(--apb-s5) auto 0;
	text-align: left;
}

.apb-error-404 .apb-subcategories {
	justify-content: center;
	margin-top: var(--apb-s4);
}

.apb-error-404 .apb-section {
	margin-top: var(--apb-s8);
	text-align: left;
}

.apb-error-404__headline {
	margin-top: var(--apb-s7);
	font-size: var(--apb-text-xl);
}

/* --------------------------------------------------------------------------
   16. Pages and contact form
   -------------------------------------------------------------------------- */

.apb-page__header {
	margin-bottom: var(--apb-s6);
	padding-bottom: var(--apb-s5);
	border-bottom: 1px solid var(--apb-line);
}

.apb-page__header .apb-page__title {
	margin-bottom: 0;
}

.apb-page__updated {
	margin: var(--apb-s3) 0 0;
	color: var(--apb-ink-muted);
	font-size: var(--apb-text-sm);
}

.apb-form-notice {
	border-radius: var(--apb-radius);
	padding: var(--apb-s4) var(--apb-s5);
	margin-bottom: var(--apb-s5);
	border: 1px solid;
	border-left-width: 8px;
}

.apb-form-notice > :last-child {
	margin-bottom: 0;
}

.apb-form-notice--success {
	background: #e9f4e4;
	border-color: #5e8c3a;
	color: #23491a;
}

.apb-form-notice--error {
	background: var(--apb-accent-soft);
	border-color: var(--apb-accent);
	color: #7d2112;
}

.apb-form-notice__list {
	margin: var(--apb-s2) 0 0;
	padding-left: 1.2em;
}

.apb-form {
	position: relative;
	max-width: 38rem;
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	padding: calc(var(--apb-s5) + 12px) var(--apb-s5) var(--apb-s5);
}

.apb-form > :last-child {
	margin-bottom: 0;
}

.apb-form input[aria-invalid="true"],
.apb-form textarea[aria-invalid="true"] {
	border-color: #b5341d;
	border-width: 3px;
}

.apb-field__error {
	display: block;
	margin-top: var(--apb-s2);
	color: #8c2b20;
	font-size: var(--apb-text-sm);
	font-weight: 700;
}

.apb-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   17. Comments
   -------------------------------------------------------------------------- */

.apb-comments {
	margin-top: var(--apb-s9);
	padding-top: var(--apb-s6);
	border-top: 1px solid var(--apb-line);
}

.apb-comments__title {
	font-size: var(--apb-text-2xl);
}

.apb-comments .comment-list {
	list-style: none;
	margin: 0 0 var(--apb-s7);
	padding: 0;
}

.apb-comments .comment-list ol.children {
	list-style: none;
	margin: var(--apb-s4) 0 0 var(--apb-s5);
	padding: 0;
}

.apb-comments .comment-body {
	background: var(--apb-paper);
	border: 1px solid var(--apb-line);
	border-radius: var(--apb-radius);
	padding: var(--apb-s5);
	margin-bottom: var(--apb-s4);
}

.apb-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apb-s2) var(--apb-s3);
	font-size: var(--apb-text-sm);
	color: var(--apb-ink-muted);
	margin-bottom: var(--apb-s3);
}

.apb-comments .comment-author img {
	display: inline-block;
	border-radius: var(--apb-blob);
	margin-right: var(--apb-s2);
	vertical-align: middle;
}

.apb-comments .reply {
	font-size: var(--apb-text-sm);
	font-weight: 700;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	font-weight: 400;
	font-size: var(--apb-text-sm);
	color: var(--apb-ink-soft);
	display: inline;
}

.comment-form p {
	margin-bottom: var(--apb-s4);
}

/* --------------------------------------------------------------------------
   18. Ad slots (empty and disabled by default)
   -------------------------------------------------------------------------- */

.apb-ad-slot {
	margin-block: var(--apb-s6);
	text-align: center;
	overflow: hidden;
}

.apb-ad-slot__label {
	display: block;
	margin-bottom: var(--apb-s2);
	color: var(--apb-ink-muted);
	font-size: var(--apb-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.apb-ad-slot--sidebar {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   19. Footer — a charcoal studio floor with a row of paint dabs
   -------------------------------------------------------------------------- */

.apb-site-footer {
	position: relative;
	background-color: var(--apb-charcoal);
	background-image: var(--apb-weave-dark);
	color: #cfcbd8;
	margin-top: auto;
	padding-block: var(--apb-s7) var(--apb-s6);
}

/* Ragged paint edge along the top (shape shared with the hero). */
.apb-site-footer::before {
	top: -19px;
	background-color: var(--apb-charcoal);
}

.apb-footer__dabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apb-s3);
	margin-bottom: var(--apb-s7);
}

.apb-footer__dabs span {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--apb-blob);
	background-color: var(--apb-primary);
	background-image: var(--apb-impasto);
	box-shadow: inset -2px -3px 0 rgba(0, 0, 0, 0.22);
}

.apb-footer__dabs span:nth-child(2) {
	background-color: var(--apb-accent);
	border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%;
}

.apb-footer__dabs span:nth-child(3) {
	background-color: var(--apb-teal);
}

.apb-footer__dabs span:nth-child(4) {
	background-color: var(--apb-magenta);
	border-radius: 52% 48% 60% 40% / 42% 55% 45% 58%;
}

.apb-footer__dabs span:nth-child(5) {
	background-color: var(--apb-green);
}

.apb-footer__dabs span:nth-child(6) {
	background-color: var(--apb-yellow);
	border-radius: 45% 55% 42% 58% / 58% 44% 56% 42%;
}

.apb-footer__dabs span:nth-child(7) {
	background-color: var(--apb-sienna);
}

.apb-footer__dabs span:nth-child(8) {
	background-color: var(--apb-violet);
	border-radius: 52% 48% 60% 40% / 42% 55% 45% 58%;
}

.apb-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apb-s6);
	margin-bottom: var(--apb-s6);
}

@media (min-width: 48em) {
	.apb-footer__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--apb-s8);
	}
}

.apb-footer__about p {
	color: #cfcbd8;
	font-size: var(--apb-text-base);
	max-width: 44ch;
	margin-bottom: 0;
}

.apb-footer__nav {
	min-width: 0;
}

.apb-footer__heading {
	font-family: var(--apb-font-body);
	font-size: var(--apb-text-sm);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apb-yellow);
	margin: 0 0 var(--apb-s3);
}

.apb-footer__about .apb-footer__heading {
	font-family: var(--apb-font-head);
	font-size: var(--apb-text-xl);
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--apb-paper);
}

.apb-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--apb-text-base);
}

.apb-footer__menu li + li {
	margin-top: var(--apb-s1);
}

.apb-footer__menu a {
	display: inline-block;
	padding-block: var(--apb-s1);
	color: #ece9f2;
	text-decoration: none;
}

.apb-footer__menu a:hover,
.apb-footer__menu a:focus {
	color: var(--apb-yellow);
	text-decoration: underline;
}

.apb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--apb-s3);
	padding-top: var(--apb-s5);
	border-top: 1px solid rgba(255, 253, 248, 0.18);
	color: #bdb9c8;
	font-size: var(--apb-text-sm);
}

.apb-footer__bottom p {
	margin: 0;
}

.apb-site-footer a {
	color: #ece9f2;
}

/* --------------------------------------------------------------------------
   20. Utilities and editor alignments
   -------------------------------------------------------------------------- */

.apb-visually-balanced {
	max-width: var(--apb-measure);
}

.apb-text-center {
	text-align: center;
}

.apb-mt-0 {
	margin-top: 0;
}

.apb-mb-0 {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 var(--apb-s5) var(--apb-s4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--apb-s4) var(--apb-s5);
}

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--apb-s4);
	}
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: auto;
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--apb-radius);
}

/* --------------------------------------------------------------------------
   21. Print — tutorials that read well on paper
   -------------------------------------------------------------------------- */

@media print {
	.apb-site-header,
	.apb-site-footer,
	.apb-ad-slot,
	.apb-post-nav,
	.apb-comments,
	.apb-sidebar,
	.apb-related,
	.apb-skip-link,
	.apb-breadcrumbs {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.apb-content > * {
		max-width: none;
	}

	.apb-table-wrap,
	.wp-block-table {
		overflow: visible;
	}

	.apb-table-wrap table,
	.wp-block-table table {
		min-width: 0;
	}

	.apb-content thead th,
	.wp-block-table thead th {
		background: none;
		color: #000;
	}

	.apb-article__figure img,
	.apb-content img {
		box-shadow: none;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}

	.apb-content h2,
	.apb-content h3 {
		break-after: avoid;
	}

	figure,
	.apb-callout,
	.apb-tutorial-facts,
	.apb-facts__item {
		break-inside: avoid;
	}
}
