/* Booking dialog opened by /assets/js/cal-dialog.js. Radius steps and colours come from the site tokens. */
.cal-dialog {
	width: min(960px, calc(100vw - 32px));
	max-width: none;
	height: min(720px, calc(100dvh - 32px));
	max-height: none;
	margin: auto;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 20px;
	background: var(--surface);
	color: var(--text);
	overflow: hidden;
}
.cal-dialog[open] { display: flex; flex-direction: column; }
.cal-dialog::backdrop { background: rgb(8 7 20 / .74); backdrop-filter: blur(4px); }
.cal-dialog__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 8px 4px 20px;
	border-bottom: 1px solid var(--line);
	font: 400 13px/1.4 "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
.cal-dialog__out {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--text-2);
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 4px;
}
.cal-dialog__out:hover { color: var(--text); text-decoration-color: currentColor; }
.cal-dialog__close {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--text);
	cursor: pointer;
}
.cal-dialog__close:hover { background: var(--surface-2); }
.cal-dialog :focus-visible { outline: 2px solid var(--violet-text); outline-offset: 2px; }
.cal-dialog iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--surface); }
html:has(.cal-dialog[open]) { overflow: hidden; }
@media (max-width: 640px) {
	.cal-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.cal-dialog[open] { animation: calIn .24s cubic-bezier(.16, 1, .3, 1); }
	@keyframes calIn { from { opacity: 0; transform: translateY(8px); } }
}
