/* Agenda — session modal.

   Mirrors .speaker-modal patterns from speaker.modal.css. The "Back to programme"
   link is omitted from the modal body — the close button (×, ESC, backdrop)
   replaces that affordance inside the modal context. */
.session-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.session-modal[hidden] {
	display: none;
}

.session-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.session-modal__panel {
	position: relative;
	background: #fff;
	max-width: 720rem;
	width: calc(100% - 32rem);
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 8px;
	padding: 32rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.session-modal__close {
	position: absolute;
	top: 8rem;
	right: 8rem;
	background: transparent;
	border: 0;
	font-size: 29rem;
	line-height: 1;
	cursor: pointer;
	width: 35rem;
	height: 35rem;
}

.session-modal__close:hover {
	color: #c00;
}

.session-modal__loading,
.session-modal__error {
	text-align: center;
	padding: 32rem;
	color: #666;
}
.session-modal__header {
	margin-bottom: 19rem;
}

.session-modal__title {
	margin: 6rem 0 10rem;
	line-height: 1.25;
	font-size: 22rem;
}

.session-modal__detail-link {
	border-top: 1px solid #eee;
	padding-top: 16rem;
	margin-top: 16rem;
	text-align: right;
}
/* Reserve the scrollbar gutter up-front so locking body scroll (below) when the
   modal opens can't shift the page sideways. */
html {
	scrollbar-gutter: stable;
}

body.session-modal-open {
	overflow: hidden;
}
