/*
 * CILI: the site's own banner for the iPhone and iPad browsers that are not Safari (cili/app/banner.php; the owner's request of
 * 2026-11-20; WEB-2109 to WEB-2114). It is in every page's markup and hidden: the head's script puts `data-lcr-app-banner` on
 * <html> before the first paint when the browser is one of those and the visitor has not closed it, and only then is it shown,
 * at the very top of the page, in the page's flow (so it is there from the first paint and nothing moves when it appears).
 *
 * High contrast in both modes with the ink and on-ink tokens: the ink as the banner's ground and the on-ink as its text and its
 * pill, so it is white on black in the light mode and black on white in the dark one (the tokens swap), 17.9:1 at the least.
 * Every value is a token (docs/design/README.md).
 */

html body .lcr-app-banner {
	display: none;
}

html[data-lcr-app-banner] body .lcr-app-banner {
	display: flex;
	align-items: center;
	gap: var(--lcr-space-12);
	min-height: var(--lcr-size-cta);
	padding: var(--lcr-space-8) var(--lcr-web-gutter-phone);
	box-sizing: border-box;
	background-color: var(--lcr-color-ink);
	color: var(--lcr-color-on-ink);
	font-size: var(--lcr-type-small-font-size);
	line-height: var(--lcr-type-small-line-height);
}

/* The close button: the 44-point target of the site's icon buttons, the icon the line set's close. */
html body .lcr-app-banner .lcr-app-banner-close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--lcr-size-icon-button);
	height: var(--lcr-size-icon-button);
	margin: calc(-1 * var(--lcr-space-8)) 0 calc(-1 * var(--lcr-space-8)) calc(-1 * var(--lcr-space-12));
	padding: 0;
	border: 0;
	border-radius: var(--lcr-radius-pill);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

html body .lcr-app-banner .lcr-app-banner-close .lcr-icon {
	width: var(--lcr-space-20);
	height: var(--lcr-space-20);
}

html body .lcr-app-banner .lcr-app-banner-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

html body .lcr-app-banner .lcr-app-banner-text strong {
	font-weight: var(--lcr-font-weight-semibold);
}

html body .lcr-app-banner .lcr-app-banner-text span {
	opacity: 0.85;
}

/* The way to the App Store: a pill of the reverse colours, at the buttons' height. */
html body .lcr-app-banner .lcr-app-banner-get {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-height: var(--lcr-size-control);
	padding: 0 var(--lcr-space-16);
	box-sizing: border-box;
	border-radius: var(--lcr-radius-pill);
	background-color: var(--lcr-color-on-ink);
	color: var(--lcr-color-ink);
	font-size: var(--lcr-web-type-label-font-size);
	font-weight: var(--lcr-font-weight-semibold);
	line-height: var(--lcr-web-type-label-line-height);
	text-decoration: none;
}

/* The keyboard's ring in the banner's own on-ink, as the site's ink bodies (layout-frame.css). */
html body .lcr-app-banner :is(a, button):focus-visible {
	outline: var(--lcr-web-focus-ring) solid var(--lcr-color-on-ink);
	outline-offset: var(--lcr-web-focus-offset);
}

html body .lcr-app-banner .lcr-app-banner-get:focus-visible {
	outline-color: var(--lcr-color-ink);
	outline-offset: calc(-1 * var(--lcr-web-focus-ring) - var(--lcr-size-hairline));
}
