/*
 * FAQ — Mega-accordion category hub (category cards + nested Q&A)
 * Depends on: design-tokens.css, log-faq-stats.css
 * Page: body.log-faq-page
 */

.faq-hub { max-width: 900px; margin: 0 auto; padding: 50px 20px 30px; }

.hub-head { text-align: center; margin-bottom: 30px; }

.hub-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sage-700);
	margin-bottom: 8px;
}

.hub-eyebrow::before,
.hub-eyebrow::after { content: ''; width: 18px; height: 2px; background: var(--sage-600); display: inline-block; }

.hub-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--ink-900); }
.hub-title em { font-style: italic; color: var(--plum-700); }
.hub-sub { color: var(--gray-600); font-size: 13.5px; margin-top: 8px; }

.cat-stack { display: flex; flex-direction: column; gap: 14px; }

.cat-mega {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
	overflow: hidden;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.cat-mega:hover { border-color: var(--gold-glass-35); }
.cat-mega.open { box-shadow: var(--shadow-md); border-color: var(--gold-glass-40); }

.cat-mega-head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px;
	text-align: left;
	transition: background .25s var(--ease);
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
}

.cat-mega-head:hover { background: var(--blush-100); }
.cat-mega.open .cat-mega-head { background: linear-gradient(120deg, var(--blush-100), transparent); }

.cmh-icon {
	width: 50px;
	height: 50px;
	border-radius: 15px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	background: linear-gradient(150deg, var(--gold-400), var(--gold-600));
	transition: transform .35s var(--ease);
}

.cat-mega.open .cmh-icon { transform: scale(1.08) rotate(-6deg); }
.cmh-icon .icon { width: 22px; height: 22px; }

.cmh-text { flex: 1; min-width: 0; }
.cmh-text h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink-900); }
.cmh-text p { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

.cmh-count {
	flex-shrink: 0;
	background: var(--paper);
	color: var(--plum-700);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	padding: 6px 13px;
	border-radius: var(--r-pill);
}

.cmh-chev {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--paper);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.cat-mega.open .cmh-chev { transform: rotate(180deg); background: var(--ink-900); color: var(--paper); }
.cmh-chev .icon { width: 15px; height: 15px; }

@media(max-width:600px) {
	.cat-mega-head { padding: 15px 16px; gap: 11px; }
	.cmh-icon { width: 40px; height: 40px; border-radius: 12px; }
	.cmh-icon .icon { width: 18px; height: 18px; }
	.cmh-text h3 { font-size: 15.5px; }
	.cmh-text p { display: none; }
	.cmh-count { font-size: 9.5px; padding: 4px 9px; }
	.cmh-chev { width: 28px; height: 28px; }
}

.cat-mega-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.cat-mega-body-inner { padding: 6px 22px 22px; display: flex; flex-direction: column; gap: 8px; }

@media(max-width:600px) {
	.cat-mega-body-inner { padding: 4px 14px 16px; }
}

.qa-item {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .25s var(--ease);
}

.qa-item:hover { border-color: var(--gold-glass-35); }
.qa-item.open { border-color: var(--plum-600); }

.qa-q {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	text-align: left;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	color: var(--ink-900);
	font-family: inherit;
	cursor: pointer;
	/* No sitewide button{background:none} reset exists on this theme —
	   without this, Chrome's raw buttonface gray wins by default. */
	background: none;
	border: none;
}

.qa-num {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--paper);
	color: var(--sage-700);
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qa-item.open .qa-num { background: var(--gold-600); color: var(--white); }

.qa-toggle {
	margin-left: auto;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--paper);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .3s var(--ease);
}

.qa-item.open .qa-toggle { transform: rotate(45deg); background: var(--gold-500); color: var(--white); }
.qa-toggle .icon { width: 11px; height: 11px; }

.qa-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }

.qa-a-inner { padding: 0 16px 16px 54px; font-size: 12.5px; line-height: 1.65; color: var(--ink-700); }
.qa-a-inner ul { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.qa-a-inner li { display: flex; align-items: flex-start; gap: 8px; }

.qa-a-inner li::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--sage-600);
	flex-shrink: 0;
	margin-top: 6px;
}

.qa-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	background: var(--blush-100);
	color: var(--plum-700);
	font-size: 10px;
	font-weight: 800;
	padding: 5px 11px;
	border-radius: var(--r-pill);
}

.qa-tag .icon { width: 10px; height: 10px; }

.qa-item.dim { opacity: .3; pointer-events: none; }
.qa-item.hidden-search { display: none; }

.no-results { display: none; text-align: center; padding: 40px 20px; color: var(--gray-600); }
.no-results.show { display: block; }
.no-results .icon { width: 36px; height: 36px; color: var(--gray-400); margin: 0 auto 12px; }
.no-results h4 { font-family: var(--display); font-size: 19px; color: var(--ink-900); }
.no-results p { font-size: 12.5px; margin-top: 6px; }
