/* CLC V474 — Header avatar dropdown. Scoped to the V470 member shell only.
   The old V442 sidebar is contained INSIDE the V470 dropdown and must never
   become a permanent left column or cover profile fields. */
body.clc-v470-header { --clc-v474-menu-width: 320px; }
body.clc-v470-header header.clc-v443-header,
body.clc-v470-header header.clc-v443-header .clc-v443-topnav,
body.clc-v470-header header.clc-v443-header .clc-v443-right {
  overflow: visible !important;
}
body.clc-v470-header header.clc-v443-header {
  position: relative !important;
  z-index: 7000 !important;
}
body.clc-v470-header header.clc-v443-header .clc-v443-topnav {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1700px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  display: flex !important;
  align-items: center !important;
  padding-inline: clamp(12px,2vw,32px) !important;
  gap: clamp(10px,2vw,28px) !important;
}
body.clc-v470-header header.clc-v443-header .clc-v443-left {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(10px,1.7vw,28px) !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.clc-v470-header header.clc-v443-header .clc-v443-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  gap: clamp(9px,1.2vw,20px) !important;
}
body.clc-v470-header #clc-v470-header-member {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 7005 !important;
  overflow: visible !important;
}
body.clc-v470-header #clc-v470-header-member > .clc-v470-menu-switch {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}
body.clc-v470-header #clc-v470-header-member > .clc-v470-trigger {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  z-index: 1 !important;
}
/* Never position the menu at the left of the viewport. */
body.clc-v470-header #clc-v470-header-member > .clc-v470-dropdown {
  box-sizing: border-box !important;
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  bottom: auto !important;
  inset-block-end: auto !important;
  width: min(var(--clc-v474-menu-width), calc(100vw - 22px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 22px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(76dvh, 760px) !important;
  margin: 0 !important;
  padding: 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  float: none !important;
  transform: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 7050 !important;
  background: #0c0d0e !important;
  color: #eac78c !important;
  border: 1px solid rgba(207,164,89,.54) !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.75) !important;
}
body.clc-v470-header #clc-v470-header-member:hover > .clc-v470-dropdown,
body.clc-v470-header #clc-v470-header-member:focus-within > .clc-v470-dropdown,
body.clc-v470-header #clc-v470-header-member > .clc-v470-menu-switch:checked ~ .clc-v470-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.clc-v470-header #clc-v470-header-member > .clc-v470-dropdown > .clc-v442-sidebar {
  box-sizing: border-box !important;
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  float: none !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 6px !important;
  overflow: visible !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}
body.clc-v470-header #clc-v470-header-member .clc-v442-sidebar .clc-v442-groups,
body.clc-v470-header #clc-v470-header-member .clc-v442-sidebar .clc-v442-links {
  min-width: 0 !important;
  width: 100% !important;
}
body.clc-v470-header #clc-v470-header-member .clc-v442-sidebar a,
body.clc-v470-header #clc-v470-header-member .clc-v442-sidebar summary {
  box-sizing: border-box !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
/* Any obsolete V442 sidebar outside the V470 profile dropdown stays hidden.
   The #clc-v470-header-member descendant above is intentionally more specific. */
body.clc-v470-header .clc-v442-sidebar {
  display: none !important;
}
/* Member content is a single main column in V470, not a fixed-sidebar layout. */
body.clc-v470-header main.qa-auth-main {
  box-sizing: border-box !important;
  width: min(100% - 32px, 1580px) !important;
  max-width: 1580px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  padding-inline: clamp(12px,2.1vw,28px) !important;
  float: none !important;
  transform: none !important;
}
body.clc-v470-header main.qa-auth-main > .qa-global-shell {
  display: block !important;
  grid-template-columns: minmax(0,1fr) !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
body.clc-v470-header main.qa-auth-main > .qa-global-shell > .qa-global-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: none !important;
}
/* Keep the profile cards responsive and fully within the visible content area. */
body.clc-v470-header main.qa-auth-main .qap-profile,
body.clc-v470-header main.qa-auth-main .qap-profile-layout,
body.clc-v470-header main.qa-auth-main .qap-profile-grid {
  max-width: 100% !important;
  min-width: 0 !important;
}
@media (max-width: 900px) {
  body.clc-v470-header header.clc-v443-header .clc-v443-left {
    flex-wrap: wrap !important;
    gap: 4px 14px !important;
  }
  body.clc-v470-header main.qa-auth-main {
    width: calc(100% - 16px) !important;
    padding-inline: 10px !important;
  }
}
@media (max-width: 600px) {
  body.clc-v470-header header.clc-v443-header .clc-v443-topnav {padding-inline: 10px !important;}
  body.clc-v470-header header.clc-v443-header .clc-v443-left {justify-content: flex-start !important;}
  body.clc-v470-header #clc-v470-header-member > .clc-v470-dropdown {
    width: min(310px, calc(100vw - 16px)) !important;
    right: 0 !important;
  }
}

/* V475: force the active profile shell to use no permanent left menu. */
body.clc-v470-header .clc-v442-sidebar:not(#clc-v470-header-member .clc-v442-sidebar) {
  display:none!important;position:static!important;
}
body.clc-v470-header #clc-v470-header-member > .clc-v470-dropdown > .clc-v442-sidebar {
  display:block!important;position:static!important;height:auto!important;max-height:none!important;
}
body.clc-v470-header #clc-v470-header-member > .clc-v470-dropdown {left:auto!important;right:0!important;top:100%!important;}
body.clc-v470-header main.qa-auth-main,
body.clc-v470-header .qa-global-shell,
body.clc-v470-header .qa-global-main {
  left:auto!important;right:auto!important;min-width:0!important;max-width:100%!important;
}
body.clc-v470-header main.qa-auth-main {margin-inline:auto!important;}
