/* Kern CRE Subscriber Gate */
.kerncre-gate {
	position: relative;
	min-height: 470px;
}

.kerncre-gate__preview {
	filter: blur(6px);
	opacity: 0.7;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

.kerncre-gate__media {
	display: block;
	min-height: 160px;
	background: #e3e5e6;
	border-radius: 4px;
}

.kerncre-gate__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.55));
}

.kerncre-gate__card {
	position: sticky;
	top: 24px;
	box-sizing: border-box;
	width: 100%;
	max-width: 400px;
	padding: 20px 20px 16px;
	background: #fff;
	border-top: 4px solid var(--wp--preset--color--asu-gold, #f6b412);
	border-radius: 4px;
	box-shadow: 0 8px 28px rgba(46, 52, 56, 0.2);
	color: var(--wp--preset--color--theme-4, #2e3438);
	text-align: left;
}

.kerncre-gate__card p {
	margin: 0;
}

.kerncre-gate__title {
	font-family: var(--wp--preset--font-family--red-hat-display, sans-serif);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--theme-4, #2e3438);
}

.kerncre-gate__card .kerncre-gate__text {
	margin: 4px 0 12px;
	font-size: 15px;
	line-height: 1.45;
}

.kerncre-gate__form {
	margin: 0;
}

.kerncre-gate__field {
	display: block;
	margin: 0 0 8px;
}

.kerncre-gate__field input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	font-size: 16px;
	color: #2e3438;
	background: #fff;
	border: 1px solid #999fa2;
	border-radius: 4px;
}

.kerncre-gate__row {
	display: flex;
	gap: 8px;
}

.kerncre-gate__row .kerncre-gate__field {
	flex: 1 1 0;
	min-width: 0;
}

.kerncre-gate__field input:focus {
	border-color: #2e3438;
	outline: 2px solid var(--wp--preset--color--asu-gold, #f6b412);
	outline-offset: 1px;
}

.kerncre-gate__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0 10px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.kerncre-gate__check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #2e3438;
}

.kerncre-gate__check a {
	color: inherit;
	text-decoration: underline;
}

.kerncre-gate__check input:focus-visible {
	outline: 2px solid var(--wp--preset--color--asu-gold, #f6b412);
	outline-offset: 2px;
}

.kerncre-gate__captcha {
	min-height: 65px;
	margin: 0 0 8px;
}

.kerncre-gate__button {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 4px 0 0;
	padding: 12px 16px;
	font-family: var(--wp--preset--font-family--red-hat-display, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #2e3438;
	background: var(--wp--preset--color--asu-gold, #f6b412);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.kerncre-gate__button:hover,
.kerncre-gate__button:focus-visible {
	background: #e0a000;
}

.kerncre-gate__button:focus-visible {
	outline: 2px solid #2e3438;
	outline-offset: 2px;
}

.kerncre-gate__button:disabled {
	cursor: wait;
	opacity: 0.6;
}

.kerncre-gate__card .kerncre-gate__msg {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.kerncre-gate__card .kerncre-gate__msg:empty {
	display: none;
}

.kerncre-gate__msg.is-error {
	color: #b3261e;
}

.kerncre-gate__card .kerncre-gate__fine {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--wp--preset--color--theme-5, #636b70);
}

.kerncre-gate__sr,
.kerncre-gate__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kerncre-gate-toast {
	margin: 0 0 12px;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #2e3438;
	background: #fff8e6;
	border-left: 4px solid var(--wp--preset--color--asu-gold, #f6b412);
	border-radius: 4px;
}

.kerncre-gate-admin {
	position: relative;
	outline: 2px dashed var(--wp--preset--color--asu-gold, #f6b412);
	outline-offset: 6px;
}

.kerncre-gate-admin__badge {
	position: absolute;
	top: -18px;
	right: 0;
	z-index: 3;
	padding: 4px 8px;
	font: 700 11px/1 var(--wp--preset--font-family--red-hat-display, sans-serif);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2e3438;
	background: var(--wp--preset--color--asu-gold, #f6b412);
	border-radius: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.kerncre-gate-reveal {
		animation: kerncre-gate-fade 0.4s ease-out;
	}
}

@keyframes kerncre-gate-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media print {
	.kerncre-gate__overlay {
		position: static;
		background: none;
	}

	.kerncre-gate__preview {
		display: none;
	}
}

/* Sign-up forms on pages (Subscribe page, home band, article band) */
.kerncre-signup {
	max-width: 560px;
	margin: 16px 0;
}

.kerncre-subscribe-band .kerncre-signup {
	margin-right: auto;
	margin-left: auto;
}

.kerncre-signup .kerncre-gate__button {
	width: auto;
	min-width: 180px;
	padding-right: 28px;
	padding-left: 28px;
}

.kerncre-subscribe-band .kerncre-gate__button {
	color: #fff;
	background: var(--wp--preset--color--theme-4, #2e3438);
}

.kerncre-subscribe-band .kerncre-gate__button:hover,
.kerncre-subscribe-band .kerncre-gate__button:focus-visible {
	background: #000;
}

.kerncre-subscribe-band .kerncre-gate__field input {
	border-color: rgba(46, 52, 56, 0.45);
}

.kerncre-subscribe-band .kerncre-gate__field input:focus {
	outline-color: #2e3438;
}

.kerncre-signup .kerncre-gate__msg {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.4;
}

.kerncre-signup .kerncre-gate__msg:empty {
	display: none;
}

.kerncre-subscribe-band .kerncre-gate__msg.is-error {
	color: #7a0b05;
	font-weight: 600;
}

.kerncre-gate__form.is-done > :not(.kerncre-gate__msg) {
	display: none;
}

.kerncre-gate__form.is-done .kerncre-gate__msg {
	font-size: 17px;
	font-weight: 600;
}

@media (max-width: 480px) {
	.kerncre-signup .kerncre-gate__button {
		width: 100%;
	}
}

/* Jetpack contact forms */
.kerncre-jp-extras {
	margin: 8px 0 16px;
}

.kerncre-jp-extras .kerncre-gate__check {
	font-size: 16px;
}

.kerncre-jp-extras .kerncre-gate__captcha {
	max-width: 400px;
}
