/* ===========================
   prompts.css — additions on top of blog.css for the prompt library.
   Loaded alongside /blog/blog.css, which already carries the tokens and the
   shared header/footer/container/btn/blog-index/blog-post rules this page
   reuses. Only the parts unique to a prompt page live here.
   =========================== */

.prompt-breadcrumb {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-subtle);
  margin-bottom: var(--s-6);
}

.prompt-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.prompt-breadcrumb a:hover { color: var(--color-accent); }
.prompt-breadcrumb span[aria-current] { color: var(--color-text); }
.prompt-breadcrumb span[aria-hidden] { margin: 0 var(--s-2); }

.prompt-intro {
  font-size: var(--t-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--s-8);
}

.prompt-body-wrap {
  position: relative;
}

.prompt-copy-btn {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  padding: 0.5rem 1.125rem;
  font-size: var(--t-sm);
  background: var(--color-surface);
}

.prompt-body {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--s-7) var(--s-6);
  padding-top: var(--s-10);
  overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 600px) {
  .prompt-copy-btn {
    position: static;
    display: block;
    width: 100%;
    margin-bottom: var(--s-4);
  }
  .prompt-body { padding-top: var(--s-6); }
}
