/* Basic Table Section (Figma uJLTuhK1C6KtSO9Zn1rlEI 3333:1547 desktop; cards below 768px). */

.basic-table-section {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	padding: 40px 20px;
	background-color: #fff;
	box-sizing: border-box;
}

.basic-table-section *,
.basic-table-section *::before,
.basic-table-section *::after {
	box-sizing: border-box;
}

.basic-table-section .basic-table-section__title {
	margin: 0;
	color: #000;
	font-family: "GT Super Ds Trial", Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: 0;
	text-align: center;
	text-transform: capitalize;
	overflow-wrap: break-word;
}

.basic-table-section__scroll {
	width: 100%;
}

.basic-table-section__scroll:focus-visible {
	outline: 2px solid #283a85;
	outline-offset: 2px;
}

/*
 * Mobile (below 768px): every row is a card. The header row is kept for screen readers but hidden; the row label
 * is the card's blue title bar; each cell shows its column header (data-label) above the value.
 */
.basic-table-section .basic-table-section__table,
.basic-table-section .basic-table-section__table tbody,
.basic-table-section .basic-table-section__table tr,
.basic-table-section .basic-table-section__table th,
.basic-table-section .basic-table-section__table td {
	display: block;
	width: 100%;
}

.basic-table-section .basic-table-section__table {
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: none;
}

.basic-table-section .basic-table-section__table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.basic-table-section .basic-table-section__table tbody {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.basic-table-section .basic-table-section__table tbody tr {
	overflow: hidden;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	background-color: #fff;
}

.basic-table-section .basic-table-section__table tbody th {
	padding: 12px 16px;
	border: 0;
	background-color: #2959b6;
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-align: left;
	overflow-wrap: break-word;
}

.basic-table-section .basic-table-section__table tbody td {
	padding: 12px 16px;
	border: 0;
	border-top: 1px solid #eaeaea;
	background-color: #fff;
	color: #404040;
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 23px;
	text-align: left;
	overflow-wrap: break-word;
}

.basic-table-section .basic-table-section__table tbody th + td {
	border-top: 0;
}

.basic-table-section .basic-table-section__table tbody td:nth-of-type(even) {
	background-color: #f2f2f2;
}

.basic-table-section .basic-table-section__table tbody td[data-label]::before {
	content: attr(data-label);
	display: block;
	margin-bottom: 4px;
	color: #1a4290;
	font-size: 14px;
	font-weight: 700;
	line-height: 22px;
}

/* Tablet and up: the table (Figma 3333:1547). */
@media (min-width: 768px) {
	.basic-table-section {
		padding: 80px 40px;
	}

	.basic-table-section .basic-table-section__title {
		font-size: 42px;
		line-height: 50px;
	}

	/* Scrolls sideways if the columns ever don't fit; the first column stays pinned. */
	.basic-table-section__scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.basic-table-section .basic-table-section__table {
		display: table;
		min-width: 688px;
		table-layout: fixed;
		background-color: #eaeaea;
	}

	.basic-table-section .basic-table-section__table thead {
		position: static;
		display: table-header-group;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		clip-path: none;
		white-space: normal;
	}

	.basic-table-section .basic-table-section__table tbody {
		display: table-row-group;
	}

	.basic-table-section .basic-table-section__table tr,
	.basic-table-section .basic-table-section__table tbody tr {
		display: table-row;
		overflow: visible;
		border: 0;
		border-radius: 0;
	}

	.basic-table-section .basic-table-section__table th,
	.basic-table-section .basic-table-section__table td,
	.basic-table-section .basic-table-section__table tbody th,
	.basic-table-section .basic-table-section__table tbody td {
		display: table-cell;
		width: auto;
		padding: 20px;
		border: 0;
		border-top: 1px solid #eaeaea;
		border-left: 1px solid #eaeaea;
		background-color: #fff;
		color: #404040;
		font-family: "Manrope", sans-serif;
		font-size: 18px;
		font-weight: 400;
		line-height: 26px;
		text-align: left;
		vertical-align: top;
		overflow-wrap: break-word;
	}

	.basic-table-section .basic-table-section__table tbody td[data-label]::before {
		content: none;
	}

	.basic-table-section .basic-table-section__table thead th {
		padding: 10px 20px;
		border-top: 0;
		background-color: #1a4290;
		color: #fff;
		font-weight: 700;
	}

	.basic-table-section .basic-table-section__table thead th:first-child {
		background-color: #2959b6;
	}

	.basic-table-section .basic-table-section__table tbody tr:nth-child(even) > * {
		background-color: #f2f2f2;
	}

	/* First column: bold row labels, 260/1040 wide, pinned with Figma's shadow. */
	.basic-table-section .basic-table-section__table tr > :first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		width: 25%;
		border-left: 0;
		box-shadow: 10px 0 5px rgba(0, 0, 0, 0.05);
	}

	.basic-table-section .basic-table-section__table tbody th {
		color: #000;
		font-weight: 700;
	}
}

/* Desktop: Figma 100/200 padding at 1440. */
@media (min-width: 1280px) {
	.basic-table-section {
		padding: 100px 13.889%;
	}
}
