/**
 * MCN Demo Pass — front-end styles.
 *
 * Colours come from custom properties so a second product can re-theme the
 * whole thing from its own stylesheet without touching this file. The defaults
 * are the CaseSteward demo palette.
 */

.mdp-gate,
.mdp-bar,
.mdp-notice {
	--mdp-navy: #1a2148;
	--mdp-teal: #408292;
	--mdp-coral: #ed6967;
	--mdp-ink: #1a2148;
	--mdp-paper: #ffffff;
	--mdp-muted: #5c6480;
	--mdp-line: #dfe3ee;
	--mdp-flag: 18px 0 18px 0;
	--mdp-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------------ *
 * Gate
 * ------------------------------------------------------------------ */

.mdp-gate {
	font-family: var(--mdp-font);
}

.mdp-btn {
	display: inline-block;
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: var(--mdp-flag);
	background: var(--mdp-teal);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

.mdp-btn:hover,
.mdp-btn:focus-visible {
	background: var(--mdp-navy);
	color: #fff;
	transform: translateY(-1px);
}

.mdp-btn--submit {
	width: 100%;
	margin-top: 0.5rem;
	background: var(--mdp-coral);
}

.mdp-btn--submit:hover,
.mdp-btn--submit:focus-visible {
	background: var(--mdp-navy);
}

.mdp-gate-note {
	margin: 0.6rem 0 0;
	color: var(--mdp-muted);
	font-size: 0.85rem;
}

.mdp-gate-note--full {
	color: var(--mdp-coral);
	font-weight: 600;
}

.mdp-gate-unavailable {
	margin: 0;
	color: var(--mdp-muted);
	font-size: 0.9rem;
}

/* ------------------------------------------------------------------ *
 * Modal
 * ------------------------------------------------------------------ */

.mdp-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(26, 33, 72, 0.72);
	overflow-y: auto;
}

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

.mdp-modal-inner {
	position: relative;
	width: 100%;
	max-width: 30rem;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem;
	border-radius: var(--mdp-flag);
	background: var(--mdp-paper);
	color: var(--mdp-ink);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.mdp-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: none;
	color: var(--mdp-muted);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.mdp-modal-title {
	margin: 0 0 0.5rem;
	color: var(--mdp-navy);
	font-size: 1.4rem;
	line-height: 1.25;
}

.mdp-modal-lead {
	margin: 0 0 1.25rem;
	color: var(--mdp-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.mdp-field {
	margin: 0 0 0.9rem;
}

.mdp-field label,
.mdp-field legend {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--mdp-navy);
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mdp-field input[type="text"],
.mdp-field input[type="email"] {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid var(--mdp-line);
	border-radius: 6px;
	background: #fff;
	color: var(--mdp-ink);
	font: inherit;
}

.mdp-field input:focus-visible {
	border-color: var(--mdp-teal);
	outline: 2px solid rgba(64, 130, 146, 0.35);
	outline-offset: 1px;
}

.mdp-field--tiers {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

/* The selector has to out-specify `.mdp-field label` above, which sets the
   uppercase treatment the tier cards must not inherit. */
.mdp-field--tiers label.mdp-tier {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.15rem 0.6rem;
	align-items: start;
	margin-bottom: 0.5rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--mdp-line);
	border-radius: 8px;
	color: var(--mdp-ink);
	font-size: 1rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.mdp-tier:hover {
	border-color: var(--mdp-teal);
}

.mdp-tier input {
	grid-row: 1 / span 3;
	margin-top: 0.2rem;
}

.mdp-tier-label {
	color: var(--mdp-navy);
	font-size: 0.9rem;
	font-weight: 700;
}

.mdp-tier-blurb {
	grid-column: 2;
	color: var(--mdp-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.mdp-tier-seats {
	grid-column: 2;
	color: var(--mdp-teal);
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.mdp-tier.is-full {
	opacity: 0.55;
}

.mdp-tier.is-full .mdp-tier-seats {
	color: var(--mdp-coral);
}

/* Access code — folded away, because almost nobody has one and a visible code
   box on a free demo reads as a paywall. */
.mdp-code {
	margin: 0 0 0.9rem;
}

.mdp-code > summary {
	color: var(--mdp-muted);
	font-size: 0.8rem;
	cursor: pointer;
	list-style: revert;
}

.mdp-code > summary:hover {
	color: var(--mdp-teal);
}

.mdp-code .mdp-field {
	margin: 0.6rem 0 0;
}

.mdp-code input[type="text"] {
	font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* The honeypot must be unreachable by people but present to a bot, so it is
   moved off-screen rather than display:none — some bots skip hidden fields. */
.mdp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mdp-fineprint {
	margin: 0.9rem 0 0;
	color: var(--mdp-muted);
	font-size: 0.75rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * Session bar
 * ------------------------------------------------------------------ */

.mdp-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	padding: 0.7rem 1rem 0.6rem;
	background: var(--mdp-navy);
	color: #fff;
	font-family: var(--mdp-font);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
}

.mdp-bar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	align-items: center;
	max-width: 78rem;
	margin: 0 auto;
}

.mdp-bar-live {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mdp-coral);
	box-shadow: 0 0 0 0 rgba(237, 105, 103, 0.8);
	animation: mdp-pulse 2s infinite;
}

@keyframes mdp-pulse {
	70% {
		box-shadow: 0 0 0 9px rgba(237, 105, 103, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(237, 105, 103, 0);
	}
}

.mdp-bar-who {
	flex: 1 1 18rem;
	font-size: 0.88rem;
}

.mdp-bar-clock {
	display: inline-flex;
	gap: 0.35rem;
	align-items: baseline;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-variant-numeric: tabular-nums;
}

.mdp-bar-clock-value {
	font-size: 1.05rem;
	font-weight: 700;
}

.mdp-bar-clock-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.8;
}

.mdp-bar.is-ending .mdp-bar-clock {
	background: var(--mdp-coral);
}

.mdp-bar-end {
	margin: 0;
}

.mdp-bar-btn {
	display: inline-block;
	padding: 0.5em 1.1em;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--mdp-flag);
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.mdp-bar-btn:hover,
.mdp-bar-btn:focus-visible {
	background: #fff;
	color: var(--mdp-navy);
}

.mdp-bar-btn--ghost {
	border-color: var(--mdp-teal);
	background: var(--mdp-teal);
}

.mdp-bar-note {
	max-width: 78rem;
	margin: 0.4rem auto 0;
	font-size: 0.72rem;
	line-height: 1.4;
	opacity: 0.72;
}

/* Keep the bar from covering the bottom of the page. */
body.mdp-has-bar {
	padding-bottom: 6.5rem;
}

/* ------------------------------------------------------------------ *
 * Notice
 * ------------------------------------------------------------------ */

.mdp-notice {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
	background: var(--mdp-teal);
	color: #fff;
	font-family: var(--mdp-font);
	font-size: 0.88rem;
	text-align: center;
}

.mdp-notice--warn {
	background: var(--mdp-coral);
}

.mdp-notice--info {
	background: var(--mdp-navy);
}

.mdp-notice a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.mdp-bar-who {
		flex-basis: 100%;
	}

	.mdp-bar-note {
		display: none;
	}

	body.mdp-has-bar {
		padding-bottom: 8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdp-btn,
	.mdp-bar-live {
		transition: none;
		animation: none;
	}
}
