/*
 * Turun Seudun Vuokravälitys – project styles on top of the Louhosteema bundle.
 * Values from Figma v4 (file KKW8FXRY01svCmxW9BhvsT), see docs/toteutussuunnitelma.md.
 *
 * Sections:
 *   1. Tokens
 *   2. Base typography
 *   3. Layout helpers
 *   4. Buttons, icons, diamond
 *   5. Header + mega menu
 *   6. Mobile navigation
 *   7. Footer
 *   … 23. Content pages (see section headers)
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Brand (Figma v4, client-approved) */
	--louhos-primary: #d3174c;
	--louhos-primary-rgb: 211, 23, 76;
	--louhos-primary-dark: #66003a;
	--tsvv-plum: #66003a;
	--tsvv-plum-rgb: 102, 0, 58;
	--louhos-accent: #1f9d55;
	--louhos-link-color: #d3174c;

	/* Neutrals */
	--louhos-headings: #66003a;
	--louhos-body-color: rgba(102, 0, 58, 0.88);
	--louhos-grey: #f4eee7;
	--louhos-border: #e8ddcf;
	--louhos-border-rgb: 232, 221, 207;

	/* Dark surfaces */
	--louhos-dark-1: #66003a;
	--louhos-dark-1-rgb: 102, 0, 58;
	--louhos-dark-2: #66003a;
	--louhos-dark-2-rgb: 102, 0, 58;

	/* Shape */
	--louhos-header-height: 96px;
	--louhos-radius: 14px;
	--louhos-radius-lg: 24px;

	/* Type */
	--louhos-font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tsvv-font-heading: "Quicksand", "Noto Sans", system-ui, sans-serif;

	/* Project tokens */
	--tsvv-beige-2: #e8ddcf;
	--tsvv-divider: #cec3b8;
	--tsvv-warning: #e8a317;
	--tsvv-ink: var(--tsvv-plum);
	--tsvv-text-muted: rgba(102, 0, 58, 0.72);
	--tsvv-shadow-panel: 0 24px 28px rgba(64, 0, 33, 0.18);
	--tsvv-container: 1440px;
	--tsvv-gutter: clamp(16px, 4vw, 120px);
	--tsvv-ease: cubic-bezier(0.22, 1, 0.36, 1);

	--bs-body-font-size: 1.0625rem; /* 17px */
	--bs-body-line-height: 1.65;
}

/* ==========================================================================
   2. Base typography
   ========================================================================== */

body {
	font-family: var(--louhos-font-family);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--louhos-body-color);
	background: #fff;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--tsvv-font-heading);
	font-weight: 700;
	color: var(--louhos-headings);
}

/* Display / H1: 80px, lh 1.04, -2px */
h1, .h1 {
	font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

/* H2: 46px, lh 1.14, -1px */
h2, .h2 {
	font-size: clamp(2rem, 1.55rem + 1.8vw, 2.875rem);
	line-height: 1.14;
	letter-spacing: -0.022em;
}

/* H3: 30px, lh 1.24, -0.5px */
h3, .h3 {
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	line-height: 1.24;
	letter-spacing: -0.017em;
}

/* H4: 22px, lh 1.3 */
h4, .h4 {
	font-size: 1.375rem;
	line-height: 1.3;
}

/* Lead: 20px, lh 1.6 */
.lead,
.tsvv-lead {
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
	font-weight: 400;
	line-height: 1.6;
}

strong, b {
	font-weight: 600;
}

a {
	color: var(--louhos-link-color);
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.tsvv-container {
	width: min(var(--tsvv-container), 100% - 2 * var(--tsvv-gutter));
	margin-inline: auto;
}

/* ==========================================================================
   4. Buttons, icons, diamond
   ========================================================================== */

.tsvv-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	vertical-align: middle;
}

/* Button: 56px, radius 14, Quicksand 17 bold. Hover: red fill slides in from
   the left (Figma "Täyttö"; an inset shadow keeps the background measurable for
   contrast checkers) and the arrow is replaced by a second one ("Nuoli B"). */
.tsvv-btn {
	--tsvv-btn-bg: var(--tsvv-plum);
	--tsvv-btn-color: #fff;
	--tsvv-btn-hover-bg: var(--louhos-primary);
	--tsvv-btn-hover-color: #fff;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 28px;
	overflow: hidden;
	border: 0;
	border-radius: var(--louhos-radius);
	background: var(--tsvv-btn-bg);
	box-shadow: inset 0 0 0 0 var(--tsvv-btn-hover-bg);
	color: var(--tsvv-btn-color);
	font-family: var(--tsvv-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.3s var(--tsvv-ease), box-shadow 0.4s var(--tsvv-ease);
}

.tsvv-btn:hover,
.tsvv-btn:focus-visible {
	box-shadow: inset 30em 0 0 0 var(--tsvv-btn-hover-bg);
	color: var(--tsvv-btn-hover-color);
}

.tsvv-btn__arrow {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	overflow: hidden;
}

.tsvv-btn__arrow .tsvv-icon {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	transition: transform 0.35s var(--tsvv-ease);
}

.tsvv-btn__arrow .tsvv-icon + .tsvv-icon {
	transform: translateX(-24px);
}

.tsvv-btn:hover .tsvv-btn__arrow .tsvv-icon,
.tsvv-btn:focus-visible .tsvv-btn__arrow .tsvv-icon {
	transform: translateX(24px);
}

.tsvv-btn:hover .tsvv-btn__arrow .tsvv-icon + .tsvv-icon,
.tsvv-btn:focus-visible .tsvv-btn__arrow .tsvv-icon + .tsvv-icon {
	transform: translateX(0);
}

.tsvv-btn--white {
	--tsvv-btn-bg: #fff;
	--tsvv-btn-color: var(--tsvv-plum);
}

/* Text link with arrow (e.g. hero "Jätä toimeksianto", "Lue välityspalveluista") */
.tsvv-btn--link {
	--tsvv-btn-bg: transparent;
	--tsvv-btn-color: var(--louhos-primary);
	--tsvv-btn-hover-color: var(--louhos-primary-dark);
	padding-inline: 4px;
	font-size: 1rem;
}

.tsvv-btn--link,
.tsvv-btn--link:hover,
.tsvv-btn--link:focus-visible {
	box-shadow: none;
}

.tsvv-btn--link .tsvv-btn__arrow,
.tsvv-btn--link .tsvv-btn__arrow .tsvv-icon {
	width: 18px;
	height: 18px;
}

.tsvv-on-red .tsvv-btn--link,
.tsvv-on-plum .tsvv-btn--link {
	--tsvv-btn-color: #fff;
	--tsvv-btn-hover-color: #fff;
}

.tsvv-on-plum :focus-visible,
.tsvv-on-red :focus-visible {
	outline-color: #fff;
}

.tsvv-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
	.tsvv-btn,
	.tsvv-btn__arrow .tsvv-icon {
		transition: none;
	}
}

/* Numbered diamond (Figma "v4 / Numero-timantti", 64px bounding box, Quicksand 22).
   A rounded square turned 45°: side = box / √2, so the box stays --d wide. */
.tsvv-diamond {
	--d: 64px;

	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: calc(var(--d) * 0.7071);
	height: calc(var(--d) * 0.7071);
	margin: calc(var(--d) * 0.1464);
	border-radius: 28%;
	background: var(--louhos-primary);
	transform: rotate(45deg);
}

.tsvv-diamond__num {
	color: #fff;
	font-family: var(--tsvv-font-heading);
	font-size: calc(var(--d) * 0.344);
	font-weight: 700;
	line-height: 1;
	transform: rotate(-45deg);
}

.tsvv-diamond--56 {
	--d: 56px;
}

.tsvv-diamond--sm {
	--d: 44px;
}

/* Icon tile (beige square with red icon) */
.tsvv-icon-tile {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary);
}

.tsvv-icon-tile .tsvv-icon {
	width: 19px;
	height: 19px;
}

/* ==========================================================================
   5. Header + mega menu (desktop ≥ 1280px)
   ========================================================================== */

.tsvv-header {
	position: relative;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--louhos-border);
}

.tsvv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.tsvv-brand {
	display: inline-flex;
	flex-shrink: 0;
	border-radius: 8px;
}

.tsvv-brand img {
	display: block;
	width: auto;
	height: 44px;
}

.tsvv-brand--square img {
	height: 56px;
}

.tsvv-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.5vw - 14px, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-nav__item {
	position: relative;
}

/* Top-level link / button: Noto Sans 500 15px + 3px marker below */
.tsvv-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 0 13px;
	border: 0;
	background: none;
	color: var(--tsvv-ink);
	font-family: var(--louhos-font-family);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.tsvv-nav__link::after {
	content: "";
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 4px;
	height: 3px;
	border-radius: 2px;
	background: var(--louhos-primary);
	opacity: 0;
	transform: translateX(-50%);
	transition: width 0.25s var(--tsvv-ease), opacity 0.25s var(--tsvv-ease);
}

.tsvv-nav__link .tsvv-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-nav__link:hover,
.tsvv-nav__link:focus-visible,
.tsvv-nav__item.is-open > .tsvv-nav__link {
	color: var(--louhos-primary);
}

.tsvv-nav__link:hover::after,
.tsvv-nav__link:focus-visible::after,
.tsvv-nav__item.is-open > .tsvv-nav__link::after {
	width: 12px;
	opacity: 1;
}

.tsvv-nav__item.is-open > .tsvv-nav__link .tsvv-icon {
	transform: rotate(180deg);
}

.tsvv-nav__item.is-active > .tsvv-nav__link {
	color: var(--louhos-primary);
	font-weight: 600;
}

.tsvv-nav__item.is-active > .tsvv-nav__link::after {
	width: 22px;
	opacity: 1;
}

.tsvv-header__right {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.tsvv-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tsvv-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.tsvv-header__phone .tsvv-icon {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
}

.tsvv-header__phone:hover,
.tsvv-header__phone:focus-visible {
	color: var(--louhos-primary);
}

/* Mega panel */
.tsvv-mega {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-radius: var(--louhos-radius-lg);
	background: #fff;
	box-shadow: var(--tsvv-shadow-panel);
}

.tsvv-mega__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 380px;
	padding: 14px 6px 6px;
}

.tsvv-mega__title {
	margin: 0;
	padding: 0 10px 10px;
	font-size: 1.125rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-mega__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-mega__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px 12px 12px;
	border-radius: 14px;
	color: var(--tsvv-ink);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.tsvv-mega__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tsvv-mega__label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.65;
}

.tsvv-mega__desc {
	color: var(--tsvv-text-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.tsvv-mega__arrow {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s ease, transform 0.25s var(--tsvv-ease);
}

.tsvv-mega__link:hover,
.tsvv-mega__link:focus-visible {
	background: var(--louhos-grey);
}

.tsvv-mega__link:hover .tsvv-mega__arrow,
.tsvv-mega__link:focus-visible .tsvv-mega__arrow,
.tsvv-mega__link[aria-current] .tsvv-mega__arrow {
	opacity: 1;
	transform: none;
}

.tsvv-mega__link[aria-current] .tsvv-mega__label {
	color: var(--louhos-primary);
}

.tsvv-mega__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--louhos-grey);
	color: var(--tsvv-ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.tsvv-mega__phone .tsvv-icon {
	width: 17px;
	height: 17px;
	color: var(--louhos-primary);
}

.tsvv-mega__phone:hover,
.tsvv-mega__phone:focus-visible {
	color: var(--louhos-primary);
}

/* Promo card (Figma "Nosto"): red, 276px, image 148px */
.tsvv-mega__promo {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	width: 276px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--tsvv-plum);
	color: #fff;
	text-decoration: none;
}

.tsvv-mega__promo-img {
	display: block;
	width: 100%;
	height: 148px;
	object-fit: cover;
}

.tsvv-mega__promo-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.tsvv-mega__promo-title {
	font-family: var(--tsvv-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.tsvv-mega__promo-text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-mega__promo-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-top: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-mega__promo-cta .tsvv-icon {
	width: 17px;
	height: 17px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-mega__promo:hover .tsvv-mega__promo-cta .tsvv-icon,
.tsvv-mega__promo:focus-visible .tsvv-mega__promo-cta .tsvv-icon {
	transform: translateX(4px);
}

.tsvv-mega__promo:focus-visible {
	outline: 3px solid var(--louhos-primary-dark);
	outline-offset: 2px;
}

/* Mobile toggle hidden on desktop */
.tsvv-header__toggle {
	display: none;
}

@media (min-width: 1280px) {
	.tsvv-header__inner {
		min-height: var(--louhos-header-height);
	}

	.tsvv-brand--square img {
		height: 72px;
	}

	.tsvv-header__panel {
		display: contents;
	}

	.tsvv-nav__drop {
		position: absolute;
		top: 100%;
		left: -24px;
		padding-top: 24px;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.25s var(--tsvv-ease), visibility 0s linear 0.25s;
	}

	/* Keep the last panels inside the viewport */
	.tsvv-nav__item:nth-last-child(-n + 5) > .tsvv-nav__drop {
		left: auto;
		right: -24px;
	}

	.tsvv-nav__item.is-open > .tsvv-nav__drop {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.25s var(--tsvv-ease), visibility 0s;
	}

	.tsvv-header__mobile-extra {
		display: none;
	}
}

/* 1280–1499px: the Figma header is drawn at 1680px, so the phone number
   collapses to an icon (the number stays available to screen readers). */
@media (min-width: 1280px) and (max-width: 1499.98px) {
	.tsvv-header__right {
		gap: 16px;
	}

	.tsvv-header__right .tsvv-header__phone {
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 12px;
		background: var(--louhos-grey);
	}

	.tsvv-header__right .tsvv-header__phone span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ==========================================================================
   6. Mobile navigation (< 1280px)
   ========================================================================== */

@media (max-width: 1279.98px) {
	.tsvv-header__inner {
		padding-block: 12px;
	}

	.tsvv-header__right {
		display: none;
	}

	.tsvv-header__toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		padding: 0 16px;
		border: 0;
		border-radius: var(--louhos-radius);
		background: var(--louhos-grey);
		color: var(--tsvv-ink);
		font-family: var(--tsvv-font-heading);
		font-size: 1rem;
		font-weight: 700;
	}

	.tsvv-header__burger {
		position: relative;
		display: inline-block;
		width: 20px;
		height: 14px;
	}

	.tsvv-header__burger span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.25s var(--tsvv-ease), opacity 0.2s ease;
	}

	.tsvv-header__burger span:nth-child(1) { top: 0; }
	.tsvv-header__burger span:nth-child(2) { top: 6px; }
	.tsvv-header__burger span:nth-child(3) { top: 12px; }

	.tsvv-header.is-menu-open .tsvv-header__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.tsvv-header.is-menu-open .tsvv-header__burger span:nth-child(2) { opacity: 0; }
	.tsvv-header.is-menu-open .tsvv-header__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	.tsvv-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - 100%);
		max-height: calc(100dvh - 100%);
		overflow-y: auto;
		padding: 8px var(--tsvv-gutter) 32px;
		border-bottom: 1px solid var(--louhos-border);
		background: #fff;
		box-shadow: var(--tsvv-shadow-panel);
	}

	.tsvv-header.is-menu-open .tsvv-header__panel {
		display: block;
	}

	.tsvv-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.tsvv-nav__item {
		border-bottom: 1px solid var(--louhos-border);
	}

	.tsvv-nav__link {
		justify-content: space-between;
		width: 100%;
		min-height: 56px;
		padding: 12px 0;
		font-family: var(--tsvv-font-heading);
		font-size: 1.125rem;
		font-weight: 700;
	}

	.tsvv-nav__link::after {
		display: none;
	}

	.tsvv-nav__link .tsvv-icon {
		width: 20px;
		height: 20px;
	}

	.tsvv-nav__drop {
		display: none;
		padding-bottom: 16px;
	}

	.tsvv-nav__item.is-open > .tsvv-nav__drop {
		display: block;
	}

	.tsvv-mega {
		flex-direction: column;
		padding: 0;
		box-shadow: none;
	}

	.tsvv-mega__links {
		width: auto;
		padding: 0;
	}

	.tsvv-mega__title {
		display: none;
	}

	.tsvv-mega__link {
		padding-inline: 0;
	}

	.tsvv-mega__arrow {
		opacity: 1;
		transform: none;
	}

	.tsvv-mega__promo {
		display: none;
	}

	.tsvv-header__mobile-extra {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding-top: 24px;
	}

	.tsvv-header__mobile-extra .tsvv-btn {
		width: 100%;
	}
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.tsvv-footer {
	padding: clamp(56px, 8vw, 88px) 0 40px;
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-footer a {
	color: inherit;
	text-decoration: none;
}

.tsvv-footer a:hover,
.tsvv-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-footer :focus-visible {
	outline-color: #fff;
}

.tsvv-footer__cols {
	display: grid;
	gap: 48px 32px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

@media (max-width: 1199.98px) {
	.tsvv-footer__contact {
		grid-column: 1 / -1;
	}
}

.tsvv-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tsvv-footer__brand img {
	display: block;
	width: auto;
	height: 52px;
}

.tsvv-footer__brand--square img {
	height: 72px;
}

.tsvv-footer__company {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.65;
}

.tsvv-footer__rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-style: normal;
	list-style: none;
}

.tsvv-footer__rows li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tsvv-footer__rows .tsvv-icon {
	width: 18px;
	height: 18px;
	color: #fff;
}

.tsvv-footer__social {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transition: background-color 0.2s ease;
}

.tsvv-footer__social a:hover,
.tsvv-footer__social a:focus-visible {
	background: var(--tsvv-plum);
}

.tsvv-footer__social .tsvv-icon {
	width: 20px;
	height: 20px;
}

.tsvv-footer__group + .tsvv-footer__group {
	margin-top: 36px;
}

/* Column headings: Quicksand 19px bold = large text, 4.0:1 on black passes AA */
.tsvv-footer .tsvv-footer__heading {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1.1875rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-footer__heading a {
	color: inherit;
}

.tsvv-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	color: #fff;
	list-style: none;
}

.tsvv-footer__rule {
	height: 1px;
	margin: clamp(48px, 6vw, 64px) 0 40px;
	border: 0;
	background: rgba(255, 255, 255, 0.3);
	opacity: 1;
}

.tsvv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-footer__bottom p {
	margin: 0;
}

@media (min-width: 1200px) {
	.tsvv-footer__cols {
		grid-template-columns: 340px repeat(4, auto);
		justify-content: space-between;
	}
}

/* ==========================================================================
   8. Shared block helpers
   ========================================================================== */

.tsvv-on-plum,
.tsvv-on-red {
	color: #fff;
}

.tsvv-on-plum :is(h1, h2, h3, h4, h5, h6),
.tsvv-on-red :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.tsvv-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.tsvv-section-head__title {
	max-width: 760px;
	margin: 0;
}

.tsvv-section-head__lead {
	max-width: 520px;
	margin: 0;
	color: rgba(var(--tsvv-plum-rgb), 0.8);
}

/* Icon square used in cards and feature lists (52px, radius 16) */
.tsvv-service__icon,
.tsvv-features__icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-service__icon .tsvv-icon,
.tsvv-features__icon .tsvv-icon {
	width: 24px;
	height: 24px;
}

/* Red surfaces (former black ones): red details turn white or plum */
.tsvv-on-red a:not([class]) {
	color: #fff;
}

:is(.tsvv-on-plum, .tsvv-on-red) .tsvv-service__icon,
.tsvv-on-red :is(.tsvv-features__icon, .tsvv-check__icon) {
	background: #fff;
	color: var(--louhos-primary);
}

.tsvv-on-red .tsvv-diamond {
	background: #fff;
}

.tsvv-on-red .tsvv-diamond__num {
	color: var(--louhos-primary);
}

.tsvv-on-red .tsvv-collage .tsvv-collage__sq {
	background: var(--tsvv-plum);
}

/* ==========================================================================
   9. Hero + property search
   ========================================================================== */

.tsvv-hero {
	position: relative;
	background: #fff;
}

.tsvv-hero__stage {
	position: relative;
	display: flex;
	flex-direction: column;
}

.tsvv-hero__inner {
	position: relative;
	overflow: hidden;
	padding: 56px 0 64px;
	border-bottom-right-radius: 40px;
}

.tsvv-hero__panel {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-bottom-right-radius: inherit;
	background: var(--tsvv-plum);
}

.tsvv-hero__deco {
	position: absolute;
	display: block;
	color: var(--louhos-primary);
}

.tsvv-hero__deco .tsvv-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Figma: 540px diamond at (630, 330) and 110px at (740, 70) of a 900×760 panel */
.tsvv-hero__deco--lg {
	left: 70%;
	top: 43.4%;
	width: 60%;
	aspect-ratio: 1;
}

.tsvv-hero__deco--sm {
	display: none;
	left: 82.2%;
	top: 9.2%;
	width: 12.2%;
	aspect-ratio: 1;
}

.tsvv-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 700px;
}

.tsvv-hero__title {
	margin: 0;
	letter-spacing: -0.02em;
}

/* Figma uses white at 90 % here; full white keeps the 20px lead at AA (5.3:1). */
.tsvv-hero__text {
	max-width: 600px;
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
	line-height: 1.6;
}

.tsvv-hero__text p {
	margin: 0;
}

.tsvv-hero__content .tsvv-buttons {
	margin-top: 8px;
	gap: 14px;
}

.tsvv-hero__media {
	position: relative;
	height: 300px;
}

.tsvv-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tsvv-hero__search {
	position: relative;
	z-index: 3;
	margin-top: -48px;
	padding-bottom: 8px;
}

@media (min-width: 992px) {
	.tsvv-hero__stage {
		display: block;
		min-height: clamp(600px, 45.25vw, 760px);
	}

	/* Panel and photo are positioned against the whole stage on desktop */
	.tsvv-hero__inner {
		position: static;
		overflow: visible;
		padding: clamp(72px, 6.1vw, 103px) 0 clamp(120px, 9vw, 150px);
	}

	.tsvv-hero__deco--sm {
		display: block;
	}

	.tsvv-hero__panel {
		z-index: 1;
		right: auto;
		width: 53.6%;
		border-bottom-right-radius: 56px;
	}

	.tsvv-hero__content {
		z-index: 2;
		gap: 28px;
		max-width: min(700px, 53.6vw - var(--tsvv-gutter) - 48px);
	}

	.tsvv-hero__media {
		position: absolute;
		inset: 0 0 0 50.6%;
		height: auto;
	}

	.tsvv-hero__search {
		margin-top: -110px;
		padding-bottom: 64px;
	}
}

/* Search card (Figma "Kohdehaku") */
.tsvv-search {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px clamp(16px, 2vw, 24px) 24px;
	border-radius: var(--louhos-radius-lg);
	background: #fff;
	box-shadow: 0 24px 60px rgba(43, 13, 23, 0.14);
}

.tsvv-search__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tsvv-search__tabs {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-x: auto;
}

.tsvv-search__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 12px;
	color: rgba(var(--tsvv-plum-rgb), 0.72);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tsvv-search__tab .tsvv-icon {
	width: 18px;
	height: 18px;
}

.tsvv-search__tab:hover {
	background: var(--louhos-grey);
	color: var(--tsvv-ink);
}

/* Active tab: Figma red text on #E8DDCF is 3.9:1, so the label uses the
   palette's plum (11:1) while the icon stays red. */
.tsvv-search__tab:has(input:checked) {
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary-dark);
}

.tsvv-search__tab:has(input:checked) .tsvv-icon {
	color: var(--tsvv-plum);
}

.tsvv-search__tab:has(input:focus-visible) {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-search__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: rgba(var(--tsvv-plum-rgb), 0.72);
	font-size: 0.875rem;
}

.tsvv-search__count strong {
	color: var(--tsvv-ink);
}

.tsvv-search__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--louhos-accent);
}

.tsvv-search__fields {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	align-items: end;
}

.tsvv-search__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tsvv-search__field label {
	color: var(--tsvv-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-search__box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 16px;
	border-radius: var(--louhos-radius);
	background: var(--louhos-grey);
	color: var(--tsvv-plum);
}

.tsvv-search__box:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-search__box > .tsvv-icon {
	width: 19px;
	height: 19px;
}

.tsvv-search__box input,
.tsvv-search__box select {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 24px 0 0;
	border: 0;
	background: transparent;
	color: var(--tsvv-ink);
	font-size: 1.0625rem;
	line-height: 1.65;
	appearance: none;
	outline: 0;
}

.tsvv-search__box input::placeholder {
	color: rgba(var(--tsvv-plum-rgb), 0.72);
	opacity: 1;
}

.tsvv-search__box select:invalid,
.tsvv-search__box select:has(option[value=""]:checked) {
	color: rgba(var(--tsvv-plum-rgb), 0.72);
}

.tsvv-search__chev {
	position: absolute;
	right: 16px;
	width: 18px;
	height: 18px;
	color: var(--tsvv-ink);
	pointer-events: none;
}

.tsvv-search__submit {
	min-height: 58px;
	padding-inline: 30px;
}

.tsvv-search__submit .tsvv-icon {
	width: 20px;
	height: 20px;
}

@media (min-width: 640px) {
	.tsvv-search__fields {
		grid-template-columns: repeat(2, 1fr);
	}

	.tsvv-search__field--location {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.tsvv-search__fields {
		grid-template-columns: minmax(0, 1fr) 190px 190px 170px auto;
	}

	/* Premises tab: no rooms field */
	.tsvv-search__fields:has(> [data-tsvv-search-rooms][hidden]) {
		grid-template-columns: minmax(0, 1fr) 210px 210px auto;
	}

	.tsvv-search__field--location {
		grid-column: auto;
	}
}

.tsvv-search__field[hidden],
.tsvv-search__count[hidden] {
	display: none;
}

/* ==========================================================================
   10. Stats
   ========================================================================== */

.tsvv-stats {
	padding: 30px 0 46px;
}

.tsvv-stats__list {
	display: grid;
	gap: 28px 0;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-stats__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 20px;
	border-left: 1px solid var(--louhos-border);
	color: var(--tsvv-plum);
}

.tsvv-stats__item:nth-child(odd) {
	padding-left: 0;
	border-left: 0;
}

.tsvv-stats__value {
	font-family: var(--tsvv-font-heading);
	font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.tsvv-stats__label {
	max-width: 220px;
	font-size: 1.0625rem;
	line-height: 1.65;
}

@media (min-width: 992px) {
	.tsvv-stats__list {
		display: flex;
		justify-content: space-between;
	}

	.tsvv-stats__item,
	.tsvv-stats__item:nth-child(odd) {
		flex: 0 1 248px;
		padding-left: 28px;
		border-left: 1px solid var(--louhos-border);
	}

	.tsvv-stats__item:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* ==========================================================================
   11. Service cards
   ========================================================================== */

.tsvv-services {
	padding: 24px 0 clamp(72px, 8vw, 120px);
}

.tsvv-services__grid {
	display: grid;
	gap: clamp(20px, 2.5vw, 36px);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.tsvv-services__grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.tsvv-services__grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsvv-service {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	color: var(--tsvv-ink);
}

.tsvv-service--white {
	border: 1px solid var(--louhos-border);
}

.tsvv-service--plum {
	background: var(--tsvv-plum);
}

.tsvv-service--beige {
	background: var(--tsvv-beige-2);
}

.tsvv-service--red {
	background: var(--louhos-primary);
}

.tsvv-service__img {
	display: block;
	width: 100%;
	height: clamp(200px, 19vw, 280px);
	object-fit: cover;
}

.tsvv-service__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 18px;
	padding: 32px clamp(20px, 2.2vw, 32px) 36px;
}

.tsvv-service--plum .tsvv-service__icon {
	background: #fff;
	color: var(--louhos-primary);
}

.tsvv-service__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	line-height: 1.24;
	letter-spacing: -0.005em;
}

/* Figma 88 % white on red is 4.4:1; full white keeps body text at AA. */
.tsvv-service__text {
	margin: 0;
	color: rgba(var(--tsvv-plum-rgb), 0.88);
}

:is(.tsvv-on-plum, .tsvv-on-red) .tsvv-service__text {
	color: #fff;
}

.tsvv-service__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-service__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.18);
	color: var(--tsvv-ink);
	font-weight: 600;
	line-height: 1.65;
	text-decoration: none;
}

:is(.tsvv-on-plum, .tsvv-on-red) .tsvv-service__links a {
	border-top-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.tsvv-service__links .tsvv-icon {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
	transition: transform 0.25s var(--tsvv-ease);
}

:is(.tsvv-on-plum, .tsvv-on-red) .tsvv-service__links .tsvv-icon {
	color: #fff;
}

.tsvv-service__links a:hover,
.tsvv-service__links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-service__links a:hover .tsvv-icon,
.tsvv-service__links a:focus-visible .tsvv-icon {
	transform: translateX(4px);
}

.tsvv-service__cta {
	margin-top: auto;
	padding-top: 8px;
}

.tsvv-service__cta .tsvv-buttons {
	margin-top: 0;
}

/* ==========================================================================
   12. Text + image (collage, steps, features)
   ========================================================================== */

.tsvv-ti {
	padding: clamp(72px, 8.3vw, 140px) 0;
}

.tsvv-ti--bg-grey {
	background: var(--louhos-grey);
}

.tsvv-ti--bg-red {
	padding-block: clamp(72px, 7.7vw, 130px);
	background: var(--louhos-primary);
}

.tsvv-ti__grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

@media (min-width: 992px) {
	.tsvv-ti__grid {
		grid-template-columns: minmax(0, 620fr) minmax(0, 720fr);
		gap: clamp(48px, 6vw, 100px);
	}

	.tsvv-ti--img-right .tsvv-ti__media {
		order: 2;
	}
}

.tsvv-ti__content {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tsvv-ti__title,
.tsvv-ti__lead {
	margin: 0;
}

.tsvv-ti__lead {
	color: rgba(var(--tsvv-plum-rgb), 0.8);
}

.tsvv-on-red .tsvv-ti__lead {
	color: #fff;
}

.tsvv-ti__content .tsvv-buttons {
	margin-top: 0;
	gap: 16px 24px;
}

/* Collage: photo with decorative squares (Figma "Kuvakollaasi") */
.tsvv-collage {
	position: relative;
	max-width: 620px;
}

.tsvv-collage__sq {
	position: absolute;
	display: none;
	aspect-ratio: 1;
}

.tsvv-collage__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 540 / 620;
	object-fit: cover;
	border-radius: 32px;
}

/* 620×700: beige 420px square bottom-left, red 180px top-right, photo inset 40px */
.tsvv-collage--beige-red {
	padding: 40px;
}

.tsvv-collage--beige-red .tsvv-collage__sq--a {
	display: block;
	left: 0;
	bottom: 0;
	width: 67.7%;
	border-radius: 40px;
	background: var(--tsvv-beige-2);
}

.tsvv-collage--beige-red .tsvv-collage__sq--b {
	display: block;
	top: 0;
	right: 0;
	width: 29%;
	border-radius: 28px;
	background: var(--louhos-primary);
}

/* 560×680: red 300px square top-left, photo offset 60px / 40px */
.tsvv-collage--red-left {
	max-width: 560px;
	padding: 40px 0 0 60px;
}

.tsvv-collage--red-left .tsvv-collage__img {
	aspect-ratio: 500 / 640;
}

.tsvv-collage--red-left .tsvv-collage__sq--a {
	display: block;
	top: 0;
	left: 0;
	width: 53.6%;
	border-radius: 36px;
	background: var(--louhos-primary);
}

.tsvv-collage__badge {
	position: absolute;
	z-index: 2;
	left: 53%;
	bottom: 3.6%;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 16px 22px 16px 16px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(43, 13, 23, 0.16);
	color: var(--tsvv-ink);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-collage__badge strong {
	color: var(--louhos-primary);
	font-family: var(--tsvv-font-heading);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	font-weight: 700;
	line-height: 1.24;
}

/* Numbered steps */
.tsvv-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--louhos-border);
}

.tsvv-steps__item:last-child {
	border-bottom: 0;
}

.tsvv-steps__title {
	margin: 0 0 6px;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-steps__text {
	max-width: 520px;
	margin: 0;
	color: rgba(var(--tsvv-plum-rgb), 0.8);
}

/* Features with icons (2 × 2) */
.tsvv-features {
	display: grid;
	gap: 36px 40px;
	margin: 0;
	padding: 12px 0 0;
	list-style: none;
}

@media (min-width: 576px) {
	.tsvv-features {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tsvv-features__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.tsvv-features__title {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-features__text {
	max-width: 320px;
	margin: 0;
	color: rgba(var(--tsvv-plum-rgb), 0.7);
}

.tsvv-on-red .tsvv-features__text {
	color: #fff;
}

/* ==========================================================================
   13. CTA card (banner)
   ========================================================================== */

.tsvv-cta {
	padding: clamp(64px, 7vw, 120px) 0;
}

.tsvv-cta__card {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: 36px;
	background: var(--tsvv-plum);
}

.tsvv-cta__deco {
	position: absolute;
	display: block;
	color: var(--louhos-primary);
	pointer-events: none;
}

.tsvv-cta__deco .tsvv-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Figma: 600px diamond at (520, -260) and 110px at (-40, 440) of a 1440×520 card */
.tsvv-cta__deco--lg {
	left: 36%;
	top: -50%;
	width: 600px;
	aspect-ratio: 1;
}

.tsvv-cta__deco--sm {
	left: -40px;
	bottom: -30px;
	width: 110px;
	aspect-ratio: 1;
}

.tsvv-cta__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: clamp(40px, 5vw, 94px) clamp(24px, 5vw, 80px);
}

.tsvv-cta__title,
.tsvv-cta__text p {
	margin: 0;
}

.tsvv-cta__title {
	max-width: 620px;
}

.tsvv-cta__text {
	max-width: 600px;
}

.tsvv-cta__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	margin: 0;
	padding: 0;
	font-weight: 600;
	line-height: 1.65;
	list-style: none;
}

.tsvv-cta__contact li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.tsvv-cta__contact .tsvv-icon {
	width: 20px;
	height: 20px;
}

.tsvv-cta__contact a {
	color: #fff;
	text-decoration: none;
}

.tsvv-cta__contact a:hover,
.tsvv-cta__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-cta__content .tsvv-buttons {
	margin-top: 8px;
	gap: 14px;
}

.tsvv-cta__media {
	position: relative;
	z-index: 1;
	padding: 0 24px 24px;
}

.tsvv-cta__img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 28px;
}

@media (min-width: 992px) {
	.tsvv-cta__card.has-image {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
		align-items: stretch;
		min-height: 520px;
	}

	.tsvv-cta__media {
		padding: 40px 40px 40px 0;
	}

	.tsvv-cta__img {
		height: 100%;
		min-height: 440px;
	}
}

/* ==========================================================================
   14. Page header (sivun otsikko)
   ========================================================================== */

.tsvv-page-head {
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 4vw, 56px);
	background: var(--tsvv-plum);
}

.tsvv-page-head__deco {
	position: absolute;
	display: block;
	color: var(--louhos-primary);
	pointer-events: none;
}

.tsvv-page-head__deco .tsvv-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Figma: 520px diamond at (-300, 338), 110px at (830, 50) on a 1680px band.
   Nudged lower so it does not sit under the popular-search row (keeps the
   text background measurable for contrast checks). */
.tsvv-page-head__deco--lg {
	left: -17.9%;
	top: 80%;
	width: min(520px, 40vw);
	aspect-ratio: 1;
}

.tsvv-page-head__deco--sm {
	display: none;
	left: 49.4%;
	top: 50px;
	width: clamp(56px, 6.5vw, 110px);
	aspect-ratio: 1;
}

.tsvv-page-head__grid {
	position: relative;
	display: grid;
	gap: 40px;
	align-items: center;
}

.tsvv-page-head__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

/* Breadcrumbs. Figma uses 70 % white; full white keeps 14px text at AA. */
.tsvv-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	list-style: none;
}

.tsvv-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tsvv-crumbs a {
	color: #fff;
	text-decoration: none;
}

.tsvv-crumbs a:hover,
.tsvv-crumbs a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-crumbs .tsvv-icon {
	width: 14px;
	height: 14px;
}

.tsvv-crumbs [aria-current] {
	font-weight: 600;
}

.tsvv-page-head__grid > * {
	min-width: 0;
}

.tsvv-page-head__title {
	max-width: 720px;
	margin: 0;
	font-size: clamp(2.125rem, 1.6rem + 2.8vw, 3.75rem);
	overflow-wrap: break-word;
	hyphens: auto;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.tsvv-page-head__lead {
	max-width: 640px;
	margin: 0;
}

/* Guide search */
.tsvv-guide-search {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 640px;
	min-height: 68px;
	padding: 8px 8px 8px 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 28px -10px rgba(0, 0, 0, 0.22);
	color: var(--louhos-primary);
}

.tsvv-guide-search:focus-within {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.tsvv-guide-search > .tsvv-icon {
	width: 22px;
	height: 22px;
}

.tsvv-guide-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--tsvv-ink);
	font-size: 1.0625rem;
	outline: 0;
}

.tsvv-guide-search input::placeholder {
	color: rgba(var(--tsvv-plum-rgb), 0.72);
	opacity: 1;
}

.tsvv-guide-search__submit {
	min-height: 52px;
	padding-inline: 24px;
	border-radius: 13px;
}

.tsvv-guide-search__popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
}

.tsvv-guide-search__popular ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-chip {
	padding: 6px 12px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: var(--tsvv-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tsvv-chip:hover,
.tsvv-chip:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tsvv-page-head__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.tsvv-page-head__benefits li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 12px;
	/* Figma: 14 % white on red (white text 4.1:1). A solid darker red keeps AA. */
	background: #80134f;
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-page-head__benefits .tsvv-icon {
	width: 16px;
	height: 16px;
}

/* Photo collage: plum square top-right, photo 520×440 */
.tsvv-page-head__media {
	position: relative;
	max-width: 560px;
	padding: 40px 40px 0 0;
}

.tsvv-page-head__sq {
	position: absolute;
	top: 0;
	right: 0;
	width: 43%;
	aspect-ratio: 1;
	border-radius: 32px;
	background: var(--louhos-primary);
}

.tsvv-page-head__img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 520 / 440;
	object-fit: cover;
	border-radius: 32px;
}

/* "Next steps" card */
.tsvv-page-head__card {
	align-self: center;
	padding: 28px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(43, 13, 23, 0.18);
	color: var(--tsvv-ink);
}

.tsvv-page-head__card .tsvv-page-head__card-title {
	margin: 0 0 16px;
	color: var(--tsvv-ink);
	font-size: 1.125rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-page-head__steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	list-style: none;
}

.tsvv-page-head__steps li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tsvv-diamond--xs {
	--d: 30px;
}

.tsvv-diamond--52 {
	--d: 52px;
}

@media (min-width: 992px) {
	.tsvv-page-head__deco--sm {
		display: block;
	}

	.tsvv-page-head.has-side .tsvv-page-head__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
		gap: clamp(40px, 5vw, 80px);
	}

	.tsvv-page-head__card {
		max-width: 500px;
		justify-self: end;
	}
}

/* ==========================================================================
   15. Guides: stage cards, TOC, accordions
   ========================================================================== */

.tsvv-guides {
	padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 7vw, 120px);
}

.tsvv-stage-cards {
	display: grid;
	gap: 24px;
	margin: 0 0 clamp(40px, 5vw, 56px);
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.tsvv-stage-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsvv-stage-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	min-height: 260px;
	padding: clamp(24px, 2.2vw, 32px);
	border: 1px solid var(--louhos-border);
	border-radius: 24px;
	background: #fff;
	color: var(--tsvv-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.25s var(--tsvv-ease), transform 0.25s var(--tsvv-ease);
}

.tsvv-stage-card:hover,
.tsvv-stage-card:focus-visible {
	border-color: var(--louhos-primary);
	box-shadow: 0 18px 36px rgba(43, 13, 23, 0.12);
	transform: translateY(-2px);
}

.tsvv-stage-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tsvv-stage-card__icon {
	width: 30px;
	height: 30px;
	color: var(--louhos-primary);
}

.tsvv-stage-card__title {
	font-family: var(--tsvv-font-heading);
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
	font-weight: 700;
	line-height: 1.24;
}

.tsvv-stage-card__text {
	color: rgba(var(--tsvv-plum-rgb), 0.8);
}

.tsvv-stage-card__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--louhos-primary);
	font-weight: 600;
}

.tsvv-stage-card__count .tsvv-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-stage-card:hover .tsvv-stage-card__count .tsvv-icon {
	transform: translateX(4px);
}

.tsvv-stage-card--plum {
	border-color: var(--tsvv-plum);
	background: var(--tsvv-plum);
	color: #fff;
}

.tsvv-stage-card--plum:hover,
.tsvv-stage-card--plum:focus-visible {
	border-color: var(--louhos-primary);
}

.tsvv-stage-card--plum .tsvv-diamond {
	background: #fff;
}

.tsvv-stage-card--plum .tsvv-diamond__num,
.tsvv-stage-card--plum .tsvv-stage-card__count,
.tsvv-stage-card--plum .tsvv-stage-card__icon,
.tsvv-stage-card--plum .tsvv-stage-card__text {
	color: inherit;
}

.tsvv-stage-card--plum .tsvv-diamond__num {
	color: var(--tsvv-plum);
}

.tsvv-guides__layout {
	display: grid;
	gap: 40px;
}

.tsvv-guides__aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 992px) {
	.tsvv-guides__layout {
		grid-template-columns: 340px minmax(0, 1fr);
		gap: clamp(40px, 5vw, 72px);
		align-items: start;
	}

	.tsvv-guides__aside {
		position: sticky;
		top: 24px;
	}
}

@media (max-width: 991.98px) {
	/* On small screens the stage cards act as navigation; help card after the guides */
	.tsvv-toc {
		display: none;
	}

	.tsvv-guides__aside {
		order: 2;
	}
}

.tsvv-toc {
	padding: 24px 12px;
	border-radius: 20px;
	background: var(--louhos-grey);
}

.tsvv-toc__title {
	margin: 0;
	padding: 0 12px 8px;
	color: rgba(var(--tsvv-plum-rgb), 0.72);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tsvv-toc__list,
.tsvv-toc__sub {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-toc__sub {
	margin-top: 4px;
}

.tsvv-toc.is-enhanced .tsvv-toc__group:not(.is-active) .tsvv-toc__sub {
	display: none;
}

.tsvv-toc__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 9px 28px;
	border-radius: 10px;
	color: rgba(var(--tsvv-plum-rgb), 0.75);
	font-size: 0.9375rem;
	line-height: 1.65;
	text-decoration: none;
}

.tsvv-toc__link--group {
	padding-left: 12px;
	color: var(--tsvv-ink);
	font-weight: 600;
}

.tsvv-toc__link:hover,
.tsvv-toc__link:focus-visible {
	background: rgba(255, 255, 255, 0.6);
	color: var(--tsvv-ink);
}

.tsvv-toc__sub .tsvv-toc__link[aria-current] {
	padding-left: 28px;
	background: #fff;
	color: var(--louhos-primary);
}

.tsvv-toc__sub .tsvv-toc__link[aria-current]::before {
	content: "";
	position: absolute;
	left: 12px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--louhos-primary);
	transform: rotate(45deg);
}

.tsvv-help-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: 20px;
	background: var(--tsvv-plum);
}

.tsvv-help-card__title,
.tsvv-help-card p {
	margin: 0;
}

.tsvv-help-card__title {
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-help-card__contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-weight: 600;
	list-style: none;
}

.tsvv-help-card__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsvv-help-card__contact .tsvv-icon {
	width: 18px;
	height: 18px;
}

.tsvv-help-card a {
	color: #fff;
	text-decoration: none;
}

.tsvv-help-card a:hover,
.tsvv-help-card a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-guides__main {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 5vw, 64px);
}

.tsvv-guides__status {
	margin: 0;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--louhos-grey);
	font-weight: 600;
}

.tsvv-guide-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-margin-top: 24px;
}

.tsvv-guide-group__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.tsvv-guide-group__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
	line-height: 1.24;
	letter-spacing: -0.005em;
}

.tsvv-guide-group__intro {
	margin: 0 0 8px;
	color: rgba(var(--tsvv-plum-rgb), 0.75);
}

/* Accordion (Figma "v4 / Haitari") */
.tsvv-acc {
	border: 1px solid var(--louhos-border);
	border-radius: 18px;
	background: #fff;
	scroll-margin-top: 24px;
	transition: border-color 0.2s ease;
}

.tsvv-acc[open] {
	border-color: var(--louhos-primary);
	box-shadow: inset 0 0 0 0.5px var(--louhos-primary);
}

.tsvv-acc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px clamp(18px, 2vw, 28px);
	border-radius: 18px;
	cursor: pointer;
	list-style: none;
}

.tsvv-acc__summary::-webkit-details-marker {
	display: none;
}

.tsvv-acc__summary:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-acc__title {
	margin: 0;
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-acc__toggle {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tsvv-acc__toggle .tsvv-icon {
	width: 20px;
	height: 20px;
	grid-area: 1 / 1;
}

.tsvv-acc__minus,
.tsvv-acc[open] .tsvv-acc__plus {
	display: none;
}

.tsvv-acc[open] .tsvv-acc__minus {
	display: block;
}

.tsvv-acc[open] .tsvv-acc__toggle,
.tsvv-acc__summary:hover .tsvv-acc__toggle {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-acc__body {
	margin-top: -10px;
	padding: 0 clamp(18px, 2vw, 28px) 24px;
	color: rgba(var(--tsvv-plum-rgb), 0.85);
}

.tsvv-acc__body > :last-child {
	margin-bottom: 0;
}

.tsvv-acc__body .tsvv-buttons {
	margin-top: 4px;
}

/* ==========================================================================
   16. Compact cards (forms: "Hoida asiat sähköisesti")
   ========================================================================== */

.tsvv-services--bg-grey {
	background: var(--louhos-grey);
}

.tsvv-services--compact {
	padding: clamp(64px, 6vw, 96px) 0 clamp(72px, 7vw, 120px);
}

.tsvv-services--compact .tsvv-section-head {
	margin-bottom: clamp(24px, 3vw, 40px);
}

@media (min-width: 576px) {
	.tsvv-services__grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.tsvv-services__grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.tsvv-services--compact .tsvv-services__grid {
	gap: 24px;
}

.tsvv-service--compact {
	gap: 16px;
	padding: 28px;
	border-radius: 22px;
	transition: box-shadow 0.25s var(--tsvv-ease), transform 0.25s var(--tsvv-ease);
}

.tsvv-service--compact:hover,
.tsvv-service--compact:focus-within {
	box-shadow: 0 18px 36px rgba(43, 13, 23, 0.1);
	transform: translateY(-2px);
}

.tsvv-service--compact:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-service--compact .tsvv-service__title {
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-service--compact .tsvv-service__text {
	color: rgba(var(--tsvv-plum-rgb), 0.75);
}

.tsvv-icon-tile--lg {
	width: 52px;
	height: 52px;
	border-radius: 16px;
}

.tsvv-icon-tile--lg .tsvv-icon {
	width: 24px;
	height: 24px;
}

.tsvv-service__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--louhos-primary);
	font-weight: 600;
	text-decoration: none;
}

.tsvv-service__more:focus-visible {
	outline: 0;
}

.tsvv-service__more .tsvv-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--tsvv-ease);
}

.tsvv-service--compact:hover .tsvv-service__more .tsvv-icon {
	transform: translateX(4px);
}

/* ==========================================================================
   17. Listing card (Figma "v4 / Kohdekortti")
   ========================================================================== */

.tsvv-listing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--louhos-border);
	border-radius: 20px;
	background: #fff;
	transition: box-shadow 0.25s var(--tsvv-ease), transform 0.25s var(--tsvv-ease);
}

.tsvv-listing-card.has-link:hover,
.tsvv-listing-card.has-link:focus-within {
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

.tsvv-listing-card.has-link:hover .tsvv-listing-card__title,
.tsvv-listing-card.has-link:focus-within .tsvv-listing-card__title {
	color: var(--louhos-primary);
}

.tsvv-listing-card.has-link:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-listing-card .stretched-link {
	color: inherit;
	text-decoration: none;
}

.tsvv-listing-card .stretched-link:focus-visible {
	outline: 0;
}

.tsvv-listing-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 456 / 300;
	background: var(--louhos-grey);
}

.tsvv-listing-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tsvv-listing-card__badges {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsvv-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 10px;
	background: #fff;
	color: var(--tsvv-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--louhos-accent);
}

.tsvv-badge--vapautuu .tsvv-badge__dot {
	background: var(--tsvv-warning);
}

.tsvv-badge--uudis,
.tsvv-badge--kampanja {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-badge--uudis .tsvv-badge__dot,
.tsvv-badge--kampanja .tsvv-badge__dot {
	background: var(--louhos-primary);
}

.tsvv-badge--video {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-badge--video .tsvv-icon {
	width: 15px;
	height: 15px;
}

.tsvv-listing-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 24px;
}

.tsvv-listing-card__layout {
	margin: 0;
	color: var(--louhos-primary);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tsvv-listing-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
	line-height: 1.3;
	letter-spacing: 0;
	transition: color 0.2s ease;
}

.tsvv-listing-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.tsvv-listing-card__location .tsvv-icon {
	width: 16px;
	height: 16px;
	color: var(--tsvv-ink);
}

.tsvv-listing-card__specs {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--louhos-border);
}

.tsvv-listing-card__specs dd {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--tsvv-ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.tsvv-listing-card__specs .tsvv-icon {
	width: 17px;
	height: 17px;
}

.tsvv-listing-card__price {
	margin-left: auto;
}

.tsvv-listing-card__price dd {
	color: var(--louhos-primary);
	font-family: var(--tsvv-font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
}

/* ==========================================================================
   18. Latest listings carousel
   ========================================================================== */

.tsvv-latest {
	padding: clamp(72px, 7vw, 120px) 0;
	background: var(--louhos-grey);
}

.tsvv-latest__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 3vw, 48px);
}

.tsvv-latest__title {
	margin: 0;
}

.tsvv-latest__text {
	margin: 16px 0 0;
	color: var(--tsvv-text-muted);
}

.tsvv-latest__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tsvv-latest__actions .tsvv-buttons {
	margin-top: 0;
}

.tsvv-arrow {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--louhos-border);
	border-radius: var(--louhos-radius);
	background: #fff;
	color: var(--tsvv-ink);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.tsvv-arrow .tsvv-icon {
	width: 22px;
	height: 22px;
}

.tsvv-arrow--primary {
	border-color: var(--tsvv-plum);
	background: var(--tsvv-plum);
	color: #fff;
}

.tsvv-arrow:hover:not(:disabled) {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-arrow:disabled {
	cursor: default;
	opacity: 0.4;
}

.tsvv-latest__track {
	/* Room for the hover lift, shadow and focus ring: a scroll container clips
	   in both directions, so it is padded and pulled back with negative margins. */
	--tsvv-track-bleed: min(24px, var(--tsvv-gutter));

	display: grid;
	grid-auto-columns: 85%;
	grid-auto-flow: column;
	gap: 20px;
	margin: -24px calc(-1 * var(--tsvv-track-bleed)) -64px;
	padding: 24px var(--tsvv-track-bleed) 64px;
	overflow-x: auto;
	scroll-padding-inline: var(--tsvv-track-bleed);
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.tsvv-latest__track:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 6px;
	border-radius: 20px;
}

.tsvv-latest__track::-webkit-scrollbar {
	display: none;
}

.tsvv-latest__slide {
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.tsvv-latest__track {
		grid-auto-columns: calc((100% - 24px) / 2);
		gap: 24px;
	}
}

@media (min-width: 1200px) {
	.tsvv-latest__track {
		grid-auto-columns: calc((100% - 72px) / 3);
		gap: 36px;
	}
}

/* ==========================================================================
   19. Listing page: filters, results bar, grid, pager
   ========================================================================== */

/* The filter card overlaps the red page header above it (Figma: 64px) */
.tsvv-page-head:has(+ .tsvv-listing) {
	padding-bottom: clamp(88px, 7vw, 120px);
}

.tsvv-listing {
	position: relative;
	margin-top: -64px;
	padding-bottom: 8px;
}

.tsvv-filters {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(18px, 2vw, 28px);
	border-radius: var(--louhos-radius-lg);
	background: #fff;
	box-shadow: 0 24px 60px rgba(43, 13, 23, 0.13);
}

.tsvv-filters__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tsvv-search__tabs a {
	text-decoration: none;
}

.tsvv-search__tab.is-current {
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary-dark);
}

.tsvv-search__tab.is-current .tsvv-icon {
	color: var(--tsvv-plum);
}

.tsvv-search__tab-count {
	padding: 2px 8px;
	border-radius: 8px;
	background: var(--louhos-grey);
	font-size: 0.75rem;
	line-height: 1.4;
}

.tsvv-search__tab.is-current .tsvv-search__tab-count {
	background: #fff;
}

.tsvv-filters__row {
	display: grid;
	gap: 14px;
}

.tsvv-filters__row--2 {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 28px;
}

@media (min-width: 768px) {
	.tsvv-filters__row:not(.tsvv-filters__row--2) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 260px) minmax(0, 260px);
	}
}

.tsvv-filters fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.tsvv-filters legend {
	float: none;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	color: var(--tsvv-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tsvv-room > span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	height: 56px;
	padding: 0 18px;
	border-radius: var(--louhos-radius);
	background: var(--louhos-grey);
	color: var(--tsvv-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tsvv-room:hover > span {
	background: var(--tsvv-beige-2);
}

.tsvv-room input:checked + span {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-room input:focus-visible + span {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

/* Count after a premises type ("Toimisto 111") */
.tsvv-room__count {
	font-weight: 400;
}

.tsvv-filters__pair {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tsvv-text-muted);
}

.tsvv-range-box {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 132px;
	height: 56px;
	padding: 0 14px;
	border-radius: var(--louhos-radius);
	background: var(--louhos-grey);
}

/* "m²" is short: size boxes stay narrower so the row fits the submit button */
.tsvv-range-box:has(input[name^="koko"]) {
	width: 112px;
}

.tsvv-range-box:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-range-box input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--tsvv-ink);
	font-size: 1.0625rem;
	outline: 0;
}

.tsvv-range-box input::placeholder {
	color: var(--tsvv-text-muted);
	opacity: 1;
}

.tsvv-range-box__unit {
	flex-shrink: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	white-space: nowrap;
}

.tsvv-filters__submit {
	min-height: 56px;
	margin-left: auto;
}

@media (max-width: 767.98px) {
	.tsvv-filters__submit {
		width: 100%;
		margin-left: 0;
	}
}

.tsvv-results-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: clamp(32px, 3.5vw, 52px) 0 28px;
}

.tsvv-results-bar__left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tsvv-results-bar__count {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.tsvv-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--louhos-border);
	border-radius: 10px;
	color: var(--tsvv-ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.tsvv-toggle .tsvv-icon {
	width: 16px;
	height: 16px;
	color: var(--louhos-primary);
}

.tsvv-toggle:has(input:checked) {
	border-color: var(--louhos-primary);
	background: var(--louhos-grey);
}

.tsvv-toggle:has(input:focus-visible) {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-results-bar__clear {
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--louhos-border);
	border-radius: 12px;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-sort:focus-within {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-sort > .tsvv-icon:first-child {
	width: 18px;
	height: 18px;
	color: var(--tsvv-plum);
}

.tsvv-sort select {
	padding-right: 22px;
	border: 0;
	background: transparent;
	color: var(--tsvv-ink);
	font-weight: 600;
	appearance: none;
	outline: 0;
	cursor: pointer;
}

.tsvv-sort__chev {
	position: absolute;
	right: 16px;
	width: 16px;
	height: 16px;
	color: var(--tsvv-ink);
	pointer-events: none;
}

.tsvv-listing__grid {
	display: grid;
	gap: clamp(20px, 2.5vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.tsvv-listing__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.tsvv-listing__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsvv-listing__empty {
	padding: 40px;
	border-radius: 24px;
	background: var(--louhos-grey);
}

.tsvv-listing__empty p {
	margin: 0 0 8px;
}

.tsvv-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(32px, 3vw, 56px);
}

.tsvv-pager__info {
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

.tsvv-pager__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-pager__btn {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--louhos-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tsvv-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.tsvv-pager__btn .tsvv-icon {
	width: 18px;
	height: 18px;
}

a.tsvv-pager__btn:hover,
a.tsvv-pager__btn:focus-visible {
	border-color: var(--louhos-primary);
}

.tsvv-pager__btn.is-current {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-pager__btn.is-disabled {
	opacity: 0.4;
}

/* ==========================================================================
   20. Compact CTA (Figma "Hakulomake-CTA")
   ========================================================================== */

.tsvv-cta--compact {
	padding: 56px 0 clamp(72px, 7vw, 120px);
}

.tsvv-cta-compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
	padding: clamp(28px, 4vw, 56px) clamp(24px, 4.4vw, 64px);
	border-radius: 32px;
	background: var(--tsvv-beige-2);
}

.tsvv-cta-compact__icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: 24px;
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-cta-compact__icon .tsvv-icon {
	width: 40px;
	height: 40px;
}

.tsvv-cta-compact__text {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 14px;
}

.tsvv-cta-compact__title {
	margin: 0;
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.tsvv-cta-compact__lead {
	max-width: 720px;
	color: rgba(var(--tsvv-plum-rgb), 0.8);
}

.tsvv-cta-compact__lead p {
	margin: 0;
}

.tsvv-cta-compact .tsvv-buttons {
	margin-top: 0;
}

/* ==========================================================================
   21. Mega menu: latest listings panel
   ========================================================================== */

.tsvv-mega__latest {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-self: stretch;
	width: 296px;
	padding: 18px 16px 16px;
	border-radius: 18px;
	background: var(--louhos-grey);
}

.tsvv-mega__latest ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-mega__latest-title {
	margin: 0;
	color: var(--tsvv-ink);
	font-family: var(--tsvv-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.tsvv-mega__kohde {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	color: var(--tsvv-ink);
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.tsvv-mega__kohde:hover,
.tsvv-mega__kohde:focus-visible {
	box-shadow: 0 8px 18px rgba(43, 13, 23, 0.1);
}

.tsvv-mega__kohde img {
	flex-shrink: 0;
	width: 84px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
}

.tsvv-mega__kohde-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tsvv-mega__kohde-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-mega__kohde-meta {
	color: var(--tsvv-text-muted);
	font-size: 0.75rem;
	line-height: 1.5;
}

.tsvv-mega__kohde-price {
	color: var(--louhos-primary);
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-mega__latest-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 4px 0;
	color: var(--tsvv-ink);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.tsvv-mega__latest-all .tsvv-icon {
	width: 16px;
	height: 16px;
}

.tsvv-mega__latest-all:hover,
.tsvv-mega__latest-all:focus-visible {
	color: var(--louhos-primary);
}

@media (max-width: 1279.98px) {
	.tsvv-mega__latest {
		display: none;
	}
}

.tsvv-filters .tsvv-search__tabs {
	flex-wrap: wrap;
	overflow: visible;
}

/* ==========================================================================
   22. Forms (Gravity Forms, Figma "v4 / Kenttä" + Toimeksiantolomake)
   ========================================================================== */

:root {
	--tsvv-field-border: #8c7d6d; /* Figma #d8cab6 is 1.6:1; inputs need 3:1 (WCAG 1.4.11) */
	--tsvv-ok-bg: #e6f5ec;
	--tsvv-ok-text: #146c3b;
	--tsvv-icon-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20d%3D%27M3.5%208.5l3%203%206-7%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-width%3D%272.2%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
	--tsvv-icon-plus: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2018%2018%27%3E%3Cpath%20d%3D%27M9%203.75v10.5M3.75%209h10.5%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27/%3E%3C/svg%3E");
	--tsvv-icon-upload: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2228%22%20height%3D%2228%22%20fill%3D%22none%22%20viewBox%3D%220%200%2028%2028%22%3E%3Cpath%20stroke%3D%22white%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M24.5%2017.5v4.667a2.333%202.333%200%200%201-2.333%202.333H5.833A2.333%202.333%200%200%201%203.5%2022.167V17.5m16.333-8.167L14%203.5%208.167%209.333M14%203.5v14%22/%3E%3C/svg%3E");
	--tsvv-icon-calendar: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22none%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M4.167%203.333h11.666c.92%200%201.667.747%201.667%201.667v11.667c0%20.92-.746%201.666-1.667%201.666H4.167c-.92%200-1.667-.746-1.667-1.666V5c0-.92.746-1.667%201.667-1.667m9.166-1.666V5M6.667%201.667V5M2.5%208.333h15%22/%3E%3C/svg%3E");
	--tsvv-icon-alert: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2215%22%20height%3D%2215%22%20fill%3D%22none%22%20viewBox%3D%220%200%2015%2015%22%3E%3Cpath%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M13.75%207.5a6.25%206.25%200%201%201-12.5%200%206.25%206.25%200%200%201%2012.5%200M7.5%205v2.5m0%202.5h.006%22/%3E%3C/svg%3E");
}

.screen-reader-text,
.gform_wrapper .gfield_visibility_hidden,
.gform_wrapper .gform_validation_container,
.gform_wrapper .hidden_label > .gfield_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

.gform_wrapper .gform_validation_container {
	display: none !important;
}

.tsvv-form-page {
	padding: clamp(40px, 4vw, 64px) 0 clamp(72px, 7vw, 120px);
}

.tsvv-form-page__grid {
	display: grid;
	gap: 32px;
}

.tsvv-form-page__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 992px) {
	.tsvv-form-page__grid {
		grid-template-columns: 340px minmax(0, 1fr);
		gap: clamp(32px, 4vw, 56px);
		align-items: start;
	}

	.tsvv-form-page__aside {
		position: sticky;
		top: 24px;
	}
}

@media (max-width: 991.98px) {
	.tsvv-form-page__aside {
		order: 2;
	}

	.tsvv-form-progress {
		display: none;
	}
}

/* Progress card */
.tsvv-form-progress {
	padding: 24px;
	border: 1px solid var(--louhos-border);
	border-radius: 24px;
	background: #fff;
}

.tsvv-form-progress__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px 10px;
}

.tsvv-form-progress__head p {
	margin: 0;
	font-size: 0.8125rem;
}

.tsvv-form-progress__title {
	color: var(--tsvv-text-muted);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tsvv-form-progress__count {
	color: var(--louhos-primary);
	font-weight: 600;
}

.tsvv-form-progress__bar {
	height: 6px;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--tsvv-beige-2);
}

.tsvv-form-progress__bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 3px;
	background: var(--louhos-primary);
	transition: width 0.4s var(--tsvv-ease);
}

.tsvv-form-progress__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-form-progress__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--tsvv-text-muted);
	font-size: 0.9375rem;
	line-height: 1.65;
	text-decoration: none;
}

.tsvv-form-progress__link:hover,
.tsvv-form-progress__link:focus-visible {
	background: var(--louhos-grey);
	color: var(--tsvv-ink);
}

.tsvv-form-progress__link.is-current {
	background: var(--louhos-grey);
	color: var(--tsvv-ink);
	font-weight: 600;
}

.tsvv-form-progress__link.is-done {
	color: var(--tsvv-ink);
}

/* Small diamond: number when open, check when done */
.tsvv-form-progress__mark {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 21px;
	height: 21px;
	margin: 4.5px;
	border-radius: 6px;
	background: var(--tsvv-beige-2);
	transform: rotate(45deg);
}

.tsvv-form-progress__mark span {
	color: var(--louhos-primary-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	transform: rotate(-45deg);
}

.tsvv-form-progress__link.is-current .tsvv-form-progress__mark {
	background: var(--louhos-primary);
}

.tsvv-form-progress__link.is-current .tsvv-form-progress__mark span {
	color: #fff;
}

.tsvv-form-progress__link.is-done .tsvv-form-progress__mark {
	background: var(--louhos-primary);
}

.tsvv-form-progress__link.is-done .tsvv-form-progress__mark span {
	width: 14px;
	height: 14px;
	color: transparent;
	background: var(--tsvv-icon-check) center / contain no-repeat;
}

.tsvv-help-card--red {
	border-radius: 24px;
	background: var(--louhos-primary);
}

.tsvv-help-card--red p {
	color: #fff;
}

/* Gravity Forms base */
.gform_wrapper {
	--gf-gap: 20px 24px;
}

.gform_wrapper .gform_heading {
	display: none;
}

.gform_wrapper .gform_required_legend {
	margin: 0 0 16px;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

.gform_wrapper .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Section card (built by child.js from the form's sections) */
.tsvv-form-section {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: clamp(22px, 3vw, 40px);
	border: 1px solid var(--louhos-border);
	border-radius: 28px;
	background: #fff;
	scroll-margin-top: 24px;
	transition: border-color 0.25s ease;
}

.tsvv-form-section:focus-within {
	border-color: var(--louhos-primary);
}

.tsvv-form-section__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.tsvv-form-section__head .gsection {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
}

.gform_wrapper .gsection_title {
	margin: 0;
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
	line-height: 1.24;
	letter-spacing: -0.005em;
}

.gform_wrapper .gsection_description {
	margin-top: 4px;
	color: var(--tsvv-text-muted);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.tsvv-form-section__done {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	align-self: flex-start;
	padding: 6px 12px 6px 10px;
	border-radius: 10px;
	background: var(--tsvv-ok-bg);
	color: var(--tsvv-ok-text);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.tsvv-form-section__done::before {
	content: "";
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--tsvv-icon-check) center / contain no-repeat;
	mask: var(--tsvv-icon-check) center / contain no-repeat;
}

.tsvv-form-section__done[hidden] {
	display: none;
}

.tsvv-form-section__grid,
.gform_wrapper .gform_fields:not([data-tsvv-sections]) {
	display: grid;
	gap: var(--gf-gap);
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.tsvv-form-section__grid > .gfield,
.gform_wrapper .gform_fields > .gfield {
	grid-column: 1 / -1;
	min-width: 0;
}

@media (min-width: 768px) {
	.gform_wrapper .gfield--width-half {
		grid-column: span 6;
	}

	.gform_wrapper .gfield--width-third {
		grid-column: span 4;
	}

	.gform_wrapper .gfield--width-quarter {
		grid-column: span 3;
	}
}

/* Labels and inputs */
.gform_wrapper .gfield_label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--tsvv-ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.gform_wrapper fieldset.gfield {
	margin: 0;
	padding: 0;
	border: 0;
}

.gform_wrapper legend.gfield_label {
	float: none;
	width: auto;
}

.gform_wrapper .gfield_required {
	margin-left: 2px;
	color: var(--louhos-primary);
}

.gform_wrapper .gfield_required .gfield_required_text,
.gform_wrapper .gfield_required_asterisk {
	color: var(--louhos-primary);
}

.gform_wrapper .gfield:focus-within > .gfield_label {
	color: var(--louhos-primary);
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper select,
.gform_wrapper textarea {
	width: 100%;
	min-height: 56px;
	padding: 12px 18px;
	border: 1px solid var(--tsvv-field-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tsvv-ink);
	font-family: inherit;
	font-size: 1.0625rem;
	line-height: 1.65;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gform_wrapper textarea {
	height: 112px;
	min-height: 112px;
	resize: vertical;
}

.gform_wrapper .gfield--width-full textarea {
	height: 140px;
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
	color: rgba(var(--tsvv-plum-rgb), 0.58);
	opacity: 1;
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	border-color: var(--louhos-primary);
	box-shadow: inset 0 0 0 1px var(--louhos-primary);
	outline: 0;
}

.gform_wrapper input:focus-visible,
.gform_wrapper select:focus-visible,
.gform_wrapper textarea:focus-visible {
	outline: 3px solid rgba(var(--louhos-primary-rgb), 0.35);
	outline-offset: 2px;
}

.gform_wrapper .ginput_container_date {
	position: relative;
}

.gform_wrapper .ginput_container_date input.datepicker {
	padding-right: 48px;
}

/* Calendar icon as its own layer (not a background image) so the input
   background stays measurable for contrast checks. */
.gform_wrapper .ginput_container_date::after {
	content: "";
	position: absolute;
	top: 18px;
	right: 18px;
	width: 20px;
	height: 20px;
	background: var(--louhos-primary);
	-webkit-mask: var(--tsvv-icon-calendar) center / contain no-repeat;
	mask: var(--tsvv-icon-calendar) center / contain no-repeat;
	pointer-events: none;
}

.gform_wrapper .gfield_description {
	margin-top: 6px;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Errors */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
	border: 1.5px solid var(--louhos-primary);
	background-color: var(--louhos-grey);
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	color: var(--louhos-primary);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.gform_wrapper .gfield_validation_message::before,
.gform_wrapper .validation_message::before {
	content: "";
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--tsvv-icon-alert) center / contain no-repeat;
	mask: var(--tsvv-icon-alert) center / contain no-repeat;
}

.gform_wrapper .gform_validation_errors {
	margin: 0 0 24px;
	padding: 18px 24px;
	border: 1.5px solid var(--louhos-primary);
	border-radius: 18px;
	background: var(--louhos-grey);
}

.gform_wrapper .gform_validation_errors h2 {
	margin: 0;
	color: var(--louhos-primary);
	font-family: var(--louhos-font-family);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
}

.gform_wrapper .gform_validation_errors ol {
	margin: 8px 0 0;
	padding-left: 1.2em;
}

.gform_wrapper .gform_validation_errors a {
	color: var(--louhos-primary-dark);
}

/* Radio / checkbox lists */
.gform_wrapper .gfield_radio,
.gform_wrapper .gfield_checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.gform_wrapper .gchoice {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.gform_wrapper .gchoice input {
	width: 20px;
	height: 20px;
	accent-color: var(--louhos-primary);
}

.gform_wrapper .gchoice label {
	font-size: 1.0625rem;
	cursor: pointer;
}

/* Kyllä/Ei pills (Figma "v4 / Kyllä/Ei") */
.gform_wrapper .tsvv-yesno .gchoice input {
	position: absolute;
	top: 50%;
	left: 18px;
	margin: 0;
	transform: translateY(-50%);
}

.gform_wrapper .tsvv-yesno .gchoice label {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 18px 0 48px;
	border: 1px solid var(--tsvv-field-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tsvv-ink);
	font-weight: 600;
}

.gform_wrapper .tsvv-yesno .gchoice:has(input:checked) label {
	border: 1.5px solid var(--louhos-primary);
	background: var(--louhos-grey);
}

/* Chips (Figma "Mistä kuulit palvelustamme?") */
.gform_wrapper .tsvv-chips .gchoice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gform_wrapper .tsvv-chips .gchoice label {
	padding: 12px 18px;
	border: 1px solid var(--tsvv-field-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tsvv-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.gform_wrapper .tsvv-chips .gchoice:hover label {
	background: var(--louhos-grey);
}

.gform_wrapper .tsvv-chips .gchoice:has(input:checked) label {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: #fff;
}

.gform_wrapper .tsvv-chips .gchoice:has(input:focus-visible) label,
.gform_wrapper .tsvv-add-toggle .gchoice:has(input:focus-visible) label {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

/* Custom check box: service cards, consent, confirmation */
.gform_wrapper .tsvv-service-cards .gchoice input,
.gform_wrapper .ginput_container_consent input,
.gform_wrapper .tsvv-confirm .gchoice input {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin: 0;
	border: 1.5px solid var(--tsvv-field-border);
	border-radius: 8px;
	background: #fff;
	appearance: none;
	cursor: pointer;
}

.gform_wrapper .tsvv-service-cards .gchoice input:checked,
.gform_wrapper .ginput_container_consent input:checked,
.gform_wrapper .tsvv-confirm .gchoice input:checked {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary) var(--tsvv-icon-check) center / 16px no-repeat;
}

.gform_wrapper .tsvv-service-cards .gchoice input:focus-visible,
.gform_wrapper .ginput_container_consent input:focus-visible,
.gform_wrapper .tsvv-confirm .gchoice input:focus-visible {
	outline: 3px solid rgba(var(--louhos-primary-rgb), 0.35);
	outline-offset: 2px;
}

.gform_wrapper .ginput_container_consent,
.gform_wrapper .tsvv-confirm .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.gform_wrapper .ginput_container_consent label,
.gform_wrapper .tsvv-confirm .gchoice label {
	font-size: 1.0625rem;
	line-height: 1.65;
}

.gform_wrapper .tsvv-consent > .gfield_label,
.gform_wrapper .tsvv-confirm > .gfield_label,
.gform_wrapper .tsvv-service-cards > .gfield_label,
.gform_wrapper .tsvv-add-toggle > .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Service choice cards (Figma "Valintakortti") */
.gform_wrapper .tsvv-service-cards .gfield_checkbox {
	display: grid;
	gap: 16px 24px;
}

@media (min-width: 768px) {
	.gform_wrapper .tsvv-service-cards .gfield_checkbox {
		grid-template-columns: repeat(2, 1fr);
	}
}

.gform_wrapper .tsvv-service-cards .gchoice {
	align-items: flex-start;
	gap: 0;
}

.gform_wrapper .tsvv-service-cards .gchoice input {
	position: absolute;
	top: 26px;
	left: 24px;
}

.gform_wrapper .tsvv-service-cards .gchoice label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	width: 100%;
	height: 100%;
	padding: 24px 24px 24px 68px;
	border: 1px solid var(--tsvv-field-border);
	border-radius: 20px;
	background: #fff;
}

.gform_wrapper .tsvv-service-cards .gchoice:has(input:checked) label {
	border: 1.5px solid var(--louhos-primary);
	background: var(--louhos-grey);
}

.tsvv-choice-card__title {
	font-family: var(--tsvv-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.tsvv-choice-card__price {
	padding: 3px 10px;
	border-radius: 8px;
	background: var(--tsvv-beige-2);
	color: var(--louhos-primary-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.gchoice:has(input:checked) .tsvv-choice-card__price {
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-choice-card__text {
	flex-basis: 100%;
	color: rgba(var(--tsvv-plum-rgb), 0.75);
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* "Lisää toimeksiantaja" toggle */
.gform_wrapper .tsvv-add-toggle .gchoice input {
	position: absolute;
	opacity: 0;
}

.gform_wrapper .tsvv-add-toggle .gchoice label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var(--louhos-primary);
	border-radius: 12px;
	color: var(--louhos-primary);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.gform_wrapper .tsvv-add-toggle .gchoice label::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--tsvv-icon-plus) center / contain no-repeat;
	mask: var(--tsvv-icon-plus) center / contain no-repeat;
}

.gform_wrapper .tsvv-add-toggle .gchoice:has(input:checked) label {
	background: var(--louhos-grey);
}

/* File upload (Figma "Pudotusalue") */
.gform_wrapper .gform_drop_area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 40px 24px;
	border: 1.5px dashed var(--louhos-primary);
	border-radius: 20px;
	background: var(--louhos-grey);
	text-align: center;
}

/* Upload icon on the instructions, not on the drop area: a pseudo element
   behind the "Valitse tiedostot" button would hide its contrast from axe. */
.gform_wrapper .gform_drop_instructions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.gform_wrapper .gform_drop_instructions::before {
	content: "";
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: var(--louhos-primary) var(--tsvv-icon-upload) center / 28px no-repeat;
}

.gform_wrapper .gform_drop_instructions {
	color: var(--tsvv-ink);
	font-weight: 600;
}

.gform_wrapper .gform_button_select_files {
	padding: 0;
	border: 0;
	background: var(--louhos-grey);
	/* Plum, not red: red on beige is 4.4:1, under AA for normal text */
	color: var(--tsvv-plum);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* The field description states the rules in plain Finnish; GF's own list stays for screen readers */
.gform_wrapper .gform_fileupload_rules {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gform_wrapper .ginput_preview_list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.gform_wrapper .ginput_preview {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--louhos-border);
	border-radius: 14px;
	background: #fff;
	font-size: 0.875rem;
}

.gform_wrapper .gform_delete_file {
	margin-left: auto;
	border: 0;
	border-radius: 8px;
	background: var(--louhos-grey);
	cursor: pointer;
}

/* Footer: submit + note inside the last card */
.gform_wrapper .gform_footer,
.gform_wrapper .gform-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin: 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--louhos-border);
}

.gform_wrapper .gform_button {
	min-height: 56px;
	cursor: pointer;
}

.tsvv-form-note {
	flex: 1 1 280px;
	max-width: 520px;
	margin: 0;
	color: var(--tsvv-text-muted);
}

.gform_wrapper .gform_ajax_spinner {
	width: 24px;
	height: 24px;
}

/* Gravity Forms 3 date picker: the toggle button sits invisibly over the
   field's calendar icon (still reachable by keyboard and screen readers) and
   child.js opens the calendar when the field itself is clicked. */
.gform_wrapper .gform-datepicker-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
}

.gform_wrapper .gform-datepicker-toggle:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: -6px;
}

.gform_wrapper .gform-datepicker-toggle-icon {
	display: none;
}

.gform_wrapper .ginput_container_date input.datepicker {
	cursor: pointer;
}

.gform-datepicker-calendar {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	width: min(320px, calc(100vw - 32px));
	padding: 14px;
	border: 1px solid var(--louhos-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--tsvv-shadow-panel);
	color: var(--tsvv-ink);
}

.gform-datepicker-calendar[hidden] {
	display: none;
}

/* Keyboard help line ("Press F1 for help"): kept for screen readers only */
.gform-datepicker-calendar .monthMessage {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gform-datepicker-calendar table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.gform-datepicker-calendar td,
.gform-datepicker-calendar th {
	padding: 2px;
	text-align: center;
}

.gform-datepicker-calendar th {
	padding-top: 8px;
	color: var(--tsvv-text-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

/* Year and month rows: arrow – select – arrow */
.gform-datepicker-calendar .nav.btn {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: var(--tsvv-plum);
	font-size: 1rem;
	cursor: pointer;
}

.gform-datepicker-calendar .nav.btn:hover,
.gform-datepicker-calendar .nav.btn:focus-visible {
	background: var(--louhos-grey);
}

.gform_wrapper .gform-datepicker-calendar select.nav,
.gform-datepicker-calendar select.nav {
	width: 100%;
	height: 36px;
	min-height: 36px;
	padding: 0 8px;
	border: 1px solid var(--louhos-border);
	border-radius: 10px;
	background: var(--louhos-grey);
	color: var(--tsvv-ink);
	font-size: 0.9375rem;
	font-weight: 600;
}

.gform-datepicker-calendar td.day > span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0 auto;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.gform-datepicker-calendar td.day {
	cursor: pointer;
}

.gform-datepicker-calendar td.day:hover > span {
	background: var(--louhos-grey);
}

.gform-datepicker-calendar td.dayToday > span {
	box-shadow: inset 0 0 0 1px var(--tsvv-plum);
	font-weight: 600;
}

.gform-datepicker-calendar td.selected > span,
.gform-datepicker-calendar td.selected:hover > span {
	background: var(--louhos-primary);
	color: #fff;
	font-weight: 600;
}

/* Keyboard focus within the grid */
.gform-datepicker-calendar td.day:focus {
	outline: 0;
}

.gform-datepicker-calendar td.day:focus > span,
.gform-datepicker-calendar td.dayMarked > span {
	outline: 3px solid var(--louhos-primary);
	outline-offset: -1px;
}

/* Confirmation (Figma "Lähetetty – kiitos") */
.tsvv-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 600px;
	margin: 0 auto;
	padding: clamp(32px, 4vw, 56px);
	border: 1px solid var(--louhos-border);
	border-radius: 28px;
	background: #fff;
	text-align: center;
}

.tsvv-diamond--88 {
	--d: 88px;
}

.tsvv-diamond--88 .tsvv-icon {
	width: 40px;
	height: 40px;
	color: #fff;
}

.tsvv-thanks__title {
	margin: 0;
	font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
}

.tsvv-thanks__text,
.tsvv-thanks__actions {
	margin: 0;
}

/* ==========================================================================
   23. Content pages: text without image, rich text, price list, checklist
   ========================================================================== */

/* Text block without an image: one column, steps in two columns */
.tsvv-ti--no-img .tsvv-ti__grid {
	grid-template-columns: minmax(0, 1fr);
}

.tsvv-ti--no-img .tsvv-ti__content > :is(.tsvv-ti__title, .tsvv-ti__lead, .tsvv-ti__body) {
	max-width: 820px;
}

@media (min-width: 768px) {
	.tsvv-ti--no-img .tsvv-steps {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(32px, 5vw, 80px);
	}

	/* In a grid every item gets a top rule, so rows line up */
	.tsvv-ti--no-img .tsvv-steps__item {
		border-top: 1px solid var(--louhos-border);
		border-bottom: 0;
	}
}

@media (min-width: 992px) {
	/* Exactly three steps: one row */
	.tsvv-ti--no-img .tsvv-steps:has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.tsvv-ti--no-img .tsvv-features {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tsvv-ti--no-img .tsvv-features:has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tsvv-ti--bg-grey .tsvv-steps__item {
	border-color: var(--tsvv-divider);
}

/* Rich text (WYSIWYG) inside blocks */
.tsvv-ti__body > :first-child {
	margin-top: 0;
}

.tsvv-ti__body > :last-child {
	margin-bottom: 0;
}

.tsvv-ti__body ul {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.tsvv-ti__body ul li {
	position: relative;
	padding-left: 28px;
}

/* Small diamond bullet (brand shape) */
.tsvv-ti__body ul li::before {
	position: absolute;
	top: 0.62em;
	left: 4px;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--louhos-primary);
	transform: rotate(45deg);
	content: "";
}

.tsvv-on-red .tsvv-ti__body ul li::before {
	background: #fff;
}

/* Price list */
.tsvv-prices {
	padding: clamp(64px, 7vw, 120px) 0;
}

.tsvv-prices--bg-grey {
	background: var(--louhos-grey);
}

.tsvv-prices__grid {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 768px) {
	.tsvv-prices__grid--2,
	.tsvv-prices__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tsvv-prices__grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tsvv-prices__grid--1 {
	max-width: 760px;
}

.tsvv-price-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--louhos-radius-lg);
	background: #fff;
}

.tsvv-prices--bg-white .tsvv-price-card {
	background: var(--louhos-grey);
}

.tsvv-price-card__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.tsvv-price-card__text,
.tsvv-price-card__note {
	margin: 0;
	color: var(--tsvv-text-muted);
}

.tsvv-price-card__note {
	font-size: 0.9375rem;
}

.tsvv-price-list {
	margin: 0;
}

.tsvv-price-list__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--louhos-border);
}

.tsvv-prices--bg-white .tsvv-price-list__row {
	border-color: var(--tsvv-divider);
}

.tsvv-price-list__row:first-child {
	padding-top: 4px;
}

.tsvv-price-list__row:last-child {
	border-bottom: 0;
}

.tsvv-price-list dt {
	font-weight: 500;
}

.tsvv-price-list__note {
	display: block;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.tsvv-price-list dd {
	flex-shrink: 0;
	max-width: 50%;
	margin: 0;
	color: var(--tsvv-ink);
	font-family: var(--tsvv-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 575.98px) {
	.tsvv-price-list dd {
		white-space: normal;
	}
}

.tsvv-prices__note {
	margin: 24px 0 0;
	color: var(--tsvv-text-muted);
	font-size: 0.9375rem;
}

.tsvv-prices__buttons {
	margin-top: 32px;
}

/* Checklist card (parent block, v4 style) */
.tsvv-check {
	padding: clamp(48px, 5vw, 80px) 0;
}

.tsvv-check__card {
	display: grid;
	overflow: hidden;
	border-radius: 28px;
}

.tsvv-check__card--grey {
	background: var(--louhos-grey);
}

.tsvv-check__card--white {
	border: 1px solid var(--louhos-border);
	background: #fff;
}

.tsvv-check__card--dark {
	background: var(--louhos-primary);
}

@media (min-width: 992px) {
	.tsvv-check__card.has-image {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tsvv-check__card--img-left .tsvv-check__media {
		order: -1;
	}
}

.tsvv-check__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: clamp(28px, 5vw, 72px);
}

.tsvv-check__title,
.tsvv-check__intro,
.tsvv-check__closing {
	max-width: 720px;
	margin: 0;
}

.tsvv-check__intro {
	color: rgba(var(--tsvv-plum-rgb), 0.8);
}

.tsvv-on-red .tsvv-check__intro {
	color: #fff;
}

.tsvv-check__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.tsvv-check__card:not(.has-image) .tsvv-check__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 48px;
	}
}

@media (min-width: 1200px) {
	/* Long lists (7+) in three columns */
	.tsvv-check__card:not(.has-image) .tsvv-check__list:has(> :nth-child(7)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tsvv-check__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-weight: 500;
}

.tsvv-check__icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--louhos-primary);
	color: #fff;
}

.tsvv-check__icon .tsvv-icon {
	width: 16px;
	height: 16px;
}

.tsvv-check__content .tsvv-buttons {
	margin-top: 0;
}

.tsvv-check__media {
	min-height: 280px;
}

.tsvv-check__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Contact cards (parent "Yhteystiedot", v3 style) */
.tsvv-contact {
	padding: clamp(64px, 7vw, 120px) 0;
}

.tsvv-contact__grid {
	display: grid;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.tsvv-contact__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tsvv-contact__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tsvv-contact__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--louhos-radius-lg);
	background: var(--louhos-grey);
}

.tsvv-contact__card--office {
	background: var(--tsvv-plum);
}

@media (min-width: 1200px) {
	.tsvv-contact__card--office {
		grid-row: span 2;
	}
}

.tsvv-contact__name {
	margin: 0;
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.tsvv-contact__role,
.tsvv-contact__meta {
	margin: 0;
	color: var(--tsvv-text-muted);
}

.tsvv-on-plum .tsvv-contact__meta {
	color: #fff;
}

.tsvv-contact__rows {
	display: grid;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.tsvv-contact__rows li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.tsvv-contact__rows .tsvv-icon {
	width: 18px;
	height: 18px;
	color: var(--louhos-primary);
}

.tsvv-on-plum .tsvv-contact__rows .tsvv-icon {
	color: #fff;
}

.tsvv-contact__rows a {
	color: inherit;
	text-decoration-color: rgba(var(--tsvv-plum-rgb), 0.3);
	text-underline-offset: 3px;
}

.tsvv-on-plum .tsvv-contact__rows a {
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

.tsvv-contact__rows a:hover {
	text-decoration-color: currentColor;
}

.tsvv-contact__card .tsvv-buttons {
	margin-top: auto;
	padding-top: 12px;
}

/* References (housing companies) with a city filter */
.tsvv-refs {
	padding: clamp(64px, 7vw, 120px) 0;
}

.tsvv-refs__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.tsvv-refs__filter .tsvv-chip {
	min-height: 44px;
	padding: 10px 18px;
	background: var(--louhos-grey);
	font-size: 0.9375rem;
}

.tsvv-refs__filter .tsvv-chip span {
	margin-left: 4px;
	color: var(--tsvv-text-muted);
	font-weight: 400;
}

.tsvv-refs__filter .tsvv-chip[aria-pressed="true"] {
	background: var(--tsvv-plum);
	color: #fff;
}

.tsvv-refs__filter .tsvv-chip[aria-pressed="true"] span {
	color: #fff;
}

.tsvv-refs__filter .tsvv-chip:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tsvv-refs__grid {
	display: grid;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.tsvv-refs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tsvv-refs__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tsvv-ref {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 2.5vw, 32px);
	border: 1px solid var(--louhos-border);
	border-radius: var(--louhos-radius-lg);
	background: #fff;
}

.tsvv-ref[hidden] {
	display: none;
}

.tsvv-ref__city {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--louhos-primary);
	font-size: 0.875rem;
	font-weight: 600;
}

.tsvv-ref__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.tsvv-ref__text {
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.9375rem;
}

.tsvv-ref__facts {
	display: grid;
	gap: 0;
	margin: 4px 0 0;
	font-size: 0.875rem;
}

.tsvv-ref__facts div {
	display: grid;
	grid-template-columns: 9.5em minmax(0, 1fr);
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid var(--louhos-border);
}

.tsvv-ref__facts dt {
	color: var(--tsvv-text-muted);
	font-weight: 400;
}

.tsvv-ref__facts dd {
	margin: 0;
	font-weight: 600;
}

.tsvv-ref__video {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	font-weight: 600;
}

/* Plain text content (core blocks in a "tsvv-prose" group): legal pages,
   tables. Aligned with the container's left edge, readable line length. */
.entry-content > .tsvv-prose {
	width: min(var(--tsvv-container), 100% - 2 * var(--tsvv-gutter));
	max-width: none;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 96px) 0;
}

.tsvv-prose > * {
	max-width: 820px;
}

.tsvv-prose > :first-child {
	margin-top: 0;
}

.tsvv-prose h2 {
	margin: 2.5rem 0 1rem;
	font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem);
}

.tsvv-prose h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.375rem;
	line-height: 1.3;
}

.tsvv-prose :is(ul, ol) {
	padding-left: 1.25rem;
}

.tsvv-prose li + li {
	margin-top: 0.4rem;
}

.tsvv-prose li::marker {
	color: var(--louhos-primary);
}

.tsvv-prose .wp-block-table {
	margin: 1.5rem 0;
	overflow-x: auto;
}

.tsvv-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.tsvv-prose :is(th, td) {
	padding: 10px 14px;
	border-bottom: 1px solid var(--louhos-border);
	text-align: left;
}

.tsvv-prose thead th {
	border-bottom: 2px solid var(--tsvv-plum);
	font-weight: 600;
}

.tsvv-prose figcaption {
	margin-top: 8px;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

/* ==========================================================================
   Listing detail page (single-linear_listing.twig). No Figma draft: page
   head band, cards and badges of v4, gallery in a native <dialog>.
   ========================================================================== */

.tsvv-kohde__head .tsvv-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.tsvv-kohde__head {
	padding-bottom: clamp(72px, 8vw, 120px);
}

.tsvv-kohde__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tsvv-kohde__title {
	max-width: 900px;
}

.tsvv-kohde__location,
.tsvv-kohde__layout {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.125rem;
}

.tsvv-kohde__location .tsvv-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.tsvv-kohde__layout {
	font-weight: 600;
}

/* Gallery: lifted over the head band. */
.tsvv-kohde__gallery {
	position: relative;
	margin-top: clamp(-96px, -6vw, -48px);
}

.tsvv-kohde__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-kohde__thumbs li:first-child {
	grid-column: 1 / -1;
}

.tsvv-kohde__thumbs li:nth-child(n + 6) {
	display: none;
}

.tsvv-kohde__thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: var(--louhos-grey);
	cursor: zoom-in;
}

.tsvv-kohde__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tsvv-kohde__thumbs li:first-child .tsvv-kohde__thumb img {
	aspect-ratio: 16 / 10;
}

.tsvv-kohde__thumb:hover img {
	transform: scale(1.03);
}

.tsvv-kohde__thumb:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 3px;
}

.tsvv-kohde__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(var(--tsvv-plum-rgb), 0.45);
	font-family: var(--tsvv-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
}

/* Solid pill: text over a photo needs its own background for contrast. */
.tsvv-kohde__more span {
	padding: 6px 14px;
	border-radius: 10px;
	background: var(--tsvv-plum);
	color: #fff;
}

.tsvv-kohde__all {
	position: absolute;
	right: calc(var(--tsvv-gutter) + 16px);
	bottom: 16px;
	display: none;
}

@media (min-width: 768px) {
	.tsvv-kohde__thumbs {
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: repeat(2, 1fr);
	}

	.tsvv-kohde__thumbs li:first-child {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.tsvv-kohde__thumbs li:nth-child(n + 6) {
		display: none;
	}

	.tsvv-kohde__thumbs li:first-child .tsvv-kohde__thumb img {
		aspect-ratio: auto;
	}

	.tsvv-kohde__thumbs.is-single {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.tsvv-kohde__thumbs.is-single li:first-child .tsvv-kohde__thumb img {
		aspect-ratio: 16 / 9;
		max-height: 560px;
	}

	.tsvv-kohde__all {
		display: inline-flex;
	}
}

/* Full-screen gallery dialog. */
.tsvv-gallery {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(32, 0, 18, 0.96);
	color: #fff;
}

.tsvv-gallery::backdrop {
	background: rgba(32, 0, 18, 0.8);
}

.tsvv-gallery[open] {
	display: grid;
	grid-template-rows: auto 1fr;
}

.tsvv-gallery__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
}

.tsvv-gallery__count {
	margin: 0;
	font-weight: 600;
}

.tsvv-gallery__close {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--tsvv-ink);
	cursor: pointer;
}

.tsvv-gallery__close .tsvv-icon {
	width: 22px;
	height: 22px;
	transform: rotate(45deg);
}

.tsvv-gallery__figure {
	display: grid;
	place-items: center;
	min-height: 0;
	margin: 0;
	padding: 0 16px 80px;
}

.tsvv-gallery__figure img {
	max-width: 100%;
	max-height: calc(100dvh - 160px);
	object-fit: contain;
	border-radius: 8px;
}

.tsvv-gallery__prev,
.tsvv-gallery__next {
	position: absolute;
	bottom: 16px;
}

.tsvv-gallery__prev {
	left: calc(50% - 60px);
}

.tsvv-gallery__next {
	left: calc(50% + 8px);
}

@media (min-width: 992px) {
	.tsvv-gallery__figure {
		padding: 0 96px 32px;
	}

	.tsvv-gallery__prev,
	.tsvv-gallery__next {
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}

	.tsvv-gallery__prev {
		left: 24px;
	}

	.tsvv-gallery__next {
		right: 24px;
		left: auto;
	}
}

/* Body: content + sticky price/contact card. */
.tsvv-kohde__grid {
	display: grid;
	gap: 40px;
	padding-top: clamp(32px, 4vw, 56px);
	padding-bottom: clamp(48px, 6vw, 96px);
}

.tsvv-kohde__grid > * {
	min-width: 0;
}

.tsvv-kohde__main {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4vw, 48px);
}

.tsvv-kohde__main h2 {
	margin: 0 0 16px;
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
}

.tsvv-kohde__facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--louhos-border);
	border-radius: 16px;
	background: var(--louhos-border);
}

.tsvv-kohde__facts div {
	padding: 16px 20px;
	background: #fff;
}

.tsvv-kohde__facts dt {
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.tsvv-kohde__facts dd {
	margin: 4px 0 0;
	color: var(--tsvv-ink);
	font-family: var(--tsvv-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
}

@media (min-width: 768px) {
	.tsvv-kohde__facts {
		grid-template-columns: repeat(4, 1fr);
	}
}

.tsvv-kohde__intro p {
	max-width: 72ch;
}

.tsvv-video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	background: var(--tsvv-plum);
}

.tsvv-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* The whole preview is the play button */
.tsvv-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	padding: 24px;
	border: 0;
	background: none;
	color: #fff;
	font-family: var(--tsvv-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
}

.tsvv-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--tsvv-ease);
}

/* Darkening over the photo (a real element: axe skips pseudo-element overlays) */
.tsvv-video__shade {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(180deg, rgba(var(--tsvv-plum-rgb), 0.5), rgba(var(--tsvv-plum-rgb), 0.8));
}

.tsvv-video__icon,
.tsvv-video__label {
	position: relative;
	z-index: 2;
}

/* Solid label background: readable on any photo, measurable contrast */
.has-poster .tsvv-video__label {
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--tsvv-plum);
	font-size: 1.0625rem;
}

.tsvv-video__icon {
	display: grid;
	place-items: center;
	width: clamp(64px, 9vw, 88px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--louhos-primary);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.tsvv-video__icon .tsvv-icon {
	width: 42%;
	height: 42%;
	margin-left: 6%; /* optical centre of the triangle */
}

.tsvv-video__play:hover .tsvv-video__icon,
.tsvv-video__play:focus-visible .tsvv-video__icon {
	background: #fff;
	color: var(--louhos-primary);
	transform: scale(1.08);
}

.tsvv-video__play:hover .tsvv-video__poster {
	transform: scale(1.03);
}

.tsvv-video__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -8px;
	border-radius: 16px;
}

.tsvv-video__note {
	margin: 10px 0 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

.tsvv-kohde__details h3 {
	margin: 24px 0 8px;
	font-size: 1.25rem;
}

.tsvv-kohde__table {
	margin: 0;
	border-top: 1px solid var(--louhos-border);
}

.tsvv-kohde__table div {
	display: grid;
	gap: 2px 24px;
	padding: 12px 0;
	border-bottom: 1px solid var(--louhos-border);
}

.tsvv-kohde__table dt {
	color: var(--tsvv-text-muted);
	font-weight: 400;
}

.tsvv-kohde__table dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (min-width: 576px) {
	.tsvv-kohde__table div {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}
}

.tsvv-kohde__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 3vw, 32px);
	border-radius: 24px;
	background: var(--louhos-grey);
}

.tsvv-kohde__price-label {
	margin: 0;
	color: var(--tsvv-text-muted);
}

.tsvv-kohde__price {
	margin: -12px 0 0;
	color: var(--tsvv-ink);
	font-family: var(--tsvv-font-heading);
	font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
}

.tsvv-kohde__cta .tsvv-btn {
	width: 100%;
	justify-content: center;
}

.tsvv-kohde__realtor {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--tsvv-divider);
}

.tsvv-kohde__realtor img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.tsvv-kohde__realtor p {
	margin: 0;
}

.tsvv-kohde__realtor-name {
	color: var(--tsvv-ink);
	font-family: var(--tsvv-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
}

.tsvv-kohde__realtor-title {
	font-size: 0.875rem;
}

.tsvv-kohde__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tsvv-kohde__contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tsvv-ink);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.tsvv-kohde__contact a:hover,
.tsvv-kohde__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsvv-kohde__contact .tsvv-icon {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--louhos-primary);
}

.tsvv-kohde__contact--meta {
	padding-top: 16px;
	border-top: 1px solid var(--tsvv-divider);
}

.tsvv-kohde__number {
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

@media (min-width: 992px) {
	.tsvv-kohde__grid {
		grid-template-columns: minmax(0, 1fr) 380px;
		align-items: start;
		gap: clamp(40px, 5vw, 80px);
	}

	.tsvv-kohde__main {
		grid-column: 1;
		grid-row: 1;
	}

	.tsvv-kohde__aside {
		position: sticky;
		top: calc(var(--louhos-header-height) + 24px);
		grid-column: 2;
		grid-row: 1;
	}
}

.tsvv-kohde__others {
	padding: clamp(48px, 6vw, 96px) 0;
	background: var(--louhos-grey);
}

.tsvv-kohde__others-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.tsvv-kohde__others-head h2 {
	margin: 0;
}

.tsvv-kohde__others-list {
	display: grid;
	gap: clamp(20px, 2.5vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.tsvv-kohde__others-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.tsvv-kohde__others-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsvv-kohde__thumb img,
	.tsvv-video__icon,
	.tsvv-video__poster {
		transition: none;
	}

	.tsvv-video__play:hover .tsvv-video__poster {
		transform: none;
	}
}

/* Call-back request (front page): text left, phone + postal code + submit
   on one row on wide screens */
.tsvv-callback {
	padding: clamp(48px, 5vw, 80px) 0;
}

.tsvv-callback--bg-grey {
	background: var(--louhos-grey);
}

.tsvv-callback__grid {
	display: grid;
	gap: 24px 64px;
	align-items: center;
}

@media (min-width: 992px) {
	.tsvv-callback__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

.tsvv-callback__text {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.tsvv-callback__title {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem);
}

.tsvv-callback__lead {
	margin: 0;
	color: var(--tsvv-text-muted);
	font-size: 1.125rem;
}

.tsvv-callback .gform_wrapper form {
	display: grid;
	gap: 12px;
	align-items: end;
}

@media (min-width: 576px) {
	.tsvv-callback .gform_wrapper form {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.tsvv-callback .gform_wrapper .gform_validation_errors,
	.tsvv-callback .gform_wrapper .gform_required_legend {
		grid-column: 1 / -1;
	}
}

.tsvv-callback .gform_wrapper .gform_required_legend {
	display: none;
}

.tsvv-callback .gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tsvv-callback .gform_wrapper .gfield {
	grid-column: auto;
}

.tsvv-callback .gform_wrapper :is(input[type="text"], input[type="tel"]) {
	background: #fff;
}

.tsvv-callback .gform_wrapper .gform_footer,
.tsvv-callback .gform_wrapper .gform-footer {
	padding: 0;
	border-top: 0;
}

.tsvv-callback .gform_wrapper .gform_button {
	width: 100%;
}

.tsvv-callback__privacy {
	margin: 12px 0 0;
	color: var(--tsvv-text-muted);
	font-size: 0.875rem;
}

.tsvv-callback .tsvv-thanks {
	max-width: none;
	padding: 28px;
}

/* 404 page */
.tsvv-404 {
	padding: clamp(72px, 9vw, 140px) 0;
	text-align: center;
}

.tsvv-404__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.tsvv-404 .tsvv-diamond__num {
	font-size: 1.375rem;
}

.tsvv-404__title,
.tsvv-404__text {
	max-width: 640px;
	margin: 0;
}

.tsvv-404__text {
	color: var(--tsvv-text-muted);
}

.tsvv-404__buttons {
	justify-content: center;
	margin-top: 8px;
}

/* ==========================================================================
   Cookie banner (Complianz): site colours and fonts. Complianz defines its
   variables on :root; redefining them on its own elements wins.
   ========================================================================== */

.cmplz-cookiebanner,
#cmplz-manage-consent-container,
#cmplz-cookies-overview {
	--cmplz_banner_background_color: #fff;
	--cmplz_banner_border_radius: var(--louhos-radius-lg);
	--cmplz_text_color: var(--tsvv-plum);
	--cmplz_hyperlink_color: var(--louhos-primary);
	--cmplz_button_border_radius: var(--louhos-radius);
	--cmplz_button_accept_background_color: var(--tsvv-plum);
	--cmplz_button_accept_border_color: var(--tsvv-plum);
	--cmplz_button_accept_text_color: #fff;
	--cmplz_button_deny_background_color: var(--louhos-grey);
	--cmplz_button_deny_border_color: var(--louhos-grey);
	--cmplz_button_deny_text_color: var(--tsvv-plum);
	--cmplz_button_settings_background_color: var(--louhos-grey);
	--cmplz_button_settings_border_color: var(--louhos-grey);
	--cmplz_button_settings_text_color: var(--tsvv-plum);
	--cmplz_slider_active_color: var(--tsvv-plum);
	--cmplz_category_header_always_active_color: #1a7a43;

	font-family: var(--louhos-font-family);
}

.cmplz-cookiebanner {
	box-shadow: var(--tsvv-shadow-panel);
}

.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-btn {
	font-family: var(--tsvv-font-heading);
	font-weight: 700;
}

.cmplz-cookiebanner .cmplz-btn {
	min-height: 48px;
}

.cmplz-cookiebanner .cmplz-btn:focus-visible,
.cmplz-cookiebanner a:focus-visible,
.cmplz-cookiebanner .cmplz-close:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

#cmplz-manage-consent .cmplz-manage-consent {
	color: var(--tsvv-plum);
	font-family: var(--tsvv-font-heading);
	font-weight: 700;
}

/* Contact cards: person photo (support 06.11.2026) */
.tsvv-contact__photo {
	margin: 0 0 4px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--louhos-radius-md, 12px);
	background: #fff;
}

.tsvv-contact__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}
