/* BEGIN forum icon art: generated WebP is undecorated; PC and mobile share CSS. */
:is(.fl_icn, .mlist1 .micon) a:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 170px;
  height: 70px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}
:is(.fl_icn, .mlist1 .micon) a:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="])::before,
.forumdisplay-top h2:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="])::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 3px;
  top: 1px;
  width: 166px;
  height: 68px;
  border: 1px solid #b8b7b7;
  border-radius: 6px;
  background: #fefefe;
  box-shadow: 0 0 3.5px rgb(0 0 0 / 35%);
  pointer-events: none;
}
body :is(.fl_icn, .mlist1 .micon) img[align="left"][src*="/common/"][src*="/common_"][src*="_icon.webp?ts="],
.forumdisplay-top h2 > img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="] {
  position: absolute;
  display: block;
  left: 9px;
  top: 7px;
  width: 154px !important;
  height: 56px !important;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  object-fit: fill;
  float: none;
  filter: brightness(var(--forum-icon-gain, 1));
}
:is(.fl_icn, .mlist1 .micon) a:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="])::after,
.forumdisplay-top h2:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="])::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 154px;
  height: 56px;
  background: rgb(255 255 255 / 39.886098%);
  /* A shallow ellipse intersected with the picture rectangle. */
  clip-path: ellipse(174px 51.5px at 73.5px -23.5px);
  pointer-events: none;
}
/* Historical variants with a 10% black layer beneath the shared gloss. */
img[src*="/common_12_icon.webp?ts="],
img[src*="/common_23_icon.webp?ts="],
img[src*="/common_24_icon.webp?ts="],
img[src*="/common_67_icon.webp?ts="],
img[src*="/common_69_icon.webp?ts="],
img[src*="/common_77_icon.webp?ts="],
img[src*="/common_79_icon.webp?ts="],
img[src*="/common_80_icon.webp?ts="],
img[src*="/common_104_icon.webp?ts="],
img[src*="/common_106_icon.webp?ts="],
img[src*="/common_112_icon.webp?ts="],
img[src*="/common_114_icon.webp?ts="],
img[src*="/common_117_icon.webp?ts="],
img[src*="/common_161_icon.webp?ts="] {
  --forum-icon-gain: .9;
}
/* The stock mobile height of 44px otherwise squashes custom wide icons. */
.forumlist .mlist1 li .micon:has(img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) {
  width: 170px;
  height: 70px;
}
.forumlist .mlist1 li:has(img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) > .murl {
  margin-top: 13px;
}
/* Grid/list columns use plain square crops at the native icon size. */
.fl_g {
  --forum-grid-icon-size: 31px;
  --forum-grid-icon-gap: 10px;
}
body.discuzx5 .fl_g {
  --forum-grid-icon-size: 68px;
  --forum-grid-icon-gap: 12px;
}
.forumlist .sub-forum:not(.mlist1) {
  --forum-grid-icon-size: 44px;
}
:is(.fl_icn_g, .forumlist .sub-forum:not(.mlist1) .micon):has(img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) {
  width: var(--forum-grid-icon-size) !important;
  height: var(--forum-grid-icon-size);
}
:is(.fl_icn_g, .forumlist .sub-forum:not(.mlist1) .micon) a:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) {
  display: block;
  width: var(--forum-grid-icon-size);
  height: var(--forum-grid-icon-size);
}
body :is(.fl_icn_g, .forumlist .sub-forum:not(.mlist1) .micon) img[align="left"][src*="/common/"][src*="/common_"][src*="_icon.webp?ts="] {
  display: block;
  width: var(--forum-grid-icon-size) !important;
  height: var(--forum-grid-icon-size) !important;
  object-fit: cover;
  float: none;
}
.fl_g:has(> .fl_icn_g img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) > dl {
  margin-left: calc(var(--forum-grid-icon-size) + var(--forum-grid-icon-gap)) !important;
  padding-left: 0;
}
/* The mobile board heading emits a bare image beside its title/favorite link. */
.forumdisplay-top h2:has(> img[src*="/common/"][src*="/common_"][src*="_icon.webp?ts="]) {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 70px;
  height: auto;
  padding-left: 180px;
}
/* END forum icon art */
