/* SPDX-License-Identifier: GPL-3.0-or-later */
/* The home page of biblioviva.org (scripts/home-build.ts): tokens, type, pills and the drawn
   screens, shared with the documentation site's look. Light theme only, like the app; colours of
   the app's default colour set (ocean). */

:root {
	color-scheme: light;
	--bg: #f6f8fc;
	--card: #ffffff;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--line-2: #cbd5e1;
	--primary: #006edc;
	--primary-deep: #0b3f8a;
	--primary-tint: #e6f0ff;
	/* areas of the app (ocean colour set) */
	--c-circ: #4c66d3;
	--c-cat: #948600;
	--c-pat: #009874;
	--c-print: #a3215a;
	--c-notes: #007695;
	--c-rep: #a754b9;
	--c-admin: #404b5b;
	/* sections of the documentation */
	--s-use: #006edc;
	--s-admin: #6d4bd1;
	--s-install: #e8590c;
	--s-tech: #404b5b;
	--s-help: #0f8a6a;
	--ok: #16a34a;
	--warn: #d97706;
	--bad: #dc2626;
	--radius: 16px;
	--shadow-1: 0 1px 2px rgb(15 23 42 / 0.06), 0 4px 12px -4px rgb(15 23 42 / 0.1);
	--shadow-2: 0 2px 4px rgb(15 23 42 / 0.05), 0 24px 48px -16px rgb(15 23 42 / 0.25);
	--font: "Inter Variable", system-ui, sans-serif;
	--mono: "JetBrains Mono Variable", ui-monospace, monospace;
}
@property --hue {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
@property --n {
	syntax: "<integer>";
	inherits: false;
	initial-value: 0;
}
@view-transition {
	navigation: auto;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a {
	color: var(--primary);
	text-underline-offset: 3px;
}
a:hover {
	color: var(--primary-deep);
}
img {
	max-width: 100%;
}
code {
	font-family: var(--mono);
	font-size: 0.88em;
	background: #eef2f7;
	border-radius: 6px;
	padding: 0.1em 0.4em;
}
.i {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -0.2em;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* ================================================================ screens: the documentation's pictures (.wf-shot), drawn when a picture is missing */
.wf {
	--area: var(--primary);
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow-1);
	text-align: left;
}
.wf-chrome {
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 8px 12px;
	background: #eef2f7;
	border-bottom: 1px solid var(--line);
}
.wf-chrome i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
}
.wf-chrome i:nth-child(1) {
	background: #f87171;
}
.wf-chrome i:nth-child(2) {
	background: #fbbf24;
}
.wf-chrome i:nth-child(3) {
	background: #34d399;
}
.wf-url {
	flex: 1;
	margin-left: 10px;
	padding: 2px 10px;
	border-radius: 6px;
	background: #fff;
	color: var(--muted);
	font: 500 0.7rem var(--mono);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.wf-shot img {
	display: block;
	width: 100%;
	height: auto;
}
.wf-app {
	display: grid;
	grid-template-columns: 54px 1fr;
	aspect-ratio: 16 / 10;
}
.wf-side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	padding: 14px 0;
	background: #f8fafc;
	border-right: 1px solid var(--line);
}
.wf-side span {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: #e2e8f0;
}
.wf-side span:nth-child(2) {
	background: color-mix(in srgb, var(--c-circ) 30%, #fff);
}
.wf-side span:nth-child(3) {
	background: color-mix(in srgb, var(--c-cat) 30%, #fff);
}
.wf-side span:nth-child(4) {
	background: color-mix(in srgb, var(--c-pat) 30%, #fff);
}
.wf-side span.on {
	background: var(--area);
}
.wf-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wf-top {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: color-mix(in srgb, var(--area) 14%, #fff);
	border-bottom: 2px solid var(--area);
}
.wf-back {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--area) 40%, #fff);
}
.wf-title {
	font: 750 0.78rem var(--font);
	color: color-mix(in srgb, var(--area) 70%, #000);
	white-space: nowrap;
}
.wf-title:empty {
	width: 90px;
	height: 10px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--area) 45%, #fff);
}
.wf-search {
	margin-left: auto;
	width: 30%;
	height: 18px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--line);
}
.wf-body {
	flex: 1;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8fafc;
	min-height: 0;
	overflow: hidden;
}
.wf-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.wf-line {
	display: block;
	width: var(--w, 80%);
	height: 7px;
	border-radius: 4px;
	background: #e2e8f0;
}
.wf-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.wf-tile {
	background: color-mix(in srgb, var(--a) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--a) 30%, #fff);
	border-radius: 10px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.wf-tile b {
	width: 40%;
	height: 14px;
	border-radius: 4px;
	background: var(--a);
}
.wf-dot {
	width: 16px;
	height: 16px;
	border-radius: 5px;
	background: color-mix(in srgb, var(--a) 50%, #fff);
}
.wf-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	flex: 1;
}
.wf-cols-form {
	grid-template-columns: 2fr 1fr;
}
.wf-chip {
	width: 60px;
	height: 14px;
	border-radius: 999px;
}
.wf-chip.ok {
	background: #bbf7d0;
}
.wf-scan {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: #fff;
	border: 2px solid var(--area);
	border-radius: 10px;
}
.wf-scan-ico {
	width: 18px;
	height: 14px;
	background: repeating-linear-gradient(90deg, var(--ink-2) 0 2px, transparent 2px 4px);
}
.wf-msg {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 8px 8px 8px 30px;
	border-radius: 8px;
	position: relative;
}
.wf-msg.ok {
	background: #dcfce7;
	border: 1px solid #86efac;
}
.wf-msg span:first-child {
	position: absolute;
	left: 8px;
	top: 8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ok);
}
.wf-msg .wf-line {
	background: #a7e9bd;
}
.wf-pills {
	display: flex;
	gap: 6px;
}
.wf-pills span {
	width: 60px;
	height: 16px;
	border-radius: 999px;
	background: #e2e8f0;
}
.wf-pills span:first-child {
	background: var(--area);
}
.wf-table {
	flex: 1;
	gap: 0;
	padding: 0;
}
.wf-row {
	display: grid;
	grid-template-columns: 2fr 1.4fr 1fr 0.8fr;
	gap: 10px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
}
.wf-row:first-child {
	background: #f1f5f9;
}
.wf-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wf-input {
	height: 16px;
	border-radius: 6px;
	border: 1px solid var(--line-2);
}
.wf-cover span {
	flex: 1;
	border-radius: 8px;
	background: linear-gradient(160deg, #c7d2fe, #fbcfe8);
	min-height: 90px;
}
.wf-phone {
	border-radius: 30px;
	border: 6px solid #1f2937;
	aspect-ratio: 412 / 860;
	display: flex;
	flex-direction: column;
	position: relative;
	background: #f8fafc;
}
.wf-notch {
	height: 18px;
	background: #fff;
	position: relative;
}
.wf-notch::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 4px;
	width: 34%;
	height: 10px;
	translate: -50% 0;
	border-radius: 10px;
	background: #1f2937;
}
.wf-phone .wf-top {
	padding: 8px 10px;
}
.wf-phone .wf-body {
	padding: 8px;
	gap: 8px;
}
.wf-bottom {
	display: flex;
	justify-content: space-around;
	padding: 8px 6px 12px;
	background: #fff;
	border-top: 1px solid var(--line);
	margin-top: auto;
}
.wf-bottom span {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: #e2e8f0;
}
.wf-bottom span.on {
	background: var(--area);
}
@keyframes laser {
	from {
		top: 12%;
	}
	to {
		top: 86%;
	}
}
kbd {
	font-family: var(--mono);
	font-size: 0.82em;
	padding: 1px 7px;
	border-radius: 6px;
	border: 1px solid var(--line-2);
	border-bottom-width: 3px;
	background: #fff;
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
/* long words and addresses never widen a phone page */
code {
	overflow-wrap: anywhere;
}
@keyframes pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}
.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}
.skip:focus {
	top: 12px;
	color: #fff;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}
mark {
	background: #fef08a;
	border-radius: 3px;
	padding: 0 2px;
}
