/* AwayDay 2.1.7 — profile legibility in the light appearance.
 * The profile shortcode still uses the original --ad-text token and inline
 * dark-background social chips. Keep fixes scoped to the profile header so
 * match-passport, dark cards and other plugin UI are not unintentionally inverted.
 */
body.light-mode .ad-next-app .ad-profile .ad-profile-header {
  --ad-text: #273a52;
  --ad-text-dim: #485d77;
  color: #273a52;
}

body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-joined,
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta > p {
  color: #485d77 !important;
}

/* Follower/following links currently inherit the dark theme's #c8daf0. */
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta > p a {
  color: #274565 !important;
  text-decoration: none;
  font-weight: 650;
}
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta > p a strong {
  color: #152238 !important;
  font-weight: 800;
}
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta > p a:hover {
  color: #164c89 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tier colours are stored as inline styles by the original stats engine.
 * Provide legible equivalents for its seven defined ranks without removing
 * their visual distinction. These also apply to the "next tier" label. */
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#FFD700"] { color: #785900 !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#C0C0C0"] { color: #4b5567 !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#00c851"] { color: #146d3e !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#4a9eff"] { color: #195392 !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#9b6cff"] { color: #6239ac !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#6a8aaa"] { color: #345579 !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header :is(.ad-profile-tier, .ad-profile-meta > p > span)[style*="#4a4a5a"] { color: #35475d !important; }
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta > p > span[style*="color:"] {
  font-weight: 750;
}

/* The old global light-mode override makes hardcoded dark social chips white,
 * but their inline label text remains #fff and disappears. Keep the chips
 * intentionally light with a readable label and a subtle interactive state. */
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta a[target="_blank"][rel~="noopener"][style*="background:#0f1729"],
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta a[target="_blank"][rel~="noopener"][style*="background: #0f1729"] {
  color: #20364f !important;
  background: #fff !important;
  border-color: #b8c9df !important;
  font-weight: 750;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta a[target="_blank"][rel~="noopener"][style*="background:#0f1729"]:hover,
body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta a[target="_blank"][rel~="noopener"][style*="background: #0f1729"]:hover {
  background: #edf4fc !important;
  border-color: #6b8bad !important;
  transform: translateY(-1px);
}
body.light-mode .ad-next-app .ad-profile .ad-profile-header a:focus-visible {
  outline: 2px solid #2b65b3;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  body.light-mode .ad-next-app .ad-profile .ad-profile-header .ad-profile-meta a[target="_blank"] {transition: none;}
}
