/* FAQ — unified shell: dark nav left, white doc right, border-radius 5px */

.faq-page .faq-shell {
	height: 100vh;
	overflow: hidden;
}

.faq-page .faq-main {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	height: 100%;
	position: relative;
	overflow: hidden;
	min-width: 0;
}

@media (min-width: 640px) {
	.faq-page .faq-main {
		width: 96%;
	}
}

@media (min-width: 1280px) {
	.faq-page .faq-main {
		width: 100%;
	}
}

.faq-page .faq-scroll {
	height: 100%;
	overflow: auto;
	min-width: 0;
}

.faq-page .faq-body-wrap {
	min-height: 100%;
	margin-bottom: 4rem;
	min-width: 0;
}

.faq-page .games-page-content {
	width: 100%;
	max-width: 70rem;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

@media (min-width: 1280px) {
	.faq-page .games-page-content {
		width: 70rem;
		padding-left: 0;
		padding-right: 0;
	}
}

.faq-page-inner {
	width: 100%;
	margin: 1.5rem auto 2.5rem;
}

/* Hero */
.faq-hero {
	border-radius: 5px;
	border: 1px solid #3a2d63;
	background: linear-gradient(135deg, #1f1835 0%, #241c3d 55%, #1a1530 100%);
	padding: 1.5rem;
	margin-bottom: 1rem;
}

@media (min-width: 640px) {
	.faq-hero {
		padding: 1.75rem 2rem;
	}
}

.faq-hero-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.faq-hero-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(52, 211, 153, 0.14));
	color: #c084fc;
	font-size: 1.35rem;
}

.faq-hero-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

@media (min-width: 640px) {
	.faq-hero-title {
		font-size: 1.875rem;
	}
}

.faq-hero-desc {
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--theme9, rgba(171, 182, 194, 1));
	max-width: 48rem;
	margin: 0;
}

.faq-hero-desc a {
	color: var(--theme2, #c084fc);
	text-decoration: none;
}

.faq-hero-desc a:hover {
	text-decoration: underline;
}

/* Unified block: menu + content */
.faq-unified {
	display: flex;
	flex-direction: column;
	border-radius: 5px;
	border: 1px solid #3a2d63;
	overflow: hidden;
	background: #fff;
	min-height: 22rem;
}

@media (min-width: 1280px) {
	.faq-unified {
		flex-direction: row;
		align-items: stretch;
		min-height: 28rem;
	}
}

/* Left nav */
.faq-nav {
	flex-shrink: 0;
	background: #1f1835;
	padding: 0.85rem 0.65rem;
}

@media (min-width: 1280px) {
	.faq-nav {
		width: 13.5rem;
		padding: 1rem 0.75rem;
		border-right: 1px solid #3a2d63;
	}
}

.faq-nav-label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: var(--theme9, rgba(171, 182, 194, 1));
	padding: 0 0.45rem 0.55rem;
}

.faq-nav-links {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 0.3rem;
	padding-bottom: 0.15rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.faq-nav-links::-webkit-scrollbar {
	display: none;
}

@media (min-width: 1280px) {
	.faq-nav-links {
		display: block;
		overflow: visible;
		padding-bottom: 0;
	}
}

.faq-nav-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.6rem;
	border-radius: 5px;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

@media (min-width: 1280px) {
	.faq-nav-link {
		white-space: normal;
		margin-bottom: 0.1rem;
	}
}

.faq-nav-link i {
	width: 1rem;
	text-align: center;
	flex-shrink: 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.35);
}

.faq-nav-link:hover,
.faq-nav-link.is-active {
	background: rgba(139, 92, 246, 0.14);
	color: #fff;
}

.faq-nav-link:hover i,
.faq-nav-link.is-active i {
	color: #c084fc;
}

/* Right document pane */
.faq-content.faq-doc {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
	color: #1f2937;
	padding: 1.1rem 1rem;
	border-radius: 0;
	box-shadow: none;
}

@media (min-width: 640px) {
	.faq-content.faq-doc {
		padding: 1.35rem 1.5rem;
	}
}

@media (min-width: 1280px) {
	.faq-content.faq-doc {
		padding: 1.5rem 1.75rem;
	}
}

.faq-doc {
	--theme2: #1d4ed8;
	--theme9: #6b7280;
}

.faq-page .games-page-layout.text-white .faq-doc .faq-section-title {
	color: #111827;
}

.faq-page .games-page-layout.text-white .faq-doc .faq-section-desc {
	color: #6b7280;
}

.faq-page .games-page-layout.text-white .faq-doc .faq-panel-title {
	color: #111827;
}

.faq-page .games-page-layout.text-white .faq-doc .faq-panel-inner,
.faq-page .games-page-layout.text-white .faq-doc .faq-panel-inner p,
.faq-page .games-page-layout.text-white .faq-doc .faq-panel-inner li,
.faq-page .games-page-layout.text-white .faq-doc .faq-panel-inner td {
	color: #374151;
}

.faq-page .games-page-layout.text-white .faq-doc .faq-table th {
	color: #374151;
}

.faq-content .faq-mobile-back {
	display: none;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.85rem;
	padding: 0;
	border: none;
	background: none;
	color: #5b21b6;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

/* Topic filter: one section at a time */
.faq-unified.is-topic-filtered .faq-sections .faq-section {
	display: none;
}

.faq-unified.is-topic-filtered .faq-sections .faq-section.faq-section--active {
	display: block;
}

.faq-content .faq-section {
	margin-bottom: 0;
	scroll-margin-top: 4rem;
}

.faq-content .faq-section-head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #e5e7eb;
}

.faq-content .faq-section-icon {
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	background: #f3f4f6;
	color: #4b5563;
	font-size: 0.9rem;
}

.faq-content .faq-section-title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.15rem;
	line-height: 1.35;
}

.faq-content .faq-section-desc {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.faq-content .faq-panels {
	display: flex;
	flex-direction: column;
	counter-reset: faq-q;
}

.faq-content .faq-panel {
	border: none;
	border-radius: 0;
	background: transparent;
	border-bottom: 1px solid #e5e7eb;
	overflow: visible;
}

.faq-content .faq-panel:last-child {
	border-bottom: none;
}

.faq-content .faq-panel-head {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.85rem 0;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	color: #111827;
	font-family: inherit;
	text-decoration: none;
}

.faq-content .faq-panel-num {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.12rem;
	border-radius: 5px;
	background: #f3f4f6;
	color: #4b5563;
	font-size: 0.72rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-content .faq-panel-num::before {
	counter-increment: faq-q;
	content: counter(faq-q);
}

.faq-content .faq-panel.is-open .faq-panel-num {
	background: #374151;
	color: #fff;
}

.faq-content .faq-panel-title {
	flex: 1;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.5;
	color: #111827;
	text-decoration: none;
}

.faq-content .faq-panel-chevron {
	flex-shrink: 0;
	margin-top: 0.3rem;
	color: #9ca3af;
	transition: transform 0.25s;
	font-size: 0.68rem;
}

.faq-content .faq-panel.is-open .faq-panel-chevron {
	transform: rotate(180deg);
	color: #4b5563;
}

.faq-content .faq-panel-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s ease;
}

.faq-content .faq-panel.is-open .faq-panel-body {
	grid-template-rows: 1fr;
}

.faq-content .faq-panel-inner {
	overflow: hidden;
	font-size: 0.875rem;
	line-height: 1.7;
	color: #374151;
}

.faq-content .faq-panel.is-open .faq-panel-inner {
	padding: 0 0 1rem 2.1rem;
}

.faq-content .faq-panel-inner p {
	margin: 0 0 0.7rem;
}

.faq-content .faq-panel-inner ul,
.faq-content .faq-panel-inner ol {
	margin: 0.3rem 0 0.7rem;
	padding-left: 1.3rem;
}

.faq-content .faq-panel-inner strong {
	color: #111827;
	font-weight: 600;
}

.faq-content .faq-panel-inner a {
	color: #1d4ed8;
	text-decoration: underline;
	font-weight: 500;
}

.faq-content .faq-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
	margin: 0.6rem 0 0.8rem;
}

.faq-content .faq-table th,
.faq-content .faq-table td {
	padding: 0.45rem 0.65rem;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
}

.faq-content .faq-table th {
	background: #f9fafb;
	font-weight: 600;
}

.faq-content .faq-formula {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8125rem;
	background: #f9fafb;
	border-left: 3px solid #6b7280;
	border-radius: 0 5px 5px 0;
	padding: 0.55rem 0.8rem;
	margin: 0.6rem 0;
}

.faq-content .faq-warn {
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	border-radius: 0 5px 5px 0;
	padding: 0.6rem 0.8rem;
	font-size: 0.8125rem;
	color: #78350f;
	margin: 0.6rem 0;
}

.faq-page .site-footer {
	margin-top: 2rem;
}

/* Mobile */
@media (max-width: 1279px) {
	.faq-unified.is-topic-filtered {
		flex-direction: column;
	}

	.faq-unified.is-topic-filtered .faq-nav {
		display: none;
	}

	.faq-unified.is-topic-filtered .faq-mobile-back {
		display: inline-flex;
	}

	.faq-nav-link {
		flex: 0 0 auto;
		font-size: 0.75rem;
		border: 1px solid rgba(58, 45, 99, 0.45);
		background: rgba(0, 0, 0, 0.12);
	}

	.faq-content .faq-panel.is-open .faq-panel-inner {
		padding-left: 0;
	}
}

@media (min-width: 1280px) {
	.faq-content .faq-mobile-back {
		display: none !important;
	}
}
