/* DATAIT v228 — staging only.
   Keeps the v226 look (v223zn/zo lockup, sticky header, fluid mobile header
   plate with equal 8px gaps). Footer plate size is CSS-only from first paint:
   194×58 on viewports ≤480px, and the same 22.6% desktop lockup as the header
   above that. No JS may resize the footer plate. No width transitions.

   LOCKED per Joey (Mon Nov 16, 2026, after v226 look approval and the
   footer-flicker fix):
   Do not alter the header logo plate, footer logo plate, or top nav
   (size, spacing, lockup, tagline, CALL, or menu) in any later change
   without Joey's explicit yes. Future builds are v228, v229, and so on.
   Sticky header may keep its own rules, but must not change plate/nav look.
 */

/* ---- Sticky header (kept from v224; Joey approved 12:00 PM PT Nov 16, 2026) ---- */
/* Ancestors used overflow:hidden, which prevents position:sticky. Clip on X only. */
html body .live-test-shell {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
html body .live-header-scroll {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
html body header.live-image-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  background-color: #14181c !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
html {
  scroll-padding-top: 128px;
}
@media (min-width: 981px) {
  html {
    scroll-padding-top: 248px;
  }
}

/* ---- Mobile header shell: match v223zn/zo 8px inset / 374px bar, but stay sticky (not fixed). ---- */
@media (max-width: 480px) {
  html body .live-test-page {
    padding-top: 0 !important;
  }
  html body .live-test-shell {
    border-top-width: 0 !important;
  }
  html body main#main-content {
    margin-top: 0 !important;
  }
  html body header.live-image-header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    margin: 0 0 0 -1px !important; /* cancel 1px shell side border so the bar sits at x=8, 374px wide */
    z-index: 200 !important;
    overflow: hidden !important;
  }

  /* Plate + CALL + menu: v223zn/zo geometry (8px gaps, 58px squares, 194×58 plate). */
  html body .live-image-header {
    --nav-plate: 58px;
  }
  html body .live-image-header .live-brand-plate,
  html body .live-image-header a.live-brand-plate,
  html body .live-image-header .live-call-plate,
  html body .live-image-header .qc-menu-btn {
    position: absolute !important;
    top: calc((112px - var(--nav-plate, 58px)) / 2) !important;
    height: var(--nav-plate, 58px) !important;
    min-height: var(--nav-plate, 58px) !important;
    max-height: var(--nav-plate, 58px) !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  html body .live-image-header .qc-menu-btn {
    left: auto !important;
    right: calc(var(--hero-rail, 22px) + 6px) !important;
    width: var(--nav-plate, 58px) !important;
    min-width: var(--nav-plate, 58px) !important;
    z-index: 6 !important;
  }
  html body .live-image-header .live-call-plate {
    left: auto !important;
    right: calc(var(--hero-rail, 22px) + 6px + var(--nav-plate, 58px) + 8px) !important;
    width: var(--nav-plate, 58px) !important;
    min-width: var(--nav-plate, 58px) !important;
    z-index: 6 !important;
  }
  html body .live-image-header .live-brand-plate,
  html body .live-image-header a.live-brand-plate {
    left: calc(var(--hero-rail, 22px) + 6px) !important;
    /* right edge = menu + 8px + CALL + 8px, so the plate-to-CALL gap equals the CALL-to-menu gap. */
    right: calc(var(--hero-rail, 22px) + 6px + var(--nav-plate, 58px) + 8px + var(--nav-plate, 58px) + 8px) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 4 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    column-gap: 8px !important;
    padding: 8px !important;
    overflow: hidden !important;
    grid-template-columns: unset !important;
  }
  html body .live-image-header .live-brand-d {
    height: 100% !important;
    width: auto !important;
    max-height: 100% !important;
    max-width: 42% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  html body .live-image-header .live-brand-type {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    transform: none !important;
    grid-column: auto !important;
    gap: 0 !important;
  }
  html body .live-image-header .live-brand-type picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
  }
  html body .live-image-header .live-brand-type img {
    display: block !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
  /* Tagline lives in datait-wordmark-lockup.webp at ≤480px, as in v223zn/zo. */
  html body .live-image-header .live-brand-plate .live-brand-type small,
  html body .live-image-header .live-brand-plate .live-brand-type small[aria-label],
  html body .live-image-header .live-brand-type small {
    display: none !important;
  }

  /* Footer logo plate: same zn/zo 194×58 centered lockup. It does not sit next to CALL,
     so it is not stretched to fill a plate-to-button gap. */
  html body #datait-chrome-footer .live-brand-plate,
  html body a.chassis-footer-brand.live-brand-plate,
  html body .chassis-footer-brand.live-brand-plate {
    transform: none !important;
    width: 194px !important;
    max-width: 194px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    position: relative !important;
    justify-self: center !important;
    margin-inline: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    column-gap: 8px !important;
    padding: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    grid-template-columns: unset !important;
    min-width: 194px !important;
    transition: none !important;
    animation: none !important;
  }
  html body #datait-chrome-footer .live-brand-d,
  html body .chassis-footer-brand .live-brand-d {
    height: 100% !important;
    width: auto !important;
    max-height: 100% !important;
    max-width: 42% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
    background: none !important;
  }
  html body #datait-chrome-footer .live-brand-type,
  html body .chassis-footer-brand .live-brand-type {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    transform: none !important;
    gap: 0 !important;
  }
  html body #datait-chrome-footer .live-brand-type picture,
  html body .chassis-footer-brand .live-brand-type picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  html body #datait-chrome-footer .live-brand-type img,
  html body .chassis-footer-brand .live-brand-type img {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    background: none !important;
  }
  html body #datait-chrome-footer .live-brand-type small,
  html body .chassis-footer-brand .live-brand-type small,
  html body .chassis-footer-brand .live-brand-type small[aria-label] {
    display: none !important;
  }
}

/* Desktop / tablet ≥481px: keep the zn/zo wordmark + HTML tagline lockup
   (tagline sits just under the DATAIT wordmark). Sticky already set above. */
@media (min-width: 481px) {
  html body .live-image-header .live-brand-type img,
  html body #datait-chrome-footer .live-brand-type img,
  html body .chassis-footer-brand .live-brand-type img {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: 0% 50% !important;
    transform: none !important;
  }
  html body .live-image-header .live-brand-type small,
  html body #datait-chrome-footer .live-brand-type small,
  html body .chassis-footer-brand .live-brand-type small {
    display: block !important;
  }
}


/* v227: never animate plate or nav box size (the flicker was a width
   transition while JS rewrote the footer). */
html body .live-image-header .live-brand-plate,
html body .live-image-header a.live-brand-plate,
html body .live-image-header .live-call-plate,
html body .live-image-header .qc-menu-btn,
html body #site-footer .live-brand-plate,
html body #datait-chrome-footer .live-brand-plate,
html body a.chassis-footer-brand.live-brand-plate,
html body .chassis-footer-brand.live-brand-plate {
  transition: none !important;
  animation: none !important;
}

/* Tablet 481–980px: v226 still linked v224, which locked the header and
   footer plates at 194×58 in this range (that is why iPad measured 194). */
@media (min-width: 481px) and (max-width: 980px) {
  /* v224 tablet lock (max-width: 980px) — 194×58 plate, top 27px / left 32px,
     CALL+menu 58×58, inner D/type untranslated so the zn/zo wordmark + HTML
     tagline matches v226. */
  html body .live-image-header {
    --nav-plate: 58px;
  }
  html body .live-image-header .live-brand-plate,
  html body .live-image-header a.live-brand-plate {
    transform: none !important;
    transform-origin: left center !important;
    left: 32px !important;
    top: 27px !important;
    width: 194px !important;
    min-width: 194px !important;
    max-width: 194px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    box-sizing: border-box !important;
    transition: none !important;
    animation: none !important;
  }
  html body .live-image-header .qc-menu-btn {
    top: 27px !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
  }
  html body .live-image-header .live-call-plate {
    top: 27px !important;
    right: calc(var(--hero-rail, 22px) + var(--nav-plate, 58px) + 12px) !important;
    left: auto !important;
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  html body .live-image-header .live-brand-d,
  html body .live-image-header .live-brand-type,
  html body .live-image-header .live-brand-type img,
  html body #datait-chrome-footer .live-brand-d,
  html body #datait-chrome-footer .live-brand-type,
  html body #datait-chrome-footer .live-brand-type img,
  html body .chassis-footer-brand .live-brand-d,
  html body .chassis-footer-brand .live-brand-type,
  html body .chassis-footer-brand .live-brand-type img {
    transform: none !important;
  }
  html body .live-image-header .live-brand-type small,
  html body #datait-chrome-footer .live-brand-type small,
  html body .chassis-footer-brand .live-brand-type small {
    width: 100% !important;
    display: block !important;
  }
  html body #site-footer .live-brand-plate,
  html body #datait-chrome-footer .live-brand-plate,
  html body a.chassis-footer-brand.live-brand-plate,
  html body .chassis-footer-brand.live-brand-plate {
    width: 194px !important;
    min-width: 194px !important;
    max-width: 194px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    box-sizing: border-box !important;
    transition: none !important;
    animation: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin-inline: auto !important;
    justify-self: center !important;
  }
}

/* Desktop ≥981px: footer plate matches the header's used size
   (276.75×107.41 at 1280, scaling linearly with viewport). */
@media (min-width: 981px) {
  html body #site-footer .live-brand-plate,
  html body #datait-chrome-footer .live-brand-plate,
  html body a.chassis-footer-brand.live-brand-plate,
  html body .chassis-footer-brand.live-brand-plate {
    width: calc(276.75px * 100vw / 1280px) !important;
    min-width: 0 !important;
    max-width: calc(276.75px * 100vw / 1280px) !important;
    height: calc(107.41px * 100vw / 1280px) !important;
    min-height: 0 !important;
    max-height: calc(107.41px * 100vw / 1280px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* ---- v228 footer lockup (CSS only; do not change the header, nav, or sticky) ----
   Root cause: the footer plate lives in footer#site-footer as
   a.chassis-footer-brand.live-brand-plate, not #datait-chrome-footer.
   An older @media (max-width: 980px) rule
   (html body a.chassis-footer-brand .live-brand-type img { max-height: 32px })
   is more specific than v227's class-only footer selectors, so it won.
   At ≤480 the tagline is painted in datait-wordmark-lockup.webp. The type
   box is only ~28px tall (58px plate − 8px padding − 7px border, border-box),
   so a 32px-tall image was clipped by overflow:hidden — the bottom of
   "SECURE ITAD SERVICES" was cut off. The header already uses height/max-height
   100% and was fine. These selectors beat the old a.chassis-footer-brand rule
   and contain the footer lockup the same way as the header. No JS sizing. */
@media (max-width: 480px) {
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-d,
  html body footer#site-footer a.live-brand-plate .live-brand-d,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-d {
    height: 100% !important;
    width: auto !important;
    max-width: 42% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type,
  html body footer#site-footer a.live-brand-plate .live-brand-type,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    width: auto !important;
    overflow: hidden !important;
    gap: 0 !important;
  }
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type picture,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type img,
  html body footer#site-footer a.live-brand-plate .live-brand-type img,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type img {
    display: block !important;
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type small,
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type small[aria-label],
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type small,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type small[aria-label] {
    display: none !important;
  }
}

@media (min-width: 481px) and (max-width: 980px) {
  /* Match the header's tablet lockup scale (32px wordmark + HTML tagline).
     Do not shrink the wordmark; just keep the tagline in the plate. */
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type small,
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type small[aria-label],
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type small,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type small[aria-label] {
    display: block !important;
    overflow: visible !important;
    line-height: 1 !important;
  }
}

@media (min-width: 981px) {
  /* Desktop footer already scales with the header plate; keep the tagline
     fully inside and beat any leftover max-height that could clip it. */
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-content: center !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type img,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type img {
    max-height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
  html body footer#site-footer a.chassis-footer-brand.live-brand-plate .live-brand-type small,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type small,
  html body a.chassis-footer-brand.live-brand-plate .live-brand-type small[aria-label] {
    display: block !important;
    overflow: visible !important;
    line-height: 1 !important;
  }
}
