/* The bell in the header, its panel, and the settings grid. */

/* The button's 44px is held before notifications.js mounts it, so nothing beside the bell moves when it does. */
.notif-bell { position: relative; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.notif-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: inherit; font-size: 1.05rem; cursor: pointer; }
.notif-button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
/* The same white as the header's links (Bootstrap's navbar colours), so the bell reads as one of them. */
.navbar .notif-button { color: var(--bs-navbar-color); }
.navbar .notif-button:hover { color: var(--bs-navbar-hover-color); }
.notif-count { position: absolute; top: 4px; right: 2px; min-width: 18px; padding: 0 4px; border-radius: 4px; background: #101013; color: #fff; font: 600 11px/18px 'Space Grotesk', 'DM Sans', sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.navbar .notif-count { background: #fff; color: #101013; }

.notif-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1100; width: 380px; max-width: calc(100vw - 16px); max-height: min(70vh, 560px); overflow-y: auto; border: 1px solid #e3e1dc; border-radius: 4px; background: #fff; color: #101013; font: 14px/1.45 'DM Sans', -apple-system, sans-serif; text-align: left; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e3e1dc; }
.notif-title { margin: 0; font: 600 15px 'Space Grotesk', 'DM Sans', sans-serif; }
.notif-link { border: 0; background: transparent; padding: 0; color: #55525c; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.notif-link:hover { color: #101013; }
.notif-empty { margin: 0; padding: 24px 16px; color: #55525c; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 16px 12px 28px; border: 0; border-bottom: 1px solid #efede9; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.notif-item:hover, .notif-item:focus-visible { background: #f7f6f3; outline: none; }
.notif-item--unread::before { content: ''; position: absolute; left: 12px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: #101013; }
.notif-item--unread .notif-item-headline { font-weight: 600; }
.notif-item-headline { overflow-wrap: anywhere; }
.notif-item-detail { color: #55525c; font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item-when { color: #928e99; font-size: 12px; }
.notif-settings-link { display: block; padding: 12px 16px; }

.mobile-header .notif-bell { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 800px) {
  .notif-panel { position: fixed; top: 60px; right: 8px; left: 8px; width: auto; max-width: none; }
}

.notif-settings { margin: 2.5rem 0 2rem; scroll-margin-top: 16px; }
.notif-settings-title { margin: 0 0 4px; font: 600 18px 'Space Grotesk', 'DM Sans', sans-serif; }
.notif-settings-help { margin: 0 0 12px; color: #55525c; }
.notif-grid { width: 100%; max-width: 640px; border-collapse: collapse; }
.notif-grid th, .notif-grid td { padding: 10px 8px; border-bottom: 1px solid #e3e1dc; text-align: left; font-weight: 400; }
.notif-grid thead th { color: #55525c; font-size: 12.5px; font-weight: 500; }
.notif-grid td, .notif-grid thead th:not(:first-child) { width: 120px; text-align: center; white-space: nowrap; }
.notif-grid input[type='checkbox'] { width: 18px; height: 18px; accent-color: #101013; }
.notif-settings-status { min-height: 1.4em; margin: 8px 0 0; color: #55525c; font-size: 13px; }
@media (max-width: 800px) {
  .notif-settings { scroll-margin-top: 90px; }
  .notif-grid td, .notif-grid thead th:not(:first-child) { width: 56px; }
  .notif-grid input[type='checkbox'] { width: 24px; height: 24px; }
  .notif-grid td { height: 48px; }
}
