/* Relaunch announcement: the accent strip under the topbar, the overlay that
   carries the full notice, and the shared body copy used by both the overlay
   and /whats-new. */

/* ------------------------------------------------------------------
   Strip — deliberately loud. Carried by the tally accent, not by size.
   Sits in normal flow directly under the topbar and scrolls away.
   ------------------------------------------------------------------ */

.announcement-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px calc(var(--pad) / 2);
  border-bottom: 1px solid color-mix(in srgb, var(--tally) 45%, transparent);
  background: var(--tally-soft);
  color: var(--txt);
}

.announcement-strip[hidden] {
  display: none !important;
}

.announcement-strip__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--txt);
  text-decoration: none;
  text-underline-offset: 3px;
}

.announcement-strip__link:hover,
.announcement-strip__link:focus-visible {
  color: var(--tally);
  text-decoration: underline;
}

.announcement-strip__dismiss {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--txt-faint);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.announcement-strip__dismiss:hover,
.announcement-strip__dismiss:focus-visible {
  background: var(--bg-hover);
  color: var(--txt);
}

/* ------------------------------------------------------------------
   Overlay — same shape as the account preview dialog, but wider and
   with a scrolling body: the notice is long and must never scroll the
   page behind it.
   ------------------------------------------------------------------ */

.announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px 20px;
  background: rgba(6, 10, 15, .58);
  backdrop-filter: blur(3px);
}

.announcement-overlay[hidden] {
  display: none !important;
}

.announcement-overlay__backdrop {
  position: absolute;
  inset: 0;
}

.announcement-overlay__dialog {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.announcement-overlay__header {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.announcement-overlay__eyebrow {
  margin: 0 0 4px;
}

.announcement-overlay__header h2 {
  font-size: 23px;
  line-height: 1.05;
}

.announcement-overlay__close {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--txt-dim);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.announcement-overlay__close:hover,
.announcement-overlay__close:focus-visible {
  background: var(--bg-hover);
  color: var(--txt);
}

.announcement-overlay__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ------------------------------------------------------------------
   Body copy — shared by the overlay and the /whats-new page.
   ------------------------------------------------------------------ */

.announcement-copy {
  max-width: 62ch;
  color: var(--txt);
  font-size: 15px;
  line-height: 1.62;
}

.announcement-copy p {
  margin: 0 0 14px;
}

.announcement-copy ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.announcement-copy li {
  margin: 0 0 6px;
}

.announcement-copy h3 {
  margin: 26px 0 10px;
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.2;
}

.announcement-copy strong {
  color: var(--txt);
  font-weight: 600;
}

.announcement-copy em {
  color: var(--txt-dim);
}

.announcement-copy__signoff {
  margin-top: 22px;
  color: var(--txt-dim);
  font-style: italic;
}

.announcement-page {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px var(--pad) 90px;
}

.announcement-page .announcement-copy {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .announcement-page {
    padding-bottom: calc(var(--tabbar-h) + 30px);
  }
}

@media (max-width: 640px) {
  .announcement-strip {
    padding: 8px 12px;
    gap: 6px;
  }

  .announcement-strip__link {
    font-size: 14px;
  }

  .announcement-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .announcement-overlay__dialog {
    width: 100%;
    max-height: 88vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--r) var(--r) 0 0;
  }
}
