/* NOSTALGEEK magazine cards V1 — scoped responsive editorial contract.
   Loaded last on the staging Magazine and Actualités pages.
   The entire image is shown in a consistent 16:9 media frame with a softened same-image backdrop.
   Article-body figures, hardware catalogue imagery and homepage remain untouched. */
:root { --ng-card-red:#b5273a; --ng-card-ink:#242932; --ng-card-muted:#66707c; --ng-card-cream:#fffaf4; --ng-card-line:#e8dfd9; }

#news.retro-magazine,
body.magazine-page { color:var(--ng-card-ink)!important; }
#news.retro-magazine :is(.retro-magazine-intro h1,.editorial-list-heading h2,.editorial-flow-title),
body.magazine-page :is(.seo-section-head h1,.editorial-list-heading h2,.editorial-flow-title) {
  color:var(--ng-card-ink)!important; opacity:1!important; text-shadow:none!important;
}
#news.retro-magazine .editorial-flow-title,
body.magazine-page .editorial-flow-title {
  display:flex!important; justify-content:space-between!important; align-items:baseline!important;
  gap:12px!important; margin:28px 0 14px!important; padding:0 0 9px!important;
  border-bottom:2px solid var(--ng-card-red)!important; background:transparent!important;
}
#news.retro-magazine .editorial-flow-title span,
body.magazine-page .editorial-flow-title span { color:var(--ng-card-ink)!important; font-size:clamp(18px,2vw,24px)!important; }
#news.retro-magazine .editorial-list-heading h2,
body.magazine-page .editorial-list-heading h2 { color:var(--ng-card-ink)!important; font-size:clamp(21px,2.2vw,30px)!important; }

#news.retro-magazine #newsGrid :is(.editorial-feature-grid,.editorial-latest-grid),
body.magazine-page :is(.editorial-feature-grid,.editorial-latest-grid) {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:auto!important; gap:18px!important; align-items:stretch!important;
  width:100%!important; min-width:0!important;
}
#news.retro-magazine #newsGrid .editorial-feature-grid>.editorial-story--lead,
body.magazine-page .editorial-feature-grid>.editorial-story--lead {
  grid-column:1/-1!important;
}

#news.retro-magazine #newsGrid .editorial-story,
body.magazine-page .editorial-story {
  box-sizing:border-box!important; display:flex!important; flex-direction:column!important;
  align-items:stretch!important; gap:0!important;
  grid-column:auto; grid-row:auto!important;
  width:100%!important; max-width:100%!important; min-width:0!important;
  height:auto!important; min-height:0!important; max-height:none!important;
  padding:0!important; margin:0!important; overflow:hidden!important;
  border:1px solid var(--ng-card-line)!important; border-radius:13px!important;
  background:var(--ng-card-cream)!important; color:var(--ng-card-ink)!important;
  box-shadow:0 5px 17px rgba(45,39,48,.055)!important;
}
#news.retro-magazine #newsGrid .editorial-story--without-media,
body.magazine-page .editorial-story--without-media { border-left:4px solid var(--ng-card-red)!important; }

#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link,
body.magazine-page .editorial-story>.editorial-cover-link {
  box-sizing:border-box!important; display:block!important; flex:none!important;
  position:relative!important; inset:auto!important;
  grid-column:auto!important; grid-row:auto!important; align-self:stretch!important;
  width:100%!important; height:auto!important; min-width:0!important;
  min-height:0!important; max-width:none!important; max-height:none!important;
  aspect-ratio:16/9!important; margin:0!important; padding:0!important;
  border:0!important; border-radius:0!important; overflow:hidden!important;
  background:#eae5e0!important; isolation:isolate!important;
}
#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link .news-visual,
body.magazine-page .editorial-story>.editorial-cover-link .news-visual {
  position:absolute!important; inset:0!important; display:block!important;
  width:100%!important; height:100%!important; min-height:0!important;
  max-height:none!important; aspect-ratio:auto!important;
  margin:0!important; padding:0!important; overflow:hidden!important;
  background:transparent!important;
}
#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link .news-placeholder,
body.magazine-page .editorial-story>.editorial-cover-link .news-placeholder {display:none!important;}
#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link img.news-image-backdrop,
body.magazine-page .editorial-story>.editorial-cover-link img.news-image-backdrop {
 display:block!important;position:absolute!important;inset:-12%!important;z-index:0!important;
 width:124%!important;height:124%!important;min-width:0!important;min-height:0!important;
 max-width:none!important;max-height:none!important;object-fit:cover!important;
 object-position:center!important;filter:blur(16px) brightness(.70) saturate(.85)!important;
 opacity:.85!important;pointer-events:none!important;transform:none!important;
}
#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link :is(img.news-image-main,img:not(.news-image-backdrop)),
body.magazine-page .editorial-story>.editorial-cover-link :is(img.news-image-main,img:not(.news-image-backdrop)) {
  display:block!important; position:absolute!important; inset:0!important; z-index:1!important;
  width:100%!important; height:100%!important; min-width:0!important; min-height:0!important;
  max-width:100%!important; max-height:100%!important;
  aspect-ratio:auto!important; object-fit:contain!important; object-position:center!important;
  padding:0!important; margin:0!important; border:0!important; border-radius:0!important;
  transform:none!important; filter:none!important; opacity:1!important; background:transparent!important;
}
#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link .news-image-credit,
body.magazine-page .editorial-story>.editorial-cover-link .news-image-credit {
  position:absolute!important; right:6px!important; bottom:5px!important; left:auto!important;
  z-index:2!important; max-width:90%!important; font-size:9px!important;
}

#news.retro-magazine #newsGrid .editorial-story>.editorial-story-copy,
body.magazine-page .editorial-story>.editorial-story-copy {
  box-sizing:border-box!important; position:relative!important; inset:auto!important;
  display:flex!important; flex:1 1 auto!important; flex-direction:column!important;
  align-items:flex-start!important; justify-content:flex-start!important;
  width:100%!important; max-width:100%!important; min-width:0!important;
  height:auto!important; min-height:0!important; max-height:none!important;
  gap:8px!important; padding:16px 18px 18px!important; margin:0!important;
  border:0!important; background:transparent!important; box-shadow:none!important;
  overflow:visible!important; text-align:left!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy :is(h3,h3 a),
body.magazine-page .editorial-story-copy :is(h3,h3 a) {
  color:var(--ng-card-ink)!important; overflow:visible!important; max-height:none!important;
  text-overflow:clip!important; white-space:normal!important; -webkit-line-clamp:unset!important;
  word-break:normal!important; overflow-wrap:break-word!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy h3,
body.magazine-page .editorial-story-copy h3 {
  font-size:clamp(18px,1.55vw,22px)!important; font-weight:800!important;
  letter-spacing:-.02em!important; line-height:1.23!important; margin:0!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy>.editorial-teaser,
body.magazine-page .editorial-story-copy>.editorial-teaser {
  display:-webkit-box!important; -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important; line-clamp:2!important;
  overflow:hidden!important; max-height:none!important;
  color:var(--ng-card-muted)!important; font-size:13px!important; line-height:1.45!important;
  margin:0!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy>.editorial-publication,
body.magazine-page .editorial-story-copy>.editorial-publication {
  display:flex!important; flex-wrap:wrap!important; gap:3px 9px!important;
  color:var(--ng-card-muted)!important; font-size:11px!important; line-height:1.35!important;
  margin:0!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy>.editorial-source-line,
body.magazine-page .editorial-story-copy>.editorial-source-line { display:none!important; }
#news.retro-magazine #newsGrid .editorial-story-copy .editorial-heading-meta,
body.magazine-page .editorial-story-copy .editorial-heading-meta {
  display:flex!important; flex-wrap:wrap!important; align-items:center!important;
  gap:7px!important; margin:0!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy .kicker,
body.magazine-page .editorial-story-copy .kicker {
  display:inline-flex!important; padding:4px 9px!important;
  border-radius:7px!important; color:var(--ng-card-red)!important;
  background:#f8e7e5!important; border:0!important; font-weight:800!important;
  font-size:11px!important; letter-spacing:.04em!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy>.editorial-read-link,
body.magazine-page .editorial-story-copy>.editorial-read-link,
#news.retro-magazine #newsGrid .editorial-story--lead .editorial-read-link,
body.magazine-page .editorial-story--lead .editorial-read-link {
  display:inline-flex!important; align-self:flex-start!important; flex:none!important;
  position:static!important; width:auto!important; height:auto!important; min-height:0!important;
  margin:auto 0 0!important; padding:5px 0 0!important;
  background:transparent!important; color:var(--ng-card-red)!important;
  font:800 12px/1.35 Arial,Helvetica,sans-serif!important;
  border:0!important; border-radius:0!important; box-shadow:none!important;
  text-transform:none!important; text-decoration:none!important;
}
#news.retro-magazine #newsGrid .editorial-story-copy>.editorial-read-link:hover,
body.magazine-page .editorial-story-copy>.editorial-read-link:hover {
  text-decoration:underline!important; color:#8c1527!important;
}
/* A full-width leading feature plus two equally sized secondary cards. */
@media(min-width:761px) {
  #news.retro-magazine #newsGrid .editorial-feature-grid>.editorial-story--lead,
  body.magazine-page .editorial-feature-grid>.editorial-story--lead {
    display:grid!important; grid-template-columns:minmax(0,48%) minmax(0,1fr)!important;
    align-items:stretch!important;
  }
  #news.retro-magazine #newsGrid .editorial-feature-grid>.editorial-story--lead>.editorial-cover-link,
  body.magazine-page .editorial-feature-grid>.editorial-story--lead>.editorial-cover-link {
    width:100%!important; height:100%!important; aspect-ratio:auto!important;
    min-height:240px!important;
  }
  #news.retro-magazine #newsGrid .editorial-feature-grid>.editorial-story--lead .editorial-story-copy,
  body.magazine-page .editorial-feature-grid>.editorial-story--lead .editorial-story-copy {
    padding:24px 26px!important; gap:11px!important;
  }
}
@media(min-width:1120px) {
  #news.retro-magazine #newsGrid .editorial-latest-grid,
  body.magazine-page .editorial-latest-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
/* Keep the last article from sitting alone when a two-column collection has an odd count. */
@media(min-width:761px) and (max-width:1119px) {
  #news.retro-magazine #newsGrid .editorial-latest-grid>.editorial-story:last-child:nth-child(odd),
  body.magazine-page .editorial-feature-grid>.editorial-story:last-child:nth-child(even) {
    grid-column:1/-1!important;
  }
}
@media(max-width:760px) {
  #news.retro-magazine #newsGrid :is(.editorial-feature-grid,.editorial-latest-grid),
  body.magazine-page :is(.editorial-feature-grid,.editorial-latest-grid) {
    grid-template-columns:minmax(0,1fr)!important; gap:15px!important;
  }
  #news.retro-magazine #newsGrid .editorial-story,
  body.magazine-page .editorial-story {
    display:flex!important; flex-direction:column!important;
    grid-column:auto!important; grid-row:auto!important;
    min-height:0!important; max-height:none!important;
  }
  #news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link,
  body.magazine-page .editorial-story>.editorial-cover-link {
    display:block!important; width:100%!important; height:auto!important;
    min-height:0!important; max-height:none!important;
    aspect-ratio:16/9!important; --ng-art-ratio:16/9!important; align-self:stretch!important;
    padding:0!important; margin:0!important;
  }
  #news.retro-magazine #newsGrid .editorial-story>.editorial-story-copy,
  body.magazine-page .editorial-story>.editorial-story-copy {
    padding:12px 14px 13px!important; gap:6px!important;
  }
  #news.retro-magazine #newsGrid .editorial-story-copy h3,
  body.magazine-page .editorial-story-copy h3 {
    font-size:clamp(18px,4.6vw,21px)!important; line-height:1.24!important;
  }
  #news.retro-magazine #newsGrid .editorial-feature-grid>.editorial-story--lead,
  body.magazine-page .editorial-feature-grid>.editorial-story--lead {
    display:flex!important; flex-direction:column!important; grid-column:1!important;
  }
  #news.retro-magazine #newsGrid .editorial-feature-grid>.editorial-story--lead>.editorial-cover-link,
  body.magazine-page .editorial-feature-grid>.editorial-story--lead>.editorial-cover-link {
    width:100%!important; height:auto!important; min-height:0!important;
    max-height:none!important; aspect-ratio:16/9!important; --ng-art-ratio:16/9!important;
  }
  #news.retro-magazine #newsGrid .editorial-story-copy .editorial-teaser,
  body.magazine-page .editorial-story-copy .editorial-teaser {
    display:-webkit-box!important; -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  #news.retro-magazine #newsGrid .editorial-story-copy>.editorial-publication,
  body.magazine-page .editorial-story-copy>.editorial-publication { font-size:10px!important; }
}
@media(max-width:380px) {
  #news.retro-magazine #newsGrid .editorial-story-copy>.editorial-teaser,
  body.magazine-page .editorial-story-copy>.editorial-teaser { -webkit-line-clamp:1!important; }
}
@media(prefers-reduced-motion:reduce) {
  #news.retro-magazine #newsGrid .editorial-story,
  body.magazine-page .editorial-story { transition:none!important; transform:none!important; }
}

/* Production incident 2026-11-24: a missing thumbnail must not stretch a text card. */
#news.retro-magazine #newsGrid :is(.editorial-feature-grid,.editorial-latest-grid),
body.magazine-page :is(.editorial-feature-grid,.editorial-latest-grid) {
  align-items:start!important;
}
#news.retro-magazine #newsGrid .editorial-story.editorial-story--without-media,
#news.retro-magazine #newsGrid .editorial-story:not(:has(>.editorial-cover-link img:not([hidden]))),
body.magazine-page .editorial-story.editorial-story--without-media,
body.magazine-page .editorial-story:not(:has(>.editorial-cover-link img:not([hidden]))) {
  display:flex!important; flex-direction:column!important;
  align-self:start!important; height:auto!important; min-height:0!important;
  grid-template-columns:minmax(0,1fr)!important;
}
#news.retro-magazine #newsGrid .editorial-story--without-media>.editorial-cover-link,
#news.retro-magazine #newsGrid .editorial-story>.editorial-cover-link:not(:has(img:not([hidden]))),
body.magazine-page .editorial-story--without-media>.editorial-cover-link,
body.magazine-page .editorial-story>.editorial-cover-link:not(:has(img:not([hidden]))) {
  display:none!important;
}
#news.retro-magazine #newsGrid .editorial-story.editorial-story--without-media>.editorial-story-copy,
#news.retro-magazine #newsGrid .editorial-story:not(:has(>.editorial-cover-link img:not([hidden])))>.editorial-story-copy,
body.magazine-page .editorial-story.editorial-story--without-media>.editorial-story-copy,
body.magazine-page .editorial-story:not(:has(>.editorial-cover-link img:not([hidden])))>.editorial-story-copy {
  flex:0 0 auto!important; justify-content:flex-start!important; min-height:0!important;
}
#news.retro-magazine #newsGrid .editorial-story--without-media .editorial-read-link,
body.magazine-page .editorial-story--without-media .editorial-read-link {
  margin:8px 0 0!important;
}
