/**
 * Gravity chrome — same kit look as main CF pages.
 * Loaded when campus_gravity_uses_chrome() is true.
 */

/* Force light canvas even if a dark-mode cookie leaked onto <html> */
html.dark-mode body.campus-brand-gravity,
html.light-mode body.campus-brand-gravity,
body.campus-brand-gravity {
	color-scheme: light;
}

/*
 * Undo site dark-mode tokens on Gravity views so the page reads as default light CF.
 * Kit / Elementor globals stay authoritative.
 */
html.dark-mode body.campus-brand-gravity,
html.dark-mode body.campus-brand-gravity * {
	--bg-color: #ffffff;
	--mega-menu-bg: #ffffff;
	--primary-color: #42444f;
	--title-color: #42444f;
	--e-global-color-text: #42444f;
	--e-global-color-secondary: #42444f;
	--e-global-color-text_muted: #888888;
}

/* Residents marquee: tiles were still using the dark kit token, so
   Strip background → White never showed. Paint strip + tiles white. */
body.campus-brand-gravity .marquee.campus-marquee--bg-transparent,
body.campus-brand-gravity .marquee.campus-marquee--bg-white,
body.campus-brand-gravity .marquee.campus-marquee--bg-transparent .marquee__item,
body.campus-brand-gravity .marquee.campus-marquee--bg-white .marquee__item,
body.campus-brand-gravity .elementor-widget-campus_logo_marquee.campus-logo-marquee--bg-white,
body.campus-brand-gravity .elementor-widget-campus_logo_marquee.campus-logo-marquee--bg-white .elementor-widget-container {
	background-color: #ffffff !important;
	background-image: none !important;
	--campus-marquee-tile-bg: #ffffff;
	--campus-marquee-tile-auto: #ffffff;
}

body.campus-brand-gravity .campus-news-hub-item__excerpt,
body.campus-brand-gravity .campus-news-hub-item__cat,
body.campus-brand-gravity .campus-news-headlines__item time {
	color: #4e4f51;
}
body.campus-brand-gravity .campus-news-hub-item__media {
	background: #f0f0f0;
}
body.campus-brand-gravity .campus-news-hub-item--reports,
body.campus-brand-gravity .campus-news-headlines__item {
	border-bottom-color: #bdbec2;
}

body.campus-brand-gravity {
	background-color: #ffffff;
	color: #42444f;
	/*
	 * Main theme reserves body padding for the fixed CF header
	 * (top-bar + 75px). Gravity chrome is in-flow, and WPML DE uses
	 * page-id-5867 (not 1630), so that padding showed as a white gap.
	 */
	padding-top: 0 !important;
}

/* Theme Builder edits the header document without .elementor-location-header.
   Keep that canvas light so it matches gravity.campusfounders.eu. */
body.campus-brand-gravity.elementor-editor-active,
body.campus-brand-gravity.elementor-editor-preview,
body.campus-brand-gravity.elementor-template-header {
	background-color: #ffffff !important;
	color: #1b1c1f;
}
body.campus-brand-gravity.elementor-editor-active .elementor,
body.campus-brand-gravity.elementor-editor-preview .elementor {
	background-color: #ffffff !important;
}

/*
 * Kit typography by default — never inherit the twisted Gravity display face.
 * That font has no space glyph, so nav / eyebrow / buttons run together.
 */
body.campus-brand-gravity,
body.campus-brand-gravity .elementor-heading-title,
body.campus-brand-gravity .elementor-widget-heading .elementor-heading-title,
body.campus-brand-gravity .heading-display .elementor-heading-title,
body.campus-brand-gravity .heading-1 .elementor-heading-title,
body.campus-brand-gravity .heading-2 .elementor-heading-title,
body.campus-brand-gravity .elementor-nav-menu .elementor-item,
body.campus-brand-gravity .elementor-widget-text-editor,
body.campus-brand-gravity .elementor-widget-text-editor p,
body.campus-brand-gravity .text-body,
body.campus-brand-gravity .text-body p,
body.campus-brand-gravity .btn,
body.campus-brand-gravity .btn .font,
body.campus-brand-gravity .btn .back,
body.campus-brand-gravity .wpml-ls-link {
	font-family: "Neue Haas Grotesk Display", "NeueHaasGrotesk", "Helvetica Neue", Arial, sans-serif !important;
}

/*
 * Twisted Gravity display face — use anywhere:
 *   class="campus-font-gravity"
 * Hero: Title font → Gravity twisted display
 */
.campus-font-gravity,
.campus-font-gravity .elementor-heading-title,
body.campus-brand-gravity .campus-font-gravity,
body.campus-brand-gravity .campus-font-gravity .elementor-heading-title,
body.campus-brand-gravity h1.campus-font-gravity,
body.campus-brand-gravity h2.campus-font-gravity,
body.campus-brand-gravity h3.campus-font-gravity,
body.campus-brand-gravity .heading-display.campus-font-gravity .elementor-heading-title {
	font-family: "Gravity", "CFGrotesk", var(--e-global-typography-primary-font-family, "Neue Haas Grotesk Display", sans-serif) !important;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-style: normal;
}

/* Hide theme toggle — Gravity is light-only */
body.campus-brand-gravity .campus-switch-theme {
	display: none !important;
}

/*
 * Header/footer logo: keep a concrete size. `width:auto` inside Elementor flex
 * slots collapses linked SVGs to 0×0 (visible in media picker, blank on canvas).
 */
body.campus-brand-gravity .elementor-location-header .elementor-widget-image.logo-dark {
	display: none !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-widget-image.logo-light,
body.campus-brand-gravity .elementor-location-header .elementor-widget-image.campus-gravity-logo,
body.campus-brand-gravity .elementor-location-footer .elementor-widget-image.campus-gravity-logo,
.elementor-widget-image.campus-gravity-logo {
	display: block !important;
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 120px !important;
	max-width: min(200px, 48vw) !important;
	opacity: 1 !important;
	visibility: visible !important;
}
body.campus-brand-gravity .elementor-location-header .logo-light img,
body.campus-brand-gravity .elementor-location-header .campus-gravity-logo img,
body.campus-brand-gravity .elementor-location-footer .campus-gravity-logo img,
body.campus-brand-gravity .elementor-location-header img.custom-logo,
.elementor-widget-image.campus-gravity-logo img {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 140px !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 48px !important;
	min-height: 28px !important;
	object-fit: contain !important;
}

body.campus-brand-gravity.campus-gravity-single-language .wpml-ls,
body.campus-brand-gravity.campus-gravity-single-language .campus-language-switcher,
body.campus-brand-gravity.campus-gravity-single-language .elementor-widget-wpml-language-switcher {
	display: none !important;
}

/* Header language switcher — sits before the CTA, not jammed into the last nav item */
body.campus-brand-gravity .elementor-location-header .campus-gravity-lang-switcher,
body.campus-brand-gravity .elementor-location-header .elementor-widget-wpml-language-switcher {
	flex: 0 0 auto !important;
	width: auto !important;
	align-self: center;
	margin-left: 4px;
	padding: 0 4px;
}
body.campus-brand-gravity .elementor-location-header .campus-gravity-lang-switcher .wpml-ls,
body.campus-brand-gravity .elementor-location-header .elementor-widget-wpml-language-switcher .wpml-ls {
	margin: 0;
}
body.campus-brand-gravity .elementor-location-header .wpml-ls-legacy-list-horizontal > ul,
body.campus-brand-gravity .elementor-location-header .wpml-ls-legacy-list-horizontal {
	padding: 0;
	margin: 0;
}
body.campus-brand-gravity .elementor-location-header .wpml-ls-item {
	margin: 0 0.15em;
}
body.campus-brand-gravity .elementor-location-header .wpml-ls-link {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 0.65;
}
body.campus-brand-gravity .elementor-location-header .wpml-ls-current-language .wpml-ls-link,
body.campus-brand-gravity .elementor-location-header .wpml-ls-link:hover {
	opacity: 1;
}

/* Header CTA: never crush / wrap "APPLY NOW!" in the Gravity chrome row. */
body.campus-brand-gravity .elementor-location-header .elementor-widget-campus_buttons,
body.campus-brand-gravity .elementor-location-header .btn {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: max-content;
	max-width: none;
	white-space: nowrap;
}
body.campus-brand-gravity .elementor-location-header .btn .font,
body.campus-brand-gravity .elementor-location-header .btn .back {
	white-space: nowrap;
	flex-wrap: nowrap;
	line-height: 1.25;
}

/*
 * Live wraps this template in .elementor-location-header; Theme Builder does not.
 * Growing the logo+menu column to full width stacked the wordmark on the links.
 * Keep the Elementor template: [logo][links] …… [DE][Become a resident].
 */
body.campus-brand-gravity .elementor-location-header > .e-con > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px 28px !important;
}
body.campus-brand-gravity .elementor-location-header .e-con-inner > .e-con.e-child:first-child {
	flex: 0 1 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px 28px !important;
}
body.campus-brand-gravity .elementor-location-header .e-con-inner > .e-con.e-child:last-child {
	flex: 0 0 auto !important;
	width: auto !important;
	margin-left: auto !important;
}
body.campus-brand-gravity .elementor-location-header .campus-gravity-logo,
body.campus-brand-gravity .elementor-location-header .elementor-widget-image.logo-light {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	inset: auto !important;
	transform: none !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-widget-nav-menu {
	flex: 0 1 auto !important;
	width: auto !important;
	max-width: none !important;
	position: relative !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu--main,
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu--layout-horizontal {
	display: flex !important;
	align-items: center !important;
	width: auto !important;
	height: auto !important;
	position: relative !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu--layout-horizontal .elementor-nav-menu {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0 28px;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	max-width: none !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li {
	display: flex !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu .elementor-item {
	font-family: var(--e-global-typography-text-font-family, "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
	white-space: nowrap !important;
	color: #1b1c1f !important;
	background: transparent !important;
	border: none !important;
}
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu .elementor-item:hover,
body.campus-brand-gravity .elementor-location-header .elementor-nav-menu .elementor-item.elementor-item-active {
	color: #1b1c1f !important;
	opacity: 0.7;
}
@media (max-width: 1280px) and (min-width: 1025px) {
	body.campus-brand-gravity .elementor-location-header .elementor-nav-menu--layout-horizontal .elementor-nav-menu {
		gap: 0 18px;
	}
	body.campus-brand-gravity .elementor-location-header .elementor-nav-menu .elementor-item {
		font-size: 14px !important;
	}
}
@media (max-width: 1024px) {
	/*
	 * Flatten Elementor containers so we can order:
	 * [Logo] …… [DE] [☰] [Apply] on one row.
	 */
	body.campus-brand-gravity .elementor-location-header > .e-con,
	body.campus-brand-gravity .elementor-location-header > .elementor-element {
		min-height: 64px;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}
	body.campus-brand-gravity .elementor-location-header .e-con-inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 8px !important;
		width: 100% !important;
		min-height: 44px;
	}
	body.campus-brand-gravity .elementor-location-header .e-con-inner > .e-con,
	body.campus-brand-gravity .elementor-location-header .e-con-inner > .elementor-element {
		display: contents !important;
	}
	body.campus-brand-gravity .elementor-location-header .elementor-widget-image.campus-gravity-logo,
	body.campus-brand-gravity .elementor-location-header .elementor-widget-image.logo-light {
		order: 1;
		flex: 0 1 auto !important;
		min-width: 0 !important;
		max-width: min(140px, 40vw) !important;
		margin-right: auto !important;
		align-self: center !important;
	}
	body.campus-brand-gravity .elementor-location-header .campus-gravity-logo img,
	body.campus-brand-gravity .elementor-location-header .logo-light img {
		max-height: 34px !important;
		width: auto !important;
	}
	body.campus-brand-gravity .elementor-location-header .campus-gravity-lang-switcher,
	body.campus-brand-gravity .elementor-location-header .elementor-widget-wpml-language-switcher {
		order: 2;
		display: block !important;
		flex: 0 0 auto !important;
		align-self: center !important;
		margin: 0 !important;
	}
	body.campus-brand-gravity .elementor-location-header .wpml-ls-link {
		font-size: 12px !important;
		font-weight: 600 !important;
		letter-spacing: 0.06em;
		padding: 6px 4px !important;
		opacity: 0.75;
		color: #1b1c1f !important;
	}
	body.campus-brand-gravity .elementor-location-header .elementor-widget-nav-menu {
		order: 3;
		flex: 0 0 auto !important;
		width: auto !important;
		margin: 0 !important;
		align-self: center !important;
	}
	body.campus-brand-gravity .elementor-location-header .elementor-menu-toggle {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 40px !important;
		height: 40px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 1px solid rgba(27, 28, 31, 0.2) !important;
		border-radius: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
		float: none !important;
	}
	body.campus-brand-gravity .elementor-location-header .elementor-widget-campus_buttons {
		order: 4;
		flex: 0 0 auto !important;
		align-self: center !important;
	}
	body.campus-brand-gravity .elementor-location-header .btn {
		padding: 9px 12px !important;
		font-size: 11px !important;
		min-width: 0 !important;
	}
}

/* Footer — match Campus light footer: soft ground, quiet links, tighter rhythm. */
body.campus-brand-gravity .elementor-location-footer,
body.campus-brand-gravity footer[data-elementor-type="footer"] {
	background-color: #f6f6f6 !important;
	color: #42444f;
}
body.campus-brand-gravity .elementor-location-footer > .e-con,
body.campus-brand-gravity .elementor-location-footer > .elementor-element {
	padding-top: 72px !important;
	padding-bottom: 56px !important;
}
body.campus-brand-gravity .elementor-location-footer .elementor-widget-heading.content-subtitle .elementor-heading-title,
body.campus-brand-gravity .elementor-location-footer .content-subtitle .elementor-heading-title {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1b1c1f !important;
	margin: 0 0 16px !important;
}
body.campus-brand-gravity .elementor-location-footer .elementor-widget-text-editor,
body.campus-brand-gravity .elementor-location-footer .elementor-widget-text-editor .elementor-widget-container,
body.campus-brand-gravity .elementor-location-footer .elementor-widget-text-editor p {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: #6b6d73 !important;
	gap: 0 !important;
}
body.campus-brand-gravity .elementor-location-footer .elementor-widget-text-editor a {
	color: #42444f !important;
	text-decoration: none;
}
body.campus-brand-gravity .elementor-location-footer .elementor-widget-text-editor a:hover {
	color: #1b1c1f !important;
}
body.campus-brand-gravity .elementor-location-footer .elementor-nav-menu--main,
body.campus-brand-gravity .elementor-location-footer .elementor-nav-menu {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
body.campus-brand-gravity .elementor-location-footer .elementor-nav-menu > li {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}
body.campus-brand-gravity .elementor-location-footer .elementor-nav-menu .elementor-item {
	font-family: var(--e-global-typography-cfcap01-font-family, "Neue Haas Grotesk Display", sans-serif) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.01em;
	padding: 0 !important;
	color: #6b6d73 !important;
	background: transparent !important;
	border: none !important;
	white-space: normal;
}
body.campus-brand-gravity .elementor-location-footer .elementor-nav-menu .elementor-item:hover {
	color: #1b1c1f !important;
}
body.campus-brand-gravity .elementor-location-footer .campus-gravity-logo {
	margin-bottom: 4px;
}
body.campus-brand-gravity .elementor-location-footer .campus-gravity-logo img {
	max-height: 40px !important;
}
