/* The app shell still owns the section frame, heading and reveal animation. */
:where(#noticeSection) .notice-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  margin-right: 0;
  margin-left: 0;
}

:where(#noticeSection) .notice-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
}

:where(#noticeSection) .notice-item.is-important {
  border-left-color: var(--warning);
}

:where(#noticeSection) .notice-item.is-urgent {
  border-left-color: var(--danger);
}

:where(#noticeSection) .notice-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(#noticeSection) .notice-item-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

:where(#noticeSection) .notice-item-main small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

:where(#noticeSection) .notice-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

:where(#noticeSection) .notice-badge.is-important {
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
  color: var(--warning);
}

:where(#noticeSection) .notice-badge.is-urgent {
  background: var(--danger);
  color: #fff;
}

@media (max-width: 420px) {
  :where(#noticeSection) .notice-item {
    padding: 10px;
  }

  :where(#noticeSection) .notice-item strong {
    font-size: 13px;
  }

  :where(#noticeSection) .notice-item-main small {
    font-size: 10.5px;
  }
}
