/* Single question — Q&A detail layout */

.ga-q-breadcrumb a {
	transition: color 0.15s ease;
}

.ga-q-breadcrumb a:hover {
	color: #fff;
}

/* Question hero — two-column layout */
.ga-q-hero {
	position: relative;
	overflow: hidden;
}

.ga-q-hero__grid {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.ga-q-hero__grid--has-media {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
		gap: 2.5rem 3rem;
		align-items: center;
	}
}

.ga-q-hero__main {
	min-width: 0;
	width: 100%;
}

.ga-q-hero__cat {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border-radius: 0;
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #c81f32 !important;
	text-decoration: none;
	background: transparent !important;
}

.ga-q-hero__cat:hover {
	color: #a01828 !important;
	opacity: 1;
	transform: none;
}

.ga-q-hero__author-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	width: 100%;
}

.ga-q-hero__author {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.25rem 0.875rem 0.25rem 0.25rem;
	border-radius: 9999px;
	border: 1px solid rgba(17, 32, 47, 0.12);
	background: #ffffff;
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.ga-q-hero__author:hover {
	border-color: rgba(17, 32, 47, 0.22);
}

.ga-q-hero__author-avatar {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	object-fit: cover;
	flex-shrink: 0;
}

.ga-q-hero__author-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #11202f;
}

.ga-q-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
	margin-left: auto;
}

.ga-q-hero__read {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #6b7280 !important;
	white-space: nowrap;
}

.ga-q-hero__stats-inline {
	width: 100%;
}

.ga-q-hero__aside {
	min-width: 0;
}

.ga-q-hero__media {
	margin: 0;
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.55);
}

.ga-q-hero__media-img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 200px;
	max-height: 320px;
	object-fit: cover;
}

@media (min-width: 1024px) {
	.ga-q-hero__media-img {
		min-height: 260px;
		max-height: 380px;
	}
}

.ga-q-hero__title {
	margin: 0;
	max-width: none;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #11202f;
}

.ga-q-hero__title-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	margin-top: 1rem;
	width: 100%;
}

.ga-q-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	flex-shrink: 0;
}

.ga-q-hero__actions .ga-community-hub-hero__btn svg {
	margin-right: 0.15rem;
}

@media (min-width: 900px) {
	.ga-q-hero__title-row {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 2rem;
	}

	.ga-q-hero__title {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 48rem;
		padding-right: 1rem;
	}

	.ga-q-hero__actions {
		margin-left: auto;
		justify-content: flex-end;
		padding-top: 0.15rem;
	}
}

@media (min-width: 1024px) {
	.ga-q-hero__stats-inline {
		display: none !important;
	}
}

.ga-q-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.35);
	padding: 0.4rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #94a3b8;
	backdrop-filter: blur(8px);
}

.ga-q-stat-pill strong {
	color: #f1f5f9;
	font-weight: 700;
}

.ga-q-stat-pill--votes strong {
	color: #34d399;
}

.ga-q-body-card {
	position: relative;
	overflow: hidden;
}

.ga-q-body-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--primary-color);
	border-radius: 4px 0 0 4px;
}

.ga-q-author-strip {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.2);
}

.ga-q-answers-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.ga-q-answer-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	background: var(--primary-color);
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
}

.ga-q-answer {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0;
	overflow: hidden;
}

.ga-q-answer--featured {
	border-color: rgba(52, 211, 153, 0.35);
	box-shadow:
		0 8px 32px -8px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(52, 211, 153, 0.12),
		inset 0 1px 0 rgba(52, 211, 153, 0.08);
}

.ga-q-vote-rail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 1.25rem 0.75rem;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.25);
}

.ga-q-vote-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.5rem 0.35rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	color: #34d399;
	font-size: 0.75rem;
	font-weight: 700;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	cursor: pointer;
}

.ga-q-vote-btn:hover {
	background: rgba(52, 211, 153, 0.12);
	border-color: rgba(52, 211, 153, 0.35);
	transform: translateY(-1px);
}

.ga-q-vote-btn .ga-vote-count {
	font-size: 1rem;
	line-height: 1.2;
}

.ga-q-answer-body {
	padding: 1.25rem 1.5rem;
}

.ga-q-top-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 9999px;
	background: rgba(52, 211, 153, 0.12);
	border: 1px solid rgba(52, 211, 153, 0.3);
	padding: 0.2rem 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6ee7b7;
}

.ga-q-empty-answers {
	text-align: center;
	padding: 2.5rem 1.5rem;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 1rem;
	background: rgba(0, 0, 0, 0.25);
}

.ga-q-answer-form textarea {
	width: 100%;
	border-radius: 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.45);
	padding: 1rem 1.125rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #f8fafc;
	resize: vertical;
	min-height: 140px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ga-q-answer-form textarea::placeholder {
	color: #64748b;
}

.ga-q-answer-form textarea:focus {
	outline: none;
	border-color: rgba(99, 102, 241, 0.6);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.ga-q-sidebar-card {
	background: var(--secondary-color);
}

.ga-q-related-item {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: padding-left 0.15s ease;
}

.ga-q-related-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ga-q-related-item:hover {
	padding-left: 0.25rem;
}

.ga-q-related-item:hover .ga-q-related-title {
	color: #60a5fa;
}

.ga-q-jump-answer {
	scroll-margin-top: 6rem;
}

/* AnswersPin brand overrides */
.ga-q-body-card::before,
.ga-q-answer-count {
	background: var(--secondary-color);
}

.ga-q-answer-form textarea:focus {
	border-color: rgba(200, 31, 50, 0.55);
	box-shadow: 0 0 0 3px rgba(200, 31, 50, 0.18);
}

.ga-q-related-item:hover .ga-q-related-title {
	color: #ff97a3;
}

@media (max-width: 640px) {
	.ga-q-answer {
		grid-template-columns: 1fr;
	}

	.ga-q-vote-rail {
		flex-direction: row;
		justify-content: flex-start;
		padding: 0.75rem 1rem;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.ga-q-vote-btn {
		flex-direction: row;
		gap: 0.35rem;
		padding: 0.4rem 0.75rem;
	}
}

/* Answer CTA — matches community / blog sidebar promo */
.ga-q-answer-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.35rem 1.25rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(200, 31, 50, 0.16);
	background:
		linear-gradient(180deg, rgba(200, 31, 50, 0.06) 0%, rgba(255, 255, 255, 0.95) 55%),
		#ffffff;
	box-shadow: none;
	text-align: left;
}

.ga-q-answer-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 0.85rem;
	border-radius: 0.85rem;
	background: rgba(200, 31, 50, 0.1);
	color: #c81f32;
}

.ga-q-answer-cta__icon svg {
	width: 1.35rem;
	height: 1.35rem;
}

.ga-q-answer-cta__eyebrow {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c81f32 !important;
}

.ga-q-answer-cta__title {
	margin: 0.35rem 0 0;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #11202f !important;
}

.ga-q-answer-cta__desc {
	margin: 0.5rem 0 0;
	font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #6b7280 !important;
}

.ga-q-answer-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 1.1rem;
	min-height: 2.75rem;
	padding: 0.7rem 1rem;
	border-radius: 0.65rem !important;
	font-size: 0.875rem;
	font-weight: 700;
	color: #ffffff !important;
	text-decoration: none;
	box-shadow: none !important;
}

.ga-q-answer-cta__btn:hover {
	box-shadow: none !important;
}
