/* GitHub-like site notice cards */
.gh-like-notice {
  margin: 12px 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(4px);
  display: block;
}
html.darkmode  .gh-like-notice {
  background: rgba(0,0,0,0.35);
}
.gh-like-notice.card { border: 0; }

.gh-like-notice .gh-notice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.gh-like-notice .gh-notice-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 24px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.gh-like-notice .gh-notice-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
  flex: 0 0 18px;
}

.gh-like-notice .gh-notice-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 20px;
  color: #525f7f;
}
html.darkmode .gh-like-notice .gh-notice-text { color: rgba(255,255,255,.86) !important; }

.gh-like-notice .gh-notice-user {
  font-weight: 600;
  color: #5e72e4;
}

.gh-like-notice .gh-notice-content a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,.15);
}
html.darkmode  .gh-like-notice .gh-notice-content a { border-bottom-color: rgba(255,255,255,.25); }
.gh-like-notice .gh-notice-content a:hover { text-decoration: underline; }

.gh-like-notice .gh-notice-time {
  margin-left: auto;
  font-size: 12px;
  color: #8898aa;
}
html.darkmode  .gh-like-notice .gh-notice-time { color: rgba(255,255,255,.65); }

/* type variants */
.gh-notice--success { border-left: 3px solid #2dce89; }
.gh-notice--info    { border-left: 3px solid #11cdef; }
.gh-notice--warning { border-left: 3px solid #fb6340; }
.gh-notice--neutral { border-left: 3px solid #adb5bd; }

/* compact spacing inside article lists */
.article-list .gh-like-notice { margin-top: 8px; margin-bottom: 8px; }

/* enhancements: mobile avatar handling & top-left FA icon overlay */
/* 1) Hide avatar on narrow screens to avoid ellipse deformation */
@media (max-width: 576px) {
  .gh-like-notice .gh-notice-avatar { display: none !important; }
}

/* 2) Big Font Awesome icon (fa fa-code-fork) overlay at top-left */
.gh-like-notice { position: relative; }
.gh-like-notice::before {
  content: "\f126"; /* code-fork / code-branch glyph */
  position: absolute;
  /* 略微置于卡片外部左上角，减少与文字的重叠 */
  top: -17px;
  left: -3px;
  font-family: "Font Awesome 5 Free","Font Awesome 5 Pro","Font Awesome 4","FontAwesome",sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  /* 更亮但更透明，尽量不干扰正文 */
  color: #729200;
  opacity: 0.6;
  filter: brightness(1.5);
  pointer-events: none;
}

/* ensure content sits above the decorative icon */
.gh-like-notice .gh-notice-inner { position: relative; z-index: 1; }