@charset "UTF-8";
/* =============================================================================
   LSB — base.css
   Tokens, reset, layout primitives, typography and buttons.

   This file is the single source of truth for design tokens. It is the ONLY
   place raw hex values are allowed; everything else uses var().

   Values marked [figma] were read from the design via the Figma MCP and are
   exact. Values marked [derived] are ours — the design is desktop-only, so the
   mobile floors of the fluid steps and the breakpoints are not drawn anywhere.

   The design uses EIGHT type families (Lora, Geist, Playfair Display, Roboto,
   Montaga, Gulzar, AR One Sans, Montserrat). All are mapped onto two:

     Lora  — editorial: page + section headings, section intros, card copy
     Geist — interface: nav, buttons, labels, meta, form fields, modal chrome

   Mappings: Playfair + Montaga + Gulzar -> Lora; Roboto + AR One Sans +
   Montserrat -> Geist.
   Gulzar in particular is a Nastaliq face for Urdu/Persian, used for one Latin
   numeral — almost certainly an accident. Flagged to the designer 2026-08-31.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Fonts — self-hosted, nothing from Google at runtime (GDPR, hard rule 14)
   Both families are variable fonts, so one file per subset covers the whole
   range. The declared ranges are the files' real `wght` axes, read with
   fontTools: Geist 100–900, Lora 400–700. They were previously declared as
   400–600 for both, which silently CLAMPED every weight outside that window —
   the contact page's Geist Light (300) body copy rendered at 400 and its Bold
   (700) values at 600.
   -------------------------------------------------------------------------- */

@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/lora-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/lora-var-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

/* Lora italic — a REAL italic face, not a synthesised slant. The community
   showcase quotes are drawn in Lora SemiBold Italic; without this the browser
   fakes the angle by shearing the upright, which on a serif is obvious. */
@font-face {
	font-family: 'Lora';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/lora-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Lora';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/lora-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/geist-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/geist-var-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

/* -----------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* --- Brand ------------------------------------------------------------ */
	/* [figma] Header, footer, and every section heading on the marketing pages.
	   Section headings are actually drawn as #053150 — one step off in G and B,
	   invisible at any size. Normalised to the one value rather than tokenising
	   a colour that differs by 1/255. */
	--color-navy: #05304f;
	/* The About frame runs its own slightly different navies and a slate body
	   colour — measured off node 747:3210, not approximated to the ones above. */
	--color-navy-deep: #0a2c46;         /* [figma] 747:3215 — About headings */
	--color-navy-card: #062f4e;         /* [figma] 747:3223 — the 2014 stat card */
	--color-slate-600: #3c5468;         /* [figma] 747:3218 — About body copy */
	--color-navy-ink: #0b2251;          /* [figma] events modal headings only */
	--color-navy-mid: #003f65;          /* [figma] event/reserve buttons, announcement gradient end */
	--color-navy-programme: #004066;    /* [figma] 1327:5163 — degree programme card resting state; close to but distinct from --color-navy-mid */
	--color-navy-glow: #004f7a;         /* [figma] lighter navy, card image gradients */
	--color-navy-glow-hi: #0e4c74;      /* [figma] 747:3258 + 747:3469 — the glow in the About page's two navy bands */
	--color-crimson: #d30048;           /* [figma] buttons, eyebrows, active states */
	--color-white: #ffffff;

	/* Header is a translucent navy over the hero image. [figma] */
	--color-navy-veil: rgb(5 48 79 / 0.8);

	/* The Bachelor programme page (Figma Make export "LSB - BIB", 2026-09-15).
	   Its paper, navy-mid and glow are the ones above; these are the extras it
	   draws. Its translucent navies are color-mix() of these in programme.css. */
	--color-navy-abyss: #031f35;        /* hero ground, dark panels */
	--color-crimson-dark: #ad003b;      /* primary button hover */
	--color-crimson-on-dark: #ff5c8d;   /* magenta on navy grounds */
	--color-ok: #2fbf85;                /* eligibility: criterion met */
	--color-ok-ink: #1a9b66;
	--color-ok-soft: #e8f7f0;
	--color-warn: #f0a531;              /* eligibility: something to sort out */
	--color-live: #3ddc97;              /* the hero's pulsing "check" dot */
	--color-sky: #4ec3f7;               /* MIF elective tilt: Capital Markets */
	--color-navy-steel: #0b3f63;        /* [figma] 1195:7251 — the footer gradient's far end */

	/* --- Neutral ramp ------------------------------------------------------
	   The design uses five unrelated greys across three different sections.
	   Every value below is kept exactly as drawn, but named as one ramp so new
	   work has an obvious step to reach for instead of inventing a sixth. */
	--color-ink-900: #1e1e1e;           /* [derived] default body text */
	--color-ink-700: #4a4949;           /* [figma] card body + card headings */
	--color-ink-600: #747575;           /* [figma] contact form placeholders + card subtitle */
	--color-ink-500: #6b7280;           /* [figma] muted body, meta */
	--color-ink-muted: #91a3ae;         /* [figma] 747:3656 — the About nav's inactive links */
	--color-ink-450: #9ca3af;           /* [figma] 761:2820 — muted tabs and the month */
	--color-ink-400: #908d8d;           /* [figma] card step counter */
	--color-ink-300: #c7c4c4;           /* [figma] faint card meta, contact form borders */
	--color-ink-200: #e5e7eb;           /* [figma] borders, hairlines */
	--color-ink-100: #f1f1f1;           /* [derived] page background tint.
	                                       The contact form band is drawn #f0f1f2 — two
	                                       steps of blue apart, invisible; normalised
	                                       here the same way the navy was. */

	/* --- Blue-grey ramp ----------------------------------------------------
	   The contact page does NOT use the neutral ramp for its body copy: it runs
	   on a blue-tinted grey, with its own hairline and muted value colours.
	   [figma] node 747:3757. */
	--color-slate-700: #4a6070;         /* [figma] inner-page body copy */
	--color-slate-500: #8aa0af;         /* [figma] campus table value column */
	--color-slate-400: #aecad8;         /* [figma] address lines on navy */
	--color-slate-300: #c8d4dc;         /* [figma] map section ground */
	--color-slate-200: #d0d8df;         /* [figma] campus table hairlines */

	/* --- Semantic ---------------------------------------------------------- */
	--color-bg: var(--color-white);
	--color-bg-alt: var(--color-ink-100);
	--color-text: var(--color-ink-900);
	--color-text-muted: var(--color-ink-500);
	--color-heading: var(--color-navy);         /* section headings across the site */
	--color-heading-alt: var(--color-navy-ink); /* the events modal opts into this */
	--color-border: var(--color-ink-200);
	--color-accent: var(--color-crimson);
	--color-link: var(--color-navy);
	--color-link-hover: var(--color-crimson);

	/* On dark surfaces */
	--color-on-dark: var(--color-white);
	--color-on-dark-soft: rgb(255 255 255 / 0.8);   /* [figma] inner-page hero lead */
	--color-on-dark-muted: rgb(255 255 255 / 0.72);
	--color-on-dark-faint: rgb(255 255 255 / 0.5);
	--color-on-dark-border: rgb(255 255 255 / 0.24);

	/* --- Type families ----------------------------------------------------- */
	--font-display: 'Lora', Georgia, 'Times New Roman', serif;
	--font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* --- Type scale --------------------------------------------------------
	   Every size below is [figma]. The design turns out to use only two voices:

	     Lora  — editorial: page + section headings, section intros, card copy
	     Geist — interface: nav, buttons, labels, meta, form fields, modal chrome

	   The editorial scale is dense and irregular — 60, 52, 50, 48, 46, 40, 32, 26,
	   24, 22, 20, 18, 14, 12 — because the design was not built on a modular
	   scale. Every step below is one that actually appears; none is invented to
	   fill a gap. (An earlier version of this comment claimed there was nothing
	   between 48 and 20. That was wrong: the faculty strip uses 52 and 24, the
	   programme finder 22, and the contact page adds 46, 32, 26, 17 and 13.)

	   Display steps are fluid because the design is 1440-only: each scales from
	   a mobile floor to its drawn desktop value. */

	/* Editorial — Lora */
	--fs-display-1: clamp(2.25rem, 1.36rem + 2.86vw, 3.75rem);   /* 36 → 60 hero */
	--fs-stat: clamp(2rem, 1.31rem + 2.23vw, 3.125rem);          /* 32 → 50 stat numerals */
	--fs-display-lg: clamp(2rem, 1.24rem + 2.75vw, 3.25rem);     /* 32 → 52 faculty strip heading */
	--fs-display-2: clamp(2rem, 1.24rem + 2.44vw, 3rem);         /* 32 → 48 section headings, modal h1 */
	--fs-display-3: clamp(1.875rem, 1.28rem + 1.91vw, 2.875rem); /* 30 → 46 contact "Send us a message" */
	--fs-display-md: clamp(1.75rem, 1.18rem + 1.83vw, 2.5rem);

	/* The News & Updates frame (751:5310) runs a denser scale than the homepage
	   and introduces four steps of its own. Measured from the node, not
	   invented: 32 featured title, 30 newsletter title, 15 buttons and body
	   copy, 11 the category tag. */
	--fs-display-xl: 3.5rem;            /* 56 [figma] 748:5069 — single post title */
	--fs-display-sm: 2rem;              /* 32 [figma] 751:5720 */
	--fs-display-xs: 1.875rem;          /* 30 [figma] 751:5776 */
	/* 15 is NOT a new step — it is --fs-ui, below. A duplicate --fs-ui-md: 15
	   added here was silently overridden by the existing 17 further down, so
	   everything meant to be 15 rendered at 17 (found 2026-09-05). */
	--fs-ui-2xs: 0.6875rem;             /* 11 [figma] 751:5719 */   /* 28 → 40 CTA heading */
	--fs-editorial-2xl: 2rem;           /* 32 contact form card title */
	--fs-editorial-xl: 1.625rem;        /* 26 map address-card title */
	--fs-editorial-lg: 1.5rem;          /* 24 faculty strip intro */
	--fs-editorial-md: 1.375rem;        /* 22 programme finder result title */
	--fs-editorial: 1.25rem;            /* 20 eyebrows, section intros, card titles, hero sub */
	--fs-editorial-sm: 1.125rem;        /* 18 journey card title */
	--fs-editorial-xs: 0.75rem;         /* 12 journey card body */

	/* Interface — Geist */
	--fs-ui-xl: 1.875rem;               /* 30 lux slide title (Montserrat -> Geist) */
	--fs-ui-lg: 1.125rem;               /* 18 nav links */
	--fs-ui-md: 1.0625rem;              /* 17 contact section intro */
	--fs-ui-base: 1rem;                 /* 16 forms, running UI text */
	--fs-ui: 0.9375rem;                 /* 15 modal subtitle, primary button */
	--fs-ui-sm: 0.875rem;               /* 14 secondary button, dense UI */
	--fs-ui-tag: 0.8125rem;             /* 13 contact section tags + table values */
	--fs-ui-xs: 0.75rem;                /* 12 counters, tags */
	--fs-ui-2xs: 0.6875rem;             /* 11 modal eyebrow */
	--fs-ui-3xs: 0.625rem;              /* 10 faint card meta */

	/* --- Copy steps -------------------------------------------------------
	   Running text on a phone is 16px (Domagoj, 2026-09-25). Every paragraph
	   drawn LARGER than 16 on desktop sits on one of these: 16 at 390, rising
	   linearly to its drawn size at 1024, flat from there — so nothing at 1024
	   and up changes, and no phone size can exceed its desktop one. Copy drawn
	   at 16 or smaller keeps its fixed token; it is never pushed up to 16.
	   Headings do NOT use these — they keep the display steps above. */
	--fs-copy-24: clamp(1rem, 0.6924rem + 1.2618vw, 1.5rem);
	--fs-copy-20: clamp(1rem, 0.8462rem + 0.6309vw, 1.25rem);
	--fs-copy-19: clamp(1rem, 0.8847rem + 0.4732vw, 1.1875rem);
	--fs-copy-18: clamp(1rem, 0.9231rem + 0.3155vw, 1.125rem);
	--fs-copy-17: clamp(1rem, 0.9616rem + 0.1577vw, 1.0625rem);

	/* --- Line heights ------------------------------------------------------
	   The design sets line-height in px, and 70px recurs across 60px, 50px and
	   48px type — so the ratio differs per step rather than one global value. */
	--lh-hero: 1.167;                   /* 70 / 60 */
	--lh-heading: 1.1;                  /* (Domagoj, 2026-09-14; was 1.458) */
	--lh-stat: 1.4;                     /* 70 / 50 — stat numerals */
	--lh-modal-title: 1.1;              /* modal h1 */
	--lh-editorial: 1.8;                /* 36 / 20 — eyebrows, section intros */
	--lh-editorial-lg: 1.667;           /* 40 / 24 — faculty strip intro */
	--lh-editorial-tight: 1.5;          /* 30 / 20 — hero subtitle */
	--lh-body: 1.5;
	--lh-tight: 1.2;
	--lh-flat: 1;                       /* 20 / 20 — programme card titles */
	--lh-card: 1.4286;                  /* 20 / 14 — card body and meta */

	/* --- Weights ----------------------------------------------------------- */
	--fw-light: 300;                    /* [figma] Geist Light body copy */
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;                     /* [figma] contact info labels, "€0" */

	/* --- Tracking ---------------------------------------------------------- */
	--ls-eyebrow: 0.08em;
	--ls-display: -0.01em;

	/* --- Spacing (4px base) ------------------------------------------------ */
	--space-1: 0.25rem;                 /* 4  */
	--space-2: 0.5rem;                  /* 8  */
	--space-3: 0.75rem;                 /* 12 */
	--space-4: 1rem;                    /* 16 */
	--space-5: 1.25rem;                 /* 20 */
	--space-6: 1.5rem;                  /* 24 */
	--space-7: 1.75rem;                 /* 28 — events popup gutters [figma] 761:2814 */
	--space-8: 2rem;                    /* 32 */
	--space-9: 2.25rem;                 /* 36 — events popup filter gap [figma] 761:2815 */
	--space-10: 2.5rem;                 /* 40 */
	--space-12: 3rem;                   /* 48 */
	--space-14: 3.5rem;                 /* 56 */
	--space-15: 3.75rem;                /* 60 — events popup inline padding [figma] 761:2802 */
	--space-16: 4rem;                   /* 64 */
	--space-20: 5rem;                   /* 80 */
	--space-24: 6rem;                   /* 96 */
	--space-32: 8rem;                   /* 128 */
	--space-footer: 2.1875rem;          /* 35 — the footer's column and row gap (Domagoj, 2026-10-01) */

	/* --- Layout ------------------------------------------------------------
	   The design draws content at x=95 in a 1440 frame → 1250 content width.
	   Section gutters in the file vary (88/92/95/96/100/136); normalised here
	   to one value, approved 2026-08-31. */
	--measure: 46.25rem;                /* 740 — the article body's reading width */
	--container: 83.25rem;              /* 1332 — the header's content width, so page content and the
	                                       header share one edge (Domagoj, 2026-09-14). The Figma draws
	                                       1250 here; [figma] notes elsewhere that cite 1250 describe the
	                                       drawing, not this token. */
	--container-narrow: 46.25rem;       /* 740 — article measure [figma] */
	--gutter: var(--space-5);           /* 20 on mobile */
	--gutter-lg: 3.375rem;              /* 54 at >=1280 — the header's gutter [figma 747:4614]; the
	                                       page's drawn 95 was dropped with the 1250 container above */

	--header-height: 6.25rem;           /* 100 [figma] */

	/* --- Radii -------------------------------------------------------------- */
	--radius-sm: 0.25rem;               /* 4  [figma] modal close button */
	--radius-field: 0.5rem;             /* 8  [figma] contact form inputs */
	--radius-md: 0.75rem;               /* 12 [derived] */
	--radius-lg: 1.125rem;              /* 18 [figma] journey + programme cards */
	--radius-pill: 1.625rem;            /* 26 [figma] buttons */
	--radius-full: 9999px;

	/* --- Elevation ---------------------------------------------------------- */
	--shadow-sm: 0 1px 2px rgb(5 48 79 / 0.06);
	--shadow-md: 0 4px 16px rgb(5 48 79 / 0.08);
	--shadow-lg: 0 12px 40px rgb(5 48 79 / 0.12);

	/* --- Motion -------------------------------------------------------------
	   200ms ease lift is the house card hover, carried from the earlier build. */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--duration-fast: 150ms;
	--duration: 200ms;
	--duration-slow: 400ms;

	/* --- Stacking ----------------------------------------------------------- */
	--z-ticker: 10;
	--z-sticky: 50;                     /* sticky section navs, back-to-top: over content, under the header */
	--z-header: 100;
	--z-megamenu: 110;
	--z-modal: 200;
	--z-skip-link: 300;
}

/* A 100px bar is a sixth of a phone screen. Phones get 64 (Domagoj,
   2026-09-25). Everything that clears the header — hero padding, the ticker,
   the drawer, sticky sub-navs, anchor offsets — reads this token, so it all
   follows. */
@media (max-width: 47.99em) {
	:root {
		--header-height: 4rem;                 /* 64 */
	}
}

@media (min-width: 48em) {                     /* 768 */
	:root {
		--gutter: var(--space-8);              /* 32 */
	}
}

@media (min-width: 64em) {                     /* 1024 */
	:root {
		--gutter: var(--space-12);             /* 48 */
	}
}

@media (min-width: 80em) {                     /* 1280 */
	:root {
		--gutter: var(--gutter-lg);            /* 54 — same edge as the header's logo and buttons */
	}
}

/* -----------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

/* `hidden` always wins. Author CSS beats the browser's own [hidden] rule, so
   any component that sets a display — .btn is inline-flex — stayed visible
   with the attribute on: the news page's "Load More Articles" showed with
   nothing left to load (Domagoj, 2026-09-14). */
[hidden] { display: none !important; }

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	tab-size: 4;

	/* Keep the scrollbar's width reserved at all times, so locking the page
	   behind a popup does not shift the whole layout sideways (Domagoj,
	   2026-09-17). */
	scrollbar-gutter: stable;
}

/* An anchored section lands clear of the sticky header. Zero specificity (hard
   rule 20), so a page with its own sticky nav — About, the programme pages —
   keeps its own larger offset. */
:where(main:not(.bib) > section[id]) {
	scroll-margin-top: calc(var(--header-height) + 2rem);
}

body {
	min-height: 100vh;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-ui-base);
	font-weight: var(--fw-regular);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* :where() so the reset carries ZERO specificity. Written as a bare
   `ul[class], ol[class]` it scores (0,1,1) and silently beats any single-class
   component rule that tries to set padding on a list — which is exactly what
   happened to .journey__rail's padding-inline. Resets must never out-specify
   the components they are resetting. */
:where(ul[class], ol[class]) {
	list-style: none;
	padding: 0;
}

a {
	color: var(--color-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--duration) var(--ease);
}

a:hover {
	color: var(--color-link-hover);
}

hr {
	height: 1px;
	border: 0;
	background-color: var(--color-border);
}

/* -----------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: var(--fw-regular);
	line-height: var(--lh-heading);
	color: var(--color-heading);
	letter-spacing: var(--ls-display);
}

/* Page hero. [figma] Lora Medium 60/70, white over the hero image. */
h1 {
	font-size: var(--fs-display-1);
	font-weight: var(--fw-medium);
	line-height: var(--lh-hero);
}

/* Section heading. [figma] Lora Regular 48/70. */
h2 {
	font-size: var(--fs-display-2);
}

/* [figma] There is no 32 or 24 step in the design — h3 and h4 both land on the
   20px editorial size, differing only in line-height. */
h3 {
	font-size: var(--fs-editorial);
	line-height: var(--lh-flat);
}

h4 {
	font-size: var(--fs-editorial-sm);
	line-height: var(--lh-tight);
}

/* Display helpers, for headings that do not match their semantic level — and for
   non-heading elements that need display type. These carry the full treatment,
   not just the size, so they work on a <span> or <p> as well as an <h2>. */
.display-1,
.display-2,
.stat-value,
.heading-md {
	font-family: var(--font-display);
	font-weight: var(--fw-regular);
	color: var(--color-heading);
	letter-spacing: var(--ls-display);
}

.display-1 {
	font-size: var(--fs-display-1);
	font-weight: var(--fw-medium);
	line-height: var(--lh-hero);
}

.display-2 {
	font-size: var(--fs-display-2);
	line-height: var(--lh-heading);
}

/* The events modal is the one place headings use the deeper navy. [figma] */
.display-2--ink { color: var(--color-heading-alt); line-height: var(--lh-modal-title); }

.heading-md {
	font-size: var(--fs-editorial);
	line-height: var(--lh-flat);
}

/* Stat numerals — "100%", "93%", "3 Week". [figma] 50/70.
   Drawn in Montaga, one of seven families in the file; mapped to Lora. */
.stat-value {
	font-size: var(--fs-stat);
	line-height: var(--lh-stat);
}

/* On a dark surface the display helpers invert, matching .section--dark. */
.section--dark :is(.display-1, .display-2, .stat-value, .heading-md) {
	color: var(--color-on-dark);
}

/* Section eyebrow. [figma] Lora Regular 20/36 uppercase crimson — drawn with a
   literal "• " in the copy, reproduced here as a pseudo-element so the bullet
   never ends up in the accessible name or in an ACF field. */
.eyebrow {
	display: flex;
	align-items: baseline;
	gap: var(--eyebrow-gap, var(--space-2));
	font-family: var(--font-display);
	font-size: var(--fs-copy-20);
	font-weight: var(--fw-regular);
	line-height: var(--lh-editorial);
	text-transform: uppercase;
	color: var(--color-accent);
}

.eyebrow::before {
	content: '\2022';
	flex: none;
}

/* Interface eyebrow — the events modal and news chrome. [figma] Geist 11px,
   with a real 6px dot rather than a bullet glyph.

   Size, dot and tracking are custom properties because the design draws this
   same tag at two scales: 11/6px in the modal and the map card, 13/10px on the
   contact page's section headers. Defaults are the 11px form, so nothing that
   already used it changes. */
.eyebrow--ui {
	align-items: center;
	font-family: var(--font-body);
	font-size: var(--eyebrow-size, var(--fs-ui-2xs));
	font-weight: var(--eyebrow-weight, inherit);
	line-height: 1;
	letter-spacing: var(--eyebrow-tracking, var(--ls-eyebrow));
}

.eyebrow--ui::before {
	content: '';
	flex: none;
	width: var(--eyebrow-dot, 0.375rem);
	height: var(--eyebrow-dot, 0.375rem);
	border-radius: var(--radius-full);
	background-color: currentcolor;
}

/* [figma] the contact page's section tag: 13px on 2px tracking, a 10px dot and
   a 10px gap, in a 17px box. The box height matters — it sets the distance to
   the heading below, which the design draws as a flat 20px gap. */
.eyebrow--tag {
	--eyebrow-size: var(--fs-ui-tag);
	--eyebrow-weight: var(--fw-semibold);
	--eyebrow-dot: 0.625rem;
	--eyebrow-gap: 0.625rem;
	--eyebrow-tracking: 0.1538em;       /* 2 / 13 [figma] */
	line-height: 1.3077;                /* 17 / 13 [figma] */
}

/* [figma] the same tag inside the map address card: 11px on 2px tracking with
   an 8px dot, still on a 10px gap, in a 14px box. */
.eyebrow--tag-sm {
	--eyebrow-size: var(--fs-ui-2xs);
	--eyebrow-weight: var(--fw-semibold);
	--eyebrow-dot: 0.5rem;
	--eyebrow-gap: 0.625rem;
	--eyebrow-tracking: 0.1818em;       /* 2 / 11 [figma] */
	line-height: 1.2727;                /* 14 / 11 [figma] */
}

.eyebrow--muted { color: var(--color-text-muted); }
.eyebrow--no-dot::before { display: none; }

/* Section intro — the paragraph under a section heading.
   [figma] Lora Regular 20/36 in navy. Editorial voice, not UI. */
.section-intro {
	font-family: var(--font-display);
	font-size: var(--fs-copy-20);
	line-height: var(--lh-editorial);
	color: var(--color-heading);
}

/* Hero subtitle — same size, tighter leading, white. [figma] Lora 20/30. */
.lead {
	font-family: var(--font-display);
	font-size: var(--fs-copy-20);
	line-height: var(--lh-editorial-tight);
	color: inherit;
}

/* Interface text helpers — Geist */
.text-ui { font-family: var(--font-body); font-size: var(--fs-ui); }
.text-ui-sm { font-family: var(--font-body); font-size: var(--fs-ui-sm); }
.text-muted { color: var(--color-text-muted); }

/* Uppercase micro label — card meta rows, "15 - 30 MINUTES · NO OBLIGATION".
   [figma] drawn in AR One Sans; mapped to Geist. */
.meta-label {
	font-family: var(--font-body);
	font-size: var(--fs-ui-3xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-ink-300);
}

/* -----------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.container--flush {
	padding-inline: 0;
}

/* 56 on a phone, 64 on a tablet, 96 on desktop. */
.section {
	padding-block: var(--space-14);
}

@media (min-width: 48em) {
	.section {
		padding-block: var(--space-16);
	}
}

@media (min-width: 64em) {
	.section {
		padding-block: var(--space-24);
	}
}

.section--tight { padding-block: var(--space-12); }

/* For a section that follows another transparent .section: the one above
   already supplies the gap, and two paddings stacked read as a hole
   (Domagoj, 2026-09-14). */
/* Two classes so it beats a component's own padding-block — the About sections
   set measured paddings in about.css, which loads later (2026-09-14). */
.section.section--flush-top { padding-block-start: 0; }
.section--dark {
	background-color: var(--color-navy);
	color: var(--color-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--color-on-dark);
}

.section--alt { background-color: var(--color-bg-alt); }

/* Vertical rhythm helper: space between direct children. */
.stack > * + * {
	margin-block-start: var(--stack-gap, var(--space-4));
}

.stack--sm { --stack-gap: var(--space-2); }
.stack--lg { --stack-gap: var(--space-6); }
.stack--xl { --stack-gap: var(--space-10); }

/* Standard section header: eyebrow + heading + optional intro. */
.section-head {
	max-width: 48rem;
	margin-block-end: var(--space-12);
}

/* Some section headings are drawn on two lines and need the room. */
.section-head--wide { max-width: 62rem; }

/* The whole container: the homepage News intro sits on one line (Domagoj, 2026-11-05). */
.section-head--full { max-width: none; }

.section-head > * + * {
	margin-block-start: var(--space-4);
}

/* A heading's editor-typed line breaks are set for the desktop measure; on a
   phone they leave one-word lines ("the" alone). */
@media (max-width: 47.99em) {
	.section-head h2 br { display: none; }
}

/* -----------------------------------------------------------------------------
   6. Buttons
   Geometry from the header component: pill radius 26, 40px tall. [figma]
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 2.5rem;                 /* 40 [figma] */
	padding: var(--space-2) var(--space-6);
	border: 0;                          /* (Domagoj, 2026-09-05) */
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	font-weight: var(--fw-medium);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		color var(--duration) var(--ease),
		transform var(--duration) var(--ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

/* Primary — crimson fill. [figma] Geist SemiBold ~15.6px */
.btn--primary {
	background-color: var(--color-crimson);
	color: var(--color-white);
	font-weight: var(--fw-semibold);
	font-size: var(--fs-ui);
}

.btn--primary:hover {
	background-color: color-mix(in srgb, var(--color-crimson) 88%, black);
	color: var(--color-white);
}

/* Ghost — outlined, used on dark surfaces. [figma] 1px white border */
/* [figma] 751:5768 — a 235x49 outlined pill on the light ground, for "Load
   More Articles". The ghost variant below is its counterpart on dark. */
.btn--outline {
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
	color: var(--color-navy);
}

.btn--outline:hover {
	border-color: var(--color-navy);
	background-color: var(--color-navy);
	color: var(--color-on-dark);
}

.btn--ghost {
	/* The only variant that draws an edge, so it owns the border outright. */
	border: 1px solid var(--color-on-dark-border);
	color: var(--color-on-dark);
}

.btn--ghost:hover {
	border-color: var(--color-on-dark);
	background-color: rgb(255 255 255 / 0.08);
	color: var(--color-on-dark);
}

/* Navy fill — "Reserve a seat". [figma] #003f65, a touch brighter than the
   header navy. */
.btn--navy {
	background-color: var(--color-navy-mid);
	color: var(--color-white);
	font-weight: var(--fw-medium);
}

.btn--navy:hover {
	background-color: var(--color-navy-ink);
	color: var(--color-white);
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn--lg {
	min-height: 3rem;
	padding-inline: var(--space-8);
}

/* Text link with a trailing arrow — "Explore all LSB News →" */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-ui-sm);
	font-weight: var(--fw-medium);
	text-decoration: none;
}

.link-arrow__icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	transition: transform var(--duration) var(--ease);
}

.link-arrow:hover .link-arrow__icon {
	transform: translateX(3px);
}

/* Circular icon button — the arrow discs in the mega menu. [figma] 44px */
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--radius-full);
	background-color: var(--color-navy);
	color: var(--color-white);
	transition:
		background-color var(--duration) var(--ease),
		transform var(--duration) var(--ease);
}

.icon-btn:hover {
	background-color: var(--color-crimson);
	color: var(--color-white);
	transform: scale(1.06);
}

.icon-btn--sm {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: transparent;
	color: var(--color-text);
}

.icon-btn--sm:hover {
	background-color: var(--color-bg-alt);
	color: var(--color-text);
	transform: none;
}

/* -----------------------------------------------------------------------------
   7. Cards — shared surface, specialised in each component stylesheet
   -------------------------------------------------------------------------- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	overflow: hidden;
	transition:
		transform var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease);
}

.card--lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.card--bordered {
	border: 1px solid var(--color-border);
}

/* -----------------------------------------------------------------------------
   7b. Veil — a background blur that fades in
   -------------------------------------------------------------------------- */

/* Figma masks a layer's background blur by that layer's own alpha, so its blurs
   fade in with their gradient. CSS `backdrop-filter` does not: it applies at
   full strength across the whole box and leaves a hard seam. Reproducing the
   design's intent needs an explicit mask, which clips the blur and the fill
   together — the fill is then a flat colour, because the mask makes the fade.
   The design uses this in at least two places (mega menu promo card, stats
   band), so it lives here rather than being re-derived each time.

   Set --veil-height, --veil-color, --veil-blur and optionally --veil-ramp. */
.veil {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: var(--veil-height, 4.375rem);
	background-color: var(--veil-color, rgb(0 33 56 / 0.5));
	backdrop-filter: blur(var(--veil-blur, 10px));
	-webkit-backdrop-filter: blur(var(--veil-blur, 10px));
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--veil-ramp, 72%));
	mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--veil-ramp, 72%));
	pointer-events: none;
}

/* -----------------------------------------------------------------------------
   8. Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
	position: absolute;
	inset-inline-start: var(--space-4);
	inset-block-start: var(--space-4);
	z-index: var(--z-skip-link);
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-sm);
	background-color: var(--color-navy);
	color: var(--color-white);
	font-size: var(--fs-ui-sm);
	text-decoration: none;
	transform: translateY(-150%);
	transition: transform var(--duration) var(--ease);
}

.skip-link:focus-visible {
	transform: translateY(0);
	color: var(--color-white);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--color-crimson);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.section--dark :where(a, button):focus-visible {
	outline-color: var(--color-white);
}

/* No focus ring on text fields, anywhere (Domagoj, 2026-10-15; the people
   directory search had it switched off first, 2026-09-29). A field you click or
   type in is focused by definition — the caret and its border show it — so the
   crimson ring only looked like an error. Several components draw their own
   ring on their fields (forms on dark, Fluent Forms, programme modals), hence
   !important, kept to text fields: buttons, links and checkboxes keep their
   keyboard-only :focus-visible ring, which never shows on a mouse click and is
   how keyboard users see where they are (WCAG 2.4.7). */
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"]), textarea, select):focus,
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"]), textarea, select):focus-visible {
	outline: none !important;
}

:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"]), textarea, select):focus {
	border-color: var(--color-navy);
}

/* A line break the desktop design draws explicitly, suppressed below the width
   it was drawn for — a hard <br> that is right at 1440 is usually wrong at 375.
   Used by the contact page's section intro. */
.br-desktop { display: none; }

@media (min-width: 64em) {
	.br-desktop { display: inline; }
}

/* Visible to screen readers only. .screen-reader-text is WordPress's own name
   for it (the_posts_pagination() heading, 2026-10-15). */
.visually-hidden,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Locks background scroll while the events modal or mobile nav is open. */
.is-scroll-locked {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* [figma] 751:5718 — a navy pill carrying a category name: 11px bold, 1px
   tracking, uppercase, 10/4 padding on a 4px radius. */
.tag {
	display: inline-flex;
	align-items: center;
	padding: var(--space-1) 0.625rem;
	border-radius: var(--radius-sm);
	background-color: #053150;
	font-family: var(--font-body);
	font-size: var(--fs-ui-2xs);
	font-weight: var(--fw-semibold);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-on-dark);
	/* Content width, always. In a flex column or a grid cell a pill would
	   otherwise stretch to the full row — the featured article's tag ran 594px
	   wide for an 11-character label (Domagoj, 2026-09-14). */
	align-self: flex-start;
	justify-self: start;
}

/* --- Back to top -------------------------------------------------------------
   A 48px crimson disc in the bottom-right, once the page has scrolled about a
   screen. It fades and lifts in rather than appearing, and under
   prefers-reduced-motion it simply appears. */

.to-top {
	position: fixed;
	right: var(--space-6);
	bottom: var(--space-6);
	z-index: var(--z-sticky);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--color-crimson);
	border-radius: var(--radius-full);
	background-color: var(--color-crimson);
	color: var(--color-white);
	box-shadow: var(--shadow-md);
	cursor: pointer;

	/* Out of the way until it is wanted: not just transparent, but untouchable
	   and out of the tab order, so it cannot be reached while invisible. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition:
		opacity var(--duration-slow) var(--ease),
		transform var(--duration) var(--ease),
		visibility var(--duration-slow) var(--ease);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* No colour change: the disc stays crimson with a white arrow on every ground,
   and answers the pointer by shrinking instead (Domagoj, 2026-09-05).

   Scoped to .is-visible so it cannot fight the entry transform — the button
   arrives by translating up, and this has to compose with the settled state
   rather than replace it. */
.to-top.is-visible:hover,
.to-top.is-visible:focus-visible {
	transform: translateY(0) scale(0.9);
}

@media (min-width: 64em) {
	.to-top {
		right: var(--space-10);
		bottom: var(--space-10);
	}
}

/* Phones (Domagoj, 2026-09-27): tucked to the edge, and high enough to clear
   the programme pages' action bar, so it holds one place on every page. */
@media (max-width: 47.99em) {
	.to-top {
		right: 0.6rem;
		bottom: 4.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.to-top { transition: opacity 1ms linear, visibility 1ms linear; }

	/* The shrink is the only hover feedback, so it is kept — but instant. */
	.to-top.is-visible:hover,
	.to-top.is-visible:focus-visible { transform: translateY(0) scale(0.9); }
}

/* -----------------------------------------------------------------------------
   Rail nav — phones only
   What sits under a grid that becomes a swipe rail on a phone (the homepage
   programme grid, the programme pages' faculty cards): a progress track whose
   thumb is the share of the rail in view, and prev/next discs. rail.js (paged)
   drives both — it writes --rail-thumb / --rail-at on the bar and disables
   the buttons at the ends. Hidden from 768, where those are plain grids.
   Markup: .rail-nav > .rail-nav__progress > .rail-nav__bar[data-lsb-rail-progress]
           .rail-nav > .rail-nav__controls > .rail-nav__control[data-lsb-rail-prev|next]
   -------------------------------------------------------------------------- */
.rail-nav { display: none; }

@media (max-width: 47.99em) {
	.rail-nav {
		display: flex;
		align-items: center;
		gap: var(--space-6);
		margin-block-start: var(--space-6);
	}

	.rail-nav__progress {
		position: relative;
		flex: 1;
		height: 2px;
		border-radius: var(--radius-full);
		background-color: var(--color-border);
		overflow: hidden;
	}

	/* The fallbacks draw a short thumb at the start, so the track reads
	   correctly before rail.js has measured. */
	.rail-nav__bar {
		position: absolute;
		inset-block: 0;
		inset-inline-start: 0;
		width: calc(var(--rail-thumb, 0.17) * 100%);
		border-radius: inherit;
		background-color: var(--color-navy);
		transform: translateX(calc(var(--rail-at, 0) * (1 / var(--rail-thumb, 0.17) - 1) * 100%));
	}

	.rail-nav__controls {
		display: flex;
		flex: none;
		gap: var(--space-2);
	}

	.rail-nav__control {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;                      /* 44 */
		height: 2.75rem;
		border: 1px solid var(--color-border);
		border-radius: var(--radius-full);
		background-color: var(--color-white);
		color: var(--color-navy);
		transition: opacity var(--duration) var(--ease);
	}

	.rail-nav__control:disabled {
		opacity: 0.35;
		cursor: default;
	}
}

/* ── Focal point of an editor-chosen photo ─────────────────────────────────────
   "Keep in view when cropped" on every image field (inc/content/images.php):
   which part of the photo stays visible where the layout crops it with
   object-fit: cover. Centre is the default and has no class. Plain classes,
   never inline styles (hard rule 4). !important because component rules set
   their own object-position for the theme's fixed photos. */
.lsb-focus--tl { object-position: 0 0 !important; }
.lsb-focus--t  { object-position: 50% 0 !important; }
.lsb-focus--tr { object-position: 100% 0 !important; }
.lsb-focus--l  { object-position: 0 50% !important; }
.lsb-focus--r  { object-position: 100% 50% !important; }
.lsb-focus--bl { object-position: 0 100% !important; }
.lsb-focus--b  { object-position: 50% 100% !important; }
.lsb-focus--br { object-position: 100% 100% !important; }
