/*
  Cor product family — mandatory Help control (CorPBX / CorLicense help pill).
  Canonical: C:\ITStaff\_Projects\_branding\help-btn.css
  Reference: CorPBX MainLayout — blue circle ? + "Help" label.
  Uses --ca-brand so light/dark match product theme tokens.
*/

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem 0.28rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--ca-border, #d0d7e2);
  background: var(--ca-panel-soft, #f8fafc);
  color: var(--ca-brand, var(--ca-header, #0284c7));
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.help-btn:hover {
  background: var(--ca-accent-soft, rgba(14, 165, 233, 0.12));
  color: var(--ca-brand, var(--ca-header, #0284c7));
  border-color: color-mix(in srgb, var(--ca-brand, #0284c7) 35%, var(--ca-border, #d0d7e2));
}

.help-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ca-brand, var(--ca-header, #0284c7));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* CorBlack: the ? sits on a gray circle, not sky-600. */
html.dark .help-btn-icon,
html.corblack .help-btn-icon {
  background: #3a3a3c;
  color: #f5f5f7;
}

html.dark .help-btn,
html.corblack .help-btn {
  background: var(--ca-panel-soft, #2c2c2e);
  color: var(--ca-fg, #f5f5f7);
}

.help-btn-label {
  padding-right: 0.15rem;
}

@media (max-width: 960px) {
  .help-btn-label { display: none !important; }
  .help-btn {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 !important;
    gap: 0;
    justify-content: center;
    align-items: center;
    line-height: 0;
  }
  .help-btn-icon {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.8125rem;
    line-height: 1;
    /* Slight optical nudge so "?" sits centered in the blue disc */
    padding: 0 0 0.05em;
  }
}
