/* Cloud 9 phone/tablet hero artwork: workstations, engineering and power only. */
@media (max-width: 1100px) {
  main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening,.power-hero,.atx-hero,.crp-hero) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }
  main :is(.p01-hero-grid,.p02-hero-grid,.p03-hero-grid,.p04-hero-grid,.p05-hero-grid,.p20-hero-grid,.p21-opening-grid) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 0 !important;
  }
  main :is(.p01-hero-copy,.p02-hero-copy,.p03-hero-copy,.p04-hero-copy,.p05-hero-copy,.p20-hero-copy,.p21-opening-copy) {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  main :is(.p01-hero-art,.p02-hero-art,.p03-hero-art,.p04-hero-art,.p05-hero-art,.p20-hero-art,.p21-cover) {
    position: relative !important;
    inset: auto !important;
    align-self: stretch !important;
    flex: none !important;
    width: var(--c9-art-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: var(--c9-art-gap) 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  main :is(.p01-hero-art,.p02-hero-art,.p03-hero-art,.p04-hero-art,.p05-hero-art,.p20-hero-art,.p21-cover) :is(picture,img) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
  main :is(.p01-hero-art,.p02-hero-art,.p03-hero-art,.p04-hero-art) img[src*="approved-workstation-exact.png"] {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  main :is(.p01-hero-art,.p02-hero-art,.p03-hero-art,.p04-hero-art)::before { display: none !important; }
  main :is(.power-hero,.atx-hero,.crp-hero) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  main :is(.power-hero-inner,.atx-hero-inner,.crp-hero-layout) {
    order: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  main :is(.power-hero-art,.atx-hero-art,.crp-hero-art) {
    order: 2 !important;
    position: relative !important;
    inset: auto !important;
    flex: none !important;
    align-self: stretch !important;
    width: var(--c9-art-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: var(--c9-art-gap) 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  main :is(.power-hero-art,.atx-hero-art,.crp-hero-art) :is(picture,img) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
}
@media (max-width: 599px) {
  main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening,.power-hero,.atx-hero,.crp-hero) {
    --c9-art-width: min(100vw, 506px);
    --c9-art-gap: 28px;
  }
}
@media (min-width: 600px) and (max-width: 767px) {
  main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening,.power-hero,.atx-hero,.crp-hero) {
    --c9-art-width: min(calc(100vw - 24px), 648px);
    --c9-art-gap: 25px;
  }
}
@media (min-width: 768px) and (max-width: 800px) {
  main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening,.power-hero,.atx-hero,.crp-hero) {
    --c9-art-width: calc(100vw - 48px);
    --c9-art-gap: 39px;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening,.power-hero,.atx-hero,.crp-hero) {
    --c9-art-width: 100vw;
    --c9-art-gap: 26px;
  }
}
/* At 1101–1279px, keep established product framing but prevent article overlap. */
@media (min-width: 1101px) and (max-width: 1279px) {
  main .p21-opening-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; align-items: center !important; }
  main .p21-opening-grid .p21-cover { grid-column: 2 !important; grid-row: 1 !important; width: 100% !important; max-width: none !important; margin: 0 !important; align-self: center !important; z-index: 0 !important; }
  main .p21-opening-grid .p21-cover img { display: block !important; width: 100% !important; height: auto !important; object-fit: contain !important; }
  main .p21-opening-copy { z-index: 2 !important; }
}
/* Preserve the full approved subject when an older hero has a fixed flex basis. */
@media (max-width:1100px) {
  body main :is(section.p01-hero,section.p02-hero,section.p03-hero,section.p04-hero,section.p05-hero,section.p20-hero,header.p21-opening,section.power-hero,section.atx-hero,section.crp-hero),
  body main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening) :is(.p01-hero-grid,.p02-hero-grid,.p03-hero-grid,.p04-hero-grid,.p05-hero-grid,.p20-hero-grid,.p21-opening-grid) {
    height: max-content !important;
    min-height: 0 !important;
  }
  body main :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening) :is(.p01-hero-art,.p02-hero-art,.p03-hero-art,.p04-hero-art,.p05-hero-art,.p20-hero-art,.p21-cover) {
    left: 50% !important;
    flex: none !important;
    height: max-content !important;
  }
}
/* The prior height standard uses an ID and a three-class :is() specificity. */
@media (max-width:1100px) {
  :is(main#main,main#main-content) :is(.p01-hero.p01-hero.p01-hero,.p02-hero.p02-hero.p02-hero,.p03-hero.p03-hero.p03-hero,.p04-hero.p04-hero.p04-hero,.p05-hero.p05-hero.p05-hero,.p20-hero.p20-hero.p20-hero,.p21-opening.p21-opening.p21-opening,.power-hero.power-hero.power-hero,.atx-hero.atx-hero.atx-hero,.crp-hero.crp-hero.crp-hero) {
    height: max-content !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  :is(main#main,main#main-content) :is(.p01-hero,.p02-hero,.p03-hero,.p04-hero,.p05-hero,.p20-hero,.p21-opening,.power-hero,.atx-hero,.crp-hero) :is(.p01-hero-art,.p02-hero-art,.p03-hero-art,.p04-hero-art,.p05-hero-art,.p20-hero-art,.p21-cover,.power-hero-art,.atx-hero-art,.crp-hero-art) {
    left: 50% !important;
    flex: none !important;
    height: max-content !important;
  }
}
@media (max-width:1100px) {
  main .p20-hero .p20-hero-art picture {display:block!important;width:100%!important;height:auto!important;overflow:hidden!important}
  main .p20-hero .p20-hero-art img {display:block!important;width:100%!important;height:100%!important;aspect-ratio:1!important;object-fit:cover!important;object-position:center!important}
}
@media (min-width:600px) and (max-width:800px) {
  main .p20-hero .p20-hero-art img {aspect-ratio:1.55!important}
}
@media (min-width:801px) and (max-width:1100px) {
  main .p20-hero .p20-hero-art img {aspect-ratio:16/9!important}
}
@media (min-width:1101px) and (max-width:1279px) {
  main .p20-hero-grid {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important}
  main .p20-hero-copy {grid-column:1!important;grid-row:1!important;z-index:2!important}
  main .p20-hero-art {grid-column:2!important;grid-row:1!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-width:0!important;margin:0!important;z-index:0!important}
  main .p20-hero-art picture,main .p20-hero-art img {display:block!important;width:100%!important;height:100%!important}
  main .p20-hero-art img {object-fit:cover!important;object-position:center!important}
}
@media (min-width:1101px) and (max-width:1279px) {
  main .p20-hero-grid { min-height:0!important; height:100%!important; max-height:100%!important; overflow:hidden!important; }
  main .p20-hero-art { min-height:0!important; max-height:100%!important; overflow:hidden!important; }
  main .p20-hero-art picture { max-height:100%!important; overflow:hidden!important; }
}
