/*
 * IA & Marketing Editorial Blocks
 * Prompts : iam_prompt.
 */

.iam-prompt,
.iam-prompt * {
  box-sizing: border-box;
}

.iam-prompt {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  background: #f7fbff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  color: #1f2024 !important;
}

.iam-prompt,
.iam-prompt h1,
.iam-prompt h2,
.iam-prompt h3,
.iam-prompt h4,
.iam-prompt h5,
.iam-prompt h6,
.iam-prompt p,
.iam-prompt li,
.iam-prompt strong,
.iam-prompt em,
.iam-prompt span,
.iam-prompt button {
  color: #1f2024 !important;
}

.iam-prompt__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.iam-prompt__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 0;
}

.iam-prompt__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  background: rgba(40, 120, 185, 0.12);
  color: #2878b9 !important;
  font-size: 1.1rem;
  line-height: 1;
}

.iam-prompt__icon i {
  color: inherit !important;
  line-height: 1;
}

.iam-prompt__number {
  margin: 0 0 0.3rem;
  color: #2878b9 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.iam-prompt__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.iam-prompt__copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #bdd7ed;
  border-radius: 8px;
  background: #ffffff;
  color: #2878b9 !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.iam-prompt__copy i,
.iam-prompt__copy span {
  color: inherit !important;
}

.iam-prompt__copy:hover,
.iam-prompt__copy:focus-visible {
  border-color: #2878b9;
  background: #eef7ff;
  outline: none;
}

.iam-prompt__purpose,
.iam-prompt__check {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.iam-prompt__content {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid #d5e4f2;
  border-radius: 10px;
  background: #ffffff;
}

.iam-prompt__content p {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.94rem;
  line-height: 1.7;
}

.iam-prompt__check {
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 32, 36, 0.14);
}

@media (max-width: 640px) {
  .iam-prompt {
    margin: 1.5rem 0;
    padding: 1.125rem;
  }

  .iam-prompt__header {
    flex-direction: column;
    align-items: stretch;
  }

  .iam-prompt__copy {
    width: 100%;
  }

  .iam-prompt__title {
    font-size: 1.15rem;
  }

  .iam-prompt__content {
    padding: 0.85rem;
  }

  .iam-prompt__content p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iam-prompt,
  .iam-prompt * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}