/* 2026 layout fixes, loaded after style.css */

/* Home: Upcoming IMS Events - centre the event cards instead of floating them left */
.events_wrapper {
	max-width: 1200px;
}
.events_wrapper > .widget > ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}
.events_wrapper > .widget > ul > li {
	float: none;
	box-sizing: border-box;
	width: calc(33.333% - 16px);
	min-width: 300px;
	max-width: 520px;
	margin: 0;
	padding: 24px 20px;
	background: #f7f7f7;
	border: 1px solid #ececec;
	display: flex;
	gap: 18px;
	text-align: left;
}
.events_wrapper > .widget > ul > li:hover {
	border-color: #cddabe;
}
.events_wrapper > .widget > ul > li > .date {
	flex: 0 0 55px;
	float: none;
}
.events_wrapper > .widget > ul > li > ul {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	float: none;
}
.events_wrapper .widget ul li .title a {
	white-space: normal;
	line-height: 20px;
}
.events_wrapper a.read_more {
	float: none;
	display: inline-block;
}

@media screen and (max-width: 1024px) {
	.events_wrapper > .widget > ul > li {
		width: calc(50% - 12px);
		margin: 0;
	}
}
@media screen and (max-width: 640px) {
	.events_wrapper > .widget > ul > li {
		width: 100%;
		min-width: 0;
	}
}

/* Contact form image captcha: plugin 3.x renders inline SVG icons instead of <i class="fa">; match the old look */
.captcha-image label > input + svg {
	color: #fff;
	width: 34px;
	height: 34px;
	padding: 4px 6px;
	vertical-align: middle;
	border: 2px solid transparent;
}
.captcha-image label > input:checked + svg,
.captcha-image label > input:focus + svg {
	border-color: #eb7b72;
}
.contact-page .captcha-image label > input + svg {
	color: #333;
}

/* Home: "IMS proudly supports Meat Business Women" block - text above image, both centred */
.challenge_wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1100px;
	padding: 40px 16px 30px;
	box-sizing: border-box;
}
.challenge_wrapper a.text {
	float: none;
	width: auto;
	text-align: center;
	padding-top: 0;
	margin-bottom: 22px;
}
.challenge_wrapper img {
	float: none;
	margin: 0;
	max-width: 100%;
	height: auto;
}
#back-top {
	left: 50%;
	transform: translateX(-50%);
}

/* Events Manager 7 ("pixelbones" styles): bring links, buttons and list spacing back to the theme look */
.entry-content .em.pixelbones a,
.entry-content .em-locations-list a,
.entry-content .em-events-list a {
	color: #598527;
}
.entry-content .em.pixelbones a:hover,
.entry-content .em-locations-list a:hover,
.entry-content .em-events-list a:hover {
	color: #92cd50;
}
.em.pixelbones .button-primary,
.em.pixelbones button.button-primary,
.em.pixelbones input[type="submit"].button-primary {
	background-color: #618b31 !important;
	border-color: #618b31 !important;
	color: #fff !important;
}
.em.pixelbones .button-primary:hover,
.em.pixelbones button.button-primary:hover {
	background-color: #92cd50 !important;
	border-color: #92cd50 !important;
}
.em.pixelbones.em-list ul.em-locations-list li {
	margin-bottom: 4px;
	line-height: 24px;
}
.em.pixelbones.em-list ul.em-locations-list li ul {
	margin-top: 2px;
	margin-bottom: 6px;
}
/* EM 7 colours come from CSS variables (default blue, hue 220): switch the accent to the theme green #598527 */
body .em,
body .em.pixelbones,
body .em-modal {
	--accent-hue: 88;
	--accent-s: 55%;
	--accent-l: 34%;
}
