/* ===== INSIGHTS ===== styles for /insights hub + article pages.
   Relies on tokens + nav/footer/cta from lp.css + cs.css. */

/* ---------- HUB HERO ---------- */
.ins-hero { padding: 72px 0 8px; }
/* Hero badge / pill — canonical style (matches .badge / .lp-hero__badge / .cs-tag). */
.ins-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30, 99, 204, 0.07);
  border: 1px solid rgba(30, 99, 204, 0.16);
  color: #1E63CC;
  font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 100px;
  letter-spacing: 0.01em; margin-bottom: 22px;
}
.ins-hero h1 {
  font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -1.4px;
  color: var(--text); max-width: 860px; margin: 0;
}
.ins-hero h1 .g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ins-hero__sub { font-size: 17px; color: var(--text-sec); max-width: 640px; margin-top: 20px; line-height: 1.7; }
.ins-trust { display: flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 15px; color: var(--text-sec); }
.ins-trust .stars { color: #F5A623; letter-spacing: 1px; }

/* ---------- FILTERS ---------- */
.ins-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 26px; }
.ins-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  font-family: inherit; line-height: 1.3;
  font-size: 14.5px; color: var(--text-sec); font-weight: 500; cursor: pointer; background: var(--white);
}
.ins-chip.on { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- SHARED: pillar tag + notes ---------- */
.ins-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.ins-note { font-size: 14px; color: var(--text-muted); margin-top: 28px; }

/* ---------- ARTICLE ---------- */
.ins-col { max-width: 760px; margin: 0 auto; padding: 0 var(--pad-x); }
.ins-crumbs { font-size: 14px; color: var(--text-muted); padding-top: 36px; }
.ins-crumbs a { color: var(--blue); }
.ins-article-head .ins-tag { margin: 26px 0 14px; }
.ins-title { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -1.2px; color: var(--text); margin: 0; }
.ins-title .g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ins-dek { font-size: 20px; color: var(--text-sec); line-height: 1.55; margin-top: 22px; }
.ins-byline { display: flex; gap: 13px; align-items: center; margin-top: 24px; font-size: 14.5px; color: var(--text-muted); }
.ins-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: #C7CCD6; }
.ins-rule { height: 1px; background: var(--border); margin: 32px 0; }

.ins-body p { font-size: 18px; line-height: 1.72; color: var(--text-sec); margin: 22px 0; }
.ins-body h2 { font-size: 26px; font-weight: 700; color: var(--text); margin: 44px 0 4px; letter-spacing: -.4px; }
.ins-body strong { color: var(--text); font-weight: 700; }
.ins-body ol { margin: 22px 0 22px 22px; }
.ins-body ol li { font-size: 18px; line-height: 1.7; color: var(--text-sec); margin: 14px 0; padding-left: 6px; }
.ins-pullquote {
  border-left: 4px solid var(--teal); padding: 6px 0 6px 26px; margin: 38px 0;
  font-weight: 700; font-size: 26px; line-height: 1.32; color: var(--text);
}
.ins-pullquote .g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ins-takeaways { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 30px 32px; margin: 44px 0; }
.ins-takeaways h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: var(--text); margin: 0 0 16px; }
.ins-takeaways ul { list-style: none; margin: 0; padding: 0; }
.ins-takeaways li { font-size: 16.5px; line-height: 1.55; color: var(--text-sec); padding-left: 28px; position: relative; margin: 12px 0; }
.ins-takeaways li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.ins-source { font-size: 14px; color: var(--text-muted); background: #FBFCFE; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 30px 0; line-height: 1.55; }
.ins-source b { color: var(--text-sec); }

/* ---------- GLOSSARY ---------- */
.gl-cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 48px 0 18px; }
.gl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gl-card { display: block; border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; background: var(--white); transition: box-shadow var(--t), transform var(--t) var(--ease), border-color var(--t); }
.gl-card:hover { box-shadow: 0 8px 30px rgba(16,19,28,.08); transform: translateY(-2px); border-color: rgba(30,99,204,0.25); }
.gl-card__term { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.gl-card__abbr { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-left: 7px; }
.gl-card__def { font-size: 15px; color: var(--text-sec); line-height: 1.6; margin-top: 9px; }
.gl-card__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* term page */
.gl-answer { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 12px; padding: 22px 26px; margin: 10px 0; font-size: 19px; line-height: 1.6; color: var(--text); }
.gl-related { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 28px; }
.gl-related h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 14px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gl-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-sec); transition: color var(--t), border-color var(--t); }
.gl-chip:hover { border-color: rgba(30,99,204,0.3); color: var(--blue); }

/* ---------- SEARCH (shared by insights + glossary) ---------- */
.ins-search-wrap { position: relative; flex: 0 0 320px; max-width: 100%; }
.ins-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); pointer-events: none; }
.ins-search { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--border); border-radius: 100px; font-family: inherit; font-size: 14.5px; color: var(--text); background: var(--white); outline: none; transition: border-color var(--t), box-shadow var(--t); }
.ins-search:focus { border-color: rgba(30,99,204,0.45); box-shadow: 0 0 0 3px rgba(30,99,204,0.08); }
.ins-search::placeholder { color: var(--text-muted); }

/* ---------- INSIGHTS LIST (toolbar / card grid / pager) ---------- */
.ins-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 26px; }
.ins-toolbar .ins-filters { margin: 0; }

.ins-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ins-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; background: var(--white); transition: box-shadow var(--t), transform var(--t) var(--ease), border-color var(--t); }
.ins-card:hover { box-shadow: 0 10px 34px rgba(16,19,28,.09); transform: translateY(-2px); border-color: rgba(30,99,204,0.25); }
.ins-card h3 { font-size: 21px; font-weight: 700; line-height: 1.28; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.ins-card__dek { font-size: 15px; color: var(--text-sec); line-height: 1.55; margin: 12px 0 0; }
.ins-card__meta { font-size: 13.5px; color: var(--text-muted); margin-top: 18px; }

.ins-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.ins-pager__nums { display: flex; gap: 8px; }
.ins-pager__btn, .ins-pager__num { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--border); background: var(--white); border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-sec); cursor: pointer; transition: border-color var(--t), color var(--t), background var(--t); }
.ins-pager__num.on { background: var(--text); color: #fff; border-color: var(--text); }
.ins-pager__btn:not(:disabled):hover, .ins-pager__num:not(.on):hover { border-color: rgba(30,99,204,0.35); color: var(--blue); }
.ins-pager__btn:disabled { opacity: .4; cursor: default; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .ins-hero h1 { font-size: 36px; }
  .ins-title { font-size: 32px; }
  .gl-grid { grid-template-columns: 1fr; }
  .ins-cards { grid-template-columns: 1fr; }
  .ins-toolbar { flex-direction: column; align-items: stretch; }
  .ins-search-wrap { flex-basis: auto; }
}
