/*
 * Kumpula – theme CSS. theme.json first; this file styles what theme.json cannot.
 * Model: ../../../../site/src/app/globals.css (frozen Next.js site, DESIGN.md v4). Append new rules; the last rule wins.
 * Rules that override WordPress layout spacing use specificity 0-2-0 (`:root .x`) so they also win in the editor.
 */

/* ===== Tokens (aliases of theme.json presets/custom) ===== */
:root {
	--kp-paper: var(--wp--preset--color--paper);
	--kp-white: var(--wp--preset--color--white);
	--kp-mist: var(--wp--preset--color--mist);
	--kp-ink: var(--wp--preset--color--ink);
	--kp-deep: var(--wp--preset--color--deep);
	--kp-blue: var(--wp--preset--color--blue);
	--kp-mint: var(--wp--preset--color--mint);
	--kp-line: var(--wp--custom--color--line);
	--kp-line-strong: var(--wp--custom--color--line-strong);
	--kp-tint: var(--wp--custom--color--tint);
	--kp-error: var(--wp--custom--color--error);
	--kp-gutter: var(--wp--custom--gutter);
	--kp-wide: var(--wp--style--global--wide-size, 75rem);
	--kp-r-card: var(--wp--custom--radius--card);
	--kp-r-panel: var(--wp--custom--radius--panel);
	--kp-r-inner: var(--wp--custom--radius--inner);
	--kp-wave-h: var(--wp--custom--wave--height);
	--kp-dur-fast: var(--wp--custom--motion--fast);
	--kp-dur-base: var(--wp--custom--motion--base);
	--kp-dur-moderate: var(--wp--custom--motion--moderate);
	--kp-dur-slow: var(--wp--custom--motion--slow);
	--kp-ease-out: var(--wp--custom--motion--ease-out);
	--kp-ease-emphasized: var(--wp--custom--motion--ease-emphasized);
	--kp-ease-in: var(--wp--custom--motion--ease-in);
}

/* ===== Base ===== */
html { scroll-padding-top: 6rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:root .wp-site-blocks > * { margin-block: 0; }
img, video { max-width: 100%; height: auto; }
::selection { background: var(--kp-mint); color: var(--kp-ink); }

/* Focus: one visible ring everywhere (WCAG 2.4.7); the contact form's fields draw their own ring (.kp-form), every other
   field (search) keeps this one. */
:focus-visible { outline: 2px solid var(--kp-blue); outline-offset: 3px; }

/* Links: underline 1.5 px, offset 4 px (Next .link). */
a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ===== Type roles: letter-spacing and line-height follow the size preset (Next .t-* roles; multi-line headings opened up 22.11.2026, user feedback) ===== */
.has-display-font-size { line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.has-giant-font-size { line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.has-title-font-size { line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.has-section-font-size { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.has-quote-font-size { line-height: 1.3; letter-spacing: -0.018em; }
.has-lead-font-size { line-height: 1.25; letter-spacing: -0.01em; }
.has-chip-font-size { line-height: 1.3; font-weight: 500; letter-spacing: 0; }
:is(h1, h2, h3) { text-wrap: balance; }
p { text-wrap: pretty; }
/* Lead paragraph: 20 px, 400 (Next .t-lead). Use the H3 size preset on a paragraph. */
p.has-lead-font-size { line-height: 1.4; letter-spacing: -0.005em; font-weight: 400; }
/* Result numbers: display size, 500, tabular figures (Next .t-stat). */

/* ===== Buttons (core/button) ===== */
.wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out); }
/* "Light": white pill on images and dark/blue panels. */
.wp-block-button.is-style-light .wp-block-button__link { background: var(--kp-white); color: var(--kp-deep); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--kp-mist); color: var(--kp-ink); }
/* "Arrow link": section action link (Next MoreLink): text + small arrow ball. */
.wp-block-button.is-style-arrow .wp-block-button__link {
	background: none; color: inherit; padding: 0; min-height: 2.75rem; gap: 0.75rem; font-weight: 500;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: ""; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px;
	background: color-mix(in srgb, currentColor 7%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
	transition: translate var(--kp-dur-base) var(--kp-ease-out);
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover { text-decoration: underline; }
.wp-block-button.is-style-arrow .wp-block-button__link:is(:hover, :focus-visible)::after { translate: 4px 0; }

/* ===== Lists ===== */
/* Default bullets: blue dot (Next .prose-kumpula ul). */
.wp-block-list:not(.is-style-checks, .is-style-numbered, ol) { list-style: none; padding-left: 0; }
.wp-block-list:not(.is-style-checks, .is-style-numbered, ol) > li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5em; }
.wp-block-list:not(.is-style-checks, .is-style-numbered, ol) > li::before {
	content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--kp-blue);
}
/* Numbered (ol and the "Numbered" style): number in a blue ball, the same shape as process cards and "Näin edetään". */
ol.wp-block-list, .wp-block-list.is-style-numbered { list-style: none; counter-reset: kp-step; padding-left: 0; }
ol.wp-block-list > li, .wp-block-list.is-style-numbered > li {
	counter-increment: kp-step; position: relative; min-height: 2.25rem; padding: 0.35em 0 0 3.25rem; margin-bottom: 0.9em;
}
ol.wp-block-list > li::before, .wp-block-list.is-style-numbered > li::before {
	content: counter(kp-step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
	width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--kp-blue); color: var(--kp-white);
	font-size: 1rem; font-weight: 500; line-height: 1;
}

/* ===== Cards ===== */
/* White card: theme.json block style "card"; here only what the style cannot carry. */
.is-style-card { overflow: hidden; }
/* Card link: the whole card is one link (stretched first link), image zooms, arrow nudges (STYLE-TRENDS §2u). */
.is-style-card-link { position: relative; isolation: isolate; }
.is-style-card-link a:first-of-type::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.is-style-card-link img { transition: scale var(--kp-dur-slow) var(--kp-ease-out); }
@media (hover: hover) { .is-style-card-link:hover img { scale: 1.04; } }
.is-style-card-link:focus-within img { scale: 1.04; }
.is-style-card-link :is(a:focus-visible) { outline: none; }
.is-style-card-link:has(a:focus-visible) { outline: 2px solid var(--kp-blue); outline-offset: 3px; }

/* ===== Panels (section style variations) ===== */

/* ===== Chips ===== */
.kp-chip { display: inline-flex; align-items: center; gap: 0.375rem; height: 1.875rem; padding-inline: 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--kp-ink) 6%, transparent); font-size: var(--wp--preset--font-size--chip); font-weight: 500; line-height: 1; white-space: nowrap; }

/* ===== Motion (STYLE-TRENDS §2ac) ===== */
/* Section headings reveal from a mask once in view (CSS scroll-driven; visible at once without support). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		main :is(h2.has-title-font-size, h2.wp-block-heading:not([class*="-font-size"])):not(.kp-no-reveal) {
			animation: kp-head-reveal linear both;
			animation-timeline: view();
			animation-range: entry 10% entry 70%;
		}
		.kp-reveal:not(.kp-no-reveal) { animation: kp-reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
	}
}
@keyframes kp-head-reveal {
	from { clip-path: inset(0 0 100% 0); translate: 0 0.35em; opacity: 0; }
	/* Top inset negative: the home heading's faces lift on hover and were cut at the top edge (user 27.11.2026). */
	to { clip-path: inset(-0.5em 0 -0.2em 0); translate: 0 0; opacity: 1; }
}
@keyframes kp-reveal-up { from { opacity: 0; translate: 0 2.5rem; scale: 0.98; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* Page transitions (MPA): short crossfade; the header stays put. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: 250ms; animation-timing-function: var(--kp-ease-out); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Custom blocks (mu-plugin kumpula-site/blocks); model: site/src/components/ui/* ===== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Arrow ball (Next ArrowButton): decorative, nudges 4 px when its card/link is hovered or focused. */
.kp-arrow { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out); }
.kp-arrow--sm { width: 2.25rem; height: 2.25rem; }
.kp-arrow svg { width: 1.25rem; height: 1.25rem; transition: translate var(--kp-dur-base) var(--kp-ease-out); }
.kp-arrow--sm svg { width: 1rem; height: 1rem; }
.kp-arrow--soft { background: color-mix(in srgb, var(--kp-ink) 7%, transparent); color: var(--kp-ink); }
.kp-arrow--glass { background: rgb(255 255 255 / 0.2); color: var(--kp-white); backdrop-filter: blur(12px); }
.kp-arrow--white { background: var(--kp-white); color: var(--kp-ink); }
:is(a, button, article):is(:hover, :focus-visible, :focus-within) .kp-arrow svg { translate: 4px 0; }

/* Mask logo (single-colour client logo, colour = currentColor). */
.kp-mask-logo { display: block; flex: none; background: currentColor; }

/* Chips */
.kp-chip.is-glass { background: rgb(255 255 255 / 0.2); color: var(--kp-white); backdrop-filter: blur(12px); }

/* Film loop + scanner frame (Next FilmLoop, ServiceCard scan-frame) */
.kp-film { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--kp-deep); }
.kp-film.is-fill { aspect-ratio: auto; height: 100%; min-height: 20rem; }
.kp-film video { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale var(--kp-dur-slow) var(--kp-ease-out); }
.kp-scan { position: absolute; inset: 1.5rem; pointer-events: none; }
.kp-scan > span { position: absolute; width: 2.25rem; height: 2.25rem; border: 0 solid rgb(255 255 255 / 0.95); opacity: 0; transition: opacity var(--kp-dur-base) var(--kp-ease-out), translate var(--kp-dur-moderate) var(--kp-ease-emphasized); }
.kp-scan > span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; translate: -10px -10px; }
.kp-scan > span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; translate: 10px -10px; }
.kp-scan > span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; translate: -10px 10px; }
.kp-scan > span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; translate: 10px 10px; }
@media (hover: hover) { [data-kp-film-host]:hover .kp-scan > span { opacity: 1; translate: 0 0; } [data-kp-film-host]:hover .kp-film video { scale: 1.03; } }
[data-kp-film-host]:focus-within .kp-scan > span { opacity: 1; translate: 0 0; }

/* Wave edge (Next WaveEdge): full viewport width, slides with scroll. */
.kp-wave { position: absolute; left: 50%; width: 100vw; height: calc(var(--kp-wave-h) + 2px); translate: -50% 0; overflow: clip; pointer-events: none; z-index: 1; }
.kp-wave--bottom { bottom: -2px; }
.kp-wave--top { top: calc(-1 * var(--kp-wave-h)); }
.kp-wave svg { position: absolute; bottom: 0; left: 0; width: 250%; height: 100%; }
.kp-wave__front { bottom: -2px !important; height: calc(100% + 2px) !important; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.kp-wave svg { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(block 0px); animation-range: entry 0% exit 100%; }
		.kp-wave__front { animation-name: kp-wave-front; }
		.kp-wave__back { animation-name: kp-wave-back; }
	}
}
@keyframes kp-wave-front { from { translate: 0 0; } to { translate: -25% 0; } }
@keyframes kp-wave-back { from { translate: -25% 0; } to { translate: 0 0; } }
@keyframes kp-marquee { to { translate: -50% 0; } }
.kp-pause { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; }
.kp-pause svg { width: 0.875rem; height: 0.875rem; }
.kp-pause .kp-pause__play, .kp-pause[aria-pressed="true"] .kp-pause__pause { display: none; }
.kp-pause[aria-pressed="true"] .kp-pause__play { display: block; }
.wp-block-list.is-on-sand > li::before { background: var(--kp-white); color: var(--kp-ink); }

/* Reading time */
.kp-reading-time { margin: 0; }

/* ===== Layout: sections, header, hero, footer (templates/, parts/; model: Next header.tsx, page-hero.tsx, footer.tsx) ===== */
.kp-section.is-tight-top { padding-top: var(--wp--preset--spacing--40); }
:root .kp-section > * + * { margin-block-start: clamp(2.5rem, 2rem + 1.5vw, 4rem); }
:root .kp-content > .alignwide, :root .kp-content > .alignfull { margin-block: 0; }
@keyframes kp-mega-item { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes kp-mobile-in { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }
.kp-case-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kp-text-page { padding: 0 var(--kp-gutter) var(--wp--preset--spacing--70); }
.kp-chip-terms a { display: inline-flex; align-items: center; height: 1.875rem; padding-inline: 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--kp-ink) 6%, transparent); color: var(--kp-ink); font-size: var(--wp--preset--font-size--chip); font-weight: 500; text-decoration: none; }

/* Prose (article/case/text content): headings, lists and spacing (Next .prose-kumpula). */
.kp-prose, .kp-case-content { max-width: 44rem; }

/* Article cards (home.html query loop) and horizontal post cards */
.kp-cat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.kp-cat-chips li a { display: inline-flex; align-items: center; height: 2.75rem; padding-inline: 1.25rem; border-radius: 999px; background: var(--kp-white); color: var(--kp-ink); font-weight: 500; text-decoration: none; box-shadow: inset 0 0 0 1px rgb(18 25 29 / 0.15); }
.kp-cat-chips li.current-cat a { background: var(--kp-ink); color: var(--kp-white); }

/* Case page: services used, other cases */
.kp-case-services { padding: var(--wp--preset--spacing--50) var(--kp-gutter) 0; }
.kp-case-services > * { max-width: 44rem !important; }
.kp-case-services ul { flex-wrap: wrap; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.kp-case-services a { display: inline-flex; align-items: center; padding-inline: 1.25rem; background: var(--kp-white); color: var(--kp-ink); font-weight: 500; text-decoration: none; transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out); }
.kp-case-services a:hover { background: var(--kp-ink); color: var(--kp-white); }
.kp-social { gap: 0.5rem !important; margin-top: 1.5rem !important; }
.kp-social .wp-social-link { background: rgb(255 255 255 / 0.1) !important; color: var(--kp-white) !important; width: 3rem; height: 3rem; }
.kp-social .wp-social-link a { padding: 0.75rem; }
.kp-social .wp-social-link:hover { background: var(--kp-white) !important; color: var(--kp-deep) !important; }

/* ===== Content patterns (patterns/*.php; model: Next home and service sections) ===== */
.kp-chip-links { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: auto !important; padding-top: 1.5rem; }
.kp-chip-links p { margin: 0; }
.kp-chip-links a { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 1.875rem; padding-inline: 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--kp-ink) 6%, transparent); color: var(--kp-ink); font-size: var(--wp--preset--font-size--chip); font-weight: 500; text-decoration: none; transition: background-color var(--kp-dur-base) var(--kp-ease-out); }
.kp-chip-links a:hover { background: color-mix(in srgb, var(--kp-ink) 12%, transparent); }
.is-style-card-link .kp-film video { transition: scale var(--kp-dur-slow) var(--kp-ease-out); }

/* AI panel: the page's one dark panel, film loop at the right */
.kp-ai-panel { overflow: hidden; }
.kp-ai-panel > .wp-block-columns { margin: 0; }
.kp-ai-panel__text { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) !important; }
.kp-ai-panel__media { position: relative; min-height: 26rem; }
.kp-ai-panel__media .kp-film { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.kp-ai-rows { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.kp-ai-rows li { position: relative; margin: 0 -0.75rem; padding: 0.75rem; border-radius: 1rem; transition: background-color var(--kp-dur-base) var(--kp-ease-out); }
.kp-ai-rows li:hover { background: rgb(255 255 255 / 0.07); }
.kp-ai-rows a { color: var(--kp-white); font-size: var(--wp--preset--font-size--lead); font-weight: 500; text-decoration: none; }
.kp-ai-rows a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kp-tag-card ul { margin: 0; padding: 0; list-style: none; }
.kp-tag-card li { display: flex; align-items: flex-start; gap: 0.875rem; padding: 0.5rem 0; font-size: var(--wp--preset--font-size--lead); font-weight: 500; }
.kp-tag-card li::before { content: ""; flex: none; margin-top: 0.42em; width: 0.875rem; height: 0.875rem; border-radius: 999px; background: var(--kp-blue); }
.kp-service-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .kp-service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .kp-service-grid { grid-template-columns: repeat(4, 1fr); } }
:root .kp-service-grid > * { margin: 0; }
.kp-panel-wrap { padding-inline: clamp(0.5rem, 1.5vw, 1rem); }

/* ===== Fixes after the first import (22.11.2026) ===== */
/* AI rows: no bullets, label + description, arrow ball at the right (Next AI panel rows). */
.kp-ai-rows.wp-block-list > li { align-items: center; gap: 1.25rem; margin-bottom: 0; line-height: 1.4; }
.kp-ai-rows.wp-block-list > li::before { content: none; }
.kp-ai-rows.wp-block-list > li::after { content: ""; flex: none; margin-left: auto; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgb(255 255 255 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / 1rem no-repeat; transition: translate var(--kp-dur-base) var(--kp-ease-out), background-color var(--kp-dur-base) var(--kp-ease-out); }
.kp-ai-rows.wp-block-list > li:hover::after { background-color: var(--kp-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E"); }
.kp-ai-rows a { display: inline; }

/* ===== Forms (Contact Form 7 markup from kumpula-site/inc/forms.php; Next form v4) ===== */
*, *::before, *::after { box-sizing: border-box; }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
/* Mega feature card (non-case): image on top, title below on deep (same shape as the case feature tile). */
:root .kp-feature-card__title { padding: 1.5rem; font-size: var(--wp--preset--font-size--lead); line-height: 1.25; letter-spacing: -0.01em; }
.kp-feature-card__title a { color: var(--kp-white); text-decoration: none; }

/* ===== Parity fixes 22.11.2026 (templates vs. the Next model) ===== */
/* 404 secondary buttons */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--kp-ink); box-shadow: inset 0 0 0 1px rgb(18 25 29 / 0.3); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: color-mix(in srgb, var(--kp-ink) 5%, transparent); }
/* Highlighted text (Next model .prose mark): mint marker stroke behind the lower part of the line, text stays ink. */
mark:not([class*="has-"]) { background: linear-gradient(transparent 58%, rgb(143 201 200 / 0.75) 58%, rgb(143 201 200 / 0.75) 92%, transparent 92%); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* AI rows (Next model): service name on its own line, the description under it, the arrow centred on the right. */
.kp-ai-rows.wp-block-list > li { display: block; padding: 0.75rem 3.75rem 0.75rem 0.75rem; }
.kp-ai-rows.wp-block-list > li > a { display: block; }
.kp-ai-rows.wp-block-list > li > br { display: none; }
.kp-ai-rows.wp-block-list > li::after { position: absolute; right: 0.75rem; top: 50%; margin: -1.125rem 0 0; }
.kp-ai-rows.wp-block-list > li:hover::after { translate: 4px 0; }
.kp-field { grid-template-columns: minmax(0, 1fr); }
/* Long single-word titles (Hakukonemainonta) on phones: break at a syllable with a hyphen, never mid-word without one. */
h1, .kp-page-hero__title { hyphens: auto; overflow-wrap: break-word; }
/* Waves run edge to edge on any screen: a constrained layout (hero inner container, 85rem) would cap them at 1440 px. */
:root .kp-wave { max-width: none; margin: 0; }

/* ===== "Tässä artikkelissa" (Novus Victoria model, Kumpula look; 22.11.2026) =====
   Desktop: a rail beside the article; the section being read is the blue segment on the rail.
   Phones: a compact bar that sticks under the header, shows the current section and opens the list. */

/* Every card rises into view like in the Next model (.reveal), whatever block it comes from; not inside the header
   (mega menu, mobile menu). Reduced motion or no scroll-timeline support: cards are simply there. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		main :is(
			.kp-tile, .kp-post-card, .kp-article-card, .kp-hub-card, .kp-check-card, .kp-tag-card, .kp-faq__item, .kp-reason,
			.kp-step, .kp-service-card, .kp-related, .kp-contact, .kp-quote, .kp-bento > *, .kp-job-cards > *, .kp-arrow-rows > *,
			.kp-team > li, .wp-block-post-template > li:has(.kp-team__img)
		):not(.kp-header *, .kp-no-reveal) {
			animation: kp-reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
		}
	}
}

/* =====================================================================================================================
   Benchmark audit fixes (22.11.2026, artifact "Kumpula WordPress Benchmark Audit"). Benchmarks: Clicky, Cerebras, Cyera.
   ===================================================================================================================== */

/* Section rhythm: shorter gaps; every second home section on a tinted band (audit home 8). */
.kp-section { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.kp-section.is-band { background: var(--kp-mist); }
.kp-head-row { justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
:root .kp-head-row > * { margin: 0; }
.kp-measure { max-width: 46rem; }
:root .kp-measure > * { margin-block: 0; }
:root .kp-measure > * + * { margin-top: 1.25rem; }
.kp-measure.is-lead p { font-size: var(--wp--preset--font-size--lead); line-height: 1.5; }
:root h1, :root h2, :root h3, .kp-post-card__title { hyphenate-limit-chars: 10 4 4; }

/* Solution pages: one media row per channel, alternating sides (Cerebras rows) */
@media (min-width: 900px) { .kp-media-row.is-flip { grid-template-columns: 7fr 5fr; } }
.kp-checklist { display: grid; gap: 1.25rem; }
.kp-checkrow { padding: 0 !important; background: none !important; }

/* Case list filters (Clicky Work) */
.kp-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.kp-filter__chip { height: 2.75rem; padding: 0 1.125rem; border: 0; border-radius: 999px; background: var(--kp-white); color: var(--kp-ink); font: inherit; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(18 25 29 / 0.15); transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out); }
.kp-filter__chip span { margin-left: 0.25rem; font-variant-numeric: tabular-nums; }
.kp-filter__chip[aria-pressed="true"] { background: var(--kp-ink); color: var(--kp-white); box-shadow: none; }
.kp-filter__chip:hover:not([aria-pressed="true"]) { background: var(--kp-mist); }

/* Case page: centred reading column, wide results row, full-width quote, service cards (audit case 2–8) */
.kp-case-content { max-width: none; }
:root .kp-case-lead .kp-case-intro { max-width: 44rem; margin-inline: auto; }
.kp-case-result { display: inline-flex; align-items: baseline; gap: 0.75rem; margin-top: 1.5rem !important; padding: 0.75rem 1.25rem; border-radius: 1.25rem; background: rgb(255 255 255 / 0.16); backdrop-filter: blur(12px); color: var(--kp-white); }
.kp-case-result__num { font-size: var(--wp--preset--font-size--title); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kp-case-result__label { max-width: 16ch; line-height: 1.3; }
.kp-case-services ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; }
.kp-case-services a { justify-content: space-between; gap: 1rem; height: auto; min-height: 4rem; padding: 1rem 1rem 1rem 1.5rem; border-radius: var(--kp-r-card); box-shadow: none; }
.kp-case-services a::after { content: ""; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / 1rem no-repeat; }
.kp-case-services a:hover::after { background-color: var(--kp-white); }

/* Mobile: services and home cases as swipe rows (audit mobile 1–2; Clicky home) */
@media (max-width: 781px) {
	.kp-service-grid, .kp-tiles--bento { display: flex !important; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--kp-gutter)); padding-inline: var(--kp-gutter); scroll-padding-inline: var(--kp-gutter); scrollbar-width: none; }
	.kp-service-grid::-webkit-scrollbar, .kp-tiles--bento::-webkit-scrollbar { display: none; }
	.kp-service-grid > *, .kp-tiles--bento > .kp-tile, .kp-tiles--bento .kp-tiles__row > .kp-tile { flex: 0 0 82%; scroll-snap-align: start; margin: 0 !important; }
}

/* Mobile sticky offer after the hero (audit mobile 5) */
@keyframes kp-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kp-rise { from { transform: translateY(0); } to { transform: translateY(-14.475rem); } }
/* Slot machine reel (theme.js sets --kp-zig-y): the script moves the strip instead of the CSS loop. */
@media (min-width: 782px) {
	.kp-reel::before { animation: none !important; transform: translateY(var(--kp-zig-y, 0px)); transition: opacity var(--kp-dur-moderate) var(--kp-ease-out), filter 120ms linear; }
	.kp-reel.is-fast::before { filter: blur(0.8px); }
}
@keyframes kp-pop { 0% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }

/* Preview gate "Kirjaudu ulos" (mu-plugin inc/preview.php, 22.11.2026): always the last link of the footer's legal row,
   a button that reads like its neighbours. */
.kp-preview-logout form { margin: 0; }
.kp-preview-logout button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: inherit; cursor: pointer; }
.kp-preview-logout button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.kp-preview-logout button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 0.25rem; }

/* Mobile length (plan: home under 6,500 px on a phone; 7,412 px on 22.11.2026). Layout only, no content removed:
   tighter section rhythm, "Kaikki …" beside the heading, the AI film and team photo as wide crops, the closing panel
   right after the last section, a tighter footer. Desktop keeps its sizes. */
@media (max-width: 639px) {
	.kp-section { padding-block: 3rem; }
	:root .kp-section > * + * { margin-block-start: 2rem; }
	.kp-head-row { gap: 0.75rem 1rem; }
	.kp-ai-panel__media { min-height: 13.5rem; }
	.kp-ai-panel__media video, .kp-ai-panel__media img { object-position: 50% 82%; }
	.kp-ai-rows { margin-top: 1.75rem; }
	.kp-ai-rows li { padding-block: 0.5rem; }
	.kp-social { margin-top: 1rem !important; }
}
:root .kp-case-sub { margin: 0 0 1.5rem; max-width: 30ch; }
/* "Palvelut, joita käytimme" only when the case lists services (the heading stayed alone without them). */
:root .wp-block-group.kp-case-services:not(:has(ul)) { display: none; }
/* Result lines with their icon (case stories). */
:root .kp-emoji-list { padding: 0; list-style: none; display: grid; gap: 0.75rem; }
:root .kp-emoji-list li { display: flex; align-items: baseline; gap: 0.75rem; font-weight: 500; }
.kp-emoji-list .kp-emoji { flex: none; width: 1.5rem; text-align: center; }
:root .wp-block-list.kp-emoji-list > li { padding-left: 0; }
:root .wp-block-list.kp-emoji-list > li::before { content: none; } /* the gap above the LinkedIn ball (padding inside the ball moved its logo off centre) */

/* Package prices (AI Chatbot, user 22.11.2026): name, price, label–value rows; the shared note under the cards. */
.kp-price-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
:root .kp-price-grid > * { margin: 0; }
.kp-price-card { display: flex; flex-direction: column; }
:root .kp-price-card > * { margin-block: 0; }
:root .kp-price-card .kp-price__amount { margin-top: 0.5rem; font-size: var(--wp--preset--font-size--title); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
:root .kp-price__rows { margin: 1.5rem 0 0; padding: 0; list-style: none; }
:root .wp-block-list.kp-price__rows > li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.75rem 0 0; }
:root .wp-block-list.kp-price__rows > li + li { margin-top: 0.75rem; border-top: 1px solid rgb(18 25 29 / 0.12); }
:root .wp-block-list.kp-price__rows > li::before { content: none; }
:root .kp-price__note { margin-top: 1.5rem; margin-inline: 0 !important; max-width: 44rem; }

/* One hero for every template except the home page (user 22.11.2026): the same minimum height, breadcrumbs at the top,
   title and lead at the bottom, one wave under it. With a featured image (pages, articles, cases) the photo fills it;
   without one it is the light sand hero. */
:root { --kp-hero-h: 62svh; }
/* One space between the hero's wave and the content on every template (user 22.11.2026: "Kuka tietoja käsittelee" sat
   on the wave): the section rhythm, 80 px on desktop, 48 px on phones. */
:root { --kp-section-pad: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
@media (max-width: 639px) { :root { --kp-section-pad: 3rem; } }
:root .kp-text-page,
:root .kp-article,
:root main > .kp-light-hero + .kp-section.is-tight-top,
:root .kp-content > .kp-panel-wrap:first-child { padding-top: var(--kp-section-pad) !important; }
/* Every panel (blue closing panel, AI panel, quote and contact panels) on the content grid: the same left and right edge
   as the text and the cards (user 22.11.2026: the blue card was narrower than the rest). */
:root .kp-closing-wrap, :root .kp-panel-wrap { padding-left: var(--kp-gutter) !important; padding-right: var(--kp-gutter) !important; }
/* Price note: on the content's left edge, not the screen's. */
:root .kp-section > .kp-price__note { margin-left: max(0px, calc((100% - var(--kp-wide)) / 2)) !important; }

/* Panel after a mist band (home: service cards → AI panel): the dark card must not start at the colour edge of the band
   (user 23.11.2026). Same air as between sections; a panel after a paper section keeps that section's own bottom padding. */
:root .kp-section.is-band + .kp-panel-wrap { padding-top: var(--kp-section-pad) !important; }

/* ===== Header bar + mega menu v3 (user 23.11.2026 "toteuta"; artifact "Kumpula megavalikko", round 3: 15-site benchmark,
   NN/g, Baymard) =====
   Bar: transparent with white text over a photo hero at the top of the page; frosted white (88 %, saturate 1.8, blur 24,
   1 px line at 6 %) with ink text once scrolled and on pages with a light title band (Clicky, Apple); solid white while
   a mega menu is open, so bar and panel read as one surface (Vercel, Mercury, Clicky, Figma, Intercom).
   Panel (desktop): a white card 8 px under the bar. Link groups as columns with 1 px dividers, group labels 15 px / 600,
   links 20 px / 500 (links are the largest text, as on every benchmark site), hover = Paper row, current page = blue +
   dot. A side column with a quiet "Kaikki …" text link and one case card. No intro, no icons, no buttons, no repeat of
   the header CTA. Menus with three or more groups span the bar; smaller ones are cards under their trigger (theme.js). */

/* ===== Layout review 23.11.2026 (artifact "Kumpula layout review", user: "tehdään kaikki artifactin korjaukset") =====
   Reference: AWS re:Invent "Collaborate and contribute". Content column 75rem (1,200 px, theme.json wideSize) with one
   shared left edge, running text max 40rem (~68 characters), fixed section grids, one H1 size per template, footer on
   the same grid, breadcrumbs 14 px above the H1, a 2-colour top wave on title bands, article TOC in a right rail. */

/*
  ===== Section intro (consolidated 25.11.2026 from 7 rules; one place for this component) ===== 
 */

/*
 Section intro with points (Next Intro + TagCard)
 */

.kp-intro { display: grid; gap: 2.5rem;
}

@media (min-width: 900px) {
	.kp-intro { grid-template-columns: 8fr 4fr;
	}
}

.kp-intro:not(:has(.kp-tag-card)) { display: block;
}

.kp-intro__text { max-width: 52rem;
}

/*
 Intro: text 7/12, tag card 4/12, tops aligned.
 */

@media (min-width: 1024px) {
	:root .kp-intro { display: grid !important; grid-template-columns: 7fr 4fr; gap: 5rem; align-items: start;
	}
	:root .kp-intro > .kp-intro__text { width: auto; max-width: none; margin: 0 !important;
	}
	.kp-intro > .kp-tag-card { width: auto; margin: 0;
	}
}

/*
  ===== Two-column split (consolidated 25.11.2026 from 10 rules; one place for this component) ===== 
 */

/*
 Two-column section: heading at the left (5/12), content at the right (7/12)
 */

.kp-split { display: grid; gap: 2.5rem 2rem;
}

:root .kp-split > * { margin: 0;
}

/*
 Two-column sections: the heading stays in place while the content beside it scrolls past (Next model md:sticky).
 */

@media (min-width: 900px) {
	.kp-split { grid-template-columns: 5fr 7fr; align-items: start;
	}
	.kp-split__head { position: sticky; top: calc(7.5rem + var(--wp-admin--admin-bar--height, 0px));
	}
	.kp-media-row.is-flip > .kp-split__head { order: 2;
	}
}

/*
 Split: heading 5/12 (sticky), body 7/12.
 */

@media (min-width: 1024px) {
	:root .kp-split { display: grid !important; grid-template-columns: 5fr 7fr; gap: 4rem;
	}
	:root .kp-split > :is(.kp-split__head, .kp-split__body) { width: auto; max-width: none; margin: 0 !important;
	}
	:root .kp-split__head > h2 { position: sticky; top: 7rem;
	}/*
 A head with a lead under the heading (solution pages: "Kestävä pohja orgaaniselle kasvulle …") sticks as one
	   block (the .kp-split__head rule): a sticky h2 inside it stayed put while its lead scrolled up under it (user
	   24.11.2026).
 */
	:root .kp-split__head:has(> :not(h2)) > h2 { position: static;
	}
}
/* Post lists with fewer than three posts: two wider columns, no empty third. */
@media (min-width: 782px) { .wp-block-post-template.is-layout-grid:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Running text on pages and cases (constrained post content, 44rem) starts on the grid's left edge, not centred. */
.wp-block-post-content.is-layout-constrained > :not(.alignfull):not(.alignwide) { margin-left: max(0px, calc((100% - var(--kp-wide)) / 2)); margin-right: auto; }
/* Narrow content inside sections (case story, measure groups, case services) also hangs from the grid's left edge. */
:root .kp-section.is-layout-constrained > :not(.alignfull):not(.alignwide),
:root .kp-case-services.is-layout-constrained > :not(.alignfull):not(.alignwide) { margin-left: max(0px, calc((100% - var(--kp-wide)) / 2)) !important; margin-right: auto !important; }
:root .kp-section .kp-measure, :root .kp-case-lead .kp-case-intro { margin-left: 0 !important; }
/* Small faces after the home intro heading (inc/heading-faces.php, user 23.11.2026): an overlapping row of round photos
   with white rings, sitting on the text line, as in the earlier version. */
.kp-inline-faces { display: inline-flex; vertical-align: -0.12em; margin-left: 0.15em; white-space: nowrap; }
.kp-inline-faces img { width: 0.95em; height: 0.95em; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 3px var(--kp-paper); background: var(--kp-mist); }
.kp-inline-faces img + img { margin-left: -0.28em; }
/* Article category chips: the same hover and focus as the case filter chips (user 23.11.2026: no hover on /artikkelit/). */
.kp-cat-chips li a { transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out); }
:root .kp-cat-chips li:not(.current-cat) a:hover { background: var(--kp-mist); }
:root .kp-cat-chips li a:focus-visible { outline: 2px solid var(--kp-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { :root .kp-cat-chips li a { transition: none; } }

/* Check marks, style A (user 23.11.2026, artifact "Kumpula megavalikko"; Stripe model): a mint-tinted circle with a deep
   check everywhere a check appears – check lists, check cards and reason cards. The blue square read as a ticked form
   checkbox. */
:root { --kp-check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A38' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
/*
  ===== Closing panel (consolidated 25.11.2026 from 44 rules; one place for this component) ===== 
 */
.kp-panel { position: relative;
}
/*
 Closing call to action (part)
 */
/*
 More room around the footer waves and a smaller closing panel (user 22.11.2026).
 */
.kp-closing-wrap { padding: var(--wp--preset--spacing--60) clamp(0.5rem, 1.5vw, 1rem) calc(var(--kp-wave-h) + 2rem); padding-bottom: calc(var(--kp-wave-h) + var(--wp--preset--spacing--60));
}
/*
 Closing panel: the contact person in a round frame.
 */
.kp-panel__photo img { border-radius: 999px; object-fit: cover; object-position: top; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25); width: 8rem; height: 8rem;
}
@media (max-width: 781px) {
	.kp-panel__photo img { width: 5rem; height: 5rem;
	}
}
.kp-panel .kp-panel__photo img { width: 3.5rem; height: 3.5rem; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25);
}
:root .kp-panel > .kp-panel__text, :root .kp-panel > .kp-panel__media { margin: 0;
}
.kp-panel__text { padding: var(--wp--preset--spacing--50) clamp(1.5rem, 4vw, 3.5rem);
}
.kp-panel__text > * { margin-block: 0;
}
.kp-panel__text > * + * { margin-top: 1rem;
}
.kp-panel__text > .wp-block-buttons { margin-top: 1.75rem;
}
.kp-panel__media { position: relative;
}
.kp-panel .kp-panel__media .kp-panel__photo { margin: 0;
}
.kp-panel .kp-panel__media .kp-panel__photo img { display: block; box-shadow: none;
}
.kp-panel__name { margin: 0; line-height: 1.35;
}
@media (min-width: 782px) {
	.kp-panel__text { padding-left: 14rem; align-self: center;
	}
	.kp-panel .kp-panel__media .kp-panel__photo img { object-fit: cover;
	}
	.kp-panel__name { left: 1.25rem; bottom: 1.25rem; border-radius: 1rem; color: var(--kp-white);
	}
}
@media (max-width: 781px) {
	.kp-panel__text { padding-top: 7.5rem;
	}
	.kp-panel__media { display: flex; align-items: center; gap: 0.875rem; padding: 0 clamp(1.5rem, 4vw, 3.5rem) 1.75rem;
	}
	.kp-panel .kp-panel__media .kp-panel__photo img { width: 3.5rem; height: 3.5rem; border-radius: 999px; object-fit: cover; object-position: top; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25);
	}
}
@media (min-width: 782px) {
	:root .kp-panel .kp-panel__media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center;
	}
	.kp-panel .kp-panel__media .kp-panel__photo { inset: 0; position: static;
	}
	.kp-panel .kp-panel__media .kp-panel__photo img { width: 8rem; height: 8rem; border-radius: 999px; object-position: top; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25);
	}
	.kp-panel__name { position: static; padding: 0; background: none; backdrop-filter: none;
	}
	.kp-panel:has(.wp-block-button__link:is(:hover, :focus-visible))::before { animation-play-state: running; opacity: 1;
	}
}
@media (max-width: 639px) {
	.kp-closing-wrap { padding-top: 0.5rem;
	}
	.kp-panel__text { padding-top: 6.25rem;
	}
}
:root .kp-closing-wrap > .kp-closing-cta, :root .kp-closing-wrap .kp-closing-cta { padding-left: 0 !important; padding-right: 0 !important;
}
/*
 Closing panel: Riku's photo belongs to "Varaa kasvukatsaus" (theme.js): pointer, a slow photo zoom inside its circle /
   frame (site hover language: scale 1.04, 400–600 ms) and the button's hover look while the photo is hovered.
 */
.kp-panel__media.is-linked { cursor: pointer;
}
/*
 The circle is the figure (ring as its own shadow, so nothing is cut), the photo zooms inside it (user 23.11.2026: the
   ring was clipped and the hover did not show).
 */
@media (min-width: 782px) {
	.kp-panel .kp-panel__media.is-linked .kp-panel__photo { width: 8rem; height: 8rem; margin-inline: auto; border-radius: 999px; overflow: clip; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25); transition: box-shadow var(--kp-dur-base) var(--kp-ease-out);
	}
	.kp-panel .kp-panel__media.is-linked .kp-panel__photo img { width: 100%; height: 100%; box-shadow: none; transition: scale 500ms var(--kp-ease-out);
	}
}
@media (hover: hover) and (min-width: 782px) {
	:root .kp-panel .kp-panel__media.is-linked:hover .kp-panel__photo img { scale: 1.08;
	}
	:root .kp-panel .kp-panel__media.is-linked:hover .kp-panel__photo { box-shadow: 0 0 0 4px var(--kp-white);
	}
}
.kp-panel.is-hot .wp-block-button.is-style-light .wp-block-button__link { background: var(--kp-mist); color: var(--kp-ink);
}
@media (prefers-reduced-motion: reduce) {
	:root .kp-panel .kp-panel__media.is-linked .kp-panel__photo img { transition: none;
	}
	:root .kp-panel .kp-panel__media.is-linked:hover .kp-panel__photo img { scale: none;
	}
}
.kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) :is(h2, h3, p, li, a:not(.wp-element-button)) { color: var(--kp-white); }
main :is(h1, h2):has(strong) { font-weight: 400; }
main :is(h1, h2) strong { font-weight: 650; }

/* Accent panel on more pages (user 25.11.2026 "toteuta", artifact "Kumpula korostuspaneelin laajennus"): any section
   with the class kp-accent (migration 20: AI Chatbot benefits, AI Roadmap process, Markkinointistrategia, Hakusanamainonta
   benefits, Rekrytointi cards) looks like the reasons panel; on case pages the figures row gets it as a narrow inset
   panel without the zigzag (it would sit on the numbers). */
.kp-content > .kp-section.kp-accent, .kp-stats-row.kp-accent {
	position: relative; isolation: isolate; overflow: clip; background: var(--kp-deep); color: var(--kp-white);
}
.kp-content > .kp-section.kp-accent {
	border-radius: 2rem; margin-inline: clamp(0.75rem, 2vw, 1.5rem); padding-block: clamp(3.5rem, 7vw, 6rem); margin-block: clamp(1rem, 3vw, 2rem);
}
.kp-content > .kp-section.kp-accent::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none; right: -4rem; top: -3rem; width: 22rem; height: 22rem;
	background: url("../brand/zigzag-mint.svg") center / contain no-repeat; opacity: 0.16; rotate: -8deg;
}
:is(.kp-content > .kp-section.kp-accent, .kp-stats-row.kp-accent) :is(h2, h3, h4, p, li, a:not(.wp-element-button), .kp-stat-block__value, .kp-stat-block__label) { color: var(--kp-white); }
.kp-content > .kp-section.kp-accent h2::after {
	content: ""; display: inline-block; width: 1.05em; height: 0.62em; margin-left: 0.25em; vertical-align: 0;
	background: url("../brand/zigzag-mint.svg") left center / contain no-repeat;
}
.kp-content > .kp-section.kp-accent .wp-block-list > li::before { background: var(--kp-mint); }
@media (max-width: 639px) {
	.kp-content > .kp-section.kp-accent { margin-inline: calc(50% - 50vw); border-radius: 0; padding-block: 3.5rem; }
	.kp-content > .kp-section.kp-accent::before { width: 13rem; height: 13rem; right: -3rem; top: -2rem; }
}
:root:root:root .kp-content :is(.kp-section.kp-accent, .kp-section:has(.kp-reason):not(:has(.kp-media-row))) :is(.kp-reasons:not(.is-numbered) > .kp-reason, .kp-check-card)::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") !important;
}

/* ===== Phone menu B: light sheet (user 25.11.2026 "vaalea, ei sitä kalevalan kuvaa valikkoon", artifact "Puhelimen
   valikko"). Reference Clicky: paper sheet, every section closed on open (view.js), main items 28/500 as 60 px rows with
   a 1 px rule, groups 15/600 without underline (as the desktop mega), links 18 px with 44 px targets on one left edge,
   current page ink 600 + blue dot (blue text on paper is 4.1:1, below AA), no case card, "Ota yhteyttä" once in blue. */
/*
  ===== Reasons, steps, checks and numbers (consolidated 25.11.2026 from 95 rules; one place for this component) ===== 
 */
/*
 Checks: blue rounded check badge (Next CheckBadge / CheckList).
 */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0;
}
.wp-block-list.is-style-checks > li { position: relative; margin-bottom: 0.75em; min-height: 1.5rem;
}
.wp-block-list.is-style-checks > li::before {
	content: ""; position: absolute; left: 0;
}
/*
 Feature grid / reason list (FeatureGrid, ReasonList): check badge cards, all text visible
 */
.kp-feature-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.kp-feature-grid > * { margin: 0 !important;
}
.kp-check-card::before, .kp-reason::before { content: ""; display: block; width: 2rem; height: 2rem; border-radius: 0.625rem; background: var(--kp-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
:root .kp-check-card > * { margin-block: 0;
}
:root .kp-check-card > h3 { margin-top: 1.25rem;
}
:root .kp-check-card > p { margin-top: 0.5rem;
}
.kp-reasons { display: grid; gap: 0.75rem;
}
.kp-reason { display: grid !important;
}
.kp-reason::before { grid-row: span 3;
}
:root .kp-reason > * { grid-column: 2; margin-block: 0;
}
:root .kp-reason > p { margin-top: 0.5rem;
}
/*
 Process steps (ProcessSteps): equal white cards, large number ball, connector line
 */
.kp-steps { display: grid; gap: 1rem; counter-reset: kp-proc; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.kp-steps > * { position: relative; margin: 0 !important; counter-increment: kp-proc; padding: 2rem !important; border-radius: 2rem; background: var(--kp-white);
}
.kp-steps > *::before { content: counter(kp-proc); display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 999px; font-size: var(--wp--preset--font-size--section); font-weight: 500; line-height: 1;
}
@media (min-width: 1024px) {
	.kp-steps > :not(:last-child)::after { content: ""; position: absolute; left: 6rem; right: -1rem; top: 3.9rem; height: 2px; background: rgb(52 121 190 / 0.25);
	}
}
:root .kp-steps > * > * { margin-block: 0;
}
:root .kp-steps > * > h3 { margin-top: 1.75rem;
}
:root .kp-steps > * > p { margin-top: 0.75rem;
}
/*
 Process: 6+ steps in three columns (Next COLS map), 4 in two/four.
 */
@media (min-width: 900px) {
	.kp-steps:has(> :nth-child(6)) { grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1280px) {
	.kp-steps:has(> :nth-child(5)):not(:has(> :nth-child(6))) { grid-template-columns: repeat(5, 1fr);
	}
}
@media (min-width: 1024px) {
	.kp-feature-grid.is-four { grid-template-columns: repeat(4, 1fr);
	}
}
/*
 Steps whose texts differ a lot: full-width rows (number · title · text), no half-empty cards (audit service 6, GEO 3)
 */
.kp-steps.is-list { grid-template-columns: 1fr !important; gap: 0.75rem;
}
@media (min-width: 900px) {
	.kp-steps.is-list > * { display: grid !important; grid-template-columns: 4rem minmax(0, 17rem) minmax(0, 1fr); column-gap: 2rem; align-items: start;
	}
	.kp-steps.is-list > *::before { grid-column: 1; grid-row: 1 / span 20;
	}
	:root .kp-steps.is-list > * > h3 { grid-column: 2; grid-row: 1 / span 20; margin-top: 0.75rem;
	}
	.kp-steps.is-list > * > :not(h3) { grid-column: 3;
	}
	.kp-steps.is-list > * > :not(h3):first-of-type, .kp-steps.is-list > * > h3 + * { margin-top: 0.75rem;
	}
}
.kp-steps.is-list > *::after { content: none !important;
}
/*
 Full rows only: three items → three columns (audit solution 2)
 */
@media (min-width: 782px) {
	.kp-feature-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr);
	}
}
.kp-step__label { margin: 0 0 0.25rem; font-size: var(--wp--preset--font-size--chip); font-weight: 600;
}
/*
 Steps as a list: number · 18rem title · text.
 */
@media (min-width: 1024px) {
	:root .kp-steps.is-list > .kp-step { grid-template-columns: 3.5rem 18rem minmax(0, 1fr); column-gap: 2rem;
	}/*
 Steps as cards (GEO has five): 3 + 2 grid instead of five narrow columns, no connector line.
 */
	:root .kp-steps:not(.is-list) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
	}
	:root .kp-steps:not(.is-list) > * { width: auto; max-width: none; margin: 0 !important;
	}
	:root .kp-steps:not(.is-list) > *::after { content: none !important;
	}/*
 Four steps (Hakusanamainonta): 2 × 2, from 1280 px one row of four; in the three-column grid the fourth was alone
	   (QA 24.11.2026).
 */
	:root .kp-steps:not(.is-list):has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.wp-block-list.is-style-checks > li { padding-left: 2.125rem;
}
.wp-block-list.is-style-checks > li::before { top: 0.12em;
}
:root :is(.kp-check-card, .kp-reason)::before { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgb(143 201 200 / 0.38) var(--kp-check-icon) center / 1.125rem no-repeat;
}
/*
 Step numbers in the same marker family as the check marks (user 23.11.2026, Somemainonta: blue numbers next to mint
   checks): mint-tinted circle, deep number. Blue stays for links, the CTA and the current page.
 */
:root .kp-steps > *::before { background: rgb(143 201 200 / 0.38); color: var(--kp-deep);
}
@media (min-width: 1280px) {
	:root .kp-steps:not(.is-list):has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
/*
 Design round 25.11.2026 (artifact "Kumpula suunnittelukierros", user approved 2-4, no image band; STYLE-TRENDS §2al):
   one Deep accent panel per page = the "Miksi Kumpula" reasons section (sections with .kp-reason cards; the FAQ uses .kp-reasons too but .kp-faq__item cards and stays on paper), fine grain + large mint zigzag, zigzag glyph after
   its heading, weight contrast (<strong> in a heading = 650, rest 400). Phones: the panel runs edge to edge and its cards
   lose their own surface, so no nested edges eat the text width (user: "monet reunat korostuvat").
 */
:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) {
	position: relative; isolation: isolate; overflow: clip;
	background: var(--kp-deep); color: var(--kp-white); border-radius: 2rem;
	margin-inline: clamp(0.75rem, 2vw, 1.5rem); padding-block: clamp(3.5rem, 7vw, 6rem);
	margin-block: clamp(1rem, 3vw, 2rem);
}
:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row))::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row))::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none; right: -4rem; top: -3rem; width: 22rem; height: 22rem;
	background: url("../brand/zigzag-mint.svg") center / contain no-repeat; opacity: 0.16; rotate: -8deg;
}
:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reason { background: rgb(255 255 255 / 0.06); box-shadow: none; border: 0;
}
:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reason::before { background-color: var(--kp-mint);
}
.kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) h2::after {
	content: ""; display: inline-block; width: 1.05em; height: 0.62em; margin-left: 0.25em; vertical-align: 0;
	background: url("../brand/zigzag-mint.svg") left center / contain no-repeat;
}
@media (max-width: 639px) {
	:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) { margin-inline: calc(50% - 50vw); border-radius: 0; padding-block: 3.5rem;
	}
	:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reasons { gap: 2.25rem;
	}
	:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reason { background: none; padding: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr);
	}
	:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reason::before { grid-row: auto; margin-bottom: 0.75rem;
	}
	:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reason > * { grid-column: 1;
	}
	:root .kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row))::before { width: 13rem; height: 13rem; right: -3rem; top: -2rem;
	}
}
/*
 Lists inside reason cards (user 25.11.2026, Hakukonemainonta "Tulokset puhuvat puolestaan": margins and bullets not
   elegant): same gap under the title as a paragraph, flush with the title, tighter rows, mint dots on the Deep panel.
 */
.kp-reason > .wp-block-list { margin-top: 0.75rem; margin-bottom: 0;
}
.kp-reason > .wp-block-list > li { padding-left: 1.25rem; margin-bottom: 0.5rem;
}
.kp-reason > .wp-block-list > li:last-child { margin-bottom: 0;
}
.kp-reason > .wp-block-list:not(.is-style-checks, .is-style-numbered, ol) > li::before { top: 0.62em; width: 0.45rem; height: 0.45rem;
}
.kp-content > .kp-section:has(.kp-reason):not(:has(.kp-media-row)) .kp-reason > .wp-block-list > li::before { background: var(--kp-mint);
}
:root .kp-content > .kp-section.kp-accent :is(.is-style-card, .kp-check-card, .kp-step) { background: rgb(255 255 255 / 0.06); box-shadow: none; border-color: transparent;
}
:root .kp-content > .kp-section.kp-accent :is(.kp-check-card, .kp-reason)::before { background-color: var(--kp-mint);
}
@media (max-width: 639px) {
	:root .kp-content > .kp-section.kp-accent :is(.is-style-card, .kp-check-card, .kp-step) { background: none; padding-inline: 0;
	}
}
/*
 Reason cards (user 25.11.2026, Hakukonemainonta: "teksti liian lähellä check-merkkiä"): the check is 2.5rem but its
   grid column was 2rem, so it ran 0.5rem into the gap. Column = check size, gap 1.25rem. Phones stack the check above
   the title inside the accent panel (rule above).
 */
:root .kp-reason { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1.25rem;
}
/*
 Step cards with their own label (AI Roadmap "Vaihe 1", original copy): the automatic number ball repeated it, so the
   ball goes and the label takes its place at the ball's number size (user 25.11.2026 chose B, artifact "AI Roadmap
   vaihemerkintä"). Text stays ink/white: white on the Deep panel, ink on paper.
 */
.kp-steps > .kp-step:has(> .kp-step__label)::before { display: none;
}
.kp-step:has(> .kp-step__label) > .kp-step__label { margin: 0 0 0.75rem; font-size: var(--wp--preset--font-size--section); font-weight: 500; line-height: 1.1;
}
@media (max-width: 639px) {
	:root .kp-content > .kp-section.kp-accent :is(.kp-steps > .kp-step, .kp-feature-grid > *, .wp-block-columns > .wp-block-column) { padding-inline: 0 !important; background: none;
	}
}
/*
 Numbered reasons (user 25.11.2026, artifact "Numeroluettelon tyyli", A): .kp-reasons.is-numbered draws a large
   number in place of the check; its top lines up with the title, it spans the title's first two lines; tabular figures
   so 1 and 5 take the same room; text colour inherits (white on the panel, ink on paper). Hakukoneoptimointi (migr. 21).
 */
:root .kp-reasons.is-numbered { counter-reset: kp-reason;
}
:root:root .kp-content .kp-reasons.is-numbered > .kp-reason { counter-increment: kp-reason; grid-template-columns: 3.75rem minmax(0, 1fr); column-gap: 1.5rem; align-items: start;
}
:root:root .kp-content .kp-reasons.is-numbered > .kp-reason::before {
	content: counter(kp-reason); display: block; width: auto; height: auto; border-radius: 0; background: none; color: inherit;
	font-size: 4.25rem; font-weight: 500; line-height: 0.74; letter-spacing: -0.05em; font-variant-numeric: tabular-nums lining-nums;
	grid-column: 1; grid-row: 1 / span 3; align-self: start; margin: 0.18rem 0 0;
}
:root:root .kp-content .kp-reasons.is-numbered > .kp-reason > * { grid-column: 2;
}
:root .kp-reasons.is-numbered > .kp-reason > h3 { text-wrap: pretty;
}
@media (max-width: 639px) {
	:root:root .kp-content .kp-reasons.is-numbered > .kp-reason { grid-template-columns: 2.9rem minmax(0, 1fr); column-gap: 1rem;
	}
	:root:root .kp-content .kp-reasons.is-numbered > .kp-reason > * { grid-column: 2;
	}
}
:root:root .kp-content > :is(.kp-section:has(.kp-reason):not(:has(.kp-media-row)), .kp-section.kp-accent) .kp-reasons.is-numbered > .kp-reason::before { color: var(--kp-white);
}
/*
 Number cap top = title cap top (measured 25.11.2026: the number sat 2.5-3.5 px higher; user: "pitää olla tekstin yläreunassa").
 */
:root:root .kp-content .kp-reasons.is-numbered > .kp-reason::before { margin-top: 0.355rem;
}
@media (max-width: 639px) {
	:root:root .kp-content .kp-reasons.is-numbered > .kp-reason::before { font-size: 3.5rem; margin: 0.15rem 0 0; grid-row: 1 / span 3; margin-top: 0.37rem;
	}
}
/*
 Process steps use the same large number as the numbered reasons (user 25.11.2026: "molemmat pitäisi toimia samalla
   tavalla", artifact "Vaiheiden numerot"): no ball, 68/56 px, weight 500, tabular, cap top = title cap top. Cards: number
   above the title; list layout (.is-list): number in its own column level with the title. Steps with their own
   "Vaihe N" label keep the label instead (AI Roadmap).
 */
:root:root .kp-content .kp-steps > .kp-step:not(:has(> .kp-step__label))::before {
	display: block; width: auto; height: auto; border-radius: 0; background: none; color: inherit;
	font-size: 4.25rem; font-weight: 500; line-height: 0.74; letter-spacing: -0.05em; font-variant-numeric: tabular-nums lining-nums;
	margin: 0.355rem 0 1.25rem;
}
/*
 List layout: the title column starts 11 px lower (measured), so the number follows it. Phones: number beside the
   title like the numbered reasons (user: both work the same way).
 */
:root:root .kp-content .kp-steps.is-list > .kp-step:not(:has(> .kp-step__label))::before { margin-bottom: 0; margin-top: 1.04rem;
}
@media (max-width: 639px) {
	:root:root .kp-content .kp-steps > .kp-step:not(:has(> .kp-step__label)) { display: grid !important; grid-template-columns: 2.9rem minmax(0, 1fr); column-gap: 1rem; align-items: start;
	}
	:root:root .kp-content .kp-steps > .kp-step:not(:has(> .kp-step__label))::before { font-size: 3.5rem; grid-column: 1; grid-row: 1 / span 4; margin: 0.37rem 0 0;
	}
	:root:root .kp-content .kp-steps > .kp-step:not(:has(> .kp-step__label)) > * { grid-column: 2;
	}
	:root:root .kp-content .kp-steps > .kp-step:not(:has(> .kp-step__label)) > :first-child { margin-top: 0 !important;
	}
	:root:root .kp-content .kp-steps.is-list > .kp-step:not(:has(> .kp-step__label))::before { margin-top: 0.37rem;
	}
}
/*
 Big numbers get a mint offset echo, like a print misregistration (user 25.11.2026 chose A, artifact "Ison numeron
   tyylitys"): numbered reasons and process steps alike; the numeral itself stays ink/white (text colour rule).
 */
/*
 Checks and small numbers join the big-number family (user 25.11.2026 "vaihda", artifact "Check-merkit samaan
   tyyliin"): no ball; the check itself (ink on paper, white on Deep panels) with a light mint offset; the contact
   panel's "Näin edetään" numbers as a smaller numeral with the same mint echo. Numbered reasons keep their numbers.
 */
:root:root:root .kp-content :is(.kp-reasons:not(.is-numbered) > .kp-reason, .kp-check-card, .kp-checklist > *)::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 100% no-repeat !important;
	width: 2.25rem !important; height: 2.25rem !important; border-radius: 0 !important;
}
/*
 Echo a touch smaller (user 25.11.2026: "pikkaisen pienemmäksi efekti").
 */
:root:root .kp-content :is(.kp-reasons.is-numbered > .kp-reason, .kp-steps > .kp-step:not(:has(> .kp-step__label)))::before { text-shadow: 0.06em 0.045em 0 var(--kp-mint);
}
/*
  ===== Contact block and forms (consolidated 25.11.2026 from 91 rules; one place for this component) ===== 
 */
.kp-form :is(input, textarea, select):focus-visible { outline: none;
}
/*
 Contact block (Next ContactBlock)
 */
.kp-contact { display: grid; gap: clamp(2.5rem, 2rem + 1vw, 3rem); border-radius: var(--kp-r-panel); background: var(--kp-mist); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); scroll-margin-top: 6rem;
}
.kp-contact__title { margin: 0; max-width: 20ch;
}
.kp-contact__intro { margin-top: 1.5rem; max-width: 44ch;
}
.kp-contact__steps { margin-top: 2.5rem;
}
.kp-contact__steps h3 { margin: 0 0 1rem;
}
.kp-contact__form { border-radius: var(--kp-r-card); background: rgb(255 255 255 / 0.7);
}
.kp-person { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.5rem;
}
.kp-person__img { width: 5rem; height: 5rem; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 4px var(--kp-white);
}
.kp-person p { margin: 0;
}
.kp-person__name { font-weight: 500;
}
.kp-form { display: grid; gap: 1rem;
}
.kp-form fieldset.kp-chips { margin: 0; padding: 0; border: 0;
}
.kp-form .kp-chips legend { margin-bottom: 0.75rem; font-weight: 500;
}
.kp-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.kp-form .wpcf7-list-item { margin: 0;
}
.kp-form .wpcf7-list-item label { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1rem; border-radius: 999px; background: var(--kp-white); box-shadow: inset 0 0 0 1px rgb(18 25 29 / 0.2); font-weight: 500; cursor: pointer; transition: box-shadow var(--kp-dur-base) var(--kp-ease-out), background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out);
}
.kp-form .wpcf7-list-item label:hover { box-shadow: inset 0 0 0 1px rgb(18 25 29 / 0.45);
}
.kp-form .wpcf7-list-item input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer;
}
.kp-form .wpcf7-list-item label:has(input:checked) { background: var(--kp-ink); color: var(--kp-white); box-shadow: none;
}
.kp-form .wpcf7-list-item label:has(input:checked)::before { content: ""; width: 1rem; height: 1rem; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kp-form .wpcf7-list-item label:has(input:focus-visible) { outline: 2px solid var(--kp-blue); outline-offset: 3px;
}
.kp-form .kp-fields { display: grid; gap: 1rem;
}
@media (min-width: 640px) {
	.kp-form .kp-fields { grid-template-columns: 1fr 1fr;
	}
}
.kp-form .kp-field { display: grid; gap: 0.5rem; font-weight: 500;
}
.kp-form .kp-field .wpcf7-form-control-wrap { font-weight: 400;
}
.kp-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea) { width: 100%; height: 3.5rem; padding: 0 1rem; border: 0; border-radius: 1rem; background: var(--kp-white); color: var(--kp-ink); font: inherit; box-shadow: inset 0 0 0 1px rgb(18 25 29 / 0.25);
}
.kp-form textarea { height: auto; min-height: 8rem; padding-block: 0.875rem; resize: vertical;
}
.kp-form :is(input, textarea):focus { outline: none; box-shadow: inset 0 0 0 2px var(--kp-blue);
}
.kp-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--kp-error);
}
.kp-form input[type="file"] { padding: 0.75rem 0; font: inherit;
}
.kp-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.5rem;
}
.kp-form-actions p { margin: 0;
}
.kp-form .wpcf7-submit { height: auto; padding: 0.95rem 1.5rem; border: 0; border-radius: 999px; background: var(--kp-blue); color: var(--kp-white); font: inherit; font-weight: 500; line-height: 1; cursor: pointer;
}
.kp-form .wpcf7-submit:hover { background: var(--wp--preset--color--blue-hover);
}
.kp-form .wpcf7-not-valid-tip { display: block; margin-top: 0.375rem; color: var(--kp-error); font-weight: 500;
}
.kp-form .wpcf7-response-output { margin: 0; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--kp-white); font-weight: 500;
}
.kp-form .wpcf7-response-output:empty { display: none;
}
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.wpcf7 .hidden-fields-container { margin: 0; padding: 0; border: 0;
}
.kp-form .kp-field, .kp-form .kp-fields > * { min-width: 0;
}
.kp-form input[type="file"], .wpcf7-file { max-width: 100%; min-width: 0;
}
.kp-form .wpcf7-form-control-wrap { display: block; max-width: 100%;
}
.kp-field .wpcf7-form-control-wrap { min-width: 0;
}
/*
 File field (application form): the browser's button as the site's outline pill.
 */
.wpcf7-file { font: inherit; font-size: var(--wp--preset--font-size--body);
}
.wpcf7-file::file-selector-button { margin-right: 0.75rem; padding: 0.75rem 1.25rem; border: 1.5px solid var(--kp-ink); border-radius: 999px; background: transparent; color: var(--kp-ink); font: inherit; font-weight: 500; cursor: pointer; transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out);
}
.wpcf7-file::file-selector-button:hover { background: var(--kp-ink); color: var(--kp-white);
}
/*
 Contact block: whichever column is shorter (text or form) stays in place beside the longer one.
 */
@media (min-width: 900px) {
	.kp-contact { align-items: start;
	}
	.kp-contact__text, .kp-contact__form { position: sticky; top: calc(7.5rem + var(--wp-admin--admin-bar--height, 0px));
	}
}
/*
 Team: LinkedIn per person
 */
.kp-person-li { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-top: 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--kp-ink) 7%, transparent); color: var(--kp-ink);
}
.kp-person-li svg { width: 1rem; height: 1rem;
}
.kp-person-li:hover { background: var(--kp-ink); color: var(--kp-white);
}
@media (min-width: 600px) {
	.kp-strip { grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.kp-strip { grid-template-columns: repeat(4, 1fr);
	}
}
.kp-strip__item { padding: 1.25rem 1.5rem; border-radius: var(--kp-r-card); background: var(--kp-white);
}
.kp-strip__item > * { margin: 0;
}
.kp-strip__label { font-size: var(--wp--preset--font-size--chip); font-weight: 600;
}
.kp-strip__value { margin-top: 0.25rem; font-size: var(--wp--preset--font-size--lead); font-weight: 500;
}
.kp-strip__value a { text-decoration: none;
}
.kp-strip__value a:hover { text-decoration: underline;
}
.kp-section.kp-strip-wrap { padding-bottom: 0;
}
/*
 Contact page: the strip sits in the panel wrapper (same edges as the form panel), a card gap above the panel.
 */
.kp-panel-wrap.kp-strip-wrap { padding-top: var(--wp--preset--spacing--50); padding-bottom: 0.75rem;
}
/*
 Strip cards: no flow-layout top margin on cards 2–4 (they started lower than the first); equal heights.
 */
.kp-strip > .kp-strip__item { margin: 0;
}
/*
 Contact strip and job facts
 */
.kp-strip { display: grid; gap: 0.75rem; align-items: stretch;
}
/*
 Form sent (user 22.11.2026): the fields give way to a confirmation card with a mint check that pops in; in
   "Näin edetään" the first step is ticked and the next one lifts. Error states get a clear "!" ball.
 */
.kp-form.sent > :not(.wpcf7-response-output):not(.hidden-fields-container):not(.screen-reader-response) { display: none;
}
.kp-form.sent .wpcf7-response-output { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); border-radius: var(--kp-r-card); background: var(--kp-white); font-size: var(--wp--preset--font-size--section); line-height: 1.25; letter-spacing: -0.015em;
}
.kp-form.sent .wpcf7-response-output::before { content: ""; width: 4rem; height: 4rem; border-radius: 999px; background: var(--kp-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A38' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1.75rem no-repeat; animation: kp-pop 0.6s var(--kp-ease-emphasized) both;
}
.kp-form:is(.invalid, .failed, .spam, .unaccepted, .aborted) .wpcf7-response-output { display: flex; align-items: center; gap: 0.875rem;
}
.kp-form:is(.invalid, .failed, .spam, .unaccepted, .aborted) .wpcf7-response-output::before { content: "!"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--kp-error); color: var(--kp-white); font-weight: 700;
}
.kp-contact:has(.kp-form.sent) .kp-contact__steps li:first-child::before { content: ""; background: var(--kp-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A38' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.9rem no-repeat; animation: kp-pop 0.6s var(--kp-ease-emphasized) 0.3s both;
}
.kp-contact:has(.kp-form.sent) .kp-contact__steps li:nth-child(2) { font-weight: 600;
}
.kp-contact:has(.kp-form.sent) .kp-contact__steps li:nth-child(2)::before { background: var(--kp-blue); color: var(--kp-white); animation: kp-pop 0.6s var(--kp-ease-emphasized) 0.6s both;
}
@media (prefers-reduced-motion: reduce) {
	.kp-form.sent .wpcf7-response-output::before, .kp-contact:has(.kp-form.sent) .kp-contact__steps li::before { animation: none !important;
	}
}
/*
 Contact block on a phone (QA 22.11.2026): a long compound word in the heading ("hakukoneoptimointimatkasi") widened the
   grid column past the panel. Columns may shrink; the word then breaks like the Next model (overflow-wrap).
 */
.kp-contact { grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
	.kp-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}
.kp-contact :is(h2, h3, p, li, label) { overflow-wrap: break-word;
}
@media (max-width: 767px) {
	.kp-contact h2 { hyphens: auto; hyphenate-limit-chars: 12 5 5;
	}
}
/*
 Contact panel (all pages with the form): exactly on the 1,200 px grid like the cards above it (it was 1,180 px,
   10 px in from the strip's edges), less padding (56 px + the form's 30 px read as too much, user 23.11.2026), and on
   /ota-yhteytta/ the same 0.75rem between the strip and the panel as between the strip's cards (it was 53 px).
 */
.kp-panel-wrap > .kp-contact { width: 100%; max-width: var(--kp-wide); box-sizing: border-box; margin-left: auto; margin-right: auto; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); gap: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
.kp-contact__form { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.kp-strip-wrap + .kp-panel-wrap { padding-top: 0;
}
/*
 Contact strip icons (user 23.11.2026, Novus Victoria /ota-yhteytta/ model): a thin line icon on top of each card,
   in ink, drawn with a mask so it follows the text colour. Order of the strip: email, phone, address, company.
 */
.kp-strip > .kp-strip__item::before { content: ""; display: block; width: 1.5rem; height: 1.5rem; margin-bottom: 1rem; background: currentColor; -webkit-mask: var(--kp-strip-icon) center / contain no-repeat; mask: var(--kp-strip-icon) center / contain no-repeat;
}
.kp-strip > .kp-strip__item:nth-child(1) { --kp-strip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
.kp-strip > .kp-strip__item:nth-child(2) { --kp-strip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.11 4.18 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.kp-strip > .kp-strip__item:nth-child(3) { --kp-strip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.kp-strip > .kp-strip__item:nth-child(4) { --kp-strip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01'/%3E%3C/svg%3E");
}
body:has(.kp-contact, .kp-own-cta) .kp-closing-cta { display: none;
}
/*
 Card headings break between words, not inside them ("Monipuo-liset" in the four recruitment cards, 23.11.2026);
   a word longer than the card still wraps.
 */
:root :is(.kp-feature-grid, .kp-reasons, .kp-strip) :is(h2, h3) { hyphens: manual; overflow-wrap: break-word;
}
.kp-contact__steps .wp-block-list.is-style-numbered > li::before {
	background: none; width: 1.6rem; height: auto; border-radius: 0; color: var(--kp-ink);
	font-size: 1.6rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; top: 0.3rem; text-shadow: 0.06em 0.045em 0 var(--kp-mint);
}
.kp-content :is(.kp-reasons:not(.is-numbered) > .kp-reason, .kp-check-card, .kp-checklist > *)::before { filter: drop-shadow(0.11rem 0.08rem 0 var(--kp-mint));
}
/*
 Check lists (is-style-checks, e.g. the job cards) join the ballless check of 25.11.2026: the check itself with the
   light mint offset, list size (content round 25.11.2026). White on Deep panels.
 */
.wp-block-list.is-style-checks > li::before {
	width: 1.375rem; height: 1.375rem; border-radius: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 100% no-repeat;
	filter: drop-shadow(0.08rem 0.06rem 0 var(--kp-mint));
}
:is(.kp-accent, .kp-section:has(.kp-reason):not(:has(.kp-media-row)), .has-deep-background-color) .wp-block-list.is-style-checks > li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
/*
  ===== Header, navigation and mega menu (consolidated 25.11.2026 from 203 rules; one place for this component) ===== 
 */
/*
 Header: fixed floating bar; content aligns with the page grid.
 */
.kp-header-wrap { position: fixed; inset: 0 0 auto; z-index: 50; padding: 0.5rem clamp(0.5rem, 1.5vw, 1rem) 0; pointer-events: none; transition: translate var(--kp-dur-moderate) var(--kp-ease-out);
}
.kp-header { margin-inline: auto; pointer-events: auto;
}
.kp-header__bar { gap: 1.5rem; border-radius: 2rem; color: var(--kp-white);
}
.is-scrolled .kp-header__bar, html.kp-mega-open .kp-header__bar, body:not(:has(.kp-page-hero, .kp-split-hero, .kp-home-hero)) .kp-header__bar { box-shadow: 0 24px 48px -28px rgb(11 42 56 / 0.55);
}
.kp-logo a, .kp-logo .custom-logo-link { display: block; width: 3.5rem; aspect-ratio: 1; background: currentColor; mask: var(--kp-logo-mask) center / contain no-repeat; -webkit-mask: var(--kp-logo-mask) center / contain no-repeat;
}
.kp-logo img { opacity: 0;
}
.kp-nav { flex: 1; margin-left: 1.5rem;
}
.kp-nav .wp-block-navigation__container { gap: 0.25rem;
}
.kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger) { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: none; color: var(--kp-white); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color var(--kp-dur-base) var(--kp-ease-out);
}
.kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover, .kp-nav .kp-nav__trigger[aria-expanded="true"] { background: rgb(255 255 255 / 0.1);
}
.kp-nav__chevron { width: 1rem; height: 1rem; transition: rotate var(--kp-dur-base) var(--kp-ease-out);
}
.kp-nav__trigger[aria-expanded="true"] .kp-nav__chevron { rotate: 180deg;
}
.kp-header__cta .wp-block-button__link { height: 2.75rem; padding-block: 0;
}
@media (max-width: 1023px) {
	.kp-nav { margin-left: auto; flex: none;
	}
}
.kp-nav .wp-block-navigation__responsive-container-open { height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; color: var(--kp-white); font-weight: 500;
}
/*
 Mega panel: solid deep panel under the bar (no glass over video), staggered groups, page dim.
 */
.kp-nav__item--mega { position: static;
}
.kp-mega { position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); border-radius: 2rem; background: var(--kp-deep); color: var(--kp-white); box-shadow: 0 24px 48px -28px rgb(11 42 56 / 0.55); opacity: 0; translate: 0 -8px; transition: opacity var(--kp-dur-base) var(--kp-ease-out), translate var(--kp-dur-moderate) var(--kp-ease-emphasized);
}
.kp-mega.is-open { opacity: 1; translate: 0 0;
}
.kp-mega.is-instant { transition: none;
}
.kp-header__bar { position: relative;
}
.kp-mega__inner { padding: 2rem 1.5rem;
}
.kp-mega__inner .wp-block-columns { margin: 0;
}
.kp-mega .kp-mega__label { margin: 0 0 0.5rem;
}
.kp-mega .kp-mega__link { position: relative; transition: background-color var(--kp-dur-base) var(--kp-ease-out);
}
.kp-mega .kp-mega__link p { margin: 0;
}
.kp-mega .kp-mega__link a { color: var(--kp-white); font-weight: 500; text-decoration: none;
}
.kp-mega .kp-mega__link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
}
@media (prefers-reduced-motion: no-preference) {
	.kp-mega.is-open .kp-mega__inner .wp-block-column > * { animation: kp-mega-item var(--kp-dur-moderate) var(--kp-ease-out) both;
	}
	.kp-mega.is-open .kp-mega__inner .wp-block-column > :nth-child(2) { animation-delay: 35ms;
	}
	.kp-mega.is-open .kp-mega__inner .wp-block-column > :nth-child(3) { animation-delay: 70ms;
	}
	.kp-mega.is-open .kp-mega__inner .wp-block-column > :nth-child(4) { animation-delay: 105ms;
	}
}
/*
 Mobile overlay (Navigation Overlay part)
 */
.kp-mobile { min-height: 100%;
}
.kp-mobile .kp-logo a { width: 3rem;
}
.kp-mobile__nav :is(.wp-block-navigation-item__content, .kp-nav__trigger) { display: flex; justify-content: space-between; border: 0; font: inherit; text-decoration: none;
}
.kp-mobile .kp-mega { position: static; border-radius: 0; background: none; box-shadow: none; opacity: 1; translate: none;
}
.kp-mobile__footer { display: grid; gap: 1rem; margin-top: 2rem;
}
@media (prefers-reduced-motion: no-preference) {
	.kp-mobile { animation: kp-mobile-in var(--kp-dur-moderate) var(--kp-ease-emphasized) both;
	}
}
@media (max-width: 1023px) {
	:root .kp-header__cta { display: none;
	}
}
@media (max-width: 599px) {
	.kp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; align-items: center; line-height: 1;
	}
}
/*
 Logged-in admin bar: the fixed header sits below it (core sets --wp-admin--admin-bar--height on html).
 */
.admin-bar .kp-header-wrap { top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 600px) {
	.admin-bar .kp-header-wrap { top: var(--wp-admin--admin-bar--height, 46px);
	}
}
.kp-mobile__footer .wp-block-button, .kp-mobile__footer .wp-block-button__link { width: 100%; justify-content: center;
}
/*
 Mega panel spans the whole header bar: the Navigation block's inner wrappers must not be its containing block.
 */
@media (min-width: 600px) {
	.kp-header .kp-nav, .kp-header .kp-nav .wp-block-navigation__responsive-container, .kp-header .kp-nav .wp-block-navigation__responsive-close, .kp-header .kp-nav .wp-block-navigation__responsive-dialog, .kp-header .kp-nav .wp-block-navigation__responsive-container-content, .kp-header .kp-nav .wp-block-navigation__container, .kp-header .kp-nav__item--mega { position: static;
	}
}
.kp-mega__inner .wp-block-columns { gap: 2rem;
}
.kp-mega__groups { display: grid;
}
.kp-mega__groups > * { margin: 0;
}
/*
 Mobile overlay: each mega item is a full-width accordion row with its panel below.
 */
.kp-mobile__nav .wp-block-navigation__container { width: 100%;
}
.kp-mobile__nav .kp-nav__item--mega { display: block; width: 100%;
}
.kp-mobile .kp-mega__inner .wp-block-columns { display: block;
}
.kp-mobile .kp-nav__trigger { align-items: center;
}
/*
 Navigation bar: more room around the logo (user 22.11.2026).
 */
.kp-header__bar { padding: 0.875rem clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 599px) {
	.kp-header__bar { padding: 0.75rem 1rem;
	}
}
/*
  ===== Footer and wordmark (consolidated 25.11.2026 from 50 rules; one place for this component) ===== 
 */
/*
 Wordmark with film (footer)
 */
.kp-wordmark { aspect-ratio: 975 / 157; width: 100%;
}
.kp-wordmark__fill { width: 100%; height: 100%;
}
/*
 Footer
 */
.kp-footer-wrap { margin-top: 0;
}
.kp-footer { position: relative; background: var(--kp-deep); color: var(--kp-white); font-size: 1rem; line-height: 1.5;
}
.kp-footer a { color: var(--kp-white); text-decoration: none;
}
.kp-footer a:hover { text-decoration: underline;
}
.kp-footer__wrap { margin-inline: auto; padding: 3rem var(--kp-gutter) 2.5rem;
}
.kp-footer__top { display: grid; gap: 3rem 2.5rem;
}
@media (min-width: 768px) {
	.kp-footer__top { grid-template-columns: 5fr 7fr;
	}
	.kp-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
	}
}
:root .kp-footer__brand > * { margin-block: 0 0.5rem;
}
:root .kp-footer__tagline { max-width: 26ch; margin-bottom: 2rem !important; font-weight: 500;
}
.kp-footer__phone { font-size: var(--wp--preset--font-size--lead); font-weight: 600;
}
.kp-footer__heading { margin: 0 0 1rem; color: var(--kp-mint); font-size: 1rem; font-weight: 600; letter-spacing: 0;
}
.kp-footer__nav .wp-block-navigation__container { gap: 0.625rem;
}
.kp-footer__stack > * + * { margin-top: 2.5rem;
}
.kp-footer__wordmark { margin-top: clamp(3rem, 2rem + 3vw, 4rem);
}
.kp-footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.15); gap: 1rem 1.5rem;
}
.kp-footer__legal p { margin: 0;
}
@media (max-width: 767px) {
	.kp-footer__col { border-bottom: 1px solid rgb(255 255 255 / 0.15);
	}
	.kp-footer__heading { margin: 0;
	}
	.kp-footer__heading button { display: flex; width: 100%; min-height: 3.5rem; align-items: center; justify-content: space-between; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
	}
	.kp-footer__heading button::after { content: "+"; color: var(--kp-white); font-size: 1.25rem; transition: rotate var(--kp-dur-base) var(--kp-ease-out);
	}
	.kp-footer__heading button[aria-expanded="true"]::after { rotate: 45deg;
	}
	.kp-footer__col.is-collapsed .kp-footer__nav { display: none;
	}
	.kp-footer__col .kp-footer__nav { padding-bottom: 1.25rem;
	}
	.kp-footer__stack > * + * { margin-top: 0;
	}
}
/*
 Footer columns start on the same line.
 */
.kp-footer__cols > *, .kp-footer__col > * { margin-block-start: 0;
}
.kp-footer__cols { align-items: start;
}
.kp-footer__wrap { padding-top: clamp(3.5rem, 3rem + 2vw, 5rem);
}
/*
 Footer wordmark: a slow water-coloured gradient inside the letters instead of the video (user 22.11.2026: lighter).
   Only transform moves (compositor, STYLE-TRENDS §2ac); still with reduced motion and with the motion pause.
 */
.kp-wordmark__fill { position: relative; overflow: hidden; background: var(--kp-mint);
}
.kp-wordmark__flow { position: absolute; inset: 0 auto 0 0; width: 300%; background: linear-gradient(100deg,
	var(--kp-mint) 0%, color-mix(in srgb, var(--kp-mint) 55%, var(--kp-white)) 12%, var(--kp-blue) 27%, color-mix(in srgb, var(--kp-blue) 50%, var(--kp-mint)) 38%,
	var(--kp-mint) 50%, color-mix(in srgb, var(--kp-mint) 55%, var(--kp-white)) 62%, var(--kp-blue) 77%, color-mix(in srgb, var(--kp-blue) 50%, var(--kp-mint)) 88%, var(--kp-mint) 100%);
	animation: kp-flow 24s linear infinite; will-change: transform;
}
html[data-motion-paused] .kp-wordmark__flow { animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
	.kp-wordmark__flow { animation: none;
	}
}
/*
 Footer wordmark light: a soft white spot that follows the pointer inside the letters (site.js; user 22.11.2026).
 */
.kp-wordmark__glow { position: absolute; left: 0; top: 0; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.4) 36%, transparent 70%); opacity: 0; pointer-events: none; will-change: transform; transition: opacity var(--kp-dur-slow) var(--kp-ease-out);
}
.kp-wordmark__fill.is-lit .kp-wordmark__glow { opacity: 1;
}
@media (max-width: 639px) {
	.kp-footer__top { gap: 2rem;
	}
	:root .kp-footer__top > * { margin-block: 0;
	}
	:root .kp-footer__tagline { margin-bottom: 1.25rem !important;
	}
	.kp-footer__legal { margin-top: 1.5rem; padding-top: 1.25rem;
	}
	.kp-footer__wrap { padding-top: 2.5rem;
	}
	.kp-footer__heading button { min-height: 3rem;
	}
	.kp-footer__wordmark { margin-top: 2rem;
	}
}
/*
 85rem everywhere (user 22.11.2026: content must stay inside the 1,360 px column on every page).
 */
/*
 Footer: its wrapper's max-width included its own padding (content 1,280 px).
 */
:root .kp-footer__wrap { max-width: calc(var(--kp-wide) + 2 * var(--kp-gutter)) !important; box-sizing: border-box;
}
/*
 Footer: brand 4/12, link columns 8/12, on the content grid.
 */
@media (min-width: 1024px) {
	:root .kp-footer .kp-footer__top { display: grid !important; grid-template-columns: 4fr 8fr; gap: 4rem;
	}
	:root .kp-footer .kp-footer__top > * { width: auto; max-width: none; margin: 0 !important;
	}
}
/*
 Footer wrapper on the content grid (it used the full width with the old 85rem column).
 */
:root .kp-footer .kp-footer__wrap { max-width: none !important; padding-left: max(var(--kp-gutter), calc((100% - var(--kp-wide)) / 2)) !important; padding-right: max(var(--kp-gutter), calc((100% - var(--kp-wide)) / 2)) !important; box-sizing: border-box;
}
:root .kp-footer .kp-footer__wrap > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
}
/*
  ===== Panels (section styles) (consolidated 25.11.2026 from 24 rules; one place for this component) ===== 
 */
.is-style-panel-blue .wp-block-button.is-style-light .wp-block-button__link { color: var(--kp-blue);
}
:is(.is-style-panel-deep, .is-style-panel-blue) .wp-block-button.is-style-arrow .wp-block-button__link::after {
	background-color: rgb(255 255 255 / 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
}
:is(.is-style-panel-sand, .is-style-panel-deep, .is-style-panel-blue) { overflow: clip;
}
.is-style-panel-sand :is(.is-style-card) { background: var(--kp-white);
}
:is(.is-style-panel-blue, .is-style-panel-sand, .is-style-panel-deep) .kp-wave { width: 100%; left: 0; translate: none;
}
/*
 Closing panel v3 (user 22.11.2026, option 2): the brand zigzag (2017 brand guide) on the left edge instead of the
   bottom waves; Riku as a small chip next to the button, so no empty column before his photo.
 */
.is-style-panel-waves { position: relative; overflow: hidden; background: var(--wp--preset--color--blue);
}
.is-style-panel-waves::before { content: ""; position: absolute; left: -3.5rem; top: 50%; width: 15rem; height: 15rem; translate: 0 -50%; background: url("../brand/zigzag-mint.svg") center / contain no-repeat; pointer-events: none;
}
.is-style-panel-waves > * { position: relative;
}
@media (min-width: 782px) {
	.is-style-panel-waves { padding-left: 14rem;
	}
}
.is-style-panel-waves > * { margin-block: 0;
}
.is-style-panel-waves > * + * { margin-top: 1rem;
}
.is-style-panel-waves h2 { max-width: 22ch;
}
.is-style-panel-waves .has-lead-font-size { max-width: 44ch;
}
@media (max-width: 781px) {
	.is-style-panel-waves::before { left: clamp(1.5rem, 4vw, 3.5rem); top: 1.75rem; width: 4.5rem; height: 4.5rem; translate: none;
	}
	.is-style-panel-waves { padding-top: 7.5rem;
	}
}
/*
 The zigzag as an endless stream of arrows: a vertical strip faded at both ends. Hovering or focusing "Varaa
   kasvukatsaus" makes the arrows rise; leaving the button stops them where they are (user 22.11.2026).
   Transform only (STYLE-TRENDS §2ac); no motion with reduced motion. The tile height is 0.965 × width, so the
   chevrons keep their spacing across tiles.
 */
@media (min-width: 782px) {
	.is-style-panel-waves::before { top: -14.475rem; bottom: -14.475rem; height: auto; translate: none; background: url("../brand/zigzag-mint.svg") 0 0 / 15rem 14.475rem repeat-y; opacity: 0.9; animation: kp-rise 1.6s linear infinite paused; transition: opacity var(--kp-dur-moderate) var(--kp-ease-out);
	}
	.is-style-panel-waves::after { content: ""; position: absolute; left: -3.5rem; top: 0; bottom: 0; width: 15rem; background: linear-gradient(180deg, var(--wp--preset--color--blue) 0%, transparent 28%, transparent 72%, var(--wp--preset--color--blue) 100%); pointer-events: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.is-style-panel-waves::before { animation: none !important;
	}
}
@media (max-width: 639px) {
	.is-style-panel-waves::before { top: 1.5rem; width: 3.75rem; height: 3.75rem;
	}
}
/*
 Closing panel v4 (user 22.11.2026: half of the card was empty): text with the zigzag on the left, Riku's photo
   filling the right part edge to edge, his name on the photo. Phones: a small person row under the button.
 */
.is-style-panel-waves.kp-panel { display: grid; padding: 0;
}
@media (max-width: 781px) {
	.is-style-panel-waves.kp-panel { padding-top: 0;
	}
}
/*
 Closing panel v5 (user 22.11.2026: no big photo of Riku): option 1, Riku as a round photo centred in a narrow
   right column with his name under it.
 */
@media (min-width: 782px) {
	.is-style-panel-waves.kp-panel { min-height: 20rem; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	}
}
/*
 Arrow links on dark surfaces (mega menu, dark panel, footer): mint ball with a deep arrow so they stand out
   (user 22.11.2026: the dark grey-green ball did not show).
 */
:is(.kp-mega, .is-style-panel-deep, .kp-footer) .wp-block-button.is-style-arrow .wp-block-button__link::after {
	background-color: var(--wp--preset--color--mint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
}
:is(.kp-mega, .is-style-panel-deep, .kp-footer) .wp-block-button.is-style-arrow .wp-block-button__link:is(:hover, :focus-visible)::after { background-color: var(--kp-white);
}
.kp-mega .wp-block-kumpula-case-tiles, .kp-mega .kp-tiles--feature { flex: 1; display: flex;
}
/*
 Logo shrinks when the page scrolls (Next model: 64 px → 44 px tall), and the bar tightens with it. A documented
   exception to transform/opacity-only motion (STYLE-TRENDS §2ac): one state change at a scroll threshold, not per frame,
   and the bar must really get shorter (user 22.11.2026); the mobile TOC's top follows the header the same way.
 */
.kp-header .wp-block-site-logo.kp-logo img { width: auto; height: 3.5rem; transition: height var(--kp-dur-moderate) var(--kp-ease-out);
}
.kp-header__bar { transition: padding var(--kp-dur-moderate) var(--kp-ease-out), background-color var(--kp-dur-moderate) var(--kp-ease-out), box-shadow var(--kp-dur-moderate) var(--kp-ease-out);
}
.is-scrolled .kp-header__bar { padding-block: 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
	.kp-header .wp-block-site-logo.kp-logo img, .kp-header__bar { transition: none;
	}
}
/*
 Compact mega panels (user 22.11.2026: the Kumpula panel looked empty across the whole bar): a panel with fewer than
   four link groups takes only the width it needs and opens under its own item (position set by the mega-menu script).
   Palvelut (four groups + case) keeps the full bar.
 */
@media (min-width: 1024px) {
	.kp-header .kp-mega:not(:has(.kp-mega__group:nth-child(4))) { right: auto; width: min(54rem, 100%);
	}
	.kp-header .kp-mega:not(:has(.kp-mega__group:nth-child(4))) .kp-mega__inner { padding: 1.75rem;
	}
}
/*
 Mega menu without JavaScript: the item is a link to its section page; with JavaScript the button replaces it.
 */
.kp-nav__trigger[hidden] { display: none;
}
/*
 the wave keeps its own left: 50% + translate centring
 */
/*
 Header bar and mega menu as glass (Next preview kumpula.luovikulma.com, user 22.11.2026: "vaaleampi oli parempi"):
   deep at 75 % with a 40 px blur and saturation, so the page shows through; group labels white with a mint underline.
 */
/*
 The bar's glass sits on a ::before layer: a backdrop-filter on the bar itself would stop the mega panel inside it from
   blurring the page (a nested backdrop sees only its parent).
 */
.kp-header__bar { isolation: isolate;
}
.kp-header__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: transparent; transition: background-color var(--kp-dur-moderate) var(--kp-ease-out);
}
.is-scrolled .kp-header__bar, html.kp-mega-open .kp-header__bar, body:not(:has(.kp-page-hero, .kp-split-hero, .kp-home-hero)) .kp-header__bar { background: transparent;
}
.is-scrolled .kp-header__bar::before, html.kp-mega-open .kp-header__bar::before, body:not(:has(.kp-page-hero, .kp-split-hero, .kp-home-hero)) .kp-header__bar::before, :root .kp-header .kp-mega { background: rgb(11 42 56 / 0.75); -webkit-backdrop-filter: blur(40px) saturate(1.5); backdrop-filter: blur(40px) saturate(1.5);
}
:root .kp-header .kp-mega { border-radius: 1.5rem;
}
.kp-mega .kp-mega__label { color: var(--kp-white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--kp-mint); text-decoration-thickness: 2px; text-underline-offset: 7px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	:root .kp-header .kp-mega, html.kp-mega-open .kp-header__bar::before, .is-scrolled .kp-header__bar::before { background: var(--kp-deep);
	}
}
/*
 Mega panel v2 = the Next preview (kumpula.luovikulma.com): intro column · two columns of link groups · feature card.
   Every panel spans the bar (no compact centred panels).
 */
:root .kp-header .kp-mega:has(.kp-mega__layout) { left: 0 !important; right: 0; width: auto;
}
.kp-mega__layout { gap: 2rem; padding: 2rem 1.5rem; margin: 0; align-items: stretch;
}
.kp-mega__groups { grid-template-columns: repeat(2, 1fr); gap: 2rem; align-content: start;
}
.kp-mega__group > * { margin: 0;
}
.kp-mega__group > .kp-mega__label { margin-bottom: 1rem;
}
.kp-mega .kp-mega__link { margin: 0 0 0.625rem; padding: 0; border-radius: 0; background: none;
}
:root .kp-mega .kp-mega__link:hover, :root .kp-mega .kp-mega__link:focus-within { background: none;
}
.kp-mega__link a { color: var(--kp-white); text-decoration: none;
}
:root .kp-mega__link a:hover, :root .kp-mega__link a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em;
}
.kp-mega__group > .wp-block-buttons { margin-top: 1rem;
}
.kp-mega__feature { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 12rem; padding: 1.25rem; border-radius: var(--kp-r-card); color: var(--kp-white);
}
.kp-mega__feature > * { margin: 0;
}
.kp-mega__feature .wp-block-image { position: absolute; inset: 0; z-index: -2;
}
.kp-mega__feature .wp-block-image img { width: 100%; height: 100%; object-fit: cover;
}
.kp-mega__feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(11 42 56 / 0.8));
}
.kp-mega__feature-title { font-size: var(--wp--preset--font-size--section); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em;
}
.kp-mega__feature-title a { color: var(--kp-white); text-decoration: none;
}
.kp-mega__feature-text { margin-top: 0.25rem; font-size: var(--wp--preset--font-size--chip);
}
@media (max-width: 1023px) {
	.kp-mobile .kp-mega__feature { display: none;
	}
	.kp-mobile .kp-mega__layout { padding: 0;
	}
}
.kp-mega .wp-block-button.is-style-arrow .wp-block-button__link { gap: 0.375rem;
}
.kp-mega .wp-block-button.is-style-arrow .wp-block-button__link::after { width: auto; height: auto; background: none; color: var(--kp-mint); content: "→"; -webkit-mask: none; mask: none; font-size: 1em;
}
/*
 Open mega panel: one inset of 2rem, as the Next preview (user 22.11.2026: "marginaalit turhan isot"; the inner padding
   and the layout's own padding were added together: 60 px top, 52 px sides).
 */
.kp-mega .kp-mega__inner { padding: 2rem;
}
.kp-mega .kp-mega__layout { padding: 0;
}
/*
 Header bar 1.5rem wider than the content on both sides, as the Next preview (it shrank to the content column with
   85rem; the logo then sat inside the column, not on its edge).
 */
.kp-header { max-width: calc(var(--kp-wide) + 3rem);
}
/*
 Hidden header leaves nothing on screen, also for logged-in users (the admin bar offset left a 12 px sliver of the bar).
 */
.kp-header-wrap.is-hidden { translate: 0 calc(-100% - var(--wp-admin--admin-bar--height, 0px) - 1.5rem);
}
.is-scrolled .kp-header__bar, html.kp-mega-open .kp-header__bar, body:not(.kp-no-light-bar) .kp-header__bar { background: transparent; color: var(--kp-ink); box-shadow: 0 0 0 1px rgb(18 25 29 / 0.06), 0 16px 36px -24px rgb(11 42 56 / 0.35);
}
.is-scrolled .kp-header__bar::before, html.kp-mega-open .kp-header__bar::before, body:not(.kp-no-light-bar) .kp-header__bar::before { background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
}
html.kp-mega-open .kp-header__bar::before { background: var(--kp-white);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.is-scrolled .kp-header__bar::before, body:not(.kp-no-light-bar) .kp-header__bar::before { background: var(--kp-white);
	}
}
/*
 Ink text in the light bar: menu items, chevrons, the phone's "Valikko" button; the hover tint follows.
 */
.is-scrolled .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-open), html.kp-mega-open .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger), body:not(.kp-no-light-bar) .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-open) { color: var(--kp-ink);
}
.is-scrolled .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover, html.kp-mega-open .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover, body:not(.kp-no-light-bar) .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover { background: rgb(18 25 29 / 0.06);
}
html.kp-mega-open .kp-header__bar .kp-nav .kp-nav__trigger[aria-expanded="true"] { background: var(--kp-tint);
}
html.kp-mega-open body::after {
	content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
	background: rgb(18 25 29 / 0.28);
}
@media (min-width: 1024px) {
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) {
		top: calc(100% + 0.5rem); overflow: hidden; background: var(--kp-white); color: var(--kp-ink); border-radius: 1.5rem;
		-webkit-backdrop-filter: none; backdrop-filter: none;
		box-shadow: 0 0 0 1px rgb(18 25 29 / 0.06), 0 40px 80px -36px rgb(11 42 56 / 0.45);
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__inner { padding: 0;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__layout { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 0; margin: 0; padding: 0; align-items: stretch;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__layout > .wp-block-column { flex-basis: auto; margin: 0;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__groups { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(12.5rem, 1fr); gap: 0; height: 100%; padding: 0;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__group { padding: 1.75rem 1.25rem 2rem 1.75rem;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) :is(.kp-mega__link, .kp-mega__link a, .kp-mega__label, .kp-mega__feature-title, .kp-mega__feature-title a) { overflow-wrap: normal; word-break: normal; hyphens: manual;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__group + .kp-mega__group { border-left: 1px solid var(--kp-line);
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__label {
		display: block; margin: 0 0 0.875rem; padding: 0; border: 0; color: var(--kp-ink); text-decoration: none;
		font-size: var(--wp--preset--font-size--chip); font-weight: 600; line-height: 1.3;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link { margin: 0 -0.75rem 0.25rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; background: none; transition: background-color var(--kp-dur-base) var(--kp-ease-out);
	}
	:root .kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link:is(:hover, :focus-within) { background: var(--kp-paper);
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link a {
		display: inline-flex; align-items: center; gap: 0.625rem; color: var(--kp-ink); text-decoration: none;
		font-size: 1.125rem; font-weight: 400; line-height: 1.3; letter-spacing: 0; overflow-wrap: normal; hyphens: manual;
	}
	:root .kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link a:is(:hover, :focus-visible) { text-decoration: none;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link a[aria-current="page"] { color: var(--kp-blue); font-weight: 500;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link a[aria-current="page"]::before { content: ""; order: 2; flex: none; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor;
	}/*
 Side column: quiet "Kaikki …" text link + one case card
 */
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__side { display: flex; flex-direction: column; gap: 0.875rem; height: 100%; padding: 1.25rem; border-left: 1px solid var(--kp-line);
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__side > * { margin: 0;
	}/*
 "Kaikki …": the site's normal arrow link (text + light ball with an ink arrow, as on light sections), no underline
	   (user 23.11.2026).
 */
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__side .wp-block-button.is-style-arrow .wp-block-button__link { min-height: 2.75rem; gap: 0.75rem; padding: 0; color: var(--kp-ink); font-size: 1.0625rem; font-weight: 500; text-decoration: none;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__side .wp-block-button.is-style-arrow .wp-block-button__link::after {
		content: ""; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px; font-size: 0; -webkit-mask: none; mask: none;
		background: rgb(18 25 29 / 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
	}
	:root .kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__side .wp-block-button.is-style-arrow .wp-block-button__link:is(:hover, :focus-visible) { text-decoration: underline;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__feature { flex: 1; min-height: 13.75rem; height: auto; border-radius: 1rem;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__feature-title { font-size: 1.625rem;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__feature::before { background: linear-gradient(180deg, rgb(11 42 56 / 0) 38%, rgb(11 42 56 / 0.88));
	}/*
 Small menus (fewer than three groups): a card sized to its content under its trigger (left set by theme.js).
 */
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):not(:has(.kp-mega__group:nth-child(3))) { right: auto; width: max-content; max-width: 100%;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):not(:has(.kp-mega__group:nth-child(3))) .kp-mega__layout { grid-template-columns: auto 15.5rem;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):not(:has(.kp-mega__group:nth-child(3))) .kp-mega__groups { grid-auto-columns: minmax(13rem, max-content);
	}
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	:root .kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__link { transition: none;
	}
}
/*
 1024–1279 px: six main-menu items + the CTA on one line (Ratkaisut added), and Palvelut's four groups as 2 × 2.
 */
@media (min-width: 1024px) and (max-width: 1279px) {
	.kp-header .kp-nav { margin-left: 0.5rem;
	}
	.kp-header .kp-nav .wp-block-navigation__container { gap: 0;
	}
	.kp-header .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger) { padding: 0 0.625rem;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):has(.kp-mega__group:nth-child(3)) .kp-mega__groups { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):has(.kp-mega__group:nth-child(3)) .kp-mega__group + .kp-mega__group { border-left: 0;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):has(.kp-mega__group:nth-child(3)) .kp-mega__group:nth-child(2n) { border-left: 1px solid var(--kp-line);
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega):has(.kp-mega__group:nth-child(3)) .kp-mega__group:nth-child(n+3) { border-top: 1px solid var(--kp-line);
	}
}
/*
 The phone overlay (.kp-mobile) lives inside the header bar's navigation: it keeps its own white-on-deep text whatever
   state the bar is in (the light bar's ink text must not reach it).
 */
.is-scrolled .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-close), html.kp-mega-open .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-close), body:not(.kp-no-light-bar) .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-close) { color: var(--kp-white);
}
.is-scrolled .kp-header__bar .kp-mobile, body:not(.kp-no-light-bar) .kp-header__bar .kp-mobile { color: var(--kp-white);
}
.is-scrolled .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover, body:not(.kp-no-light-bar) .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover { background: rgb(255 255 255 / 0.1);
}
/*
  ===== Page heroes (consolidated 25.11.2026 from 123 rules; one place for this component) ===== 
 */
/*
 Breadcrumbs (core/breadcrumbs)
 */
.kp-breadcrumbs a:hover { text-decoration: underline;
}
/*
 Page hero (core/cover with the featured image): neutral shade only under the text (STYLE-TRENDS §2w), wave below.
 */
.kp-page-hero { position: relative; isolation: isolate; padding: 9rem var(--kp-gutter) calc(var(--kp-wave-h) + 3rem) !important; color: var(--kp-white);
}
.kp-page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 75% 85% at 0% 100%, rgb(8 18 24 / 0.62) 0%, rgb(8 18 24 / 0.3) 45%, transparent 75%), linear-gradient(180deg, rgb(8 18 24 / 0.38) 0%, transparent 24%);
}
.kp-page-hero.is-strong::after { background: linear-gradient(90deg, rgb(8 18 24 / 0.72) 0%, rgb(8 18 24 / 0.45) 38%, transparent 65%), linear-gradient(0deg, rgb(8 18 24 / 0.35) 0%, transparent 40%);
}
@media (max-width: 767px) {
	.kp-page-hero::after, .kp-page-hero.is-strong::after { background: linear-gradient(180deg, rgb(8 18 24 / 0.45) 0%, rgb(8 18 24 / 0.15) 35%, rgb(8 18 24 / 0.72) 100%);
	}
}
.kp-page-hero .wp-block-cover__inner-container { position: static; z-index: 1; width: 100%; max-width: var(--kp-wide);
}
.kp-page-hero__copy { position: relative; z-index: 2; max-width: 40rem; text-shadow: 0 1px 24px rgb(8 18 24 / 0.35);
}
:root .kp-page-hero__copy > * { margin-block: 0;
}
:root .kp-page-hero__copy > * + * { margin-top: 1.5rem;
}
:root .kp-page-hero__actions { margin-top: 2.25rem;
}
.kp-page-hero__lead { max-width: 40ch;
}
.kp-page-hero .kp-breadcrumbs a, .kp-page-hero .kp-breadcrumbs { color: var(--kp-white);
}
.kp-case-hero .kp-case-logo { color: var(--kp-white);
}
.wp-block-cover.kp-page-hero .wp-block-cover__image-background { object-position: var(--kp-hero-pos, center);
}
/*
 Split hero (team pages): text on deep at the left, the square group photo at the right.
 */
.kp-split-hero { position: relative; isolation: isolate; background: var(--kp-deep); color: var(--kp-white);
}
.kp-split-hero__cols { margin: 0; min-height: 72svh;
}
.kp-split-hero__text { display: flex; flex-direction: column; padding: 8rem var(--kp-gutter) calc(var(--kp-wave-h) + 4rem);
}
.kp-split-hero__text > * { margin-block: 0; max-width: 40rem; width: 100%;
}
.kp-split-hero__text > * + * { margin-top: 1.5rem;
}
.kp-split-hero__media { position: relative; min-height: 20rem;
}
.kp-split-hero__img { position: absolute; inset: 0; margin: 0; height: 100%;
}
.kp-split-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
@media (max-width: 781px) {
	.kp-split-hero__text { padding-bottom: 3rem;
	}
	.kp-split-hero__media { aspect-ratio: 4 / 3;
	}
}
/*
 Light hero (articles, lists, text pages, 404): paper; the header bar turns solid.
 */
.kp-light-hero { padding: 9rem var(--kp-gutter) 3rem;
}
:root .kp-light-hero > * { margin-block: 0;
}
:root .kp-light-hero > * + * { margin-top: 1.5rem;
}
.kp-light-hero__lead { max-width: 44ch;
}
/*
 Home hero (core/cover with the hero video): one copy block at the bottom left over a horizontal shade, logo bar under it.
 */
.kp-home-hero { position: relative; isolation: isolate; min-height: 100svh; padding: 0; color: var(--kp-white); align-items: stretch;
}
.kp-home-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgb(8 18 24 / 0.62) 0%, rgb(8 18 24 / 0.3) 38%, transparent 62%), linear-gradient(0deg, rgb(8 18 24 / 0.55) 0%, transparent 40%), linear-gradient(180deg, rgb(8 18 24 / 0.35) 0%, transparent 20%);
}
/*
 Phone: the title sat on the bright middle of the film (2.3:1); the scrim now holds to 50 % (24.11.2026).
 */
@media (max-width: 767px) {
	.kp-home-hero::after { background: linear-gradient(0deg, rgb(8 18 24 / 0.82) 0%, rgb(8 18 24 / 0.55) 50%, rgb(8 18 24 / 0.15) 75%, rgb(8 18 24 / 0.3) 100%);
	}
}
.kp-home-hero .wp-block-cover__inner-container { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; max-width: none; min-height: 100svh;
}
.kp-home-hero__copy { width: 100%; margin-inline: auto; padding: 7rem var(--kp-gutter) 3rem; text-shadow: 0 1px 20px rgb(8 18 24 / 0.35);
}
.kp-home-hero__copy > * { margin-block: 0; max-width: 36rem;
}
.kp-home-hero__copy > * + * { margin-top: 1.75rem;
}
@media (prefers-reduced-motion: reduce) {
	.kp-home-hero video { display: none;
	}
}
/*
 Light hero lead and text pages start at the grid's left edge (not centred inside the 85rem column).
 */
:root .kp-light-hero > .kp-light-hero__lead, :root .kp-light-hero > .wp-block-term-description { margin-left: max(0px, calc((100% - var(--kp-wide)) / 2)) !important; margin-right: auto !important;
}
/*
 Hero titles with compound joints (inc/hyphenation.php) break only at those joints, not inside the parts.
 */
:root .kp-page-hero__title.kp-title-joints { hyphens: manual;
}
.kp-case-hero .kp-case-title { max-width: 18ch;
}
/*
 Article list: with two articles the newest one is a wide featured card (audit articles 1)
 */
/*
 Article: title, image and text on one grid; TOC rail on the left (audit article 1)
 */
.kp-light-hero.is-crumbs { padding-bottom: 0;
}
/*
 404: room under the header (audit 404 1)
 */
.error404 .kp-light-hero { padding-top: clamp(8rem, 6rem + 4vw, 11rem); padding-bottom: var(--wp--preset--spacing--70);
}
/*
 Logged in: the admin bar takes its height from the screen, so the home hero (and its client logo row) still ends
   exactly at the fold (user 22.11.2026).
 */
.admin-bar .kp-home-hero, .admin-bar .kp-home-hero .wp-block-cover__inner-container { min-height: calc(100svh - var(--wp-admin--admin-bar--height, 32px));
}
/*
 Breadcrumbs in one place on every page: right under the floating header at the top of the hero; the title block
   stays at the bottom (user 22.11.2026: the crumbs sat almost mid-hero on service pages).
 */
:root .kp-page-hero > .wp-block-cover__inner-container { align-self: stretch; display: flex; flex-direction: column;
}
:root .kp-page-hero .kp-page-hero__copy { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
}
:root .kp-page-hero .kp-page-hero__copy > .kp-breadcrumbs { margin-bottom: auto !important; padding-bottom: 2rem;
}
.kp-split-hero__text { align-self: stretch; justify-content: flex-start; padding-top: 9rem;
}
.kp-split-hero__text > .kp-breadcrumbs { margin-bottom: auto; padding-bottom: 2rem;
}
/*
 The top shade reaches the breadcrumbs now that they sit under the header (white crumbs on a bright photo).
 */
.kp-page-hero:not(.is-strong)::after { background: radial-gradient(ellipse 75% 85% at 0% 100%, rgb(8 18 24 / 0.62) 0%, rgb(8 18 24 / 0.3) 45%, transparent 75%), linear-gradient(180deg, rgb(8 18 24 / 0.45) 0%, rgb(8 18 24 / 0.22) 22%, transparent 34%);
}
/*
 A page hero without a featured image (a new page on the default template): deep instead of white text on paper.
 */
:root .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) { background: var(--kp-mist); color: var(--kp-ink); text-shadow: none;
}
/*
 aligned with the cards (core centres constrained children with !important)
 */
/*
 Team page hero (Next preview /tiimi): text on sand, the site's waves at the bottom, no photo.
 */
:root .kp-light-hero.is-waved { position: relative; background: var(--kp-mist); padding-bottom: calc(var(--kp-wave-h) + 3.5rem); overflow: clip;
}
/*
 clip, not hidden: hidden makes a scroll container and the waves' scroll timeline stops
 */
:root .kp-light-hero.is-waved > .kp-wave { max-width: none !important; margin: 0 !important;
}
:root .kp-page-hero, :root .kp-light-hero { min-height: var(--kp-hero-h) !important;
}
.kp-split-hero__cols { min-height: var(--kp-hero-h);
}
:root .kp-light-hero { position: relative; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 9rem; padding-bottom: calc(var(--kp-wave-h) + 3rem); background: var(--kp-mist);
}
.kp-light-hero > .kp-breadcrumbs { margin-bottom: auto;
}
:root .kp-light-hero > .kp-wave { max-width: none !important; margin: 0 !important;
}
:root .kp-page-hero:not(:has(.wp-block-cover__image-background, video))::after { content: none;
}
/*
 Same height in practice too: the case title gets the width for two lines; the split hero's text column the same
   bottom spacing as the other heroes.
 */
:root .kp-case-hero .kp-page-hero__copy { max-width: 56rem;
}
.kp-split-hero__text { padding-bottom: calc(var(--kp-wave-h) + 3rem);
}
:root .kp-split-hero__text > .kp-breadcrumbs, :root .kp-case-hero .kp-page-hero__copy > .kp-breadcrumbs { padding-bottom: 0;
}
:root .kp-case-hero .kp-case-logo { margin-top: 1.5rem;
}
/*
 Light heroes: contents left on the site grid (a flex column centred the shrink-wrapped title); no photo shadows.
 */
:root .kp-light-hero > :not(.kp-wave) { width: 100%;
}
:root .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) .kp-page-hero__copy { text-shadow: none;
}
/*
 A page hero without a photo (light): the header bar gets its glass like on the light pages. Own rule: :has() may not
   be nested, and one invalid selector drops the whole list.
 */
/*
 Hero text on the same left edge as the page content (the cover's own padding + the inner container's global padding
   doubled the gutter; the split hero centred a 40rem column).
 */
.kp-split-hero__text > * { margin-left: 0;
}
/*
 Hero text on the content grid at every width (85rem wide, user 22.11.2026 "kavenna"): the cover's inner container
   carries the side space itself, so on wide screens the crumbs and title line up with the sections below.
 */
:root .kp-page-hero { padding-left: 0 !important; padding-right: 0 !important;
}
:root .kp-page-hero > .wp-block-cover__inner-container { width: 100%; max-width: none; padding-left: max(var(--kp-gutter), calc((100% - var(--kp-wide)) / 2)) !important; padding-right: max(var(--kp-gutter), calc((100% - var(--kp-wide)) / 2)) !important; box-sizing: border-box;
}
:root .kp-page-hero > .wp-block-cover__inner-container > :not(.kp-wave) { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
}
.kp-split-hero__text { padding-left: max(var(--kp-gutter), calc((100vw - var(--kp-wide)) / 2));
}
/*
 Split hero: on wide screens the columns sit in the content column; the photo becomes a rounded picture inside the
   deep band (it ran to the screen edge). Phones keep the stacked full-width photo.
 */
@media (min-width: 782px) {
	.kp-split-hero__cols { width: 100%; max-width: calc(var(--kp-wide) + 2 * var(--kp-gutter)); margin-inline: auto; padding-inline: var(--kp-gutter); box-sizing: border-box; gap: 3rem;
	}
	.kp-split-hero__text { padding-left: 0; padding-right: 0;
	}
	.kp-split-hero__img { inset: 9rem 0 calc(var(--kp-wave-h) + 3rem) 0; height: auto; overflow: clip; border-radius: var(--wp--custom--radius--panel, 2.25rem);
	}
}
/*
 Type: H1 56 px on pages and archives = the h1 element in theme.json (no preset on hero titles); 48 px on articles below.
 */
/*
 Light title band (archives, blog): its content on the grid's left edge.
 */
:root .kp-light-hero { padding-left: max(var(--kp-gutter), calc((100% - var(--kp-wide)) / 2)) !important; padding-right: max(var(--kp-gutter), calc((100% - var(--kp-wide)) / 2)) !important;
}
:root .kp-light-hero > :not(.kp-wave) { max-width: none !important; margin-left: 0 !important;
}
:root .kp-light-hero > :is(.kp-light-hero__lead, .wp-block-term-description) { max-width: 36rem !important;
}
/*
 Breadcrumbs (review: Clicky, GOV.UK, Stripe, WAI APG): 17 px / 400 in the hero's text colour, "/" kept, always 14 px
   above the H1 on its left edge (replaces "right under the floating header"); phones show the first and last item.
 */
:root .kp-breadcrumbs { font-size: 1.0625rem; font-weight: 400; line-height: 1.5;
}
:root .kp-breadcrumbs ol { display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0;
}
.kp-breadcrumbs li { white-space: nowrap;
}
.kp-breadcrumbs li:not(:last-child)::after { margin: 0 0.55em;
}
.kp-breadcrumbs a { display: inline-block; padding: 2px 0; text-decoration: none; text-underline-offset: 4px;
}
:root .kp-breadcrumbs a:is(:hover, :focus-visible) { text-decoration: underline;
}
:root :is(.kp-page-hero .kp-page-hero__copy, .kp-light-hero, .kp-split-hero__text, .kp-case-hero .kp-page-hero__copy) > .kp-breadcrumbs { margin: 0 0 0.875rem !important; padding: 0 !important;
}
:root :is(.kp-page-hero .kp-page-hero__copy, .kp-light-hero, .kp-split-hero__text) > .kp-breadcrumbs + * { margin-top: 0 !important;
}
@media (max-width: 639px) {
	.kp-breadcrumbs li:not(:first-child):not(:last-child) { display: none;
	}
}
/*
 Top wave on title bands without a photo: 2 colours (mist band → paper), no accent layer (user 23.11.2026: "top of page
   wave only two colours"); photo heroes keep the 3-colour wave (photo → mint → paper), the footer its own.
 */
:root .kp-light-hero > .kp-wave, :root .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) .kp-wave { display: block;
}
.kp-light-hero .kp-wave__back, .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) .kp-wave__back { display: none;
}
/*
 A hero without an image has no wave and no fixed height (user 22.11.2026: "top wave just breaks the flow of the page"):
   crumbs, title and lead in a compact light header, the content follows on the same flow. Photo heroes keep both.
 */
/*
 Without an image: a compact mist title band with a straight edge (Clicky's /privacy model, user 22.11.2026: "both
   templates, with hero or without"), as tall as its content; the text starts on the first screen.
 */
:root .kp-light-hero, :root .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) { min-height: 0 !important; background: var(--kp-mist) !important; padding-bottom: calc(var(--kp-wave-h) + 2.5rem) !important; overflow: clip;
}
/*
 Layout review, follow-up: every template on the same edge and H1 size.
 */
/*
 Home hero copy: the column includes its gutters (the text sat 40 px inside the grid).
 */
.kp-home-hero__copy { max-width: calc(var(--kp-wide) + 2 * var(--kp-gutter));
}
/*
 Split hero (Kumpula, Rekrytointi, Ota yhteyttä): the same 56 px H1; without breadcrumbs (top-level pages) the title
   keeps clear of the header, and the photo starts at the title's top.
 */
.kp-split-hero h1 { font-size: clamp(2.5rem, 1.75rem + 2.2vw, 3.5rem); line-height: 1.05;
}
@media (min-width: 782px) {
	.kp-split-hero:not(:has(.kp-breadcrumbs)) .kp-split-hero__text { padding-top: 10.5rem;
	}
	.kp-split-hero:not(:has(.kp-breadcrumbs)) .kp-split-hero__img { top: 10.5rem;
	}
}
/*
 Title bands on top-level pages (no breadcrumbs): the title keeps the same clearance under the header as on pages
   with a trail (it touched the header on /ota-yhteytta/ and /kumpula/).
 */
:root .kp-page-hero:not(:has(.kp-breadcrumbs)) .kp-page-hero__copy { padding-top: 2.4rem;
}
:root .kp-light-hero:not(:has(.kp-breadcrumbs)) { padding-top: calc(9rem + 2.4rem) !important;
}
/*
 ---- Header contrast on photo heroes (24.11.2026, user chose A) ----
   Measured from the hero pixels, white menu text over the photos fell to 2.4:1 (Liidien generointi: Artikkelit, Caset)
   and the phone's "Valikko" to 2.6:1 (WCAG AA needs 4.5:1). The light frosted bar with ink text is now on from the top
   of every page (the selectors above use body:not(.kp-no-light-bar)), the same bar as when scrolling and with the mega
   menu open.
 */
/*
 ---- Hero text contrast (24.11.2026, user chose A2) ----
   Measured line by line from the pixels behind the text, white hero text failed WCAG AA on 23 of 25 photo heroes
   (115 lines, worst 1.0:1 on Web-analytiikka). Every hero now passes at 1440, 1024 and 390 px:
   - Desktop (>= 1024 px): the full-bleed photo stays, with a strong scrim on the text side that fades out by 70 %, so
     the right side of the photo stays bright (Clicky's model).
   - Phones and tablets: no reference puts text on a bright photo on a phone. The text sits on the page paper in ink,
     and the photo follows as a rounded card (Clicky, Cyera). This also keeps faces clear of the bar.
   - The breadcrumb is plain 17 px text directly above the H1, no background (Clicky, the only reference with a hero
     breadcrumb); the small dark pill from earlier today is gone.
 */
@media (min-width: 1024px) {
	:root .kp-page-hero::after, :root .kp-page-hero.is-strong::after, :root .kp-page-hero:not(.is-strong)::after { background: linear-gradient(90deg, rgb(8 18 24 / 0.86) 0%, rgb(8 18 24 / 0.78) 34%, rgb(8 18 24 / 0.42) 54%, rgb(8 18 24 / 0) 70%) !important;
	}
}
@media (max-width: 1023px) {
	:root .kp-page-hero { display: flex !important; flex-direction: column !important; align-items: stretch !important; min-height: 0 !important; padding: 6.75rem 0 0 !important; background: var(--kp-paper) !important; color: var(--kp-ink) !important;
	}
	:root .kp-page-hero > .wp-block-cover__inner-container { order: 1;
	}
	:root .kp-page-hero > .wp-block-cover__image-background { position: relative !important; order: 2; inset: auto !important; display: block; width: calc(100% - 2 * var(--kp-gutter)) !important; height: clamp(16rem, 62vw, 26rem) !important; margin: 2.25rem auto 0 !important; border-radius: 1.5rem;
	}
	:root .kp-page-hero > .wp-block-cover__background, :root .kp-page-hero::after, :root .kp-page-hero .kp-wave { display: none !important;
	}
	:root .kp-page-hero .kp-page-hero__copy { text-shadow: none !important;
	}
	:root .kp-page-hero :is(.kp-breadcrumbs, .kp-breadcrumbs a, .kp-page-hero__title, .kp-page-hero__lead, .kp-page-hero__lead p, .kp-case-logo) { color: var(--kp-ink) !important;
	}
	.kp-page-hero .kp-chip.is-glass { background: var(--kp-white); color: var(--kp-ink); -webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.kp-page-hero .is-style-light .wp-block-button__link { background: var(--kp-blue); color: var(--kp-white);
	}
}
/*
 Hero second paragraph (meta kumpula_hero_text, content round 25.11.2026): body size under the lead, same width.
 */
.kp-page-hero .kp-page-hero__text { max-width: 36rem; margin: 0.75rem 0 0; font-size: 1.0625rem; line-height: 1.6;
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar { color: var(--kp-ink); box-shadow: 0 0 0 1px rgb(18 25 29 / 0.06), 0 16px 36px -24px rgb(11 42 56 / 0.35);
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar::before { background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar::before { background: var(--kp-white);
	}
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-open) { color: var(--kp-ink);
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar .kp-nav :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover { background: rgb(18 25 29 / 0.06);
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger, .wp-block-navigation__responsive-container-close) { color: var(--kp-white);
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar .kp-mobile { color: var(--kp-white);
}
body:has(.kp-page-hero):not(:has(.kp-page-hero .wp-block-cover__image-background, .kp-page-hero video)) .kp-header__bar .kp-nav .kp-mobile :is(.wp-block-navigation-item__content, .kp-nav__trigger):hover { background: rgb(255 255 255 / 0.1);
}
/*
 The overlay's close button (core navigation overlay) is white on the deep overlay (it was black on deep).
 */
.kp-header .wp-block-navigation-overlay-close { color: var(--kp-white);
}
.kp-header .wp-block-navigation-overlay-close svg { fill: currentColor;
}
/*
 Mega menu dividers run the full panel height (user 23.11.2026: "vertical line not complete"): the groups column
   stretches, each group cell fills it.
 */
@media (min-width: 1024px) {
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__layout > .wp-block-column { display: flex; flex-direction: column; align-self: stretch;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__layout > .wp-block-column > :is(.kp-mega__groups, .kp-mega__side) { flex: 1; height: auto;
	}
	.kp-header .kp-mega:not(.kp-mobile .kp-mega) .kp-mega__groups { align-items: stretch; align-content: stretch;
	}
}
/*
 Header bar default height (user 24.11.2026: "pikkaisen liian iso"): desktop logo 4rem -> 3.5rem, bar ~92 -> ~84 px; scrolled and phone unchanged
 */
@media (min-width: 782px) {
	:root .kp-header .wp-block-site-logo.kp-logo img { height: 3.5rem;
	}
}
.is-scrolled .kp-header .wp-block-site-logo.kp-logo img { height: 2.75rem;
}
/*
 Mobile menu: one column (user 25.11.2026 on iPhone: the open mega showed two columns with words split mid-word).
   The desktop rule `:root .kp-mega__groups` (2 columns) outranked the mobile 1fr; this restores it, no hyphenation.
 */
.kp-mobile .kp-mega__groups { grid-template-columns: minmax(0, 1fr);
}
:root .kp-mobile .kp-mega :is(a, h3, h4, p) { hyphens: manual; overflow-wrap: normal; word-break: normal;
}
/*
 The open item's tint gets its own inner padding (text no longer flush with the tint's edge) and reaches out past the
   column, so the label stays aligned with the closed items below it.
 */
:root .kp-mobile .kp-nav__trigger { padding-inline: 0.75rem !important; margin-inline: -0.75rem !important; width: calc(100% + 1.5rem) !important; box-sizing: border-box;
}
:root:root:root .kp-mobile { background: var(--kp-paper) !important; color: var(--kp-ink) !important; padding: 1rem 1.25rem 2rem !important;
}
.kp-mobile :is(.wp-block-navigation-overlay-close, .wp-block-navigation-overlay-close svg, .kp-nav__trigger svg) { color: var(--kp-ink);
}
.wp-block-navigation__responsive-container.is-menu-open:has(.kp-mobile) { background: var(--kp-paper);
}
:root:root:root .kp-mobile { min-height: 100dvh !important; box-sizing: border-box;
}
:root:root:root .kp-mobile__nav { margin-top: 1rem !important;
}
:root:root:root .kp-mobile__nav .wp-block-navigation__container > li { width: 100%; border-bottom: 1px solid var(--kp-line-strong);
}
:root:root:root .kp-mobile__nav :is(.wp-block-navigation-item__content, .kp-nav__trigger) { min-height: 3.75rem; align-items: center; margin: 0 !important; padding: 0.5rem 0 !important; width: 100% !important; background: none !important; color: var(--kp-ink) !important; font-size: 1.75rem !important; font-weight: 500 !important; letter-spacing: -0.03em;
}
.kp-mobile .kp-nav__trigger svg { width: 1.25rem; height: 1.25rem;
}
:root:root:root .kp-mobile .kp-mega, :root:root:root .kp-mobile .kp-mega :is(.kp-mega__inner, .kp-mega__layout, .kp-mega__groups, .kp-mega__group, .kp-mega__side, .wp-block-column, .kp-mega__link) { background: none !important; box-shadow: none !important; backdrop-filter: none !important;
}
:root:root:root .kp-mobile .kp-mega__inner { padding: 0 0 1.25rem !important;
}
.kp-mobile .kp-mega__layout, .kp-mobile .kp-mega__layout > *, .kp-mobile :is(.kp-mega__groups, .kp-mega__side) { margin: 0; padding-left: 0;
}
.kp-mobile .kp-mega__groups { gap: 1.25rem;
}
:root:root:root .kp-mobile .kp-mega__label, :root:root:root .kp-mobile .kp-mega__label * { margin: 0 0 0.25rem !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; color: var(--kp-ink) !important; font-size: 0.9375rem !important; font-weight: 600 !important; text-decoration: none !important;
}
:root:root:root .kp-mobile .kp-mega__label :is(*, *::before, *::after), :root:root:root .kp-mobile .kp-mega__label::before, :root:root:root .kp-mobile .kp-mega__label::after { content: none !important;
}
:root:root:root .kp-mobile .kp-mega__link { margin: 0 !important; padding: 0 !important;
}
:root:root:root .kp-mobile .kp-mega__link::before, :root:root:root .kp-mobile .kp-mega__link a::before { content: none !important; display: none !important;
}
.kp-mobile .kp-mega__link a { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0; color: var(--kp-ink); font-size: 1.125rem; font-weight: 400; text-decoration: none;
}
.kp-mobile .kp-mega__link a[aria-current="page"] { font-weight: 600;
}
.kp-mobile .kp-mega__link a[aria-current="page"]::after { content: ""; position: static; inset: auto; flex: none; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--kp-blue); transform: none;
}
.kp-mobile .kp-mega__side .wp-block-button__link { min-height: 2.75rem; color: var(--kp-ink); font-size: 1.0625rem;
}
/*
  ===== Cards and tiles (consolidated 25.11.2026 from 156 rules; one place for this component) ===== 
 */
/*
 Case tiles (Next MediaTile + case bento)
 */
.kp-tiles { display: grid; gap: 0.75rem;
}
.kp-tiles--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}
@media (min-width: 900px) {
	.kp-tiles--bento { grid-template-columns: 7fr 5fr;
	}
	.kp-tiles__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
	}
}
.kp-tiles__row { display: grid; gap: 0.75rem;
}
.kp-tile { position: relative; isolation: isolate; display: flex; overflow: hidden; border-radius: var(--kp-r-card); background: var(--kp-deep); color: var(--kp-white); min-height: 18.75rem;
}
.kp-tile--xl, .kp-tile--l { min-height: 25rem;
}
.kp-tile--feature { min-height: 24rem;
}
.kp-tile__media { position: absolute; inset: 0; z-index: -2;
}
.kp-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--kp-dur-slow) var(--kp-ease-out);
}
.kp-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 42 56 / 0.5) 0%, rgb(11 42 56 / 0.06) 26%, rgb(11 42 56 / 0.3) 42%, rgb(11 42 56 / 0.92) 100%);
}
@media (hover: hover) {
	.kp-tile:hover .kp-tile__media img { scale: 1.04;
	}
}
.kp-tile:focus-within .kp-tile__media img { scale: 1.04;
}
.kp-tile__body { display: flex; flex-direction: column; width: 100%; padding: 1.5rem;
}
.kp-tile--xl .kp-tile__body, .kp-tile--l .kp-tile__body { padding: clamp(1.75rem, 1.5rem + 0.5vw, 2rem);
}
.kp-tile__title { margin: auto 0 0; padding-top: 2.5rem; max-width: 22ch; font-size: var(--wp--preset--font-size--lead); line-height: 1.25; letter-spacing: -0.01em;
}
.kp-tile--xl .kp-tile__title, .kp-tile--l .kp-tile__title { font-size: var(--wp--preset--font-size--section); letter-spacing: -0.035em; line-height: 1.1;
}
.kp-tile__title a { color: inherit; text-decoration: none;
}
.kp-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
}
.kp-tile__title a:focus-visible { outline: none;
}
.kp-tile:has(.kp-tile__title a:focus-visible) { outline: 2px solid var(--kp-blue); outline-offset: 3px;
}
.kp-tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1.25rem;
}
.kp-tile__metric { display: flex; margin: 0;
}
.kp-tile__num { font-size: var(--wp--preset--font-size--title); font-weight: 500; line-height: 1; letter-spacing: -0.035em; white-space: nowrap;
}
.kp-tile--xl .kp-tile__num, .kp-tile--l .kp-tile__num { font-size: var(--wp--preset--font-size--display);
}
.kp-tile__label { font-size: var(--wp--preset--font-size--chip); font-weight: 500; line-height: 1.3;
}
.kp-tile__word { margin: 0; font-size: var(--wp--preset--font-size--title); font-weight: 500; letter-spacing: -0.035em;
}
.kp-tile__chips { display: flex; flex-wrap: wrap; gap: 0.375rem;
}
.kp-tile:hover .kp-arrow--glass, .kp-tile:focus-within .kp-arrow--glass { background: var(--kp-white); color: var(--kp-ink);
}
/*
 Split tile: text on deep at the left, portrait image at the right (no text over a face).
 */
@media (min-width: 768px) {
	.kp-tile.is-split { display: grid; grid-template-columns: 1fr 1fr;
	}
	.kp-tile.is-split .kp-tile__media { position: relative; inset: auto; z-index: 0; order: 2;
	}
	.kp-tile.is-split::before { display: none;
	}
}
.kp-tile--feature .kp-tile__media { bottom: auto; height: 58%;
}
.kp-tile--feature::before { background: linear-gradient(180deg, rgb(11 42 56 / 0.45) 0%, transparent 18%, transparent 35%, var(--kp-deep) 58%);
}
.kp-post-cards { display: grid; gap: 0.75rem;
}
@media (min-width: 1024px) {
	.kp-post-cards { grid-template-columns: repeat(2, 1fr);
	}
}
.kp-post-card { position: relative; display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.25rem; padding: 0.75rem 1.25rem 0.75rem 0.75rem; border-radius: var(--kp-r-card); background: var(--kp-white);
}
@media (min-width: 640px) {
	.kp-post-card { grid-template-columns: 12rem 1fr auto; gap: 1.75rem;
	}
}
.kp-post-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--kp-r-inner); background: var(--kp-mist);
}
.kp-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--kp-dur-slow) var(--kp-ease-out);
}
@media (hover: hover) {
	.kp-post-card:hover img { scale: 1.04;
	}
}
.kp-post-card:focus-within img { scale: 1.04;
}
.kp-post-card__meta { display: flex; align-items: center; gap: 0.25rem 0.75rem; margin: 0; font-size: var(--wp--preset--font-size--chip); font-weight: 500;
}
.kp-post-card__title { margin: 0.75rem 0 0; font-size: var(--wp--preset--font-size--lead); line-height: 1.25; letter-spacing: -0.01em;
}
.kp-post-card__title a { color: inherit; text-decoration: none;
}
.kp-post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
}
@media (max-width: 639px) {
	.kp-post-card .kp-arrow { display: none;
	}
}
/*
 Service card (Next ServiceCard): film loop on hover with the scanner frame, title link stretched over the card, chip links above it.
 */
.kp-service-card { display: flex; flex-direction: column; padding: 0;
}
.kp-service-card .kp-film { border-radius: 0;
}
.kp-service-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem;
}
.kp-service-card__body > * { margin-block: 0;
}
.kp-service-card__body > * + * { margin-top: 0.5rem;
}
.kp-service-card .wp-block-heading a { color: inherit; text-decoration: none;
}
@media (hover: hover) {
	.kp-service-card:hover .kp-scan > span { opacity: 1; translate: 0 0;
	}
	.kp-service-card:hover .kp-film video { scale: 1.03;
	}
}
.kp-service-card:focus-within .kp-scan > span { opacity: 1; translate: 0 0;
}
/*
 Proof bento (home): team photo tile, numbers on white, mint AI tile
 */
.kp-bento { display: grid; gap: 0.75rem;
}
@media (min-width: 640px) and (max-width: 1199px) {
	.kp-bento { grid-template-columns: 1fr 1fr;
	}
	.kp-bento > :first-child, .kp-bento > :last-child { grid-column: span 2;
	}
}
@media (min-width: 1200px) {
	.kp-bento { grid-template-columns: 6fr 3fr 3fr; grid-template-rows: auto auto;
	}
	.kp-bento > :first-child { grid-row: span 2;
	}
	.kp-bento > :last-child { grid-column: span 2;
	}
}
.kp-bento > * { margin: 0; border-radius: var(--kp-r-card); min-height: 13rem;
}
.kp-bento__photo { position: relative; overflow: hidden; min-height: 22rem; padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; color: var(--kp-white);
}
.kp-bento__photo .wp-block-image { position: absolute; inset: 0; margin: 0; z-index: -2;
}
.kp-bento__photo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.kp-bento__photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
}
.kp-bento__photo { isolation: isolate;
}
/*
 Team tile as a small slider (Riku 27.11.2026: a changing team image; migrations 37 and 39; user 2.12.: dots, no pause
 button, a third photo). The first photo stays underneath; the current one of the others fades in over it.
 theme.js adds the dots (bottom right, level with the "Tiimi" link; user 2.12.); a countdown ring changes the photo every 6 s (user 2.12.: "vähän nopeampi"); it pauses on hover and keyboard focus and stops for good when a
 dot is clicked (WCAG 2.2.2). Without JavaScript the first photo stays. Opacity only.
 */
.kp-bento__photo .wp-block-image ~ .wp-block-image { opacity: 0; transition: opacity 1.2s var(--kp-ease-out);
}
.kp-bento__photo .wp-block-image ~ .wp-block-image.is-current { opacity: 1;
}
.kp-dots { position: absolute; bottom: 2.375rem; right: 1.75rem; display: flex; padding: 0 0.25rem; border-radius: 999px; background: rgb(11 42 56 / 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.kp-dots__dot { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer;
}
.kp-dots__dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgb(255 255 255 / 0.5); transition: background-color var(--kp-dur-base) var(--kp-ease-out), scale var(--kp-dur-base) var(--kp-ease-out);
}
.kp-dots__dot:hover::before { background: rgb(255 255 255 / 0.8);
}
.kp-dots__dot[aria-current="true"]::before { background: var(--kp-white); scale: 1.25;
}
/* Countdown ring around the active dot (user 2.12.: "animoida vaihto pyöreänä ympyränä joka etenee"): it fills in 6 s
   and its end changes the photo (theme.js listens to animationend), so ring and change never drift. Pauses with the
   slider; gone once the visitor picks a photo or with reduced motion. */
@property --kp-ring { syntax: "<angle>"; inherits: false; initial-value: 0deg;
}
.kp-dots__dot { position: relative;
}
.kp-bento__photo.is-playing .kp-dots__dot[aria-current="true"]::after { content: ""; position: absolute; inset: 0.1875rem; border-radius: 999px; background: conic-gradient(var(--kp-white) var(--kp-ring), rgb(255 255 255 / 0.25) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: kp-ring 6s linear forwards;
}
.kp-bento__photo.is-playing:is(:hover, :focus-within) .kp-dots__dot::after,
html[data-motion-paused] .kp-bento__photo.is-playing .kp-dots__dot::after { animation-play-state: paused;
}
@keyframes kp-ring {
	to { --kp-ring: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
	.kp-bento__photo .wp-block-image ~ .wp-block-image { transition: none;
	}
}
.kp-bento__mint { background: var(--kp-mint); color: var(--kp-deep);
}
/*
 AI hub cards: full rows (2 + 3), title, text, arrow ball (Next HubBody).
 */
.kp-hub-grid { display: grid; gap: 0.75rem;
}
@media (min-width: 782px) {
	.kp-hub-grid { grid-template-columns: repeat(6, 1fr);
	}
	.kp-hub-grid > * { grid-column: span 3;
	}
	.kp-hub-grid > :nth-last-child(-n+3):nth-child(n+3) { grid-column: span 2;
	}
}
.kp-hub-grid > * { margin: 0;
}
.kp-hub-card { display: flex; flex-direction: column; min-height: 13rem; padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
}
.kp-hub-card > * { margin-block: 0;
}
.kp-hub-card > p { margin-top: 0.75rem; padding-bottom: 2rem;
}
.kp-hub-card .wp-block-heading a, .kp-arrow-row .wp-block-heading a { color: inherit; text-decoration: none;
}
.kp-hub-card::after, .kp-arrow-row::after { content: ""; margin-top: auto; align-self: flex-end; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: color-mix(in srgb, var(--kp-ink) 7%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / 1.25rem no-repeat; transition: translate var(--kp-dur-base) var(--kp-ease-out), background-color var(--kp-dur-base) var(--kp-ease-out);
}
:is(.kp-hub-card, .kp-arrow-row):hover::after { translate: 4px 0; background-color: var(--kp-blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
}
/*
 Arrow rows (open jobs, about links; Next ArrowRow): white card, title + description, arrow at the right.
 */
.kp-arrow-rows { display: grid; gap: 0.75rem;
}
.kp-arrow-rows.is-three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.kp-arrow-rows > * { margin: 0;
}
.kp-arrow-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1.5rem; padding: 1.5rem 2rem;
}
.kp-arrow-row > * { grid-column: 1; margin: 0;
}
.kp-arrow-row > p { margin-top: 0.25rem;
}
.kp-arrow-row::after { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center;
}
/*
  ===== Article, TOC and related (consolidated 25.11.2026 from 104 rules; one place for this component) ===== 
 */
/*
 Article (single.html): meta row, wide image, 3/6/3 columns with the table of contents and related service.
 */
.kp-article-meta { gap: 0.5rem 1rem; align-items: center;
}
.kp-article { padding: var(--wp--preset--spacing--60) var(--kp-gutter) var(--wp--preset--spacing--50);
}
.kp-article__toc, .kp-article__aside { position: relative;
}
@media (min-width: 782px) {
	.kp-toc, .kp-related { position: sticky; top: 8rem;
	}
}
.kp-toc__list { gap: 0.625rem;
}
.kp-related { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-radius: var(--kp-r-card); background: var(--kp-white); color: var(--kp-ink); text-decoration: none;
}
.kp-related__text { flex: 1;
}
.kp-related__kicker { display: block; font-size: var(--wp--preset--font-size--chip); font-weight: 500;
}
.kp-related__title { display: block; margin-top: 0.25rem; font-size: var(--wp--preset--font-size--lead); font-weight: 500;
}
.kp-related:hover .kp-arrow { background: var(--kp-blue); color: var(--kp-white);
}
.kp-prose h3 { margin-top: 2em;
}
.kp-prose h4 { margin-top: 1.75em;
}
.kp-text-page > .kp-prose { max-width: var(--kp-wide); margin-inline: auto;
}
:root .kp-text-page .kp-prose > * { max-width: 44rem; margin-left: 0; margin-right: 0;
}
/*
 "Tässä artikkelissa": the section being read (aria-current, set by the toc block's view script) gets the blue dot.
 */
.kp-toc__list a[aria-current]::before { position: absolute; left: -1rem; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--kp-blue);
}
.kp-toc__list { padding-left: 1rem;
}
/*
 Article image (user 22.11.2026: was too big and cut off heads): narrower than the page, 16:9, focus on the upper part.
 */
.kp-toc { position: static;
}
.kp-toc__title { margin: 0; font-size: var(--wp--preset--font-size--body); font-weight: 500; letter-spacing: 0;
}
.kp-toc__list { display: block; margin: 0; padding: 0; list-style: none;
}
.kp-toc__list li { margin: 0;
}
.kp-toc__list a { display: block; position: static; font-weight: 400; line-height: 1.35; text-decoration: none; color: var(--kp-ink); transition: color var(--kp-dur-base) var(--kp-ease-out), border-color var(--kp-dur-base) var(--kp-ease-out);
}
.kp-toc__list a[aria-current]::before { content: none;
}
.kp-toc__list a:hover { text-decoration: underline; text-underline-offset: 3px;
}
.kp-toc__list a[aria-current] { font-weight: 600;
}
.kp-toc--aside .kp-toc__title { margin-bottom: 1rem;
}
.kp-toc--aside .kp-toc__list { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--kp-ink) 12%, transparent);
}
.kp-toc--aside .kp-toc__list a { padding: 0.5rem 0 0.5rem 1.25rem; border-left: 2px solid transparent;
}
.kp-toc--aside .kp-toc__list .is-sub a { padding-left: 2.25rem;
}
.kp-toc--aside .kp-toc__list a[aria-current] { border-left-color: var(--kp-blue);
}
.kp-toc--mobile { display: none;
}
@media (min-width: 782px) {
	.kp-toc-wrap { position: sticky; top: 8rem;
	}
}
@media (max-width: 781px) {
	.kp-toc--aside { display: none;
	}
	.kp-toc--mobile { display: block; border-radius: var(--kp-r-inner); background: var(--kp-white); box-shadow: 0 12px 28px -18px rgb(11 42 56 / 0.45);
	}
	.kp-toc--mobile summary { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.5rem 1.25rem; cursor: pointer; list-style: none;
	}
	.kp-toc--mobile summary::-webkit-details-marker { display: none;
	}
	.kp-toc--mobile summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate var(--kp-dur-base) var(--kp-ease-out);
	}
	.kp-toc--mobile[open] summary::after { rotate: -135deg; translate: 0 2px;
	}
	.kp-toc--mobile .kp-toc__title { flex: none;
	}
	.kp-toc__current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400;
	}
	.kp-toc__current:not(:empty)::before { content: "·"; margin-right: 0.75rem;
	}
	.kp-toc--mobile .kp-toc__list { max-height: 60svh; overflow-y: auto; padding: 0 1.25rem 0.75rem;
	}
	.kp-toc--mobile .kp-toc__list a { padding: 0.625rem 0;
	}
	.kp-toc--mobile .kp-toc__list .is-sub a { padding-left: 1rem;
	}
}
@media (max-width: 781px) and (prefers-reduced-motion: reduce) {
	.kp-toc--mobile summary::after { transition: none;
	}
}
@media (max-width: 781px) {
	.kp-article__toc { position: sticky; z-index: 20; top: calc(5rem + var(--wp-admin--admin-bar--height, 0px)); align-self: start; transition: top var(--kp-dur-moderate) var(--kp-ease-out);
	}
}
:root .kp-article__main > * { margin-block: 0;
}
.kp-article__main > * + * { margin-top: 1.25rem;
}
:root .kp-article__inner { margin-top: 2.5rem;
}
.kp-prose blockquote, .kp-prose .wp-block-quote { position: relative; margin: 2rem 0; padding: 0 0 0 2.25rem; border: 0; font-size: var(--wp--preset--font-size--lead); line-height: 1.5;
}
.kp-prose blockquote::before, .kp-prose .wp-block-quote::before { content: "\201D"; position: absolute; left: 0; top: -0.2em; color: var(--kp-blue); font-size: 3rem; line-height: 1;
}
.kp-share { display: flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem;
}
.kp-share__label { margin-right: 0.25rem; font-weight: 600;
}
.kp-share__link { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: color-mix(in srgb, var(--kp-ink) 7%, transparent); color: var(--kp-ink); transition: background-color var(--kp-dur-base) var(--kp-ease-out), color var(--kp-dur-base) var(--kp-ease-out);
}
.kp-share__link svg { width: 1.125rem; height: 1.125rem;
}
.kp-share__link:hover { background: var(--kp-ink); color: var(--kp-white);
}
/*
  ===== Stats, logos, quotes and team (consolidated 25.11.2026 from 104 rules; one place for this component) ===== 
 */
/*
 Result number (Next Stat)
 */
.kp-stat-block { display: flex; flex-direction: column;
}
.kp-stat-block.is-align-center { align-items: center; text-align: center;
}
.kp-stat-block__value { margin: 0; font-size: var(--wp--preset--font-size--display); font-weight: 500; line-height: 0.95; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.kp-stat-block.is-tone-blue .kp-stat-block__value { color: var(--kp-blue);
}
.kp-stat-block--lg .kp-stat-block__word { font-size: var(--wp--preset--font-size--title); letter-spacing: -0.035em;
}
.kp-stat-block__pre { margin-bottom: 0.25rem; font-size: var(--wp--preset--font-size--body); letter-spacing: 0; line-height: 1.4;
}
.kp-stat-block__label { margin: 0.75rem 0 0; max-width: 24ch;
}
/*
 Client logos marquee (Next hero logo bar)
 */
.kp-logos { color: var(--kp-ink);
}
.kp-logos.is-tone-light { color: var(--kp-white);
}
/*
 text stays white; the logos get their alpha below
 */
.kp-logos.is-tone-light .kp-logos__track, .kp-logos.is-tone-light .kp-logos__list { opacity: 0.85;
}
.kp-logos__inner { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; margin-inline: auto; padding: 1.25rem var(--kp-gutter);
}
.kp-logos__heading { margin: 0; flex-basis: 100%; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (min-width: 768px) {
	.kp-logos__inner { flex-wrap: nowrap;
	}
	.kp-logos__heading { flex-basis: auto; flex-shrink: 0;
	}
}
.kp-logos__track-wrap { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.kp-logos__track { display: flex; width: max-content;
}
.kp-logos__list { display: flex; align-items: center; gap: 4rem; margin: 0; padding: 0 4rem 0 0; list-style: none; flex-shrink: 0;
}
.kp-logos__list li { display: flex; flex-shrink: 0; justify-content: center;
}
.kp-logos__raster { width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.8;
}
.kp-logos.is-tone-dark .kp-logos__raster { filter: grayscale(1); opacity: 0.6; mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
	.kp-logos.is-marquee .kp-logos__track { animation: kp-marquee 40s linear infinite;
	}
}
/* Pause on hover and with the hero's pause button (WCAG 2.2.2): as specific as the rule that starts the marquee, which
   reset the play state with its shorthand (the pause did nothing; user 2.12.2026). */
.kp-logos.is-marquee .kp-logos__track-wrap:hover .kp-logos__track, html[data-motion-paused] .kp-logos.is-marquee .kp-logos__track { animation-play-state: paused;
}
/*
 Client quotes (Next QuoteCard)
 */
.kp-quote { border-radius: var(--kp-r-panel); background: var(--kp-mist); padding: clamp(3.5rem, 2.5rem + 2vw, 4rem) clamp(1.25rem, 4vw, 3rem); text-align: center;
}
.kp-quote__tabs { display: inline-flex; gap: 0.375rem; margin: 0 auto 2.25rem; padding: 0.375rem; border-radius: 999px; background: rgb(255 255 255 / 0.6);
}
.kp-quote__tab { display: grid; place-items: center; height: 3rem; padding: 0 1.25rem; border: 0; border-radius: 999px; background: none; color: rgb(18 25 29 / 0.6); cursor: pointer;
}
.kp-quote__tab[aria-selected="true"] { background: var(--kp-white); color: var(--kp-ink); box-shadow: 0 6px 18px -10px rgb(11 42 56 / 0.35);
}
.kp-quote__logo { margin: 0 auto 2rem;
}
.kp-quote__figure { margin: 0;
}
.kp-quote__figure:focus-visible { outline: none;
}
.kp-quote__text { margin: 0 auto; padding: 0; border: 0; max-width: 36ch; font-size: var(--wp--preset--font-size--quote); line-height: 1.3; letter-spacing: -0.018em; text-wrap: balance;
}
.kp-quote__text p { margin: 0;
}
.kp-quote__mark { background: linear-gradient(transparent 58%, rgb(143 201 200 / 0.75) 58%, rgb(143 201 200 / 0.75) 92%, transparent 92%); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.kp-quote__by { margin-top: 2rem;
}
.kp-quote__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.25rem;
}
.kp-quote__nav button { padding: 0; border: 0; background: none; border-radius: 999px; cursor: pointer;
}
.kp-quote__nav [data-kp-prev] svg { rotate: 180deg;
}
.kp-quote__dots { display: flex; gap: 0.375rem;
}
.kp-quote__dots span { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgb(18 25 29 / 0.2); transition: background-color var(--kp-dur-base) var(--kp-ease-out);
}
/*
 the width changes without animation (motion: transform/opacity/colour only)
 */
.kp-quote__dots span.is-active { width: 1.5rem; background: var(--kp-ink);
}
.kp-stats-row { display: grid; gap: 2.5rem 2rem; max-width: 64rem; margin-inline: auto;
}
@media (min-width: 768px) {
	.kp-stats-row { grid-template-columns: repeat(3, 1fr);
	}
}
.kp-stats-row > * { margin: 0;
}
.kp-team__name { margin: 0.75rem 0 0; font-size: var(--wp--preset--font-size--body); font-weight: 500; letter-spacing: 0;
}
.kp-team__role { margin: 0.125rem 0 0;
}
.kp-team__img img { border-radius: var(--kp-r-inner);
}
/*
 Job page: three check-list cards side by side; recruitment benefits in four.
 */
.kp-job-cards { display: grid; gap: 0.75rem;
}
@media (min-width: 900px) {
	.kp-job-cards { grid-template-columns: repeat(3, 1fr);
	}
}
.kp-job-cards > * { margin: 0;
}
.kp-job-cards .wp-block-list { margin-top: 1.5rem;
}
/*
 Team faces (mega menu)
 */
.kp-faces { display: grid; grid-template-columns: repeat(5, 3rem); gap: 0.5rem; margin: 0.75rem 0 1rem; padding: 0; list-style: none;
}
.kp-faces a { display: block; border-radius: 999px; transition: scale var(--kp-dur-base) var(--kp-ease-out);
}
.kp-faces a:hover, .kp-faces a:focus-visible { scale: 1.1;
}
.kp-faces img { display: block; width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover; background: var(--kp-mist); box-shadow: 0 0 0 2px var(--kp-deep);
}
/*
 Team row (Clicky "A talented team of specialists, ready to help")
 */
.kp-teamrow { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding: 1.75rem 2rem; border-radius: var(--kp-r-card); background: var(--kp-white);
}
.kp-teamrow__faces { display: flex; margin: 0; padding: 0; list-style: none;
}
.kp-teamrow__faces li + li { margin-left: -0.75rem;
}
.kp-teamrow__faces img { display: block; width: 3.5rem; height: 3.5rem; border-radius: 999px; border: 3px solid var(--kp-white); object-fit: cover; background: var(--kp-mist);
}
.kp-teamrow__text { flex: 1 1 18rem;
}
.kp-teamrow__title { margin: 0; font-size: var(--wp--preset--font-size--section);
}
.kp-teamrow__text p { margin: 0.375rem 0 0;
}
.kp-teamrow__link { margin: 0;
}
@media (max-width: 599px) {
	.kp-teamrow__faces li:nth-child(n+7) { display: none;
	}
}
.kp-case-lead .kp-stats-row { max-width: 64rem; margin-inline: auto; margin-top: 3rem;
}
@media (min-width: 900px) {
	.kp-stats-row:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr);
	}
}
@media (min-width: 600px) and (max-width: 899px) {
	.kp-stats-row:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr);
	}
}
/*
 "Yli" above a blue number is small text: ink, not blue (WCAG 1.4.3; axe 22.11.2026).
 */
.kp-stat-block.is-tone-blue .kp-stat-block__pre { color: var(--kp-ink);
}
@media (max-width: 639px) {
	.kp-quote { padding-block: 2.5rem;
	}
	.kp-quote__by { margin-top: 1.25rem;
	}
	.kp-quote__nav { margin-top: 1.5rem;
	}/*
 The quote's logo tabs fit a 360 px phone (they were 342 px wide and pushed the page sideways).
 */
	.kp-quote__tabs { margin-bottom: 1.5rem; max-width: 100%;
	}
	.kp-quote__tab { min-width: 0; padding-inline: 0.75rem;
	}
}
/*
 Big numbers on one line (user 22.11.2026: "isot luvut esim 50 % ja 2+ v eri riveillä", also the case tiles).
   Stat tiles: "yli" sits before the number on the same baseline. Case tiles: the label always under the number with two
   lines reserved, service chips under the logo, so every tile in a row has its number at the same height.
 */
.kp-stat-block__pre { display: inline; margin: 0 0.375rem 0 0; vertical-align: baseline;
}
/*
 Word results (YTK "Strategiasta toteutukseen", Kalevala "Google & Meta") wrap: nowrap is for numbers only (the YTK
   case page overflowed at 1024–1440 px).
 */
.kp-stat-block__value:has(.kp-stat-block__word) { white-space: normal; font-size: var(--wp--preset--font-size--section); line-height: 1.15;
}
.kp-stat-block__word { overflow-wrap: break-word; line-height: 1.15;
}
.kp-stat-block--lg .kp-stat-block__word, .kp-stat-block .kp-stat-block__word { font-size: var(--wp--preset--font-size--section); letter-spacing: -0.015em;
}
/*
 A symbol as the result (Viherpeukalot 📈 🌱) at the size of the numbers beside it.
 */
.kp-stat-block__value:has(.kp-stat-block__word.is-symbol) { font-size: var(--wp--preset--font-size--display); line-height: 0.95;
}
.kp-stat-block .kp-stat-block__word.is-symbol { font-size: inherit;
}
/*
 Team page: every card's LinkedIn link sits on the same line, whatever the length of the title above it.
 */
.kp-team .wp-block-post { display: flex;
}
.kp-team .kp-team__card { display: flex; flex-direction: column; width: 100%;
}
.kp-team .kp-team__card > .kp-team__role { margin-bottom: 0.75rem;
}
/*
 Team card hover (Clicky /team model, user 22.11.2026): the photo zooms slowly inside its rounded frame; the frame and
   the card stay still. Transform only; no motion with reduced motion.
 */
.kp-team__img { overflow: clip; border-radius: var(--kp-r-inner);
}
.kp-team__img img { transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root .kp-team__card:hover .kp-team__img img, :root .kp-team__card:focus-within .kp-team__img img { transform: scale(1.035);
}
@media (prefers-reduced-motion: reduce) {
	:root .kp-team__img img { transition: none;
	}
	:root .kp-team__card:hover .kp-team__img img, :root .kp-team__card:focus-within .kp-team__img img { transform: none;
	}
}
.kp-logos__inner { max-width: calc(var(--kp-wide) + 2 * var(--kp-gutter));
}
.kp-stats-row.kp-accent { border-radius: 2rem; padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}
:is(.kp-content > .kp-section.kp-accent, .kp-stats-row.kp-accent)::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 639px) {
	.kp-stats-row.kp-accent { border-radius: 1.5rem;
	}
}
.kp-stats-row.kp-accent .kp-stat-block, .kp-stats-row.kp-accent .kp-stat-block * { color: var(--kp-white);
}
.kp-team .kp-team__card > .kp-person-li { margin-top: auto;
}
/*
 Team profiles (27.11.2026, /tiimi/<name>/, template single-kumpula_person.html; user: "enemmän clicky, above fold",
   "samat pillerit", shorter text). Clicky's profile: name, role, a short intro and two pills (blue contact, light
   LinkedIn) on the left, a large portrait on the right, all in the first screen on the page's own surface, then "More
   of the team". The mint zigzag sits behind the portrait (brand symbol, as on the share cards).
 */
.kp-profile-hero { position: relative; z-index: 0; padding: 8.5rem var(--kp-gutter) var(--wp--preset--spacing--60); overflow-x: clip;
}
:root .kp-profile-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--wp--preset--spacing--60); align-items: center; width: 100%; margin: 0;
}
:root .kp-profile-hero__text > * { margin-block: 0;
}
.kp-profile-hero__text { max-width: 36rem;
}
:root .kp-profile-hero__name { margin-top: 0.875rem;
}
:root .kp-profile-hero__role { margin-top: 0.5rem;
}
:root .kp-profile-hero__intro { margin-top: 1.75rem;
}
:root .kp-profile-hero__intro > * { margin-block: 0;
}
:root .kp-profile-hero__intro > * + * { margin-top: 1.25rem;
}
:root .kp-profile-aside { gap: 1rem;
}
:root .kp-profile-aside > * { margin: 0;
}
.kp-profile-aside .wp-block-image img { display: block; border-radius: 999px;
}
:root .kp-profile-hero__actions { gap: 0.75rem; margin-top: 2rem;
}
:root .kp-profile-hero__actions > * { margin: 0;
}
.kp-person-li.has-label { display: inline-flex; gap: 0.5rem; width: auto; height: auto; margin: 0; padding: 0.95rem 1.5rem; border-radius: var(--wp--custom--radius--pill); background: var(--kp-mist); font-size: var(--wp--preset--font-size--body); font-weight: 500; line-height: 1; text-decoration: none;
}
.kp-person-li.has-label:hover { background: var(--kp-ink); color: var(--kp-white);
}
.kp-profile-hero__media { position: relative;
}
.kp-profile-hero__media::before { content: ""; position: absolute; z-index: 0; left: -34%; bottom: -14%; width: 78%; aspect-ratio: 1; background: url(../brand/zigzag-mint.svg) no-repeat center / contain;
}
:root .kp-profile-hero__img { position: relative; z-index: 1; margin: 0; overflow: clip; border-radius: var(--kp-r-card);
}
.kp-profile-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover;
}
.kp-team-more__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem;
}
:root .kp-team-more__head > * { margin: 0;
}
:root .kp-team-more__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wp--preset--spacing--40); margin: 0; padding: 0; list-style: none;
}
.kp-team-more .kp-team__img { display: block; aspect-ratio: 4 / 5; overflow: clip; border-radius: var(--kp-r-inner); background: var(--kp-mist);
}
.kp-team-more .kp-team__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.kp-team-more .kp-team__card:hover .kp-team__img img { transform: scale(1.035);
}
@media (prefers-reduced-motion: reduce) {
	.kp-team-more .kp-team__img img { transition: none;
	}
	.kp-team-more .kp-team__card:hover .kp-team__img img { transform: none;
	}
}
@media (max-width: 781px) {
	.kp-profile-hero { padding-top: 7.5rem;
	}
	:root .kp-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
	}
	.kp-profile-hero__media { max-width: 22rem;
	}
	.kp-profile-hero__media::before { left: -12%; bottom: -10%; width: 60%;
	}
	:root .kp-team-more__list { grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.kp-team__name a { color: inherit; text-decoration: none;
}
.kp-team__name a:hover { text-decoration: underline; text-underline-offset: 0.18em;
}
/*
 Linked faces (home heading, team row): the hovered face grows a little and its neighbours slide apart to give it room
   (user 27.11.2026: lifting it over the next face made the hover jump between the two and flicker). Only the photos
   move; the links' hit areas stay where they are, so the face under the pointer never changes.
 */
.kp-teamrow__faces a, .kp-inline-faces a { display: block; border-radius: 999px;
}
.kp-inline-faces a { display: inline-block; line-height: 0;
}
.kp-inline-faces a + img, .kp-inline-faces img + a, .kp-inline-faces a + a { margin-left: -0.28em;
}
.kp-inline-faces img, .kp-teamrow__faces img { position: relative; transition: translate var(--kp-dur-base) var(--kp-ease-out), scale var(--kp-dur-base) var(--kp-ease-out);
}
.kp-inline-faces a:hover img, .kp-teamrow__faces a:hover img { z-index: 1; scale: 1.12;
}
.kp-inline-faces > img:has(~ a:hover), .kp-inline-faces > a:has(~ a:hover) img { translate: -0.2em 0;
}
.kp-inline-faces > a:hover ~ img, .kp-inline-faces > a:hover ~ a img { translate: 0.2em 0;
}
.kp-teamrow__faces li:has(~ li a:hover) img { translate: -0.6rem 0;
}
.kp-teamrow__faces li:has(a:hover) ~ li img { translate: 0.6rem 0;
}
@media (prefers-reduced-motion: reduce) {
	.kp-inline-faces img, .kp-teamrow__faces img { transition: none;
	}
}
/*
 Mega menu as the Next preview (user 22.11.2026: "vaaleampi, tiimin ihmisten ympärillä valkoiset reunat"): no page dim
   behind the glass, white rings on the team faces, section links as text + small arrow (no ball).
 */
.kp-mega .kp-faces img { box-shadow: 0 0 0 2px var(--kp-white);
}
.kp-home-hero .kp-logos { background: rgb(0 0 0 / 0.25); backdrop-filter: blur(4px); border-top: 1px solid rgb(255 255 255 / 0.15);
}
/*
 Article quote with the speaker (inc/quote-person.php): a mist card, the blue quote mark, the text at lead size and the
   speaker's photo in a white-ringed circle like the team faces elsewhere (user 22.11.2026).
 */
:root .kp-prose .wp-block-quote.kp-quote-person { margin-block: 2.5rem; padding: 2rem 2rem 1.75rem 4.25rem; border-radius: var(--wp--custom--radius--card, 1.75rem); background: var(--kp-mist);
}
:root .kp-prose .wp-block-quote.kp-quote-person::before { left: 1.5rem; top: 1.75rem; font-size: 3.5rem;
}
:root .kp-prose .wp-block-quote.kp-quote-person > p { margin: 0;
}
:root .kp-prose .wp-block-quote.kp-quote-person > p + p { margin-top: 1rem;
}
:root .kp-prose .wp-block-quote.kp-quote-person .kp-cite { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; font-style: normal; font-size: var(--wp--preset--font-size--body, 1.125rem); line-height: 1.35;
}
.kp-prose .wp-block-quote.kp-quote-person .kp-cite__photo { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 999px; object-fit: cover; object-position: top; box-shadow: 0 0 0 3px var(--kp-white); margin: 0;
}
.kp-prose .wp-block-quote.kp-quote-person .kp-cite__text { display: flex; flex-direction: column;
}
.kp-prose .wp-block-quote.kp-quote-person .kp-cite__name { font-weight: 600;
}
@media (max-width: 639px) {
	:root .kp-prose .wp-block-quote.kp-quote-person { padding: 3.75rem 1.25rem 1.5rem;
	}
	:root .kp-prose .wp-block-quote.kp-quote-person::before { left: 1.25rem; top: 1.25rem;
	}
}
/*
 Article (Next preview model, user 22.11.2026: the face filled the full-width hero): a light text hero like the other
   templates, the featured image right under it as a large rounded picture; its crop follows "Heron kohdistuspiste".
 */
.kp-article > .kp-article__image { margin: 0 0 var(--kp-section-pad);
}
@media (max-width: 639px) {
	:root .kp-article__image img { border-radius: var(--wp--custom--radius--card, 1.75rem);
	}
}
/*
 The article picture sits in the text column, at the top of the content (user 22.11.2026: "keskellä osa kontenttia").
 */
:root .kp-article__main .kp-article__image { margin: 0 0 2rem !important;
}
:root .kp-article__image img { border-radius: var(--wp--custom--radius--card, 1.75rem);
}
@media (max-width: 639px) {
	:root .kp-article__image img { aspect-ratio: 3 / 2 !important;
	}
}
:root .kp-prose h2 { font-size: var(--wp--preset--font-size--section); margin-top: 2.5rem;
}
/*
 Reading measure: paragraphs and list items in sections and articles stop at ~68 characters.
 */
:root :is(.kp-section, .kp-prose, .kp-text-page) :is(p, li) { max-width: 40rem;
}
/*
 Article: title, picture and text on the page's left edge; "Tällä sivulla" and the related service in a sticky right
	   rail that follows the reader (user 23.11.2026: "Tällä sivulla ei seuraa skrollausta"). The service card also sits
	   in the text column for phones; the rail copy (kp-article__rail-service) is desktop-only.
 */
@media (min-width: 1024px) {
	:root .kp-article__cols { display: grid !important; grid-template-columns: minmax(0, 40rem) minmax(2rem, 1fr) 17rem; gap: 0 !important; align-items: start;
	}
	:root .kp-article__cols > .kp-article__main { grid-column: 1; grid-row: 1; margin: 0 !important;
	}
	:root .kp-article__cols > .kp-article__toc { grid-column: 3; grid-row: 1; margin: 0 !important; align-self: start; display: flex !important; flex-direction: column; gap: 1.5rem; position: sticky; z-index: 20; top: calc(8.5rem + var(--wp-admin--admin-bar--height, 0px)); transition: top var(--kp-dur-moderate) var(--kp-ease-out);
	}
	:root .kp-article__inner { display: block !important;
	}
	:root .kp-article__inner > .wp-block-column { margin: 0 !important;
	}
	.kp-article__inner > .kp-article__aside { display: none;
	}
}
@media (max-width: 1023px) {
	:root .kp-article__rail-service { display: none !important;
	}
}
/*
 Article rail (user 25.11.2026, "Tervetuloa Kumpulaan, Kaisa"): the rail column is the sticky element; the old own
   sticky of .kp-toc / .kp-related (top 8rem) made the service card stop on its own and slide over a taller TOC.
 */
:root .kp-article__toc :is(.kp-toc, .kp-related, .kp-toc-wrap) { position: static;
}
/*
 The header slides away when scrolling down: the bar moves up to the top edge, and back under the header with it.
 */
@media (max-width: 781px) {
	body:has(.kp-header-wrap.is-hidden) .kp-article__toc { top: calc(0.5rem + var(--wp-admin--admin-bar--height, 0px));
	}
}
@media (min-width: 1024px) {
	body:has(.kp-header-wrap.is-hidden) .kp-article__cols > .kp-article__toc { top: calc(1.5rem + var(--wp-admin--admin-bar--height, 0px));
	}
}
:root .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) :is(.kp-breadcrumbs, .kp-breadcrumbs a, .kp-page-hero__title, .kp-page-hero__lead, .kp-article-meta) { color: var(--kp-ink);
}
/*
 Article hero meta on a photo: the category chip as glass with white text (it was white on white).
 */
.kp-page-hero .kp-article-meta .kp-chip-terms a { background: rgb(255 255 255 / 0.18); color: var(--kp-white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.kp-page-hero:not(:has(.wp-block-cover__image-background, video)) .kp-article-meta .kp-chip-terms a { background: var(--kp-white); color: var(--kp-ink);
}
:root .kp-page-hero .kp-article-meta { margin-top: 1rem; gap: 0.75rem; align-items: center;
}
:root .kp-page-hero:not(:has(.wp-block-cover__image-background, video)) .kp-page-hero__copy:has(.kp-article-meta) .kp-page-hero__title { font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3rem); line-height: 1.1;
}
@media (min-width: 1024px) {
	:root .kp-page-hero .kp-page-hero__copy:has(.kp-article-meta) { max-width: 40rem !important;
	}
}
.kp-article-card { height: 100%; padding: 0.75rem; border-radius: var(--kp-r-card); background: var(--kp-white);
}
.kp-article-card__img img { border-radius: var(--kp-r-inner);
}
.kp-article-card__body > * { margin-block: 0;
}
.kp-article-card__meta { gap: 0.75rem; align-items: center;
}
.kp-article-card__date { font-size: var(--wp--preset--font-size--chip); font-weight: 500;
}
.kp-article-card .wp-block-post-title a { text-decoration: none;
}
/*
 Blue panel with waves (closing call to action): the site's wave as a static background along the bottom edge. Only
   decoration, so it stays still (user 22.11.2026: the waves must not move inside the card).
 */
/*
 Article cards at the size of the current site's list (user 22.11.2026): three per row, compact body, excerpt two lines.
 */
.kp-article-card__body { padding: 1.25rem 0.75rem 0.75rem;
}
.kp-article-card__body > * + * { margin-top: 0.625rem;
}
.kp-article-card__excerpt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/*
 Article title like the other page titles (user 22.11.2026): large, left-aligned (constrained layout would centre it).
 */
/*
 Overflow fixes from the 1024/390 sweep (22.11.2026).
 */
.kp-post-card > * { min-width: 0;
}
.kp-post-card__title { hyphens: auto;
}
/*
 Long Finnish words in card headings (Markkinointiassistentti, Hakukonenäkyvyys) break with a hyphen instead of overflowing.
 */
:is(.is-style-card, .kp-tile, .kp-service-card) :is(h2, h3) { hyphens: auto; overflow-wrap: break-word;
}
@media (min-width: 640px) and (max-width: 1199px) {
	.kp-service-card .kp-film { aspect-ratio: 4 / 3;
	}
}
.kp-post-card__title { overflow-wrap: break-word;
}
.kp-tile[hidden] { display: none;
}
/*
 Bento: stronger shade under the team tile copy (audit mobile 4)
 */
.kp-bento__photo::before { background: linear-gradient(180deg, transparent 25%, rgb(11 42 56 / 0.9));
}
@media (max-width: 781px) {
	.kp-tiles--bento .kp-tiles__row { display: contents;
	}
	.kp-tiles--bento .kp-tile { min-height: 24rem;
	}
	.kp-tiles--bento .kp-tile.is-split { display: flex;
	}
	.kp-tiles--bento .kp-tile.is-split .kp-tile__media { position: absolute; inset: 0; z-index: -2; order: 0;
	}
	.kp-service-card .kp-film { aspect-ratio: 4 / 3;
	}
}
/*
 Six hub cards: two full rows of three (audit AI hub 2).
 */
@media (min-width: 782px) {
	.kp-hub-grid:has(> :nth-child(6)) > * { grid-column: span 2 !important;
	}
	.kp-hub-grid:has(> :nth-child(3):last-child) > * { grid-column: span 2;
	}
	/* Four cards: two equal rows of two (27.11.2026: the 2 + 3 rule left 2 wide + 2 narrow and a gap on /palvelut/). */
	.kp-hub-grid:has(> :nth-child(4):last-child) > * { grid-column: span 3;
	}
}
@media (min-width: 1200px) {
	.kp-post-cards:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr);
	}
}
/*
 Phones: the two number tiles side by side (shorter home page).
 */
@media (max-width: 639px) {
	.kp-bento { grid-template-columns: 1fr 1fr;
	}
	.kp-bento > .kp-bento__photo, .kp-bento > .kp-bento__mint { grid-column: span 2;
	}
	.kp-bento > * { min-height: 0;
	}
}
/*
 Arrow links on photos (home bento team tile): the glass ball of the case tiles, white arrow (user 22.11.2026:
   the dark default arrow vanished into the photo).
 */
.kp-bento__photo .wp-block-button.is-style-arrow .wp-block-button__link { color: var(--kp-white);
}
.kp-bento__photo .wp-block-button.is-style-arrow .wp-block-button__link::after {
	background-color: rgb(255 255 255 / 0.2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
	backdrop-filter: blur(12px);
}
.kp-bento__photo .wp-block-button.is-style-arrow .wp-block-button__link:is(:hover, :focus-visible)::after {
	background-color: var(--kp-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312191D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
}
@media (max-width: 639px) {
	.kp-bento__photo { min-height: 17rem;
	}
	.kp-bento__mint { padding: 1.25rem 1.5rem;
	}
	.kp-service-card .kp-film { aspect-ratio: 16 / 10;
	}
	.kp-service-card > * + * { margin-top: 0;
	}
	.kp-bento > :not(.kp-bento__photo) { padding: 1.25rem;
	}
	.kp-bento__mint > .wp-block-buttons { margin-top: 1rem;
	}
}
.kp-tile__metric { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0.375rem;
}
.kp-tile__label { max-width: 30ch; min-height: 2.6em; padding-bottom: 0;
}
.kp-tile__chips { margin: 0.875rem 0 0;
}
/*
 Article cards: texts start at the same height in every card (user 22.11.2026: "tekstit eri tasoilla"). The text
   column sits at the top of the card, not centred; in a narrow card the chip and the date always stack, in a wide
   one they always share a line, so the title starts at the same place whatever the category's length.
 */
.kp-post-card { align-items: start;
}
.kp-post-card > .kp-arrow { align-self: center;
}
.kp-post-card__body { container-type: inline-size; padding-top: 0.25rem;
}
.kp-post-card__meta { flex-wrap: nowrap; white-space: nowrap;
}
@container (max-width: 17.5rem) {
	.kp-post-card__meta { flex-direction: column; align-items: flex-start; gap: 0.375rem;
	}
}
/*
 Original copy restored (user 22.11.2026: compare with kumpulantoimisto.fi): article excerpts on the home cards, the AI
   hub card's own link line, the case page's subtitle. The case intro stays off the Caset tiles (it hid the photo; the
   case page opens with it).
 */
.kp-post-card__excerpt { margin: 0.5rem 0 0; font-size: var(--wp--preset--font-size--chip); line-height: 1.45;
}
.kp-hub-card__more { margin-top: auto !important; padding-top: 1rem; font-weight: 500;
}
/*
 Three post cards in a row: image on top, text under it (side by side the titles broke into one-word lines).
 */
@media (min-width: 1200px) {
	.kp-post-cards:has(> :nth-child(3)) .kp-post-card { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: end; gap: 1.25rem 1rem; padding: 0.75rem 1.25rem 1.25rem 0.75rem;
	}
	.kp-post-cards:has(> :nth-child(3)) .kp-post-card__media { grid-column: 1 / -1; aspect-ratio: 16 / 10;
	}
	.kp-post-cards:has(> :nth-child(3)) .kp-post-card__body { padding-left: 0.5rem; align-self: start;
	}
}
/*
 Post cards side by side (image + text): the picture fills the card's height; on the 1,200 px grid the text runs a line
   longer and the fixed 4:3 picture left a gap under it (user 23.11.2026: "artikkeleiden kuvien koot hajosivat").
 */
@media (min-width: 640px) {
	.kp-post-cards:not(:has(> :nth-child(3))) .kp-post-card { align-items: stretch;
	}
	.kp-post-cards:not(:has(> :nth-child(3))) .kp-post-card__media { aspect-ratio: auto; height: 100%; min-height: 9rem;
	}
}
@media (min-width: 640px) and (max-width: 1199px) {
	.kp-post-cards .kp-post-card { align-items: stretch;
	}
	.kp-post-cards .kp-post-card__media { aspect-ratio: auto; height: 100%; min-height: 9rem;
	}
}
/*
 Case filter (/referenssit/): every tile the same height whatever row it lands in after filtering (rows were 400 or
   436 px by the longest title), and no scroll-reveal scale on these tiles (a tile moved by the filter could show at
   98 % mid-reveal). The filter's own FLIP motion stays. User 23.11.2026: "cards appear different sizes".
 */
.kp-tiles--grid { grid-auto-rows: 1fr;
}
.kp-tiles--grid > * { height: 100%; animation: none; opacity: 1; translate: none; scale: none;
}
/*
 One tile height in every filter state (a lone tile was 400 px, tiles in a full row 436 px).
 */
@media (min-width: 640px) {
	.kp-tiles--grid > .kp-tile { min-height: 27.25rem;
	}
}
/*
 Job cards with the title only (/kumpula/rekrytointi/, 23.11.2026): title and arrow on one line.
 */
.kp-arrow-row:not(:has(> p)) { align-items: center; align-content: center;
}
.kp-arrow-row:not(:has(> p)) > h3 { margin: 0;
}
.kp-arrow-row:not(:has(> p))::after { grid-row: 1;
}
.kp-mobile .kp-mega__inner .wp-block-column:has(.kp-tiles) { display: none;
}
/*
 Mega menu case card (Next model): the photo fills the whole card, the card is as tall as the panel.
 */
.kp-mega .wp-block-column:has(.kp-tiles) { display: flex; flex-direction: column;
}
.kp-mega .kp-tile--feature { flex: 1; min-height: 26rem;
}
.kp-mega .kp-tile--feature .kp-tile__media { inset: 0; height: auto;
}
.kp-mega .kp-tile--feature .kp-tile__media img { object-position: center 20%;
}
.kp-mega .kp-tile--feature::before { background: linear-gradient(180deg, rgb(11 42 56 / 0.45) 0%, transparent 22%, transparent 45%, rgb(11 42 56 / 0.92) 100%);
}
.kp-mega .kp-tile--feature .kp-tile__body { justify-content: space-between;
}
@media (min-width: 1024px) {
	.kp-header .kp-mega:not(:has(.kp-mega__group:nth-child(4))) .kp-tile--feature { min-height: 20rem;
	}
}
.kp-mobile__footer .kp-tiles, .kp-mobile__footer > div:has(.kp-tiles) { display: none;
}
:root:root:root .kp-mobile__footer .wp-block-button__link { min-height: 3rem; background: var(--kp-blue) !important; color: var(--kp-white) !important;
}
:root:root:root .kp-mobile :focus-visible { outline: 2px solid var(--kp-blue) !important; outline-offset: 2px; border-radius: 0.375rem;
}
/*
 Phone menu logo as the plain image (user 25.11.2026 on an iPhone: no logo in the menu; the mask + currentColor
   technique did not render there). On the paper sheet the SVG's own dark fill is right, so no mask is needed.
 */
.kp-mobile .kp-logo a, .kp-mobile .kp-logo .custom-logo-link { background: none; mask: none; -webkit-mask: none; width: 3rem; height: auto; aspect-ratio: auto;
}
:root:root:root .kp-mobile .kp-logo img { filter: none !important; opacity: 1 !important; display: block; width: 100% !important; height: auto !important;
}

/* Reflow at 320 px (QA 25.11.2026, WCAG 1.4.10): flex and grid children may shrink below their content width, so the
   contact panel's person row and the split heading column no longer push the page sideways; long words wrap. */
.kp-person > *, .kp-split > *, .kp-split__head, .kp-split__body { min-width: 0; }
:root .kp-person :is(p, a), :root main :is(h1, h2, h3) { overflow-wrap: break-word; }
/* Narrow phones: long Finnish compounds hyphenate in step text and chips instead of pushing the page sideways. */
@media (max-width: 420px) {
	.kp-steps > .kp-step > *, .kp-chip { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
	.kp-chip { white-space: normal; max-width: 100%; }
}
