/* Talkerstein Prompt Vault — Shared portal styles
   Used by: homepage, vault, prompt detail pages, model guide, etc.
   TCG brand palette per Rishon decision (2026-05-25). */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #5a5a5a;
  --line: #e6e3dd;
  --bg: #f6f3ec;
  --bg-alt: #efe9dd;
  --accent: #c47d3e;
  --accent-dark: #a1612b;
  --accent-soft: rgba(196, 125, 62, 0.12);
  --ok: #2e7d4f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 880px; }

/* ===== Nav (shared) — floating pill matching talkerstein.com ===== */
html { scroll-padding-top: 80px; }
nav.top { display: flex; justify-content: center; padding: 16px 20px 8px; background: var(--bg); border: none; position: sticky; top: 0; z-index: 100; }
nav.top .container { background: #fff; border-radius: 999px; padding: 10px 10px 10px 22px; box-shadow: 0 2px 20px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 24px; max-width: none; width: auto; }
nav.top .brand { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: #0d0c2b; display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
nav.top .brand small { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 2px 0 0; padding: 0; border: none; }
nav.top .links { display: flex; gap: 20px; font-size: 13px; }
nav.top .links a { text-decoration: none; color: #0d0c2b; padding: 4px 0; white-space: nowrap; }
nav.top .links a.is-current { color: var(--accent); border-bottom: 2px solid var(--accent); }
nav.top .cta { background: #0d0c2b; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
nav.top .cta:hover { background: var(--accent); }

/* ===== Footer (shared) ===== */
footer { background: #0a0a0a; color: #b8b3a6; padding: 56px 0 40px; font-size: 14px; }
footer .row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
footer a { color: #b8b3a6; text-decoration: none; display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
footer .brand { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 10px; }
footer .legal { border-top: 1px solid #1a1a1a; margin-top: 36px; padding-top: 22px; color: #8a857a; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ===== Typography shared ===== */
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.crumb a:hover { color: var(--accent); border-color: var(--accent); }

h1.editorial { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 18px; }
h2.editorial { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; margin: 36px 0 14px; }
h3.editorial { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 28px 0 10px; }
p.lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 760px; }
h4.sec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin: 32px 0 10px; }

/* ===== Tag pills ===== */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.vtag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 4px; font-weight: 700; display: inline-block; }
.vtag.cat { background: var(--accent-soft); color: var(--accent-dark); }
.vtag.sec { background: var(--bg-alt); color: var(--muted); }
.vtag.model { background: rgba(10, 10, 10, 0.06); color: var(--ink-soft); font-weight: 600; }
.vtag.brevity { background: rgba(46, 125, 79, 0.1); color: var(--ok); }
.vtag.diff { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.vtag.diff.easy { border-color: var(--ok); color: var(--ok); }
.vtag.diff.intermediate { border-color: var(--accent); color: var(--accent-dark); }
.vtag.diff.advanced { border-color: #8a3a2b; color: #8a3a2b; }
.vtag.auto { background: rgba(196, 125, 62, 0.08); color: var(--accent-dark); border: 1px dashed var(--accent); }

/* ===== Prompt detail page ===== */
.prompt-page { padding: 56px 0 80px; }
.prompt-page header { margin-bottom: 36px; }
.prompt-page header .tag-row { margin: 0 0 18px; }
.prompt-page h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.06; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 14px; }
.prompt-page header p.desc { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 760px; margin: 0 0 24px; }

.quick-facts { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin-bottom: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.quick-facts .fact { font-size: 13px; }
.quick-facts .fact .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; display: block; margin-bottom: 6px; }
.quick-facts .fact .val { color: var(--ink); font-weight: 500; line-height: 1.45; }
.quick-facts .fact .val small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; font-size: 12px; }

.prompt-section { margin: 0 0 14px; }
.prompt-section p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0; max-width: 800px; }
.prompt-section ol, .prompt-section ul { padding-left: 22px; margin: 0; max-width: 800px; }
.prompt-section ol li, .prompt-section ul li { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 6px; }

.prompt-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; position: relative; margin: 0; }
.prompt-block pre { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 520px; overflow-y: auto; }
.prompt-block .copy-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.prompt-block .copy-bar small { color: var(--muted); font-size: 12px; }
.prompt-block button.copy-btn { background: var(--ink); color: #fff; border: none; padding: 9px 18px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--sans); letter-spacing: 0.04em; transition: background 0.15s; }
.prompt-block button.copy-btn:hover { background: var(--accent); }
.prompt-block button.copy-btn.copied { background: var(--ok); }
.prompt-block.followup pre { max-height: 240px; }
.prompt-block.followup { background: var(--bg-alt); }

.avoid-block { background: #fff; border-left: 3px solid #8a3a2b; padding: 18px 22px; border-radius: 4px; margin: 0; }
.avoid-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ===== FAQ section (per-prompt unique, FAQPage schema) ===== */
.faq-list { margin: 0; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); margin-left: 18px; font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 760px; }

/* ===== Vertical scenarios (per-prompt unique content) ===== */
.vertical-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0; }
.vertical-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 20px 22px; }
.vertical-card h5 { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-dark); font-weight: 700; margin: 0 0 10px; }
.vertical-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* Related workflow cards */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; gap: 10px; }
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10,10,10,0.04); }
.related-card .rcat { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.related-card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.2; margin: 0; font-weight: 600; color: var(--ink); }
.related-card .rdesc { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.related-card .rcta { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: auto; letter-spacing: 0.04em; }

/* CTA back to vault */
.back-to-vault { background: var(--ink); color: #fff; border-radius: 14px; padding: 36px; margin-top: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.back-to-vault h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 500; margin: 0 0 6px; color: #fff; }
.back-to-vault p { color: #d9d4c9; font-size: 14px; line-height: 1.5; margin: 0; }
.back-to-vault .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.back-to-vault .btn { padding: 13px 22px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.back-to-vault .btn.primary { background: var(--accent); color: #fff; }
.back-to-vault .btn.primary:hover { background: var(--accent-dark); }
.back-to-vault .btn.secondary { background: transparent; border: 1px solid #fff; color: #fff; }
.back-to-vault .btn.secondary:hover { background: rgba(255,255,255,0.08); }

/* Standalone CTA button (reusable across pages) */
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  font-family: var(--sans); transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

/* Toast (shared) */
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px; font-size: 14px; z-index: 200; transition: transform 0.25s; box-shadow: 0 8px 24px rgba(0,0,0,0.18); pointer-events: none; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* Mobile */
@media (max-width: 820px) {
  .container { padding: 0 22px; }
  nav.top { padding: 12px 12px 6px; }
  nav.top .container { padding: 8px 8px 8px 16px; gap: 14px; }
  nav.top .links { display: none; }
  .quick-facts { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 20px; }
  .back-to-vault { grid-template-columns: 1fr; text-align: left; padding: 28px; }
  footer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .quick-facts { grid-template-columns: 1fr; }
  footer .row { grid-template-columns: 1fr; }
}
