/* The agent prompt library: /prompts/ and /prompts/<listing>/ (scripts/render-prompt-pages.mjs).
   Builds on catalog-pages.css (hero, layout, aside card) and landing.css (the agent-connect menu). */
.prompt-hero { max-width: 760px; }
.prompt-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.prompt-hero > p { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.prompt-hero a { color: var(--ink); text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 3px; }

.prompt-chips { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; margin: 36px 0 0; padding: 12px 0; overflow-x: auto; background: #111; scrollbar-width: none; }
.prompt-chips::-webkit-scrollbar { display: none; }
.prompt-chips a { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: #d6d5cf; font-size: 13px; white-space: nowrap; }
.prompt-chips a:hover { border-color: #5c5c64; color: #fff; }
.prompt-chips span { margin-left: 4px; color: #85858d; }

.prompt-group { margin-top: 48px; scroll-margin-top: 64px; }
.prompt-group h2 { margin: 0 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.prompt-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #151517; color: var(--ink); transition: border-color .15s, background .15s; }
.prompt-card:hover { border-color: #5c5c64; background: #18181b; }
.prompt-card strong { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.prompt-card-task { color: var(--muted); font-size: 14px; line-height: 1.55; }
.prompt-card-source { display: flex; align-items: center; gap: 10px; color: #a9a8a2; font-size: 12.5px; }
.prompt-card-source .catalog-api-icon, .prompt-api-link .catalog-api-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 7px; font-size: 14px; }
.prompt-card-source .catalog-api-icon img, .prompt-api-link .catalog-api-icon img { width: 16px; height: 16px; }
.prompt-empty, .prompt-more { margin-top: 48px; color: var(--muted); }
.prompt-more a, .prompt-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.prompt-list { display: grid; gap: 16px; }
.prompt-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #151517; scroll-margin-top: 24px; }
.prompt-item:target { border-color: #b5cec180; }
.prompt-item h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.prompt-task { margin: 10px 0 0; color: #d6d5cf; font-size: 16px; line-height: 1.6; }
.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.prompt-actions .agent-connect { margin: 0; }
.prompt-copy { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #ececf0; color: #19191d; font: inherit; font-size: 13px; cursor: pointer; }
.prompt-copy strong { font-weight: 500; }
.prompt-copy:hover { background: #fff; }
.catalog-api-body .prompt-full { margin: 14px 0 0; }
.catalog-api-body .prompt-full summary { padding: 4px 0; color: #85858d; font-size: 13px; cursor: pointer; }
.catalog-api-body .prompt-full summary:hover { color: #d6d5cf; }
.prompt-full pre { white-space: pre-wrap; word-break: break-word; }

.prompt-listing .catalog-api-more span { font-family: inherit; font-size: 13px; line-height: 1.5; color: #85858d; }
.prompt-api-label { color: #85858d; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.prompt-api-link { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink); }
.prompt-api-link strong { font-size: 15px; font-weight: 500; }
.prompt-api-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.catalog-api-card .prompt-api-description { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.prompt-steps { margin: 20px 0 0; padding: 16px 0 0 18px; border-top: 1px solid #2f2f34; color: #a9a8a2; font-size: 13px; line-height: 1.55; }
.prompt-steps li + li { margin-top: 6px; }

@media (max-width: 1000px) {
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .prompt-item { padding: 18px; }
  .prompt-hero > p { font-size: 16px; }
}
