/* ==========================================================================
   ConvergedHub — site footer
   ========================================================================== */

.ch-ft {
	border-top: 1px solid var(--border);
	background: var(--surface);
	font-family: var(--font-sans);
	color: var(--text);
}

.ch-ft__cols {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 32px 40px;
	display: grid;
	grid-template-columns: 1.5fr repeat(var(--ch-ft-cols, 3), minmax(0, 1fr));
	gap: 40px 48px;
}

.ch-ft__brand {
	max-width: 28em;
}

.ch-ft__logo {
	height: 30px;
	width: auto;
	display: block;
}

.ch-ft__address {
	margin: 18px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-2);
}

.ch-ft__email {
	display: inline-block;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--accent);
	text-decoration: none;
}

.ch-ft__email:hover {
	text-decoration: underline;
}

.ch-ft__heading {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.48px;
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: 14px;
}

.ch-ft__links {
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 14px;
	color: var(--text-2);
}

.ch-ft__links a {
	text-decoration: none;
	color: inherit;
}

.ch-ft__links a:hover {
	color: var(--accent);
}

.ch-ft__cookies {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ch-ft__cookies:hover {
	color: var(--accent);
}

.ch-ft__bottom {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 32px 44px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
}

.ch-ft__copy {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--text-3);
}

.ch-ft__social {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ch-ft__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: var(--text-3);
	text-decoration: none;
}

@media (max-width: 1000px) {
	.ch-ft__cols {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 620px) {
	.ch-ft__cols {
		grid-template-columns: 1fr;
	}

	.ch-ft__bottom {
		padding: 16px 20px 18px;
	}
}

/* ==========================================================================
   Newsletter sign-up (inc/newsletter.php) — shared by the Resources menu,
   the blog band, the end of each article and the footer. The email + button
   row keeps the style of where it sits (.ch-subform, .ch-cta__form); these
   rules cover what every form adds: consent, honeypot and status line.
   ========================================================================== */

.ch-nl__form {
	margin: 0;
}

.ch-nl__consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text-2);
	text-align: left;
	cursor: pointer;
}

.ch-nl__consent input:not(#_) {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	padding: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

[data-theme="dark"] .ch-nl__consent {
	color: var(--ink-text-2);
	max-width: 30rem;
	margin-left: auto;
	margin-right: auto;
}

/* Hidden from people, not from bots: type=hidden fields are skipped by most
   form-filling bots, a visually hidden text field is not. */
.ch-nl__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ch-nl__status {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--danger-fg);
}

[data-theme="dark"] .ch-nl__status {
	color: #ffb4b0;
	text-align: center;
}

.ch-nl__status[hidden] {
	display: none;
}

.ch-nl .ch-subdone {
	margin-top: 4px;
}

[data-theme="dark"] .ch-nl .ch-subdone {
	justify-content: center;
	margin-top: 16px;
	color: var(--ink-text-2);
}

.ch-nl__form[aria-busy="true"] button {
	opacity: 0.7;
	pointer-events: none;
}

/* Larger row for the sign-up card. */
.ch-subform--lg input:not(#_) {
	height: 50px;
	padding-right: 148px;
	font-size: 15px;
}

.ch-subform--lg button:not(#_) {
	top: 6px;
	right: 6px;
	height: 38px;
	padding: 0 18px;
	font-size: 14px;
}

/* End-of-article card (blocks/newsletter-signup). */
/* Spacing is padding, not margin: WordPress's block-gap rules print later and
   zero the vertical margins of anything inside a template group. */
.ch-nlcard {
	box-sizing: content-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 56px 32px 80px;
}

.ch-nlcard__inner {
	padding: 32px;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	background: linear-gradient(158deg, #eef3ff 0%, #f4f1fe 48%, var(--card) 100%);
	box-shadow: var(--shadow-card);
}

.ch-nlcard__title {
	margin: 8px 0 0;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.3px;
	color: var(--text);
}

.ch-nlcard__text {
	margin: 10px 0 20px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--text-2);
}

/* Footer row. */
@media (max-width: 720px) {
	.ch-nlcard {
		padding: 40px 20px 56px;
	}

	.ch-nlcard__inner {
		padding: 24px 20px;
	}

	.ch-nlcard__title {
		font-size: 22px;
	}
}

/* Touch screens: the footer links were 18px-tall targets. The gap becomes
   padding on each link, so they look the same but take a ~30px tap. */
@media (pointer: coarse) {
	.ch-ft__links {
		gap: 0;
	}

	.ch-ft__links a {
		padding-block: 6px;
	}
}

/* While the cookie banner (Demo Links plugin, .chcc-bar) is up it sits over
   the bottom of the page, on a phone right over "Cookie settings", so a tap
   there hit the banner instead (Venu, Nov 8). The page gains room below the
   footer for the banner to cover instead. */
body:has(.chcc-bar:not([hidden])) .ch-page__footer {
	padding-bottom: 120px;
}

@media (max-width: 520px) {
	body:has(.chcc-bar:not([hidden])) .ch-page__footer {
		padding-bottom: 200px;
	}
}
