/* Inner Page Top Block — Figma desktop 1135:21742, mobile 5312:20416. */

.aayda-top-block {
  width: 100%;
  min-width: 0;
  min-height: 328px;
  padding: var(--aayda-numbers-spacing-32) var(--aayda-numbers-spacing-16) var(--aayda-numbers-spacing-32) var(--aayda-numbers-spacing-32);
  background: var(--aayda-colors-neutral-surface-subtle);
  border: var(--aayda-border-width-card) solid var(--aayda-colors-base-white);
  border-radius: 0 0 var(--aayda-radius-footer) var(--aayda-radius-footer);
  overflow-x: clip;
  display: flex;
  justify-content: center;
}

.aayda-top-block__inner {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-100);
  width: 100%;
  min-width: 0;
}

.aayda-top-block__heading {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}

.aayda-top-block__title {
  margin: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-medium);
  font-size: var(--aayda-typography-size-36);
  line-height: var(--aayda-typography-line-height-36);
  letter-spacing: var(--aayda-typography-letter-spacing-36);
}

.aayda-top-block__lede {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 13px;
  width: 100%;
}

.aayda-top-block__description {
  margin: 0;
  width: min(100%, 292px);
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-semi-bold);
  font-size: var(--aayda-typography-size-12);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
}

.aayda-top-block__lede::after {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--aayda-colors-accent);
  content: "";
}

@media (min-width: 1416px) {
  .aayda-top-block {
    min-height: 259px;
    padding: var(--aayda-numbers-spacing-32) 0 var(--aayda-numbers-spacing-32) var(--aayda-numbers-spacing-84);
  }

  .aayda-top-block__inner {
    gap: var(--aayda-numbers-spacing-8);
    max-width: 1356px;
  }

  .aayda-top-block__heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--aayda-numbers-spacing-24);
    width: 100%;
    max-width: 1354px;
    min-width: 0;
  }

  .aayda-top-block__title {
    flex: 0 0 auto;
    font-size: var(--aayda-typography-size-44);
    line-height: var(--aayda-typography-line-height-44);
    letter-spacing: var(--aayda-typography-letter-spacing-44);
    white-space: nowrap;
  }

  .aayda-top-block__lede {
    flex: 0 0 490px;
    width: 490px;
    height: 159px;
  }

  /* The accent line runs from the lede's left edge to the block's right content edge — the card's
   * own edge, since the block has no right padding here — at every width, rather than stopping at
   * the centred 1356px column on a wider screen. It is drawn wide and the block's overflow-x: clip
   * ends it at that edge, so it never widens the lede or the page. */
  .aayda-top-block__lede::after {
    width: 100vw;
  }

  .aayda-top-block__description {
    width: 403px;
    font-size: var(--aayda-typography-size-14);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
  }
}
