/* JRPG Design System - standalone page surfaces (404, about/contact, team, bio, legal, dashboard, upload, auth card, methodology, glossary). Extracted verbatim from jrpg-design.css (L2963-3159, L5980-6833, L6864-7422, L8500-8753); loads after it. */
/* ============================================================
   404 PAGE
   ============================================================ */
.err404 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	margin: 24px 0 40px;
	padding: 40px 32px;
	border: 1px solid var(--bg-line);
	border-radius: 14px;
	background:
		radial-gradient(closest-side at 20% 50%, color-mix(in oklch, var(--jrpg-purple-bright) 22%, transparent), transparent 60%),
		radial-gradient(closest-side at 85% 30%, rgba(76, 227, 255, .08), transparent 60%),
		var(--bg-1);
	overflow: hidden;
	position: relative;
}
.err404::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
	pointer-events: none;
}

.err404-art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
}
.err404-glow {
	position: absolute;
	inset: 10% 5%;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in oklch, var(--jrpg-purple-bright) 35%, transparent), transparent 70%);
	filter: blur(8px);
}
.err404-code {
	position: relative;
	font-family: var(--font-display);
	font-size: clamp(96px, 14vw, 180px);
	line-height: 1;
	color: var(--fg-1);
	text-shadow:
		0 0 24px color-mix(in oklch, var(--jrpg-purple-bright) 55%, transparent),
		0 2px 0 rgba(0, 0, 0, .5);
	letter-spacing: .02em;
}
.err404-scan {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 5px);
	mix-blend-mode: multiply;
	pointer-events: none;
}

.err404-body {
	position: relative;
	z-index: 1;
}
.err404-eyebrow {
	font-family: var(--font-headline);
	font-size: var(--fs-eyebrow);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	margin: 0 0 12px;
}
.err404-title {
	font-family: var(--font-headline) !important;
	font-size: clamp(28px, 3.8vw, 42px);
	line-height: 1.05;
	color: var(--fg-1);
	margin: 0 0 14px;
	font-weight: 500;
	text-transform: none;
}
.err404-desc {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--fg-2);
	margin: 0 0 22px;
	max-width: 520px;
}

.err404-search {
	display: flex;
	gap: 8px;
	align-items: center;
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--bg-line);
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
	max-width: 460px;
	margin-bottom: 18px;
	color: var(--fg-3);
	transition: border-color .15s ease, background .15s ease;
}
.err404-search:focus-within {
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 55%, transparent);
	background: rgba(255, 255, 255, .06);
}
.err404-search input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: none;
	color: var(--fg-1);
	font-family: var(--font-body);
	font-size: 14px;
	padding: 8px 0;
}
.err404-search input::placeholder { color: var(--fg-mute); }
.err404-search button {
	font-family: var(--font-headline) !important;
	font-size: var(--fs-eyebrow) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	color: var(--fg-1) !important;
	background: var(--jrpg-purple) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 8px 16px !important;
	cursor: pointer;
	transition: background .15s ease;
}
.err404-search button:hover { background: var(--jrpg-purple-bright) !important; }

.err404-cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.err404-cta-primary,
.err404-cta-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-headline);
	font-size: var(--fs-eyebrow);
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 10px 22px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.err404-cta-primary {
	color: var(--fg-1) !important;
	background: linear-gradient(180deg, var(--jrpg-purple-bright), var(--jrpg-purple));
	border: 0;
	box-shadow: 0 6px 18px rgba(129, 81, 166, .4);
}
.err404-cta-primary:hover {
	color: var(--fg-1) !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(129, 81, 166, .55);
}
.err404-cta-secondary {
	color: var(--fg-1) !important;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .25);
}
.err404-cta-secondary:hover {
	color: var(--jrpg-purple-bright) !important;
	border-color: var(--jrpg-purple-bright);
}

.err404-picks { margin: 8px 0 56px; }
.err404-picks-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (max-width: 720px) {
	.err404 {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 32px 22px;
		gap: 16px;
	}
	.err404-art { min-height: 160px; }
	.err404-desc { margin-left: auto; margin-right: auto; }
	.err404-search { margin-left: auto; margin-right: auto; }
	.err404-cta { justify-content: center; }
}

/* ============================================================
   ABOUT PAGE — /about-us/
   ============================================================ */
body.fastest-has-about-page #primary.content-area,
body.post-type-archive-authorbiography #primary.content-area,
body.single-authorbiography #primary.content-area {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}
body.fastest-has-about-page #secondary.widget-area,
body.post-type-archive-authorbiography #secondary.widget-area,
body.single-authorbiography #secondary.widget-area { display: none !important; }

.about-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px 80px;
	color: var(--fg-1);
	font-family: var(--font-body);
}

/* Reuse 404-style eyebrow */
.about-eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	margin-bottom: 12px;
}

/* ---- Hero ---- */
.about-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 50% 0%, color-mix(in oklch, var(--jrpg-purple-bright) 22%, transparent), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--bg-line);
	padding: 36px 28px 32px;
	text-align: center;
	margin-bottom: 48px;
}
.about-hero-scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 0,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: screen;
	opacity: .6;
}
.about-hero-inner { position: relative; z-index: 1; padding: 0 80px; }
.about-hero-title {
	font-family: var(--font-display) !important;
	font-weight: 400 !important;
	font-size: clamp(30px, 4.4vw, 52px) !important;
	line-height: 1.15 !important;
	letter-spacing: .01em;
	color: var(--fg-1) !important;
	margin: 0 0 18px !important;
	text-shadow: 0 0 24px color-mix(in oklch, var(--jrpg-purple-bright) 25%, transparent);
}
.about-hero-sub {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fg-2);
	margin: 0 0 24px;
}
.about-hero-meta {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	letter-spacing: .04em;
	color: var(--fg-3);
}
.about-hero-meta strong {
	color: var(--jrpg-gold);
	font-weight: 600;
	margin-right: 4px;
}
.about-dot { color: var(--fg-mute); }

/* ---- Story cards (horizontal: icon left, text right) ---- */
.about-stories {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 72px;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}
.about-story {
	display: grid;
	grid-template-columns: 72px 1fr;
	align-items: flex-start;
	gap: 26px;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 16px;
	padding: 28px 32px;
	transition: border-color .2s ease, transform .2s ease;
}
.about-story:hover {
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 45%, transparent);
	transform: translateY(-2px);
}
.about-story-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: color-mix(in oklch, var(--jrpg-purple-bright) 14%, transparent);
	color: var(--jrpg-purple-bright);
	flex-shrink: 0;
	margin-top: 4px;
}
.about-story-icon [class*="icon-"] { font-size: 26px; }
.about-story-body { min-width: 0; }
.about-story-h {
	font-family: var(--font-headline) !important;
	font-weight: 600 !important;
	font-size: 26px !important;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--fg-1) !important;
	margin: 0 0 10px !important;
	line-height: 1.15 !important;
}
.about-story-body p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--fg-2);
	margin: 0;
}
.about-story-body strong { color: var(--fg-1); font-weight: 600; }
.about-hero-sub strong { color: var(--fg-1); font-weight: 600; }

/* ---- Section heads (shared) ---- */
.about-section-head {
	text-align: center;
	margin-bottom: 32px;
}
.about-section-h {
	font-family: var(--font-display) !important;
	font-weight: 400 !important;
	font-size: clamp(28px, 3.5vw, 40px) !important;
	letter-spacing: .01em;
	color: var(--fg-1) !important;
	margin: 0 0 10px !important;
}
.about-section-sub {
	font-size: 15px;
	color: var(--fg-3);
	max-width: 820px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ---- Team grid (on the about page) ---- */
.about-team { margin-bottom: 72px; }
.about-team-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}
.about-team-card {
	margin: 0;
	flex: 0 0 calc((100% - 44px) / 3);
	max-width: calc((100% - 44px) / 3);
}
.about-team-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	padding: 36px 24px;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 18px;
	text-decoration: none !important;
	color: inherit !important;
	transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.about-team-link:hover {
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 45%, transparent);
	background: color-mix(in oklch, var(--jrpg-purple-bright) 06%, transparent);
	transform: translateY(-2px);
}
.about-team-avatar {
	width: 148px;
	height: 148px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bg-3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 3px solid color-mix(in oklch, var(--jrpg-purple-bright) 40%, transparent);
	box-shadow: 0 0 0 5px color-mix(in oklch, var(--jrpg-purple-bright) 10%, transparent);
	flex-shrink: 0;
}
.about-team-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.about-team-avatar-fallback {
	font-family: var(--font-display);
	font-size: 48px;
	color: var(--jrpg-purple-bright);
}
.about-team-name {
	font-family: var(--font-headline);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--fg-1);
	line-height: 1.2;
}
.about-team-role {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	line-height: 1.4;
}
.about-team-more {
	margin-top: 24px;
	text-align: center;
}

/* ---- Contact ---- */
.about-contact { margin-bottom: 64px; }
.about-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 32px;
}
.about-contact-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 24px 24px;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 16px;
	color: inherit !important;
	text-decoration: none !important;
	transition: border-color .2s ease, transform .2s ease;
}
.about-contact-card:hover {
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 45%, transparent);
	transform: translateY(-2px);
}
.about-contact-card-static { cursor: default; }
.about-contact-card-static:hover { transform: none; border-color: var(--bg-line); }
.about-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in oklch, var(--jrpg-purple-bright) 14%, transparent);
	color: var(--jrpg-purple-bright);
	margin-bottom: 8px;
}
.about-contact-icon [class*="icon-"] { font-size: 22px; }
.about-contact-h {
	font-family: var(--font-headline);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--fg-1);
	line-height: 1.15;
}
.about-contact-desc {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.55;
	color: var(--fg-3);
}
.about-contact-value {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--jrpg-purple-bright);
	line-height: 1.5;
	margin-top: 4px;
}
.about-contact-card-static .about-contact-value {
	color: var(--fg-1);
	font-weight: 500;
}

.about-contact-lede {
	font-family: var(--font-headline);
	font-size: 20px;
	letter-spacing: .02em;
	color: var(--fg-1);
	margin: 4px 0 12px;
}
.about-contact-lede strong { font-weight: 600; }

/* Socials rail */
.about-socials {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 18px 22px;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 14px;
}
.about-socials-label {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--fg-3);
}
.about-socials-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
}
.about-socials-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bg-3);
	border: 1px solid var(--bg-line);
	color: var(--fg-2);
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.about-socials-list a:hover {
	background: color-mix(in oklch, var(--jrpg-purple-bright) 18%, transparent);
	color: var(--fg-1);
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 55%, transparent);
	transform: translateY(-1px);
}

/* Legal */
.about-legal {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* Ghost CTA reused on about page */
.about-cta-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-family: var(--font-headline);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-1) !important;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--r-pill);
	text-decoration: none !important;
	transition: background .15s ease, border-color .15s ease;
}
.about-cta-ghost:hover {
	background: color-mix(in oklch, var(--jrpg-purple-bright) 14%, transparent);
	border-color: var(--jrpg-purple-bright);
}

@media (max-width: 900px) {
	.about-story { grid-template-columns: 1fr; gap: 14px; padding: 22px 22px; }
	.about-team-card {
		flex-basis: calc((100% - 22px) / 2);
		max-width: calc((100% - 22px) / 2);
	}
	.about-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.about-hero { padding: 28px 18px 24px; }
	.about-hero-inner { padding: 0; }
	.about-team-card { flex-basis: 100%; max-width: 100%; }
}

/* ============================================================
   TEAM ARCHIVE — /authorbiography/
   ============================================================ */
.team-archive {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px 80px;
	color: var(--fg-1);
}

.team-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 50% 0%, color-mix(in oklch, var(--jrpg-purple-bright) 22%, transparent), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--bg-line);
	padding: 56px 32px 48px;
	text-align: center;
	margin-bottom: 48px;
}
.team-hero-scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 0,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: screen;
	opacity: .6;
}
.team-hero-inner { position: relative; z-index: 1; }
.team-hero-title {
	font-family: var(--font-display) !important;
	font-weight: 400 !important;
	font-size: clamp(36px, 5vw, 56px) !important;
	color: var(--fg-1) !important;
	margin: 0 0 12px !important;
	letter-spacing: .01em;
	line-height: 1.1 !important;
	text-shadow: 0 0 24px color-mix(in oklch, var(--jrpg-purple-bright) 25%, transparent);
}
.team-hero-sub {
	font-size: 16px;
	color: var(--fg-2);
	margin: 0 auto;
	max-width: 560px;
}

.team-grid {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.team-card { margin: 0; }
.team-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit !important;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.team-card-link:hover {
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 55%, transparent);
	transform: translateY(-3px);
	box-shadow: 0 12px 28px -20px color-mix(in oklch, var(--jrpg-purple-bright) 55%, transparent);
}
.team-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--bg-3);
	overflow: hidden;
}
.team-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.team-card-link:hover .team-card-media img { transform: scale(1.04); }
.team-card-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 64px;
	color: var(--jrpg-purple-bright);
}
.team-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 20px;
	flex: 1;
}
.team-card-role {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	line-height: 1.3;
}
.team-card-name {
	font-family: var(--font-headline);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--fg-1);
	line-height: 1.2;
}
.team-card-bio {
	font-size: 14px;
	color: var(--fg-2);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.team-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--bg-line);
}
.team-card-count {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	letter-spacing: .04em;
	color: var(--fg-3);
}
.team-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-headline);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
}
.team-card-link:hover .team-card-cta { color: var(--fg-1); }

.team-empty {
	text-align: center;
	color: var(--fg-3);
	padding: 48px 0;
}

@media (max-width: 960px) {
	.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE AUTHOR BIO — /authorbiography/<slug>/
   ============================================================ */
article.author-bio {
	max-width: 920px;
	margin: 0 auto;
	padding: 24px 24px 80px;
	color: var(--fg-1);
}

.bio-back { margin-bottom: 20px; }
.bio-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-2) !important;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: var(--r-pill);
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bio-back-link:hover {
	color: var(--fg-1) !important;
	background: color-mix(in oklch, var(--jrpg-purple-bright) 14%, transparent);
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 45%, transparent);
}

.bio-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 50% 0%, color-mix(in oklch, var(--jrpg-purple-bright) 22%, transparent), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--bg-line);
	padding: 40px 40px 36px;
	margin-bottom: 36px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.bio-hero-scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 0,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: screen;
	opacity: .6;
}
.bio-hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 32px;
}
.bio-avatar {
	width: 168px;
	height: 168px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-3);
	border: 3px solid color-mix(in oklch, var(--jrpg-purple-bright) 55%, transparent);
	box-shadow: 0 0 0 6px color-mix(in oklch, var(--jrpg-purple-bright) 12%, transparent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bio-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bio-avatar-fallback {
	font-family: var(--font-display);
	font-size: 56px;
	color: var(--jrpg-purple-bright);
}
.bio-meta { flex: 1; min-width: 0; }
.bio-name {
	font-family: var(--font-display) !important;
	font-weight: 400 !important;
	font-size: clamp(32px, 4.5vw, 48px) !important;
	color: var(--fg-1) !important;
	margin: 4px 0 14px !important;
	letter-spacing: .01em;
	line-height: 1.1 !important;
	text-shadow: 0 0 18px color-mix(in oklch, var(--jrpg-purple-bright) 25%, transparent);
}
.bio-roles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bio-roles li {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 5px 12px;
	background: color-mix(in oklch, var(--jrpg-purple-bright) 14%, transparent);
	color: var(--jrpg-purple-bright);
	border: 1px solid color-mix(in oklch, var(--jrpg-purple-bright) 35%, transparent);
	border-radius: var(--r-pill);
}

.bio-hero .bio-prose {
	position: relative;
	z-index: 1;
	padding-top: 24px;
	border-top: 1px solid var(--bg-line);
}
.bio-prose {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--fg-2);
}
.bio-prose p { margin: 0 0 14px; }
.bio-prose p:last-child { margin-bottom: 0; }
.bio-prose a { color: var(--jrpg-purple-bright); }
.bio-prose a:hover { color: var(--fg-1); }

.bio-articles { margin-top: 16px; }
.bio-articles-list {
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.bio-articles-list .postlist-item-link { margin-bottom: 0; }
/* Pagination wrapper inside bio-articles — already styled via #content .pagination */
.bio-articles .pagination,
.bio-articles .nav-links { justify-content: center; }

@media (max-width: 720px) {
	.bio-hero-inner { flex-direction: column; text-align: center; gap: 20px; }
	.bio-roles { justify-content: center; }
	.bio-avatar { width: 132px; height: 132px; }
}

/* ============================================================
   LEGAL PAGES — /terms-of-service/, /privacy-policy/
   ============================================================ */
body.fastest-has-legal-page #primary.content-area {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}
body.fastest-has-legal-page #secondary.widget-area { display: none !important; }

.legal-page {
	max-width: 880px;
	margin: 0 auto;
	padding: 40px 24px 80px;
	color: var(--fg-1);
	font-family: var(--font-body);
}

/* ---- Hero ---- */
.legal-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 50% 0%, color-mix(in oklch, var(--jrpg-purple-bright) 22%, transparent), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--bg-line);
	padding: 36px 40px 32px;
	margin-bottom: 36px;
}
.legal-hero-scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 0,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: screen;
	opacity: .6;
}
.legal-hero-inner { position: relative; z-index: 1; }
.legal-hero-title {
	font-family: var(--font-display) !important;
	font-weight: 400 !important;
	font-size: clamp(30px, 4.2vw, 48px) !important;
	color: var(--fg-1) !important;
	margin: 0 0 16px !important;
	letter-spacing: .01em;
	line-height: 1.15 !important;
	text-shadow: 0 0 24px color-mix(in oklch, var(--jrpg-purple-bright) 25%, transparent);
}
.legal-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.legal-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: color-mix(in oklch, var(--jrpg-purple-bright) 12%, transparent);
	border: 1px solid color-mix(in oklch, var(--jrpg-purple-bright) 35%, transparent);
	border-radius: var(--r-pill);
}
.legal-meta-label {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
}
.legal-meta-value {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	color: var(--fg-1);
}

/* ---- Body ---- */
.legal-body { padding: 0 4px; }
.legal-prose {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.75;
	color: var(--fg-2);
}
.legal-prose > * + * { margin-top: 16px; }
.legal-prose p { margin: 0; }
.legal-prose strong { color: var(--fg-1); font-weight: 600; }
.legal-prose a { color: var(--jrpg-purple-bright); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--jrpg-purple-bright) 35%, transparent); }
.legal-prose a:hover { color: var(--fg-1); text-decoration-color: var(--jrpg-purple-bright); }

.legal-prose h2 {
	font-family: var(--font-headline) !important;
	font-weight: 600 !important;
	font-size: 26px !important;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--fg-1) !important;
	margin: 36px 0 14px !important;
	padding-top: 24px;
	border-top: 1px solid var(--bg-line);
	line-height: 1.2 !important;
}
.legal-prose h2:first-child {
	margin-top: 0 !important;
	padding-top: 0;
	border-top: 0;
}
.legal-prose h3 {
	font-family: var(--font-headline) !important;
	font-weight: 600 !important;
	font-size: 19px !important;
	letter-spacing: .02em;
	color: var(--jrpg-purple-bright) !important;
	margin: 22px 0 10px !important;
	line-height: 1.3 !important;
}

.legal-prose ul,
.legal-prose ol {
	margin: 0;
	padding-left: 22px;
}
.legal-prose ul li,
.legal-prose ol li {
	margin: 0 0 8px;
	padding-left: 4px;
}
.legal-prose ul li::marker { color: var(--jrpg-purple-bright); }
.legal-prose ol li::marker { color: var(--jrpg-purple-bright); font-family: var(--font-mono); }

.legal-prose hr,
.legal-prose .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--bg-line);
	margin: 28px 0;
	background: none;
}

.legal-prose .wp-block-columns {
	display: flex;
	gap: 18px;
}
.legal-prose .wp-block-column { flex: 1; min-width: 0; }

.legal-prose code {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	padding: 2px 6px;
	background: var(--bg-3);
	border: 1px solid var(--bg-line);
	border-radius: 6px;
}

/* Footer CTAs */
.legal-footer {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--bg-line);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

@media (max-width: 720px) {
	.legal-hero { padding: 28px 22px 24px; }
	.legal-prose { font-size: 15.5px; }
	.legal-prose h2 { font-size: 22px !important; }
	.legal-prose .wp-block-columns { flex-direction: column; }
}

/* Contact page reuses .about-page; full width like about-us */
.contact-page { max-width: 1280px; }

/* ============================================================
   CREATOR DASHBOARD — page-level wiring + theme-only additions.
   All defaults (colors, layout, status badges, table, etc.) live in
   register-login-system/assets/css/creator-dashboard.css alongside
   the plugin markup so the dashboard is self-contained.
   ============================================================ */
body.page-id-215 #primary.content-area,
body.fastest-has-dashboard #primary.content-area {
	width: 100%;
	max-width: none;
	float: none;
}
body.page-id-215 #secondary.widget-area,
body.fastest-has-dashboard #secondary.widget-area { display: none; }
/* Drop the global .wrap horizontal padding for the dashboard so the dashboard
   max-width can use the full viewport width without double inset. The gutter
   itself only goes when the dashboard actually renders (logged in). */
body.page-id-215 #content > .wrap {
	max-width: none;
}
body.fastest-has-dashboard #content > .wrap {
	padding: 0;
	max-width: none;
}

.cas-creator-dashboard-modern .dash-show-more[disabled] { opacity: .6; cursor: progress; }
.cas-creator-dashboard-modern .dash-show-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 24px;
	font-family: var(--font-headline);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-1);
	background: transparent;
	border-top: 1px solid var(--bg-line) !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-radius: 0 0 16px 16px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	width: 100%;
	justify-content: center;
}
.cas-creator-dashboard-modern .dash-show-more:hover {
	background: color-mix(in oklch, var(--jrpg-purple-bright) 10%, transparent);
	color: var(--jrpg-purple-bright);
}
.cas-creator-dashboard-modern .dash-show-more .dash-count {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	color: var(--fg-3);
	letter-spacing: .04em;
	text-transform: none;
}

/* ============================================================
   UPLOAD GAME PAGE — /upload-game/
   Removes the sidebar + .informational-content chrome; renders the
   plugin's [game_upload_form] shortcode inside our hero layout.
   ============================================================ */
body.fastest-has-upload-page #primary.content-area {
	width: 100%;
	max-width: none;
	float: none;
}
body.fastest-has-upload-page #secondary.widget-area { display: none; }
body.fastest-has-upload-page #content > .wrap {
	padding: 0;
	max-width: none;
}

.upload-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	color: var(--fg-1);
	font-family: var(--font-body);
}

.upload-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 50% 0%, color-mix(in oklch, var(--jrpg-purple-bright) 22%, transparent), transparent 60%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--bg-line);
	padding: 36px 32px 32px;
	margin-bottom: 36px;
	text-align: center;
}
.upload-hero-scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 0,
		color-mix(in oklch, var(--jrpg-purple-bright) 04%, transparent) 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: screen;
	opacity: .6;
}
.upload-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.upload-hero-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(30px, 4.4vw, 52px);
	color: var(--fg-1);
	margin: 0 0 14px;
	letter-spacing: .01em;
	line-height: 1.15;
	text-transform: none;
	text-shadow: 0 0 24px color-mix(in oklch, var(--jrpg-purple-bright) 25%, transparent);
}
.upload-hero-sub {
	font-size: 16px;
	color: var(--fg-2);
	line-height: 1.6;
	margin: 0;
}
.upload-hero-sub a {
	color: var(--jrpg-purple-bright);
	text-decoration: underline;
	text-decoration-color: color-mix(in oklch, var(--jrpg-purple-bright) 35%, transparent);
}
.upload-hero-sub a:hover {
	color: var(--fg-1);
	text-decoration-color: var(--jrpg-purple-bright);
}

/* Logged-out creator landing (selectors scoped to .upload-page to beat legacy
   style.css globals: .content-area p 17px + h1-h6 capitalize; buttons defend the
   dark label against the global a:not(.btn) !important link color). */
.upload-page .upload-hero-sub { font-size: 16px; line-height: 1.6; }
.upload-hero-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}
.upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	font-family: var(--font-headline);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-radius: var(--r-pill);
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.upload-btn:active { transform: scale(.98); }
.upload-page .upload-btn--gold {
	background: var(--jrpg-gold);
	color: var(--jrpg-purple-shadow) !important;
	border: 1px solid var(--jrpg-gold);
	box-shadow: 0 12px 28px -12px color-mix(in oklch, var(--jrpg-gold) 60%, transparent);
}
.upload-page .upload-btn--gold:hover {
	background: var(--jrpg-gold-deep);
	border-color: var(--jrpg-gold-deep);
	color: var(--jrpg-purple-shadow) !important;
}
.upload-page .upload-btn--ghost {
	background: transparent;
	color: var(--fg-1) !important;
	border: 1px solid var(--bg-line);
}
.upload-page .upload-btn--ghost:hover {
	border-color: var(--jrpg-purple-bright);
	background: color-mix(in oklch, var(--jrpg-purple) 10%, transparent);
	color: var(--fg-1) !important;
}
.upload-lp { max-width: 940px; margin: 0 auto; }
.upload-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-bottom: 36px;
}
.upload-step {
	border-top: 1px solid color-mix(in oklch, var(--bg-line) 55%, transparent);
	padding-top: 14px;
}
.upload-step-n {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--jrpg-gold);
	letter-spacing: .14em;
}
.upload-page .upload-step-t {
	font-family: var(--font-headline);
	font-size: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--fg-1);
	margin: 8px 0 6px;
}
.upload-page .upload-step-d { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 0; }
.upload-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}
.upload-benefit {
	padding: 20px;
	border: 1px solid color-mix(in oklch, var(--bg-line) 62%, transparent);
	border-radius: 14px;
	background: rgba(255, 255, 255, .035);
}
.upload-benefit-ic {
	font-size: 22px;
	color: var(--jrpg-purple-bright);
	display: block;
	margin-bottom: 10px;
}
.upload-page .upload-benefit h3 {
	font-family: var(--font-headline);
	font-size: 16px;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--fg-1);
	margin: 0 0 6px;
}
.upload-page .upload-benefit p { font-size: 14px; line-height: 1.55; color: var(--fg-3); margin: 0; }
.upload-page .upload-proof {
	text-align: center;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--fg-3);
	margin: 0;
}
.upload-proof strong { color: var(--jrpg-gold); }
@media (max-width: 720px) {
	.upload-steps, .upload-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.upload-btn { width: min(100%, 320px); justify-content: center; }
}

/* ============================================================
   LOGIN / REGISTER pages — "you're already signed in" card
   Rendered by cas_render_logged_in_card() in the plugin.
   ============================================================ */
/* Hide the legacy sidebar and Login/Register h1 when the logged-in card is showing. */
body.fastest-has-logged-in-card #primary.content-area,
body.fastest-has-logged-in-card #content > .wrap {
	width: 100%;
	max-width: none;
}
body.fastest-has-logged-in-card #secondary.widget-area { display: none; }
body.fastest-has-logged-in-card .informational-content > h1,
body.fastest-has-logged-in-card .informational-content > .divider { display: none; }

.cas-logged-in-card {
	max-width: 520px;
	margin: 60px auto;
	padding: 40px 32px;
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 20px;
	text-align: center;
	color: var(--fg-1);
	font-family: var(--font-body);
	box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
}

.cas-logged-in-eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	margin-bottom: 10px;
}
.cas-logged-in-card .cas-logged-in-title {
	font-family: var(--font-display) !important;
	font-weight: 400 !important;
	font-size: clamp(24px, 3vw, 30px) !important;
	color: var(--fg-1) !important;
	margin: 0 0 10px !important;
	letter-spacing: .01em;
	line-height: 1.2 !important;
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
}
.cas-logged-in-sub {
	font-size: 14px;
	line-height: 1.55;
	color: var(--fg-3);
	margin: 0 auto 24px;
	max-width: 400px;
}
.cas-logged-in-sub strong { color: var(--fg-1); font-weight: 600; }

.cas-logged-in-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cas-logged-in-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-family: var(--font-headline);
	font-size: var(--fs-meta);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: var(--r-pill);
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cas-logged-in-btn-primary {
	background: var(--jrpg-purple);
	border: 1px solid var(--jrpg-purple);
	color: var(--fg-1) !important;
}
.cas-logged-in-btn-primary:hover {
	background: var(--jrpg-purple-bright);
	border-color: var(--jrpg-purple-bright);
}
.cas-logged-in-btn-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .25);
	color: var(--fg-1) !important;
}
.cas-logged-in-btn-ghost:hover {
	background: color-mix(in oklch, var(--jrpg-purple-bright) 14%, transparent);
	border-color: var(--jrpg-purple-bright);
}
.cas-logged-in-btn-danger {
	background: transparent;
	border: 1px solid var(--bg-line);
	color: var(--fg-3) !important;
}
.cas-logged-in-btn-danger:hover {
	background: rgba(255, 77, 77, .12);
	border-color: rgba(255, 77, 77, .55);
	color: var(--jrpg-danger) !important;
}

/* ============================================================
   METHODOLOGY PAGES — flat sections, weight in heading, inline
   percentage chips (no nested row cards). Matches reference site.
   ============================================================ */
.fastest-methodology {
	margin: 0 0 48px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.fastest-methodology .meth-lead {
	font-size: 16px;
	color: var(--fg-2);
	line-height: 1.6;
	margin: 8px 0 0;
}
.fastest-methodology .meth-card {
	background: transparent;
	border: 0;
	padding: 0;
}
.fastest-methodology .meth-card-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}
.fastest-methodology .meth-card-head h2 {
	font-family: var(--font-headline);
	font-size: 20px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	margin: 0 !important;
	font-weight: 600 !important;
}
.fastest-methodology .meth-weight {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--fg-mute);
	font-weight: 500;
}
.fastest-methodology .meth-weight::before { content: "("; }
.fastest-methodology .meth-weight::after  { content: ")"; }
.fastest-methodology .meth-card p {
	color: var(--fg-2);
	line-height: 1.65;
	margin: 6px 0;
	font-size: 14.5px;
}
.fastest-methodology .meth-formula {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--jrpg-purple-bright);
	margin-top: 8px !important;
}
.fastest-methodology .meth-formula span:not(.meth-op) { white-space: nowrap; }
.fastest-methodology .meth-formula .meth-op { color: var(--fg-mute); }
.fastest-methodology .meth-rows {
	display: flex;
	flex-direction: column;
	margin-top: 12px;
}
.fastest-methodology .meth-row {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 10px 0;
	border-top: 1px solid var(--bg-line);
}
.fastest-methodology .meth-row:first-child { border-top: 0; padding-top: 6px; }
.fastest-methodology .meth-pct {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	color: var(--jrpg-purple-bright);
	font-weight: 600;
	min-width: 64px;
	flex-shrink: 0;
	white-space: nowrap;
}
.fastest-methodology .meth-row > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}
.fastest-methodology .meth-row strong {
	color: var(--fg-1);
	font-size: 14px;
	font-weight: 600;
}
.fastest-methodology .meth-row span {
	color: var(--fg-3);
	font-size: var(--fs-meta);
	line-height: 1.5;
}
.fastest-methodology .meth-note {
	font-size: var(--fs-meta) !important;
	font-style: italic;
	color: var(--fg-mute) !important;
	margin-top: 10px !important;
}
.fastest-methodology .meth-risk-levels .meth-pct-low  { color: var(--jrpg-success); }
.fastest-methodology .meth-risk-levels .meth-pct-mod  { color: var(--jrpg-gold); }
.fastest-methodology .meth-risk-levels .meth-pct-elev { color: var(--jrpg-magenta); }
.fastest-methodology .meth-risk-levels .meth-pct-high { color: var(--jrpg-danger); }

/* ============================================================
   GLOSSARY — /glossary/ hub (inc/glossary.php)
   ============================================================ */
/* Full-width route: neutralize the theme's legacy two-column .content-area
   width so the glossary fills the site's 1280px content wrap edge-to-edge. */
#primary.content-area.fastest-glossary {
	width: 100% !important;
	float: none !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	padding: 1.5rem 0 5rem;
}
body.fastest-is-glossary #secondary.widget-area { display: none !important; }

/* ---- Header ---- */
.fastest-glossary__head {
	margin: .5rem 0 2.5rem;
	max-width: 52rem;
}
.fastest-glossary__eyebrow {
	display: inline-block;
	font-family: var(--font-headline);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--jrpg-gold);
	margin-bottom: .5rem;
}
.fastest-glossary__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.6vw, 3.15rem);
	line-height: 1.05;
	color: var(--fg-1);
	margin: 0 0 .7rem;
	text-wrap: balance;
}
.fastest-glossary__intro {
	color: var(--fg-2);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0;
	text-wrap: pretty;
}

/* ---- Layout: sticky sidebar (search + index) + wide definition grid ---- */
.fastest-glossary__layout {
	display: grid;
	grid-template-columns: 288px minmax(0, 1fr);
	gap: 2.75rem;
	align-items: start;
}
.fastest-glossary__aside {
	position: sticky;
	top: 84px;
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
	max-height: calc(100vh - 104px);
	min-height: 0;
}

/* ---- Search ---- */
.fastest-glossary__search {
	position: relative;
	flex: none;
}
.fastest-glossary__search .fastest-glossary__filter {
	width: 100%;
	padding: .82rem 1rem .82rem 2.75rem;
	background: var(--bg-1);
	border: 1px solid var(--bg-line);
	border-radius: 12px;
	color: var(--fg-1);
	font-family: var(--font-body);
	font-size: .98rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.fastest-glossary__search .fastest-glossary__filter::placeholder { color: var(--fg-3); }
.fastest-glossary__search .fastest-glossary__filter:focus-visible {
	outline: none;
	border-color: oklch(var(--p));
	box-shadow: 0 0 0 3px oklch(var(--p) / .2);
}
.fastest-glossary__search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.15rem;
	color: var(--fg-3);
	pointer-events: none;
	transition: color .15s ease;
}
.fastest-glossary__filter:focus-visible ~ .fastest-glossary__search-icon { color: oklch(var(--p)); }

/* ---- Jump index (vertical nav in the sidebar) ---- */
.fastest-glossary__index {
	display: flex;
	flex-direction: column;
	gap: .05rem;
	min-height: 0;
	overflow-y: auto;
	padding-right: .3rem;
	scrollbar-width: thin;
}
.fastest-glossary__index-title {
	font-family: var(--font-headline);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--fg-3);
	margin: 0 0 .55rem;
	padding-inline: .55rem;
}
.fastest-glossary__index a {
	display: block;
	padding: .4rem .6rem;
	border-left: 2px solid transparent;
	border-radius: 0 7px 7px 0;
	font-family: var(--font-body);
	font-size: .92rem;
	line-height: 1.3;
	color: var(--fg-2);
	text-decoration: none;
	transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}
.fastest-glossary__index a:hover {
	color: var(--fg-1);
	background: color-mix(in oklch, oklch(var(--p)) 12%, transparent);
	border-left-color: oklch(var(--p));
}

/* ---- Definition list (single column; each entry hugs its own content) ---- */
.fastest-glossary__main { min-width: 0; }
.fastest-glossary__list { margin: 0; }
.fastest-glossary__row {
	padding: 2rem 1rem 2rem 1.4rem;
	border-top: 1px solid var(--bg-line);
	border-left: 3px solid transparent;
	scroll-margin-top: 100px;
	transition: background-color .2s ease, border-left-color .2s ease;
}
.fastest-glossary__row:last-child { border-bottom: 1px solid var(--bg-line); }
.fastest-glossary__row:target {
	border-left-color: oklch(var(--p));
	background: color-mix(in oklch, oklch(var(--p)) 8%, transparent);
}
.fastest-glossary__term {
	margin: 0 0 .6rem;
	font-family: var(--font-headline);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: .005em;
	color: var(--fg-1);
}
.fastest-glossary__def {
	max-width: 72ch;
	margin: 0;
	color: var(--fg-2);
	font-size: 1.05rem;
	line-height: 1.72;
}
.fastest-glossary__def p { margin: 0; }
.fastest-glossary__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: 1.05rem;
	font-family: var(--font-headline);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: oklch(var(--p));
	text-decoration: none;
	transition: color .15s ease;
}
.fastest-glossary__more:hover {
	color: color-mix(in oklch, oklch(var(--p)) 75%, white);
}
.fastest-glossary__more span { transition: transform .18s cubic-bezier(0.23, 1, 0.32, 1); }
.fastest-glossary__more:hover span { transform: translateX(3px); }

/* ---- Sidebar active term (scroll-spy) ---- */
.fastest-glossary__index a.is-active {
	color: var(--fg-1);
	background: color-mix(in oklch, oklch(var(--p)) 14%, transparent);
	border-left-color: oklch(var(--p));
	font-weight: 600;
}

/* ---- Empty state ---- */
.fastest-glossary__empty {
	margin: 1.5rem 0 0;
	padding: 2.5rem 2rem;
	text-align: center;
	color: var(--fg-2);
	background: var(--bg-1);
	border: 1px dashed var(--bg-line);
	border-radius: 14px;
}
.fastest-glossary__row[hidden],
.fastest-glossary__index a[hidden] { display: none; }

/* ---- Responsive: stack sidebar on top, index becomes chips ---- */
@media (max-width: 880px) {
	.fastest-glossary__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.fastest-glossary__aside {
		position: static;
		max-height: none;
		gap: 1.1rem;
	}
	.fastest-glossary__index {
		flex-direction: row;
		flex-wrap: wrap;
		gap: .5rem;
		overflow: visible;
		padding-right: 0;
	}
	.fastest-glossary__index-title {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.fastest-glossary__index a {
		border: 1px solid var(--bg-line);
		border-left-width: 1px;
		border-radius: 999px;
		padding: .34rem .8rem;
		font-size: .85rem;
	}
	.fastest-glossary__index a:hover,
	.fastest-glossary__index a.is-active {
		border-color: color-mix(in oklch, oklch(var(--p)) 55%, var(--bg-line));
		background: color-mix(in oklch, oklch(var(--p)) 12%, transparent);
	}
	.fastest-glossary__row { padding: 1.6rem 0 1.6rem 1.1rem; }
	.fastest-glossary__term { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
	.fastest-glossary__row,
	.fastest-glossary__filter,
	.fastest-glossary__search-icon,
	.fastest-glossary__index a,
	.fastest-glossary__more,
	.fastest-glossary__more span { transition: none; }
}

