/* RFQ detail pages.
 *
 * Loaded on top of agent.css, which already provides the white canvas, the
 * .fm-shell column, .fm-card and .fm-chip. Kept in its own file on purpose:
 * build_agent_pages.py hashes agent.css into its design fingerprint, so adding
 * these rules there would mark all 5,290 agent pages stale and rebuild every
 * one of them on the next cron run, for styling they never use.
 */

.fm-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;
  font-size:15px;color:var(--fm-muted);text-decoration:none}
.fm-back:hover{color:var(--fm-ink)}
.fm-back svg{width:18px;height:18px}

.fm-rfqcard{padding:24px}
@media (min-width:640px){.fm-rfqcard{padding:32px}}

.fm-rfq-kicker{display:flex;align-items:center;gap:8px;
  font-size:14px;font-weight:500;color:var(--fm-muted)}
.fm-rfq-kicker svg{width:17px;height:17px}

.fm-rfq-title{margin:14px 0 0;font-size:28px;line-height:1.2;
  font-weight:700;letter-spacing:-.02em;color:var(--fm-ink)}
@media (min-width:640px){.fm-rfq-title{font-size:32px}}

.fm-rfq-sum{margin:12px 0 0;font-size:17px;line-height:1.6;color:var(--fm-muted)}

.fm-rfq-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
/* The status pill reads as state, not as a keyword, so it carries the icon and
   a filled background while the keyword chips stay outlined. */
.fm-chip.state{background:#F1EFEA;border-color:transparent;color:var(--fm-muted);
  display:inline-flex;align-items:center;gap:6px;font-weight:500}
.fm-chip.state svg{width:13px;height:13px}
.fm-chip.state.closed{background:#F3F1EE;color:#8A837A}

.fm-rfq-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--fm-line)}
.fm-rfq-h2{margin:0 0 12px;font-size:16px;font-weight:600;color:var(--fm-ink)}

/* The body is the buyer's own text, stripped. pre-wrap keeps the paragraph
   breaks they wrote without letting a long unbroken part number push the card
   sideways on a phone. */
.fm-rfq-body{font-size:16px;line-height:1.7;color:var(--fm-ink);
  white-space:pre-wrap;overflow-wrap:anywhere}

.fm-rfq-facts{display:grid;grid-template-columns:auto 1fr;gap:8px 20px;
  margin:24px 0 0;padding-top:20px;border-top:1px solid var(--fm-line);
  font-size:14px}
.fm-rfq-facts dt{color:var(--fm-muted)}
.fm-rfq-facts dd{margin:0;color:var(--fm-ink);font-weight:500}

.fm-rfq-src{margin:24px 0 0;padding-top:18px;border-top:1px solid var(--fm-line);
  font-size:13px;color:var(--fm-muted)}

.fm-rfq-cta{margin-top:16px;text-align:center}
.fm-rfq-cta .fm-rfq-h2{margin-bottom:8px}
.fm-rfq-cta p{margin:0 auto 18px;max-width:46ch;
  font-size:15px;line-height:1.6;color:var(--fm-muted)}
