/* Sister sites strip ("The Health.co.uk family") in the footer.
   Markup is in fs-includes/textmenu1.asp. Bump the ?v= number there after editing this file.
   Colours are chosen for the #174b7e blue footer. */

.hc-family {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 -15px;
	padding: 16px 15px;
	border-top: 1px solid rgba(255,255,255,.16);
}
.hc-family .hc-family-intro { flex: 1 1 190px; min-width: 190px; }
.hc-family .hc-family-label {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,.75);
}
.hc-family .hc-family-intro p {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255,255,255,.75);
}

.hc-family .hc-family-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hc-family .hc-family-list li {
	display: flex;
	margin: 0;
	padding: 0;
}
.hc-family .hc-family-list a {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	padding: 6px 14px 6px 6px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 50px;
	background: transparent;
	text-align: left;
	text-decoration: none;
	transition: background-color .3s ease, border-color .3s ease;
}
.hc-family .hc-family-list a:hover,
.hc-family .hc-family-list a:focus {
	background: rgba(255,255,255,.07);
	border-color: rgba(143,211,244,.55);
}
.hc-family .hc-family-list a:focus-visible {
	outline: 2px solid #8fd3f4;
	outline-offset: 2px;
}

.hc-family .hc-family-icon {
	display: flex;
	flex: 0 0 30px;
	align-items: center;
	justify-content: center;
	height: 30px;
	border-radius: 50%;
	background: rgba(143,211,244,.12);
	transition: background-color .3s ease;
}
/* overrides the footer's general icon style (white, 20px, right padding) */
.hc-family .hc-family-icon i {
	padding: 0;
	font-size: 13px;
	color: #8fd3f4;
	transition: color .3s ease;
}
.hc-family .hc-family-list a:hover .hc-family-icon,
.hc-family .hc-family-list a:focus .hc-family-icon { background: rgba(143,211,244,.24); }
.hc-family .hc-family-list a:hover .hc-family-icon i,
.hc-family .hc-family-list a:focus .hc-family-icon i { color: #c4e9fb; }

.hc-family .hc-family-text { flex: 1; min-width: 0; }
.hc-family .hc-family-text strong {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: rgba(255,255,255,.9);
}
.hc-family .hc-family-text em {
	display: block;
	font-size: 11.5px;
	font-style: normal;
	line-height: 1.35;
	color: rgba(255,255,255,.72);
}
.hc-family .hc-family-list a:hover .hc-family-text strong,
.hc-family .hc-family-list a:focus .hc-family-text strong { color: #fff; }
.hc-family .hc-family-list a:hover .hc-family-text em,
.hc-family .hc-family-list a:focus .hc-family-text em { color: rgba(255,255,255,.88); }

/* 1200px and up: all three pills on one row; the heading takes the remaining space */
@media (min-width: 1200px) {
	.hc-family .hc-family-list { flex: 0 0 auto; flex-wrap: nowrap; }
}
/* 851px to 1199px: heading centred above the pills */
@media (max-width: 1199px) {
	.hc-family { flex-direction: column; gap: 14px; text-align: center; }
	.hc-family .hc-family-intro { flex: 0 0 auto; }
	.hc-family .hc-family-list { justify-content: center; }
}
/* Three pills share one row, descriptions wrapping if the container is narrow */
@media (min-width: 851px) and (max-width: 1199px) {
	.hc-family .hc-family-list { flex-wrap: nowrap; max-width: 100%; }
}
/* 850px and below: pills stacked and centred */
@media (max-width: 850px) {
	.hc-family .hc-family-list {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 8px;
		width: 100%;
		max-width: 340px;
		margin: 0 auto;
	}
}
