/* ==========================================================================
   Craft Room Organization — main stylesheet
   Design system: tokens, typography, components, layouts, utilities.
   No external dependencies. No remote fonts. No image files. Mobile-first.

   Look: a bright creative studio — off-white walls, white shelving, dark ink
   text and supplies sorted by color. Every category has its own accent, like
   a labeled bin on a shelf. Motifs (swatch strips, a faint pegboard dot grid)
   are drawn with CSS gradients only.

   Contrast reference (WCAG AA, approximate):
     ink         #2b2d42 on bg #faf7f2 / white ....... 12.8:1 / 13.6:1
     ink-soft    #454860 on bg / white ............... 8.6:1 / 9.2:1
     ink-muted   #5c6072 on bg / white ............... 5.9:1 / 6.3:1
     accent      #14756a on white / teal tint ........ 5.6:1 / 4.9:1
     white       #ffffff on accent #14756a ........... 5.6:1
     category "deep" shades on white / own tint ...... 5.0:1 or better
   The bright accents (coral, sunflower, teal, sky, violet, pink) are used for
   borders, bars and shapes only — never as a background for white text and
   never as body-size text color.
   ========================================================================== */

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

:root {
	/* Color — bright accents (decoration only) */
	--cro-coral: #ef6f5e;
	--cro-sunflower: #f4b740;
	--cro-teal: #1f9d8b;
	--cro-sky: #4aa3df;
	--cro-violet: #7b6cd9;
	--cro-pink: #e88ab0;
	--cro-leaf: #6fae4f;
	--cro-tangerine: #f08a3c;

	/* Color — pale tints (backgrounds for dark text) */
	--cro-coral-tint: #fdebe8;
	--cro-sunflower-tint: #fdf3d9;
	--cro-teal-tint: #e3f4f1;
	--cro-sky-tint: #e6f2fb;
	--cro-violet-tint: #eeebfb;
	--cro-pink-tint: #fbe9f1;

	/* Color — roles */
	--cro-bg: #faf7f2;
	--cro-bg-deep: #f1eee8;
	--cro-surface: #ffffff;
	--cro-ink: #2b2d42;
	--cro-ink-soft: #454860;
	--cro-ink-muted: #5c6072;
	--cro-line: #e4e1da;
	--cro-line-strong: #8b91a1;
	--cro-gray-soft: #d9dde3;
	--cro-accent: #14756a;
	--cro-accent-hover: #0d574f;
	--cro-accent-soft: #e3f4f1;
	--cro-focus: #4f41a8;

	/* Category accent. These three are overridden per category in section 9
	   through the data-cro-cat attribute; the values here are the neutral
	   default for anything that is not filed under a known category. */
	--cro-cat: var(--cro-teal);
	--cro-cat-deep: var(--cro-accent);
	--cro-cat-tint: var(--cro-teal-tint);

	/* Motif — a row of six small swatches (used under titles) */
	--cro-swatches: linear-gradient(
		90deg,
		var(--cro-coral) 0 13.5%, transparent 0 17.3%,
		var(--cro-sunflower) 0 30.8%, transparent 0 34.6%,
		var(--cro-teal) 0 48.1%, transparent 0 51.9%,
		var(--cro-sky) 0 65.4%, transparent 0 69.2%,
		var(--cro-violet) 0 82.7%, transparent 0 86.5%,
		var(--cro-pink) 0
	);

	/* Motif — the same six colors as one continuous strip (header, footer) */
	--cro-stripe: linear-gradient(
		90deg,
		var(--cro-coral) 0 16.66%,
		var(--cro-sunflower) 0 33.33%,
		var(--cro-teal) 0 50%,
		var(--cro-sky) 0 66.66%,
		var(--cro-violet) 0 83.33%,
		var(--cro-pink) 0
	);

	/* Typography — system stacks, nothing to download */
	--cro-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--cro-font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--cro-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--cro-text-xs: 0.8125rem;
	--cro-text-sm: 0.875rem;
	--cro-text-base: 1rem;
	--cro-text-md: 1.0625rem;
	--cro-text-lg: 1.1875rem;
	--cro-text-xl: 1.375rem;
	--cro-text-2xl: 1.625rem;
	--cro-text-3xl: 2rem;
	--cro-text-4xl: 2.5rem;

	--cro-leading-tight: 1.2;
	--cro-leading-snug: 1.35;
	--cro-leading-normal: 1.65;
	--cro-leading-relaxed: 1.75;

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

	/* Shape and shadow */
	--cro-radius-sm: 8px;
	--cro-radius: 12px;
	--cro-radius-lg: 18px;
	--cro-shadow-sm: 0 1px 2px rgba(43, 45, 66, 0.06);
	--cro-shadow: 0 8px 22px rgba(43, 45, 66, 0.09);
	--cro-shadow-lg: 0 16px 38px rgba(43, 45, 66, 0.13);

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

	color-scheme: light;
}

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

/* --------------------------------------------------------------------------
   2. 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;
	}

	.cro-card:hover,
	.cro-topic:hover {
		transform: none !important;
	}
}

body {
	margin: 0;
	background-color: var(--cro-bg);
	color: var(--cro-ink);
	font-family: var(--cro-font-body);
	font-size: var(--cro-text-md);
	line-height: var(--cro-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;
}

hr {
	border: 0;
	border-top: 2px solid var(--cro-line);
	margin: var(--cro-s7) 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

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

h1 {
	font-size: clamp(1.875rem, 1.35rem + 2.2vw, var(--cro-text-4xl));
}

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

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

h4 {
	font-size: var(--cro-text-lg);
}

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

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

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

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

strong,
b {
	font-weight: 700;
}

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

mark {
	background: #fbe3a6;
	color: var(--cro-ink);
	padding: 0 0.15em;
}

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

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

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

blockquote {
	margin: var(--cro-s6) 0;
	padding: var(--cro-s2) 0 var(--cro-s2) var(--cro-s5);
	border-left: 4px solid var(--cro-cat);
	font-family: var(--cro-font-head);
	font-size: var(--cro-text-lg);
	color: var(--cro-ink-soft);
}

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

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

/* --------------------------------------------------------------------------
   4. Accessibility
   -------------------------------------------------------------------------- */

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

/* The main landmark only receives focus from the skip link. */
.cro-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(--cro-ink);
	border-radius: var(--cro-radius-sm);
	box-shadow: var(--cro-shadow);
	clip-path: none;
	color: var(--cro-surface);
	display: block;
	font-size: var(--cro-text-base);
	font-weight: 700;
	height: auto;
	left: var(--cro-s4);
	line-height: normal;
	outline-color: var(--cro-sunflower);
	padding: var(--cro-s3) var(--cro-s4);
	text-decoration: none;
	top: var(--cro-s4);
	width: auto;
	z-index: 100000;
}

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

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

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

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

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

/* Used on the homepage, where the hero sits flush against the header. */
.cro-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. */
.cro-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cro-s7);
}

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

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

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

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

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

.cro-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--cro-s2) var(--cro-s4);
	margin-bottom: var(--cro-s6);
	padding-bottom: var(--cro-s4);
	border-bottom: 1px solid var(--cro-line);
}

.cro-section__title {
	position: relative;
	margin: 0;
	padding-bottom: var(--cro-s3);
	font-size: var(--cro-text-2xl);
}

/* A short row of swatches under every section title. A section that shows
   one category (data-cro-cat) gets a solid bar in that category's color. */
.cro-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4.5rem;
	height: 6px;
	border-radius: 2px;
	background: var(--cro-swatches);
}

.cro-section[data-cro-cat] .cro-section__title::after {
	width: 3rem;
	border-radius: 3px;
	background: var(--cro-cat);
}

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

.cro-section__link {
	font-size: var(--cro-text-sm);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.cro-section__link:hover {
	text-decoration: underline;
}

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

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */

.cro-site-header {
	position: relative;
	z-index: 50;
	background: var(--cro-surface);
	border-bottom: 1px solid var(--cro-line);
}

/* Six-color strip along the bottom of the header. */
.cro-site-header::after {
	content: "";
	display: block;
	height: 4px;
	background: var(--cro-stripe);
}

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

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

.cro-branding__mark {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
}

/* Small phones: a smaller mark and name leave room for the menu button. */
@media (max-width: 29.99em) {
	.cro-branding {
		gap: var(--cro-s2);
	}

	.cro-branding__mark {
		width: 2rem;
		height: 2rem;
	}

	.cro-header__inner .cro-branding__title {
		font-size: var(--cro-text-md);
	}
}

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

.cro-branding__title {
	font-family: var(--cro-font-head);
	font-size: var(--cro-text-xl);
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.02em;
}

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

.cro-branding__title a:hover {
	color: var(--cro-accent);
}

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

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

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

/* Mobile menu button */
.cro-menu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: var(--cro-s2);
	background: var(--cro-surface);
	border: 1.5px solid var(--cro-line-strong);
	border-radius: var(--cro-radius-sm);
	color: var(--cro-ink);
	cursor: pointer;
	font: inherit;
	font-size: var(--cro-text-sm);
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--cro-s2) var(--cro-s3);
}

.cro-menu-toggle:hover {
	background: var(--cro-accent-soft);
	border-color: var(--cro-accent);
	color: var(--cro-ink);
}

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

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

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

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

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

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

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

.cro-nav__list li {
	position: relative;
}

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

.cro-nav__list a:hover {
	color: var(--cro-accent);
}

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

.cro-nav .current-menu-item > a,
.cro-nav .current-menu-ancestor > a,
.cro-nav .current_page_item > a {
	color: var(--cro-accent);
}

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

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

@media (min-width: 62em) {
	.cro-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. */
	.cro-site-header .cro-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: var(--cro-s5);
	}

	.cro-header__inner {
		flex: 1 1 0;
		min-height: 4.75rem;
	}

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

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

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

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

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

	.cro-nav__list a:hover {
		background: var(--cro-accent-soft);
		color: var(--cro-ink);
	}

	.cro-nav .current-menu-item > a,
	.cro-nav .current-menu-ancestor > a,
	.cro-nav .current_page_item > a {
		background: var(--cro-accent-soft);
		color: var(--cro-ink);
		box-shadow: inset 0 -3px 0 var(--cro-coral);
	}

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

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

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

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

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

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */

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

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

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

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

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(--cro-surface);
	border: 1.5px solid var(--cro-line-strong);
	border-radius: var(--cro-radius-sm);
	color: var(--cro-ink);
	font: inherit;
	font-size: var(--cro-text-base);
	padding: var(--cro-s3);
}

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

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

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

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

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

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

.cro-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(--cro-accent-soft);
	border: 1.5px solid var(--cro-line-strong);
	border-radius: var(--cro-radius-sm);
	color: var(--cro-ink);
	cursor: pointer;
	padding: 0 var(--cro-s3);
}

.cro-search-form__submit:hover {
	background: var(--cro-line);
	border-color: var(--cro-accent);
	color: var(--cro-ink);
}

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

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.cro-button,
.cro-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--cro-s2);
	background: var(--cro-accent);
	border: 1.5px solid var(--cro-accent);
	border-radius: var(--cro-radius-sm);
	color: var(--cro-surface);
	cursor: pointer;
	font-family: var(--cro-font-body);
	font-size: var(--cro-text-base);
	font-weight: 700;
	line-height: 1.3;
	min-height: 2.875rem;
	padding: var(--cro-s3) var(--cro-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cro-button:hover,
.cro-button:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background: var(--cro-accent-hover);
	border-color: var(--cro-accent-hover);
	color: var(--cro-surface);
}

.cro-button--secondary {
	background: transparent;
	border-color: var(--cro-line-strong);
	color: var(--cro-ink);
}

.cro-button--secondary:hover,
.cro-button--secondary:focus {
	background: var(--cro-accent-soft);
	border-color: var(--cro-accent);
	color: var(--cro-ink);
}

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

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

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

/* Category colors — one accent per category, like labeled bins on a shelf.
   Templates print data-cro-cat="<category slug>" on cards, topic tiles,
   category labels, home sections and the archive header (see
   cro_category_attr() in inc/template-tags.php). Each rule sets three
   variables that everything inside inherits:
     --cro-cat       bright accent: borders and bars only
     --cro-cat-deep  dark shade: text on white or on the tint (AA)
     --cro-cat-tint  pale background for dark text
   An unknown slug keeps the neutral default from :root. */
[data-cro-cat="craft-room-organization-basics"] {
	--cro-cat: #1f9d8b;
	--cro-cat-deep: #14756a;
	--cro-cat-tint: #e3f4f1;
}

[data-cro-cat="craft-supply-storage"] {
	--cro-cat: #ef6f5e;
	--cro-cat-deep: #b23a2a;
	--cro-cat-tint: #fdebe8;
}

[data-cro-cat="yarn-fabric-organization"] {
	--cro-cat: #e88ab0;
	--cro-cat-deep: #a8336a;
	--cro-cat-tint: #fbe9f1;
}

[data-cro-cat="paper-craft-storage"] {
	--cro-cat: #4aa3df;
	--cro-cat-deep: #1c6399;
	--cro-cat-tint: #e6f2fb;
}

[data-cro-cat="tool-organization"] {
	--cro-cat: #f4b740;
	--cro-cat-deep: #855a00;
	--cro-cat-tint: #fdf3d9;
}

[data-cro-cat="small-craft-spaces"] {
	--cro-cat: #7b6cd9;
	--cro-cat-deep: #4f41a8;
	--cro-cat-tint: #eeebfb;
}

[data-cro-cat="craft-room-decluttering"] {
	--cro-cat: #6fae4f;
	--cro-cat-deep: #3d6f26;
	--cro-cat-tint: #ebf5e5;
}

[data-cro-cat="craft-storage-projects"] {
	--cro-cat: #f08a3c;
	--cro-cat-deep: #9a4a0c;
	--cro-cat-tint: #fdeede;
}

/* Category label: a small bin label — pale tint, dark text, colored edge. */
.cro-eyebrow {
	display: inline-block;
	align-self: flex-start;
	max-width: 100%;
	background: var(--cro-cat-tint);
	border-left: 4px solid var(--cro-cat);
	border-radius: 4px;
	color: var(--cro-cat-deep);
	font-size: var(--cro-text-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: var(--cro-s2);
	padding: 0.25rem 0.6rem 0.25rem 0.5rem;
}

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

.cro-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--cro-s2);
	background: var(--cro-cat-tint);
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--cro-cat-deep);
	font-size: var(--cro-text-sm);
	font-weight: 600;
	padding: 0.3rem 0.85rem;
	text-decoration: none;
}

/* A chip that names a category starts with a dot in that category's color. */
.cro-chip[data-cro-cat]::before {
	content: "";
	flex: 0 0 auto;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 3px;
	background: var(--cro-cat);
}

a.cro-chip:hover,
a.cro-chip:focus {
	background: var(--cro-surface);
	border-color: var(--cro-cat);
	color: var(--cro-ink);
}

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

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

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

.cro-meta a {
	color: inherit;
}

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

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

/* --------------------------------------------------------------------------
   10. Cards and grids
   -------------------------------------------------------------------------- */

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

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

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

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

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

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

.cro-card:hover {
	box-shadow: var(--cro-shadow);
	transform: translateY(-3px);
}

.cro-card__media {
	display: block;
	background: var(--cro-bg-deep);
	border-bottom: 1px solid var(--cro-line);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

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

/* Posts without a featured image get a plain pegboard panel in the
   category's tint. */
.cro-card__media--placeholder,
.cro-card-row__media--placeholder {
	background-color: var(--cro-cat-tint);
	background-image: radial-gradient(circle, rgba(43, 45, 66, 0.14) 1.5px, transparent 2px);
	background-size: 18px 18px;
}

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

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

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

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

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

.cro-card__title a:hover,
.cro-card-row__title a:hover,
.cro-steps__title a:hover {
	color: var(--cro-accent);
	text-decoration: underline;
}

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

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

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

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

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

.cro-card-row__media {
	display: block;
	background: var(--cro-bg-deep);
	border: 1px solid var(--cro-line);
	border-radius: var(--cro-radius);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

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

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

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

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

/* Numbered path (Start Here) */
.cro-steps {
	list-style: none;
	counter-reset: cro-step;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cro-s4);
	margin: 0;
	padding: 0;
}

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

.cro-steps > li {
	counter-increment: cro-step;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: var(--cro-s4);
	align-items: start;
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-left: 5px solid var(--cro-cat);
	border-radius: var(--cro-radius);
	box-shadow: var(--cro-shadow-sm);
	padding: var(--cro-s5);
}

/* The four "Start Here" steps run through four of the studio colors. */
.cro-steps > li:nth-child(4n + 1) {
	--cro-cat: var(--cro-teal);
	--cro-cat-deep: #14756a;
	--cro-cat-tint: var(--cro-teal-tint);
}

.cro-steps > li:nth-child(4n + 2) {
	--cro-cat: var(--cro-coral);
	--cro-cat-deep: #b23a2a;
	--cro-cat-tint: var(--cro-coral-tint);
}

.cro-steps > li:nth-child(4n + 3) {
	--cro-cat: var(--cro-sky);
	--cro-cat-deep: #1c6399;
	--cro-cat-tint: var(--cro-sky-tint);
}

.cro-steps > li:nth-child(4n + 4) {
	--cro-cat: var(--cro-violet);
	--cro-cat-deep: #4f41a8;
	--cro-cat-tint: var(--cro-violet-tint);
}

.cro-steps > li::before {
	content: counter(cro-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--cro-cat-tint);
	border-radius: var(--cro-radius-sm);
	color: var(--cro-cat-deep);
	font-family: var(--cro-font-head);
	font-size: var(--cro-text-lg);
	font-weight: 800;
}

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

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

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

/* A faint pegboard dot grid on a white wall. */
.cro-hero {
	background-color: var(--cro-surface);
	background-image: radial-gradient(circle, rgba(43, 45, 66, 0.1) 1.5px, transparent 2px);
	background-size: 24px 24px;
	border-bottom: 1px solid var(--cro-line);
	padding-block: var(--cro-s8);
}

/* A row of six swatches above the headline. */
.cro-hero__swatches {
	display: flex;
	gap: 6px;
	margin: 0 0 var(--cro-s5);
}

.cro-hero__swatches span {
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 5px;
	background: var(--cro-coral);
}

.cro-hero__swatches span:nth-child(2) {
	background: var(--cro-sunflower);
}

.cro-hero__swatches span:nth-child(3) {
	background: var(--cro-teal);
}

.cro-hero__swatches span:nth-child(4) {
	background: var(--cro-sky);
}

.cro-hero__swatches span:nth-child(5) {
	background: var(--cro-violet);
}

.cro-hero__swatches span:nth-child(6) {
	background: var(--cro-pink);
}

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

@media (min-width: 62em) {
	.cro-hero {
		padding-block: var(--cro-s10);
	}

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

.cro-hero__title {
	font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: var(--cro-s4);
	max-width: 17ch;
}

/* The text sits on the dot grid, so it gets a soft white halo behind it. */
.cro-hero__title,
.cro-hero__text {
	text-shadow: 0 0 6px var(--cro-surface), 0 0 12px var(--cro-surface), 0 0 18px var(--cro-surface);
}

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

.cro-hero .cro-button--secondary {
	background: var(--cro-surface);
}

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

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

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

.cro-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
}

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

.cro-topic {
	display: flex;
	flex-direction: column;
	gap: var(--cro-s2);
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-top: 5px solid var(--cro-cat);
	border-radius: var(--cro-radius);
	box-shadow: var(--cro-shadow-sm);
	padding: var(--cro-s5) var(--cro-s4);
	text-decoration: none;
	min-width: 0;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cro-topic:hover {
	box-shadow: var(--cro-shadow);
	transform: translateY(-2px);
}

.cro-topic__name {
	font-family: var(--cro-font-head);
	font-size: var(--cro-text-lg);
	font-weight: 700;
	color: var(--cro-ink);
}

.cro-topic:hover .cro-topic__name {
	color: var(--cro-cat-deep);
	text-decoration: underline;
}

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

.cro-topic__count {
	align-self: flex-start;
	margin-top: auto;
	background: var(--cro-cat-tint);
	border-radius: 999px;
	color: var(--cro-cat-deep);
	font-size: var(--cro-text-xs);
	font-weight: 700;
	padding: 0.2rem 0.65rem;
}

/* Closing call to action */
.cro-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cro-s5);
	align-items: center;
	position: relative;
	overflow: hidden;
	background: var(--cro-ink);
	border-radius: var(--cro-radius-lg);
	color: #e6e8f2;
	padding: var(--cro-s7) var(--cro-s5);
}

/* Six-color strip along the top edge of the panel. */
.cro-cta::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: var(--cro-stripe);
}

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

.cro-cta__title {
	color: var(--cro-surface);
	margin-bottom: var(--cro-s3);
}

.cro-cta__text {
	color: #e6e8f2;
	margin: 0;
	max-width: 54ch;
}

/* Dark ink text on sunflower: about 7.5:1. */
.cro-cta .cro-button {
	background: var(--cro-sunflower);
	border-color: var(--cro-sunflower);
	color: var(--cro-ink);
}

.cro-cta .cro-button:hover,
.cro-cta .cro-button:focus {
	background: var(--cro-surface);
	border-color: var(--cro-surface);
	color: var(--cro-ink);
}

.cro-cta :focus-visible {
	outline-color: var(--cro-sunflower);
}

/* --------------------------------------------------------------------------
   12. Article
   -------------------------------------------------------------------------- */

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

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

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

.cro-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--cro-line-strong);
	font-weight: 700;
}

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

.cro-breadcrumbs a:hover {
	color: var(--cro-accent);
}

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

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

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

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

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

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

.cro-article__figure img {
	border: 1px solid var(--cro-line);
	border-radius: var(--cro-radius);
	width: 100%;
}

/* Figures and captions */
.cro-article__figure figcaption,
.cro-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--cro-s3);
	padding-left: var(--cro-s3);
	border-left: 3px solid var(--cro-cat);
	color: var(--cro-ink-muted);
	font-size: var(--cro-text-sm);
	line-height: var(--cro-leading-snug);
	text-align: left;
}

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

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

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

.cro-content h2 {
	margin-top: var(--cro-s8);
	padding-bottom: var(--cro-s3);
	background: var(--cro-swatches) left bottom / 3.5rem 5px no-repeat;
}

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

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

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

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

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

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

.cro-content ul:not([class]) > li::marker {
	color: var(--cro-line-strong);
}

/* Ordered lists are the tutorial steps: bold numbers, room to breathe and a
   hairline between top-level steps. */
.cro-content ol {
	padding-left: 1.75em;
}

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

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

.cro-content > ol > li + li {
	margin-top: var(--cro-s3);
	padding-top: var(--cro-s3);
	border-top: 1px solid var(--cro-line);
}

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

.cro-content img {
	border: 1px solid var(--cro-line);
	border-radius: var(--cro-radius);
	background-color: var(--cro-surface);
}

.cro-content a {
	text-decoration: underline;
}

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

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

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

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

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

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

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

.cro-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: #f8f7f4;
}

.cro-content thead th,
.wp-block-table thead th {
	background: var(--cro-bg-deep);
	border-bottom: 2px solid var(--cro-teal);
	color: var(--cro-ink);
	font-size: var(--cro-text-xs);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cro-content tbody th {
	font-weight: 700;
}

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

/* Callouts — used in article content and available in the block editor */
.cro-callout {
	position: relative;
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-left: 5px solid var(--cro-sky);
	border-radius: var(--cro-radius);
	padding: var(--cro-s5);
	margin-block: var(--cro-s6);
	min-width: 0;
}

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

.cro-callout__title {
	display: flex;
	align-items: center;
	gap: var(--cro-s2);
	font-size: var(--cro-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cro-accent);
	margin-bottom: var(--cro-s2);
}

/* Small shape before the title: a dot for tips, a triangle for safety. */
.cro-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: currentColor;
}

.cro-callout--tip {
	background: var(--cro-teal-tint);
	border-color: #c5e6e0;
	border-left-color: var(--cro-teal);
}

.cro-callout--tip .cro-callout__title {
	color: var(--cro-accent);
}

.cro-callout--warning {
	background: var(--cro-coral-tint);
	border-color: #f6cdc6;
	border-left-color: var(--cro-coral);
}

/* Deep coral on the coral tint: about 5:1. */
.cro-callout--warning .cro-callout__title {
	color: #b23a2a;
}

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

/* "At a glance" card (difficulty, time, best for, space needed, what you
   need). The inset shadow draws the category color along the top edge. */
.cro-tutorial-facts {
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-radius: var(--cro-radius);
	box-shadow: inset 0 5px 0 var(--cro-cat), var(--cro-shadow-sm);
	padding: calc(var(--cro-s5) + 5px) var(--cro-s5) var(--cro-s5);
	margin-bottom: var(--cro-s6);
	min-width: 0;
}

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

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

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

.cro-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--cro-teal-tint);
	border-radius: var(--cro-radius-sm);
	color: #14756a;
}

/* Each fact gets its own color, like a row of labeled bins. */
.cro-facts__item:nth-child(4n + 2) .cro-facts__icon {
	background: var(--cro-coral-tint);
	color: #b23a2a;
}

.cro-facts__item:nth-child(4n + 3) .cro-facts__icon {
	background: var(--cro-sky-tint);
	color: #1c6399;
}

.cro-facts__item:nth-child(4n + 4) .cro-facts__icon {
	background: var(--cro-violet-tint);
	color: #4f41a8;
}

.cro-facts__icon .cro-icon {
	width: 1.25rem;
	height: 1.25rem;
}

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

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

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

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

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

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

.cro-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.55em;
	background: var(--cro-teal);
	border-radius: 1px;
}

/* Table of contents */
.cro-toc {
	background: var(--cro-accent-soft);
	border: 1px solid var(--cro-line);
	border-radius: var(--cro-radius);
	padding: var(--cro-s5);
	margin-bottom: var(--cro-s6);
}

.cro-toc__title {
	margin-bottom: var(--cro-s3);
}

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

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

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

.cro-toc > ol > li > a::before {
	content: counter(cro-toc) ". ";
	color: var(--cro-accent);
	font-weight: 700;
}

.cro-toc a {
	color: var(--cro-ink);
	text-decoration: underline;
	text-decoration-color: var(--cro-teal);
}

.cro-toc a:hover {
	color: var(--cro-accent-hover);
	text-decoration-color: currentColor;
}

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

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

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

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

.cro-faq > h2 {
	padding-bottom: var(--cro-s3);
	margin-bottom: var(--cro-s5);
	background: var(--cro-swatches) left bottom / 3.5rem 5px no-repeat;
}

.cro-faq__item {
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-left: 5px solid var(--cro-violet);
	border-radius: var(--cro-radius);
	margin-bottom: var(--cro-s3);
	padding: var(--cro-s4) var(--cro-s5);
}

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

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

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

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

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

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

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

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

@media (min-width: 48em) {
	.cro-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. */
	.cro-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.cro-post-nav__link {
	display: block;
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-radius: var(--cro-radius);
	padding: var(--cro-s4) var(--cro-s5);
	text-decoration: none;
	height: 100%;
}

.cro-post-nav__link:hover {
	border-color: var(--cro-line-strong);
	background: var(--cro-accent-soft);
}

.cro-post-nav__direction {
	display: block;
	font-size: var(--cro-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cro-ink-muted);
	margin-bottom: var(--cro-s2);
}

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

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

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

/* --------------------------------------------------------------------------
   13. Sidebar and widgets
   -------------------------------------------------------------------------- */

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

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

.cro-widget {
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-top: 5px solid var(--cro-cat);
	border-radius: var(--cro-radius);
	padding: var(--cro-s5);
	font-size: var(--cro-text-base);
}

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

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

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

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

.cro-widget a:hover {
	color: var(--cro-accent);
	text-decoration: underline;
}

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

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

.cro-archive-header {
	margin-bottom: var(--cro-s7);
	padding-bottom: var(--cro-s5);
	border-bottom: 1px solid var(--cro-line);
}

.cro-archive-header__title {
	margin-bottom: var(--cro-s3);
	padding-bottom: var(--cro-s4);
	background: var(--cro-swatches) left bottom / 4.5rem 6px no-repeat;
}

/* A category archive wears its category color: a tinted panel with a thick
   colored edge and a solid bar under the title. */
.cro-archive-header[data-cro-cat] {
	background: var(--cro-cat-tint);
	border: 0;
	border-left: 6px solid var(--cro-cat);
	border-radius: var(--cro-radius);
	padding: var(--cro-s5);
}

.cro-archive-header[data-cro-cat] .cro-archive-header__title {
	background: linear-gradient(var(--cro-cat), var(--cro-cat)) left bottom / 3rem 6px no-repeat;
}

.cro-archive-header[data-cro-cat] .cro-archive-header__description {
	color: var(--cro-ink);
}

.cro-archive-header[data-cro-cat] .cro-archive-header__count {
	color: var(--cro-cat-deep);
	font-weight: 700;
}

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

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

.cro-archive-header__count {
	margin: var(--cro-s3) 0 0;
	color: var(--cro-ink-muted);
	font-size: var(--cro-text-sm);
}

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

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

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

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

.cro-pagination li {
	margin: 0;
}

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

.cro-pagination a.page-numbers:hover {
	background: var(--cro-accent-soft);
	border-color: var(--cro-accent);
	color: var(--cro-ink);
}

.cro-pagination span.page-numbers.current {
	background: var(--cro-ink);
	border-color: var(--cro-ink);
	color: var(--cro-surface);
}

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

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

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

.cro-no-results {
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	box-shadow: var(--cro-shadow-sm);
	border-radius: var(--cro-radius);
	padding: var(--cro-s6) var(--cro-s5);
}

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

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

.cro-no-results__suggestions li {
	padding-left: 1.3em;
	position: relative;
}

.cro-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--cro-teal);
	border-radius: 1px;
}

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

.cro-error-404__code {
	display: inline-block;
	font-family: var(--cro-font-head);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	font-weight: 800;
	line-height: 1;
	color: var(--cro-cat);
	margin: 0 0 var(--cro-s5);
	padding-bottom: var(--cro-s3);
	background: var(--cro-swatches) center bottom / 100% 6px no-repeat;
}

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

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

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

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

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

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

.cro-page__header .cro-page__title {
	margin-bottom: 0;
	padding-bottom: var(--cro-s4);
	background: var(--cro-swatches) left bottom / 4.5rem 6px no-repeat;
}

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

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

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

.cro-form-notice--success {
	background: #eef7ef;
	border-color: #9cc5a1;
	color: #1f5128;
}

.cro-form-notice--error {
	background: #fdeeec;
	border-color: #e3a79e;
	color: #7d2418;
}

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

.cro-form {
	max-width: 38rem;
	background: var(--cro-surface);
	border: 1px solid var(--cro-line);
	border-top: 5px solid var(--cro-cat);
	border-radius: var(--cro-radius);
	padding: var(--cro-s5);
}

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

.cro-form input[aria-invalid="true"],
.cro-form textarea[aria-invalid="true"] {
	border-color: #b3372a;
	border-width: 2px;
}

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

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

/* --------------------------------------------------------------------------
   16. Comments
   -------------------------------------------------------------------------- */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.cro-site-footer {
	background: var(--cro-bg-deep);
	margin-top: auto;
	padding-bottom: var(--cro-s6);
}

/* Six-color strip along the top of the footer. */
.cro-site-footer::before {
	content: "";
	display: block;
	height: 4px;
	margin-bottom: var(--cro-s8);
	background: var(--cro-stripe);
}

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

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

.cro-footer__about p {
	color: var(--cro-ink-soft);
	font-size: var(--cro-text-base);
	max-width: 44ch;
	margin-bottom: 0;
}

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

.cro-footer__heading {
	font-family: var(--cro-font-body);
	font-size: var(--cro-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cro-ink-soft);
	margin: 0 0 var(--cro-s3);
}

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

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

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

.cro-footer__menu a {
	display: inline-block;
	padding-block: var(--cro-s1);
	color: var(--cro-ink-soft);
	text-decoration: none;
}

.cro-footer__menu a:hover {
	color: var(--cro-accent-hover);
	text-decoration: underline;
}

.cro-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--cro-s3);
	padding-top: var(--cro-s5);
	border-top: 1px solid var(--cro-line-strong);
	color: var(--cro-ink-muted);
	font-size: var(--cro-text-sm);
}

.cro-footer__bottom p {
	margin: 0;
}

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

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

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

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

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

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

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

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--cro-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(--cro-radius);
}

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

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

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

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

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

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

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

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

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