/* Announcements (Phase 5, 2026-11-24): the thin top banner and the popup.
   Dark design language (public pages are dark-only; the app's light theme
   keeps the same saturated bar, readable on both). */
.pd-ann {
  --ann-bg: #1d4ed8; --ann-fg: #fff; --ann-line: rgba(255,255,255,.18); --ann-cta-bg: rgba(255,255,255,.16);
  position: relative; z-index: 101; width: 100%;
  background: var(--ann-bg); color: var(--ann-fg);
  border-bottom: 1px solid var(--ann-line);
  font: 500 13.5px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}
.pd-ann--blue  { --ann-bg: linear-gradient(90deg, #1e40af, #2563eb); }
.pd-ann--gold  { --ann-bg: linear-gradient(90deg, #92400e, #b45309); --ann-fg: #fff7ed; }
.pd-ann--green { --ann-bg: linear-gradient(90deg, #065f46, #047857); }
.pd-ann--red   { --ann-bg: linear-gradient(90deg, #991b1b, #b91c1c); }
.pd-ann--slate { --ann-bg: #1e293b; --ann-line: rgba(148,163,184,.22); --ann-cta-bg: rgba(148,163,184,.18); }
.pd-ann-in {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 1200px; margin: 0 auto; min-height: 36px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
}
.pd-ann-ic { flex: none; opacity: .92; }
.pd-ann-text { margin: 0; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.pd-ann-text strong { font-weight: 700; }
.pd-ann-msg { opacity: .9; }
.pd-ann-cta {
  flex: none; display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px;
  color: inherit; font-weight: 700; font-size: 12.5px; text-decoration: none; white-space: nowrap;
  background: var(--ann-cta-bg); border: 1px solid var(--ann-line);
}
.pd-ann-cta:hover { background: rgba(255,255,255,.26); }
.pd-ann-x {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 2px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; opacity: .85;
}
.pd-ann-x:hover { opacity: 1; background: rgba(255,255,255,.14); }
.pd-ann-cta:focus-visible, .pd-ann-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pd-ann--sticky { position: sticky; top: 0; }
html.pd-ann-sticky .topbar { top: var(--pd-ann-h, 0px); }
@media (max-width: 640px) {
  .pd-ann { font-size: 12.5px; }
  .pd-ann-in { gap: 8px; padding-left: 10px; padding-right: 6px; justify-content: flex-start; }
  .pd-ann-text { text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pd-ann-cta { padding: 2px 9px; font-size: 12px; }
}
@media print { .pd-ann, .pd-ann-pop { display: none !important; } }

/* Popup */
.pd-ann-pop {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  margin: auto; padding: 0; border: 1px solid rgba(148,163,184,.22); border-radius: 16px;
  background: #0b1221; color: #e2e8f0; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}
.pd-ann-pop::backdrop { background: rgba(2,6,23,.66); }
.pd-ann-pop--fallback { position: fixed; inset: 0; z-index: 2147483000; height: fit-content; }
.pd-ann-pop-in { padding: 22px 22px 18px; border-top: 4px solid #3b82f6; border-radius: 16px; }
.pd-ann-pop--gold .pd-ann-pop-in { border-top-color: #f59e0b; }
.pd-ann-pop--green .pd-ann-pop-in { border-top-color: #10b981; }
.pd-ann-pop--red .pd-ann-pop-in { border-top-color: #ef4444; }
.pd-ann-pop--slate .pd-ann-pop-in { border-top-color: #64748b; }
.pd-ann-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #93c5fd; }
.pd-ann-pop--gold .pd-ann-pop-head { color: #fcd34d; }
.pd-ann-pop-head .pd-ann-ic { width: 20px; height: 20px; }
.pd-ann-pop h2 { margin: 0; font-size: 18px; line-height: 1.3; color: #f8fafc; }
.pd-ann-pop p { margin: 0 0 16px; color: #cbd5e1; white-space: pre-line; }
.pd-ann-pop-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pd-ann-pop-cta, .pd-ann-pop-close {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.pd-ann-pop-cta { background: #2563eb; color: #fff; border: 1px solid #3b82f6; }
.pd-ann-pop-cta:hover { background: #1d4ed8; }
.pd-ann-pop-close { background: transparent; color: #e2e8f0; border: 1px solid rgba(148,163,184,.3); }
.pd-ann-pop-close:hover { background: rgba(148,163,184,.12); }
.pd-ann-pop-cta:focus-visible, .pd-ann-pop-close:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
