/*
 * Adult learning section, on top of the college theme.
 * Only what the theme has no component for. Colours come from the theme's
 * brand tokens, so Prior and Stockton each get their own palette.
 */

.aal-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Section menu, under the site header */
.aal-subnav {
	background: var(--bg-mid);
	border-bottom: 1px solid var(--border);
}
.aal-subnav__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 3.25rem;
}
.aal-subnav .aal-subnav__title {
	flex: 0 0 auto;
	padding: 0.75rem 0;
	font-weight: 700;
	white-space: nowrap;
	color: var(--ink);
	text-decoration: none;
}
.aal-subnav__scroll {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}
.aal-subnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.aal-subnav .aal-subnav__title {
	display: block;
	padding: 0.5rem 0;
	line-height: 0;
}
.aal-subnav .aal-logo {
	display: block;
	width: auto;
	height: 2.6rem;
	max-width: none;
}
@media (max-width: 47.99rem) {
	.aal-subnav .aal-logo {
		height: 2.25rem;
	}
}
.aal-subnav__list li {
	margin: 0;
}
.aal-subnav .aal-subnav__list a {
	display: block;
	padding: 0.9rem 0.45rem 0.75rem;
	border-bottom: 3px solid transparent;
	font-size: 0.9rem;
	white-space: nowrap;
	color: var(--ink);
	text-decoration: none;
}
.aal-subnav .aal-subnav__list a:hover {
	border-bottom-color: var(--border);
	text-decoration: underline;
}
.aal-subnav .aal-subnav__list a.is-current {
	font-weight: 700;
	border-bottom-color: var(--primary-fill);
}
.aal-subnav a:focus-visible {
	outline: 3px solid var(--primary-fill);
	outline-offset: -3px;
}
.aal-subnav__apply {
	flex: 0 0 auto;
}
@media (max-width: 47.99rem) {
	.aal-subnav__inner {
		flex-wrap: wrap;
		gap: 0 1rem;
	}
	.aal-subnav__apply {
		margin-left: auto;
	}
	.aal-subnav__scroll {
		order: 3;
		flex-basis: 100%;
		margin: 0 -0.25rem;
		overflow-x: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}
	.aal-subnav__list {
		flex-wrap: nowrap;
	}
	.aal-subnav .aal-subnav__list a {
		padding: 0.7rem 0.55rem 0.6rem;
	}
}

/* Page and course headers */
#main-content .aal-hero .aal-hero-lead,
.aal-hero .aal-hero-lead {
	max-width: 42rem;
	margin: 0.75rem 0 0;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.5;
	color: #fff;
}

/* Cards */
.aal-card-text {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ink-mid);
}
.aal-course-card .course-meta {
	margin-top: 0.6rem;
}
.aal-page-body [id] {
	scroll-margin-top: 6rem;
}

/* Course page */
.aal-leads {
	display: grid;
	gap: 0.5rem 2rem;
	margin: 0.5rem 0 1.5rem;
}
@media (min-width: 48rem) {
	.aal-leads {
		grid-template-columns: 1fr 1fr;
	}
}
#main-content .main-content-area h3.aal-h3,
#main-content .aal-note h3.aal-h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.125rem;
	line-height: 1.35;
}
#main-content .aal-leads__col h3.aal-h3 {
	margin-top: 0.5rem;
}
.aal-list {
	margin: 0.5rem 0 1.25rem;
	padding-left: 1.25rem;
}
.aal-list li {
	margin: 0.3rem 0;
}
@media (min-width: 48rem) {
	.aal-list--cols {
		columns: 2;
		column-gap: 2rem;
	}
	.aal-list--cols li {
		break-inside: avoid;
	}
}
.aal-note {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--primary-fill);
	background: var(--bg-mid);
}
.aal-note > :first-child {
	margin-top: 0;
}
.aal-note > :last-child {
	margin-bottom: 0;
}
.aal-note--wide {
	margin-top: 2.5rem;
}
.aal-facts {
	margin: 0;
}
.aal-facts > div {
	padding: 0.65rem 0;
	border-top: 1px solid var(--border);
}
.aal-facts > div:first-child {
	padding-top: 0.25rem;
	border-top: 0;
}
.aal-facts dt {
	margin: 0 0 0.15rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink-mid);
}
.aal-facts dd {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ink);
	overflow-wrap: anywhere;
}
.aal-small {
	font-size: 0.8125rem;
	color: var(--ink-mid);
}
.aal-sidebar-apply__contact {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
}
#main-content .aal-sidebar-apply__contact a[href],
#main-content .aal-contact__email a[href] {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.aal-contact__email {
	margin-top: 1rem;
}
.aal-contact .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.aal-contact .wp-block-button {
	margin: 0;
}

/* Course list filter */
.aal-filter-tabs {
	flex-wrap: wrap;
}

/* Home page panel */
.aal-panel__intro {
	max-width: 44rem;
}
.aal-panel .aal-routes {
	margin-top: 1.5rem;
}
.aal-panel__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/*
 * Adult learning logo at the top of every section page header, with the
 * funder credit beside it: "Funded by" and the white Tees Valley Combined
 * Authority logo. The header is always a dark ground. Both logos are sized by
 * height with width auto, so neither is stretched, and neither carries a
 * border, background, filter or transform. The gap is the clearance between
 * the two marks; on a narrow screen the credit wraps under the logo.
 */
.aal-hero .aal-hero-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2.5rem;
	margin: 0 0 1.25rem;
}
.aal-hero .aal-hero-logo {
	display: inline-block;
	margin: 0;
	line-height: 0;
}
.aal-hero .aal-hero-logo img {
	display: block;
	width: auto;
	height: 3rem;
	max-width: 100%;
}
.aal-hero .aal-hero-logo:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}
#main-content .aal-hero .aal-hero-funder {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: none;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}
.aal-hero .aal-hero-funder__logo {
	display: block;
	width: auto;
	height: 2.25rem;
	max-width: 100%;
}
@media (max-width: 47.99rem) {
	.aal-hero .aal-hero-logo img {
		height: 2.4rem;
	}
	.aal-hero .aal-hero-funder__logo {
		height: 1.9rem;
	}
}

/*
 * The same pair in the home page panel, above the heading. The panel is dark
 * on Prior's home page and light everywhere else, and render.php picks white
 * or full colour logos to match. The label takes --ink-mid, which the theme
 * sets for whichever ground the panel is on.
 */
.aal-panel-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2.5rem;
	margin: 0 0 2rem;
}
.aal-panel-brand__logo {
	display: inline-block;
	line-height: 0;
}
.aal-panel-brand__logo img {
	display: block;
	width: auto;
	height: 3rem;
	max-width: 100%;
}
.aal-panel-brand__logo:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 4px;
}
#main-content .aal-panel-brand__funder,
.aal-panel-brand__funder {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: none;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink-mid);
}
.aal-panel-brand__funder img {
	display: block;
	width: auto;
	height: 2.25rem;
	max-width: 100%;
}
@media (max-width: 47.99rem) {
	.aal-panel-brand__logo img {
		height: 2.4rem;
	}
	.aal-panel-brand__funder img {
		height: 1.9rem;
	}
}
