/**
 * Kubota Europe schedule (WPBakery element `vc_kbeu_schedule`).
 *
 * The event page's programme card (Figma 5013-1860, 1898 × 715 @2560): #f6f6f6, 14px
 * corners, 80px side padding, the headings' cap height 107px under the card's top. A
 * three-column table at 24px — bold black headings, light #1d1d1b cells, the time in
 * turquoise — columns 481 / 852 / 404px of the 1737px measure, a #979797 rule under
 * the headings (cap height → rule 45px) and under every row (rule → cap 35px, cap →
 * rule 57px). The turquoise 24px / Bold link's cap height sits 81px under the last
 * rule and its baseline 96px above the card's bottom.
 *
 * Impreza pads and rules every `td` / `th` (and colours the rule from its palette):
 * reset with the block's class. Phones stack each row's cells. Sizes are clamp()s
 * whose maximum is the Figma value (vw = px / 25.6).
 */

.kbeu-schedule {
	--kbeu-sc-rule: #979797;
	--kbeu-sc-size: clamp( 16px, 0.94vw, 24px );
	box-sizing: border-box;
	width: 100%;
	padding: clamp( 28px, 3.92vw, 100px ) clamp( 20px, 3.13vw, 80px ) clamp( 28px, 3.22vw, 82px );
	border-radius: 14px;
	background: var( --kbeu-color-surface );
	font-family: var( --kbeu-font-principal );
	font-size: var( --kbeu-sc-size );
	line-height: 1.55;
	color: var( --kbeu-color-ink );
}

.kbeu-schedule .kbeu-schedule__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.kbeu-schedule .kbeu-schedule__head,
.kbeu-schedule .kbeu-schedule__cell {
	padding: clamp( 14px, 1.09vw, 28px ) clamp( 12px, 0.94vw, 24px ) clamp( 14px, 1.03vw, 26px ) 0;
	border: 0;
	border-bottom: 1px solid var( --kbeu-sc-rule );
	background: none;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
	vertical-align: top;
}

.kbeu-schedule .kbeu-schedule__head {
	padding-top: 0;
	padding-bottom: clamp( 10px, 0.58vw, 15px );
	font-weight: 700;
	color: #000;
}

.kbeu-schedule .kbeu-schedule__cell {
	font-weight: 300;
}

.kbeu-schedule .kbeu-schedule__cell--time {
	color: var( --kbeu-color-teal );
}

/* Column widths: 481 / 852 / 404 of 1737 (the Figma rules' length). */
.kbeu-schedule[data-columns="3"] .kbeu-schedule__head--time {
	width: 27.7%;
}

.kbeu-schedule[data-columns="3"] .kbeu-schedule__head--activity {
	width: 49%;
}

.kbeu-schedule[data-columns="2"] .kbeu-schedule__head:first-child {
	width: 27.7%;
}

.kbeu-schedule__foot {
	margin: clamp( 24px, 2.9vw, 74px ) 0 0;
	font-weight: 700;
	color: var( --kbeu-color-teal );
}

.kbeu-schedule .kbeu-schedule__link {
	color: inherit;
	text-decoration: none;
}

.kbeu-schedule a.kbeu-schedule__link:hover,
.kbeu-schedule a.kbeu-schedule__link:focus-visible {
	text-decoration: underline;
}

.kbeu-schedule__placeholder {
	margin: 0;
	font-size: 16px;
	color: var( --kbeu-color-gray );
}

/* Phones: one block per row — the time, then the activity, then the place. */
@media ( max-width: 640px ) {
	.kbeu-schedule .kbeu-schedule__table,
	.kbeu-schedule .kbeu-schedule__table tbody,
	.kbeu-schedule .kbeu-schedule__row,
	.kbeu-schedule .kbeu-schedule__cell {
		display: block;
		width: auto;
	}

	.kbeu-schedule .kbeu-schedule__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect( 0 0 0 0 );
		white-space: nowrap;
	}

	.kbeu-schedule .kbeu-schedule__row {
		padding: 14px 0;
		border-bottom: 1px solid var( --kbeu-sc-rule );
	}

	.kbeu-schedule .kbeu-schedule__row:first-child {
		padding-top: 0;
	}

	.kbeu-schedule .kbeu-schedule__cell {
		padding: 0;
		border: 0;
	}

	.kbeu-schedule .kbeu-schedule__cell--time {
		font-weight: 700;
	}

	.kbeu-schedule .kbeu-schedule__cell--location {
		color: var( --kbeu-color-gray );
	}
}
