/* ============================================================================
   RPACPC — Insights listing pages (Blog · Case Studies · Whitepapers)
   Extends css/styles.css tokens; reuses .insights-grid / .insight-card.
   ============================================================================ */

/* Breadcrumb (self-contained, matches suite pages) */
.crumb { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); transition: color .15s; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { opacity: .5; }
.crumb .here { color: var(--ink); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.ins-head { position: relative; padding: calc(58px * var(--pad)) 0 calc(34px * var(--pad)); overflow: hidden; border-bottom: 1px solid var(--line); }
.ins-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 420px at 12% -12%, var(--primary-tint) 0%, transparent 60%),
    radial-gradient(620px 400px at 96% 0%, var(--green-tint) 0%, transparent 62%);
  opacity: .6;
}
.ins-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.04; margin: 16px 0 14px; text-wrap: balance; }
.ins-lead { font-size: 18px; color: var(--body); max-width: 620px; line-height: 1.6; }

/* ── Category tabs ──────────────────────────────────────────────────────── */
.ins-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.ins-tab { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--body); box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, background .15s; }
.ins-tab:hover { border-color: var(--primary); color: var(--primary); }
.ins-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ins-tab .n { font-family: var(--f-mono); font-size: 11.5px; opacity: .55; }
.ins-tab.active .n { opacity: .8; }

/* ── Featured ───────────────────────────────────────────────────────────── */
.ins-section { padding: calc(56px * var(--pad)) 0; }
.ins-feat { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); margin-bottom: 32px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.ins-feat:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ins-feat-body { padding: 38px 40px; display: flex; flex-direction: column; }
.ins-feat-tag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--acc, var(--primary)); background: var(--acc-tint, var(--primary-tint)); padding: 5px 11px; border-radius: 20px; }
.ins-feat-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--primary)); }
.ins-feat h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(23px, 2.3vw, 31px); letter-spacing: -.02em; line-height: 1.12; margin: 16px 0 12px; color: var(--ink); }
.ins-feat p { font-size: 15.5px; color: var(--body); line-height: 1.6; max-width: 460px; }
.ins-feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 26px; }
.ins-feat-meta { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.ins-feat-read { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--acc, var(--primary)); white-space: nowrap; }
.ins-feat-read .arr { transition: transform .2s var(--ease); }
.ins-feat:hover .ins-feat-read .arr { transform: translateX(3px); }
.ins-feat-art { position: relative; background: linear-gradient(135deg, var(--acc-tint, var(--primary-tint)), var(--surface) 135%); border-left: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; min-height: 300px; overflow: hidden; }
.ins-feat-art .glyph { color: var(--acc, var(--primary)); opacity: .2; }
.ins-feat-art.has-img { background: #EAF1FB; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 20px; }
.ins-feat-art.has-img .badge { position: static; }
.ins-feat-art.has-img img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.ins-feat:hover .ins-feat-art.has-img img { transform: scale(1.02); }
.ins-feat-art .glyph svg { width: 132px; height: 132px; }
.ins-feat-art .badge { position: absolute; top: 20px; left: 20px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc, var(--primary)); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); }

/* ── Subhead above grid ─────────────────────────────────────────────────── */
.ins-subhead { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.ins-subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Newsletter strip ───────────────────────────────────────────────────── */
.ins-news { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; background: linear-gradient(100deg, var(--primary-tint-2), var(--green-tint)); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; }
.ins-news-body { flex: 1; min-width: 260px; }
.ins-news-body h4 { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.ins-news-body p { font-size: 14px; color: var(--body); line-height: 1.55; max-width: 460px; }
.ins-news-form { display: flex; gap: 9px; flex-wrap: wrap; }
.ins-news-form input { font-family: var(--f-body); font-size: 14.5px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 240px; }
.ins-news-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ins-feat { grid-template-columns: 1fr; }
  .ins-feat-art { min-height: 180px; order: -1; }
  .ins-feat-body { padding: 28px 26px; }
}
