/* Northern Ireland Humanists header and footer (the "NI Site v2" design). */

.ni-header {
	--ni-indigo: #4c4184;
	--ni-indigo-dark: #3b3a81;
	--ni-teal: #00c7b1;
	--ni-ink: #26254f;
	--ni-gutter: clamp(1rem, 4vw, 3rem);
	margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

.ni-header a { text-decoration: none; }

.ni-header__bar {
	background: var(--ni-indigo-dark);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0 .5rem;
	padding: 4px var(--ni-gutter);
	font-size: 1rem;
}

.ni-header__quiet { color: rgba(255, 255, 255, .75); padding: 6px 8px; white-space: nowrap; }
.ni-header__quiet:hover { color: #fff; }

.ni-header__pill {
	color: #fff;
	border: 1px solid #fff;
	border-radius: 4px;
	font-weight: 700;
	font-size: .85rem;
	padding: 0 8px;
	text-transform: uppercase;
	white-space: nowrap;
}
.ni-header__pill:hover { background: #fff; color: var(--ni-ink); }
.ni-header__pill--join { background: var(--ni-teal); border-color: var(--ni-teal); color: var(--ni-ink); }

.ni-header__main {
	background: var(--ni-indigo);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding: 12px var(--ni-gutter) 16px;
}

.ni-header__logo img { display: block; width: 175px; height: auto; max-width: 100%; filter: brightness(0) invert(1); }

.ni-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.ni-menu > li { position: relative; }
.ni-menu a {
	display: block;
	color: rgba(255, 255, 255, .85);
	padding: 6px 7px;
	font-size: 1.1rem;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.ni-menu a:hover { color: #fff; }
.ni-menu > .current-menu-item > a,
.ni-menu > .current-menu-ancestor > a { border-bottom-color: var(--ni-teal); color: #fff; }
.ni-menu > .menu-item-has-children > a::after { content: " ▾"; font-size: .8em; }

.ni-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	min-width: 16rem;
	list-style: none;
	margin: 0;
	padding: .5rem 0;
	background: var(--ni-indigo);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.ni-menu .sub-menu a { padding: .5rem 1rem; font-size: 1rem; border: 0; }
.ni-menu > li:hover > .sub-menu,
.ni-menu > li:focus-within > .sub-menu { display: block; }

.ni-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.ni-header__toggle span { display: block; width: 24px; height: 2px; background: #fff; }

@media (max-width: 991.98px) {
	.ni-header__logo img { width: 116px; }
	.ni-header__toggle { display: flex; }
	.ni-header__nav { display: none; flex-basis: 100%; border-top: 1px solid rgba(255, 255, 255, .2); }
	.ni-header__nav.is-open { display: block; }
	.ni-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ni-menu a { padding: .8rem 0; font-size: 1.15rem; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .15); }
	.ni-menu > .current-menu-item > a { border-bottom-color: rgba(255, 255, 255, .15); color: var(--ni-teal); }
	.ni-menu > .menu-item-has-children > a::after { content: ""; }
	.ni-menu .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
}

/* Footer */

.site-footer:has(.ni-footer) { margin-top: 0 !important; }

.ni-footer {
	background: #4c4184;
	color: #fff;
	padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 1.5rem;
	margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}
.ni-footer a { color: #fff; }

.ni-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.ni-footer__brand { flex: 4 1 260px; display: flex; flex-direction: column; gap: 1rem; }
.ni-footer__brand img { width: 180px; height: auto; filter: brightness(0) invert(1); margin: .5rem 0 1.5rem; }
.ni-footer__brand p { margin: 0; max-width: 30ch; }
.ni-footer__col { flex: 3 1 200px; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.ni-footer__heading { font-weight: 700; font-size: 1.15rem; }
.ni-footer__plain { text-decoration: none; }
.ni-footer__plain:hover { text-decoration: underline; color: #fff; }

.ni-footer__social { display: flex; gap: 8px; }
.ni-footer__social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.ni-footer__social a:hover { background: #3b3a81; color: #fff; }

.ni-footer__buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.ni-footer__btn {
	padding: .6rem 1.2rem;
	border-radius: 2rem;
	border: 2px solid #fff;
	font-weight: 600;
	text-decoration: none;
}
.ni-footer__btn--join { background: #00c7b1; border-color: #00c7b1; color: #26254f !important; }
.ni-footer__btn:hover { background: #fff; border-color: #fff; color: #26254f !important; }

.ni-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 2rem;
	padding-top: 1.25rem;
	font-size: .85rem;
	color: rgba(255, 255, 255, .85);
}
