/* Site chrome: header, navigation, footer, funding block.
   Desktop values: UI_KIT 01/02. Mobile (<=720px): RESPONSIVE_GLOBALS (header closed/open, footer). */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 18px;
	background: var(--white);
	color: var(--navy);
	font-weight: 600;
	border-radius: 0 0 8px 8px;
}

.skip-link:focus {
	left: 16px;
}

/* Header ---------------------------------------------------------------- */
.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	min-height: 92px;
	padding: 12px var(--page-pad);
	background: var(--navy);
}

.site-header__bar {
	display: contents;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.site-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 34px;
	border-radius: 8px;
	background: #ffffff;
}

/* max-height + contain keep an uploaded logo of any proportion inside the tile. */
.site-logo img {
	display: block;
	width: 36px;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.site-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	min-width: 0;
}

.site-brand__name {
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	font-family: var(--font-heading);
	letter-spacing: 0.3px;
}

.site-brand__tagline {
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.site-nav__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
}

.site-nav__list a[aria-current="page"] {
	color: #ffffff;
	border-bottom: 2px solid var(--amber);
	padding-bottom: 4px;
}

.site-nav__cta {
	padding: 10px 22px;
	font-size: 14px;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

/* The global focus ring (amber-deep) is too faint on navy; use the dark-background accent. */
.site-header :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--amber);
}

/* Funding block --------------------------------------------------------- */
.funding-block {
	padding: 32px var(--page-pad);
	background: var(--white);
}

.funding-block__inner {
	display: flex;
	align-items: center;
	gap: 36px;
	padding: 26px 40px;
	border: 1px solid var(--border);
	border-radius: 12px;
}

.funding-block__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.funding-block__label {
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 1px;
}

.funding-block__item img {
	display: block;
	height: 42px;
	width: auto;
}

/* The PAP JPG carries its own white margin, so it is drawn taller than the other logos. */
.funding-block__item--patron img {
	height: 56px;
}

.funding-block__item--ministry img {
	height: 46px;
}

.funding-block__divider {
	width: 1px;
	align-self: stretch;
	background: var(--border);
}

.funding-block__text {
	flex: 1;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--graphite);
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
	padding: 36px var(--page-pad) 24px;
	background: var(--navy-deep);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.site-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.site-footer__org {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 340px;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer .site-logo {
	width: 36px;
	height: 28px;
	border-radius: 6px;
}

.site-footer .site-logo img {
	width: 28px;
}

.site-footer__org-name {
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	font-family: var(--font-heading);
}

.site-footer__desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12.5px;
}

.site-footer__cols {
	display: flex;
	gap: 56px;
}

.site-footer__heading {
	display: block;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
}

/* Menu items flow down three rows, then into the next column (as in the frozen desktop footer). */
.site-footer__list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
	gap: 10px 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a,
.site-footer__link {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13.5px;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
}

/* Narrow desktop: the frozen design only defines >=1440 and the 720 mobile stack, so between the two
   the funding block uses the stacked layout (the 960 breakpoint) and footer items never wrap mid-label. */
.site-footer__list a,
.site-footer__link {
	white-space: nowrap;
}

.site-footer__top {
	flex-wrap: wrap;
}

@media (max-width: 960px) {
	.funding-block__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 24px 20px;
	}

	.funding-block__divider {
		width: auto;
		height: 1px;
	}
}

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 720px) {
	.site-header {
		display: block;
		min-height: 0;
		padding: 0;
	}

	.site-header__bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 64px;
		padding: 0 16px;
	}

	.site-brand {
		gap: 8px;
	}

	.site-logo {
		width: 32px;
		height: 26px;
		border-radius: 6px;
	}

	.site-logo img {
		width: 24px;
	}

	.site-brand__name {
		font-size: 12.5px;
		letter-spacing: 0.2px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.site-brand__tagline {
		display: none;
	}

	/* Without JS the menu stays open and the button is not shown. */
	.site-header.has-js .nav-toggle {
		display: flex;
	}

	.site-header.has-js .site-nav {
		display: none;
	}

	.site-header.has-js.is-open .site-nav {
		display: block;
	}

	.site-nav {
		display: block;
		padding-top: 12px;
		background: var(--navy);
	}

	.site-nav__list {
		display: block;
	}

	.site-nav__list a {
		display: flex;
		align-items: center;
		height: 48px;
		padding: 0 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.site-nav__list a[aria-current="page"] {
		padding: 0 20px 0 17px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		border-left: 3px solid var(--amber);
	}

	.site-nav__cta {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 48px;
		margin: 16px 20px 20px;
		padding: 0;
		font-size: 15px;
	}

	.site-footer {
		padding: 28px 20px 20px;
	}

	.site-footer__inner {
		gap: 20px;
	}

	.site-footer__top,
	.site-footer__cols {
		flex-direction: column;
	}

	.site-footer__top {
		gap: 24px;
	}

	.site-footer__cols {
		gap: 20px;
	}

	.site-footer__brand {
		height: 28px;
	}

	.site-footer .site-logo {
		width: 32px;
		height: 26px;
	}

	.site-footer .site-logo img {
		width: 24px;
	}

	.site-footer__desc {
		font-size: 12px;
		line-height: 1.5;
	}

	.site-footer__list {
		display: block;
	}

	.site-footer__list a,
	.site-footer__link {
		display: flex;
		align-items: center;
		height: 40px;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding-top: 14px;
		font-size: 11px;
	}
}
