/* Final responsive refinements. Keep content readable rather than clipping the page. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.contact-layout>*,.equipment-hero>*,.equipment-enquiry>*,.detail-grid>*,.cta-grid>*{min-width:0}
main h1,main h2,main h3{overflow-wrap:break-word;overflow-wrap:anywhere}
.pagination{flex-wrap:wrap;align-items:center;max-width:100%}
.pagination .page-numbers{max-width:100%;overflow-wrap:break-word;overflow-wrap:anywhere}
.news-head h1,.news-card h2,.news-article-head h1,.prose,.detail-meta dd{
  min-width:0;overflow-wrap:break-word;overflow-wrap:anywhere;
}
.prose figure{max-width:100%;margin-inline:0}
.prose img,.prose video{max-width:100%;height:auto}
.prose iframe,.prose embed,.prose object{max-width:100%}
.prose .wp-block-table,.prose>table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.prose>table{display:block}
.prose pre{max-width:100%;overflow-x:auto;white-space:pre;overflow-wrap:normal;-webkit-overflow-scrolling:touch}
.prose pre code{overflow-wrap:normal;white-space:inherit}

/* The icon stays in its own column when a translation needs two lines. */
@media(max-width:720px){
  .hero-primary,.text-link-cta,.solution-card .card-action{max-width:100%;min-width:0}
  .hero-primary-label,.text-link-cta-label,.solution-card .card-action-label{
    min-width:0;white-space:normal;overflow-wrap:break-word;overflow-wrap:anywhere;
  }
  html[dir] .hero-primary,html[dir] .text-link-cta{
    min-height:54px;padding-block:8px;padding-inline:68px 12px;line-height:1.4;
  }
  html[dir] .hero-primary .round-arrow,html[dir] .text-link-cta-arrow{
    inset-inline-start:0;inset-inline-end:auto;top:50%;margin-top:-27px;width:54px;height:54px;
  }
  html[dir] .hero-primary .round-arrow svg,html[dir] .text-link-cta-arrow svg{width:26px;height:26px}
  html[dir] .solution-card .card-action{
    padding-block:14px 0;padding-inline:64px 0;min-height:64px;line-height:1.4;
  }
  html[dir] .solution-card .card-action-arrow{
    inset-inline-start:0;inset-inline-end:auto;top:calc(50% + 7px);margin-top:-23px;
  }
  /* Narrow windows may still have a mouse. Avoid moving a circle across wrapped copy. */
  html[dir] .hero-primary:hover,html[dir] .hero-primary:focus-visible,
  html[dir] .text-link-cta:hover,html[dir] .text-link-cta:focus-visible{
    padding-block:8px;padding-inline:68px 12px;transform:none;box-shadow:none;
  }
  html[dir] .hero-primary:hover .round-arrow,html[dir] .hero-primary:focus-visible .round-arrow,
  html[dir] .text-link-cta:hover .text-link-cta-arrow,html[dir] .text-link-cta:focus-visible .text-link-cta-arrow{
    inset-inline-start:0;inset-inline-end:auto;transform:rotate(45deg);
  }
  html[dir] .solution-card:hover .card-action,html[dir] .solution-card:focus-within .card-action{
    padding-block:14px 0;padding-inline:64px 0;border-top-color:#ffffff55;
    border-radius:0;background:transparent;box-shadow:none;
  }
  html[dir] .solution-card:hover .card-action-arrow,html[dir] .solution-card:focus-within .card-action-arrow{
    inset-inline-start:0;inset-inline-end:auto;top:calc(50% + 7px);
    background:var(--rw-accent);transform:rotate(45deg);
  }
  html[dir=rtl] .hero-primary:hover .round-arrow,html[dir=rtl] .hero-primary:focus-visible .round-arrow,
  html[dir=rtl] .text-link-cta:hover .text-link-cta-arrow,html[dir=rtl] .text-link-cta:focus-visible .text-link-cta-arrow,
  html[dir=rtl] .solution-card:hover .card-action-arrow,html[dir=rtl] .solution-card:focus-within .card-action-arrow{transform:rotate(-45deg)}
  .form-tabs button,.privacy-banner-actions,.privacy-actions{min-width:0}
  .privacy-banner-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .privacy-banner-actions [data-cookie-settings]{grid-column:1/-1}
  .privacy-banner-actions button,.privacy-actions button{min-width:0;overflow-wrap:break-word;overflow-wrap:anywhere}
}

/* Older Safari and Android engines ignore the entire declaration if svh/dvh is unknown. */
@supports not (height:1svh){
  .hero{min-height:100vh}
  .hero-layout{min-height:max(680px,100vh);padding-block:clamp(130px,18vh,190px) 100px}
  .hero h1{font-size:clamp(68px,min(8vw,14vh),144px)}
  @media(min-width:1001px) and (max-height:760px){
    .hero-layout{padding-top:126px;padding-bottom:85px}
    .hero h1{font-size:clamp(64px,12vh,92px)}
  }
  @media(max-width:1000px){
    .hero-layout{min-height:max(660px,100vh);padding-block:140px 115px}
    .hero h1{font-size:clamp(62px,9vw,92px)}
  }
  @media(max-width:720px){
    .hero-layout{min-height:max(690px,100vh);padding-top:132px;padding-bottom:120px}
    .hero h1{font-size:clamp(54px,12.5vw,86px)}
  }
}
@supports not (height:1dvh){
  .privacy-dialog{max-height:calc(100vh - 48px)}
  .cookie-banner{max-height:calc(100vh - 30px);overflow-y:auto}
  @media(max-width:540px){.privacy-dialog{max-height:calc(100vh - 24px)}}
}

/* Browsers may expose safe-area insets in landscape or installed web-app mode. */
:root{--rw-safe-inline-start:env(safe-area-inset-left,0px);--rw-safe-inline-end:env(safe-area-inset-right,0px)}
html[dir=rtl]{--rw-safe-inline-start:env(safe-area-inset-right,0px);--rw-safe-inline-end:env(safe-area-inset-left,0px)}
.page-shortcuts{margin-right:env(safe-area-inset-right,0px)}
.cookie-banner{bottom:calc(24px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 48px - env(safe-area-inset-bottom,0px));overflow-y:auto}
@supports(height:1dvh){.cookie-banner{max-height:calc(100dvh - 48px - env(safe-area-inset-bottom,0px))}}
@media(max-width:800px){
  .cookie-banner{bottom:calc(15px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 30px - env(safe-area-inset-bottom,0px))}
}
@supports(height:1dvh){@media(max-width:800px){.cookie-banner{max-height:calc(100dvh - 30px - env(safe-area-inset-bottom,0px))}}}
@media(prefers-reduced-motion:reduce){
  html[dir] .hero-primary:hover .round-arrow,html[dir] .hero-primary:focus-visible .round-arrow,
  html[dir] .text-link-cta:hover .text-link-cta-arrow,html[dir] .text-link-cta:focus-visible .text-link-cta-arrow,
  html[dir] .solution-card:hover .card-action-arrow,html[dir] .solution-card:focus-within .card-action-arrow{transform:none}
}
