/* Swoogo: Prompt Group block
   Self-contained styles (values ported from the guide design system). */

.sg-prompt-group {
  --pg-lavender-ink: #4A3EC2;
  --pg-fog:          #E9ECFF;
  --pg-border:       #E5E7EB;
  --pg-ink-25:       #F5F6F7;
  --pg-wisteria:     #A5B4FC;
  --pg-glow:         #FF8A4C;
  --pg-pacific:      #050849;
  --pg-fg-muted:     #5A5F73;
  --pg-radius:       12px;

  font-family: "Inter Tight", "Inter", sans-serif;
  scroll-margin-top: 160px;
}

/* font-size/weight/padding use !important to override the guide content-area
   h3/p typography rules, which are more specific than these block selectors. */
.sg-prompt-group .group-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-lavender-ink);
  margin: 30px 0 6px;
  padding: 0 !important;
  scroll-margin-top: 160px;
}

.sg-prompt-group .group-blurb {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--pg-fg-muted);
  margin: 0 0 18px !important;
  padding: 0 !important;
}

/* ---- Prompt card ---- */
.sg-prompt-group .prompt-card {
  background: #fff;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  padding: 18px 20px 20px;
  box-shadow: 0 0 35px rgba(38, 41, 102, 0.10);
  margin-top: 16px;
  transition: box-shadow .2s, transform .2s;
}
.sg-prompt-group .prompt-card:hover {
  box-shadow: 0 8px 24px rgba(38, 41, 102, 0.10);
  transform: translateY(-1px);
}

.sg-prompt-group .prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sg-prompt-group .prompt-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-lavender-ink);
}
.sg-prompt-group .prompt-tag svg {
  width: 15px;
  height: 15px;
}

/* ---- Copy button ---- */
.sg-prompt-group .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pg-ink-25);
  border: 1px solid var(--pg-border);
  color: var(--pg-fg-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.sg-prompt-group .copy-btn:hover {
  background: var(--pg-fog);
  color: var(--pg-lavender-ink);
  border-color: var(--pg-wisteria);
}
.sg-prompt-group .copy-btn svg {
  width: 14px;
  height: 14px;
}
.sg-prompt-group .copy-btn .i-copy  { display: inline; }
.sg-prompt-group .copy-btn .i-check { display: none; }
.sg-prompt-group .copy-btn.copied {
  background: #E7F6EE;
  color: #1F8A5B;
  border-color: #A7E0C2;
}
.sg-prompt-group .copy-btn.copied .i-copy  { display: none; }
.sg-prompt-group .copy-btn.copied .i-check { display: inline; }

.sg-prompt-group .prompt-text {
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--pg-pacific);
  font-weight: 500;
  margin: 0 !important;
  padding: 0 !important;
}
.sg-prompt-group .prompt-text .ph {
  background: var(--pg-fog);
  color: var(--pg-lavender-ink);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ---- Per-prompt tip ---- */
.sg-prompt-group .tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 4px 4px;
  padding: 0 0 0 2px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pg-fg-muted);
}
.sg-prompt-group .tip svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--pg-glow);
  margin-top: 2px;
}

/* --- Guide content-area override ---
   Inside a guide, `.guide-main .guide-content h3/p` rules use !important AND
   out-specify the block's base selectors (font-group-fox forces 32px/900;
   p forces 1em padding). These higher-specificity rules win them back. */
body.single-sg_guide .guide-main .guide-content .sg-prompt-group .group-title {
  font-family: "Inter Tight", "Inter", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  padding: 0 !important;
}
/* Doubled class (.sg-prompt-group.sg-prompt-group) out-specifies the guide's
   p rule, which is (0,5,3): body .guide-main div.guide-content p:not()():not(). */
body.single-sg_guide .guide-main .guide-content .sg-prompt-group.sg-prompt-group .group-blurb {
  font-size: 16px !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
}
body.single-sg_guide .guide-main .guide-content .sg-prompt-group.sg-prompt-group .prompt-text {
  font-size: 17px !important;
  line-height: 1.55 !important;
  padding: 0 !important;
  margin: 0 !important;
}
