/*
Theme Name:   LLU Shadman
Theme URI:    https://generatepress.com
Description:  Child theme for Lahore Leads University, Shadman Campus. Templates for programs, departments, faculty, news and events.
Author:       Shadman Campus
Template:     generatepress
Version:      1.0.0
Text Domain:  llu-shadman
*/

/*
 * Palette sampled from the Lahore Leads University logo artwork itself
 * (shield #303868, chevrons #F8C828) rather than eyeballed from the website.
 */
:root {
	--llu-indigo: #313f69;
	--llu-indigo-dark: #232b4c;
	--llu-gold: #f8c828;
	/*
	 * The brand gold fails contrast as small text on white (about 1.7:1).
	 * This darker amber is the same hue at 5.3:1, for eyebrows and labels on
	 * light backgrounds. The bright gold stays for fills and text on indigo.
	 */
	--llu-gold-deep: #8a6a00;
	--llu-ink: #1f2430;
	--llu-muted: #5b6672;
	--llu-line: #e3e7ec;
	--llu-surface: #f6f8fa;
	--llu-radius: 10px;
	--llu-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--llu-font);
}

h1, h2, h3, h4, h5, h6,
.site-branding .main-title {
	font-family: var(--llu-font);
	letter-spacing: -0.01em;
}

/* ---------- Shared building blocks ---------- */

.llu-section {
	padding: 3.5rem 0;
}

.llu-section--tint {
	background: var(--llu-surface);
}

.llu-section__title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	margin: 0 0 .5rem;
	color: var(--llu-indigo);
}

.llu-section__intro {
	color: var(--llu-muted);
	max-width: 60ch;
	margin: 0 0 2rem;
}

.llu-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	/*
	 * Grid items stretch to the tallest in their row by default, so expanding
	 * one card on hover grew every card beside it. Aligning to the start lets
	 * only the hovered card change height.
	 */
	align-items: start;
}

.llu-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--llu-line);
	border-radius: var(--llu-radius);
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
}

.llu-card:hover {
	box-shadow: 0 8px 24px rgb(11 42 74 / 10%);
	transform: translateY(-2px);
}

.llu-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.llu-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	flex: 1;
}

.llu-card__title {
	font-size: 1.0625rem;
	line-height: 1.35;
	margin: 0;
}

.llu-card__title a {
	color: var(--llu-indigo);
	text-decoration: none;
}

.llu-card__title a:hover {
	text-decoration: underline;
}

.llu-card__meta {
	font-size: .8125rem;
	color: var(--llu-muted);
	margin: 0;
}

.llu-card__excerpt {
	font-size: .9375rem;
	color: var(--llu-muted);
	margin: 0;
}

.llu-eyebrow {
	display: inline-block;
	font-size: .6875rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--llu-gold-deep);
}

/* On the indigo bands the bright brand gold has ample contrast — use it there. */
.llu-hero .llu-eyebrow,
.llu-program-header .llu-eyebrow {
	color: var(--llu-gold);
}

.llu-button {
	display: inline-block;
	padding: .75rem 1.5rem;
	border-radius: var(--llu-radius);
	background: var(--llu-indigo);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--llu-indigo);
}

.llu-button:hover {
	background: var(--llu-indigo-dark);
	color: #fff;
}

.llu-button--ghost {
	background: transparent;
	color: var(--llu-indigo);
}

.llu-button--ghost:hover {
	background: var(--llu-indigo);
	color: #fff;
}

/* ---------- Program single ---------- */

.llu-program-header {
	background: var(--llu-indigo);
	color: #fff;
	padding: 3rem 0;
}

.llu-program-header h1 {
	color: #fff;
	margin: .25rem 0 .75rem;
}

.llu-program-header p {
	color: rgb(255 255 255 / 82%);
	max-width: 60ch;
	margin: 0 0 1.5rem;
}

/*
 * Flex rather than grid: the number of facts varies per program, and a grid
 * left a dead cell whenever the count did not divide evenly. Here the last
 * row's items simply grow to fill the width.
 */
.llu-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	background: #fff;
	border: 1px solid var(--llu-line);
	border-radius: var(--llu-radius);
	overflow: hidden;
	margin: 0 0 2rem;
}

.llu-facts__item {
	/* 13rem basis — below this, values like "4 Years (8 Semesters)" break mid-word. */
	flex: 1 1 13rem;
	background: #fff;
	padding: 1rem 1.25rem;
	box-shadow: 0 0 0 1px var(--llu-line);
}

.llu-facts__label {
	display: block;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--llu-muted);
	margin-bottom: .25rem;
}

.llu-facts__value {
	font-weight: 600;
	color: var(--llu-ink);
}

.llu-careers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.llu-careers li {
	background: var(--llu-surface);
	border: 1px solid var(--llu-line);
	border-radius: 999px;
	padding: .35rem .9rem;
	font-size: .875rem;
}

/* ---------- Faculty ---------- */

.llu-faculty-card__media img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.llu-faculty-card__role {
	font-size: .875rem;
	color: var(--llu-gold-deep);
	font-weight: 600;
	margin: 0;
}

/* ---------- Filters ---------- */

.llu-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.llu-filters a {
	display: inline-block;
	padding: .45rem 1rem;
	border: 1px solid var(--llu-line);
	border-radius: 999px;
	font-size: .875rem;
	text-decoration: none;
	color: var(--llu-ink);
	background: #fff;
}

.llu-filters a:hover,
.llu-filters .is-active a {
	background: var(--llu-indigo);
	border-color: var(--llu-indigo);
	color: #fff;
}

/* ---------- Contact block ---------- */

.llu-contact-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.llu-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.llu-contact-list strong {
	display: block;
	color: var(--llu-indigo);
}

.llu-map iframe {
	width: 100%;
	min-height: 320px;
	border: 0;
	border-radius: var(--llu-radius);
}

/* ---------- Empty states ---------- */

.llu-empty {
	background: var(--llu-surface);
	border: 1px dashed var(--llu-line);
	border-radius: var(--llu-radius);
	padding: 2rem;
	text-align: center;
	color: var(--llu-muted);
}

/* ---------- Front page ---------- */

/*
 * GeneratePress constrains and flexes its content wrapper. The homepage is a
 * stack of full-bleed bands, each with its own inner grid-container, so the
 * outer wrapper is released here rather than fighting it section by section.
 */
.home .site.grid-container {
	max-width: 100%;
	padding: 0;
}

.home .site-content {
	display: block;
	padding: 0;
}

.llu-hero {
	background: linear-gradient(135deg, var(--llu-indigo) 0%, var(--llu-indigo-dark) 100%);
	color: #fff;
	padding: clamp(3rem, 2rem + 6vw, 6rem) 0;
}

.llu-hero__inner {
	max-width: 46rem;
}

.llu-hero h1 {
	color: #fff;
	font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
	line-height: 1.15;
	margin: .5rem 0 1rem;
}

.llu-hero p {
	color: rgb(255 255 255 / 85%);
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
	margin: 0 0 2rem;
}

.llu-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 0;
}

.llu-button--gold {
	background: var(--llu-gold);
	border-color: var(--llu-gold);
	color: var(--llu-indigo-dark);
}

.llu-button--gold:hover {
	background: #e0b410;
	border-color: #e0b410;
	color: var(--llu-indigo-dark);
}

.llu-button--onDark {
	background: transparent;
	border-color: rgb(255 255 255 / 55%);
	color: #fff;
}

.llu-button--onDark:hover {
	background: rgb(255 255 255 / 12%);
	color: #fff;
}

.llu-stats {
	/* Indigo-dark rather than near-black, so the band reads as part of the
	   hero rather than an unrelated strip. */
	background: var(--llu-indigo-dark);
	color: #fff;
	padding: 2rem 0;
}

.llu-stats__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
	margin: 0;
	text-align: center;
}

.llu-stats__item dt {
	order: 2;
	font-size: .8125rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 70%);
}

.llu-stats__item dd {
	order: 1;
	margin: 0 0 .25rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--llu-gold);
}

.llu-stats__item {
	display: flex;
	flex-direction: column;
}

.llu-section__more {
	margin: 2rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.llu-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	counter-reset: step;
}

.llu-steps li {
	background: #fff;
	border: 1px solid var(--llu-line);
	border-radius: var(--llu-radius);
	padding: 1.5rem;
}

.llu-steps h3 {
	font-size: 1.0625rem;
	margin: .75rem 0 .5rem;
	color: var(--llu-indigo);
}

.llu-steps p {
	margin: 0;
	color: var(--llu-muted);
	font-size: .9375rem;
}

.llu-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--llu-indigo);
	color: #fff;
	font-weight: 700;
}

.llu-split {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.llu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .25rem;
}

.llu-list li {
	padding: .9rem 0;
	border-bottom: 1px solid var(--llu-line);
}

.llu-list a {
	display: block;
	color: var(--llu-indigo);
	font-weight: 600;
	text-decoration: none;
}

.llu-list a:hover {
	text-decoration: underline;
}

.llu-list__meta {
	font-size: .8125rem;
	color: var(--llu-muted);
}

/* ---------- Header ---------- */

/*
 * The campus name is long. At the theme's default sizes the title wrapped to
 * two lines and pushed the nine-item menu onto a second row.
 */
.site-branding .main-title {
	font-size: 1.125rem;
	line-height: 1.25;
}

/*
 * Header spans the page rather than the centred content column, so the logo
 * sits against the left edge of the viewport and the menu against the right.
 */
.site-header .inside-header {
	max-width: 100%;
	padding-left: 40px;
	padding-right: 40px;
}

/*
 * Header lockup: the university logo with "Shadman Campus" set beneath the
 * wordmark, not beneath the whole image.
 *
 * Measured from the artwork: the shield occupies the left 28.4% of the file
 * (ink runs 50–232px of 943px, wordmark starts at 268px). Expressing the
 * indent as a percentage of the container — which shrink-wraps to the logo —
 * keeps the alignment exact at any logo height.
 */
.site-branding-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.site-logo img {
	max-height: 62px;
	width: auto;
}

.site-branding {
	width: 100%;
}

/*
 * The logo file carries 18.8% transparent space below the wordmark (ink ends
 * at y=202 of 250), which at a 62px render is 11.7px of dead air. The negative
 * margin closes that gap so the tagline sits tight under the wordmark instead
 * of floating away from it.
 */
.site-branding .site-description {
	margin: -7px 0 0 26.4%;
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--llu-indigo);
}

@media (max-width: 768px) {
	.site-header .inside-header {
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-logo img {
		max-height: 44px;
	}

	.site-branding .site-description {
		/* Same 18.8% dead space, scaled to the 44px mobile logo. */
		margin-top: -4px;
		font-size: .625rem;
		letter-spacing: .08em;
	}
}

.main-navigation a {
	font-size: .875rem;
}

.main-navigation .main-nav ul li a {
	padding-left: .7rem;
	padding-right: .7rem;
}

/* Keep the branding from eating the width the eight-item menu needs. */
.site-branding {
	max-width: 20rem;
}

@media (max-width: 1100px) {
	.site-branding .main-title {
		font-size: 1rem;
	}
}

/* ---------- Rhythm ---------- */

/* Consecutive untinted sections read as one long gap without this. */
.llu-section + .llu-section {
	padding-top: 1rem;
}

.entry-content > h2:first-child {
	margin-top: 0;
}

/* ---------- Gutters for full-bleed bands ---------- */

/*
 * These sections span the viewport, so their inner container carries the
 * gutter itself. Without this, body text sat flush against the screen edge on
 * narrow viewports.
 */
.llu-hero > .grid-container,
.llu-stats > .grid-container,
.llu-section > .grid-container,
.llu-program-header > .grid-container {
	padding-left: 20px;
	padding-right: 20px;
}

@media (min-width: 769px) {
	.llu-hero > .grid-container,
	.llu-stats > .grid-container,
	.llu-section > .grid-container,
	.llu-program-header > .grid-container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* ---------- Link underlines ---------- */

/*
 * Underlines sat directly on the descenders. Offsetting them and thinning the
 * stroke keeps the text legible while still reading as a link.
 */
a {
	text-underline-offset: .22em;
	text-decoration-thickness: 1px;
}

.llu-card__title a:hover,
.llu-list a:hover,
.entry-content a:hover {
	text-underline-offset: .28em;
}

/* ---------- Cards: reveal detail on hover ---------- */

/*
 * Collapsed to the heading, expanding on hover or keyboard focus.
 *
 * Gated behind `hover: hover` on purpose. A touch device has no hover state,
 * so on phones and tablets the detail stays permanently visible rather than
 * being unreachable — most of this site's traffic is mobile.
 */
@media (hover: hover) and (pointer: fine) {
	.llu-card__meta,
	.llu-card__excerpt,
	.llu-faculty-card__role {
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transform: translateY(-4px);
		transition: max-height .28s ease, opacity .2s ease, transform .28s ease, margin .28s ease;
	}

	.llu-card:hover .llu-card__meta,
	.llu-card:hover .llu-card__excerpt,
	.llu-card:hover .llu-faculty-card__role,
	.llu-card:focus-within .llu-card__meta,
	.llu-card:focus-within .llu-card__excerpt,
	.llu-card:focus-within .llu-faculty-card__role {
		max-height: 12rem;
		opacity: 1;
		transform: none;
	}

	/* The body gap would otherwise leave a hole where the hidden text sits. */
	.llu-card__body {
		gap: 0;
		row-gap: 0;
	}

	.llu-card__body > * + * {
		margin-top: .5rem;
	}

	.llu-card:not(:hover):not(:focus-within) .llu-card__body > .llu-card__meta,
	.llu-card:not(:hover):not(:focus-within) .llu-card__body > .llu-card__excerpt,
	.llu-card:not(:hover):not(:focus-within) .llu-card__body > .llu-faculty-card__role {
		margin-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.llu-card__meta,
	.llu-card__excerpt,
	.llu-faculty-card__role {
		transition: none;
	}
}

/* ---------- Site footer ---------- */

.llu-footer {
	background: var(--llu-indigo-dark);
	color: rgb(255 255 255 / 78%);
	padding: 3.5rem 0 0;
	font-size: .9375rem;
}

.llu-footer .grid-container {
	padding-left: 40px;
	padding-right: 40px;
}

.llu-footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	padding-bottom: 3rem;
}

.llu-footer__logo {
	max-width: 200px;
	height: auto;
	/* The mark is navy on transparent; on the dark band it needs lifting. */
	background: #fff;
	padding: .5rem .75rem;
	border-radius: 6px;
}

.llu-footer__tagline {
	margin: .75rem 0 0;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--llu-gold);
}

.llu-footer__blurb {
	margin: .75rem 0 0;
	max-width: 34ch;
	color: rgb(255 255 255 / 66%);
}

.llu-footer__heading {
	font-size: .8125rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 1rem;
}

.llu-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .6rem;
}

.llu-footer a {
	color: rgb(255 255 255 / 78%);
	text-decoration: none;
}

.llu-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.llu-footer__contact li {
	line-height: 1.6;
}

.llu-footer__map iframe {
	width: 100%;
	min-height: 140px;
	margin-top: 1rem;
	border: 0;
	border-radius: 8px;
}

.llu-social {
	list-style: none;
	display: flex;
	gap: .6rem;
	margin: 1.25rem 0 0;
	padding: 0;
}

.llu-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgb(255 255 255 / 10%);
	color: #fff;
	transition: background .18s ease, color .18s ease;
}

.llu-social a:hover {
	background: var(--llu-gold);
	color: var(--llu-indigo-dark);
	text-decoration: none;
}

.llu-footer__bar {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 0;
	border-top: 1px solid rgb(255 255 255 / 12%);
	font-size: .8125rem;
	color: rgb(255 255 255 / 60%);
}

.llu-footer__bar p {
	margin: 0;
}

@media (max-width: 900px) {
	.llu-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}

	.llu-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.llu-footer__grid {
		grid-template-columns: 1fr;
	}

	.llu-footer .grid-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ---------- Full-width layout for every template ---------- */

/*
 * Released globally, not just on the front page. Header bands and the footer
 * span the viewport; each template wraps its own content in .grid-container.
 */
.site.grid-container {
	max-width: 100%;
	padding: 0;
}

.site-content {
	display: block;
	padding: 0;
}

.separate-containers .inside-article,
.separate-containers .page-header,
.one-container .site-content {
	padding: 0;
	background: none;
}

.llu-prose {
	max-width: 74ch;
	margin-left: auto;
	margin-right: auto;
}

.llu-prose .entry-content h2 {
	margin-top: 2.5rem;
	color: var(--llu-indigo);
}

.llu-prose .entry-content li {
	margin-bottom: .4rem;
}

/* ---------- Page header band ---------- */

.llu-pagehead {
	background: linear-gradient(135deg, var(--llu-indigo) 0%, var(--llu-indigo-dark) 100%);
	color: #fff;
	padding: clamp(2.75rem, 2rem + 3.5vw, 4.5rem) 0;
	text-align: center;
}

.llu-pagehead > .grid-container {
	padding-left: 40px;
	padding-right: 40px;
}

.llu-pagehead__title {
	color: #fff;
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
	line-height: 1.15;
	margin: .5rem 0 0;
}

.llu-pagehead__sub {
	color: rgb(255 255 255 / 82%);
	max-width: 62ch;
	margin: .85rem auto 0;
}

.llu-pagehead .llu-eyebrow {
	color: var(--llu-gold);
}

/* ---------- Centred section headings, with clearance ---------- */

.llu-section__title--center,
.llu-section__intro--center {
	text-align: center;
}

.llu-section__intro--center {
	margin-left: auto;
	margin-right: auto;
}

/*
 * Cards lift on hover, so the grid needs headroom or the top row collides
 * with the heading above it.
 */
.llu-section__title--center + .llu-grid,
.llu-section__intro--center + .llu-grid,
.llu-filters + .llu-grid {
	margin-top: 2.25rem;
}

.llu-filters--center {
	justify-content: center;
}

/* ---------- Card media zoom ---------- */

.llu-card__media {
	overflow: hidden;
}

.llu-card__media img {
	transition: transform .5s ease;
}

.llu-card:hover .llu-card__media img {
	transform: scale(1.06);
}

/* ---------- Scroll reveal ---------- */

.llu-reveal > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .5s ease, transform .5s ease;
}

.llu-reveal.is-visible > * {
	opacity: 1;
	transform: none;
}

.llu-reveal.is-visible > *:nth-child(2)  { transition-delay: .06s; }
.llu-reveal.is-visible > *:nth-child(3)  { transition-delay: .12s; }
.llu-reveal.is-visible > *:nth-child(4)  { transition-delay: .18s; }
.llu-reveal.is-visible > *:nth-child(5)  { transition-delay: .24s; }
.llu-reveal.is-visible > *:nth-child(6)  { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
	.llu-reveal > *,
	.llu-reveal.is-visible > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Navigation dropdowns ---------- */

.main-navigation ul ul {
	min-width: 15rem;
	padding: .5rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 44px rgb(16 24 40 / 14%), 0 2px 6px rgb(16 24 40 / 6%);
	border: 1px solid var(--llu-line);
	/* GeneratePress toggles opacity; the lift gives it somewhere to travel from. */
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.sfHover > ul,
.main-navigation ul li:focus-within > ul {
	transform: translateY(0);
}

.main-navigation .main-nav ul ul li a {
	padding: .6rem .85rem;
	border-radius: 8px;
	font-size: .875rem;
	color: var(--llu-ink);
	transition: background .15s ease, color .15s ease;
}

.main-navigation .main-nav ul ul li a:hover,
.main-navigation .main-nav ul ul li.current-menu-item > a {
	background: var(--llu-surface);
	color: var(--llu-indigo);
}

/* Gold rule that grows under the active top-level item. */
.main-navigation .main-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: .7rem;
	right: .7rem;
	bottom: 12px;
	height: 2px;
	background: var(--llu-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

.main-navigation .main-nav > ul > li {
	position: relative;
}

.main-navigation .main-nav > ul > li:hover > a::after,
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a::after {
	transform: scaleX(1);
}

/*
 * The dropdown caret sits inside the anchor, so the rule ran under it too.
 *
 * Measured across every label: the text ends exactly 44px from the anchor's
 * right edge, which is the toggle's own width. So the offset is 44px flat —
 * adding the anchor's .7rem padding on top of it cut the underline 11px short,
 * stopping before the last two characters.
 */
.main-navigation .main-nav > ul > li.menu-item-has-children > a::after {
	right: 44px;
}

/* ---------- GeneratePress leftovers ---------- */

/* The theme prints an empty copyright bar under our own footer. */
.site-info,
.inside-site-info {
	display: none;
}

/* ---------- Hero quick links ---------- */

.llu-hero__quick {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .75rem;
	margin: 2rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid rgb(255 255 255 / 18%);
	/*
	 * The rule is the list's own top border, so without this it stretched the
	 * full width of the hero column while the pills filled only part of it.
	 * Shrinking the list to its content makes the line end with the pills.
	 */
	width: fit-content;
	max-width: 100%;
}

.llu-hero__quick a {
	display: inline-block;
	padding: .3rem .85rem;
	border: 1px solid rgb(255 255 255 / 30%);
	border-radius: 999px;
	font-size: .8125rem;
	color: rgb(255 255 255 / 88%);
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease;
}

.llu-hero__quick a:hover {
	background: rgb(255 255 255 / 14%);
	border-color: rgb(255 255 255 / 55%);
	color: #fff;
}

/* ---------- Feature grid ---------- */

.llu-features {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	margin-top: 2.25rem;
}

.llu-feature {
	background: #fff;
	border: 1px solid var(--llu-line);
	border-radius: 12px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	transition: box-shadow .2s ease, transform .2s ease;
}

.llu-feature:hover {
	box-shadow: 0 10px 30px rgb(16 24 40 / 8%);
	transform: translateY(-3px);
}

.llu-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--llu-indigo);
	color: var(--llu-gold);
	margin-bottom: 1rem;
}

.llu-feature h3 {
	font-size: 1rem;
	margin: 0 0 .5rem;
	color: var(--llu-indigo);
}

.llu-feature p {
	margin: 0;
	font-size: .9375rem;
	color: var(--llu-muted);
}

/* ---------- Call-to-action band ---------- */

.llu-cta {
	background: linear-gradient(120deg, var(--llu-indigo) 0%, var(--llu-indigo-dark) 100%);
	color: #fff;
	padding: 3.25rem 0;
}

.llu-cta > .grid-container {
	padding-left: 40px;
	padding-right: 40px;
}

.llu-cta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	justify-content: space-between;
}

.llu-cta h2 {
	color: #fff;
	font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
	margin: .35rem 0 .5rem;
	max-width: 22ch;
}

.llu-cta p {
	margin: 0;
	color: rgb(255 255 255 / 80%);
	max-width: 52ch;
}

.llu-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

/* ---------- Gallery strip ---------- */

.llu-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 150px 150px;
	margin-top: 2.25rem;
}

.llu-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
}

/* First tile spans a 2x2 block so the strip is not a flat row of thumbnails. */
.llu-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.llu-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s ease;
}

.llu-gallery__item:hover img {
	transform: scale(1.05);
}

@media (max-width: 780px) {
	.llu-gallery {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: 130px 130px 130px;
	}
}

.llu-section__more--center {
	justify-content: center;
}

/* ---------- One shared container width ---------- */

/*
 * The header was released to full width while everything else stayed in
 * GeneratePress's 1200px container, so the logo and the hero text only lined
 * up by coincidence at around 1280px. Above that they drifted apart.
 *
 * One width for every band instead: wide enough that on a normal laptop each
 * section starts at the same 40px gutter as the logo, and on an ultra-wide
 * display everything stays centred together rather than stretching.
 */
:root {
	--llu-container: 1600px;
}

.site-header .inside-header,
.llu-hero > .grid-container,
.llu-pagehead > .grid-container,
.llu-stats > .grid-container,
.llu-section > .grid-container,
.llu-cta > .grid-container,
.llu-footer > .grid-container,
.llu-program-header > .grid-container {
	max-width: var(--llu-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 40px;
	padding-right: 40px;
}

@media (max-width: 768px) {
	.site-header .inside-header,
	.llu-hero > .grid-container,
	.llu-pagehead > .grid-container,
	.llu-stats > .grid-container,
	.llu-section > .grid-container,
	.llu-cta > .grid-container,
	.llu-footer > .grid-container,
	.llu-program-header > .grid-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ---------- Core gallery block ---------- */

/*
 * Editors add photographs with the core Gallery block, so this styles whatever
 * they insert — any number of images, on any page, news item or event.
 */
.entry-content .wp-block-gallery {
	gap: 1rem;
	margin: 2rem 0;
}

.entry-content .wp-block-gallery .wp-block-image {
	overflow: hidden;
	border-radius: 12px;
	margin: 0;
}

.entry-content .wp-block-gallery .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .5s ease;
}

.entry-content .wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.05);
}

/* Galleries read better across the full column than inside the prose measure. */
.llu-prose .wp-block-gallery {
	max-width: none;
}

.entry-content .wp-block-image:not(.wp-block-gallery .wp-block-image) img {
	border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.entry-content .wp-block-gallery .wp-block-image img {
		transition: none;
	}
}

/* Give the two columns breathing room under their centred headings. */
.llu-split .llu-section__title--center + .llu-list {
	margin-top: 1.5rem;
}

/* ---------- Centred two-column block (news and events) ---------- */

/*
 * Both columns centre as a unit rather than sitting hard left. Each column is
 * capped so that on a wide screen the two lists stay near the middle of the
 * page instead of drifting to opposite edges.
 */
.llu-split--center {
	justify-items: center;
	text-align: center;
}

.llu-split--center > * {
	width: 100%;
	max-width: 32rem;
}

.llu-split--center .llu-list a {
	display: inline-block;
}

.llu-split--center .llu-list li {
	padding: 1rem 0;
}

.llu-split--center .llu-list__meta {
	display: block;
	margin-top: .2rem;
}

/* ---------- Carousel ---------- */

.llu-carousel {
	margin-top: 2.25rem;
}

/*
 * Native scroll with snap points rather than a transform track: swipe, mouse
 * wheel and keyboard all work without any JavaScript, and the script only adds
 * autoplay and the dots on top.
 */
.llu-carousel__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	align-items: flex-start;
	/* Room for the card lift on hover, which would otherwise be clipped. */
	padding: 6px 2px 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.llu-carousel__track::-webkit-scrollbar {
	display: none;
}

.llu-carousel__track > * {
	flex: 0 0 calc((100% - 3rem) / 3);
	scroll-snap-align: start;
}

@media (max-width: 1000px) {
	.llu-carousel__track > * {
		flex-basis: calc((100% - 1.5rem) / 2);
	}
}

@media (max-width: 640px) {
	.llu-carousel__track > * {
		flex-basis: 85%;
	}
}

.llu-carousel__dots {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: 1.5rem;
}

.llu-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--llu-line);
	cursor: pointer;
	transition: background .2s ease, width .2s ease;
}

.llu-carousel__dot:hover {
	background: var(--llu-muted);
}

.llu-carousel__dot[aria-current="true"] {
	width: 26px;
	border-radius: 999px;
	background: var(--llu-indigo);
}

.llu-carousel__dot:focus-visible {
	outline: 2px solid var(--llu-indigo);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.llu-carousel__track {
		scroll-behavior: auto;
	}
}

/* ---------- Carousel variants ---------- */

/*
 * Four cards across on a desktop, two on a tablet, one on a phone. A single
 * card spanning 1200px wastes most of the row — the carousel is there to page
 * through a set, not to show one item at a time.
 */
.llu-carousel--cards .llu-carousel__track > * {
	flex: 0 0 calc((100% - 4.5rem) / 4);
}

@media (max-width: 1100px) {
	.llu-carousel--cards .llu-carousel__track > * {
		flex-basis: calc((100% - 1.5rem) / 2);
	}
}

@media (max-width: 640px) {
	.llu-carousel--cards .llu-carousel__track > * {
		flex-basis: 100%;
	}
}

/* Features and steps keep their full row on desktop, so the dots disappear
   there and only mobile gets a swipe. */
.llu-carousel--features .llu-carousel__track > *,
.llu-carousel--steps .llu-carousel__track > * {
	flex: 0 0 calc((100% - 4.5rem) / 4);
}

.llu-carousel--steps .llu-carousel__track > * {
	flex-basis: calc((100% - 3rem) / 3);
}

.llu-carousel--features .llu-carousel__track,
.llu-carousel--steps .llu-carousel__track {
	margin-top: 0;
}

.llu-carousel__dot--number {
	width: auto;
	min-width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--llu-line);
	color: var(--llu-indigo);
	font-family: var(--llu-font);
	font-size: .875rem;
	font-weight: 600;
}

.llu-carousel__dot--number[aria-current="true"] {
	width: auto;
	background: var(--llu-indigo);
	border-color: var(--llu-indigo);
	color: #fff;
}

@media (max-width: 900px) {
	.llu-carousel--features .llu-carousel__track > *,
	.llu-carousel--steps .llu-carousel__track > * {
		flex: 0 0 100%;
	}
}

/* ---------- Stats ---------- */

/*
 * Flex-wrap centred rather than a grid: with an odd number of items the last
 * one centres on its own row instead of sitting alone on the left.
 */
.llu-stats__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.75rem 2.5rem;
}

.llu-stats__item {
	flex: 0 1 auto;
	min-width: 8.5rem;
}

/* ---------- Mobile corrections ---------- */

@media (max-width: 768px) {
	/*
	 * In the mobile menu each anchor becomes a full-width row, so the active
	 * rule stretched the whole screen. The mobile menu marks its current item
	 * by colour instead.
	 */
	.main-navigation .main-nav > ul > li > a::after {
		content: none;
	}

	.llu-cta__inner,
	.llu-cta__actions {
		justify-content: center;
		text-align: center;
	}

	.llu-cta h2,
	.llu-cta p {
		margin-left: auto;
		margin-right: auto;
	}

	.llu-section {
		padding: 2.5rem 0;
	}

	.llu-section__title--center + .llu-grid,
	.llu-section__intro--center + .llu-grid,
	.llu-filters + .llu-grid {
		margin-top: 1.5rem;
	}

	.llu-hero__actions .llu-button {
		flex: 1 1 auto;
		text-align: center;
	}

	/* Comfortable tap targets on the pill links. */
	.llu-hero__quick a,
	.llu-filters a {
		padding-top: .55rem;
		padding-bottom: .55rem;
	}

	.llu-facts__item {
		flex-basis: 100%;
	}
}

/* ---------- Lightbox ---------- */

.llu-zoomable {
	cursor: zoom-in;
}

.llu-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
	background: rgb(12 16 28 / 92%);
}

.llu-lightbox img {
	max-width: 100%;
	max-height: 92vh;
	width: auto;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

.llu-lightbox__close {
	position: absolute;
	top: max(1rem, 3vmin);
	right: max(1rem, 3vmin);
	/* Flex centring, not line-height: the icon must sit dead centre. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 50%;
	background: rgb(255 255 255 / 12%);
	color: #fff;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.llu-lightbox__close:hover {
	transform: scale(1.06);
}

.llu-lightbox__close:hover,
.llu-lightbox__close:focus-visible {
	background: rgb(255 255 255 / 26%);
}

/* ---------- Hero at phone size ---------- */

/*
 * At 390px the hero filled 625px of an 844px screen before a visitor saw
 * anything else. Everything in it steps down so the stats band and the first
 * section are reachable without scrolling far.
 */
@media (max-width: 768px) {
	.llu-hero {
		padding: 2.5rem 0;
	}

	.llu-hero h1 {
		font-size: 1.5rem;
		line-height: 1.2;
		margin: .4rem 0 .6rem;
	}

	.llu-hero p {
		font-size: .9375rem;
		line-height: 1.55;
		margin-bottom: 1.5rem;
	}

	.llu-hero .llu-eyebrow {
		font-size: .625rem;
	}

	.llu-hero__actions {
		gap: .5rem;
	}

	.llu-hero__actions .llu-button {
		padding: .65rem 1.1rem;
		font-size: .9375rem;
	}

	.llu-hero__quick {
		margin-top: 1.5rem;
		padding-top: 1rem;
		gap: .4rem .5rem;
	}

	.llu-hero__quick a {
		font-size: .75rem;
		padding: .4rem .7rem;
	}
}

@media (max-width: 420px) {
	.llu-hero h1 {
		font-size: 1.375rem;
	}
}

/* ---------- Stats at phone size ---------- */

/*
 * Flex wrapping left "Fall & Spring" on a row of its own because it is far
 * wider than the numeric values. A fixed two-column grid keeps the band as a
 * tidy 2x2, with the wide value scaled to fit its cell.
 */
@media (max-width: 768px) {
	.llu-stats {
		padding: 1.75rem 0;
	}

	.llu-stats__grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem 1rem;
	}

	.llu-stats__item {
		min-width: 0;
	}

	.llu-stats__item dd {
		font-size: 1.375rem;
	}

	.llu-stats__item dt {
		font-size: .6875rem;
		line-height: 1.3;
	}
}

/* ---------- Carousel at phone size ---------- */

@media (max-width: 768px) {
	.llu-carousel {
		margin-top: 1.5rem;
	}

	.llu-carousel__track {
		gap: .875rem;
		padding-bottom: 6px;
	}

	.llu-carousel__dots {
		margin-top: .875rem;
		gap: .4rem;
	}

	.llu-carousel__dot {
		width: 8px;
		height: 8px;
	}

	.llu-carousel__dot[aria-current="true"] {
		width: 22px;
	}

	.llu-carousel__dot--number {
		width: auto;
		min-width: 30px;
		height: 30px;
		font-size: .8125rem;
	}
}

/* ---------- Equal-height feature and step cards ---------- */

/*
 * The track aligns items to the start so a hovered card can grow without
 * dragging its neighbours. Features and steps are a fixed set read side by
 * side, though, so they stretch to a common height instead.
 */
.llu-carousel--features .llu-carousel__track,
.llu-carousel--steps .llu-carousel__track {
	align-items: stretch;
}

.llu-carousel--features .llu-feature,
.llu-carousel--steps .llu-steps > li {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.llu-carousel--steps .llu-steps > li {
	align-items: flex-start;
}

.llu-carousel--features .llu-feature p,
.llu-carousel--steps .llu-steps > li p {
	margin-top: auto;
	padding-top: .35rem;
}

/* ---------- Hero: tighter still on phones ---------- */

@media (max-width: 768px) {
	.llu-hero {
		padding: 1.75rem 0;
	}

	.llu-hero h1 {
		font-size: 1.25rem;
		line-height: 1.18;
		margin: .3rem 0 .45rem;
		letter-spacing: -0.015em;
	}

	.llu-hero p {
		font-size: .875rem;
		line-height: 1.45;
		margin-bottom: 1.1rem;
		max-width: 40ch;
	}

	.llu-hero .llu-eyebrow {
		font-size: .5625rem;
		letter-spacing: .1em;
	}

	.llu-hero__actions .llu-button {
		padding: .55rem 1rem;
		font-size: .875rem;
	}

	.llu-hero__quick {
		margin-top: 1.1rem;
		padding-top: .8rem;
		gap: .35rem .4rem;
	}

	.llu-hero__quick a {
		font-size: .6875rem;
		padding: .3rem .6rem;
	}
}

@media (max-width: 420px) {
	.llu-hero h1 {
		font-size: 1.1875rem;
	}
}

/* The admin bar sits above the overlay for logged-in editors, so the close
   button needs to clear it or it ends up half underneath. */
.admin-bar .llu-lightbox__close {
	top: calc(max(1rem, 3vmin) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .llu-lightbox__close {
		top: calc(max(1rem, 3vmin) + 46px);
	}
}

/* ---------- Footer lockup ---------- */

/*
 * The tagline belongs to the logo, so it sits directly beneath the white
 * plate and shares its left edge rather than floating below as a separate
 * line of text.
 */
.llu-footer__brand .llu-footer__logo {
	display: block;
	width: fit-content;
}

.llu-footer__tagline {
	margin-top: .4rem;
	width: fit-content;
}

/* ---------- Equal-height cards in the content carousels ---------- */

/*
 * A carousel of uneven cards jumps as it advances, and the shortest slide
 * leaves a gap above the dots because the track is as tall as its tallest
 * member. Reserving two lines for the title levels them without preventing
 * the hovered card from expanding on desktop.
 */
.llu-carousel--cards .llu-card__title {
	min-height: 2.7em;
}

@media (max-width: 768px) {
	/*
	 * No hover on touch, so nothing expands — the slides can safely stretch
	 * to a common height here.
	 */
	.llu-carousel--cards .llu-carousel__track {
		align-items: stretch;
	}

	.llu-carousel--cards .llu-card {
		height: 100%;
	}

	.llu-carousel__track {
		padding-bottom: 2px;
	}

	.llu-carousel__dots {
		margin-top: .6rem;
	}
}

/* ---------- Spacing below carousels ---------- */

/*
 * When every slide fits, the script builds no dots — but the empty container
 * kept its top margin, leaving dead space above the button beneath it.
 */
.llu-carousel__dots:empty {
	display: none;
	margin: 0;
}

.llu-carousel__dots {
	margin-top: 1rem;
}

.llu-section__more {
	margin-top: 1.5rem;
}

/* ---------- Not found & search ---------- */

.llu-notfound {
	text-align: center;
	margin-bottom: 3rem;
}

.llu-notfound__search {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	justify-content: center;
	max-width: 34rem;
	margin: 0 auto 2rem;
}

.llu-notfound__search input[type="search"] {
	flex: 1 1 16rem;
	padding: .7rem 1rem;
	border: 1px solid var(--llu-line);
	border-radius: var(--llu-radius);
	font-family: var(--llu-font);
	font-size: .9375rem;
}

.llu-notfound__search input[type="search"]:focus {
	outline: 2px solid var(--llu-indigo);
	outline-offset: 1px;
}

.llu-notfound__search .llu-button {
	border: 0;
	cursor: pointer;
	font-family: var(--llu-font);
}

.llu-notfound__links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .75rem;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.llu-notfound__links a {
	display: inline-block;
	padding: .45rem 1rem;
	border: 1px solid var(--llu-line);
	border-radius: 999px;
	background: #fff;
	color: var(--llu-indigo);
	font-size: .875rem;
	text-decoration: none;
}

.llu-notfound__links a:hover {
	background: var(--llu-indigo);
	border-color: var(--llu-indigo);
	color: #fff;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
