/*!
 * نادي كباتن بَلي — FAQ + announcements (handle `bdc-pages`, after `bdc`;
 * the FAQ page also loads the theme's bch-ui-faq + bch-ui-nav).
 * Boards: After-dc-faq, After-dc-announcements.
 */

/* ── Feed text (their back office): steps, leads, links */
.bdc .bdc-steps { display: flex; flex-direction: column; gap: var(--bsy-space-3); margin: 0 0 var(--bsy-space-4); padding: 0; list-style: none; counter-reset: bdc-step; }
.bdc .bdc-steps > li { display: flex; align-items: flex-start; gap: var(--bsy-space-3); margin: 0; color: var(--bsy-ink); counter-increment: bdc-step; }
.bdc .bdc-steps > li::before {
	content: counter(bdc-step, arabic-indic);
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 28px; height: 28px; border-radius: var(--bsy-radius-pill);
	background: var(--bsy-grey-100);
	font-size: var(--bsy-text-sm); font-weight: var(--bsy-fw-bold); line-height: 1;
}
.bdc-rich__lead { font-weight: var(--bsy-fw-bold); color: var(--bsy-ink); }
.bdc-rich a, .bsy-faq__a a { color: var(--bsy-brand); font-weight: var(--bsy-fw-semibold); text-decoration: none; overflow-wrap: anywhere; }

/* ── FAQ: groups on the page, a jump list + support card beside them */
.bdc-faq { display: flex; flex-direction: column; gap: var(--bsy-space-8); }
.bdc-faq__main { display: flex; flex-direction: column; gap: var(--bsy-block-gap, 48px); min-width: 0; }
/* The page head (crumbs → title → chips) keeps the theme's own spacing inside. */
.bdc-head { display: flex; flex-direction: column; }
.bdc-faq__grp .bsy-faq__title { scroll-margin-block-start: calc(var(--bch-header-h, var(--bsy-size-header)) + var(--bsy-space-4)); }
.bdc-faq__chips { margin-block-start: var(--bsy-space-6); }
.bdc-faq__toc { display: none; }
.bdc-faq__toc-h { margin: 0 0 var(--bsy-space-2); font-size: var(--bsy-text-sm); font-weight: var(--bsy-fw-medium); color: var(--bsy-muted); }
.bdc-faq__toc ul { margin: 0; padding: 0; list-style: none; }
.bdc-faq__toc a {
	display: flex; align-items: center; justify-content: space-between; gap: var(--bsy-space-3);
	min-height: var(--bsy-size-tap);
	border-block-end: 1px solid var(--bsy-line);
	font-size: var(--bsy-text-base); font-weight: var(--bsy-fw-medium); color: var(--bsy-ink); text-decoration: none;
}
.bdc-faq__toc a:hover { color: var(--bsy-brand); }
.bdc-faq__n { font-size: var(--bsy-text-sm); color: var(--bsy-muted); font-variant-numeric: tabular-nums; }
.bdc-help {
	display: flex; flex-direction: column; align-items: stretch; gap: var(--bsy-space-3);
	padding: var(--bsy-space-5);
	border-radius: var(--bsy-radius-lg); background: var(--bsy-grey-50);
}
.bdc-help__ic { display: none; color: var(--bsy-brand); }
.bdc-help__t { margin: 0; font-size: var(--bsy-text-md); font-weight: var(--bsy-fw-bold); line-height: 1.4; }
.bdc-help__p { margin: 0; font-size: var(--bsy-text-base); line-height: var(--bsy-leading-body); color: var(--bsy-fg2); }
.bdc-help__wa { justify-content: center; min-height: var(--bsy-size-tap); }
@media (min-width: 961px) {
	.bdc-faq { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--bsy-space-20); align-items: start; }
	.bdc-faq__main { gap: var(--bsy-block-gap, 64px); }
	.bdc-faq__chips { display: none; }
	.bdc-faq__side { position: sticky; inset-block-start: calc(var(--bch-header-h, var(--bsy-size-header)) + var(--bsy-space-6)); display: flex; flex-direction: column; gap: var(--bsy-space-8); padding-block-start: var(--bsy-space-24); }
	.bdc-faq__toc { display: block; }
	.bdc-help { align-items: flex-start; padding: var(--bsy-space-6); border: 1px solid var(--bsy-line); background: var(--bsy-white); }
	.bdc-help__ic { display: flex; }
	.bdc-help__wa { justify-content: flex-start; min-height: 0; }
}

/* ── Announcements: each post on the page, no card */
.bdc-anns { display: flex; flex-direction: column; gap: var(--bsy-space-6); max-width: 760px; }
.bdc-ann { display: flex; flex-direction: column; gap: var(--bsy-space-4); padding-block-start: var(--bsy-space-6); border-block-start: 1px solid var(--bsy-line); }
.bdc-ann__date { display: inline-flex; align-items: center; gap: var(--bsy-space-2); font-size: var(--bsy-text-sm); font-weight: var(--bsy-fw-medium); color: var(--bsy-muted); font-variant-numeric: tabular-nums; }
.bdc-ann__date .bdc-i { color: var(--bsy-muted); }
.bdc-ann__t { margin: 0; font-size: var(--bsy-text-section-sm); font-weight: var(--bsy-fw-bold); line-height: var(--bsy-leading-h1); }
.bdc-ann .bdc-rich { display: flex; flex-direction: column; gap: var(--bsy-space-4); font-size: var(--bsy-text-base); line-height: 1.8; color: var(--bsy-ink); }
.bdc-ann .bdc-rich > * { margin: 0; }
.bdc-ann .bdc-rich h3 { margin-block-start: var(--bsy-space-1); font-size: var(--bsy-text-md); line-height: 1.4; }
.bdc-live {
	display: flex; flex-direction: column; align-items: stretch; gap: var(--bsy-space-3);
	padding: var(--bsy-space-5);
	border-radius: var(--bsy-radius-lg); background: var(--bsy-brand-lighter);
}
.bdc-live__t { margin: 0; font-size: var(--bsy-text-lg); font-weight: var(--bsy-fw-bold); line-height: 1.4; }
@media (min-width: 641px) {
	.bdc-anns { gap: var(--bsy-space-10); }
	.bdc-ann { gap: var(--bsy-space-5); padding-block-start: var(--bsy-space-8); }
	.bdc-ann__t { font-size: var(--bsy-text-section); line-height: 1.4; }
	.bdc-ann .bdc-rich { font-size: var(--bsy-text-md); }
	.bdc-ann .bdc-rich h3 { font-size: var(--bsy-text-lg); }
	.bdc-live { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--bsy-space-6); padding: var(--bsy-space-5) var(--bsy-space-6); }
}
