/* Announce bar: full-width brand-gradient chrome above the header.
   Layered to read premium, not flat: brand gradient base, a subtle
   top-to-bottom darkening veil for legibility, a crisp 1px light
   inner highlight at the top, and a fine hairline at the bottom. */

.announce {
  position: relative;
  isolation: isolate;
  background:
    /* Top-to-bottom darkening veil keeps white text legible on the
       mid-teal band while preserving brand saturation on the edges. */
    linear-gradient(
      180deg,
      rgb(0 0 0 / 12%) 0%,
      rgb(0 0 0 / 28%) 100%
    ),
    /* Soft teal corona anchored to the left edge so the strip has
       directional energy toward the CTA. */
    radial-gradient(
      60% 180% at 0% 50%,
      color-mix(in oklch, var(--brand-teal) 40%, transparent) 0%,
      transparent 70%
    ),
    /* Mirror blue corona on the right. */
    radial-gradient(
      60% 180% at 100% 50%,
      color-mix(in oklch, var(--brand-blue) 45%, transparent) 0%,
      transparent 70%
    ),
    /* Brand base. */
    linear-gradient(
      90deg,
      var(--brand-teal) 0%,
      var(--brand-blue) 100%
    );
  color: var(--on-dark-foreground);
  font-size: var(--fs-sm);

  /* 1px bright gleam at the top edge + 1px cool shadow at the bottom.
     Plus a subtle outer drop so the strip floats above the header. */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    inset 0 -1px 0 rgb(0 0 0 / 22%),
    0 1px 0 0 color-mix(in oklch, var(--brand-blue) 45%, transparent);

  /* Local dark-context overrides so descendants inherit correctly */
  --color-foreground: var(--on-dark-foreground);
  --color-muted-foreground: color-mix(in oklch, #fff 82%, transparent);
  --color-border: rgb(255 255 255 / 18%);
  --color-accent: rgb(255 255 255 / 12%);
  --color-accent-foreground: #fff;
}

/* Subtle hash texture overlay so the band isn't a flat paint. Same
   45° crosshatch pattern used elsewhere on the site, but tuned for
   the bright brand gradient backdrop (white lines, very low alpha). */
.announce::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 9px,
      rgb(255 255 255 / 5%) 9px,
      rgb(255 255 255 / 5%) 10px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 9px,
      rgb(255 255 255 / 3%) 9px,
      rgb(255 255 255 / 3%) 10px
    );
}

.announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

/* --- Pulse dot (inside .announce__message before icon) ----------- */

.announce__message {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--font-weight-medium);
  color: #fff;
  text-shadow: 0 1px 0 rgb(0 0 0 / 14%);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.announce__message .pulse-dot {
  --pulse-size: 0.5rem;
  width: var(--pulse-size);
  height: var(--pulse-size);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 rgb(255 255 255 / 60%);
  animation: announce-dot-pulse 2.4s var(--ease) infinite;
  flex-shrink: 0;
}

@keyframes announce-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 55%); }
  50%      { box-shadow: 0 0 0 5px rgb(255 255 255 / 0%); }
}

/* --- CTA ---------------------------------------------------------- */

.announce__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-medium);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 9999px;
  flex-shrink: 0;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.announce__cta:hover {
  background: #fff;
  color: color-mix(in oklch, var(--brand-blue) 70%, #000);
  border-color: #fff;
  transform: translateY(-1px);
}
.announce__cta .icon {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform var(--dur-fast) var(--ease);
}
.announce__cta:hover .icon { transform: translateX(3px); }

/* --- Mobile ------------------------------------------------------- */

@media (max-width: 720px) {
  .announce__message { font-size: var(--fs-xs); }
  .announce__cta span { display: none; }
  .announce__cta { padding: 0.3125rem 0.625rem; }
}
