/* EllGab Modern v1.0.46 — visual replacement for SMF's language new.gif.
   Only the topic-list new-post link, never other .new_posts elements.
   Keep the original image in the accessibility tree and the original clickable link.
*/
#messageindex td.subject a[id^="newicon"] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0 0 1px 5px;
  padding: 2px 5px;
  min-width: 25px;
  border: 1px solid #b98a4e !important;
  border-radius: 4px;
  background: #765520 !important;
  color: #f4dfb7 !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none !important;
  box-shadow: none !important;
}
#messageindex td.subject a[id^="newicon"]::after {
  content: "new";
  color: inherit;
}
#messageindex td.subject a[id^="newicon"] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
}
#messageindex td.subject a[id^="newicon"]:hover,
#messageindex td.subject a[id^="newicon"]:focus-visible {
  background: #906b2e !important;
  border-color: #eabd76 !important;
  color: #fff0d1 !important;
}
#messageindex td.subject a[id^="newicon"]:focus-visible {
  outline: 2px solid #eabd76;
  outline-offset: 2px;
}
