/**
 * Retainer: details theme.json cannot express.
 * Every colour and face comes from theme.json presets, so style variations restyle all of this too.
 *
 * @package Retainer
 */

/* ---------- Browser surfaces ---------- */

body {
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	caret-color: var(--wp--preset--color--accent);
	accent-color: var(--wp--preset--color--accent);
	scrollbar-color: var(--wp--preset--color--muted) var(--wp--preset--color--wash);
}

::selection {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

a {
	text-decoration-thickness: from-font;
	text-underline-offset: 0.2em;
	text-decoration-skip-ink: auto;
}

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

:where(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-site-title) {
	text-wrap: balance;
}

:where(p, li, dd, figcaption, .wp-block-post-excerpt__excerpt) {
	text-wrap: pretty;
}

:where(.entry-content, .wp-block-post-content) {
	overflow-wrap: break-word;
}

/* Figures are set in Literata: Atkinson's slashed zero reads as code in fees, dates and registration numbers. */
:where(time, .wp-block-post-date, .wp-block-comment-date, .retainer-figure, .is-style-retainer-schedule tbody td, .is-style-retainer-particulars td:last-child) {
	font-family: var(--wp--preset--font-family--body);
	font-variant-numeric: tabular-nums lining-nums;
}

abbr[title] {
	text-decoration: underline dotted;
	text-underline-offset: 0.2em;
	cursor: help;
}

.skip-link.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background-color: var(--wp--preset--color--contrast);
	clip-path: none;
	color: var(--wp--preset--color--base);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* ---------- Letterhead ---------- */

.wp-block-separator.is-style-retainer-letterhead {
	border: 0;
	border-top: 3px solid currentColor;
	border-bottom: 1px solid currentColor;
	height: 3px;
	background: none;
	opacity: 1;
	width: 100%;
	max-width: none;
	color: var(--wp--preset--color--contrast);
}

.is-style-retainer-reference {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.01em;
	line-height: 1.5;
}

.retainer-subject-prefix {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* ---------- Section mark: a § set on a hairline, between major sections ---------- */

.wp-block-separator.is-style-retainer-section-mark {
	border: 0;
	height: 1.5em;
	width: 100%;
	opacity: 1;
	overflow: visible;
	position: relative;
	color: var(--wp--preset--color--rule);
	background:
		linear-gradient(currentColor, currentColor) left center / calc(50% - 1.5em) 1px no-repeat,
		linear-gradient(currentColor, currentColor) right center / calc(50% - 1.5em) 1px no-repeat;
}

.wp-block-separator.is-style-retainer-section-mark::before {
	content: "§";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25em;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

/* ---------- Clauses: numbered scope, process and terms ---------- */

:where(ol, ul).is-style-retainer-clauses {
	--retainer-clause-gutter: 2.75rem;
	list-style: none;
	padding-left: var(--retainer-clause-gutter);
	margin-left: 0;
	counter-reset: retainer-clause;
	position: relative;
}

:where(ol, ul).is-style-retainer-clauses::after {
	content: "";
	position: absolute;
	left: var(--retainer-clause-gutter);
	right: 0;
	bottom: 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

:where(ol, ul).is-style-retainer-clauses > li {
	position: relative;
	counter-increment: retainer-clause;
	padding-block: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--rule);
	margin: 0;
}

:where(ol, ul).is-style-retainer-clauses > li::before {
	position: absolute;
	left: calc(var(--retainer-clause-gutter) * -1);
	top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-variant-numeric: tabular-nums lining-nums;
	color: var(--wp--preset--color--accent);
}

ol.is-style-retainer-clauses > li::before {
	content: counter(retainer-clause) ".";
}

ul.is-style-retainer-clauses > li::before {
	content: "(" counter(retainer-clause, lower-alpha) ")";
}

:where(ol, ul).is-style-retainer-clauses > li > strong:first-child {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 650;
	line-height: 1.3;
	margin-bottom: 0.25em;
}

:where(ol, ul).is-style-retainer-clauses ol {
	list-style: none;
	counter-reset: retainer-subclause;
	padding-left: 0;
	margin-top: var(--wp--preset--spacing--20);
}

:where(ol, ul).is-style-retainer-clauses ol > li {
	counter-increment: retainer-subclause;
	position: relative;
	padding-left: 2.5rem;
}

:where(ol, ul).is-style-retainer-clauses ol > li::before {
	content: counter(retainer-clause) "." counter(retainer-subclause);
	position: absolute;
	left: 0;
	font-family: var(--wp--preset--font-family--body);
	font-variant-numeric: tabular-nums lining-nums;
	color: var(--wp--preset--color--muted);
}

@media (min-width: 64rem) {
	:where(.is-layout-constrained) > :where(ol, ul).is-style-retainer-clauses {
		--retainer-clause-gutter: 3.5rem;
		padding-left: 0;
	}

	:where(.is-layout-constrained) > :where(ol, ul).is-style-retainer-clauses::after {
		left: 0;
	}
}

/* ---------- Timeline: the engagement steps across the page ---------- */

ol.is-style-retainer-timeline {
	list-style: none;
	padding: 0;
	margin-left: 0;
	counter-reset: retainer-step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--wp--preset--spacing--40);
}

ol.is-style-retainer-timeline > li {
	counter-increment: retainer-step;
	position: relative;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--contrast);
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

ol.is-style-retainer-timeline > li::before {
	content: counter(retainer-step);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1;
	font-variant-numeric: lining-nums;
	color: var(--wp--preset--color--accent);
	margin-bottom: var(--wp--preset--spacing--20);
}

ol.is-style-retainer-timeline > li::after {
	content: "";
	position: absolute;
	top: -4px;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--contrast);
}

ol.is-style-retainer-timeline > li > strong:first-child {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 650;
	line-height: 1.3;
	margin-bottom: 0.35em;
}

/* ---------- Schedule of fees and particulars ---------- */

.wp-block-table.is-style-retainer-schedule table,
.wp-block-table.is-style-retainer-particulars table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table.is-style-retainer-schedule :where(th, td),
.wp-block-table.is-style-retainer-particulars :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding: 0.85rem 0.75rem 0.85rem 0;
	text-align: start;
	vertical-align: top;
}

.wp-block-table.is-style-retainer-schedule thead {
	border-bottom: 0;
}

.wp-block-table.is-style-retainer-schedule thead th {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}

.wp-block-table.is-style-retainer-schedule :where(th, td):last-child {
	text-align: end;
	padding-right: 0;
	white-space: nowrap;
}

.wp-block-table.is-style-retainer-schedule tbody td {
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-table.is-style-retainer-schedule tbody td:first-child {
	font-weight: 600;
}

.wp-block-table.is-style-retainer-schedule tbody td:nth-child(2) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	padding-top: 1.05rem;
}

.wp-block-table.is-style-retainer-schedule tbody td:last-child {
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

@media (max-width: 37.5rem) {
	.wp-block-table.is-style-retainer-schedule :where(table, thead, tbody) {
		display: block;
		width: 100%;
	}

	.wp-block-table.is-style-retainer-schedule thead tr {
		display: grid;
		grid-template-columns: 1fr auto;
	}

	.wp-block-table.is-style-retainer-schedule thead th {
		padding-right: 0;
	}

	.wp-block-table.is-style-retainer-schedule thead th:nth-child(2) {
		display: none;
	}

	.wp-block-table.is-style-retainer-schedule tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		border-bottom: 1px solid var(--wp--preset--color--rule);
		padding-block: 0.75rem;
	}

	.wp-block-table.is-style-retainer-schedule tbody td {
		border: 0;
		padding: 0;
	}

	.wp-block-table.is-style-retainer-schedule tbody td:nth-child(2) {
		grid-row: 2;
		grid-column: 1 / -1;
		padding-top: 0.2rem;
	}

	.wp-block-table.is-style-retainer-schedule tbody td:last-child {
		grid-row: 1;
		grid-column: 2;
		padding-left: 0.75rem;
	}
}

.wp-block-table.is-style-retainer-particulars td:first-child {
	width: 38%;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	padding-top: 1rem;
}

.wp-block-table.is-style-retainer-particulars td:last-child {
	padding-right: 0;
}

.wp-block-table.is-style-retainer-particulars td strong {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--contrast);
	font-weight: 650;
}

@media (max-width: 37.5rem) {
	.wp-block-table.is-style-retainer-particulars :where(tr, td) {
		display: block;
		width: auto !important;
	}

	.wp-block-table.is-style-retainer-particulars td:first-child {
		border-bottom: 0;
		padding-bottom: 0;
	}
}

.wp-block-table :where(figcaption, .wp-element-caption) {
	text-align: start;
	margin-top: var(--wp--preset--spacing--20);
}

/* ---------- Fee figures ---------- */

.retainer-figure {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}

.retainer-figure .retainer-figure-unit {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--wp--preset--color--muted);
}

/* ---------- Signature line ---------- */

.wp-block-buttons.is-style-retainer-signature {
	position: relative;
	align-items: flex-end;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	gap: var(--wp--preset--spacing--30);
}

.wp-block-buttons.is-style-retainer-signature::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3px;
	background-color: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

.wp-block-buttons.is-style-retainer-signature:has(.wp-block-button__link:hover, .wp-block-button__link:focus-visible)::after {
	transform: scaleX(1);
}

.wp-block-buttons.is-style-retainer-signature .wp-block-button__link {
	border-radius: 2px 2px 0 0;
	min-height: 44px;
}

.retainer-signature-alt {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.retainer-signature-alt strong {
	font-family: var(--wp--preset--font-family--heading);
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentColor;
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	padding: calc(0.8rem - 1px) calc(1.375rem - 1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:where(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--wash);
	color: var(--wp--preset--color--accent);
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 160ms ease-out, color 160ms ease-out;
}

/* ---------- The desk: an ink field with a paper sheet laid on it ---------- */

.wp-block-group.is-style-retainer-desk {
	isolation: isolate;
	background-color: var(--wp--preset--color--desk);
	color: var(--wp--preset--color--on-desk);
}

/* The under-page sits behind the sheet: the sheet's parent, not the sheet, owns the stacking context. */
:where(.wp-block-column, .wp-block-group):has(> .wp-block-group.is-style-retainer-sheet) {
	isolation: isolate;
}

.wp-block-group.is-style-retainer-desk :where(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)) {
	color: inherit;
}

.wp-block-group.is-style-retainer-desk .is-style-retainer-reference,
.wp-block-group.is-style-retainer-desk .retainer-on-ink-muted {
	color: color-mix(in srgb, var(--wp--preset--color--on-desk) 72%, var(--wp--preset--color--desk));
}

.wp-block-group.is-style-retainer-desk .wp-element-button:not(.is-style-retainer-sheet *) {
	background-color: var(--wp--preset--color--on-desk);
	color: var(--wp--preset--color--desk);
}

.wp-block-group.is-style-retainer-desk .wp-element-button:not(.is-style-retainer-sheet *):where(:hover, :focus-visible) {
	background-color: color-mix(in srgb, var(--wp--preset--color--on-desk) 85%, var(--wp--preset--color--desk));
	color: var(--wp--preset--color--desk);
}

.wp-block-group.is-style-retainer-desk .wp-block-buttons.is-style-retainer-signature:not(.is-style-retainer-sheet *) {
	border-bottom-color: var(--wp--preset--color--on-desk);
}

.wp-block-group.is-style-retainer-desk :where(:focus-visible) {
	outline-color: var(--wp--preset--color--on-desk);
}

.wp-block-group.is-style-retainer-desk .wp-block-table.is-style-retainer-particulars :where(td) {
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--on-desk) 22%, var(--wp--preset--color--desk));
}

.wp-block-group.is-style-retainer-desk .wp-block-table.is-style-retainer-particulars td:first-child {
	color: color-mix(in srgb, var(--wp--preset--color--on-desk) 72%, var(--wp--preset--color--desk));
}

.wp-block-group.is-style-retainer-desk .wp-block-table.is-style-retainer-particulars td strong {
	color: inherit;
}

.wp-block-group.is-style-retainer-sheet {
	position: relative;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 22px 48px -18px rgb(0 0 0 / 0.55);
}

.wp-block-group.is-style-retainer-sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--wp--preset--color--wash);
	transform: translate(10px, 12px) rotate(1.4deg);
	box-shadow: 0 16px 36px -16px rgb(0 0 0 / 0.5);
}

.wp-block-group.is-style-retainer-sheet :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--contrast);
}

.wp-block-group.is-style-retainer-sheet .is-style-retainer-reference {
	color: var(--wp--preset--color--muted);
}

@media (max-width: 37.5rem) {
	.wp-block-group.is-style-retainer-sheet::before {
		transform: translate(6px, 8px) rotate(1deg);
	}
}

/* ---------- Photographs: mounted like a print on the page ---------- */

.wp-block-image.is-style-retainer-mounted img,
.wp-block-cover.is-style-retainer-mounted {
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 18px 40px -24px rgb(0 0 0 / 0.45);
}

.wp-block-image :where(figcaption) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	text-align: start;
}

.wp-block-post-featured-image img {
	box-shadow: 0 0 0 1px var(--wp--preset--color--rule);
}

/* ---------- Important notice ---------- */

.wp-block-group.is-style-retainer-notice {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding-top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
}

.wp-block-group.is-style-retainer-notice :where(h2, h3, h4) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-group.is-style-retainer-notice p {
	max-width: 75ch;
	font-family: var(--wp--preset--font-family--body);
}

.wp-block-group.is-style-retainer-notice p strong {
	font-family: var(--wp--preset--font-family--heading);
}

/* ---------- Insights index: posts as a dated register ---------- */

.retainer-index > li {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-block: var(--wp--preset--spacing--40);
}

.retainer-index > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.retainer-index .wp-block-post-excerpt__excerpt {
	margin-bottom: 0;
}

@media (min-width: 64rem) {
	:where(.is-layout-constrained) > .wp-block-query > .retainer-index > li {
		position: relative;
	}

	:where(.is-layout-constrained) > .wp-block-query > .retainer-index > li .retainer-register-date {
		position: absolute;
		left: -9.5rem;
		width: 8.5rem;
		top: calc(var(--wp--preset--spacing--40) + 0.35rem);
		margin: 0;
		text-align: right;
	}
}

/* ---------- Post content reading rhythm ---------- */

.wp-block-post-content > :where(h2, h3) {
	margin-block-start: var(--wp--preset--spacing--50);
	margin-block-end: var(--wp--preset--spacing--20);
}

.wp-block-post-content > :where(h2, h3) + * {
	margin-block-start: 0;
}

/* ---------- Forms (search, comments) ---------- */

:where(input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: max(16px, 1rem);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 2px;
	padding: 0.6rem 0.75rem;
}

.wp-block-search__input {
	border-color: var(--wp--preset--color--muted);
}

.wp-block-post-comments-form :where(label, .comment-notes, .logged-in-as) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-comments-form label {
	font-weight: 600;
}

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

.wp-block-post-comments-form .comment-form-cookies-consent input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	flex: none;
}

.wp-block-post-comments-form .comment-form-cookies-consent label {
	font-weight: 400;
}

/* ---------- Navigation ---------- */

.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--rule);
	background-color: var(--wp--preset--color--base);
}

.wp-block-navigation .current-menu-item > a,
.wp-block-navigation [aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* ---------- Questions: disclosure with a drawn plus/minus in the clause gutter ---------- */

.wp-block-details summary {
	position: relative;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 650;
	cursor: pointer;
	padding-left: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::before,
.wp-block-details summary::after {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.72em;
	width: 0.85rem;
	height: 1.5px;
	background-color: var(--wp--preset--color--accent);
	transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-details summary::after {
	transform: rotate(90deg);
}

.wp-block-details[open] summary::after {
	transform: rotate(0deg);
}

.wp-block-details > :not(summary) {
	padding-left: 2rem;
}

.wp-block-details[open] summary {
	margin-bottom: var(--wp--preset--spacing--20);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Content refinements: every core block a practice is likely to write with.
   ========================================================================== */

/* ---------- Lists ---------- */

.wp-block-post-content :where(ul, ol):not([class*="is-style-"]) {
	padding-left: 1.4em;
}

.wp-block-post-content :where(ul, ol):not([class*="is-style-"]) > li {
	padding-left: 0.25em;
	margin-block: 0.35em;
}

.wp-block-post-content ul:not([class*="is-style-"]) > li::marker {
	color: var(--wp--preset--color--accent);
}

.wp-block-post-content ol:not([class*="is-style-"]) > li::marker {
	font-family: var(--wp--preset--font-family--body);
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

/* ---------- Lead paragraph and drop cap ---------- */

.is-style-retainer-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
}

.has-drop-cap:not(:focus)::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--body);
	font-size: 4.1em;
	font-weight: 600;
	line-height: 0.82;
	margin: 0.06em 0.09em 0 0;
	color: var(--wp--preset--color--accent);
}

/* ---------- Inline text: code, keys, highlight, small print ---------- */

:where(p, li, td, dd) code,
kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	background-color: var(--wp--preset--color--wash);
	border-radius: 2px;
	padding: 0.1em 0.35em;
}

kbd {
	border: 1px solid var(--wp--preset--color--rule);
	border-bottom-width: 2px;
}

mark,
.has-inline-color.has-background {
	background-color: color-mix(in srgb, var(--wp--preset--color--accent) 18%, var(--wp--preset--color--base));
	color: inherit;
	padding: 0 0.15em;
	border-radius: 1px;
}

sup,
sub {
	font-size: 0.7em;
	line-height: 0;
}

.wp-block-post-content sup a,
.fn {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 650;
	text-decoration: none;
	color: var(--wp--preset--color--accent);
}

/* ---------- Quotes ---------- */

.wp-block-quote {
	margin-block: var(--wp--preset--spacing--40);
}

.wp-block-quote > p {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: var(--wp--preset--spacing--20);
}

.wp-block-quote cite::before,
.wp-block-pullquote cite::before {
	content: "— ";
	color: var(--wp--preset--color--accent);
}

.wp-block-quote.is-style-retainer-plain {
	border-left: 0;
	padding-left: 0;
}

.wp-block-quote.is-style-retainer-plain > p {
	font-size: var(--wp--preset--font-size--medium);
}

/* Margin note: a short aside hung in the left margin on wide screens, like a note pencilled beside a clause. */
.wp-block-quote.is-style-retainer-margin-note {
	border-left: 0;
	border-top: 1px solid var(--wp--preset--color--accent);
	padding: var(--wp--preset--spacing--20) 0 0;
	font-style: italic;
	color: var(--wp--preset--color--accent);
}

.wp-block-quote.is-style-retainer-margin-note > p {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

@media (min-width: 72rem) {
	:where(.is-layout-constrained) > .wp-block-quote.is-style-retainer-margin-note {
		float: left;
		clear: left;
		width: 12rem;
		/* Floats are measured from the full-width content area, so offset from the reading column's edge. */
		margin-left: calc((100% - var(--wp--style--global--content-size)) / 2 - 15rem) !important;
		margin-top: 0.4rem;
	}
}

.wp-block-pullquote {
	text-align: start;
}

.wp-block-pullquote blockquote {
	margin: 0;
}

.wp-block-pullquote p {
	font-size: inherit;
	line-height: inherit;
}

/* ---------- Tables (unstyled) ---------- */

.wp-block-table:not([class*="is-style-"]) table {
	border-collapse: collapse;
	width: 100%;
	font-variant-numeric: tabular-nums lining-nums;
}

.wp-block-table:not([class*="is-style-"]) :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding: 0.7rem 0.75rem 0.7rem 0;
	text-align: start;
}

.wp-block-table:not([class*="is-style-"]) thead th {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-weight: 700;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--wash);
}

.wp-block-table.is-style-stripes :where(th, td) {
	border-color: transparent;
	padding: 0.7rem 0.75rem;
}

/* ---------- Separators ---------- */

.wp-block-separator:not([class*="is-style-"]) {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--rule);
	opacity: 1;
}

.wp-block-separator.is-style-dots {
	border: 0;
	color: var(--wp--preset--color--accent);
}

.wp-block-separator.is-style-dots::before {
	font-family: var(--wp--preset--font-family--body);
	letter-spacing: 1.5em;
	padding-left: 1.5em;
}

/* ---------- Images, galleries, cover, media and text ---------- */

.wp-block-post-content.is-layout-constrained > .wp-block-image.alignleft {
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}

.wp-block-post-content.is-layout-constrained > .wp-block-image.alignright {
	margin-right: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}

.wp-block-post-content .wp-block-image.alignleft {
	margin-right: var(--wp--preset--spacing--40);
	margin-top: 0.4em;
	max-width: 45%;
}

.wp-block-post-content .wp-block-image.alignright {
	margin-left: var(--wp--preset--spacing--40);
	margin-top: 0.4em;
	max-width: 45%;
}

:where(.wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed, .wp-block-audio) :where(figcaption, .wp-element-caption) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	text-align: start;
	margin-top: var(--wp--preset--spacing--10);
	padding-top: var(--wp--preset--spacing--10);
	border-top: 1px solid var(--wp--preset--color--rule);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	border-top: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	background: linear-gradient(0deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0));
}

.wp-block-cover .wp-block-cover__inner-container :where(h1, h2, h3, p) {
	color: inherit;
}

.wp-block-media-text .wp-block-media-text__content {
	padding-inline: var(--wp--preset--spacing--50);
}

/* ---------- File downloads ---------- */

.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding-block: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.wp-block-file .wp-block-file__button {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 650;
	border-radius: 2px;
	padding: 0.45rem 0.9rem;
	margin-left: auto;
}

/* ---------- Verse and preformatted ---------- */

.wp-block-verse {
	border-left: 1px solid var(--wp--preset--color--rule);
	white-space: pre-wrap;
}

.wp-block-preformatted,
.wp-block-code {
	border-radius: 2px;
	overflow-x: auto;
	white-space: pre;
}

/* ---------- Footnotes ---------- */

.wp-block-footnotes {
	padding-left: 1.4em;
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-footnotes li {
	margin-block: 0.35em;
}

.wp-block-footnotes li::marker {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--accent);
}

/* ---------- Tag cloud, post terms, social links ---------- */

.wp-block-tag-cloud a,
.wp-block-post-terms a {
	text-decoration-color: var(--wp--preset--color--rule);
}

.wp-block-tag-cloud a {
	display: inline-block;
	margin: 0 0.6em 0.4em 0;
	font-size: var(--wp--preset--font-size--small) !important;
}

.wp-block-tag-cloud a:where(:hover, :focus-visible),
.wp-block-post-terms a:where(:hover, :focus-visible) {
	text-decoration-color: currentColor;
}

/* ---------- Embeds keep their aspect and never overflow ---------- */

.wp-block-embed iframe,
.wp-block-video video {
	max-width: 100%;
}
