/* ==========================================================================
   Bennu Data — referral CTA pair
   Sits next to every "申请资料评估" button; reuses site.css tokens only.
   ========================================================================== */

.ref-pair {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.ref-referral {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.ref-referral:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.ref-referral-arrow {
  color: var(--gold-dark);
  font-size: 12px;
  line-height: 1;
}

/* Header: compact, inline with the apply button. */
.header-actions .ref-pair {
  gap: 12px;
}
.header-actions .ref-pair .ref-referral {
  font-size: 11px;
  padding-bottom: 4px;
}

/* Footer: stacked under the apply button inside the footer column. */
.footer-contact .ref-pair {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Mobile menu: full-width apply button, link underneath. */
.mobile-menu .ref-pair {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.mobile-menu .ref-pair .ihb,
.mobile-menu .ref-pair .btn {
  margin-top: 0;
  width: 100%;
}
.mobile-menu .ref-referral {
  justify-self: start;
  font-size: 12.5px;
}

/* In-flow CTA blocks. */
.glance-cta .ref-pair,
.value-foot .ref-pair,
.cta-band-inner .ref-pair,
.home-actions .ref-pair {
  flex-wrap: wrap;
}
.value-foot .ref-pair {
  justify-content: flex-end;
}
.cta-band-inner .ref-pair {
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .footer-contact .ref-pair {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  /* Mirrors .header-cta: the mobile menu carries the CTA pair on small screens. */
  .header-actions .ref-pair {
    display: none;
  }
  .value-foot .ref-pair,
  .cta-band-inner .ref-pair {
    justify-content: flex-start;
    width: 100%;
  }
  .value-slab .ref-pair {
    width: 100%;
  }
  .value-slab .ref-pair .ihb,
  .value-slab .ref-pair .btn {
    width: 100%;
  }
  .ref-referral {
    font-size: 12.5px;
  }
}
