/**
 * Glasgow FMR — Classes
 * Tokens read off the live site's Divi global colours on 29 July 2026.
 * Override any of them in Divi > Theme Options > Custom CSS if the brand moves.
 */

.fmr {
	--fmr-red: #b71c1c;
	--fmr-red-dark: #6b1515;
	--fmr-ink: #231f20;
	--fmr-grey-100: #f1f2f2;
	--fmr-grey-300: #d1d3d4;
	--fmr-grey-500: #939598;
	--fmr-white: #fff;
	--fmr-font: "Outfit", Helvetica, Arial, sans-serif;
	--fmr-radius: 6px;
	--fmr-gap: 28px;

	font-family: var(--fmr-font);
	color: var(--fmr-ink);
}

.fmr *,
.fmr *::before,
.fmr *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Jump nav */

.fmr-jump {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 40px;
	padding: 14px 18px;
	background: var(--fmr-grey-100);
	border-radius: var(--fmr-radius);
}

.fmr-jump__label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: var(--fmr-red);
}

.fmr-jump__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fmr-jump__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fmr-jump__list a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--fmr-white);
	color: var(--fmr-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--fmr-grey-300);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fmr-jump__list a:hover,
.fmr-jump__list a:focus-visible {
	background: var(--fmr-red);
	border-color: var(--fmr-red);
	color: var(--fmr-white);
}

/* ------------------------------------------------------------- Class block */

.fmr-class {
	margin: 0 0 64px;
	scroll-margin-top: 120px; /* clears the sticky header */
}

.fmr-class__header {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 28px;
	padding: 0 0 12px;
	border-bottom: 2px solid var(--fmr-red);
}

.fmr-class__year {
	margin: 0;
	font-family: var(--fmr-font);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--fmr-ink);
}

.fmr-class__meta {
	margin: 0;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--fmr-red);
	color: var(--fmr-white);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fmr-class--alumni .fmr-class__header {
	border-bottom-color: var(--fmr-grey-300);
}

/* -------------------------------------------------------------------- Grid */

.fmr-grid {
	display: grid;
	gap: var(--fmr-gap);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fmr-grid--1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.fmr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fmr-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fmr-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fmr-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1100px) {
	.fmr-grid,
	.fmr-grid--3,
	.fmr-grid--4,
	.fmr-grid--5,
	.fmr-grid--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.fmr-grid,
	.fmr-grid--2,
	.fmr-grid--3,
	.fmr-grid--4,
	.fmr-grid--5,
	.fmr-grid--6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.fmr-grid,
	.fmr-grid--2,
	.fmr-grid--3,
	.fmr-grid--4,
	.fmr-grid--5,
	.fmr-grid--6 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------------- Card */

.fmr-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 26px 20px 24px;
	background: var(--fmr-grey-100);
	border-radius: var(--fmr-radius);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fmr-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(35, 31, 32, 0.12);
}

@media (prefers-reduced-motion: reduce) {
	.fmr-card,
	.fmr-jump__list a {
		transition: none;
	}
	.fmr-card:hover {
		transform: none;
	}
}

.fmr-card__photo {
	width: 150px;
	max-width: 70%;
	margin: 0 0 18px;
}

.fmr-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	background: var(--fmr-grey-300);
}

.fmr-card__img--placeholder {
	display: block;
	width: 150px;
	height: 150px;
	max-width: 100%;
	border-radius: 50%;
	background: var(--fmr-grey-300);
}

.fmr-card__name {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--fmr-ink);
}

.fmr-card__chief {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fmr-red);
}

.fmr-card__details {
	margin: 12px 0 0;
	width: 100%;
}

.fmr-card__label {
	margin: 14px 0 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fmr-red);
}

.fmr-card__label:first-child {
	margin-top: 0;
}

.fmr-card__value {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--fmr-ink);
}

.fmr-card__quote {
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--fmr-grey-300);
	font-size: 14px;
	font-style: italic;
	line-height: 1.5;
	color: var(--fmr-ink);
	quotes: none;
}

.fmr-card__quote::before {
	content: "\201C";
}

.fmr-card__quote::after {
	content: "\201D";
}

.fmr-card__outside {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fmr-grey-500);
}

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

.fmr-stats {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	font-family: "Outfit", Helvetica, Arial, sans-serif;
	text-align: center;
}

.fmr-stat {
	padding: 24px 16px;
	border-radius: 6px;
	background: #f1f2f2;
}

.fmr-stat__value {
	display: block;
	font-size: clamp(36px, 5vw, 54px);
	font-weight: 700;
	line-height: 1;
	color: #b71c1c;
}

.fmr-stat__label {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.35;
	color: #231f20;
}
