/* aex-aff — scoped affiliate card for Amino Explained.
   Do NOT add this to global styles post 23.
   Load only on pages that show the card (mu-plugin enqueue, or a
   <style> tag beside the markup). */

.aex-aff{
  --aex-teal:#1F6B66;
  --aex-teal2:#2A8C84;
  --aex-slate:#1C2B33;
  --aex-ink:#0F1E24;
  --aex-mint:#F3F8F7;
  --aex-line:#DCE7E5;
  --aex-muted:#55636B;
  --aex-r:18px;
  --aex-shadow:0 1px 2px rgba(16,42,48,.06),0 8px 24px -8px rgba(16,42,48,.14);
  box-sizing:border-box;
  display:block;
  width:100%;
  margin:2.2em 0 2.4em;
  padding:20px 22px 18px;
  background:#fff;
  border:1px solid var(--aex-line);
  border-radius:var(--aex-r);
  box-shadow:var(--aex-shadow);
  color:var(--aex-slate);
  font-family:Manrope,system-ui,-apple-system,sans-serif;
  min-height:160px;
}
.aex-aff *,.aex-aff *::before,.aex-aff *::after{box-sizing:border-box}
.aex-aff__label{
  display:inline-block;
  margin:0 0 12px;
  padding:3px 9px;
  border:1px solid var(--aex-line);
  border-radius:999px;
  background:var(--aex-mint);
  color:var(--aex-teal);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1.3;
}
.aex-aff__inner{
  display:flex;
  align-items:center;
  gap:22px;
}
.aex-aff__media{display:none;flex:none}
.aex-aff--has-img .aex-aff__media{
  display:block;
  width:300px;
  max-width:100%;
}
.aex-aff__media a{display:block;line-height:0;text-decoration:none}
.aex-aff__media img{
  display:block;
  width:300px;
  height:250px;
  max-width:100%;
  object-fit:contain;
  background:var(--aex-mint);
  border:1px solid var(--aex-line);
  border-radius:12px;
}
/* Empty slot only — never a substitute for a vendor-supplied creative. */
.aex-aff__slot{
  width:300px;
  height:250px;
  max-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  border:1px dashed #B7C9C6;
  border-radius:12px;
  background:var(--aex-mint);
  color:var(--aex-muted);
  font-size:.85rem;
  font-weight:600;
  line-height:1.4;
}
.aex-aff__copy{flex:1;min-width:0}
.aex-aff__title{
  margin:0 0 8px;
  font-size:1.15rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--aex-slate);
  line-height:1.3;
}
.aex-aff__body{
  margin:0 0 14px;
  font-size:.98rem;
  line-height:1.55;
  color:var(--aex-slate);
}
.aex-aff__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:.95rem;
  line-height:1;
  padding:12px 18px;
  border-radius:999px;
  text-decoration:none !important;
  color:#fff !important;
  background:var(--aex-teal);
  border:2px solid var(--aex-teal);
  white-space:nowrap;
}
.aex-aff__cta:hover{background:var(--aex-teal2);border-color:var(--aex-teal2)}
.aex-aff__cta span{transition:transform .2s}
.aex-aff__cta:hover span{transform:translateX(4px)}
.aex-aff__disc{
  margin:14px 0 0;
  font-size:.82rem;
  line-height:1.5;
  color:var(--aex-muted);
}
.aex-aff__disc a{
  color:var(--aex-teal);
  font-weight:700;
  text-decoration:none;
  text-underline-offset:2px;
}
.aex-aff__disc a:hover{text-decoration:underline}

@media (max-width:640px){
  .aex-aff{
    padding:16px 16px 14px;
    min-height:200px;
  }
  .aex-aff__inner{flex-direction:column;align-items:stretch;gap:14px}
  .aex-aff--has-img .aex-aff__media{width:100%}
  .aex-aff__media img,
  .aex-aff__slot{
    width:100%;
    max-width:300px;
    height:auto;
    min-height:160px;
    margin:0 auto;
  }
  .aex-aff__media img{height:250px}
  .aex-aff__cta{white-space:normal;justify-content:center;text-align:center}
}

/* ezPeps logo card — horizontal logo on desktop and mobile.
   Add .aex-aff--stacked-mobile to use the stacked lockup on small screens. */
.aex-aff--ezpeps{min-height:160px;padding:18px 20px 16px}
.aex-aff--ezpeps .aex-aff__label{margin:0 0 8px}
.aex-aff--ezpeps .aex-aff__inner{align-items:center;gap:22px}
.aex-aff__logo{flex:none;display:block;line-height:0;text-decoration:none}
.aex-aff__logo img{display:block;width:240px;height:auto;max-width:100%}
.aex-aff__logo--stacked{display:none}
.aex-aff--ezpeps .aex-aff__body{margin:0 0 12px;font-size:.98rem;line-height:1.5}
.aex-aff--ezpeps .aex-aff__disc a{white-space:nowrap}

@media (max-width:640px){
  .aex-aff--ezpeps{min-height:0}
  .aex-aff--ezpeps .aex-aff__inner{flex-direction:column;align-items:stretch;gap:12px}
  .aex-aff--ezpeps .aex-aff__logo--horizontal{display:block;margin:0 auto}
  .aex-aff--ezpeps .aex-aff__logo--horizontal img{width:220px}
  .aex-aff--ezpeps .aex-aff__logo--stacked{display:none}
  .aex-aff--ezpeps.aex-aff--stacked-mobile .aex-aff__logo--horizontal{display:none}
  .aex-aff--ezpeps.aex-aff--stacked-mobile .aex-aff__logo--stacked{display:block;margin:0 auto}
  .aex-aff--ezpeps.aex-aff--stacked-mobile .aex-aff__logo--stacked img{width:160px;margin:0 auto}
  .aex-aff--ezpeps .aex-aff__copy{text-align:center}
  .aex-aff--ezpeps .aex-aff__cta{margin-left:auto;margin-right:auto}
  .aex-aff--ezpeps .aex-aff__disc{text-align:center}
}
