/* =========================================================
   650 KGL V4.4 — NAV ORDER, FOOTER SITEMAP, STORY SPACING
   ========================================================= */

/* Footer sitemap mirrors the universal navigation set. */
.kgl-v44-footer-sitemap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 14px;
}

.kgl-v44-footer-sitemap a {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity .2s ease;
}

.kgl-v44-footer-sitemap a:hover {
  opacity: .72;
}

/* Header Blog must never get CTA styling simply because it moved. */
header a[href*="/blog/"],
.site-header a[href*="/blog/"],
.elementor-location-header a[href*="/blog/"] {
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Single-story bottom rhythm
   --------------------------------------------------------- */

body.single-post .wp-block-post-content.kgl-v44-story-content {
  padding-bottom: 64px !important;
  margin-bottom: 0 !important;
}

body.single-post .kgl-v4-related.kgl-v44-related-last {
  margin-bottom: 0 !important;
}

body.single-post .kgl-v44-story-wrapper {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.single-post main.kgl-v44-story-main {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Guard against theme spacing blocks left behind after inherited Query removal. */
body.single-post main.kgl-v44-story-main > .wp-block-spacer:last-child,
body.single-post .kgl-v44-story-wrapper > .wp-block-spacer:last-child {
  display: none !important;
}

/* A controlled editorial gap before the footer, not a blank screen. */
body.single-post main.kgl-v44-story-main + footer,
body.single-post main.kgl-v44-story-main ~ footer {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  .kgl-v44-footer-sitemap {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  body.single-post .wp-block-post-content.kgl-v44-story-content {
    padding-bottom: 44px !important;
  }
}
