/*
 * Division of work.
 *
 * Placeholder proportions, waiting on the case study design. The one rule here
 * that is not provisional is the top alignment: item counts are uneven and the
 * shorter column must not stretch, centre, or get padded to match.
 *
 * Same rules as every component stylesheet: design-system `--btx-*` tokens
 * only, a fallback on every var(). See cta-button/style.css for the full note.
 */

@layer bertex-components {
	.btxc-division {
		box-sizing: border-box;
		font-family: var(--btx-font-body-family, system-ui, sans-serif);
		color: var(--btx-color-primary-1, #1a2744);
	}

	.btxc-division__heading {
		margin: 0 0 var(--btx-text-spacing, 1rem);

		font-family: var(--btx-font-heading-family, system-ui, sans-serif);
		font-size: var(--btx-font-heading-lg, 1.75rem);
		line-height: var(--btx-line-height-heading, 1.2);
	}

	/*
	 * `align-items: start` is the whole point: four items against six is the
	 * normal case, and a stretched short column reads as a column with
	 * something missing from the bottom of it.
	 */
	.btxc-division__columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--btx-spacing-xl, 2rem);
	}

	.btxc-division__column {
		display: flex;
		flex-direction: column;
		gap: var(--btx-spacing-m, 1rem);
	}

	.btxc-division__column-heading {
		margin: 0;
		padding-bottom: var(--btx-spacing-xs, 0.5rem);
		border-bottom: 1px solid var(--btx-color-text-bg-1-dark-40, #d1d3d4);

		font-family: var(--btx-font-heading-family, system-ui, sans-serif);
		font-size: var(--btx-font-body-lg, 1.125rem);
		line-height: var(--btx-line-height-heading, 1.2);
	}

	.btxc-division__list {
		margin: 0;
		padding: 0;
		list-style: none;

		display: flex;
		flex-direction: column;
		gap: var(--btx-spacing-xs, 0.5rem);
	}

	.btxc-division__item {
		font-size: var(--btx-font-body-m, 1rem);
		line-height: var(--btx-line-height-body, 1.6);
	}

	.btxc-division__footnote {
		margin: var(--btx-spacing-m, 1rem) 0 0;

		font-size: var(--btx-font-body-s, 0.875rem);
		line-height: var(--btx-line-height-body, 1.6);
		color: var(--btx-color-primary-1-light-40, #2e4578);
	}

	/* Stacked ------------------------------------------------------------- */

	@media (width < 40rem) {
		.btxc-division__columns {
			grid-template-columns: minmax(0, 1fr);
			gap: var(--btx-spacing-lg, 1.5rem);
		}
	}
}
