
/* =========================================================
   FrugalLiving Guides V7 — global editorial polish v1.0.1
   ========================================================= */

/* Article hierarchy */
.flg-v7 h2,
.flg-article h2 {
  font-size: clamp(28px, 2.4vw, 31px) !important;
  line-height: 1.24 !important;
  margin-top: 42px !important;
  margin-bottom: 15px !important;
  letter-spacing: -0.015em;
}

.flg-v7 h3,
.flg-article h3 {
  font-size: clamp(22px, 2vw, 25px) !important;
  line-height: 1.30 !important;
  margin-top: 31px !important;
  margin-bottom: 12px !important;
}

.flg-v7 p,
.flg-article p {
  margin-bottom: 16px !important;
}

.flg-v7 figure,
.flg-article figure {
  margin-top: 22px !important;
  margin-bottom: 24px !important;
}

.flg-v7 figure img,
.flg-article figure img {
  border-radius: 19px !important;
}

/* Reduce repeated SaaS-card feel slightly */
.flg-v7 [style*="border-radius:17px"],
.flg-article [style*="border-radius:17px"],
.flg-v7 [style*="border-radius:16px"],
.flg-article [style*="border-radius:16px"] {
  border-radius: 14px !important;
}

/* Sources / references hierarchy */
.flg-sources-heading {
  font-size: 23px !important;
  margin-top: 40px !important;
  margin-bottom: 12px !important;
  color: #25313c !important;
}

.flg-sources-list,
.flg-sources-list li,
.flg-sources-list a {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.flg-sources-list {
  color: #667085 !important;
  margin-bottom: 28px !important;
}

/* Bottom line: quieter and more editorial */
.flg-bottom-line {
  background: #115f5a !important;
  padding: 22px 24px !important;
  border-radius: 16px !important;
  margin-top: 42px !important;
}

.flg-bottom-line > :first-child {
  font-size: 27px !important;
  line-height: 1.2 !important;
}

.flg-bottom-line p {
  font-size: 18px !important;
  line-height: 1.62 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   KEEP READING — compact ending
   ========================================================= */

/* Main wrapper marked by JS */
.flg-related-polish {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 14px !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Kill theme-added empty vertical floor */
.flg-related-polish,
.flg-related-polish > div,
.flg-related-polish .entry-related-inner,
.flg-related-polish .entry-related-inner-content,
.flg-related-polish .entry-related-carousel,
.flg-related-polish .splide,
.flg-related-polish .splide__track,
.flg-related-polish .splide__list {
  min-height: 0 !important;
  height: auto !important;
}

.flg-related-polish > h2,
.flg-related-polish > h3,
.flg-related-polish .entry-related-title {
  font-size: clamp(31px, 3vw, 38px) !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

.flg-related-polish .entry-related-inner-content,
.flg-related-polish .entry-related-carousel,
.flg-related-polish .splide__list,
.flg-related-polish .kt-blocks-post-grid-item-inner {
  gap: 18px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Related cards */
.flg-related-polish .entry-related-item,
.flg-related-polish .splide__slide > article,
.flg-related-polish article {
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  border-top: 3px solid #0f766e !important;
}

/* Subtle brand accent, not a large label */
.flg-related-polish .entry-related-item::before,
.flg-related-polish .splide__slide > article::before,
.flg-related-polish article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 34px;
  height: 3px;
  background: #9fd8d0;
  z-index: 2;
}

.flg-related-polish .entry-related-item .entry-content-wrap,
.flg-related-polish .entry-related-item .entry-header,
.flg-related-polish .splide__slide .entry-content-wrap,
.flg-related-polish article .entry-content-wrap {
  padding: 22px 26px 21px !important;
  min-height: 0 !important;
}

.flg-related-polish .entry-related-item .entry-title,
.flg-related-polish .entry-related-item h3,
.flg-related-polish article .entry-title,
.flg-related-polish article h3 {
  font-size: 21px !important;
  line-height: 1.24 !important;
  margin: 0 0 11px !important;
}

.flg-related-polish .entry-meta,
.flg-related-polish .entry-related-item .entry-meta {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #8b96a1 !important;
  margin-bottom: 0 !important;
}

/* Kadence/common wrappers that often create the large blank footer gap */
.entry-related,
.entry-related-inner,
.entry-related-posts,
.entry-related .content-container,
.entry-related .site-container {
  min-height: 0 !important;
  height: auto !important;
}

.entry-related {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 18px !important;
}

/* Pull footer up to the actual end of related cards */
.flg-related-polish + .site-footer,
.flg-related-polish ~ .site-footer,
.entry-related + .site-footer,
.entry-related ~ .site-footer,
#colophon,
.site-footer {
  margin-top: 0 !important;
}

/* If theme gives main/footer separation huge padding, reduce it */
body.single-post .site-footer-wrap,
body.single-post #colophon {
  padding-top: 18px !important;
}

/* Tablet/mobile */
@media (max-width: 900px) {
  .flg-v7 h2,
  .flg-article h2 {
    font-size: 28px !important;
    margin-top: 38px !important;
  }

  .flg-related-polish {
    padding-top: 24px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 640px) {
  .flg-v7,
  .flg-article {
    font-size: 17px !important;
    line-height: 1.70 !important;
  }

  .flg-v7 h2,
  .flg-article h2 {
    font-size: 26px !important;
    margin-top: 34px !important;
  }

  .flg-bottom-line {
    padding: 20px !important;
  }

  .flg-related-polish .entry-related-item .entry-content-wrap,
  .flg-related-polish .entry-related-item .entry-header,
  .flg-related-polish article .entry-content-wrap {
    padding: 19px 20px !important;
  }

  .flg-related-polish .entry-related-item::before,
  .flg-related-polish .splide__slide > article::before,
  .flg-related-polish article::before {
    left: 20px;
  }
}
