/* Shared styles for /docs/sdk/javascript/<feature> pages */

/* Compact single-column hero */
.v2-docs-sdk-feat-hero {
  padding-bottom: 56px;
}

/* Left-aligned vertical stack. Re-specify layout instead of inheriting the
   base 2-column grid (display:grid; gap:80px; align-items:center), which
   stretched the badge full-width and forced huge gaps. No max-width override
   so the hero left edge aligns with the .v2-container sections below. */
.v2-docs-sdk-feat-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* gap is the single source of vertical rhythm — zero the children's margins */
.v2-docs-sdk-feat-hero__inner .v2-hero__title {
  margin: 0;
}

.v2-docs-sdk-feat-hero__inner .v2-hero__desc {
  margin: 0;
  max-width: 720px;
}

.v2-docs-sdk-feat-hero__inner .v2-hero__actions {
  margin: 0;
}

.v2-docs-sdk-feat-hero .v2-hero__title {
  font-size: 46px;
}

.v2-docs-sdk-feat-hero .v2-hero__title-sub {
  font-size: 36px;
}

/* Lean CTA band */
.v2-docs-feat-cta {
  padding: 56px 0;
  background: var(--v2-white);
}

.v2-docs-feat-cta__card {
  max-width: var(--v2-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--v2-soft-bg);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 32px 36px;
}

.v2-docs-feat-cta__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--v2-navy);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.v2-docs-feat-cta__desc {
  font-size: 15px;
  color: var(--v2-gray);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.v2-docs-feat-cta__desc code {
  font-family: var(--v2-font-mono);
  font-size: 0.92em;
  color: var(--v2-blue);
}

.v2-docs-feat-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .v2-docs-sdk-feat-hero .v2-hero__title {
    font-size: 32px;
  }

  .v2-docs-sdk-feat-hero .v2-hero__title-sub {
    font-size: 26px;
  }

  .v2-docs-feat-cta__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .v2-docs-feat-cta__actions .v2-btn {
    width: 100%;
    justify-content: center;
  }
}
