/**
 * Journal: index, topics and articles.
 *
 * @package SXX_Bearing
 */

/* ------------------------------------------------------- Reveal on scroll */
.has-js [data-sxx-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--ab-delay, 0ms);
}

.has-js [data-sxx-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* ===================================================================== Index */

/* ------------------------------------------------------------------ Hero */
.bl-hero {
	position: relative;
	overflow: hidden;
	padding: var(--s-8) 0 var(--s-7);
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(12, 91, 214, 0.1) 0%, transparent 60%),
		radial-gradient(40% 60% at 0% 100%, rgba(232, 137, 26, 0.08) 0%, transparent 60%),
		var(--c-paper);
	isolation: isolate;
}

.bl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(7, 20, 34, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(7, 20, 34, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.bl-hero__inner {
	display: grid;
	gap: var(--s-7);
	align-items: center;
}

.bl-hero__title {
	max-width: 15ch;
	margin: var(--s-2) 0 0;
	font-size: clamp(2.2rem, 4.6vw, 3.8rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.bl-hero:not(.bl-hero--feature) .bl-hero__title {
	max-width: 22ch;
}

.bl-hero__lead {
	max-width: 54ch;
	margin: var(--s-5) 0 0;
	color: var(--c-steel);
	font-size: var(--t-md);
	line-height: 1.65;
}

.bl-hero__lead p {
	margin: 0;
}

.bl-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-5) var(--s-6);
	margin: var(--s-6) 0 0;
}

.bl-stats__item {
	display: flex;
	flex-direction: column-reverse;
	padding-left: var(--s-4);
	border-left: 2px solid var(--c-line);
}

.bl-stats__item:first-child {
	border-left-color: var(--c-signal);
}

.bl-stats dd {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.bl-stats dt {
	color: var(--c-steel);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bl-hero__feature {
	position: relative;
}

.bl-hero__flag {
	position: absolute;
	top: var(--s-4);
	left: var(--s-4);
	z-index: 3;
	margin: 0;
	padding: 0.3rem 0.75rem;
	border-radius: var(--r-pill);
	background: var(--c-signal);
	color: #fff;
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 6px 16px rgba(232, 137, 26, 0.35);
}

.bl-stats dd.bl-stats__date {
	font-size: clamp(1.1rem, 1.6vw, 1.35rem);
	line-height: 1.6;
}

.bl-hero__art {
	display: none;
	width: 300px;
	height: 300px;
	color: var(--c-accent);
	opacity: 0.22;
	animation: bl-spin 90s linear infinite;
}

@keyframes bl-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 1000px) {
	.bl-hero:not(.bl-hero--feature) .bl-hero__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bl-hero__art {
		display: block;
		margin-block: calc(var(--s-6) * -1);
	}
}

@media (min-width: 1000px) {
	.bl-hero--feature .bl-hero__inner {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: var(--s-8);
	}
}

/* ------------------------------------------------------------ Topic bar */
.bl-topics {
	position: sticky;
	top: var(--masthead-h);
	z-index: 20;
	border-block: 1px solid var(--c-line);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.admin-bar .bl-topics {
	top: calc(var(--masthead-h) + 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .bl-topics {
		top: calc(var(--masthead-h) + 46px);
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .bl-topics {
		top: var(--masthead-h);
	}
}

.bl-topics__list {
	display: flex;
	gap: var(--s-2);
	margin: 0;
	padding: var(--s-3) 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.bl-topics__list::-webkit-scrollbar {
	display: none;
}

.bl-topic {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	padding: 0.45rem 0.6rem 0.45rem 0.95rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-paper);
	color: var(--c-graphite);
	font-size: var(--t-sm);
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.bl-topic:hover {
	border-color: var(--c-accent);
	color: var(--c-accent);
}

.bl-topic__count {
	min-width: 1.6rem;
	padding: 0.05rem 0.45rem;
	border-radius: var(--r-pill);
	background: var(--c-mist);
	color: var(--c-steel);
	font-family: var(--f-mono);
	font-size: 0.7rem;
	text-align: center;
}

.bl-topic.is-active {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: #fff;
}

.bl-topic.is-active .bl-topic__count {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* --------------------------------------------------------------- Latest */
.bl-latest__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s-2) var(--s-5);
	margin-bottom: var(--s-6);
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--c-line);
}

.bl-latest__title {
	margin: 0;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.bl-latest__count {
	margin: 0;
	color: var(--c-steel);
	font-family: var(--f-mono);
	font-size: var(--t-xs);
}

.bl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: var(--s-6) var(--s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bl-grid > li {
	display: flex;
}

.bl-grid > li > * {
	flex: 1;
}

/* ---------------------------------------------------------------- Cards */
.bcard {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: 20px;
	background: var(--c-paper);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.bcard:hover {
	border-color: transparent;
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

.bcard__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--c-mist);
}

.bcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.bcard:hover .bcard__img {
	transform: scale(1.05);
}

.bcard__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
	color: rgba(143, 192, 255, 0.35);
}

.bcard__placeholder svg {
	width: 38%;
	height: auto;
}

.bcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: var(--s-5);
}

.bcard__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2) var(--s-3);
	margin: 0 0 var(--s-3);
	font-size: var(--t-xs);
}

.bcard__topic {
	position: relative;
	z-index: 2;
	padding: 0.2rem 0.6rem;
	border-radius: var(--r-pill);
	background: rgba(12, 91, 214, 0.08);
	color: var(--c-accent);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.bcard__topic:hover {
	background: var(--c-accent);
	color: #fff;
}

.bcard__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--s-2);
}

.bcard__time {
	color: var(--c-steel);
	font-family: var(--f-mono);
	font-size: var(--t-xs);
}

.bcard__time::before {
	content: "·";
	margin-right: var(--s-2);
	font-family: var(--f-sans);
}

.bcard__title {
	margin: 0;
	font-size: 1.28rem;
	line-height: 1.22;
	letter-spacing: -0.015em;
}

.bcard__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.bcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.bcard__title a:focus-visible {
	outline: none;
}

.bcard:has(.bcard__title a:focus-visible) {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
}

.bcard__text {
	display: -webkit-box;
	margin: var(--s-3) 0 0;
	overflow: hidden;
	color: var(--c-steel);
	font-size: 0.95rem;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.bcard__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	margin: auto 0 0;
	padding-top: var(--s-5);
	color: var(--c-steel);
	font-size: var(--t-sm);
}

.bcard__go {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	color: var(--c-ink);
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.bcard:hover .bcard__go {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: #fff;
	transform: rotate(-45deg);
}

/* Feature */
.bcard--feature {
	border: 0;
	box-shadow: var(--shadow-lg);
}

.bcard--feature .bcard__media {
	aspect-ratio: 16 / 9;
}

.bcard--feature .bcard__body {
	padding: var(--s-6);
}

.bcard--feature .bcard__title {
	font-size: clamp(1.45rem, 2.2vw, 1.95rem);
	line-height: 1.15;
}

.bcard--feature .bcard__text {
	font-size: var(--t-base);
	-webkit-line-clamp: 3;
}

/* Compact */
.bcard--compact {
	flex-direction: row;
	align-items: center;
	gap: var(--s-4);
	padding: var(--s-3);
	border-radius: 14px;
}

.bcard--compact .bcard__media {
	flex: none;
	width: 84px;
	aspect-ratio: 1;
	border-radius: 10px;
}

.bcard--compact .bcard__body {
	padding: 0;
}

.bcard--compact .bcard__title {
	font-size: 1rem;
}

.bcard--compact .bcard__meta {
	padding-top: var(--s-2);
}

/* --------------------------------------------------------- Ask an engineer */
.bl-ask {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	min-height: 100%;
	padding: var(--s-6);
	border-radius: 20px;
	background:
		radial-gradient(70% 60% at 100% 0%, rgba(12, 91, 214, 0.55) 0%, transparent 70%),
		linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
	color: #b9c9db;
	isolation: isolate;
}

.bl-ask::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	z-index: -1;
	width: 240px;
	height: 240px;
	border: 26px solid rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	box-shadow: inset 0 0 0 40px rgba(255, 255, 255, 0.03);
}

.bl-ask__title {
	margin: 0;
	color: #fff;
	font-size: 1.55rem;
	line-height: 1.18;
}

.bl-ask__text {
	margin: var(--s-3) 0 var(--s-5);
	font-size: 0.95rem;
}

.bl-ask .btn {
	align-self: flex-start;
}

/* --------------------------------------------------------------- Shelves */
.bl-shelves {
	border-top: 1px solid var(--c-line);
	background: var(--c-paper);
}

.bl-shelves__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: var(--s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bl-shelf {
	--mx: 50%;
	--my: 0%;
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--s-6);
	border: 1px solid var(--c-line);
	border-radius: 20px;
	background:
		radial-gradient(320px circle at var(--mx) var(--my), rgba(12, 91, 214, 0.07), transparent 70%),
		var(--c-paper);
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bl-shelf:hover {
	border-color: rgba(12, 91, 214, 0.3);
	box-shadow: var(--shadow-md);
}

.bl-shelf__num {
	position: absolute;
	top: var(--s-5);
	right: var(--s-6);
	margin: 0;
	color: var(--c-line);
	font-family: var(--f-display);
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	transition: color 0.3s var(--ease);
}

.bl-shelf:hover .bl-shelf__num {
	color: rgba(232, 137, 26, 0.5);
}

.bl-shelf__title {
	max-width: 80%;
	margin: 0;
	font-size: 1.35rem;
}

.bl-shelf__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.bl-shelf__title a:hover {
	color: var(--c-accent);
}

.bl-shelf__text {
	margin: var(--s-2) 0 0;
	color: var(--c-steel);
	font-size: 0.95rem;
}

.bl-shelf__list {
	margin: var(--s-5) 0 var(--s-5);
	padding: 0;
	list-style: none;
	counter-reset: shelf;
}

.bl-shelf__list li {
	border-top: 1px solid var(--c-line-soft);
	counter-increment: shelf;
}

.bl-shelf__list a {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: baseline;
	gap: var(--s-3);
	padding: var(--s-3) 0;
	color: var(--c-graphite);
	font-size: 0.95rem;
	line-height: 1.4;
	text-decoration: none;
}

.bl-shelf__list a::before {
	content: counter(shelf, decimal-leading-zero);
	color: var(--c-signal);
	font-family: var(--f-mono);
	font-size: var(--t-xs);
}

.bl-shelf__list a:hover span {
	color: var(--c-accent);
}

.bl-shelf__list small {
	color: var(--c-steel);
	font-family: var(--f-mono);
	font-size: 0.7rem;
	white-space: nowrap;
}

.bl-shelf__more {
	margin-top: auto;
	font-size: var(--t-sm);
	font-weight: 600;
}

/* =================================================================== Article */

/* ------------------------------------------------------------- Progress */
.bp-progress {
	position: fixed;
	top: var(--masthead-h);
	left: 0;
	right: 0;
	z-index: 60;
	height: 3px;
	pointer-events: none;
}

.admin-bar .bp-progress {
	top: calc(var(--masthead-h) + 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .bp-progress {
		top: calc(var(--masthead-h) + 46px);
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .bp-progress {
		top: var(--masthead-h);
	}
}

.bp-progress__bar {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-signal) 100%);
	transform: scaleX(var(--bp-progress, 0));
	transform-origin: 0 50%;
}

/* ------------------------------------------------------------------ Hero */
.bp-hero {
	position: relative;
	overflow: hidden;
	padding: var(--s-8) 0 var(--s-7);
	background:
		radial-gradient(50% 90% at 50% 0%, rgba(12, 91, 214, 0.09) 0%, transparent 70%),
		var(--c-paper);
	text-align: center;
	isolation: isolate;
}

.bp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(7, 20, 34, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(7, 20, 34, 0.04) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000 0%, transparent 80%);
	mask-image: radial-gradient(60% 80% at 50% 0%, #000 0%, transparent 80%);
}

.bp-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 980px;
}

.bp-hero__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--s-3);
	margin: 0;
	font-size: var(--t-sm);
}

.bp-hero__topic {
	padding: 0.3rem 0.85rem;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: #fff;
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s var(--ease);
}

.bp-hero__topic:hover {
	background: var(--c-accent);
	color: #fff;
}

.bp-hero__time {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--c-steel);
	font-family: var(--f-mono);
	font-size: var(--t-xs);
}

.bp-hero__title {
	max-width: 22ch;
	margin: var(--s-5) 0 0;
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.bp-hero__lead {
	max-width: 62ch;
	margin: var(--s-5) 0 0;
	color: var(--c-steel);
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.bp-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--s-4) var(--s-6);
	margin-top: var(--s-6);
	padding: var(--s-4) var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.8);
	text-align: left;
	box-shadow: var(--shadow-sm);
}

.bp-byline__avatar,
.bp-author__avatar {
	display: grid;
	flex: none;
	place-items: center;
	overflow: hidden;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
	color: #8fc0ff;
}

.bp-byline__avatar img,
.bp-author__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bp-byline__person {
	display: flex;
	align-items: center;
	gap: var(--s-3);
}

.bp-byline__who {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.bp-byline__who strong {
	font-size: var(--t-sm);
}

.bp-byline__who span {
	color: var(--c-steel);
	font-size: var(--t-xs);
}

.bp-byline__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-5);
	margin: 0;
	padding-left: var(--s-5);
	border-left: 1px solid var(--c-line);
}

.bp-byline__facts div {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.bp-byline__facts dt {
	color: var(--c-steel);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bp-byline__facts dd {
	margin: 0;
	color: var(--c-ink);
	font-size: var(--t-sm);
	font-weight: 600;
}

/* ---------------------------------------------------------------- Figure */
.bp-figure {
	margin: 0;
	background: linear-gradient(180deg, var(--c-paper) 50%, var(--c-canvas) 50%);
}

.bp-figure__img {
	width: 100%;
	max-height: 620px;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
}

.bp-figure figcaption {
	margin-top: var(--s-3);
	color: var(--c-steel);
	font-size: var(--t-sm);
	text-align: center;
}

/* ---------------------------------------------------------------- Layout */
.bp-layout {
	display: grid;
	gap: var(--s-6);
	padding-block: var(--s-7) var(--s-8);
}

.bp-main {
	min-width: 0;
}

@media (min-width: 1000px) {
	.bp-layout {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: var(--s-7);
	}

	.bp-rail {
		grid-column: 2;
	}
}

@media (min-width: 1280px) {
	.bp-layout {
		grid-template-columns: 250px minmax(0, 1fr) 290px;
		gap: var(--s-7);
	}

	.bp-rail {
		grid-column: auto;
	}
}

/* ------------------------------------------------------------ Outline */
.bp-toc__sticky,
.bp-rail__sticky {
	display: grid;
	gap: var(--s-5);
}

@media (min-width: 1000px) {
	.bp-toc__sticky {
		position: sticky;
		top: calc(var(--sticky-top) + 4px);
		max-height: calc(100vh - var(--sticky-top) - var(--s-5));
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.admin-bar .bp-toc__sticky {
		top: calc(var(--sticky-top) + 36px);
		max-height: calc(100vh - var(--sticky-top) - var(--s-5) - 32px);
	}
}

@media (min-width: 1280px) {
	.bp-rail__sticky {
		position: sticky;
		top: calc(var(--sticky-top) + 4px);
	}

	.admin-bar .bp-rail__sticky {
		top: calc(var(--sticky-top) + 36px);
	}
}

.bp-toc__box {
	border: 1px solid var(--c-line);
	border-radius: 16px;
	background: var(--c-paper);
}

.bp-toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	padding: var(--s-4) var(--s-4) var(--s-3);
	color: var(--c-ink);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

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

.bp-toc__pct {
	padding: 0.1rem 0.5rem;
	border-radius: var(--r-pill);
	background: var(--c-mist);
	color: var(--c-accent);
	font-family: var(--f-mono);
	font-size: 0.7rem;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
}

.bp-toc__list {
	position: relative;
	margin: 0;
	padding: 0 var(--s-3) var(--s-4) var(--s-4);
	list-style: none;
}

.bp-toc__item a {
	position: relative;
	display: block;
	padding: 0.42rem 0 0.42rem var(--s-4);
	border-left: 2px solid var(--c-line);
	color: var(--c-steel);
	font-size: 0.86rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bp-toc__item--h3 a {
	padding-left: calc(var(--s-4) + var(--s-3));
	font-size: 0.8rem;
}

.bp-toc__item a:hover {
	color: var(--c-ink);
}

.bp-toc__item.is-read a {
	border-left-color: rgba(12, 91, 214, 0.35);
	color: var(--c-graphite);
}

.bp-toc__item.is-active a {
	border-left-color: var(--c-accent);
	color: var(--c-accent);
	font-weight: 600;
}

/* --------------------------------------------------------------- Share */
.bp-share__label {
	margin: 0 0 var(--s-2);
	color: var(--c-steel);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bp-share__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
}

.bp-share__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: var(--c-paper);
	color: var(--c-graphite);
	cursor: pointer;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.bp-share__btn:hover {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: #fff;
	transform: translateY(-2px);
}

.bp-share__btn.is-copied {
	border-color: var(--c-good);
	background: var(--c-good);
	color: #fff;
}

.bp-share__btn.is-copied::after {
	content: attr(data-copied-label);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	padding: 0.2rem 0.55rem;
	border-radius: var(--r-sm);
	background: var(--c-ink);
	color: #fff;
	font-size: 0.7rem;
	white-space: nowrap;
	transform: translateX(-50%);
}

/* ------------------------------------------------------------------ Body */
.bp-body.prose {
	max-width: 72ch;
	margin-inline: auto;
	color: #24364a;
	font-size: 1.125rem;
	line-height: 1.8;
	counter-reset: bp-h2;
}

.bp-body > p:first-of-type {
	color: var(--c-ink);
	font-size: 1.3rem;
	line-height: 1.65;
}

.bp-body :where(h2, h3) {
	position: relative;
	scroll-margin-top: calc(var(--sticky-top) + var(--s-5));
}

.bp-body :where(h2) {
	margin-top: var(--s-8);
	padding-top: var(--s-5);
	border-top: 1px solid var(--c-line);
	font-size: clamp(1.55rem, 2.4vw, 2rem);
	counter-increment: bp-h2;
}

.bp-body :where(h2)::before {
	content: counter(bp-h2, decimal-leading-zero);
	display: block;
	margin-bottom: var(--s-2);
	color: var(--c-signal);
	font-family: var(--f-mono);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
}

.bp-body :where(h3) {
	margin-top: var(--s-6);
	font-size: 1.3rem;
}

.bp-anchor {
	margin-left: 0.35em;
	color: var(--c-accent);
	font-family: var(--f-mono);
	font-size: 0.8em;
	font-weight: 400;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.2s var(--ease);
}

.bp-body :where(h2, h3):hover .bp-anchor,
.bp-anchor:focus-visible {
	opacity: 1;
}

.bp-body a:not(.bp-anchor) {
	color: var(--c-accent);
	text-decoration-color: rgba(12, 91, 214, 0.35);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s var(--ease);
}

.bp-body a:not(.bp-anchor):hover {
	text-decoration-color: currentColor;
}

.bp-body :where(ul, ol):not(.is-style-sxx-checks) li::marker {
	color: var(--c-signal);
	font-weight: 700;
}

.bp-body :where(blockquote) {
	position: relative;
	margin: var(--s-7) 0;
	padding: var(--s-5) var(--s-6);
	border: 0;
	border-radius: 18px;
	background: var(--c-paper);
	box-shadow: inset 4px 0 0 var(--c-signal), var(--shadow-sm);
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 1.3rem;
	line-height: 1.5;
}

.bp-body :where(blockquote) cite {
	display: block;
	margin-top: var(--s-3);
	color: var(--c-steel);
	font-family: var(--f-sans);
	font-size: var(--t-sm);
	font-style: normal;
}

.bp-body .is-style-sxx-callout {
	padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 40px);
	background: linear-gradient(135deg, rgba(12, 91, 214, 0.06), rgba(12, 91, 214, 0.02));
	box-shadow: inset 0 0 0 1px rgba(12, 91, 214, 0.18);
	font-family: var(--f-sans);
	font-size: 1.02rem;
}

.bp-body .is-style-sxx-callout::before {
	content: "i";
	position: absolute;
	top: var(--s-5);
	left: var(--s-5);
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	font-family: Georgia, serif;
	font-size: 0.95rem;
	font-style: italic;
	font-weight: 700;
}

.bp-body :where(figure) {
	margin: var(--s-7) 0;
}

.bp-body :where(figure img) {
	border-radius: 16px;
}

.bp-body .wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--c-line);
	border-radius: 16px;
	background: var(--c-paper);
}

.bp-body :where(table) {
	margin: 0;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.bp-body :where(thead th) {
	background: var(--c-ink);
	color: #fff;
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bp-body .wp-block-table thead {
	border: 0;
}

.bp-body .wp-block-table :is(th, td) {
	padding: 0.8rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--c-line-soft);
}

.bp-body .wp-block-table tbody tr:last-child :is(th, td) {
	border-bottom: 0;
}

.bp-body :where(tbody tr:nth-child(even)) {
	background: var(--c-mist);
}

.bp-body :where(tbody tr) {
	transition: background-color 0.15s var(--ease);
}

.bp-body :where(tbody tr:hover) {
	background: rgba(12, 91, 214, 0.06);
}

.bp-body :where(table) + :where(figcaption),
.bp-body .wp-block-table figcaption {
	padding: var(--s-2) var(--s-4) var(--s-3);
	text-align: left;
}

.bp-body :where(code) {
	padding: 0.12em 0.4em;
	border-radius: var(--r-sm);
	background: var(--c-mist);
	color: var(--c-ink);
	font-size: 0.86em;
}

.bp-body :where(pre) {
	overflow-x: auto;
	padding: var(--s-5);
	border-radius: 16px;
	background: var(--c-ink);
	color: #dbe6f2;
	font-size: 0.9rem;
	line-height: 1.7;
}

.bp-body :where(pre code) {
	padding: 0;
	background: none;
	color: inherit;
}

.bp-body .bp-formula {
	margin: var(--s-6) 0;
	padding: var(--s-5);
	border-radius: 16px;
	background: var(--c-ink);
	color: #fff;
	font-family: var(--f-mono);
	font-size: 1.25rem;
	text-align: center;
}

.bp-body .bp-formula small {
	display: block;
	margin-top: var(--s-2);
	color: #9eb3c8;
	font-family: var(--f-sans);
	font-size: var(--t-sm);
}

.bp-body :where(hr) {
	position: relative;
	height: 12px;
	margin: var(--s-8) auto;
	border: 0;
	background:
		radial-gradient(circle, var(--c-steel) 3px, transparent 3.5px) 0 50% / 24px 12px repeat-x;
	width: 72px;
	opacity: 0.5;
}

.bp-body .is-style-sxx-checks {
	padding: var(--s-5) var(--s-5) var(--s-5) var(--s-5);
	border-radius: 16px;
	background: rgba(15, 138, 95, 0.06);
	box-shadow: inset 0 0 0 1px rgba(15, 138, 95, 0.18);
}

.bp-body .is-style-sxx-checks li::before {
	border-color: var(--c-good);
}

/* ---------------------------------------------------------------- Footer */
.bp-foot {
	display: grid;
	gap: var(--s-6);
	max-width: 72ch;
	margin: var(--s-7) auto 0;
}

.bp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-paper);
	color: var(--c-graphite);
	font-size: var(--t-sm);
	text-decoration: none;
}

.bp-tag:hover {
	border-color: var(--c-accent);
	color: var(--c-accent);
}

.bp-author {
	display: flex;
	gap: var(--s-5);
	padding: var(--s-6);
	border: 1px solid var(--c-line);
	border-radius: 20px;
	background: var(--c-paper);
}

.bp-author__avatar {
	width: 64px;
	height: 64px;
}

.bp-author__name {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 1.15rem;
	font-weight: 600;
}

.bp-author__bio {
	margin: var(--s-2) 0 0;
	color: var(--c-steel);
	font-size: 0.95rem;
}

.bp-main .comments {
	max-width: 72ch;
	margin-inline: auto;
}

/* ------------------------------------------------------------------ Rail */
.bp-rail__cta {
	position: relative;
	overflow: hidden;
	padding: var(--s-5);
	border-radius: 18px;
	background:
		radial-gradient(80% 70% at 100% 0%, rgba(12, 91, 214, 0.5) 0%, transparent 70%),
		linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
	color: #b9c9db;
}

.bp-rail__title {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
}

.bp-rail__text {
	margin: var(--s-2) 0 var(--s-4);
	font-size: 0.9rem;
}

.bp-rail__more {
	padding: var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: 18px;
	background: var(--c-paper);
}

.bp-rail__label {
	margin: 0 0 var(--s-3);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bp-rail__more ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: more;
}

.bp-rail__more li {
	counter-increment: more;
}

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

.bp-rail__more a {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--s-3);
	padding: var(--s-3) 0;
	color: var(--c-graphite);
	font-size: 0.9rem;
	line-height: 1.4;
	text-decoration: none;
}

.bp-rail__more a::before {
	content: counter(more, decimal-leading-zero);
	color: var(--c-signal);
	font-family: var(--f-mono);
	font-size: var(--t-xs);
	line-height: 1.9;
}

.bp-rail__more a:hover {
	color: var(--c-accent);
}

/* --------------------------------------------------------------- Related */
.bp-related {
	border-top: 1px solid var(--c-line);
	background: var(--c-paper);
}

.bp-related .section-head--split {
	align-items: end;
}

@media (min-width: 900px) {
	.bp-related .section-head--split {
		grid-template-columns: 1fr auto;
	}
}

/* -------------------------------------------------------------- Adjacent */
.bp-adjacent {
	border-top: 1px solid var(--c-line);
	background: var(--c-paper);
}

.bp-adjacent__inner {
	display: grid;
	gap: var(--s-4);
	padding-block: var(--s-6);
}

@media (min-width: 760px) {
	.bp-adjacent__inner {
		grid-template-columns: 1fr 1fr;
	}
}

.bp-adjacent__link {
	display: flex;
	align-items: center;
	gap: var(--s-4);
	padding: var(--s-4);
	border: 1px solid var(--c-line);
	border-radius: 18px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.bp-adjacent__link:hover {
	border-color: transparent;
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.bp-adjacent__link--next {
	flex-direction: row-reverse;
	text-align: right;
}

.bp-adjacent__img {
	flex: none;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
}

.bp-adjacent__text {
	display: flex;
	flex-direction: column;
	gap: var(--s-1);
	min-width: 0;
}

.bp-adjacent__label {
	color: var(--c-steel);
	font-size: var(--t-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bp-adjacent__title {
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.3;
}

.bp-adjacent__link:hover .bp-adjacent__title {
	color: var(--c-accent);
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 999px) {
	.bp-toc__box:not([open]) .bp-toc__summary {
		padding-bottom: var(--s-4);
	}

	.bp-toc__summary::after {
		content: "";
		width: 8px;
		height: 8px;
		margin: -4px 4px 0 0;
		border-right: 2px solid var(--c-steel);
		border-bottom: 2px solid var(--c-steel);
		transform: rotate(45deg);
		transition: transform 0.2s var(--ease);
	}

	.bp-toc__box[open] .bp-toc__summary::after {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.bp-toc__pct {
		margin-left: auto;
	}

	.bp-share {
		display: flex;
		align-items: center;
		gap: var(--s-3);
	}

	.bp-share__label {
		margin: 0;
	}
}

@media (max-width: 760px) {
	.bl-hero,
	.bp-hero {
		padding-top: var(--s-7);
	}

	.bp-byline {
		justify-content: flex-start;
	}

	.bp-byline__facts {
		width: 100%;
		padding: var(--s-3) 0 0;
		border-left: 0;
		border-top: 1px solid var(--c-line);
	}

	.bp-figure__img {
		aspect-ratio: 16 / 10;
		border-radius: 16px;
	}

	.bp-body.prose {
		font-size: 1.05rem;
	}

	.bp-body > p:first-of-type {
		font-size: 1.16rem;
	}

	.bp-author {
		flex-direction: column;
		padding: var(--s-5);
	}

	.bp-adjacent__link--next {
		flex-direction: row;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bcard:hover,
	.bcard:hover .bcard__img,
	.bp-adjacent__link:hover {
		transform: none;
	}
}
