/**
 * Community marketing strip, FAQ, and song CTAs.
 */

.kp-bb-community-strip {
	padding: 2rem 0 2.5rem;
	background:
		radial-gradient(ellipse 70% 80% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
		linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent 65%);
	border-top: 1px solid var(--bb-border, #d4e5f7);
}

html[data-theme="dark"] .kp-bb-community-strip {
	background:
		radial-gradient(ellipse 60% 70% at 100% 10%, rgba(59, 130, 246, 0.1), transparent 50%),
		linear-gradient(180deg, rgba(148, 163, 184, 0.06), transparent 70%);
	border-top-color: rgba(148, 163, 184, 0.18);
}

.kp-bb-community-strip__inner {
	display: grid;
	gap: 1.35rem;
}

@media (min-width: 768px) {
	.kp-bb-community-strip__inner {
		grid-template-columns: 1.45fr auto;
		align-items: center;
		gap: 2rem;
	}
}

.kp-bb-community-strip__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bb-muted, #64748b);
}

.kp-bb-community-strip__eyebrow::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: var(--bb-accent, #e30613);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bb-accent, #e30613) 18%, transparent);
}

html[data-theme="dark"] .kp-bb-community-strip__eyebrow {
	color: #94a3b8;
}

.kp-bb-community-strip__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--bb-text, #0f172a);
	line-height: 1.28;
	max-width: 28ch;
}

html[data-theme="dark"] .kp-bb-community-strip__title {
	color: #f8fafc;
}

.kp-bb-community-strip__lede {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--bb-muted, #64748b);
	max-width: 42ch;
}

html[data-theme="dark"] .kp-bb-community-strip__lede {
	color: #94a3b8;
}

.kp-bb-community-strip__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.kp-bb-community-strip__actions .kp-bb-btn {
	min-width: 10.5rem;
	justify-content: center;
}

.kp-bb-community-strip__actions .kp-bb-btn--ghost {
	background: transparent;
	border: 1px solid var(--bb-border, #cbd5e1);
	color: var(--bb-text, #0f172a);
}

html[data-theme="dark"] .kp-bb-community-strip__actions .kp-bb-btn--ghost {
	background: rgba(148, 163, 184, 0.08);
	border-color: rgba(148, 163, 184, 0.35);
	color: #e2e8f0;
}

html[data-theme="dark"] .kp-bb-community-strip__actions .kp-bb-btn--ghost:hover,
html[data-theme="dark"] .kp-bb-community-strip__actions .kp-bb-btn--ghost:focus-visible {
	background: rgba(148, 163, 184, 0.16);
	border-color: rgba(226, 232, 240, 0.45);
	color: #f8fafc;
}

.kp-bb-community-strip__actions .kp-bb-text-cta {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--bb-muted, #64748b);
}

html[data-theme="dark"] .kp-bb-community-strip__actions .kp-bb-text-cta {
	color: #94a3b8;
}

html[data-theme="dark"] .kp-bb-community-strip__actions .kp-bb-text-cta:hover,
html[data-theme="dark"] .kp-bb-community-strip__actions .kp-bb-text-cta:focus-visible {
	color: #e2e8f0;
}

.kp-bb-community-faq {
	padding: 2.5rem 0 3rem;
	border-top: 1px solid var(--bb-border, #e2e8f0);
}

html[data-theme="dark"] .kp-bb-community-faq {
	border-top-color: rgba(148, 163, 184, 0.18);
}

.kp-bb-community-faq__title {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--bb-text, #0f172a);
}

html[data-theme="dark"] .kp-bb-community-faq__title {
	color: #f8fafc;
}

.kp-bb-community-faq__list {
	display: grid;
	gap: 0.65rem;
	max-width: 48rem;
}

.kp-bb-community-faq__item {
	border: 1px solid var(--bb-border, #e2e8f0);
	border-radius: 0.75rem;
	background: var(--bb-surface, #fff);
	padding: 0.85rem 1rem;
}

html[data-theme="dark"] .kp-bb-community-faq__item {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.22);
}

.kp-bb-community-faq__q {
	cursor: pointer;
	font-weight: 700;
	color: var(--bb-text, #0f172a);
	list-style: none;
}

html[data-theme="dark"] .kp-bb-community-faq__q {
	color: #e2e8f0;
}

.kp-bb-community-faq__q::-webkit-details-marker {
	display: none;
}

.kp-bb-community-faq__a {
	margin: 0.65rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--bb-muted, #64748b);
}

html[data-theme="dark"] .kp-bb-community-faq__a {
	color: #94a3b8;
}

.kp-bb-song-community {
	margin: 0;
}

.kp-bb-song-community--footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.75rem;
	margin-top: 0.15rem;
}

.kp-bb-song-community--inline {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.4rem;
	margin-left: 0.15rem;
}

.kp-bb-song-community__lede {
	display: none;
}

.kp-bb-song-community__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	align-items: center;
	font-size: 0.88rem;
}

.kp-bb-song-community__sep {
	display: inline-block;
	width: 1px;
	height: 0.9rem;
	background: color-mix(in srgb, var(--bb-border, #cbd5e1) 90%, transparent);
	flex-shrink: 0;
}

body.kp-bb-song .kp-song__hero-quiet,
body.kp-bb-sargam .kp-song__hero-quiet,
body.kp-bb-chord .kp-song__hero-quiet,
a.kp-song__hero-quiet {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--bb-muted, #64748b) !important;
	font-size: 0.82rem;
	font-weight: 650;
	text-decoration: none !important;
	white-space: nowrap;
}

body.kp-bb-song .kp-song__hero-quiet-icon,
body.kp-bb-sargam .kp-song__hero-quiet-icon,
body.kp-bb-chord .kp-song__hero-quiet-icon {
	flex-shrink: 0;
	opacity: 0.85;
}

body.kp-bb-song a.kp-song__hero-quiet:hover,
body.kp-bb-sargam a.kp-song__hero-quiet:hover,
body.kp-bb-chord a.kp-song__hero-quiet:hover {
	color: var(--bb-accent) !important;
	text-decoration: underline !important;
}

/* After-notes + blog promo */
.kp-bb-community-after,
.kp-bb-community-promo {
	display: grid;
	gap: 0.85rem;
	margin: 1.1rem 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--bb-border, #d4e5f7);
	border-radius: var(--bb-radius, 0.75rem);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--bb-accent, #e30613) 6%, transparent), transparent 55%),
		var(--bb-surface, #fff);
}

@media (min-width: 720px) {
	.kp-bb-community-after,
	.kp-bb-community-promo {
		grid-template-columns: 1.4fr auto;
		align-items: center;
		gap: 1.25rem;
		padding: 1.15rem 1.25rem;
	}
}

.kp-bb-community-after__title,
.kp-bb-community-promo__title {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--bb-text, #0f172a);
	line-height: 1.25;
}

.kp-bb-community-after__lede,
.kp-bb-community-promo__lede {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--bb-muted, #64748b);
}

.kp-bb-community-after__actions,
.kp-bb-community-promo__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
}

html[data-theme="dark"] .kp-bb-community-after,
html[data-theme="dark"] .kp-bb-community-promo {
	background:
		linear-gradient(135deg, rgba(227, 6, 19, 0.1), transparent 55%),
		rgba(15, 23, 42, 0.65);
	border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .kp-bb-community-after__title,
html[data-theme="dark"] .kp-bb-community-promo__title {
	color: #f8fafc;
}

/* Account dashboard community strip */
.kp-account-community {
	margin: 0.85rem 0 1rem;
	padding: 0.95rem 1.05rem;
	border: 1px solid var(--bb-border, #d4e5f7);
	border-radius: var(--bb-radius, 0.75rem);
	background: color-mix(in srgb, var(--bb-surface, #fff) 88%, var(--bb-bg, #f8fafc));
}

.kp-account-community__title {
	margin: 0 0 0.25rem;
	font-size: 0.98rem;
	font-weight: 800;
	color: var(--bb-text, #0f172a);
}

.kp-account-community__lede {
	margin: 0 0 0.7rem;
	font-size: 0.86rem;
	line-height: 1.4;
	color: var(--bb-muted, #64748b);
}

.kp-account-community__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.6rem;
}

html[data-theme="dark"] .kp-account-community {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .kp-account-community__title {
	color: #f8fafc;
}
