/* ==========================================================================
   SHARED RESPONSIVE CSS
   Navbar toggle, container padding, CTA, subfooter, footer columns
   ========================================================================== */

/* 769–871px: the desktop navbar is shown but the fixed 80px logo margin
   (mr-20) and 40px nav gap (gap-10) make the left block too wide. That crushes
   the logo (Tailwind's preflight sets img{max-width:100%}, so the shrinking
   flex item drags the image down with it) and pushes the CTA so its orange
   background bleeds into the top-right corner. Tighten the spacing, stop the
   logo from shrinking, and keep the CTA on one line. The nav stays next to the
   logo (left); the CTA stays pinned right via the container's justify-between.
   Above 872px the default spacing fits, so this is scoped tight. !important
   beats the Tailwind Play-CDN utilities. */
@media (min-width: 769px) and (max-width: 871px) {
  .navbar__wrapper__container__left-block__logo {
    flex-shrink: 0 !important;         /* logo keeps its size */
    margin-right: 1.5rem !important;   /* was 5rem (mr-20) — gap to the nav */
  }
  .navbar__wrapper__container__left-block__nav-items {
    gap: 1.25rem !important;           /* was 2.5rem (gap-10) */
  }
  .navbar__wrapper__container__left-block__nav-items__item {
    margin-left: 0.25rem !important;   /* was 0.5rem (mx-2) */
    margin-right: 0.25rem !important;
  }
  .navbar__wrapper__container__right-block__cta a {
    white-space: nowrap !important;    /* don't wrap "Let's Talk Outcomes" */
  }
}

@media (max-width: 768px) {
  /* --- Navbar: hide desktop, show mobile --- */
  .navbar {
    display: none;
  }
  /* mobile-navbar has Tailwind "hidden" class baked in — must override */
  .mobile-navbar {
    display: flex !important;
  }

  /* Stories/Kadence chrome: swap desktop header for mobile trigger. */
  #main-header > .site-header-inner-wrap > .site-header-upper-wrap {
    display: none !important;
  }
  #mobile-header.site-mobile-header-wrap {
    display: block !important;
  }
  .menu-toggle-open.drawer-toggle {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 10px !important;
  }

  /* --- Container widths --- */

  /* --- Resources slider: 3-col → scrollable single --- */
  .resources-slider__carousel__slide {
    width: 85vw;
    min-width: 280px;
  }
  .carousel__track {
    gap: 12px;
  }
  .resources-slider__top-bar {
    flex-direction: column;
    gap: 8px;
  }
  .resources-slider__top-bar__title {
    font-size: 24px !important;
    line-height: 30px !important;
  }

  /* --- CTA section --- */
  /* Live sampled 2026-05-16 on vestfin.com homepage #page-cta @ 390x844:
   *   title    h2  → 30px / 45px / weight 700
   *   subtitle p   → 20px / 30px / weight 400  (NOT 700 — `.text-h3` token
   *                  would set 700, but live treats CTA subtitle as
   *                  regular-weight body copy)
   * These values are intentional one-offs for the CTA band — no canonical
   * mobile token matches 30/45 exactly. Keep them here, not in
   * typography.css, to avoid polluting the global scale. Brand weights
   * stay 400 / 700 only. */
  .cta__content {
    /* Gutter min: horizontal 16->20px so CTA text clears the >=20px edge
       (this single-class !important rule otherwise beats ._container's 20px). */
    padding: 40px 20px !important;
  }
  .cta__title {
    font-size: 30px;
    line-height: 45px;
    font-weight: 700;
  }
  /* `.cta p` (in base.css) is pinned to line-height:36px !important at
   * (0,1,1) specificity — must match that selector on mobile to override. */
  .cta__subtitle,
  .cta p {
    font-size: 20px !important;
    line-height: 30px !important;
    font-weight: 400 !important;
  }
  /* Button: `.text-body-lg` on the anchor resolves to 17px mobile, but live
   * renders the CTA button label at 16px / 24px / 400. */
  .cta__button {
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400;
  }

  /* --- Subfooter nav links: row → column --- */
  .subfooter-container {
    flex-direction: column;
    gap: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .logo-block {
    width: 100% !important;
    padding-right: 0 !important;
  }
  .footer-nav {
    width: 100%;
  }

  /* --- Footer disclaimers: 2-col → 1-col --- */
  .adviser-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .adviser-footer__inner {
    flex-direction: column;
  }
  .adviser-footer__inner__first-column,
  .adviser-footer__inner__second-column {
    width: 100% !important;
    padding: 15px 0 !important;
  }

  /* --- General type scaling --- */
  .page-wrapper {
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Contact form wrapper: match live's stacked mobile layout. */
  .contact-us-page__container {
    flex-direction: column !important;
    gap: 32px !important;
    align-items: stretch !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  .contact-us-page__content,
  .contact-us-page__form {
    flex: none !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .contact-us-page__form {
    margin-top: 0 !important;
    padding: 24px 32px !important;
  }
  .contact-us-page__form .hubspot-form-wrapper {
    padding: 16px !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .contact-us-page__form .hubspot-form-wrapper__form {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* --- Tablet (769px–1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Slider cards: 2 visible */
  .resources-slider__carousel__slide {
    width: calc((100vw - 80px) / 2);
  }

  /* Subfooter: wrap nav links */
  .subfooter-container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .logo-block {
    width: 100%;
    margin-bottom: 16px;
  }
  .footer-nav {
    flex: 0 0 auto;
  }
}


.mutual-fund-content button.mobile-button,
.cit-content button.mobile-button {
	display: none;
	margin-top: 40px;
	width: 100%;
}
@media (max-width: 789px) {
	.mutual-fund-content button.mobile-button,
	.cit-content button.mobile-button {
		display: flex;
		justify-content: center;
	}
	.mutual-fund-content button:not(.mobile-button),
	.cit-content button:not(.mobile-button) {
		display: none;
	}	
}


#how-it-works .article-body {
  padding-top: 60px;
  padding-bottom: 60px;
}

#how-it-works .article-body .section-subtitle,
#how-it-works .article-body .section-description {
  margin-bottom: 40px;
}

#how-it-works .article-body .section-subtitle {
  font-size: 30px;
  line-height: normal;
}

@media (max-width: 599px) {
  #how-it-works .article-body {
    padding-top: 40px;
    padding-bottom: 0px;
  }

  #how-it-works .article-body .section-subtitle {
    margin-bottom: 24px;
  }

  #how-it-works .article-body .section-description {
    margin-bottom: 0px;
  }

  #how-it-works .article-body .section-subtitle {
    font-size: 22px;
    line-height: normal;
  }
}
#how-it-works .yellow-background h3 {
	margin-bottom: 24px;
}	
#how-it-works .bullet-list {
	margin-bottom: 8px;
}
#how-it-works .yellow-background p,
#how-it-works .yellow-background li {
	font-size: 16px !important;
	line-height: 24px !important;
}

@media only screen and (max-width: 899px) {
    #how-it-works .yellow-background.key-elements ._grid:last-child > div:last-child {
        margin-bottom: 0px!important;
    }
}

#how-it-works .yellow-background .grid {  
  column-gap: 64px;
  row-gap: 24px;
}


main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content,
main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content p,
main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content li {
  font-size: 16px !important;
}

main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content p {
	margin-block-end: 1em;
}

.section-content .section-subtitle {
  font-size: 22px;
  font-stretch: normal;
  font-style: normal;
  font-weight: 700;
  letter-spacing: normal;
  line-height: normal;
  max-width: 100%;
  padding-bottom: 0;
  text-align: center;
  width: 100%;
  margin-bottom: 16px;
}
.section-content {
	padding-left: 20px;
	padding-right: 20px;
}

.section-content ul {
	display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

.section-content li {
	display: list-item;
	unicode-bidi: isolate;
}

#why-invest .section-content:not(:last-child) {
	margin-bottom: 20px;
}
.faq .answer p {
	font-size: 18px;
	line-height: 27px;
}
.feature-list .feature-list__text {
	font-size: 16px;
	line-height: 24px;
}

.image-divider.growth-strategy-page__desktop {
	display: none;
}

.our-story .our-story__header-title {
	font-size: 30px;
	line-height: 44px;
	margin-bottom: 0;
}

.about-us .page-hero {
	padding: 4rem 0 13rem !important;
}
@media (min-width: 600px) {
	.image-divider.growth-strategy-page__desktop {
		display: block;
	}

  main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content,
  main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content p,
  main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content li {
    font-size: 18px !important;
  }

	.section-content .section-subtitle {
		margin: 60px auto 40px;    
		width: 720px;
		font-size: 30px;
  }
	.section-content {
		padding-left: 0px;
		padding-right: 0px;
	}
	
	.faq .answer p {
		font-size: 20px;
		line-height: 30px;
	}
}

@media (min-width: 900px) {
	main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content,
	main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content p,
	main.page-content:has(.strategy-page-menu--target-income-strategy) .content-section .section-content li {
		font-size: 20px !important;
	}
	
	.feature-list .feature-list__text {
		font-size: 20px;
		line-height: 28px;
	}
	
	.our-story .our-story__header-title {
		font-size:40px;
		line-height: 52px;
		margin-bottom: 1.5rem;
	}
	
	.about-us .page-hero {
		padding: 9rem 0 !important; 
	}
}
