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

   Look: modern focused workspace — white and mist surfaces, ink navy text,
   one focus-blue accent, hairline borders, small radii and plenty of space.
   Amber and sage appear only as small secondary accents.

   Contrast reference (WCAG AA, calculated):
     ink        #1f2a37 on white / mist #eef2f5 ...... 14.5:1 / 12.8:1
     slate      #4b5b6b on white / mist / pale blue .. 7.0:1 / 6.2:1 / 5.6:1
     muted      #5b6b7b on white / mist .............. 5.5:1 / 4.9:1
     focus blue #2563a8 on white / mist / pale blue .. 6.1:1 / 5.4:1 / 4.9:1
     blue deep  #1b4b82 on pale blue #dbe7f5 ......... 7.0:1
     white      on focus blue #2563a8 ................ 6.1:1
     white      on ink #1f2a37 ....................... 14.5:1
     footer text #c5d0db on ink #1f2a37 .............. 9.2:1
   ========================================================================== */

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

:root {
	/* Colour — raw palette */
	--hoo-navy: #1f2a37;
	--hoo-slate: #4b5b6b;
	--hoo-mist: #eef2f5;
	--hoo-white: #ffffff;
	--hoo-blue: #2563a8;
	--hoo-blue-deep: #1b4b82;
	--hoo-blue-pale: #dbe7f5;
	--hoo-blue-wash: #f3f7fc;
	--hoo-amber: #e9a23b;
	--hoo-amber-soft: #fdf4e3;
	--hoo-amber-deep: #7a4a06;
	--hoo-sage: #8fb0a0;
	--hoo-sage-soft: #eef4f1;
	--hoo-sage-deep: #2f5a48;

	/* Colour — roles */
	--hoo-paper: var(--hoo-white);
	--hoo-paper-deep: var(--hoo-mist);
	--hoo-surface: var(--hoo-white);
	--hoo-ink: var(--hoo-navy);
	--hoo-ink-soft: var(--hoo-slate);
	--hoo-ink-muted: #5b6b7b;
	--hoo-line: #dde4ea;
	--hoo-line-strong: #8494a4;
	--hoo-accent: var(--hoo-blue);
	--hoo-accent-hover: var(--hoo-blue-deep);
	--hoo-accent-soft: var(--hoo-blue-pale);
	--hoo-second: var(--hoo-sage-deep);
	--hoo-second-soft: var(--hoo-sage-soft);
	--hoo-focus: var(--hoo-blue);

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

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

	--hoo-leading-tight: 1.18;
	--hoo-leading-snug: 1.35;
	--hoo-leading-normal: 1.65;
	--hoo-leading-relaxed: 1.75;

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

	/* Shape and shadow */
	--hoo-radius-sm: 4px;
	--hoo-radius: 6px;
	--hoo-radius-lg: 10px;
	--hoo-shadow-sm: 0 1px 2px rgba(31, 42, 55, 0.05);
	--hoo-shadow: 0 6px 20px rgba(31, 42, 55, 0.08);
	--hoo-shadow-lg: 0 16px 40px rgba(31, 42, 55, 0.12);

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

	/* Space kept clear above in-page anchors and sticky elements. The header
	   itself scrolls with the page; raise this value if it is ever pinned. */
	--hoo-sticky-offset: 1.5rem;

	color-scheme: light;
}

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

/* --------------------------------------------------------------------------
   2. Light reset
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--hoo-sticky-offset);
}

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

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

body {
	margin: 0;
	background-color: var(--hoo-paper);
	color: var(--hoo-ink);
	font-family: var(--hoo-font-body);
	font-size: var(--hoo-text-md);
	line-height: var(--hoo-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: 1px solid var(--hoo-line);
	margin: var(--hoo-s7) 0;
}

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

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

h1 {
	font-size: clamp(1.875rem, 1.35rem + 2.3vw, var(--hoo-text-4xl));
	letter-spacing: -0.028em;
}

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

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, var(--hoo-text-xl));
	letter-spacing: -0.012em;
}

h4 {
	font-size: var(--hoo-text-lg);
	letter-spacing: -0.01em;
}

h5,
h6 {
	font-size: var(--hoo-text-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hoo-ink-soft);
}

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

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

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

strong,
b {
	font-weight: 700;
}

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

mark {
	background: #fbe6bd;
	color: var(--hoo-ink);
	padding: 0 0.15em;
	border-radius: 2px;
}

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

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

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

blockquote {
	margin: var(--hoo-s6) 0;
	padding: var(--hoo-s4) var(--hoo-s5);
	background: var(--hoo-blue-wash);
	border-left: 3px solid var(--hoo-accent);
	border-radius: 0 var(--hoo-radius) var(--hoo-radius) 0;
	font-size: var(--hoo-text-lg);
	color: var(--hoo-ink);
}

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

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

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

/* A two-tone ring: visible on white, mist, pale blue and on the navy footer. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--hoo-focus);
	outline-offset: 2px;
	border-radius: 2px;
	box-shadow: 0 0 0 2px var(--hoo-white);
}

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

.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(--hoo-ink);
	border-radius: var(--hoo-radius-sm);
	box-shadow: var(--hoo-shadow);
	clip-path: none;
	color: var(--hoo-white);
	display: block;
	font-size: var(--hoo-text-base);
	font-weight: 700;
	height: auto;
	left: var(--hoo-s4);
	line-height: normal;
	outline-color: var(--hoo-amber);
	padding: var(--hoo-s3) var(--hoo-s4);
	text-decoration: none;
	top: var(--hoo-s4);
	width: auto;
	z-index: 100000;
}

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

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

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

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

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

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

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

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

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

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

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

@media (min-width: 62em) {
	.hoo-section {
		margin-block: var(--hoo-s10);
	}

	.hoo-section:first-child {
		margin-top: var(--hoo-s9);
	}
}

/* Section heading: title on the left with a short blue marker, "View all"
   on the right, description on its own line underneath. */
.hoo-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hoo-s2) var(--hoo-s4);
	margin-bottom: var(--hoo-s6);
}

.hoo-section__title {
	display: flex;
	align-items: center;
	gap: var(--hoo-s3);
	margin: 0;
	font-size: var(--hoo-text-2xl);
}

.hoo-section__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.375rem;
	height: 1.15em;
	border-radius: 2px;
	background: var(--hoo-accent);
}

.hoo-section__description {
	flex: 0 0 100%;
	order: 3;
	margin: 0;
	max-width: 62ch;
	color: var(--hoo-ink-soft);
	font-size: var(--hoo-text-base);
}

.hoo-section__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0 var(--hoo-s3);
	border: 1px solid var(--hoo-line);
	border-radius: 999px;
	background: var(--hoo-surface);
	font-size: var(--hoo-text-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.hoo-section__link:hover,
.hoo-section__link:focus {
	background: var(--hoo-accent-soft);
	border-color: var(--hoo-accent-soft);
}

.hoo-section__link::after {
	content: "\2192";
	margin-left: 0.4em;
}

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

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

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

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

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

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

.hoo-branding__title {
	font-size: var(--hoo-text-lg);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	letter-spacing: -0.02em;
}

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

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

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

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

@media (min-width: 62em) {
	.hoo-branding__title {
		font-size: var(--hoo-text-xl);
	}
}

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

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

.hoo-menu-toggle:hover,
.hoo-menu-toggle[aria-expanded="true"] {
	background: var(--hoo-paper-deep);
	border-color: var(--hoo-ink);
	color: var(--hoo-ink);
}

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

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

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

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

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

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

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

.hoo-nav__list li {
	position: relative;
}

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

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

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

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

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

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

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

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

	.hoo-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. */
	.hoo-header__panel,
	.hoo-header__panel.is-open {
		display: contents;
	}

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

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

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

	.hoo-nav__list a {
		border-bottom: 0;
		padding: var(--hoo-s3) var(--hoo-s3);
		font-size: var(--hoo-text-sm);
		color: var(--hoo-ink-soft);
		white-space: nowrap;
		box-shadow: inset 0 -2px 0 transparent;
		transition: color 0.15s ease, box-shadow 0.15s ease;
	}

	.hoo-nav__list a:hover {
		color: var(--hoo-ink);
		box-shadow: inset 0 -2px 0 var(--hoo-line-strong);
	}

	.hoo-nav .current-menu-item > a,
	.hoo-nav .current-menu-ancestor > a,
	.hoo-nav .current_page_item > a {
		color: var(--hoo-ink);
		box-shadow: inset 0 -2px 0 var(--hoo-accent);
	}

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

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

	.hoo-nav__list .sub-menu a {
		padding: var(--hoo-s2) var(--hoo-s3);
		border-radius: var(--hoo-radius-sm);
		white-space: normal;
		box-shadow: none;
	}

	.hoo-nav__list .sub-menu a:hover {
		background: var(--hoo-paper-deep);
		box-shadow: none;
	}
}

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

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

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

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

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

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

.hoo-required {
	color: #a4301f;
}

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

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

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

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

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

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

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

.hoo-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(--hoo-navy);
	border: 1px solid var(--hoo-navy);
	border-radius: var(--hoo-radius);
	color: var(--hoo-white);
	cursor: pointer;
	padding: 0 var(--hoo-s3);
}

.hoo-search-form__submit:hover,
.hoo-search-form__submit:focus {
	background: var(--hoo-accent);
	border-color: var(--hoo-accent);
	color: var(--hoo-white);
}

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

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

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

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

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

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

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

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

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

.hoo-eyebrow {
	display: inline-block;
	font-size: var(--hoo-text-xs);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--hoo-accent);
	text-decoration: none;
	margin-bottom: var(--hoo-s2);
}

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

.hoo-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--hoo-s1);
	min-height: 2.25rem;
	background: var(--hoo-paper-deep);
	border: 1px solid var(--hoo-line);
	border-radius: 999px;
	color: var(--hoo-ink);
	font-size: var(--hoo-text-sm);
	font-weight: 600;
	padding: 0.3rem 0.9rem;
	text-decoration: none;
}

a.hoo-chip:hover,
a.hoo-chip:focus {
	background: var(--hoo-accent-soft);
	border-color: var(--hoo-accent-soft);
	color: var(--hoo-accent-hover);
}

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

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

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

.hoo-meta a {
	color: inherit;
}

.hoo-meta svg {
	flex: 0 0 auto;
	color: var(--hoo-line-strong);
}

.hoo-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
   -------------------------------------------------------------------------- */

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

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

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

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

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

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

.hoo-card:hover,
.hoo-card:focus-within {
	border-color: #b7cbe4;
	box-shadow: var(--hoo-shadow);
}

.hoo-card:hover {
	transform: translateY(-2px);
}

/* Every thumbnail is cropped to the same 16:9 frame, in grids and in lists. */
.hoo-card__media,
.hoo-card-row__media {
	display: block;
	background: var(--hoo-paper-deep);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.hoo-card__media {
	border-bottom: 1px solid var(--hoo-line);
}

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

/* Posts without a featured image get a plain tinted panel with a faint grid. */
.hoo-card__media--placeholder,
.hoo-card-row__media--placeholder {
	background:
		linear-gradient(var(--hoo-line) 1px, transparent 1px) 0 0 / 100% 1.5rem,
		linear-gradient(90deg, var(--hoo-line) 1px, transparent 1px) 0 0 / 1.5rem 100%,
		var(--hoo-paper-deep);
}

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

.hoo-card__body .hoo-eyebrow {
	margin-bottom: 0;
}

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

.hoo-card__title {
	font-size: var(--hoo-text-lg);
	line-height: var(--hoo-leading-snug);
	letter-spacing: -0.012em;
	margin: 0;
}

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

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

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

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

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

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

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

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

.hoo-card-row__media {
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius);
}

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

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

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

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

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

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

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

.hoo-steps > li::before {
	content: counter(hoo-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--hoo-accent);
	border-radius: var(--hoo-radius);
	color: var(--hoo-white);
	font-size: var(--hoo-text-lg);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

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

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

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

.hoo-hero {
	background:
		linear-gradient(180deg, var(--hoo-mist) 0%, var(--hoo-blue-wash) 100%);
	border-bottom: 1px solid var(--hoo-line);
	padding-block: var(--hoo-s8);
}

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

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

	.hoo-hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: var(--hoo-s9);
	}
}

.hoo-hero__title {
	font-size: clamp(2.125rem, 1.4rem + 3.1vw, 3.375rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-bottom: var(--hoo-s5);
	max-width: 15ch;
}

/* A short amber rule under the headline: the only amber on the page head. */
.hoo-hero__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: var(--hoo-s5);
	border-radius: 2px;
	background: var(--hoo-amber);
}

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

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

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

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

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

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

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

.hoo-topic:hover,
.hoo-topic:focus {
	border-color: #b7cbe4;
	box-shadow: var(--hoo-shadow);
}

.hoo-topic:hover {
	transform: translateY(-2px);
}

.hoo-topic__name {
	font-size: var(--hoo-text-lg);
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--hoo-ink);
}

.hoo-topic:hover .hoo-topic__name {
	color: var(--hoo-accent);
}

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

.hoo-topic__count {
	margin-top: auto;
	padding-top: var(--hoo-s2);
	color: var(--hoo-ink-muted);
	font-size: var(--hoo-text-xs);
}

/* Closing call to action */
.hoo-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hoo-s5);
	align-items: center;
	background: var(--hoo-accent-soft);
	border-left: 4px solid var(--hoo-accent);
	border-radius: var(--hoo-radius-lg);
	color: var(--hoo-ink);
	padding: var(--hoo-s6) var(--hoo-s5);
}

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

.hoo-cta__title {
	color: var(--hoo-ink);
	margin-bottom: var(--hoo-s3);
}

.hoo-cta__text {
	color: var(--hoo-ink-soft);
	margin: 0;
	max-width: 54ch;
}

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

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

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

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

.hoo-breadcrumbs li + li::before {
	content: "/";
	color: var(--hoo-line-strong);
}

.hoo-breadcrumbs a {
	color: var(--hoo-ink-soft);
	text-decoration: none;
}

.hoo-breadcrumbs a:hover,
.hoo-breadcrumbs a:focus {
	color: var(--hoo-accent);
	text-decoration: underline;
}

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

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

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

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

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

/* Featured image: shown once, at the top of the article, in a 16:9 frame that
   reserves its space before the file arrives. */
.hoo-article__figure {
	max-width: 56rem;
	margin-bottom: var(--hoo-s6);
}

.hoo-article__figure img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--hoo-paper-deep);
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius-lg);
}

/* Captions. Article bodies carry no images on this site; these rules only
   keep a caption tidy if an editor ever adds one. */
.hoo-article__figure figcaption,
.hoo-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--hoo-s2);
	color: var(--hoo-ink-muted);
	font-size: var(--hoo-text-sm);
	line-height: var(--hoo-leading-snug);
	text-align: left;
}

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

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

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

.hoo-content > .hoo-table-wrap,
.hoo-content > .wp-block-table,
.hoo-content > table {
	max-width: min(100%, 56rem);
}

.hoo-content h2 {
	margin-top: var(--hoo-s8);
	padding-top: var(--hoo-s5);
	border-top: 1px solid var(--hoo-line);
}

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

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

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

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

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

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

.hoo-content ul:not([class]) > li::marker {
	color: var(--hoo-accent);
}

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

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

.hoo-content ol > li::marker {
	color: var(--hoo-accent);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Callouts — used in article content and available in the block editor.
   Plain = note (pale blue), --tip = sage, --warning = amber. */
.hoo-callout {
	position: relative;
	background: var(--hoo-blue-wash);
	border: 1px solid var(--hoo-accent-soft);
	border-left: 4px solid var(--hoo-accent);
	border-radius: var(--hoo-radius);
	padding: var(--hoo-s5);
	margin-block: var(--hoo-s6);
}

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

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

/* Small shape before the title: a square for notes, a dot for tips, a
   triangle for warnings — the meaning never rests on colour alone. */
.hoo-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 2px;
	background: currentColor;
}

.hoo-callout--tip {
	background: var(--hoo-sage-soft);
	border-color: #d3e2da;
	border-left-color: var(--hoo-sage);
}

.hoo-callout--tip .hoo-callout__title {
	color: var(--hoo-sage-deep);
}

.hoo-callout--tip .hoo-callout__title::before {
	border-radius: 50%;
}

.hoo-callout--warning {
	background: var(--hoo-amber-soft);
	border-color: #f3dcae;
	border-left-color: var(--hoo-amber);
}

.hoo-callout--warning .hoo-callout__title {
	color: var(--hoo-amber-deep);
}

.hoo-callout--warning .hoo-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;
}

/* Tutorial facts (difficulty, time, area, best for, what you need) */
.hoo-tutorial-facts {
	background: var(--hoo-surface);
	border: 1px solid var(--hoo-line);
	border-top: 3px solid var(--hoo-accent);
	border-radius: var(--hoo-radius);
	box-shadow: var(--hoo-shadow-sm);
	padding: var(--hoo-s5);
	margin-bottom: var(--hoo-s6);
	max-width: 56rem;
}

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

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

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

.hoo-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--hoo-accent-soft);
	border-radius: var(--hoo-radius);
	color: var(--hoo-accent-hover);
}

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

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

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

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

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

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

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

/* A small check mark drawn with two borders. */
.hoo-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.4rem;
	height: 0.72rem;
	margin: 0.3em 0.2rem 0 0.2rem;
	border: solid var(--hoo-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Table of contents */
.hoo-toc {
	background: var(--hoo-paper-deep);
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius);
	padding: var(--hoo-s5);
	margin-bottom: var(--hoo-s6);
	max-width: 56rem;
}

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

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

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

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

.hoo-toc > ol > li > a::before {
	content: counter(hoo-toc) ". ";
	color: var(--hoo-accent);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hoo-toc a {
	color: var(--hoo-ink);
	text-decoration: none;
}

.hoo-toc a:hover,
.hoo-toc a:focus {
	color: var(--hoo-accent);
	text-decoration: underline;
}

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

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

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

/* FAQ */
.hoo-faq {
	margin-top: var(--hoo-s8);
	padding-top: var(--hoo-s6);
	border-top: 1px solid var(--hoo-line);
	max-width: 56rem;
}

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

.hoo-faq__item {
	background: var(--hoo-surface);
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius);
	margin-bottom: var(--hoo-s3);
	padding: var(--hoo-s5);
}

.hoo-faq__question {
	position: relative;
	font-size: var(--hoo-text-lg);
	font-weight: 700;
	margin: 0 0 var(--hoo-s2);
	padding-left: var(--hoo-s4);
}

.hoo-faq__question::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 4px;
	height: 1em;
	border-radius: 2px;
	background: var(--hoo-accent);
}

.hoo-faq__answer {
	color: var(--hoo-ink-soft);
	max-width: var(--hoo-measure);
	padding-left: var(--hoo-s4);
}

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

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

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

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

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

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

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

.hoo-post-nav__link {
	display: block;
	background: var(--hoo-surface);
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius);
	padding: var(--hoo-s4) var(--hoo-s5);
	text-decoration: none;
	height: 100%;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hoo-post-nav__link:hover,
.hoo-post-nav__link:focus {
	border-color: var(--hoo-accent);
	background: var(--hoo-blue-wash);
}

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

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

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

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

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

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

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

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

.hoo-widget__title,
.hoo-widget .widget-title {
	font-size: var(--hoo-text-sm);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--hoo-ink-soft);
	margin: 0 0 var(--hoo-s4);
	padding-bottom: var(--hoo-s3);
	border-bottom: 2px solid var(--hoo-navy);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hoo-pagination li {
	margin: 0;
}

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

.hoo-pagination a.page-numbers:hover,
.hoo-pagination a.page-numbers:focus {
	border-color: var(--hoo-accent);
	color: var(--hoo-accent);
}

.hoo-pagination span.page-numbers.current {
	background: var(--hoo-accent);
	border-color: var(--hoo-accent);
	color: var(--hoo-white);
}

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

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

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

.hoo-no-results {
	background: var(--hoo-paper-deep);
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius-lg);
	padding: var(--hoo-s6) var(--hoo-s5);
}

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

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

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

.hoo-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--hoo-accent);
	border-radius: 2px;
}

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

.hoo-error-404__code {
	display: inline-block;
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--hoo-accent);
	margin: 0 0 var(--hoo-s5);
	padding-bottom: var(--hoo-s3);
	border-bottom: 4px solid var(--hoo-amber);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.hoo-form {
	max-width: 38rem;
	background: var(--hoo-surface);
	border: 1px solid var(--hoo-line);
	border-radius: var(--hoo-radius-lg);
	box-shadow: var(--hoo-shadow-sm);
	padding: var(--hoo-s5);
}

@media (min-width: 48em) {
	.hoo-form {
		padding: var(--hoo-s6);
	}
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hoo-site-footer {
	background: var(--hoo-navy);
	border-top: 4px solid var(--hoo-accent);
	color: #c5d0db;
	margin-top: auto;
	padding-block: var(--hoo-s8) var(--hoo-s6);
}

/* On the navy footer the focus ring switches to amber. */
.hoo-site-footer :focus-visible {
	outline-color: var(--hoo-amber);
	box-shadow: none;
}

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

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

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

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

.hoo-footer__heading {
	font-size: var(--hoo-text-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #9fb0c0;
	margin: 0 0 var(--hoo-s3);
}

.hoo-footer__about .hoo-footer__heading {
	font-size: var(--hoo-text-xl);
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--hoo-white);
}

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

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

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

.hoo-footer__menu a:hover,
.hoo-footer__menu a:focus {
	color: var(--hoo-white);
	text-decoration: underline;
	text-decoration-color: var(--hoo-amber);
	text-decoration-thickness: 2px;
}

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

.hoo-footer__bottom p {
	margin: 0;
}

.hoo-site-footer a {
	color: #e6ecf2;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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