/* ==========================================================================
   GABOCHIE COMMUNITY — public Q&A styles
   Built on the Gabochie Value design system
   (themes/gabochie-value/assets/css/styles.css):
   theme tokens only, blog-archive .container width (1280px),
   blog-filter pill grammar, res-card surface grammar, btn-gold CTA,
   .pagination grammar. Dark mode via body.dark-mode variable swaps.
   ========================================================================== */

/* The page template already wraps shortcode output in .container
   (max-width 1280px, same as the blog archive). Keep the wrap free of
   nested constraints; max-width here only guards non-container contexts. */
.gqc-wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

/* ---- Section header (replaces the old floating hero card) ---- */
.gqc-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin: 3.5rem 0 1.5rem;
}

.gqc-head h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--charcoal);
	margin: 0 0 .5rem;
	text-wrap: balance;
}

.gqc-head p {
	max-width: 640px;
	font-size: 1rem;
	line-height: 1.9;
	color: var(--mist);
	margin: 0;
}

.gqc-ask-cta {
	flex-shrink: 0;
}

/* ---- Stage filter pills ---- */
.gqc-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .65rem;
	margin: 0 0 2.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--teal-pale, rgba(7,46,40,.04));
	border: 1px solid var(--border-light, rgba(0,0,0,.06));
	border-radius: var(--r, 8px);
}

.gqc-chip {
	display: inline-flex;
	align-items: center;
	padding: .55rem 1.15rem;
	font-size: .73rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--teal);
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: border-color .25s ease, color .25s ease, background .25s ease;
	text-decoration: none;
	white-space: nowrap;
	background: #fff;
}

@media (min-width: 768px) {
	.gqc-chips {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: .75rem;
		padding: 1.5rem 2rem;
	}
	.gqc-chip {
		justify-content: center;
	}
}

.gqc-chip:hover {
	border-color: var(--gold);
	color: var(--gold);
	background: rgba(201,169,110,.06);
}

.gqc-chip.is-active {
	background: var(--teal);
	border-color: var(--teal);
	color: #faf7f2;
}

/* ---- Question list ---- */
.gqc-list {
	display: grid;
	gap: 1.25rem;
}

/* Q&A card: answers rail + content column */
.gqc-card {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 1.5rem;
	align-items: start;
	background: var(--ivory);
	border: 1px solid var(--border-light);
	border-radius: var(--r);
	padding: 1.75rem 1.6rem;
	transition: transform .3s ease, box-shadow .3s ease;
}

.gqc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.gqc-stats {
	background: var(--teal-pale);
	border: 1px solid var(--border-light);
	border-radius: var(--r-sm);
	padding: .85rem .5rem;
	text-align: center;
}

.gqc-stats-num {
	display: block;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.55rem;
	line-height: 1;
	color: var(--teal);
	font-variant-numeric: tabular-nums;
}

.gqc-stats-label {
	display: block;
	margin-top: .4rem;
	font-size: .6rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mist);
	font-weight: 600;
}

.gqc-card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gqc-stage {
	align-self: flex-start;
	font-size: .62rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 600;
	margin-bottom: .55rem;
}

.gqc-card h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--charcoal);
	margin: 0 0 .5rem;
	text-wrap: balance;
}

.gqc-card h3 a {
	color: inherit;
	text-decoration: none;
}

.gqc-card h3 a:hover {
	color: var(--teal);
}

.gqc-card-body > p {
	font-size: .9rem;
	line-height: 1.8;
	color: var(--mist);
	margin: 0 0 1rem;
}

.gqc-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: .75rem;
	letter-spacing: .04em;
	color: var(--mist);
}

.gqc-card-meta span + span::before {
	content: '\00b7';
	margin-right: .55rem;
	color: var(--border);
}

/* ---- Empty state ---- */
.gqc-empty {
	margin-top: 1rem;
	padding: 4.5rem 2rem;
	text-align: center;
	background: var(--cream);
	border: 1px dashed var(--border);
	border-radius: var(--r);
}

.gqc-empty-icon {
	width: 46px;
	height: 46px;
	color: var(--gold);
	margin: 0 auto 1.25rem;
	display: block;
}

.gqc-empty h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--charcoal);
	margin: 0 0 .5rem;
}

.gqc-empty p {
	color: var(--mist);
	font-size: .95rem;
	line-height: 1.8;
	max-width: 460px;
	margin: 0 auto 1.75rem;
}

/* ---- Pagination (theme .pagination grammar, type=list markup) ---- */
.gqc-pagination {
	display: flex;
	justify-content: center;
	margin-top: 3.5rem;
}

.gqc-pagination .page-numbers {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: center;
	padding: 0;
	margin: 0;
}

.gqc-pagination .page-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .9rem;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	color: var(--teal);
	font-size: .85rem;
	text-decoration: none;
	transition: border-color .25s ease, color .25s ease;
}

.gqc-pagination .page-numbers .page-numbers.current {
	background: var(--teal);
	border-color: var(--teal);
	color: #faf7f2;
}

.gqc-pagination .page-numbers .page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold);
}

/* ---- Ask form ---- */
.gqc-ask {
	margin-top: 3.5rem;
	background: var(--cream);
	border: 1px solid var(--border-light);
	border-radius: var(--r);
	padding: 2.5rem;
}

.gqc-ask h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 400;
	color: var(--charcoal);
	margin: 0 0 .4rem;
	text-wrap: balance;
}

.gqc-ask-note {
	color: var(--mist);
	margin: 0 0 1.75rem;
	line-height: 1.7;
	max-width: 560px;
}

.gqc-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.gqc-field {
	margin-bottom: 1.25rem;
}

.gqc-field label {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .05em;
	color: var(--teal-deep);
	margin-bottom: .45rem;
}

.gqc-field input,
.gqc-field select,
.gqc-field textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .75rem .9rem;
	font-family: 'Jost', sans-serif;
	font-size: .95rem;
	background: var(--ivory);
	color: var(--charcoal);
	transition: border-color .2s ease;
}

.gqc-field input:focus,
.gqc-field select:focus,
.gqc-field textarea:focus {
	border-color: var(--teal);
	outline: none;
}

.gqc-field textarea {
	resize: vertical;
}

.gqc-form-actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: .5rem;
}

.gqc-submit[disabled] {
	opacity: .55;
	cursor: wait;
	transform: none;
}

.gqc-form-msg {
	font-size: .88rem;
	color: var(--mist);
}

.gqc-form-msg.is-error {
	color: #b3261e;
}

.gqc-form-msg.is-ok {
	color: #2e7d5b;
}

body.dark-mode .gqc-form-msg.is-error {
	color: #f2b8b2;
}

body.dark-mode .gqc-form-msg.is-ok {
	color: #7fd0a5;
}

/* ==========================================================================
   SINGLE QUESTION PAGE (template uses <main class="container gqc-single">;
   .container already provides 1280px width + side padding — only set
   vertical rhythm here so the blog-archive width is preserved.
   main.gqc-single beats .container on specificity regardless of load order.)
   ========================================================================== */
main.gqc-single {
	padding-top: 4rem;
	padding-bottom: 5rem;
}

.gqc-back {
	margin-bottom: 1.5rem;
	font-size: .9rem;
}

.gqc-back a {
	color: var(--teal);
	text-decoration: none;
}

.gqc-back a:hover {
	color: var(--gold);
}

.gqc-question {
	max-width: 880px;
	margin: 0 auto 2.5rem;
	background: var(--ivory);
	border: 1px solid var(--border-light);
	border-radius: var(--r);
	padding: 2.5rem;
}

.gqc-question-head h1 {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--charcoal);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 400;
	line-height: 1.25;
	margin: .6rem 0 .75rem;
	text-wrap: balance;
}

.gqc-question-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	font-size: .8rem;
	color: var(--mist);
}

.gqc-question-meta span + span::before {
	content: '\00b7';
	margin-right: .75rem;
	color: var(--border);
}

.gqc-lead-flag {
	background: var(--teal-light);
	color: var(--teal-deep);
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: .3rem .7rem;
	border-radius: 999px;
	border: 1px solid var(--border);
}

.gqc-question-body {
	color: var(--charcoal);
	line-height: 1.75;
	margin-top: 1.25rem;
}

.gqc-question-body p {
	margin: 0 0 1rem;
}

/* ---- Answers ---- */
.gqc-answers {
	max-width: 880px;
	margin: 0 auto;
}

.gqc-answers h2 {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--charcoal);
	font-size: 1.4rem;
	font-weight: 400;
	margin-bottom: 1.25rem;
}

.gqc-answer-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: grid;
	gap: 1.25rem;
}

.gqc-answer {
	background: var(--ivory);
	border: 1px solid var(--border-light);
	border-radius: var(--r-sm);
	padding: 1.4rem 1.6rem;
}

.gqc-answer-head {
	display: flex;
	align-items: baseline;
	gap: .8rem;
	margin-bottom: .5rem;
}

.gqc-answer-head strong {
	color: var(--teal-deep);
}

.gqc-answer-head span {
	font-size: .78rem;
	color: var(--mist);
}

.gqc-answer-body {
	color: var(--charcoal);
	line-height: 1.7;
}

.gqc-no-answers {
	color: var(--mist);
	margin-bottom: 1.5rem;
}

/* Comment form (theme-styled) */
.gqc-answers .comment-form label {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .05em;
	color: var(--teal-deep);
}

.gqc-answers .comment-form input[type="text"],
.gqc-answers .comment-form input[type="email"],
.gqc-answers .comment-form input[type="url"],
.gqc-answers .comment-form textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: .75rem .9rem;
	font-family: 'Jost', sans-serif;
	font-size: .95rem;
	background: var(--ivory);
	color: var(--charcoal);
}

.gqc-answers .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.gqc-answers .form-submit .submit {
	padding: 1rem 2.5rem;
	background: var(--gold);
	color: var(--teal-dark);
	font-family: 'Jost', sans-serif;
	font-size: .76rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 500;
	border: none;
	cursor: pointer;
	border-radius: var(--r-sm);
	min-height: 48px;
	transition: background .2s ease, transform .2s ease;
}

.gqc-answers .form-submit .submit:hover {
	background: #ddb96e;
	transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
	.gqc-card {
		grid-template-columns: 64px 1fr;
		gap: 1.1rem;
		padding: 1.4rem 1.3rem;
	}
}

@media (max-width: 700px) {
	.gqc-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		margin-top: 2.5rem;
	}

	.gqc-ask-cta {
		width: 100%;
	}

	.gqc-form-row {
		grid-template-columns: 1fr;
	}

	.gqc-ask {
		padding: 1.75rem;
	}

	.gqc-question {
		padding: 1.75rem;
	}

	main.gqc-single {
		padding-top: 3rem;
		padding-bottom: 4rem;
	}
}

@media (max-width: 480px) {
	.gqc-card {
		grid-template-columns: 1fr;
	}

	.gqc-stats {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .5rem;
		padding: .5rem 1rem;
	}

	.gqc-stats-num {
		font-size: 1.15rem;
	}

	.gqc-stats-label {
		margin-top: 0;
	}
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.gqc-card,
	.gqc-chip,
	.gqc-ask-cta,
	.gqc-submit,
	.gqc-answers .form-submit .submit {
		transition: none;
	}
}
