/* Only the published Spectrum dialog receives these tokens and layout overrides. */
.announcement-surface[data-spectrum-announcement] {
  --spectrum-surface: #fcfbff;
  --spectrum-text: #242237;
  --spectrum-secondary: #4c485f;
  --spectrum-rule: #ded7eb;
  --spectrum-title: #342457;
  --spectrum-prism-rose: #77258d;
  --spectrum-prism-core: #394ac5;
  --spectrum-prism-blue: #12638a;
  --spectrum-image: #1c1928;
  --spectrum-blue: #1d5095;
  --spectrum-green: #176350;
  --spectrum-gold: #825008;
  --spectrum-violet: #68439b;
  --spectrum-action: #493783;
  --spectrum-action-text: #fff;
  --spectrum-gutter: clamp(16px, 3.2vw, 30px);
  --spectrum-gap: 14px;
  display: flex;
  flex-direction: column;
  gap: var(--spectrum-gap);
  width: calc(100% - 24px);
  max-width: 888px;
  max-height: calc(100dvh - 24px);
  padding: 0 0 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--spectrum-rule) transparent;
  background: var(--spectrum-surface);
  color: var(--spectrum-text);
  border-radius: 20px;
  box-shadow: 0 30px 95px rgb(10 5 28 / 40%);
}
.dark .announcement-surface[data-spectrum-announcement] {
  --spectrum-surface: #171520;
  --spectrum-text: #f5efff;
  --spectrum-secondary: #d3cce4;
  --spectrum-rule: #403654;
  --spectrum-title: #f0e7ff;
  --spectrum-prism-rose: #ff97dd;
  --spectrum-prism-core: #fff;
  --spectrum-prism-blue: #90e9ff;
  --spectrum-image: #100e18;
  --spectrum-blue: #9bccff;
  --spectrum-green: #91e0bb;
  --spectrum-gold: #ffd295;
  --spectrum-violet: #dcbcff;
  --spectrum-action: #dcc7ff;
  --spectrum-action-text: #24133c;
}
[data-slot='dialog-overlay']:has(~ .announcement-surface[data-spectrum-announcement]) {
  background: rgb(8 5 14 / 86%);
}
[data-spectrum-announcement] > [data-slot='dialog-header'] {
  gap: 7px;
  margin: 4px var(--spectrum-gutter) 0;
  padding-right: 0;
}
[data-spectrum-announcement] [data-slot='dialog-title'] {
  width: fit-content;
  max-width: 100%;
  color: var(--spectrum-title);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
[data-spectrum-announcement] > [data-slot='dialog-header'] .announcement-meta { display: none; }
[data-spectrum-announcement] > img {
  display: block;
  order: -1;
  align-self: center;
  flex: none;
  width: 100%;
  max-width: none;
  height: clamp(260px, 44dvh, 410px);
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: var(--spectrum-image);
  border-radius: 0;
}
[data-spectrum-announcement] > :is(.announcement-detail-body, .announcement-detail-extra, [data-slot='dialog-footer']) { display: none; }
.spectrum-copy { margin-inline: var(--spectrum-gutter); color: var(--spectrum-secondary); }
.spectrum-copy ::selection { background: var(--spectrum-action); color: var(--spectrum-action-text); }
.spectrum-lead {
  margin: 0 0 10px;
  color: var(--spectrum-text);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  font-weight: 700;
}
.spectrum-models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--spectrum-rule);
}
.spectrum-model {
  --spectrum-model-ink: var(--spectrum-blue);
  --spectrum-beat: 0ms;
  display: grid;
  gap: 4px;
  min-width: 0;
  border-top: 1px solid var(--spectrum-rule);
  padding: 10px 0;
}
.spectrum-model:nth-child(2) { --spectrum-model-ink: var(--spectrum-green); --spectrum-beat: 180ms; }
.spectrum-model:nth-child(3) { --spectrum-model-ink: var(--spectrum-gold); --spectrum-beat: 360ms; }
.spectrum-model:nth-child(4) { --spectrum-model-ink: var(--spectrum-violet); --spectrum-beat: 540ms; }
.spectrum-model-name {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--spectrum-model-ink);
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.spectrum-model-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  width: fit-content;
  max-width: 100%;
  color: color-mix(in srgb, var(--spectrum-model-ink) 33%, var(--spectrum-text));
  font-weight: 590;
}
[data-spectrum-announcement] :is(a, button):focus-visible { outline: 2px solid var(--spectrum-blue); outline-offset: 2px; }
[data-spectrum-announcement] > button[aria-label] {
  position: sticky;
  order: -2;
  top: 8px;
  right: auto;
  z-index: 2;
  flex: none;
  align-self: flex-end;
  margin: 8px 8px calc(-52px - var(--spectrum-gap)) 0;
  min-width: 44px;
  min-height: 44px;
  background: rgb(19 15 31 / 92%);
  color: #fff;
}
[data-spectrum-announcement] > button[aria-label]:hover { background: #3c3055; color: #fff; }

/* CSS adaptation of Vue Bits Shiny Text / Gradient Text: move one clipped
   spectral band across live glyphs. No JS animation runtime or split text. */
@supports (background-clip: text) {
  [data-spectrum-announcement] [data-slot='dialog-title'],
  [data-spectrum-announcement] :is(.spectrum-model-name, .spectrum-model-description) {
    background-image: linear-gradient(112deg, currentColor 36%, var(--spectrum-prism-rose) 43%,
      var(--spectrum-prism-core) 49%, var(--spectrum-prism-blue) 55%, currentColor 64%);
    background-position: 100% 50%;
    background-size: 310% 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  [data-spectrum-announcement][data-open] [data-slot='dialog-title'] {
    animation: spectrum-title-prism 1.55s 220ms cubic-bezier(.34, .06, .35, .94) 2;
  }
  [data-spectrum-announcement][data-open] .spectrum-model-name {
    animation: spectrum-line-prism 1.3s calc(510ms + var(--spectrum-beat)) ease-out both;
  }
  [data-spectrum-announcement][data-open] .spectrum-model-description {
    animation: spectrum-line-prism 1.35s calc(730ms + var(--spectrum-beat)) ease-out both;
  }
  @media (hover: hover) {
    [data-spectrum-announcement][data-open] [data-slot='dialog-title']:hover { animation: spectrum-prism-replay 1.25s ease-out; }
    .spectrum-model:hover :is(.spectrum-model-name, .spectrum-model-description) { animation: spectrum-prism-replay 1.15s ease-out !important; }
  }
  [data-spectrum-announcement] :is([data-slot='dialog-title'], .spectrum-model-name, .spectrum-model-description)::selection {
    -webkit-text-fill-color: var(--spectrum-action-text);
    background-color: var(--spectrum-action);
  }
  @media (prefers-reduced-motion: reduce), (forced-colors: active) {
    [data-spectrum-announcement][data-open] :is([data-slot='dialog-title'], .spectrum-model-name, .spectrum-model-description) {
      animation: none !important;
      background-image: none;
      -webkit-text-fill-color: currentColor;
    }
  }
}
@keyframes spectrum-title-prism {
  0%, 8% { background-position: 100% 50%; }
  88%, 100% { background-position: 0% 50%; }
}
@keyframes spectrum-line-prism {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}
@keyframes spectrum-prism-replay {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}
@media (max-width: 600px) {
  .announcement-surface[data-spectrum-announcement] { --spectrum-gap: 11px; padding-bottom: 18px; border-radius: 16px; }
  [data-spectrum-announcement] > img { height: auto; aspect-ratio: 16 / 9; }
  [data-spectrum-announcement] [data-slot='dialog-title'] { text-wrap: wrap; }
  .spectrum-models { grid-template-columns: minmax(0, 1fr); }
  .spectrum-model { padding-block: 8px; }
  .spectrum-model-name { font-size: 1rem; }
}
