/* ==========================================================================
   "Is this your email address?" - the check after Subscribe.
   See inc/newsletter-confirm.php and assets/js/newsletter-confirm.js.

   Sits above the newsletter popup (z-index 300), because it is usually opened
   from inside it.
   ========================================================================== */

.nc {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: grid;
	place-items: center;
	padding: 16px;
}
.nc[hidden] {
	display: none;
}

.nc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 22, 52, 0.55);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.nc__dialog {
	position: relative;
	width: min(100%, 460px);
	padding: 28px 26px 22px;
	background: #fff;
	color: var(--color-text);
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 60px -20px rgba(1, 22, 52, 0.45);
	text-align: center;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc.is-open .nc__backdrop,
.nc.is-open .nc__dialog {
	opacity: 1;
}
.nc.is-open .nc__dialog {
	transform: none;
}

.nc__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--color-navy-900);
}

/* The address, big enough to read character by character. */
.nc__address {
	margin: 0 0 14px;
	padding: 14px 12px;
	font-size: clamp(18px, 4.6vw, 22px);
	line-height: 1.35;
	overflow-wrap: anywhere;
	background: var(--color-bg-alt);
	border-radius: var(--radius-md);
}
.nc__local {
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--color-navy-900);
}
.nc__domain {
	font-weight: 600;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.nc__text {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--color-text-muted);
}

/* "Did you mean...?" and "that domain cannot receive mail". */
.nc__note {
	margin: 0 0 16px;
	padding: 10px 12px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-warning);
	background: var(--color-warning-bg);
	border-radius: var(--radius-sm);
	overflow-wrap: anywhere;
}

.nc__actions {
	display: grid;
	gap: 8px;
}
.nc__actions .btn {
	width: 100%;
	white-space: normal;
}
.nc__actions .btn[hidden] {
	display: none;
}
.nc__yes:disabled {
	opacity: 0.65;
	cursor: progress;
}

.nc__edit {
	justify-self: center;
	margin-top: 2px;
	padding: 6px 10px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--color-primary-ink);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.nc__edit:hover {
	color: var(--color-navy-900);
}
.nc__edit:focus-visible,
.nc__actions .btn:focus-visible {
	outline: 2px solid var(--color-primary-ink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.nc__backdrop,
	.nc__dialog {
		transition: none;
	}
}
