/*
 * BLST site styles: base, layout and shared components (nav, buttons, cards, forms, badges,
 * tables, toasts, modals, skeletons, footer, article blocks).
 * Load order on every page: tokens.css → site.css → pages.css (public pages) / admin.css (CMS + Beheer).
 * No inline styles anywhere (CSP); everything is a class.
 */

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-height) + var(--sp-4));
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

main {
	flex: 1 0 auto;
	display: block;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--sp-4);
	font-weight: 700;
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-3xl);
}

h2 {
	font-size: var(--fs-2xl);
}

h3 {
	font-size: var(--fs-lg);
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 var(--sp-4);
	text-wrap: pretty;
}

a {
	color: var(--gold);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}

a:hover {
	color: var(--gold-strong);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

hr {
	border: 0;
	height: 1px;
	background: var(--border);
	margin: var(--sp-7) 0;
}

::selection {
	background: rgba(245, 184, 61, 0.35);
	color: #fff;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--focus-ring);
	border-radius: var(--radius-sm);
}

code,
kbd {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: var(--sp-2);
	left: var(--sp-2);
	z-index: 1000;
	padding: var(--sp-2) var(--sp-4);
	background: var(--gold);
	color: #1a1204;
	border-radius: var(--radius-pill);
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
	transform: translateY(0);
	color: #1a1204;
}

html.no-scroll,
html.no-scroll body {
	overflow: hidden;
}

/* ---------- Layout helpers ---------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container-narrow {
	width: 100%;
	max-width: calc(var(--container-narrow) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(4rem, 10vw, 8rem);
	position: relative;
}

.section-sm {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-top {
	padding-top: clamp(2.5rem, 7vw, 5rem);
}

.stack > * + * {
	margin-top: var(--sp-4);
}

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	align-items: center;
}

.center {
	text-align: center;
}

.muted {
	color: var(--text-muted);
}

.small {
	font-size: var(--fs-sm);
}

.tabular {
	font-variant-numeric: tabular-nums;
}

/* ---------- Typography accents ---------- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0 0 var(--sp-4);
	font-family: var(--font-serif);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--gold);
}

.serif {
	font-family: var(--font-serif);
	letter-spacing: 0;
}

.text-gold {
	color: var(--gold);
}

.text-gradient {
	background: var(--gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.display {
	font-size: var(--fs-hero);
	line-height: 1;
	letter-spacing: -0.035em;
	font-weight: 800;
}

.headline {
	font-size: clamp(2.25rem, 5.5vw, 4.5rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 700;
}

.lead {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.5;
	color: var(--text-2);
	font-weight: 400;
}

.ornament {
	display: block;
	width: 200px;
	height: 20px;
	margin: var(--sp-5) auto;
	background: url("/assets/img/deco/ornament.svg") center / contain no-repeat;
	opacity: 0.85;
}

.page-head {
	text-align: center;
	padding-block: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2.5rem);
	position: relative;
}

.page-head .lead {
	max-width: 40rem;
	margin-inline: auto;
}

.page-head::before {
	content: "";
	position: absolute;
	inset: -40% 0 auto;
	height: 140%;
	background: radial-gradient(50% 60% at 50% 30%, rgba(245, 184, 61, 0.13), transparent 70%);
	pointer-events: none;
	z-index: -1;
}

/* ---------- Icons ---------- */

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	display: inline-block;
	vertical-align: -0.2em;
}

.icon-sm {
	width: 1em;
	height: 1em;
}

.icon-lg {
	width: 1.75rem;
	height: 1.75rem;
}

.game-icon {
	image-rendering: pixelated;
	width: 25px;
	height: 25px;
	object-fit: contain;
	flex: none;
	display: inline-block;
}

.game-icon-sm {
	width: 18px;
	height: 18px;
}

.game-icon-fallback {
	display: inline-grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border-radius: 7px;
	background: var(--gold-soft);
	color: var(--gold);
	font-family: var(--font-serif);
	font-size: 0.7rem;
	font-weight: 700;
	flex: none;
}

/* ---------- Buttons ---------- */

.btn {
	--btn-bg: var(--surface-2);
	--btn-fg: var(--text);
	--btn-border: var(--border-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 var(--sp-5);
	border: 1px solid var(--btn-border);
	border-radius: var(--radius-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.005em;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	transition: transform var(--dur-fast) var(--ease), background-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
	-webkit-tap-highlight-color: transparent;
}

.btn:hover {
	color: var(--btn-fg);
	border-color: rgba(255, 255, 255, 0.28);
	background: var(--surface-3);
}

.btn:active {
	transform: scale(0.97);
}

.btn:focus-visible {
	border-radius: var(--radius-pill);
}

.btn-primary {
	--btn-fg: #1a1204;
	--btn-border: transparent;
	background: var(--gold-gradient);
	box-shadow: 0 6px 24px rgba(245, 184, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
	background: var(--gold-gradient);
	border-color: transparent;
	box-shadow: 0 10px 36px rgba(245, 184, 61, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	filter: brightness(1.06);
}

.btn-secondary {
	--btn-bg: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
	--btn-bg: transparent;
	--btn-border: transparent;
	--btn-fg: var(--text-2);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: transparent;
	color: var(--text);
}

.btn-danger {
	--btn-bg: var(--rune-red-soft);
	--btn-fg: #ff8a8d;
	--btn-border: rgba(229, 72, 77, 0.4);
}

.btn-danger:hover {
	background: rgba(229, 72, 77, 0.24);
	color: #ffb1b3;
	border-color: rgba(229, 72, 77, 0.6);
}

.btn-discord {
	--btn-bg: #5865f2;
	--btn-fg: #fff;
	--btn-border: transparent;
}

.btn-discord:hover {
	background: #6b76f5;
	border-color: transparent;
}

.btn-sm {
	min-height: 34px;
	padding: 0 var(--sp-4);
	font-size: var(--fs-sm);
}

.btn-lg {
	min-height: 56px;
	padding: 0 var(--sp-6);
	font-size: var(--fs-md);
}

.btn-block {
	display: flex;
	width: 100%;
}

.btn-icon {
	padding: 0;
	width: 44px;
}

.btn-icon.btn-sm {
	width: 34px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	filter: none;
}

.btn[aria-busy="true"] {
	color: transparent;
	pointer-events: none;
}

.btn[aria-busy="true"]::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--btn-fg);
	border-right-color: transparent;
	animation: spin 0.7s linear infinite;
}

.btn[aria-busy="true"] > * {
	visibility: hidden;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.15em;
	font-weight: 500;
	font-size: var(--fs-md);
}

.link-arrow .icon {
	width: 1em;
	height: 1em;
	transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

/* Tooltip for "Coming soon" etc. (data-tooltip text) */
[data-tooltip] {
	position: relative;
}

[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	transform: translate(-50%, -4px);
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	background: var(--surface-3);
	border: 1px solid var(--border-strong);
	color: var(--text);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
	z-index: 60;
	box-shadow: var(--shadow);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Badges & pills ---------- */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.65em;
	border-radius: var(--radius-pill);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-2);
	border: 1px solid transparent;
	vertical-align: middle;
}

.badge-rank-owner {
	color: var(--rank-owner);
	background: rgba(255, 203, 92, 0.14);
	border-color: rgba(255, 203, 92, 0.35);
}

.badge-rank-admin {
	color: var(--rank-admin);
	background: rgba(255, 105, 97, 0.13);
	border-color: rgba(255, 105, 97, 0.35);
}

.badge-rank-moderator {
	color: var(--rank-moderator);
	background: rgba(138, 180, 255, 0.13);
	border-color: rgba(138, 180, 255, 0.35);
}

.badge-rank-player {
	color: var(--rank-player);
}

.badge-cat-update {
	color: var(--gold-strong);
	background: var(--gold-soft);
}

.badge-cat-event {
	color: #6ee38f;
	background: var(--green-soft);
}

.badge-cat-announcement {
	color: #7cb8ff;
	background: var(--blue-soft);
}

.badge-cat-dev-blog {
	color: #d7a6ff;
	background: rgba(191, 90, 242, 0.15);
}

.badge-cat-patch-notes {
	color: var(--parchment);
	background: rgba(232, 220, 192, 0.12);
}

.badge-success {
	color: #6ee38f;
	background: var(--green-soft);
}

.badge-warning {
	color: var(--orange);
	background: rgba(255, 159, 10, 0.14);
}

.badge-danger {
	color: #ff8a8d;
	background: var(--rune-red-soft);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 0.45rem 1rem;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border-strong);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--text-2);
}

.pill strong {
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-faint);
	position: relative;
	flex: none;
}

.live-dot.is-online {
	background: var(--green);
	box-shadow: 0 0 10px rgba(48, 209, 88, 0.8);
}

.live-dot.is-online::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--green);
	animation: ping 2s var(--ease-out) infinite;
}

.live-dot.is-offline {
	background: var(--rune-red);
}

.live-dot.is-maintenance {
	background: var(--orange);
	box-shadow: 0 0 10px rgba(255, 159, 10, 0.7);
}

@keyframes ping {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	80%,
	100% {
		transform: scale(2.8);
		opacity: 0;
	}
}

/* ---------- Site header / glass nav ---------- */

#site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav {
	position: relative;
	height: var(--nav-height);
	background: var(--glass);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav.is-scrolled {
	background: rgba(12, 13, 16, 0.82);
	border-bottom-color: var(--border);
}

.nav-inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: var(--sp-4);
}

.nav-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	color: var(--text);
	flex: none;
	border-radius: var(--radius-sm);
}

.nav-brand img {
	height: 34px;
	width: auto;
}

.nav-brand:hover {
	color: var(--text);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	height: 34px;
	padding: 0 0.85rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: 0;
	transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav-link:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-disabled {
	cursor: default;
	color: var(--text-muted);
}

.nav-link .icon {
	width: 1.1em;
	height: 1.1em;
}

.nav-cta {
	margin-inline: var(--sp-2);
}

.nav-cta .btn {
	min-height: 34px;
	padding: 0 1.05rem;
	font-size: var(--fs-sm);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex: none;
}

.nav-toggle {
	display: none;
}

.nav-play-mobile {
	display: none;
}

.account-menu {
	position: relative;
}

.account-trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	height: 36px;
	padding: 0 0.5rem 0 0.35rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border-strong);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	font-size: var(--fs-sm);
	font-weight: 600;
	max-width: 240px;
}

.account-trigger:hover {
	background: rgba(255, 255, 255, 0.1);
}

.account-trigger .avatar {
	width: 26px;
	height: 26px;
	font-size: 0.75rem;
}

.account-trigger .name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-trigger .icon {
	width: 1em;
	height: 1em;
	color: var(--text-muted);
	transition: transform var(--dur) var(--ease);
}

.account-trigger[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Narrow desktop: the full nav plus a long name and rank would overflow; the menu head still shows both. */
@media (min-width: 960px) and (max-width: 1199px) {
	.account-trigger .name,
	.account-trigger .badge {
		display: none;
	}
}

.avatar {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gold-gradient);
	color: #1a1204;
	font-weight: 800;
	font-family: var(--font-serif);
	flex: none;
	text-transform: uppercase;
}

.menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 240px;
	padding: var(--sp-2);
	margin: 0;
	list-style: none;
	background: rgba(28, 32, 39, 0.92);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	transform-origin: top right;
	animation: menu-in var(--dur) var(--ease-out);
	z-index: 120;
}

@keyframes menu-in {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(-4px);
	}
}

.menu-head {
	padding: var(--sp-3) var(--sp-3) var(--sp-3);
	border-bottom: 1px solid var(--border);
	margin-bottom: var(--sp-2);
}

.menu-head .name {
	display: block;
	font-weight: 700;
}

.menu-head .small {
	color: var(--text-muted);
}

.menu-item {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	width: 100%;
	padding: 0.6rem var(--sp-3);
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--text);
	font-size: var(--fs-sm);
	text-align: left;
}

.menu-item:hover,
.menu-item:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
}

.menu-item .icon {
	color: var(--text-muted);
}

.menu-sep {
	height: 1px;
	margin: var(--sp-2) 0;
	background: var(--border);
}

/* Mobile nav */
.mobile-panel {
	display: none;
}

@media (max-width: 959px) {
	.nav-links,
	.nav-actions .nav-login,
	.nav-actions .account-menu {
		display: none;
	}

	.nav-inner {
		justify-content: space-between;
	}

	.nav-play-mobile {
		display: inline-flex;
	}

	.nav-play-mobile .btn {
		min-height: 32px;
		padding: 0 0.9rem;
		font-size: var(--fs-sm);
	}

	.nav-toggle {
		display: inline-grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--text);
	}

	.nav-toggle:hover {
		background: rgba(255, 255, 255, 0.08);
	}

	.nav-toggle .icon {
		width: 22px;
		height: 22px;
	}

	.mobile-panel {
		position: fixed;
		inset: var(--nav-height) 0 0;
		display: block;
		padding: var(--sp-5) var(--gutter) var(--sp-8);
		background: rgba(7, 8, 10, 0.94);
		backdrop-filter: blur(24px) saturate(180%);
		-webkit-backdrop-filter: blur(24px) saturate(180%);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		opacity: 0;
		transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
		z-index: 99;
	}

	.mobile-panel.is-open {
		visibility: visible;
		opacity: 1;
		transition: opacity var(--dur) var(--ease);
	}

	.mobile-links {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mobile-links a,
	.mobile-links button,
	.mobile-links li > span {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0.85rem 0;
		border: 0;
		border-bottom: 1px solid var(--border);
		background: none;
		color: var(--text);
		font-size: 1.6rem;
		font-weight: 600;
		letter-spacing: -0.02em;
		text-align: left;
		transform: translateY(-8px);
		opacity: 0;
		transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
	}

	.mobile-links a[aria-current="page"] {
		color: var(--gold);
	}

	.mobile-links .is-disabled {
		color: var(--text-muted);
		cursor: default;
	}

	.mobile-links .soon {
		font-size: var(--fs-sm);
		font-weight: 500;
		color: var(--text-muted);
		letter-spacing: 0;
	}

	.mobile-panel.is-open .mobile-links a,
	.mobile-panel.is-open .mobile-links button,
	.mobile-panel.is-open .mobile-links li > span {
		transform: none;
		opacity: 1;
	}

	.mobile-panel.is-open .mobile-links li:nth-child(2) > * {
		transition-delay: 30ms;
	}

	.mobile-panel.is-open .mobile-links li:nth-child(3) > * {
		transition-delay: 60ms;
	}

	.mobile-panel.is-open .mobile-links li:nth-child(4) > * {
		transition-delay: 90ms;
	}

	.mobile-panel.is-open .mobile-links li:nth-child(5) > * {
		transition-delay: 120ms;
	}

	.mobile-panel.is-open .mobile-links li:nth-child(6) > * {
		transition-delay: 150ms;
	}

	.mobile-panel.is-open .mobile-links li:nth-child(n + 7) > * {
		transition-delay: 180ms;
	}

	.mobile-account {
		margin-top: var(--sp-6);
		display: grid;
		gap: var(--sp-3);
	}

	.mobile-user {
		display: flex;
		align-items: center;
		gap: var(--sp-3);
		padding: var(--sp-4);
		border-radius: var(--radius);
		background: var(--surface);
		border: 1px solid var(--border);
	}

	.mobile-user .name {
		font-weight: 700;
	}
}

/* Announcement banner */
.announcements {
	position: relative;
	z-index: 90;
}

.announce {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0.65rem 0;
	font-size: var(--fs-sm);
	color: var(--text);
	background: linear-gradient(90deg, rgba(245, 184, 61, 0.16), rgba(245, 184, 61, 0.08)), #121109;
	border-bottom: 1px solid rgba(245, 184, 61, 0.25);
}

.announce .container {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.announce .icon {
	color: var(--gold);
}

.announce-warning {
	background: linear-gradient(90deg, rgba(229, 72, 77, 0.2), rgba(229, 72, 77, 0.08)), #140b0c;
	border-bottom-color: rgba(229, 72, 77, 0.35);
}

.announce-warning .icon {
	color: #ff8a8d;
}

.announce-text {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.announce-close {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text-2);
	flex: none;
}

.announce-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
}

/* ---------- Footer ---------- */

#site-footer {
	flex: none;
	margin-top: var(--sp-9);
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.footer-top {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: var(--sp-7);
	padding-block: var(--sp-8) var(--sp-7);
}

.footer-brand img {
	height: 42px;
	width: auto;
	margin-bottom: var(--sp-4);
}

.footer-brand p {
	max-width: 22rem;
}

.footer-col h2 {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--text);
	margin-bottom: var(--sp-4);
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--sp-2);
}

.footer-col a,
.footer-col .is-disabled {
	color: var(--text-muted);
}

.footer-col a:hover {
	color: var(--text);
}

.footer-col .soon {
	margin-left: var(--sp-1);
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-block: var(--sp-5);
	border-top: 1px solid var(--border);
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

.footer-bottom p {
	margin: 0;
}

@media (max-width: 800px) {
	.footer-top {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-6);
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

/* ---------- Cards ---------- */

.card {
	position: relative;
	background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.card-pad {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.card-hover {
	transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease);
}

.card-hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--border-strong);
}

.card-title {
	font-size: var(--fs-lg);
	margin-bottom: var(--sp-2);
}

.glass {
	background: rgba(21, 24, 29, 0.6);
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	border: 1px solid var(--border-strong);
}

/* News card */
.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.news-card {
	display: flex;
	flex-direction: column;
	color: var(--text);
	height: 100%;
}

.news-card:hover {
	color: var(--text);
}

.news-card .thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-2) url("/assets/img/deco/grid.svg");
}

.news-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out);
}

.news-card:hover .thumb img {
	transform: scale(1.04);
}

.news-card .thumb-fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: radial-gradient(60% 80% at 70% 20%, rgba(245, 184, 61, 0.2), transparent 70%), var(--surface-2);
}

.news-card .thumb-fallback img {
	width: 72px;
	height: auto;
	opacity: 0.85;
	object-fit: contain;
}

.news-card .body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--sp-2);
	padding: var(--sp-5);
}

.news-card h3 {
	margin: 0;
	font-size: var(--fs-lg);
	line-height: var(--lh-snug);
}

.news-card .summary {
	margin: 0;
	color: var(--text-2);
	font-size: var(--fs-sm);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card .meta {
	margin-top: auto;
	padding-top: var(--sp-3);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2) var(--sp-4);
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

.news-card .meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.news-card .meta .icon {
	width: 1.1em;
	height: 1.1em;
}

.news-card.is-featured {
	grid-column: 1 / -1;
}

@media (min-width: 860px) {
	.news-card.is-featured {
		display: grid;
		grid-template-columns: 1.45fr 1fr;
	}

	.news-card.is-featured .thumb {
		aspect-ratio: auto;
		min-height: 380px;
	}

	.news-card.is-featured .body {
		padding: var(--sp-7);
		justify-content: center;
	}

	.news-card.is-featured h3 {
		font-size: var(--fs-2xl);
		letter-spacing: -0.025em;
		line-height: 1.1;
	}

	.news-card.is-featured .summary {
		font-size: var(--fs-md);
		-webkit-line-clamp: 4;
	}

	.news-card.is-featured .meta {
		margin-top: var(--sp-4);
	}
}

/* ---------- Forms ---------- */

.form {
	display: grid;
	gap: var(--sp-5);
}

.field {
	display: grid;
	gap: var(--sp-2);
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-4);
}

@media (max-width: 560px) {
	.field-row {
		grid-template-columns: 1fr;
	}
}

.label {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--text-2);
}

.label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--sp-3);
}

.label-row a {
	font-size: var(--fs-sm);
}

.input,
.select,
.textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 1rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.input::placeholder,
.textarea::placeholder {
	color: var(--text-faint);
}

.input:hover,
.select:hover,
.textarea:hover {
	border-color: rgba(255, 255, 255, 0.26);
}

.input:focus,
.select:focus,
.textarea:focus {
	border-color: var(--gold);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: var(--focus-ring);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
	border-color: var(--rune-red);
}

.input[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.4);
}

.textarea {
	min-height: 120px;
	resize: vertical;
}

.select {
	padding-right: 2.5rem;
	background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
	background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.select option,
.select optgroup {
	background: var(--surface-2);
	color: var(--text);
}

.input-wrap {
	position: relative;
}

.input-wrap .input {
	padding-right: 3rem;
}

.input-wrap .reveal-pass {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text-muted);
}

.input-wrap .reveal-pass:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
}

.hint {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	margin: 0;
}

.field-error {
	font-size: var(--fs-sm);
	color: #ff8a8d;
	margin: 0;
	display: flex;
	gap: 0.35em;
	align-items: center;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	font-size: var(--fs-sm);
	color: var(--text-2);
	cursor: pointer;
	line-height: 1.45;
}

.check input {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1.5px solid var(--border-strong);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.check input::after {
	content: "";
	width: 10px;
	height: 6px;
	border-left: 2px solid #1a1204;
	border-bottom: 2px solid #1a1204;
	transform: rotate(-45deg) translate(1px, -1px) scale(0);
	transition: transform var(--dur-fast) var(--ease-out);
}

.check input:checked {
	background: var(--gold);
	border-color: var(--gold);
}

.check input:checked::after {
	transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.check input:focus-visible {
	box-shadow: var(--focus-ring);
}

.check input[aria-invalid="true"] {
	border-color: var(--rune-red);
}

/* Password strength meter */
.meter {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.meter span {
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.1);
	transition: background-color var(--dur) var(--ease);
}

.meter[data-score="1"] span:nth-child(-n + 1) {
	background: var(--rune-red);
}

.meter[data-score="2"] span:nth-child(-n + 2) {
	background: var(--orange);
}

.meter[data-score="3"] span:nth-child(-n + 3) {
	background: var(--gold);
}

.meter[data-score="4"] span {
	background: var(--green);
}

.meter-label {
	display: flex;
	justify-content: space-between;
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

/* Alerts / callouts (forms + pages) */
.alert {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
	padding: var(--sp-4);
	border-radius: var(--radius);
	border: 1px solid var(--border-strong);
	background: rgba(255, 255, 255, 0.04);
	font-size: var(--fs-sm);
	color: var(--text-2);
}

.alert > .icon {
	margin-top: 0.1em;
}

.alert p {
	margin: 0;
}

.alert p + p,
.alert p + .cluster {
	margin-top: var(--sp-2);
}

.alert strong {
	color: var(--text);
}

.alert-info {
	border-color: rgba(10, 132, 255, 0.35);
	background: var(--blue-soft);
}

.alert-info > .icon {
	color: #7cb8ff;
}

.alert-success {
	border-color: rgba(48, 209, 88, 0.35);
	background: var(--green-soft);
}

.alert-success > .icon {
	color: var(--green);
}

.alert-warning {
	border-color: rgba(255, 159, 10, 0.35);
	background: rgba(255, 159, 10, 0.1);
}

.alert-warning > .icon {
	color: var(--orange);
}

.alert-error {
	border-color: rgba(229, 72, 77, 0.4);
	background: var(--rune-red-soft);
}

.alert-error > .icon {
	color: #ff8a8d;
}

/* ---------- Chips, segmented control, tabs ---------- */

.chips {
	display: flex;
	gap: var(--sp-2);
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px;
	margin: -2px;
	-webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
	display: none;
}

.chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	height: 36px;
	padding: 0 1rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border-strong);
	background: transparent;
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
	transition: all var(--dur-fast) var(--ease);
}

.chip:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
	background: var(--text);
	border-color: var(--text);
	color: #0b0c0e;
}

.segmented {
	display: inline-flex;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 4px;
	gap: 2px;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border);
}

.segmented::-webkit-scrollbar {
	display: none;
}

.segmented button {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	height: 34px;
	padding: 0 0.95rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
	white-space: nowrap;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.segmented button:hover {
	color: var(--text);
}

.segmented button[aria-selected="true"] {
	background: var(--surface-3);
	color: var(--text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Tables ---------- */

.table-wrap {
	overflow-x: auto;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: var(--bg-elevated);
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.table th,
.table td {
	padding: 0.8rem 1rem;
	text-align: left;
	white-space: nowrap;
}

.table thead th {
	position: sticky;
	top: 0;
	background: var(--surface);
	color: var(--text-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--border);
}

.table tbody tr {
	border-bottom: 1px solid var(--border);
	transition: background-color var(--dur-fast) var(--ease);
}

.table tbody tr:last-child {
	border-bottom: 0;
}

.table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03);
}

.table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.table .rank {
	width: 1%;
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}

.table tr.is-highlight {
	background: var(--gold-soft);
}

.table .cell-with-icon {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.table a {
	color: var(--text);
	font-weight: 600;
}

.table a:hover {
	color: var(--gold);
}

/* ---------- Pagination ---------- */

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--sp-2);
	margin-top: var(--sp-7);
}

.pagination button {
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all var(--dur-fast) var(--ease);
}

.pagination button:hover:not([disabled]) {
	background: rgba(255, 255, 255, 0.07);
	color: var(--text);
}

.pagination button[aria-current="page"] {
	background: var(--text);
	color: #0b0c0e;
	border-color: var(--text);
}

.pagination button[disabled] {
	opacity: 0.35;
	cursor: default;
}

.pagination .gap {
	color: var(--text-faint);
	padding: 0 var(--sp-1);
}

/* ---------- Toasts ---------- */

.toast-region {
	position: fixed;
	left: 50%;
	bottom: max(var(--sp-5), env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 400;
	display: grid;
	gap: var(--sp-2);
	width: min(440px, calc(100vw - 2rem));
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0.85rem 1rem;
	border-radius: var(--radius);
	background: rgba(37, 42, 51, 0.92);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-lg);
	color: var(--text);
	font-size: var(--fs-sm);
	pointer-events: auto;
	animation: toast-in var(--dur-slow) var(--ease-out);
}

.toast.is-leaving {
	animation: toast-out var(--dur) var(--ease) forwards;
}

.toast .icon {
	flex: none;
}

.toast-success .icon {
	color: var(--green);
}

.toast-error .icon {
	color: #ff8a8d;
}

.toast-info .icon {
	color: var(--gold);
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}

@keyframes toast-out {
	to {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
}

/* ---------- Modal (<dialog class="modal">) ---------- */

.modal {
	width: min(480px, calc(100vw - 2rem));
	max-height: calc(100vh - 4rem);
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow-lg);
	overflow: auto;
}

.modal[open] {
	animation: modal-in var(--dur-slow) var(--ease-out);
}

.modal::backdrop {
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.modal-body {
	padding: var(--sp-6);
}

.modal-body h2 {
	font-size: var(--fs-xl);
	margin-bottom: var(--sp-3);
}

.modal-body p {
	color: var(--text-2);
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}

@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

/* ---------- Skeletons & empty states ---------- */

.skeleton {
	position: relative;
	overflow: hidden;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	color: transparent !important;
}

.skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
	animation: shimmer 1.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
	.skeleton::after {
		animation: none;
	}
}

@keyframes shimmer {
	to {
		transform: translateX(100%);
	}
}

.skeleton-line {
	height: 0.9em;
	margin-block: 0.5em;
}

.skeleton-line.w-40 {
	width: 40%;
}

.skeleton-line.w-60 {
	width: 60%;
}

.skeleton-line.w-80 {
	width: 80%;
}

.skeleton-title {
	height: 1.4em;
	width: 85%;
	margin-block: 0.4em 0.8em;
}

.skeleton-thumb {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.skeleton-row td {
	padding-block: 1rem;
}

.empty {
	display: grid;
	justify-items: center;
	gap: var(--sp-3);
	padding: clamp(2.5rem, 7vw, 4.5rem) var(--sp-5);
	text-align: center;
	color: var(--text-muted);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.015);
}

.empty .empty-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--gold-soft);
	color: var(--gold);
}

.empty .empty-icon .icon {
	width: 26px;
	height: 26px;
}

.empty h3 {
	margin: 0;
	color: var(--text);
	font-size: var(--fs-lg);
}

.empty p {
	margin: 0;
	max-width: 32rem;
}

.grid-span-all {
	grid-column: 1 / -1;
}

/* ---------- Scroll reveal ---------- */

html.reveal-on .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

html.reveal-on .reveal.is-visible {
	opacity: 1;
	transform: none;
}

html.reveal-on .reveal-delay-1 {
	--reveal-delay: 90ms;
}

html.reveal-on .reveal-delay-2 {
	--reveal-delay: 180ms;
}

html.reveal-on .reveal-delay-3 {
	--reveal-delay: 270ms;
}

@media (prefers-reduced-motion: reduce) {
	html.reveal-on .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Article body (blocks.js output) ---------- */

.prose {
	font-size: var(--fs-md);
	line-height: 1.7;
	color: var(--text-2);
	overflow-wrap: break-word;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose p {
	margin: 0;
}

.prose h2,
.prose h3 {
	color: var(--text);
	margin: 2em 0 0;
}

.prose h2 {
	font-size: clamp(1.6rem, 3vw, 2rem);
}

.prose h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.45rem);
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0.75em;
}

.prose strong {
	color: var(--text);
	font-weight: 650;
}

.prose a {
	color: var(--gold);
	text-decoration: underline;
	text-decoration-color: rgba(245, 184, 61, 0.4);
	text-underline-offset: 3px;
}

.prose a:hover {
	text-decoration-color: var(--gold);
}

.prose code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--parchment);
}

.prose ul,
.prose ol {
	margin: 0;
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose ul li::marker {
	color: var(--gold);
}

.prose ol li::marker {
	color: var(--gold);
	font-weight: 600;
}

.prose figure {
	margin: 2em 0;
}

.prose figure img,
.prose figure video {
	width: 100%;
	border-radius: var(--radius);
	background: var(--surface-2);
}

.prose figcaption {
	margin-top: 0.75em;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	text-align: center;
}

.prose blockquote {
	margin: 2em 0;
	padding: 0.2em 0 0.2em 1.4em;
	border-left: 3px solid var(--gold);
	font-family: var(--font-serif);
	font-size: 1.3em;
	line-height: 1.5;
	color: var(--parchment);
}

.prose blockquote p {
	margin: 0;
}

.prose hr {
	margin: 2.5em auto;
	width: 200px;
	height: 20px;
	background: url("/assets/img/deco/ornament.svg") center / contain no-repeat;
	opacity: 0.7;
}

.prose .callout {
	display: flex;
	gap: 0.8em;
	padding: 1em 1.2em;
	border-radius: var(--radius);
	border: 1px solid rgba(10, 132, 255, 0.35);
	background: var(--blue-soft);
	font-size: var(--fs-base);
	color: var(--text);
}

.prose .callout::before {
	content: "i";
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 0.15em;
	border-radius: 50%;
	background: #0a84ff;
	color: #fff;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 0.8rem;
}

.prose .callout-warning {
	border-color: rgba(255, 159, 10, 0.4);
	background: rgba(255, 159, 10, 0.1);
}

.prose .callout-warning::before {
	content: "!";
	background: var(--orange);
	color: #1a1204;
}

.prose .callout-success {
	border-color: rgba(48, 209, 88, 0.35);
	background: var(--green-soft);
}

.prose .callout-success::before {
	content: "\2713";
	background: var(--green);
	color: #04150a;
}

.prose .callout p {
	margin: 0;
}

.prose .embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
}

.prose .embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.prose .yt-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	display: block;
}

.prose .yt-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	opacity: 0.85;
	transition: opacity var(--dur) var(--ease), transform 1s var(--ease-out);
}

.prose .yt-poster:hover img {
	opacity: 1;
	transform: scale(1.02);
}

.prose .yt-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(12, 13, 16, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease);
}

.prose .yt-play::after {
	content: "";
	position: absolute;
	left: 31px;
	top: 24px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #fff;
}

.prose .yt-poster:hover .yt-play,
.prose .yt-poster:focus-visible .yt-play {
	transform: scale(1.08);
	background: var(--gold);
}

.prose .yt-poster:hover .yt-play::after,
.prose .yt-poster:focus-visible .yt-play::after {
	border-left-color: #1a1204;
}

.prose .yt-note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.6em 1em;
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.75);
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	text-align: left;
}
