/* En-tête commun StarDeck Labs (BT18) : feuille chargée dans le <head> de Wiki.js et de Quackback.
 * Elle réserve la place de l'en-tête avant que le script ne le monte (pas de saut de page) et décale les éléments collants de l'outil. */
@font-face{font-family:"Sora";font-weight:600;font-style:normal;font-display:swap;src:url(/_sdl-header/fonts/sora-latin-600.woff2) format("woff2")}
@font-face{font-family:"Sora";font-weight:700;font-style:normal;font-display:swap;src:url(/_sdl-header/fonts/sora-latin-700.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:400;font-style:normal;font-display:swap;src:url(/_sdl-header/fonts/ibm-plex-sans-latin-400.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:500;font-style:normal;font-display:swap;src:url(/_sdl-header/fonts/ibm-plex-sans-latin-500.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:600;font-style:normal;font-display:swap;src:url(/_sdl-header/fonts/ibm-plex-sans-latin-600.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-weight:400;font-style:normal;font-display:swap;src:url(/_sdl-header/fonts/jetbrains-mono-latin-400.woff2) format("woff2")}

:root {
	--sdl-sh: 69px; /* hauteur de la barre (68 px) + filet ; remplacée par la mesure réelle une fois l'en-tête monté */
}

/* Place réservée en haut de la page. */
body::before {
	content: "";
	display: block;
	height: var(--sdl-sh);
	background: #0a0c10;
	border-bottom: 1px solid #1d232c;
	box-sizing: border-box;
}
.sdl-sh-ready body::before {
	background: transparent;
	border-bottom: 0;
}

/* Wiki.js 3 : l'application occupe exactement la fenêtre, on lui retire la hauteur de l'en-tête. */
.wiki-root #app {
	height: calc(100dvh - var(--sdl-sh));
	min-height: 0;
}
.wiki-root .w-layout {
	height: 100%;
	min-height: 0;
}
/* Le logo de l'outil fait double emploi avec celui de l'en-tête commun. */
.wiki-root .site-header a:has(img) {
	display: none;
}
.wiki-root .w-drawer--overlay {
	top: var(--sdl-sh);
}
.wiki-root .site-header-wrap {
	position: relative;
}

/* Quackback : son en-tête collant se range sous celui de StarDeck Labs, sans répéter le logo. */
.portal-header {
	top: var(--sdl-sh) !important;
}
.portal-header__logo {
	display: none !important;
}
.portal-header__logo + div {
	margin-left: auto;
}
