/* OEM only: longer translations and RTL. Original hero remains unchanged. */
.om-page:not([lang="zh-CN"]) .oc-route-tabs button>span:nth-child(2){min-width:0}
.om-page:not([lang="zh-CN"]) .oc-route-workbench>*{min-width:0}
.om-page:not([lang="zh-CN"]) .oc-route-tabs button{min-width:0;overflow-wrap:anywhere}
.om-page:not([lang="zh-CN"]) .oc-route-tag{line-height:1.4;overflow-wrap:anywhere}
.om-page:not([lang="zh-CN"]) .oc-route-bottom{flex-wrap:wrap}
.om-page:not([lang="zh-CN"]) .oc-route-bottom details{flex:1 1 160px;max-width:100%}
.om-page:not([lang="zh-CN"]) .oc-route-bottom>a{max-width:100%;white-space:normal}
.om-page:not([lang="zh-CN"]) .oc-route-disclaimer{right:20px;line-height:1.4}
.om-page:not([lang="zh-CN"]) .oc-journey-nav strong{font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.om-page:not([lang="zh-CN"]) .oc-process-tabs strong{overflow-wrap:anywhere}
.om-page:not([lang="zh-CN"]) .oc-map-options button{white-space:normal;max-width:100%}
.om-page[lang="ar"] .oc-route-tabs button,.om-page[lang="ar"] .oc-process-tabs button,.om-page[lang="ar"] .oc-journey-nav button{text-align:start}
.om-page[lang="ar"] .oc-journey-nav{border-left:0;border-right:1px solid #08276e24;padding:0 18px 0 0}
.om-page[lang="ar"] .oc-route-arrow{margin-left:0;margin-right:auto}
.om-page[lang="ar"] .oc-map-options button span{margin-right:0;margin-left:7px}
.om-page[lang="ar"] .oc-stage-label{letter-spacing:normal}
.om-page[lang="ar"] .oc-process-tabs button:after{left:-12px;right:48px}
.om-page[lang="ar"] .oc-process-cell:not(:last-child):after{right:auto;left:-34px;content:'←'}
.om-page[lang="ar"] .oc-journey .oc-stage-result{border-left:0;border-right:3px solid #edcc56}
@media(max-width:760px){
 .om-page:not([lang="zh-CN"]) .oc-route-workbench{grid-template-columns:minmax(0,1fr)}
 .om-page:not([lang="zh-CN"]) .oc-route-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .om-page:not([lang="zh-CN"]) .oc-route-tabs button{min-height:90px}
 .om-page:not([lang="zh-CN"]) .oc-route-reference{right:12px}
 .om-page:not([lang="zh-CN"]) .oc-route-disclaimer{right:12px;bottom:10px;font-size:14px}
 .om-page[lang="ar"] .oc-journey-body{border-left:0;border-right:1px solid #08276e25;padding-left:0;padding-right:16px}
 .om-page[lang="ar"] .oc-stage-label:before{left:auto;right:-22px}
 .om-page[lang="ar"] .oc-process-tabs button:after{left:auto;right:29px}
 .om-page[lang="ar"] .oc-process-icon{float:right;margin:0 0 12px 18px}
 .om-page[lang="ar"] .oc-process-cell:not(:last-child):after{content:'↓';right:50%;left:auto}
}
@media(max-width:420px){
 .om-page:not([lang="zh-CN"]) .oc-route-tabs{grid-template-columns:minmax(0,1fr)}
 .om-page:not([lang="zh-CN"]) .oc-route-tabs button{min-height:64px;align-items:center;overflow-wrap:normal;hyphens:auto}
 .om-page:not([lang="zh-CN"]) .oc-route-annotations{width:48%;right:4%}
 .om-page:not([lang="zh-CN"]) .oc-route-object{right:54%}
 .om-page:not([lang="zh-CN"]) .oc-route-mark{min-width:26px;font-size:19px;gap:2px}
 .om-page:not([lang="zh-CN"]) .oc-route-mark i{width:9px;height:9px}
 .om-page:not([lang="zh-CN"]) .oc-route-tag{font-size:15px;gap:5px;hyphens:auto}
 .om-page:not([lang="zh-CN"]) .oc-route-drawing{width:72px}
}

/* Give the German packaging choices room to wrap at word boundaries. */
html[lang=de] #main :is(.om-pack-choices, .om-custom-tabs, .oc-delivery) button {
  overflow-wrap:normal;
  word-break:normal;
  hyphens:auto;
}
@media(max-width:480px){
  html[lang=de] #main :is(.om-pack-choices,.om-custom-tabs) { grid-template-columns:minmax(0,1fr); flex-wrap:wrap; }
  html[lang=de] #main :is(.om-pack-choices,.om-custom-tabs) button { min-inline-size: 0; flex-basis:100%; }
}

@media(max-width: 480px) {
  html:is([lang=de],[lang=ru]) #main .om-page .om-tabs { display:grid; grid-template-columns:minmax(0,1fr); }
  html:is([lang=de],[lang=ru]) #main .om-page [data-om-tab] { inline-size:100%; overflow-wrap:normal; word-break:normal; }
}

/* English OEM hero: keep the full artwork and place callouts in its open space. */
@media (min-width: 1101px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-scene {
    --en-oem-art-height: min(51vw, max(420px, calc(100svh - 124px)));
    --en-oem-art-width: calc(var(--en-oem-art-height) * 1315 / 1197);
    --en-oem-art-top: calc(24px - 5.4vw);
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-art {
    inset: var(--en-oem-art-top) 0 auto auto;
    inline-size: var(--en-oem-art-width);
    block-size: var(--en-oem-art-height);
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-model-bucket {
    inset: auto auto calc(100% - var(--en-oem-art-top) - var(--en-oem-art-height) * .43 + 22px)
      calc(100% - var(--en-oem-art-width) * .8);
    inline-size: min(11rem, calc(var(--en-oem-art-width) * .26));
    white-space: normal;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-model-bucket::after {
    block-size: 15px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-model-electric {
    top: calc(var(--en-oem-art-top) + var(--en-oem-art-height) * .405 - 29px);
    right: calc(var(--en-oem-art-width) * .18 + 30px);
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-model-electric::after {
    inline-size: 26px;
  }
}

@media (max-width: 760px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-scene {
    gap: 7px 9px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-scene::before {
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    inset: 5px 0 0;
    inline-size: min(86%, 380px);
    margin-inline: auto;
    border-radius: 52% 48% 8px 8px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-model {
    padding-block-start: 5px;
    font-size: .875rem;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-model-kind {
    --support-label-size: .875rem;
    margin-block-start: 2px;
    line-height: 1.35;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-art-note {
    --support-label-size: .8125rem;
    padding: 0;
    line-height: 1.4;
    overflow-wrap: normal;
  }
}

@media (max-width: 430px) and (max-height: 740px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero {
    padding-block-start: 18px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-scene {
    margin-block-start: 9px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-art {
    block-size: clamp(148px, calc(133.33vw - 300px), 221px);
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-hero-copy > p {
    margin-block-start: 11px;
    line-height: 1.4;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-actions .om-action {
    min-block-size: 48px;
    padding-block: 7px;
  }
}

@media (max-width: 360px) and (max-height: 740px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero .om-actions .om-action {
    padding-inline: 5px;
  }
}

/* Fit the longer DM-127 label between the shafts on narrow desktop views. */
@media (min-width: 1101px) and (max-width: 1350px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-model-electric {
    top: calc(var(--en-oem-art-top) + var(--en-oem-art-height) * .405 - 56px);
    max-inline-size: calc(var(--en-oem-art-width) * .26);
    white-space: normal;
  }
}

/* Share the desktop heading and palette in the English mobile hero. */
.om-hero[data-om-recolor] .om-hero-lead-narrow {
  display: none;
}

@media (max-width: 760px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] {
    --om-mobile-inset: max(6vw, calc((100vw - 480px) / 2));
    padding: 19px var(--om-mobile-inset) 12px;
    overflow: clip;
    background: var(--om-pink);
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] h1 {
    font-size: clamp(27px, 8.75vw, 40px);
    font-weight: 760;
    line-height: 1.06;
    letter-spacing: -.038em;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  .om-hero[data-om-recolor] h1 > .om-hero-line {
    display: block;
  }

  .om-hero[data-om-recolor] h1 > br,
  .om-hero[data-om-recolor] .om-hero-copy > p:not(.om-hero-lead-narrow) {
    display: none;
  }

  .om-hero[data-om-recolor] h1 > .om-hero-line:last-child {
    margin-block-start: 3px;
    font-size: .82em;
    font-weight: 680;
    line-height: 1.12;
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] .om-hero-copy > .om-hero-lead-narrow {
    display: block;
    order: 1;
    margin: 8px 0 0;
    max-inline-size: 36ch;
    color: #233f70;
    font-size: .96875rem;
    line-height: 1.4;
    text-wrap: balance;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-hero-scene {
    z-index: auto;
    order: 2;
    margin-block-start: 11px;
    gap: 7px 14px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-hero-scene::before {
    inset: 0 calc(-1 * var(--om-mobile-inset)) 0 16%;
    inline-size: auto;
    margin: 0;
    border-radius: 48% 0 0 0 / 72% 0 0 0;
    background:
      linear-gradient(#547b9b13 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(90deg, #547b9b13 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(145deg, #d4e9f6, var(--om-blue));
  }

  .om-hero[data-om-recolor] .om-hero-scene .om-desktop-caliper {
    display: block;
    position: absolute;
    grid-area: 1 / 1 / 2 / -1;
    inset: 27% 0 auto auto;
    z-index: -1;
    inline-size: clamp(78px, 25%, 112px);
    opacity: .3;
  }

  .om-hero[data-om-recolor] .om-desktop-caliper .om-blueprint-caliper {
    display: block;
    inline-size: 100%;
    block-size: auto;
  }

  .om-hero[data-om-recolor] .om-hero-scene::after {
    content: "";
    position: absolute;
    grid-area: 1 / 1 / 2 / -1;
    inset: 64% calc(-1 * var(--om-mobile-inset)) auto;
    z-index: -1;
    block-size: max(420px, 100svh);
    background: #fffdf7;
    clip-path: polygon(0 clamp(32px, 10vw, 55px), 100% 0, 100% 100%, 0 100%);
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-hero-art {
    box-sizing: border-box;
    block-size: clamp(195px, calc(65vw + 3px), 300px);
    padding-block: 12px 6px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-model {
    border-block-start: 0;
    padding: 1px 3px 0;
    font-weight: 750;
    line-height: 1.2;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-model-kind {
    --support-label-size: .8125rem;
    margin-block-start: 3px;
    font-weight: 500;
    line-height: 1.35;
    text-wrap: balance;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-art-note {
    --support-label-size: .75rem;
    padding-inline: 3px;
    color: #415575;
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] .om-actions {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: 10px;
    margin-block-start: 13px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-actions .om-action {
    --device-action-size: .9rem;
    min-block-size: 48px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.18;
    box-shadow: none;
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] .om-actions .om-primary {
    border: 1px solid #e5bd59;
    background: var(--om-yellow);
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] .om-actions button {
    border: 1px solid #08276e28;
    background: #fffdf7;
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] .om-blueprint-play--desktop {
    --support-control-size: .8125rem;
    align-self: flex-start;
    min-block-size: 44px;
    margin-block-start: 2px;
    padding: 0 3px;
    border: 1px solid transparent;
    background: transparent;
    color: #3c567a;
    box-shadow: none;
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] :is(.om-action, .om-blueprint-play):focus-visible {
    outline: 2px solid #12346c;
    outline-offset: 2px;
  }
}

@media (max-width: 360px) and (max-height: 600px) {
  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] {
    padding-block-start: 14px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-hero-scene {
    margin-block-start: 9px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-hero-art {
    block-size: 156px;
    padding-block: 9px 5px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-art-note {
    text-wrap: balance;
  }

  html body[data-home-direction] #main .om-hero[data-om-recolor] .om-actions {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    margin-block-start: 11px;
  }

  html body[data-home-direction] #main .om-page[lang="en"] > .om-hero[data-om-recolor] .om-actions .om-action {
    padding-inline: 4px;
  }
}
