/* IMM Events: the home page block, the event page and the list. Colours of the site: navy #14305e, gold #c9a54a. */

.imm-ev-btn {
	display: inline-block;
	background: #c9a54a;
	color: #14305e;
	font-size: 18px;
	line-height: 1.3;
	padding: 14px 34px;
	text-align: center;
	text-decoration: none;
}
.imm-ev-btn:hover,
.imm-ev-btn:focus { background: #14305e; color: #fff; }
.imm-ev-btn:focus-visible { outline: 3px solid #14305e; outline-offset: 2px; }

/* Home block. position and z-index: the hero slider's dots are placed over whatever follows the hero. */
.imm-ev-block { position: relative; z-index: 99; background: #f4f1e8; border-bottom: 3px solid #c9a54a; padding: 24px 16px; }
.imm-ev-block__in { max-width: 1170px; margin: 0 auto; display: grid; grid-template-columns: 132px 1fr auto; column-gap: 28px; align-items: center; }
.imm-ev-block__in--noimg { grid-template-columns: 1fr auto; }
.imm-ev-block__img { width: 132px; height: 165px; display: block; object-fit: cover; }
.imm-ev-block__kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a6d1f; margin: 0 0 4px; }
.imm-ev-block .imm-ev-block__title { font-size: 30px; line-height: 1.2; color: #14305e; margin: 0 0 8px; font-weight: 400; overflow-wrap: anywhere; }
.imm-ev-block .imm-ev-block__when { font-size: 17px; line-height: 1.5; color: #3d4652; margin: 0; }
.imm-ev-block__t { white-space: nowrap; }
.imm-ev-block .imm-ev-btn { white-space: nowrap; }

@media (max-width: 767px) {
	/* On phones the theme starts this part of the page 15 px in and does not end it 15 px early. */
	.imm-ev-block { padding: 16px; margin-right: 15px; }
	.imm-ev-block__in { grid-template-columns: 84px 1fr; column-gap: 14px; row-gap: 12px; align-items: start; }
	.imm-ev-block__in--noimg { grid-template-columns: 1fr; }
	.imm-ev-block__img { width: 84px; height: 105px; }
	.imm-ev-block__kicker { font-size: 12px; }
	.imm-ev-block .imm-ev-block__title { font-size: 19px; margin: 0 0 6px; }
	.imm-ev-block .imm-ev-block__when { font-size: 14px; line-height: 1.45; }
	.imm-ev-block__t { display: block; }
	.imm-ev-block__sep { display: none; }
	.imm-ev-block .imm-ev-btn { grid-column: 1 / -1; display: block; padding: 11px 16px; font-size: 16px; }
}

/* Event page and list. */
.imm-ev-wrap { padding-top: 24px; padding-bottom: 60px; }
.imm-ev__note { font-weight: 600; color: #14305e; background: #f4f1e8; border-left: 4px solid #c9a54a; padding: 12px 16px; }
.imm-ev__date { font-weight: 600; color: #14305e; margin-bottom: 12px; }
.imm-ev__cta { margin-bottom: 20px; }
.imm-ev__picture img { max-width: min(100%, 640px); height: auto; margin: 8px 0 24px; display: block; }
.imm-ev__h { font-size: 26px; margin: 24px 0 8px; }
.imm-ev__disclaimer { font-size: 15px; margin-top: 20px; }
/* The list: dated rows under month headings. The title link is stretched over its row. */
.imm-ev-wrap .imm-ev-month { font-size: 24px; color: #14305e; margin: 8px 0 14px; }
.imm-ev-wrap .imm-ev-list { list-style: none; margin: 0 0 24px; padding: 0; }
.imm-ev-wrap .imm-ev-row { position: relative; display: grid; grid-template-columns: 82px 1fr 120px 160px; column-gap: 24px; align-items: center; background: #f4f1e8; border-bottom: 3px solid #c9a54a; padding: 18px 20px; margin: 0 0 16px; }
.imm-ev-row__date { display: block; background: #14305e; color: #fff; text-align: center; padding: 10px 0; line-height: 1.15; }
.imm-ev-row__date span { display: block; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #e3c46f; }
.imm-ev-row__date b { display: block; font-size: 34px; font-weight: 600; }
.imm-ev-wrap .imm-ev-row__body p { margin: 0; line-height: 1.5; }
.imm-ev-wrap .imm-ev-row__body .imm-ev-row__live { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a6d1f; }
.imm-ev-wrap .imm-ev-row__title { font-size: 22px; line-height: 1.3; margin: 0 0 6px; overflow-wrap: anywhere; }
.imm-ev-wrap .imm-ev-row__title a { color: #14305e; text-decoration: none; }
.imm-ev-row__title a::after { content: ""; position: absolute; inset: 0; }
.imm-ev-wrap .imm-ev-row:hover .imm-ev-row__title a { text-decoration: underline; }
.imm-ev-wrap .imm-ev-row:focus-within { outline: 3px solid #14305e; outline-offset: 2px; }
.imm-ev-row__when { font-size: 17px; color: #3d4652; }
.imm-ev-row__zones, .imm-ev-row__meta { font-size: 15px; color: #4b5563; }
.imm-ev-row__img { width: 120px; height: 150px; object-fit: cover; display: block; }
.imm-ev-row__cta { background: #c9a54a; color: #14305e; text-align: center; padding: 12px 10px; font-size: 17px; }

/* Past events: quieter, no picture, no button. */
.imm-ev-wrap .imm-ev-row--past { grid-template-columns: 82px 1fr auto; background: #fff; border: 1px solid #e6e2d6; }
.imm-ev-row--past .imm-ev-row__date { background: #5b6472; }
.imm-ev-row--past .imm-ev-row__date span { color: #fff; }
.imm-ev-row__tag { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4b5563; border: 1px solid #9ca3af; padding: 4px 10px; }
.imm-ev-past { margin-top: 20px; }
.imm-ev-past summary { cursor: pointer; font-size: 18px; font-weight: 600; color: #14305e; padding: 12px 0; margin-bottom: 8px; }
.imm-ev-past summary:focus-visible { outline: 3px solid #14305e; outline-offset: 2px; }
.imm-ev-past .imm-ev-past__hide, .imm-ev-past[open] .imm-ev-past__show { display: none; }
.imm-ev-past[open] .imm-ev-past__hide { display: inline; }
.imm-ev-wrap .imm-ev-past__all a, .imm-ev-wrap .imm-ev-back a { color: #14305e; font-weight: 600; text-decoration: underline; }

@media (max-width: 767px) {
	.imm-ev-wrap .imm-ev-row { grid-template-columns: 64px 1fr; column-gap: 12px; row-gap: 12px; align-items: start; padding: 14px; }
	.imm-ev-row__date b { font-size: 26px; }
	.imm-ev-wrap .imm-ev-row__title { font-size: 18px; }
	.imm-ev-wrap .imm-ev-row__img, .imm-ev-row__noimg { display: none; }
	.imm-ev-row__cta { grid-column: 1 / -1; }
	.imm-ev-wrap .imm-ev-row--past { grid-template-columns: 64px 1fr; }
	.imm-ev-row__tag { grid-column: 2; justify-self: start; }
}

/* The theme leaves 120 px between its title banner and the page; on event pages that pushes Register down. */
body.single-imm_event #pxl-main,
body.post-type-archive-imm_event #pxl-main { padding-top: 24px; }

/* On phones the banner itself (110 px padding, 300 px minimum height) is shortened too, for the same reason. */
@media (max-width: 480px) {
	body.single-imm_event #pxl-page-title-elementor .elementor > .elementor-section,
	body.post-type-archive-imm_event #pxl-page-title-elementor .elementor > .elementor-section { padding-top: 20px; padding-bottom: 12px; }
	body.single-imm_event #pxl-page-title-elementor .elementor > .elementor-section > .elementor-container,
	body.post-type-archive-imm_event #pxl-page-title-elementor .elementor > .elementor-section > .elementor-container { min-height: 0; }
	body.single-imm_event #pxl-page-title-elementor h1.pxl-item--title { font-size: 24px; line-height: 1.25; }
}
