@charset "UTF-8";
/* =============================================================================
   Site header, mega menu, news ticker, mobile navigation.

   Geometry read from Figma node 747:4614 (Header_2) and 751:6005 (Mega Menu).
   The header's 54px gutter — measured from the logo's left edge and the Apply
   button's right edge, symmetric at 54 / 52 — is now the page gutter too
   (--gutter-lg), so page content lines up with the header (Domagoj, 2026-09-14).
   ========================================================================== */

:root {
	--header-gutter: var(--gutter);
	--ticker-height: 3.125rem;          /* 50 [figma] */
}

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

/* Sticky, not fixed. It occupies flow space; heroes pull themselves up behind it
   with a negative margin so the image runs under the bar as drawn.
   (Domagoj, 2026-09-01.) */
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
}

/* #05304FCC — 80% navy over a 30px backdrop blur. The bar stays translucent at
   every scroll position ON PURPOSE: content passing underneath should read
   faintly through it. Do not add an opaque scrolled state. */
.site-header__bar {
	background-color: var(--color-navy-veil);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
}

/* On a wide screen the bar was running the full width of the viewport while the
   page content below sat at --container, so the header looked detached from the
   page (Domagoj, 2026-09-05). Held to the same box the mega menu already used:
   a bit wider than the content, not edge to edge. */
.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	max-width: calc(var(--container) + var(--gutter-lg) * 2);
	margin-inline: auto;
	height: var(--header-height);       /* 100 [figma] */
	padding-inline: var(--header-gutter);
}

/* The wordmark is an inline SVG drawn in currentColor, so the generic a:hover
   recoloured it. It holds its colour (Domagoj, 2026-09-05). */
.site-header__logo,
.site-header__logo:hover,
.site-header__logo:focus-visible {
	display: block;
	flex: none;
	color: var(--color-white);
	line-height: 0;
}

.site-header__logo svg {
	width: 11.25rem;                    /* 180 mobile */
	height: auto;
}

@media (min-width: 64em) {
	.site-header__logo svg {
		width: 14.375rem;               /* 230 [figma] */
	}
}

.site-header__actions {
	display: none;
	gap: var(--space-5);                /* 20 [figma] */
	margin-inline-start: auto;
}

/* One line each: in a full bar flexbox squeezed them a pixel short and
   "Explore programs" broke onto two lines (2026-11-17). */
.site-header__actions .btn {
	flex: none;
	white-space: nowrap;
}

@media (min-width: 64em) {
	.site-header__actions { display: flex; }
}

/* -----------------------------------------------------------------------------
   Primary navigation
   -------------------------------------------------------------------------- */

.site-nav {
	display: none;
	margin-inline-start: auto;
}

@media (min-width: 80em) {
	.site-nav { display: block; }
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: var(--space-6);                /* 24; the design's 40 fitted its four short items, not live's five (2026-11-17) */
	margin: 0;
}

/* [figma] Geist Medium 18px, white, capitalised. */
.site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding-block: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--fs-ui-base);           /* 16 (Domagoj, 2026-09-18; the design's 18 read too large) */
	font-weight: var(--fw-medium);
	line-height: 1;
	text-decoration: none;
	color: var(--color-on-dark);
	white-space: nowrap;
	transition: color var(--duration) var(--ease);
}

.site-nav__link[aria-expanded='true'] {
	color: var(--color-crimson);
}

/* Between 1024 and 1280 the desktop bar does not fit. At 1024 it wants
   48 + 230 (logo) + 24 + 632 (nav) + 24 + 224 (actions) + 48 = 1230px, and was
   pushing the whole document 157px wide — on EVERY page, not just this one.
   Found 2026-09-02 while checking the contact page at 1024.

   2026-11-17: live's menu (Programs, News and Events, Services, Faculty and
   Research, About Us, with dropdowns) is ~730px of nav, so the bar needs
   ~1410px at the drawn sizes. Below 1280 the menu moves into the burger panel
   (the buttons stay in the bar); from 1280 to 1440 the bar is tightened and
   the ghost "Explore programs" button steps out (the Programs menu is right
   there); from 1440 everything is at the drawn sizes. */
@media (min-width: 64em) and (max-width: 89.99em) {
	:root {
		--header-gutter: var(--space-6);    /* 24, keeps the mega menu aligned */
	}

	.site-header__inner {
		gap: var(--space-4);
	}

	.site-header__logo svg {
		width: 11.25rem;                    /* 180 */
	}

	.site-header__actions {
		gap: var(--space-3);                /* 12 */
	}
}

@media (min-width: 80em) and (max-width: 89.99em) {
	.site-nav__list {
		gap: var(--space-5);                /* 20 */
	}

	.site-header__actions .btn--ghost {
		display: none;
	}
}

/* Current page. Underline rather than colour alone, so it does not rely on
   hue to carry meaning. */
.site-nav__link[aria-current='page'] {
	color: var(--color-on-dark);
	box-shadow: inset 0 -2px 0 0 var(--color-crimson);
}

.site-nav__chevron {
	flex: none;                         /* it was being squeezed to 0 in a full bar */
	width: 0.75rem;
	height: 0.75rem;
	transition: transform var(--duration) var(--ease);
}

[aria-expanded='true'] > .site-nav__chevron {
	transform: rotate(180deg);
}

/* -----------------------------------------------------------------------------
   Dropdowns — the items with links under them (Domagoj, 2026-11-17, live's
   menu: News and Events, Services, Faculty and Research, About Us). A small
   white panel in the mega menu's surface, hanging from the bottom of the bar.
   The item is as tall as the bar, so the pointer never leaves it on the way
   down into the panel.
   -------------------------------------------------------------------------- */

.site-nav__item--drop {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--header-height);
}

.site-nav__link.is-current {
	box-shadow: inset 0 -2px 0 0 var(--color-crimson);
}

.nav-drop {
	position: absolute;
	top: 100%;
	inset-inline-start: calc(var(--space-5) * -1);
	z-index: var(--z-megamenu);
	min-width: 15rem;
	margin: 0;
	padding: var(--space-3) 0;
	list-style: none;
	background-color: var(--color-white);
	box-shadow: var(--shadow-lg);
}

.nav-drop[hidden] { display: none; }

.nav-drop__link {
	display: block;
	padding: var(--space-2) var(--space-5);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	font-weight: var(--fw-medium);
	line-height: 1.4;
	text-decoration: none;
	color: var(--color-navy);
	white-space: nowrap;
	transition: color var(--duration) var(--ease);
}

.nav-drop__link:hover,
.nav-drop__link:focus-visible,
.nav-drop__link[aria-current='page'] {
	color: var(--color-crimson);
}

/* -----------------------------------------------------------------------------
   Mega menu — [figma] 1440x475, two 355px columns at x=110 and x=545,
   promo card 350x315 at x=980.
   -------------------------------------------------------------------------- */

.mega-menu {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	z-index: var(--z-megamenu);
	background-color: var(--color-white);
	box-shadow: var(--shadow-lg);
}

.mega-menu[hidden] { display: none; }

.mega-menu__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 22.1875rem)) minmax(0, 21.875rem);
	gap: var(--space-16);
	max-width: calc(var(--container) + var(--gutter-lg) * 2);
	margin-inline: auto;
	padding: var(--space-6) var(--header-gutter) var(--space-12);
}

/* [figma] Lora Regular 12/36 uppercase crimson. */
.mega-menu__title {
	margin-block-end: var(--space-4);
	font-family: var(--font-display);
	font-size: var(--fs-ui-xs);
	font-weight: var(--fw-regular);
	line-height: var(--lh-editorial);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-crimson);
}

.mega-menu__list { margin: 0; }

/* A sub-programme ("Show in the menu under") sits 20px in, rule and all,
   under its parent (Domagoj, 2026-09-29). */
.mega-menu__sub {
	position: relative;
	padding-inline-start: 1.25rem;
}

/* One thin rule down the left of the group: the rows touch, so the three
   rules join into a single line from the parent's divider to the last
   child's (Domagoj, 2026-09-29). */
.mega-menu__sub::before,
.mobile-nav__sub::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.375rem;
	width: 1px;
	background-color: var(--color-slate-200);
}

/* A group heading among the sub-programmes: "For individuals", "For Companies"
   (ExEd review 01, 2026-11-13). The left rule runs through it. */
.mega-menu__group,
.mobile-nav__group {
	padding-block: var(--space-4) var(--space-1);
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);
	font-weight: var(--fw-medium);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.mega-menu__hint {
	margin-block-start: var(--space-5);
	font-size: var(--fs-ui-xs);
	color: var(--color-text-muted);
}

/* [figma] the hint sits on one line — do not inherit .link-arrow's 14px. */
.mega-menu__hint .link-arrow {
	font-size: inherit;
	font-weight: var(--fw-regular);
}

/* --- Programme link row -----------------------------------------------------
   [figma] 355 wide, 45 tall, hairline underneath, 28px arrow disc at x=322. */

.programme-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-block: var(--space-2);
	border-block-end: 1px solid var(--color-border);
	text-decoration: none;
	color: inherit;
}

.programme-link__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

/* [figma] Lora Regular 15/20 in navy. */
.programme-link__name {
	font-family: var(--font-display);
	font-size: var(--fs-ui);
	line-height: var(--lh-flat);
	color: var(--color-navy);
	transition: color var(--duration) var(--ease);
}

/* [figma] 10/20 in #969797 — a sixth grey, 6/255 from ink-400. Mapped. */
.programme-link__meta {
	font-family: var(--font-body);
	font-size: var(--fs-ui-3xs);
	line-height: var(--lh-flat);
	color: var(--color-ink-400);
}

.programme-link:hover .programme-link__name {
	color: var(--color-crimson);
}

/* [figma] 28px disc, navy fill, white arrow. */
.icon-btn--arrow {
	width: 1.75rem;
	height: 1.75rem;
}

.icon-btn--arrow svg {
	width: 0.875rem;
	height: 0.875rem;
}

.programme-link:hover .icon-btn--arrow {
	background-color: var(--color-crimson);
	transform: translateX(2px);
}

.icon-btn--light {
	background-color: var(--color-white);
	color: var(--color-navy);
}

/* [figma] the promo arrow sits in the full 44px disc and reads longer than the
   28px discs in the programme rows. */
.icon-btn--light svg {
	width: 1.375rem;
	height: 1.375rem;
}

/* --- Promo card ------------------------------------------------------------
   [figma] node 751:6010. 350x315, radius 18, diagonal navy gradient.
   Title at x=29 / 26px; 44px arrow at x=273; image 329x200 inset 10px at y=104;
   a blurred veil across the bottom 70px. Geometry kept as drawn. */

.mega-menu__promo {
	position: relative;
	display: block;
	width: 100%;                             /* as a <button> (opens the Apply popup) */
	border: 0;
	font: inherit;
	text-align: start;
	cursor: pointer;
	padding: 1.9375rem 0.625rem 0.6875rem;   /* 31 / 10 / 11 [figma] */
	border-radius: var(--radius-lg);
	/* [figma] linear-gradient(140.77deg, #053150 0%, #0A5B95 100%) */
	background-image: linear-gradient(140.77deg, var(--color-navy) 0%, #0a5b95 100%);
	color: var(--color-on-dark);
	text-decoration: none;
	overflow: hidden;
}

.mega-menu__promo-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin-block-end: 1.8125rem;             /* 29 [figma] */
	padding-inline: 1.1875rem 1.4375rem;     /* 19 / 23 [figma] */
}

/* [figma] 26px, drawn in AR One Sans -> mapped to Geist. */
.mega-menu__promo-title {
	font-family: var(--font-body);
	font-size: 1.625rem;
	font-weight: var(--fw-regular);
	line-height: var(--lh-tight);
	color: var(--color-on-dark);
}

/* <picture> is display:inline by default, so it adds baseline leading under the
   image and the card grows past its drawn 315px — which drops the veil below
   the photo and exposes the image's rounded corners. */
.mega-menu__promo picture {
	display: block;
}

.mega-menu__promo-image {
	display: block;
	width: 100%;
	height: 12.5rem;                         /* 200 [figma] */
	border-radius: var(--radius-md);         /* 12 [figma] */
	object-fit: cover;
}

/* [figma] node 751:6014 — a band across the bottom of the CARD (not the image),
   which is what softens the photo into it. Uses the shared .veil primitive; see
   base.css for why a plain backdrop-filter is not enough.
   Raised from the drawn 70px to 95px so the blur reaches the coverage the
   reference shows (Domagoj, 2026-09-01). */
.mega-menu__promo-veil {
	--veil-height: 5.9375rem;
	--veil-color: rgb(0 33 56 / 0.5);
	--veil-blur: 10px;

	border-end-start-radius: var(--radius-lg);
	border-end-end-radius: var(--radius-lg);
}


.mega-menu__promo:hover .icon-btn--light {
	background-color: var(--color-crimson);
	color: var(--color-white);
}

@media (max-width: 79.99em) {
	.mega-menu { display: none; }
}

/* -----------------------------------------------------------------------------
   News ticker — [figma] 50px tall, #004f7a, edges faded.
   Rendered outside <header> and never sticky: it scrolls away with the page
   (Domagoj, 2026-08-31). Pages with a hero position it over the hero image.
   -------------------------------------------------------------------------- */

/* The band runs edge to edge like the header's, but its CONTENT sits on the same
   edges as the header's content: the header box, less the header gutter. So
   "LSB News" starts under the logo and the marquee ends under the Apply button
   at every width (Domagoj, 2026-09-14; the 2026-09-05 version stopped at the
   box and ran 54px wide on each side).

   Done with padding rather than a wrapper so the background stays full-bleed and
   the viewport's edge mask is untouched. max() keeps the box part at zero once
   the viewport is narrower than the box; the gutter part always applies, as it
   does on .site-header__inner. */
.news-ticker {
	display: flex;
	align-items: stretch;
	height: var(--ticker-height);
	padding-inline: calc(max(0px, (100% - (var(--container) + var(--gutter-lg) * 2)) / 2) + var(--header-gutter));
	background-color: var(--color-navy-glow);
	color: var(--color-on-dark);
	overflow: hidden;
}

/* [figma] Lora Regular 16, white. Left-aligned on the logo's edge with a thin
   rule before the marquee, as on the BIB microsite (Domagoj, 2026-09-14). This
   replaces the Figma's 390px block with the label centred in it, which left
   "LSB News" floating 160px right of the logo. */
.news-ticker__label {
	display: none;
	flex: none;
	align-self: center;
	margin-block: 0;
	margin-inline-end: var(--space-6);
	padding-inline-end: var(--space-6);
	border-inline-end: 1px solid var(--color-on-dark-border);
	font-family: var(--font-display);
	font-size: var(--fs-ui-base);
	line-height: var(--lh-editorial-tight);
}

@media (min-width: 64em) {
	.news-ticker__label { display: block; }
}

/* The label reaches the news index; the items link to their own articles
   (Domagoj, 2026-09-24). */
.news-ticker__label a {
	color: inherit;
	text-decoration: none;
	transition: color var(--duration) var(--ease);
}

.news-ticker__label a:hover,
.news-ticker__label a:focus-visible {
	color: var(--color-crimson-on-dark);
}

.news-ticker__viewport {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	/* [figma] 200px gradient masks at both edges. A mask is used rather than two
	   gradient overlays so the fade works over any backdrop. */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8rem, #000 calc(100% - 8rem), transparent);
	mask-image: linear-gradient(to right, transparent, #000 8rem, #000 calc(100% - 8rem), transparent);
}

.news-ticker__track {
	display: flex;
	align-items: center;
	gap: 0;
	height: 100%;
	margin: 0;
	white-space: nowrap;
	will-change: transform;
	animation: news-ticker-scroll var(--marquee-duration, 60s) linear infinite;
}

.news-ticker:hover .news-ticker__track,
.news-ticker__track:focus-within {
	animation-play-state: paused;
}

.news-ticker__item {
	display: flex;
	align-items: center;
	font-family: var(--font-display);
	font-size: var(--fs-ui-base);
	line-height: var(--lh-editorial-tight);
}

/* The bullet separator is drawn, not typed, so it never reaches an ACF field
   or a screen reader. */
.news-ticker__item::after {
	content: '\2022';
	margin-inline: var(--space-4);
	opacity: 0.6;
}

.news-ticker__item a {
	color: inherit;
	text-decoration: none;
}

.news-ticker__item a:hover {
	color: var(--color-white);
	text-decoration: underline;
}

@keyframes news-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(var(--marquee-shift, -50%)); }   /* one measured period — marquee.js */
}

@media (prefers-reduced-motion: reduce) {
	.news-ticker__track {
		animation: none;
	}
	.news-ticker__viewport {
		overflow-x: auto;
	}
}

/* -----------------------------------------------------------------------------
   Burger + mobile navigation
   -------------------------------------------------------------------------- */

.site-header__burger {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	margin-inline-start: auto;
	color: var(--color-on-dark);
}

/* From 1024 the bar shows its buttons, so the burger sits beside them. */
@media (min-width: 64em) {
	.site-header__burger { margin-inline-start: var(--space-2); }
}

@media (min-width: 80em) {
	.site-header__burger { display: none; }
}

.site-header__burger-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 1.5rem;
	height: 1.5rem;
}

.site-header__burger-line {
	display: block;
	height: 2px;
	border-radius: var(--radius-full);
	background-color: currentcolor;
	transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

[aria-expanded='true'] .site-header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded='true'] .site-header__burger-line:nth-child(2) { opacity: 0; }
[aria-expanded='true'] .site-header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	position: fixed;
	inset: var(--header-height) 0 0;
	z-index: var(--z-megamenu);
	background-color: var(--color-navy);
	color: var(--color-on-dark);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mobile-nav[hidden] { display: none; }

@media (min-width: 80em) {
	.mobile-nav { display: none; }
}

.mobile-nav__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-8) var(--gutter) calc(var(--space-16) + env(safe-area-inset-bottom));
}

.mobile-nav__list { margin: 0; }

.mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	width: 100%;
	padding-block: var(--space-4);
	padding-inline: 0;                  /* "Programs" is a <button>; drop the UA inset so it lines up with the links */
	border-block-end: 1px solid var(--color-on-dark-border);
	font-family: var(--font-body);
	font-size: var(--fs-ui-lg);
	font-weight: var(--fw-medium);
	text-align: start;
	text-decoration: none;
	color: var(--color-on-dark);
}

.mobile-nav__sublist {
	margin: 0;
	padding-block: var(--space-2);
	list-style: none;
}

.mobile-nav__sublist[hidden] { display: none; }

.mobile-nav__sub {
	position: relative;
	padding-inline-start: 1.25rem;
}

/* On the dark phone menu the rule is light, and sits under the parent's text
   (the links are padded 16px in). */
.mobile-nav__sub::before {
	inset-inline-start: calc(var(--space-4) + 0.375rem);
	background-color: var(--color-on-dark-border);
}

.mobile-nav__sublist a {
	display: block;
	padding-block: var(--space-3);
	padding-inline-start: var(--space-4);
	font-family: var(--font-display);
	font-size: var(--fs-ui);
	text-decoration: none;
	color: var(--color-on-dark-muted);
}

.mobile-nav__sublist a:hover {
	color: var(--color-on-dark);
}

.mobile-nav__actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* -----------------------------------------------------------------------------
   Announcement bar — [figma] 100px, navy → #003f65 gradient, Lora 20/18.
   Rendered by the page after the hero, not by the header. Never sticky.
   -------------------------------------------------------------------------- */

.announcement {
	background-image: linear-gradient(to right, var(--color-navy), #003f65);
	color: var(--color-on-dark);
}

.announcement__inner {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	min-height: var(--header-height);
	padding-block: var(--space-4);
}

.announcement__label {
	flex: none;
	font-family: var(--font-display);
	font-size: var(--fs-copy-20);
	line-height: var(--lh-tight);
	/* [figma] the label is drawn in capitals (node 747:3759). Uppercased here
	   rather than in the copy so the ACF value stays readable. */
	text-transform: uppercase;
}

/* [figma] 45px vertical rule between label and message. */
.announcement__divider {
	flex: none;
	align-self: stretch;
	width: 1px;
	max-height: 2.8125rem;
	margin-block: auto;
	background-color: var(--color-on-dark-border);
}

.announcement__dot {
	flex: none;
	width: 0.875rem;                    /* 14 [figma] */
	height: 0.875rem;
	border-radius: var(--radius-full);
	background-color: var(--color-crimson);
	animation: announcement-pulse 1.6s var(--ease) infinite;
}

/* Blinks to draw attention to the announcement (Domagoj, 2026-09-02). */
@keyframes announcement-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.35; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
	.announcement__dot { animation: none; }
}

/* One or more messages, stacked; each carries its own dot (2026-09-16). */
.announcement__list {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.announcement__item {
	display: flex;
	align-items: center;
	gap: var(--space-6);
}

.announcement__text {
	font-family: var(--font-display);
	font-size: var(--fs-copy-18);
	line-height: var(--lh-body);
}

.announcement__text a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 47.99em) {
	.announcement__divider,
	.announcement__dot { display: none; }

	.announcement__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-2);
	}
}

/* Phones (Domagoj, 2026-09-27): the same look as the programme pages'
   announcement line (.bib-announce, programme.css) — flat navy, a still
   crimson dot before each message, and its type sizes. */
@media (max-width: 47.99em) {
	.announcement {
		background-image: none;
		background-color: var(--color-navy);
	}

	.announcement__inner {
		gap: 0.625rem;
		min-height: 0;
		padding-block: var(--space-4);
	}

	.announcement__label {
		font-size: var(--fs-ui);                 /* 15 */
		letter-spacing: 0.04em;
	}

	.announcement__item {
		gap: 0.875rem;
	}

	.announcement__dot {
		display: block;
		width: 0.5rem;
		height: 0.5rem;
		animation: none;
	}

	.announcement__text {
		font-size: 0.96875rem;                   /* 15.5, as .bib-announce__text */
		line-height: 1.6;
	}
}

/* While a programme page's sub-nav is showing (body.is-subnav-stuck, set by
   programme-state.js), the sub-nav's own button is the one crimson call to
   action, so the header's primary button fades away and the ghost button
   slides right to sit on the edge in its place; both reverse when the bar
   goes (Domagoj, 2026-09-29 — replaces the 09-22 "primary goes ghost").
   The box keeps its width, so the menu beside it never moves. --cta-shift
   is the primary's width plus the gap, measured by header.js. */
.site-header__actions .btn--primary,
.site-header__actions .btn--ghost {
	transition:
		background-color var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		color var(--duration) var(--ease),
		opacity 0.35s var(--ease),
		visibility 0.35s var(--ease),
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-subnav-stuck .site-header__actions .btn--primary {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(0.75rem);
}

.is-subnav-stuck .site-header__actions .btn--ghost {
	transform: translateX(var(--cta-shift, 0));
}

/* Keep .btn:hover's 1px lift without losing the slide. */
.is-subnav-stuck .site-header__actions .btn--ghost:hover {
	transform: translate(var(--cta-shift, 0), -1px);
}

@media (prefers-reduced-motion: reduce) {
	.site-header__actions .btn--primary,
	.site-header__actions .btn--ghost { transition-duration: 0.01ms; }
}
