/* Notifications module: news articles, inbox and announcement form. */
.rich-text img,
.rich-text iframe {
  max-width: 100%;
  height: auto;
}

.rich-text table {
  display: block;
  overflow-x: auto;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text {
  overflow-wrap: anywhere;
}

/* Unread notifications: a bar in the GIC colour on the left and a bold title */
.inbox-item.unread {
  border-left: 4px solid var(--gic-primary, #113a62);
  background: var(--gic-primary-light, #e7eef6);
}

.inbox-item .inbox-title {
  overflow-wrap: anywhere;
}

.inbox-item.unread .inbox-title {
  font-weight: 600;
}

.inbox-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gic-primary, #113a62);
}

.pref-table td,
.pref-table th {
  vertical-align: middle;
}

.pref-table .form-switch {
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin: 0;
  min-height: 0;
}

.pref-table .form-switch .form-check-input {
  margin-left: 0;
  width: 2.5em;
  height: 1.35em;
  cursor: pointer;
}

.stat-tile .stat-value {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.announcement-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
