/*
 * App shell skeleton, painted before Angular boots.
 *
 * Geometry and colours mirror the real chrome so the hand-off to the live header and collapsed
 * left nav doesn't move anything on screen. Values are hardcoded rather than read from CSS
 * variables, because this stylesheet loads before app.component.scss defines them:
 *
 *   --layout-header-height     4.25rem  (layout.component.scss)
 *   --left-navbar-closed-width 2.75rem  (layout.component.scss)
 *   --brand-skanska-white      #ffffff
 *   --ui-lightest-gray         #ececec
 *   --color-skanska-blue       #143275
 *   --color-skanska-dim-white  #f5f5f5
 *   --ui-blue                  #3b64bf
 *
 * Keep these in sync if the chrome's dimensions change.
 */

body {
	margin: 0;
	padding: 0;
}

.splash-screen {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	background-color: #f5f5f5;
}

/* Mirrors .header-wrapper in header.component.scss. */
.splash-header {
	display: flex;
	flex-direction: row;
	flex: 0 0 auto;
	height: 4.25rem;
	align-items: center;
	justify-content: space-between;
	background-color: #ffffff;
	border-bottom: 0.0625rem solid #ececec;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	box-sizing: border-box;
}

.splash-header img {
	height: 3.685rem;
	display: block;
}

/* Mirrors .toolbar-wrapper and its three controls: bell, language switcher, user menu. */
.splash-toolbar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.75rem;
}

.splash-toolbar-item {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background-color: #ececec;
}

.splash-body {
	display: flex;
	flex-direction: row;
	flex: 1;
	min-height: 0;
}

/* Mirrors .leftnavbar.closed — the nav starts collapsed on every load. */
.splash-navbar {
	flex: 0 0 2.75rem;
	background-color: #143275;
}

.splash-content {
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
	background-color: #f5f5f5;
	overflow: hidden;
}

/*
 * The globe is the loading mark, on its own — no spinner. Mirrored by .branded-loader in
 * layout.component.scss, which takes over once Angular has rendered, so keep the two in sync or
 * the logo will jump at the hand-off.
 */
.splash-content img {
	height: 11rem;
	width: auto;
	max-width: 60vw;
	/* Sits slightly above centre, which reads better than mathematically centred. */
	margin-bottom: 4rem;
}
