/* Post header and navigation */
.post-header {
	margin-bottom: 2.25rem;
	padding-bottom: 1.18rem;
	border-bottom: 1px solid var(--border-color-soft);
}

.post-header h1 {
	overflow-wrap: anywhere;
}

.post-series {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.38rem 0.62rem;
	margin: -0.55rem 0 1rem;
	color: var(--text-color-soft);
	font-size: 0.9rem;
	line-height: 1.45;
}

.post-series-label,
.post-series-count {
	color: var(--color-gray-50);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-series-title {
	min-width: 0;
	overflow-wrap: anywhere;
}

.post-series-title[href] {
	color: var(--text-color-soft);
	text-decoration: none;
}

.post-series-title[href]:visited {
	color: var(--text-color-soft);
}

.post-series-title[href]:hover {
	color: var(--text-color);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.post-meta-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: -0.55rem;
	color: var(--text-color-soft);
}

.post-metadata {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.8rem;
	width: 100%;
	min-width: 0;
	font-size: 0.95rem;
	line-height: 1.45;
}

.post-metadata > span:not(:last-child)::after {
	content: "·";
	margin-left: 0.8rem;
	color: var(--color-gray-50);
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.45rem;
	width: 100%;
	flex: 0 0 auto;
	min-width: 0;
}

.post-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-gray-50);
	font-size: 0.88rem;
	font-style: italic;
	text-decoration: none;
	text-transform: capitalize;
}

.post-brief {
	margin: -0.7rem 0 2rem;
	padding: 1rem 0 1.05rem 1rem;
	border-top: 1px solid var(--border-color-soft);
	border-bottom: 1px solid var(--border-color-soft);
	border-left: 3px solid var(--editorial-accent);
}

.post-brief-kicker {
	margin: 0 0 0.42rem;
	color: var(--color-gray-50);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.post-content .post-brief-summary {
	margin: 0;
	color: var(--text-color);
	font-size: 1rem;
	line-height: 1.65;
}

.post-content .post-brief-takeaways {
	display: grid;
	gap: 0.34rem;
	margin: 0.72rem 0 0;
	padding-left: 1.15rem;
}

.post-content .post-brief-takeaways li {
	margin: 0;
	color: var(--text-color-soft);
	font-size: 0.92rem;
	line-height: 1.55;
}

.post-series-path {
	margin: -1rem 0 1.65rem;
	padding: 0.9rem 0.95rem 0.98rem;
	border: 1px solid var(--border-color-soft);
	border-radius: 8px;
	background: var(--surface-color-soft);
}

.post-series-path-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.post-series-path-label,
.post-related-heading {
	margin: 0;
	color: var(--color-gray-50);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.post-series-path-title {
	margin: 0.16rem 0 0;
	color: var(--text-color);
	font-size: 0.98rem;
	line-height: 1.36;
}

.post-series-index-link {
	flex: 0 0 auto;
	color: var(--text-color-soft);
	font-size: 0.86rem;
	line-height: 1.4;
	text-decoration: none;
}

.post-series-index-link:hover {
	color: var(--text-color);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.post-content .post-series-path-list {
	display: grid;
	gap: 0.42rem;
	margin: 0.88rem 0 0;
	padding: 0;
	list-style: none;
}

.post-content .post-series-path-item {
	margin: 0;
	padding: 0;
}

.post-series-path-item a {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: 0.65rem;
	align-items: baseline;
	padding: 0.48rem 0.55rem;
	border-left: 2px solid transparent;
	border-radius: 6px;
	color: var(--text-color-soft);
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.post-series-path-item a:hover,
.post-series-path-item a:focus-visible {
	background: var(--surface-color-hover);
	color: var(--text-color);
}

.post-series-path-item a:focus-visible,
.post-related-card:focus-visible {
	outline: 2px solid var(--color-gray-50);
	outline-offset: 3px;
}

.post-series-path-item.is-current a {
	border-left-color: var(--editorial-accent);
	background: var(--surface-color-hover);
	color: var(--text-color);
}

.post-series-path-part {
	color: var(--color-gray-50);
	font-family: var(--font-family-monospace);
	font-size: 0.74rem;
	line-height: 1.35;
	text-transform: uppercase;
}

.post-series-path-name {
	min-width: 0;
	font-size: 0.9rem;
	line-height: 1.38;
	overflow-wrap: anywhere;
}

.post-reading-continuation {
	margin: 3rem 0 0;
	padding-top: 1.45rem;
	border-top: 1px solid var(--border-color-soft);
}

.post-related-card {
	display: block;
	min-width: 0;
	border: 1px solid var(--border-color-soft);
	border-radius: 8px;
	background: var(--surface-color-soft);
	color: var(--text-color-soft);
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.post-related-card:hover {
	transform: translateY(-1px);
	border-color: var(--border-color-strong);
	background: var(--surface-color-hover);
	color: var(--text-color);
}

.post-related-heading {
	margin-bottom: 0.68rem;
}

.post-content .post-related-list {
	display: grid;
	gap: 0.62rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-content .post-related-item {
	margin: 0;
	padding: 0;
}

.post-related-card {
	padding: 0.82rem 0.9rem 0.86rem;
}

.post-related-title,
.post-related-description,
.post-related-meta {
	display: block;
}

.post-related-title {
	color: var(--text-color);
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.post-related-description {
	margin-top: 0.36rem;
	color: var(--text-color-soft);
	font-size: 0.9rem;
	line-height: 1.55;
}

.post-related-meta {
	margin-top: 0.48rem;
	color: var(--color-gray-50);
	font-family: var(--font-family-monospace);
	font-size: 0.74rem;
	line-height: 1.42;
}

/* Post layout with right-side table of contents */
.post-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.post-content {
	--post-body-color: var(--text-color-soft);
	--post-marker-color: color-mix(in srgb, var(--text-color-soft) 62%, transparent);
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.post-toc-desktop {
	grid-column: 1;
	grid-row: 1;
	width: 12rem;
	margin-left: calc(100% + 2.25rem);
}

.post-content > p {
	margin-bottom: 1.08rem;
}

.post-content p,
.post-content li {
	color: var(--post-body-color);
}

.post-content strong {
	color: var(--text-color);
	font-weight: 650;
}

.post-content code {
	color: var(--text-color);
}

.post-content a[href] {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.post-citation {
	margin-top: 2.35rem;
}

.post-citation-toggle {
	display: none;
}

.post-citation-content > p {
	margin: 0.72rem 0;
}

.post-citation-quote {
	margin: 0.78rem 0 1.08rem;
	padding: 0.72rem 0.9rem 0.76rem;
	border-left: 2px solid color-mix(in srgb, var(--editorial-accent) 64%, var(--border-color-soft));
	background: color-mix(in srgb, var(--editorial-accent) 5%, var(--surface-color-soft));
}

.post-citation-quote p {
	margin: 0;
	line-height: 1.65;
}

.post-citation-quote cite {
	font-style: normal;
}

.post-citation-quote a {
	overflow-wrap: anywhere;
}

.post-citation-bibtex {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0.72rem 0 1.35rem;
}

.post-citation-bibtex code {
	display: block;
	width: max-content;
	min-width: 100%;
	color: var(--text-color);
	word-break: normal;
	overflow-wrap: normal;
}

/* Reference lists are a distinct citation surface, not inline prose links. */
.post-content .post-references-list {
	margin: 0.4rem 0 1.45rem;
	padding: 0;
	list-style: none;
}

.post-content .post-references-list > li {
	margin: 0.42rem 0;
	padding: 0.3rem 0.52rem 0.34rem 0.78rem;
	border-left: 2px solid color-mix(in srgb, var(--editorial-accent) 58%, var(--border-color-soft));
	line-height: 1.62;
}

.post-content .post-references-list > li::marker {
	content: "";
}

.post-content .post-references-list a[href] {
	border-bottom: 1px solid color-mix(in srgb, var(--editorial-accent) 54%, transparent);
	border-radius: 2px;
	color: color-mix(in srgb, var(--editorial-accent) 78%, var(--text-color));
	text-decoration: none;
	text-underline-offset: initial;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.post-content .post-references-list a[href]:visited {
	border-bottom-color: color-mix(in srgb, var(--text-color-soft) 48%, transparent);
	color: color-mix(in srgb, var(--editorial-accent) 48%, var(--text-color-soft));
}

.post-content .post-references-list a[href]:hover,
.post-content .post-references-list a[href]:active {
	border-bottom-color: currentColor;
	background: color-mix(in srgb, var(--editorial-accent) 13%, transparent);
	color: var(--text-color);
}

.post-content .post-references-list a[href]:focus-visible {
	border-bottom-color: currentColor;
	background: color-mix(in srgb, var(--editorial-accent) 16%, transparent);
	color: var(--text-color);
	outline: 2px solid var(--editorial-accent);
	outline-offset: 3px;
}

.post-content ul,
.post-content ol {
	margin: 0 0 1.16rem;
	padding-left: 1.35rem;
}

.post-content li {
	margin: 0.32rem 0;
	padding-left: 0.08rem;
	line-height: 1.72;
}

.post-content li::marker {
	color: var(--post-marker-color);
	font-size: 0.92em;
}

.post-content li > p {
	margin: 0.42rem 0;
	color: inherit;
}

.post-content li > p:first-child {
	margin-top: 0;
}

.post-content li > p:last-child {
	margin-bottom: 0;
}

.post-content :is(ul, ol) :is(ul, ol) {
	margin-top: 0.42rem;
	margin-bottom: 0.48rem;
	padding-left: 1.12rem;
}

.post-content > h2 {
	margin-top: 2.7rem;
	margin-bottom: 0.88rem;
	padding-top: 0.12rem;
}

.post-content > h3 {
	margin-top: 1.85rem;
	margin-bottom: 0.68rem;
	font-size: 1.26rem;
	line-height: 1.28;
}

.post-content > h2 + p,
.post-content > h3 + p {
	margin-top: 0;
}

.post-toc {
	--toc-rule: var(--border-color-soft);
	--toc-hover: var(--surface-color-soft);
	position: sticky;
	top: 5rem;
	align-self: start;
	min-width: 0;
	max-width: 12rem;
}

.post-toc-mobile {
	display: none;
	position: static;
	max-width: none;
}

.post-toc-inner {
	padding-left: 0.9rem;
	border-left: 1px solid var(--toc-rule);
}

.post-toc-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.8rem 0;
	padding: 0;
	width: 100%;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-color-soft);
}

.post-toc-heading-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.post-toc-list {
	display: flex;
	flex-direction: column;
	gap: 0.62rem;
}

.post-toc-back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.25rem;
	margin-top: 0.9rem;
	padding: 0.48rem 0.65rem;
	border: 1px solid var(--border-color-soft);
	border-radius: 6px;
	background: var(--surface-color-soft);
	color: var(--text-color-soft);
	font: 650 0.82rem/1.35 var(--font-family-monospace);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.post-toc-back-to-top[hidden] {
	display: none !important;
}

.post-toc-back-to-top:hover,
.post-toc-back-to-top:focus-visible {
	border-color: var(--border-color-strong);
	background: var(--surface-color-hover);
	color: var(--text-color);
	transform: translateY(-1px);
}

.post-toc-list[hidden],
.toc-sublist[hidden] {
	display: none !important;
}

.toc-section {
	display: block;
	min-width: 0;
}

.toc-section-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1.35rem;
	align-items: start;
	gap: 0.25rem;
	min-width: 0;
}

.toc-link {
	display: block;
	min-width: 0;
	text-decoration: none;
	color: var(--text-color-soft);
	font-weight: 500;
	overflow-wrap: anywhere;
	word-break: break-word;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.toc-link:hover {
	color: var(--text-color);
}

.toc-link:focus-visible,
.toc-section-toggle:focus-visible,
.post-toc-panel-toggle:focus-visible,
.post-toc-back-to-top:focus-visible {
	outline: 2px solid var(--color-gray-50);
	outline-offset: 3px;
}

.toc-h2 {
	padding: 0.12rem 0;
	font-size: 0.88rem;
	line-height: 1.35;
}

.toc-h3 {
	padding-left: 0.75rem;
	font-size: 0.82rem;
	line-height: 1.34;
	color: var(--color-gray-50);
}

.toc-link.is-active {
	color: var(--text-color);
	font-weight: 650;
}

.toc-h3.is-active {
	color: var(--text-color);
}

.toc-sublist {
	display: flex;
	flex-direction: column;
	gap: 0.42rem;
	margin-top: 0.42rem;
	padding-left: 0.12rem;
	border-left: 1px solid var(--border-color-soft);
}

.toc-section-toggle,
.toc-section-toggle-spacer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--color-gray-50);
}

.toc-section-toggle {
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.toc-section-toggle:hover {
	background: var(--toc-hover);
	color: var(--text-color);
}

.toc-section-toggle-icon,
.post-toc-panel-icon {
	display: inline-block;
	line-height: 1;
	transition: transform 0.16s ease;
}

.toc-section-toggle[aria-expanded="true"] .toc-section-toggle-icon,
.post-toc-panel-toggle[aria-expanded="true"] .post-toc-panel-icon {
	transform: rotate(180deg);
}

/* Wide technical blocks inside posts */
.post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.35rem 0 1.8rem;
	font-size: 0.94rem;
	line-height: 1.52;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.post-content th,
.post-content td {
	padding: 0.68rem 0.72rem;
	vertical-align: top;
	text-align: left;
	border-bottom: 1px solid color-mix(in srgb, var(--border-color) 72%, transparent);
}

.post-content th {
	background: color-mix(in srgb, var(--surface-color) 72%, transparent);
	color: var(--text-color);
	font-size: 0.83rem;
	font-weight: 650;
}

.post-content tbody tr:last-child td {
	border-bottom: 0;
}

.post-content .table-scroll-shell {
	position: relative;
	margin: 1.35rem 0 1.8rem;
}

.post-content .table-scroll-viewport {
	max-width: 100%;
}

.post-content .table-scroll-viewport > table {
	margin: 0;
}

.table-scroll-utility[hidden] {
	display: none !important;
}

.table-scroll-utility {
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding: 0 0.28rem 0 0.72rem;
	border-bottom: 1px solid var(--border-color-soft);
	background: color-mix(in srgb, var(--surface-color) 68%, transparent);
}

.table-scroll-hint {
	min-width: 0;
	overflow: hidden;
	color: var(--color-gray-50);
	font-family: var(--font-family-monospace);
	font-size: 0.67rem;
	font-weight: 650;
	letter-spacing: 0.025em;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.table-zoom-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 5.35rem;
	height: 2.75rem;
	padding: 0 0.68rem;
	border: 0;
	border-left: 1px solid var(--border-color-soft);
	background: transparent;
	color: var(--text-color-soft);
	font: 650 0.72rem/1 var(--font-family);
	cursor: pointer;
}

.table-zoom-trigger > span:first-child {
	font-family: var(--font-family-monospace);
	font-size: 1.05rem;
}

.table-zoom-trigger:hover,
.table-zoom-trigger:active {
	background: var(--surface-color-hover);
	color: var(--text-color);
}

.table-zoom-trigger:focus-visible,
.table-zoom-close:focus-visible,
.table-scroll-viewport:focus-visible,
.table-zoom-viewport:focus-visible {
	outline: 2px solid var(--editorial-accent);
	outline-offset: 2px;
}

.post-content eq {
	display: inline-block;
}

.post-content eqn {
	display: block;
	overflow-x: auto;
	margin: 1.2rem 0 1.55rem;
	padding: 0.85rem 0.9rem;
	text-align: center;
	border-radius: 6px;
	background: color-mix(in srgb, var(--surface-color) 64%, transparent);
	border: 1px solid var(--border-color);
}

.post-content .katex {
	font-size: 1.02em;
}

.post-content eqn .katex {
	font-size: 1.16em;
}

.post-content .technical-figure {
	margin: 1.55rem 0 1.8rem;
}

.post-content .technical-figure-viewport {
	position: relative;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.post-content .technical-figure:has(.technical-figure-viewport img:is([src$=".svg"], [src*="format=svg"])):not(.official-media-figure) .technical-figure-viewport {
	overflow-y: hidden;
	padding: 0.35rem;
	border: 1px solid color-mix(in srgb, var(--border-color) 72%, #67e8f9 28%);
	border-radius: 10px;
	background: color-mix(in srgb, #071019 90%, var(--surface-color));
	box-shadow: 0 12px 30px rgba(6, 11, 17, 0.18);
}

.post-content .author-figure .technical-figure-viewport {
	overflow-y: hidden;
	border: 1px solid color-mix(in srgb, #7a827f 34%, var(--border-color));
	border-radius: 12px;
	background: #f6f3ed;
	box-shadow: 0 12px 30px rgba(15, 24, 31, 0.08);
}

.post-content .official-media-figure .technical-figure-viewport {
	padding: 0.62rem;
	border: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--surface-color) 82%, transparent);
	box-shadow: var(--shadow-soft);
}

.post-content .technical-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.post-content .technical-figure:has(.technical-figure-viewport img:is([src$=".svg"], [src*="format=svg"])):not(.official-media-figure) img {
	border-radius: 6px;
}

.post-content .author-figure img,
.post-content .official-media-figure img {
	border-radius: 8px;
}

.post-content .technical-figure picture {
	display: block;
}

.post-content .technical-figure figcaption {
	margin-top: 0.68rem;
	color: var(--text-color-soft);
	font-size: 0.9rem;
	font-style: italic;
	line-height: 1.58;
}

#post-content[data-post-slug="streaming-autoregressive-video-generation"] .technical-figure:not(.author-figure) {
	margin: 1.7rem 0 2.2rem;
}

#post-content[data-post-slug="streaming-autoregressive-video-generation"] .technical-figure:not(.author-figure) .technical-figure-viewport {
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.55rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	border: 1px solid color-mix(in srgb, var(--border-color) 76%, #67e8f9 24%);
	border-radius: 12px;
	background: color-mix(in srgb, #071019 88%, var(--surface-color));
	box-shadow: 0 14px 34px rgba(6, 11, 17, 0.22);
}

#post-content[data-post-slug="streaming-autoregressive-video-generation"] .technical-figure:not(.author-figure) .technical-figure-viewport picture,
#post-content[data-post-slug="streaming-autoregressive-video-generation"] .technical-figure:not(.author-figure) .technical-figure-viewport img {
	display: block;
}

#post-content[data-post-slug="streaming-autoregressive-video-generation"] .technical-figure:not(.author-figure) .technical-figure-viewport img {
	border-radius: 8px;
}

#post-content[data-post-slug="streaming-autoregressive-video-generation"] .technical-figure:not(.author-figure) figcaption {
	box-sizing: border-box;
	margin-top: 0.95rem;
	padding-left: 0.75rem;
	border-left: 2px solid color-mix(in srgb, #67e8f9 62%, var(--border-color));
}

@media (max-width: 640px) {
	#post-content[data-post-slug="world-models-for-embodied-ai"] .technical-figure,
	#post-content[data-post-slug="world-models-for-embodied-ai"] .technical-figure-viewport,
	#post-content[data-post-slug="world-models-for-embodied-ai"] .technical-figure figcaption {
		width: calc(100vw - 2rem);
		max-width: calc(100vw - 2rem);
		min-width: 0;
	}
}

.post-content .figure-zoom-host {
	position: relative;
}

.post-content .figure-zoom-inline,
.post-content .figure-zoom-inline > a,
.post-content .figure-zoom-inline picture,
.post-content .figure-zoom-inline img {
	display: block;
	max-width: 100%;
}

.figure-zoom-trigger {
	position: absolute;
	top: 0.62rem;
	right: 0.62rem;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(224, 231, 238, 0.36);
	border-radius: 8px;
	background: rgba(7, 13, 20, 0.78);
	color: #f5f7fb;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	font: 1.28rem/1 var(--font-family-monospace);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.figure-zoom-trigger:hover,
.figure-zoom-trigger:focus-visible {
	border-color: rgba(245, 247, 251, 0.68);
	background: rgba(13, 24, 36, 0.92);
	transform: translateY(-1px);
}

.figure-zoom-trigger:focus-visible,
.figure-zoom-close:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--link-color) 72%, white);
	outline-offset: 3px;
}

.figure-zoom-modal[hidden] {
	display: none !important;
}

.figure-zoom-modal {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: grid;
	place-items: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	background: rgba(4, 8, 12, 0.94);
	overscroll-behavior: contain;
}

.figure-zoom-stage {
	position: relative;
	display: grid;
	place-items: center;
	width: min(92vw, 76rem);
	height: min(82vh, 48rem);
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	background: #050b12;
}

.figure-zoom-modal img.figure-zoom-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center;
	border-radius: 8px;
	background: transparent;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.table-zoom-dialog {
	position: fixed;
	inset: 0;
	z-index: 1000;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(4, 8, 12, 0.96);
	color: var(--text-color);
	overflow: hidden;
	overscroll-behavior: contain;
}

.table-zoom-dialog::backdrop {
	background: rgba(4, 8, 12, 0.96);
}

.table-zoom-close {
	position: fixed;
	top: max(0.65rem, env(safe-area-inset-top));
	right: max(0.65rem, env(safe-area-inset-right));
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(224, 231, 238, 0.38);
	border-radius: 999px;
	background: rgba(7, 13, 20, 0.86);
	color: #f5f7fb;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	font: 400 1.5rem/1 var(--font-family);
	cursor: pointer;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.table-zoom-stage {
	position: fixed;
	top: 50%;
	left: 50%;
	display: flex;
	width: min(92vw, 76rem);
	height: min(82vh, 48rem);
	max-width: 100%;
	max-height: 100%;
	flex-direction: column;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 10px;
	background: #071019;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
	transform: translate(-50%, -50%);
	overflow: hidden;
}

.table-zoom-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.35rem;
	padding: 0.45rem 0.75rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
	color: #94a3b8;
	font-family: var(--font-family-monospace);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.25;
	text-transform: uppercase;
}

.table-zoom-viewport {
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	padding: 0.35rem;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.table-zoom-table {
	width: 100%;
	min-width: max(100%, var(--table-modal-min-width, 48rem));
	margin: 0;
	border-collapse: collapse;
	border-top: 1px solid rgba(148, 163, 184, 0.3);
	border-bottom: 1px solid rgba(148, 163, 184, 0.3);
	color: #cbd5e1;
	font-size: 0.88rem;
	line-height: 1.48;
}

.table-zoom-table th,
.table-zoom-table td {
	min-width: 9rem;
	padding: 0.62rem 0.68rem;
	vertical-align: top;
	text-align: left;
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.table-zoom-table th {
	background: #111c29;
	color: #f1f5f9;
	font-size: 0.8rem;
	font-weight: 700;
}

.table-zoom-table th:last-child,
.table-zoom-table td:last-child {
	min-width: 18rem;
}

.table-zoom-table tbody tr:last-child td {
	border-bottom: 0;
}

.table-zoom-table a[href] {
	color: #d9edf4;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

:root.table-zoom-open {
	overflow: hidden;
}

.figure-zoom-close {
	position: fixed;
	top: max(0.85rem, env(safe-area-inset-top));
	right: max(0.85rem, env(safe-area-inset-right));
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(224, 231, 238, 0.34);
	border-radius: 8px;
	background: rgba(10, 16, 24, 0.9);
	color: #f5f7fb;
	font: 1.5rem/1 var(--font-family-monospace);
	cursor: pointer;
}

:root.figure-zoom-open,
:root.figure-zoom-open body {
	overflow: hidden;
}

.post-references-toggle {
	display: none;
}

.post-content .author-figure figcaption {
	padding-left: 0.75rem;
	border-left: 2px solid color-mix(in srgb, #2c7b73 76%, var(--border-color));
}

.post-content .official-media-figure figcaption {
	padding-left: 0.75rem;
	border-left: 2px solid color-mix(in srgb, #9b8c6d 62%, var(--border-color));
}

.post-content .official-media-figure {
	margin-top: 1.7rem;
	margin-bottom: 2rem;
}

.post-content td:first-child,
.post-content th:first-child {
	font-weight: 600;
	min-width: 8.75rem;
}

.post-content .mermaid {
	overflow-x: auto;
	overflow-y: hidden;
	margin: 1.5rem 0 1.8rem;
	padding: 1.15rem 1rem;
	border: 1px solid #d5d2cb;
	border-radius: 6px;
	background: #f5f3ef;
}

.post-content .mermaid svg {
	display: block;
	margin: 0 auto;
	max-width: 100% !important;
	height: auto;
}

@media (max-width: 1279px) {
	.post-shell {
		grid-template-columns: 1fr;
	}

	.post-content .table-scroll-viewport {
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}

	.post-toc-desktop {
		display: none;
	}

	.post-toc-mobile {
		display: block;
		margin: 0.25rem 0 2rem;
	}

	.post-toc-mobile .post-toc-inner {
		padding: 0.85rem 0.95rem;
		border: 1px solid var(--toc-rule);
		border-radius: 8px;
		background: var(--surface-color-soft);
	}

	.post-toc-mobile .post-toc-heading {
		margin: 0;
		cursor: pointer;
		text-align: left;
		min-width: 0;
	}

	.post-toc-mobile .post-toc-list {
		margin-top: 0.75rem;
		padding-top: 0.8rem;
		border-top: 1px solid var(--toc-rule);
		max-height: min(58vh, 26rem);
		overflow: auto;
		overscroll-behavior: contain;
	}

	.post-toc-mobile .toc-section-header {
		grid-template-columns: minmax(0, 1fr) 1.75rem;
	}

	.post-toc-mobile .toc-section-toggle,
	.post-toc-mobile .toc-section-toggle-spacer {
		width: 1.75rem;
		height: 1.75rem;
	}

	.post-toc-mobile .toc-h2 {
		font-size: 0.95rem;
	}

	.post-toc-mobile .toc-h3 {
		font-size: 0.88rem;
	}
}

@media (max-width: 720px) {
	.post-header {
		margin-bottom: 1.32rem;
		padding-bottom: 0.82rem;
	}

	.post-header h1 {
		margin-bottom: 0.82rem;
		font-size: 1.68rem;
		line-height: 1.18;
	}

	.post-meta-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.48rem;
		margin-top: 0;
	}

	.post-metadata {
		display: block;
		gap: 0.3rem 0.58rem;
		font-size: 0.88rem;
		line-height: 1.42;
	}

	.post-metadata > span {
		display: inline;
	}

	.post-metadata > span:not(:last-child)::after {
		margin: 0 0.48rem;
	}

	.post-tags {
		justify-content: flex-start;
		gap: 0.3rem 0.52rem;
	}

	.post-tag {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
		font-size: 0.84rem;
	}

	.post-series-path {
		margin: -0.35rem 0 1.3rem;
		padding: 0.82rem 0.82rem 0.9rem;
	}

	.post-reading-continuation {
		margin-top: 2.4rem;
		padding-top: 1.2rem;
	}
}

@media (max-width: 640px), (max-height: 640px) and (orientation: landscape) {
	.post-content .figure-zoom-host.is-zoomable > .figure-zoom-trigger {
		display: inline-flex;
	}

	.post-content .table-scroll-shell.is-scrollable {
		border: 1px solid var(--border-color-soft);
		border-radius: 10px;
		background: color-mix(in srgb, var(--surface-color) 38%, transparent);
		overflow: hidden;
	}

	.post-content .table-scroll-shell.is-scrollable .table-scroll-utility {
		display: flex;
	}

	.post-content .table-scroll-viewport {
		position: relative;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.post-content .table-scroll-viewport > table {
		display: table;
		width: 100%;
		min-width: max(100%, var(--table-inline-min-width, 38rem));
		max-width: none;
		overflow: visible;
	}

	.post-content .table-scroll-shell.is-scrollable::before,
	.post-content .table-scroll-shell.is-scrollable::after {
		content: "";
		position: absolute;
		top: 2.76rem;
		bottom: 0;
		z-index: 2;
		width: 1.5rem;
		pointer-events: none;
		transition: opacity 140ms ease;
	}

	.post-content .table-scroll-shell.is-scrollable::before {
		left: 0;
		background: linear-gradient(90deg, color-mix(in srgb, var(--background-color) 92%, transparent), transparent);
	}

	.post-content .table-scroll-shell.is-scrollable::after {
		right: 0;
		background: linear-gradient(270deg, color-mix(in srgb, var(--background-color) 92%, transparent), transparent);
	}

	.post-content .table-scroll-shell.is-at-start::before,
	.post-content .table-scroll-shell.is-at-end::after {
		opacity: 0;
	}

}

@media (max-width: 640px) {
	.post-content {
		overflow-wrap: break-word;
	}


	.post-references-toggle,
	.post-citation-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.7rem;
		width: 100%;
		min-height: 2.75rem;
		margin: -0.32rem 0 1rem;
		padding: 0.64rem 0.78rem;
		border: 1px solid var(--border-color-soft);
		border-radius: 8px;
		background: var(--surface-color-soft);
		color: var(--text-color);
		font: inherit;
		text-align: left;
		cursor: pointer;
		transition:
			background-color 160ms ease,
			border-color 160ms ease,
			color 160ms ease;
	}

	.post-references-toggle:hover,
	.post-references-toggle:focus-visible,
	.post-citation-toggle:hover,
	.post-citation-toggle:focus-visible {
		border-color: var(--border-color-strong);
		background: var(--surface-color-hover);
	}

	.post-references-toggle:focus-visible,
	.post-citation-toggle:focus-visible {
		outline: 2px solid var(--color-gray-50);
		outline-offset: 3px;
	}

	.post-references-toggle-icon,
	.post-citation-toggle-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.35rem;
		height: 1.35rem;
		flex: 0 0 auto;
		border: 1px solid var(--border-color-soft);
		border-radius: 999px;
		color: var(--color-gray-50);
		font-family: var(--font-family-monospace);
		font-size: 0.95rem;
		line-height: 1;
	}

	.post-references-toggle-label,
	.post-citation-toggle-label {
		min-width: 0;
		flex: 1 1 auto;
		font-weight: 650;
		line-height: 1.35;
	}

	.post-references-toggle-count {
		flex: 0 0 auto;
		color: var(--color-gray-50);
		font-family: var(--font-family-monospace);
		font-size: 0.74rem;
		line-height: 1.35;
		text-transform: uppercase;
	}

	.post-content ul,
	.post-content ol {
		padding-left: 1.12rem;
	}

	.post-content li {
		margin: 0.28rem 0;
		padding-left: 0.04rem;
	}

	.post-content .post-references-list {
		margin-top: 0.28rem;
		padding: 0;
	}

	.post-content .post-references-list > li {
		margin: 0.34rem 0;
		padding: 0.28rem 0.45rem 0.32rem 0.66rem;
	}

	.post-citation {
		margin-top: 2rem;
	}

	.post-citation-toggle {
		margin-top: -0.3rem;
	}

	.post-citation-quote {
		padding: 0.65rem 0.72rem 0.68rem;
	}

	.post-series-path-head {
		flex-direction: column;
		gap: 0.5rem;
	}

	.post-series-index-link {
		font-size: 0.84rem;
	}

	.post-series-path-item a {
		grid-template-columns: 4rem minmax(0, 1fr);
		gap: 0.52rem;
		padding: 0.46rem 0.5rem;
	}

	.post-series-path-name {
		font-size: 0.86rem;
	}

	.post-content pre,
	.post-content table,
	.post-content .mermaid {
		max-width: 100%;
	}

	.post-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.post-content table th,
	.post-content table td {
		min-width: 8.25rem;
	}

	.post-content table th:last-child,
	.post-content table td:last-child {
		min-width: min(22rem, 72vw);
	}

	.post-content .mermaid {
		padding: 0.85rem 0.6rem;
	}

	.post-content .mermaid svg {
		min-width: 42rem;
	}

	.post-content eqn .katex {
		font-size: 1.08em;
	}

	.post-content .technical-figure picture {
		width: max(100%, 42rem);
		max-width: none;
	}

	.post-content .author-figure picture,
	.post-content .official-media-figure picture {
		width: 100%;
		max-width: 100%;
	}

	.post-content .technical-figure img[src$=".svg"],
	.post-content .technical-figure img[src*="format=svg"] {
		width: max(100%, 42rem);
		max-width: none;
	}

	.post-content .author-figure img[src$=".svg"],
	.post-content .author-figure img[src*="format=svg"] {
		width: max(100%, 48rem);
	}

	.post-content .official-media-figure .technical-figure-viewport {
		padding: 0.4rem;
	}

}

@media (max-width: 640px) and (orientation: portrait) {
	.figure-zoom-modal {
		padding: 0.85rem;
	}

	.figure-zoom-stage {
		width: calc(100svw - 1.7rem);
		height: calc(100svh - 1.7rem);
		max-width: calc(100svw - 1.7rem);
		max-height: calc(100svh - 1.7rem);
	}

	.figure-zoom-modal.is-landscape-image .figure-zoom-stage {
		position: fixed;
		top: 50%;
		left: 50%;
		width: calc(100svh - 2rem);
		height: calc(100svw - 0.625rem);
		max-width: calc(100svh - 2rem);
		max-height: calc(100svw - 0.625rem);
		transform: translate(-50%, -50%) rotate(90deg);
		transform-origin: center;
	}

	.table-zoom-stage {
		width: calc(100svh - 1rem);
		height: calc(100svw - 0.625rem);
		max-width: calc(100svh - 1rem);
		max-height: calc(100svw - 0.625rem);
		transform: translate(-50%, -50%) rotate(90deg);
		transform-origin: center;
	}
}

@media (max-height: 640px) and (orientation: landscape) {
	.figure-zoom-modal {
		padding: 0.25rem;
	}


	.figure-zoom-stage {
		width: calc(100svw - 0.5rem);
		height: calc(100svh - 0.5rem);
		max-width: calc(100svw - 0.5rem);
		max-height: calc(100svh - 0.5rem);
	}

	.table-zoom-stage {
		width: calc(100svw - 0.5rem);
		height: calc(100svh - 0.5rem);
		max-width: calc(100svw - 0.5rem);
		max-height: calc(100svh - 0.5rem);
	}

}

/* Mobile article reader: progressive enhancement over the existing post layout. */
.post-reader-metadata,
.post-tags-footer,
.reader-header,
.reader-toolbar,
.reader-toast {
	display: none;
}

.reader-sheet {
	color: var(--text-color);
}

@media (max-width: 640px) {
	:root[data-reader-font-size="small"] body.reader-mode-ready {
		--reader-body-size: 16px;
	}

	:root[data-reader-font-size="medium"] body.reader-mode-ready,
	body.reader-mode-ready {
		--reader-body-size: 17px;
	}

	:root[data-reader-font-size="large"] body.reader-mode-ready {
		--reader-body-size: 19px;
	}

	body.reader-mode-ready {
		--reader-chrome-height: 3.25rem;
		--reader-toolbar-height: 4.15rem;
		--reader-inline-gutter: 1.25rem;
		max-width: 100%;
		padding-bottom: calc(var(--reader-toolbar-height) + env(safe-area-inset-bottom) + 1.5rem);
	}

	body.reader-mode-ready > header[data-site-header] {
		display: none;
	}

	body.reader-mode-ready main {
		width: 100%;
		max-width: 100%;
		padding-top: calc(var(--reader-chrome-height) + 1.65rem);
		padding-right: var(--reader-inline-gutter);
		padding-bottom: 3rem;
		padding-left: var(--reader-inline-gutter);
	}

	body.reader-mode-ready .reader-header {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 70;
		display: grid;
		grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem;
		align-items: center;
		width: 100%;
		height: calc(var(--reader-chrome-height) + env(safe-area-inset-top));
		padding: env(safe-area-inset-top) 0.65rem 0;
		border-bottom: 1px solid var(--border-color-soft);
		background: color-mix(in srgb, var(--background-color) 92%, transparent);
		box-shadow: 0 1px 0 color-mix(in srgb, var(--border-color) 56%, transparent);
		backdrop-filter: blur(14px) saturate(125%);
		-webkit-backdrop-filter: blur(14px) saturate(125%);
	}

	.reader-back {
		justify-self: start;
	}

	.reader-header-actions {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: 5.5rem;
	}

	.reader-header-action {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: var(--text-color);
		cursor: pointer;
		text-decoration: none;
	}

	.reader-header-action:hover,
	.reader-header-action:active {
		background: var(--surface-color-hover);
		color: var(--text-color);
	}

	.reader-header-action.reader-theme-toggle {
		position: relative;
		top: auto;
		right: auto;
		z-index: auto;
		align-self: stretch;
		flex: 0 0 2.75rem;
		width: 2.75rem;
		height: var(--reader-chrome-height);
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: var(--theme-control-icon);
	}

	.reader-header-action.reader-theme-toggle:hover,
	.reader-header-action.reader-theme-toggle:active {
		background: transparent;
		color: var(--text-color);
	}

	:root[data-theme="light"] .reader-header-action.reader-theme-toggle {
		background: transparent;
		color: var(--theme-control-active);
	}

	:root[data-theme="light"] .reader-header-action.reader-theme-toggle:hover {
		background: transparent;
		color: color-mix(in srgb, var(--theme-control-active) 82%, var(--text-color));
	}

	.reader-header-action:not(.reader-theme-toggle):focus-visible,
	.reader-tool:focus-visible,
	.reader-sheet-close:focus-visible,
	.reader-size-options button:focus-visible {
		outline: 2px solid var(--editorial-accent);
		outline-offset: 2px;
	}

	.reader-header-action svg {
		width: 1.35rem;
		height: 1.35rem;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.8;
	}

	.reader-theme-toggle .theme-pull-visual svg {
		width: 100%;
		height: 100%;
	}

	.reader-back-to-top {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(0.18rem);
		transition:
			opacity 150ms ease,
			transform 150ms ease,
			visibility 0s linear 150ms,
			background-color 150ms ease,
			color 150ms ease;
	}

	.reader-back-to-top.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
		transition-delay: 0s;
	}

	.reader-header-title {
		overflow: hidden;
		color: var(--text-color);
		font-size: 0.96rem;
		font-weight: 700;
		letter-spacing: -0.01em;
		line-height: 1;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.reader-progress {
		position: absolute;
		right: 0;
		bottom: -1px;
		left: 0;
		height: 2px;
		overflow: hidden;
		background: transparent;
	}

	.reader-progress > span {
		display: block;
		width: 100%;
		height: 100%;
		background: var(--editorial-accent);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 90ms linear;
	}

	body.reader-mode-ready .post-shell {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	body.reader-mode-ready .post-content {
		width: 100%;
		max-width: 100%;
		font-size: var(--reader-body-size);
		overflow-wrap: break-word;
	}

	body.reader-mode-ready .post-header {
		margin-bottom: 1.45rem;
		padding-bottom: 1.05rem;
		border-bottom-color: var(--border-color-soft);
	}

	body.reader-mode-ready .post-header h1 {
		margin-bottom: 1.05rem;
		font-size: clamp(1.9rem, 7.9vw, 2rem);
		font-weight: 760;
		letter-spacing: -0.035em;
		line-height: 1.12;
	}

	body.reader-mode-ready .post-series,
	body.reader-mode-ready .post-meta-row > .post-tags,
	body.reader-mode-ready .post-brief,
	body.reader-mode-ready .post-series-path,
	body.reader-mode-ready .post-toc-mobile {
		display: none;
	}

	body.reader-mode-ready .post-meta-row {
		gap: 0;
		margin-top: 0;
	}

	body.reader-mode-ready .post-metadata {
		display: flex;
		align-items: center;
		gap: 0;
		color: var(--text-color-soft);
		font-family: var(--font-family-monospace);
		font-size: 0.76rem;
		letter-spacing: -0.01em;
		line-height: 1.55;
	}

	body.reader-mode-ready .post-reader-metadata {
		display: inline;
	}

	body.reader-mode-ready .post-metadata > span {
		display: inline-flex;
		align-items: baseline;
		max-width: 100%;
	}

	body.reader-mode-ready .post-metadata a {
		color: inherit;
		text-decoration: none;
	}

	body.reader-mode-ready .post-metadata a:hover {
		color: var(--text-color);
		text-decoration: underline;
		text-underline-offset: 0.16em;
	}

	body.reader-mode-ready .post-metadata > span:not(:last-child)::after {
		content: "·";
		display: inline-block;
		margin: 0 0.45rem;
		color: var(--color-gray-50);
	}

	body.reader-mode-ready .post-content > p {
		margin-bottom: 1.18em;
		font-size: 1em;
		line-height: 1.72;
	}

	body.reader-mode-ready .post-content li {
		font-size: 1em;
		line-height: 1.68;
	}

	body.reader-mode-ready .post-content > h2 {
		margin-top: 2.55rem;
		margin-bottom: 0.8rem;
		font-size: 1.55rem;
		line-height: 1.22;
	}

	body.reader-mode-ready .post-content > h3 {
		margin-top: 1.9rem;
		font-size: 1.25rem;
		line-height: 1.28;
	}

	body.reader-mode-ready .post-tags-footer {
		display: flex;
		gap: 0.42rem 0.65rem;
		margin-top: 2.5rem;
		padding-top: 1rem;
		border-top: 1px solid var(--border-color-soft);
	}

	body.reader-mode-ready .post-tags-footer .post-tag {
		font-size: 0.78rem;
	}

	body.reader-mode-ready .reader-toolbar {
		position: fixed;
		right: 0.75rem;
		bottom: calc(0.7rem + env(safe-area-inset-bottom));
		left: 0.75rem;
		z-index: 72;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		width: auto;
		max-width: 24rem;
		height: var(--reader-toolbar-height);
		margin: 0 auto;
		padding: 0.32rem;
		border: 1px solid var(--border-color-strong);
		border-radius: 1rem;
		background: color-mix(in srgb, var(--surface-color) 91%, transparent);
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
		backdrop-filter: blur(18px) saturate(125%);
		-webkit-backdrop-filter: blur(18px) saturate(125%);
	}

	.reader-tool {
		display: flex;
		min-width: 0;
		min-height: 3.45rem;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		padding: 0.22rem 0.15rem;
		border: 0;
		border-radius: 0.72rem;
		background: transparent;
		color: var(--text-color-soft);
		font-family: inherit;
		font-size: 0.66rem;
		font-weight: 650;
		line-height: 1;
		cursor: pointer;
	}

	.reader-tool:hover,
	.reader-tool:active {
		background: var(--surface-color-hover);
		color: var(--text-color);
	}

	.reader-tool svg {
		width: 1.22rem;
		height: 1.22rem;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.65;
	}

	.reader-tool-aa {
		display: inline-flex;
		align-items: center;
		height: 1.22rem;
		color: inherit;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 1.08rem;
		font-weight: 700;
		letter-spacing: -0.08em;
		line-height: 1;
	}

	.reader-toast {
		position: fixed;
		bottom: calc(var(--reader-toolbar-height) + env(safe-area-inset-bottom) + 1.35rem);
		left: 50%;
		z-index: 90;
		display: block;
		max-width: calc(100vw - 2rem);
		padding: 0.55rem 0.8rem;
		border: 1px solid var(--border-color-strong);
		border-radius: 999px;
		background: var(--surface-color);
		box-shadow: var(--shadow-hover);
		color: var(--text-color);
		font-size: 0.78rem;
		font-weight: 650;
		line-height: 1.35;
		text-align: center;
		transform: translateX(-50%);
	}

	.reader-toast[hidden] {
		display: none;
	}

	.reader-sheet {
		position: fixed;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		overflow: hidden;
	}

	.reader-sheet[open] {
		display: flex;
		align-items: flex-end;
		justify-content: stretch;
	}

	.reader-sheet::backdrop {
		background: rgba(3, 8, 13, 0.58);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
	}

	.reader-sheet-surface {
		width: 100%;
		max-height: min(76svh, 43rem);
		padding: 0.45rem var(--reader-inline-gutter) calc(1rem + env(safe-area-inset-bottom));
		border: 1px solid var(--border-color-strong);
		border-bottom: 0;
		border-radius: 1.1rem 1.1rem 0 0;
		background: var(--background-color);
		box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.32);
		overflow: hidden;
	}

	.reader-sheet-surface::before {
		content: "";
		display: block;
		width: 2.4rem;
		height: 0.22rem;
		margin: 0.1rem auto 0.45rem;
		border-radius: 999px;
		background: var(--border-color-strong);
	}

	.reader-sheet-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding-bottom: 0.85rem;
		border-bottom: 1px solid var(--border-color-soft);
	}

	.reader-sheet-kicker {
		margin: 0 0 0.16rem;
		color: var(--color-gray-50);
		font-family: var(--font-family-monospace);
		font-size: 0.64rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		line-height: 1.3;
		text-transform: uppercase;
	}

	.reader-sheet-title {
		margin: 0;
		color: var(--text-color);
		font-size: 1.25rem;
		font-weight: 700;
		letter-spacing: -0.02em;
		line-height: 1.2;
	}

	.reader-sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		flex: 0 0 auto;
		padding: 0;
		border: 1px solid var(--border-color-soft);
		border-radius: 999px;
		background: var(--surface-color-soft);
		color: var(--text-color);
		font: 400 1.45rem/1 var(--font-family);
		cursor: pointer;
	}

	.reader-sheet-body {
		max-height: calc(min(76svh, 43rem) - 6.4rem - env(safe-area-inset-bottom));
		padding: 1rem 0 0.25rem;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.reader-summary-content > p {
		margin: 0;
		color: var(--text-color);
		font-size: 1rem;
		line-height: 1.65;
	}

	.reader-summary-content ul {
		display: grid;
		gap: 0.65rem;
		margin: 0.9rem 0 0;
		padding-left: 1.15rem;
	}

	.reader-summary-content li {
		margin: 0;
		color: var(--text-color-soft);
		font-size: 0.92rem;
		line-height: 1.58;
	}

	.reader-series-link {
		display: inline-flex;
		margin-top: 1rem;
		font-size: 0.86rem;
		font-weight: 650;
		text-underline-offset: 0.16em;
	}

	.reader-sheet-toc .post-toc-list {
		gap: 0.25rem;
	}

	.reader-sheet-toc .toc-section {
		padding: 0.2rem 0;
		border-bottom: 1px solid var(--border-color-soft);
	}

	.reader-sheet-toc .toc-section:last-child {
		border-bottom: 0;
	}

	.reader-sheet-toc .toc-section-header {
		grid-template-columns: minmax(0, 1fr) 2.5rem;
		align-items: center;
		gap: 0.4rem;
	}

	.reader-sheet-toc .toc-link {
		min-width: 0;
		padding: 0.58rem 0.35rem;
		font-size: 0.94rem;
		line-height: 1.38;
	}

	.reader-sheet-toc .toc-h3 {
		padding-top: 0.45rem;
		padding-bottom: 0.45rem;
		font-size: 0.84rem;
	}

	.reader-sheet-toc .toc-section-toggle,
	.reader-sheet-toc .toc-section-toggle-spacer {
		width: 2.5rem;
		height: 2.5rem;
	}

	.reader-size-options {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.reader-size-options button {
		display: flex;
		min-width: 0;
		min-height: 5.6rem;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.4rem;
		padding: 0.65rem 0.35rem;
		border: 1px solid var(--border-color-soft);
		border-radius: 0.8rem;
		background: var(--surface-color-soft);
		color: var(--text-color-soft);
		font: 650 0.72rem/1.2 var(--font-family);
		cursor: pointer;
	}

	.reader-size-options button[aria-pressed="true"] {
		border-color: var(--editorial-accent);
		background: color-mix(in srgb, var(--editorial-accent) 12%, var(--surface-color-soft));
		color: var(--text-color);
	}

	.reader-size-sample {
		color: var(--text-color);
		font-family: Georgia, "Times New Roman", serif;
		font-weight: 700;
		letter-spacing: -0.05em;
		line-height: 1;
	}

	.reader-size-sample.is-small {
		font-size: 1.05rem;
	}

	.reader-size-sample.is-medium {
		font-size: 1.3rem;
	}

	.reader-size-sample.is-large {
		font-size: 1.55rem;
	}

	:root.reader-sheet-open {
		overflow: hidden;
	}
}

@media (max-width: 360px) {
	body.reader-mode-ready {
		--reader-inline-gutter: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.post-toc-back-to-top {
		transition: none;
	}

	.toc-link,
	.toc-section-toggle,
	.toc-section-toggle-icon,
	.post-toc-panel-icon,
	.post-series-path-item a,
	.post-related-card,
	.figure-zoom-trigger,
		.table-zoom-trigger,
		.post-references-toggle,
		.post-citation-toggle {
		transition-duration: 0.01ms;
	}

	.reader-progress > span,
	.reader-header-action,
	.reader-tool,
	.reader-sheet,
	.reader-sheet-surface,
	.reader-size-options button {
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.post-citation-toggle {
		display: none !important;
	}

	.post-citation-content[hidden] {
		display: block !important;
	}
}
