:root {
	--alt: #0b1220;
	--lift: #dfe5f0;
	--plain: #fff;
	--flow: #ffb300;
	--ink: #111;
	--tone: #d99700;
	--shell: #070b16;
	--main: #fff;
	--bold: color-mix(in srgb, var(--lift) 6%, var(--alt));
	--depth: color-mix(in srgb, var(--lift) 3%, var(--alt));
	--cool: color-mix(in srgb, var(--lift) 18%, var(--alt));
	--field: color-mix(in srgb, var(--lift) 68%, var(--alt));
	--brand: 1160px;
	--stroke: 78ch;
	--deep: 14px;
	--warm: 8px;
	--space: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
	--zone: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--thin: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
	--base: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
	--size: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
}

*::before, *, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--alt);
	color: var(--lift);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: var(--zone);
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.district {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--shell);
	color: var(--main);
}

.group-bold, .shelf2-view, .district-narrow, .ribbon-lead, .tract-bold {
	width: min(100% - 2rem, var(--brand));
	margin-inline: auto;
}

.district-narrow {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 60px;
	padding-block: 0.5rem;
}

.level {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	flex-shrink: 0;
}

.level img {
	height: 32px;
	width: auto;
	object-fit: contain;
}

.widget {
	display: flex;
	gap: 0.15rem;
	margin-inline-end: auto;
	min-width: 0;
}

.widget a {
	padding: 0.4rem 0.7rem;
	border-radius: var(--warm);
	text-decoration: none;
	color: inherit;
	opacity: 0.82;
	white-space: nowrap;
	font-size: 0.92rem;
}

.widget a:hover {
	background: color-mix(in srgb, var(--main) 14%, transparent);
	opacity: 1;
}

.widget:empty {
	display: none;
}

.widget:empty + .district-view {
	margin-inline-start: auto;
}

.district-view {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.post {
	display: none;
	position: relative;
	flex-shrink: 0;
}

.post-cell {
	list-style: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid color-mix(in srgb, var(--main) 40%, transparent);
	border-radius: var(--warm);
}

.post-cell::-webkit-details-marker {
	display: none;
}

.post-cell span::before, .post-cell span, .post-cell span::after {
	content: "";
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.post-cell span {
	position: relative;
}

.post-cell span::before {
	position: absolute;
	top: -6px;
}

.post-cell span::after {
	position: absolute;
	top: 6px;
}

.post-shut {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 0.5rem);
	z-index: 25;
	min-width: 14rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem;
	background: var(--shell);
	border: 1px solid color-mix(in srgb, var(--main) 20%, transparent);
	border-radius: var(--deep);
	box-shadow: var(--space);
}

.post-shut a {
	padding: 0.6rem 0.7rem;
	border-radius: var(--warm);
	text-decoration: none;
	color: var(--main);
}

.post-shut a:hover {
	background: color-mix(in srgb, var(--main) 12%, transparent);
}

.post-shut .corner {
	margin-top: 0.4rem;
	color: var(--main);
	border-color: color-mix(in srgb, var(--main) 40%, transparent);
}

.district .corner-edge {
	color: inherit;
	border-color: color-mix(in srgb, var(--main) 45%, transparent);
}

.district .corner-edge:hover {
	background: color-mix(in srgb, var(--main) 14%, transparent);
}

.ribbon {
	background: color-mix(in srgb, var(--main) 8%, var(--shell));
	border-top: 1px solid color-mix(in srgb, var(--main) 12%, transparent);
	font-size: 0.9rem;
}

.ribbon-lead {
	display: flex;
	gap: 0.25rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.ribbon-lead::-webkit-scrollbar {
	display: none;
}

.ribbon a {
	padding: 0.55rem 0.7rem;
	text-decoration: none;
	color: var(--main);
	opacity: 0.8;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

.ribbon a:hover {
	opacity: 1;
	border-bottom-color: var(--flow);
}

.corner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border: 1px solid var(--round, transparent);
	border-radius: var(--warm);
	padding: 0.6rem 1.1rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	background: var(--flow);
	color: var(--ink);
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.corner:hover {
	background: var(--tone);
}

.corner:active {
	transform: translateY(1px);
}

.corner-edge {
	background: transparent;
	color: var(--plain);
	border-color: var(--cool);
}

.corner-edge:hover {
	background: var(--bold);
}

.corner-stub {
	padding: 0.9rem 1.8rem;
	font-size: var(--thin);
}

:focus-visible {
	outline: 2px solid var(--flow);
	outline-offset: 2px;
}

.tract-meta, .article h2, .board h3, .article h3, .board h2, .niche {
	color: var(--plain);
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.niche {
	font-size: var(--size);
	margin: 0 0 1rem;
}

.tract-meta {
	font-size: var(--base);
	margin: 0 0 1.25rem;
}

.article h3, .board h3 {
	font-size: var(--thin);
	margin: 1.75rem 0 0.5rem;
}

.article p, .board p {
	margin: 0 0 1rem;
}

.board > :last-child, .article > :last-child {
	margin-bottom: 0;
}

.board a, .article a {
	color: color-mix(in srgb, var(--flow) 72%, var(--plain));
	text-underline-offset: 3px;
}

.part {
	display: block;
}

.tract {
	padding-block: clamp(2rem, 1.4rem + 2vw, 3.5rem);
	scroll-margin-top: 72px;
}

.part > .tract:not(.shelf2):nth-of-type(odd) {
	background: var(--bold);
}

.article {
	max-width: var(--stroke);
}

.tract-list .article ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	display: grid;
	gap: 0.5rem;
}

.tract-list .article ul > li {
	position: relative;
	padding-inline-start: 1.9rem;
	padding-block: 0.15rem;
}

.tract-list .article ul > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 0.75rem;
	height: 0.4rem;
	border-inline-start: 2px solid var(--flow);
	border-bottom: 2px solid var(--flow);
	transform: rotate(-45deg);
}

.tract-list .article ol {
	counter-reset: step;
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.tract-list .article ol > li {
	counter-increment: step;
	position: relative;
	padding-inline-start: 2.6rem;
}

.tract-list .article ol > li::before {
	content: counter(step);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--flow);
	color: var(--ink);
	font-weight: 700;
	font-size: 0.9rem;
	display: grid;
	place-items: center;
}

.note {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--cool);
	border-inline-start: 3px solid var(--field);
	border-radius: 0 var(--warm) var(--warm) 0;
	background: var(--bold);
	font-size: 0.95rem;
}

.note p {
	margin: 0 0 0.6rem;
}

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

.note strong {
	color: var(--plain);
}

.note--disclosure {
	color: var(--field);
	font-size: 0.88rem;
	background: transparent;
	border-inline-start-color: var(--cool);
}

.note--warning {
	border-inline-start-color: var(--flow);
	background: color-mix(in srgb, var(--flow) 10%, var(--alt));
}

.note--takeaway {
	font-variant-numeric: tabular-nums;
	border-inline-start-color: var(--plain);
}

.note--rg {
	border: 1px solid color-mix(in srgb, var(--plain) 30%, var(--cool));
	border-radius: var(--deep);
	background: var(--depth);
}

.note--rg a {
	font-weight: 600;
}

.note--independent {
	margin-top: 2.5rem;
	font-size: 0.85rem;
	color: var(--field);
	background: transparent;
	border: 0;
	border-top: 1px solid var(--cool);
	border-radius: 0;
	padding: 1rem 0 0;
}

.board blockquote, .article blockquote {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	border-inline-start: 3px solid var(--flow);
	border-radius: 0 var(--warm) var(--warm) 0;
	background: var(--bold);
	color: var(--field);
	font-size: 0.95rem;
}

.board blockquote p, .article blockquote p {
	margin: 0 0 0.6rem;
}

.article blockquote > :last-child, .board blockquote > :last-child {
	margin-bottom: 0;
}

.article blockquote strong, .board blockquote strong {
	color: var(--plain);
}

.article hr {
	border: 0;
	border-top: 1px solid var(--cool);
	margin: 2rem 0;
}

.article table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	background: var(--depth);
	border: 1px solid var(--cool);
	border-radius: var(--deep);
	overflow: hidden;
}

.tract-table .article {
	max-width: none;
	overflow-x: auto;
}

.article td, .article th {
	border-bottom: 1px solid var(--cool);
	padding: 0.7rem 0.9rem;
	text-align: start;
	vertical-align: top;
}

.article caption {
	caption-side: top;
	text-align: start;
	padding: 0 0 0.6rem;
	font-weight: 700;
	color: var(--plain);
}

.article thead th {
	background: color-mix(in srgb, var(--flow) 16%, var(--bold));
	color: var(--plain);
	font-weight: 700;
	white-space: nowrap;
}

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

.article tbody tr:nth-child(even) {
	background: color-mix(in srgb, var(--lift) 3%, transparent);
}

.gutter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
	gap: 2rem;
	align-items: start;
}

.gutter-open {
	border: 1px solid var(--cool);
	border-radius: var(--deep);
	box-shadow: var(--space);
	width: 100%;
}

.shelf2 {
	position: relative;
	padding-block: clamp(2rem, 1.2rem + 3vw, 4rem);
	background: var(--shell);
	isolation: isolate;
}

.shelf2::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--wide, none);
	background-size: cover;
	background-position: center;
}

.pill-side {
	margin-top: 1.25rem;
	text-align: center;
}

.pill-side a {
	color: var(--flow);
	font-weight: 600;
}

.marker {
	text-align: center;
}

.marker-shut {
	font-size: clamp(3.5rem, 12vw, 6rem);
	line-height: 1;
	font-weight: 800;
	color: var(--flow);
	margin-bottom: 0.5rem;
}

.marker-dark {
	max-width: 46ch;
	margin-inline: auto;
	color: var(--field);
}

.marker-side {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

@media (max-width: 700px) {
	.shelf2::before {
		background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--fill, var(--wide, none));
	}

}
.shelf2-view {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
	grid-template-areas: "title offer" "text offer";
	align-content: start;
	gap: 0 2rem;
}

.shelf2 .niche {
	grid-area: title;
	color: #fff;
}

.shelf2-on {
	grid-area: text;
	color: #f2f4f8;
	max-width: 62ch;
}

.shelf2 .board {
	margin-bottom: 1.5rem;
}

.shelf2-cell {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	opacity: 0.75;
}

.record {
	grid-area: offer;
	background: var(--alt);
	border: 1px solid color-mix(in srgb, var(--flow) 40%, var(--cool));
	border-radius: var(--deep);
	box-shadow: var(--space);
	overflow: hidden;
	align-self: start;
}

.record .corner {
	width: 100%;
}

.record-image {
	display: grid;
	place-items: center;
	min-height: 74px;
	padding: 0.9rem 1.25rem;
	background: color-mix(in srgb, var(--flow) 22%, var(--alt));
	color: var(--plain);
	border-bottom: 3px solid var(--flow);
}

.record-image img {
	height: 42px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.record-large {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.25rem;
	text-align: center;
}

.record-meta {
	font-weight: 800;
	font-size: var(--thin);
	color: inherit;
	text-align: center;
}

.record-open {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--field);
	margin: 0;
}

.record-small {
	font-size: var(--base);
	font-weight: 800;
	line-height: 1.15;
	color: var(--plain);
	margin: 0;
	text-wrap: balance;
}

.record-flat {
	font-size: 0.8rem;
	color: var(--field);
	margin: 0;
}

.footer2 {
	padding-block: 1.5rem;
}

.core {
	border: 1px solid var(--cool);
	border-radius: var(--deep);
	background: var(--depth);
	padding: 0.5rem 1.1rem;
}

.core-side {
	cursor: pointer;
	font-weight: 700;
	color: var(--plain);
	padding-block: 0.6rem;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.core-side::-webkit-details-marker {
	display: none;
}

.core-side::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-inline-end: 2px solid var(--flow);
	border-bottom: 2px solid var(--flow);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.core[open] .core-side::before {
	transform: rotate(-135deg);
}

.core-plain {
	columns: 2;
	gap: 2rem;
	margin: 0 0 0.75rem;
	padding-inline-start: 1.2rem;
	font-size: 0.95rem;
}

.core-plain li {
	break-inside: avoid;
	margin-bottom: 0.3rem;
}

.core-plain a {
	color: var(--field);
	text-underline-offset: 3px;
}

.core-plain a:hover {
	color: var(--plain);
}

.leaf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.frame {
	display: flex;
	flex-direction: column;
	background: var(--depth);
	border: 1px solid var(--cool);
	border-radius: var(--deep);
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.frame:hover {
	border-color: var(--flow);
	transform: translateY(-2px);
}

.frame-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bold);
}

.frame-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.frame-last {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 0.85rem;
	margin-top: auto;
}

.frame-side {
	font-weight: 600;
	color: var(--plain);
	line-height: 1.3;
	margin: 0;
}

.frame .corner {
	width: 100%;
	padding-block: 0.5rem;
	font-size: 0.95rem;
}

.crest-plain {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stair {
	background: var(--alt);
	border: 1px solid var(--cool);
	border-radius: var(--deep);
	padding: 1.1rem 1.2rem;
}

.stair-stub {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}

.stair-flat {
	font-weight: 700;
	color: var(--plain);
}

.stair-first {
	color: var(--flow);
	font-weight: 700;
	white-space: nowrap;
}

.stair-line {
	margin: 0;
	color: var(--field);
}

.mesh-lead {
	display: grid;
	gap: 0.5rem;
	max-width: var(--stroke);
}

.mesh-cell {
	border: 1px solid var(--cool);
	border-radius: var(--warm);
	background: var(--depth);
	padding: 0 1.1rem;
}

.mesh-side {
	cursor: pointer;
	font-weight: 600;
	color: var(--plain);
	padding-block: 0.9rem;
	list-style: none;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.mesh-side::-webkit-details-marker {
	display: none;
}

.mesh-side::before {
	content: "+";
	color: var(--flow);
	font-weight: 700;
	line-height: 1.4;
	flex-shrink: 0;
}

.mesh-cell[open] .mesh-side::before {
	content: "−";
}

.mesh-line {
	color: var(--field);
	padding-bottom: 1rem;
}

.mesh-line > :first-child {
	margin-top: 0;
}

.mesh-line > :last-child {
	margin-bottom: 0;
}

.sheet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.5rem;
	border-radius: var(--deep);
	background: color-mix(in srgb, var(--flow) 12%, var(--bold));
	border: 1px solid color-mix(in srgb, var(--flow) 35%, var(--cool));
}

.sheet-first {
	margin: 0;
	font-size: var(--thin);
	font-weight: 800;
	color: var(--plain);
	text-wrap: balance;
}

.sheet-stub {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: var(--field);
}

.group {
	border-top: 1px solid var(--cool);
	background: var(--bold);
	color: var(--field);
	padding-block: 2rem 6rem;
}

.group-bold {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--cool);
}

.group-alt {
	margin-inline-end: auto;
	font-weight: 700;
	color: var(--plain);
}

.group-alt img {
	height: 32px;
	width: auto;
	object-fit: contain;
}

.group-first {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

.group-first:empty {
	display: none;
}

.group-first a {
	text-decoration: none;
}

.group-first a:hover {
	text-decoration: underline;
}

.group-open {
	width: min(100% - 2rem, var(--brand));
	margin-inline: auto;
	padding-top: 1.25rem;
	font-size: 0.85rem;
	display: grid;
	gap: 0.5rem;
}

.group-open p {
	margin: 0;
}

.group-figure {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.segment {
	display: inline-grid;
	place-items: center;
	min-width: 2.1rem;
	height: 2.1rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-weight: 800;
	font-size: 0.78rem;
}

.belt {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--flow) 14%, var(--shell));
	color: var(--main);
	border-top: 1px solid color-mix(in srgb, var(--flow) 45%, transparent);
}

.belt-less {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.belt-cell {
	font-weight: 800;
	color: var(--main);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.belt-small {
	font-size: 0.75rem;
	opacity: 0.7;
}

.belt .corner {
	margin-inline-start: auto;
	flex-shrink: 0;
}

@media (max-width: 960px) {
	.shelf2-view {
		grid-template-columns: 1fr;
		grid-template-areas: "title" "offer" "text";
		gap: 1.25rem;
	}

	.gutter {
		grid-template-columns: 1fr;
	}

	.gutter-open {
		max-width: 260px;
		margin-inline: auto;
	}

}
@media (max-width: 700px) {
	.core-plain {
		columns: 1;
	}

	.leaf {
		grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
		gap: 0.75rem;
	}

}
@media (max-width: 640px) {
	.district {
		position: static;
	}

	.district-narrow {
		flex-wrap: wrap;
		gap: 0.5rem 0.75rem;
		padding-block: 0.6rem;
	}

	.district-narrow {
		flex-wrap: nowrap;
	}

	.district-view .corner-edge, .widget, .ribbon {
		display: none;
	}

	.widget + .district-view {
		margin-inline-start: auto;
	}

	.post {
		display: block;
		order: 3;
	}

	.district-view {
		margin-inline-start: auto;
	}

	.district-view .corner {
		padding: 0.5rem 0.8rem;
		font-size: 0.9rem;
	}

	.tract {
		padding-block: 1.75rem;
	}

	.record-large, .sheet {
		padding: 1.15rem;
	}

	.sheet .corner-stub, .shelf2-on .corner-stub {
		width: 100%;
	}

	.belt-small {
		display: none;
	}

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

}
