/* Official updates: a readable social feed, independent of the stage cards. */
[data-ng-hub="notice"] .ng-notice-feed {
  display: block;
  overflow: hidden;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: 20px;
  background: var(--ng-shell-card-bg);
  box-shadow: 0 8px 24px rgb(20 24 45 / 5%);
}
.ng-notice-feed .ng-notice-post {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 24px;
  scroll-margin-top: 16px;
}
.ng-notice-feed .ng-notice-post + .ng-notice-post {
  border-top: 1px solid var(--ng-shell-card-border);
}
.ng-notice-feed .ng-notice-post__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: 12px;
  background: var(--ng-shell-icon-bg);
}
.ng-notice-feed .ng-notice-post__avatar .ng-theme-symbol { width: 100%; height: 100%; }
.ng-notice-feed .ng-notice-post__main { min-width: 0; }
.ng-notice-feed .ng-notice-post__author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: var(--ng-shell-primary);
}
.ng-notice-feed .ng-notice-post__author strong { font-size: 16px; font-weight: 600; }
.ng-notice-feed .ng-notice-post__badge {
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--ng-shell-primary);
  background: color-mix(in srgb, var(--ng-shell-primary) 10%, transparent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
.ng-notice-feed .ng-notice-post__title {
  margin: 5px 0 0;
  color: var(--ng-shell-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.ng-notice-feed .ng-notice-post__text {
  max-height: 10.8em;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ng-shell-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ng-notice-feed .ng-notice-post__text.is-expanded { max-height: none; }
.ng-notice-feed .ng-notice-post__expand,
.ng-notice-feed .ng-notice-post__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 0 4px;
  margin-left: -4px;
  border: 0;
  border-radius: 8px;
  color: var(--ng-shell-primary);
  background: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.ng-notice-feed .ng-notice-post__expand:active,
.ng-notice-feed .ng-notice-post__link:active { opacity: .6; }
.ng-notice-feed :is(button, a):focus-visible { outline: 2px solid var(--ng-shell-primary); outline-offset: 2px; }
.ng-notice-feed .ng-notice-post__figure { width: min(100%, 360px); margin: 12px 0 0; }
.ng-notice-feed .ng-notice-post__figure > a { display: block; }
.ng-notice-feed .ng-notice-post__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
}
.ng-notice-feed .ng-notice-post__image-error {
  margin: 0;
  padding: 24px 12px;
  border-radius: 10px;
  color: var(--ng-shell-muted);
  background: var(--ng-shell-icon-bg);
  font-size: 13px;
}
.ng-notice-feed .ng-notice-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 14px;
  color: var(--ng-shell-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ng-notice-feed .ng-notice-post__link { min-height: 36px; margin-left: auto; font-size: 12px; }
.ng-notice-feed .ng-notice-post__link > svg { width: 14px; height: 14px; }
.ng-notice-feed [hidden] { display: none !important; }
@media (max-width: 600px) {
  .ng-notice-feed .ng-notice-post { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 18px 14px; }
  .ng-notice-feed .ng-notice-post__avatar { width: 40px; height: 40px; }
  .ng-notice-feed .ng-notice-post__title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-notice-feed .ng-notice-post__expand,
  .ng-notice-feed .ng-notice-post__link { transition: none; }
}
