/* The News page (blog.html), "Blend" (settled 2026-11-26 from the news design switch: Lifted's
   compact layout and raised charcoal panels on a near-black ground with a faint cool cast, grey
   dots behind the masthead, no underline on the title). Scoped to html.page-news, set on blog.html's
   <html>, so none of it reaches another page. Loaded after site.css.
   The Contact page (html.page-contact) shares the ground, the masthead dots and the side rails
   (settled 2026-12-01 from the contact design switch); the rest stays News-only. */
/* keep everything within the viewport width */
:is(html.page-news,html.page-contact) .news-page{overflow-x:clip}

:is(html.page-news body:has(.news),html.page-contact body){
  /* near-black, with only a faint cool cast */
  background-color:#07080A;
  background-image:
    radial-gradient(72vw 420px at 50% 0%,rgba(30,40,52,.30),rgba(18,24,32,.10) 55%,rgba(7,8,10,0) 100%),
    radial-gradient(42vw 440px at 88% 42%,rgba(90,80,140,.05),transparent 70%),
    radial-gradient(44vw 460px at 14% 68%,rgba(40,110,120,.04),transparent 70%);
  background-size:100% 100%;
  background-repeat:no-repeat;
}

/* faint grey dots and a soft wash behind the masthead, fading out to the right and down */
:is(html.page-news,html.page-contact) .pagehead--compact::before{
  content:"";position:absolute;inset:0 0 -290px;pointer-events:none;z-index:-1;
  background:
    radial-gradient(circle,rgba(190,196,204,.12) 1px,transparent 1.5px) 0 0 / 24px 24px,
    linear-gradient(180deg,rgba(24,28,34,.36) 0%,rgba(14,16,20,.14) 76%,transparent 100%);
  -webkit-mask-image:linear-gradient(112deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.4) 45%,rgba(0,0,0,.1) 100%);
          mask-image:linear-gradient(112deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.4) 45%,rgba(0,0,0,.1) 100%);
}

html.page-news .pagehead--compact{
  padding-top:calc(var(--navh,77px) + clamp(1.15rem,2vw,1.65rem));
  padding-bottom:clamp(.75rem,1.3vw,1rem);
}
html.page-news .pagehead--compact h1{
  display:inline-block;position:relative;z-index:1;
  font-size:clamp(2rem,3.3vw,2.8rem);line-height:1.04;
  padding-bottom:0;
}
html.page-news .pagehead--compact + .section{
  padding-top:clamp(.45rem,.9vw,.75rem);
}

/* Compact Lifted lead story in neutral near-black charcoal, raised via border, top rim & shadow */
html.page-news .news-feature{
  grid-template-columns:minmax(0,.64fr) minmax(0,1.36fr);
  border-radius:16px;
  background:linear-gradient(180deg,#131519 0%,#0C0E11 100%);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.17),
    0 24px 50px -22px rgba(0,0,0,.92),
    0 4px 16px -4px rgba(0,0,0,.55);
}
html.page-news .news-feature__media{
  aspect-ratio:auto;min-height:255px;
  border-right:1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(62% 58% at 50% 46%,rgba(6,150,161,.14),rgba(6,150,161,0) 72%),
    radial-gradient(42% 42% at 78% 82%,rgba(124,92,255,.1),transparent 72%),
    linear-gradient(160deg,#12151A 0%,#080A0D 74%);
}
html.page-news .news-feature__media img{
  inset:5%;width:90%;height:90%;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.52));
}
html.page-news .news-feature__caption{
  left:1rem;bottom:.75rem;font-size:.58rem;color:rgba(224,230,237,.62);
}
html.page-news .news-feature__body{
  padding:clamp(1.15rem,1.95vw,1.65rem) clamp(1.35rem,2.5vw,2.25rem);
}
html.page-news .news-feature__title{
  font-size:clamp(1.4rem,2.1vw,1.9rem);line-height:1.1;
  margin:.7rem 0 .55rem;max-width:30ch;color:#F3F6FA;
}
html.page-news .news-feature__body p{
  font-size:.9rem;line-height:1.54;color:#B4BEC8;max-width:68ch;
}
html.page-news .news-feature__actions{
  margin-top:1rem;gap:.65rem;
}
html.page-news .news-feature__actions .btn{
  padding:.62rem 1.08rem;font-size:.84rem;
}
html.page-news .news-feature__actions .btn:not(.btn--ghost){
  box-shadow:0 8px 18px -10px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,255,255,.18);
}
html.page-news .news-feature__actions .btn--ghost{
  background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.22);
}

/* Lifted "Earlier news" label, crisp without glow */
html.page-news .news-section-head{
  margin:clamp(1.4rem,2.2vw,1.85rem) 0 clamp(.85rem,1.35vw,1.1rem);
  color:#AEB8C4;gap:.85rem;
}
html.page-news .news-section-head::before{
  content:"";width:18px;height:2px;border-radius:2px;background:var(--teal-br);flex:none;
}
html.page-news .news-section-head::after{
  background:linear-gradient(90deg,rgba(79,227,235,.26),rgba(255,255,255,.11) 35%,transparent 100%);
}

/* Neutral charcoal raised cards + inset cream plates, matching the lead panel */
html.page-news .news-grid{gap:clamp(1.1rem,2vw,1.5rem)}
html.page-news .news-card{
  background:linear-gradient(180deg,#131519 0%,#0C0E11 100%);
  border:1px solid rgba(255,255,255,.13);
  border-radius:15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.17),
    0 20px 42px -20px rgba(0,0,0,.92),
    0 3px 10px -2px rgba(0,0,0,.5);
  transition:border-color .35s var(--ease),transform .45s var(--ease),box-shadow .45s var(--ease),background .35s var(--ease);
}
html.page-news .news-card__media{
  margin:10px 10px 0;border-radius:9px;aspect-ratio:16/8.4;
  background:#F2F0E0;
  box-shadow:inset 0 0 0 1px rgba(8,12,18,.1),0 4px 12px -6px rgba(0,0,0,.55);
}
html.page-news .news-card__body{
  padding:1.05rem 1.25rem 1.3rem;
}
html.page-news .news-meta{
  color:#B6C0CA;font-size:.66rem;
}
html.page-news .news-card .news-meta{
  justify-content:space-between;width:100%;
}
/* category chips kept quiet: a hairline in the category colour, barely tinted, a softened label
   and a plain dot (no glow) */
html.page-news .news-tag{
  border-color:color-mix(in srgb,var(--tag) 30%,transparent);
  background:color-mix(in srgb,var(--tag) 5%,transparent);
  color:color-mix(in srgb,var(--tag) 78%,#C9D1D9);
  padding:.32rem .68rem .32rem .58rem;
}
html.page-news .news-tag::before{box-shadow:none;width:5px;height:5px}
html.page-news .news-card__title{
  font-size:clamp(1.18rem,1.52vw,1.36rem);line-height:1.22;
  color:#F2F5F8;margin:.82rem 0 .52rem;
}
html.page-news .news-card__body p{
  font-size:.88rem;line-height:1.55;color:#ADB7C2;
}
html.page-news .news-card .card__more{
  padding-top:1.05rem;font-weight:500;color:var(--teal-br);
}
@media(hover:hover){
  html.page-news .news-card:hover{
    transform:translateY(-6px);
    background:linear-gradient(180deg,#191C21 0%,#101216 100%);
    border-color:rgba(79,227,235,.42);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.26),
      0 28px 54px -18px rgba(0,0,0,.95),
      0 0 26px -14px rgba(79,227,235,.22);
  }
  html.page-news .news-card:hover .news-card__title{color:#fff}
  html.page-news .news-card:hover .card__more svg{transform:translateX(4px)}
}

/* CTA panel harmony in matching neutral charcoal */
html.page-news .cta{
  background:linear-gradient(180deg,#121418 0%,#0B0D10 100%);
  border-color:rgba(79,227,235,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 22px 48px -22px rgba(0,0,0,.9);
}

/* narrower screens */
@media(max-width:860px){
  html.page-news .news-feature{grid-template-columns:1fr}
  html.page-news .news-feature__media{
    aspect-ratio:2/1;min-height:0;border-right:0;border-bottom:1px solid rgba(255,255,255,.09);
  }
}
@media(max-width:720px){
  html.page-news .pagehead--compact{
    padding-top:calc(var(--navh,77px) + .9rem);padding-bottom:.6rem;
  }
  html.page-news .pagehead--compact h1{
    font-size:clamp(1.85rem,7.2vw,2.25rem);padding-bottom:0;
  }
  html.page-news .pagehead--compact + .section{padding-top:.5rem}
  html.page-news .news-feature__media{aspect-ratio:2.2/1}
  html.page-news .news-feature__caption{left:.85rem;bottom:.55rem;font-size:.54rem}
  html.page-news .news-feature__body{padding:.95rem 1.05rem 1.05rem}
  html.page-news .news-feature .news-meta{font-size:.59rem;gap:.4rem .6rem;flex-wrap:nowrap}
  html.page-news .news-feature .news-tag{padding:.26rem .56rem .26rem .5rem}
  html.page-news .news-feature__title{font-size:1.3rem;margin:.55rem 0 .42rem}
  html.page-news .news-feature__body p{font-size:.84rem;line-height:1.49}
  html.page-news .news-feature__actions{margin-top:.85rem;gap:.5rem}
  html.page-news .news-feature__actions .btn{padding:.52rem .88rem;font-size:.79rem}
  html.page-news .news-section-head{margin:1.3rem 0 .8rem}
  html.page-news .news-card__media{aspect-ratio:16/8.2}
  html.page-news .news-card__body{padding:1rem 1.05rem 1.15rem}
}
