@font-face {
	font-family: "Lite Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("./res/fonts/lite/inter-latin.woff2") format("woff2");
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	color-scheme: light;
	--canvas: hsl(0 0% 90%);
	--canvas-deep: hsl(232 5% 86%);
	--surface: hsl(0 0% 96%);
	--surface-raised: hsl(0 0% 99%);
	--surface-soft: hsl(232 5% 93%);
	--surface-inset: hsl(232 6% 89%);
	--text: hsl(232 10% 10%);
	--text-soft: hsl(232 8% 28%);
	--muted: hsl(232 7% 42%);
	--faint: hsl(232 7% 40%);
	--border: hsl(232 10% 8% / 0.09);
	--border-strong: hsl(232 10% 8% / 0.16);
	--highlight: hsl(0 0% 100% / 0.78);
	--shadow: hsl(232 20% 10% / 0.1);
	--shadow-deep: hsl(232 20% 10% / 0.16);
	--accent: hsl(232 58% 48%);
	--accent-bright: hsl(226 72% 58%);
	--accent-soft: hsl(230 72% 92%);
	--accent-text: hsl(232 64% 34%);
	--gold: hsl(42 68% 30%);
	--gold-soft: hsl(42 65% 89%);
	--danger: hsl(353 58% 43%);
	--danger-soft: hsl(353 65% 92%);
	--success: hsl(145 43% 35%);
	--success-soft: hsl(145 46% 89%);
	--code: hsl(232 18% 11%);
	--code-text: hsl(220 22% 92%);
	--mark: hsl(48 86% 69%);
	--on-accent: white;
	--footer-text: hsl(232 12% 28%);
	--footer-link: hsl(232 64% 34%);
	--footer-card-title: hsl(232 10% 10%);
	--footer-button-top: hsl(0 0% 98%);
	--footer-button-bottom: hsl(0 0% 94%);
	--footer-button-highlight: hsl(0 0% 100% / 0.54);
	--footer-button-outline: hsl(0 0% 0% / 0.08);
	--footer-button-text: hsl(232 10% 12%);
	--nav-surface: hsl(0 0% 98% / 0.84);
	--nav-inset: hsl(0 0% 100% / 0.78);
	--username-gold: hsl(51 100% 38.5%);
	--username-gold-light: hsl(50.94 100% 51.96%);
	--username-gold-deep: hsl(51 100% 38.5%);
	--username-purple: hsl(265 82.57% 57.25%);
	--username-purple-light: hsl(260.19 100% 79.02%);
	--username-purple-deep: hsl(260 100% 68.5%);
	--username-red: hsl(349.21 100% 65.1%);
	--username-red-light: hsl(0 100% 82.5%);
	--username-red-deep: hsl(0 91% 64.5%);
	--username-green: hsl(106.47 63% 35.5%);
	--username-green-light: hsl(106.47 40.16% 49.8%);
	--username-green-deep: hsl(106.47 63% 35.5%);
	--username-blue: hsl(225 68% 59.5%);
	--username-blue-light: hsl(225 80% 72.55%);
	--username-blue-deep: hsl(225 68% 59.5%);
	--username-white: hsl(232 10% 40%);
	--username-white-light: hsl(232 10% 40%);
	--username-white-deep: hsl(232 10% 40%);
	--panel-gradient: radial-gradient(
		120% 180% at 50% -80%,
		var(--surface-raised),
		var(--surface)
	);
	--ease: cubic-bezier(0.2, 0.75, 0.25, 1);
	--impact: cubic-bezier(0.18, 0.9, 0.2, 1);
	--fast: 160ms;
	--normal: 240ms;
	--slow: 320ms;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 18px;
	--page: 1280px;
}

@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--canvas: hsl(232 7% 3%);
		--canvas-deep: hsl(232 14% 2%);
		--surface: hsl(232 18% 7%);
		--surface-raised: hsl(232 17% 10%);
		--surface-soft: hsl(232 16% 12%);
		--surface-inset: hsl(232 15% 5%);
		--text: hsl(232 16% 96%);
		--text-soft: hsl(232 14% 80%);
		--muted: hsl(232 12% 66%);
		--faint: hsl(232 10% 68%);
		--border: hsl(232 20% 100% / 0.12);
		--border-strong: hsl(232 20% 100% / 0.2);
		--highlight: hsl(232 20% 100% / 0.08);
		--shadow: hsl(232 60% 0% / 0.35);
		--shadow-deep: hsl(232 60% 0% / 0.55);
		--accent: hsl(228 74% 68%);
		--accent-bright: hsl(224 88% 75%);
		--accent-soft: hsl(231 42% 18%);
		--accent-text: hsl(228 82% 78%);
		--gold: hsl(43 67% 66%);
		--gold-soft: hsl(42 40% 16%);
		--danger: hsl(353 76% 72%);
		--danger-soft: hsl(353 36% 15%);
		--success: hsl(145 50% 62%);
		--success-soft: hsl(145 35% 14%);
		--code: hsl(232 12% 2%);
		--code-text: hsl(220 22% 92%);
		--mark: hsl(45 58% 38%);
		--footer-text: hsl(232 12% 72%);
		--footer-link: hsl(228 72% 78%);
		--footer-card-title: hsl(232 100% 98%);
		--footer-button-top: hsl(232 15% 26% / 0.4);
		--footer-button-bottom: hsl(232 15% 16% / 0.4);
		--footer-button-highlight: hsl(0 0% 100% / 0.1);
		--footer-button-outline: hsl(0 0% 100% / 0.05);
		--footer-button-text: hsl(0 0% 100%);
		--nav-surface: hsl(232 18% 8% / 0.86);
		--nav-inset: hsl(232 20% 100% / 0.08);
		--username-gold: hsl(50.94 100% 51.96%);
		--username-gold-light: hsl(50.94 100% 82.5%);
		--username-gold-deep: hsl(51 100% 38.5%);
		--username-purple: hsl(260.19 100% 79.02%);
		--username-purple-light: hsl(260.19 100% 82.5%);
		--username-purple-deep: hsl(260 100% 68.5%);
		--username-red: hsl(0 100% 78.04%);
		--username-red-light: hsl(0 100% 82.5%);
		--username-red-deep: hsl(0 91% 64.5%);
		--username-green: hsl(106.47 40.16% 49.8%);
		--username-green-light: hsl(106.47 100% 82.5%);
		--username-green-deep: hsl(106.47 63% 35.5%);
		--username-blue: hsl(225 80% 72.55%);
		--username-blue-light: hsl(225 100% 82.5%);
		--username-blue-deep: hsl(225 68% 59.5%);
		--username-white: hsl(0 0% 100%);
		--username-white-light: hsl(0 0% 100%);
		--username-white-deep: hsl(0 0% 60%);
		--panel-gradient: radial-gradient(
			120% 180% at 50% -80%,
			var(--surface-raised),
			var(--surface)
		);
	}
}

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

html {
	min-width: 0;
	background: var(--canvas);
	font-size: 16px;
	text-size-adjust: 100%;
}

body {
	min-width: 0;
	margin: 0;
	overflow-x: hidden;
	background:
		linear-gradient(180deg, transparent 0, var(--canvas) 520px),
		var(--canvas);
	color: var(--text);
	font-family:
		"Lite Inter", Inter, ui-sans-serif, system-ui, -apple-system,
		BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	letter-spacing: 0.01125rem;
	overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
	color: inherit;
	font: inherit;
}

button,
input,
select,
summary,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: var(--accent-text);
	text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition:
		color var(--fast) var(--ease),
		filter var(--fast) var(--ease),
		text-decoration-color var(--fast) var(--ease);
}

a:hover {
	color: var(--accent);
	text-decoration-color: currentColor;
}

a:active {
	filter: brightness(1.18);
}

button,
summary {
	cursor: pointer;
}

img,
video {
	display: block;
	max-width: 100%;
}

figure,
blockquote {
	margin-inline: 0;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--text);
	font-weight: 650;
	line-height: 1.28;
	text-wrap: balance;
}

h1 {
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

h2 {
	font-size: 1.375rem;
}

h3 {
	font-size: 1.05rem;
}

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

:focus-visible {
	border-radius: 3px;
	outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
	outline-offset: 3px;
}

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.skip-link {
	z-index: 100;
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.65rem 0.9rem;
	transform: translateY(-180%);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-raised);
	box-shadow: 0 8px 24px var(--shadow-deep);
	color: var(--text);
	font-weight: 700;
	transition: transform var(--fast) var(--impact);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-hero {
	position: relative;
	height: 232px;
	overflow: hidden;
	background: var(--canvas);
}

.site-hero__inner {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: min(var(--page), calc(100% - 16px));
	height: 100%;
	margin: 0 auto;
	padding-top: 12px;
}

.site-brand {
	display: block;
	width: min(244px, calc(100vw - 56px));
	color: inherit;
	text-decoration: none;
}

.site-brand img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 8px 20px hsl(232 50% 0% / 0.28));
	transition:
		filter var(--normal) var(--ease),
		transform var(--normal) var(--impact);
}

.site-brand:hover img {
	filter:
		brightness(1.14)
		drop-shadow(0 10px 24px hsl(232 50% 0% / 0.34));
	transform: translateY(-2px);
}

.site-brand:active img {
	filter: brightness(1.28);
	transform: translateY(0) scale(0.995);
}

.site-navigation-wrap {
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
}

.site-navigation {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	backdrop-filter: blur(8px);
	box-shadow:
		inset 0 0 6px var(--nav-inset),
		0 0 8px var(--shadow);
	isolation: isolate;
}

.site-navigation::before {
	z-index: -1;
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		120% 560% at 50% 0%,
		var(--nav-surface) 0%,
		color-mix(in srgb, var(--nav-surface) 92%, var(--canvas) 8%) 100%
	);
	content: "";
	opacity: 0.96;
}

.site-navigation__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.site-navigation__links a {
	display: flex;
	position: relative;
	align-items: center;
	height: 36px;
	padding: 0 12px;
	gap: 10px;
	border-radius: var(--radius-sm);
	color: var(--text-soft);
	font-size: 1rem;
	font-weight: 650;
	line-height: 24px;
	isolation: isolate;
	text-decoration: none;
}

.site-navigation__links a::before {
	z-index: -1;
	position: absolute;
	inset: 0;
	transform: scale(0.93);
	border-radius: inherit;
	background: var(--surface-raised);
	content: "";
	opacity: 0;
	transition:
		opacity var(--normal) var(--impact),
		transform var(--normal) var(--impact);
}

.site-navigation__links a:hover,
.site-navigation__links a.is-active {
	color: var(--text);
}

.site-navigation__links a:hover::before {
	transform: scale(1);
	opacity: 1;
}

.site-navigation__links svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.25;
}

.site-navigation__indicator {
	position: absolute;
	bottom: -9px;
	left: 10px;
	width: calc(100% - 20px);
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		hsl(232 70% 50%),
		hsl(232 95% 75%),
		hsl(232 70% 50%)
	);
	box-shadow:
		0 -2px 22px hsl(232 95% 58% / 0.4),
		0 -2px 10px hsl(232 95% 58% / 0.4);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.45rem 0.85rem;
	gap: 0.4rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-raised);
	box-shadow: inset 0 1px var(--highlight);
	color: var(--text);
	font-size: 0.825rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background var(--fast) var(--ease),
		border-color var(--fast) var(--ease),
		box-shadow var(--fast) var(--ease),
		color var(--fast) var(--ease),
		filter var(--fast) var(--ease),
		transform var(--normal) var(--impact);
}

.button--primary:hover {
	background: var(--accent-bright);
	color: var(--on-accent);
	filter: brightness(1.04);
	transform: translateY(-1px);
}

.button:active {
	transform: translateY(0) scale(0.985);
}

.button--primary {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}

.button--quiet {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: var(--muted);
}

.page-shell {
	z-index: 1;
	position: relative;
	width: min(var(--page), calc(100% - 16px));
	min-height: 28rem;
	margin: 0 auto;
	padding-top: 40px;
}

.breadcrumbs {
	margin-bottom: 28px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	gap: 0.45rem;
	list-style: none;
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--muted);
	font-size: 0.74rem;
}

.breadcrumbs li:not(:last-child)::after {
	color: var(--faint);
	content: "/";
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--text);
}

.lite-shell--default .breadcrumbs li,
.lite-shell--default .breadcrumbs a,
.lite-shell--default .thread-intro__meta p {
	color: var(--text-soft);
}

.lite-shell--default .breadcrumbs li {
	font-weight: 600;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 30px;
}

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

.content-sidebar {
	display: grid;
	position: sticky;
	top: 24px;
	min-width: 0;
	gap: 24px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	gap: 0.35rem;
	color: var(--muted);
	font-size: 0.74rem;
	line-height: 1.45;
}

.entry-labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 0.25rem;
	gap: 0.35rem;
}

@keyframes username-gradient-shift {
	from {
		background-position: 0 50%;
	}

	to {
		background-position: 200px 50%;
	}
}

.username {
	display: inline;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: break-word;
}

.username__text {
	display: inline-block;
	vertical-align: baseline;
}

.username[class*="username--"] .username__text {
	position: relative;
	z-index: 0;
	background-image: linear-gradient(
		to right,
		var(--username-role) 0%,
		var(--username-role-light) 35%,
		var(--username-role-deep) 70%,
		var(--username-role) 100%
	);
	background-position: 0 50%;
	background-repeat: repeat;
	background-size: 200px 100%;
	background-clip: text;
	color: var(--username-role);
	isolation: isolate;
	animation: username-gradient-shift 1.65s linear infinite;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.username[class*="username--"] .username__text::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	display: block;
	overflow: visible;
	background: inherit;
	background-clip: text;
	content: attr(data-text);
	filter: blur(4px) brightness(1.1);
	font: inherit;
	line-height: inherit;
	opacity: 0.6;
	pointer-events: none;
	white-space: inherit;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.username--hp-zevios,
.username--hps-pythia,
.username--priesthood {
	--username-role: var(--username-gold);
	--username-role-light: var(--username-gold-light);
	--username-role-deep: var(--username-gold-deep);
}

.username--hps-lydia {
	--username-role: var(--username-purple);
	--username-role-light: var(--username-purple-light);
	--username-role-deep: var(--username-purple-deep);
}

.username--priest,
.username--novice-priest {
	--username-role: var(--username-red);
	--username-role-light: var(--username-red-light);
	--username-role-deep: var(--username-red-deep);
}

.username--head-guardian,
.username--supreme-guardianship {
	--username-role: var(--username-green);
	--username-role-light: var(--username-green-light);
	--username-role-deep: var(--username-green-deep);
}

.username--temple-guardianship {
	--username-role: var(--username-blue);
	--username-role-light: var(--username-blue-light);
	--username-role-deep: var(--username-blue-deep);
}

.username--novice-guardianship {
	--username-role: var(--username-white);
	--username-role-light: var(--username-white-light);
	--username-role-deep: var(--username-white-deep);
}

.username--ai-agent .username__text {
	--username-role: var(--username-red);
	--username-role-light: var(--username-gold);
	--username-role-deep: var(--username-blue);
	background-image: linear-gradient(
		to right,
		var(--username-role) 0%,
		var(--username-role-light) 34%,
		var(--username-role-deep) 68%,
		var(--username-role) 100%
	);
}

.entry-kind,
.prefix,
.state-badge,
.user-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.16rem 0.42rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface-soft);
	color: var(--muted);
	font-size: 0.65rem;
	font-weight: 720;
	line-height: 1.25;
	vertical-align: middle;
}

.prefix {
	margin-right: 0.35rem;
	border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
	background: var(--gold-soft);
	color: var(--gold);
}


.state-badge {
	color: var(--danger);
}

.avatar {
	flex: 0 0 auto;
	overflow: hidden;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: var(--surface-inset);
	object-fit: cover;
}

.avatar--fallback {
	display: grid;
	place-items: center;
	color: var(--accent-text);
	font-weight: 750;
}

.avatar--small {
	width: 28px;
	height: 28px;
	font-size: 0.72rem;
}

.avatar--medium {
	width: 44px;
	height: 44px;
}

.avatar--large {
	width: 72px;
	height: 72px;
}

.avatar--post {
	width: 100px;
	height: 100px;
}

.forum-flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
}

.empty-state {
	margin: 0;
	padding: 3rem 1.25rem;
	color: var(--muted);
	text-align: center;
}

.widget-frame {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	overflow: hidden;
	padding: 8px 8px 12px;
	gap: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 4px var(--border);
}

.widget-head {
	display: flex;
	position: relative;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
}

.widget-head__label {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin: 0;
	padding: 4px 12px;
	overflow: hidden;
	gap: 7px;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--surface-soft), var(--surface-inset));
	box-shadow:
		0 0 2px var(--shadow),
		inset 0 0 2px var(--border);
	color: var(--text);
	font-size: 15px;
	font-weight: 650;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.widget-head__label svg {
	width: 15px;
	height: 15px;
	stroke-width: 2.25;
}

.widget-head__action {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}

.widget-frame__content {
	width: 100%;
	padding: 0 6px;
}

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

.widget__value {
	margin-bottom: 0;
	color: var(--text) !important;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.widget__note {
	margin: 0.9rem 0 0;
	font-size: 0.78rem;
}

.widget__subtitle {
	margin: 0.8rem 0 0;
	color: var(--muted);
	font-size: 0.78rem;
}


.stat-list,
.detail-list {
	display: grid;
	margin: 0;
	gap: 0;
}

.stat-list > div,
.detail-list > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 0.52rem 0;
	gap: 1rem;
	border-bottom: 1px solid var(--border);
}

.stat-list > div:last-child,
.detail-list > div:last-child {
	border-bottom: 0;
}

.stat-list dt,
.detail-list dt {
	color: var(--muted);
	font-size: 0.74rem;
}

.stat-list dd,
.detail-list dd {
	margin: 0;
	color: var(--text);
	font-size: 0.8rem;
	font-weight: 700;
	text-align: right;
}

.widget-list,
.moderator-list {
	display: grid;
	margin: 0;
	padding: 0;
	gap: 0;
	list-style: none;
}

.widget-list li {
	display: grid;
	padding: 0.72rem 0;
	gap: 0.22rem;
	border-bottom: 1px solid var(--border);
}

.widget-list li:last-child {
	border-bottom: 0;
}

.widget-list a {
	font-size: 0.82rem;
	font-weight: 620;
}

.widget-list li > span {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	color: var(--muted);
	font-size: 0.7rem;
}

.moderator-list {
	gap: 0.7rem;
}

.moderator-list li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.82rem;
}


.avatar-stack {
	display: flex;
	align-items: center;
	margin-top: 1rem;
	padding-left: 0.35rem;
}

.avatar-stack .avatar {
	margin-left: -0.35rem;
	box-shadow: 0 0 0 2px var(--surface);
}

.avatar-stack > span {
	margin-left: 0.5rem;
	color: var(--muted);
	font-size: 0.7rem;
}

.destination-marker {
	display: inline-flex;
	align-items: center;
	margin-left: 0.35em;
	gap: 0.18em;
	color: var(--muted);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.destination-marker svg {
	width: 0.8em;
	height: 0.8em;
	stroke-width: 2;
}

.schedule-card {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	min-height: 116px;
	padding: 18px 22px;
	gap: 18px;
	border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
	border-radius: var(--radius-md);
	background:
		radial-gradient(
			circle at 75% 0,
			color-mix(in srgb, var(--accent) 28%, transparent),
			transparent 44%
		),
		var(--accent-soft);
	box-shadow: 0 10px 28px var(--shadow);
}

.schedule-card__mark {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 1.4rem;
}

.schedule-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.schedule-card h1 {
	margin: 0.15rem 0 0.3rem;
	font-size: 1.2rem;
}

.announcements {
	margin-top: 0;
}

.announcement-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.announcement {
	display: flex;
	position: relative;
	flex-direction: column;
	min-width: 0;
	min-height: 256px;
	padding: 20px;
	overflow: hidden;
	border-radius: var(--radius-md);
	box-shadow: 0 0 8px var(--shadow);
	isolation: isolate;
	transition:
		filter var(--fast) var(--ease),
		box-shadow var(--fast) var(--ease);
}

.announcement::before,
.announcement::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	content: "";
	pointer-events: none;
}

.announcement::before {
	z-index: 1;
	background:
		radial-gradient(
			92% 120% at 50% 0%,
			color-mix(in srgb, var(--surface-raised) 0%, transparent) 0%,
			color-mix(in srgb, var(--surface-raised) 30%, transparent) 44%,
			transparent 74%
		),
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--surface-raised) 8%, transparent),
			color-mix(in srgb, var(--surface-raised) 24%, transparent) 48%,
			color-mix(in srgb, var(--surface) 90%, transparent)
		);
}

.announcement::after {
	z-index: 5;
	box-shadow:
		inset 0 0 6px var(--border),
		inset 0 0 1px var(--border-strong);
}

.announcement:hover {
	filter: brightness(1.08);
}

.announcement.is-featured {
	grid-column: 1 / -1;
}

.announcement__link {
	z-index: 3;
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.announcement__link .destination-marker {
	display: none;
}

.announcement__cover,
.announcement__cover img {
	z-index: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	inset: 0;
}

.announcement__cover {
	overflow: hidden;
	border-radius: inherit;
}

.announcement__cover img {
	object-fit: cover;
	transition:
		filter var(--fast) var(--ease),
		transform var(--slow) var(--impact);
}

.announcement:hover .announcement__cover img {
	transform: scale(1.025);
}

.announcement__section {
	display: flex;
	z-index: 4;
	position: relative;
	align-items: flex-end;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	margin-top: auto;
	pointer-events: none;
}

.announcement__copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	gap: 6px;
}

.announcement__copy h2,
.announcement__copy h3 {
	max-width: 100%;
	margin: 0;
	color: var(--text);
	font-size: 1.375rem;
	font-weight: 650;
	line-height: 32px;
}

.announcement__copy p {
	max-width: 100%;
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 500;
	line-height: 24px;
}

.content-layout--home {
	margin-top: 64px;
}

.page-shell > .content-layout--home:first-child {
	margin-top: 0;
}


.overview-panel {
	margin-bottom: 14px;
	background: radial-gradient(
		ellipse at 50% 0%,
		var(--surface-inset) 0%,
		var(--surface) 40%
	);
}

.overview-panel + .category-list,
.category-panel + .category-panel {
	margin-top: 32px;
}

.overview-panel__entries {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0 6px;
	gap: 16px;
}

.overview-row {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	min-width: 0;
	gap: 16px;
}

.overview-row:not(:last-child)::after {
	width: 100%;
	height: 1px;
	background: var(--border);
	content: "";
}

.overview-row__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	width: 100%;
	min-width: 0;
	gap: 24px;
}

.overview-row__sent {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	gap: 14px;
}

.overview-row__sent > .avatar {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin-top: 2px;
}

.overview-row__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 4px;
}

.overview-row.is-unread h3 a {
	color: var(--accent-text);
	font-weight: 700;
}

.overview-row h3 {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 24px;
}

.overview-row h3 a {
	color: var(--text);
	text-decoration: none;
}

.overview-row .entry-meta,
.thread-row .entry-meta {
	flex-wrap: nowrap;
	min-width: 0;
	overflow: hidden;
	gap: 7px;
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 24px;
	white-space: nowrap;
}

.overview-row__latest {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	min-width: 0;
	gap: 5px;
	font-size: 0.9rem;
	line-height: 20px;
}

.overview-row__replier {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	font-weight: 650;
}

.overview-row__replier .avatar {
	width: 17px;
	height: 17px;
}

.category-list {
	margin-top: 32px;
}

.category-panel {
	display: flex;
	position: relative;
	flex-direction: column;
	width: 100%;
	padding: 124px 8px 8px;
	overflow: hidden;
	gap: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 4px var(--border);
}

.category-panel__wallpaper {
	position: absolute;
	height: 200px;
	inset: 0 0 auto;
	overflow: hidden;
	background: radial-gradient(
		ellipse at 50% 0%,
		var(--canvas) 0%,
		var(--surface) 74%
	);
	pointer-events: none;
}

.category-panel__wallpaper picture,
.category-panel__wallpaper img,
.category-panel__veil {
	position: absolute;
	width: 100%;
	height: 100%;
	inset: 0;
}

.category-panel__wallpaper img {
	object-fit: cover;
}

.category-panel__veil {
	background: linear-gradient(180deg, transparent, var(--surface));
}

.category-panel__head {
	display: flex;
	z-index: 1;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-width: 0;
	padding: 0 16px;
	gap: 6px;
}

.category-panel__head h2 {
	width: fit-content;
	max-width: 100%;
	margin: 0;
	font-size: 1.125rem;
	line-height: 22px;
	text-shadow: 0 0 6px var(--shadow);
}

.category-panel__head p {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 550;
	line-height: 28px;
	text-shadow: 0 0 4px var(--shadow);
}

.category-panel__nodes {
	display: flex;
	z-index: 1;
	flex-direction: column;
	width: 100%;
	padding: 16px;
	overflow: hidden;
	gap: 20px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		0 -8px 28px -8px color-mix(in srgb, var(--surface-raised) 82%, transparent),
		0 10px 34px -14px color-mix(in srgb, var(--accent) 8%, transparent),
		inset 0 0 3px var(--border);
}

.forum-node {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	gap: 12px;
}

.forum-node + .forum-node {
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.forum-node__section {
	display: flex;
	align-items: flex-start;
	min-width: 0;
	gap: 16px;
}

.forum-node__icon {
	display: inline-flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	overflow: hidden;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface-inset));
	box-shadow:
		0 0 2px var(--shadow),
		inset 0 0 3px var(--border-strong);
	color: var(--text-soft);
}

.forum-node__icon svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.forum-node__icon .forum-flag {
	width: 32px;
	height: 32px;
}

.forum-node__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	gap: 6px;
}

.forum-node__body h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 20px;
}

.forum-node__body h3 a {
	color: var(--text);
	text-decoration: none;
}

.forum-node__body > p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 550;
	line-height: 26px;
}

.forum-node__latest {
	display: flex;
	align-items: center;
	min-width: 0;
	padding-left: 48px;
	overflow: hidden;
	gap: 6px;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 24px;
	white-space: nowrap;
}

.forum-node__member {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	max-width: 50%;
	min-width: 0;
	gap: 8px;
}

.forum-node__member .avatar {
	width: 17px;
	height: 17px;
}

.forum-node__latest > a {
	display: inline-block;
	max-width: 50%;
	overflow: hidden;
	color: var(--text-soft);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.meta-dot {
	flex: 0 0 3px;
	width: 3px;
	height: 3px;
	border-radius: 999px;
	background: var(--muted);
}

.content-layout--forum {
	margin-top: 0;
}

.forum-breadcrumbs {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.pinned-threads {
	width: 100%;
	min-width: 0;
	margin-bottom: 28px;
}

.pinned-threads__inner {
	display: flex;
	position: relative;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	padding: 8px;
	gap: 12px;
	filter: drop-shadow(0 0 4px var(--shadow));
}

.pinned-threads__inner::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 120px;
	border-radius: var(--radius-lg);
	backdrop-filter: blur(3px);
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		inset 0 0 4px var(--border),
		inset 0 0 0 1px var(--border);
	content: "";
	pointer-events: none;
}

.pinned-threads__head {
	display: flex;
	z-index: 1;
	position: relative;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
	gap: 16px;
}

.pinned-threads__head h2 {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	min-height: 32px;
	margin: 0;
	padding: 4px 12px;
	gap: 7px;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--surface-soft), var(--surface-inset));
	box-shadow:
		0 0 2px var(--shadow),
		inset 0 0 2px var(--border);
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 24px;
	white-space: nowrap;
}

.pinned-threads__head svg {
	width: 15px;
	height: 15px;
}

.pinned-threads__list,
.forum-thread-list > .thread-list {
	display: flex;
	z-index: 1;
	position: relative;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	padding: 20px 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 4px var(--border);
}

.pinned-threads__list {
	border-radius: 12px 12px var(--radius-lg) var(--radius-lg);
}

.forum-thread-list {
	width: 100%;
	min-width: 0;
}

.thread-row {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	align-items: center;
	width: 100%;
	min-width: 0;
	gap: 14px;
}

.thread-row:not(:last-child) {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.thread-row.is-unread h2 a,
.thread-row.is-unread h3 a {
	color: var(--accent-text);
	font-weight: 700;
}

.thread-row__avatar {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	width: 32px;
	padding-top: 2px;
}

.thread-row__body {
	display: flex;
	grid-column: 2;
	grid-row: 1;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	gap: 4px;
}

.thread-row__body h2,
.thread-row__body h3 {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 24px;
}

.thread-row__body h2 a,
.thread-row__body h3 a {
	color: var(--text);
	text-decoration: none;
}

.thread-row__latest {
	display: flex;
	grid-column: 3;
	grid-row: 1;
	align-self: center;
	flex-direction: column;
	align-items: flex-end;
	min-width: 168px;
	gap: 4px;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 24px;
	text-align: right;
}

.thread-row__latest > span {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.thread-row__latest .avatar {
	width: 17px;
	height: 17px;
	font-size: 0.55rem;
}

.forum-overview-card {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	min-height: 168px;
	padding: 26px 8px 22px;
	overflow: hidden;
	gap: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(12px);
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	box-shadow: 0 0 8px var(--shadow);
	isolation: isolate;
	text-align: center;
}

.forum-overview-card__mark {
	display: inline-flex;
	position: relative;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	background: linear-gradient(180deg, var(--surface-raised), var(--surface-inset));
	box-shadow:
		0 0 0 14px color-mix(in srgb, var(--accent) 4%, transparent),
		0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent),
		0 0 4px var(--shadow);
	color: var(--accent-text);
}

.forum-overview-card__mark::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow:
		inset 0 0 7px var(--highlight),
		inset 0 0 1px var(--border-strong);
	content: "";
	pointer-events: none;
}

.forum-overview-card__mark svg {
	z-index: 1;
	width: 26px;
	height: 26px;
	stroke-width: 1.9;
}

.forum-overview-card__mark .forum-flag {
	width: 52px;
	height: 52px;
}

.forum-overview-card__eyebrow {
	display: none;
	margin: 0;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.forum-overview-card__title {
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: var(--text);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 32px;
	text-shadow: 0 -2px 12px var(--highlight);
	text-wrap: balance;
}

.forum-overview-card__description {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.thread-intro {
	display: grid;
	place-items: center;
	max-width: 880px;
	margin: 0 auto 24px;
	text-align: center;
}

.thread-intro__title > div:first-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.thread-intro h1 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	font-weight: 400;
	line-height: 36px;
}

.thread-intro__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.85rem;
	gap: 0.55rem;
}

.thread-intro__meta p {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	gap: 0.35rem;
	color: var(--muted);
	font-size: 0.72rem;
}

.thread-notices {
	display: grid;
	max-width: 960px;
	margin: 0 auto 18px;
	gap: 8px;
}

.thread-return {
	display: flex;
	justify-content: center;
	margin: -8px auto 18px;
}

.thread-return a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		0 0 4px var(--shadow),
		inset 0 2px 4px var(--highlight);
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 650;
	text-decoration: none;
}

.thread-return a:hover {
	filter: brightness(0.9);
}

.state-notice {
	margin: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--border));
	border-radius: var(--radius-sm);
	background: var(--gold-soft);
	color: var(--text-soft);
	font-size: 0.76rem;
}

.state-notice--danger {
	border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
	background: var(--danger-soft);
	color: var(--danger);
}

.state-notice--link {
	display: block;
	color: var(--accent-text);
	font-weight: 700;
	text-decoration: none;
}

.content-layout--thread {
	grid-template-columns: minmax(0, 1fr);
	margin-top: 24px;
}

.content-layout--thread .thread-sidebar {
	position: static;
	grid-template-columns: minmax(0, 1fr);
}

.post-list {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 20px;
}

.post-list--first {
	margin-bottom: 20px;
}

.post-stream {
	min-width: 0;
}

.post-stream > .post-list {
	padding: 0;
}

.post {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	align-items: stretch;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 4px var(--border);
}

.post__author {
	display: flex;
	align-items: stretch;
	align-self: stretch;
	justify-content: flex-start;
	width: max-content;
	min-width: 0;
	padding: 8px 4px 8px 8px;
	text-align: center;
}

.post__author-card {
	display: flex;
	position: relative;
	flex: 1 1 196px;
	flex-direction: column;
	align-items: center;
	width: 196px;
	max-width: 196px;
	min-height: 100%;
	padding: 16px 14px;
	overflow: hidden;
	gap: 20px;
	border-radius: 12px;
	background:
		radial-gradient(
			circle at 50% 0,
			color-mix(in srgb, var(--accent) 13%, transparent),
			transparent 48%
		),
		linear-gradient(180deg, var(--surface-soft), var(--surface-inset));
	box-shadow:
		0 0 4px var(--shadow),
		inset 0 0 0 1px var(--border),
		inset 0 0 4px var(--highlight);
}

.post__author-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-width: 0;
	gap: 16px;
}

.post__author .avatar {
	width: 100px;
	height: 100px;
	box-shadow: 0 0 4px var(--shadow);
}

.post__author-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: 2px;
}

.post__username {
	max-width: 100%;
	font-size: 1rem;
	font-weight: 650;
	line-height: 26px;
}

.post__author-copy > span:not(.post__username) {
	color: var(--text-soft);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 24px;
}

.post__author-card > dl {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	gap: 6px;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 20px;
}

.post__author-card > dl > div {
	display: flex;
	justify-content: space-between;
	min-width: 0;
	gap: 10px;
}

.post__author dt {
	color: var(--muted);
}

.post__author dd {
	margin: 0;
	font-weight: 700;
}

.badge-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: min(100%, 156px);
	gap: 12px;
}

.user-badge {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	color: transparent;
	font-size: 0;
}

.user-badge img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.post__main {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	min-height: 100%;
	padding: 16px 20px 20px 16px;
	overflow: hidden;
	gap: 8px;
}

.post__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 24px;
	gap: 16px;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 600;
	line-height: 24px;
}

.post__header > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.post__mobile-identity {
	display: none;
}

.post__number {
	color: var(--muted);
	text-decoration: none;
}

.post__content {
	flex: 0 1 auto;
	min-height: 96px;
	margin-bottom: auto;
	padding: 10px 4px 0 0;
	color: var(--text);
	font-size: 1rem;
	line-height: 28px;
}

.post__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding: 12px 4px 0 0;
	gap: 0.75rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.75rem;
}

.nested-replies {
	display: grid;
	margin-top: 8px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--surface-soft);
}

.post--reply {
	grid-template-columns: 32px minmax(0, 1fr);
	overflow: visible;
	border: 0;
	border-radius: 0;
	padding: 16px 20px 20px 16px;
	gap: 14px;
	background: var(--surface-soft);
	box-shadow: none;
}

.post--reply + .post--reply {
	border-top: 1px solid var(--border);
}

.post--reply .post__author {
	align-self: start;
	width: 32px;
	padding: 2px 0 0;
	background: transparent;
}

.post--reply .post__author-card {
	display: block;
	flex: 0 0 32px;
	width: 32px;
	max-width: 32px;
	min-height: 0;
	padding: 0;
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

.post--reply .post__author-identity {
	display: block;
}

.post--reply .post__author .avatar {
	width: 32px;
	height: 32px;
}

.post--reply .post__author-copy,
.post--reply .post__author-card > dl,
.post--reply .badge-list {
	display: none;
}

.post--reply .post__main {
	overflow: hidden;
	padding: 0;
	gap: 4px;
	border: 0;
	background: transparent;
}

.post--reply .post__header {
	align-items: center;
	font-size: 0.875rem;
}

.post--reply .post__mobile-identity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text);
	font-size: 1rem;
	font-weight: 700;
}

.post--reply .post__content {
	min-height: 0;
	padding: 4px 0 0;
	font-size: 1rem;
	line-height: 28px;
}

.post--reply .post__footer {
	min-height: 36px;
	padding-right: 0;
}

.post--reply .nested-replies {
	margin-right: 0;
}

.poll-card {
	max-width: 960px;
	margin: 0 auto 24px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--panel-gradient);
	box-shadow: 0 8px 26px var(--shadow);
}

.poll-card > header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.poll-card__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent-text);
	font-weight: 750;
}

.poll-card h2 {
	margin-bottom: 0.25rem;
	font-size: 1.05rem;
}

.poll-card p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.poll-options {
	display: grid;
	margin-top: 18px;
	gap: 12px;
}

.poll-option {
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
}

.poll-option.is-selected {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.poll-option > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.poll-option progress {
	width: 100%;
	height: 7px;
	margin: 0.6rem 0 0.2rem;
	accent-color: var(--accent);
}

.poll-option small {
	color: var(--muted);
}

.pagination {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 24px 0;
	overflow: hidden;
	user-select: none;
}

.pagination__viewport {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
}

.pagination__inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	gap: 10px;
}

.pagination__pages {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	margin: 0;
	padding: 0 2px;
	overflow: hidden;
	border-radius: 18px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		0 0 4px var(--shadow),
		inset 0 2px 4px var(--highlight),
		inset 0 0 0 1px var(--border);
	list-style: none;
}

.pagination__slot {
	display: inline-flex;
	align-items: center;
	height: 32px;
}

.pagination__move {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 12px;
	gap: 5px;
	overflow: hidden;
	border-radius: 18px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		0 0 4px var(--shadow),
		inset 0 2px 4px var(--highlight),
		inset 0 0 0 1px var(--border);
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 24px;
	text-decoration: none;
}

.pagination__move svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.25;
}

.pagination__page,
.pagination__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 12px;
	color: var(--text-soft);
	font-size: 1rem;
	font-weight: 650;
	line-height: 24px;
	text-decoration: none;
	transition:
		background var(--fast) var(--ease),
		color var(--fast) var(--ease),
		filter var(--fast) var(--ease);
}

.pagination a:hover {
	color: var(--text);
	filter: brightness(0.9);
}

.pagination__page.is-current {
	background: var(--accent-soft);
	color: var(--text);
	text-shadow: 0 0 6px var(--shadow);
}

.pagination .is-disabled {
	opacity: 0.42;
}

.pagination__gap {
	padding: 0;
}

.pagination__divider {
	width: 1px;
	height: 24px;
	background: var(--border);
}

.search-page {
	z-index: 2;
	position: relative;
	max-width: 960px;
	margin: 0 auto;
}

.search-back {
	margin-bottom: 38px;
	font-size: 1rem;
}

.search-back a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.search-back svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.25;
}

.search-form {
	position: relative;
	margin: 0 auto;
}

.search-form__query {
	display: flex;
	position: relative;
	align-items: center;
	width: min(666px, 100%);
	height: 52px;
	margin: 0 auto;
	padding: 0 12px 0 20px;
	overflow: hidden;
	border-radius: 999px;
	outline: 1px solid transparent;
	gap: 12px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		0 0 0 6px color-mix(in srgb, var(--surface-raised) 48%, transparent),
		0 0 4px var(--shadow),
		inset 0 -12px 22px var(--surface-inset),
		inset 0 0 8px var(--border),
		inset 0 2px 4px var(--highlight);
	transition:
		filter var(--fast) var(--ease),
		outline var(--fast) var(--ease),
		box-shadow var(--normal) var(--ease),
		width var(--slow) var(--impact);
}

.search-page.is-active .search-form__query {
	width: 100%;
}

.search-form__query:focus-within {
	width: 100%;
	outline-color: var(--accent);
	box-shadow:
		0 0 8px color-mix(in srgb, var(--accent) 44%, transparent),
		0 0 4px var(--shadow),
		inset 0 -12px 22px var(--surface-inset),
		inset 0 0 8px var(--border),
		inset 0 2px 4px var(--highlight);
	filter: brightness(1.04);
}

.search-form__query-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	color: var(--muted);
	stroke-width: 2.25;
}

.search-form__query label {
	flex: 1 1 auto;
	min-width: 0;
}

.search-form__query input {
	width: 100%;
	height: 52px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 24px;
}

.search-form__query input::placeholder {
	color: var(--faint);
	font-weight: 700;
	opacity: 1;
}

.search-form__query button {
	display: inline-flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	transition:
		filter var(--fast) var(--ease),
		transform var(--normal) var(--impact);
}

.search-form__query button svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.25;
}

.search-form__query button:hover {
	filter: brightness(1.25);
	transform: scale(1.02);
}

.search-form__query button:active {
	transform: scale(0.98);
}

.search-form__filters {
	width: 100%;
	margin-top: 48px;
	border: 0;
	background: transparent;
}

.search-form__filters[open] {
	margin-bottom: 36px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 8px var(--highlight);
}

.search-form__filters > summary,
.filter-groups summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 36px;
	padding: 0 14px 0 12px;
	gap: 1rem;
	color: var(--text-soft);
	font-size: 0.875rem;
	font-weight: 700;
	list-style: none;
}

.search-form__filters:not([open]) > summary {
	width: fit-content;
	margin-left: auto;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--surface-raised), var(--surface));
	box-shadow:
		0 0 0 6px color-mix(in srgb, var(--surface-raised) 40%, transparent),
		0 0 4px var(--shadow),
		inset 0 -10px 18px var(--surface-inset),
		inset 0 0 8px var(--border),
		inset 0 2px 4px var(--highlight);
}

.search-form__filters[open] > summary {
	border-bottom: 1px solid var(--border);
}

.search-form__filters > summary > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.search-form__filters > summary svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.25;
}

.search-form__filters > summary::-webkit-details-marker,
.filter-groups summary::-webkit-details-marker {
	display: none;
}

.search-form__filters > summary::after,
.filter-groups summary::after {
	color: var(--muted);
	content: "+";
	font-size: 1rem;
	transition: transform var(--normal) var(--impact);
}

.search-form__filters[open] > summary::after,
.filter-groups details[open] summary::after {
	transform: rotate(45deg);
}

.search-form__filters summary small {
	color: var(--muted);
	font-weight: 500;
}

.search-filter-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 18px;
	gap: 18px;
}

.search-filter-grid fieldset,
.year-filter {
	min-width: 0;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
}

.search-filter-grid legend,
.year-filter legend {
	padding: 0 0.3rem;
	font-size: 0.72rem;
	font-weight: 720;
}

.check-row {
	display: flex;
	align-items: flex-start;
	min-height: 32px;
	gap: 0.55rem;
	color: var(--text-soft);
	font-size: 0.75rem;
}

.check-row input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 0.12rem;
	accent-color: var(--accent);
}

.field-stack {
	display: grid;
	margin-bottom: 0.75rem;
	gap: 0.3rem;
	color: var(--muted);
	font-size: 0.7rem;
}

.field-stack input,
.field-stack select {
	width: 100%;
	min-height: 38px;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-raised);
	color: var(--text);
}

.filter-groups,
.year-filter {
	margin: 0 18px 18px;
}

.filter-groups h3 {
	font-size: 0.8rem;
}

.filter-groups details {
	border-top: 1px solid var(--border);
}

.filter-groups details > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 10px 14px;
	gap: 0.35rem 1rem;
}

.year-filter > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.search-form__actions {
	padding: 0 18px 18px;
}

.warning-list {
	margin-top: 24px;
	padding: 12px 16px;
	border: 1px solid color-mix(in srgb, var(--danger) 42%, var(--border));
	border-radius: var(--radius-md);
	background: var(--danger-soft);
	color: var(--danger);
}

.warning-list p {
	margin: 0;
	font-size: 0.76rem;
}

.search-results {
	margin-top: -36px;
}

.search-results__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	min-height: 36px;
	margin-bottom: 12px;
	padding: 0 164px 0 20px;
	gap: 24px;
}

.search-results__header h2 {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 32px;
	text-shadow: 0 0 20px var(--shadow);
}

.search-results__header p {
	margin: 0;
	color: var(--muted);
	font-size: 0.78rem;
}

.active-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem;
}

.active-filters span {
	padding: 0.24rem 0.5rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-soft);
	color: var(--muted);
	font-size: 0.64rem;
}

.search-result-list {
	display: grid;
	gap: 24px;
	padding: 0 20px;
}

.search-result {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: flex-start;
	padding: 16px 20px 20px 16px;
	gap: 14px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 8px var(--highlight);
	transition:
		border-color var(--fast) var(--ease),
		box-shadow var(--normal) var(--ease);
}

.search-result:hover {
	border-color: var(--border-strong);
	box-shadow:
		0 0 10px var(--shadow-deep),
		inset 0 0 8px var(--highlight);
}

.search-result__identity,
.search-result__fallback {
	display: grid;
	align-items: flex-start;
	place-items: center;
	width: 32px;
	height: 32px;
	padding-top: 2px;
}

.search-result__fallback {
	border-radius: 50%;
	background: var(--surface-soft);
	color: var(--muted);
}

.search-result__fallback svg {
	width: 16px;
	height: 16px;
}

.search-result__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	gap: 8px;
}

.search-result__meta {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 8px;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 600;
	line-height: 24px;
}

.search-result h2 {
	margin: 0;
	color: var(--text);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 32px;
	overflow-wrap: anywhere;
}

.search-result h2 > a {
	display: inline;
	color: inherit;
	text-decoration: none;
}

.search-result__reference {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding: 4px 8px;
	gap: 6px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--surface-soft);
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 24px;
}

.search-result__event {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 6px;
	font-weight: 550;
	white-space: nowrap;
}

.search-result__event svg {
	width: 16px;
	height: 16px;
	color: var(--accent-text);
	stroke-width: 2.5;
}

.search-result__reference-divider {
	display: block;
	flex: 0 0 1px;
	width: 1px;
	height: 12px;
	margin: 0 3px;
	border-radius: 999px;
	background: var(--border-strong);
}

.search-result__reference-meta {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	gap: 6px;
	overflow: hidden;
	white-space: nowrap;
}

.search-result__reference-meta > a,
.search-result__reference-meta > strong {
	flex: 0 999 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--accent-text);
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-result__rule {
	width: 100%;
	height: 1px;
	margin-bottom: 4px;
	border-radius: 999px;
	background: var(--border);
}

.search-result__excerpt {
	margin: 0;
	padding-right: 4px;
	color: var(--text);
	font-size: 1rem;
	line-height: 28px;
}

mark {
	padding: 0 0.08em;
	border-radius: 2px;
	background: var(--mark);
	color: inherit;
}

.site-footer {
	display: flex;
	position: relative;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	min-height: 264px;
	margin-top: 256px;
	padding: 0 0 24px;
	overflow: hidden;
	background: var(--canvas);
	isolation: isolate;
}


.site-footer__inner {
	display: flex;
	z-index: 1;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: min(var(--page), calc(100% - 16px));
	min-height: 240px;
	gap: 24px;
}

.site-footer__cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	width: 100%;
	margin: 0;
	padding: 0;
	gap: 24px;
	list-style: none;
}

.site-footer__card {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 132px;
	padding: 16px 12px;
	overflow: hidden;
	gap: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow:
		0 0 8px var(--shadow),
		inset 0 0 4px var(--border);
	color: var(--footer-card-title);
	isolation: isolate;
}

.site-footer__card-meta {
	display: flex;
	z-index: 1;
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-items: center;
	width: 100%;
	min-width: 0;
	gap: 4px;
	text-align: center;
}

.site-footer__card-meta p {
	max-width: 100%;
	margin: 0;
	color: var(--footer-card-title);
	font-size: 1.375rem;
	font-weight: 650;
	line-height: 32px;
	text-wrap: balance;
}

.site-footer__button {
	display: inline-flex;
	z-index: 1;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 32px;
	padding: 0 16px;
	gap: 6px;
	border-radius: 12px;
	backdrop-filter: blur(8px);
	background: linear-gradient(
		180deg,
		var(--footer-button-top),
		var(--footer-button-bottom)
	);
	box-shadow:
		inset 0 2px 4px var(--footer-button-highlight),
		inset 0 0 0 1px var(--footer-button-outline);
	color: var(--footer-button-text);
	font-size: 1rem;
	font-weight: 650;
	line-height: 24px;
	text-decoration: none;
}

.site-footer__button svg {
	width: 15px;
	height: 15px;
}

.site-footer__button:hover {
	color: var(--footer-button-text);
	filter: brightness(1.2);
}

.site-footer__copyright {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 0;
	gap: 0.55rem;
	padding: 56px 16px 0;
	color: var(--footer-text);
	font-size: 0.8125rem;
	font-weight: 650;
	line-height: 24px;
	text-align: center;
}

.site-footer__copyright a {
	color: var(--footer-link);
	font-weight: 750;
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, currentColor 44%, transparent);
	text-underline-offset: 3px;
}

.error-state {
	max-width: 680px;
	margin: 48px auto;
	padding: 42px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--panel-gradient);
	box-shadow: 0 12px 36px var(--shadow);
	text-align: center;
}

.error-state > p:first-child {
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 750;
}

.error-state .button-row {
	justify-content: center;
	margin-top: 24px;
}

.bb-content {
	max-width: 100%;
	color: var(--text-soft);
	line-height: 1.7;
	overflow-wrap: anywhere;
}

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

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

.bb-content p {
	margin: 0 0 1rem;
}

.bb-content h2,
.bb-content h3,
.bb-content h4,
.bb-content h5 {
	margin: 1.5rem 0 0.65rem;
}

.bb-content ul,
.bb-content ol {
	padding-left: 1.5rem;
}

.bb-content li + li {
	margin-top: 0.35rem;
}

.bb-content img,
.bb-content video {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

.bb-content a {
	word-break: break-word;
}

.bb-underline {
	text-decoration: underline;
}

.bb-color {
	color: inherit;
}

.bb-inline-spoiler {
	padding: 0 0.15em;
	border-bottom: 1px dotted var(--border-strong);
	border-radius: 2px;
	background: var(--surface-inset);
	color: var(--text);
}

.bb-mention {
	padding: 0.08rem 0.32rem;
	border-radius: 4px;
	background: var(--accent-soft);
	color: var(--accent-text);
	font-weight: 650;
}

.bb-mention--special {
	background: var(--gold-soft);
	color: var(--gold);
}

.bb-quote {
	margin: 1.25rem 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
}

.bb-quote > header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem 0.85rem;
	gap: 0.5rem;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 650;
}

.bb-quote > :not(header) {
	margin-inline: 0.9rem;
}

.bb-code,
.bb-raw {
	margin: 1.25rem 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--code);
	color: var(--code-text);
}

.bb-code figcaption {
	padding: 0.5rem 0.8rem;
	border-bottom: 1px solid hsl(0 0% 100% / 0.12);
	color: hsl(220 12% 70%);
	font-size: 0.7rem;
}

.bb-code pre,
.bb-raw {
	max-width: 100%;
	margin: 0;
	padding: 0.9rem;
	overflow: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.78rem;
	white-space: pre;
}

.bb-table-wrap {
	max-width: 100%;
	margin: 1.25rem 0;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.bb-table-wrap table {
	width: 100%;
	border-collapse: collapse;
}

.bb-table-wrap th,
.bb-table-wrap td {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--border);
	text-align: left;
}

.bb-table-wrap th {
	background: var(--surface-soft);
}

.bb-spoiler {
	margin: 1.25rem 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
}

.bb-spoiler summary {
	padding: 0.65rem 0.8rem;
	font-weight: 700;
}

.bb-spoiler > div {
	padding: 0 0.8rem 0.8rem;
}

.bb-indent {
	margin-left: 1.25rem;
	padding-left: 1rem;
	border-left: 2px solid var(--border-strong);
}

.bb-link-preview,
.bb-media-link {
	display: grid;
	margin: 1rem 0;
	padding: 0.8rem 0.9rem;
	gap: 0.2rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
	color: var(--text-soft);
	text-decoration: none;
}

.bb-link-preview span,
.bb-link-preview small,
.bb-media-link small {
	color: var(--muted);
	font-size: 0.68rem;
}

.bb-media-link {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
}

.bb-align--center {
	text-align: center;
}

.bb-align--right {
	text-align: right;
}

.bb-align--justify {
	text-align: justify;
}

.bb-media--center {
	margin-inline: auto;
}

.bb-media--left {
	margin-right: auto;
}

.bb-media--right {
	margin-left: auto;
}

.attachment-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1.25rem;
	gap: 12px;
}

.attachment {
	max-width: 100%;
}

.attachment--image,
.attachment--media {
	margin: 1rem 0;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
}

.attachment figcaption {
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 0.68rem;
}

.attachment audio,
.attachment video {
	width: 100%;
}

.attachment--file {
	display: flex;
	align-items: center;
	min-height: 64px;
	padding: 0.75rem;
	gap: 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
	text-decoration: none;
}

.attachment--file > span:last-child {
	display: grid;
}

.attachment--file small {
	color: var(--muted);
}

.attachment--missing {
	display: inline-block;
	padding: 0.5rem 0.65rem;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-sm);
	color: var(--muted);
}

@media (max-width: 1176px) {
	.site-footer__cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.site-footer__card {
		grid-column: span 2;
	}

	.site-footer__card:last-child:nth-child(odd) {
		grid-column: 2 / span 2;
	}
}

@media (max-width: 960px) {
	.content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.content-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 0;
	}

	.content-layout--thread .thread-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.forum-overview-card {
		grid-row: span 2;
	}

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

	.announcement.is-featured {
		grid-column: auto;
	}
}

@media (max-width: 760px) {
	.site-hero {
		height: 192px;
	}

	.site-hero__inner {
		padding-top: 6px;
	}

	.site-brand {
		width: min(198px, calc(100vw - 44px));
	}

	.site-navigation {
		height: 56px;
	}

	.page-shell {
		padding-top: 34px;
	}

	.breadcrumbs {
		margin-bottom: 22px;
	}

	.schedule-card {
		grid-template-columns: 44px minmax(0, 1fr);
	}

	.schedule-card__mark {
		width: 44px;
		height: 44px;
	}

	.schedule-card .button {
		grid-column: 1 / -1;
	}


	.announcement,
	.announcement.is-featured {
		min-height: 288px;
		padding: 16px;
	}

	.content-layout--home {
		margin-top: 64px;
	}

	.content-sidebar {
		grid-template-columns: 1fr;
		margin-top: 0;
	}

	.content-layout--thread .thread-sidebar {
		grid-template-columns: 1fr;
	}

	.forum-overview-card {
		grid-row: auto;
	}


	.overview-row__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.overview-row__latest {
		align-items: flex-start;
		padding-left: 46px;
	}

	.category-panel {
		padding-top: 112px;
	}

	.forum-node__latest {
		padding-left: 48px;
	}

		.thread-row {
			grid-template-columns: 32px minmax(0, 1fr);
			align-items: stretch;
			gap: 6px 14px;
		}

	.thread-row .entry-meta {
		flex-wrap: wrap;
		overflow: visible;
		white-space: normal;
	}

		.thread-row__latest {
			grid-column: 2;
			grid-row: 2;
			align-items: flex-start;
			min-width: 0;
			text-align: left;
		}

	.content-layout--forum .content-sidebar {
		margin-top: 0;
	}

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

		.post__author {
			align-items: stretch;
			width: 100%;
			padding: 8px;
			text-align: left;
		}

		.post__author-card {
			flex: 1 1 auto;
			flex-direction: row;
			align-items: center;
			width: 100%;
			max-width: none;
			min-height: 0;
			padding: 12px;
			gap: 14px;
		}

		.post__author-identity {
			flex-direction: row;
			align-items: center;
			width: auto;
			gap: 12px;
		}

		.post__author .avatar {
			flex: 0 0 72px;
			width: 72px;
			height: 72px;
		}

		.post__author-copy {
			align-items: flex-start;
			margin: 0;
		}

		.post__author-card > dl,
		.post__author .badge-list {
			display: none;
		}

		.post__main {
			min-height: 0;
			padding: 16px 16px 20px;
		}

	.post__mobile-identity {
		display: none;
	}

	.post--reply {
		grid-template-columns: 36px minmax(0, 1fr);
	}

		.post--reply .post__author {
			display: flex;
			width: 30px;
			padding: 6px 0;
		}

		.post--reply .post__author-card {
			display: block;
			flex: 0 0 30px;
			width: 30px;
			max-width: 30px;
			padding: 0;
		}

		.post--reply .post__author-identity {
			display: block;
		}

		.post--reply .post__author .avatar {
			width: 30px;
			height: 30px;
		}

		.post-stream > .post-list {
			padding: 0;
		}

		.search-page {
			padding-inline: 8px;
		}

	.search-filter-grid {
		grid-template-columns: 1fr;
	}

	.filter-groups details > div {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

		.search-results__header {
			display: grid;
			padding-right: 132px;
		}

		.active-filters {
			justify-content: flex-start;
		}

		.search-result-list {
			padding-inline: 8px;
		}

	.pagination__inner {
		flex-wrap: nowrap;
		gap: 4px;
	}

	.pagination__move {
		padding-inline: 8px;
		font-size: 0.8rem;
	}

	.pagination__page,
	.pagination__gap {
		min-width: 28px;
		padding-inline: 7px;
		font-size: 0.875rem;
	}
}

@media (max-width: 584px) {
	.site-footer__cards {
		grid-template-columns: 1fr;
	}

	.site-footer {
		margin-top: 56px;
	}


	.site-footer__card,
	.site-footer__card:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 0.94rem;
	}

	.site-navigation {
		padding-inline: 8px;
	}

	.page-shell {
		width: min(var(--page), calc(100% - 12px));
	}

	.announcement__copy h2,
	.announcement__copy h3 {
		font-size: 1.125rem;
		line-height: 26px;
	}

	.thread-row {
		padding-inline: 12px;
	}

	.thread-row__body h2,
	.thread-row__body h3 {
		font-size: 0.86rem;
	}

		.post__author {
			padding: 8px;
		}

		.post__author-card {
			padding: 10px;
			gap: 12px;
		}

		.post__author .avatar {
			flex-basis: 56px;
			width: 56px;
			height: 56px;
		}

		.post__main {
			padding-inline: 12px;
		}

		.nested-replies {
			margin-inline: 0;
		}

		.post--reply {
			grid-template-columns: 28px minmax(0, 1fr);
			padding: 16px 12px 20px;
			gap: 10px;
		}

		.post--reply .post__author,
		.post--reply .post__author-card {
			flex-basis: 28px;
			width: 28px;
			max-width: 28px;
		}

		.post--reply .post__author .avatar {
			width: 28px;
			height: 28px;
		}

		.post--reply .post__content {
			padding: 4px 0 0;
		}

	.search-form__query {
		padding-right: 8px;
		padding-left: 16px;
	}

	.search-form__query input {
		font-size: 1rem;
	}

	.search-form__filters summary small {
		display: none;
	}

	.search-results__header {
		padding-left: 8px;
	}

	.search-result {
		grid-template-columns: 28px minmax(0, 1fr);
		padding: 14px 12px 16px;
		gap: 10px;
	}

	.search-result__identity,
	.search-result__fallback,
	.search-result__identity .avatar {
		width: 28px;
		height: 28px;
	}

	.search-result h2 {
		font-size: 1.125rem;
		line-height: 26px;
	}

	.search-result__reference {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.search-result__reference-meta {
		flex-basis: calc(100% - 24px);
		flex-wrap: wrap;
		overflow: visible;
		white-space: normal;
	}

	.filter-groups details > div {
		grid-template-columns: 1fr;
	}

	.search-result {
		grid-template-columns: 34px minmax(0, 1fr);
		padding: 14px;
		gap: 10px;
	}

	.search-result .avatar,
	.search-result__fallback {
		width: 34px;
		height: 34px;
	}

	.attachment-list {
		grid-template-columns: 1fr;
	}
}


@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (prefers-contrast: more) {
	:root {
		--border: currentColor;
		--border-strong: currentColor;
	}

	a {
		text-decoration-thickness: 2px;
	}
}

@media (forced-colors: active) {
	.button,
	.pagination a,
	.pagination span,
	.state-badge {
		border: 1px solid ButtonText;
	}

	:focus-visible {
		outline-color: Highlight;
	}

	mark {
		background: Highlight;
		color: HighlightText;
	}
}

@media print {
	.site-hero,
	.site-footer,
	.search-form,
	.pagination,
	.button,
	.content-sidebar {
		display: none !important;
	}

	body,
	.page-shell {
		width: 100%;
		max-width: none;
		padding: 0;
		background: white;
		color: black;
	}

	.post,
	.overview-panel,
	.category-panel,
	.search-result {
		break-inside: avoid;
		box-shadow: none;
	}
}
