/**
 * Homepage mobile typography + spacing refinement.
 * Desktop (≥768px) is untouched.
 */

@media (max-width: 767px) {
  .finsery-home {
    --fh-h1: 1.875rem;         /* 30px */
    --fh-h1-lh: 1.15;
    --fh-section: 1.375rem;    /* 22px */
    --fh-section-lh: 1.25;
    --fh-card-title: 1.125rem; /* 18px */
    --fh-card-title-lh: 1.3;
    --fh-body: 0.9375rem;      /* 15px */
    --fh-body-lh: 1.5;
    --fh-meta: 0.8125rem;      /* 13px */
    --fh-meta-lh: 1.4;
    overflow-x: clip;
  }

  /* Hero */
  .finsery-home .fh-hero-title {
    font-size: var(--fh-h1) !important;
    line-height: var(--fh-h1-lh) !important;
    font-weight: 700;
  }

  .finsery-home .fh-hero-subtitle,
  .finsery-home .fh-hero-bullets {
    font-size: var(--fh-body) !important;
    line-height: var(--fh-body-lh) !important;
  }

  .finsery-home .fh-hero-cta {
    font-size: 0.9375rem !important;
    min-height: 48px;
  }

  /* Section headings */
  .finsery-home .fh-section-title {
    font-size: var(--fh-section) !important;
    line-height: var(--fh-section-lh) !important;
    font-weight: 700;
  }

  /* Featured insight */
  .finsery-home .fh-featured-title {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.3 !important;
    font-weight: 700;
  }

  .finsery-home .fh-featured-body {
    font-size: var(--fh-body) !important;
    line-height: var(--fh-body-lh) !important;
  }

  /* Article cards */
  .finsery-home .fh-card-title {
    font-size: var(--fh-card-title) !important;
    line-height: var(--fh-card-title-lh) !important;
    font-weight: 600;
  }

  .finsery-home .fh-card-excerpt {
    font-size: var(--fh-body) !important;
    line-height: var(--fh-body-lh) !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .finsery-home .fh-card-meta {
    font-size: var(--fh-meta) !important;
    line-height: var(--fh-meta-lh) !important;
  }

  .finsery-home .fh-card-body {
    padding: 0.875rem 1rem 1rem !important;
    gap: 0.5rem !important;
  }

  .finsery-home #article-grid {
    gap: 1rem !important;
  }

  /* Carousel */
  .finsery-home .lnc-card-title {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
    font-weight: 600;
  }

  .finsery-home .lnc-card-meta {
    font-size: var(--fh-meta) !important;
    line-height: var(--fh-meta-lh) !important;
  }

  /* Commitment / newsletter / FAQ */
  .finsery-home .fh-body-text {
    font-size: var(--fh-body) !important;
    line-height: var(--fh-body-lh) !important;
  }

  .finsery-home .fh-faq-trigger {
    min-height: 52px;
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
  }

  .finsery-home .newsletter-block #finsery-email,
  .finsery-home .newsletter-block #finsery-subscribe-btn {
    min-height: 48px;
  }
}

/* Footer is outside main — WordPress adds .home on front page */
@media (max-width: 767px) {
  body.home footer nav a {
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
  }

  body.home footer h4 {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}
