/* ClearHelm Internal Workspace Powered Footer Contract v1
 * Scope: internal .chdash workspace shells only.
 * Purpose: make Powered by ClearHelm a measured responsive component, not a page-specific footer exception.
 * Authority boundary:
 * - Does not style public intake / paid registration / ticket confirmation pages.
 * - Does not apply to Auction while Auction remains outside the workspace proofset.
 * - Does not use transform-based positioning.
 * - Moves the actual measured layout box so footer proof uses the same geometry users see.
 */

:root {
  --chdash-powered-footer-height: 32px;
  --chdash-powered-footer-logo-max-height: 29px;
  --chdash-powered-footer-label-size: 10.75px;
  --chdash-powered-footer-gap: 12px;
}

body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .chdash-powered,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .clearhelm-footer,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .ch-powered-by {
  width: 100% !important;
  height: var(--chdash-powered-footer-height) !important;
  min-height: var(--chdash-powered-footer-height) !important;
  max-height: var(--chdash-powered-footer-height) !important;
  flex: 0 0 var(--chdash-powered-footer-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--chdash-powered-footer-gap) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  transform: none !important;
}

body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .chdash-powered-label,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .clearhelm-footer .powered-by-text,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .ch-powered-by .powered-by-text {
  margin: 0 !important;
  padding: 0 !important;
  font-size: var(--chdash-powered-footer-label-size) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  color: rgba(235,245,255,.82) !important;
  transform: none !important;
}

body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .chdash-powered img,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .chdash-powered-logo,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .clearhelm-footer img,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .clearhelm-footer .clearhelm-logo,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .clearhelm-footer-logo,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .ch-powered-by img,
body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) .ch-clearhelm-logo {
  width: auto !important;
  max-width: min(168px, 52vw) !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: var(--chdash-powered-footer-logo-max-height) !important;
  object-fit: contain !important;
  transform: none !important;
}

@media (max-width: 860px) {
  body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) {
    --chdash-powered-footer-height: 38px;
    --chdash-powered-footer-logo-max-height: 32px;
    --chdash-powered-footer-label-size: 10.5px;
    --chdash-powered-footer-gap: 10px;
  }
}

@media (min-width: 861px) and (min-height: 980px) {
  body.chdash-page-body .chdash-shell[data-ch-panel][data-clearhelm-wide-fit-pass="v1"]:not([data-ch-panel="auction"]) {
    --chdash-powered-footer-height: 36px;
    --chdash-powered-footer-logo-max-height: 32px;
  }
}
