/* assets/announce-popup.css - the announcement popup members see when they open the dashboard (and the admin preview of it).
 * Markup is built by assets/announce-popup.js. Colours follow the dashboard variables (--card --fg --muted --border) so it works in dark and light.
 */
.an-ov { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; box-sizing: border-box;
  background: hsl(220 40% 4% / .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
html.light .an-ov { background: hsl(220 25% 12% / .55); }
.an-ov.an-in { opacity: 1; }
.an-ov.an-frame { position: absolute; inset: 0; z-index: 5; }
.an-ov.an-inline { position: relative; inset: auto; z-index: 1; min-height: 100%; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.an-card { --an-bg: linear-gradient(135deg, #6c3ce1, #4f94ef); --an-acc: #6c3ce1;
  position: relative; width: 100%; max-width: 27.5rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column;
  border-radius: 1.5rem; overflow: hidden; box-sizing: border-box; background: var(--card, #1c2133); color: var(--fg, #f1f5f9); border: 1px solid var(--border, rgba(128, 128, 160, .3));
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .7); transform: translateY(18px) scale(.97); transition: transform .38s cubic-bezier(.22, 1, .36, 1); font-family: inherit; }
.an-in .an-card { transform: none; }
.an-t-violet { --an-bg: linear-gradient(135deg, #6c3ce1 0%, #4f94ef 100%); --an-acc: #6c3ce1; }
.an-t-sunset { --an-bg: linear-gradient(120deg, #ff7a18 0%, #ff3d77 55%, #8b3dff 100%); --an-acc: #ff3d77; }
.an-t-green  { --an-bg: linear-gradient(135deg, #059669 0%, #14b8a6 100%); --an-acc: #059669; }
.an-t-ocean  { --an-bg: linear-gradient(135deg, #0e7490 0%, #2563eb 100%); --an-acc: #2563eb; }
.an-t-dark   { --an-bg: linear-gradient(135deg, #1b1f3a 0%, #4a2d8a 100%); --an-acc: #6d4bd6; }

.an-hero { position: relative; flex: none; min-height: 8.2rem; padding: 1.15rem 1.25rem 1.2rem; box-sizing: border-box; color: #fff; background: var(--an-bg); overflow: hidden; }
.an-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 6% -20%, rgba(255, 255, 255, .34), transparent 50%), radial-gradient(circle at 100% 120%, rgba(255, 255, 255, .2), transparent 46%); }
.an-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background-image: radial-gradient(rgba(255, 255, 255, .17) 1.2px, transparent 1.6px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 100%); mask-image: linear-gradient(100deg, transparent 40%, #000 100%); }
.an-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; max-width: calc(100% - 4rem); padding: .28rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .38);
  font-size: .65rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-title { position: relative; z-index: 1; margin: .7rem 0 0; font-size: 1.4rem; line-height: 1.18; font-weight: 900; letter-spacing: -.02em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.an-has-art .an-title { margin-right: 6.3rem; }
.an-art { position: absolute; z-index: 1; right: .5rem; bottom: -.2rem; width: 8rem; height: auto; pointer-events: none; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .28)); animation: anFloat 6s ease-in-out infinite; }
@keyframes anFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.an-x { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 2rem; height: 2rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .42); background: rgba(15, 10, 50, .32); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.an-x:hover { background: rgba(15, 10, 50, .55); }
.an-x svg { width: .95rem; height: .95rem; }

.an-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.1rem 1.25rem; font-size: .93rem; line-height: 1.68; color: var(--fg, #f1f5f9); overflow-wrap: anywhere; }
.an-body.an-plain { white-space: pre-wrap; }
.an-body > :first-child { margin-top: 0; } .an-body > :last-child { margin-bottom: 0; }
.an-body p { margin: 0 0 .7rem; } .an-body h1, .an-body h2, .an-body h3, .an-body h4 { margin: 1rem 0 .4rem; font-weight: 800; line-height: 1.25; color: var(--fg, #f1f5f9); }
.an-body h3 { font-size: 1.05rem; } .an-body ul, .an-body ol { margin: .4rem 0 .8rem; padding-left: 1.3rem; } .an-body li { margin: .2rem 0; }
.an-body a { color: var(--an-acc); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.an-body img { max-width: 100%; height: auto; border-radius: .7rem; display: block; margin: .6rem 0; }
.an-body hr { border: 0; border-top: 1px solid var(--border, rgba(128, 128, 160, .3)); margin: 1rem 0; }
.an-body blockquote { margin: .6rem 0; padding: .4rem .9rem; border-left: 3px solid var(--an-acc); background: rgba(128, 128, 160, .1); border-radius: 0 .5rem .5rem 0; }

.an-foot { flex: none; display: flex; align-items: center; gap: .6rem; padding: .85rem 1.25rem 1.1rem; border-top: 1px solid var(--border, rgba(128, 128, 160, .3)); }
.an-dots { display: flex; align-items: center; gap: .35rem; margin-right: auto; min-width: 0; }
.an-dot { width: .5rem; height: .5rem; border-radius: 999px; background: rgba(128, 128, 160, .45); padding: 0; border: 0; transition: width .25s, background .25s; }
.an-dot.on { width: 1.4rem; background: var(--an-acc); }
.an-count { font-size: .72rem; font-weight: 700; color: var(--muted, #8d93a6); margin-left: .35rem; white-space: nowrap; }
.an-btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .86rem; line-height: 1.1; padding: .72rem 1.15rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.an-btn svg { width: 1rem; height: 1rem; }
.an-btn.pri { color: #fff; background: var(--an-bg); box-shadow: 0 8px 20px -8px var(--an-acc); }
.an-btn.pri:hover { transform: translateY(-1px); filter: brightness(1.06); }
.an-btn.ghost { color: var(--fg, #f1f5f9); background: transparent; border: 1px solid var(--border, rgba(128, 128, 160, .4)); }
.an-btn.ghost:hover { background: rgba(128, 128, 160, .12); }

@media (max-width: 520px) {
  .an-ov { padding: .9rem; }
  .an-card { max-height: calc(100vh - 1.8rem); max-height: calc(100dvh - 1.8rem); }
  .an-hero { min-height: 7.2rem; padding: 1rem 1.05rem 1.05rem; }
  .an-title { font-size: 1.25rem; } .an-has-art .an-title { margin-right: 5.2rem; } .an-art { width: 6.6rem; }
  .an-body { padding: 1rem 1.05rem; } .an-foot { padding: .8rem 1.05rem 1rem; flex-wrap: wrap; }
  .an-foot .an-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .an-art { animation: none; } .an-card, .an-ov { transition-duration: .01s; } }
