/* The notice that Vauz is moving to vauz.app, on every page of vauz.sealzi.com until the cut.
 *
 * Its words are the approved ones, held word for word by the repo's checks. It is deleted at the
 * cut, when this name redirects to the new one and nobody sees these pages here any more.
 *
 * HOW IT SITS UNDER THE SHARED HEADER WITHOUT COVERING ANYTHING. The header and its small-screen
 * menu (cdn.sealzi.com/css/header.css) are position: fixed, so each page clears them with space of
 * its own at the top, as little as 16px on some pages and screen sizes. Placed in that space, the
 * notice would cover a heading. So it is the first thing in the page's flow, and position: relative
 * draws it lower, just under the header, while its place in the flow stays at the very top. The
 * page's content moves down by the notice's height, never less, so the gap between the notice and
 * the content is the page's own space, less the header. The offsets repeat header.css's sizes:
 * keep them in step with it. It is in the page's first paint, and in the one Mukta weight every page
 * preloads, so it shifts nothing as it loads. Only the variant under the header has a z-index: one in
 * the dashboard's or the sign-in page's flow would draw over their popups and side panel.
 */

.moving_notice {
	position: relative;
	box-sizing: border-box;
	width: fit-content;
	max-width: 90%;
	margin: 0 auto;
	padding: 8px 20px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	/* A rounded rectangle: well under half its 36-42px height, so it never
	   reads as a pill. */
	border-radius: 12px;
	/* A dark tint under the white text, so it stays readable where the moving background is at its
	   brightest (the header's light glass alone fell to about 3.5:1 there). */
	background: linear-gradient(200deg, rgba(4, 20, 60, 0.32), rgba(4, 20, 60, 0.22));
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	color: #ffffff;
	font-family: 'Mukta', sans-serif;
	font-size: 16px;
	/* 400, which every page preloads (the legal pages since this notice): a weight that arrives
	   late reflows the notice, and with it the whole page below. */
	font-weight: 400;
	line-height: 22px;
	text-align: center;
}

.moving_notice div,
.moving_notice p {
	margin: 0;
	font: inherit;
	color: inherit;
}

/* Pages with the shared header: just below it. header.css puts it at top: 1%, clamp(48px, 6vh,
   200px) tall, with 10px of padding and a 2px border above and below. */
.moving_notice--under_header {
	/* Above the content it is drawn over (its top padding), under the header (20) and its menu (19)
	   and every popup and side panel a page opens. */
	z-index: 2;
	top: calc(1vh + clamp(48px, 6vh, 200px) + 24px + 8px);
}

/* The legal pages leave only 24vh above their title, less than the header needs on a short screen
   (a phone on its side). There the page below the notice gets the difference as padding, so the
   title moves down instead of under it. Padding, not the notice's own margin: that would collapse
   with the 24vh margin below it, through <center> and <main>, and only the larger would count. */
.moving_notice--legal + * {
	display: block;
	padding-top: max(0px, calc(1vh + clamp(48px, 6vh, 200px) + 24px + 8px + 16px - 24vh));
}

/* At 900px and under, header.css shows its menu row below the header: clamp(36px, 5vh, 50px) tall
   with a 2px border, starting 20px below the header's top edge plus its height. */
@media screen and (max-width: 900px) {
	.moving_notice--under_header {
		top: calc(1vh + clamp(48px, 6vh, 200px) + 22px + clamp(36px, 5vh, 50px) + 8px);
	}

	.moving_notice--legal + * {
		padding-top: max(0px, calc(1vh + clamp(48px, 6vh, 200px) + 22px + clamp(36px, 5vh, 50px) + 8px + 16px - 24vh));
	}

	.moving_notice {
		font-size: 14px;
		line-height: 20px;
		padding: 6px 16px;
	}
}

/* Pages with only the Back to Main Page button in the corner (10px from the top, 44px tall): below
   it, so the two never meet on a narrow screen. The margin keeps the page's heading clear of it
   where the page's own space at the top is less than the 64px drawn here. */
.moving_notice--below_back {
	top: 64px;
	margin-bottom: 24px;
}

/* On a light background (the legal archive, the sign-in panel): the same box in dark text. */
.moving_notice--light {
	border-color: rgba(20, 24, 31, 0.12);
	background: rgba(255, 255, 255, 0.6);
	color: #3a414c;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* In the sign-in panel, below what the panel says and does. */
.moving_notice--panel {
	margin-top: 16px;
	font-size: 14px;
	line-height: 20px;
}

/* In the dashboard's column of cards: as wide as they are. */
.moving_notice--card {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 14px 24px;
	border-radius: 20px;
	text-align: left;
}
