/**
 * APS FAQ — public (front-end) styles.
 *
 * Layout: CSS multi-column flow — three columns on wide viewports, auto
 * collapsing to two then one as width shrinks (via the `columns` shorthand
 * with a min column width). Each Q+A is wrapped in `.aps-faq-item` so
 * `break-inside: avoid` keeps the pair together.
 *
 * Tokens (theme CSS custom properties) are referenced via var() with
 * sensible fallbacks so the plugin still looks reasonable outside the
 * aps theme. See codebase-overview: theme is source of truth for tokens.
 */

.aps-faq-container {
	margin: 2rem 0;
	padding: 0 1.5rem;
}

.aps-faq-footer {
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--border-light, #d4d4d4);
}

.aps-faq-title {
	font-size: 1.75rem;
	text-align: center;
	margin: 0 0 1.5rem;
	color: var(--text-primary, #1a1a2e);
}

/* Multi-column flow. `columns: 20rem 3` = aim for 3 columns, each ≥ 20rem,
 * falling back to 2 then 1 as the viewport narrows. */
.aps-faq-list {
	columns: 20rem 3;
	column-gap: 2rem;
	margin: 0;
	padding: 0;
}

.aps-faq-item {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 1.5rem;
}

.aps-faq-question {
	font-weight: 600;
	margin: 0 0 0.35rem;
	color: var(--text-primary, #1a1a2e);
}

.aps-faq-answer {
	margin: 0;
	padding: 0;
	color: var(--text-secondary, #525252);
	font-size: 0.95rem;
	line-height: 1.5;
}

.aps-faq-answer p {
	margin: 0 0 0.5rem;
}

.aps-faq-answer p:last-child {
	margin-bottom: 0;
}

.aps-faq-admin-hint {
	margin-top: 1.5rem;
	font-size: 0.75rem;
	color: var(--text-tertiary, #737373);
	text-align: center;
}

.aps-faq-admin-hint a {
	color: inherit;
	text-decoration: underline;
}
