/* THE QWORLD affiliate visual consistency fix — 2026-10-19.
   Keeps the existing affiliate stylesheet and backend forms intact. */
.af-page .af-topbar {
  gap: 16px !important;
  padding: 14px clamp(18px, 3.2vw, 60px) !important;
  min-height: 78px !important;
  box-sizing: border-box;
}
.af-page .af-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
  text-decoration: none !important;
  color: #352244 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: .055em !important;
  white-space: nowrap;
}
.af-page .af-brand .af-site-logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: block;
  color: #76518d;
}
.af-page .af-brand .af-brand-name { display: inline; }
.af-page .af-brand .af-brand-tm {
  font-size: 8px;
  font-weight: 500;
  margin-left: 2px;
  vertical-align: super;
}
.af-page .af-brand .af-muted {
  color: #756581 !important;
  font-size: 13px;
  letter-spacing: .015em;
  font-weight: 550;
}
.af-page .af-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px 22px;
  min-width: 0;
}
.af-page .af-topnav a:not(.af-btn) { text-decoration: none; }
/* Affiliate CTA was dark purple text on a purple gradient: explicitly set
   contrast in all link states, including :visited and legacy hover rules. */
.af-public .af-topnav a.af-nav-button,
.af-public .af-topnav a.af-nav-button:link,
.af-public .af-topnav a.af-nav-button:visited,
.af-public .af-topnav a.af-nav-button:hover,
.af-public .af-topnav a.af-nav-button:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 760 !important;
  letter-spacing: .01em;
  text-shadow: none !important;
  background: #6037c9 !important;
  border: 1px solid #6037c9 !important;
  border-radius: 13px !important;
  padding: 13px 20px !important;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(80, 47, 176, .16) !important;
  text-decoration: none !important;
}
.af-public .af-topnav a.af-nav-button:hover { background: #4926ae !important; border-color: #4926ae !important; }
.af-public .af-topnav a.af-nav-button:focus-visible {
  outline: 3px solid #c6b1ff !important;
  outline-offset: 3px;
}
.af-public .af-hero-actions > a.af-btn,
.af-public .af-hero-actions > a.af-btn:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #6037c9 !important;
}
.af-public .af-hero-actions > a.af-btn:hover { background: #4926ae !important; }
.af-public .af-premium-hero { padding-top: 35px !important; padding-bottom: 25px !important; }
.af-public .af-foot,
.af-page:not(.af-public) .af-foot {
  min-height: 0 !important;
  height: auto !important;
  margin-top: 28px !important;
  padding: 17px clamp(18px, 3.2vw, 60px) 20px !important;
  line-height: 1.65;
}
@media (max-width: 1100px) {
  .af-page .af-topbar { flex-wrap: wrap; }
  .af-page .af-topnav { gap: 10px 17px; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .af-page .af-topbar { padding: 14px 16px !important; gap: 11px !important; }
  .af-page .af-brand { font-size: 12px !important; gap: 7px !important; }
  .af-page .af-brand .af-site-logo { width: 28px; height: 28px; flex-basis: 28px; }
  .af-page .af-brand .af-muted { font-size: 11px; }
  .af-page .af-topnav { width: 100%; gap: 10px 14px; }
  .af-page .af-topnav a { font-size: 12px; }
  .af-public .af-topnav a.af-nav-button { min-height: 43px; padding: 10px 13px !important; }
  .af-public .af-premium-hero { padding-top: 23px !important; padding-bottom: 17px !important; }
  .af-public .af-foot { padding: 15px 16px 20px !important; }
}
