/* Externalise de la modification #56 le 23/08/2026 (G6M_EXTERNALISATION_V1016).
   Ce bloc etait inline dans PAGE_CONTAINER : il repartait donc dans le HTML de
   CHAQUE page, sans jamais etre mis en cache. En fichier, il est recupere une
   fois puis servi depuis le cache.
   Le <link> occupe la position EXACTE de l ancien <style> : l ordre de cascade
   est donc rigoureusement identique. */

/* G6M_FORUM_LOGO_HOME_V370
   Forum header logo = site homepage .site-logo (280×62).
   Overrides header-slim V354 caps (210×42) on ALL forum pages.
   Same asset: gta6modding-logo-header.png — never replace.
*/

:root {
	--g6m-forum-logo-home: V370;
	--g6m-hs-logo-h: 62px !important;
	--g6m-hs-logo-w: 280px !important;
	--g6m-hs-header-h: 72px !important;
}

html#XF,
html body {
	--g6m-hs-logo-h: 62px !important;
	--g6m-hs-logo-w: 280px !important;
	--g6m-hs-header-h: 72px !important;
}

/* Header shell tall enough for 62px logo */
html#XF body .p-header,
html body .p-header {
	min-height: 72px !important;
	height: auto !important;
	max-height: none !important;
}

html#XF body .p-header-inner,
html body .p-header-inner {
	min-height: 72px !important;
	height: 72px !important;
	max-height: none !important;
	align-items: center !important;
}

html#XF body .p-header-logo,
html#XF body .p-header-logo a,
html body .p-header-logo,
html body .p-header-logo a {
	display: flex !important;
	align-items: center !important;
	min-height: 62px !important;
	height: auto !important;
	max-height: none !important;
}

/* Exact site homepage box */
html#XF body .p-header-logo img.g6m-site-logo,
html#XF body .p-header .g6m-site-logo,
html#XF body img.g6m-site-logo:not(.g6m-site-logo--compact),
html body .p-header-logo img.g6m-site-logo,
html body .p-header .g6m-site-logo,
html body img.g6m-site-logo:not(.g6m-site-logo--compact) {
	width: 280px !important;
	min-width: 280px !important;
	max-width: 280px !important;
	height: 62px !important;
	max-height: 62px !important;
	object-fit: contain !important;
}

/* Sticky / compact nav logo — keep readable, still larger than slim 150 */
html#XF body .p-nav-smallLogo img.g6m-site-logo,
html#XF body .p-nav .g6m-site-logo--compact,
html body .p-nav-smallLogo img.g6m-site-logo,
html body .p-nav .g6m-site-logo--compact {
	max-height: 48px !important;
	max-width: 220px !important;
	width: auto !important;
	height: auto !important;
}

/* Mobile parity with site theme.css (.site-logo @ ≤639px) */
@media (max-width: 639px) {
	:root,
	html#XF,
	html body {
		--g6m-hs-logo-h: 40px !important;
		--g6m-hs-logo-w: 180px !important;
		--g6m-hs-header-h: 56px !important;
	}

	html#XF body .p-header,
	html body .p-header,
	html#XF body .p-header-inner,
	html body .p-header-inner {
		min-height: 56px !important;
		height: 56px !important;
		max-height: none !important;
	}

	html#XF body .p-header-logo,
	html#XF body .p-header-logo a,
	html body .p-header-logo,
	html body .p-header-logo a {
		min-height: 40px !important;
	}

	html#XF body .p-header-logo img.g6m-site-logo,
	html#XF body .p-header .g6m-site-logo,
	html#XF body img.g6m-site-logo:not(.g6m-site-logo--compact),
	html body .p-header-logo img.g6m-site-logo,
	html body .p-header .g6m-site-logo,
	html body img.g6m-site-logo:not(.g6m-site-logo--compact) {
		width: 180px !important;
		min-width: 180px !important;
		max-width: 180px !important;
		height: 40px !important;
		max-height: 40px !important;
	}
}

/* END G6M_FORUM_LOGO_HOME_V370 */

