/* v21: natural numbering and a balanced method-summary highlight. */

/* Single digits read more naturally than mechanical 01 / 02 labels. */
.gg-article .article-check-list > li::before,
.gg-article.safety-article .fact-item::before,
.gg-article.deposit-methods-article .method-summary-card::before,
.gg-article .withdrawal-choice-card::before,
.gg-article.crypto-exchange-article .binance-feature-card::before {
  content: counter(gg-v18-item);
  font-variant-numeric: normal;
  letter-spacing: 0;
}

.gg-article .article-number-list > li::before {
  content: counter(article-number);
}

.gg-article .process-list > li::before {
  content: counter(gg-step);
}

.gg-article[data-article-id="download"] .pc-install-flow > li::before {
  content: counter(pc-install-step);
}

/* Keep the method name and highlighted note on one balanced editorial line. */
.gg-article.deposit-methods-article .method-summary-card:nth-child(n) {
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 10px;
  align-items: center;
}

.gg-article.deposit-methods-article .method-summary-card::before {
  width: 24px;
  font-size: 16px;
  line-height: 1.35;
}

.gg-article.deposit-methods-article .method-summary-card h3 {
  align-self: center;
}

.gg-article.deposit-methods-article .method-summary-heading {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.gg-article.deposit-methods-article .method-summary-link {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  min-height: 32px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 1 auto;
  gap: 3px;
  white-space: nowrap;
}

.gg-article.deposit-methods-article .method-summary-link .article-marker {
  display: inline;
  padding-inline: .06em;
  background: linear-gradient(
    transparent 46%,
    var(--article-marker) 46%,
    var(--article-marker) 88%,
    transparent 88%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 560px) {
  .gg-article.deposit-methods-article .method-summary-card:nth-child(n) {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 8px;
    padding-inline: 6px;
  }

  .gg-article.deposit-methods-article .method-summary-card::before {
    width: 22px;
    font-size: 15px;
  }

  .gg-article.deposit-methods-article .method-summary-link {
    min-height: 30px;
    font-size: clamp(10.5px, 3vw, 12px);
  }

  .gg-article.deposit-methods-article .method-summary-heading {
    gap: 8px;
  }
}

@media (max-width: 340px) {
  .gg-article.deposit-methods-article .method-summary-card:nth-child(n) {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 6px;
    padding-inline: 4px;
  }

  .gg-article.deposit-methods-article .method-summary-card::before {
    width: 20px;
    font-size: 14px;
  }

  .gg-article.deposit-methods-article .method-summary-card h3 {
    font-size: 13px;
  }

  .gg-article.deposit-methods-article .method-summary-link {
    min-height: 28px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 9.5px;
    white-space: nowrap;
  }

  .gg-article.deposit-methods-article .method-summary-heading {
    gap: 6px;
  }
}
