/**
 * NotyLab library pages — /guides/ and /docs/.
 *
 * Loaded after unica-core-home.css and unica-core-tools.css, and scoped to
 * `.uc-library`, which sits on the same element as `.uc-home` and
 * `.uc-tools`. The page is the tools catalogue with text entries in it: the
 * search field, the pinned group navigation and the grouped rows are all that
 * stylesheet's. This one adds only:
 *
 *   1. the index header — one column, no figure sheet,
 *   2. a row without an icon, with a line of facts under it,
 *   3. the "elsewhere" rows that close the page.
 *
 * No new colours, radii or shadows: every value below is a token or a mix of
 * tokens. Layout uses logical properties, so right-to-left needs only the few
 * overrides at the end.
 */

/* ── 1. Index header ──────────────────────────────────────────────── */
/* Nothing to show beside the headline, so the list comes up sooner. */
.uc-library .nl-lib-hero {
	padding-bottom: clamp(2.75rem, 4.5vw, 4rem);
}

.nl-lib-hero__copy {
	max-width: 46rem;
}

.uc-library .nl-lib-hero .nl-tools-hero__title {
	font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.uc-library .nl-suggest__label {
	font-family: var(--nl-f-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

/* ── 2. Rows ──────────────────────────────────────────────────────── */
.uc-library .nl-lib-row .nl-tool-row__link {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 1.25rem;
	padding-block: 1.25rem;
}

.uc-library .nl-lib-row__title {
	font-size: 1.125rem;
	text-wrap: balance;
}

.uc-library .nl-lib-row .nl-tool-row__go {
	align-self: center;
}

.nl-lib-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.6rem;
	margin-top: 0.35rem;
}

.nl-lib-facts > span + span::before {
	content: "";
	display: inline-block;
	width: 0.75rem;
	margin-inline-end: 0.6rem;
	border-top: 1px solid color-mix(in srgb, var(--nl-fg) 35%, transparent);
	vertical-align: middle;
}

.nl-lib-facts > span:first-child {
	color: var(--nl-fg);
}

/* ── 3. Elsewhere ─────────────────────────────────────────────────── */
/* The closing rows are the tool page's index rows; this page does not load
   that stylesheet, so the few rules they need are repeated here. */
.uc-library .nl-tool-more {
	padding-block: clamp(4rem, 7.5vw, 7rem);
}

.uc-library .nl-tool-index__main {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.uc-library .nl-tool-index__type {
	color: var(--nl-mark-text);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.uc-library .nl-tool-index .nl-index__title {
	font-size: 1.375rem;
	font-weight: 400;
}

.uc-library .nl-tool-index .nl-index__row {
	align-items: center;
}

/* ── Right-to-left ────────────────────────────────────────────────── */
[dir="rtl"] .uc-library :is(.nl-lib-facts, .nl-suggest__label, .nl-tool-index__type) {
	font-family: var(--nl-f-sans);
	letter-spacing: 0;
}

[dir="rtl"] .uc-library .nl-lib-row__title {
	letter-spacing: 0;
}

[dir="rtl"] .uc-library .nl-tool-index .nl-index__title {
	font-weight: 600;
}

/* ── Phone ────────────────────────────────────────────────────────── */
@media (max-width: 639.98px) {
	.uc-library .nl-lib-row .nl-tool-row__link {
		gap: 0.85rem;
		padding-block: 1.1rem;
	}

	.uc-library .nl-lib-row__title {
		font-size: 1.0625rem;
	}

	.uc-library .nl-tool-index .nl-index__title {
		font-size: 1.25rem;
	}
}
