/**
 * "Keep in touch" footer column (HFH Kenya).
 */
.hfh-keep-in-touch {
	--hfh-kit-accent: #6ba3d6;
	--hfh-kit-text: #fff;
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.15rem 1.25rem 1.5rem;
	margin: -0.45rem -0.75rem 0 0;
	text-align: left;
}

.ast-footer-widget-area .hfh-keep-in-touch {
	margin-left: 0;
	margin-right: 0;
}

.hfh-keep-in-touch__title {
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #fff;
	text-transform: lowercase;
	font-family: inherit;
}

.hfh-keep-in-touch__rule {
	width: 2.75rem;
	height: 4px;
	margin: 0 0 1.25rem;
	background: #fff;
	border: none;
	border-radius: 1px;
}

.hfh-keep-in-touch__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.hfh-keep-in-touch__item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.45;
	color: var(--hfh-kit-text);
}

.hfh-keep-in-touch__item:last-child {
	margin-bottom: 0;
}

.hfh-keep-in-touch__icon {
	flex: 0 0 1.35rem;
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.15rem;
	color: var(--hfh-kit-accent);
}

.hfh-keep-in-touch__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hfh-keep-in-touch__text {
	flex: 1;
	min-width: 0;
	color: var(--hfh-kit-text);
}

.hfh-keep-in-touch__text a {
	color: var(--hfh-kit-text);
	font-weight: inherit;
	text-decoration: none;
}

.hfh-keep-in-touch__text a:hover,
.hfh-keep-in-touch__text a:focus {
	color: var(--hfh-kit-text);
	text-decoration: underline;
	opacity: 0.9;
}

.hfh-keep-in-touch__social {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0.75rem 0 0;
	max-width: 100%;
	/* no horizontal scroll — size buttons/gap so the row fits the column */
	overflow: visible;
}

.hfh-keep-in-touch__social > li {
	flex: 0 0 auto;
}

.hfh-keep-in-touch__social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	/* 5 across + gaps must fit a narrow ¼-width footer cell (~11.5rem) */
	width: 2.05rem;
	height: 2.05rem;
	min-width: 2.05rem;
	min-height: 2.05rem;
	background: var(--hfh-kit-accent);
	color: #fff;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.hfh-keep-in-touch__social-btn:hover,
.hfh-keep-in-touch__social-btn:focus {
	opacity: 0.92;
	color: #fff;
}

.hfh-keep-in-touch__social-btn svg {
	width: 0.9rem;
	height: 0.9rem;
	fill: currentColor;
}

/* Editable links via “Footer: Keep in touch links” menu (shortcode or Navigation block). */
.hfh-kit-links {
	display: block;
	margin: 0 0 1.25rem;
}

ul.hfh-footer-kit-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.hfh-footer-kit-menu__item {
	margin: 0;
}

.hfh-footer-kit-menu .sub-menu {
	list-style: none;
	margin: 0.35rem 0 0 0.85rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.hfh-footer-kit-menu__link {
	display: inline-flex;
	align-items: center;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--hfh-kit-text) !important;
	text-decoration: none !important;
	min-height: 2.25rem;
}

.hfh-footer-kit-menu__link:hover,
.hfh-footer-kit-menu__link:focus-visible {
	color: var(--hfh-kit-text) !important;
	text-decoration: underline !important;
	opacity: 0.92;
}

.hfh-footer-kit-menu__link:focus-visible {
	outline: 2px solid var(--hfh-kit-accent);
	outline-offset: 2px;
}

@media (max-width: 921px) {
	.hfh-keep-in-touch {
		padding: 0.15rem 0 1.25rem;
		margin: 0;
		max-width: 100%;
	}

	.hfh-keep-in-touch__title {
		font-size: 1.25rem;
	}

	.hfh-keep-in-touch__rule {
		margin-bottom: 1rem;
	}

	.hfh-keep-in-touch__item {
		font-size: 0.92rem;
	}

	/* Slightly smaller social row on tablet so five icons stay on one line */
	.hfh-keep-in-touch__social {
		gap: 0.3rem;
	}

	.hfh-keep-in-touch__social-btn {
		width: 1.95rem;
		height: 1.95rem;
		min-width: 1.95rem;
		min-height: 1.95rem;
	}

	.hfh-footer-kit-menu__link {
		min-height: 2.75rem;
	}
}

@media (max-width: 544px) {
	.hfh-keep-in-touch {
		padding-bottom: 1rem;
	}

	.hfh-keep-in-touch__title {
		font-size: 1.15rem;
	}

	.hfh-keep-in-touch__list {
		margin-bottom: 1.25rem;
	}

	.hfh-keep-in-touch__item {
		margin-bottom: 0.85rem;
		font-size: 0.9rem;
	}

	.hfh-keep-in-touch__social {
		gap: 0.25rem;
	}

	.hfh-keep-in-touch__social-btn {
		width: 1.85rem;
		height: 1.85rem;
		min-width: 1.85rem;
		min-height: 1.85rem;
	}

	.hfh-keep-in-touch__social-btn svg {
		width: 0.8rem;
		height: 0.8rem;
	}
}
