/* V7 insights hub (/blog/) — live-theme fixes and WP-only additions on top of pg-insights.css (prototype block 24, verbatim).
   Page 1 is the design as is (featured, one list of 18 rows, chip buttons filtering it, "Browse the full archive" link).
   WP-only: pages 2+ are the paginated archive (old /blog/page/N/ URLs), the newsletter is the site's Beehiiv form. */

/* theme leaks: main.css/bootstrap margins, link colours and underlines */
#site #p-insights h1,#site #p-insights h2,#site #p-insights h3,#site #p-insights p,#site #p-insights ul,#site #p-insights ol{margin-bottom:0}
#site #p-insights .ins-hero .sg-h1{margin-top:0}
#site #p-insights a.ins-a,#site #p-insights a.ins-a:hover,#site #p-insights a.ins-a:focus{color:var(--ink);text-decoration:none}
#site #p-insights .ins-ft h2 a:hover,#site #p-insights .ins-ft h2 a:focus{text-decoration:none}
#site #p-insights .ins-feat:hover h2 a{color:var(--heat)}
#site #p-insights small{font-size:12px}
/* main.css a:hover drops the underline and turns links orange: keep the design's sg-link */
#site #p-insights a.sg-link,#site #p-insights a.sg-link:hover,#site #p-insights a.sg-link:focus{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
#site #p-insights a.sg-link{text-decoration-color:#B9B9BE}
#site #p-insights a.sg-link:hover{text-decoration-color:var(--orange)}
/* bootstrap button resets */
#site #p-insights .ins-chip{margin:0;text-transform:none;letter-spacing:normal}

/* author photos are black and white, as the design and the article author box */
#p-insights .ins-au img{filter:grayscale(1)}

/* featured: real titles run longer than the prototype's; real excerpts too */
#p-insights .ins-ft h2{overflow-wrap:break-word}
#p-insights .ins-ex{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
#p-insights .ia-tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* page number under the lede on /blog/page/N/ */
#p-insights .ins-pnum{margin:14px 0 0;font:500 12px/1 var(--m);letter-spacing:.1em;text-transform:uppercase;color:var(--label)}

/* empty page (past the last page) */
#p-insights .ins-empty{margin:clamp(24px,2.6cqi,36px) 0 0;padding:28px 0;border-block:1px solid var(--line);font:400 17px/1.5 var(--f);color:var(--ink-2)}
#p-insights .ins-empty .sg-link{margin-left:8px}

/* pagination on /blog/page/N/ (page 1 has the design's "Browse the full archive" link instead) */
#p-insights .ins-pg{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#site #p-insights .ins-pg a{text-decoration:none}
#p-insights .ins-pg__n,#p-insights .ins-pg__a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;
  border:1px solid var(--line);border-radius:var(--r-ctl,2px);font:500 14px/1 var(--f);color:var(--ink);background:var(--bg);
  font-variant-numeric:tabular-nums;transition:border-color .2s ease,color .2s ease,background-color .2s ease}
#site #p-insights a.ins-pg__n:hover,#site #p-insights a.ins-pg__a:hover,#site #p-insights a.ins-pg__n:focus-visible,#site #p-insights a.ins-pg__a:focus-visible{border-color:var(--orange);color:var(--ink)}
#p-insights .ins-pg__n.is-cur{background:var(--ink);border-color:var(--ink);color:var(--bg)}
#p-insights .ins-pg__a{font:500 12px/1 var(--m);letter-spacing:.1em;text-transform:uppercase}
#p-insights .ins-pg__gap{padding:0 4px;color:var(--mute)}
@container site (max-width: 600px){
  #p-insights div.ins-more{flex-direction:column}
  #p-insights .ins-pg{justify-content:center}
  #p-insights .ins-pg__n,#p-insights .ins-pg__a{min-width:44px;height:44px}
}

/* newsletter = the site's Beehiiv form (its handler writes into .quickForm-alert) */
#p-insights .ins-form button{margin:0}
#p-insights .ins-form .quickForm-alert{flex-basis:100%;font:400 14px/1.4 var(--f);color:var(--mute)}
#p-insights .ins-form .quickForm-alert:empty{display:none}
