/* ==========================================================================
   Narratiq — resources.css
   Styles for resource / comparison pages and the resources index.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page title (resource & legal pages)
   -------------------------------------------------------------------------- */
.page-title { font-size: 36px; font-weight: 900; color: #0F172A; letter-spacing: -.03em; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Resource page header elements
   -------------------------------------------------------------------------- */
.resource-badge      { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.resource-badge--alt { background: #FFF3EC; border: 1px solid #FDDCB5; color: #C2410C; }
.resource-badge--cmp { background: #F0F4FF; border: 1px solid #DDEAFF; color: #2D52C8; }

.resource-title { font-size: clamp(28px, 4vw, 46px); font-weight: 900; color: #0F172A; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px; }
.resource-lead  { font-size: 18px; color: #6B7280; line-height: 1.7; margin-bottom: 48px; max-width: 640px; }
.resource-date  { font-size: 13px; color: #9CA3AF; margin-bottom: 48px; }

/* --------------------------------------------------------------------------
   Resource CTA block (bottom of each resource page)
   -------------------------------------------------------------------------- */
.resource-cta        { margin-top: 56px; background: linear-gradient(135deg, #050812, #0B1428); border-radius: 20px; padding: 48px 40px; text-align: center; }
.resource-cta__title { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; font-family: 'Plus Jakarta Sans', sans-serif; }
.resource-cta__sub   { font-size: 15px; color: rgba(255,255,255,.5); margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Resource index cards
   -------------------------------------------------------------------------- */
.resource-grid          { display: grid; gap: 16px; }

.resource-card          { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--warm-200); border-radius: 14px; padding: 24px 28px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.resource-card:hover    { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.resource-card__title   { font-size: 16px; font-weight: 700; color: #0F172A; margin-bottom: 5px; }
.resource-card__desc    { font-size: 14px; color: #6B7280; line-height: 1.5; }
.resource-card__arrow   { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--warm-100); display: flex; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   Resource page FAQ (.faq-q = .faq-summary equivalent for resource pages)
   -------------------------------------------------------------------------- */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font-weight: 600;
  color: #0F172A;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: #9CA3AF;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
details[open] > .faq-q::after { content: '×'; }

/* Spacing when .faq-item sits directly in .prose (no .faq-list wrapper) */
.prose .faq-item { margin-top: 8px; }
.prose .faq-item:first-of-type { margin-top: 0; }

/* Strip prose paragraph margins inside faq-body */
.prose .faq-body p { margin-bottom: 0; font-size: 14px; color: #6B7280; line-height: 1.75; }

/* --------------------------------------------------------------------------
   Related resources (inline links on resource pages)
   -------------------------------------------------------------------------- */
.related-resources              { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--warm-200); }
.related-resources__title       { font-size: 12px; font-weight: 700; color: #9CA3AF; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.related-resources__links       { display: flex; flex-direction: column; gap: 8px; }
.related-link                   { font-size: 14px; color: #6B7280; text-decoration: none; transition: color .15s; }
.related-link:hover             { color: #2D52C8; }
