/* MyAllSearch optional News sidebar — Option 5, article thumbnail on the right.
   The whole card remains hidden until a recent, matching article is verified. */
body.search-results #mas-web-news-card[hidden] { display:none!important; }
body.search-results #mas-web-news-card {
  margin:12px 0 16px!important;
  width:100%;
  border:1px solid #dce2e9!important;
  border-radius:12px!important;
  background:#fff;
  color:#303236;
  box-shadow:none!important;
  overflow:hidden;
  font-family:var(--mas-search-font,Arial,sans-serif);
}
body.search-results #mas-web-news-card .card-body {padding:16px!important;}
body.search-results .mas-news-sidebar-header {
  display:flex;gap:10px;align-items:center;justify-content:space-between;
  margin-bottom:4px;
}
body.search-results #mas-web-news-heading {
  display:flex;align-items:center;gap:8px;min-width:0;
  margin:0!important;color:inherit;
}
body.search-results #mas-web-news-heading svg {
  display:block;flex-shrink:0;width:18px;height:18px;
  fill:none;stroke:currentColor;color:#424a54;
}
body.search-results .mas-web-news-more {
  flex:0 0 auto;font-size:13px;font-weight:500;
  color:#487aca;text-decoration:none;white-space:nowrap;
}
body.search-results .mas-web-news-more:hover {text-decoration:underline;}
body.search-results .mas-web-news-item {padding:12px 0;}
body.search-results .mas-web-news-item + .mas-web-news-item {border-top:1px solid #e7ebf0;}
body.search-results .mas-web-news-item:last-child {padding-bottom:0;}
body.search-results .mas-web-news-link {
  display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:start;gap:12px;
  color:inherit;text-decoration:none!important;
}
body.search-results .mas-web-news-copy {display:block;min-width:0;}
body.search-results .mas-web-news-link.mas-web-news-no-image {display:block;}
body.search-results .mas-web-news-link.mas-web-news-no-image .mas-web-news-copy {width:100%;}

body.search-results .mas-web-news-title {
  display:block;color:#487aca;font-size:14px;font-weight:500;
  line-height:1.35;overflow-wrap:anywhere;
}
body.search-results .mas-web-news-link:hover .mas-web-news-title {text-decoration:underline;}
body.search-results .mas-web-news-meta {
  display:block;margin-top:6px;color:#687180;font-size:11.5px;line-height:1.4;
}
body.search-results .mas-web-news-thumb {
  position:relative;display:flex;align-items:center;justify-content:center;
  width:88px;height:69px;border-radius:7px;overflow:hidden;
  background:#f1f3f5;color:#9aa3ae;
}
body.search-results .mas-web-news-thumb img {
  display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
body.search-results .mas-web-news-thumb img[hidden] {display:none!important;}
body.search-results .mas-web-news-thumb svg {width:24px;height:24px;stroke:currentColor;fill:none;}
body.search-results .mas-web-news-thumb svg[hidden] {display:none!important;}
body.search-results .mas-web-news-link:focus-visible,
body.search-results .mas-web-news-more:focus-visible {outline:2px solid #487aca;outline-offset:3px;border-radius:3px;}
:is(.darkmode,.dark-mode,.theme-dark) body.search-results #mas-web-news-card,
body.search-results:is(.darkmode,.dark-mode,.theme-dark) #mas-web-news-card {
  background:#303030;color:#eee;border-color:#505763!important;
}
:is(.darkmode,.dark-mode,.theme-dark) body.search-results .mas-web-news-item + .mas-web-news-item,
body.search-results:is(.darkmode,.dark-mode,.theme-dark) .mas-web-news-item + .mas-web-news-item {border-color:#505763;}
:is(.darkmode,.dark-mode,.theme-dark) body.search-results :is(.mas-web-news-title,.mas-web-news-more),
body.search-results:is(.darkmode,.dark-mode,.theme-dark) :is(.mas-web-news-title,.mas-web-news-more) {color:#91b7f3;}
:is(.darkmode,.dark-mode,.theme-dark) body.search-results .mas-web-news-meta,
body.search-results:is(.darkmode,.dark-mode,.theme-dark) .mas-web-news-meta {color:#bdbdbd;}
:is(.darkmode,.dark-mode,.theme-dark) body.search-results .mas-web-news-thumb,
body.search-results:is(.darkmode,.dark-mode,.theme-dark) .mas-web-news-thumb {background:#424851;color:#aab2be;}
:is(.darkmode,.dark-mode,.theme-dark) body.search-results #mas-web-news-heading svg,
body.search-results:is(.darkmode,.dark-mode,.theme-dark) #mas-web-news-heading svg {color:#b4bac2;}
@media(max-width:767.98px) {
 body.search-results #mas-web-news-card .card-body {padding:14px!important;}
 body.search-results .mas-web-news-link {grid-template-columns:minmax(0,1fr) 76px;gap:10px;}
 body.search-results .mas-web-news-thumb {width:76px;height:62px;}
}

/* Keep the News sidebar desktop-only. The News search tab remains available. */
@media (max-width:767.98px) {
  #mas-web-news-card, #mas-news-debug { display:none!important; }
}
