/* ============================================================================
   THE LONG READ — the blog post template (VOY-1547)
   ============================================================================
   Post B on the approved boards (docs/design/blog/boards/Post-B.dc.html and
   Post-Mobile.dc.html). Loaded on posts and in the editor (inc/long-read.php).

   Two halves. The block styles at the top (margin note, checklist, sources,
   pull quote, technical table) are unscoped, so they read the same in the
   editor. Everything after "Template" is scoped to .vy-lr, the <main> of
   templates/single.html, so nothing here reaches another page.

   Colours are design-system tokens (tokens.css), never the preset classes:
   preset colour classes are !important, and the dark-section safety net in
   custom.css only reaches groups that carry a bg-canvas attribute, which
   .vy-lr deliberately does not.

   Radii follow DESIGN.md (0 to 6px; pills for buttons), not the boards'
   10 to 16px corners: the boards are the reference for layout and
   interaction, the design system owns the values.
   ============================================================================ */

/* ── Block style · Margin note ───────────────────────────────────────────────
   A source or a definition beside its paragraph. Start it with a bold label
   ("Source [1]", "Doorway pages [2]"); the label reads as the note's mono
   head. Inline everywhere by default; .vy-lr__body moves it into the right
   gutter at 1200px (Template, below). */
.is-style-margin-note {
	padding-left: 14px;
	border-left: 2px solid var(--border-strong);
	font-family: var(--font-body);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--fg-3);
}
.is-style-margin-note > strong:first-child,
.is-style-margin-note > p > strong:first-child {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--fg-4);
}
.wp-block-group.is-style-margin-note > p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}
.wp-block-group.is-style-margin-note > p + p {
	margin-top: 6px;
}

/* ── Block style · Checklist ─────────────────────────────────────────────── */
:is(ul, ol).is-style-checklist {
	list-style: none;
	margin-left: 0;
	padding: 0;
	border-bottom: 1px solid var(--border-hair);
}
/* margin and padding are !important because voyager-block-theme's
   core-list.css zeroes a post's first and last list item padding and adds a
   12px item margin, at specificity 0,3,1 (.entry-content :not(.wp-block-group)
   > li:first-child). A checklist row needs both, in the editor and on a post. */
:is(ul, ol).is-style-checklist > li {
	position: relative;
	margin: 0 !important;
	padding: 15px 14px 15px 58px !important;
	border-top: 1px solid var(--border-hair);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fg-3);
	transition: background-color var(--dur-slow) var(--ease-standard);
}
:is(ul, ol).is-style-checklist > li::before {
	content: "\2713";
	position: absolute;
	top: 17px;
	left: 14px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--border-strong);
	border-radius: var(--r-3);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1;
	color: transparent;
	transition: border-color var(--dur-slow) var(--ease-standard), background-color var(--dur-slow) var(--ease-standard), color var(--dur-slow) var(--ease-standard);
}
:is(ul, ol).is-style-checklist > li strong {
	font-weight: 500;
	color: var(--fg-1);
}
@media (hover: hover) {
	:is(ul, ol).is-style-checklist > li:hover {
		background-color: color-mix(in srgb, var(--bg-panel) 70%, transparent);
	}
	:is(ul, ol).is-style-checklist > li:hover::before {
		border-color: var(--link);
		background-color: var(--link);
		color: var(--bg-canvas);
	}
}

/* ── Block style · Sources ───────────────────────────────────────────────────
   Numbered [1] [2] [3], matching the "Source [1]" labels in margin notes. On a
   post the template prints this list after the Audit card. */
:is(ul, ol).is-style-sources {
	list-style: none;
	counter-reset: vy-src;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}
:is(ul, ol).is-style-sources > li {
	counter-increment: vy-src;
	margin: 0 !important; /* core-list.css adds 12px; the flex gap spaces these. */
	padding: 0 !important;
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--fg-3);
}
:is(ul, ol).is-style-sources > li::before {
	content: "[" counter(vy-src) "]";
	margin-right: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
:is(ul, ol).is-style-sources em {
	color: var(--fg-4);
}
:is(ul, ol).is-style-sources a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}

/* ── Block style · Pull quote ────────────────────────────────────────────── */
.wp-block-quote.is-style-pull {
	margin: 8px 0;
	padding: 4px 0 4px 26px;
	border: 0;
	border-left: 3px solid var(--accent-bright);
	background: none;
	font-family: var(--font-display);
	font-size: clamp(24px, 1.2vw + 14px, 30px);
	font-style: normal;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fg-1);
}
.wp-block-quote.is-style-pull p {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}
.wp-block-quote.is-style-pull cite {
	display: block;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-style: normal;
	letter-spacing: 0;
	color: var(--fg-4);
}

/* ── Block style · Technical table ───────────────────────────────────────────
   Two columns: a mono label, then what it means. Stacks under 600px. */
.wp-block-table.is-style-technical {
	margin: 0;
	padding: 0;
}
.wp-block-table.is-style-technical table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	border-bottom: 1px solid var(--border-hair);
}
.wp-block-table.is-style-technical thead {
	border: 0;
}
.wp-block-table.is-style-technical th,
.wp-block-table.is-style-technical td {
	padding: 12px 0;
	border: 0;
	border-top: 1px solid var(--border-hair);
	vertical-align: top;
	text-align: left;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--fg-3);
}
.wp-block-table.is-style-technical td:first-child,
.wp-block-table.is-style-technical th:first-child {
	width: 150px;
	padding-top: 15px;
	padding-right: 18px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--link);
}
.wp-block-table.is-style-technical td:first-child strong {
	font-weight: 400;
}
.wp-block-table.is-style-technical code {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--fg-1);
	background: none;
	padding: 0;
}
.wp-block-table.is-style-technical figcaption {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
@media (max-width: 600px) {
	.wp-block-table.is-style-technical tr,
	.wp-block-table.is-style-technical td,
	.wp-block-table.is-style-technical th {
		display: block;
		width: auto;
	}
	.wp-block-table.is-style-technical td:first-child,
	.wp-block-table.is-style-technical th:first-child {
		width: auto;
		padding-right: 0;
		padding-bottom: 0;
	}
	.wp-block-table.is-style-technical td + td,
	.wp-block-table.is-style-technical th + th {
		padding-top: 4px;
		border-top: 0;
	}
}

/* The editor's stand-in for the template's dynamic blocks (long-read-editor.js). */
.vy-lr-editor-ph {
	padding: 12px 16px;
	border: 1px dashed var(--border-strong);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.5;
	color: var(--fg-4);
}
.vy-lr-editor-ph strong {
	color: var(--fg-2);
	font-weight: 500;
}

/* ============================================================================
   Template
   ============================================================================ */

.vy-lr {
	--vy-lr-col: 680px;
	--vy-lr-pad: 20px;
	--vy-lr-wide: 1280px;
	--vy-lr-bar-top: var(--voyager-hdr-bot, var(--voyager-hdr-h, 85px));
	background: var(--bg-canvas);
	color: var(--fg-3);
	padding-bottom: 120px;
}
@media (min-width: 782px) {
	.vy-lr { --vy-lr-pad: 32px; }
}
@media (min-width: 1200px) {
	.vy-lr { --vy-lr-pad: 80px; }
}

/* Each section sets its own top margin; the flow layout's block gap would add
   24px to all of them. */
.vy-lr > * {
	margin-block-start: 0;
}

/* The centred column every reading element shares. */
.vy-lr > .vy-lr-take,
.vy-lr > .vy-lr-after,
.vy-lr > .vy-lr-signup {
	box-sizing: border-box;
	width: min(var(--vy-lr-col), calc(100% - 2 * var(--vy-lr-pad)));
	margin-inline: auto;
}

/* ── Reading bar ─────────────────────────────────────────────────────────────
   Sticky directly under the site header. --voyager-hdr-bot is where nav.js
   measured the header's bottom edge. */
.vy-lr > .vy-lr-bar {
	position: sticky;
	top: var(--vy-lr-bar-top);
	z-index: 150;
	border-bottom: 1px solid var(--border-hair);
	background: color-mix(in srgb, var(--bg-canvas) 92%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.vy-lr > .vy-lr-bar[hidden] {
	display: none;
}
.vy-lr-bar__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 20px;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--vy-lr-wide) + 2 * var(--vy-lr-pad));
	margin-inline: auto;
	padding: 10px var(--vy-lr-pad) 9px;
}
.vy-lr-bar__toggle {
	display: flex;
	gap: 14px;
	align-items: center;
	min-width: 0;
	min-height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.vy-lr-bar__toggle:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}
.vy-lr-bar__label,
.vy-lr-bar__count {
	flex: none;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
}
.vy-lr-bar__label { color: var(--fg-4); }
.vy-lr-bar__count { color: var(--fg-4); }
.vy-lr-bar__count-inline,
.vy-lr-bar__chev {
	display: none;
}
.vy-lr-bar__title {
	min-width: 0;
	overflow: hidden;
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--fg-1);
	white-space: nowrap;
	text-overflow: ellipsis;
}
.vy-lr-bar__title.is-swapping {
	animation: vy-lr-in var(--dur-slow) var(--ease-standard) both;
}
@keyframes vy-lr-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
.vy-lr-bar__track {
	display: block;
	height: 2px;
	background: var(--border-hair);
}
.vy-lr-bar__fill {
	display: block;
	width: calc(var(--vy-rb-p, 0) * 100%);
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

/* The section list. Opened by the bar; on mobile that is its whole job. */
.vy-lr-bar__toc {
	grid-column: 1 / -1;
	max-height: min(60vh, 420px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.vy-lr-bar__toc[hidden] {
	display: none;
}
.vy-lr-bar__toc ol {
	margin: 0;
	padding: 6px 0 4px;
	list-style: none;
}
.vy-lr-bar__toc a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.35;
	color: var(--fg-3);
	text-decoration: none;
}
.vy-lr-bar__toc a:hover,
.vy-lr-bar__toc a:focus-visible,
.vy-lr-bar__toc a[aria-current="location"] {
	color: var(--fg-1);
}
.vy-lr-bar__toc a:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 2px;
}
.vy-lr-bar__toc-n {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
.vy-lr-bar__toc a[aria-current="location"] .vy-lr-bar__toc-n {
	color: var(--accent-bright);
}

/* No H2s: the progress line alone. */
.vy-lr-bar.is-progress-only .vy-lr-bar__inner {
	display: none;
}

@media (max-width: 781px) {
	.vy-lr-bar__inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 8px var(--vy-lr-pad) 8px;
	}
	.vy-lr-bar__toggle {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "label chev" "title chev";
		gap: 2px 10px;
		width: 100%;
		min-height: 44px;
	}
	.vy-lr-bar__label {
		grid-area: label;
		font-size: 9.5px;
	}
	.vy-lr-bar__count-inline {
		display: inline;
	}
	.vy-lr-bar__title {
		grid-area: title;
		font-size: 15px;
	}
	.vy-lr-bar__count {
		display: none;
	}
	.vy-lr-bar__chev {
		display: block;
		grid-area: chev;
		width: 8px;
		height: 8px;
		margin-right: 4px;
		border-right: 1.5px solid var(--fg-4);
		border-bottom: 1.5px solid var(--fg-4);
		transform: translateY(-2px) rotate(45deg);
		transition: transform var(--dur-base) var(--ease-standard);
	}
	.vy-lr-bar__toggle[aria-expanded="true"] .vy-lr-bar__chev {
		transform: translateY(2px) rotate(-135deg);
	}
}

/* ── Header band ─────────────────────────────────────────────────────────────
   VOY-1546's note cover (assets/css/note-cover.css) at band proportions: full
   width, 300px at 1440 and 150px at 390 as on the boards, no rounding, one
   hairline underneath. */
.vy-lr > .vy-lr-band {
	aspect-ratio: auto;
	height: clamp(150px, 21vw, 300px);
	border-width: 0 0 1px;
	border-radius: 0;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.vy-lr > .vy-lr-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
	padding: 56px var(--vy-lr-pad) 0;
	text-align: center;
}
.vy-lr-head > * {
	margin: 0;
}

/* Topic · published · updated <date> · reading time. Separators are drawn,
   so an empty part (no topic, no update, no reading time) leaves no stray dot. */
.vy-lr-meta {
	gap: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--fg-4);
}
.vy-lr-meta > * {
	margin: 0;
}
/* Post dates are uppercase mono labels elsewhere on the site; the board reads
   "Jul 27, 2026 · updated Sep 2" in sentence case. */
.vy-lr-meta .wp-block-post-date,
.vy-lr-card__when .wp-block-post-date {
	font-family: inherit;
	font-size: inherit;
	letter-spacing: 0;
	text-transform: none;
}
.vy-lr-meta > :empty {
	display: none;
}
.vy-lr-meta > * + *::before {
	content: "\00b7";
	margin: 0 10px;
	color: var(--fg-5);
}
.vy-lr-meta > .vy-lr-topic:empty + *::before,
.vy-lr-meta > .vy-lr-meta__updated + .wp-block-post-date::before {
	content: none;
}
.vy-lr-meta > .vy-lr-meta__updated + .wp-block-post-date {
	margin-left: 0.4em;
}
.vy-lr-meta > .vy-lr-meta__updated {
	opacity: 1;
}
@media (max-width: 600px) {
	.vy-lr-meta { font-size: 10px; }
	.vy-lr-meta > * + *::before { margin: 0 6px; }
	.vy-lr-meta > .vy-lr-topic { font-size: 10px; }
}

/* The topic chip is VOY-1546's .vy-note-topic (assets/css/note-cover.css),
   which colours it by topic. In the header it reads at the dateline's size. */
.vy-lr-meta > .vy-lr-topic {
	font-size: 11px;
	line-height: 1.5;
}

.vy-lr-title {
	max-width: 1080px;
	font-family: var(--font-display);
	font-size: clamp(40px, 4.4vw + 16px, 80px);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: var(--fg-1);
	text-wrap: balance;
}
.vy-lr-colon {
	color: var(--accent-bright);
}
.vy-lr-dek {
	max-width: 700px;
	font-family: var(--font-body);
	font-size: clamp(17px, 0.4vw + 15px, 20px);
	line-height: 1.55;
	color: var(--fg-2);
	text-wrap: pretty;
}
.vy-lr-dek:empty {
	display: none;
}
.vy-lr-byline {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg-3);
}
/* The planet mark from the board, as a mask so it takes the accent token. */
.vy-lr-byline::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--accent-bright);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='11' ry='4.2' fill='none' stroke='%23000' stroke-width='1.5' transform='rotate(-18 12 12)'/%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='11' ry='4.2' fill='none' stroke='%23000' stroke-width='1.5' transform='rotate(-18 12 12)'/%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── If you read nothing else ────────────────────────────────────────────── */
.vy-lr > .vy-lr-take {
	margin-top: 56px;
	border: 1px solid var(--border-1);
	border-radius: var(--r-3);
	background: var(--bg-panel);
}
.vy-lr-take__head {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	padding: 16px 22px;
	font-family: var(--font-mono);
	list-style: none;
	cursor: pointer;
}
.vy-lr-take__head::-webkit-details-marker {
	display: none;
}
.vy-lr-take__head:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: -2px;
}
.vy-lr-take[open] > .vy-lr-take__head {
	border-bottom: 1px solid var(--border-hair);
}
.vy-lr-take__label {
	font-size: 11px;
	color: var(--accent-bright);
}
.vy-lr-take__count {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-size: 10px;
	color: var(--fg-4);
}
.vy-lr-take__count::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(1px) rotate(-135deg);
	transition: transform var(--dur-base) var(--ease-standard);
}
.vy-lr-take:not([open]) .vy-lr-take__count::after {
	transform: translateY(-2px) rotate(45deg);
}
.vy-lr-take__list {
	counter-reset: vy-take;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vy-lr-take__list > li {
	counter-increment: vy-take;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	padding: 14px 22px;
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--fg-1);
}
.vy-lr-take__list > li + li {
	border-top: 1px solid var(--border-hair);
}
.vy-lr-take__list > li::before {
	content: counter(vy-take, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 2.2;
	color: var(--accent-bright);
}

/* ── The column ──────────────────────────────────────────────────────────────
   680px. The body is a flow layout, so every authored block is a child of
   .vy-lr__body or of a group inside it. */
.vy-lr > .vy-lr-article {
	box-sizing: border-box;
	padding: 56px var(--vy-lr-pad) 0;
}
.vy-lr__body {
	position: relative;
	counter-reset: vy-sec;
	max-width: var(--vy-lr-col);
	margin-inline: auto;
	font-family: var(--font-body);
	font-size: 19px;
	line-height: 1.75;
	color: var(--fg-3);
}
@media (max-width: 781px) {
	.vy-lr__body { font-size: 17px; }
}

/* Vertical rhythm: 22px between blocks, 72px above a section. */
.vy-lr__body > *,
.vy-lr__body .wp-block-group > * {
	margin-block: 0;
}
.vy-lr__body > * + *,
.vy-lr__body .wp-block-group > * + * {
	margin-block-start: 22px;
}

/* A post wrapped in one alignfull group (the v3 posts are) keeps the column:
   the wrapper's own inline padding would narrow it. Inline styles, hence the
   !important. Only the wrapper, never a group inside it. */
.vy-lr__body > .wp-block-group.alignfull {
	padding: 0 !important;
}

/* Paragraphs and items read at the column's size. A margin note keeps its own
   (it is a paragraph too), so it is excluded rather than out-specified. */
.vy-lr__body p:not(.is-style-margin-note),
.vy-lr__body li {
	font-size: inherit;
	line-height: inherit;
}
.vy-lr__body strong,
.vy-lr__body b {
	font-weight: 500;
	color: var(--fg-1);
}
.vy-lr__body a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent);
	text-underline-offset: 3px;
	transition: color var(--dur-base) var(--ease-standard);
}
.vy-lr__body a:hover,
.vy-lr__body a:focus-visible {
	color: var(--link-hover);
}

/* The opening paragraph is the lede. */
.vy-lr__body > p:first-child,
.vy-lr__body > .wp-block-group:first-child > p:first-child {
	font-family: var(--font-display);
	font-size: clamp(20px, 0.6vw + 16px, 24px);
	font-weight: 500;
	line-height: 1.6;
	color: var(--fg-1);
}

/* H2: every one is a numbered section. The number hangs in the left gutter
   from 1024px and stacks above the heading below that. A CSS counter, so no
   post needs editing to get it. The heading font size is !important because
   the v3 posts' headings carry has-x-large-font-size, a preset class that is
   !important itself. */
.vy-lr__body h2 {
	counter-increment: vy-sec;
	position: relative;
	margin-block-start: 72px;
	font-family: var(--font-display);
	font-size: clamp(28px, 1.6vw + 14px, 36px) !important;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--fg-1);
	scroll-margin-top: calc(var(--vy-lr-bar-top) + 72px);
}
.vy-lr__body h2::before {
	content: counter(vy-sec, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.05em;
	color: var(--border-1);
	transition: color var(--dur-slow) var(--ease-standard);
}
.vy-lr__body h2.is-current::before {
	color: var(--accent-bright);
}
@media (min-width: 1024px) {
	.vy-lr__body h2::before {
		position: absolute;
		top: -0.05em;
		right: calc(100% + 40px);
		margin: 0;
		font-size: 64px;
	}
}
.vy-lr__body h3 {
	margin-block-start: 44px;
	font-family: var(--font-display);
	font-size: clamp(21px, 0.6vw + 17px, 24px) !important;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--fg-1);
}
.vy-lr__body h4,
.vy-lr__body h5,
.vy-lr__body h6 {
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--fg-1);
}
.vy-lr__body h2 + *,
.vy-lr__body h3 + * {
	margin-block-start: 18px;
}

.vy-lr__body ul:not([class*="is-style-"]),
.vy-lr__body ol:not([class*="is-style-"]) {
	padding-left: 1.2em;
}
.vy-lr__body ul:not([class*="is-style-"]) > li + li,
.vy-lr__body ol:not([class*="is-style-"]) > li + li {
	margin-top: 8px;
}
.vy-lr__body li::marker {
	color: var(--fg-4);
}
/* A code listing scrolls inside the column instead of widening the page: the
   A/B testing note's <pre> pushed a 390px screen to 648px (found by VOY-1611). */
.vy-lr__body pre {
	max-width: 100%;
	overflow-x: auto;
}
.vy-lr__body code {
	padding: 1px 5px;
	border-radius: var(--r-1);
	background: var(--bg-panel);
	font-family: var(--font-mono);
	font-size: 0.8em;
	color: var(--fg-1);
}
.vy-lr__body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--r-2);
}
.vy-lr__body figcaption {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--fg-4);
}
.vy-lr__body blockquote:not(.is-style-pull) {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 2px solid var(--border-strong);
	color: var(--fg-2);
}
.vy-lr__body hr {
	border: 0;
	border-top: 1px solid var(--border-hair);
}

/* Margin notes in the gutter, 1200px and up. The note leaves the flow and
   sits beside the end of its paragraph; long-read.js lifts it level with the
   paragraph's top (--vy-mn-shift) and keeps neighbouring notes apart. */
@media (min-width: 1200px) {
	.vy-lr__body .is-style-margin-note {
		position: absolute;
		left: calc(100% + 56px);
		box-sizing: border-box;
		width: clamp(160px, calc((100vw - var(--vy-lr-col)) / 2 - 96px), 250px);
		margin: 0 !important;
		transform: translateY(var(--vy-mn-shift, 0px));
	}
}

/* ── After the note ──────────────────────────────────────────────────────── */
.vy-lr > .vy-lr-after {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 72px;
}
.vy-lr-after > * {
	margin: 0;
}
.vy-lr-after > :empty {
	display: none;
}

/* The Operating Audit card. */
.vy-lr-audit {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px 32px;
	border: 1px solid color-mix(in srgb, var(--accent-bright) 35%, transparent);
	border-radius: var(--r-3);
	background: color-mix(in srgb, var(--bg-panel) 90%, transparent);
	box-shadow:
		0 40px 100px color-mix(in srgb, var(--color-indigo-950) 55%, transparent),
		0 0 60px color-mix(in srgb, var(--accent-bright) 10%, transparent);
}
.vy-lr-audit > * {
	margin: 0;
}
.vy-lr-audit__eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--accent-bright);
}
.vy-lr-audit__title {
	font-family: var(--font-display);
	font-size: clamp(24px, 1.2vw + 14px, 30px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--fg-1);
}
.vy-lr-audit__pitch {
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--fg-3);
}
.vy-lr-audit__foot {
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border-hair);
}
.vy-lr-audit__price {
	display: flex;
	gap: 10px;
	align-items: baseline;
	margin: 0;
}
.vy-lr-audit__fee {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	color: var(--fg-1);
}
.vy-lr-audit__credit {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
@media (max-width: 600px) {
	.vy-lr-audit { padding: 22px 18px; }
	.vy-lr-audit__foot .wp-block-buttons,
	.vy-lr-audit__foot .wp-block-button {
		width: 100%;
	}
	.vy-lr-audit__foot .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* Sources, printed after the card. */
.vy-lr-sources {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--border-1);
}
.vy-lr-sources__label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-3);
}

/* Older note. */
.vy-lr-older__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 0;
	border-block: 1px solid var(--border-1);
	color: inherit;
	text-decoration: none;
}
.vy-lr-older__label,
.vy-lr-older__meta {
	font-family: var(--font-mono);
	font-size: 11px;
}
.vy-lr-older__label { color: var(--accent-bright); }
.vy-lr-older__meta { color: var(--fg-4); }
.vy-lr-older__title {
	font-family: var(--font-display);
	font-size: clamp(22px, 1.6vw + 10px, 32px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--fg-1);
	transition: color var(--dur-base) var(--ease-standard);
}
.vy-lr-older__link:hover .vy-lr-older__title,
.vy-lr-older__link:focus-visible .vy-lr-older__title {
	color: var(--accent-bright);
}
.vy-lr-older__link:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 4px;
}

/* ── Signup ──────────────────────────────────────────────────────────────── */
.vy-lr > .vy-lr-signup {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 56px;
	padding: 28px 32px;
	border: 1px solid var(--border-1);
	border-radius: var(--r-3);
	background: color-mix(in srgb, var(--bg-panel) 85%, transparent);
}
.vy-lr-signup > * {
	margin: 0;
}
.vy-lr-signup__eyebrow {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--accent-bright);
}
.vy-lr-signup__title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--fg-1);
}
.vy-lr-signup__lede {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	color: var(--fg-3);
}
@media (max-width: 600px) {
	.vy-lr > .vy-lr-signup { padding: 22px 18px; }
}

/* ── Related ─────────────────────────────────────────────────────────────── */
.vy-lr > .vy-lr-related {
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--vy-lr-wide) + 2 * var(--vy-lr-pad));
	margin: 120px auto 0;
	padding-inline: var(--vy-lr-pad);
}
/* Nothing else in the topic: no heading over an empty grid. */
.vy-lr > .vy-lr-related:not(:has(.wp-block-post)) {
	display: none;
}
.vy-lr-related > * {
	margin: 0;
}
.vy-lr-related__head {
	gap: 16px 32px;
}
.vy-lr-related__titles {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 640px;
}
.vy-lr-related__titles > * {
	margin: 0;
}
.vy-lr-eyebrow {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-4);
}
.vy-lr-eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--border-1);
}
.vy-lr-related__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 2.2vw + 12px, 44px);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: var(--fg-1);
}
.vy-lr-related__all {
	margin: 0;
	font-family: var(--font-body);
	font-size: 15px;
}
.vy-lr-related__all:empty {
	display: none;
}
.vy-lr-related__all a {
	color: var(--accent-bright);
	text-decoration: none;
}
.vy-lr-related__all a:hover,
.vy-lr-related__all a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vy-lr .vy-lr-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 1023px) {
	.vy-lr .vy-lr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 640px) {
	.vy-lr .vy-lr-cards { grid-template-columns: minmax(0, 1fr); }
}
.vy-lr-cards > .wp-block-post {
	margin: 0;
}
.vy-lr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}
.vy-lr-card > * {
	margin: 0;
}
.vy-lr-card__cover {
	aspect-ratio: auto;
	height: 180px;
	transition: border-color var(--dur-base) var(--ease-standard);
}
.vy-lr-card__meta {
	gap: 12px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	line-height: 1.5;
	color: var(--fg-4);
}
.vy-lr-card__meta p {
	margin: 0;
}
.vy-lr-card__when {
	gap: 0;
}
.vy-lr-card__when > * {
	margin: 0;
}
.vy-lr-card__when > :empty {
	display: none;
}
.vy-lr-card__when > * + *::before {
	content: "\00b7";
	margin: 0 8px;
}
.vy-lr-card__title {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--fg-1);
}
.vy-lr-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-base) var(--ease-standard);
}
/* The whole card is the title's link. */
.vy-lr-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.vy-lr-card__title a:focus-visible {
	outline: none;
}
.vy-lr-card:has(.vy-lr-card__title a:focus-visible) {
	outline: 2px solid var(--accent-bright);
	outline-offset: 6px;
}
.vy-lr-card:has(.vy-lr-card__title a:hover) .vy-lr-card__title,
.vy-lr-card:has(.vy-lr-card__title a:focus-visible) .vy-lr-card__title {
	color: var(--accent-bright);
}
.vy-lr-card:has(.vy-lr-card__title a:hover) .vy-lr-card__cover,
.vy-lr-card:has(.vy-lr-card__title a:focus-visible) .vy-lr-card__cover {
	border-color: var(--border-strong);
}
.vy-lr-card__dek {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--fg-3);
}
.vy-lr-card__dek:empty {
	display: none;
}


/* ── Round 2: the note's service (VOY-1611, board Post-PA) ───────────────────
   inc/note-service.php puts vy-practice-<practice> on everything that names
   the note's service, which sets --vy-service (assets/css/note-cover.css). A
   note with no service links its practice hub and carries its topic class,
   so the colour falls back to --vy-topic, then the accent. */
.vy-lr {
	--vy-lr-svc: var(--vy-service, var(--vy-topic, var(--accent-bright)));
}

/* "Filed under Local SEO · a service we sell", under the dek. */
.vy-lr-filed:empty {
	display: none;
}
.vy-lr-filed a {
	--vy-lr-svc: var(--vy-service, var(--vy-topic, var(--accent-bright)));
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 12px;
	align-items: center;
	padding: 9px 16px;
	border: 1px solid color-mix(in srgb, var(--vy-lr-svc) 35%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--vy-lr-svc) 7%, transparent);
	text-decoration: none;
	transition: border-color var(--dur-base) var(--ease-standard);
}
.vy-lr-filed a:hover {
	border-color: var(--vy-lr-svc);
}
.vy-lr-filed a:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}
.vy-lr-filed__k,
.vy-lr-filed__go {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
}
.vy-lr-filed__k { color: var(--fg-4); }
.vy-lr-filed__go { color: var(--vy-lr-svc); }
.vy-lr-filed__name {
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--fg-1);
}

/* "Local SEO services →" at the right of the reading bar. */
.vy-lr-bar__inner:has(.vy-lr-bar__svc) {
	grid-template-columns: minmax(0, 1fr) auto auto;
}
.vy-lr-bar__svc {
	--vy-lr-svc: var(--vy-service, var(--accent-bright));
	font-family: var(--font-body);
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--vy-lr-svc);
	white-space: nowrap;
	text-decoration: none;
}
.vy-lr-bar__svc:hover { color: var(--fg-1); }
.vy-lr-bar__svc:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}
@media (max-width: 781px) {
	.vy-lr-bar__inner:has(.vy-lr-bar__svc) {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 14px;
	}
	.vy-lr-bar__svc { font-size: 12.5px; }
}
/* On a phone the bar is the section list's button; the pill under the dek
   and the enquiry card carry the service link there. */
@media (max-width: 600px) {
	.vy-lr-bar__inner:has(.vy-lr-bar__svc) { grid-template-columns: minmax(0, 1fr); }
	.vy-lr-bar__svc { display: none; }
}

/* The inline service card (voyagermark/service-card), where an Editor puts it
   in the body. The whole card is the link. */
.vy-lr-svc {
	--vy-lr-svc: var(--vy-service, var(--accent-bright));
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	box-sizing: border-box;
	margin: 32px 0;
	padding: 18px 20px;
	border: 1px solid color-mix(in srgb, var(--vy-lr-svc) 35%, transparent);
	border-radius: var(--r-3);
	background: linear-gradient(90deg, color-mix(in srgb, var(--vy-lr-svc) 8%, var(--bg-panel)), var(--bg-panel) 65%);
	transition: border-color var(--dur-base) var(--ease-standard);
}
.vy-lr-svc:hover {
	border-color: color-mix(in srgb, var(--vy-lr-svc) 70%, transparent);
}
.vy-lr-svc:has(.vy-lr-svc__go:focus-visible) {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}
.vy-lr-svc__text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}
.vy-lr-svc__kicker {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--vy-lr-svc);
}
.vy-lr-svc__title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--fg-1);
}
.vy-lr-svc__line {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--fg-3);
}
.vy-lr-svc__price {
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	color: var(--fg-4);
}
.vy-lr__body a.vy-lr-svc__go,
.vy-lr-svc__go {
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--vy-lr-svc);
	white-space: nowrap;
	text-decoration: none;
}
.vy-lr-svc__go::after {
	content: "";
	position: absolute;
	inset: 0;
}
.vy-lr-svc__go:focus-visible {
	outline: none;
}
@media (max-width: 600px) {
	.vy-lr-svc {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding: 16px;
	}
	.vy-lr__body a.vy-lr-svc__go,
	.vy-lr-svc__go {
		white-space: normal;
	}
}

/* The enquiry card (voyagermark/post-enquiry-card) in place of the Audit
   card. The form is VOY-1606's voyagermark/enquiry-form; its handling is
   svc-child.js. Its paint on a service page is svc-child.css, scoped to those
   pages, so the post paints it here. */
.vy-lr-ask {
	--vy-lr-svc: var(--vy-service, var(--vy-topic, var(--accent-bright)));
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 30px;
	border: 1px solid color-mix(in srgb, var(--vy-lr-svc) 40%, transparent);
	border-radius: var(--r-3);
	background:
		radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--vy-lr-svc) 12%, transparent), transparent 55%),
		var(--bg-panel);
	scroll-margin-top: calc(var(--vy-lr-bar-top) + 72px);
}
.vy-lr-ask > * {
	margin: 0;
}
.vy-lr-ask__kicker {
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	color: var(--vy-lr-svc);
}
.vy-lr-ask__title {
	font-family: var(--font-display);
	font-size: clamp(24px, 1.2vw + 14px, 30px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--fg-1);
}
.vy-lr-ask__text {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--fg-3);
}
.vy-lr-ask__links {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--fg-3);
}
.vy-lr-ask__links:empty {
	display: none;
}
.vy-lr-ask__links a {
	color: var(--vy-lr-svc);
	text-decoration: none;
}
.vy-lr-ask__links a:hover,
.vy-lr-ask__links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vy-lr-ask .vy-svc-enquiry {
	position: relative;
	margin: 4px 0 0;
}
.vy-lr-ask .vy-svc-enquiry__form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 10px;
	align-items: end;
}
.vy-lr-ask .vy-svc-enquiry__form[hidden] {
	display: none;
}
.vy-lr-ask .vy-svc-enquiry__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}
.vy-lr-ask .vy-svc-enquiry__label {
	font-family: var(--font-mono);
	font-size: 9.5px;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-4);
}
.vy-lr-ask .vy-svc-enquiry__input {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--r-3);
	background: var(--bg-canvas);
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--fg-1);
}
.vy-lr-ask .vy-svc-enquiry__input::placeholder {
	color: var(--fg-4);
}
.vy-lr-ask .vy-svc-enquiry__input:focus-visible {
	border-color: var(--vy-lr-svc);
	outline: 2px solid color-mix(in srgb, var(--vy-lr-svc) 60%, transparent);
	outline-offset: 1px;
}
.vy-lr-ask .vy-svc-enquiry__submit {
	grid-column: 1;
	justify-self: start;
	margin: 4px 0 0;
	padding: 13px 22px;
	border: 0;
	border-radius: var(--r-3);
	background: var(--vy-lr-svc);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bg-canvas);
	cursor: pointer;
	transition: background-color var(--dur-base) var(--ease-standard);
}
.vy-lr-ask .vy-svc-enquiry__submit:hover {
	background: color-mix(in oklab, var(--vy-lr-svc) 82%, var(--fg-1));
}
.vy-lr-ask .vy-svc-enquiry__submit:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}
.vy-lr-ask .vy-svc-enquiry__submit:disabled {
	cursor: progress;
	opacity: 0.7;
}
/* The honeypot: off-screen, never display:none (a bot reads that). */
.vy-lr-ask .vy-svc-enquiry__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.vy-lr-ask .vy-svc-enquiry__status {
	margin: 0;
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--fg-1);
}
.vy-lr-ask .vy-svc-enquiry__status.is-error {
	color: var(--signal-down);
}
.vy-lr-ask .vy-svc-enquiry__fallback {
	margin: 10px 0 0;
	font-family: var(--font-body);
	font-size: 12.5px;
	color: var(--fg-4);
}
.vy-lr-ask .vy-svc-enquiry__fallback a {
	color: var(--vy-lr-svc);
}
/* The mail fallback shows until the script can send, and again if it cannot. */
.vy-lr-ask .vy-svc-enquiry__form.is-ready ~ .vy-svc-enquiry__fallback {
	display: none;
}
@media (max-width: 640px) {
	.vy-lr-ask { padding: 22px 18px; }
	.vy-lr-ask .vy-svc-enquiry__form { grid-template-columns: minmax(0, 1fr); }
	.vy-lr-ask .vy-svc-enquiry__submit {
		justify-self: stretch;
		text-align: center;
	}
}

/* "More on Local SEO" and its links, in the service's colour. */
.vy-lr-related .vy-lr-eyebrow[class*="vy-practice-"] {
	color: var(--vy-service);
}
.vy-lr-related__all {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}
.vy-lr-related__all[class*="vy-practice-"] a:first-child {
	color: var(--vy-service);
}
.vy-lr-related__all a.vy-lr-related__notes {
	color: var(--fg-3);
}

@media (prefers-reduced-motion: reduce) {
	.vy-lr *,
	.vy-lr *::before,
	.vy-lr *::after {
		transition: none !important;
		animation: none !important;
	}
}
