/* =========================================================
   Single event — Figma 3006:5239.

   Loaded on event pages only (inc/cpt/event.php), after ibia.css, so
   it can lean on that file's tokens (--ibia-inner, --ibia-ev-tint,
   --ibia-ev-shadow) and button styles without editing it.

   Measured from the frame at 1440:
   - content starts 38 under the title band
   - 920 main column, 99 gap, 320 sidebar = 1339, set flush right in
     the 1400 container (the frame's left edge is 81 = 20 + 61)
   - main column: banner 680:381 with the 4/30/4/4 corners and the
     card shadow, then 33 to the H2 (30 Medium), 33 to the body
     (16/28 Light, paragraphs 10 apart)
   - sidebar: sticky, two Blue Grey 20% cards 32 apart, 21 inset,
     H4 titles (20/30 Medium), 14/24 labels, 16/28 Light values,
     28px share discs on a 38 pitch
   ========================================================= */

.ibia-ev-single {
	display: flex;
	justify-content: center;
	padding-block: 38px 0;
}

/* theme.json's 80px block gap would otherwise sit on top of the 38. The
   build stylesheet sets section spacing with !important, so this must too. */
.entry-content > .ibia-ev-single { margin-top: 0 !important; }

/* The Join band 51 under the content, as on the Events pages. */
.entry-content > .ibia-ev-single + .fw-banner.is-style-ibia-join { margin-top: 51px !important; }

.ibia-ev-single__inner {
	display: grid;
	grid-template-columns: 920px 320px;
	column-gap: 99px;
	justify-content: end;
	align-items: start;
	width: 100%;
	max-width: var(--ibia-inner, 1400px);
}

/* ---- Main column ---- */

.ibia-ev-single__main {
	display: flex;
	flex-direction: column;
	gap: 33px;
	min-width: 0;
}

.ibia-ev-single__hero {
	position: relative;
	margin: 0 !important;
	aspect-ratio: 680 / 381;
	overflow: hidden;
	border-radius: var(--fw-radius, 4px) 30px var(--fw-radius, 4px) var(--fw-radius, 4px);
	box-shadow: var(--ibia-ev-shadow);
	background-color: var(--fw-navy, #013563);
}

.ibia-ev-single__hero > img:first-child {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Glue Up's transparent title graphic, centred at 80% over the artwork. */
.ibia-ev-single__hero .ibia-ev-single__overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 80%;
	height: auto;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.entry-content .ibia-ev-single__title {
	margin: 0;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--fw-navy, #013563);
}

.ibia-ev-single__body {
	font-size: 16px;
	font-weight: 300;
	line-height: 28px;
	color: var(--fw-navy, #013563);
}

.entry-content .ibia-ev-single__body p,
.entry-content .ibia-ev-single__body ul,
.entry-content .ibia-ev-single__body ol { margin: 0 0 10px; }
.entry-content .ibia-ev-single__body > :last-child { margin-bottom: 0; }
.ibia-ev-single__body strong { font-weight: 500; }
.ibia-ev-single__body a { color: inherit; text-decoration: underline; }

/* ---- Agenda, speakers, sponsors, sections (step 5) ----
   No frame for these: the design is the 21 Aug proof of concept
   (ibia.prioritypixels.dev/ibia-event-scraped.html), set in the site's
   tokens: hairline above each section, H2 in navy, Light Green day rule,
   106 time column, 96 speaker discs, 96 tall logo boxes, clamp at 440. */

.ibia-ev-sec {
	border-top: 1px solid var(--ibia-ev-hairline, #e3e7ee);
	padding-top: 24px;
}

.entry-content .ibia-ev-sec__title {
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--fw-navy, #013563);
}

.ibia-ev-sec__body { color: var(--fw-navy, #013563); }

/* Agenda */
.entry-content .ibia-ev-day {
	margin: 22px 0 6px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--fw-green, #a3c362);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--fw-navy, #013563);
}
.entry-content .ibia-ev-day:first-child { margin-top: 0; }
.ibia-ev-day__time { margin-left: 8px; font-size: 14px; font-weight: 300; }
.entry-content .ibia-ev-sessions { margin: 0; padding: 0; list-style: none; }
.ibia-ev-ses {
	display: flex;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--ibia-ev-hairline, #e3e7ee);
}
.ibia-ev-ses__time { flex: 0 0 106px; font-size: 14px; font-weight: 500; line-height: 24px; }
.ibia-ev-ses__body { min-width: 0; }
.entry-content .ibia-ev-ses__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 24px; }
.entry-content .ibia-ev-ses__who { margin: 2px 0 0; font-size: 14px; font-weight: 400; line-height: 22px; }
.entry-content .ibia-ev-ses__details { margin: 4px 0 0; font-size: 14px; font-weight: 300; line-height: 22px; color: #4a5a72; }
/* Breaks (lunch, coffee): part of the timeline, quieter than sessions. */
.ibia-ev-ses--break { padding: 7px 0; }
.ibia-ev-ses--break .ibia-ev-ses__time,
.entry-content .ibia-ev-ses--break .ibia-ev-ses__title { font-size: 14px; font-weight: 400; font-style: italic; color: #4a5a72; }

/* Eventora: course modules and tickets (the Eventora POC's .ev-mod / .ev-mprice) */
.entry-content .ibia-ev-mods,
.entry-content .ibia-ev-tix { margin: 0; padding: 0; list-style: none; }
.ibia-ev-mod { padding: 14px 0; border-bottom: 1px solid var(--ibia-ev-hairline, #e3e7ee); }
.ibia-ev-mod__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.entry-content .ibia-ev-mod__name { margin: 0; font-size: 17px; font-weight: 500; line-height: 26px; color: var(--fw-navy, #013563); }
.entry-content .ibia-ev-mod__prices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; flex: 0 1 auto; }
.ibia-ev-price {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 5px;
	background: #eef3e6;
	color: #4c6320; /* 6.1:1 on the chip */
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	white-space: nowrap;
}
.ibia-ev-price.is-closed { background: #f0f1f3; color: #5a6675; }
.ibia-ev-price.is-closed .ibia-ev-price__amt { text-decoration: line-through; }
.ibia-ev-price__state { margin-left: 2px; font-weight: 400; }
.ibia-ev-mod__desc { margin-top: 5px; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: #4a5a72; }
.entry-content .ibia-ev-mod__desc p { margin: 0 0 6px; }
.entry-content .ibia-ev-tix__group { margin: 22px 0 4px; font-size: 18px; font-weight: 500; color: var(--fw-navy, #013563); }
.entry-content .ibia-ev-tix__group:first-child { margin-top: 0; }
.ibia-ev-tix__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ibia-ev-hairline, #e3e7ee); }
.ibia-ev-tix__name { font-size: 16px; font-weight: 400; color: var(--fw-navy, #013563); }

/* Speakers */
.entry-content .ibia-ev-spk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 26px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ibia-ev-spk { text-align: center; }
.ibia-ev-spk__img {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 auto 10px;
	border-radius: 50%;
	object-fit: cover;
	background-color: #dfe4ea;
}
.entry-content .ibia-ev-spk__name { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.entry-content .ibia-ev-spk__role { margin: 3px 0 0; font-size: 13px; font-weight: 300; line-height: 1.4; color: #4a5a72; }
.ibia-ev-spk__bio { margin-top: 6px; font-size: 13px; text-align: left; }
.ibia-ev-spk__bio summary { cursor: pointer; text-align: center; text-decoration: underline; font-weight: 400; }
.entry-content .ibia-ev-spk__bio p { margin: 8px 0 0; font-size: 13px; font-weight: 300; line-height: 1.55; }

/* Sponsors */
.ibia-ev-spo-group + .ibia-ev-spo-group { margin-top: 22px; }
.entry-content .ibia-ev-spo-group__label { margin: 0 0 10px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.entry-content .ibia-ev-spo-group__note { margin: -6px 0 10px; font-size: 14px; font-weight: 300; }
.entry-content .ibia-ev-spo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ibia-ev-spo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
	padding: 14px;
	border: 1px solid var(--ibia-ev-hairline, #e3e7ee);
	border-radius: var(--fw-radius, 4px);
	background: #fff;
}
.ibia-ev-spo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ibia-ev-spo img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.ibia-ev-spo__name { font-size: 14px; font-weight: 500; text-align: center; }
.ibia-ev-spo-intro { margin-top: 24px; }

/* Sections in the event's own words */
.ibia-ev-rich, .ibia-ev-spo-intro { font-size: 16px; font-weight: 300; line-height: 28px; }
.entry-content .ibia-ev-rich p, .entry-content .ibia-ev-spo-intro p,
.entry-content .ibia-ev-rich ul, .entry-content .ibia-ev-rich ol { margin: 0 0 10px; }
.entry-content .ibia-ev-rich h3, .entry-content .ibia-ev-rich h4, .entry-content .ibia-ev-spo-intro h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 500; line-height: 1.35; }
.ibia-ev-rich strong, .ibia-ev-spo-intro strong { font-weight: 500; }
.ibia-ev-rich a, .ibia-ev-spo-intro a { color: inherit; text-decoration: underline; }
.ibia-ev-rich img { display: block; max-width: 100%; height: auto; border-radius: var(--fw-radius, 4px); }

/* Read more (assets/js/ibia-event-single.js adds .is-clamped) */
.ibia-ev-clamp.is-clamped { position: relative; max-height: 440px; overflow: hidden; }
.ibia-ev-clamp.is-clamped::after {
	content: "";
	position: absolute;
	right: 0; bottom: 0; left: 0;
	height: 90px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}
.ibia-ev-clamp.is-clamped.is-open { max-height: none; }
.ibia-ev-clamp.is-clamped.is-open::after { display: none; }
.ibia-ev-more {
	margin-top: 14px;
	padding: 9px 22px;
	border: 0;
	border-radius: var(--fw-radius, 4px);
	background: var(--fw-navy, #013563);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.ibia-ev-more:hover, .ibia-ev-more:focus-visible { background: #024b86; }

@media (max-width: 640px) {
	.ibia-ev-ses { flex-direction: column; gap: 2px; }
	.ibia-ev-ses__time { flex-basis: auto; }
	.ibia-ev-mod__head, .ibia-ev-tix__row { flex-direction: column; align-items: flex-start; gap: 6px; }
	.entry-content .ibia-ev-mod__prices { justify-content: flex-start; }
	.entry-content .ibia-ev-spk-grid, .entry-content .ibia-ev-spo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Venue (no frame: composed in the house style) ---- */

.ibia-ev-single__venue {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.entry-content .ibia-ev-single__subhead {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: var(--fw-navy, #013563);
}

.entry-content .ibia-ev-single__address,
.entry-content .ibia-ev-single__maplink {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 28px;
	color: var(--fw-navy, #013563);
}
.ibia-ev-single__address strong { font-weight: 500; }
.ibia-ev-single__maplink a { color: inherit; text-decoration: underline; }

.ibia-ev-single__map {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--fw-radius, 4px) 30px var(--fw-radius, 4px) var(--fw-radius, 4px);
	box-shadow: var(--ibia-ev-shadow);
}
.ibia-ev-single__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Sidebar ---- */

.ibia-ev-single__side {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.admin-bar .ibia-ev-single__side { top: 56px; }

.ibia-ev-card {
	padding: 21px;
	border-radius: var(--fw-radius, 4px);
	background-color: var(--ibia-ev-tint);
	box-shadow: var(--ibia-ev-shadow);
	color: var(--fw-navy, #013563);
}

.entry-content .ibia-ev-card__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: var(--fw-navy, #013563);
}
.entry-content .ibia-ev-card__title--centre { text-align: center; }

.entry-content .ibia-ev-card__label {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
}

.entry-content .ibia-ev-card__value {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 300;
	line-height: 28px;
}

.ibia-ev-card__time { font-size: 14px; }

.ibia-ev-card__actions { margin: 6px 0 0; }

.ibia-ev-card__share {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	font-size: 16px;
	font-weight: 300;
	line-height: 28px;
}
.ibia-ev-card__share-label { margin-right: 2px; }

/* The networks' own colours, as the frame draws them. */
.ibia-ev-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}
.ibia-ev-share--linkedin { background-color: #0a66c2; }
.ibia-ev-share--x        { background-color: #000; }
.ibia-ev-share--facebook { background-color: #1877f2; }
.ibia-ev-share:hover,
.ibia-ev-share:focus-visible { opacity: 0.85; color: #fff; }

.ibia-ev-card__text {
	font-size: 16px;
	font-weight: 300;
	line-height: 28px;
}
.entry-content .ibia-ev-card__text p { margin: 0; }
.ibia-ev-card__text a { color: inherit; text-decoration: underline; }

/* ---- Narrower screens: PP's responsive rules (no design) ---- */

@media (max-width: 1380px) {
	.ibia-ev-single__inner {
		grid-template-columns: minmax(0, 1fr) 320px;
		column-gap: 48px;
	}
}

@media (max-width: 900px) {
	.ibia-ev-single { padding-block: 32px 0; }
	.ibia-ev-single__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 32px;
	}
	.ibia-ev-single__side { position: static; }
	.entry-content .ibia-ev-single__title { font-size: 26px; }
}
