/* ==========================================================================
   RuggedRides Export — Buyer Answers section (listing + detail)
   Isolated from app.css/blog.css on purpose — loaded only on tpl in
   [answers, answer], per the standing CSS-collision-avoidance convention.
   ========================================================================== */

/* listing hero stat strip */
.qa-hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.22); }
.qa-hero-stat b { display: block; font-family: var(--font-head); font-size: 26px; color: #fff; line-height: 1.1; }
.qa-hero-stat span { display: block; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--sand); margin-top: 4px; opacity: .9; }

/* filter pills */
.qa-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.qa-filter-pill { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--olive-dark); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.qa-filter-pill:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-1px); }
.qa-filter-pill.active { background: var(--rust); border-color: var(--rust); color: #fff; }
.qa-filter-count { font-size: 13.5px; color: var(--ink-soft); margin: -18px 0 26px; }

/* category section with banner */
.qa-cat-section { margin-bottom: 46px; }
.qa-cat-section.is-hidden { display: none; }
.qa-cat-banner { position: relative; border-radius: 14px; overflow: hidden; height: 148px; margin-bottom: 22px; background-size: cover; background-position: center; box-shadow: 0 8px 22px rgba(0,0,0,0.10); }
.qa-cat-banner-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,12,7,0.86) 0%, rgba(20,12,7,0.55) 55%, rgba(20,12,7,0.18) 100%); display: flex; flex-direction: column; justify-content: center; padding: 0 30px; }
.qa-cat-title { color: #fff; font-family: var(--font-head); font-size: 24px; letter-spacing: -.2px; margin: 0 0 6px; text-shadow: 0 3px 14px rgba(0,0,0,.4); }
.qa-cat-count { color: var(--sand); font-size: 13px; letter-spacing: .4px; margin: 0; }

/* answer cards */
.qa-card .spec-media { aspect-ratio: 16/9; }
.qa-card .spec-sum { min-height: 0; }
.qa-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qa-card-meta .link-inline { font-weight: 700; }

/* detail page — two-column layout with sticky sidebar */
.qa-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
.qa-detail-main { min-width: 0; }
.qa-detail-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

.qa-lead { font-family: var(--font-head); font-size: 19px; line-height: 1.5; color: var(--graphite); background: var(--card); border-left: 4px solid var(--rust); border-radius: 6px; padding: 16px 20px; margin: 0 0 26px; }

.qa-detail-body { font-size: 16px; color: var(--ink); line-height: 1.7; }
.qa-detail-body p { margin: 0 0 16px; }
.qa-detail-body ul, .qa-detail-body ol { margin: 0 0 16px; padding-left: 22px; }
.qa-detail-body li { margin-bottom: 6px; }
.qa-detail-body strong { color: var(--graphite); }
.qa-detail-body a { color: var(--rust); font-weight: 600; }

.qa-cta-inline { margin: 28px 0 4px; }

.qa-related-head { margin: 44px 0 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.qa-related-head h3 { margin: 0; }

/* sidebar cards — isolated copy of the card language used on blog.css,
   duplicated here since answers.css loads independently of blog.css */
.sidebar-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.sidebar-card h4 { font-family: var(--font-head); font-size: 15px; letter-spacing: .3px; margin: 0 0 14px; color: var(--graphite); }

.qa-meta-card .meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qa-meta-card .meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.qa-meta-card .meta-k { color: var(--ink-soft); }
.qa-meta-card .meta-v { font-weight: 600; color: var(--graphite); text-align: right; }

.sidebar-cta-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
.sidebar-cta-card .btn-block { display: block; width: 100%; text-align: center; }

.qa-topic-card ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qa-topic-card li a { font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.4; display: block; }
.qa-topic-card li a:hover { color: var(--rust); }
.qa-topic-card .link-inline { font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .qa-detail-layout { grid-template-columns: 1fr; }
  .qa-detail-sidebar { position: static; }
}

@media (max-width: 620px) {
  .qa-hero-stats { gap: 18px 28px; }
  .qa-cat-banner { height: 116px; }
  .qa-cat-title { font-size: 20px; }
  .qa-lead { font-size: 17px; padding: 14px 16px; }
}
