/* Load after the existing News-card styles. Opt-in only; full articles keep their own styles. */
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:clamp(12px,1.6vw,22px);
}
@media (min-width:701px){
  body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (min-width:1120px){
  body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:1024px) and (hover:none) and (pointer:coarse){
  body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform {
    grid-template-columns:minmax(0,1fr);
  }
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > .news-undated-heading {
  grid-column:1 / -1;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item {
  display:flex;
  flex-direction:column;
  min-inline-size:0;
  align-self:stretch;
  gap:clamp(8px,1vw,12px);
  text-align:start;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .news-image {
  order:0;
  display:block;
  inline-size:100%;
  block-size:auto;
  aspect-ratio:1;
  object-fit:contain;
  object-position:center;
  margin:0;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .news-image > img {
  display:block;
  inline-size:100%;
  block-size:auto;
  aspect-ratio:1;
  object-fit:contain;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > h3 {
  order:1;
  flex:0 0 auto;
  min-block-size:var(--jd-news-title-size, 0px);
  text-align:center;
  line-height:1.28 !important;
  font-size:clamp(1.0625rem, .99rem + .28vw, 1.3rem) !important;
  overflow-wrap:anywhere;
  margin:0;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .news-meta {
  order:2;
  flex:0 0 auto;
  min-block-size:var(--jd-news-meta-size, 0px);
  margin:0;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > :is(.news-body,.jd-news-summary) {
  order:3;
  flex:0 0 auto;
  min-inline-size:0;
  min-block-size:var(--jd-news-intro-size,0px);
  margin:0;
  max-block-size:none;
  overflow:visible;
  white-space:normal;
  text-align:start;
  overflow-wrap:anywhere;
  -webkit-line-clamp:unset;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-card-actions {
  order:4;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-block-start:auto;
  min-block-size:44px;
  min-inline-size:0;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-card-actions > :is(a,button) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-block-size:44px;
  max-inline-size:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
  margin:0;
}
/* Preserve the direct-card source link's visual treatment after nesting it
   under the new footer. Aperture theme tokens take precedence when present. */
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-card-actions > a.news-source {
  min-inline-size:44px;
  padding:8px 12px;
  border:1px solid var(--jd-accent,#6cb8c5);
  border-radius:4px;
  background:var(--jd-button,#173243);
  color:#fff;
  font-size:.84rem;
  line-height:1.25;
  text-decoration:none;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-card-actions > a.news-source::after {
  content:none !important;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-card-actions > a.news-source:focus-visible {
  outline:2px solid var(--jd-accent,#85d5e7);
  outline-offset:2px;
}
/* Equal row heights across the whole currently shown grid, not only neighbors. */
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform{
 grid-auto-rows:1fr;
 width:100%;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item{
 inline-size:100%;
 max-inline-size:none;
 height:100%;
 box-sizing:border-box;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .news-meta{
 flex-wrap:wrap;
 white-space:normal;
}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-card-actions > .jd-news-read-more {order:2;}
body.jd-news-article-mode {
 margin:0!important;
 overflow:auto!important;
 color:#fff;
 background:#071321!important;
}
body.jd-news-article-mode > :not(.jd-news-article):not(style):not(script):not(link){display:none!important;}
body.jd-news-article-mode > main.jd-news-article{
 box-sizing:border-box; width:min(100%,50rem); min-height:100vh;
 margin:0 auto; padding:clamp(1rem,4.5vw,3rem);
 display:block; color:#fff; line-height:1.62;
}
.jd-news-article > article.news-item{
 display:flex; flex-direction:column; gap:1rem; align-items:stretch;
 margin:1rem 0 0; padding:clamp(1rem,3vw,2rem);
 border:1px solid var(--jd-accent,#ff7d30); border-radius:.75rem;
 background:#111f32; width:auto; aspect-ratio:auto; max-width:none; color:#fff; box-sizing:border-box;
}
.jd-news-article-title {order:-1; text-align:left; line-height:1.15; font-size:clamp(1.6rem,4vw,2.65rem); margin:0; text-wrap:balance;}
.jd-news-article .news-image {width:min(100%,36rem);height:auto;align-self:center;aspect-ratio:1 / 1;object-fit:contain;border-radius:.5rem;}
.jd-news-article .news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;font-size:.85rem;color:#d1e2f0;}
.jd-news-article .jd-news-fulltext {display:block; overflow:visible; margin:0;font-size:1rem;}
.jd-news-article .jd-news-fulltext p{margin:0 0 .8rem;}
.jd-news-article :is(.jd-news-back,.news-metadata-source,.news-source){
 color:#fff;text-underline-offset:.2em;
}
.jd-news-article :is(.jd-news-back,.news-source){
 display:inline-flex;align-items:center;min-height:44px;padding:0 .9rem;background:#162c44;
 border:1px solid var(--jd-accent,#ff7d30);border-radius:.4rem;text-decoration:none;
}
.jd-news-article :is(a,summary):focus-visible{outline:2px solid #70d5ff;outline-offset:4px}
.jd-news-article .jd-news-card-actions{display:flex;flex-wrap:wrap;gap:.65rem;}
.jd-news-article .news-premiere-gallery {order:4;}
.jd-news-article .news-premiere-gallery summary {cursor:pointer;min-height:44px;}
.jd-news-article .news-premiere-gallery ul {padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;}
.jd-news-article .news-premiere-gallery figure{margin:0;}
.jd-news-article .news-premiere-gallery img{width:100%;height:auto;border-radius:.35rem;}
.jd-news-uniform .jd-news-title-link{color:inherit;text-decoration:none;display:block;}
.jd-news-uniform .jd-news-title-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:.22em;}
.jd-news-uniform .jd-news-title-link:focus-visible {outline:2px solid #70d5ff;outline-offset:3px}
.jd-news-article .jd-news-original-source{margin-block-start:1.3rem;}
.jd-news-article .jd-news-original-source a{color:#b3ecff;overflow-wrap:anywhere;}
body:not(.jd-news-article-mode) :is(#news, #anatomy-aperture[data-section="news"] #section-host) .news-list.jd-news-uniform > article.news-item > .jd-news-summary {
 inline-size:100%!important; max-inline-size:none!important;
}
