/* Home correction pack Ed1. Loaded only by the Home route. */
html[data-c9-page="home"] .cloud9-home p {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

html[data-c9-page="home"] .cloud9-home :is(h2, h3) {
  text-align: start;
  text-align-last: auto;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

html[data-c9-page="home"] .cloud9-home .p00-reset-heading h2 {
  white-space: normal;
  line-height: 1.18;
}

/* Wide company prose keeps the approved justified treatment. */
html[data-c9-page="home"] .cloud9-home :is(.p00-reset-story-body, .p00-reset-engineering-copy) > p {
  text-align: justify;
  text-align-last: start;
  line-height: 1.62;
}

/* Category descriptions are narrow even on a wide screen. */
html[data-c9-page="home"] .cloud9-home :is(.p00-reset-index-grid, .p00-reset-card-copy) p {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  font-size: 16px;
  line-height: 1.6;
  text-align: start;
  text-align-last: auto;
}

html[data-c9-page="home"] .cloud9-home .p00-reset-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  gap: 12px;
  padding: 20px;
}

html[data-c9-page="home"] .cloud9-home .p00-reset-card-copy h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}

html[data-c9-page="home"] .cloud9-home .p00-reset-card-copy p {
  margin: 0 0 4px;
}

html[data-c9-page="home"] .cloud9-home .p00-reset-card-copy .c9-home-category-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: auto 0 0;
  padding: 10px 0;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: start;
  white-space: normal;
}

/* Override the original Desktop-only CTA margin with the common rhythm. */
html[data-c9-page="home"] .cloud9-home #ai-desktop .c9-home-category-cta {
  margin-block-start: auto;
}

html[data-c9-page="home"] .cloud9-home .c9-home-category-cta > span:first-child {
  min-width: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

html[data-c9-page="home"] .cloud9-home .c9-home-category-cta > span[aria-hidden] {
  flex: none;
}

html[data-c9-page="home"] .cloud9-home .c9-home-category-cta:hover {
  color: var(--blue);
}

html[data-c9-page="home"] .cloud9-home :is(.c9-home-category-cta, .p00-reset-index-grid > a):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

html[data-c9-page="home"] .cloud9-home .p00-reset-index-grid b {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.4;
}

/* Stable art direction: these five media frames stay 4:3 at every width. */
html[data-c9-page="home"] .cloud9-home .p00-reset-systems-grid .p00-reset-card-media,
html[data-c9-page="home"] .cloud9-home #component-power .p00-reset-card-media {
  height: auto;
  aspect-ratio: 4 / 3;
}

/* Keep the complete replacement hardware inside its intentional frame. */
html[data-c9-page="home"] .cloud9-home :is(#ai-desktop, #ai-rack, #ai-superrack, #component-power) .p00-reset-card-media img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 700px) {
  html[data-c9-page="home"] .cloud9-home :is(.p00-reset-story-body, .p00-reset-engineering-copy) > p {
    font-size: 16px;
    line-height: 1.6;
    text-align: start;
  }
}

/* Home Components cards only: use the approved Chassis frame and card rhythm. */
html[data-c9-page="home"] .cloud9-home #components .p00-reset-component-grid {
  grid-auto-rows: 1fr;
}

html[data-c9-page="home"] .cloud9-home #components #component-power .p00-reset-card-media {
  height: 224px;
  aspect-ratio: auto;
}

html[data-c9-page="home"] .cloud9-home #components #component-power .p00-reset-card-media img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  html[data-c9-page="home"] .cloud9-home #components #component-power .p00-reset-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Retain the Chassis card's approved overall height where the old Power frame set the row. */
@media (min-width: 800px) and (max-width: 1279px) {
  html[data-c9-page="home"] .cloud9-home #components .p00-reset-component-grid .p00-reset-system-card {
    min-height: calc(25vw + 193.53125px);
  }
}

@media (min-width: 601px) and (max-width: 799px) {
  html[data-c9-page="home"] .cloud9-home #components .p00-reset-component-grid .p00-reset-system-card {
    min-height: calc(37.5vw + 190.03125px);
  }
}

/* Preserve the reference row at its two copy-wrap transitions. */
@media (min-width: 1233px) and (max-width: 1279px) {
  html[data-c9-page="home"] .cloud9-home #components .p00-reset-component-grid .p00-reset-system-card {
    min-height: calc(25vw + 167.9375px);
  }
}

@media (min-width: 662px) and (max-width: 700px) {
  html[data-c9-page="home"] .cloud9-home #components .p00-reset-component-grid .p00-reset-system-card {
    min-height: calc(37.5vw + 193.03125px);
  }
}
