/*
 * The age gate: a dialog over the page on the way in.
 *
 * Layout and type only. Enter is the solid pill, Leave the quiet pill and the checkbox the site
 * checkbox, all from controls.css, so the gate cannot drift from the rest of the site's controls.
 */

html.akem-gate-open,
html.akem-gate-open body {
	overflow: hidden;
}

.akem-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--akem-space-3);
	background: var(--akem-scrim);
	backdrop-filter: blur(3px);
}

.akem-gate__panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: calc(100dvh - 2 * var(--akem-space-3));
	overflow-y: auto;
	padding: var(--akem-space-5);
	background: var(--akem-surface);
	border-radius: var(--akem-radius-card);
	box-shadow: var(--akem-shadow-dialog);
}

.akem-gate__eyebrow {
	margin: 0 0 var(--akem-space-1);
	font-size: var(--akem-size-micro);
	font-weight: var(--akem-weight-label);
	letter-spacing: var(--akem-tracking-wide);
	text-transform: uppercase;
	color: var(--akem-grey);
}

.akem-gate__brand {
	margin: 0 0 var(--akem-space-4);
	font-family: var(--akem-font-display);
	font-size: var(--akem-size-display);
	font-weight: var(--akem-weight-strong);
	letter-spacing: var(--akem-tracking-tight);
	line-height: var(--akem-leading-tight);
	color: var(--akem-ink);
}

.akem-gate__disclaimer p {
	margin: 0 0 var(--akem-space-3);
	font-size: var(--akem-size-small);
	line-height: var(--akem-leading-body);
	color: var(--akem-grey-deep);
}

.akem-gate__disclaimer .akem-gate__strong {
	font-weight: var(--akem-weight-label);
	color: var(--akem-ink);
}

.akem-gate__agree {
	display: flex;
	gap: var(--akem-space-2);
	align-items: flex-start;
	margin: var(--akem-space-4) 0;
	font-size: var(--akem-size-small);
	line-height: var(--akem-leading-body);
	color: var(--akem-ink);
	cursor: pointer;
}

.akem-gate__agree a {
	color: var(--akem-navy);
}

.akem-gate__extra {
	margin: 0 0 var(--akem-space-4);
}

.akem-gate__actions {
	display: flex;
	gap: var(--akem-space-2);
	flex-wrap: wrap;
}

.akem-gate__actions > * {
	flex: 1 1 180px;
}

@media (max-width: 600px) {
	.akem-gate__panel {
		padding: var(--akem-space-4);
	}

	.akem-gate__brand {
		font-size: var(--akem-size-title);
	}
}
