/* ============== Foundry Students page ==============
 *
 * Scoped under body.fst-students, added only on pages using the "Foundry
 * Students" template. The body class outranks Elementor's kit rules
 * (`.elementor-kit-21 h2`) whatever order the stylesheets load in.
 *
 * Colors are the Foundry Students brand board: #FFFFFF, #F2F2F2, #D2D3D5,
 * #5E6D66, #434945, #303030, #0F0F0F, with the artwork's greens and paper.
 * Type follows the artwork: Montserrat ExtraBold and Light, uppercase and
 * widely tracked. Elementor already loads every Montserrat weight. */
body.fst-students .fst-page {
	--fst-white: #ffffff;
	--fst-grey: #eeeeee;
	--fst-mist: #d2d3d5;
	--fst-slate: #5e6d66;
	--fst-charcoal: #434945;
	--fst-ink: #303030;
	--fst-black: #0f0f0f;
	--fst-green: #2d4e3b;
	--fst-green-deep: #152a21;
	--fst-green-light: #75a476;
	--fst-paper: #f4efe8;
	--fst-radius: 4px;
	--fst-font: "Montserrat", sans-serif;
	color: var(--fst-ink);
	font-family: var(--fst-font);
	font-size: 18px;
	line-height: 1.6;
	background: var(--fst-white);
	overflow-x: clip;
}
body.fst-students .fst-page * { box-sizing: border-box; }
/* :where() keeps this reset at the specificity of the rules below it, so
 * their margins win. */
body.fst-students .fst-page :where(h1, h2, h3, p, dl, dd, ol, figure) { margin: 0; }
body.fst-students .fst-page :is(h1, h2, h3) {
	font-family: var(--fst-font);
	color: var(--fst-black);
	line-height: 1.05;
}

body.fst-students .fst-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

body.fst-students .fst-container { max-width: 1160px; margin: 0 auto; }
body.fst-students .fst-container--narrow { max-width: 760px; }
body.fst-students .fst-section { padding: 5.5rem 1.5rem; }
body.fst-students .fst-section--white { background: var(--fst-white); }
body.fst-students .fst-section--grey { background: var(--fst-grey); }
body.fst-students .fst-section--dark { background: var(--fst-green-deep); color: var(--fst-white); }

/* Section headings: ExtraBold, uppercase, tracked, like "UPCOMING EVENTS" */
body.fst-students .fst-page .fst-heading {
	margin: 0 0 3rem;
	font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.4rem);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

/* ============== Artwork ==============
 * The banner spans the full width and keeps the artwork's 1500x844 shape
 * until it reaches 88vh tall, then crops top and bottom. Everything on it is
 * sized in --fst-u, 1% of the banner's width while it keeps that shape and
 * the matching share of its height once capped, so the logo, grade line and
 * swatches keep the proportions of the original design at every size.
 * (A width of 100% stops max-height shrinking the width via aspect-ratio.) */
body.fst-students .fst-hero {
	position: relative;
	--fst-u: min(1cqw, 88vh * 1500 / 844 / 100);
	container-type: inline-size;
	width: 100%;
	aspect-ratio: 1500 / 844;
	max-height: 88vh;
	background: var(--fst-paper) var(--fst-art) center / cover no-repeat;
	overflow: hidden;
}
@media (max-width: 900px) {
	body.fst-students .fst-hero { background-image: var(--fst-art-sm); }
}
body.fst-students .fst-page .fst-hero__title {
	position: absolute;
	top: 45%;
	left: 50%;
	width: calc(44 * var(--fst-u));
	aspect-ratio: 663 / 212;
	transform: translate(-50%, -50%);
	margin: 0;
}
/* The logo file is black on transparent; as a mask it takes the artwork's charcoal. */
body.fst-students .fst-hero__logo {
	display: block;
	width: 100%;
	height: 100%;
	background: #414a45;
	-webkit-mask: var(--fst-logo) center / contain no-repeat;
	mask: var(--fst-logo) center / contain no-repeat;
}
body.fst-students .fst-hero__corner {
	position: absolute;
	right: calc(2.6 * var(--fst-u));
	bottom: calc(4.6 * var(--fst-u));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: calc(1.1 * var(--fst-u));
	font-size: max(12px, 3.15 * var(--fst-u));
}
body.fst-students .fst-page .fst-hero__grade {
	margin: 0;
	font-size: 1em;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}
body.fst-students .fst-swatches {
	display: flex;
	gap: 0.72em;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.fst-students .fst-swatches li {
	width: 1.1em;
	height: 1.1em;
	margin: 0;
	background: var(--fst-swatch);
}

/* Phones (after the rules above, which it overrides): a taller banner,
 * cropped from the right so the runner stays in, with a bigger logo and corner. */
@media (max-width: 600px) {
	body.fst-students .fst-hero { aspect-ratio: 5 / 4; background-position: 18% 100%; }
	body.fst-students .fst-page .fst-hero__title { top: 40%; width: 66cqw; }
	body.fst-students .fst-hero__corner { right: 5cqw; bottom: 6cqw; gap: 2cqw; font-size: max(13px, 4.6cqw); }
}

/* ============== Vision ============== */
body.fst-students .fst-vision { padding-top: 4.5rem; padding-bottom: 4.5rem; text-align: center; }
body.fst-students .fst-page .fst-vision__text {
	max-width: 900px;
	margin: 0 auto;
	font-size: clamp(1.15rem, 0.9vw + 0.9rem, 1.7rem);
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fst-black);
}

/* ============== Thursday nights ==============
 * The original 1400x400 banner rebuilt live: the two-line title and grade
 * range on the left, the polaroid on the right at the band's full height so
 * its cut top and bottom edges meet the band's edges (the image's background
 * is the band's #eeeeee). The times, place and buttons come after "What a
 * night looks like", on a strip of the same grey. */
body.fst-students .fst-night__band { padding: 0 1.5rem; background: var(--fst-grey); }
body.fst-students .fst-night__banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 3rem;
	max-width: 1320px;
}
body.fst-students .fst-night__copy { padding: 2rem 0; container-type: inline-size; }
/* Sized to the copy column so "Foundry Students" stays on one line. */
body.fst-students .fst-page .fst-display {
	font-size: min(4.5rem, 8.6cqi);
	font-weight: 800;
	line-height: 0.88;
	text-transform: uppercase;
	color: var(--fst-black);
}
body.fst-students .fst-display span { display: block; white-space: nowrap; }
body.fst-students .fst-page .fst-night__grades {
	margin: 0.6rem 0 0;
	font-size: min(3.25rem, 6.2cqi);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--fst-black);
}
/* The image's own 400px height on wide screens (its 1x size), less on smaller ones. */
body.fst-students .fst-night__photo img {
	display: block;
	width: auto;
	max-width: none;
	height: clamp(300px, 28.6vw, 400px);
}

body.fst-students .fst-night-info { padding-top: 3rem; padding-bottom: 3rem; }
body.fst-students .fst-night__info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.75rem 3rem;
}
body.fst-students .fst-night__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 1rem 4rem;
}
body.fst-students .fst-night__details dt {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fst-slate);
}
body.fst-students .fst-night__details dd { font-size: 1.05rem; line-height: 1.5; color: var(--fst-ink); }

/* Buttons: the site's square-cornered uppercase buttons */
body.fst-students .fst-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
body.fst-students .fst-actions--center { justify-content: center; }
body.fst-students .fst-page .fst-button {
	display: inline-block;
	padding: 18px 22px;
	font-family: var(--fst-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fst-black);
	text-decoration: none;
	background: transparent;
	border: 1px solid var(--fst-black);
	border-radius: var(--fst-radius);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.fst-students .fst-page .fst-button:hover,
body.fst-students .fst-page .fst-button:focus-visible { background: var(--fst-black); color: var(--fst-white); }
body.fst-students .fst-page .fst-button--solid { background: var(--fst-black); color: var(--fst-white); }
body.fst-students .fst-page .fst-button--solid:hover,
body.fst-students .fst-page .fst-button--solid:focus-visible { background: var(--fst-green); border-color: var(--fst-green); }
body.fst-students .fst-page .fst-button--light { color: var(--fst-white); border-color: var(--fst-white); }
body.fst-students .fst-page .fst-button--light:hover,
body.fst-students .fst-page .fst-button--light:focus-visible { background: var(--fst-white); color: var(--fst-green-deep); }
body.fst-students .fst-page .fst-button:focus-visible { outline: 2px solid var(--fst-green-light); outline-offset: 3px; }

/* ============== What a night looks like ============== */
body.fst-students .fst-pillars {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	padding: 0;
	list-style: none;
	counter-reset: fst-pillar;
}
body.fst-students .fst-pillar {
	margin: 0;
	padding-top: 1.25rem;
	border-top: 3px solid var(--fst-green);
	counter-increment: fst-pillar;
}
body.fst-students .fst-pillar::before {
	content: "0" counter(fst-pillar);
	display: block;
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--fst-slate);
}
body.fst-students .fst-page .fst-pillar__title {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
body.fst-students .fst-page .fst-pillar__text {
	font-size: 0.85rem;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fst-black);
}

/* ============== Upcoming events ============== */
body.fst-students .fst-events { background: var(--fst-green-deep); }
/* The blurred green photo behind a live heading, at the photo's 1400x400
 * shape, with a floor so the heading has room on phones. (A width of 100%
 * stops min-height widening it via aspect-ratio.) */
body.fst-students .fst-events__banner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1400 / 400;
	min-height: 180px;
	padding: 0 1.25rem;
	background: var(--fst-green-deep) var(--fst-events-bg) center / cover no-repeat;
}
@media (max-width: 700px) {
	body.fst-students .fst-events__banner { background-image: var(--fst-events-bg-sm); }
}
body.fst-students .fst-page .fst-events__title {
	margin: 0;
	font-size: clamp(1.9rem, 6vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	color: #f2f2f2;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
body.fst-students .fst-events .fst-section--dark { padding-top: 3rem; }
body.fst-students .fst-events__body { text-align: center; }
body.fst-students .fst-page .fst-events__lede {
	margin: 0 auto 2rem;
	max-width: 560px;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.88);
}

/* Event cards: Church Center's 16:9 artwork over the date, name and tags,
 * the whole card linking to the event's Church Center page. */
body.fst-students .fst-event-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
	text-align: left;
}
body.fst-students .fst-event { display: flex; margin: 0; }
body.fst-students .fst-page .fst-event__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	color: var(--fst-white);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--fst-radius);
	overflow: hidden;
	transition: background 0.15s ease, border-color 0.15s ease;
}
body.fst-students .fst-page .fst-event__link:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
body.fst-students .fst-page .fst-event__link:focus-visible { outline: 2px solid var(--fst-green-light); outline-offset: 3px; }
/* Without artwork, a band of the section's greens keeps the cards even. */
body.fst-students .fst-event__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--fst-green) 0%, var(--fst-green-deep) 100%);
}
body.fst-students .fst-event__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.fst-students .fst-event__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.25rem 1.35rem 1.4rem;
}
body.fst-students .fst-event__date {
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fst-green-light);
}
body.fst-students .fst-event__time { font-weight: 400; color: rgba(255, 255, 255, 0.75); }
/* The template's whitespace gives the space before the dot. */
body.fst-students .fst-event__time::before { content: "\00b7"; margin-right: 0.45em; }
body.fst-students .fst-page .fst-event__name {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fst-white);
}
body.fst-students .fst-event__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.35rem; }
body.fst-students .fst-event__tag {
	padding: 0.3em 0.65em;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
}

/* ============== Stay connected ============== */
body.fst-students .fst-connect {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}
body.fst-students .fst-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 2rem;
	background: var(--fst-grey);
	border-radius: var(--fst-radius);
}
body.fst-students .fst-page .fst-card__title {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
body.fst-students .fst-page .fst-card__text { flex: 1 1 auto; font-size: 0.98rem; color: var(--fst-charcoal); }
body.fst-students .fst-card--leader { align-items: center; text-align: center; }
body.fst-students .fst-leader__photo {
	display: block;
	width: 112px;
	height: 112px;
	object-fit: cover;
	border-radius: 50%;
	filter: grayscale(0.15);
}
body.fst-students .fst-page .fst-leader__role {
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fst-slate);
}
body.fst-students .fst-leader__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
}
body.fst-students .fst-card--leader .fst-button { margin-top: auto; }

/* ============== Smaller screens ============== */
@media (max-width: 1024px) {
	body.fst-students .fst-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.fst-students .fst-connect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.fst-students .fst-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Full width here, so photo beside the name instead of above it. */
	body.fst-students .fst-card--leader {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 1.75rem;
		text-align: left;
	}
	body.fst-students .fst-card--leader .fst-leader__info { flex: 0 1 auto; align-items: flex-start; gap: 0.6rem; }
	body.fst-students .fst-card--leader .fst-button { margin-top: 0.4rem; }
}
@media (max-width: 768px) {
	body.fst-students .fst-section { padding: 3.75rem 1.25rem; }
	body.fst-students .fst-vision { padding-top: 3rem; padding-bottom: 3rem; }
	/* Stacked: the polaroid below the title, still cut by the band's bottom edge. */
	body.fst-students .fst-night__band { padding: 0 1.25rem; }
	body.fst-students .fst-night__banner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
	body.fst-students .fst-night__copy { padding: 3rem 0 0; }
	body.fst-students .fst-page .fst-display { font-size: clamp(2rem, 9.4cqi, 3.5rem); }
	body.fst-students .fst-display span { white-space: normal; }
	body.fst-students .fst-page .fst-night__grades { font-size: clamp(1.4rem, 6.4cqi, 2.4rem); }
	body.fst-students .fst-night__photo { justify-self: center; width: 100%; max-width: 380px; }
	body.fst-students .fst-night__photo img { width: 100%; height: auto; }
	body.fst-students .fst-night-info { padding-top: 2.5rem; padding-bottom: 2.5rem; }
	body.fst-students .fst-pillars { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	body.fst-students .fst-connect { grid-template-columns: minmax(0, 1fr); }
	body.fst-students .fst-event-list { grid-template-columns: minmax(0, 1fr); margin-bottom: 2.25rem; }
	body.fst-students .fst-card--leader { flex-direction: column; text-align: center; gap: 0.85rem; }
	body.fst-students .fst-card--leader .fst-leader__info { align-items: center; }
	body.fst-students .fst-page .fst-heading { margin-bottom: 2.25rem; }
}
@media (max-width: 480px) {
	body.fst-students .fst-night__details { grid-template-columns: minmax(0, 1fr); }
	body.fst-students .fst-actions .fst-button { flex: 1 1 100%; text-align: center; }
	body.fst-students .fst-card { padding: 1.5rem; }
}
