/*
 * Shared contextual help for the authenticated workspaces.
 *
 * The help bubble is positioned by workspace_help.js so it can stay inside
 * the visible viewport on narrow screens and near the bottom of a page.
 */
.context-help {
  display: inline-flex;
  align-items: center;
  position: relative;
  vertical-align: middle;
}

.context-help__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 1px solid #ad7a12;
  border-radius: 50%;
  color: #173f6b;
  background: #fff5c7;
  box-shadow: 0 2px 7px rgba(23, 63, 107, .12);
  font: inherit;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.context-help__button:hover {
  color: #102e50;
  background: #ffeaa0;
}

.context-help__button:focus-visible {
  outline: 3px solid var(--cll-focus-ring, #0f766e);
  outline-offset: 3px;
}

.context-help__button[aria-expanded="true"] {
  border-color: #0f766e;
  color: #ffffff;
  background: #0f766e;
}

.context-help__bubble {
  position: fixed;
  z-index: 1100;
  box-sizing: border-box;
  width: max-content;
  max-width: min(21rem, calc(100vw - 16px));
  margin: 0;
  padding: .7rem .85rem;
  border: 1px solid #53bdb4;
  border-radius: 10px;
  color: #ffffff;
  background: #173f6b;
  box-shadow: 0 8px 16px rgba(15, 44, 77, .23);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.context-help__bubble:not([hidden]) {
  display: block;
}

@media (max-width: 575.98px) {
  .context-help__bubble {
    max-width: calc(100vw - 16px);
    padding: .65rem .75rem;
    font-size: .84rem;
  }
}

.workspace-shell #mainContent .context-help__button { width:16px; min-width:16px; height:16px; min-height:16px; padding:0; font-size:.65rem; }
