/* ==========================================================================
   Affiliate Management page — patterns that appear only here.
   Wrapped in @layer pages so it slots into the cascade order declared in
   main.css (an unlayered stylesheet would override every layer).
   ========================================================================== */

@layer pages {

  /* ---- Status banner: amber "coming soon" notice under the hero copy -- */

  .status-banner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--clinical-amber-tint);
    color: var(--clinical-amber-ink);
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.4;
  }

  .status-banner__dot {
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background: var(--clinical-amber);
    flex-shrink: 0;
  }

  /* ---- "Where the numbers live" comparison ---------------------------- */
  /* .compare / .compare__figure / .node / .node--outline / .node--glass /
     .bundle / .bundle__platform / .bundle__name / .bundle__chips are
     defined page-scoped in css/pages/home.css under @layer pages, so they
     are not available here — the same rules are reproduced below. */

  .compare {
    display: grid;
    gap: var(--space-xl);
    max-width: 838px;
    margin-inline: auto;
    padding: clamp(1.25rem, 3.2vw, 46px);
    border-radius: var(--radius-lg);
    background: var(--gradient-depth);
  }

  @media (min-width: 720px) {
    .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  .compare__figure {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-lg);
    min-height: 290px;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
  }

  .compare__caption {
    font-size: var(--fs-caption);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-muted-light);
  }

  .node-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .node {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: var(--radius-pill);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
  }

  .node::before {
    content: "";
    inline-size: 4px;
    block-size: 4px;
    border-radius: 50%;
    background: currentColor;
  }

  .node--outline {
    border: 1px solid #ff8a3d;
    color: var(--text-ink);
  }

  .node--outline::before { background: var(--gradient-ember); }

  .node--glass {
    background: rgb(26 10 2 / 0.3);
    color: #fff;
  }

  .bundle {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bundle__platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-md);
    background: var(--gradient-ember-row);
    color: #fff;
  }

  .bundle__name {
    font-size: var(--fs-micro);
    font-weight: 700;
    line-height: 1.2;
  }

  .bundle__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xs);
    margin: 0;
    padding: 0;
    list-style: none;
  }

}
