/* ==========================================================================
   Page-level layouts: page, single, archive, 404
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page & single headers
   -------------------------------------------------------------------------- */
.c-page__head,
.c-single__head {
	padding-block: var(--tbe-space-7) var(--tbe-space-5);
	background: linear-gradient(180deg, var(--tbe-mist) 0%, var(--tbe-white) 100%);
	border-bottom: 1px solid var(--tbe-line);
}

.c-page__title,
.c-single__title {
	max-width: 24ch;
	margin: 0;
	font-size: var(--tbe-text-3xl);
}

.c-page__lead,
.c-single__lead {
	max-width: 62ch;
	margin: var(--tbe-space-3) 0 0;
	color: var(--tbe-slate);
	font-size: var(--tbe-text-lg);
}

.c-page__media,
.c-single__media {
	margin: var(--tbe-space-5) 0 0;
}

.c-page__img,
.c-single__img {
	width: 100%;
	border-radius: var(--tbe-radius);
	box-shadow: var(--tbe-shadow-sm);
}

.c-page__edit {
	margin-top: var(--tbe-space-6);
}

.c-page__pagination {
	display: flex;
	gap: var(--tbe-space-2);
	margin-top: var(--tbe-space-5);
}

.c-document {
	display: inline-flex;
	align-items: center;
	gap: var(--tbe-space-2);
	padding: var(--tbe-space-3) var(--tbe-space-4);
	border: 1px solid var(--tbe-line);
	border-radius: var(--tbe-radius-sm);
	background: var(--tbe-white);
	font-weight: 600;
	text-decoration: none;
}

.c-document:hover {
	border-color: var(--tbe-accent);
	background: var(--tbe-accent-soft);
}

/* --------------------------------------------------------------------------
   Archive hero
   -------------------------------------------------------------------------- */
.c-archive-hero {
	padding-block: var(--tbe-space-7) var(--tbe-space-6);
	background: var(--tbe-ink);
	color: #c2cbd6;
	position: relative;
	overflow: hidden;
}

.c-archive-hero::after {
	content: "";
	position: absolute;
	top: -60%;
	right: -10%;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 162, 0, 0.28), transparent 65%);
	pointer-events: none;
}

.c-archive-hero .c-breadcrumbs li,
.c-archive-hero .c-breadcrumbs a {
	color: #98a3b1;
}

.c-archive-hero .c-breadcrumbs [aria-current="page"] {
	color: var(--tbe-white);
}

.c-archive-hero__title {
	margin: 0;
	max-width: 30ch;
	color: var(--tbe-white);
	font-size: var(--tbe-text-3xl);
}

.c-archive-hero__desc {
	max-width: 62ch;
	margin-top: var(--tbe-space-3);
	color: #b9c3cf;
}

.c-archive-hero__count {
	margin: var(--tbe-space-3) 0 0;
	font-size: var(--tbe-text-sm);
	color: #b9c3cf;
}

.c-archive-hero__search {
	max-width: 480px;
	margin-top: var(--tbe-space-4);
}

.c-archive {
	padding-block: var(--tbe-space-7) var(--tbe-section);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.c-404 {
	padding-block: var(--tbe-section);
	background: var(--tbe-mist);
}

.c-404__inner {
	max-width: 640px;
	text-align: center;
}

.c-404__code {
	margin: 0;
	color: var(--tbe-accent);
	font-size: clamp(4rem, 3rem + 8vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	opacity: 0.9;
}

.c-404__title {
	margin-top: var(--tbe-space-3);
	font-size: var(--tbe-text-2xl);
}

.c-404__text {
	color: var(--tbe-slate);
}

.c-404__search {
	max-width: 420px;
	margin: var(--tbe-space-5) auto;
}

.c-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--tbe-space-3);
}

/* --------------------------------------------------------------------------
   Child page listing (e.g. the services under /pakalpojumi/)
   -------------------------------------------------------------------------- */
.c-children {
	margin-top: var(--tbe-space-7);
	padding-top: var(--tbe-space-6);
	border-top: 1px solid var(--tbe-line);
}

.c-children__title {
	margin-bottom: var(--tbe-space-4);
	color: var(--tbe-ink);
	font-size: var(--tbe-text-lg);
}

.c-card--link .c-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
