/* v1292 Premium: yrityspalveluiden tiiviit kortit ja järjestelmän työnäyte. */
.ds1270-panel,.ds1270-mini{box-sizing:border-box;max-width:1080px;margin:30px auto 38px;padding:clamp(22px,3.3vw,38px);background:linear-gradient(155deg,#fff 0%,#f5f9fe 100%);border:1px solid #dce8f3;border-radius:28px;box-shadow:0 18px 52px -40px rgba(5,37,76,.42);color:#16304b}
.ds1270-panel *,.ds1270-mini *{box-sizing:border-box}
.ds1270-intro{max-width:780px;margin-bottom:25px}
.ds1270-eyebrow{display:block;color:#216f80;font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:9px}
.ds1270-intro h3,.ds1270-mini h2{font-size:clamp(1.4rem,2.7vw,2rem);line-height:1.24;letter-spacing:-.03em;color:#0a2540;margin:0 0 10px}
.ds1270-intro p,.ds1270-mini p{color:#3c546d;line-height:1.68;margin:0}
.ds1270-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ds1270-package{background:#fff;border:1px solid #e1eaf4;border-radius:20px;padding:22px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ds1270-package h4{font-size:1.15rem;line-height:1.3;color:#0a2540;margin:9px 0}
.ds1270-package p{color:#3c546d;line-height:1.57;margin:0 0 15px;flex:1}
.ds1270-package strong{font-size:1.13rem;color:#103b60}
.ds1270-package small{color:#50667b;display:block;margin:4px 0 15px;font-size:.78rem}
.ds1270-package a,.ds1270-link{color:#0b567b;font-size:.93rem;font-weight:800;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;line-height:1.55}
.ds1270-package a:hover,.ds1270-link:hover{color:#073d60}
.ds1270-reference{background:linear-gradient(125deg,#f1f7fb 0%,#fff 75%)}
.ds1270-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0;padding:0;list-style:none;counter-reset:none}
.ds1270-flow li{background:#fff;border:1px solid #dde8ef;border-radius:19px;padding:21px;min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:10px}
.ds1270-flow-icon{display:grid;place-items:center;background:#e7f2f1;border-radius:50%;color:#126578;width:35px;height:35px;font-weight:800}
.ds1270-flow strong{color:#0a2540;line-height:1.34}
.ds1270-flow span{color:#3b526a;line-height:1.6;font-size:.91rem}
.ds1270-reference-bottom{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px;margin-top:19px}
.ds1270-reference-bottom p{color:#3a5369;max-width:630px;font-size:.88rem;line-height:1.6;margin:0}
.ds1270-mini{margin-top:0;margin-bottom:0;max-width:none}
.ds1270-mini .ds1270-link{display:inline-block;margin-top:16px}
:is(.ds1270-package a,.ds1270-link):focus-visible{outline:3px solid #1c58a8;outline-offset:3px;border-radius:4px}
@media(max-width:980px){.ds1270-reference-bottom{align-items:flex-start}}
@media(max-width:700px){.ds1270-panel,.ds1270-mini{padding:20px 16px;border-radius:21px;margin:22px auto 30px}.ds1270-package-grid,.ds1270-flow{grid-template-columns:1fr}.ds1270-package,.ds1270-flow li{padding:18px}.ds1270-reference-bottom{display:block}.ds1270-reference-bottom .ds1270-link{display:inline-block;margin-top:15px}.ds1270-intro{margin-bottom:19px}}
@media(prefers-reduced-motion:reduce){.ds1270-panel *{scroll-behavior:auto}}


/* Yrityspalvelukorttien kuvat */
.ds1270-package-media{width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;margin:0 0 16px;background:#edf4f8;border:1px solid #dde8ef}
.ds1270-package-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.ds1270-package h4{margin-top:0}
@media(max-width:700px){.ds1270-package-media{margin-bottom:14px;border-radius:14px}}


/* v1298: Työnäytekuvat luonnollisen kokoisina, ilman kapeaa 112/176 px kuvasaraketta.
   320–600: otsikko, koko kortin levyinen kuva, kuvaus.
   601–1099: kuva 44 % kortista, oikealla otsikko ja kuvaus.
   >=1100: kolme korttia rinnakkain, kuva koko kortin leveydellä. */
.ds1270-reference .ds1270-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ds1270-reference .ds1270-flow>li{display:block;min-width:0;padding:18px;border-radius:20px}
.ds1270-reference .ds1274-flow-copy{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;min-width:0}
.ds1270-reference .ds1288-flow-heading{display:flex;align-items:center;flex-direction:row;gap:11px;min-width:0}
.ds1270-reference .ds1270-flow-icon{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;font-size:.92rem}
.ds1270-reference .ds1288-flow-heading strong{min-width:0;flex:1;font-size:1rem;line-height:1.35;overflow-wrap:break-word}
.ds1270-reference .ds1274-flow-media{display:block;order:0;align-self:stretch;margin:0;width:100%;max-width:100%;aspect-ratio:720/311;overflow:hidden;border:1px solid #dce7ee;border-radius:14px;background:#ecf3fa}
.ds1270-reference .ds1274-flow-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.ds1270-reference .ds1274-flow-copy>span{display:block;min-width:0;overflow-wrap:break-word;font-size:.93rem;line-height:1.6}
@media (min-width:601px) and (max-width:1099px){
 .ds1270-reference .ds1270-flow{grid-template-columns:minmax(0,1fr)}
 .ds1270-reference .ds1270-flow>li{padding:20px}
 .ds1270-reference .ds1274-flow-copy{display:grid;grid-template-columns:minmax(220px,44%) minmax(0,1fr);grid-template-rows:auto auto;gap:12px 22px;align-items:center}
 .ds1270-reference .ds1274-flow-media{grid-column:1;grid-row:1/3;align-self:center}
 .ds1270-reference .ds1288-flow-heading{grid-column:2;grid-row:1;align-self:end}
 .ds1270-reference .ds1274-flow-copy>span{grid-column:2;grid-row:2;align-self:start}
}
@media (max-width:600px){
 .ds1270-reference .ds1270-flow{grid-template-columns:minmax(0,1fr);gap:16px}
 .ds1270-reference .ds1270-flow>li{padding:16px}
 .ds1270-reference .ds1274-flow-copy{display:flex;flex-direction:column;gap:14px}
 .ds1270-reference .ds1288-flow-heading{display:flex;align-items:center;flex-direction:row}
 .ds1270-reference .ds1274-flow-media{width:100%;margin:0;order:0}
}
/* v1298: 4K-työpöytänäkymässä työnäytteelle hieman enemmän tilaa. */
@media (min-width:1800px){
 .ds1270-reference{max-width:1360px}
 .ds1270-reference .ds1274-flow-copy{gap:16px}
}

/* v1298: yrityspalvelukorttien suorat ankkurit myös leveillä näytöillä. */
#yritys-ajanvaraus,#yritys-sms-hallinta{scroll-margin-top:110px}

/* R24 candidate: company entry and service decisions. Only the company section. */
.home-page #yritykset.b2b-refined .b2b-main-title{max-width:26ch;text-wrap:balance}
.home-page #yritykset.b2b-refined .b2b-section-subtitle{max-width:64ch;margin-bottom:14px;text-wrap:pretty}
.home-page #yritykset.b2b-refined .b2b-availability{max-width:66ch;margin:0 auto 28px;text-align:center;font-size:.9rem;line-height:1.65;color:#425c73}
.home-page #yritykset.b2b-refined .b2b-availability strong{font-weight:700;color:#153e5b}
.home-page #yritykset.b2b-refined .b2b-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:22px;margin-top:28px;align-items:start}
.home-page #yritykset.b2b-refined .service-offer{display:block;grid-row:auto;grid-template-rows:none;min-width:0}
.home-page #yritykset.b2b-refined .service-offer__body{display:flex;flex-direction:column;gap:16px;min-width:0}
.home-page #yritykset.b2b-refined .service-offer__body>*{grid-row:auto;min-width:0}
.home-page #yritykset.b2b-refined .service-offer__title,.home-page #yritykset.b2b-refined .service-offer__benefit,.home-page #yritykset.b2b-refined .service-offer__note,.home-page #yritykset.b2b-refined .service-offer__offer{min-block-size:0}
.home-page #yritykset.b2b-refined .service-offer__offer{padding:8px 0 0;gap:10px}
.home-page #yritykset.b2b-refined .service-offer__cta{min-height:48px;height:auto;white-space:normal}
.home-page #yritykset.b2b-refined .service-offer__details{margin:0;padding:0;border-bottom:0;align-self:stretch}
.home-page #yritykset.b2b-refined .service-offer__details>summary{min-height:48px;padding:14px 2px;line-height:1.45;font-weight:700}
.home-page #yritykset.b2b-refined .service-offer__details>summary:focus-visible{outline:3px solid #165aa0;outline-offset:3px;border-radius:4px}
.home-page #yritykset.b2b-refined .service-offer__details .service-offer__example{margin-top:16px}
.home-page #yritykset.b2b-refined .service-offer__secondary{margin:0;min-height:44px}

@media(min-width:701px) and (max-width:1099px){
 .home-page #yritykset.b2b-refined .service-offer__body{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:24px;row-gap:16px;align-items:start}
 .home-page #yritykset.b2b-refined .service-offer__media{grid-column:1;grid-row:1/3;align-self:start;margin:0}
 .home-page #yritykset.b2b-refined .service-offer__title{grid-column:2;grid-row:1}
 .home-page #yritykset.b2b-refined .service-offer__benefit{grid-column:2;grid-row:2}
 .home-page #yritykset.b2b-refined .service-offer__offer{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);column-gap:22px;align-items:center}
 .home-page #yritykset.b2b-refined .service-offer__price{grid-column:1;grid-row:1}
 .home-page #yritykset.b2b-refined .service-offer__note{grid-column:1;grid-row:2;margin:0}
 .home-page #yritykset.b2b-refined .service-offer__cta{grid-column:2;grid-row:1/3;align-self:center;margin:0}
 .home-page #yritykset.b2b-refined .service-offer__details{grid-column:1/-1;grid-row:4}
 .home-page #yritykset.b2b-refined .service-offer__secondary{grid-column:1/-1;grid-row:5;justify-self:start}
}

@media(min-width:1100px){
 .home-page #yritykset.b2b-refined .b2b-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
 .home-page #yritykset.b2b-refined .service-offer{height:100%}
 .home-page #yritykset.b2b-refined .service-offer__title{min-block-size:2.5em}
 @supports(grid-template-rows:subgrid){
  .home-page #yritykset.b2b-refined .b2b-grid{grid-template-rows:repeat(6,auto);row-gap:16px}
  .home-page #yritykset.b2b-refined .service-offer{display:grid;grid-template-rows:subgrid;grid-row:1/span 6;row-gap:16px}
  .home-page #yritykset.b2b-refined .service-offer__body{display:contents}
  .home-page #yritykset.b2b-refined .service-offer__media{grid-row:1}
  .home-page #yritykset.b2b-refined .service-offer__title{grid-row:2;min-block-size:0}
  .home-page #yritykset.b2b-refined .service-offer__benefit{grid-row:3}
  .home-page #yritykset.b2b-refined .service-offer__offer{grid-row:4}
  .home-page #yritykset.b2b-refined .service-offer__details{grid-row:5;align-self:start}
  .home-page #yritykset.b2b-refined .service-offer__secondary{grid-row:6;align-self:start}
 }
}

@media(max-width:700px){
 .home-page #yritykset.b2b-refined .b2b-availability{text-align:left;margin-bottom:22px;font-size:.9rem}
 .home-page #yritykset.b2b-refined .b2b-grid{gap:20px;margin-top:22px}
}
/* Keep the numeric price readable before JavaScript enhances the price markup. */
.home-page #yritykset.b2b-refined .service-offer__price > [data-ds-price] {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* R26: same calm price-panel language as the home-service cards.
   The existing live price hooks, notes and CTA controls stay intact. */
html body.home-page #yritykset.b2b-refined .service-offer__offer{gap:14px}
html body.home-page #yritykset.b2b-refined .service-offer__price-panel{box-sizing:border-box;min-inline-size:0;flex:1;padding:clamp(18px,1.8vw,24px);border:1px solid #d8e6f4;border-radius:20px;background:linear-gradient(135deg,#edf5ff,#f8fbff);box-shadow:0 8px 24px -22px #143856}
html body.home-page #yritykset.b2b-refined .service-offer__price-panel .service-offer__price{margin:0;color:#12344d;font-size:clamp(2rem,2.6vw,2.6rem);font-weight:800;line-height:1.18;letter-spacing:-.035em;gap:6px 9px}
html body.home-page #yritykset.b2b-refined .service-offer__price-panel .service-offer__price>span:not([data-ds-price]){color:#435c72;font-size:1rem;font-weight:500;letter-spacing:0}
html body.home-page #yritykset.b2b-refined .service-offer__price-panel .service-offer__price>[data-ds-price]{font:inherit;color:inherit;letter-spacing:inherit}
html body.home-page #yritykset.b2b-refined .service-offer__price-panel .service-offer__note{margin:10px 0 0;color:#435c72;font-size:.9375rem;line-height:1.6}
html body.home-page #yritykset.b2b-refined .service-offer__offer>.service-offer__cta{margin:0;flex-shrink:0}
@media(min-width:701px) and (max-width:1099px){
 html body.home-page #yritykset.b2b-refined .service-offer__price-panel{grid-column:1;grid-row:1}
 html body.home-page #yritykset.b2b-refined .service-offer__offer>.service-offer__cta{grid-column:2;grid-row:1;align-self:center}
}

/* R26: 3D start information lives beside the price on both entry pages.
   Existing example images, gallery and contact/attachment routing are retained. */
html body .td-experience.td-refined .td-offer-refined{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:clamp(24px,3vw,40px);padding:clamp(20px,3vw,34px);border-radius:24px}
html body .td-experience.td-refined .td-offer-copy,html body .td-experience.td-refined .td-offer-action{min-width:0}
html body .td-experience.td-refined .td-offer-copy>h2,html body .td-experience.td-refined .td-offer-copy>h3{margin:0 0 16px;font-size:1.25rem;line-height:1.45}
html body .td-experience.td-refined .td-price-panel{box-sizing:border-box;padding:clamp(18px,2vw,26px);border:1px solid #d8e6f4;border-radius:20px;background:linear-gradient(135deg,#edf5ff,#f8fbff)}
html body .td-experience.td-refined .td-price-panel .td-price{margin:0 0 12px;font-size:clamp(1.75rem,2.5vw,2.35rem);font-weight:800;line-height:1.25;color:#12344d;letter-spacing:-.025em;overflow-wrap:break-word}
html body .td-experience.td-refined .td-price-panel>p{margin:0;color:#435c72;font-size:.9375rem;line-height:1.65}
html body .td-experience.td-refined .td-offer-copy>.td-offer-price-note{margin:14px 0 0;color:#254e68;font-size:.9375rem;line-height:1.6;font-weight:600}
html body .td-experience.td-refined .td-offer-action{text-align:left}
html body .td-experience.td-refined .td-offer-action>.td-request-title{margin:0 0 12px;color:#12344d;font-size:1.125rem;font-weight:750;line-height:1.5}
html body .td-experience.td-refined .td-request-list{display:grid;gap:9px;margin:0;padding:0;list-style:none;color:#254e68;font-size:.9375rem;line-height:1.6}
html body .td-experience.td-refined .td-request-list>li{display:flex;align-items:baseline;gap:10px;margin:0;padding:0}
html body .td-experience.td-refined .td-request-list>li::before{content:"";display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#376589;align-self:flex-start;margin-top:.65em}
html body .td-experience.td-refined .td-offer-action>.td-request-hint{margin:12px 0 18px;color:#435c72;font-size:.875rem;line-height:1.65}
html body .td-experience.td-refined .td-offer-action>.td-button{margin:0;min-height:48px}
html body .td-experience.td-refined .td-offer-attachment{box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:9px;min-height:44px;width:100%;margin:9px 0 0;padding:10px 6px;border-radius:10px;color:#174d78;font-size:.9375rem;font-weight:650;line-height:1.5;text-align:center;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
html body .td-experience.td-refined .td-offer-attachment:hover{background:#edf5ff;color:#12344d}
html body .td-experience.td-refined .td-offer-attachment .td-line-icon{flex:0 0 20px;width:20px;height:20px}
html body .td-experience.td-refined .td-offer-action>.td-offer-reassurance{margin:8px 0 0;color:#435c72;font-size:.875rem;line-height:1.6;text-align:center}
@media(max-width:760px){
 html body .td-experience.td-refined .td-offer-refined{grid-template-columns:minmax(0,1fr);gap:24px;padding:20px;border-radius:20px}
 html body .td-experience.td-refined .td-offer-action{padding-top:22px;border-top:1px solid #dce6ef}
}

/* R32 accessibility: long Finnish reference links may wrap with enlarged text. */
html body.seo-page .ds1270-link {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

/* R32 accessibility: enlarged Finnish text stays within standalone 3D text cards. */
html body.seo-page .td-standalone :is(h2, h3, p) {
  overflow-wrap: anywhere;
}

/* R52: responsive website-service photograph; preserve laptop and cat at tablet widths. */
html body.home-page #yritykset #yritys-verkkosivut .service-offer__media .website-cat-r52{display:block;width:100%}
html body.home-page #yritykset #yritys-verkkosivut .service-offer__media .website-cat-r52 img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:16/10;object-fit:cover;object-position:center}

/* v1336 R7: equal business-service photographs on tablets and desktop.
 * Preserve the complete laptop/cat/router composition; no tablet height cap.
 * Phone presentation (up to 700px) is unchanged.
 */
@media(min-width:701px){
 html body.home-page #yritykset.b2b-refined .service-offer .service-offer__media img{
  display:block;width:100%;height:auto;max-height:none;aspect-ratio:8/5;
  object-fit:cover;object-position:center;
 }
}

/* Service pages share the desktop content grid used by the main navigation. */
@media screen and (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  body:is(.business-landing,.parts-landing) {
    --service-limit: 1840px;
    --service-width: calc(min(100vw, var(--service-limit)) - 2 * min(4vw, 76px));
    --section-type: clamp(2.125rem, 2rem + .55vw, 3rem);
    --card-type: clamp(1.5rem, 1.3rem + .38vw, 2rem);
  }
  html body:is(.business-landing,.parts-landing) :is(.seo-header,.seo-footer) > .seo-wrap,
  html body.business-landing #main-content > .seo-wrap,
  html body.business-landing #main-content > :is(.seo-section,.ds-r19-tool-callout) > .seo-wrap {
    box-sizing: border-box; width: var(--service-width) !important; max-width: none !important; margin-inline: auto !important;
  }
  html body.business-landing #main-content .seo-wrap > :is(.seo-cta,.r56-tool,.ds1270-mini,.ds34-case,.ds-premium) {
    box-sizing: border-box; width: 100% !important; max-width: none !important; margin-inline: 0 !important;
  }
  /* Align the parts catalogue with the shared navigation and footer. */
  html body.parts-landing #main-content > .seo-wrap > :is(.td-intro,.td-offer,.r56-tool,.ds7-part-guide,.td-gallery-section,.ds-case,.td-process,.td-faq,.td-closing) {
    box-sizing: border-box; width: var(--service-width) !important; max-width: none !important;
    margin-inline: calc((100% - var(--service-width)) / 2) !important;
  }
  html body:is(.business-landing,.parts-landing) #main-content h2 {
    font-size: var(--section-type) !important; font-weight: 700; text-wrap: balance;
  }
  html body:is(.business-landing,.parts-landing) #main-content :is(.seo-card,.td-gallery,.td-process,.ds-card) h3 {
    font-size: var(--card-type) !important; font-weight: 700; text-wrap: balance;
  }
  html body:is(.business-landing,.parts-landing) #main-content :is(.seo-section,.td-process,.td-gallery,.td-faq,.r56-tool,.ds-case) p {
    max-inline-size: 70ch; font-size: clamp(1.0625rem, 1rem + .15vw, 1.25rem);
  }
  html body:is(.business-landing,.parts-landing) #main-content :is(.r56-tool label,.td-request-hint,.td-offer-reassurance,.td-file-limit) {
    font-size: clamp(1rem, .95rem + .12vw, 1.125rem) !important;
  }
  html body.business-landing .r56-tool input:not([type=range]),
  html body.parts-landing .r56-tool select { max-width: 32rem; }
}
@media screen and (min-width:2560px) and (hover:hover) and (pointer:fine) {
  body:is(.business-landing,.parts-landing) { --service-limit: clamp(1840px, 1200px + 25vw, 2160px); }
}

@media screen and (min-width:1100px) and (hover:hover) and (pointer:fine) {
  html body.parts-landing #main-content .ds-hv2-3d-step img { box-sizing:border-box; width:min(100%, 358px) !important; height:auto !important; margin-inline:auto; }
}

@media screen and (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  @supports (container-type: size) {
    html body.parts-landing #main-content .td-intro {
      min-height: clamp(18rem, 20vw, 23rem);
    }
    /* The copy sets the height of this row, including when reading settings enlarge it. */
    html body.parts-landing #main-content .td-main-photo {
      container-type: size;
      align-self: stretch;
      display: grid;
      grid-template: minmax(0, 1fr) auto / 100%;
      justify-items: end;
      row-gap: .5rem;
      margin: 0;
    }
    html body.parts-landing #main-content .td-main-photo > :is(a, img, figcaption) {
      box-sizing: border-box;
      width: min(100%, calc((100cqh - 2.3rem) * 1.85)) !important;
      min-height: 0;
      margin: 0;
    }
    html body.parts-landing #main-content .td-main-photo img {
      height: 100% !important;
      max-height: 100%;
      object-fit: cover;
      object-position: 50% 58%;
    }
    html body.parts-landing #main-content .td-main-photo figcaption {
      text-align: start;
      line-height: 1.45;
    }
  }
}

@media screen {
  html body.parts-landing #main-content :is(
.td-eyebrow, .td-main-photo figcaption, .td-price-panel p, .td-offer-price-note,
.td-request-list li, .td-request-hint, .td-offer-reassurance, .td-offer-attachment span,
.td-image-link, .td-file-types > span > span, .td-file-limit,
.ds-hv2-3d-intro p, .ds-hv2-3d-step figcaption span, .ds-hv2-3d-tip span,
.ds-hv2-3d-extra p, .ds-hv2-3d-extra p strong, .ds-image-open-label,
.seo-breadcrumb, .seo-breadcrumb a, .case-label
) {
    font-size: max(16px, 1rem, var(--home-note-size, 1rem)) !important;
  }
}
