/* Live-editorilla lisätyt osiot ja osioiden taustakuvat/-videot. Näkyy kaikille kävijöille. */
.section--white { background: #fff; color: var(--green); }
.tt-blk { display: block; }
.tt-blk__narrow { max-width: 880px; }
.tt-blk .display.h2 { margin-bottom: 14px; text-wrap: balance; }
.tt-blk .lead { margin: 0 0 18px; max-width: 65ch; }
.tt-blk .btn-row { margin: 8px 0 0; }
.tt-blk__img { display: grid; }
.tt-blk__fig { margin: 0; border-radius: 22px; overflow: hidden; background: var(--cream-2); }
.tt-blk__fig a, .tt-blk__cell a, .tt-blk__slide a { display: block; height: 100%; cursor: zoom-in; }
.tt-blk__fig img { display: block; width: 100%; height: auto; }
.tt-blk--image .tt-blk__fig img { max-height: 82vh; object-fit: cover; }
.tt-blk__cap { margin: 10px 0 0; font-size: 14px; opacity: .75; }
.tt-blk__media--left .split__media { order: -1; }
.tt-blk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 20px; }
.tt-blk__cell { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--cream-2); }
.tt-blk__cell img, .tt-blk__slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.tt-blk__cell:hover img { transform: scale(1.04); }
.tt-blk__car { position: relative; margin-top: 20px; }
.tt-blk__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px max(16px, calc((100vw - 1200px) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.tt-blk__track::-webkit-scrollbar { display: none; }
.tt-blk__slide { flex: 0 0 auto; width: min(80vw, 520px); aspect-ratio: 4 / 3; margin: 0; border-radius: 20px; overflow: hidden; scroll-snap-align: center; background: var(--cream-2); }
.tt-blk__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: var(--cream); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(10, 40, 30, .2); }
.tt-blk__nav--prev { left: max(10px, calc((100vw - 1240px) / 2)); }
.tt-blk__nav--next { right: max(10px, calc((100vw - 1240px) / 2)); }
.tt-blk__nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .tt-blk__nav { display: none; } }
.tt-blk__yt { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; margin-top: 12px; background: #000; }
.tt-blk__yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tt-blk__vid { display: block; width: 100%; border-radius: 20px; margin-top: 12px; background: #000; }

/* Osion taustakuva tai -video + vaalea kalvo, jotta teksti erottuu. */
.tt-sec--media { position: relative; isolation: isolate; overflow: hidden; background-size: cover; background-position: center; --tt-ovc: var(--cream); }
.tt-sec--media.section--sand { --tt-ovc: var(--cream-2); }
.tt-sec--media.section--white { --tt-ovc: #fff; }
.tt-sec--media.section--yellow { --tt-ovc: var(--yellow); }
.tt-sec--media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tt-ovc); opacity: var(--tt-ov, .55); pointer-events: none; }
.tt-sec__vid { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tt-sec__vid { display: none; } }

/* Piilotetut osiot näkyvät vain editorissa. */
html:not(.tt-live-on) .tt-sec--off, html.tt-live-preview .tt-sec--off, html:not(.tt-live-on) .tt-live-empty, html.tt-live-preview .tt-live-empty { display: none !important; }
.tt-live-slot { display: none; }

/* Tekstinauha: värit, nopeus ja suunta (live-editori) */
.marquee--cream { background: var(--cream); color: var(--green); border-block: 1px solid var(--green-soft, rgba(15, 77, 58, .16)); }
.marquee--sand { background: var(--cream-2); color: var(--green); }
.marquee--white { background: #fff; color: var(--green); }
.marquee[style*="--tt-mq"] .marquee__track { animation-duration: var(--tt-mq); }

/* Osion tekstiväri (napit säilyttävät omat värinsä) */
.tt-fg--green { --tt-fg: var(--green); }
.tt-fg--black { --tt-fg: #111; }
.tt-fg--cream { --tt-fg: var(--cream); }
.tt-fg--yellow { --tt-fg: var(--yellow); }
[class*="tt-fg--"] { color: var(--tt-fg) !important; }
[class*="tt-fg--"] :is(h1, h2, h3, h4, p, li, span, small, b, strong, .display, .eyebrow, .lead, .marker, .marquee__item):not(.btn):not(.btn *) { color: var(--tt-fg) !important; }

/* Toimintakehote */
.tt-blk__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.tt-blk__cta > div { flex: 1 1 420px; min-width: 0; }
.tt-blk__cta .lead { margin-bottom: 0; }
.tt-blk__cta .btn-row { margin: 0; }
.tt-blk--cta .btn--green { background: var(--green); color: var(--cream); }

/* Sarakkeet ja vaiheet */
.tt-blk__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 22px; }
.tt-blk__col { min-width: 0; padding: 24px; border-radius: 20px; background: var(--white, #fff); box-shadow: inset 0 0 0 1px rgba(15, 77, 58, .1); }
.tt-blk__col h3 { margin: 0 0 8px; }
.tt-blk__col p { margin: 0; }
.tt-blk__num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--green); color: var(--cream); font-weight: 900; font-size: 18px; }

/* Luvut */
.tt-blk__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; text-align: center; }
.tt-blk__big { margin: 0; font-family: var(--font-display, inherit); font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: 1; color: var(--yellow); }
.tt-blk__lbl { margin: 6px 0 0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }

/* Usein kysytyt */
.tt-blk__faq { display: grid; gap: 10px; margin-top: 18px; }
.tt-blk__qa { border-radius: 16px; background: var(--white, #fff); box-shadow: inset 0 0 0 1px rgba(15, 77, 58, .12); }
.tt-blk__qa summary { cursor: pointer; padding: 18px 22px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tt-blk__qa summary::-webkit-details-marker { display: none; }
.tt-blk__qa summary::after { content: "+"; font-size: 22px; line-height: 1; }
.tt-blk__qa[open] summary::after { content: "–"; }
.tt-blk__qa p { margin: 0; padding: 0 22px 18px; }

/* Asiakaspalaute */
.tt-blk__quote { margin: 0; text-align: center; }
.tt-blk__quote blockquote { margin: 0; }
.tt-blk__quote blockquote p { margin: 0; font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.15; text-wrap: balance; }
.tt-blk__quote blockquote p::before { content: "”"; display: block; font-size: 1.8em; line-height: .8; color: var(--yellow); }
.tt-blk__quote figcaption { margin-top: 16px; font-weight: 700; opacity: .75; }

/* Välistys */
.tt-blk--spacer { padding: 0 !important; }
.tt-blk__space { height: clamp(32px, 6vw, 80px); }
.tt-blk__space { display: grid; place-items: center; }
.tt-blk__space .tt-live-only { font-size: 12px; opacity: .5; }
html.tt-live-on:not(.tt-live-preview) .tt-blk__space { outline: 1px dashed rgba(15, 77, 58, .4); outline-offset: -1px; }

/* Sarakkeet (vapaa sarakejako) */
.tt-g { display: grid; grid-template-columns: var(--tt-g, 1fr 1fr); gap: 28px clamp(20px, 3vw, 40px); align-items: start; }
.tt-g__col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tt-g__col > * { margin: 0; }
.tt-g__h { margin: 0; text-wrap: balance; }
.tt-g__p { max-width: 65ch; }
.tt-g__btn { margin: 4px 0 0; }
.tt-g__img { margin: 0; border-radius: 20px; overflow: hidden; background: var(--cream-2); }
.tt-g__img img { display: block; width: 100%; height: auto; }
button.tt-g__img { aspect-ratio: 4 / 3; width: 100%; }
.tt-g__ib { display: flex; gap: 14px; align-items: flex-start; }
.tt-g__ib h3 { margin: 0 0 4px; }
.tt-g__ib p { margin: 0; }
.tt-g__ic { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green); color: var(--cream); }
.tt-g__hr { width: 100%; border: 0; border-top: 2px solid currentColor; opacity: .18; }
.tt-g__sp { height: 24px; }
@media (max-width: 1024px) {
	.tt-g--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.tt-g { grid-template-columns: 1fr; gap: 24px; }
	.tt-g__ic { width: 44px; height: 44px; border-radius: 14px; }
}

/* Karusellimallit (kuvat ja tekstit) – pyyhkäisy puhelimella ja padilla, nuolet ja pisteet koneella */
.tt-blk__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.tt-blk__dots i { width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: .25; transition: width .25s, opacity .25s; }
.tt-blk__dots i.is-on { width: 24px; opacity: .9; }
/* Iso kuva yksi kerrallaan */
.tt-car--hero .tt-blk__track { padding-inline: max(16px, calc((100vw - 1200px) / 2)); }
.tt-car--hero .tt-blk__slide { width: min(100%, 1200px); aspect-ratio: 16 / 9; scroll-snap-align: center; }
@media (max-width: 760px) { .tt-car--hero .tt-blk__slide { aspect-ratio: 4 / 5; } }
/* Kortit: 3 koneella, 2 padilla, 1 + reunus puhelimella */
.tt-car--cards .tt-blk__slide { width: calc((min(100vw, 1200px) - 2 * 16px - 2 * 14px) / 3); aspect-ratio: 3 / 4; scroll-snap-align: start; }
.tt-car--cards .tt-blk__track { scroll-padding-inline: max(16px, calc((100vw - 1200px) / 2)); }
@media (max-width: 1024px) { .tt-car--cards .tt-blk__slide { width: calc((100vw - 2 * 16px - 14px) / 2); } }
@media (max-width: 760px) { .tt-car--cards .tt-blk__slide { width: 82vw; } }
/* Jatkuva nauha (kuvat tai tekstit liukuvat itsestään, pysähtyy hiiren alla) */
.tt-car--strip { overflow: hidden; }
.tt-car--strip .tt-blk__track { width: max-content; overflow: visible; scroll-snap-type: none; padding-inline: 0; animation: tt-strip var(--tt-strip, 40s) linear infinite; }
.tt-car--strip:hover .tt-blk__track { animation-play-state: paused; }
.tt-car--strip .tt-blk__slide { width: clamp(220px, 28vw, 360px); }
@keyframes tt-strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tt-car--strip .tt-blk__track { animation: none; overflow-x: auto; width: auto; } }
html.tt-live-on .tt-car--strip .tt-blk__track { animation: none; width: auto; overflow-x: auto; }
/* Tekstikaruselli */
.tt-q { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; aspect-ratio: auto !important; padding: clamp(22px, 3vw, 36px); background: var(--white, #fff) !important; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(15, 77, 58, .1); color: var(--green); }
.tt-q blockquote { margin: 0; }
.tt-q blockquote p { margin: 0; font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; }
.tt-q blockquote p::before { content: "”"; display: block; font-family: var(--font-display, inherit); font-size: 54px; line-height: .7; color: var(--yellow); -webkit-text-stroke: 1px var(--green); }
.tt-q figcaption { font-weight: 700; font-size: 14px; opacity: .7; }
.tt-blk--quotes .tt-car--one .tt-blk__slide { width: min(calc(100vw - 32px), 820px); scroll-snap-align: center; }
.tt-blk--quotes .tt-car--one .tt-blk__track { padding-inline: max(16px, calc((100vw - 820px) / 2)); }
.tt-blk--quotes .tt-car--one .tt-q { text-align: center; align-items: center; }
.tt-blk--quotes .tt-car--one .tt-q blockquote p { font-size: clamp(20px, 2.4vw, 32px); }
.tt-blk--quotes .tt-car--cards .tt-blk__slide { aspect-ratio: auto; }
.tt-blk--quotes .tt-car--strip .tt-blk__slide { width: clamp(260px, 30vw, 380px); }
@media (max-width: 760px) { .tt-blk__dots { margin-top: 10px; } .tt-q blockquote p { font-size: 18px; } }

.tt-blk__slide[hidden] { display: none !important; }
/* Nuolet pisteiden molemmin puolin karusellin alla – eivät peitä kuvia tai tekstejä */
.tt-blk__car:has(.tt-blk__dots) { padding-bottom: 64px; }
.tt-blk__car:has(.tt-blk__dots) .tt-blk__nav { top: auto; bottom: 0; transform: none; width: 44px; height: 44px; font-size: 26px; }
.tt-blk__car:has(.tt-blk__dots) .tt-blk__nav--prev { left: calc(50% - 150px); }
.tt-blk__car:has(.tt-blk__dots) .tt-blk__nav--next { right: calc(50% - 150px); }
.tt-blk__car:has(.tt-blk__dots) .tt-blk__dots { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; pointer-events: none; }
@media (hover: none) { .tt-blk__car:has(.tt-blk__dots) { padding-bottom: 30px; } .tt-blk__car:has(.tt-blk__dots) .tt-blk__dots { bottom: 6px; } }
/* Yksi kerrallaan: seuraava ei kurki reunasta */
.tt-car--hero .tt-blk__track { column-gap: max(16px, calc((100vw - 1200px) / 2)); gap: max(16px, calc((100vw - 1200px) / 2)); }
.tt-blk--quotes .tt-car--one .tt-blk__track { gap: max(16px, calc((100vw - 820px) / 2)); }
