/*
 * Atlantic Image Defense — v451.3
 * Public scroll paint stability for outlined controls and selection cards.
 *
 * Scope:
 * - homepage visual-monitoring status controls;
 * - public secondary outline buttons;
 * - public request-center selection cards;
 * - homepage special-intake cards.
 *
 * The patch removes unnecessary compositing layers, overlapping inner strokes
 * and transform-based hover movement from the affected elements. It does not
 * change markup, routing, forms, JavaScript behaviour or server-side logic.
 */

/* The animated light waves, backdrop blur and screen blend were being painted
 * below translucent cards. Chromium/WebKit can re-rasterize these stacked
 * layers while scrolling and make thin borders appear to flash. Keep the hub
 * and its static rings, but remove the travelling under-card paint layers. */
body.aid-home-page .avm-home-hub-wave {
  display: none !important;
  animation: none !important;
}

body.aid-home-page .avm-home-hub,
body.aid-home-page .avm-home-hub > i {
  animation: none !important;
  will-change: auto !important;
}

body.aid-home-page .avm-home-hub {
  filter: none !important;
}

body.aid-home-page .avm-home-teaser-visual {
  transform: none !important;
  will-change: auto !important;
  background-clip: padding-box !important;
  box-shadow:
    0 32px 76px rgba(0, 0, 0, .34),
    0 22px 58px rgba(204, 15, 30, .15) !important;
}

body.aid-home-page .avm-home-teaser-visual::before {
  mix-blend-mode: normal !important;
  opacity: .72 !important;
}

body.aid-home-page .avm-home-chip {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  will-change: auto !important;
  background-clip: padding-box !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26) !important;
}

/* Status controls: one stable border and one shadow only. The former inset
 * highlight combined with the outer border produced a visually doubled edge. */
body.aid-home-page .avm-home-chip .avm-home-chip-status {
  transform: none !important;
  will-change: auto !important;
  background-clip: padding-box !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16) !important;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease !important;
}

body.aid-home-page .avm-home-chip .avm-home-chip-status:hover,
body.aid-home-page .avm-home-chip .avm-home-chip-status:focus-visible {
  transform: none !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .20) !important;
}

/* Secondary outline buttons: replace the transparent physical border with one
 * inset paint ring. This preserves the same dimensions and visual language but
 * avoids a sub-pixel border being repeatedly re-rasterized during scrolling. */
body.aid-context-public .btn_two {
  border-color: transparent !important;
  transform: none !important;
  will-change: auto !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 0 0 1px #18fef5 !important;
  transition:
    color .20s ease,
    background-color .20s ease,
    box-shadow .20s ease !important;
}

body.aid-context-public .btn_two:hover,
body.aid-context-public .btn_two:focus-visible {
  transform: none !important;
  box-shadow: inset 0 0 0 1px #18fef5 !important;
}

/* Request cards and public intake cards no longer move onto a separate
 * transform layer on hover. Selection keeps one clear teal edge, not a border
 * plus an overlapping inset stroke. */
body.aid-request-center-page .aid-request-type-card,
body.aid-home-page .aid-home-special-intake-card {
  transform: none !important;
  will-change: auto !important;
  background-clip: padding-box !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease !important;
}

body.aid-request-center-page .aid-request-type-card:hover,
body.aid-request-center-page .aid-request-type-card:focus-visible,
body.aid-home-page .aid-home-special-intake-card:hover,
body.aid-home-page .aid-home-special-intake-card:focus-visible {
  transform: none !important;
}

body.aid-request-center-page .aid-request-type-card.is-active {
  border-color: #18d7d0 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18) !important;
}

/* Preserve a strong and independent keyboard focus indication. */
body.aid-context-public .btn_two:focus-visible,
body.aid-request-center-page .aid-request-type-card:focus-visible,
body.aid-home-page .aid-home-special-intake-card:focus-visible,
body.aid-home-page .avm-home-chip .avm-home-chip-status:focus-visible {
  outline: 2px solid #9ffffa !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  body.aid-context-public .btn_two,
  body.aid-request-center-page .aid-request-type-card,
  body.aid-home-page .aid-home-special-intake-card,
  body.aid-home-page .avm-home-chip .avm-home-chip-status {
    transition: none !important;
  }
}
