/* oem-custom-imagery — scoped to the OEM/ODM page (this file is enqueued
   only there). Requires real-factory-steps (3/2/1 grid, 4:3 frames,
   subgrid). Does not change Factory. The workshop lead-in pair above the
   steps is removed, not replaced. No upscaling past native 1152px. */

.v9p .hll-rf-fig--1152{ max-width:min(100%,1152px); }

/* After the lead-in pair is removed, keep a consistent gap between the
   timing paragraph and the step grid so the block still looks intentional. */
.v9p #hll-custom-process ol.steps.hll-rfs-steps,
.v9p .section ol.steps.hll-rfs-steps{
  margin-top:20px;
}

/* Injected only when HLL_RFS_AI_LABEL / hll_rfs_ai_label is on. Default off.
   Sits under the 4:3 frame; must not change frame size or same-row top
   alignment. */
.v9p .hll-oci-fig--ai .hll-rfs-ai-label,
.v9p ol.steps.hll-rfs-steps .hll-rfs-fig--ai .hll-rfs-ai-label{
  font-size:12px;
  font-weight:400;
  color:#6B4D20;
  margin-top:10px;
}

/* Center leftover cards without changing card size or column-gap.
   2× tracks: 6 at 3-col desktop, 4 at 2-col tablet. Each li spans 2
   tracks, so card width stays (container − gaps) / visual-columns, same
   as row 1. Orphans are offset with structural selectors. Subgrid row
   alignment is unchanged. Gaps stay 28px 20px (desktop) / 24px 14px
   (tablet). Single-column (≤700, including 390) is reset and unchanged. */
.v9p ol.steps.hll-rfs-steps{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.v9p ol.steps.hll-rfs-steps > li.step{
  grid-column:span 2;
}
@media (min-width:1025px){
  .v9p ol.steps.hll-rfs-steps > li.step:nth-child(3n+1):nth-last-child(2){
    grid-column:2 / span 2;
  }
  .v9p ol.steps.hll-rfs-steps > li.step:nth-child(3n+1):last-child{
    grid-column:3 / span 2;
  }
}
@media (max-width:1024px){
  .v9p ol.steps.hll-rfs-steps{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .v9p ol.steps.hll-rfs-steps > li.step:nth-child(2n+1):last-child{
    grid-column:2 / span 2;
  }
}
@media (max-width:700px){
  .v9p ol.steps.hll-rfs-steps{
    grid-template-columns:1fr;
  }
  .v9p ol.steps.hll-rfs-steps > li.step,
  .v9p ol.steps.hll-rfs-steps > li.step:nth-child(3n+1):nth-last-child(2),
  .v9p ol.steps.hll-rfs-steps > li.step:nth-child(3n+1):last-child,
  .v9p ol.steps.hll-rfs-steps > li.step:nth-child(2n+1):last-child{
    grid-column:auto;
  }
}
