.bido-affiliate-progress-card {
  margin-top: 14px;
  padding: 18px;
}

.bido-progress-header {
  align-items: baseline;
}

.bido-progress-gap {
  font-size: var(--bx-text-sm);
}

/* Layout-only: the tier progress bar reads .prog / .prog-flat for its look. */
.bido-progress-bar {
  margin-top: 10px;
}

.bido-progress-scale {
  justify-content: space-between;
  margin-top: 8px;
  font-size: var(--bx-text-xs);
}

/* The five-column ledger lives in a half-width grid card; the shared 640px
   table floor forced a horizontal scroll there and clipped the trailing
   STATUS pills at the card edge. Its short columns fit, so let the table
   shrink with the card. */
.bido-affiliate-ledger .tbl { min-width: 0; }

.bido-affiliate-ref-box {
  gap: 6px;
  padding: 10px 12px;
  background: var(--bx-paper-2);
  border-radius: var(--bx-r-sm);
}

.bido-affiliate-ref-code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--bx-text-sm);
}

.bido-affiliate-heading {
  margin-top: 14px;
  margin-bottom: 8px;
}

.bido-affiliate-link-row {
  padding: 6px 0;
  font-size: var(--bx-text-sm);
}

.bido-affiliate-link-row .path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bido-affiliate-link-row .label {
  flex: 1;
}

/* Portal build-out: the surfaces below all hang off the shared affiliate shell
   (_affiliate_shell), so these are layout-only additions over the existing
   ref-box / link-row / progress vocabulary above. */

/* Shell side card — the affiliate's identity, code, and account actions under
   the nav. Reuses .bido-side-card; these add the rhythm for the rows the
   affiliate card carries over the vendor one. */
.bido-affiliate-side-code {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--bx-ink-3);
}

.bido-affiliate-side-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* Dashboard: full-width CTA under the main-link box, and the help paragraph
   beneath the link tools. */
.bido-affiliate-fullwidth {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.bido-affiliate-help {
  margin-top: 10px;
}

/* Links page: each deep-link row stacks its label over the URL on the left so
   the copy button sits at the trailing edge. The .path truncation is inherited
   from .bido-affiliate-link-row .path above. */
.bido-affiliate-link-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

/* A ready-to-share copy block — a quoted snippet with its own copy action. */
.bido-affiliate-snippet {
  margin-top: 10px;
  padding: 12px;
  background: var(--bx-paper-2);
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-sm);
}

.bido-affiliate-snippet p {
  margin-bottom: 8px;
  font-size: var(--bx-text-sm);
  color: var(--bx-ink-2);
}

.bido-affiliate-steps {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: decimal;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--bx-text-sm);
  color: var(--bx-ink-2);
}

/* Enrolment: the tier-ladder aside shown on the apply page, the apply-status /
   rejection states, and the admin approval-queue cells + reject disclosure. */
.bido-affiliate-tier-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bido-affiliate-tier-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bido-affiliate-tier-list li .pill {
  margin-left: auto;
}

.bido-affiliate-apply-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bido-affiliate-apply-status p {
  margin-top: 4px;
}

.bido-affiliate-apply-rejected {
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(var(--bx-amber-rgb), 0.10);
  border-color: rgba(var(--bx-amber-rgb), 0.28);
}

.bido-affiliate-apply-rejected p {
  margin-top: 4px;
}

.bido-affiliate-app-pitch {
  max-width: 22rem;
}

.bido-affiliate-app-note {
  margin-top: 4px;
  color: var(--bx-warn);
}

/* Reject is a disclosure: the summary reads as a button, and opening it reveals
   the reason field inline so the admin can't reject without a note. */
.bido-affiliate-reject {
  display: inline-block;
}

.bido-affiliate-reject > summary {
  list-style: none;
  cursor: pointer;
}

.bido-affiliate-reject > summary::-webkit-details-marker {
  display: none;
}

.bido-affiliate-reject-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.bido-affiliate-reject-form .input {
  min-width: 12rem;
}

/* ===========================================================================
   Partner landing (/affiliate for prospective affiliates) — a public marketing
   page on the dark surface, mirroring the home bands' rhythm but self-contained.
   The accent span reuses the theme-aware .bido-home-accent leaf utility.
   =========================================================================== */
.bido-affiliate-inner {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.bido-affiliate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bx-accent);
}

.bido-affiliate-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--bx-r-pill);
  background: var(--bx-accent);
  box-shadow: 0 0 10px rgba(var(--bx-accent-rgb), 0.8);
}

.bido-affiliate-hero {
  padding-block: clamp(44px, 8vw, 88px) clamp(28px, 5vw, 52px);
}

.bido-affiliate-landing h1 {
  margin-top: 14px;
  font-family: var(--bx-font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--bx-ink);
}

.bido-affiliate-lead {
  max-width: 44rem;
  margin-top: 16px;
  color: var(--bx-ink-2);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}

.bido-affiliate-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bido-affiliate-proof {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 40rem;
}

.bido-affiliate-proof li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bx-ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.bido-affiliate-proof li svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.bido-affiliate-band {
  padding-block: clamp(40px, 6vw, 72px);
  border-block-start: 1px solid var(--bx-line);
}

/* A faint accent wash separates the alternating band without a hardcoded fill. */
.bido-affiliate-band-alt {
  background: rgba(var(--bx-accent-rgb), 0.04);
}

.bido-affiliate-band-head {
  max-width: 44rem;
  margin-bottom: 28px;
}

.bido-affiliate-landing h2 {
  font-family: var(--bx-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--bx-ink);
}

.bido-affiliate-band-sub {
  margin-top: 12px;
  max-width: 40rem;
}

.bido-affiliate-how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
}

.bido-affiliate-how-card {
  padding: 20px;
}

.bido-affiliate-how-num {
  color: var(--bx-accent);
  font-size: var(--bx-text-sm);
}

.bido-affiliate-how-card strong {
  display: block;
  margin: 12px 0 6px;
}

.bido-affiliate-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 16px;
}

.bido-affiliate-tier-tile {
  padding: 20px;
}

.bido-affiliate-tile-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bido-affiliate-tile-rate {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--bx-ink);
}

.bido-affiliate-tile-note {
  margin-top: 8px;
}

.bido-affiliate-closing {
  padding-block: clamp(48px, 7vw, 84px);
  border-block-start: 1px solid var(--bx-line);
  text-align: center;
}

.bido-affiliate-closing-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.bido-affiliate-closing .bido-affiliate-lead {
  margin-inline: auto;
}

.bido-affiliate-closing .bido-affiliate-cta-row {
  justify-content: center;
}

.bido-affiliate-footer {
  border-block-start: 1px solid var(--bx-line);
  padding-block: 26px;
}

.bido-affiliate-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bido-affiliate-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bido-affiliate-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.bido-affiliate-footer-links a {
  color: var(--bx-ink-2);
  font-size: var(--bx-text-sm);
}

/* === Responsive — partner landing ===
   Hero/closing CTAs go full-width once the row is too narrow to sit side by
   side, so the tap targets stay comfortable on a phone. */
@media (max-width: 32rem) {
  .bido-affiliate-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bido-affiliate-cta {
    width: 100%;
    justify-content: center;
  }
}

