/**
 * Maintenance Mode — standalone page styles.
 *
 * Every value the module configures arrives as a custom property set inline on
 * the body, so this file stays static and cacheable. Font family is inherited
 * on purpose: the page never imposes a typeface.
 */

html {
	height: 100%;
}

/* The theme is not loaded here, so the page carries a neutral system stack as
   the value the title and message inherit; overriding it on .ow-mnt-body (or on
   the two classes below) is all it takes to use another typeface. */
.ow-mnt-body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	min-height: 100vh;
	margin: 0;
	padding: 40px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var( --ow-mnt-bg-color, #12263f );
	background-image: var( --ow-mnt-bg-desktop, none );
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.ow-mnt-wrap {
	width: 100%;
	max-width: 720px;
}

.ow-mnt-logo {
	margin: 0 0 20px;
}

.ow-mnt-logo img {
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 10px;
	opacity: 0.9;
}

.ow-mnt-title {
	font-family: inherit;
	font-size: var( --ow-mnt-title-size, 44px );
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 14px;
}

.ow-mnt-text {
	font-family: inherit;
	font-size: var( --ow-mnt-text-size, 17px );
	line-height: 1.6;
	margin: 0 auto;
	max-width: 46em;
}

.ow-mnt-text p:first-child {
	margin-top: 0;
}

.ow-mnt-text p:last-child {
	margin-bottom: 0;
}

/* Contrast is decided from the background luminance: the server picks the class
   for solid colours and the script re-decides after sampling an image. */
.ow-mnt-body.is-light .ow-mnt-title,
.ow-mnt-body.is-light .ow-mnt-text {
	color: #fff;
	text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.28 );
}

.ow-mnt-body.is-dark .ow-mnt-title,
.ow-mnt-body.is-dark .ow-mnt-text {
	color: #111;
	text-shadow: 0 1px 2px rgba( 255, 255, 255, 0.28 );
}

@media ( max-width: 782px ) {
	.ow-mnt-body {
		padding: 32px 18px;
		background-image: var( --ow-mnt-bg-mobile, var( --ow-mnt-bg-desktop, none ) );
	}

	.ow-mnt-title {
		font-size: var( --ow-mnt-title-size-mobile, 28px );
	}

	.ow-mnt-text {
		font-size: var( --ow-mnt-text-size-mobile, 15px );
	}
}
