/* PEIBWA table — purple header, striping, tinted band, side layout.
   (Theme override of the plugin core table block.) */

.lake-root .b-table.tint {
	background: #ebe4e6;
}

.lake-root .b-table .b-table-head .s-head {
	margin-bottom: 1.25rem;
}

.lake-root .b-table .b-table-head.center {
	text-align: center;
}

.lake-root .b-table .b-table-head .s-body p {
	margin: 0 0 1.15em;
}

.lake-root .b-table .b-table-head .s-body p:last-child {
	margin-bottom: 0;
}

/* Copy beside the table (Program Dates). */
.lake-root .b-table.side .b-table-row {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}

@media (max-width: 900px) {
	.lake-root .b-table.side .b-table-row {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.lake-root .b-table .b-table-scroll {
	overflow-x: auto;
}

.lake-root .b-table .b-table-grid {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.lake-root .b-table .b-table-grid th {
	background: var(--color-secondary, #6F5EAE);
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: 0.9rem 1.5rem;
}

.lake-root .b-table .b-table-grid td {
	padding: 0.9rem 1.5rem;
	line-height: 1.55;
	vertical-align: top;
}

.lake-root .b-table .b-table-grid.striped tbody tr:nth-child(odd) {
	background: var(--color-gray-100, #f3f4f6);
}

.lake-root .b-table .b-table-grid .ta-center { text-align: center; }
.lake-root .b-table .b-table-grid .ta-right { text-align: right; }

/* Navy band variant keeps its own text color. */
.lake-root .b-table.dark .b-table-head .s-head,
.lake-root .b-table.dark .b-table-head .s-body {
	color: #fff;
}

/* Phone: rows become stacked cards (labels from data-label) instead of a
   sideways-scrolling grid. */
@media (max-width: 640px) {
	.lake-root .b-table .b-table-grid,
	.lake-root .b-table .b-table-grid tbody,
	.lake-root .b-table .b-table-grid tr,
	.lake-root .b-table .b-table-grid td {
		display: block;
	}

	.lake-root .b-table .b-table-grid {
		background: none;
	}

	.lake-root .b-table .b-table-grid thead {
		display: none;
	}

	.lake-root .b-table .b-table-grid tbody tr {
		background: #fff;
		border-radius: 12px;
		padding: 1.1rem 1.25rem;
		margin-bottom: 1rem;
	}

	.lake-root .b-table .b-table-grid.striped tbody tr:nth-child(odd) {
		background: #fff;
	}

	.lake-root .b-table .b-table-grid td {
		padding: 0.4rem 0;
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 1rem;
		text-align: right;
	}

	.lake-root .b-table .b-table-grid td::before {
		content: attr(data-label);
		font-weight: 700;
		font-size: 0.8rem;
		color: var(--color-secondary, #6F5EAE);
		text-align: left;
		flex: 0 1 auto;
	}

	/* First column is the row's identity: render it as the card title. */
	.lake-root .b-table .b-table-grid td:first-child {
		display: block;
		text-align: left;
		font-weight: 700;
		padding-bottom: 0.65rem;
		margin-bottom: 0.35rem;
		border-bottom: 1px solid var(--color-gray-100, #f3f4f6);
	}

	.lake-root .b-table .b-table-grid td:first-child::before {
		display: none;
	}
}
