/* PDF sixth-column advertisements
--------------------------------------------- */
.basem-agenda-pdf-advertisements {
	--advert-navy: #262262;
	--advert-blue: #00aeef;
	--advert-pink: #ba0e8c;
	--advert-cream: #f4f2e4;
	--advert-panel: #faf9f5;
	--advert-ink: #17173e;
	position: fixed;
	top: 0;
	left: -10000px;
	width: 340px;
	pointer-events: none;
}

/* The capture source must keep its design width even outside the preview. */
.basem-agenda-pdf-advertisements > .basem-agenda-pdf-advertisement {
	width: 340px;
	min-width: 340px;
	max-width: 340px;
	color: var(--advert-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.basem-agenda-pdf-advertisements,
.basem-agenda-pdf-advertisements * {
	box-sizing: border-box;
}

.basem-agenda-pdf-advertisements a {
	color: inherit;
}

.basem-agenda-pdf-advertisements a:focus-visible {
	border-radius: 3px;
	outline: 3px solid var(--advert-blue);
	outline-offset: 4px;
}

/* Day 1: Conference dinner
--------------------------------------------- */
.dinner-card {
	--card-background: #f1faff;
	position: relative;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(38, 34, 98, 0.25);
	border-radius: 4px;
	background: var(--card-background);
}

.dinner-card::before {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	left: 0;
	height: 5px;
	content: "";
	background: linear-gradient(90deg, var(--advert-navy), var(--advert-blue));
}

.dinner-content {
	position: relative;
	z-index: 1;
	padding: 32px 22px 0;
}

.event-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 26px;
}

.event-date {
	color: var(--advert-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.event-location {
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--advert-pink);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.event-title {
	margin: 0 0 34px;
	color: var(--advert-navy);
	font-size: 39px;
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -1.5px;
}

.event-title span {
	display: block;
	width: fit-content;
	margin-top: 4px;
	/* The PDF capture replaces this with canvas-rendered gradient text. */
	background: linear-gradient(90deg, var(--advert-navy), var(--advert-blue));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.event-details {
	margin: 0 0 21px;
	padding: 16px;
	border-left: 4px solid var(--advert-blue);
	border-radius: 0 10px 10px 0;
	background: rgba(255, 255, 255, 0.72);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
}

.event-details p {
	margin: 0;
}

.event-details .details-label {
	margin-bottom: 2px;
	color: var(--advert-navy);
	font-size: 15px;
	font-style: italic;
}

.event-details .schedule {
	display: grid;
	gap: 1px;
	margin-top: 14px;
}

.basem-agenda-pdf-advertisements strong {
	font-weight: 700;
}

.event-description {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.38;
}

.event-description p {
	margin: 0 0 14px;
}

.event-description p:last-child {
	margin-bottom: 0;
}

.dinner-visual {
	position: relative;
	z-index: 0;
	height: 520px;
	margin-top: 8px;
	isolation: isolate;
}

.dinner-photo,
.dinner-visual::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.basem-agenda-pdf-advertisements .dinner-visual > .dinner-photo {
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.dinner-visual::after {
	z-index: 1;
	pointer-events: none;
	content: "";
	background: linear-gradient(
		to bottom,
		var(--card-background) 0%,
		rgba(241, 250, 255, 0.88) 9%,
		rgba(241, 250, 255, 0.08) 36%,
		rgba(241, 250, 255, 0.05) 62%,
		rgba(241, 250, 255, 0.92) 91%,
		var(--card-background) 100%
	);
}

.booking {
	position: absolute;
	z-index: 2;
	right: 22px;
	bottom: 18px;
	left: 22px;
	padding: 14px 15px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 6px 24px rgba(38, 34, 98, 0.12);
}

.booking p {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.booking-button {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 8px;
	background: var(--advert-navy);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 180ms ease-in-out;
}

.booking-button:hover {
	transform: scale(1.02);
}

.sponsor {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	padding: 12px 20px 20px;
}

.sponsor span {
	font-size: 8px;
	font-weight: 500;
	white-space: nowrap;
}

.sponsor img {
	display: block;
	width: 82px;
	height: auto;
}

/* Day 2: Programme highlights
--------------------------------------------- */
.pdf-advert--day-2 {
	width: 100%;
	padding: 0 0 12px;
	background: #fff;
}

.programme-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 39px;
	margin: 0 0 7px;
	padding: 10px 16px;
	border-radius: 0 4px 4px 0;
	background: var(--advert-cream);
	color: var(--advert-navy);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.programme-bar time {
	white-space: nowrap;
}

.panel {
	margin: 0 0 8px;
	overflow: hidden;
	border: 1px solid rgba(38, 34, 98, 0.08);
	border-radius: 16px;
	background: var(--advert-panel);
	box-shadow: 0 5px 18px rgba(38, 34, 98, 0.06);
}

.run-panel {
	padding: 18px 18px 12px;
}

.run-panel h1 {
	margin: 0 0 10px;
	color: var(--advert-navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.25px;
}

.run-details {
	font-size: 11.5px;
	line-height: 1.32;
}

.run-details p {
	margin: 0;
}

.run-leaders {
	margin-bottom: 5px !important;
	font-weight: 700;
}

.basem-agenda-pdf-advertisements .run-panel > .landscape {
	display: block;
	width: calc(100% + 36px);
	max-width: none;
	height: 160px;
	max-height: none;
	margin: 14px -18px 0;
	object-fit: cover;
	object-position: center;
}

.sponsor-credit {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.sponsor-credit > span {
	font-size: 8px;
	line-height: 1.3;
}

.sponsor-credit a {
	display: block;
	line-height: 0;
}

.sponsor-credit img {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.sponsor-credit img,
.client-logo img {
	transition: transform 180ms ease-in-out;
}

.sponsor-credit img:hover,
.client-logo img:hover {
	transform: scale(1.02);
}

.run-sponsor {
	padding-top: 9px;
}

.run-sponsor img {
	width: 78px;
	height: 25px;
}

.session-bar {
	border-left-color: var(--advert-blue);
}

.session-panel {
	padding: 17px 18px 14px;
}

.chair-label {
	margin: 0 0 10px;
	color: var(--advert-navy);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.chair {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(38, 34, 98, 0.38);
}

.chair-photo {
	display: block;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(38, 34, 98, 0.16);
	object-fit: cover;
	object-position: center;
}

.chair-description {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 11px;
	line-height: 1.25;
}

.workshop-title {
	margin: 13px 0 8px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.28;
}

.workshop-location {
	margin: 0 0 5px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.3;
}

.workshop-availability {
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #e4f7fd;
	color: var(--advert-navy);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.3;
}

.workshop-sponsor {
	margin-top: 12px;
}

.workshop-sponsor img {
	width: 84px;
	height: 25px;
}

.sponsors-bar {
	justify-content: center;
	border-left-color: var(--advert-pink);
	text-align: center;
}

.sponsors-panel {
	display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
}

.client-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
}

.client-logo:last-child {
	grid-column: 1 / -1;
	justify-self: center;
	width: 45%;
}

.client-logo img {
	display: block;
	width: 100%;
	height: 44px;
	max-width: 100%;
	max-height: 44px;
	object-fit: contain;
}

.logo-arthrex,
.logo-igea,
.logo-trb,
.logo-vald {
	width: 108px;
}

.logo-bupa {
	width: 70px;
}
