/* ABOUTME: Footer social icons and inline subscribe form styles for the YCV footer band. */
/* ABOUTME: Strips EveryAction white-card defaults; matches --ycv-footer-band-ink palette. */

/* -----------------------------------------------------------------------
   Footer social icons  (.ycv-footer-socials)
   ----------------------------------------------------------------------- */

.ycv-footer-socials {
	margin-bottom: 1.25rem;
}

.ycv-footer-socials__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.875rem;
	align-items: center;
}

.ycv-footer-socials__link {
	display: inline-flex;
	align-items: center;
	color: var(--ycv-footer-band-ink, #1b2d6b) !important;
	text-decoration: none !important;
	transition: opacity 0.15s ease;
}

.ycv-footer-socials__link:hover,
.ycv-footer-socials__link:focus-visible {
	opacity: 0.7;
	text-decoration: none !important;
}

/* -----------------------------------------------------------------------
   Inline subscribe form  (.ycv-subscribe-form-inline)
   ----------------------------------------------------------------------- */

.ycv-subscribe-form-inline > p,
.ycv-subscribe-form-inline .wp-block-paragraph {
	margin-top: 0;
	margin-bottom: 0.75rem;
	color: inherit;
}

/* Strip the EveryAction white card */
.ycv-subscribe-form-inline .ngp-form.at,
.ycv-subscribe-form-inline .at-form {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ycv-subscribe-form-inline .at-inner {
	background: transparent !important;
	padding: 0 !important;
}

.ycv-subscribe-form-inline .at-fieldset {
	border: none !important;
	padding: 0 !important;
	margin: 0 0 0.5rem !important;
}

.ycv-subscribe-form-inline .at-fields {
	gap: 0.5rem;
}

/* Inline row: input expands, button sits beside it */
.ycv-subscribe-form-inline form.clearfix {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.375rem;
}

/* The empty EveryAction subview div spans both columns and takes no space */
.ycv-subscribe-form-inline form.clearfix > div:first-child {
	display: none;
}

.ycv-subscribe-form-inline form.clearfix > fieldset {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	margin: 0 !important;
}

/* Propagate full width down to the input */
.ycv-subscribe-form-inline .at-fields,
.ycv-subscribe-form-inline .at-row.EmailAddress {
	width: 100%;
}

/* EveryAction forces align-items:stretch on .at-row, pinning the label to the top.
   Override to center so the input visually aligns with the button. */
.ycv-subscribe-form-inline .at-row.EmailAddress {
	align-items: center !important;
}

/* Collapse the "Email" text node; use flex to vertically center the input
   inside the 53px height EveryAction forces onto this label. */
.ycv-subscribe-form-inline label.at-text.EmailAddress {
	display: flex !important;
	align-items: center !important;
	font-size: 0;
	line-height: 0;
	margin: 0;
}

/* Email input — position:relative offsets the input down to match the button's
   vertical center, which EveryAction forces 8px lower via its label height. */
.ycv-subscribe-form-inline input[type="email"] {
	position: relative !important;
	top: 8px !important;
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid color-mix(in srgb, var(--ycv-footer-band-ink, #1b2d6b) 40%, transparent);
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	font-family: var(--ycvds-font-base, inherit);
	font-size: 0.9375rem;
	color: var(--ycv-footer-band-ink, #1b2d6b);
	background: rgba(255, 255, 255, 0.55);
	line-height: 1.4;
}

.ycv-subscribe-form-inline input[type="email"]::placeholder {
	color: color-mix(in srgb, var(--ycv-footer-band-ink, #1b2d6b) 45%, transparent);
}

.ycv-subscribe-form-inline input[type="email"]:focus {
	outline: 2px solid var(--ycv-footer-band-ink, #1b2d6b);
	outline-offset: 1px;
	border-color: var(--ycv-footer-band-ink, #1b2d6b);
	background: rgba(255, 255, 255, 0.8);
}

/* Hide the PersonalUrl honeypot row */
.ycv-subscribe-form-inline .at-row:has(input[name="PersonalUrl"]) {
	display: none !important;
}

/* Submit button — inline beside the input */
.ycv-subscribe-form-inline .at-form-submit {
	grid-column: 2;
	grid-row: 1;
	margin: 0 !important;
	padding: 0 !important;
	align-self: center;
}

.ycv-subscribe-form-inline input.at-submit,
.ycv-subscribe-form-inline .btn-at.btn-at-primary {
	background-color: var(--ycv-footer-band-ink, #1b2d6b) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	margin: 0 !important;
	padding: 0.5rem 1rem !important;
	font-family: var(--ycvds-font-base, inherit) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.09em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
}

.ycv-subscribe-form-inline input.at-submit:hover,
.ycv-subscribe-form-inline input.at-submit:focus-visible,
.ycv-subscribe-form-inline .btn-at.btn-at-primary:hover,
.ycv-subscribe-form-inline .btn-at.btn-at-primary:focus-visible {
	background-color: color-mix(in srgb, var(--ycv-footer-band-ink, #1b2d6b) 80%, #000) !important;
	color: #fff !important;
}

/* Suppress empty alert containers */
.ycv-subscribe-form-inline .at-error-console:empty,
.ycv-subscribe-form-inline .at-page-alert:empty,
.ycv-subscribe-form-inline footer.FooterHtml:empty {
	display: none;
}

/* Suppress sr-only header from eating layout space */
.ycv-subscribe-form-inline .at-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}
