/**
 * Kubota Europe info list (WPBakery element `vc_kbeu_info_list`).
 *
 * The event page's practical-info cards (Figma 5013-1846 / 5013-1888, 926 × 646 @2560):
 * #f6f6f6, 14px corners, 64px side padding. On top a 54px icon and a 32px / Bold
 * title, 12px apart, the icon's top 65px under the card's; then "Label: value" rows
 * in 24px (bold label, light #1d1d1b value) under thin #979797 rules: each rule sits
 * exactly halfway between the baseline above and the cap height below (34px each
 * way), hence the uneven 27 / 20px row padding. The foot — under one more rule — holds
 * the turquoise 24px / Bold note (cap height 65px under the rule) and the paging
 * arrows (48px, 21px under the rule, the shared `.kbeu-nav-arrow`: teal disc when
 * enabled, grey ring when not, as drawn).
 *
 * Material icons (the design's "distance" / "schedule") carry ~21% of empty box on
 * each side: the icon box is pulled left by that much so its glyph lines up with the
 * rows, as in the Figma. Sizes are clamp()s whose maximum is the Figma value
 * (vw = px / 25.6).
 */

.kbeu-info-list {
	--kbeu-il-icon: clamp( 36px, 2.1vw, 54px );
	--kbeu-il-rule: #979797;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: clamp( 28px, 2.54vw, 65px ) clamp( 20px, 2.5vw, 64px ) clamp( 24px, 1.72vw, 44px );
	border-radius: 14px;
	background: var( --kbeu-color-surface );
	font-family: var( --kbeu-font-principal );
	color: var( --kbeu-color-ink );
}

.kbeu-info-list__head {
	display: flex;
	align-items: center;
	gap: clamp( 8px, 0.47vw, 12px );
	margin-bottom: clamp( 12px, 0.84vw, 21px );
}

.kbeu-info-list__icon {
	flex: none;
	width: var( --kbeu-il-icon );
	height: var( --kbeu-il-icon );
	margin-left: calc( var( --kbeu-il-icon ) * -0.21 );
}

.kbeu-info-list .kbeu-info-list__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kbeu-info-list__title {
	margin: 0;
	/* Impreza pads every heading that is not a first child. */
	padding: 0;
	font-family: inherit;
	font-weight: 700;
	font-size: clamp( 22px, 1.25vw, 32px );
	line-height: 1.37;
	color: #000;
}

/* Every page sits in the same cell: the card keeps the tallest page's height. */
.kbeu-info-list__pages {
	display: grid;
}

.kbeu-info-list .kbeu-info-list__rows {
	grid-area: 1 / 1;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: opacity 0.25s ease;
}

.kbeu-info-list .kbeu-info-list__rows[aria-hidden="true"] {
	visibility: hidden;
	opacity: 0;
}

.kbeu-info-list .kbeu-info-list__row {
	margin: 0;
	padding: clamp( 14px, 1.07vw, 27px ) 0 clamp( 10px, 0.8vw, 20px );
	font-weight: 300;
	font-size: clamp( 16px, 0.94vw, 24px );
	line-height: 1.55;
}

.kbeu-info-list .kbeu-info-list__row + .kbeu-info-list__row {
	border-top: 1px solid var( --kbeu-il-rule );
}

.kbeu-info-list__label {
	font-weight: 700;
}

/* `--color-content-link-hover`: Impreza's `.no-touch a:hover` out-ranks the hover
   colour below and paints it with this variable (see `kbeu-buttons.css`). */
.kbeu-info-list__value--link {
	--color-content-link-hover: var( --kbeu-color-teal );
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.kbeu-info-list__value--link:hover,
.kbeu-info-list__value--link:focus-visible {
	color: var( --kbeu-color-teal );
}

.kbeu-info-list__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px 24px;
	padding-top: clamp( 12px, 0.82vw, 21px );
	border-top: 1px solid var( --kbeu-il-rule );
}

.kbeu-info-list__note {
	margin: clamp( 12px, 1.46vw, 37px ) 0 0;
	font-weight: 700;
	font-size: clamp( 16px, 0.94vw, 24px );
	line-height: 1.55;
	color: var( --kbeu-color-teal );
}

.kbeu-info-list__note a {
	color: inherit;
	text-decoration: none;
}

.kbeu-info-list__note a:hover,
.kbeu-info-list__note a:focus-visible {
	text-decoration: underline;
}

.kbeu-info-list__nav {
	display: flex;
	gap: clamp( 10px, 0.63vw, 16px );
	margin-left: auto;
}

.kbeu-info-list .kbeu-info-list__arrow {
	--kbeu-nav-arrow-size: clamp( 36px, 1.89vw, 48px );
	--kbeu-nav-arrow-idle-bg: transparent;
	--kbeu-nav-arrow-idle-border: var( --kbeu-color-muted );
	--kbeu-nav-arrow-idle-fg: var( --kbeu-color-muted );
	--kbeu-nav-arrow-focus-ring: var( --kbeu-color-teal );
}

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

@media ( prefers-reduced-motion: reduce ) {
	.kbeu-info-list .kbeu-info-list__rows {
		transition: none;
	}
}
