/* ============================================================
   BUILD YOUR NEXT 2.0 — prompt cards (shared component, S3-owned)
   Rendered by prompts.js into .prompt-cards[data-prompts]. Mirrors the
   Upgrade .copyblock pattern (mono block + Copy button on the fig rail) so
   the copy affordance reads the same everywhere it appears.
   Leans on design-system.css tokens. Red budget: red = the Copy-confirmed
   state and one hairline accent only.
   ============================================================ */

.prompt-cards { margin-top: 24px; display: grid; gap: 20px; }
.prompt-cards:not(.is-ready):empty { display: none; }
/* Two-up on wide viewports when there are multiple cards; the grid collapses
   gracefully with auto-fit. */
@media (min-width: 900px) {
  .prompt-cards { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 22px; }
}

.pc-card {
  border: 1px solid var(--hair);
  border-top: 3px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pc-head { padding: 16px 20px 4px; }
.pc-eyebrow {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
}
.pc-title {
  font-family: var(--font-display);
  font-weight:700;
  font-size: 16px;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 4px;
}

/* ---- the copy block (Upgrade .copyblock parity) ---- */
.pc-block { border-top: 1px solid var(--hair2); margin: 12px 0 0; }
.pc-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fig-bg);
  color: var(--fig-tx);
  padding: 8px 14px 8px 18px;
}
.pc-block-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pc-copy {
  cursor: pointer;
  border: 1px solid var(--fig-tx);
  background: none;
  color: var(--fig-tx);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  transition: .15s;
}
.pc-copy:hover { background: var(--fig-tx); color: var(--fig-bg); }
.pc-copy.copied { background: var(--red); border-color: var(--red); color: #fff; }

.pc-pre {
  margin: 0;
  padding: 18px 20px;
  background: var(--paper2);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.pc-pre:focus { outline: 2px solid var(--red); outline-offset: -2px; }

@media (max-width: 640px) {
  .pc-title { font-size: 15px; }
  .pc-pre { font-size: 12.5px; padding: 16px 16px; }
}
