/* VeraGloss mobile-only announcement rotator v1.0.2. All overrides are <= 767px. */
@media (max-width: 767px) {
  .aurora-announcement.vgma-active {
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #172d38;
    border-bottom: 1px solid rgba(181, 154, 103, .60);
    color: #f7f4ee;
  }

  /* Hide *only* the Aurora native marquee when our mobile slider is ready. */
  .aurora-announcement.vgma-active > .vg-announcement-viewport {
    display: none !important;
  }

  .aurora-announcement.vgma-active > .vgma-panel {
    display: flex;
    height: 100%;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #172d38;
  }

  .aurora-announcement .vgma-slide {
    position: absolute;
    inset: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 240ms cubic-bezier(.4,0,.2,1),
                transform 240ms cubic-bezier(.4,0,.2,1);
    will-change: transform, opacity;
    pointer-events: none;
  }

  .aurora-announcement .vgma-slide.vgma-exiting {
    opacity: 0;
    transform: translate3d(-72px,0,0);
  }

  .aurora-announcement .vgma-slide.vgma-before-enter {
    opacity: 0;
    transform: translate3d(72px,0,0);
    transition: none;
  }

  .aurora-announcement .vgma-slide.vgma-frozen {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    will-change: auto;
  }

  .aurora-announcement .vgma-message {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: #f7f4ee;
    font-family: inherit;
    font-size: clamp(8px,2.6vw,10px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .aurora-announcement .vgma-diamond {
    display: block;
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    background: #b59a67;
    opacity: .90;
    border-radius: 1px;
    transform: rotate(45deg);
  }

  /* The entire mobile bar is a keyboard-accessible pause/resume surface.
     No visible pause icon and no reserved right-side width: text is truly centred. */
  .aurora-announcement .vgma-toggle {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
    opacity: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .aurora-announcement .vgma-toggle:focus-visible {
    outline: 2px solid #d8c198;
    outline-offset: -3px;
  }
  .aurora-announcement .vgma-toggle:active {
    background: rgba(181,154,103,.07);
  }

  .aurora-announcement .vgma-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
  }
}

/* Very narrow phones: keep the longest announcement fully readable. */
@media (max-width: 300px) {
  .aurora-announcement .vgma-slide { inset-inline: 0; padding-inline: 6px; gap: 6px; }
  .aurora-announcement .vgma-message { font-size: 7px; letter-spacing: .015em; }
}

/* The mobile display never changes desktop presentation. */
@media (min-width: 768px) {
  .aurora-announcement > .vgma-panel { display: none !important; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .aurora-announcement .vgma-slide {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
  .aurora-announcement .vgma-toggle { display: none !important; }
}
