/* Right-side persistent modal on Supported Jobs sites – scoped to avoid affecting page */

#clg-sidebar-root {
  --clg-sidebar-width: 600px;
  --clg-tab-width: 36px;
  --clg-square-size: 48px;
  --clg-sidebar-max-height: 95vh;
  --clg-sidebar-min-height: 95vh;
  position: fixed;
  top: 24px;
  right: 0;
  bottom: auto;
  width: var(--clg-sidebar-width);
  height: auto;
  min-height: var(--clg-sidebar-min-height);
  max-height: var(--clg-sidebar-max-height);
  max-width: 95vw;
  z-index: 2147483646;
  display: flex;
  flex-direction: row;
  overflow: visible;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  box-shadow: none;
  height: 95vh;
  transition: width 0.2s ease, box-shadow 0.2s ease;
}

#clg-sidebar-root.clg-sidebar-collapsed {
  width: var(--clg-square-size);
  height: var(--clg-square-size);
  bottom: auto;
  top: 24px;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}

#clg-sidebar-root .clg-sidebar-panel {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
 
}

#clg-sidebar-root.clg-sidebar-collapsed .clg-sidebar-panel {
  display: none;
}

#clg-sidebar-root .clg-sidebar-iframe {
  width: 100%;
  min-height: var(--clg-sidebar-min-height);
  border: none;
  display: block;
}

#clg-sidebar-root .clg-sidebar-tab {
  width: var(--clg-tab-width);
  min-width: var(--clg-tab-width);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
  box-shadow: -1px 0 4px rgba(0, 0, 0, 0.06);
  height: 36px;
  background: #f2185d;
}

#clg-sidebar-root .clg-sidebar-tab:hover {
  background: #166fe5;
}

#clg-sidebar-root .clg-sidebar-tab:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

#clg-sidebar-root .clg-sidebar-tab-icon {
  display: none;
  width: 24px;
  height: 24px;
  line-height: 0;
}

/* Collapsed: full square with branded icon (purple + white logo) */
#clg-sidebar-root.clg-sidebar-collapsed .clg-sidebar-tab-icon {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#clg-sidebar-root.clg-sidebar-collapsed .clg-sidebar-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#clg-sidebar-root .clg-sidebar-tab-icon img,
#clg-sidebar-root .clg-sidebar-tab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#clg-sidebar-root .clg-sidebar-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 0;
  user-select: none;
}

/* Collapsed: small square with branded icon */
#clg-sidebar-root.clg-sidebar-collapsed .clg-sidebar-tab {
  width: var(--clg-square-size);
  min-width: var(--clg-square-size);
  height: var(--clg-square-size);
  background: transparent;
  box-shadow: none;
}

#clg-sidebar-root.clg-sidebar-collapsed .clg-sidebar-tab-icon {
  display: block;
}

#clg-sidebar-root.clg-sidebar-collapsed .clg-sidebar-tab-label {
  display: none;
}
