/* Notifications index + digest pages. Mobile-first. */

/* Page header (title + meta) */
.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xsmall);
  margin-bottom: var(--gap-large);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--gap-medium);
}

/* Index: a hairline-separated list of digests (no boxes). */
.notifications {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification {
  border-bottom: var(--calendar-border-width) solid var(--theme-accent-color);
}

.notification a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-xsmall) var(--gap-medium);
  padding: var(--gap-medium) 0;
  text-decoration: none;
  color: inherit;
}

.notification__period {
  font-weight: bold;
}

/* Unread is signalled by the accent period + badge, not a heavy border. */
.notification.unread .notification__period {
  color: var(--theme-accent-color);
}

.notification__meta {
  display: flex;
  align-items: baseline;
  gap: var(--gap-small);
  color: var(--theme-fg-muted);
  font-size: var(--font-size-small);
  white-space: nowrap;
}

/* Digest: relevance toggle as a plain text switch (matches the list/calendar
   view switcher), not a boxed segmented control. */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-medium);
  margin-bottom: var(--gap-large);
}

.segmented a {
  text-decoration: none;
  color: var(--theme-fg-muted);
}

.segmented a:hover {
  text-decoration: underline;
}

.segmented a.active {
  color: var(--theme-accent-color);
  font-weight: bold;
}

.empty-state {
  color: var(--theme-fg-muted);
}
