/* ============================================
   HealthBridge — Category hub & CPT FAQ scoped CSS
   Scoped to: .hub-header, .hub-faq, .hub-footer, .cpt-faq,
              .faq-details, .post-card (reuse)

   Loaded only on category archive / CPT singular views where the
   module (inc/pages-extra.php) injects hub markup. Kept separate from
   the main stylesheet so hub edits do not restyle the whole site.
   ============================================ */

/* Hub header */
.hub-header {
	padding-top: 48px;
	padding-bottom: 28px;
}
.hub-header__title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--primary-dark);
}
.hub-header__overview {
	font-size: 1.05rem;
	max-width: 760px;
	line-height: 1.6;
}

/* Hub FAQ — native <details>/<summary> (JS-free) */
.hub-faq .faq-details {
	max-width: 800px;
	margin: 0 auto;
}
.hub-faq .faq-details__item {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bg);
}
.hub-faq .faq-details__q {
	cursor: pointer;
	list-style: none;
	padding: 18px 22px;
	font-weight: 600;
	font-size: 1rem;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 12px;
}
.hub-faq .faq-details__q::before {
	content: "+";
	font-size: 1.3rem;
	color: var(--text-muted);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
.hub-faq .faq-details[open] .faq-details__q::before {
	transform: rotate(45deg);
	color: var(--primary);
}
.hub-faq .faq-details__a {
	padding: 0 22px 18px;
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.6;
}

/* CPT FAQ — mirrors the hub FAQ style, scoped so it never clashes with the
   homepage .faq__list which is a button/aria accordion. */
.cpt-faq .faq-details {
	max-width: 800px;
	margin: 0 auto;
}
.cpt-faq .faq-details__item {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bg);
}
.cpt-faq .faq-details__q {
	cursor: pointer;
	list-style: none;
	padding: 18px 22px;
	font-weight: 600;
	font-size: 1rem;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 12px;
}
.cpt-faq .faq-details__q::before {
	content: "+";
	font-size: 1.3rem;
	color: var(--text-muted);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
.cpt-faq .faq-details[open] .faq-details__q::before {
	transform: rotate(45deg);
	color: var(--primary);
}
.cpt-faq .faq-details__a {
	padding: 0 22px 18px;
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.6;
}
.cpt-faq h2 {
	font-size: 1.6rem;
	margin-bottom: 20px;
	color: var(--primary-dark);
}

/* Hub footer / related topics */
.hub-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0;
	margin: 16px 0 24px;
	list-style: none;
}
.hub-footer__link {
	display: inline-block;
	padding: 8px 16px;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--primary-dark);
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
}
.hub-footer__link:hover {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}
.hub-footer__posts h4 {
	font-size: 1.1rem;
	margin: 8px 0 12px;
	color: var(--primary-dark);
}
.hub-footer__post-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.hub-footer__post-link {
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
}
.hub-footer__post-link:hover {
	color: var(--primary);
}
.hub-footer__post-date {
	font-size: 0.8rem;
	color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
	.hub-header__title {
		font-size: 1.5rem;
	}
	.hub-footer__nav ul {
		flex-direction: column;
	}
}
