/* The one-time note about cookies and browser storage (notice.js), on the hub and its help pages. */
.jd-notice {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: 380px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--ct-line-strong); border-radius: 6px;
  background: var(--ct-paper-raised); color: var(--ct-ink-soft);
  font: 400 13px/1.5 "Geist", ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, #000 30%, transparent);
}
.jd-notice p { margin: 0; color: inherit; }
.jd-notice a { color: var(--ct-ink); }
.jd-notice button {
  flex: none; font: 500 13px/1 "Geist", ui-sans-serif, system-ui, sans-serif; padding: 8px 12px; border-radius: 4px;
  border: 1px solid var(--ct-ink); background: var(--ct-ink); color: var(--ct-paper); cursor: pointer;
}
@media (max-width: 560px) { .jd-notice { left: 10px; right: 10px; bottom: 64px; max-width: none; } }

/* Touch screens: a compact strip with a shorter sentence, so it covers as little of the page
   as it can. On the hub's front page it sits just above the "Chat & profile" button
   (44px tall, 12px up); landscape phones and tablets get it bottom-right instead.
   Nothing in this block applies with a mouse. */
.jd-notice .short { display: none; }
@media (hover: none) and (pointer: coarse) {
  .jd-notice { left: 10px; right: 10px; bottom: 10px; max-width: none; gap: 10px; align-items: center;
    padding: 6px 6px 6px 12px; font-size: 12.5px; line-height: 1.4; }
  .jd-notice .long { display: none; }
  .jd-notice .short { display: inline; }
  .jd-notice button { min-width: 44px; min-height: 44px; }
  body:has(.railtoggle) .jd-notice { bottom: 66px; }
}
@media (hover: none) and (pointer: coarse) and (min-width: 561px) {
  .jd-notice, body:has(.railtoggle) .jd-notice { left: auto; bottom: 10px; max-width: 440px; }
}
