/*
 * Small Apartment Decor — main stylesheet.
 *
 * One file, no framework, system fonts only. The visual idea is the floor
 * plan: thin architectural lines, cards that read as rooms, arched shapes
 * borrowed from mirrors and doorways, and a warm, bright palette.
 *
 * Contents
 *  1. Tokens            8. Cards and grids      15. Archives, search, 404
 *  2. Base              9. Homepage             16. Pages and forms
 *  3. Accessibility    10. Breadcrumbs          17. Comments
 *  4. Layout           11. Article              18. Sidebar and widgets
 *  5. Header           12. Article body         19. Ad slots (off by default)
 *  6. Forms, buttons   13. At a glance, TOC     20. Footer
 *  7. Small parts      14. FAQ, post nav        21. WordPress classes, print
 *
 * The header breakpoint (62em) must match assets/js/navigation.js and the
 * <noscript> block in header.php.
 */

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

:root {
	--apd-bg: #fbf7f1;
	--apd-surface: #ffffff;
	--apd-linen: #f1e9dd;
	--apd-line: #e3d8c8;
	--apd-line-strong: #cbbda6;
	--apd-field-border: #948a78;
	--apd-text: #2b3440;
	--apd-muted: #5d6672;
	--apd-pine: #1f4b4a;
	--apd-pine-deep: #163837;
	--apd-pine-soft: #e3eeea;
	--apd-apricot: #e8825a;
	--apd-rust: #b4532c;
	--apd-rust-deep: #8a3d1c;
	--apd-blush: #f1cfc3;
	--apd-blush-soft: #fbeee8;
	--apd-sage: #9db8a5;
	--apd-sage-soft: #e8f0ea;
	--apd-butter: #f2c85b;
	--apd-butter-soft: #fdf3d4;

	--apd-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--apd-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--apd-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--apd-radius-s: 10px;
	--apd-radius: 16px;
	--apd-radius-l: 28px;
	--apd-arch: 999px 999px 14px 14px;

	--apd-container: 75rem;
	--apd-narrow: 42rem;
	--apd-measure: 40.5rem;
	--apd-gutter: 1.25rem;

	--apd-shadow: 0 1px 2px rgba(43, 52, 64, 0.05), 0 14px 30px -20px rgba(43, 52, 64, 0.35);
	--apd-focus: #1f4b4a;
}

@media (min-width: 48em) {
	:root {
		--apd-gutter: 2rem;
	}
}

/* 2. Base
   ------------------------------------------------------------------------ */

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

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

body {
	margin: 0;
	background: var(--apd-bg);
	color: var(--apd-text);
	font-family: var(--apd-font-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

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

img,
video {
	height: auto;
}

img {
	display: block;
	border-style: none;
}

figure {
	margin: 0;
}

hr {
	height: 0;
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--apd-line);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--apd-text);
	font-family: var(--apd-font-serif);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 4.6vw, 3.1rem);
}

h2 {
	font-size: clamp(1.55rem, 3vw, 2.05rem);
}

h3 {
	font-size: 1.3rem;
}

h4 {
	font-size: 1.1rem;
}

h5,
h6 {
	font-size: 1rem;
}

p {
	margin: 0 0 1.25em;
}

a {
	color: var(--apd-pine);
	text-decoration: underline;
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.2em;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
	color: var(--apd-pine-deep);
	text-decoration-color: var(--apd-apricot);
	text-decoration-thickness: 0.12em;
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: 0.875em;
}

mark {
	padding: 0.05em 0.25em;
	border-radius: 4px;
	background: var(--apd-butter-soft);
	color: inherit;
}

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

code,
kbd,
samp {
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: var(--apd-linen);
}

pre {
	max-width: 100%;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	border-radius: var(--apd-radius-s);
	background: var(--apd-linen);
}

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

blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--apd-apricot);
	color: var(--apd-text);
	font-family: var(--apd-font-serif);
	font-size: 1.2rem;
	line-height: 1.5;
}

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

blockquote cite {
	display: block;
	margin-top: 0.6rem;
	color: var(--apd-muted);
	font-family: var(--apd-font-sans);
	font-size: 0.9rem;
	font-style: normal;
}

/* 3. Accessibility
   ------------------------------------------------------------------------ */

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

.apd-site-main:focus {
	outline: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.apd-skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip: auto;
	border-radius: 999px;
	background: var(--apd-pine);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	white-space: normal;
	outline: 3px solid var(--apd-butter);
	outline-offset: 2px;
}

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

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

	.apd-card:hover,
	.apd-topic:hover,
	.apd-post-nav__link:hover {
		transform: none !important;
	}
}

/* 4. Layout
   ------------------------------------------------------------------------ */

.apd-container {
	width: 100%;
	max-width: calc(var(--apd-container) + var(--apd-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--apd-gutter);
}

.apd-container--narrow {
	max-width: calc(var(--apd-narrow) + var(--apd-gutter) * 2);
}

.apd-site-main {
	display: block;
	padding-top: clamp(1.5rem, 4vw, 2.75rem);
	padding-bottom: clamp(3.5rem, 9vw, 6rem);
}

.apd-site-main--flush {
	padding-top: 0;
}

.apd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
}

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

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

.apd-section {
	margin-block: clamp(3.5rem, 8vw, 6rem);
}

.apd-section__head {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 0.5rem 1.5rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--apd-line-strong);
}

/* A short "wall" in apricot and a door-swing arc: the plan motif. */
.apd-section__head::before {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 3rem;
	height: 3px;
	border-radius: 3px;
	background: var(--apd-apricot);
}

.apd-section__head::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 3rem;
	width: 0.95rem;
	height: 0.95rem;
	border-top: 1px dashed var(--apd-line-strong);
	border-right: 1px dashed var(--apd-line-strong);
	border-radius: 0 100% 0 0;
	pointer-events: none;
}

.apd-section__title {
	grid-column: 1;
	margin: 0;
	font-size: clamp(1.65rem, 3.4vw, 2.3rem);
}

.apd-section__link {
	grid-column: 2;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	padding: 0.3rem 1rem;
	border: 1px solid var(--apd-pine);
	border-radius: 999px;
	color: var(--apd-pine);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.apd-section__link:hover {
	background: var(--apd-pine);
	color: #ffffff;
}

.apd-section__description {
	grid-column: 1 / -1;
	max-width: 40rem;
	margin: 0;
	color: var(--apd-muted);
	font-size: 1rem;
}

.apd-section:last-child {
	margin-bottom: 0;
}

/* Tinted sections: a "room" on the page. */
.apd-section--room {
	padding: clamp(1.25rem, 4vw, 3rem);
	border-radius: var(--apd-radius-l);
}

.apd-section--linen {
	background: var(--apd-linen);
}

.apd-section--sage {
	background: var(--apd-sage-soft);
}

.apd-section--blush {
	background: var(--apd-blush-soft);
}

@media (max-width: 29.99em) {
	.apd-section--room {
		margin-inline: -0.5rem;
		border-radius: 20px;
	}
}

/* 5. Header
   ------------------------------------------------------------------------ */

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

.apd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 0.85rem;
}

.apd-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

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

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

.apd-branding__title {
	margin: 0;
	font-family: var(--apd-font-serif);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.apd-branding__title a {
	color: var(--apd-pine-deep);
	text-decoration: none;
}

.apd-branding__title a:hover {
	color: var(--apd-pine);
}

.apd-branding__tagline {
	margin: 0.2rem 0 0;
	color: var(--apd-muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.custom-logo-link {
	display: block;
	flex: 0 0 auto;
}

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

@media (max-width: 29.99em) {
	.apd-branding__title {
		font-size: 1.1rem;
	}

	.apd-branding__tagline {
		display: none;
	}
}

.apd-menu-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--apd-line-strong);
	border-radius: 12px;
	background: var(--apd-bg);
	color: var(--apd-pine-deep);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.apd-menu-toggle:hover {
	border-color: var(--apd-pine);
}

.apd-menu-toggle__bars {
	position: relative;
	display: block;
	width: 1.15rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: background-color 0.15s ease;
}

.apd-menu-toggle__bars::before,
.apd-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--apd-pine-deep);
	transition: transform 0.2s ease;
}

.apd-menu-toggle__bars::before {
	transform: translateY(-6px);
}

.apd-menu-toggle__bars::after {
	transform: translateY(6px);
}

.apd-menu-toggle[aria-expanded="true"] .apd-menu-toggle__bars {
	background: transparent;
}

.apd-menu-toggle[aria-expanded="true"] .apd-menu-toggle__bars::before {
	transform: rotate(45deg);
}

.apd-menu-toggle[aria-expanded="true"] .apd-menu-toggle__bars::after {
	transform: rotate(-45deg);
}

@media (max-width: 23.99em) {
	.apd-menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

.apd-header__panel {
	display: none;
	padding-bottom: 1.25rem;
}

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

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

.apd-nav__list {
	border-top: 1px solid var(--apd-line);
}

.apd-nav__list li {
	position: relative;
	border-bottom: 1px solid var(--apd-line);
}

.apd-nav__list a {
	display: block;
	padding: 0.8rem 0.25rem;
	color: var(--apd-text);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.apd-nav__list a:hover {
	color: var(--apd-pine);
}

.apd-nav__list .sub-menu li:last-child {
	border-bottom: 0;
}

.apd-nav__list .sub-menu a {
	padding-left: 1.25rem;
	font-weight: 400;
}

.apd-nav .current-menu-item > a,
.apd-nav .current-menu-ancestor > a,
.apd-nav .current_page_item > a,
.apd-nav .current-post-ancestor > a {
	color: var(--apd-pine);
	box-shadow: inset 3px 0 0 var(--apd-apricot);
	padding-left: 0.85rem;
}

.apd-header__search {
	margin-top: 1.1rem;
}

.apd-nav--empty {
	margin: 0;
	padding: 0.75rem 0;
	font-size: 0.9rem;
}

@media (min-width: 62em) {
	.apd-header__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
		grid-template-areas:
			"brand search"
			"nav nav";
		align-items: center;
		column-gap: 2rem;
	}

	.apd-header__inner {
		grid-area: brand;
		padding-block: 1.15rem;
	}

	.apd-menu-toggle {
		display: none;
	}

	/* The panel dissolves: its children take their own places in the grid. */
	.apd-header__panel,
	.apd-header__panel.is-open {
		display: contents;
	}

	.apd-header__search {
		grid-area: search;
		margin-top: 0;
	}

	.apd-nav {
		grid-area: nav;
		min-width: 0;
		border-top: 1px solid var(--apd-line);
	}

	.apd-nav__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0.15rem 0.25rem;
		margin-inline: -0.85rem;
		padding-block: 0.5rem;
		border-top: 0;
	}

	.apd-nav__list li {
		border-bottom: 0;
	}

	.apd-nav__list a {
		padding: 0.5rem 0.85rem;
		border-radius: 999px;
		font-size: 0.95rem;
		transition: background-color 0.15s ease, color 0.15s ease;
	}

	.apd-nav__list a:hover {
		background: var(--apd-linen);
		color: var(--apd-pine-deep);
	}

	.apd-nav .current-menu-item > a,
	.apd-nav .current-menu-ancestor > a,
	.apd-nav .current_page_item > a,
	.apd-nav .current-post-ancestor > a {
		padding-left: 0.85rem;
		background: var(--apd-pine);
		box-shadow: none;
		color: #ffffff;
	}

	.apd-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		display: none;
		min-width: 14rem;
		padding: 0.5rem;
		border: 1px solid var(--apd-line);
		border-radius: var(--apd-radius);
		background: var(--apd-surface);
		box-shadow: var(--apd-shadow);
	}

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

	.apd-nav__list .sub-menu a {
		padding: 0.5rem 0.85rem;
		border-radius: var(--apd-radius-s);
	}
}

/* 6. Forms and buttons
   ------------------------------------------------------------------------ */

label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 0.95rem;
	border: 1px solid var(--apd-field-border);
	border-radius: 12px;
	background: var(--apd-surface);
	color: var(--apd-text);
	font: inherit;
	line-height: 1.4;
}

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

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

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

.apd-search-form {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem;
	border: 1px solid var(--apd-field-border);
	border-radius: 999px;
	background: var(--apd-surface);
}

.apd-search-form:focus-within {
	border-color: var(--apd-pine);
	box-shadow: 0 0 0 3px var(--apd-pine-soft);
}

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

.apd-search-form input[type="search"] {
	padding: 0.45rem 0.5rem 0.45rem 0.9rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 0.95rem;
	-webkit-appearance: none;
	appearance: none;
}

.apd-search-form input[type="search"]:focus-visible {
	outline-offset: 0;
}

.apd-search-form__submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--apd-pine);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.apd-search-form__submit:hover {
	background: var(--apd-pine-deep);
}

.apd-search-form__submit .apd-icon {
	width: 1.15rem;
	height: 1.15rem;
}

.apd-button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.7rem 1.6rem;
	border: 1.5px solid var(--apd-pine);
	border-radius: 999px;
	background: var(--apd-pine);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.apd-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	border-color: var(--apd-pine-deep);
	background: var(--apd-pine-deep);
	color: #ffffff;
}

.apd-button--secondary {
	background: transparent;
	color: var(--apd-pine);
}

.apd-button--secondary:hover {
	border-color: var(--apd-pine);
	background: var(--apd-pine-soft);
	color: var(--apd-pine-deep);
}

.apd-button--small {
	min-height: 2.5rem;
	padding: 0.4rem 1.1rem;
	font-size: 0.9rem;
}

.apd-button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 7. Small parts
   ------------------------------------------------------------------------ */

.apd-icon {
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.apd-eyebrow {
	display: inline-block;
	color: var(--apd-pine);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-decoration: none;
	text-transform: uppercase;
}

a.apd-eyebrow:hover {
	color: var(--apd-pine-deep);
	text-decoration: underline;
	text-decoration-color: var(--apd-apricot);
}

.apd-chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.35rem 1rem;
	border: 1px solid var(--apd-line-strong);
	border-radius: 999px;
	background: var(--apd-surface);
	color: var(--apd-text);
	font-size: 0.925rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

a.apd-chip:hover {
	border-color: var(--apd-pine);
	background: var(--apd-pine-soft);
	color: var(--apd-pine-deep);
}

.apd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.1rem;
	margin: 0;
	padding: 0;
	color: var(--apd-muted);
	font-size: 0.875rem;
	line-height: 1.4;
	list-style: none;
}

.apd-meta > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.1rem;
}

.apd-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.apd-meta svg {
	color: var(--apd-pine);
}

.apd-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

/* 8. Cards and grids
   ------------------------------------------------------------------------ */

.apd-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

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

@media (min-width: 44em) {
	.apd-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.apd-grid {
		gap: 2rem;
	}
}

@media (min-width: 75em) {
	.apd-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.apd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.apd-card:hover {
	border-color: var(--apd-line-strong);
	box-shadow: var(--apd-shadow);
	transform: translateY(-3px);
}

/* The picture hangs inside the card like a framed print. */
.apd-card__media {
	display: block;
	margin: 0.6rem 0.6rem 0;
	overflow: hidden;
	border-radius: var(--apd-radius-s);
	background: var(--apd-linen);
	aspect-ratio: 16 / 10;
}

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

.apd-card__media--placeholder,
.apd-card-row__media--placeholder {
	background-color: var(--apd-linen);
	background-image:
		linear-gradient(rgba(31, 75, 74, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31, 75, 74, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
}

.apd-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.1rem 1.25rem 1.3rem;
}

.apd-card__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.apd-grid--4 .apd-card__title {
	font-size: 1.15rem;
}

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

.apd-card__title a:hover,
.apd-card-row__title a:hover {
	color: var(--apd-pine);
	text-decoration: underline;
	text-decoration-color: var(--apd-apricot);
	text-decoration-thickness: 0.09em;
}

.apd-card__excerpt {
	margin: 0;
	color: var(--apd-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.apd-card__footer {
	margin-top: auto;
	padding-top: 0.8rem;
	border-top: 1px dashed var(--apd-line-strong);
}

/* Between one and three columns a card lies on its side. */
@media (min-width: 34em) and (max-width: 43.99em) {
	.apd-grid--3 > .apd-card {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: center;
	}

	.apd-grid--3 > .apd-card .apd-card__media {
		margin: 0.6rem 0 0.6rem 0.6rem;
	}
}

/* Numbered cards (Start Here): a small arched tab hangs from the top edge. */
.apd-grid--numbered {
	counter-reset: apd-step;
}

.apd-grid--numbered > .apd-card {
	counter-increment: apd-step;
}

.apd-grid--numbered > .apd-card::before {
	content: counter(apd-step, decimal-leading-zero);
	position: absolute;
	top: -1px;
	left: 1.35rem;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 2.5rem;
	height: 2.9rem;
	padding-bottom: 0.45rem;
	border-radius: 0 0 999px 999px;
	background: var(--apd-butter);
	color: var(--apd-text);
	font-family: var(--apd-font-serif);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
}

.apd-card-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.apd-card-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	padding: 0.75rem;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
}

.apd-card-row__media {
	display: block;
	overflow: hidden;
	border-radius: var(--apd-radius-s);
	background: var(--apd-linen);
	aspect-ratio: 4 / 3;
}

.apd-card-row__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	padding: 0.25rem 0.5rem 0.5rem;
}

.apd-card-row__title {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.25;
}

.apd-card-row__excerpt {
	margin: 0;
	color: var(--apd-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (min-width: 34em) {
	.apd-card-row {
		grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
		align-items: center;
		gap: 1.5rem;
	}

	.apd-card-row__body {
		padding: 0.5rem 0.75rem 0.5rem 0;
	}
}

/* 9. Homepage
   ------------------------------------------------------------------------ */

.apd-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--apd-line);
	background-color: var(--apd-linen);
	/* A faint plan grid. */
	background-image:
		linear-gradient(rgba(31, 75, 74, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31, 75, 74, 0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: center top;
}

.apd-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 2.5rem;
	padding-block: clamp(2.75rem, 7vw, 5.5rem);
}

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

.apd-hero__title {
	max-width: 15em;
	margin: 0 0 1.1rem;
	color: var(--apd-pine-deep);
	font-size: clamp(2.3rem, 5.6vw, 4rem);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.022em;
}

.apd-hero__text {
	max-width: 34rem;
	margin: 0 0 2rem;
	color: var(--apd-text);
	font-size: clamp(1.1rem, 1.6vw, 1.25rem);
	line-height: 1.6;
}

.apd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.apd-hero__actions .apd-button--secondary {
	background: rgba(255, 255, 255, 0.7);
}

.apd-hero__actions .apd-button--secondary:hover {
	background: var(--apd-surface);
}

.apd-hero__figure {
	width: 100%;
	max-width: 30rem;
	margin-inline: auto;
}

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

@media (min-width: 56em) {
	.apd-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: 3.5rem;
	}

	.apd-hero__figure {
		margin-right: 0;
	}
}

.apd-topics {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 34em) {
	.apd-topics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.apd-topics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.apd-topics > li {
	display: flex;
	min-width: 0;
}

.apd-topic {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	padding: 1.25rem 1.25rem 1.1rem 4.6rem;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
	color: var(--apd-text);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* An arched "doorway" in a different color for each topic. */
.apd-topic::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	width: 2.4rem;
	height: 3rem;
	border-radius: var(--apd-arch);
	background: var(--apd-sage);
}

.apd-topics > li:nth-child(4n + 2) .apd-topic::before {
	background: var(--apd-apricot);
}

.apd-topics > li:nth-child(4n + 3) .apd-topic::before {
	background: var(--apd-butter);
}

.apd-topics > li:nth-child(4n + 4) .apd-topic::before {
	background: var(--apd-blush);
}

.apd-topic:hover {
	border-color: var(--apd-line-strong);
	box-shadow: var(--apd-shadow);
	color: var(--apd-text);
	transform: translateY(-3px);
}

.apd-topic__name {
	font-family: var(--apd-font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.25;
}

.apd-topic:hover .apd-topic__name {
	color: var(--apd-pine);
}

.apd-topic__desc {
	color: var(--apd-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.apd-topic__count {
	margin-top: auto;
	padding-top: 0.35rem;
	color: var(--apd-pine);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.apd-cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 1.5rem;
	padding: clamp(2rem, 6vw, 4rem);
	overflow: hidden;
	border-radius: var(--apd-radius-l);
	background: var(--apd-blush);
}

/* Two arches peeking over the bottom edge. */
.apd-cta::before,
.apd-cta::after {
	content: "";
	position: absolute;
	bottom: -3.5rem;
	border-radius: 999px 999px 0 0;
	pointer-events: none;
}

.apd-cta::before {
	right: 2rem;
	width: 7rem;
	height: 10rem;
	background: var(--apd-butter);
	opacity: 0.75;
}

.apd-cta::after {
	right: 7rem;
	width: 5rem;
	height: 7.5rem;
	background: var(--apd-surface);
	opacity: 0.6;
}

.apd-cta__body,
.apd-cta__action {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.apd-cta__title {
	margin: 0 0 0.6rem;
	color: var(--apd-pine-deep);
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.apd-cta__text {
	max-width: 36rem;
	margin: 0;
	color: var(--apd-text);
	font-size: 1.1rem;
}

.apd-cta :focus-visible {
	outline-color: var(--apd-pine-deep);
}

@media (min-width: 48em) {
	.apd-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 2.5rem;
	}
}

@media (max-width: 47.99em) {
	.apd-cta::before,
	.apd-cta::after {
		display: none;
	}
}

/* 10. Breadcrumbs
   ------------------------------------------------------------------------ */

.apd-breadcrumbs {
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	color: var(--apd-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.apd-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apd-breadcrumbs li {
	display: inline-flex;
	gap: 0.6rem;
	min-width: 0;
}

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

.apd-breadcrumbs a {
	color: var(--apd-muted);
	text-decoration-color: var(--apd-line-strong);
}

.apd-breadcrumbs a:hover {
	color: var(--apd-pine);
}

.apd-breadcrumbs [aria-current="page"] {
	color: var(--apd-text);
}

/* 11. Article
   ------------------------------------------------------------------------ */

.apd-article__header,
.apd-article__footer,
.apd-article > .apd-content,
.apd-article > .apd-glance,
.apd-article > .apd-toc,
.apd-article > .apd-faq,
.apd-article > .apd-ad-slot {
	max-width: var(--apd-measure);
	margin-inline: auto;
}

.apd-article__header {
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.apd-article__header .apd-eyebrow {
	margin-bottom: 0.9rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: var(--apd-pine-soft);
}

.apd-article__title {
	margin: 0 0 1rem;
	font-size: clamp(2.1rem, 5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.apd-article__summary {
	margin: 0 0 1.5rem;
	color: var(--apd-muted);
	font-size: clamp(1.15rem, 2vw, 1.3rem);
	line-height: 1.55;
}

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

.apd-article__figure {
	max-width: 62.5rem;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.apd-article__figure img {
	width: 100%;
	border-radius: var(--apd-radius-l) var(--apd-radius-l) var(--apd-radius) var(--apd-radius);
	background: var(--apd-linen);
}

.apd-article__figure figcaption,
.apd-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: 0.75rem;
	color: var(--apd-muted);
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: center;
}

.apd-article__footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--apd-line);
}

.apd-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apd-tags__label {
	color: var(--apd-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

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

.apd-content {
	min-width: 0;
	max-width: var(--apd-measure);
	font-size: 1.125rem;
	line-height: 1.75;
}

.apd-content > * {
	margin-top: 0;
	margin-bottom: 1.4rem;
}

.apd-content > :last-child {
	margin-bottom: 0;
}

.apd-content h2 {
	margin-top: 3rem;
	margin-bottom: 1rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--apd-line);
	font-size: clamp(1.6rem, 3.2vw, 2rem);
}

.apd-content h3 {
	margin-top: 2.25rem;
	margin-bottom: 0.75rem;
	font-size: clamp(1.25rem, 2.4vw, 1.4rem);
}

.apd-content h4 {
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
}

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

.apd-content h2 + h3 {
	margin-top: 1.25rem;
}

.apd-content ul,
.apd-content ol {
	padding-left: 1.5rem;
}

.apd-content li {
	padding-left: 0.3rem;
}

.apd-content li + li {
	margin-top: 0.5rem;
}

.apd-content li > ul,
.apd-content li > ol {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.apd-content ul > li::marker {
	color: var(--apd-apricot);
	font-size: 1.15em;
}

.apd-content ol > li::marker {
	color: var(--apd-pine);
	font-family: var(--apd-font-serif);
	font-weight: 700;
}

.apd-content a {
	font-weight: 500;
}

.apd-content strong {
	color: var(--apd-text);
}

.apd-content figure,
.apd-content .wp-block-image {
	margin-top: 2.25rem;
	margin-bottom: 2.25rem;
}

.apd-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--apd-radius);
	background: var(--apd-linen);
}

.apd-content figure > img {
	width: 100%;
}

/* Tables scroll inside their own wrapper, never the page. */
.apd-table-wrap,
.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--apd-line-strong);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
	-webkit-overflow-scrolling: touch;
}

.apd-content > .apd-table-wrap,
.apd-content > .wp-block-table {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.wp-block-table .apd-table-wrap {
	border: 0;
	border-radius: 0;
}

.apd-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.975rem;
	line-height: 1.5;
}

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

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

.apd-content thead th,
.wp-block-table thead th {
	border-bottom: 1px solid var(--apd-line-strong);
	background: var(--apd-linen);
	color: var(--apd-pine-deep);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

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

.apd-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: var(--apd-bg);
}

.apd-content tbody th,
.apd-content tbody td:first-child {
	font-weight: 600;
}

.apd-content table caption {
	padding: 0.75rem 1rem;
	color: var(--apd-muted);
	font-size: 0.9rem;
	text-align: left;
	caption-side: bottom;
}

/* Callouts */
.apd-callout {
	position: relative;
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: 1.25rem 1.4rem 1.3rem 3.6rem;
	border-radius: var(--apd-radius);
	background: var(--apd-linen);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.apd-callout > * {
	margin-top: 0;
	margin-bottom: 0.6rem;
}

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

.apd-callout::before {
	content: "";
	position: absolute;
	top: 1.3rem;
	left: 1.35rem;
	width: 1.35rem;
	height: 1.7rem;
	border-radius: var(--apd-arch);
	background: var(--apd-pine);
}

.apd-callout__title {
	color: var(--apd-pine-deep);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.apd-callout--tip {
	background: var(--apd-sage-soft);
}

.apd-callout--tip::before {
	background: var(--apd-pine);
}

.apd-callout--warning {
	background: var(--apd-butter-soft);
	box-shadow: inset 0 0 0 1px var(--apd-butter);
}

.apd-callout--warning::before {
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 4px;
	background: var(--apd-apricot);
	transform: translateY(0.15rem) rotate(45deg);
}

.apd-callout--warning .apd-callout__title {
	color: var(--apd-rust-deep);
}

@media (max-width: 29.99em) {
	.apd-callout {
		padding: 3.4rem 1.15rem 1.2rem;
	}

	.apd-callout::before {
		left: 1.15rem;
	}
}

/* 13. At a glance, table of contents
   ------------------------------------------------------------------------ */

.apd-glance {
	position: relative;
	margin-block: clamp(2rem, 4vw, 2.75rem);
	padding: clamp(1.25rem, 4vw, 2rem);
	overflow: hidden;
	border-radius: var(--apd-radius-l) var(--apd-radius-l) var(--apd-radius) var(--apd-radius);
	background: var(--apd-linen);
}

/* A door swing drawn in the corner of the "room". */
.apd-glance::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 5rem;
	height: 5rem;
	border-bottom: 1px dashed var(--apd-line-strong);
	border-left: 1px dashed var(--apd-line-strong);
	border-radius: 0 0 0 100%;
	pointer-events: none;
}

.apd-glance__title {
	position: relative;
	margin: 0 0 1.1rem;
	padding: 0;
	border: 0;
	color: var(--apd-pine-deep);
	font-size: 1.5rem;
}

.apd-glance__facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0;
}

@media (min-width: 30em) {
	.apd-glance__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.apd-glance__fact--wide {
		grid-column: 1 / -1;
	}
}

.apd-glance__fact {
	min-width: 0;
	padding: 0.9rem 1.1rem 1rem;
	border-radius: var(--apd-radius-s);
	background: var(--apd-surface);
}

.apd-glance__label {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.3rem;
	color: var(--apd-pine);
	font-family: var(--apd-font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.apd-glance__label .apd-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.apd-glance__value {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
}

.apd-glance__fact--wide .apd-glance__value {
	font-weight: 400;
}

.apd-glance__needs {
	margin-top: 0.75rem;
	padding: 1rem 1.1rem 1.1rem;
	border-radius: var(--apd-radius-s);
	background: var(--apd-surface);
}

.apd-glance__needs .apd-glance__label {
	margin-bottom: 0.7rem;
}

.apd-glance__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.45rem 1.5rem;
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	list-style: none;
}

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

.apd-glance__list li {
	position: relative;
	min-width: 0;
	padding-left: 1.5rem;
}

.apd-glance__list li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0.1rem;
	width: 0.6rem;
	height: 0.6rem;
	border: 2px solid var(--apd-apricot);
	border-radius: 3px;
}

.apd-toc {
	margin-block: clamp(2rem, 4vw, 2.75rem);
	padding: 1.4rem 1.5rem 1.5rem;
	border: 1px solid var(--apd-line-strong);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
}

.apd-toc__title {
	margin: 0 0 0.9rem;
	padding: 0;
	border: 0;
	color: var(--apd-pine);
	font-family: var(--apd-font-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.apd-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.apd-toc > ol {
	counter-reset: apd-toc;
}

.apd-toc > ol > li {
	position: relative;
	padding-left: 2.25rem;
	counter-increment: apd-toc;
	font-size: 1.0125rem;
	line-height: 1.45;
}

.apd-toc > ol > li + li {
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px dashed var(--apd-line);
}

.apd-toc > ol > li::before {
	content: counter(apd-toc, decimal-leading-zero);
	position: absolute;
	left: 0;
	color: var(--apd-rust);
	font-family: var(--apd-font-serif);
	font-weight: 700;
}

.apd-toc a {
	color: var(--apd-text);
	font-weight: 600;
	text-decoration-color: transparent;
}

.apd-toc a:hover {
	color: var(--apd-pine);
	text-decoration-color: var(--apd-apricot);
}

.apd-toc ol ol {
	margin-top: 0.4rem;
}

.apd-toc ol ol li + li {
	margin-top: 0.3rem;
}

.apd-toc ol ol a {
	color: var(--apd-muted);
	font-size: 0.95rem;
	font-weight: 400;
}

/* 14. FAQ, post navigation, related
   ------------------------------------------------------------------------ */

.apd-faq {
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.apd-page .apd-faq {
	max-width: none;
}

.apd-faq__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.6rem, 3.2vw, 2rem);
}

.apd-faq__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
}

.apd-faq__item {
	min-width: 0;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
	transition: border-color 0.15s ease;
}

.apd-faq__item[open] {
	border-color: var(--apd-line-strong);
}

.apd-faq__summary {
	position: relative;
	display: block;
	padding: 1rem 3.5rem 1rem 1.25rem;
	border-radius: var(--apd-radius);
	cursor: pointer;
	list-style: none;
}

.apd-faq__summary::-webkit-details-marker {
	display: none;
}

.apd-faq__summary::marker {
	content: "";
}

/* Plus that turns into a minus when the answer is open. */
.apd-faq__summary::before,
.apd-faq__summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.35rem;
	width: 0.9rem;
	height: 2px;
	border-radius: 2px;
	background: var(--apd-pine);
	transition: transform 0.2s ease;
}

.apd-faq__summary::after {
	transform: rotate(90deg);
}

.apd-faq__item[open] > .apd-faq__summary::after {
	transform: rotate(0deg);
}

.apd-faq__question {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.apd-faq__summary:hover .apd-faq__question {
	color: var(--apd-pine);
}

.apd-faq__answer {
	padding: 0 1.25rem 1.2rem;
	color: var(--apd-text);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.apd-faq__answer > * {
	margin-top: 0;
	margin-bottom: 0.8rem;
}

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

.apd-post-nav {
	margin-top: clamp(3rem, 7vw, 4.5rem);
}

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

@media (min-width: 40em) {
	.apd-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}

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

	.apd-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.apd-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
	color: var(--apd-text);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.apd-post-nav__link:hover {
	border-color: var(--apd-line-strong);
	box-shadow: var(--apd-shadow);
	color: var(--apd-text);
	transform: translateY(-2px);
}

.apd-post-nav__direction {
	color: var(--apd-pine);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.apd-post-nav__title {
	font-family: var(--apd-font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.apd-related {
	margin-bottom: 0;
}

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

.apd-archive-header {
	position: relative;
	margin-bottom: clamp(2rem, 5vw, 3rem);
	padding: clamp(1.5rem, 5vw, 3rem);
	overflow: hidden;
	border-radius: var(--apd-radius-l);
	background-color: var(--apd-linen);
	background-image:
		linear-gradient(rgba(31, 75, 74, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31, 75, 74, 0.05) 1px, transparent 1px);
	background-size: 40px 40px;
}

.apd-archive-header__title {
	max-width: 18em;
	margin: 0 0 0.75rem;
	color: var(--apd-pine-deep);
	font-size: clamp(2.1rem, 5vw, 3.1rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.apd-archive-header__description {
	max-width: 42rem;
	color: var(--apd-text);
	font-size: 1.15rem;
	line-height: 1.6;
}

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

.apd-archive-header__count {
	display: inline-block;
	margin: 1.25rem 0 0;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	background: var(--apd-surface);
	color: var(--apd-pine);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.apd-pagination {
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.apd-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apd-pagination a.page-numbers,
.apd-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.3rem 0.9rem;
	border: 1px solid var(--apd-line-strong);
	border-radius: 999px;
	background: var(--apd-surface);
	color: var(--apd-text);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.apd-pagination a.page-numbers:hover {
	border-color: var(--apd-pine);
	background: var(--apd-pine-soft);
}

.apd-pagination span.page-numbers.current {
	border-color: var(--apd-pine);
	background: var(--apd-pine);
	color: #ffffff;
}

.apd-pagination span.page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.apd-search-intro {
	margin-bottom: 2rem;
}

.apd-search-intro .apd-archive-header__title {
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

.apd-search-intro .apd-archive-header__count {
	margin: 0 0 1.25rem;
	background: var(--apd-linen);
}

.apd-search-intro .apd-search-form,
.apd-no-results .apd-search-form,
.apd-error-404 .apd-search-form {
	max-width: 30rem;
}

.apd-no-results {
	padding: clamp(1.5rem, 5vw, 2.5rem);
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius-l);
	background: var(--apd-surface);
}

.apd-no-results h2 {
	font-size: 1.6rem;
}

.apd-no-results h3 {
	margin-top: 2rem;
	font-size: 1.15rem;
}

.apd-no-results__suggestions {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.apd-no-results__suggestions li {
	position: relative;
	padding-left: 1.5rem;
}

.apd-no-results__suggestions li + li {
	margin-top: 0.4rem;
}

.apd-no-results__suggestions li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0.15rem;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--apd-apricot);
}

.apd-error-404 {
	position: relative;
	padding: clamp(2rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
	border-radius: var(--apd-radius-l);
	background: var(--apd-linen);
}

.apd-error-404__code {
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	width: 6.5rem;
	height: 8rem;
	margin: 0 0 1.5rem;
	padding-bottom: 1.1rem;
	border: 2px solid var(--apd-pine);
	border-radius: 999px 999px 12px 12px;
	background: var(--apd-surface);
	color: var(--apd-pine);
	font-family: var(--apd-font-serif);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}

.apd-error-404__title {
	color: var(--apd-pine-deep);
	font-weight: 500;
}

.apd-error-404__text {
	max-width: 36rem;
	font-size: 1.15rem;
}

.apd-error-404__headline {
	margin: 2.25rem 0 0;
	font-size: 1.3rem;
}

.apd-error-404 .apd-subcategories {
	margin-top: 1rem;
}

/* 16. Pages and forms
   ------------------------------------------------------------------------ */

.apd-page__header {
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--apd-line-strong);
}

.apd-page__title {
	margin: 0;
	color: var(--apd-pine-deep);
	font-size: clamp(2.1rem, 5vw, 3.1rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.apd-page__updated {
	margin: 0.9rem 0 0;
	color: var(--apd-muted);
	font-size: 0.9rem;
}

.apd-page .apd-article__figure {
	margin-bottom: 2rem;
}

.apd-page > .apd-content + .apd-content {
	margin-top: 2rem;
}

.apd-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius-l);
	background: var(--apd-surface);
}

.apd-form > * {
	margin: 0;
}

.apd-form .apd-button {
	justify-self: start;
}

.apd-field {
	min-width: 0;
}

.apd-field__hint {
	display: block;
	margin-top: 0.4rem;
	color: var(--apd-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.apd-required {
	color: var(--apd-rust);
}

.apd-form input[aria-invalid="true"],
.apd-form textarea[aria-invalid="true"] {
	border-color: var(--apd-rust);
	box-shadow: 0 0 0 1px var(--apd-rust);
}

.apd-field__error {
	display: block;
	margin-top: 0.4rem;
	color: var(--apd-rust-deep);
	font-size: 0.9rem;
	font-weight: 600;
}

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

.apd-form-notice {
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.35rem;
	border-radius: var(--apd-radius);
	background: var(--apd-linen);
	font-size: 1rem;
}

.apd-form-notice > * {
	margin-top: 0;
	margin-bottom: 0.4rem;
}

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

.apd-form-notice--success {
	background: var(--apd-sage-soft);
	box-shadow: inset 0 0 0 1px var(--apd-sage);
}

.apd-form-notice--error {
	background: var(--apd-blush-soft);
	box-shadow: inset 0 0 0 1px var(--apd-rust);
}

.apd-form-notice--error a {
	color: var(--apd-rust-deep);
}

.apd-form-notice__list {
	padding-left: 1.25rem;
}

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

.apd-comments {
	max-width: var(--apd-measure);
	margin: clamp(3rem, 7vw, 4.5rem) auto 0;
}

.apd-comments__title {
	font-size: 1.6rem;
}

.apd-comments .comment-list,
.apd-comments .comment-list ol.children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.apd-comments .comment-list ol.children {
	margin-left: clamp(0.75rem, 4vw, 2rem);
}

.apd-comments .comment-body {
	margin-bottom: 1rem;
	padding: 1.1rem 1.3rem;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
}

.apd-comments .comment-meta {
	margin-bottom: 0.6rem;
	color: var(--apd-muted);
	font-size: 0.9rem;
}

.apd-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--apd-text);
	font-weight: 600;
}

.apd-comments .comment-author img {
	border-radius: 50%;
}

.apd-comments .comment-content > :last-child {
	margin-bottom: 0;
}

.apd-comments .reply {
	margin-top: 0.6rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.comment-respond {
	margin-top: 2rem;
	padding: clamp(1.25rem, 4vw, 2rem);
	border-radius: var(--apd-radius-l);
	background: var(--apd-linen);
}

.comment-reply-title {
	font-size: 1.4rem;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	color: var(--apd-muted);
	font-size: 0.9rem;
	font-weight: 400;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.comment-form-cookies-consent input {
	margin-top: 0.35rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

/* 18. Sidebar and widgets
   ------------------------------------------------------------------------ */

.apd-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	min-width: 0;
}

@media (min-width: 62em) {
	.apd-sidebar--sticky {
		position: sticky;
		top: 1.5rem;
	}
}

.apd-widget {
	min-width: 0;
	padding: 1.3rem 1.4rem;
	border: 1px solid var(--apd-line);
	border-radius: var(--apd-radius);
	background: var(--apd-surface);
	font-size: 0.975rem;
}

.apd-widget__title,
.apd-widget .widget-title {
	margin: 0 0 0.8rem;
	font-size: 1.15rem;
}

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

.apd-widget li + li {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed var(--apd-line);
}

.apd-widget a {
	color: var(--apd-text);
	text-decoration-color: transparent;
}

.apd-widget a:hover {
	color: var(--apd-pine);
	text-decoration-color: var(--apd-apricot);
}

.apd-widget .children,
.apd-widget .sub-menu {
	margin-top: 0.5rem;
	padding-left: 1rem;
}

/* 19. Ad slots (off and empty by default — nothing renders without code)
   ------------------------------------------------------------------------ */

.apd-ad-slot {
	clear: both;
	max-width: 100%;
	margin-block: 2.25rem;
	overflow: hidden;
	text-align: center;
}

.apd-ad-slot__label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--apd-muted);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

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

/* 20. Footer
   ------------------------------------------------------------------------ */

.apd-site-footer {
	position: relative;
	padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
	background: var(--apd-pine-deep);
	color: #f4efe6;
	font-size: 0.975rem;
	--apd-focus: #f2c85b;
}

/* A dashed "plan" line along the top edge. */
.apd-site-footer::before {
	content: "";
	position: absolute;
	top: 0.75rem;
	right: 0;
	left: 0;
	border-top: 1px dashed rgba(244, 239, 230, 0.28);
}

.apd-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.25rem;
}

@media (min-width: 40em) {
	.apd-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.apd-footer__about {
		grid-column: 1 / -1;
	}
}

@media (min-width: 62em) {
	.apd-footer__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: 3.5rem;
	}

	.apd-footer__about {
		grid-column: auto;
	}
}

.apd-footer__about p {
	max-width: 30rem;
	margin: 0;
	color: #e2ddd3;
	line-height: 1.65;
}

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

.apd-footer__heading {
	margin: 0 0 1rem;
	color: #f2c85b;
	font-family: var(--apd-font-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.apd-footer__about .apd-footer__heading {
	margin-bottom: 0.75rem;
	color: #ffffff;
	font-family: var(--apd-font-serif);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: -0.012em;
	text-transform: none;
}

.apd-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.apd-footer__menu li + li {
	margin-top: 0.15rem;
}

.apd-footer__menu a {
	display: inline-block;
	padding-block: 0.3rem;
	color: #f4efe6;
	text-decoration-color: transparent;
}

.apd-footer__menu a:hover {
	color: #ffffff;
	text-decoration-color: #f2c85b;
}

.apd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: clamp(2.5rem, 6vw, 3.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(244, 239, 230, 0.22);
	color: #d9d3c8;
	font-size: 0.875rem;
}

.apd-footer__bottom p {
	margin: 0;
}

/* 21. WordPress classes, utilities, print
   ------------------------------------------------------------------------ */

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

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

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

.alignleft {
	float: left;
	max-width: 50%;
	margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	max-width: 50%;
	margin: 0.4rem 0 1rem 1.5rem;
}

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		max-width: 100%;
		margin: 1.5rem 0;
	}
}

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

.alignwide,
.alignfull {
	max-width: 100%;
}

.wp-caption {
	max-width: 100%;
}

.wp-block-embed__wrapper {
	position: relative;
	max-width: 100%;
}

.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 {
	width: 100%;
	height: 100%;
}

.sticky,
.bypostauthor,
.gallery-caption {
	/* Core classes the theme does not need to restyle. */
}

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

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

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

	figure,
	.apd-callout,
	.apd-glance,
	.apd-faq__item {
		break-inside: avoid;
	}

	.apd-faq__item:not([open]) > .apd-faq__answer {
		display: block;
	}
}
