/* NNS Seminar Schedules: front end */

.nns-sched {
	--nns-ink: #1d1b22;
	--nns-muted: #5b5866;
	--nns-font: "Quicksand", inherit;
	--nns-radius: 20px;
	--nns-gap: 12px;
	font-family: var(--nns-font);
	color: var(--nns-ink);
	text-align: left;
	margin: 0 0 24px;
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
}

/* Elementor: let the Shortcode widget holding the schedule take the full row */
.elementor-widget-shortcode:has(> .elementor-widget-container .nns-sched),
.elementor-widget-shortcode:has(> .elementor-shortcode .nns-sched) {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
}

.elementor-shortcode:has(> .nns-sched) {
	width: 100%;
}

.nns-sched *,
.nns-sched *::before,
.nns-sched *::after,
.nns-dialog *,
.nns-dialog *::before,
.nns-dialog *::after {
	box-sizing: border-box;
}

.nns-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Room columns (desktop) ---------- */

.nns-sched .nns-rooms {
	display: grid;
	grid-template-columns: repeat(var(--nns-cols, 3), minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.nns-sched .nns-room {
	min-width: 0;
	margin: 0;
}

.nns-sched .nns-room__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 22px;
	margin: 0 0 var(--nns-gap);
	border-radius: var(--nns-radius);
	background: var(--nns-room, #CA4179);
	color: #fff;
}

.nns-sched .nns-room__title {
	margin: 0 !important;
	padding: 0;
	font-family: var(--nns-font);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
}

.nns-sched .nns-room__count {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.92;
}

.nns-sched .nns-slots {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: var(--nns-gap);
}

.nns-sched .nns-slots__item {
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.nns-sched .nns-slots__item::before,
.nns-sched .nns-slots__item::marker {
	content: none;
}

/* ---------- Seminar tile ---------- */

.nns-sched .nns-slot {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	min-height: 104px;
	margin: 0;
	padding: 14px;
	border: 0;
	border-radius: var(--nns-radius);
	background: var(--nns-bg, #414042);
	color: #fff;
	font-family: var(--nns-font);
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	white-space: normal;
	box-shadow: 0 1px 2px rgba(20, 18, 30, 0.06);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nns-sched button.nns-slot:hover,
.nns-sched button.nns-slot:focus {
	background: var(--nns-bg, #414042);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(20, 18, 30, 0.18);
}

.nns-sched button.nns-slot.is-dark,
.nns-sched button.nns-slot.is-dark:hover,
.nns-sched button.nns-slot.is-dark:focus {
	color: var(--nns-ink);
}

.nns-sched button.nns-slot:focus-visible {
	outline: 3px solid var(--nns-ink);
	outline-offset: 3px;
}

.nns-sched .nns-slot__media {
	flex: 0 0 72px;
	width: 72px;
	height: 78px;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.18);
	border-bottom: 6px solid var(--nns-accent, #F073A3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nns-sched .nns-slot__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center 22%;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.nns-sched .nns-slot__initials {
	font-size: 22px;
	font-weight: 700;
}

.nns-sched .nns-slot__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
}

.nns-sched .nns-slot__meta,
.nns-dialog .nns-pop__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 3px;
}

.nns-sched .nns-slot__time {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.nns-sched .is-dark .nns-slot__time {
	background: rgba(0, 0, 0, 0.1);
}

.nns-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: #FAE23B;
	color: #1d1b22;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nns-sched .nns-slot__speaker {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.nns-sched .nns-slot__org {
	font-size: 13.5px;
	font-weight: 600;
	opacity: 0.9;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nns-sched .nns-slot__title {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nns-sched .nns-slot__more {
	position: absolute;
	top: calc(14px + 78px - 17px);
	left: calc(14px + 72px - 17px);
	width: 26px;
	height: 26px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #1d1b22;
	box-shadow: 0 2px 6px rgba(20, 18, 30, 0.25);
	transition: transform 0.18s ease;
}

.nns-sched.is-tiny .nns-slot__more {
	top: calc(12px + 68px - 17px);
	left: calc(12px + 60px - 17px);
}

.nns-sched .nns-slot:hover .nns-slot__more {
	transform: rotate(90deg);
}

/* Empty slot */
.nns-sched .nns-slot--empty {
	cursor: default;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	min-height: 72px;
	padding: 14px;
	background: transparent;
	color: var(--nns-muted);
	border: 2px dashed color-mix(in srgb, var(--nns-room, #CA4179) 45%, transparent);
	box-shadow: none;
}

.nns-sched .nns-slot--empty .nns-slot__time {
	background: color-mix(in srgb, var(--nns-room, #CA4179) 14%, transparent);
	color: var(--nns-ink);
}

/* Break: greyed out, not clickable */
.nns-sched .nns-slot--break {
	cursor: default;
	background: #EEECF1;
	color: #4a4756;
	box-shadow: none;
}

.nns-sched .nns-slot--break .nns-slot__time {
	background: rgba(0, 0, 0, 0.07);
}

.nns-sched .nns-slot--break .nns-slot__speaker {
	color: #4a4756;
}

.nns-sched .nns-slot__icon {
	flex: 0 0 72px;
	width: 72px;
	height: 78px;
	border-radius: 14px;
	background: #E0DDE6;
	color: #6b6878;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nns-sched.is-tiny .nns-slot__icon {
	flex-basis: 60px;
	width: 60px;
	height: 68px;
}

.nns-sched .nns-slot__tbc {
	font-size: 15px;
	font-weight: 600;
}

.nns-sched .nns-sched__note {
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--nns-muted);
}

/* ---------- Desktop grid: every tile the same height ---------- */

.nns-sched {
	--nns-tile-h: 168px;
}

.nns-sched:not(.is-narrow) .nns-room__head {
	height: 86px;
	justify-content: center;
	overflow: hidden;
}

.nns-sched:not(.is-narrow) .nns-slot {
	height: var(--nns-tile-h);
	min-height: 0;
	overflow: hidden;
}

.nns-sched:not(.is-narrow) .nns-slot__body {
	max-height: 100%;
	overflow: hidden;
}

.nns-sched:not(.is-narrow) .nns-slot__meta {
	flex-wrap: nowrap;
	min-width: 0;
	overflow: hidden;
}

.nns-sched:not(.is-narrow) .nns-slot__meta .nns-badge {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nns-sched:not(.is-narrow) .nns-slot__time {
	flex: 0 0 auto;
}

.nns-sched:not(.is-narrow) .nns-slot__speaker {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nns-sched:not(.is-narrow) .nns-slot__title {
	-webkit-line-clamp: 2;
}

.nns-sched .nns-slot--spacer {
	visibility: hidden;
	box-shadow: none;
}

.nns-sched.is-narrow .nns-slots__item.is-spacer {
	display: none;
}

/* Compact tiles when each room column is under 300px wide */
.nns-sched.is-compact .nns-rooms {
	gap: 16px;
}

.nns-sched.is-compact .nns-room__head {
	padding: 14px 16px;
}

.nns-sched.is-compact .nns-room__title {
	font-size: 19px;
}

.nns-sched.is-compact .nns-slot {
	gap: 10px;
	padding: 12px;
}

.nns-sched.is-compact .nns-slot__media,
.nns-sched.is-compact .nns-slot__icon {
	flex-basis: 56px;
	width: 56px;
	height: 64px;
	border-bottom-width: 5px;
}

.nns-sched.is-compact .nns-slot__more {
	top: calc(12px + 64px - 17px);
	left: calc(12px + 56px - 17px);
	width: 24px;
	height: 24px;
}

.nns-sched.is-compact .nns-slot__time {
	padding: 2px 8px;
	font-size: 12.5px;
}

.nns-sched.is-compact .nns-badge {
	padding: 2px 7px;
	font-size: 10px;
	letter-spacing: 0.02em;
}

.nns-sched.is-compact .nns-slot__speaker {
	font-size: 15px;
}

.nns-sched.is-compact .nns-slot__org {
	font-size: 12.5px;
}

.nns-sched.is-compact .nns-slot__title {
	font-size: 13.5px;
}

.nns-sched.is-compact .nns-slot__tbc {
	font-size: 14px;
}

/* Let a badge drop onto its own line rather than be cut off; the title
   then gives up a line so every tile stays the same height. */
.nns-sched.is-compact .nns-slot__meta {
	flex-wrap: wrap;
	row-gap: 4px;
}

.nns-sched.is-compact .nns-slot__meta .nns-badge {
	overflow: visible;
	text-overflow: clip;
}

.nns-sched.is-compact .nns-slot:has(.nns-badge) .nns-slot__title {
	-webkit-line-clamp: 1;
}

/* Tabs and swipe hint: only on smaller screens */
.nns-sched .nns-sched__nav {
	display: none;
}

/* ---------- Carousel: JS adds .is-narrow when the schedule is narrower than 900px ---------- */

.nns-sched.is-narrow .nns-sched__nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.nns-sched.is-narrow .nns-tabs {
	display: flex;
	gap: 8px;
}

.nns-sched.is-narrow .nns-tab {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 0;
	min-height: 46px;
	margin: 0;
	padding: 8px 10px;
	border: 2px solid #d9d4e3;
	border-radius: 999px;
	background: #fff;
	color: var(--nns-ink);
	font-family: var(--nns-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nns-sched.is-narrow .nns-tab:hover,
.nns-sched.is-narrow .nns-tab:focus {
	background: #fff;
	color: var(--nns-ink);
	border-color: var(--nns-room);
}

.nns-sched.is-narrow .nns-tab.is-active,
.nns-sched.is-narrow .nns-tab.is-active:hover,
.nns-sched.is-narrow .nns-tab.is-active:focus {
	background: var(--nns-room);
	border-color: var(--nns-room);
	color: #fff;
}

.nns-sched.is-narrow .nns-tab:focus-visible {
	outline: 3px solid var(--nns-ink);
	outline-offset: 2px;
}

.nns-sched.is-narrow .nns-sched__swipe {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	color: var(--nns-muted);
}

.nns-sched.is-narrow .nns-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nns-sched.is-narrow .nns-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #d9d4e3;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.nns-sched.is-narrow .nns-dot.is-active {
	width: 24px;
	background: var(--nns-room);
}

.nns-sched.is-narrow .nns-rooms {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	align-items: flex-start;
	transition: height 0.3s ease;
}

.nns-sched.is-narrow .nns-rooms::-webkit-scrollbar {
	display: none;
}

.nns-sched.is-narrow .nns-room {
	flex: 0 0 90%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}


.nns-sched.is-mid .nns-room {
	flex-basis: 70%;
}


.nns-sched.is-tiny .nns-slot {
	gap: 12px;
	padding: 12px;
}

.nns-sched.is-tiny .nns-slot__media {
	flex-basis: 60px;
	width: 60px;
	height: 68px;
}


/* Without JavaScript, stack rooms on phones */
@media (max-width: 767px) {
	.nns-sched:not(.is-ready) .nns-rooms {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nns-sched .nns-slot__media picture,
.nns-dialog .nns-pop__media picture {
	display: contents;
}

/* ---------- Popup ---------- */

html.nns-lock,
html.nns-lock body {
	overflow: hidden;
}

.nns-dialog {
	width: min(880px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: visible;
	font-family: "Quicksand", inherit;
}

.nns-dialog::backdrop {
	background: rgba(20, 18, 30, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.nns-dialog[open] {
	animation: nns-pop-in 0.22s ease-out;
}

.nns-dialog.nns-fallback {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: none;
	background: rgba(20, 18, 30, 0.62);
}

@keyframes nns-pop-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.nns-dialog .nns-pop {
	position: relative;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 0 32px;
	align-items: start;
	width: 100%;
	max-width: 880px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 36px;
	border-radius: 28px;
	background: var(--nns-bg, #414042);
	color: #fff;
	box-shadow: 0 28px 70px rgba(20, 18, 30, 0.35);
	text-align: left;
}

.nns-dialog .nns-pop.is-dark {
	color: #1d1b22;
}

.nns-dialog .nns-pop.no-media {
	grid-template-columns: minmax(0, 1fr);
}

.nns-dialog .nns-pop__media {
	position: sticky;
	top: 0;
	border-radius: 18px;
	overflow: hidden;
	border-bottom: 14px solid var(--nns-accent, #F073A3);
	background: rgba(255, 255, 255, 0.15);
}

.nns-dialog .nns-pop__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	margin: 0;
	object-fit: cover;
	object-position: center 20%;
	border: 0;
	border-radius: 0;
}

.nns-dialog .nns-pop__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding-right: 36px;
}

.nns-dialog .nns-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.nns-dialog .is-dark .nns-chip {
	background: rgba(0, 0, 0, 0.1);
}

.nns-dialog .nns-pop__title {
	margin: 6px 0 2px !important;
	padding: 0;
	font-family: "Quicksand", inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.22;
	color: inherit !important;
	text-align: left !important;
	text-transform: none;
	letter-spacing: normal;
}

.nns-dialog .nns-pop__speaker {
	margin: 0 !important;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
}

.nns-dialog .nns-pop__org {
	margin: 0 !important;
	font-size: 16px;
	font-weight: 600;
	opacity: 0.92;
}

.nns-dialog .nns-pop__desc {
	margin-top: 10px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
}

.nns-dialog .nns-pop__desc p {
	margin: 0 0 12px !important;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.nns-dialog .nns-pop__desc p:last-child {
	margin-bottom: 0 !important;
}

.nns-dialog .nns-pop__link,
.nns-dialog .nns-pop__link:visited {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 10px 18px;
	min-height: 44px;
	border-radius: 999px;
	background: #fff;
	color: #1d1b22;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.nns-dialog .nns-pop__link:hover,
.nns-dialog .nns-pop__link:focus {
	background: #1d1b22;
	color: #fff;
}

.nns-dialog .nns-pop__close {
	-webkit-appearance: none;
	appearance: none;
	position: sticky;
	top: 0;
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: end;
	z-index: 2;
	width: 46px;
	height: 46px;
	margin: -18px -18px -46px 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #1d1b22;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(20, 18, 30, 0.25);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.nns-dialog .nns-pop__close:hover,
.nns-dialog .nns-pop__close:focus {
	background: #fff;
	color: #1d1b22;
	transform: scale(1.06);
}

.nns-dialog .nns-pop__close:focus-visible,
.nns-dialog .nns-pop__link:focus-visible {
	outline: 3px solid #1d1b22;
	outline-offset: 3px;
}

.nns-dialog .nns-pop__media,
.nns-dialog .nns-pop__content {
	grid-row: 2;
}

.nns-dialog .nns-pop.no-media .nns-pop__content {
	grid-column: 1;
}

@media (max-width: 700px) {
	.nns-dialog {
		width: calc(100vw - 24px);
	}

	.nns-dialog .nns-pop {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 18px;
		border-radius: 24px;
	}

	.nns-dialog .nns-pop__close {
		margin: -6px -6px -46px 0;
	}

	.nns-dialog .nns-pop__media {
		position: relative;
		grid-row: 2;
		margin-bottom: 18px;
	}

	.nns-dialog .nns-pop__media img {
		max-height: 300px;
		aspect-ratio: 4 / 3.4;
	}

	.nns-dialog .nns-pop__content {
		grid-row: 3;
		padding-right: 0;
	}

	.nns-dialog .nns-pop.no-media .nns-pop__content {
		grid-row: 2;
		padding-right: 48px;
	}

	.nns-dialog .nns-pop__title {
		font-size: 23px;
	}

	.nns-dialog .nns-pop__speaker {
		font-size: 17px;
	}

	.nns-dialog .nns-pop__desc {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nns-sched .nns-slot,
	.nns-sched .nns-slot__more,
	.nns-sched .nns-rooms,
	.nns-sched .nns-dot,
	.nns-dialog[open] {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}

	.nns-sched button.nns-slot:hover {
		transform: none;
	}
}
