body.affiliate-program-body {
  --ap-bg: #eaf5f2;
  --ap-ink: #17292c;
  --ap-muted: #5d7070;
  --ap-panel: #fbf7ec;
  --ap-surface: #fffaf0;
  --ap-line: rgba(52, 95, 97, .28);
  --ap-border: #244e51;
  --ap-depth: rgba(35, 76, 79, .34);
  --ap-cta: #214d50;
  --ap-cta-ink: #fffaf0;
  --ap-teal: #5a9296;
  --ap-teal-soft: #c8dcdb;
  --ap-ochre: #e8d8b2;
  --ap-moss: #cedbcb;
  --ap-plum: #d9c7d7;
  --ap-blue: #c7dfe4;
  --ap-shadow: 7px 7px 0 var(--ap-depth);
  --ap-card-shadow: 0 22px 60px rgba(47, 91, 94, .15);
  --ap-max: 1180px;
  --zh-bg: var(--ap-bg);
  --zh-ink: #183033;
  --zh-muted: var(--ap-muted);
  --zh-panel: var(--ap-panel);
  --zh-surface: var(--ap-surface);
  --zh-border: #345f61;
  --zh-depth: #2f5b5e;
  --zh-cta: var(--ap-cta);
  --zh-cta-ink: var(--ap-cta-ink);
  --zh-teal: var(--ap-teal);
  --zh-teal-soft: var(--ap-teal-soft);
  --zh-ochre: var(--ap-ochre);
  --zh-line: var(--ap-line);
  --zh-shadow: 7px 7px 0 rgba(47, 91, 94, .32);
  --zh-max: var(--ap-max);
  --zh-paper: var(--ap-bg);
  --zh-surface-strong: var(--ap-surface);
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ap-ink);
}

html[data-theme="dark"] body.affiliate-program-body {
  --ap-bg: #0f1b1e;
  --ap-ink: #f6efe4;
  --ap-muted: #b8c6c2;
  --ap-panel: #182629;
  --ap-surface: #101c1f;
  --ap-line: rgba(246, 239, 228, .18);
  --ap-border: #789093;
  --ap-depth: rgba(2, 7, 8, .68);
  --ap-cta: #e8d8b2;
  --ap-cta-ink: #102023;
  --ap-teal: #77aaa9;
  --ap-teal-soft: #244144;
  --ap-ochre: #5b4b2d;
  --ap-moss: #2c4a38;
  --ap-plum: #4c384e;
  --ap-blue: #263f4a;
  --ap-card-shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --zh-bg: var(--ap-bg);
  --zh-ink: var(--ap-ink);
  --zh-muted: var(--ap-muted);
  --zh-panel: var(--ap-panel);
  --zh-surface: var(--ap-surface);
  --zh-border: #526569;
  --zh-depth: #050808;
  --zh-cta: var(--ap-cta);
  --zh-cta-ink: var(--ap-cta-ink);
  --zh-teal: #2f716d;
  --zh-teal-soft: #c8dcdb;
  --zh-ochre: #d9bc78;
  --zh-line: var(--ap-line);
  --zh-shadow: 7px 7px 0 rgba(0, 0, 0, .44);
  color: var(--ap-ink) !important;
}

.affiliate-program-body a {
  color: inherit;
}

.affiliate-program-body .ap-badge,
.affiliate-program-body .ap-number,
.affiliate-program-body .ap-dot {
  display: grid;
  place-items: center;
  border: 2px solid var(--ap-border);
  font-weight: 950;
}

.affiliate-program-body .ap-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 2px solid var(--ap-border);
  border-radius: 12px;
  background: var(--ap-surface);
  box-shadow: 3px 3px 0 var(--ap-depth);
  color: var(--ap-ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.affiliate-program-body .ap-button-primary {
  background: var(--ap-cta);
  color: var(--ap-cta-ink);
}

.affiliate-program-page {
  color: var(--ap-ink);
}

.ap-shell {
  width: min(var(--ap-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.ap-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.ap-page-tab {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid var(--ap-border);
  border-radius: 14px;
  background: var(--ap-surface);
  box-shadow: 3px 3px 0 var(--ap-depth);
  color: var(--ap-ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.ap-page-tab.is-active {
  background: var(--ap-cta);
  color: var(--ap-cta-ink);
}

#affiliate-program,
#affiliate-terms {
  scroll-margin-top: 110px;
}

.ap-status-grid,
.ap-hero,
.ap-section-head,
.ap-split,
.ap-final-panel {
  display: grid;
  gap: 24px;
}

.ap-status-grid {
  grid-template-columns: 1fr 1fr 1fr .85fr;
  gap: 14px;
  margin-bottom: 26px;
}

.ap-stat,
.ap-hero-copy,
.ap-side-panel,
.ap-section-panel,
.ap-step,
.ap-profile,
.ap-benefit,
.ap-final-panel {
  border: 1px solid var(--ap-line);
  background: color-mix(in srgb, var(--ap-surface) 92%, transparent);
  box-shadow: var(--ap-card-shadow);
}

.ap-stat {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 20px;
}

.ap-number {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: var(--ap-teal-soft);
}

.ap-stat:nth-child(2) .ap-number {
  background: var(--ap-ochre);
}

.ap-stat:nth-child(3) .ap-number {
  background: var(--ap-moss);
}

.ap-stat:nth-child(4) .ap-number {
  background: var(--ap-plum);
}

.ap-stat strong,
.ap-step h3,
.ap-profile h3,
.ap-benefit h3 {
  display: block;
  color: var(--ap-ink);
  font-size: 18px;
  line-height: 1.12;
}

.ap-stat small,
.ap-step p,
.ap-profile p,
.ap-benefit p,
.ap-lead,
.ap-side-panel p,
.ap-section-head p,
.ap-final-panel p {
  color: var(--ap-muted);
  font-weight: 720;
}

.ap-hero {
  grid-template-columns: minmax(0, .95fr) minmax(390px, .72fr);
  align-items: stretch;
}

.ap-hero-copy,
.ap-side-panel,
.ap-section-panel,
.ap-final-panel {
  min-width: 0;
  border: 2px solid var(--ap-border);
  border-radius: 24px;
  box-shadow: var(--ap-shadow);
}

.ap-hero-copy {
  min-height: 570px;
  padding: clamp(34px, 5vw, 58px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ap-surface) 96%, transparent), color-mix(in srgb, var(--ap-panel) 86%, transparent)),
    var(--ap-panel);
}

.ap-brand-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 8px 14px 8px 8px;
  border: 2px solid var(--ap-border);
  border-radius: 18px;
  background: var(--ap-surface);
  box-shadow: 4px 4px 0 var(--ap-depth);
}

.ap-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ap-teal-soft);
  font: 900 22px/1 Georgia, "Times New Roman", serif;
}

.ap-brand-strip strong {
  display: block;
  color: var(--ap-ink);
  font: 800 18px/1 Georgia, "Times New Roman", serif;
}

.ap-brand-strip small,
.ap-eyebrow,
.ap-kicker,
.ap-meta,
.ap-hero-map small,
.ap-mini-line span {
  text-transform: uppercase;
}

.ap-brand-strip small {
  display: block;
  margin-top: 4px;
  color: var(--ap-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}

.ap-eyebrow {
  margin: 0 0 16px;
  color: color-mix(in srgb, var(--ap-teal) 75%, var(--ap-ink) 25%);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}

.affiliate-program-page h1,
.affiliate-program-page h2,
.affiliate-program-page h3,
.affiliate-program-page p {
  margin: 0;
}

.affiliate-program-page h1,
.affiliate-program-page h2,
.affiliate-program-page h3 {
  color: var(--ap-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.affiliate-program-page h1 {
  max-width: 650px;
  font-size: clamp(52px, 6vw, 78px);
  line-height: .92;
}

.ap-lead {
  max-width: 650px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.55;
}

.ap-actions,
.ap-chip-row,
.ap-rate-row,
.ap-mini-line,
.ap-final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ap-actions {
  margin-top: 30px;
}

.ap-chip-row {
  margin-top: 36px;
}

.ap-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ap-surface) 70%, transparent);
  color: var(--ap-muted);
  font-size: 12px;
  font-weight: 900;
}

.ap-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--ap-moss);
}

.ap-hero-map {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 38px;
}

.ap-hero-map article {
  min-height: 112px;
  padding: 14px;
  border: 2px solid var(--ap-border);
  border-radius: 18px;
  background: var(--ap-surface);
  box-shadow: 4px 4px 0 var(--ap-depth);
}

.ap-hero-map article:nth-child(2) {
  background: var(--ap-ochre);
}

.ap-hero-map article:nth-child(3) {
  background: var(--ap-blue);
}

.ap-hero-map small {
  display: block;
  color: var(--ap-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}

.ap-hero-map strong {
  display: block;
  margin-top: 20px;
  color: var(--ap-ink);
  font-size: 18px;
  line-height: 1.12;
}

.ap-side-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
  background: var(--ap-surface);
}

.ap-commission-card,
.ap-route-card {
  padding: 24px;
  border: 2px solid var(--ap-border);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ap-depth);
}

.ap-commission-card {
  background: var(--ap-panel);
}

.ap-route-card {
  background: var(--ap-teal-soft);
}

.ap-kicker {
  margin-bottom: 12px;
  color: var(--ap-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}

.ap-commission-card h2,
.ap-section-head h2,
.ap-final-panel h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: .96;
}

.ap-route-card h2 {
  font-size: 30px;
  line-height: 1;
}

.ap-rate-list,
.ap-mini-stack,
.ap-steps,
.ap-profiles,
.ap-benefits {
  display: grid;
  gap: 14px;
}

.ap-rate-list {
  gap: 10px;
  margin-top: 22px;
}

.ap-rate-row {
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  background: var(--ap-surface);
}

.ap-rate-row strong {
  color: var(--ap-ink);
  font-weight: 950;
}

.ap-rate-row span {
  color: var(--ap-cta);
  font: 950 25px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ap-mini-stack {
  gap: 10px;
  margin-top: 18px;
}

.ap-mini-line {
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--ap-border) 38%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ap-surface) 56%, transparent);
  font-size: 14px;
  font-weight: 900;
}

.ap-mini-line span {
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-section,
.ap-split,
.ap-final-panel {
  margin-top: 30px;
}

.ap-section-panel {
  padding: clamp(26px, 4vw, 40px);
  background: color-mix(in srgb, var(--ap-panel) 94%, transparent);
}

.ap-section-head {
  grid-template-columns: minmax(0, .75fr) minmax(300px, .55fr);
  align-items: end;
  margin-bottom: 24px;
}

.ap-section-head-single {
  grid-template-columns: 1fr;
}

.ap-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ap-step,
.ap-profile,
.ap-benefit {
  min-height: 214px;
  padding: 22px;
  border: 2px solid var(--ap-border);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ap-depth);
}

.ap-step:nth-child(1),
.ap-benefit:nth-child(2) {
  background: var(--ap-surface);
}

.ap-step:nth-child(2),
.ap-benefit:nth-child(3) {
  background: var(--ap-ochre);
}

.ap-step:nth-child(3),
.ap-profile:nth-child(2) {
  background: var(--ap-moss);
}

.ap-step:nth-child(4),
.ap-profile:nth-child(3) {
  background: var(--ap-plum);
}

.ap-number-chip {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid var(--ap-border);
  border-radius: 999px;
  background: var(--ap-surface);
  box-shadow: 3px 3px 0 var(--ap-depth);
  color: var(--ap-ink);
  font-weight: 950;
}

.ap-step p,
.ap-profile p,
.ap-benefit p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.56;
}

.ap-split {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
}

.ap-profiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-guardrail {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 30px;
  border: 2px solid var(--ap-border);
  border-radius: 24px;
  background: var(--ap-cta);
  box-shadow: var(--ap-shadow);
  color: var(--ap-cta-ink);
}

.ap-guardrail .ap-eyebrow,
.ap-guardrail li {
  color: color-mix(in srgb, var(--ap-cta-ink) 78%, transparent);
}

.ap-guardrail h2 {
  color: var(--ap-cta-ink);
  font-size: 42px;
  line-height: 1;
}

.ap-guardrail ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ap-guardrail li {
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--ap-cta-ink) 24%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ap-cta-ink) 8%, transparent);
  font-weight: 820;
}

.ap-guardrail a {
  color: var(--ap-cta-ink);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ap-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.ap-benefit {
  min-height: 186px;
  background: var(--ap-surface);
}

.ap-final-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(28px, 5vw, 46px);
  background: var(--ap-surface);
}

.ap-final-panel p {
  max-width: 720px;
  margin-top: 16px;
  font-size: 17px;
}

.ap-final-actions {
  justify-content: flex-end;
}

.ap-meta {
  display: inline-flex;
  margin-top: 20px;
  color: var(--ap-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.affiliate-program-body :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ap-teal) 52%, transparent);
  outline-offset: 4px;
}

@media (max-width: 1040px) {
  .ap-hero,
  .ap-section-head,
  .ap-split,
  .ap-final-panel {
    grid-template-columns: 1fr;
  }

  .ap-status-grid,
  .ap-steps,
  .ap-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .ap-shell {
    width: min(100% - 24px, var(--ap-max));
  }

  .ap-shell {
    padding-top: 42px;
  }

  .ap-status-grid,
  .ap-steps,
  .ap-profiles,
  .ap-benefits,
  .ap-hero-map {
    grid-template-columns: 1fr;
  }

  .ap-hero-copy,
  .ap-side-panel,
  .ap-section-panel,
  .ap-guardrail,
  .ap-final-panel {
    border-radius: 20px;
    padding: 22px;
  }

  .affiliate-program-page h1 {
    font-size: clamp(38px, 10.8vw, 50px);
  }

  .ap-lead {
    font-size: 17px;
  }

  .ap-actions,
  .ap-final-actions,
  .ap-page-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ap-button,
  .ap-page-tab {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body.zp-body .zh-public-footer {
    grid-template-columns: 1fr;
    width: min(100% - 24px, var(--ap-max));
    margin-bottom: 116px;
    padding: 16px;
    text-align: center;
  }

  body.zp-body .zh-public-footer .zh-footer-brand {
    justify-content: center;
    flex-wrap: wrap;
  }

  body.zp-body .zh-public-footer nav {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.zp-body .zh-public-footer nav a {
    width: 100%;
  }
}
