@charset "UTF-8";
/* =============================================================================
   "All events" popup. [figma] node 761:2800 — 1200x960.

   A white card over a blurred backdrop. Values below are measured off the node.

   The six stray 60x109 rectangles in the file (761:2980, 3040–3044) are leftover
   masks and are deliberately not reproduced — confirmed against the render.
   ========================================================================== */

.modal {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-6);
}

.modal[hidden] { display: none; }

/* [figma] the backdrop blurs what is behind it rather than only dimming it. */
.modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgb(11 34 81 / 0.35);
	backdrop-filter: blur(10px);
}

.events-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(75rem, 100%);                 /* 1200 [figma] */
	/* A fixed height, not max-height: filtering the list must not make the
	   dialog shrink and grow (Domagoj, 2026-09-16). The list scrolls inside. */
	height: min(60rem, 100%);                /* 960 [figma] */
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;                  /* 12 [figma] */
	background-color: var(--color-white);
	overflow: hidden;
}

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

.events-modal__head {
	flex: none;
	padding: var(--space-12) var(--space-15) 0;   /* 48 / 60 [figma] */
}

.events-modal__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
}

/* [figma] a 6px crimson dot then 11px crimson uppercase. */
.events-modal__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-size: var(--fs-ui-2xs);             /* 11 [figma] */
	text-transform: uppercase;
	color: var(--color-crimson);
}

.events-modal__eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: var(--radius-full);
	background-color: currentcolor;
}

.events-modal__actions {
	display: flex;
	align-items: center;
	gap: var(--space-5);                     /* 20 [figma] */
}

.events-modal__count {
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);              /* 12 [figma] */
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	color: var(--color-text-muted);
}

/* [figma] a 40px square with a 1px border and a 14px cross — NOT a bare glyph. */
.events-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: none;
	color: var(--color-navy-ink);
	cursor: pointer;
	transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.events-modal__close:hover {
	border-color: var(--color-navy-ink);
	color: var(--color-crimson);
}

/* [figma] Lora Regular 48/1.1 in navy-ink — the one place that colour is used. */
.events-modal__title {
	margin-block-start: var(--space-3);
	font-family: var(--font-display);
	font-size: var(--fs-display-lg);
	font-weight: var(--fw-regular);
	line-height: 1.1;
	color: var(--color-navy-ink);
}

.events-modal__intro {
	margin-block-start: var(--space-3);
	font-family: var(--font-body);
	font-size: var(--fs-ui);                 /* 15 [figma] */
	line-height: 1.5;
	color: var(--color-text-muted);
}

/* --- Filters -----------------------------------------------------------------
   [figma] 14px tabs 36 apart, the active one navy-ink over a 2px crimson rule. */

.events-modal__filters {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-9);
	padding: var(--space-7) var(--space-15) 0;
	border-block-end: 1px solid var(--color-border);
}

.events-modal__filter {
	padding: 0 0 0.625rem;
	border: 0;
	border-block-end: 2px solid transparent;
	background: none;
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);              /* 14 [figma] */
	color: var(--color-ink-450);
	cursor: pointer;
	transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.events-modal__filter:hover { color: var(--color-navy-ink); }

.events-modal__filter.is-active {
	border-block-end-color: var(--color-crimson);
	font-weight: var(--fw-semibold);
	color: var(--color-navy-ink);
}

/* --- Rows ---------------------------------------------------------------------
   [figma] 108 tall on a 5-column grid: date 80, type 140, title flexible,
   time/place 220, button 160. Alternate rows sit on #fafafa. */

.events-modal__list {
	flex: 1;
	overflow-y: auto;
	padding-inline: var(--space-15);
}

.events-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
	padding-block: var(--space-7);
	border-block-end: 1px solid var(--color-border);
}

@media (min-width: 64em) {
	.events-row {
		grid-template-columns: 5rem 8.75rem minmax(0, 1fr) 13.75rem 10rem;
		align-items: center;
		gap: 0;
		min-height: 6.75rem;                 /* 108 [figma] */
		padding-block: 0;
	}

	/* The stripe runs the full width of the list, so the padding is pulled out
	   and put back rather than leaving unpainted gutters either side.

	   It is driven by a CLASS, not :nth-child(even): nth-child counts hidden
	   elements, so once the filter hides rows the alternation breaks and two
	   striped rows end up adjacent. modal.js re-marks the visible rows instead. */
	.events-row.is-alt {
		margin-inline: calc(var(--space-15) * -1);
		padding-inline: var(--space-15);
		background-color: #fafafa;
	}
}

.events-row[hidden] { display: none; }

/* [figma] Lora Regular 36 over an 11px uppercase month. */
.events-row__day {
	display: block;
	font-family: var(--font-display);
	font-size: 2.25rem;                      /* 36 [figma] */
	line-height: 1;
	color: var(--color-navy-ink);
}

.events-row__month {
	display: block;
	margin-block-start: 2px;
	font-family: var(--font-body);
	font-size: var(--fs-ui-2xs);             /* 11 [figma] */
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	color: var(--color-ink-450);
}

.events-row__type {
	font-family: var(--font-body);
	font-size: var(--fs-ui-2xs);             /* 11 [figma] */
	text-transform: uppercase;
	color: var(--color-crimson);
}

/* [figma] Lora Regular 18/1.4 — the row title is editorial, not UI. */
.events-row__title {
	font-family: var(--font-display);
	font-size: var(--fs-ui-lg);              /* 18 [figma] */
	font-weight: var(--fw-regular);
	line-height: 1.4;
	color: var(--color-navy-ink);
}

.events-row__time,
.events-row__place {
	font-family: var(--font-body);
	font-size: 0.8125rem;                    /* 13 [figma] */
	line-height: 1.4;
	color: var(--color-text-muted);
}

/* [figma] a 6px dot before the location, matching the eyebrow's. */
.events-row__place {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-block-start: var(--space-1);
}

.events-row__place::before {
	content: '';
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: var(--radius-full);
	background-color: var(--color-crimson);
}

/* [figma] 140x40 navy pill, right-aligned in a 160 column. */
.events-row__cta {
	display: flex;
	justify-content: flex-start;
}

@media (min-width: 64em) {
	.events-row__cta { justify-content: flex-end; }
}

.events-row__cta .btn {
	min-width: 8.75rem;                      /* 140 [figma] */
	min-height: 2.5rem;                      /* 40 [figma] */
}

.events-modal__empty {
	padding: var(--space-10) var(--space-15);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	color: var(--color-text-muted);
}

/* Phones and tablets: 20px side padding instead of the desktop 60, and more air
   between time, place and button once the row stacks (Domagoj, 2026-09-16). */
@media (max-width: 63.99em) {
	.events-modal__head,
	.events-modal__filters,
	.events-modal__list,
	.events-modal__empty {
		padding-inline: var(--space-5);
	}

	/* The desktop 36px gap, wrapped onto two rows, left the filters far apart
	   both ways (Domagoj, 2026-09-16). */
	.events-modal__filters {
		column-gap: var(--space-5);
		row-gap: var(--space-2);
	}

	.events-row__when {
		margin-block-start: var(--space-1);
	}

	.events-row__place {
		margin-block-start: var(--space-2);
	}

	.events-row__cta {
		margin-block-start: var(--space-3);
	}
}

/* =============================================================================
   Events page — the same calendar on a page (template-parts/events/calendar.php,
   Domagoj 2026-09-22). No design of its own: the popup's card, header, tabs and
   rows at the popup's measurements, on the grey ground, without the fixed
   height and the inner scroll — the page scrolls instead, the tabs stay
   pinned under the header, and the rows fall under month headings.

   The card keeps the popup's 60px side padding because the rows' stripe
   (.events-row.is-alt, above) bleeds out by exactly that much.
   ========================================================================== */

.events-cal__card {
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;                  /* 12, as the popup */
	background-color: var(--color-white);
}

.events-cal__head {
	/* 12 below, 16 atop the tabs = the popup's 28. Split, because the tabs'
	   white bar paints over whatever reaches into it, and the heading's
	   descenders ("g") hang below its tight 1.1 line box. */
	padding: var(--space-12) var(--space-15) var(--space-3);
}

.events-cal__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-5);
}

.events-cal__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-body);
	font-size: var(--fs-ui-2xs);
	text-transform: uppercase;
	color: var(--color-crimson);
}

.events-cal__eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: var(--radius-full);
	background-color: currentcolor;
}

.events-cal__count {
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.events-cal__title {
	margin-block-start: var(--space-3);
	font-family: var(--font-display);
	font-size: var(--fs-display-lg);
	font-weight: var(--fw-regular);
	line-height: 1.1;
	color: var(--color-navy-ink);
}

/* Pinned under the header while the list scrolls past; white so the rows
   disappear cleanly beneath it. */
.events-cal__filters {
	position: sticky;
	top: var(--header-height);
	z-index: var(--z-sticky);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-9);
	padding: var(--space-4) var(--space-15) 0;
	border-block-end: 1px solid var(--color-border);
	background-color: var(--color-white);
}

.events-cal__filter {
	padding: 0 0 0.625rem;
	border: 0;
	border-block-end: 2px solid transparent;
	background: none;
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	color: var(--color-ink-450);
	cursor: pointer;
	transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.events-cal__filter:hover { color: var(--color-navy-ink); }

.events-cal__filter.is-active {
	border-block-end-color: var(--color-crimson);
	font-weight: var(--fw-semibold);
	color: var(--color-navy-ink);
}

.events-cal__list {
	padding: 0 var(--space-15) var(--space-6);
}

/* Month headings: the rows' own 11px uppercase label voice, one step up. The
   first month SHOWN sits closer under the tabs, the rest get more air. "Shown",
   not :first-child — a filter hides whole months, and the first child may be
   one of them (the Alumni tab opened on November with a later month's gap). */
.events-cal__month-title {
	padding-block: var(--space-7) var(--space-3);
	border-block-end: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-navy-ink);
}

.events-cal__month:not([hidden]) ~ .events-cal__month .events-cal__month-title {
	padding-block-start: var(--space-10);
}

.events-cal__empty {
	padding: var(--space-10) var(--space-15);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	color: var(--color-text-muted);
}

@media (max-width: 63.99em) {
	.events-cal__head,
	.events-cal__filters,
	.events-cal__list,
	.events-cal__empty {
		padding-inline: var(--space-5);
	}

	.events-cal__head {
		padding-block-start: var(--space-8);
	}

	.events-cal__filters {
		column-gap: var(--space-5);
		row-gap: var(--space-2);
	}
}

/* Phones, Events page (Domagoj, 2026-09-27): the list shows four events, then
   "Show more" (modal.js). The button is [hidden] everywhere else. */
.events-row.is-extra,
.events-cal__month.is-extra {
	display: none;
}

.events-cal__more {
	margin-block-start: var(--space-6);
	padding: 0 0 2px;
	border-block-end: 1px solid currentcolor;
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	font-weight: var(--fw-medium);
	color: var(--color-navy);
}
