/*!
 * Baly theme — kit pages composed from [bch_*] blocks (the /about/ pages).
 *
 * Handle: `bch-bch-kit-page` (depends on bch-ui). Loaded only on those routes
 * (inc/chrome/chrome-assets.php). Builds on the bch-ui primitives.
 */

/* ── Shared: one reading column inside the 1320px shell */

/* Prose (kit sections + documents) */
.bch-prose { max-width: 68ch; font-size: var(--bsy-text-base); line-height: var(--bsy-leading-body); color: var(--bsy-fg2); }
.bch-prose > :first-child { margin-block-start: 0; }
.bch-prose > :last-child { margin-block-end: 0; }
.bch-prose p { margin: 0 0 var(--bsy-space-4); }
.bch-prose :is(ul, ol) { margin: 0 0 var(--bsy-space-5); padding-inline-start: var(--bsy-space-6); }
.bch-prose li { margin: 0 0 var(--bsy-space-3); padding-inline-start: 4px; }
.bch-prose li::marker { color: var(--bsy-muted); }
.bch-prose a { color: var(--bsy-brand); font-weight: var(--bsy-fw-semibold); text-decoration: none; }
.bch-prose :is(b, strong) { font-weight: var(--bsy-fw-bold); color: var(--bsy-ink); }
.bch-prose img { max-width: 100%; height: auto; border-radius: var(--bsy-radius-md); }
.bch-prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--bsy-space-6); font-size: var(--bsy-text-sm); }
.bch-prose :is(th, td) { padding: var(--bsy-space-2) var(--bsy-space-3); border-block-end: 1px solid var(--bsy-line); text-align: start; }

/* ── Kit: hero */
.bch-khero { display: grid; gap: var(--bsy-space-8); align-items: center; }
.bch-khero__label { margin: 0 0 var(--bsy-space-3); font-size: var(--bsy-text-sm); font-weight: var(--bsy-fw-medium); color: var(--bsy-muted); }
.bsy-panel .bch-khero__label { color: var(--bsy-white); }
.bch-khero__media { border-radius: var(--bsy-radius-panel); background: var(--bsy-grey-50); overflow: hidden; }
.bch-khero__media img { display: block; width: 100%; height: auto; }
@media (min-width: 961px) {
	.bch-khero--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--bsy-space-16); }
}

/* ── Kit: sections (one rhythm: --bsy-block-gap, 48 / 64) */
.bch-ksec, .bch-kcta { margin-block-start: var(--bsy-block-gap); }
@media (min-width: 961px) {
	/* Prose-only section: title column beside the text. */
	.bch-ksec--split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--bsy-space-16); align-items: start; }
	.bch-ksec--split > .bsy-shead { margin: 0; }
}
.bch-ksec .bch-prose { max-width: none; }
.bch-ksec--split .bch-prose { max-width: 68ch; }

/* Link rows (every card is a link): icon · title + line · chevron */
.bch-krows, .bch-prose .bch-krows, .bch-kgrid, .bch-prose .bch-kgrid { margin: 0; padding: 0; list-style: none; }
.bch-krows > li, .bch-kgrid > li { margin: 0; padding: 0; }
.bch-krows { border-block-start: 1px solid var(--bsy-line); }
/* Link rows: 2 columns on tablets, 3 on desktop (a full-width row put the
   chevron 1,100px from its label). Rows keep their bottom rule. */
@media (min-width: 641px) {
	.bch-krows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--bsy-space-8); border-block-start: 0; }
}
@media (min-width: 961px) {
	.bch-krows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bch-krows .bch-kcard__ic {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: var(--bsy-radius-pill); background: var(--bsy-grey-50);
}
.bch-krows .bch-kcard { border-block-end: 1px solid var(--bsy-line); }
.bch-krows .bch-kcard__in {
	display: flex; align-items: center; gap: var(--bsy-space-4);
	min-height: 64px; padding: var(--bsy-space-4) 0;
	color: var(--bsy-ink); text-decoration: none;
}
@media (hover: hover) { .bch-krows a.bch-kcard__in:hover .bch-kcard__t { color: var(--bsy-brand); } }
.bch-kcard__ic { display: inline-flex; flex: none; color: var(--bsy-fg2); }
.bch-kcard__ic svg { width: var(--bsy-size-icon-lg); height: var(--bsy-size-icon-lg); }
.bch-kcard__tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
/* 700 (preloaded Bold), not the board's 600: on these light pages a 600 title made
   the page fetch a fifth font file and cost ~300 ms LCP (Lighthouse, 2026-11-07). */
.bch-kcard__t { text-wrap: balance; margin: 0; font-size: var(--bsy-text-base); font-weight: var(--bsy-fw-bold); line-height: 1.4; color: var(--bsy-ink); }
.bch-kcard__d { font-size: var(--bsy-text-sm); line-height: var(--bsy-leading-small); color: var(--bsy-fg2); }
.bch-kcard__tags { font-size: var(--bsy-text-sm); line-height: var(--bsy-leading-small); color: var(--bsy-muted); }
.bch-kcard__chev { display: inline-flex; flex: none; color: var(--bsy-muted); }
.bch-kcard__chev svg { width: var(--bsy-size-icon); height: var(--bsy-size-icon); }
.bch-krows .bch-kcard__cta { display: none; }
@media (min-width: 641px) { .bch-kcard__t { font-size: var(--bsy-text-md); } }

/* Item grid (not every card a link): icon, h3, line, optional link */
.bch-kgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bsy-space-6); }
.bch-kgrid .bch-kcard__in { display: flex; flex-direction: column; gap: var(--bsy-space-3); height: 100%; color: var(--bsy-ink); text-decoration: none; }
.bch-kgrid .bch-kcard__ic { color: var(--bsy-brand); }
.bch-kgrid .bch-kcard__chev { display: none; }
.bch-kgrid .bch-kcard__cta {
	display: inline-flex; align-items: center; gap: var(--bsy-space-1); margin-block-start: var(--bsy-space-1);
	font-size: var(--bsy-text-base); font-weight: var(--bsy-fw-bold); color: var(--bsy-brand);
}
.bch-kgrid .bch-kcard__cta svg { width: 16px; height: 16px; }
@media (hover: hover) { .bch-kgrid a.bch-kcard__in:hover .bch-kcard__cta { color: var(--bsy-brand-hover); } }
@media (min-width: 641px) { .bch-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 961px) {
	.bch-kgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bch-kgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Figures row */
.bch-kstats { display: flex; flex-wrap: wrap; gap: var(--bsy-space-8); margin: var(--bsy-space-6) 0 0; }
.bch-kstat { display: flex; flex-direction: column-reverse; gap: var(--bsy-space-1); }
.bch-kstat dd { margin: 0; font-size: var(--bsy-text-xl); font-weight: var(--bsy-fw-bold); line-height: 1.2; color: var(--bsy-ink); font-variant-numeric: tabular-nums; }
.bch-kstat dt { font-size: var(--bsy-text-sm); color: var(--bsy-muted); }

/* Brand call-to-action panel */
.bch-kcta { display: flex; flex-direction: column; gap: var(--bsy-space-6); }
.bch-kcta__t { margin: 0; font-size: var(--bsy-text-lg); font-weight: var(--bsy-fw-bold); line-height: var(--bsy-leading-h1); color: var(--bsy-white); }
.bch-kcta__p { margin: var(--bsy-space-3) 0 0; font-size: var(--bsy-text-base); line-height: var(--bsy-leading-body); color: var(--bsy-white); }
.bch-kcta__acts { display: flex; flex-wrap: wrap; gap: var(--bsy-space-3); }
.bch-kcta__acts .bsy-btn { flex: 1 1 100%; }
@media (min-width: 641px) {
	.bch-kcta { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--bsy-space-12); }
	.bch-kcta__t { font-size: var(--bsy-text-2xl); }
	.bch-kcta__p { font-size: var(--bsy-text-md); }
	.bch-kcta__acts .bsy-btn { flex: none; }
}


/* 4-up feature row (driverclub About): one bordered row with dividers. */
.bch-kgrid--4 { gap: 0; border-block: 1px solid var(--bsy-line); }
.bch-kgrid--4 > li + li { border-block-start: 1px solid var(--bsy-line); }
.bch-kgrid--4 .bch-kcard__in { padding-block: var(--bsy-space-6); }
@media (min-width: 961px) {
	.bch-kgrid--4 { gap: 0; }
	.bch-kgrid--4 > li + li { border-block-start: 0; border-inline-start: 1px solid var(--bsy-line); }
	.bch-kgrid--4 .bch-kcard__in { padding: var(--bsy-space-8) 28px; }
	.bch-kgrid--4 > li:first-child .bch-kcard__in { padding-inline-start: 0; }
	.bch-kgrid--4 > li:last-child .bch-kcard__in { padding-inline-end: 0; }
}

/* A page-ending CTA right above the blue footer band is drawn light, so the
   page doesn't end on two blue slabs. */
.bch-kcta--light { background: var(--bsy-grey-50); color: var(--bsy-ink); }
.bch-kcta--light .bch-kcta__t { color: var(--bsy-ink); }
.bch-kcta--light .bch-kcta__p { color: var(--bsy-fg2); }
