/* ==========================================================================
   Oppaat + lakisivut (lohtu/page-opas-*, page-tietosuoja, page-evasteet,
   page-toimitusehdot, page-eettiset) — Opas*/Tietosuoja/Evasteet/
   Toimitusehdot/Eettiset-Desktop artboards. One stylesheet for the family:
   sticky numbered TOC + long-form content column.
   ========================================================================== */

/* ---------- Hero ---------- */

.lohtu-opas-hero {
	background: var(--leaf-50);
	padding: 32px var(--lohtu-gutter) 72px;
}

.lohtu-opas-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

p.lohtu-opas-pill {
	margin: 24px 0 0;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--leaf-800);
	font-weight: 600;
	font-size: 14px;
}

.lohtu-opas-hero h1 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.04;
	color: var(--leaf-800);
	max-width: 920px;
	text-wrap: balance;
	margin: 0;
}

p.lohtu-opas-byline {
	font-size: 15px;
	color: var(--text-muted);
	margin: 0;
}

/* Legal variant: plain eyebrow, larger h1, lead paragraph */

.lohtu-opas-hero--legal {
	padding-bottom: 88px;
}

p.lohtu-opas-eyebrow {
	font-size: 16px;
	font-weight: 600;
	color: var(--leaf-800);
	margin: 24px 0 0;
}

.lohtu-opas-hero--legal h1 {
	font-size: clamp(44px, 5.6vw, 72px);
	max-width: 900px;
}

p.lohtu-opas-lead {
	font-size: 21px;
	line-height: 1.5;
	max-width: 640px;
	margin: 0;
	text-wrap: pretty;
}

/* ---------- Body: sticky numbered TOC + content column ---------- */

.lohtu-opas-body {
	background: #fff;
	padding: 72px var(--lohtu-gutter) 112px;
}

.lohtu-opas-body--legal {
	padding-top: 88px;
}

.lohtu-opas-body__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}

.lohtu-opas-toc {
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

p.lohtu-opas-toc__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-muted);
	margin: 0;
	padding: 0 0 12px;
}

ol.lohtu-opas-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: opas-toc;
}

.lohtu-opas-toc__list li {
	counter-increment: opas-toc;
	margin: 0;
	border-top: 1px solid #EDEBEB;
}

.lohtu-opas-toc__list li a {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 10px 0;
	color: var(--leaf-800);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.lohtu-opas-toc__list li a:hover {
	color: var(--leaf-500);
}

.lohtu-opas-toc__list li a::before {
	content: "0" counter(opas-toc);
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
}

/* ---------- Article column ---------- */

.lohtu-opas-article {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 780px;
}

.lohtu-opas-body--legal .lohtu-opas-article {
	gap: 48px;
}

figure.lohtu-opas-figure {
	margin: 0;
	border-radius: 24px;
	overflow: hidden;
	background: var(--green-header);
}

.lohtu-opas-figure img {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
}

/* "Lyhyesti" summary box */

.lohtu-opas-brief {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 32px 36px;
	border-radius: 20px;
	background: var(--leaf-50);
}

p.lohtu-opas-brief__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-opas-brief p {
	font-size: 19px;
	line-height: 1.65;
	margin: 0;
}

/* Content sections (anchored) */

.lohtu-opas-sec {
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 120px;
}

.lohtu-opas-sec h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.08;
	color: var(--leaf-800);
	margin: 8px 0 0;
}

.lohtu-opas-sec p {
	font-size: 19px;
	line-height: 1.65;
	margin: 0;
}

.lohtu-opas-body--legal .lohtu-opas-sec {
	gap: 14px;
}

.lohtu-opas-body--legal .lohtu-opas-sec h2 {
	font-size: clamp(27px, 3vw, 36px);
	line-height: 1.05;
	margin-top: 0;
}

/* ---------- Inline CTA band (dark green) ---------- */

.lohtu-opas-cta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 40px;
	border-radius: 24px;
	background: var(--leaf-800);
	margin: 16px 0;
	align-items: flex-start;
}

.lohtu-opas-cta h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(27px, 3vw, 34px);
	line-height: 1.1;
	color: #fff;
	margin: 0;
}

.lohtu-opas-cta p {
	font-size: 18px;
	line-height: 1.55;
	color: var(--sage-100);
	margin: 0;
}

.lohtu-opas-cta .wp-block-buttons {
	margin-top: 6px;
}

/* White button on the dark band: no hairline ring */
.lohtu-opas-cta .lohtu-btn--secondary > .wp-block-button__link {
	box-shadow: none;
}

.lohtu-opas-cta .lohtu-btn--secondary > .wp-block-button__link:hover {
	background: var(--sage-100);
}

/* ---------- In-article FAQ (shared lohtu-faq__item styles) ---------- */

.lohtu-opas-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.lohtu-opas-faq h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.08;
	color: var(--leaf-800);
	margin: 8px 0 0;
}

/* ---------- "Lue myös" cards ---------- */

.lohtu-opas-related {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 24px;
}

.lohtu-opas-related h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.08;
	color: var(--leaf-800);
	margin: 8px 0 0;
}

.lohtu-opas-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.lohtu-opas-related__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: var(--radius-card);
	background: var(--leaf-50);
	min-height: 150px;
}

.lohtu-opas-related__card h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.15;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-opas-related__card p {
	margin: auto 0 0;
}

.lohtu-opas-related__card .lohtu-arrow-link {
	font-size: 15px;
}

/* ---------- Eettiset periaatteet ---------- */

.lohtu-opas-ethics {
	background: #fff;
	padding: 112px var(--lohtu-gutter);
}

.lohtu-opas-principles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.lohtu-opas-principle {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 36px;
	border-radius: 24px;
	background: var(--leaf-50);
}

.lohtu-opas-principle::before {
	content: "";
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background: var(--leaf-500) var(--icon-check) no-repeat center / 18px;
}

.lohtu-opas-principle h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(26px, 2.8vw, 32px);
	line-height: 1.1;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-opas-principle p {
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink-deep, #3D3A36);
	margin: 0;
}

/* Reklamaatiot ja laadunvarmistus */

.lohtu-opas-rekla {
	background: #fff;
	padding: 0 var(--lohtu-gutter) 112px;
}

.lohtu-opas-rekla__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(40px, 6vw, 72px);
	align-items: start;
	padding-top: 56px;
	border-top: 1px solid #EDEBEB;
}

.lohtu-opas-rekla h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.05;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-opas-rekla__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.lohtu-opas-rekla__content p {
	font-size: 19px;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.lohtu-opas-body {
		padding-top: 56px;
		padding-bottom: 72px;
	}

	.lohtu-opas-body__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.lohtu-opas-toc {
		position: static;
		padding: 16px 18px;
		border-radius: 14px;
		box-shadow: inset 0 0 0 1px var(--stone-300);
	}

	.lohtu-opas-figure img {
		height: 320px;
	}

	.lohtu-opas-ethics {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.lohtu-opas-rekla__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.lohtu-opas-rekla {
		padding-bottom: 72px;
	}
}

@media (max-width: 700px) {
	.lohtu-opas-hero {
		padding-top: 18px;
		padding-bottom: 56px;
	}

	.lohtu-opas-figure img {
		height: 220px;
	}

	.lohtu-opas-brief {
		padding: 24px;
	}

	.lohtu-opas-cta {
		padding: 28px 24px;
	}

	.lohtu-opas-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lohtu-opas-principles {
		grid-template-columns: minmax(0, 1fr);
	}

	.lohtu-opas-principle {
		padding: 28px 24px;
	}
}
