/* Global new-update announcement bar (loaded on every public page). */
.upd-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #0056c7, #0067ed 45%, #1d7dff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 103, 237, 0.28);
}

.upd-banner__inner {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.upd-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upd-banner__link {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.upd-banner__date {
  margin-left: 8px;
  opacity: 0.85;
  font-size: 0.82rem;
}

.upd-banner__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.upd-banner__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

html.has-upd-banner .glass-nav {
  top: 58px;
}

@media (max-width: 720px) {
  .upd-banner {
    top: 8px;
    width: calc(100% - 20px);
    margin: 8px 10px 0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 103, 237, 0.32);
  }

  .upd-banner__inner {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px 8px 14px;
  }

  .upd-banner__date {
    display: none;
  }

  .upd-banner__close {
    width: 30px;
    height: 30px;
    border-radius: 999px;
  }

  html.has-upd-banner .glass-nav {
    top: 62px;
  }
}
