/* AimPath app. Additions to the website's stylesheet.
   /assets/site.css is the website's site.css, copied unchanged (see reference/). Everything the
   two share lives there. This file only adds what the app needs on top. */

/* ---------- Archivo, served by the app itself ----------
   The website loads Archivo from Google Fonts. The app serves its own copy, so its pages make no
   requests to anyone else. Two cuts, as the brand uses them: upright 400 to 700 at normal width,
   and ExtraBold Italic at 125% width for headlines and numbers. SIL Open Font License:
   /assets/fonts/LICENSE-Archivo.txt */
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url('/assets/fonts/archivo-400-700-latin-ext.woff2') format('woff2');
	unicode-range:
		U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url('/assets/fonts/archivo-400-700-latin.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
		U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Archivo';
	font-style: italic;
	font-weight: 800;
	font-stretch: 125%;
	font-display: swap;
	src: url('/assets/fonts/archivo-expanded-800-italic-latin-ext.woff2') format('woff2');
	unicode-range:
		U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Archivo';
	font-style: italic;
	font-weight: 800;
	font-stretch: 125%;
	font-display: swap;
	src: url('/assets/fonts/archivo-expanded-800-italic-latin.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
		U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- header: which face and which copy you are looking at ---------- */
.app-flags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

/* ---------- the spark after "AI" in the tagline (same measurements as the website) ---------- */
.spark-inline {
	display: inline-block;
	position: static;
	width: 0.6em;
	height: 0.72em;
	max-width: none;
	vertical-align: 0.3em;
	margin: 0 0.05em 0 0.03em;
	fill: currentColor;
	stroke: none;
}

/* ---------- holding page ---------- */
.hero__actions .btn {
	max-width: 100%;
}
.gatecard .h-s {
	max-width: 12ch;
}

/* ---------- plain-words message pages: not found, locked, something went wrong ---------- */
.app-message__title {
	max-width: 14ch;
}
.phero .label + h1 {
	margin-top: 14px;
}

/* ---------- admin: foundation checks ---------- */
.app-checks {
	list-style: none;
	margin: 0;
	padding: 0;
}
.app-check {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.app-check .tag {
	margin-bottom: 4px;
}
.app-check--problem {
	box-shadow: inset 0 0 0 2px var(--text);
}
.app-actions {
	margin-top: clamp(28px, 4vw, 44px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.app-actions--row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

/* ---------- admin: editions and connections ---------- */
.app-crumbs {
	margin-top: 22px;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
}
.app-crumbs a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.app-form {
	margin-top: 24px;
	max-width: 760px;
}
.app-connection {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}
.app-connection .app-actions {
	margin-top: 6px;
}
.app-connection .notice {
	align-self: stretch;
}
.app-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 32px;
	margin: 0;
	align-self: stretch;
}
.app-facts dt {
	font-weight: 600;
	font-size: 11px;
	line-height: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.app-facts dd {
	margin: 4px 0 0;
	overflow-wrap: anywhere;
}
.app-list {
	margin: 0;
	padding-left: 1.2em;
	list-style: disc;
	display: grid;
	gap: 8px;
}
.app-steps {
	margin: 0;
	padding-left: 1.4em;
	list-style: decimal;
	display: grid;
	gap: 12px;
}
.app-steps li::marker {
	font-weight: 600;
}
.app-steps code,
.app-facts code {
	font:
		600 0.94em/1.5 ui-monospace,
		SFMono-Regular,
		Menlo,
		Consolas,
		monospace;
	overflow-wrap: anywhere;
}
.app-facts--wide {
	grid-template-columns: minmax(0, 1fr);
}
.app-key,
.app-key__result {
	display: grid;
	gap: 12px;
	justify-items: start;
	align-self: stretch;
}
.app-key__result {
	/* As wide as the tile allows, so the key box is sized by the page and not by its own text. */
	justify-self: stretch;
}
.app-key__label {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
}
.app-key__output {
	font:
		600 15px/22px ui-monospace,
		SFMono-Regular,
		Menlo,
		Consolas,
		monospace;
	color: var(--text);
	background: transparent;
	border: 0;
	border-radius: var(--r-sm);
	box-shadow: inset 0 0 0 2px var(--text);
	padding: 12px 14px;
	width: 100%;
	max-width: 560px;
	min-width: 0;
	/* The whole key stays in view, on as many lines as it needs, so it is plain that nothing is cut off. */
	display: block;
	resize: none;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-all;
	field-sizing: content;
}
.app-notice a,
.app-link a {
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}
.app-log {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	align-self: stretch;
}
.app-log__entry {
	display: grid;
	gap: 6px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
	font-size: 15px;
	line-height: 22px;
}
.app-log__entry--failed {
	font-weight: 600;
}
.app-log__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}
.app-editions {
	list-style: none;
	margin: 0;
	padding: 0;
}
.app-edition {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.app-edition .heading a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.app-edition__connection {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.app-notice {
	display: grid;
	gap: 6px;
	font-size: 15px;
	line-height: 22px;
	color: var(--text);
}
.app-notice--done {
	font-weight: 600;
}
.app-notice--problem {
	box-shadow: inset 0 0 0 2px var(--text);
}
/* ---------- footer: the legal line, without the website's full footer ---------- */
.app-footer {
	padding-block: 0 36px;
}
.app-footer .site-footer__legal {
	margin-top: clamp(28px, 4vw, 56px);
}

@media (max-width: 720px) {
	.app-checks.g-2,
	.app-editions.g-2 {
		grid-template-columns: minmax(0, 1fr);
	}
	.app-facts,
	.app-form {
		grid-template-columns: minmax(0, 1fr);
	}
	.site-header__in {
		min-height: 72px;
	}
}
