/* Docket — site-wide announcement bar */
.ann {
  --ann-bg: #1a191d;
  --ann-text: #f5f5f2;
  --ann-muted: rgba(245, 245, 242, 0.62);
  --ann-tag-bg: rgba(245, 245, 242, 0.12);
  position: relative; z-index: 80; overflow: hidden;
  background: var(--ann-bg); color: var(--ann-text);
  font: 450 11.5px/18px "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.05px;
  -webkit-font-smoothing: antialiased;
}
body[data-mode] .ann {
  --ann-bg: var(--row);
  --ann-text: var(--text);
  --ann-muted: var(--muted);
  --ann-tag-bg: var(--hover);
  box-shadow: inset 0 -1px 0 var(--line);
}
.ann-inner {
  max-width: 960px; margin: 0 auto; min-height: 38px; padding: 9px 48px;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.ann-tag {
  flex: none; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ann-tag-bg);
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.1px;
}
.ann-tag i { width: 6px; height: 6px; border-radius: 50%; background: #11a967; animation: ann-pulse 2.4s ease-in-out infinite; }
@keyframes ann-pulse { 50% { opacity: 0.35; } }
.ann-text b { font-weight: 500; }
.ann-text span { color: var(--ann-muted); }
.ann-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--ann-muted);
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.ann-close:hover { background: var(--ann-tag-bg); color: var(--ann-text); }
.ann-close:focus-visible { outline: 2px solid #6fcdf0; outline-offset: 1px; }
.ann-close svg { width: 10px; height: 10px; }

.ann.enter { animation: ann-in 0.55s cubic-bezier(0.16, 0.84, 0.28, 1) both; }
@keyframes ann-in { from { margin-top: calc(var(--ann-h, 38px) * -1); opacity: 0; } }
.ann.leave { transition: margin-top 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; margin-top: calc(var(--ann-h, 38px) * -1); opacity: 0; }

/* keep the rest of each page clear of the bar */
body.has-ann .signin { top: calc(26px + var(--ann-h, 0px)); }
body.has-ann .board { min-height: calc(100vh - 52px - var(--ann-h, 0px)); }

@media (max-width: 760px) {
  .ann-inner { padding: 9px 44px 9px 16px; justify-content: flex-start; text-align: left; }
  .ann-text span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ann.enter, .ann-tag i { animation: none; }
  .ann.leave { transition: none; }
}
