/* Sensire – yhtenäinen ulkoasu: Ratkaisut- ja Ominaisuudet-sivut (FIN)
   Liitetään vain näihin sivuihin <link>-tagilla sivun head-HTML:ssä.
   Peruminen: poista link-tagi tai tyhjennä tämä tiedosto. */

/* ---------- Typografia ---------- */
main h1{font-family:Rubik,sans-serif!important;font-weight:500!important;font-size:clamp(28px,7.2vw,46px)!important;line-height:1.15!important;letter-spacing:-.01em}
main h2{font-family:Rubik,sans-serif!important;font-weight:500!important;font-size:clamp(23px,5.6vw,34px)!important;line-height:1.2!important;letter-spacing:-.005em}
main h3{font-family:Rubik,sans-serif!important;font-weight:500!important;font-size:clamp(19px,4.6vw,22px)!important;line-height:1.3!important}
main h4{font-family:Rubik,sans-serif!important;font-size:18px!important;line-height:1.35!important}
main :is(h1,h2,h3,h4){-webkit-hyphens:manual!important;hyphens:manual!important;overflow-wrap:break-word;word-break:normal;text-wrap:balance}
/* v2 */
main :is(h1,h2,h3,h4) *{-webkit-hyphens:manual!important;hyphens:manual!important;font-size:inherit!important;line-height:inherit!important}
main :is(p,li) *{-webkit-hyphens:manual!important;hyphens:manual!important}

main :is(p,li):not(.hs-form *):not(.sng-c *):not(.kl-logo-slider *):not(footer *){font-size:16px!important;line-height:1.6!important;-webkit-hyphens:manual;hyphens:manual}
@media(min-width:768px){main :is(p,li):not(.hs-form *):not(.sng-c *):not(.kl-logo-slider *){font-size:17px!important}}

/* Ingressi: yläosan ensimmäinen kappale */
main .dnd-section:first-child:not(:last-child) :is(p):not(.hs-form *):not(.sn-cases-link){font-size:18px!important;line-height:1.55!important}
@media(min-width:768px){main .dnd-section:first-child:not(:last-child) :is(p):not(.hs-form *):not(.sn-cases-link){font-size:20px!important}}

/* Aihe-/esiotsikko */
main .kl-rich-text__preheader,main .kl-rich-text__preheader *{font-size:14px!important;line-height:1.4!important}

/* Tekstieditorin rivikohtaiset koot pois (span/strong/em) */
main .kl-rich-text :is(span,strong,em,b,a)[style*="font-size"]{font-size:inherit!important}

/* ---------- Tasaus ---------- */
/* Monirivinen keskitetty teksti vasemmalle mobiilissa; lopun yhteydenottopalkki saa jäädä keskelle */
@media(max-width:767px){
 main .dnd-section:not(:last-child) .kl-rich-text--center :is(p,li,h2,h3,h4){text-align:left!important}
 main .dnd-section:not(:last-child) .kl-rich-text--center .kl-rich-text__buttons{justify-content:flex-start!important}
}

/* ---------- Osioiden välit ---------- */
main .dnd-section:not(:first-child):not(:last-child){padding-top:56px!important;padding-bottom:56px!important}
@media(min-width:768px){main .dnd-section:not(:first-child):not(:last-child){padding-top:88px!important;padding-bottom:88px!important}}

/* ---------- Kortit: yksi tyyli ---------- */
main :is(.kl-card,.kl-card-grid__card,.kl-testimonial,.box,.spec,.step,.quote){border-radius:14px!important;box-shadow:none!important;border:1px solid #dfe5ee!important;background-color:#fff}
main .kl-card img,main .kl-card-grid__card img{border-radius:10px}

/* ---------- Taulukot: eivät pilko sanoja mobiilissa ---------- */
@media(max-width:767px){
 main :has(> table){overflow-x:auto;-webkit-overflow-scrolling:touch}
 main table{min-width:540px}
 main table :is(td,th){font-size:14px!important;word-break:normal!important;overflow-wrap:normal!important;-webkit-hyphens:manual!important;hyphens:manual!important}
}

/* v3: Ratkaisu-sivun tumma yläosa (ei kuvaa moduulissa): tekstipalsta keskelle, teksti vasemmalle, jotta reunojen koristekuvat eivät jää tekstin alle */
@media(min-width:992px){main .dnd-section:first-child:not(:has(img)) .kl-rich-text{max-width:760px;margin-left:auto!important;margin-right:auto!important}}

/* v4: kaikki osiot samalla sisältöleveydellä (ei 900 px kapeita osioita); osion johdantotekstit luettavalla rivinpituudella */
main .dnd-section:not(:first-child) > .row-fluid{max-width:1140px!important;margin-left:auto!important;margin-right:auto!important}
main .dnd-section:not(:first-child) .kl-rich-text > div > :is(h2,p){max-width:820px}
main .dnd-section:not(:first-child) .kl-rich-text--center > div > :is(h2,p){margin-left:auto;margin-right:auto}

/* v5: oppaan latausosion jälkeen ei tyhjää; lopun yhteydenottopalkille väli footeriin */
main .dnd-section:has(.sng-c){padding-bottom:40px!important}
main .dnd-section .sng-c{margin-bottom:0!important}
main .row-fluid-wrapper.row-depth-1:not(.dnd-section):last-child:has(.kl-rich-text__buttons):not(:has(.row-fluid-wrapper)){padding-top:40px!important;padding-bottom:88px!important}
@media(max-width:767px){main .row-fluid-wrapper.row-depth-1:not(.dnd-section):last-child:has(.kl-rich-text__buttons):not(:has(.row-fluid-wrapper)){padding-bottom:56px!important}}

/* v6: kolmas CTA (asiakastarinat-rivi) napin alla */
main .sn-cases-link{margin:18px 0 0!important;font-size:17px!important;line-height:1.5!important;max-width:none!important}
main .sn-cases-link a{color:#0B71CE;text-decoration:none;font-weight:600}
main .sn-cases-link.on-dark a{color:#6cc4ff}
@media(max-width:767px){main .sn-cases-link{font-size:16px!important;margin-top:14px!important}}
html{scroll-behavior:smooth}
#sn-ref{scroll-margin-top:90px}

/* v7 */
main .sn-cases-link.on-dark{color:#fff!important}

/* v8 */
main .kl-custom-image img{max-width:100%;height:auto}

/* v9: testimonial link under author */
main .kl-testimonial:has(.kl-testimonial__content a){position:relative;display:flex;flex-direction:column;padding-bottom:68px!important}
main .kl-testimonial:has(.kl-testimonial__content a) .kl-testimonial__content{flex:1 1 auto;margin-bottom:12px}
main .kl-testimonial__content:has(a) br:nth-last-of-type(-n+2){display:none}
main .kl-testimonial .kl-testimonial__content a{position:absolute;left:25px;bottom:25px}

/* v10: equal-height cards, tighter section spacing */
main .row-fluid:has(> .span4 > .hs_cos_wrapper > .kl-card){display:flex;flex-wrap:wrap}
main .span4 > .hs_cos_wrapper:has(> .kl-card){height:100%}
main .kl-card:has(> .button){height:100%;display:flex;flex-direction:column}
main .kl-card > .button{margin-top:auto;align-self:flex-start}
main .kl-card > a:first-child img{width:100%;aspect-ratio:16/9;object-fit:cover}
@media(min-width:768px){main .dnd-section:not(:first-child):not(:last-child){padding-top:64px!important;padding-bottom:64px!important}main .dnd-section:not(:first-child):not(:last-child):has(.sng){padding-top:32px!important;padding-bottom:32px!important}}

/* v11: equal-height cards also in nested cells */
main .row-fluid:has(> .span4 .kl-card){display:flex;flex-wrap:wrap}
main .span4:has(.kl-card){display:flex;flex-direction:column}
main .span4:has(.kl-card) :is(.row-fluid-wrapper,.row-fluid,.span12,.hs_cos_wrapper):has(.kl-card){flex:1 1 auto;display:flex;flex-direction:column;width:100%}
main .kl-card:has(> .button){flex:1 1 auto;display:flex;flex-direction:column}

/* v12: equal-height cards for 2- and 4-column grids */
main .row-fluid:has(> :is(.span6,.span3) .kl-card){display:flex;flex-wrap:wrap}
main :is(.span6,.span3):has(.kl-card){display:flex;flex-direction:column}
main :is(.span6,.span3):has(.kl-card) :is(.row-fluid-wrapper,.row-fluid,.span12,.hs_cos_wrapper):has(.kl-card){flex:1 1 auto;display:flex;flex-direction:column;width:100%}

/* v13: equal-height cards without buttons */
main :is(.span3,.span4,.span6):has(.kl-card) .kl-card{flex:1 1 auto}
main :is(.span3,.span4,.span6) > .hs_cos_wrapper > .kl-card{height:100%}

/* v14: no uneven cell padding in card grids */
@media(min-width:768px){main :is(.span3,.span4,.span6):has(.kl-card){padding-top:0!important;padding-bottom:0!important}}
