/* Updates — the instructor's announcements, and the bell on Home. */

/* The bell's dot: something unread. */
.top-news { position: relative; }
.top-news.has-dot::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px var(--paper);
}

.news-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.news-hint { max-width: 720px; margin: 0 auto 14px; }
.news-item { padding: 16px 18px; }
.news-item.is-withdrawn { opacity: .55; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.news-kind { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.news-date { font-size: .76rem; color: var(--ink-soft); }
.news-new { font-size: .68rem; font-weight: 800; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
.news-title { font-size: .95rem; font-weight: 750; line-height: 1.35; color: var(--ink); }
.news-body { margin-top: 6px; font-size: .86rem; line-height: 1.6; color: var(--ink-mid); white-space: pre-wrap; overflow-wrap: anywhere; }
.news-actions { margin-top: 12px; }
.news-admin {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border); font-size: .8rem; color: var(--ink-soft);
}
.news-admin .btn-row { margin-left: auto; }

/* The Home card. */
.news-card .notice-body { font-size: .84rem; line-height: 1.5; }
.news-card .news-kind { display: block; margin-bottom: 2px; font-size: .62rem; }
.news-card-title { display: block; font-size: .9rem; line-height: 1.35; }
.news-card-text { margin-top: 2px; }
.news-card .notice-icon {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sunken); border: 1px solid var(--border); color: var(--ink-mid);
}
.news-card .notice-icon svg { width: 22px; height: 22px; stroke-width: 1.9; }

/* Choosing people. */
.news-people { max-height: 240px; overflow-y: auto; margin: -4px 0 14px; border: 1px solid var(--border); border-radius: 12px; }
.news-person { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--border); font-size: .88rem; }
.news-person:first-child { border-top: 0; }
.news-person .hint { margin-left: auto; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
