/*
 * EventKoi single events: EventKoi's block template is the same set of blocks as its classic
 * ("legacy") layout on the Kadence site. Kadence ignored the template's gap settings, so the live
 * page uses WordPress's classic defaults. These rules restore those values (measured Nov 17 2026).
 */

/* Columns: 2em apart (34px), 1.75em between rows, nothing extra between blocks in a column. */
/* (The icon + text rows inside the details card keep their own 20px gap.) */
.eventkoi-front .wp-block-columns:not(.is-not-stacked-on-mobile) {
	column-gap: 2em !important;
	row-gap: 2em !important;
}
.eventkoi-front .wp-block-column > * {
	margin-block-start: 0;
}

/* "+ Add to calendar" and "Share": 0.5em apart, 1px light gray border (EventKoi's own setting),
   not the theme's outline-style 2px outline. EventKoi wraps each button in a display:contents span. */
.eventkoi-front .wp-block-buttons {
	gap: 0.5em !important;
}
.eventkoi-front .wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid rgb(220, 220, 220) !important;
	outline: none;
}
.eventkoi-front .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Phones: the two buttons share the row 10px apart, each half the width minus 5px (so
   "+ Add to calendar" wraps onto two lines exactly as on the Kadence site). */
@media (max-width: 767px) {
	.eventkoi-front .wp-block-buttons {
		--wp--style--block-gap: 10px;
		gap: 10px !important;
	}
}

/* Audit fix (Nov 18): EventKoi's "+ Add to calendar" and "Share" follow the site button rule:
   44px tall, 20px corners, 15px bold (14px on phones), on one line. */
.eventkoi-front .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 9px 20px !important; /* EventKoi writes 10px inline; 9 + 24 + 9 + 1px border each side = 44 */
	border-radius: 20px !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0;
	white-space: nowrap;
	box-sizing: border-box;
}
@media (max-width: 767px) {
	.eventkoi-front .wp-block-button .wp-block-button__link {
		padding: 9px 16px !important;
		font-size: 14px;
	}
}
