/* ==========================================================================
   BestLevel by Pencil – raikas ilme
   Manrope-typografia, luunvalkoinen pohja ja grafiitti, pyöreät muodot ilman
   varjoja. BestLevelin vihreä on toimintoväri ja keltainen korostus.
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
}

:root {
	--bl-font: "Manrope", Arial, sans-serif;
	--bl-bg: #f4f5f0;
	--bl-surface: #ffffff;
	--bl-surface-2: #e6e9e0;
	--bl-ink: #2b3138;
	--bl-heading: #15191d;
	--bl-heading-dark: #15191d;
	--bl-accent: #179e42;
	--bl-accent-soft: #4bae4e;
	--bl-accent-hover: #12823a;
	--bl-highlight: #ffb813;
	--bl-dark: #1f262c;
	--bl-dark-deep: #171c21;
	--bl-soft-text: #c9cfd4;
	--bl-line-dark: #3a444c;
	--bl-muted: #5b636b;
	--bl-line: #d5d9cf;
	--bl-btn-default: #179e42;
	--bl-radius: 18px;
	--bl-radius-sm: 8px;
	--bl-container: 1600px;
	--bl-gutter: 12px;
	--bl-widget-space: 22px;
}

@media (max-width: 1448px) { :root { --bl-container: 1080px; } }
@media (max-width: 767px) { :root { --bl-container: 100%; } }

/* --- Perusta ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bl-bg);
	color: var(--bl-ink);
	font-family: var(--bl-font);
	font-size: 19px;
	line-height: 1.6;
	font-weight: 400;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:where(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: var(--bl-font);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--bl-heading-color, var(--bl-heading));
	text-wrap: balance;
}
:where(h1) { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; }
:where(h2) { font-size: clamp(28px, 3vw, 38px); }
:where(h3) { font-size: 23px; letter-spacing: -0.02em; }
:where(h4) { font-size: 20px; letter-spacing: -0.015em; }
:where(h5) { font-size: 18px; letter-spacing: -0.01em; }
:where(h6) { font-size: 16px; letter-spacing: 0; }
:where(p) { margin: 0 0 1.2em; }
:where(p:last-child) { margin-bottom: 0; }
:where(ul, ol) { margin: 0 0 1.3em; padding-left: 1.3em; }
:where(figure) { margin: 0; }
:where(img) { max-width: 100%; height: auto; }
:where(strong, b) { font-weight: 700; }
a { color: var(--bl-link-color, var(--bl-accent)); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bl-accent-hover); }
:focus-visible { outline: 3px solid var(--bl-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bl-highlight); color: var(--bl-heading); }

.screen-reader-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.bl-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 20px; border-radius: 999px; background: var(--bl-accent); color: #fff; font-weight: 700; }
.bl-skip:focus { top: 12px; color: #fff; }

.bl-container { width: 100%; max-width: var(--bl-container); margin-inline: auto; padding-inline: 24px; }
.bl-container--narrow { max-width: 860px; }

/* --- Painikkeet: pill, ei varjoja ---------------------------------------- */
.bl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 15px 32px;
	border: 2px solid transparent;
	border-radius: var(--bl-btn-radius, 999px);
	background: var(--bl-btn-bg, var(--bl-btn-default));
	color: var(--bl-btn-color, #fff);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.bl-btn:hover, .bl-btn:focus-visible { background: var(--bl-btn-bg-hover, var(--bl-accent-hover)); color: var(--bl-btn-color, #fff); }
.bl-btn:active { transform: translateY(1px); }
.bl-btn--xs { padding: 9px 18px; font-size: 14px; }
.bl-btn--sm { padding: 14px 28px; font-size: 17px; }
.bl-btn--md { padding: 16px 36px; font-size: 17px; }
.bl-btn--lg { padding: 18px 40px; font-size: 19px; }
.bl-btn--xl { padding: 22px 48px; font-size: 21px; }
.bl-btn--outline {
	background: transparent;
	color: var(--bl-heading);
	border-color: var(--bl-heading);
	padding: 13px 28px;
}
.bl-btn--outline:hover, .bl-btn--outline:focus-visible { background: var(--bl-heading); border-color: var(--bl-heading); color: #fff; }
.bl-btn--header { padding: 8px 22px; font-size: 14px; background: var(--bl-accent); }
.bl-btn--header:hover { background: var(--bl-accent-hover); }
.bl-form__submit { background: var(--bl-accent); }

/* --- Ylätunniste ---------------------------------------------------------- */
.bl-header { position: sticky; top: 0; z-index: 100; background: rgba(244, 245, 240, .96); border-bottom: 1px solid var(--bl-line); backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .bl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bl-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bl-header { top: 0; } }

.bl-topbar { background: var(--bl-dark); color: var(--bl-soft-text); transition: margin-top .25s ease; }
.bl-topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 52px; max-width: 1920px; padding-inline: 32px; }
.bl-topbar__phone { margin: 0; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0; }
.bl-topbar__cta { margin-inline: auto; }
.bl-topbar__tools { display: flex; align-items: center; gap: 16px; }
.bl-topbar__search { width: 230px; }
.bl-topbar__social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; border: 1px solid var(--bl-line-dark); transition: background-color .2s ease, border-color .2s ease; }
.bl-topbar__social:hover { color: #fff; background: var(--bl-accent); border-color: var(--bl-accent); }
.bl-topbar__shop { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 4px; border-radius: 50%; background: #fff; }
.bl-topbar__shop-img { width: 30px; height: 30px; }
.bl-topbar .bl-search__input, .bl-topbar .bl-search .aws-search-field { min-height: 34px; border-color: var(--bl-line-dark); border-radius: 999px; background: var(--bl-dark-deep); color: #fff; font-size: 14px; padding-inline: 16px; }
.bl-topbar .bl-search__input::placeholder, .bl-topbar .aws-search-field::placeholder { color: var(--bl-soft-text); }

.bl-mainbar__inner { display: flex; align-items: center; gap: 32px; min-height: 78px; max-width: 1920px; padding-inline: 32px; position: static; }
.bl-logo { display: inline-flex; flex: 0 0 auto; width: 132px; }
.bl-logo__img { width: 132px; height: auto; display: block; }

.bl-nav { margin-left: auto; }
.bl-nav-region { display: contents; }
.bl-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.bl-menu__item { position: static; }
.bl-menu__item--dropdown { position: relative; }
.bl-menu__top { display: flex; align-items: center; }
.bl-menu__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	min-height: 64px;
	border: 0;
	background: none;
	color: var(--bl-heading);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: color .2s ease;
}
.bl-menu__link::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 14px;
	height: 3px;
	border-radius: 3px;
	background: var(--bl-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}
.bl-menu__item:hover > .bl-menu__top > .bl-menu__link,
.bl-menu__item:focus-within > .bl-menu__top > .bl-menu__link,
.bl-menu__item > .bl-menu__link:hover,
.bl-menu__item.is-open > .bl-menu__top > .bl-menu__link { color: var(--bl-accent); }
.bl-menu__item.is-current > .bl-menu__link::after,
.bl-menu__item.is-current > .bl-menu__top > .bl-menu__link::after,
.bl-menu__item > .bl-menu__link:hover::after,
.bl-menu__item:hover > .bl-menu__top > .bl-menu__link::after { transform: scaleX(1); }
.bl-menu__toggle { display: none; border: 0; background: none; color: inherit; cursor: pointer; }
.bl-menu__caret { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.bl-menu__item.is-open .bl-menu__caret, .bl-menu__item:hover .bl-menu__caret { transform: translateY(1px) rotate(-135deg); }

/* Megavalikko */
.bl-mega {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--bl-surface);
	border-bottom: 1px solid var(--bl-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.bl-menu__item--mega:hover > .bl-mega,
.bl-menu__item--mega:focus-within > .bl-mega,
.bl-menu__item--mega.is-open > .bl-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bl-mega__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 40px; max-width: 1400px; margin: 0 auto; padding: 32px 32px 40px; }
.bl-mega__col { padding-top: 16px; border-top: 3px solid var(--bl-accent); }
.bl-mega__title { margin: 0 0 8px; padding: 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-muted); }
.bl-mega__list { margin: 0; padding: 0; list-style: none; }
.bl-mega__link, .bl-dropdown__link {
	display: block;
	padding: 9px 12px;
	border-radius: var(--bl-radius-sm);
	color: var(--bl-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	transition: background-color .15s ease, color .15s ease;
}
.bl-mega__link:hover, .bl-mega__link:focus-visible, .bl-mega__item.is-current > .bl-mega__link,
.bl-dropdown__link:hover, .bl-dropdown__link:focus-visible, .bl-dropdown__item.is-current > .bl-dropdown__link { background: var(--bl-surface-2); color: var(--bl-accent-hover); }

.bl-dropdown {
	position: absolute; left: 0; top: 100%;
	min-width: 260px; margin: 0; padding: 10px; list-style: none;
	background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: var(--bl-radius);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.bl-menu__item--dropdown:hover > .bl-dropdown,
.bl-menu__item--dropdown:focus-within > .bl-dropdown,
.bl-menu__item--dropdown.is-open > .bl-dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.bl-burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--bl-line); border-radius: 50%; background: var(--bl-surface); cursor: pointer; color: var(--bl-heading); }
.bl-burger__lines, .bl-burger__lines::before, .bl-burger__lines::after { display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, background-color .2s ease; }
.bl-burger__lines { position: relative; }
.bl-burger__lines::before, .bl-burger__lines::after { content: ""; position: absolute; left: 0; }
.bl-burger__lines::before { top: -6px; }
.bl-burger__lines::after { top: 6px; }
.bl-burger[aria-expanded="true"] .bl-burger__lines { background: transparent; }
.bl-burger[aria-expanded="true"] .bl-burger__lines::before { transform: translateY(6px) rotate(45deg); }
.bl-burger[aria-expanded="true"] .bl-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Kiinteä ylätunniste: yläpalkki piiloutuu vieritettäessä */
.bl-header.is-scrolled .bl-topbar { margin-top: calc(-1 * var(--bl-topbar-h, 52px)); }

@media (max-width: 1100px) {
	.bl-menu__link { padding: 0 10px; font-size: 15px; }
	.bl-menu__link::after { left: 10px; right: 10px; }
}
@media (max-width: 921px) {
	.bl-burger { display: block; }
	.bl-mainbar__inner { flex-wrap: wrap; min-height: 68px; }
	.bl-nav { display: none; flex-basis: 100%; margin: 0 -32px; max-height: calc(100vh - 130px); overflow-y: auto; border-top: 1px solid var(--bl-line); background: var(--bl-surface); }
	.bl-nav.is-open { display: block; }
	.bl-menu { display: block; }
	.bl-menu__link { min-height: 54px; padding: 0 28px; flex: 1 1 auto; font-size: 17px; }
	.bl-menu__link::after { display: none; }
	.bl-menu__item.is-current > .bl-menu__link, .bl-menu__item.is-current > .bl-menu__top > .bl-menu__link { color: var(--bl-accent); }
	.bl-menu__top { justify-content: space-between; }
	.bl-menu__toggle { display: flex; align-items: center; justify-content: center; width: 60px; min-height: 54px; color: var(--bl-heading); }
	.bl-menu__toggle-label { justify-content: space-between; }
	.bl-menu__item { border-bottom: 1px solid var(--bl-line); }
	.bl-mega, .bl-dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; border: 0; border-radius: 0; background: var(--bl-bg); transition: none; }
	.bl-menu__item.is-open > .bl-mega, .bl-menu__item.is-open > .bl-dropdown { display: block; }
	.bl-menu__item--mega:hover > .bl-mega, .bl-menu__item--dropdown:hover > .bl-dropdown { display: none; }
	.bl-menu__item.is-open:hover > .bl-mega, .bl-menu__item.is-open:hover > .bl-dropdown { display: block; }
	.bl-mega__inner { display: block; padding: 4px 16px 14px; }
	.bl-mega__col { padding-top: 0; border-top: 0; }
	.bl-mega__link, .bl-dropdown__link { padding: 10px 16px 10px 28px; font-size: 16px; }
	.bl-mega__title { padding: 10px 28px 0; }
	.bl-dropdown { min-width: 0; padding: 4px 16px 14px; }
}
@media (max-width: 900px) {
	.bl-topbar__inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 8px; padding-inline: 20px; }
	.bl-topbar__cta { margin: 0; }
	.bl-topbar__tools { margin-left: auto; gap: 12px; }
	.bl-topbar__search { width: 100%; order: 5; }
	.bl-mainbar__inner { padding-inline: 20px; }
	.bl-nav { margin: 0 -20px; }
}
@media (max-width: 600px) {
	.bl-topbar__tools { flex-basis: 100%; justify-content: space-between; }
	.bl-topbar__search { order: 0; flex: 1 1 auto; width: auto; }
}

/* --- Haku ---------------------------------------------------------------- */
.bl-search { position: relative; }
.bl-search--native { display: flex; }
.bl-search__input, .bl-search .aws-search-field {
	width: 100%;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--bl-line);
	border-radius: 999px;
	background: var(--bl-surface);
	color: var(--bl-ink);
	font: inherit;
	font-size: 15px;
}
.bl-search__submit { position: absolute; right: 4px; top: 0; bottom: 0; width: 40px; border: 0; background: none; color: var(--bl-muted); cursor: pointer; }
.bl-search-widget { max-width: 520px; margin-inline: auto; width: 100%; }
.bl-search-widget .bl-search__input, .bl-search-widget .aws-search-field { min-height: 56px; padding-inline: 24px; font-size: 17px; }
.bl-search-widget .aws-container .aws-search-form { height: 56px; } /* Hakulisäosa lukitsee lomakkeen 44px korkeaksi, jolloin 56px kenttä leikkautui. */

/* --- Sivun rakenne (muunnetut osiot) -------------------------------------- */
.bl-main { display: block; }
.bl-section, .bl-flex { position: relative; }
.bl-section--has-bg { overflow: hidden; isolation: isolate; }
.bl-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bl-bg__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bl-col--has-bg { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--bl-radius); }

.bl-section__row { display: flex; flex-wrap: nowrap; margin-inline: auto; position: relative; }
.bl-section--boxed > .bl-section__row { max-width: var(--bl-container); padding-inline: 12px; }
.bl-section--full > .bl-section__row { max-width: none; }
.bl-section--inner > .bl-section__row { max-width: none; margin-inline: calc(-1 * var(--bl-gutter)); padding-inline: 0; }
.bl-section--top.bl-section--boxed:not(.bl-section--has-bg) { padding-block: 18px; }
.bl-valign-middle > .bl-section__row, .bl-valign-center > .bl-section__row { align-items: center; }
.bl-valign-bottom > .bl-section__row { align-items: flex-end; }
.bl-section[style*="min-height"] > .bl-section__row { min-height: inherit; }
.bl-section[style*="min-height"] { display: flex; flex-direction: column; justify-content: center; }
.bl-section[style*="min-height"] > .bl-section__row { width: 100%; }

.bl-col { position: relative; display: flex; width: var(--bl-col-w, 100%); min-height: 1px; }
.bl-col__inner { position: relative; display: flex; flex-direction: column; width: 100%; padding: var(--bl-gutter); }
.bl-col--center > .bl-col__inner { justify-content: center; }
.bl-col--bottom > .bl-col__inner { justify-content: flex-end; }
.bl-gap-no { --bl-gutter: 0px; }
.bl-gap-narrow { --bl-gutter: 6px; }
.bl-gap-extended { --bl-gutter: 16px; }
.bl-gap-wide { --bl-gutter: 22px; }
.bl-gap-wider { --bl-gutter: 32px; }

.bl-flex__inner { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: var(--bl-container); margin-inline: auto; padding: 12px 24px; }
.bl-flex--full > .bl-flex__inner, .bl-flex--inner > .bl-flex__inner { max-width: none; }
.bl-flex--inner { flex: 1 1 auto; min-width: 0; }
.bl-flex--inner > .bl-flex__inner { padding: 0; height: 100%; }

.bl-w { position: relative; width: 100%; }
.bl-col__inner > .bl-w:not(:last-child),
.bl-col__inner > .bl-section:not(:last-child) { margin-bottom: var(--bl-widget-gap, var(--bl-widget-space)); }
.bl-align-center { text-align: center; }
.bl-align-right { text-align: right; }
.bl-align-left { text-align: left; }
.bl-align-justify { text-align: justify; }

.bl-spacer { height: var(--bl-space); flex: 0 0 auto; }
.bl-col__inner > .bl-spacer:not(:last-child) { margin-bottom: var(--bl-widget-gap, var(--bl-widget-space)); }

/* Keltainen korostus: aina tumma teksti, värilliset sarakkeet pyöristetään */
.bl-col[style*="background-color"] { border-radius: var(--bl-radius); overflow: hidden; }
.bl-section--inner[style*="background-color"] { border-radius: var(--bl-radius); overflow: hidden; }
[style*="#FFB813"], [style*="#FEB814"], [style*="#ffb813"], [style*="#feb814"] { color: var(--bl-heading); }
[style*="#FFB813"] .bl-heading__title, [style*="#FEB814"] .bl-heading__title,
[style*="#ffb813"] .bl-heading__title, [style*="#feb814"] .bl-heading__title,
[style*="#FFB813"] .bl-text, [style*="#FEB814"] .bl-text { color: var(--bl-heading) !important; }
.bl-btn-holder[style*="#FFB813"] .bl-btn, .bl-btn-holder[style*="#FEB814"] .bl-btn,
.bl-btn-holder[style*="#ffb813"] .bl-btn { color: var(--bl-heading) !important; }
.bl-btn-holder[style*="#FFB813"] .bl-btn:hover, .bl-btn-holder[style*="#FEB814"] .bl-btn:hover { background: var(--bl-heading); color: #fff !important; }

.bl-heading__title { overflow-wrap: break-word; }
.bl-heading__title[style*="font-size"] { line-height: 1.02; letter-spacing: -0.035em; }
.bl-heading__link { color: inherit; }
.bl-heading__link:hover { color: inherit; opacity: .85; }

/* Kuvallinen otsikkoalue: iso valkoinen otsikko vihreän sävyn päällä */
.bl-section--has-bg .bl-heading__title { text-shadow: none; }

.bl-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bl-prose a:hover { text-decoration-color: var(--bl-accent); }
.bl-prose ul, .bl-prose ol { margin-bottom: 1.1em; }
.bl-prose li { margin-bottom: .25em; }
.bl-prose li::marker { color: var(--bl-accent); }
.bl-text__heading { margin: 1.2em 0 .5em; }
.bl-text__heading:first-child { margin-top: 0; }
.bl-text__figure { margin: 0 0 1.2em; }
.bl-text > .pencil-richtext + .pencil-richtext, .bl-text > * + .pencil-richtext { margin-top: 1.1em; }

.bl-image__figure { display: inline-block; max-width: 100%; vertical-align: middle; }
.bl-image .bl-img, .bl-text__figure .bl-img { display: block; width: 100%; height: auto; border-radius: var(--bl-radius); }
.bl-image__caption { margin-top: 10px; font-size: 15px; color: var(--bl-muted); text-align: center; }
.bl-image__link { display: block; border-radius: var(--bl-radius); }

.bl-btn-holder { display: inline-block; }
.bl-button-wrap.bl-align-justify .bl-btn-holder, .bl-button-wrap.bl-align-justify .bl-btn { display: flex; width: 100%; }

/* Nostokortti */
.bl-cta, .bl-cta__card { height: 100%; }
.bl-cta__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var(--bl-cta-minh, 0);
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--bl-radius);
	overflow: hidden;
	transition: border-color .25s ease, transform .25s ease;
}
.bl-cta__card--linked:hover { border-color: var(--bl-accent); transform: translateY(-3px); }
.bl-cta__media { overflow: hidden; }
.bl-cta__img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.bl-cta__card--linked:hover .bl-cta__img { transform: scale(1.04); }
.bl-cta__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; padding: 28px 28px 30px; text-align: left; color: var(--bl-ink); }
.bl-cta__title { margin-bottom: 14px; font-size: 22px; letter-spacing: -0.025em; color: var(--bl-heading); }
.bl-cta__desc { margin-bottom: 22px; color: var(--bl-muted); font-size: 16px; line-height: 1.6; }
.bl-cta__action { margin-top: auto; }
.bl-cta__btn { padding: 11px 24px; font-size: 15px; }
.bl-cta__card--linked .bl-cta__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bl-cta__card--linked:hover .bl-cta__btn { background: var(--bl-heading); border-color: var(--bl-heading); color: #fff; }

/* Kuvakelista */
.bl-iconlist__items { margin: 0; padding: 0; list-style: none; }
.bl-iconlist__items--inline { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.bl-iconlist__item { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.bl-iconlist__item .bl-icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 4px; color: var(--bl-accent); }
.bl-iconlist__link { color: var(--bl-heading); font-weight: 600; }
.bl-iconlist__link:hover { color: var(--bl-accent); }
.bl-iconlist__text { color: var(--bl-ink); }

/* Kuva- ja kuvakelaatikot */
.bl-imagebox { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.bl-imagebox--left { flex-direction: row; text-align: left; align-items: flex-start; }
.bl-imagebox--right { flex-direction: row-reverse; text-align: right; align-items: flex-start; }
.bl-imagebox__media { flex: 0 0 auto; width: 100%; max-width: 100%; }
.bl-imagebox--left .bl-imagebox__media, .bl-imagebox--right .bl-imagebox__media { width: 30%; padding: 10px; background: var(--bl-surface); border-radius: var(--bl-radius); }
.bl-imagebox__media .bl-img { width: 100%; height: auto; display: block; }
.bl-imagebox__title { margin-bottom: 6px; font-size: 20px; }
.bl-imagebox__link { color: inherit; }
.bl-imagebox__link:hover { color: var(--bl-accent); }
.bl-iconbox { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.bl-iconbox--left { flex-direction: row; align-items: flex-start; text-align: left; }
.bl-iconbox__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: 0 0 auto; border-radius: 50%; background: var(--bl-surface-2); }
.bl-iconbox__icon .bl-icon { width: 30px; height: 30px; color: var(--bl-accent); }
.bl-iconbox__title { margin-bottom: 8px; }

/* Galleria */
.bl-gallery__grid { display: grid; grid-template-columns: repeat(var(--bl-gallery-cols, 3), minmax(0, 1fr)); gap: 14px; }
.bl-gallery__item a { display: block; overflow: hidden; border-radius: var(--bl-radius); }
.bl-gallery__item .bl-img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.bl-gallery__item a:hover img { transform: scale(1.03); }

/* Henkilökortti */
.bl-team { padding: 28px 24px; background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: var(--bl-radius); text-align: center; }
.bl-team__media { width: 52%; margin: 0 auto 18px; }
.bl-team__img { display: block; width: 100%; height: auto; border-radius: 50%; }
.bl-team__name { font-size: 22px; color: var(--bl-heading); }
.bl-team__role { margin: 4px 0 12px; color: var(--bl-accent); font-weight: 700; font-size: 15px; }
.bl-team__desc { font-size: 16px; color: var(--bl-muted); }

/* Video ja upotus */
.bl-video__frame, .bl-embed__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--bl-radius); background: var(--bl-dark); }
.bl-embed__frame { aspect-ratio: auto; height: 450px; background: var(--bl-surface-2); }
.bl-video__frame iframe, .bl-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Haitari */
.bl-accordion { display: flex; flex-direction: column; gap: 10px; }
.bl-accordion__item { background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: var(--bl-radius); overflow: hidden; transition: border-color .2s ease; }
.bl-accordion__item[open] { border-color: var(--bl-accent); }
.bl-accordion__title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--bl-heading); cursor: pointer; list-style: none; }
.bl-accordion__title::-webkit-details-marker { display: none; }
.bl-accordion__icon { width: 26px; height: 26px; flex: 0 0 auto; position: relative; border-radius: 50%; background: var(--bl-surface-2); }
.bl-accordion__icon::before, .bl-accordion__icon::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; border-radius: 2px; background: var(--bl-heading); transition: transform .2s ease; }
.bl-accordion__icon::after { transform: rotate(90deg); }
.bl-accordion__item[open] .bl-accordion__icon { background: var(--bl-accent); }
.bl-accordion__item[open] .bl-accordion__icon::before, .bl-accordion__item[open] .bl-accordion__icon::after { background: #fff; }
.bl-accordion__item[open] .bl-accordion__icon::after { transform: rotate(0); }
.bl-accordion__content { padding: 0 22px 20px; }

/* Taulukko */
.bl-table__scroll { overflow-x: auto; border: 1px solid var(--bl-line); border-radius: var(--bl-radius); background: var(--bl-surface); }
.bl-table__table { width: 100%; border-collapse: collapse; font-size: 17px; }
.bl-table__table th, .bl-table__table td { padding: 14px 18px; border-bottom: 1px solid var(--bl-line); background: transparent; color: var(--bl-ink); text-align: left; vertical-align: top; }
.bl-table__table tr:last-child td { border-bottom: 0; }
.bl-table__table tr:nth-child(even) td { background: var(--bl-bg); }
.bl-table__table thead th { background: var(--bl-dark); color: #fff; font-weight: 800; }
.bl-table__link { font-weight: 600; }

/* Asiakaskokemus */
.bl-testimonial { margin: 0; }
.bl-testimonial__quote { position: relative; margin: 0 0 18px; padding: 32px 36px; background: var(--bl-dark); border-radius: var(--bl-radius); color: #fff; font-size: 18px; }
.bl-testimonial__quote::before { content: "\201D"; position: absolute; right: 26px; top: -6px; font-size: 96px; font-weight: 800; line-height: 1; color: var(--bl-highlight); }
.bl-testimonial__author { display: flex; flex-direction: column; padding-left: 36px; }
.bl-testimonial__name { color: var(--bl-heading); font-weight: 800; }
.bl-testimonial__title { color: var(--bl-muted); font-size: 15px; }

/* Tuotteet ja tuoteryhmät */
.bl-productgrid, .bl-catgrid { display: grid; grid-template-columns: repeat(var(--bl-cols, 4), minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.bl-catgrid { --bl-cols: 3; }
.bl-productcard, .bl-catcard { background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: var(--bl-radius); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.bl-productcard:hover, .bl-catcard:hover { border-color: var(--bl-accent); transform: translateY(-3px); }
.bl-productcard__link, .bl-catcard__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.bl-productcard__media, .bl-catcard__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; padding: 14px; background: var(--bl-surface); }
.bl-productcard__img, .bl-catcard__img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s ease; }
.bl-productcard__link:hover .bl-productcard__img, .bl-catcard__link:hover .bl-catcard__img { transform: scale(1.04); }
.bl-productcard__title, .bl-catcard__title { padding: 12px 18px 18px; font-size: 17px; letter-spacing: -0.02em; color: var(--bl-heading); border-top: 1px solid var(--bl-line); }
.bl-productcard__link:hover .bl-productcard__title, .bl-catcard__link:hover .bl-catcard__title { color: var(--bl-accent); }
.bl-productcard__pricevalue { margin: 0; padding: 0 18px 18px; color: var(--bl-accent); font-weight: 800; }
.bl-catcard__count { color: var(--bl-muted); font-weight: 600; }
.bl-catcard__desc { margin: 0; padding: 0 18px 18px; font-size: 15px; line-height: 1.55; color: var(--bl-muted); }
.bl-catcard__placeholder, .bl-postcard__placeholder { display: block; width: 100%; height: 100%; background: var(--bl-surface-2); }

/* Uutiset */
.bl-postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-postcard { display: flex; flex-direction: column; background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: var(--bl-radius); overflow: hidden; transition: border-color .2s ease; }
.bl-postcard:hover { border-color: var(--bl-accent); }
.bl-postcard__region { display: flex; flex-direction: column; height: 100%; }
.bl-postcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.bl-postcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bl-postcard:hover .bl-postcard__img { transform: scale(1.03); }
.bl-postcard__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 26px; }
.bl-postcard__date { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-accent); }
.bl-postcard__title { margin-bottom: 10px; font-size: 21px; }
.bl-postcard__title a { color: var(--bl-heading); }
.bl-postcard__title a:hover { color: var(--bl-accent); }
.bl-postcard__excerpt { font-size: 16px; line-height: 1.6; color: var(--bl-muted); }
.bl-postcard__excerpt p { margin: 0; }
.bl-postcard__more { margin-top: auto; padding-top: 16px; font-weight: 800; font-size: 15px; color: var(--bl-heading); }
.bl-postcard__more:hover { color: var(--bl-accent); }
.bl-postsearch { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 32px; }
.bl-pagination { margin-top: 40px; }
.bl-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bl-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--bl-line); border-radius: 999px; background: var(--bl-surface); color: var(--bl-heading); font-weight: 700; }
.bl-pagination .page-numbers.current, .bl-pagination a.page-numbers:hover { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; }
.bl-empty { text-align: center; padding: 30px 0; }

/* Tavalliset sivut, uutiset ja kauppa */
.bl-pagehead { position: relative; overflow: hidden; background: var(--bl-dark); color: #fff; padding: 84px 0 72px; }
.bl-pagehead::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--bl-accent); opacity: .9; pointer-events: none; }
.bl-pagehead .bl-container { position: relative; z-index: 1; }
.bl-pagehead__title { max-width: 900px; color: #fff; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.bl-pagehead__meta { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-highlight); }
.bl-entry { padding-block: 56px 80px; }
.bl-entry__content { max-width: 820px; }
.bl-entry__content > *:first-child { margin-top: 0; }
.bl-entry__content img { height: auto; border-radius: var(--bl-radius); }
.bl-single__media { margin-bottom: 32px; }
.bl-single__img { display: block; width: 100%; height: auto; border-radius: var(--bl-radius); }
.bl-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--bl-line); font-size: 16px; font-weight: 700; }
.bl-archive { padding-block: 56px 80px; }
.bl-shop__inner { padding-block: 44px 72px; }
.bl-404__search { max-width: 480px; margin: 24px 0; }

/* --- Slider ------------------------------------------------------------- */
.bl-slider { position: relative; overflow: hidden; background: var(--bl-surface-2); border-radius: var(--bl-radius); }
.bl-slider__track { position: relative; aspect-ratio: 2000 / 600; }
.bl-slider__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.bl-slider__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.bl-slider__media, .bl-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bl-slider__img { object-fit: cover; display: block; }
.bl-slider__caption { position: absolute; left: 3%; top: 50%; z-index: 2; max-width: 44%; transform: translateY(-50%); }
.bl-slider__label {
	display: inline-block;
	margin: 0;
	padding: .55em 1em;
	border-radius: 14px;
	background: var(--bl-accent);
	color: #fff;
	font-size: clamp(16px, 1.7vw, 26px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
a.bl-slider__label:hover { background: var(--bl-heading); color: #fff; }
.bl-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.bl-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .65); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.bl-slider__dot.is-active { width: 28px; background: #fff; }
.bl-slider__dot:hover { background: #fff; }
@media (max-width: 767px) {
	.bl-slider__caption { max-width: 62%; }
	.bl-slider__label { font-size: 13px; border-radius: 10px; }
	.bl-slider__dots { bottom: 6px; gap: 6px; }
	.bl-slider__dot { width: 8px; height: 8px; }
	.bl-slider__dot.is-active { width: 20px; }
}

/* --- Lomakkeet ---------------------------------------------------------- */
.bl-form { max-width: 720px; }
.bl-form__field { margin-bottom: 18px; }
.bl-form__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--bl-heading); }
.bl-form__req { color: var(--bl-accent); }
.bl-form__input {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	border: 1px solid var(--bl-line);
	border-radius: 14px;
	background: var(--bl-surface);
	color: var(--bl-ink);
	font: inherit;
	font-size: 17px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.bl-form__input:focus { border-color: var(--bl-accent); outline: 3px solid rgba(23, 158, 66, .18); outline-offset: 0; }
.bl-form__input--textarea { min-height: 170px; resize: vertical; }
.bl-form__field.has-error .bl-form__input { border-color: #c0392b; }
.bl-form__error { margin: 6px 0 0; color: #c0392b; font-size: 15px; font-weight: 600; }
.bl-form__help { margin: 6px 0 0; color: var(--bl-muted); font-size: 15px; }
.bl-form__alert { margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid #c0392b; background: var(--bl-surface); color: #c0392b; font-weight: 600; }
.bl-form__success { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--bl-accent); background: var(--bl-surface); }
.bl-form__check { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 16px; }
.bl-form__check input { width: 18px; height: 18px; accent-color: var(--bl-accent); }
.bl-form__links { margin-top: 14px; font-size: 15px; }
.bl-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bl-form__loggedin { padding: 16px 20px; border-radius: 14px; background: var(--bl-surface); border: 1px solid var(--bl-line); }

/* --- Alatunniste: grafiitti --------------------------------------------- */
.bl-footer { margin-top: 0; background: var(--bl-dark); color: var(--bl-soft-text); padding-top: 72px; }
.bl-footer a { color: #fff; }
.bl-footer a:hover { color: var(--bl-highlight); }
.bl-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.bl-footer__title { margin-bottom: 20px; font-size: 26px; color: #fff; }
.bl-footer__title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--bl-accent); }
.bl-footer__text { font-size: 16px; line-height: 1.7; }
.bl-footer__text strong { color: #fff; }
.bl-footer__text + .bl-footer__text { margin-top: 1em; }
.bl-footnews__list { margin: 0; padding: 0; list-style: none; }
.bl-footnews__item + .bl-footnews__item { margin-top: 16px; }
.bl-footnews__link { display: flex; gap: 16px; align-items: flex-start; }
.bl-footnews__img { width: 72px; height: 72px; object-fit: cover; flex: 0 0 auto; border-radius: 12px; }
.bl-footnews__text { display: flex; flex-direction: column; }
.bl-footnews__title { font-size: 16px; line-height: 1.4; font-weight: 700; color: #fff; }
.bl-footnews__link:hover .bl-footnews__title { color: var(--bl-highlight); }
.bl-footnews__date { font-size: 13px; color: var(--bl-soft-text); }
.bl-footer__bottom { border-top: 1px solid var(--bl-line-dark); background: var(--bl-dark-deep); padding: 22px 0; }
.bl-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bl-footer__logo { display: inline-flex; width: 120px; padding: 8px 12px; border-radius: 12px; background: #fff; }
.bl-footer__logo-img { width: 100%; height: auto; }
.bl-footer__copy { font-size: 14px; color: var(--bl-soft-text); }
.bl-footer__copy a { text-decoration: underline; text-underline-offset: 3px; }

.bl-totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bl-heading); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s, background-color .2s ease; }
.bl-totop.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.bl-totop:hover { background: var(--bl-accent); color: #fff; }

/* --- Suurennettu kuva ---------------------------------------------------- */
.bl-lightbox-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(21, 25, 29, .92); }
.bl-lightbox-dialog::backdrop { background: rgba(21, 25, 29, .6); }
.bl-lightbox-dialog__inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 50px 20px; }
.bl-lightbox-dialog img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--bl-radius-sm); }
.bl-lightbox-dialog__close { position: absolute; right: 16px; top: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* --- Responsiivisuus ---------------------------------------------------- */
@media (max-width: 1024px) {
	.bl-col { width: var(--bl-col-wt, var(--bl-col-w, 100%)); }
	.bl-section__row:has(> .bl-col:nth-child(4)) { flex-wrap: wrap; }
	.bl-section__row:has(> .bl-col:nth-child(4)) > .bl-col { width: var(--bl-col-wt, 50%); }
	.bl-productgrid { --bl-cols: 3; }
	.bl-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bl-hide-tablet { display: none !important; }
	.bl-heading__title[style*="--bl-fs-t"] { font-size: var(--bl-fs-t) !important; }
}
@media (min-width: 1025px) {
	.bl-hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
	body { font-size: 17px; }
	.bl-section__row { flex-wrap: wrap; }
	.bl-col, .bl-section__row:has(> .bl-col:nth-child(4)) > .bl-col { width: var(--bl-col-wm, 100%); }
	.bl-flex__inner[style*="flex-direction:row"], .bl-flex__inner[style*="flex-direction: row"] { flex-direction: column !important; }
	.bl-flex--inner[style*="width"] { width: 100% !important; }
	.bl-hide-mobile { display: none !important; }
	.bl-heading__title[style*="--bl-fs-m"] { font-size: var(--bl-fs-m) !important; }
	.bl-heading__title[style*="font-size"]:not([style*="--bl-fs-m"]) { font-size: clamp(28px, 10vw, 46px) !important; }
	.bl-productgrid, .bl-catgrid { --bl-cols: 2; gap: 12px; }
	.bl-postgrid { grid-template-columns: 1fr; }
	.bl-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bl-imagebox--left, .bl-imagebox--right { flex-direction: column; text-align: center; align-items: center; }
	.bl-imagebox--left .bl-imagebox__media, .bl-imagebox--right .bl-imagebox__media { width: 60%; }
	.bl-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.bl-cta__body { padding: 22px; }
	.bl-table__table { font-size: 15px; }
	.bl-table__table th, .bl-table__table td { padding: 10px 12px; }
	.bl-embed__frame { height: 320px; }
	.bl-pagehead { padding: 56px 0 48px; }
	.bl-pagehead::after { width: 180px; height: 180px; right: -60px; bottom: -80px; }
	.bl-slider { border-radius: 12px; }
}
@media (max-width: 420px) {
	.bl-productgrid, .bl-catgrid { --bl-cols: 1; }
}

/* --- Mobiiliylätunniste: haku pois, verkkokaupan kuvake logon viereen --- */
.bl-mainbar__shop { display: none; }
@media (max-width: 767px) {
	.bl-topbar__search, .bl-topbar__shop { display: none; }
	.bl-topbar__tools { flex-basis: auto; margin-left: auto; }
	.bl-mainbar__inner { gap: 14px; }
	.bl-mainbar__shop { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 5px; border-radius: 50%; background: #fff; border: 1px solid var(--bl-line); }
	.bl-mainbar__shop img { width: 32px; height: 32px; }
}

/* Mobiilissa hero-karuselli korkeammaksi (2:1), reunat rajautuvat hieman. */
@media (max-width: 767px) {
	.bl-slider__track { aspect-ratio: 2 / 1; }
}

/* Mobiilissa etusivun hakuosio lähemmäs Tervetuloa-laatikkoa (~25px väli). */
@media (max-width: 767px) {
	#etusivu-haku { margin-top: 0 !important; padding-top: 13px; }
	#etusivu-haku .bl-col:has(> .bl-col__inner:empty) { display: none; }
}
	/* Tervetuloa-laatikko, slider ja haku samaan linjaan (slider: 15px osio + 12px sarake). */
	#etusivu-tervetuloa .bl-section__row { padding-inline: 27px; }
	#etusivu-haku .bl-section__row { padding-inline: 15px; }
}

/* --- Etusivun hakukenttä: moderni pill-muoto (desktop + mobiili) --- */
.bl-search-widget .aws-container .aws-search-form .aws-wrapper { position: relative; overflow: visible; }
.bl-search-widget .aws-container .aws-search-form .aws-wrapper::before { content: ""; position: absolute; left: 22px; top: 50%; z-index: 3; width: 20px; height: 20px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b636b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.bl-search-widget .aws-container .aws-search-form .aws-search-field {
	border: 1px solid var(--bl-line);
	border-radius: 999px !important;
	background: var(--bl-surface);
	color: var(--bl-ink);
	padding: 0 52px 0 54px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(21, 25, 29, .04), 0 10px 28px -14px rgba(21, 25, 29, .22);
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.bl-search-widget .aws-container .aws-search-form .aws-search-field::placeholder { color: var(--bl-muted); opacity: 1; font-weight: 400; }
.bl-search-widget .aws-container .aws-search-form .aws-search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.bl-search-widget .aws-container .aws-search-form .aws-search-field:hover { border-color: #b9c0b3; }
.bl-search-widget .aws-container .aws-search-form .aws-search-field:focus { outline: none; border-color: var(--bl-accent); box-shadow: 0 0 0 4px rgba(23, 158, 66, .16), 0 10px 28px -14px rgba(21, 25, 29, .22); }
.bl-search-widget .aws-container .aws-search-form .aws-search-clear { right: 10px; width: 40px; padding: 0; text-align: center; color: var(--bl-muted); }
.bl-search-widget .aws-container .aws-search-form .aws-loader { right: 18px; }

/* --- Alasivujen hero (taustakuva + otsikko) matalammaksi mobiilissa --- */
@media (max-width: 767px) {
	.bl-main > .bl-section--has-bg:first-child .bl-col__inner > .bl-spacer { height: min(var(--bl-space), 24px); }
	.bl-main > .bl-section--has-bg:first-child .bl-heading__title[style*="--bl-fs-m"] { font-size: min(var(--bl-fs-m), 32px) !important; }
}

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

/* --- Yläpalkki (desktop): PCI-laskuri oikealle haun viereen --- */
@media (min-width: 901px) {
	.bl-topbar__cta { margin-inline: auto 0; }
	.bl-topbar__search { width: 250px; }
}

/* --- Yläpalkin hakukenttä: moderni pill-muoto tummalla pohjalla --- */
.bl-topbar .bl-search .aws-container .aws-search-form { height: 38px; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-wrapper { position: relative; overflow: visible; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-wrapper::before { content: ""; position: absolute; left: 14px; top: 50%; z-index: 3; width: 16px; height: 16px; margin-top: -8px; background: var(--bl-soft-text); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat; transition: background-color .2s ease; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-wrapper:focus-within::before { background: #fff; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-search-field { height: 38px; min-height: 38px; padding: 0 36px 0 40px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px !important; background: rgba(255, 255, 255, .07); color: #fff; font-size: 14px; line-height: 38px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-search-field::placeholder { color: var(--bl-soft-text); opacity: 1; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-search-field:hover { border-color: rgba(255, 255, 255, .3); }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-search-field:focus { outline: none; border-color: var(--bl-accent); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(23, 158, 66, .35); }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-search-clear { right: 6px; width: 30px; padding: 0; text-align: center; color: var(--bl-soft-text); background: transparent; }
.bl-topbar .bl-search .aws-container .aws-search-form .aws-loader { right: 12px; }

/* --- Verkkokaupan painike BestLevelin keltaisella (yläpalkki + mobiilin logorivi) --- */
.bl-topbar__shop, .bl-mainbar__shop { background: var(--bl-highlight) !important; border-color: var(--bl-highlight) !important; transition: background-color .2s ease, transform .2s ease; }
.bl-topbar__shop:hover, .bl-mainbar__shop:hover, .bl-topbar__shop:focus-visible, .bl-mainbar__shop:focus-visible { background: #f0a800 !important; transform: scale(1.06); }

@media print {
	.bl-header, .bl-footer, .bl-totop, .bl-slider__dots { display: none; }
	body { background: #fff; }
}
