/* Notifications drawer — editorial design.
   Uses the same design tokens as login.html / news.html / federal layout:
   --paper / --card / --tint / --ink / --green / --line + Inter body,
   Cormorant Garamond serif title, JetBrains Mono labels. All bell pages already define
   these tokens (ds-tokens.css + page-inline :root blocks). */

.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-overlay.open { opacity: 1; pointer-events: auto; }

.notif-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 60px rgba(26, 26, 24, 0.10);
  z-index: 145;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}
.notif-drawer.open { transform: translateX(0); }

/* Header */
.notif-drawer .notif-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.notif-drawer .notif-head .ttl {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
}
.notif-drawer .notif-head .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.notif-drawer .notif-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-drawer .notif-action-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-transform: uppercase;
}
.notif-drawer .notif-action-link:hover { color: var(--green-d); text-decoration: underline; }
.notif-drawer .notif-close-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-drawer .notif-close-btn:hover { border-color: var(--line-2); background: var(--paper); }
.notif-drawer .notif-close-btn svg { width: 13px; height: 13px; }

/* Tabs */
.notif-drawer .notif-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.notif-drawer .notif-tabs button {
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-drawer .notif-tabs button:hover { color: var(--ink); background: var(--paper); }
.notif-drawer .notif-tabs button.active { background: var(--tint); color: var(--green); }
.notif-drawer .notif-tabs .ct {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
}
.notif-drawer .notif-tabs button.active .ct {
  background: rgba(201, 149, 74, 0.14);
  color: var(--green);
}
html[data-theme="dark"] .notif-drawer .notif-tabs button.active .ct {
  background: rgba(109, 181, 142, 0.16);
}

/* List */
.notif-drawer .notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 10px;
}
.notif-drawer .notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.notif-drawer .notif-item:last-child { border-bottom: none; }
.notif-drawer .notif-item:hover { background: var(--paper); }
.notif-drawer .notif-item.unread { background: var(--tint); }
.notif-drawer .notif-item.unread:hover { background: var(--tint); filter: brightness(0.985); }

/* Icon tile — neutral default + tone variants. Tone names match VERB_META in
   notifications.js (green/blue/rose/neutral) plus legacy aliases that still
   appear in older entries (teal/emerald/amber/violet). */
.notif-drawer .notif-item .ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-drawer .notif-item .ic svg { width: 15px; height: 15px; }
.notif-drawer .notif-item .ic.tone-neutral { background: var(--paper); border-color: var(--line); color: var(--ink-2); }
.notif-drawer .notif-item .ic.tone-green,
.notif-drawer .notif-item .ic.tone-teal,
.notif-drawer .notif-item .ic.tone-emerald {
  background: rgba(201, 149, 74, 0.10);
  border-color: rgba(201, 149, 74, 0.22);
  color: var(--green);
}
.notif-drawer .notif-item .ic.tone-blue,
.notif-drawer .notif-item .ic.tone-violet {
  background: rgba(40, 80, 120, 0.10);
  border-color: rgba(40, 80, 120, 0.22);
  color: #2c5f8d;
}
.notif-drawer .notif-item .ic.tone-rose {
  background: rgba(163, 55, 47, 0.10);
  border-color: rgba(163, 55, 47, 0.22);
  color: #A8423D;
}
.notif-drawer .notif-item .ic.tone-amber {
  background: rgba(138, 109, 31, 0.10);
  border-color: rgba(138, 109, 31, 0.22);
  color: #C9954A;
}
html[data-theme="dark"] .notif-drawer .notif-item .ic.tone-blue,
html[data-theme="dark"] .notif-drawer .notif-item .ic.tone-violet { color: #8db4d8; }
html[data-theme="dark"] .notif-drawer .notif-item .ic.tone-rose { color: #A8423D; }
html[data-theme="dark"] .notif-drawer .notif-item .ic.tone-amber { color: #E8C485; }

.notif-drawer .notif-item .body { flex: 1; min-width: 0; }
.notif-drawer .notif-item .body .top {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.notif-drawer .notif-item .body .top strong { font-weight: 600; }
.notif-drawer .notif-item .body .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.notif-drawer .notif-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 8px;
  flex-shrink: 0;
  opacity: 0;
}
.notif-drawer .notif-item.unread .dot { opacity: 1; }

/* Footer */
.notif-drawer .notif-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
}
.notif-drawer .notif-foot a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
}
.notif-drawer .notif-foot a:hover { color: var(--green-d); text-decoration: underline; }
.notif-drawer .notif-sync {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Empty state */
.notif-drawer .notif-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-family: 'Inter', system-ui, sans-serif;
}
