html {
  scroll-behavior: smooth;
}
.mg-new-age .mg-trust-section {
  background: linear-gradient(90deg, #edf5ecef, #edf5ecbd), url("../public/brand/mortgageguide-home-costs-featured.webp") center/cover;
  border-radius: 18px;
  padding: 28px !important;
  margin: 32px auto !important;
}
.mg-new-age .mg-trust-grid {
  position: relative;
}
.mg-new-age .mg-trust-grid a {
  background: #ffffffd9;
  border-radius: 12px;
  padding: 18px !important;
}
.mg-primary-nav summary {
  cursor: pointer;
}

/* Curated HTML Guide Layout & UX */
.ezine-article-full .ezine-editorial-content {
  width: min(820px, calc(100% - 48px));
  max-width: 820px;
  margin: 30px auto 0;
  font-family: var(--mg-font-sans, Inter, ui-sans-serif, system-ui, sans-serif);
  font-size: 16.5px;
  line-height: 1.78;
  color: #1f3d36;
  text-align: left;
}
.ezine-article-full .ezine-editorial-content h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.24;
  color: #0b3b32;
  margin: 36px 0 12px;
  padding-top: 22px;
  border-top: 1px solid #dce8e3;
  scroll-margin-top: 96px;
}
.ezine-article-full .ezine-editorial-content h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 8px;
}
.ezine-article-full .ezine-editorial-content p {
  margin: 0 0 18px;
}
.ezine-article-full .ezine-editorial-content a {
  color: #0e7660;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ezine-article-full .ezine-editorial-content a:hover {
  color: #084f40;
}
.mg-article-meta-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 22px;
  padding: 6px 14px;
  background: #eef7f4;
  border: 1px solid #cde3dc;
  border-radius: 999px;
  font-size: 13px;
  color: #265349;
}
.mg-article-toc {
  background: #f6fbf9;
  border: 1px solid #cde3dc;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.mg-article-toc strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0c745e;
  margin-bottom: 10px;
}
.mg-article-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 15px;
}
.mg-article-toc a {
  text-decoration: none !important;
  color: #144d41 !important;
}
.mg-article-toc a:hover {
  text-decoration: underline !important;
}
.mg-editorial-credit {
  max-width: 820px;
  margin: 28px auto 44px;
  padding: 20px 24px;
  color: #153e33;
  background: #f2f6f3;
  border: 1px solid #d5e4dc;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.mg-editorial-credit a {
  text-decoration: underline;
}
@media (max-width: 680px) {
  .ezine-article-full .ezine-editorial-content,
  .mg-editorial-credit {
    width: calc(100% - 32px);
  }
}

.ezine-editorial-content{overflow-wrap:anywhere;box-sizing:border-box}.ezine-editorial-content img{max-width:100%;height:auto}.ezine-editorial-content table{display:block;max-width:100%;overflow-x:auto}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.mg-section-heading>a,.mg-content-card>strong{color:#076b4e!important}

.mg-blog-grid small,.mg-blog-grid a{color:#076b4e!important}



/* Render complete sections: nested content visibility caused empty panels and unstable scroll targets. */
.mg-new-age > section:not(.mg-home-hero){content-visibility:visible;contain-intrinsic-size:none}
@media(max-width:680px){.mg-home-hero[style*="mortgageguide-home-enterprise-banner.webp"]{--mg-home-image:url("../public/brand/mortgageguide-home-enterprise-banner-mobile.webp")!important}}

.mg-hero-visual>picture{display:contents}
.mg-new-age > .mg-showcases > section{content-visibility:visible;contain-intrinsic-size:none}

.mg-hero-visual>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:76% center}

/* Readable contrast within the existing green palette. */
.mg-report-panel label small,.ezine-article header small,.ezine-prev-next small{color:#526b62!important}
.mg-report-panel .mg-button.primary,.mg-journey-landing .mg-button.primary{background-color:#0b805f!important}
.ezine .mg-site-footer .mg-footer-crosslinks a{color:#14503c!important}

body:has(.mg-home-page) .mg-site-footer{content-visibility:visible;contain-intrinsic-size:none}

/* Decorative arrows are omitted; labels and keyboard-operated controls remain. */
.mgwp-site svg.lucide-chevron-down,.mgwp-site svg.lucide-chevron-right,.mgwp-site svg.lucide-arrow-right,.mgwp-site svg.lucide-arrow-up-right,.mgwp-site .mg-nav-chevron{display:none!important}
.mgwp-site summary{list-style:none}.mgwp-site summary::-webkit-details-marker{display:none}
.mgwp-site .mg-primary-nav summary::after,.mgwp-site .public-site-drawer summary::after{content:none!important}
.mg-page-answers{background:#f1f6f3;color:#153e33;padding:clamp(24px,4vw,48px) max(20px,calc((100% - 1120px)/2));clear:both}
.mg-page-answers h2{font-size:clamp(22px,3vw,30px);margin:0 0 20px;line-height:1.25}.mg-page-answers details{border-top:1px solid #c8dad0;padding:16px 0}.mg-page-answers summary{font-weight:650;cursor:pointer;line-height:1.5}.mg-page-answers p{max-width:78ch;line-height:1.7;margin:12px 0}.mg-page-answers a{text-decoration:underline;color:inherit}.mg-page-answers summary:focus-visible{outline:2px solid #153e33;outline-offset:5px}

.mgwp-site svg[class*="lucide-arrow-"],.mgwp-site svg[class*="lucide-chevron-"]{display:none!important}
