/* =========================================================
   PGP v229 — Wider no-blue fix for Following + Liket/Saved
   السبب الحقيقي: اللون الأزرق موجود بأكثر من مصدر:
   shared-head.php / site-ui.php / pgp-app-header.php / pgp-layout-toggle.css / pgp-layout-toggle.js
   هذا الملف حماية إضافية فقط؛ ولم يتم حذف ملفات أو أكواد خارج اللون.
   ========================================================= */

/* first paint: pages must never start blue/dark */
html:has(body.pgp-page-following),
html:has(body.pgp-page-liked),
html:has(body.pgp-page-saved),
html body.pgp-page-following,
/* page surfaces */
/* override ANY old blue follow ring injected by CSS or JS */
html body :is(
  .following-wrap,.saved-wrap,
  .pgp-page-following,.pgp-page-liked,.pgp-page-saved
) :is(
  .pgp-garage-follow-ring-target,
  img.pgp-garage-follow-ring-target,
  .pgp-v68-garage-avatar,
  .garage-logo img,
  .pgp-garage-is-following img,
  .pgp-garage-is-following .pgp-garage-follow-ring-target
){
  outline-color:#ee154e!important;
  box-shadow:
    0 0 0 2.5px #ee154e,
    0 0 0 5.5px rgba(238,21,78,.14),
    0 8px 18px rgba(238,21,78,.16)!important;
}

/* Avoid blue tap highlight on these pages */
html body :is(.following-wrap,.saved-wrap) :is(a,button,.pgp-standalone-follow-toggle,.follow-btn,.unfollow-btn,.heart-btn){
  -webkit-tap-highlight-color:rgba(238,21,78,.14)!important;
  accent-color:#ee154e!important;
}

/* Liked/Saved had old dark background after our first guard. Force final page background white. */
html body.pgp-page-liked,
html body.pgp-page-saved,
html body.pgp-page-liked :is(.saved-wrap,.saved-shell,.saved-card,.product-card),
html body.pgp-page-saved :is(.saved-wrap,.saved-shell,.saved-card,.product-card){
  background-color:#ffffff!important;
  background-image:none!important;
}

/* keep text readable when old liked page was dark */
html body :is(.saved-wrap,.following-wrap) :is(h1,h2,h3,p,.saved-count,.following-count,.product-title,.garage-name){
  color:#141414!important;
}
