/* News & Insights styles */

/* v6b mockup: team photo is a full-bleed background BEHIND the News header copy.
   Hero height matches the v4 typography header (no tall photo section). Post pages unchanged. */
.news-hero.phero,
.post-hero.phero{
  min-height:0;
  padding:150px 0 36px;
  align-items:flex-start;
  overflow:visible;
}
.post-hero .phero-bg{display:none!important}
.news-hero.phero{
  overflow:hidden;
  padding:150px 0 40px;
  background:var(--bg);
}
.news-hero .lead{margin-bottom:18px;max-width:none}
.news-hero .crumb,
.news-hero .lead{
  text-shadow:0 1px 14px rgba(6,11,24,.9),0 0 18px rgba(6,11,24,.55);
}
.news-hero .phero-bg{
  display:block;
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
  background:var(--bg);
}
/* Soft glow so the cutout does not sit on flat black. */
.news-hero .phero-bg:before{
  content:"";
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(ellipse at 50% 58%,rgba(30,107,255,.38),rgba(139,92,246,.16) 42%,transparent 68%);
  filter:blur(28px);
  z-index:0;
  pointer-events:none;
}
/* v6d: full-bleed cover of the compact hero, starting just below the 76px nav
   so heads are not hidden behind the menu. Crop feet, keep v6c brightness. */
.news-hero .phero-bg picture{
  position:absolute;
  top:76px;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:calc(100% - 76px);
  display:block;
  z-index:1;
  line-height:0;
}
.news-hero .phero-bg img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:none;
  display:block;
  object-fit:cover;
  object-position:center top;
  -webkit-mask-image:none;
  mask-image:none;
}
/* Darker on the left and top, where the copy sits; still enough veil for the full-width lead and box. */
.news-hero .phero-bg:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(6,11,24,.78) 0,rgba(6,11,24,.5) 76px,rgba(6,11,24,.22) 46%,rgba(6,11,24,.14) 100%),
    linear-gradient(90deg,rgba(6,11,24,.48) 0,rgba(6,11,24,.26) 38%,rgba(6,11,24,.08) 68%,rgba(6,11,24,.04) 100%),
    linear-gradient(0deg,var(--bg) 0%,rgba(6,11,24,.28) 14%,transparent 32%);
}

.path-note{display:block;width:100%;max-width:none;margin-top:28px;padding:14px 18px;border:1px dashed rgba(56,189,248,.35);border-radius:16px;background:rgba(6,11,24,.58);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-sizing:border-box}
.path-note-line{margin:0;color:#c7d4ea;font-size:14.5px;line-height:1.55;white-space:nowrap}
.path-note strong{font:600 11px/1 Inter;letter-spacing:.14em;text-transform:uppercase;color:var(--teal2);margin-right:6px}
.path-note ol{display:flex;flex-wrap:wrap;gap:6px 0;list-style:none;margin:0;padding:0;color:#c7d4ea;font-size:13.5px}
.path-note li{display:inline-flex;align-items:center}
.path-note li:not(:last-child):after{content:"→";margin:0 10px;color:var(--mute);opacity:.7}

.news-main{padding:56px 0 80px}
.filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 36px}
.chip{padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:var(--glass);color:var(--mute);font:600 13px/1.2 Inter;cursor:pointer;transition:.2s}
.chip:hover{border-color:var(--teal2);color:var(--ink)}
.chip[aria-pressed="true"],.chip.is-on{border-color:var(--teal2);color:var(--ink);background:rgba(56,189,248,.12)}

.featured{display:grid;grid-template-columns:1.15fr .85fr;gap:0;padding:0;overflow:hidden;margin-bottom:28px;text-decoration:none;color:inherit}
.featured.no-photo{grid-template-columns:1fr}
.featured:hover{transform:translateY(-4px)}
.featured .feat-body{padding:36px 36px 32px}
.featured .feat-meta,.featured .card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:16px}
.featured h2{font-size:clamp(26px,3vw,36px);margin:0 0 14px;letter-spacing:-.03em}
.featured .excerpt{color:var(--mute);font-size:16.5px;margin:0 0 24px;max-width:54ch}
.featured .feat-photo{min-height:280px;background:radial-gradient(ellipse at 50% 30%,rgba(30,107,255,.4),transparent 62%),radial-gradient(ellipse at 80% 80%,rgba(139,92,246,.28),transparent 55%),var(--bg2);position:relative;overflow:hidden}
.featured .feat-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block;border:0;border-radius:0;box-shadow:none}

.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
a.post-card{display:flex;flex-direction:column;padding:0;color:inherit;text-decoration:none;min-height:100%;overflow:hidden}
a.post-card .card-thumb{aspect-ratio:16/9;background:radial-gradient(ellipse at 50% 30%,rgba(30,107,255,.35),transparent 62%),var(--bg2);overflow:hidden;position:relative}
a.post-card .card-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}
a.post-card .pb{padding:24px 24px 26px;display:flex;flex-direction:column;flex:1}
a.post-card h3{margin:10px 0 8px;font-size:19px}
a.post-card .excerpt{color:var(--mute);font-size:15px;margin:0 0 18px;flex:1}
a.post-card .lk{color:var(--teal2);font-weight:600;font-size:14px;margin-top:auto}
a.post-card .lk:after{content:" →";transition:.2s}
a.post-card:hover .lk:after{padding-left:4px}

.card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.card-date{font-size:13px;color:var(--mute)}

.byline{display:flex;align-items:center;gap:12px}
.byline img,.avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid var(--line);background:linear-gradient(140deg,rgba(30,107,255,.35),rgba(139,92,246,.3));flex-shrink:0}
.byline .who{display:flex;flex-direction:column;gap:2px;min-width:0}
.byline .name{font:600 14px/1.2 Inter;color:var(--ink)}
.byline .role{font-size:12.5px;color:var(--mute)}
.featured .byline{margin-bottom:18px}
.featured .byline img{width:52px;height:52px}

.avatar-fallback{display:grid;place-items:center;font:700 14px/1 Sora;color:#fff}

.empty{grid-column:1/-1;padding:40px 24px;text-align:center;color:var(--mute);border:1px dashed var(--line);border-radius:var(--r)}
.news-pager{display:flex;flex-direction:column;align-items:center;gap:14px;margin:36px 0 8px}
.news-pager[hidden]{display:none}
.news-pager-status{margin:0;color:var(--mute);font-size:14.5px;line-height:1.4}
.news-pager #news-load-more{min-width:180px;justify-content:center}
.news-pager #news-load-more[hidden]{display:none}

/* post page */
.post-hero.phero{min-height:0;padding-bottom:28px;align-items:flex-start}
/* Featured-style header card: same two-column layout as news.html .featured */
.post-hero .post-feature{margin:0;cursor:default;text-decoration:none}
.post-hero .post-feature:hover{transform:none;border-color:var(--line);box-shadow:none}
.post-hero .post-feature h1{font-size:clamp(26px,3vw,36px);font-weight:800;max-width:none;margin:0 0 14px;letter-spacing:-.03em}
.post-hero .post-feature .excerpt{margin-bottom:0}
.post-hero .post-feature .excerpt:empty{display:none}
.post-hero .post-feature .feat-photo .avatar-fallback{position:absolute;inset:0;width:100%;height:100%;display:grid;place-items:center;font:700 72px/1 Sora;color:#fff;border:0;border-radius:0}
body[data-page="post"] .pmain{padding-top:40px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.post-visual{margin:28px 0;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);background:transparent}
.post-visual img{width:100%;height:auto;display:block;object-fit:contain}

.sources{margin:40px 0 0;padding:24px 26px;border-radius:var(--r);border:1px solid var(--line);background:rgba(255,255,255,.03)}
.sources h2{margin:0 0 12px;font-size:18px}
.sources ol{margin:0;padding-left:20px;list-style:decimal}
.sources li{padding:8px 0 8px 6px;border-bottom:1px solid var(--line);color:#cdd8ec;font-size:15px}
.sources li:before{display:none}
.sources li:last-child{border-bottom:0}
.sources a{color:var(--teal2)}

.cta-box .btn{display:flex;justify-content:center;margin-bottom:10px}
.cta-box .phone{display:block;text-align:center;font:700 20px/1.2 Sora;color:var(--ink);padding:8px 0 2px}
.cta-box .email{display:block;text-align:center;color:var(--teal2);font-weight:600;border:0;padding:4px 0 0}
.cta-box p{text-align:center}
/* News-only: .side a in site.css is more specific than .btn-p and was muting
   the "Talk to us / get a quote" label. Keep site-wide buttons unchanged. */
body[data-page="post"] .cta-box a.btn-p,
body[data-page="post"] .cta-box a.btn-p:visited,
body[data-page="post"] .cta-box a.btn-p:hover,
body[data-page="list"] .cta-box a.btn-p,
body[data-page="list"] .cta-box a.btn-p:visited,
body[data-page="list"] .cta-box a.btn-p:hover{
  color:#fff;
}


.more-posts a{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}
.more-posts a:last-child{border:0}
.more-posts .mt{font:600 14px/1.35 Inter;color:var(--ink);display:block}
.more-posts .ms{font-size:12.5px;color:var(--mute)}

@media(max-width:1020px){
  .featured,.post-feature{grid-template-columns:1fr}
  .featured .feat-photo,.post-feature .feat-photo{min-height:240px;aspect-ratio:16/9;order:-1}
  .featured.no-photo .feat-photo{display:none}
  .posts{grid-template-columns:1fr 1fr}
}
@media(max-width:1020px){
  .path-note-line{white-space:normal}
}
@media(max-width:620px){
  .news-hero.phero{padding:120px 0 32px}
  .post-hero.phero{padding:120px 0 28px}
  .news-hero .phero-bg img{
    object-position:center top;
  }
  .news-hero .phero-bg:after{
    background:
      linear-gradient(180deg,rgba(6,11,24,.8) 0,rgba(6,11,24,.58) 88px,rgba(6,11,24,.38) 48%,rgba(6,11,24,.24) 100%),
      linear-gradient(90deg,rgba(6,11,24,.4) 0,rgba(6,11,24,.22) 55%,rgba(6,11,24,.1) 100%),
      linear-gradient(0deg,var(--bg) 0%,rgba(6,11,24,.3) 16%,transparent 34%);
  }
  .posts{grid-template-columns:1fr}
  .featured .feat-body,.post-feature .feat-body{padding:24px 20px 22px}
  .path-note{padding:12px 14px}
  .path-note ol{flex-direction:column;gap:4px}
  .path-note li:not(:last-child):after{content:"";margin:0}
}

.featured .lk,.post-card .lk{color:var(--teal2);font-weight:600;font-size:14px}
.featured .lk:after,.post-card .lk:after{content:" →";transition:.2s}
.featured:hover .lk:after,a.post-card:hover .lk:after{padding-left:4px}
.nc .ph{white-space:nowrap}

body[data-post-missing] #post-tag:empty,
body[data-post-missing] #post-date:empty,
body[data-post-missing] #post-byline:empty,
body[data-post-missing] #post-hero-photo:empty{display:none}
body[data-post-missing] .post-feature{grid-template-columns:1fr}

/* Footer love line and North American Team mark — rules copied from
   assets/css/index-page.css (live homepage) so news/post footers match
   without adding inline styles. */
.copy .flag{vertical-align:-1px;margin-right:6px;border-radius:1px}
.copy .love{display:inline-block;margin-top:6px}
.copy .addr{text-align:right}

/* v1.3.65: More posts sidebar as mini cards (small image, author chip, title) + View all button. */
.more-posts .mini-list{display:grid;gap:12px}
.more-posts a.mini-card{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:rgba(255,255,255,.03);color:inherit;text-decoration:none;transition:border-color .2s,transform .2s}
.more-posts a.mini-card:last-child{border:1px solid var(--line)}
.more-posts a.mini-card:hover{border-color:rgba(56,189,248,.5);transform:translateY(-2px)}
.more-posts .mini-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,rgba(30,107,255,.35),transparent 62%),var(--bg2)}
.more-posts .mini-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}
.more-posts .mini-body{display:flex;flex-direction:column;gap:8px;padding:12px 14px 14px}
.more-posts .mini-by{display:flex;align-items:center;gap:8px;min-width:0}
.more-posts .mini-by img,.more-posts .mini-by .avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;border:1px solid var(--line);flex-shrink:0;font-size:11px;display:grid;place-items:center}
.more-posts .mini-by .who{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.more-posts .mini-by .name{font:600 12.5px/1.2 Inter;color:var(--ink)}
.more-posts .mini-by .role{font-size:11.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.more-posts .mini-card .mt{font:600 14px/1.35 Inter;color:var(--ink);display:block}
.more-posts .more-all{display:flex;justify-content:center;width:100%;margin:14px 0 0;box-sizing:border-box}
/* v1.3.67: "Back to News & Insights" - solid brand blue (#1E6BFF, white text 4.6:1); hover/focus darker (#1557D6, 6.2:1). */
.more-posts .more-all.more-back{background:#1E6BFF;background:var(--blue,#1E6BFF);color:#fff;border-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;font-weight:600}
.more-posts .more-all.more-back:hover,.more-posts .more-all.more-back:focus-visible{background:#1557D6;color:#fff;border-color:transparent;box-shadow:0 8px 24px -10px rgba(30,107,255,.75)}
.more-posts .more-all.more-back:focus-visible{outline:2px solid #38BDF8;outline-offset:3px}
.more-posts .more-all.more-back:active{background:#0F47B8}
@media(max-width:1020px) and (min-width:560px){.more-posts .mini-list{grid-template-columns:1fr 1fr}}
