/* B1 pg-trade. Scoped to body.pg-trade. Does not change shared g7-tpl.css rules. */

.pg-trade {
  background: var(--white);
  color: var(--ink);
}
.pg-trade .wrap {
  max-width: 1120px;
}
.pg-trade .sec {
  padding: 40px 0;
}
.pg-trade .pg-trade-narrow {
  max-width: 720px;
}
.pg-trade .pg-trade-hero h2,
.pg-trade .pg-trade-math h2,
.pg-trade .pg-trade-proof h2,
.pg-trade .pg-trade-how h2,
.pg-trade .sec-paper h2 {
  margin: 0 0 12px;
  color: var(--ink);
}
.pg-trade .pg-trade-hero .lede,
.pg-trade .pg-trade-math p,
.pg-trade .pg-trade-proof p,
.pg-trade .pg-trade-how p,
.pg-trade .sec-paper p {
  color: var(--ink);
}

/* S1 hero. Call Us, then Book, then the number image. Problem text sits under the image. */
.pg-trade .pg-trade-hero.cp-hero {
  padding: 24px 0 32px;
  text-align: left;
  background: var(--white);
}
.pg-trade .pg-trade-hero-grid {
  display: grid;
  gap: 20px;
}
.pg-trade .pg-trade-hero h1 {
  max-width: 20em;
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  text-align: left;
  color: var(--ink);
}
.pg-trade .pg-trade-hero .lede {
  max-width: 40em;
  margin: 0;
  text-align: left;
}
.pg-trade .pg-trade-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 440px;
  margin-top: 16px;
}
.pg-trade .pg-trade-actions .btn,
.pg-trade .pg-trade-call {
  width: 100%;
  min-height: 56px;
  white-space: normal;
  text-align: center;
}
.pg-trade .pg-trade-actions .quiet,
.pg-trade .pg-trade-book {
  white-space: normal;
  text-wrap: balance;
  min-height: 44px;
  max-width: 100%;
  justify-content: flex-start;
}
.pg-trade .pg-trade-tel {
  display: flex;
  align-items: center;
  min-height: 64px;
  max-width: 100%;
  text-decoration: none;
}
.pg-trade .pg-trade-tel .num-img,
.pg-trade .call-lbl,
.pg-trade #r-mo,
.pg-trade #r-yr,
.pg-trade .r-big,
.pg-trade .r-yr {
  white-space: nowrap;
}
.pg-trade .pg-trade-tel .num-img {
  height: 28px;
  width: auto;
  max-width: 100%;
}
.pg-trade .pg-trade-fig {
  margin: 0;
}
.pg-trade .pg-trade-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.pg-trade .pg-trade-problem {
  max-width: 720px;
}
.pg-trade .pg-trade-problem h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

/* Bands */
.pg-trade .pg-trade-math,
.pg-trade .pg-trade-how {
  background: var(--sand);
}
.pg-trade .pg-trade-proof {
  background: var(--white);
}
.pg-trade .pg-trade-proof:not(:has(*)) {
  display: none;
}

/* S3 cards and S5 steps */
.pg-trade .pg-trade-intro {
  max-width: 70ch;
  margin: 0 0 8px;
}
.pg-trade .pg-trade-cards,
.pg-trade .pg-trade-steps {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
}
.pg-trade .pg-trade-steps {
  list-style: none;
}
.pg-trade .pg-trade-card,
.pg-trade .pg-trade-steps li {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: var(--card-shadow, var(--shadow));
  padding: 20px;
  margin: 0;
  color: var(--ink);
}
.pg-trade .pg-trade-card p {
  margin: 0;
}
.pg-trade .pg-trade-more {
  margin-top: 16px;
}
.pg-trade .pg-trade-more a,
.pg-trade .pg-trade-math a {
  font-weight: 700;
}

/* S4: keep the shared calculator module. Drop the overlap that assumed it sat under the hero. */
.pg-trade .cp-calc {
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--sand);
}
.pg-trade .calc-in {
  gap: 8px;
  padding: 16px 16px 12px;
}
.pg-trade .calc-out {
  gap: 8px;
  padding: 12px 16px 14px;
}
.pg-trade .field-top {
  margin-bottom: 2px;
}
.pg-trade .cp-head h2 {
  margin-bottom: 4px;
}
.pg-trade .hint {
  margin: 0;
  padding-top: 8px;
}
.pg-trade .result {
  padding: 14px 16px;
}
.pg-trade .result .r-big {
  font-size: 2.4rem;
}
.pg-trade .ex-tag {
  margin: 0 0 0 12px;
}

/* S6 */
.pg-trade .sec-paper {
  background: var(--white);
}
.pg-trade .faq summary {
  min-height: 56px;
}

/* S7 close */
.pg-trade .pg-trade-close {
  background: var(--ink);
  color: var(--white);
}
.pg-trade .pg-trade-close h2,
.pg-trade .pg-trade-close .lede,
.pg-trade .pg-trade-close p {
  color: var(--white);
}
.pg-trade .pg-trade-close a.quiet.pg-trade-book {
  color: #ffffff;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  padding: 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pg-trade .pg-trade-calc-tel {
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  color: var(--acc-deep);
  min-height: 44px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.pg-trade .pg-trade-calc-tel .num-img {
  height: 28px;
  width: auto;
  max-width: 100%;
}
.pg-trade .calc-how {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

@media (min-width: 1040px) {
  .pg-trade .sec {
    padding: 72px 0;
  }
  .pg-trade .pg-trade-hero.cp-hero {
    padding: 56px 0 48px;
  }
  .pg-trade .pg-trade-hero h1 {
    font-size: clamp(40px, 3vw, 52px);
  }
  .pg-trade .pg-trade-hero-grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    column-gap: 40px;
    row-gap: 28px;
    align-items: center;
  }
  .pg-trade .pg-trade-fig img {
    width: 440px;
    height: 330px;
  }
  .pg-trade .pg-trade-problem {
    grid-column: 1 / -1;
  }
  .pg-trade .pg-trade-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pg-trade .pg-trade-actions .btn {
    width: 440px;
    max-width: 100%;
  }
}
@media (min-width: 1440px) {
  .pg-trade .pg-trade-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
