/* ==========================================================================
   TRENDSIGNAL - MOBILE READABILITY FOR THE META LANDING AND SUCCESS PAGES
   Upload to: /httpdocs/includes-new/ts-mobile.css
   Linked at the end of each landing page and success page, so it wins over
   the page's own styles. Only touches phones and small tablets (under 768px).
   Aim: our visitors are mostly 50+, so body text 16px, small print 13px
   minimum, big tap targets, and nothing that makes the page scroll sideways.
   ========================================================================== */

@media (max-width: 767px) {

  /* ---- nothing wider than the phone ---- */
  html, body { overflow-x: hidden; max-width: 100%; }
  img { max-width: 100%; height: auto; }
  .row { margin-left: 0 !important; margin-right: 0 !important; }   /* Bootstrap rows sticking out 15px */

  /* ---- body text: 16px, comfortable line height ---- */
  p, li { font-size: 16px !important; line-height: 1.6 !important; }
  [class*="review-text"], [class*="card-desc"], [class*="video-card-name"],
  .hub-feature, .sp-notice > div, .webinar-bonus-desc, .bottom-cta-sub,
  .box-item p, .success-content p, .success-content li, .panel p,
  .sp-section p, .sp-main > p, .form-card-head p { font-size: 16px !important; line-height: 1.6 !important; }

  /* ---- small print stays smaller, but never below 13px ---- */
  .consent-text, .form-privacy, .consent-note, .recaptcha-note, .risk, .sp-risk,
  .policy p, .ts-consent-note, .ts-sess-note, .consent, .consent span, form .small,
  p small, footer p, .footer p {
    font-size: 13px !important; line-height: 1.5 !important;
  }

  /* ---- little labels, badges and eyebrows: 13px minimum and allowed to wrap ---- */
  [class*="eyebrow"], [class*="badge"], [class*="pill"], .hero-tag span,
  .countdown-label, .free-badge, .hub-tag, .sp-date-box .label, .sp-badge,
  .ts-lh-trust span, label {
    font-size: 13px !important; white-space: normal !important;
  }
  label { font-size: 15px !important; }

  /* ---- forms: 16px+ stops iPhones zooming in when a field is tapped ---- */
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
    font-size: 17px !important; min-height: 48px;
  }
  button, input[type="submit"], .btn {
    min-height: 52px; font-size: 18px !important;
  }

  /* ---- section titles and links that were tiny ---- */
  .sp-community-card h3, .sp-download-card h3 { font-size: 18px !important; }
  h5.s2 { font-size: 16px !important; }
  .sp-step-body a { font-size: 16px !important; }

  /* ===== page specific ===== */

  /* trading package landing header: logo + Book button didn't fit */
  header > div { padding: 12px 14px !important; gap: 10px !important; }
  header img { height: 38px !important; }
  header a[href="#ts-book"] { padding: 11px 14px !important; font-size: 15px !important; white-space: nowrap; }

  /* how-long: award pills in the header pushed the page 110px wider than the phone */
  .header-trust { display: none !important; }
  .hero { overflow: hidden; }

  /* award-winning: grid columns wider than the screen */
  .layout > * { min-width: 0; }
  .layout .content, .layout .form { padding: 22px 18px !important; }

  /* fb-ebook / fb-ebook-2 success: the two boxes sat side by side and ran off screen */
  .row-eq-height { display: block !important; }
  .row-eq-height > [class*="col-"] { width: 100% !important; float: none !important; }
  .ts-badges { display: block !important; }
  .ts-badge { width: 100% !important; }
  .box-item .tsb-card { padding: 16px 14px; }
}

/* tablets: a few Bootstrap rows stick out 15px and make the page wobble sideways */
@media (min-width: 768px) and (max-width: 1024px) {
  html, body { overflow-x: hidden; }
}
