/* DataIT v248f: keep v248e footer/LED/CTA fixes, then truly center the
   R2 Verified plate and the logo+text inside it. Also center a lone
   hero CTA that would otherwise sit in the left cell of a 2-col grid. */

/* v248e: footer column 1 has 6 links since v248 added Resources.
   v223.css locked the footer grid to 5 rows (columns are subgrids), so the
   6th link (Compliance) was stacked on top of Resources. Give it 6 rows. */
@media (min-width:981px){
  html body .chassis-footer-nav{grid-template-rows:repeat(6,44px) !important}
}

/* v248e: center the dark LED callout bars (e.g. "Dedicated sealed trucks..."). */
html body .chassis-led-readout{
  text-align:center !important;
}

/* v248e: center text in every dark metal CTA plate (e.g. GET A RELOCATION QUOTE). */
html body .chassis-recessed-plate{
  justify-content:center !important;
  justify-items:center !important;
  align-content:center !important;
  align-items:center !important;
  text-align:center !important;
}
html body .chassis-recessed-plate > small,
html body .chassis-recessed-plate > strong,
html body .chassis-recessed-plate > span{
  text-align:center !important;
}

/* v248f: center every R2 Verified plate in its section or column.
   The v248e sibling selector (.decomm-scope-grid + .datait-r2-verified)
   missed the home-page plate because a <p> sits between the tile grid
   and the plate. Use the plate class itself. display:flex (not
   inline-flex) so margin auto can center it in block parents too. */
html body .datait-r2-verified{
  display:flex !important;
  flex-direction:row !important;
  justify-content:center !important;
  align-items:center !important;
  align-content:center !important;
  justify-self:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
  /* v235 used 5px left / 18px right, which pulled the logo+text 6.5px
     left of the plate center. Equal padding centers the contents. */
  padding:8px 14px !important;
  width:fit-content !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
html body .datait-r2-verified > img,
html body .datait-r2-verified > p{
  text-align:center !important;
}

@media (max-width:430px){
  html body .datait-r2-verified{
    padding:6px 12px !important;
  }
}

/* v248f: a lone CTA in a 2-column decomm-cta-row lands in the left cell
   on mobile (e.g. certifications "REQUEST AN ESTIMATE"). When the row
   has only one child, use a single centered column. Two-button rows
   stay side by side. Must beat v242m:
   html body main#main-content .decomm-hero .decomm-cta-row
   { grid-template-columns:repeat(2,minmax(0,1fr)) } */
html body main#main-content .decomm-hero .decomm-cta-row:has(> :only-child),
html body main#main-content .decomm-hero-copy .decomm-cta-row:has(> :only-child),
html body main#main-content .decomm-cta-row:has(> :only-child),
html body .decomm-cta-row:has(> :only-child){
  grid-template-columns:1fr !important;
  justify-content:center !important;
  justify-items:center !important;
}
html body main#main-content .decomm-hero .decomm-cta-row > :only-child,
html body main#main-content .decomm-cta-row > :only-child,
html body .decomm-cta-row > :only-child{
  justify-self:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
