/*
Theme Name: Tehnopalīgs
Theme URI: https://tehnopaligs.local/
Author: Tehnopalīgs
Author URI: https://tehnopaligs.local
Description: Gutenberg-first child theme for the Tehnopalīgs digital assistance service.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tehnopaligs
Template: twentytwentyfive
Tags: full-site-editing, block-patterns, accessibility-ready, custom-colors, custom-logo
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
html {
	scroll-behavior: smooth;
}

a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/*
 * TehnoPaligs homepage visual system.
 * Scoped to the homepage so theme defaults remain unchanged elsewhere.
 */
:where(body.tp-home, .editor-styles-wrapper) {
	--tp-navy-950: #17324d;
	--tp-navy-900: #244663;
	--tp-navy-800: #31597a;
	--tp-blue-600: #356fd6;
	--tp-blue-500: #5a8dee;
	--tp-blue-100: #dbeaff;
	--tp-blue-50: #f4f8ff;
	--tp-text: #1b3550;
	--tp-muted: #60758a;
	--tp-border: #d8e5f2;
	--tp-surface: #fff;
	--tp-surface-soft: #f5f9fd;
	--tp-radius-sm: 14px;
	--tp-radius-md: 22px;
	--tp-radius-lg: 32px;
	--tp-shadow-sm: 0 12px 30px rgba(15, 42, 82, .08);
	--tp-shadow-md: 0 24px 70px rgba(10, 29, 59, .14);
	background: var(--tp-surface);
	color: var(--tp-text);
	font-weight: 400;
}

:where(body.tp-home, .editor-styles-wrapper) .wp-site-blocks {
	overflow: clip;
}

:where(body.tp-home, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
	color: var(--tp-navy-950);
	font-weight: 700;
	letter-spacing: -.035em;
}

:where(body.tp-home, .editor-styles-wrapper) :where(p, li, summary) {
	color: var(--tp-muted);
}

:where(body.tp-home, .editor-styles-wrapper) :where(a, button, summary) {
	transition: background-color 180ms ease, border-color 180ms ease,
		box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

:where(body.tp-home, .editor-styles-wrapper) :where(a, button, summary):focus-visible {
	outline: 3px solid rgba(40, 120, 255, .42);
	outline-offset: 4px;
}

/* Header */
:where(body.tp-home, .editor-styles-wrapper) header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

:where(body.tp-home, .editor-styles-wrapper) header.wp-block-template-part > .wp-block-group {
	background: transparent;
}

:where(body.tp-home, .editor-styles-wrapper) header .wp-block-group.alignwide {
	max-width: 1180px;
	min-height: 76px;
	padding-block: 14px !important;
}

:where(body.tp-home, .editor-styles-wrapper) header .wp-block-site-logo img {
	width: clamp(132px, 12vw, 166px);
}

:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation {
	column-gap: clamp(14px, 2vw, 28px);
	font-size: .92rem;
	font-weight: 650;
}

:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation-item__content {
	color: var(--tp-text);
	text-decoration: none;
}

:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation-item__content:hover {
	color: var(--tp-blue-600);
}

/* Buttons */
:where(body.tp-home, .editor-styles-wrapper) :where(.wp-element-button, .wp-block-button__link) {
	align-items: center;
	background: linear-gradient(135deg, #e4efff, #cbdffd);
	border: 1px solid rgba(53, 111, 214, .22);
	border-radius: 999px !important;
	box-shadow: 0 8px 20px rgba(30, 80, 145, .12);
	color: var(--tp-navy-950);
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px !important;
	text-decoration: none;
}

:where(body.tp-home, .editor-styles-wrapper) :where(.wp-element-button, .wp-block-button__link):hover {
	background: linear-gradient(135deg, #d8e8ff, #bdd5fa);
	border-color: rgba(53, 111, 214, .34);
	box-shadow: 0 10px 24px rgba(30, 80, 145, .16);
	color: var(--tp-navy-950);
	transform: translateY(-1px);
}

:where(body.tp-home, .editor-styles-wrapper) .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, .58);
	border-color: rgba(53, 111, 214, .46);
	box-shadow: none;
	color: var(--tp-blue-600);
}

:where(body.tp-home, .editor-styles-wrapper) .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	border-color: var(--tp-blue-600);
	color: var(--tp-blue-600);
}

/* Main section rhythm */
:where(body.tp-home, .editor-styles-wrapper) :where(.entry-content, .is-root-container) {
	--wp--style--global--content-size: 1180px;
	margin-top: 0;
}

:where(body.tp-home, .editor-styles-wrapper) :where(.entry-content, .is-root-container) > .wp-block-group {
	box-sizing: border-box;
	margin-left: calc(0px - var(--wp--style--root--padding-left)) !important;
	margin-right: calc(0px - var(--wp--style--root--padding-right)) !important;
	max-width: none;
	padding-block: clamp(72px, 8vw, 112px);
	padding-inline: max(22px, calc((100vw - 1180px) / 2)) !important;
	scroll-margin-top: 96px;
	width: calc(
		100% + var(--wp--style--root--padding-left) +
		var(--wp--style--root--padding-right)
	) !important;
}

:where(body.tp-home, .editor-styles-wrapper) :where(.entry-content, .is-root-container) > .wp-block-group > :where(h2, h3, p) {
	margin-inline: auto;
	max-width: 760px;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) :where(.entry-content, .is-root-container) > .wp-block-group > h2 {
	font-size: clamp(2rem, 4vw, 3.35rem);
	line-height: 1.08;
}

:where(body.tp-home, .editor-styles-wrapper) :where(.entry-content, .is-root-container) > .wp-block-group > h2 + p {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.7;
}

:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group {
	max-width: 1180px;
	width: 100%;
}

:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > :where(h2, p) {
	margin-inline: auto;
	max-width: 760px;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > h2 {
	font-size: clamp(2rem, 4vw, 3.35rem);
	line-height: 1.08;
}

:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > h2 + p {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.7;
}

/* Hero */
:where(body.tp-home, .editor-styles-wrapper) #sakums {
	background:
		radial-gradient(circle at 82% 18%, rgba(90, 141, 238, .24), transparent 29%),
		radial-gradient(circle at 8% 90%, rgba(122, 184, 255, .18), transparent 32%),
		linear-gradient(135deg, #f8fbff, #deebfb);
	border-radius: 0 0 var(--tp-radius-lg) var(--tp-radius-lg);
	box-sizing: border-box;
	margin-left: calc(0px - var(--wp--style--root--padding-left)) !important;
	margin-right: calc(0px - var(--wp--style--root--padding-right)) !important;
	max-width: none;
	min-height: min(700px, calc(100vh - 76px));
	padding: clamp(80px, 8vw, 112px) max(22px, calc((100vw - 1180px) / 2));
	position: relative;
	text-align: center;
	width: calc(
		100% + var(--wp--style--root--padding-left) +
		var(--wp--style--root--padding-right)
	);
}

:where(body.tp-home, .editor-styles-wrapper) #sakums::before {
	background: url("assets/images/hero-tech-workspace.webp") center / cover no-repeat;
	content: "";
	filter: saturate(.92) contrast(.99);
	inset: 0;
	opacity: .68;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums::after {
	background-image:
		linear-gradient(rgba(49, 89, 122, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(49, 89, 122, .055) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 82%);
	pointer-events: none;
	position: absolute;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums > * {
	position: relative;
	z-index: 2;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums > h1 {
	color: var(--tp-navy-950);
	font-size: clamp(2.65rem, 6vw, 5.4rem);
	line-height: 1.01;
	margin-inline: auto;
	max-width: 820px;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums > .wp-block-group {
	align-items: center;
	gap: 22px;
	margin-inline: auto;
	max-width: 760px;
	text-align: center;
	width: 100%;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums p {
	color: var(--tp-muted);
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.65;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums .tp-hero__trust-note {
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(90, 141, 238, .28);
	border-radius: var(--tp-radius-sm);
	color: var(--tp-text);
	font-size: .98rem;
	font-weight: 650;
	padding: 14px 18px;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) #sakums .wp-block-buttons {
	justify-content: center;
	gap: 14px;
	margin-top: 10px;
}

/* Alternating full-width section surfaces. */
:where(body.tp-home, .editor-styles-wrapper) :where(#pakalpojumi, #ierices, #katasnotiek, #cenas) {
	background: var(--tp-surface);
}

:where(body.tp-home, .editor-styles-wrapper) :where(#situacijas, #jautajumi) {
	background: var(--tp-surface-soft);
	border-block: 1px solid rgba(216, 229, 242, .72);
}

/* Service and example cards */
:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > .is-layout-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 22px;
}

:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > .is-layout-grid > .wp-block-group,
:where(body.tp-home, .editor-styles-wrapper) #situacijas > .is-layout-grid > .wp-block-group,
:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .wp-block-group {
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-md);
	box-shadow: var(--tp-shadow-sm);
	height: 100%;
	padding: clamp(24px, 3vw, 34px);
	text-align: left;
}

:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi .is-layout-grid h3,
:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid h3,
:where(body.tp-home, .editor-styles-wrapper) #ierices h3 {
	font-size: clamp(1.15rem, 1.5vw, 1.38rem);
	line-height: 1.25;
}

/* Gutenberg-native icon and heading rows. */
:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	margin-block: 0;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading__image {
	flex: 0 0 36px;
	margin: 0;
	width: 36px !important;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading__image img {
	display: block;
	height: 36px !important;
	object-fit: contain;
	width: 36px !important;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading :where(h2, h3) {
	margin-block: 0;
}

:where(body.tp-home, .editor-styles-wrapper) #situacijas > .is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 22px;
	margin-top: 40px;
}

:where(body.tp-home, .editor-styles-wrapper) #situacijas > .is-layout-grid h3 {
	font-size: clamp(1.2rem, 2vw, 1.55rem);
}

/* Trust section */
:where(body.tp-home, .editor-styles-wrapper) #drosiba {
	background:
		radial-gradient(circle at 90% 10%, rgba(90, 141, 238, .22), transparent 28%),
		linear-gradient(145deg, #edf5ff, #dfeeff);
	color: var(--tp-text);
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba > :where(h2, h3) {
	color: var(--tp-navy-950);
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba > h2 {
	margin-inline: auto;
	max-width: 760px;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba > :where(p, h3) {
	max-width: 820px;
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba > p {
	color: var(--tp-muted);
	margin-inline: auto;
	max-width: 760px;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 22px;
	margin-top: 40px;
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid > .wp-block-group {
	background: rgba(255, 255, 255, .88);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-md);
	box-shadow: var(--tp-shadow-sm);
	height: 100%;
	padding: clamp(24px, 3vw, 34px);
	text-align: left;
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid h3 {
	color: var(--tp-navy-950);
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid p {
	color: var(--tp-muted);
	font-size: .96rem;
	line-height: 1.55;
}

:where(body.tp-home, .editor-styles-wrapper) #drosiba > .tp-trust-note {
	background: rgba(255, 255, 255, .64);
	border: 1px solid rgba(90, 141, 238, .24);
	border-radius: var(--tp-radius-sm);
	color: var(--tp-blue-600);
	margin: 42px auto 0;
	padding: 18px 22px;
	text-align: center;
}

/* Device help cards */
:where(body.tp-home, .editor-styles-wrapper) #ierices .wp-block-columns {
	align-items: stretch;
	gap: 22px;
	margin-top: 40px;
}

:where(body.tp-home, .editor-styles-wrapper) #ierices .wp-block-column {
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-md);
	box-sizing: border-box;
	box-shadow: var(--tp-shadow-sm);
	flex-basis: 0;
	max-width: 100%;
	padding: clamp(24px, 3vw, 34px);
	text-align: left;
}

/* Process timeline */
:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical {
	align-items: stretch;
	gap: 0;
	margin: 44px auto 0;
	max-width: 900px;
	position: relative;
}

:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical::before {
	background: linear-gradient(var(--tp-blue-500), var(--tp-blue-100));
	content: "";
	height: calc(100% - 30px);
	left: 20px;
	position: absolute;
	top: 15px;
	width: 2px;
}

:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical > .wp-block-group {
	margin-left: 58px;
	padding: 22px 26px;
	position: relative;
}

:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical > .wp-block-group::before {
	background: var(--tp-surface);
	border: 4px solid var(--tp-blue-500);
	border-radius: 50%;
	content: "";
	height: 15px;
	left: -46px;
	position: absolute;
	top: 28px;
	width: 15px;
}

:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical h3 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
}

:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .tp-process-note {
	background: var(--tp-blue-50);
	border: 1px solid var(--tp-blue-100);
	border-radius: var(--tp-radius-sm);
	margin: 36px auto 0;
	max-width: 900px;
	padding: 22px 26px;
	text-align: center;
}

/* Important multi-question message, kept as native editable Gutenberg blocks. */
:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic {
	background:
		radial-gradient(circle at 8% 16%, rgba(90, 141, 238, .2), transparent 24%),
		radial-gradient(circle at 92% 84%, rgba(53, 111, 214, .14), transparent 27%),
		linear-gradient(135deg, #eef6ff 0%, #f8fbff 52%, #e7f1ff 100%);
	border-block: 1px solid rgba(90, 141, 238, .22);
	box-sizing: border-box;
	isolation: isolate;
	overflow: hidden;
	padding-inline: max(22px, calc((100vw - 1180px) / 2)) !important;
	position: relative;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic::before,
:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic::after {
	border: 1px solid rgba(53, 111, 214, .16);
	border-radius: 50%;
	content: "";
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic::before {
	height: 210px;
	left: -92px;
	top: -84px;
	width: 210px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic::after {
	bottom: -110px;
	height: 260px;
	right: -112px;
	width: 260px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > :where(h2, p) {
	margin-inline: auto;
	text-align: center;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > h2 {
	max-width: 820px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > h2::before {
	background: linear-gradient(90deg, var(--tp-blue-600), #7aa7f5);
	border-radius: 999px;
	content: "";
	display: block;
	height: 5px;
	margin: 0 auto 24px;
	width: 72px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > h2 + p {
	max-width: 680px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns {
	align-items: stretch !important;
	counter-reset: tp-multi-topic;
	gap: clamp(16px, 2vw, 24px);
	margin-block: clamp(38px, 5vw, 56px) 0;
	max-width: 1180px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns > .wp-block-column {
	counter-increment: tp-multi-topic;
	display: flex;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns > .wp-block-column > .wp-block-group {
	background: rgba(255, 255, 255, .88);
	border: 1px solid rgba(53, 111, 214, .16);
	border-radius: var(--tp-radius-md);
	box-shadow: 0 16px 38px rgba(27, 73, 127, .08);
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(24px, 3vw, 32px);
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns > .wp-block-column > .wp-block-group::before {
	align-items: center;
	background: var(--tp-blue-100);
	border-radius: 999px;
	color: var(--tp-blue-600);
	content: "0" counter(tp-multi-topic);
	display: flex;
	font-size: .78rem;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	letter-spacing: .06em;
	margin-bottom: 18px;
	width: 42px;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns p {
	color: var(--tp-text);
	font-size: clamp(1rem, 1.25vw, 1.1rem);
	line-height: 1.72;
	margin: 0;
}

:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .tp-process-note {
	background: linear-gradient(135deg, var(--tp-blue-600), #4f85e5);
	border: 0;
	border-radius: var(--tp-radius-sm);
	box-shadow: 0 14px 34px rgba(53, 111, 214, .22);
	color: #fff;
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	letter-spacing: -.015em;
	line-height: 1.5;
	margin: clamp(22px, 3vw, 30px) auto 0;
	max-width: 760px;
	padding: 18px clamp(20px, 4vw, 32px);
	text-align: center;
}

/* Pricing */
:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 22px;
	margin-top: 40px;
}

:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .is-style-tehnopaligs-featured-card {
	background: linear-gradient(160deg, #edf5ff, #d7e8ff);
	border-color: rgba(53, 111, 214, .3);
	box-shadow: var(--tp-shadow-md);
	transform: translateY(-8px);
}

:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .is-style-tehnopaligs-featured-card :where(h3, p) {
	color: var(--tp-text);
}

:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .wp-block-group .tp-price strong {
	color: var(--tp-blue-600);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	letter-spacing: -.05em;
}

:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .is-style-tehnopaligs-featured-card .tp-price strong {
	color: var(--tp-blue-600);
}

:where(body.tp-home, .editor-styles-wrapper) #cenas > .wp-block-group:not(.is-layout-grid) {
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-md);
	margin-top: 28px;
	padding: clamp(24px, 4vw, 38px);
}

:where(body.tp-home, .editor-styles-wrapper) #cenas > .tp-price-cta {
	background: linear-gradient(135deg, var(--tp-blue-50), #fff);
}

/* FAQ */
:where(body.tp-home, .editor-styles-wrapper) #jautajumi {
	max-width: none;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi > * {
	margin-inline: auto;
	max-width: 900px;
	width: 100%;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi > :where(h2, p) {
	max-width: 760px;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi details {
	background: var(--tp-surface);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-sm);
	box-shadow: 0 8px 20px rgba(15, 42, 82, .05);
	padding: 0;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi details + details {
	margin-top: 12px;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi summary {
	color: var(--tp-text);
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	padding: 22px 58px 22px 24px;
	position: relative;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi summary::-webkit-details-marker {
	display: none;
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi summary::after {
	color: var(--tp-blue-600);
	content: "+";
	font-size: 1.7rem;
	font-weight: 400;
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi details[open] {
	border-color: rgba(22, 93, 255, .32);
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi details[open] summary::after {
	content: "–";
}

:where(body.tp-home, .editor-styles-wrapper) #jautajumi details > p {
	border-top: 1px solid var(--tp-border);
	margin: 0;
	padding: 20px 24px 24px;
}

/* Footer */
:where(body.tp-home, .editor-styles-wrapper) footer.wp-block-template-part {
	background:
		radial-gradient(circle at 10% 0%, rgba(90, 141, 238, .2), transparent 32%),
		#eaf3ff;
	border-top: 1px solid var(--tp-border);
}

:where(body.tp-home, .editor-styles-wrapper) footer.wp-block-template-part > .wp-block-group {
	box-sizing: border-box;
	margin-inline: auto !important;
	max-width: 1180px;
	width: 100%;
}

:where(body.tp-home, .editor-styles-wrapper) footer :where(h2, h3, h4, p, a, .wp-block-navigation-item__content) {
	color: var(--tp-text);
}

:where(body.tp-home, .editor-styles-wrapper) footer :where(p, .wp-block-navigation-item__content) {
	color: var(--tp-muted);
}

:where(body.tp-home, .editor-styles-wrapper) footer .wp-block-navigation-item__content:hover {
	color: var(--tp-blue-600);
}

:where(body.tp-home, .editor-styles-wrapper) footer .wp-block-social-link {
	background: rgba(53, 111, 214, .1);
}

:where(body.tp-home, .editor-styles-wrapper) footer #sazinaties {
	scroll-margin-top: 96px;
}

/* Responsive layout */
@media (max-width: 1024px) {
	:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > .is-layout-grid,
	:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid,
	:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	:where(body.tp-home, .editor-styles-wrapper) #ierices .wp-block-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .is-style-tehnopaligs-featured-card {
		transform: none;
	}
}

@media (max-width: 781px) {
	:where(body.tp-home, .editor-styles-wrapper) {
		--wp--style--root--padding-left: 22px;
		--wp--style--root--padding-right: 22px;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-buttons {
		display: none;
	}

	:where(body.tp-home, .editor-styles-wrapper) #sakums {
		min-height: auto;
		padding: 88px 22px 96px;
	}

	:where(body.tp-home, .editor-styles-wrapper) :where(#pakalpojumi, #drosiba, #cenas) {
		padding-inline: 22px;
	}

	:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > .is-layout-grid,
	:where(body.tp-home, .editor-styles-wrapper) #drosiba .is-layout-grid,
	:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid,
	:where(body.tp-home, .editor-styles-wrapper) #situacijas > .is-layout-grid,
	:where(body.tp-home, .editor-styles-wrapper) #ierices .wp-block-columns {
		grid-template-columns: 1fr !important;
	}

	:where(body.tp-home, .editor-styles-wrapper) #ierices .wp-block-column {
		width: 100%;
	}

	:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical > .wp-block-group {
		margin-left: 42px;
		padding: 18px 12px 24px 20px;
	}

	:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical > .wp-block-group::before {
		left: -34px;
	}

	:where(body.tp-home, .editor-styles-wrapper) #katasnotiek > .is-vertical::before {
		left: 14px;
	}

	:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns {
		gap: 16px;
	}

	:where(body.tp-home, .editor-styles-wrapper) .tp-multi-topic > .wp-block-columns > .wp-block-column > .wp-block-group {
		padding: 24px;
	}

	:where(body.tp-home, .editor-styles-wrapper) footer .wp-block-columns {
		gap: 36px;
	}
}

@media (max-width: 599px) {
	:where(body.tp-home, .editor-styles-wrapper) #sakums::before {
		background-image: url("assets/images/hero-tech-workspace-mobile.webp");
		background-position: center;
		background-size: cover;
		opacity: .48;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-group.alignwide > .wp-block-group:last-child {
		display: none;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation {
		margin-left: auto;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open {
		align-items: center;
		background: var(--tp-blue-50);
		border-radius: 50%;
		display: flex;
		height: 44px;
		justify-content: center;
		position: relative;
		width: 44px;
		z-index: 100001;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open.is-menu-toggle-open svg {
		display: none;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open.is-menu-toggle-open::before {
		content: "×";
		font-size: 32px;
		font-weight: 300;
		line-height: 1;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open {
		background: #f4f8ff !important;
		border: 1px solid rgba(53, 111, 214, .2);
		border-radius: var(--tp-radius-md);
		box-shadow: var(--tp-shadow-md);
		box-sizing: border-box;
		color: var(--tp-text) !important;
		height: auto;
		inset: calc(100% + 12px) 0 auto auto;
		min-height: 0;
		overflow: auto;
		padding: 24px;
		position: absolute;
		width: min(320px, calc(100vw - 44px));
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open :where(a, button) {
		color: var(--tp-text);
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		padding-top: 0 !important;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: center;
		width: 100%;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
		outline: none;
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
		box-shadow: inset 0 -2px var(--tp-blue-500);
	}

	:where(body.tp-home, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-close {
		display: none;
	}

	:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading {
		gap: 8px;
	}

	:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading__image {
		flex-basis: 32px;
		width: 32px !important;
	}

	:where(body.tp-home, .editor-styles-wrapper) .tp-icon-heading__image img {
		height: 32px !important;
		width: 32px !important;
	}
}

@media (max-width: 480px) {
	:where(body.tp-home, .editor-styles-wrapper) #sakums > h2 {
		font-size: clamp(2.15rem, 10vw, 3rem);
		line-height: 1.06;
	}

	:where(body.tp-home, .editor-styles-wrapper) #sakums .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
		margin-inline: auto;
		width: min(100%, 300px);
	}

	:where(body.tp-home, .editor-styles-wrapper) #sakums :where(.wp-block-button, .wp-block-button__link) {
		width: 100%;
	}

	:where(body.tp-home, .editor-styles-wrapper) #pakalpojumi > .wp-block-group > .is-layout-grid > .wp-block-group,
	:where(body.tp-home, .editor-styles-wrapper) #situacijas > .is-layout-grid > .wp-block-group,
	:where(body.tp-home, .editor-styles-wrapper) #cenas > .is-layout-grid > .wp-block-group,
	:where(body.tp-home, .editor-styles-wrapper) #ierices .wp-block-column {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	:where(body.tp-home, .editor-styles-wrapper) *,
	:where(body.tp-home, .editor-styles-wrapper) *::before,
	:where(body.tp-home, .editor-styles-wrapper) *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

/* Shared site chrome on every public page and in the Site Editor. */
:where(body, .editor-styles-wrapper) header.wp-block-template-part {
	--tp-header-background: rgba(255, 255, 255, .92);
	--tp-header-border: rgba(220, 230, 245, .86);
	--tp-header-shadow: rgba(6, 19, 41, .05);
	--tp-header-blur: 14px;
	position: sticky;
	top: 0;
	z-index: 100;
}

:where(body.tp-home, .editor-styles-wrapper) header.wp-block-template-part {
	--tp-header-background: rgba(240, 247, 255, .30);
	--tp-header-border: rgba(220, 230, 245, .07);
	--tp-header-shadow: rgba(6, 19, 41, 0);
	--tp-header-blur: 1px;
}

:where(body, .editor-styles-wrapper) header.wp-block-template-part > .wp-block-group {
	-webkit-backdrop-filter: blur(var(--tp-header-blur));
	backdrop-filter: blur(var(--tp-header-blur));
	background-color: var(--tp-header-background);
	border-bottom: 1px solid var(--tp-header-border);
	box-shadow: 0 8px 30px var(--tp-header-shadow);
	transition: background-color 80ms linear, border-color 80ms linear,
		box-shadow 80ms linear, backdrop-filter 80ms linear;
}

:where(body, .editor-styles-wrapper) header .wp-block-group.alignwide {
	max-width: 1180px;
	min-height: 76px;
	padding-block: 14px !important;
}

:where(body, .editor-styles-wrapper) header .wp-block-site-logo img {
	width: clamp(132px, 12vw, 166px);
}

:where(body, .editor-styles-wrapper) header .wp-block-navigation {
	column-gap: clamp(14px, 2vw, 28px);
	font-size: .92rem;
	font-weight: 650;
}

:where(body, .editor-styles-wrapper) header .wp-block-navigation-item__content {
	color: #1b3550;
	text-decoration: none;
}

:where(body, .editor-styles-wrapper) header .tp-language-switcher {
	align-items: center;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(53, 111, 214, .25);
	border-radius: 999px;
	box-sizing: border-box;
	color: #17324d;
	display: inline-flex;
	font-size: .84rem;
	font-weight: 750;
	height: 44px;
	justify-content: center;
	letter-spacing: .04em;
	min-width: 44px;
	padding: 0 12px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease,
		box-shadow 160ms ease;
}

:where(body, .editor-styles-wrapper) header p:has(> .tp-language-switcher) {
	line-height: 1;
	margin: 0;
}

:where(body, .editor-styles-wrapper) header .tp-language-switcher:hover {
	background: #fff;
	border-color: rgba(53, 111, 214, .45);
	box-shadow: 0 8px 20px rgba(30, 80, 145, .1);
}

:where(body, .editor-styles-wrapper) header .tp-language-switcher:focus-visible {
	outline: 3px solid rgba(53, 111, 214, .35);
	outline-offset: 3px;
}

:where(body, .editor-styles-wrapper) header .wp-block-button__link {
	background: linear-gradient(135deg, #e4efff, #cbdffd);
	border: 1px solid rgba(53, 111, 214, .22);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(30, 80, 145, .12);
	color: #17324d;
	font-weight: 700;
	min-height: 48px;
	padding: 12px 24px;
	text-decoration: none;
}

:where(body, .editor-styles-wrapper) header .wp-block-button__link:hover {
	background: linear-gradient(135deg, #d8e8ff, #bdd5fa);
	border-color: rgba(53, 111, 214, .34);
	box-shadow: 0 10px 24px rgba(30, 80, 145, .16);
	color: #17324d;
}

:where(body, .editor-styles-wrapper) footer.wp-block-template-part {
	background: radial-gradient(circle at 10% 0%, rgba(90, 141, 238, .2), transparent 32%), #eaf3ff;
	border-top: 1px solid #d8e5f2;
}

:where(body, .editor-styles-wrapper) footer .tp-footer-email {
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	font-weight: 700;
	margin-block: 1em;
	text-align: center;
}

/* Legal pages share a calm reading width and safely wrap long legal terminology. */
body.tp-legal-page :where(.entry-content, .is-root-container) {
	box-sizing: border-box;
	margin-top: 0;
	padding-block: clamp(56px, 8vw, 96px);
}

body.tp-legal-page :where(.entry-content, .is-root-container) > * {
	margin-inline: auto;
	max-width: 760px;
}

body.tp-legal-page :where(h1, h2, h3, p, li, a) {
	hyphens: auto;
	overflow-wrap: anywhere;
}

body.tp-legal-page .entry-content > h1 {
	font-size: clamp(2.15rem, 6vw, 3.5rem);
	margin-bottom: clamp(36px, 6vw, 64px);
}

body.tp-legal-page .entry-content > h2 {
	font-size: clamp(1.45rem, 3vw, 2rem);
	margin-top: clamp(36px, 6vw, 56px);
}

@media (max-width: 599px) {
	body.tp-legal-page .entry-content > h1 {
		font-size: clamp(2rem, 10vw, 2.5rem);
	}
}

/* The request form uses the same spacing, surfaces and controls as the homepage. */
body.tp-help-page :where(.entry-content, .is-root-container) {
	margin-top: 0;
	padding-block: clamp(56px, 8vw, 96px);
}

body.tp-help-page :where(.entry-content, .is-root-container) > * {
	max-width: 760px;
}

body.tp-help-page .wpforms-container {
	background: #f5f9fd;
	border: 1px solid #d8e5f2;
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(15, 42, 82, .08);
	padding: clamp(22px, 4vw, 38px);
}

body.tp-help-page .wpforms-container :where(input, select, textarea) {
	border-color: #c8d9ea !important;
	border-radius: 10px !important;
}

body.tp-help-page .wpforms-container button[type="submit"] {
	background: linear-gradient(135deg, #e4efff, #cbdffd) !important;
	border: 1px solid rgba(53, 111, 214, .22) !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 20px rgba(30, 80, 145, .12) !important;
	color: #17324d !important;
	font-weight: 700 !important;
	min-height: 48px;
	padding-inline: 24px !important;
}

body.tp-help-page .wpforms-container button[type="submit"]:hover {
	background: linear-gradient(135deg, #d8e8ff, #bdd5fa) !important;
	border-color: rgba(53, 111, 214, .34) !important;
	box-shadow: 0 10px 24px rgba(30, 80, 145, .16) !important;
}

.tp-language-suggestion {
	left: 0;
	padding: 0 22px;
	pointer-events: none;
	position: fixed;
	right: 0;
	top: calc(var(--tp-header-height, 82px) + 10px);
	z-index: 99;
}

.tp-language-suggestion__inner {
	align-items: center;
	background: rgba(245, 249, 253, .97);
	border: 1px solid #c8d9ea;
	border-radius: 16px;
	box-shadow: 0 16px 38px rgba(15, 42, 82, .14);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 760px;
	padding: 12px 14px 12px 18px;
	pointer-events: auto;
}

.tp-language-suggestion__inner p {
	color: #17324d;
	font-size: .94rem;
	font-weight: 650;
	margin: 0;
}

.tp-language-suggestion__actions {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

.tp-language-suggestion :where(a, button) {
	align-items: center;
	border-radius: 999px;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: .82rem;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	text-decoration: none;
}

.tp-language-suggestion__accept {
	background: #dbeaff;
	border: 1px solid rgba(53, 111, 214, .28);
	color: #17324d;
}

.tp-language-suggestion__stay {
	background: transparent;
	border: 1px solid transparent;
	color: #435d77;
}

.tp-language-suggestion :where(a, button):focus-visible {
	outline: 3px solid rgba(53, 111, 214, .35);
	outline-offset: 2px;
}

/* Let the homepage hero continue behind the transparent header. */
body.tp-home #sakums {
	margin-top: calc(0px - var(--tp-header-height, 82px)) !important;
	padding-top: calc(clamp(80px, 8vw, 112px) + var(--tp-header-height, 82px));
}

@media (max-width: 781px) {
	body.tp-home #sakums {
		padding-top: calc(88px + var(--tp-header-height, 77px));
	}

	:where(body, .editor-styles-wrapper) header .wp-block-buttons {
		display: none;
	}
}

@media (max-width: 599px) {
	:where(body, .editor-styles-wrapper) header .wp-block-site-logo {
		order: 1;
	}

	:where(body, .editor-styles-wrapper) header p:has(> .tp-language-switcher) {
		margin-left: auto;
		order: 2;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-group.alignwide > .wp-block-group:last-child {
		display: none;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation {
		margin-left: 0;
		order: 3;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open {
		align-items: center;
		background: #f4f8ff;
		border-radius: 50%;
		display: flex;
		height: 44px;
		justify-content: center;
		position: relative;
		width: 44px;
		z-index: 100001;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open.is-menu-toggle-open svg {
		display: block;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open.is-menu-toggle-open::before {
		content: none;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-open.is-menu-toggle-open {
		opacity: 0;
		pointer-events: none;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open {
		background: #f4f8ff !important;
		border: 1px solid rgba(53, 111, 214, .2);
		border-radius: 22px;
		box-shadow: 0 24px 70px rgba(10, 29, 59, .14);
		box-sizing: border-box;
		color: #1b3550 !important;
		height: auto;
		inset: calc(100% + 12px) 0 auto auto;
		min-height: 0;
		overflow: visible;
		padding: 24px;
		position: absolute;
		width: min(320px, calc(100vw - 44px));
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		padding-top: 0 !important;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: center;
		width: 100%;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container-close {
		display: none;
	}

	:where(body, .editor-styles-wrapper) header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		align-items: center;
		background: #f4f8ff;
		border: 0;
		border-radius: 50%;
		color: #1b3550;
		display: flex;
		height: 44px;
		justify-content: center;
		margin: 0;
		padding: 10px;
		left: var(--tp-menu-close-left, calc(100% - 44px));
		position: absolute;
		right: auto;
		top: var(--tp-menu-close-top, -63px);
		width: 44px;
		z-index: 100002;
	}

	.tp-language-suggestion {
		padding: 0 12px;
		top: calc(var(--tp-header-height, 77px) + 8px);
	}

	.tp-language-suggestion__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 9px;
		padding: 13px;
	}

	.tp-language-suggestion__actions {
		align-items: stretch;
		flex-direction: column;
	}
}
