
/* TradesFolks Insights — editorial 1+4 layout v2 */
.tf-insights-editorial{padding:52px 0;background:#f5f8fb;overflow:hidden}
.tf-insights-editorial *{box-sizing:border-box}
.tf-insights-editorial .tf-insights-shell{width:min(100%,1480px);margin:0 auto;padding-inline:34px}
.tf-insights-editorial .tf-insights-head{
  display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.72fr);
  gap:64px;align-items:end;margin-bottom:26px
}
.tf-insights-editorial .tf-insights-kicker{
  display:flex;align-items:center;gap:10px;color:#1263c7;font-size:11px;font-weight:850;
  letter-spacing:.13em;text-transform:uppercase
}
.tf-insights-editorial .tf-insights-kicker::before{content:"";width:28px;height:3px;border-radius:4px;background:#f7b916}
.tf-insights-editorial h2{margin:8px 0 7px;color:#082653;font-size:clamp(32px,3vw,48px);line-height:1.02;letter-spacing:-.04em}
.tf-insights-editorial .tf-insights-heading>p,
.tf-insights-editorial .tf-insights-intro>p{margin:0;color:#718197;font-size:14px;line-height:1.55}
.tf-insights-editorial .tf-insights-intro{display:grid;gap:14px;justify-items:start}
.tf-insights-editorial .tf-insights-all{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid #d7e2ec;
  border-radius:999px;background:#fff;color:#082653;text-decoration:none;font-size:13px;font-weight:850;
  box-shadow:0 7px 18px rgba(8,38,83,.05)
}
.tf-editorial-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:18px;align-items:stretch}
.tf-editorial-featured,.tf-editorial-compact{
  background:#fff;border:1px solid #dfe7ef;border-radius:20px;overflow:hidden;
  box-shadow:0 10px 28px rgba(8,38,83,.06)
}
.tf-editorial-featured{display:flex;flex-direction:column;min-width:0}
.tf-editorial-media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#edf3f8}
.tf-editorial-media img,.tf-editorial-compact-media img{display:block;width:100%;height:100%;object-fit:cover}
.tf-editorial-featured-badge{
  position:absolute;left:16px;top:16px;padding:7px 11px;border-radius:999px;background:#f7b916;color:#082653;
  font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase
}
.tf-editorial-featured-copy{display:flex;flex:1;flex-direction:column;padding:20px 22px 21px}
.tf-editorial-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7a899d;font-size:10.5px;font-weight:750}
.tf-editorial-meta strong{color:#1263c7}
.tf-editorial-featured h3{margin:10px 0 9px;font-size:clamp(22px,2vw,30px);line-height:1.16;letter-spacing:-.025em}
.tf-editorial-featured h3 a,.tf-editorial-compact h3 a{color:#082653;text-decoration:none}
.tf-editorial-featured-copy>p{
  margin:0;color:#718197;font-size:13.5px;line-height:1.62;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden
}
.tf-editorial-featured-foot{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:auto;padding-top:18px}
.tf-editorial-read-primary{
  display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 16px;border-radius:999px;
  background:#f7b916;color:#082653;text-decoration:none;font-size:12px;font-weight:900
}
.tf-editorial-topic{padding:6px 10px;border-radius:999px;background:#fff4cf;color:#725400;font-size:10px;font-weight:800}
.tf-editorial-latest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.tf-editorial-compact{display:flex;flex-direction:column;min-width:0}
.tf-editorial-compact-media{display:block;aspect-ratio:16/8.4;overflow:hidden;background:#edf3f8}
.tf-editorial-compact-copy{display:flex;flex:1;flex-direction:column;padding:14px 15px 15px}
.tf-editorial-compact h3{
  margin:8px 0 11px;font-size:clamp(15px,1.22vw,18px);line-height:1.28;letter-spacing:-.015em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
.tf-editorial-read-link{margin-top:auto;color:#1263c7;text-decoration:none;font-size:11.5px;font-weight:850}
.tf-insights-empty{padding:28px;border:1px dashed #ccd9e5;border-radius:18px;background:#fff;color:#718197}
.tf-insights-editorial a:focus-visible{outline:3px solid rgba(18,99,199,.24);outline-offset:3px}

@media(hover:hover) and (pointer:fine){
 .tf-editorial-featured,.tf-editorial-compact{transition:transform .18s ease,box-shadow .18s ease}
 .tf-editorial-featured:hover,.tf-editorial-compact:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(8,38,83,.1)}
 .tf-editorial-media img,.tf-editorial-compact-media img{transition:transform .3s ease}
 .tf-editorial-featured:hover img,.tf-editorial-compact:hover img{transform:scale(1.02)}
}
@media(max-width:1050px){
 .tf-insights-editorial .tf-insights-shell{padding-inline:26px}
 .tf-insights-editorial .tf-insights-head{grid-template-columns:1fr;gap:14px}
 .tf-insights-editorial .tf-insights-intro{grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .tf-editorial-grid{grid-template-columns:1fr}
 .tf-editorial-featured{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
 .tf-editorial-media{aspect-ratio:auto;min-height:100%}
}
@media(max-width:700px){
 .tf-insights-editorial{padding:32px 0}
 .tf-insights-editorial .tf-insights-shell{padding-inline:16px}
 .tf-insights-editorial .tf-insights-head{margin-bottom:17px}
 .tf-insights-editorial h2{font-size:clamp(28px,8vw,36px)}
 .tf-insights-editorial .tf-insights-heading>p{font-size:13px}
 .tf-insights-editorial .tf-insights-intro{display:block}
 .tf-insights-editorial .tf-insights-intro>p{display:none}
 .tf-insights-editorial .tf-insights-all{margin-top:3px;min-height:40px;padding:8px 14px}
 .tf-editorial-grid{gap:12px}
 .tf-editorial-featured{display:block;border-radius:17px}
 .tf-editorial-media{aspect-ratio:16/9;min-height:0}
 .tf-editorial-featured-copy{padding:15px 16px 16px}
 .tf-editorial-featured h3{font-size:20px;margin:8px 0 7px}
 .tf-editorial-featured-copy>p{-webkit-line-clamp:3;font-size:12.5px;line-height:1.55}
 .tf-editorial-featured-foot{padding-top:13px}
 .tf-editorial-latest{display:grid;grid-template-columns:1fr;gap:9px}
 .tf-editorial-compact{display:grid;grid-template-columns:104px minmax(0,1fr);border-radius:15px}
 .tf-editorial-compact-media{height:100%;min-height:104px;aspect-ratio:auto}
 .tf-editorial-compact-copy{padding:11px 12px}
 .tf-editorial-compact .tf-editorial-meta{justify-content:flex-start;gap:9px;font-size:9.5px}
 .tf-editorial-compact h3{font-size:13px;line-height:1.27;margin:6px 0 7px;-webkit-line-clamp:3}
 .tf-editorial-read-link{font-size:10.5px}
}
@media(max-width:390px){
 .tf-insights-editorial .tf-insights-shell{padding-inline:14px}
 .tf-editorial-featured-foot{align-items:flex-start;flex-direction:column}
 .tf-editorial-compact{grid-template-columns:92px minmax(0,1fr)}
 .tf-editorial-compact-media{min-height:96px}
}
@media(prefers-reduced-motion:reduce){
 .tf-editorial-featured,.tf-editorial-compact,.tf-editorial-media img,.tf-editorial-compact-media img{transition:none!important}
}


/* v2.2 compact density — same 1+4 editorial layout */
.tf-insights-editorial{padding:36px 0}
.tf-insights-editorial .tf-insights-head{gap:44px;margin-bottom:18px}
.tf-insights-editorial h2{font-size:clamp(30px,2.65vw,43px);margin:6px 0 5px}
.tf-insights-editorial .tf-insights-heading>p,
.tf-insights-editorial .tf-insights-intro>p{font-size:13px;line-height:1.45}
.tf-insights-editorial .tf-insights-intro{gap:10px}
.tf-insights-editorial .tf-insights-all{min-height:40px;padding:8px 15px}
.tf-editorial-grid{gap:14px}
.tf-editorial-media{aspect-ratio:16/7.2}
.tf-editorial-featured-copy{padding:15px 18px 16px}
.tf-editorial-featured h3{margin:7px 0 6px;font-size:clamp(20px,1.75vw,26px)}
.tf-editorial-featured-copy>p{font-size:12.5px;line-height:1.5;-webkit-line-clamp:2}
.tf-editorial-featured-foot{padding-top:12px}
.tf-editorial-read-primary{min-height:38px;padding:7px 14px}
.tf-editorial-latest{gap:11px}
.tf-editorial-compact-media{aspect-ratio:16/7}
.tf-editorial-compact-copy{padding:11px 13px 12px}
.tf-editorial-compact h3{margin:6px 0 8px;font-size:clamp(14px,1.05vw,16px);line-height:1.23}
.tf-editorial-read-link{font-size:11px}
.tf-editorial-meta{font-size:10px}

@media(max-width:1050px){
 .tf-insights-editorial{padding:32px 0}
 .tf-insights-editorial .tf-insights-head{gap:10px;margin-bottom:15px}
 .tf-editorial-featured-copy{padding:14px 16px}
}
@media(max-width:700px){
 .tf-insights-editorial{padding:24px 0}
 .tf-insights-editorial .tf-insights-head{margin-bottom:13px}
 .tf-insights-editorial h2{font-size:clamp(26px,7.5vw,32px)}
 .tf-editorial-grid{gap:9px}
 .tf-editorial-media{aspect-ratio:16/8}
 .tf-editorial-featured-copy{padding:12px 14px 13px}
 .tf-editorial-featured h3{font-size:18px;margin:6px 0 5px}
 .tf-editorial-featured-copy>p{font-size:12px;-webkit-line-clamp:2}
 .tf-editorial-featured-foot{padding-top:9px}
 .tf-editorial-read-primary{min-height:36px;padding:7px 12px}
 .tf-editorial-latest{gap:7px}
 .tf-editorial-compact{grid-template-columns:88px minmax(0,1fr)}
 .tf-editorial-compact-media{min-height:86px}
 .tf-editorial-compact-copy{padding:9px 10px}
 .tf-editorial-compact h3{font-size:12.5px;margin:4px 0 5px;-webkit-line-clamp:2}
}

/* v2.3 — proportional editorial image fit; no visual stretching */
.tf-insights-editorial .tf-editorial-media{
  aspect-ratio:16/8.6!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#edf3f8;
}
.tf-insights-editorial .tf-editorial-compact-media{
  aspect-ratio:16/8.6!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#edf3f8;
}
.tf-insights-editorial .tf-editorial-media img,
.tf-insights-editorial .tf-editorial-compact-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none;
}
@media(max-width:1050px) and (min-width:701px){
  .tf-insights-editorial .tf-editorial-featured{
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  }
  .tf-insights-editorial .tf-editorial-media{
    aspect-ratio:auto!important;
    height:100%!important;
    min-height:280px!important;
  }
}
@media(max-width:700px){
  .tf-insights-editorial .tf-editorial-media{
    aspect-ratio:16/9!important;
    height:auto!important;
  }
  .tf-insights-editorial .tf-editorial-compact-media{
    aspect-ratio:auto!important;
    width:88px!important;
    height:100%!important;
    min-height:86px!important;
  }
  .tf-insights-editorial .tf-editorial-compact-media img{
    object-fit:cover!important;
    object-position:center!important;
  }
}
@media(max-width:390px){
  .tf-insights-editorial .tf-editorial-compact-media{
    width:100%!important;
  }
}
