/* =========================================================================
   The single blog post (design of 2026-11-03)

   Loaded on a Post alone (inc/enqueue.php). The 1440 build with 1280 of
   content: the title block centred, the picture 1280×600 with 24px
   corners, then a 182px side column and a 1058px text column 40 apart.
   Every colour is the design's own, named here once.

   Markup: template-parts/content/content-post.php and the blocks in
   template-parts/sections/bp-*.php. The editor's own Pullquote, Quote and
   Table blocks are styled to the design under .bp-content.
   ====================================================================== */

.single-post {
	--container-max: 1280px;
	/* The footer follows the last block by the design's 40 (sections.css reads this for its margin). */
	--section-gap: 40px;

	--bp-blue: #0a61b1;        /* borders, chevrons, the solid button */
	--bp-blue-deep: #0052a1;   /* the solid button on hover; the pale button's wording */
	--bp-blue-text: #1668b8;   /* the italic quote */
	--bp-navy: #143559;        /* the pull quote and the product's wording */
	--bp-ink: #1c2023;         /* headings, the lead paragraph, table cells */
	--bp-grey: #5f656a;        /* body copy */
	--bp-pale: #eaf3fe;        /* the pull quote, the product card, the panel */
	--bp-paler: #f5f9fe;       /* tinted rows, the italic strip, the pale button */
	--bp-tint: #dbebff;        /* heading bars */
	--bp-line: #d5dade;        /* hairlines */
}

/* -------------------------------------------------------------------------
   The top of the page
   ---------------------------------------------------------------------- */

.bp-head {
	padding-top: 48px;
	text-align: center;
}

/* The page starts with the title (the small "Blog" line above it went on
   2026-11-16). */
.bp-head__title {
	max-width: 900px;
	margin: 0 auto;
	color: var(--bp-ink);
	font-family: var(--font-display);
	font-size: clamp(28px, 1.25rem + 1.4vw, 40px);
	font-weight: var(--fw-semibold);
	line-height: 1.2;
	letter-spacing: 0;
}

.bp-head__subtitle {
	max-width: 760px;
	margin: 20px auto 0;
	color: var(--bp-grey);
	font-size: 18px;
	line-height: 1.5;
}

/* The picture: the page's width, shown whole at its own proportions (asked
   for on 2026-11-16; cropped to 1280 by 600 before), 24px corners. */
.bp-feature {
	margin: 56px 0 0;
}

.bp-feature img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
}

/* -------------------------------------------------------------------------
   The two columns
   ---------------------------------------------------------------------- */

.bp-body {
	display: grid;
	grid-template-columns: 182px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-top: 64px;
}

.bp-body--full {
	grid-template-columns: minmax(0, 1fr);
}

/* ---- The side column: stays in view as the text scrolls ----
   Held to the window's height, scrolling inside itself when the box, the
   author and the date are taller than that (2026-11-16), so it keeps its
   place rather than running on below the fold. */

.bp-side {
	position: sticky;
	top: 6rem;
	max-height: calc(100vh - 7rem);
	overflow-y: auto;
	/* It scrolls, but shows no bar (asked for on 2026-11-16). */
	scrollbar-width: none;
}

.bp-side::-webkit-scrollbar {
	display: none;
}

.bp-side > * + * {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--bp-line);
}

.bp-toc {
	overflow: hidden;
	border: 1px solid var(--bp-blue);
	border-radius: 6px;
	background: #ffffff;
}

.bp-toc__title {
	margin: 0;
	padding: 11px 12px;
	border-bottom: 1px solid var(--bp-blue);
	background: var(--bp-tint);
	color: var(--bp-ink);
	font-size: 16px;
	font-weight: var(--fw-medium);
	line-height: 1.375;
}

.bp-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-toc__list li:nth-child(even) {
	background: var(--bp-paler);
}

.bp-toc__list a {
	display: block;
	padding: 11px 12px;
	color: var(--bp-grey);
	font-size: 16px;
	line-height: 1.375;
	text-decoration: none;
	transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

/* The entry under the pointer, and the one for the part of the text the
   reader is at (main.js marks it as the page scrolls): the tint behind it
   and a 3px bar of the blue down its left (asked for on 2026-11-16). */
.bp-toc__list a:hover,
.bp-toc__list a.is-current {
	background: var(--bp-tint);
	box-shadow: inset 3px 0 0 var(--bp-blue);
	color: var(--bp-blue);
}

.bp-toc__list a.is-current {
	font-weight: var(--fw-medium);
}

.bp-toc__sub a {
	padding-left: 24px;
	font-size: 15px;
}

.bp-side__label {
	margin: 0;
	color: var(--bp-ink);
	font-size: 16px;
	font-weight: var(--fw-medium);
	line-height: 1.4;
}

/* The heading is a button that folds its block away (2026-11-16): the
   wording at the left, a chevron at the right that turns over while the
   block is open. */
.bp-side__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.bp-side__toggle:hover {
	color: var(--bp-blue);
}

.bp-side__chevron {
	flex-shrink: 0;
	transition: transform var(--dur) var(--ease);
}

.bp-side__toggle[aria-expanded="true"] .bp-side__chevron {
	transform: rotate(180deg);
}

.bp-side__body[hidden] {
	display: none;
}

.bp-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	color: var(--bp-grey);
	font-size: 16px;
	line-height: 1.4;
}

.bp-author img {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bp-paler);
	object-fit: cover;
}

.bp-side__date {
	display: block;
	margin-top: 16px;
	color: var(--bp-grey);
	font-size: 16px;
	line-height: 1.4;
}

/* ---- The text column: the text, then the blocks 40 apart ---- */

.bp-main > * + * {
	margin-top: 40px;
}

/* -------------------------------------------------------------------------
   The text
   ---------------------------------------------------------------------- */

.bp-content {
	color: var(--bp-grey);
	font-size: 16px;
	line-height: 1.5;
}

.bp-content > * + * {
	margin-top: 16px;
}

.bp-content h2,
.bp-content h3,
.bp-content h4 {
	color: var(--bp-ink);
	font-family: var(--font-display);
	font-weight: var(--fw-semibold);
	letter-spacing: 0;
	text-wrap: balance;
}

.bp-content h2 {
	margin-top: 40px;
	font-size: 32px;
	line-height: 1.2;
}

.bp-content h3 {
	margin-top: 28px;
	font-size: 20px;
	line-height: 1.3;
}

.bp-content h4 {
	margin-top: 24px;
	font-size: 18px;
	line-height: 1.3;
}

.bp-content > :first-child {
	margin-top: 0;
}

.bp-content h2 + h3 {
	margin-top: 20px;
}

.bp-content h2 + p,
.bp-content h3 + p,
.bp-content h4 + p {
	margin-top: 20px;
}

/* The opening paragraph, dark and a weight up, as the design sets it. */
.bp-content > p:first-of-type {
	color: var(--bp-ink);
	font-weight: var(--fw-medium);
}

.bp-content p {
	margin-bottom: 0;
}

.bp-content ul,
.bp-content ol {
	margin: 16px 0 0;
	padding-left: 20px;
}

.bp-content li {
	padding-left: 4px;
}

.bp-content li + li {
	margin-top: 8px;
}

.bp-content li::marker {
	color: var(--bp-grey);
}

.bp-content a {
	color: var(--bp-blue-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bp-content a:hover {
	color: var(--bp-blue-deep);
}

.bp-content strong {
	color: var(--bp-ink);
	font-weight: var(--fw-semibold);
}

.bp-content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.bp-content figure {
	margin: 24px 0 0;
}

.bp-content figcaption {
	margin-top: 8px;
	color: var(--bp-grey);
	font-size: 14px;
	text-align: center;
}

/* ---- The pull quote: the pale panel with the big quote mark ---- */

.single-post .bp-content .wp-block-pullquote {
	margin: 24px 0 0;
	padding: 28px 36px;
	border: 0;
	border-radius: 16px;
	background: var(--bp-pale);
	text-align: left;
}

.single-post .bp-content .wp-block-pullquote blockquote {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
	padding: 0;
	border: 0;
}

/* The mark: the display face's own curly quotes, big and heavy, in navy. */
.single-post .bp-content .wp-block-pullquote blockquote::before {
	content: "\201C";
	flex: 0 0 auto;
	margin-top: -2px;
	color: var(--bp-navy);
	font-family: var(--font-display);
	font-size: 96px;
	font-weight: 800;
	line-height: 0.5;
}

.single-post .bp-content .wp-block-pullquote p {
	margin: 0;
	color: var(--bp-navy);
	font-size: 20px;
	font-style: normal;
	font-weight: var(--fw-medium);
	line-height: 1.4;
}

.single-post .bp-content .wp-block-pullquote cite {
	display: block;
	margin-top: 10px;
	color: var(--bp-grey);
	font-size: 14px;
	font-style: normal;
	text-transform: none;
}

/* ---- The quote: the italic blue line on a pale strip ---- */

.single-post .bp-content .wp-block-quote {
	margin: 40px 0 0;
	padding: 12px 20px;
	border: 0;
	border-left: 2px solid var(--bp-blue-text);
	border-radius: 0 6px 6px 0;
	background: var(--bp-paler);
	color: var(--bp-blue-text);
	font-size: 16px;
	font-style: italic;
	line-height: 1.5;
}

.single-post .bp-content .wp-block-quote p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	font-style: inherit;
	line-height: inherit;
}

.single-post .bp-content .wp-block-quote p + p {
	margin-top: 10px;
}

.single-post .bp-content .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	color: var(--bp-grey);
	font-size: 14px;
	font-style: normal;
}

/* ---- The product card placed in the text by [blog_product] ----
   Its button is a link in the text column, so the column's link colour
   and underline are put back to the button's own. */

.bp-content .bp-btn,
.bp-content .bp-btn:hover {
	text-decoration: none;
}

.bp-content .bp-btn--solid,
.bp-content .bp-btn--solid:hover {
	color: #ffffff;
}

.bp-content > .bp-product {
	margin-top: 40px;
}

.bp-content > .bp-product + * {
	margin-top: 40px;
}

/* -------------------------------------------------------------------------
   Tables: the one in the box and the editor's Table block alike
   ---------------------------------------------------------------------- */

.single-post .bp-content .wp-block-table {
	margin: 40px 0 0;
	overflow: auto;
	border: 1px solid var(--bp-blue);
	border-radius: 12px;
}

.bp-table__wrap {
	overflow: auto;
	border: 1px solid var(--bp-blue);
	border-radius: 12px;
	background: #ffffff;
}

.single-post .bp-content .wp-block-table table,
.bp-table__wrap table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.4;
}

.single-post .bp-content .wp-block-table th,
.single-post .bp-content .wp-block-table td,
.bp-table__wrap th,
.bp-table__wrap td {
	height: 53px;
	padding: 10px 20px;
	border: 0;
	color: var(--bp-ink);
	text-align: left;
	vertical-align: middle;
}

.single-post .bp-content .wp-block-table thead th,
.bp-table__wrap thead th {
	border-bottom: 1px solid var(--bp-blue);
	background: var(--bp-tint);
	font-weight: var(--fw-semibold);
}

.single-post .bp-content .wp-block-table tbody tr:nth-child(even),
.bp-table__wrap tbody tr:nth-child(even) {
	background: var(--bp-paler);
}

/* Without a heading row the first body row takes the tint instead. */
.single-post .bp-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td,
.bp-table__wrap table:not(:has(thead)) tbody tr:first-child td {
	background: var(--bp-tint);
	font-weight: var(--fw-semibold);
}

.bp-table__group th {
	background: var(--bp-tint);
	font-weight: var(--fw-semibold);
}

.single-post .bp-content .wp-block-table figcaption {
	padding: 8px 20px 12px;
}

/* -------------------------------------------------------------------------
   The buttons: 40 high pills, 14 semibold
   ---------------------------------------------------------------------- */

.bp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 40px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: var(--fw-semibold);
	line-height: 1;
	text-decoration: none;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.bp-btn--solid {
	border-color: var(--bp-blue);
	background: var(--bp-blue);
	color: #ffffff;
}

.bp-btn--solid:hover {
	border-color: var(--bp-blue-deep);
	background: var(--bp-blue-deep);
	color: #ffffff;
	transform: translateY(-2px);
}

.bp-btn--surface {
	border-color: var(--bp-paler);
	background: var(--bp-paler);
	color: var(--bp-blue-deep);
}

.bp-btn--surface:hover {
	border-color: #ffffff;
	background: #ffffff;
	color: var(--bp-blue-deep);
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   The product card
   ---------------------------------------------------------------------- */

.bp-product {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 20px;
	border: 1px solid var(--bp-blue);
	border-radius: 16px;
	background: var(--bp-pale);
}

.bp-product__media {
	flex: 0 0 min(484px, 46%);
}

.bp-product__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 484 / 180;
	border-radius: 12px;
	object-fit: cover;
}

.bp-product__body {
	min-width: 0;
	padding: 8px 0;
}

.bp-product__name {
	margin: 0;
	color: var(--bp-navy);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: var(--fw-semibold);
	line-height: 1.25;
	letter-spacing: 0;
}

.bp-product__price {
	margin: 16px 0 0;
	color: var(--bp-navy);
	font-size: 16px;
	line-height: 1.4;
}

.bp-product__btn {
	margin-top: 20px;
}

/* -------------------------------------------------------------------------
   The pale panel with a button
   ---------------------------------------------------------------------- */

.bp-callout {
	padding: 64px 64px 60px;
	border-radius: 24px;
	background: var(--bp-pale);
}

.bp-callout__title {
	max-width: 920px;
	margin: 0;
	color: var(--bp-ink);
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: var(--fw-semibold);
	line-height: 1.25;
	letter-spacing: 0;
}

.bp-callout__text {
	max-width: 920px;
	margin: 20px 0 0;
	color: var(--bp-grey);
	font-size: 16px;
	line-height: 1.5;
}

.bp-callout__text + .bp-callout__text {
	margin-top: 12px;
}

.bp-callout__sub {
	margin: 20px 0 0;
	color: var(--bp-ink);
	font-size: 18px;
	font-weight: var(--fw-semibold);
}

.bp-callout__text a {
	color: var(--bp-blue-text);
	text-decoration: underline;
}

.bp-callout__btn {
	margin-top: 32px;
}

/* -------------------------------------------------------------------------
   FAQ's
   ---------------------------------------------------------------------- */

.bp-faq {
	overflow: hidden;
	border: 1px solid var(--bp-blue);
	border-radius: 12px;
	background: #ffffff;
}

.bp-faq__title {
	margin: 0;
	padding: 20px;
	border-bottom: 1px solid var(--bp-blue);
	background: var(--bp-tint);
	color: var(--bp-ink);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: var(--fw-semibold);
	line-height: 1.3;
	letter-spacing: 0;
}

.bp-faq__item + .bp-faq__item {
	border-top: 1px solid var(--bp-line);
}

.bp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 20px;
	color: var(--bp-ink);
	font-size: 16px;
	font-weight: var(--fw-semibold);
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
	transition: color var(--dur) var(--ease);
}

.bp-faq__q::-webkit-details-marker {
	display: none;
}

.bp-faq__q:hover {
	color: var(--bp-blue);
}

.bp-faq__mark {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--bp-blue);
	transition: transform var(--accordion-dur, var(--dur)) var(--ease);
}

.bp-faq__mark svg {
	width: 20px;
	height: 20px;
}

.bp-faq__item[open] .bp-faq__mark {
	transform: rotate(180deg);
}

/* While the answer slides shut it is still [open] (main.js), so the
   mark turns back from .is-closing, over the slide's own time. */
.bp-faq__item.is-closing .bp-faq__mark {
	transform: none;
}

.bp-faq__a {
	padding: 0 20px 24px;
	color: var(--bp-grey);
	font-size: 16px;
	line-height: 1.5;
}

.bp-faq__a > :first-child {
	margin-top: 0;
}

.bp-faq__a > :last-child {
	margin-bottom: 0;
}

.bp-faq__a p + p {
	margin-top: 10px;
}

/* -------------------------------------------------------------------------
   The blue banner
   ---------------------------------------------------------------------- */

.bp-band {
	position: relative;
	overflow: hidden;
	padding: 44px 40px 40px;
	border-radius: 16px;
	background: linear-gradient(90deg, #1668b8 0%, #0a61b1 48%, #2b76c0 100%);
	color: #ffffff;
	text-align: center;
}

/* The wave lines: five arcs sweeping across the banner, white at a tenth. */
.bp-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 324' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.2'%3E%3Cpath d='M-20 40 C 200 -10, 380 120, 640 110 S 1060 10, 1300 60'/%3E%3Cpath d='M-20 70 C 200 20, 380 150, 640 140 S 1060 40, 1300 90'/%3E%3Cpath d='M-20 230 C 220 160, 420 300, 680 280 S 1080 190, 1300 250'/%3E%3Cpath d='M-20 262 C 220 192, 420 332, 680 312 S 1080 222, 1300 282'/%3E%3Cpath d='M-20 300 C 220 230, 420 370, 680 350 S 1080 260, 1300 320'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 100% 100%;
	pointer-events: none;
}

.bp-band > * {
	position: relative;
	z-index: 1;
}

.bp-band__title {
	max-width: 760px;
	margin: 0 auto;
	color: #ffffff;
	font-family: var(--font-display);
	font-size: 44px;
	font-weight: var(--fw-semibold);
	line-height: 1.15;
	letter-spacing: 0;
}

.bp-band__text {
	max-width: 780px;
	margin: 16px auto 0;
	font-size: 18px;
	line-height: 1.5;
}

.bp-band__text a {
	color: inherit;
	text-decoration: underline;
}

.bp-band__btn {
	margin-top: 32px;
}

/* -------------------------------------------------------------------------
   Smaller screens
   ---------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.bp-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		margin-top: 48px;
	}

	/* The side column above the text: the contents box across, then the
	   author and the date side by side. */
	.bp-side {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 24px;
	}

	.bp-side > * + * {
		margin-top: 20px;
		padding-top: 20px;
	}

	.bp-toc {
		grid-column: 1 / -1;
	}

	.bp-side .bp-toc + .bp-side__block + .bp-side__block {
		margin-top: 20px;
	}

	.bp-product__media {
		flex-basis: 40%;
	}

	.bp-callout {
		padding: 40px 32px;
	}

	.bp-band__title {
		font-size: 34px;
	}
}

@media (max-width: 767px) {
	.bp-head {
		padding-top: 24px;
	}

	.bp-head__subtitle {
		margin-top: 12px;
		font-size: 16px;
	}

	.bp-feature {
		margin-top: 28px;
	}

	.bp-feature img {
		border-radius: 16px;
	}

	.bp-body {
		gap: 28px;
		margin-top: 32px;
	}

	.bp-side {
		grid-template-columns: 1fr;
	}

	.bp-main > * + * {
		margin-top: 32px;
	}

	.bp-content h2 {
		margin-top: 32px;
		font-size: 26px;
	}

	.bp-content h3 {
		font-size: 19px;
	}

	.single-post .bp-content .wp-block-pullquote {
		padding: 20px;
	}

	.single-post .bp-content .wp-block-pullquote blockquote {
		gap: 14px;
	}

	.single-post .bp-content .wp-block-pullquote blockquote::before {
		font-size: 64px;
	}

	.single-post .bp-content .wp-block-pullquote p {
		font-size: 18px;
	}

	.single-post .bp-content .wp-block-table th,
	.single-post .bp-content .wp-block-table td,
	.bp-table__wrap th,
	.bp-table__wrap td {
		height: 48px;
		padding: 8px 12px;
	}

	.bp-product {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px;
	}

	.bp-product__media {
		flex-basis: auto;
	}

	.bp-product__body {
		padding: 0;
	}

	.bp-product__name {
		font-size: 20px;
	}

	.bp-callout {
		padding: 28px 20px;
		border-radius: 16px;
	}

	.bp-callout__title {
		font-size: 24px;
	}

	.bp-faq__title {
		padding: 16px;
		font-size: 20px;
	}

	.bp-faq__q {
		padding: 16px;
	}

	.bp-faq__a {
		padding: 0 16px 16px;
	}

	.bp-band {
		padding: 32px 20px 28px;
	}

	.bp-band__title {
		font-size: 28px;
	}

	.bp-band__text {
		margin-top: 12px;
		font-size: 16px;
	}

	.bp-band__btn {
		margin-top: 24px;
	}
}

/* A post's own headings 28 on a phone (asked for on 2026-11-12), as every
   section heading on the site is at that width (responsive.css). */
@media (max-width: 575.98px) {
	.bp-content h2 {
		font-size: 28px;
	}

	/* The sub-headings - the FAQ questions among them - 20 on a phone (asked
	   for on 2026-11-16; 24 before, more than the 19 a tablet gives them). */
	.bp-content h3 {
		font-size: 20px;
		line-height: 1.3;
	}
}

/* -------------------------------------------------------------------------
   The contents box's head, and its drawer on a phone (2026-11-16)

   The head holds the title and, on a phone alone, a close button. Up to
   767px the box leaves the side column: it is a drawer the height of the
   screen, 300 wide at most, kept off the left edge until .is-open slides
   it in over a dim backdrop; a tab fixed to the right edge, its wording
   stood on end, opens it. The entries are numbered there, as the design
   has them, the sub-entries not.
   ---------------------------------------------------------------------- */

.bp-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--bp-blue);
	background: var(--bp-tint);
}

.bp-toc__head .bp-toc__title {
	flex: 1 1 auto;
	border-bottom: 0;
	background: none;
}

.bp-toc__close,
.bp-toc-tab,
.bp-toc-backdrop {
	display: none;
}

@media (max-width: 767px) {
	.bp-toc {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: calc(var(--z-overlay) + 10);
		display: flex;
		flex-direction: column;
		width: min(300px, 85vw);
		border: 0;
		border-radius: 0;
		box-shadow: 0 0 40px rgba(20, 53, 89, 0.2);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
	}

	.bp-toc.is-open {
		transform: none;
		visibility: visible;
		transition: transform 0.3s var(--ease-out);
	}

	.bp-toc__head {
		flex-shrink: 0;
		min-height: 56px;
		padding-right: 8px;
	}

	.bp-toc__head .bp-toc__title {
		padding: 16px;
		font-size: 17px;
		font-weight: var(--fw-semibold);
	}

	.bp-toc__list li + li {
		border-top: 1px solid var(--bp-line);
	}

	.bp-toc__list .bp-toc__sub + .bp-toc__sub,
	.bp-toc__list li + .bp-toc__sub {
		border-top: 0;
	}

	.bp-toc__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 8px;
		background: none;
		color: var(--bp-ink);
		cursor: pointer;
	}

	.bp-toc__list {
		flex: 1 1 auto;
		overflow-y: auto;
		counter-reset: bp-toc;
	}

	.bp-toc__list li:nth-child(even) {
		background: none;
	}

	.bp-toc__list li:not(.bp-toc__sub) {
		counter-increment: bp-toc;
	}

	.bp-toc__list a {
		display: grid;
		grid-template-columns: 28px minmax(0, 1fr);
		gap: 8px;
		padding: 14px 16px;
		color: var(--bp-ink);
		font-size: 15px;
		line-height: 1.4;
	}

	.bp-toc__list li:not(.bp-toc__sub) a::before {
		content: counter(bp-toc, decimal-leading-zero);
		color: #9ca3ab;
		font-size: 12px;
		line-height: 1.7;
		letter-spacing: 0.04em;
	}

	.bp-toc__sub a {
		grid-template-columns: minmax(0, 1fr);
		padding-left: 52px;
		font-size: 14px;
	}

	/* The tab: on the right edge, halfway down, the wording stood on end. */
	.bp-toc-tab {
		position: fixed;
		right: 0;
		top: 50%;
		z-index: calc(var(--z-header) + 10);
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 14px 9px;
		border: 0;
		/* Turned 180 degrees below, so these corners end up on the left, the
		   flat side against the screen's edge, and the shadow falls down. */
		border-radius: 0 8px 8px 0;
		background: var(--bp-ink);
		color: #ffffff;
		font-family: var(--font-display);
		font-size: 11px;
		font-weight: var(--fw-medium);
		letter-spacing: 0.14em;
		text-transform: uppercase;
		white-space: nowrap;
		writing-mode: vertical-rl;
		transform: translateY(-50%) rotate(180deg);
		cursor: pointer;
		box-shadow: 0 -6px 20px rgba(20, 53, 89, 0.18);
	}

	.bp-toc-tab svg {
		transform: rotate(90deg);
	}

	.bp-toc-backdrop {
		position: fixed;
		inset: 0;
		z-index: calc(var(--z-overlay) + 5);
		display: block;
		background: rgba(20, 53, 89, 0.35);
	}

	.bp-toc-backdrop[hidden] {
		display: none;
	}

	/* The side column holds the author and the date alone here. */
	.bp-side .bp-side__block:first-child,
	.bp-side .bp-toc + .bp-side__block {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bp-toc,
	.bp-toc.is-open {
		transition: none;
	}
}
