/*
 * loovl-asiakasedut - the banner «Me pidämme selustasi.» and the page «Takuu & asiakasedut» (loovl-asiakasedut-restyling.php).
 * The banner is dark in both themes of the site, as on the client's mock-up. Its layout follows the width of its place
 * (container queries): from 900 px - title left, benefits right; 520-899 - title on the photo, benefits below in a row;
 * under 520 - benefits one under the other. The theme's uusi.css sets h1-h3 with !important and colors every link,
 * hence body.rp-uusi, !important on headings and explicit colors inside the banner.
 */

/* ---- banner ----------------------------------------------------------------------------------------------------- */

.loovl-selustasi-kehys {
	container-type: inline-size;
	width: 100%;
}

.loovl-selustasi-kehys *,
.loovl-selustasi-kehys *::before,
.loovl-selustasi-kehys *::after {
	box-sizing: border-box;
}

/* hover only keeps the colors: the theme paints hovered links dark in the light theme */
body a.loovl-selustasi:hover,
body a.loovl-selustasi:focus,
body a.loovl-selustasi:visited {
	color: #fff !important;
	text-decoration: none !important;
}

body a.loovl-selustasi {
	position: relative;
	z-index: 0;
	display: flex;
	align-items: stretch;
	max-width: 1600px;
	min-height: 150px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 14px;
	background: #0c0c0e;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
	color: #fff !important;
	font-family: var(--rp-fontti, Montserrat, Arial, Helvetica, sans-serif);
	text-decoration: none !important;
}

body a.loovl-selustasi:focus-visible {
	outline: 3px solid var(--rp-aksentti, #f6c454);
	outline-offset: 3px;
}

.loovl-selustasi__paa {
	position: relative;
	z-index: 0;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	padding: 26px 34px;
}

.loovl-selustasi__kuva {
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(100%, 960px);
	overflow: hidden;
}

.loovl-selustasi__kuva img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: 30% 50%;
}

/* darker under the title on the left, the photo melts into the dark part on the right */
.loovl-selustasi__kuva::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(12, 12, 14, .9) 0%, rgba(12, 12, 14, .68) 24%, rgba(12, 12, 14, .15) 48%, rgba(12, 12, 14, .05) 62%, rgba(12, 12, 14, .85) 90%, #0c0c0e 100%);
}

.loovl-selustasi__teksti {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.loovl-selustasi__yla {
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.loovl-selustasi__otsikko {
	max-width: 11.5ch;
	margin-top: 6px;
	color: #fff;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.loovl-selustasi__viiva {
	display: block;
	width: 46px;
	height: 5px;
	margin-top: 12px;
	border-radius: 2px;
	background: #e3001b;
	transition: width .2s ease;
}

body a.loovl-selustasi:hover .loovl-selustasi__viiva,
body a.loovl-selustasi:focus-visible .loovl-selustasi__viiva {
	width: 72px;
}

.loovl-selustasi__edut {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	padding: 22px 26px 22px 0;
}

.loovl-selustasi__etu {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 26px;
	border-left: 1px solid rgba(255, 255, 255, .28);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.loovl-selustasi__nimi {
	color: #fff;
}

/* 09.11.2026, client: both benefits alike - «Elinikäinen» on top, the name below, same font, size and alignment */
.loovl-selustasi__rivi {
	display: block;
	white-space: nowrap;
}

svg.loovl-selustasi__ikoni {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	color: #fff;
}

.loovl-selustasi-kehys .loovl-ae-punainen,
.loovl-ae .loovl-ae-punainen {
	fill: #e3001b;
}

.loovl-selustasi-kehys .loovl-ae-tumma,
.loovl-ae .loovl-ae-tumma {
	fill: #0c0c0e;
}

/* title on the photo, benefits below in a row */
@container (max-width: 899px) {
	body a.loovl-selustasi {
		flex-direction: column;
		min-height: 0;
	}

	.loovl-selustasi__paa {
		min-height: 150px;
		padding: 24px 26px 20px;
	}

	.loovl-selustasi__kuva {
		width: 100%;
	}

	.loovl-selustasi__kuva::after {
		background:
			linear-gradient(90deg, rgba(12, 12, 14, .9) 0%, rgba(12, 12, 14, .6) 45%, rgba(12, 12, 14, .12) 100%),
			linear-gradient(180deg, rgba(12, 12, 14, 0) 45%, #0c0c0e 100%);
	}

	.loovl-selustasi__otsikko {
		font-size: 32px;
	}

	.loovl-selustasi__edut {
		padding: 6px 10px 20px;
	}

	.loovl-selustasi__etu {
		flex: 1 1 0;
		padding: 6px 16px;
	}

	.loovl-selustasi__etu:first-child {
		border-left: 0;
	}

	.loovl-selustasi__nimi {
		max-width: none;
	}
}

/* phones: compact, benefits one under the other */
@container (max-width: 519px) {
	.loovl-selustasi__paa {
		min-height: 128px;
		padding: 20px 20px 16px;
	}

	.loovl-selustasi__yla {
		font-size: 11px;
	}

	.loovl-selustasi__otsikko {
		font-size: 27px;
	}

	.loovl-selustasi__viiva {
		height: 4px;
		margin-top: 10px;
	}

	.loovl-selustasi__edut {
		flex-direction: column;
		align-items: stretch;
		padding: 0 20px 6px;
	}

	.loovl-selustasi__etu {
		gap: 12px;
		padding: 12px 0;
		border-top: 1px solid rgba(255, 255, 255, .16);
		border-left: 0;
		font-size: 16px;
	}

	svg.loovl-selustasi__ikoni {
		width: 38px;
		height: 38px;
	}
}

/* ---- places ----------------------------------------------------------------------------------------------------- */

.loovl-selustasi-kehys--etusivu {
	margin-top: 80px;
}

.loovl-selustasi-kehys--hinnat {
	margin: 28px 0 0;
}

.loovl-selustasi-kehys--blogi {
	max-width: 760px;
	margin: 40px auto 0;
}

/* PPF page: under the variant blocks (they end with their own gap), above the black technical data */
#main .lps .lps-selustasi {
	padding-bottom: min(var(--lps-vali, 152px), 96px);
}

@media (max-width: 800px) {
	.loovl-selustasi-kehys--etusivu {
		margin-top: 56px;
	}

	.loovl-selustasi-kehys--blogi {
		margin-top: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.loovl-selustasi__viiva {
		transition: none;
	}
}

@media print {
	.loovl-selustasi-kehys {
		display: none !important;
	}
}

/* ---- page «Takuu & asiakasedut» --------------------------------------------------------------------------------- */

.loovl-ae {
	max-width: 880px;
	margin: 0 auto;
	padding: 40px 0 70px;
	color: var(--rp-teksti, #cfcfd4);
}

.loovl-ae *,
.loovl-ae *::before,
.loovl-ae *::after {
	box-sizing: border-box;
}

body.rp-uusi .loovl-ae h1.loovl-ae__otsikko {
	margin: 0 0 12px;
	color: var(--rp-otsikko, #fff) !important;
	font-size: clamp(32px, 2.4vw + 14px, 54px) !important;
	font-weight: 800 !important;
	line-height: 1.06 !important;
	letter-spacing: -.025em !important;
	overflow-wrap: break-word;
	hyphens: auto;
}

.post-content .loovl-ae p.loovl-ae__johdanto {
	margin: 0;
	color: var(--rp-teksti, #cfcfd4);
	font-size: 18px;
	line-height: 1.6;
}

.loovl-ae__pikalinkit {
	margin: 28px 0 8px;
}

body .post-content .loovl-ae nav.loovl-ae__pikalinkit ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.post-content .loovl-ae__pikalinkit li {
	margin: 0;
	padding: 0;
}

.post-content .loovl-ae__pikalinkit li::before {
	content: none;
}

body .loovl-ae__pikalinkit a,
body .loovl-ae__pikalinkit a:hover,
body .loovl-ae__pikalinkit a:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	min-height: 66px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 12px;
	background: #0c0c0e;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
}

body .loovl-ae__pikalinkit a:focus-visible {
	outline: 3px solid var(--rp-aksentti, #f6c454);
	outline-offset: 3px;
}

.loovl-ae__pikalinkit li:last-child a {
	padding-left: 20px;
}

svg.loovl-ae__ikoni {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	color: #fff;
}

.loovl-ae__osio {
	scroll-margin-top: 110px;
}

body.rp-uusi .loovl-ae h2 {
	margin: 48px 0 14px;
	color: var(--rp-otsikko, #fff) !important;
	font-size: clamp(24px, 1vw + 17px, 32px) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -.015em !important;
}

body.rp-uusi .loovl-ae h3 {
	margin: 28px 0 8px;
	color: var(--rp-otsikko, #fff) !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
}

.post-content .loovl-ae p,
.post-content .loovl-ae li {
	color: var(--rp-teksti, #cfcfd4);
	font-size: 16px;
	line-height: 1.65;
}

.post-content .loovl-ae p {
	margin: 0 0 12px;
}

.post-content .loovl-ae ul {
	margin: 0 0 14px;
	padding-left: 22px;
}

.post-content .loovl-ae ul li {
	margin: 0 0 6px;
}

.post-content .loovl-ae p.loovl-ae__pieni {
	margin-top: 14px;
	color: var(--rp-heikko, #8f8f98);
	font-size: 14px;
	line-height: 1.55;
}

.post-content .loovl-ae a:not(.loovl-ae__nappi) {
	color: var(--rp-korostus, #f6c454);
}

/* tables: dop-stili.css has «table td {width:50%}» and on a phone «table {font-size:12px}» - longer selectors here */
.loovl-ae__taulukko {
	margin: 6px 0 16px;
}

.post-content .loovl-ae table.loovl-ae__takuut,
.post-content .loovl-ae table.loovl-ae__esimerkki {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
}

.loovl-ae table th,
.loovl-ae table td {
	width: auto;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--rp-raja, #26262b);
	background: transparent;
	color: var(--rp-teksti, #cfcfd4);
	text-align: left;
	vertical-align: top;
}

.loovl-ae table th:first-child,
.loovl-ae table td:first-child {
	padding-left: 0;
}

.loovl-ae table.loovl-ae__esimerkki td {
	text-align: right;
	white-space: nowrap;
}

.loovl-ae table thead th {
	color: var(--rp-heikko, #8f8f98);
	font-size: 13px;
	font-weight: 600;
}

.loovl-ae table.loovl-ae__esimerkki thead th:not(:first-child) {
	text-align: right;
}

.loovl-ae table tbody th {
	color: var(--rp-otsikko, #fff);
	font-weight: 600;
}

.loovl-ae table tbody tr:last-child > * {
	border-bottom: 0;
}

.loovl-ae table tr.loovl-ae__summa > * {
	color: var(--rp-otsikko, #fff);
	font-weight: 700;
	border-top: 2px solid var(--rp-raja, #26262b);
}

/* button */
.loovl-ae__loppu {
	margin-top: 40px;
	text-align: center;
}

body a.loovl-ae__nappi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 13px 28px;
	border-radius: 8px;
	background: var(--rp-aksentti, #f6c454);
	box-shadow: 0 14px 30px -16px rgba(246, 196, 84, .8);
	color: var(--rp-aksentti-teksti, #151309) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
}

@media (max-width: 760px) {
	body .post-content .loovl-ae nav.loovl-ae__pikalinkit ul {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	body .loovl-ae__pikalinkit a {
		min-height: 56px;
	}
}

@media (max-width: 640px) {
	.loovl-ae {
		padding: 26px 0 50px;
	}

	.post-content .loovl-ae p.loovl-ae__johdanto {
		font-size: 17px;
	}

	body.rp-uusi .loovl-ae h2 {
		margin-top: 40px;
	}

	.post-content .loovl-ae p,
	.post-content .loovl-ae li {
		font-size: 15px;
	}

	/* tables: one card per row, the column name in front of each value */
	.post-content .loovl-ae table.loovl-ae__takuut,
	.post-content .loovl-ae table.loovl-ae__esimerkki,
	.loovl-ae table tbody,
	.loovl-ae table tr,
	.loovl-ae table th,
	.loovl-ae table td {
		display: block;
		width: 100%;
	}

	.post-content .loovl-ae table.loovl-ae__takuut,
	.post-content .loovl-ae table.loovl-ae__esimerkki {
		font-size: 14px;
	}

	.loovl-ae table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.loovl-ae table tr {
		padding: 10px 0;
		border-bottom: 1px solid var(--rp-raja, #26262b);
	}

	.loovl-ae table tbody tr:last-child {
		border-bottom: 0;
	}

	.loovl-ae table tr.loovl-ae__summa > * {
		border-top: 0;
	}

	.loovl-ae table tbody th,
	.loovl-ae table tbody td {
		padding: 2px 0 !important;
		border: 0;
	}

	.loovl-ae table tbody th {
		padding-bottom: 4px !important;
	}

	.loovl-ae table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		text-align: right;
		white-space: normal;
	}

	.loovl-ae table tbody td::before {
		content: attr(data-otsikko);
		color: var(--rp-heikko, #8f8f98);
		font-weight: 400;
		text-align: left;
	}

	body a.loovl-ae__nappi {
		display: flex;
		width: 100%;
	}
}

@media print {
	.loovl-ae__pikalinkit,
	.loovl-ae__loppu {
		display: none !important;
	}
}
