/* =============================================================================
 * Legal document archive.
 * =============================================================================
 * Loaded by /legal/ and by every archived snapshot. The snapshots are
 * verbatim copies of pages that were once live, so they bring their own styling
 * with them and this file must not fight it -- it adds the archive banner and
 * the version list, and touches nothing else.
 * ============================================================================= */

/* ------------------------------------------------------- the archived-version banner */
/* Sticky, because a snapshot is a full page and someone who scrolls into the middle of
   one has no other signal that they are not reading the current wording. */
.archive_notice {
	position: sticky;
	top: 0;
	z-index: 50;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 20px;
	background: #fff4d6;
	border-bottom: 1px solid #e6cf92;
	color: #4a3a12;
	font-family: 'Mukta', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.archive_notice strong {
	font-weight: 700;
}

.archive_notice a {
	color: #0d52d6;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ the index page */
/*
 * The Vauz palette and face, not a browser default. This page opened in Times on white with an
 * unstyled back button, which is nobody's idea of the same site as /enter.
 *
 * The four gradient colours are the ones enter/style.css already names, repeated here rather
 * than imported because this page loads no other sheet -- keep them in step.
 */
:root {
	--vauz-blue-1: #04f2da;
	--vauz-blue-2: #0491ea;
	--vauz-blue-3: #04b6e7;
	--vauz-blue-4: #176bfc;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at 12% 0%, rgba(4, 242, 218, 0.18), transparent 42%),
		radial-gradient(circle at 88% 8%, rgba(23, 107, 252, 0.20), transparent 46%),
		#eef1f5;
	font-family: 'Mukta', sans-serif;
	color: #14181f;
}

/* The same control /enter uses, so leaving the archive looks like leaving any other Vauz page.
   It sits on a light background here, so the white-on-glass treatment is inverted. */
.back_to_main_page {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 2px solid rgba(20, 24, 31, 0.15);
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(64px) contrast(150%);
	-webkit-backdrop-filter: blur(64px) contrast(150%);
	color: #14181f;
	font-weight: 600;
	font-size: 12px;
	text-decoration: none;
	cursor: pointer;
	z-index: 100;
	transition: .2s;
}

.back_to_main_page:hover {
	transform: scale(0.95);
}

.archive_page {
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: 96px 20px;
	font-family: 'Mukta', sans-serif;
	color: #14181f;
}

.archive_page h1 {
	margin: 0 0 12px;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.archive_page .lede {
	margin: 0 0 44px;
	font-size: 16px;
	line-height: 1.6;
	color: #4a5263;
}

.archive_page .lede a {
	color: var(--vauz-blue-2);
	font-weight: 600;
	text-underline-offset: 2px;
}

/* One card per document, on the page's own ground rather than a bordered box each. */
.archive_doc {
	margin: 0 0 18px;
	padding: 22px 24px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(20, 24, 31, 0.07);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04);
}

.archive_doc h2 {
	margin: 0 0 4px;
	font-size: 21px;
	font-weight: 700;
}

.archive_doc .doc_note {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #5a6274;
}

/* One row per version, newest first. A rule between rows rather than a box each --
   the same idiom the dashboard's passkey list uses, and for the same reason. */
.archive_versions {
	list-style: none;
	margin: 0;
	padding: 0;
}

.archive_versions li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 11px 2px;
	border-top: 1px solid rgba(20, 24, 31, 0.08);
}

.archive_versions li:first-child {
	border-top: none;
}

.archive_versions .when {
	flex: none;
	min-width: 11rem;
	color: #5a6274;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.archive_versions .current {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 9px;
	background: rgba(4, 145, 234, 0.12);
	border-radius: 999px;
	color: var(--vauz-blue-2);
	font-size: 12px;
	font-weight: 700;
}

.archive_versions a {
	color: var(--vauz-blue-2);
	font-weight: 600;
	text-underline-offset: 2px;
}

.archive_versions a:hover {
	color: var(--vauz-blue-4);
}

@media screen and (width <= 560px) {
	.archive_page {
		padding-top: 72px;
	}

	.archive_page h1 {
		font-size: 30px;
	}

	/* The date stops sharing a line with the link once there is no room for both. */
	.archive_versions li {
		flex-direction: column;
		gap: 2px;
	}

	.archive_versions .when {
		min-width: 0;
		font-size: 13px;
	}
}
