/* Homepage: the Antos stats ($1,000 / 0.0 / 200:1) are wider than the template's,
   so tablet and small-laptop widths need less side padding to keep the row on screen. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .stat-grid .stat-holder.large {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Our Advantages: the advantage-0N panels are 1:2 portrait (596x1200). Size them by the
   sticky frame's height so each one fills it (298x600 on desktop) instead of stretching to
   the column width, and centre them when the frame is wider (tablet). */
.sticky-image-holder:has(img[src*="/advantage-"]) {
  height: 100%;
}
img[class^="sticky-image-"][src*="/advantage-"] {
  width: auto;
  height: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  object-position: top;
}

/* ---- Our Advantages layout ---- */
/* Keep each item inside the left half (left of the centre line) and pin the 01/02/03 step numbers
   to that column's right edge, so they line up whatever the title length. */
@media screen and (min-width: 992px) {
  ._2-column-feature > .feature {
    flex: 0 0 calc(50% - 60px);
    max-width: calc(50% - 60px);
  }
}
._2-column-feature .left-contet-holder {
  width: 100%;
  justify-content: space-between;
}
._2-column-feature .left-contet-holder .title-align-left {
  flex: 1 1 auto;
  min-width: 0;
}
._2-column-feature .left-contet-holder .step-holder {
  flex: 0 0 auto;
}
._2-column-feature .sticky-inside-content-holder p {
  margin-bottom: 0;
  max-width: 460px;
}

/* ---- Why Us layout (cards follow the template: image, title, description) ---- */
/* antos.css makes .subtitle-text near-black; on the gradient "15+" card it must be white like the template. */
.subtitle-text.white-text {
  color: #fff;
}
/* Trading terminal: fit the card's width (the template fixes it at 1000px, which crops its right side). */
.gradient-card-holder .card-holder._03 .card-dashboard-holder {
  width: auto;
  right: 0;
}
.gradient-card-holder .card-holder._03 .card-image {
  height: auto;
}
@media screen and (max-width: 767px) {
  /* Phones: the terminal card takes the terminal's height instead of a fixed 450-500px with a gap above it. */
  .gradient-card-holder .card-holder._03 {
    height: auto;
    padding: 0 0 0 6%;
  }
  .gradient-card-holder .card-holder._03 .card-dashboard-holder {
    position: relative;
    left: 0;
    bottom: 0;
  }
  /* Stats row: three equal columns, no sideways scroll. */
  .stat-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat-grid .stat-holder.large {
    padding-left: 8px;
    padding-right: 8px;
  }
  .stat-grid .large-title {
    font-size: clamp(26px, 8vw, 40px);
  }
}

:where(.ap-h1){font-size:2em;margin-block:.67em}:where(.ap-h2){font-size:1.5em;margin-block:.83em}:where(.ap-h3){font-size:1.17em;margin-block:1em}:where(.ap-h4){font-size:1em;margin-block:1.33em}:where(.ap-h5){font-size:.83em;margin-block:1.67em}:where(.ap-h6){font-size:.67em;margin-block:2.33em}
