/* Squper News Square Editorial v18 — after light theme v14 and homepage v13.
   Only Tech News listing and Tech News article details change layout.
   Buying Guides, product reviews, media attribution and editorial discussion remain untouched. */
body.sq-light-theme .site-header { position:static!important; top:auto!important; }

/* Tech News archive: clean alternating square-photo/editorial-copy rows */
body.sq-light-theme .sq18-news-list {
  display:grid;
  grid-template-columns:minmax(0,1fr)!important;
  gap:20px;
  padding-bottom:32px;
}
body.sq-light-theme .sq18-news-list .sq18-news-card {
  display:grid;
  grid-template-columns:minmax(175px,255px) minmax(0,1fr);
  grid-template-rows:auto;
  align-items:center;
  gap:clamp(18px,3vw,38px);
  min-height:0;
  border:1px solid #e3eaf4;
  border-radius:20px;
  padding:20px;
  background:#fff;
  box-shadow:0 8px 23px rgba(22,50,91,.045);
  overflow:hidden;
}
body.sq-light-theme .sq18-news-list .sq18-news-card:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 27px rgba(20,48,94,.09);
}
body.sq-light-theme .sq18-news-list .sq18-news-card .guide-image {
  grid-column:1;grid-row:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;height:auto!important;
  aspect-ratio:1/1!important;
  margin:0;
  border-radius:15px;
  background:linear-gradient(135deg,#edf6ff,#f7f1ff);
  overflow:hidden;
}
body.sq-light-theme .sq18-news-list .sq18-news-card .guide-image img {
  display:block;width:100%!important;height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0;
  background:transparent;
}
body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body {
  grid-column:2;grid-row:1;
  min-width:0;
  padding:0 14px 0 0;
}
body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body h3 {
  font-size:clamp(20px,2.2vw,30px);
  line-height:1.18;
  margin:10px 0 12px;
}
body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body p {
  min-height:0;
  max-width:780px;
  margin:8px 0 15px;
  font-size:clamp(13px,1.1vw,15px);
  line-height:1.65;
}
body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) .guide-image {
  grid-column:2;grid-row:1;
  max-width:255px;
  justify-self:end;
}
body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) .guide-body {
  grid-column:1;grid-row:1;
  padding:0 0 0 8px;
}
body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) {
  grid-template-columns:minmax(0,1fr) minmax(175px,255px);
}

/* News article: a compact text column beside one complete square picture. */
body.sq-light-theme .sq18-news-layout {grid-template-columns:minmax(0,1fr) minmax(210px,260px);gap:clamp(24px,3vw,42px)}
body.sq-light-theme .sq18-news-article {min-width:0}
body.sq-light-theme .sq18-news-article .sq18-news-hero {
  display:grid;
  grid-template-columns:minmax(250px,min(42%,440px)) minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:start;
  gap:0 clamp(23px,3vw,44px);
  margin:0 0 30px;
}
body.sq-light-theme .sq18-news-article .sq18-hero-copy {grid-column:2;grid-row:1;min-width:0}
body.sq-light-theme .sq18-news-article .sq18-hero-copy > .section-kicker {display:block;margin:9px 0 10px}
body.sq-light-theme .sq18-news-article .sq18-hero-copy > h1 {
  font-size:clamp(27px,3vw,44px);line-height:1.13;letter-spacing:-.035em;
  margin:0 0 17px;max-width:none;
}
body.sq-light-theme .sq18-news-article .sq18-hero-copy > .article-deck {
  margin:0 0 18px;font-size:clamp(15px,1.4vw,18px);line-height:1.65;
}
body.sq-light-theme .sq18-news-article .sq18-hero-copy > .byline {margin:0 0 7px}
body.sq-light-theme .sq18-news-article .sq18-news-hero > .article-banner {
  grid-column:1;grid-row:1;
  display:flex;align-items:center;justify-content:center;
  width:100%;height:auto!important;aspect-ratio:1/1!important;
  overflow:hidden;border-radius:18px;margin:0!important;padding:0;
  background:linear-gradient(140deg,#edf6ff,#f6f1ff)!important;
}
body.sq-light-theme .sq18-news-article .sq18-news-hero > .article-banner img {
  display:block;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:none!important;aspect-ratio:auto!important;
  object-fit:contain!important;object-position:center!important;background:transparent;
}
body.sq-light-theme .sq18-news-article .sq18-news-hero > .squper-image-credit {
  grid-column:1;grid-row:2;margin:7px 0 0;font-size:11px;
  line-height:1.5;overflow-wrap:anywhere;
}
body.sq-light-theme .sq18-news-article .squper-news-body {max-width:950px}
body.sq-light-theme .sq18-news-article .squper-news-body p {font-size:clamp(15px,1.25vw,17px)}

/* Remaining sitewide news snippets: preserve a full image in a square */
body.sq-light-theme .squper-latest-news:not(.squper-latest-news--home) .squper-latest-item img {
  flex:0 0 94px;width:94px;height:94px;aspect-ratio:1;
  object-fit:contain!important;
}

@media(max-width:1150px) {
 body.sq-light-theme .sq18-news-layout {grid-template-columns:minmax(0,1fr)}
 body.sq-light-theme .sq18-news-layout > aside {display:none}
}
@media(max-width:750px) {
 body.sq-light-theme .sq18-news-list .sq18-news-card,
 body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) {
   grid-template-columns:minmax(125px,32%) minmax(0,1fr);
   gap:14px;
   padding:12px;
 }
 body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) .guide-image {grid-column:1;justify-self:stretch;max-width:none}
 body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) .guide-body {grid-column:2;padding:0}
 body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body {padding:0}
 body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body h3 {font-size:17px;line-height:1.24}
 body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body p {font-size:12px;line-height:1.45;margin:7px 0 9px}
 body.sq-light-theme .sq18-news-article .sq18-news-hero {display:flex;flex-direction:column;gap:0;margin-bottom:20px}
 body.sq-light-theme .sq18-news-article .sq18-hero-copy {order:1;width:100%}
 body.sq-light-theme .sq18-news-article .sq18-hero-copy > h1 {font-size:clamp(26px,6vw,37px);margin:0 0 12px}
 body.sq-light-theme .sq18-news-article .sq18-hero-copy > .byline {margin:0 0 15px}
 body.sq-light-theme .sq18-news-article .sq18-news-hero > .article-banner {order:2;width:100%;max-width:min(100%,480px);align-self:center}
 body.sq-light-theme .sq18-news-article .sq18-news-hero > .squper-image-credit {order:3;max-width:480px}
}
@media(max-width:470px){
 body.sq-light-theme .sq18-news-list .sq18-news-card,
 body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) {grid-template-columns:minmax(0,1fr)}
 body.sq-light-theme .sq18-news-list .sq18-news-card .guide-image,
 body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) .guide-image {grid-column:1;grid-row:1;max-width:100%;width:100%;height:auto!important;aspect-ratio:1}
 body.sq-light-theme .sq18-news-list .sq18-news-card .guide-body,
 body.sq-light-theme .sq18-news-list .sq18-news-card:nth-child(even) .guide-body {grid-column:1;grid-row:2;padding:0 5px 4px}
}
