@charset "UTF-8";
/* ==========================================================================
   Opt-in form — v7 "Deck"
   --------------------------------------------------------------------------
   The form appears in the sidebar's inverted subscribe panel, so its DEFAULT
   treatment is light-on-dark: a pill input, a solid light submit, and quiet
   consent copy beneath. A .st-optin sitting on a light plate (a page body, a
   shortcode drop) flips to ink-on-plate via the scoped block at the foot.

   Class names are fixed by render.php and handler.php — the markup is not
   restyled here, only repainted.
   ========================================================================== */

.st-optin {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* The honeypot. Hidden with CSS rather than type=hidden so bots still fill it,
   and pulled fully out of the layout and the accessibility tree. */
.st-optin__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.st-optin__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

/* ── The email input ─────────────────────────────────────────────────────── */
.st-optin__input {
	width: 100%;
	padding: 0.9em 1.25em;
	border: 1px solid rgba(242, 244, 247, 0.22);
	border-radius: var(--radius-pill);
	background: rgba(242, 244, 247, 0.06);
	color: var(--on-dark);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	line-height: 1.2;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.st-optin__input::placeholder {
	color: var(--on-dark-faint);
}

.st-optin__input:focus {
	outline: none;
	border-color: var(--on-dark);
	background: rgba(242, 244, 247, 0.1);
}

/* Chrome's autofill paints its own yellow ground and black text, which would
   be unreadable here. An inset shadow the size of the field overrides it. */
.st-optin__input:-webkit-autofill,
.st-optin__input:-webkit-autofill:hover,
.st-optin__input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--on-dark);
	-webkit-box-shadow: 0 0 0 100px #1B1E22 inset;
	caret-color: var(--on-dark);
}

.st-optin__field.has-error .st-optin__input {
	border-color: #F08A80;
}

.st-optin__field-error {
	font-size: var(--fs-micro);
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #F08A80;
	padding-left: 1.25em;
}

/* ── The consent checkbox ────────────────────────────────────────────────── */
.st-optin__consent {
	margin-top: 0.15rem;
}

.st-optin__consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
}

.st-optin__checkbox {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 0.15rem 0 0;
	accent-color: var(--on-dark);
	cursor: pointer;
}

.st-optin__consent-text {
	font-size: var(--fs-micro);
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	color: var(--on-dark-dim);
}

.st-optin__consent-text a {
	color: var(--on-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: rgba(242, 244, 247, 0.4);
	transition: text-decoration-color var(--dur) var(--ease);
}

.st-optin__consent-text a:hover {
	text-decoration-color: var(--on-dark);
}

.st-optin__consent.has-error .st-optin__consent-text {
	color: #F08A80;
}

/* ── The submit ──────────────────────────────────────────────────────────── */
.st-optin__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	width: 100%;
	padding: 0.95em 1.5em;
	border: 1px solid var(--on-dark);
	border-radius: var(--radius-pill);
	background: var(--on-dark);
	color: var(--ink-100);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
		transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.st-optin__submit:hover {
	background: #FFFFFF;
	border-color: #FFFFFF;
	transform: translateY(-1px);
}

.st-optin__submit[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* ── The status message ──────────────────────────────────────────────────── */
.st-optin__message {
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--on-dark-dim);
}

.st-optin__message:empty {
	display: none;
}

.st-optin.is-success .st-optin__message {
	color: #8FD8B0;
}

.st-optin.is-error .st-optin__message {
	color: #F08A80;
}

/* Once the signup has landed the fields are no longer actionable. */
.st-optin.is-done .st-optin__field,
.st-optin.is-done .st-optin__submit {
	display: none;
}

/* ── The compliance footer ───────────────────────────────────────────────── */
.st-optin__footer {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding-top: 0.75rem;
	margin-top: 0.15rem;
	border-top: 1px solid rgba(242, 244, 247, 0.12);
	font-size: 0.625rem;
	line-height: 1.5;
	color: var(--on-dark-faint);
}

.st-optin__support {
	color: var(--on-dark-dim);
	transition: color var(--dur) var(--ease);
}

.st-optin__support:hover {
	color: var(--on-dark);
}

/* ── On a LIGHT ground ───────────────────────────────────────────────────
   The same form dropped anywhere that is not the inverted subscribe panel:
   a page body, a shortcode, a widget area. Repainted ink-on-plate.
   ------------------------------------------------------------------------ */
.entry-content .st-optin .st-optin__input,
.page-content .st-optin .st-optin__input {
	border-color: var(--line-firm);
	background: var(--plate-pure);
	color: var(--ink-100);
}

.entry-content .st-optin .st-optin__input::placeholder,
.page-content .st-optin .st-optin__input::placeholder {
	color: var(--ink-500);
}

.entry-content .st-optin .st-optin__input:focus,
.page-content .st-optin .st-optin__input:focus {
	border-color: var(--ink-100);
	background: var(--plate-pure);
}

.entry-content .st-optin .st-optin__input:-webkit-autofill,
.page-content .st-optin .st-optin__input:-webkit-autofill {
	-webkit-text-fill-color: var(--ink-100);
	-webkit-box-shadow: 0 0 0 100px #FFFFFF inset;
	caret-color: var(--ink-100);
}

.entry-content .st-optin .st-optin__checkbox,
.page-content .st-optin .st-optin__checkbox {
	accent-color: var(--ink-100);
}

.entry-content .st-optin .st-optin__consent-text,
.page-content .st-optin .st-optin__consent-text {
	color: var(--ink-400);
}

.entry-content .st-optin .st-optin__consent-text a,
.page-content .st-optin .st-optin__consent-text a {
	color: var(--ink-100);
	text-decoration-color: var(--line-firm);
}

.entry-content .st-optin .st-optin__submit,
.page-content .st-optin .st-optin__submit {
	background: var(--ink-100);
	border-color: var(--ink-100);
	color: var(--plate-pure);
}

.entry-content .st-optin .st-optin__submit:hover,
.page-content .st-optin .st-optin__submit:hover {
	background: var(--dark-3);
	border-color: var(--dark-3);
}

.entry-content .st-optin .st-optin__message,
.page-content .st-optin .st-optin__message {
	color: var(--ink-400);
}

.entry-content .st-optin.is-success .st-optin__message,
.page-content .st-optin.is-success .st-optin__message {
	color: #0F6E45;
}

.entry-content .st-optin.is-error .st-optin__message,
.page-content .st-optin.is-error .st-optin__message {
	color: #B3261E;
}

.entry-content .st-optin .st-optin__footer,
.page-content .st-optin .st-optin__footer {
	border-top-color: var(--line-soft);
	color: var(--ink-500);
}

.entry-content .st-optin .st-optin__support,
.page-content .st-optin .st-optin__support {
	color: var(--ink-400);
}
